@shopify/cli
Version:
A CLI tool to build for the Shopify platform
4 lines • 112 kB
JavaScript
import{a as Ju,b as Nn,c as ee}from"./chunk-QSTEVZFQ.js";import{Ba as Zu}from"./chunk-XONFGLJQ.js";import{a as $,c as A,g as v}from"./chunk-VPRTJUIN.js";var eo=A((ir,In)=>{v();(function(e,t){typeof ir=="object"&&typeof In<"u"?t(ir):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.async={}))})(ir,(function(e){"use strict";function t(f,...n){return(...u)=>f(...n,...u)}function r(f){return function(...n){var u=n.pop();return f.call(this,n,u)}}var i=typeof queueMicrotask=="function"&&queueMicrotask,a=typeof setImmediate=="function"&&setImmediate,o=typeof process=="object"&&typeof process.nextTick=="function";function l(f){setTimeout(f,0)}function y(f){return(n,...u)=>f(()=>n(...u))}var _;i?_=queueMicrotask:a?_=setImmediate:o?_=process.nextTick:_=l;var T=y(_);function x(f){return O(f)?function(...n){let u=n.pop(),s=f.apply(this,n);return M(s,u)}:r(function(n,u){var s;try{s=f.apply(this,n)}catch(h){return u(h)}if(s&&typeof s.then=="function")return M(s,u);u(null,s)})}function M(f,n){return f.then(u=>{L(n,null,u)},u=>{L(n,u&&(u instanceof Error||u.message)?u:new Error(u))})}function L(f,n,u){try{f(n,u)}catch(s){T(h=>{throw h},s)}}function O(f){return f[Symbol.toStringTag]==="AsyncFunction"}function H(f){return f[Symbol.toStringTag]==="AsyncGenerator"}function Q(f){return typeof f[Symbol.asyncIterator]=="function"}function b(f){if(typeof f!="function")throw new Error("expected a function");return O(f)?x(f):f}function S(f,n){if(n||(n=f.length),!n)throw new Error("arity is undefined");function u(...s){return typeof s[n-1]=="function"?f.apply(this,s):new Promise((h,c)=>{s[n-1]=(d,...p)=>{if(d)return c(d);h(p.length>1?p:p[0])},f.apply(this,s)})}return u}function ye(f){return function(u,...s){return S(function(c){var d=this;return f(u,(p,g)=>{b(p).apply(d,s.concat(g))},c)})}}function Br(f,n,u,s){n=n||[];var h=[],c=0,d=b(u);return f(n,(p,g,m)=>{var C=c++;d(p,(B,P)=>{h[C]=P,m(B)})},p=>{s(p,h)})}function xt(f){return f&&typeof f.length=="number"&&f.length>=0&&f.length%1===0}let Ct={};function ve(f){function n(...u){if(f!==null){var s=f;f=null,s.apply(this,u)}}return Object.assign(n,f),n}function Kf(f){return f[Symbol.iterator]&&f[Symbol.iterator]()}function Yf(f){var n=-1,u=f.length;return function(){return++n<u?{value:f[n],key:n}:null}}function Qf(f){var n=-1;return function(){var s=f.next();return s.done?null:(n++,{value:s.value,key:n})}}function Xf(f){var n=f?Object.keys(f):[],u=-1,s=n.length;return function h(){var c=n[++u];return c==="__proto__"?h():u<s?{value:f[c],key:c}:null}}function Zf(f){if(xt(f))return Yf(f);var n=Kf(f);return n?Qf(n):Xf(f)}function _e(f){return function(...n){if(f===null)throw new Error("Callback was already called.");var u=f;f=null,u.apply(this,n)}}function Vi(f,n,u,s){let h=!1,c=!1,d=!1,p=0,g=0;function m(){p>=n||d||h||(d=!0,f.next().then(({value:P,done:Z})=>{if(!(c||h)){if(d=!1,Z){h=!0,p<=0&&s(null);return}p++,u(P,g,C),g++,m()}}).catch(B))}function C(P,Z){if(p-=1,!c){if(P)return B(P);if(P===!1){h=!0,c=!0;return}if(Z===Ct||h&&p<=0)return h=!0,s(null);m()}}function B(P){c||(d=!1,h=!0,s(P))}m()}var ie=f=>(n,u,s)=>{if(s=ve(s),f<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!n)return s(null);if(H(n))return Vi(n,f,u,s);if(Q(n))return Vi(n[Symbol.asyncIterator](),f,u,s);var h=Zf(n),c=!1,d=!1,p=0,g=!1;function m(B,P){if(!d)if(p-=1,B)c=!0,s(B);else if(B===!1)c=!0,d=!0;else{if(P===Ct||c&&p<=0)return c=!0,s(null);g||C()}}function C(){for(g=!0;p<f&&!c;){var B=h();if(B===null){c=!0,p<=0&&s(null);return}p+=1,u(B.value,B.key,_e(m))}g=!1}C()};function Jf(f,n,u,s){return ie(n)(f,b(u),s)}var Be=S(Jf,4);function eu(f,n,u){u=ve(u);var s=0,h=0,{length:c}=f,d=!1;c===0&&u(null);function p(g,m){g===!1&&(d=!0),d!==!0&&(g?u(g):(++h===c||m===Ct)&&u(null))}for(;s<c;s++)n(f[s],s,_e(p))}function tu(f,n,u){return Be(f,1/0,n,u)}function ru(f,n,u){var s=xt(f)?eu:tu;return s(f,b(n),u)}var X=S(ru,3);function iu(f,n,u){return Br(X,f,n,u)}var Pt=S(iu,3),Ki=ye(Pt);function nu(f,n,u){return Be(f,1,n,u)}var ne=S(nu,3);function au(f,n,u){return Br(ne,f,n,u)}var Nr=S(au,3),Yi=ye(Nr);let Ne=Symbol("promiseCallback");function Ie(){let f,n;function u(s,...h){if(s)return n(s);f(h.length>1?h:h[0])}return u[Ne]=new Promise((s,h)=>{f=s,n=h}),u}function Ir(f,n,u){typeof n!="number"&&(u=n,n=null),u=ve(u||Ie());var s=Object.keys(f).length;if(!s)return u(null);n||(n=s);var h={},c=0,d=!1,p=!1,g=Object.create(null),m=[],C=[],B={};Object.keys(f).forEach(w=>{var R=f[w];if(!Array.isArray(R)){P(w,[R]),C.push(w);return}var D=R.slice(0,R.length-1),U=D.length;if(U===0){P(w,R),C.push(w);return}B[w]=U,D.forEach(z=>{if(!f[z])throw new Error("async.auto task `"+w+"` has a non-existent dependency `"+z+"` in "+D.join(", "));We(z,()=>{U--,U===0&&P(w,R)})})}),N(),Z();function P(w,R){m.push(()=>ut(w,R))}function Z(){if(!d){if(m.length===0&&c===0)return u(null,h);for(;m.length&&c<n;){var w=m.shift();w()}}}function We(w,R){var D=g[w];D||(D=g[w]=[]),D.push(R)}function Oe(w){var R=g[w]||[];R.forEach(D=>D()),Z()}function ut(w,R){if(!p){var D=_e((z,...J)=>{if(c--,z===!1){d=!0;return}if(J.length<2&&([J]=J),z){var Ue={};if(Object.keys(h).forEach(Me=>{Ue[Me]=h[Me]}),Ue[w]=J,p=!0,g=Object.create(null),d)return;u(z,Ue)}else h[w]=J,Oe(w)});c++;var U=b(R[R.length-1]);R.length>1?U(h,D):U(D)}}function N(){for(var w,R=0;C.length;)w=C.pop(),R++,E(w).forEach(D=>{--B[D]===0&&C.push(D)});if(R!==s)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}function E(w){var R=[];return Object.keys(f).forEach(D=>{let U=f[D];Array.isArray(U)&&U.indexOf(w)>=0&&R.push(D)}),R}return u[Ne]}var fu=/^(?:async\s)?(?:function)?\s*(?:\w+\s*)?\(([^)]+)\)(?:\s*{)/,uu=/^(?:async\s)?\s*(?:\(\s*)?((?:[^)=\s]\s*)*)(?:\)\s*)?=>/,ou=/,/,su=/(=.+)?(\s*)$/;function lu(f){let n="",u=0,s=f.indexOf("*/");for(;u<f.length;)if(f[u]==="/"&&f[u+1]==="/"){let h=f.indexOf(`
`,u);u=h===-1?f.length:h}else if(s!==-1&&f[u]==="/"&&f[u+1]==="*"){let h=f.indexOf("*/",u);h!==-1?(u=h+2,s=f.indexOf("*/",u)):(n+=f[u],u++)}else n+=f[u],u++;return n}function hu(f){let n=lu(f.toString()),u=n.match(fu);if(u||(u=n.match(uu)),!u)throw new Error(`could not parse args in autoInject
Source:
`+n);let[,s]=u;return s.replace(/\s/g,"").split(ou).map(h=>h.replace(su,"").trim())}function Qi(f,n){var u={};return Object.keys(f).forEach(s=>{var h=f[s],c,d=O(h),p=!d&&h.length===1||d&&h.length===0;if(Array.isArray(h))c=[...h],h=c.pop(),u[s]=c.concat(c.length>0?g:h);else if(p)u[s]=h;else{if(c=hu(h),h.length===0&&!d&&c.length===0)throw new Error("autoInject task functions require explicit parameters.");d||c.pop(),u[s]=c.concat(g)}function g(m,C){var B=c.map(P=>m[P]);B.push(C),b(h)(...B)}}),Ir(u,n)}class cu{constructor(){this.head=this.tail=null,this.length=0}removeLink(n){return n.prev?n.prev.next=n.next:this.head=n.next,n.next?n.next.prev=n.prev:this.tail=n.prev,n.prev=n.next=null,this.length-=1,n}empty(){for(;this.head;)this.shift();return this}insertAfter(n,u){u.prev=n,u.next=n.next,n.next?n.next.prev=u:this.tail=u,n.next=u,this.length+=1}insertBefore(n,u){u.prev=n.prev,u.next=n,n.prev?n.prev.next=u:this.head=u,n.prev=u,this.length+=1}unshift(n){this.head?this.insertBefore(this.head,n):Xi(this,n)}push(n){this.tail?this.insertAfter(this.tail,n):Xi(this,n)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var n=this.head;n;)yield n.data,n=n.next}remove(n){for(var u=this.head;u;){var{next:s}=u;n(u)&&this.removeLink(u),u=s}return this}}function Xi(f,n){f.length=1,f.head=f.tail=n}function kr(f,n,u){if(n==null)n=1;else if(n===0)throw new RangeError("Concurrency must not be zero");var s=b(f),h=0,c=[];let d={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function p(E,w){d[E].push(w)}function g(E,w){let R=(...D)=>{m(E,R),w(...D)};d[E].push(R)}function m(E,w){if(!E)return Object.keys(d).forEach(R=>d[R]=[]);if(!w)return d[E]=[];d[E]=d[E].filter(R=>R!==w)}function C(E,...w){d[E].forEach(R=>R(...w))}var B=!1;function P(E,w,R,D){if(D!=null&&typeof D!="function")throw new Error("task callback must be a function");N.started=!0;var U,z;function J(Me,...ot){if(Me)return R?z(Me):U();if(ot.length<=1)return U(ot[0]);U(ot)}var Ue=N._createTaskItem(E,R?J:D||J);if(w?N._tasks.unshift(Ue):N._tasks.push(Ue),B||(B=!0,T(()=>{B=!1,N.process()})),R||!D)return new Promise((Me,ot)=>{U=Me,z=ot})}function Z(E){return function(w,...R){h-=1;for(var D=0,U=E.length;D<U;D++){var z=E[D],J=c.indexOf(z);J===0?c.shift():J>0&&c.splice(J,1),z.callback(w,...R),w!=null&&C("error",w,z.data)}h<=N.concurrency-N.buffer&&C("unsaturated"),N.idle()&&C("drain"),N.process()}}function We(E){return E.length===0&&N.idle()?(T(()=>C("drain")),!0):!1}let Oe=E=>w=>{if(!w)return new Promise((R,D)=>{g(E,(U,z)=>{if(U)return D(U);R(z)})});m(E),p(E,w)};var ut=!1,N={_tasks:new cu,_createTaskItem(E,w){return{data:E,callback:w}},*[Symbol.iterator](){yield*N._tasks[Symbol.iterator]()},concurrency:n,payload:u,buffer:n/4,started:!1,paused:!1,push(E,w){return Array.isArray(E)?We(E)?void 0:E.map(R=>P(R,!1,!1,w)):P(E,!1,!1,w)},pushAsync(E,w){return Array.isArray(E)?We(E)?void 0:E.map(R=>P(R,!1,!0,w)):P(E,!1,!0,w)},kill(){m(),N._tasks.empty()},unshift(E,w){return Array.isArray(E)?We(E)?void 0:E.map(R=>P(R,!0,!1,w)):P(E,!0,!1,w)},unshiftAsync(E,w){return Array.isArray(E)?We(E)?void 0:E.map(R=>P(R,!0,!0,w)):P(E,!0,!0,w)},remove(E){N._tasks.remove(E)},process(){if(!ut){for(ut=!0;!N.paused&&h<N.concurrency&&N._tasks.length;){var E=[],w=[],R=N._tasks.length;N.payload&&(R=Math.min(R,N.payload));for(var D=0;D<R;D++){var U=N._tasks.shift();E.push(U),c.push(U),w.push(U.data)}h+=1,N._tasks.length===0&&C("empty"),h===N.concurrency&&C("saturated");var z=_e(Z(E));s(w,z)}ut=!1}},length(){return N._tasks.length},running(){return h},workersList(){return c},idle(){return N._tasks.length+h===0},pause(){N.paused=!0},resume(){N.paused!==!1&&(N.paused=!1,T(N.process))}};return Object.defineProperties(N,{saturated:{writable:!1,value:Oe("saturated")},unsaturated:{writable:!1,value:Oe("unsaturated")},empty:{writable:!1,value:Oe("empty")},drain:{writable:!1,value:Oe("drain")},error:{writable:!1,value:Oe("error")}}),N}function Zi(f,n){return kr(f,1,n)}function Ji(f,n,u){return kr(f,n,u)}function du(f,n,u,s){s=ve(s);var h=b(u);return ne(f,(c,d,p)=>{h(n,c,(g,m)=>{n=m,p(g)})},c=>s(c,n))}var we=S(du,4);function Wr(...f){var n=f.map(b);return function(...u){var s=this,h=u[u.length-1];return typeof h=="function"?u.pop():h=Ie(),we(n,u,(c,d,p)=>{d.apply(s,c.concat((g,...m)=>{p(g,m)}))},(c,d)=>h(c,...d)),h[Ne]}}function en(...f){return Wr(...f.reverse())}function pu(f,n,u,s){return Br(ie(n),f,u,s)}var rt=S(pu,4);function gu(f,n,u,s){var h=b(u);return rt(f,n,(c,d)=>{h(c,(p,...g)=>p?d(p):d(p,g))},(c,d)=>{for(var p=[],g=0;g<d.length;g++)d[g]&&(p=p.concat(...d[g]));return s(c,p)})}var ke=S(gu,4);function yu(f,n,u){return ke(f,1/0,n,u)}var Dt=S(yu,3);function vu(f,n,u){return ke(f,1,n,u)}var jt=S(vu,3);function tn(...f){return function(...n){var u=n.pop();return u(null,...f)}}function le(f,n){return(u,s,h,c)=>{var d=!1,p;let g=b(h);u(s,(m,C,B)=>{g(m,(P,Z)=>{if(P||P===!1)return B(P);if(f(Z)&&!p)return d=!0,p=n(!0,m),B(null,Ct);B()})},m=>{if(m)return c(m);c(null,d?p:n(!1))})}}function _u(f,n,u){return le(s=>s,(s,h)=>h)(X,f,n,u)}var Bt=S(_u,3);function wu(f,n,u,s){return le(h=>h,(h,c)=>c)(ie(n),f,u,s)}var Nt=S(wu,4);function mu(f,n,u){return le(s=>s,(s,h)=>h)(ie(1),f,n,u)}var It=S(mu,3);function rn(f){return(n,...u)=>b(n)(...u,(s,...h)=>{typeof console=="object"&&(s?console.error&&console.error(s):console[f]&&h.forEach(c=>console[f](c)))})}var nn=rn("dir");function bu(f,n,u){u=_e(u);var s=b(f),h=b(n),c;function d(g,...m){if(g)return u(g);g!==!1&&(c=m,h(...m,p))}function p(g,m){if(g)return u(g);if(g!==!1){if(!m)return u(null,...c);s(d)}}return p(null,!0)}var it=S(bu,3);function an(f,n,u){let s=b(n);return it(f,(...h)=>{let c=h.pop();s(...h,(d,p)=>c(d,!p))},u)}function fn(f){return(n,u,s)=>f(n,s)}function Su(f,n,u){return X(f,fn(b(n)),u)}var kt=S(Su,3);function Eu(f,n,u,s){return ie(n)(f,fn(b(u)),s)}var nt=S(Eu,4);function Ru(f,n,u){return nt(f,1,n,u)}var at=S(Ru,3);function Ur(f){return O(f)?f:function(...n){var u=n.pop(),s=!0;n.push((...h)=>{s?T(()=>u(...h)):u(...h)}),f.apply(this,n),s=!1}}function Tu(f,n,u){return le(s=>!s,s=>!s)(X,f,n,u)}var Wt=S(Tu,3);function Lu(f,n,u,s){return le(h=>!h,h=>!h)(ie(n),f,u,s)}var Ut=S(Lu,4);function Ou(f,n,u){return le(s=>!s,s=>!s)(ne,f,n,u)}var Ft=S(Ou,3);function Mu(f,n,u,s){var h=new Array(n.length);f(n,(c,d,p)=>{u(c,(g,m)=>{h[d]=!!m,p(g)})},c=>{if(c)return s(c);for(var d=[],p=0;p<n.length;p++)h[p]&&d.push(n[p]);s(null,d)})}function Au(f,n,u,s){var h=[];f(n,(c,d,p)=>{u(c,(g,m)=>{if(g)return p(g);m&&h.push({index:d,value:c}),p(g)})},c=>{if(c)return s(c);s(null,h.sort((d,p)=>d.index-p.index).map(d=>d.value))})}function $t(f,n,u,s){var h=xt(n)?Mu:Au;return h(f,n,b(u),s)}function qu(f,n,u){return $t(X,f,n,u)}var Ht=S(qu,3);function xu(f,n,u,s){return $t(ie(n),f,u,s)}var Gt=S(xu,4);function Cu(f,n,u){return $t(ne,f,n,u)}var zt=S(Cu,3);function Pu(f,n){var u=_e(n),s=b(Ur(f));function h(c){if(c)return u(c);c!==!1&&s(h)}return h()}var un=S(Pu,2);function Du(f,n,u,s){var h=b(u);return rt(f,n,(c,d)=>{h(c,(p,g)=>p?d(p):d(p,{key:g,val:c}))},(c,d)=>{for(var p={},{hasOwnProperty:g}=Object.prototype,m=0;m<d.length;m++)if(d[m]){var{key:C}=d[m],{val:B}=d[m];g.call(p,C)?p[C].push(B):p[C]=[B]}return s(c,p)})}var Vt=S(Du,4);function on(f,n,u){return Vt(f,1/0,n,u)}function sn(f,n,u){return Vt(f,1,n,u)}var ln=rn("log");function ju(f,n,u,s){s=ve(s);var h={},c=b(u);return ie(n)(f,(d,p,g)=>{c(d,p,(m,C)=>{if(m)return g(m);h[p]=C,g(m)})},d=>s(d,h))}var Kt=S(ju,4);function hn(f,n,u){return Kt(f,1/0,n,u)}function cn(f,n,u){return Kt(f,1,n,u)}function dn(f,n=u=>u){var u=Object.create(null),s=Object.create(null),h=b(f),c=r((d,p)=>{var g=n(...d);g in u?T(()=>p(null,...u[g])):g in s?s[g].push(p):(s[g]=[p],h(...d,(m,...C)=>{m||(u[g]=C);var B=s[g];delete s[g];for(var P=0,Z=B.length;P<Z;P++)B[P](m,...C)}))});return c.memo=u,c.unmemoized=f,c}var Yt;o?Yt=process.nextTick:a?Yt=setImmediate:Yt=l;var pn=y(Yt),Fr=S((f,n,u)=>{var s=xt(n)?[]:{};f(n,(h,c,d)=>{b(h)((p,...g)=>{g.length<2&&([g]=g),s[c]=g,d(p)})},h=>u(h,s))},3);function gn(f,n){return Fr(X,f,n)}function yn(f,n,u){return Fr(ie(n),f,u)}function $r(f,n){var u=b(f);return kr((s,h)=>{u(s[0],h)},n,1)}class Bu{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(n){let u;for(;n>0&&Hr(this.heap[n],this.heap[u=vn(n)]);){let s=this.heap[n];this.heap[n]=this.heap[u],this.heap[u]=s,n=u}}percDown(n){let u;for(;(u=Nu(n))<this.heap.length&&(u+1<this.heap.length&&Hr(this.heap[u+1],this.heap[u])&&(u=u+1),!Hr(this.heap[n],this.heap[u]));){let s=this.heap[n];this.heap[n]=this.heap[u],this.heap[u]=s,n=u}}push(n){n.pushCount=++this.pushCount,this.heap.push(n),this.percUp(this.heap.length-1)}unshift(n){return this.heap.push(n)}shift(){let[n]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),n}toArray(){return[...this]}*[Symbol.iterator](){for(let n=0;n<this.heap.length;n++)yield this.heap[n].data}remove(n){let u=0;for(let s=0;s<this.heap.length;s++)n(this.heap[s])||(this.heap[u]=this.heap[s],u++);this.heap.splice(u);for(let s=vn(this.heap.length-1);s>=0;s--)this.percDown(s);return this}}function Nu(f){return(f<<1)+1}function vn(f){return(f+1>>1)-1}function Hr(f,n){return f.priority!==n.priority?f.priority<n.priority:f.pushCount<n.pushCount}function _n(f,n){var u=$r(f,n),{push:s,pushAsync:h}=u;u._tasks=new Bu,u._createTaskItem=({data:d,priority:p},g)=>({data:d,priority:p,callback:g});function c(d,p){return Array.isArray(d)?d.map(g=>({data:g,priority:p})):{data:d,priority:p}}return u.push=function(d,p=0,g){return s(c(d,p),g)},u.pushAsync=function(d,p=0,g){return h(c(d,p),g)},delete u.unshift,delete u.unshiftAsync,u}function Iu(f,n){if(n=ve(n),!Array.isArray(f))return n(new TypeError("First argument to race must be an array of functions"));if(!f.length)return n();for(var u=0,s=f.length;u<s;u++)b(f[u])(n)}var wn=S(Iu,2);function Qt(f,n,u,s){var h=[...f].reverse();return we(h,n,u,s)}function Xt(f){var n=b(f);return r(function(s,h){return s.push((c,...d)=>{let p={};if(c&&(p.error=c),d.length>0){var g=d;d.length<=1&&([g]=d),p.value=g}h(null,p)}),n.apply(this,s)})}function mn(f){var n;return Array.isArray(f)?n=f.map(Xt):(n={},Object.keys(f).forEach(u=>{n[u]=Xt.call(this,f[u])})),n}function Gr(f,n,u,s){let h=b(u);return $t(f,n,(c,d)=>{h(c,(p,g)=>{d(p,!g)})},s)}function ku(f,n,u){return Gr(X,f,n,u)}var bn=S(ku,3);function Wu(f,n,u,s){return Gr(ie(n),f,u,s)}var Sn=S(Wu,4);function Uu(f,n,u){return Gr(ne,f,n,u)}var En=S(Uu,3);function Rn(f){return function(){return f}}let zr=5,Tn=0;function Zt(f,n,u){var s={times:zr,intervalFunc:Rn(Tn)};if(arguments.length<3&&typeof f=="function"?(u=n||Ie(),n=f):(Fu(s,f),u=u||Ie()),typeof n!="function")throw new Error("Invalid arguments for async.retry");var h=b(n),c=1;function d(){h((p,...g)=>{p!==!1&&(p&&c++<s.times&&(typeof s.errorFilter!="function"||s.errorFilter(p))?setTimeout(d,s.intervalFunc(c-1)):u(p,...g))})}return d(),u[Ne]}function Fu(f,n){if(typeof n=="object")f.times=+n.times||zr,f.intervalFunc=typeof n.interval=="function"?n.interval:Rn(+n.interval||Tn),f.errorFilter=n.errorFilter;else if(typeof n=="number"||typeof n=="string")f.times=+n||zr;else throw new Error("Invalid arguments for async.retry")}function Ln(f,n){n||(n=f,f=null);let u=f&&f.arity||n.length;O(n)&&(u+=1);var s=b(n);return r((h,c)=>{(h.length<u-1||c==null)&&(h.push(c),c=Ie());function d(p){s(...h,p)}return f?Zt(f,d,c):Zt(d,c),c[Ne]})}function On(f,n){return Fr(ne,f,n)}function $u(f,n,u){return le(Boolean,s=>s)(X,f,n,u)}var Jt=S($u,3);function Hu(f,n,u,s){return le(Boolean,h=>h)(ie(n),f,u,s)}var er=S(Hu,4);function Gu(f,n,u){return le(Boolean,s=>s)(ne,f,n,u)}var tr=S(Gu,3);function zu(f,n,u){var s=b(n);return Pt(f,(c,d)=>{s(c,(p,g)=>{if(p)return d(p);d(p,{value:c,criteria:g})})},(c,d)=>{if(c)return u(c);u(null,d.sort(h).map(p=>p.value))});function h(c,d){var p=c.criteria,g=d.criteria;return p<g?-1:p>g?1:0}}var Mn=S(zu,3);function An(f,n,u){var s=b(f);return r((h,c)=>{var d=!1,p;function g(){var m=f.name||"anonymous",C=new Error('Callback function "'+m+'" timed out.');C.code="ETIMEDOUT",u&&(C.info=u),d=!0,c(C)}h.push((...m)=>{d||(c(...m),clearTimeout(p))}),p=setTimeout(g,n),s(...h)})}function Vu(f){for(var n=Array(f);f--;)n[f]=f;return n}function rr(f,n,u,s){var h=b(u);return rt(Vu(f),n,h,s)}function qn(f,n,u){return rr(f,1/0,n,u)}function xn(f,n,u){return rr(f,1,n,u)}function Cn(f,n,u,s){arguments.length<=3&&typeof n=="function"&&(s=u,u=n,n=Array.isArray(f)?[]:{}),s=ve(s||Ie());var h=b(u);return X(f,(c,d,p)=>{h(n,c,d,p)},c=>s(c,n)),s[Ne]}function Ku(f,n){var u=null,s;return at(f,(h,c)=>{b(h)((d,...p)=>{if(d===!1)return c(d);p.length<2?[s]=p:s=p,u=d,c(d?null:{})})},()=>n(u,s))}var Pn=S(Ku);function Dn(f){return(...n)=>(f.unmemoized||f)(...n)}function Yu(f,n,u){u=_e(u);var s=b(n),h=b(f),c=[];function d(g,...m){if(g)return u(g);c=m,g!==!1&&h(p)}function p(g,m){if(g)return u(g);if(g!==!1){if(!m)return u(null,...c);s(d)}}return h(p)}var ft=S(Yu,3);function jn(f,n,u){let s=b(f);return ft(h=>s((c,d)=>h(c,!d)),n,u)}function Qu(f,n){if(n=ve(n),!Array.isArray(f))return n(new Error("First argument to waterfall must be an array of functions"));if(!f.length)return n();var u=0;function s(c){var d=b(f[u++]);d(...c,_e(h))}function h(c,...d){if(c!==!1){if(c||u===f.length)return n(c,...d);s(d)}}s([])}var Bn=S(Qu),Xu={apply:t,applyEach:Ki,applyEachSeries:Yi,asyncify:x,auto:Ir,autoInject:Qi,cargo:Zi,cargoQueue:Ji,compose:en,concat:Dt,concatLimit:ke,concatSeries:jt,constant:tn,detect:Bt,detectLimit:Nt,detectSeries:It,dir:nn,doUntil:an,doWhilst:it,each:kt,eachLimit:nt,eachOf:X,eachOfLimit:Be,eachOfSeries:ne,eachSeries:at,ensureAsync:Ur,every:Wt,everyLimit:Ut,everySeries:Ft,filter:Ht,filterLimit:Gt,filterSeries:zt,forever:un,groupBy:on,groupByLimit:Vt,groupBySeries:sn,log:ln,map:Pt,mapLimit:rt,mapSeries:Nr,mapValues:hn,mapValuesLimit:Kt,mapValuesSeries:cn,memoize:dn,nextTick:pn,parallel:gn,parallelLimit:yn,priorityQueue:_n,queue:$r,race:wn,reduce:we,reduceRight:Qt,reflect:Xt,reflectAll:mn,reject:bn,rejectLimit:Sn,rejectSeries:En,retry:Zt,retryable:Ln,seq:Wr,series:On,setImmediate:T,some:Jt,someLimit:er,someSeries:tr,sortBy:Mn,timeout:An,times:qn,timesLimit:rr,timesSeries:xn,transform:Cn,tryEach:Pn,unmemoize:Dn,until:jn,waterfall:Bn,whilst:ft,all:Wt,allLimit:Ut,allSeries:Ft,any:Jt,anyLimit:er,anySeries:tr,find:Bt,findLimit:Nt,findSeries:It,flatMap:Dt,flatMapLimit:ke,flatMapSeries:jt,forEach:kt,forEachSeries:at,forEachLimit:nt,forEachOf:X,forEachOfSeries:ne,forEachOfLimit:Be,inject:we,foldl:we,foldr:Qt,select:Ht,selectLimit:Gt,selectSeries:zt,wrapSync:x,during:ft,doDuring:it};e.all=Wt,e.allLimit=Ut,e.allSeries=Ft,e.any=Jt,e.anyLimit=er,e.anySeries=tr,e.apply=t,e.applyEach=Ki,e.applyEachSeries=Yi,e.asyncify=x,e.auto=Ir,e.autoInject=Qi,e.cargo=Zi,e.cargoQueue=Ji,e.compose=en,e.concat=Dt,e.concatLimit=ke,e.concatSeries=jt,e.constant=tn,e.default=Xu,e.detect=Bt,e.detectLimit=Nt,e.detectSeries=It,e.dir=nn,e.doDuring=it,e.doUntil=an,e.doWhilst=it,e.during=ft,e.each=kt,e.eachLimit=nt,e.eachOf=X,e.eachOfLimit=Be,e.eachOfSeries=ne,e.eachSeries=at,e.ensureAsync=Ur,e.every=Wt,e.everyLimit=Ut,e.everySeries=Ft,e.filter=Ht,e.filterLimit=Gt,e.filterSeries=zt,e.find=Bt,e.findLimit=Nt,e.findSeries=It,e.flatMap=Dt,e.flatMapLimit=ke,e.flatMapSeries=jt,e.foldl=we,e.foldr=Qt,e.forEach=kt,e.forEachLimit=nt,e.forEachOf=X,e.forEachOfLimit=Be,e.forEachOfSeries=ne,e.forEachSeries=at,e.forever=un,e.groupBy=on,e.groupByLimit=Vt,e.groupBySeries=sn,e.inject=we,e.log=ln,e.map=Pt,e.mapLimit=rt,e.mapSeries=Nr,e.mapValues=hn,e.mapValuesLimit=Kt,e.mapValuesSeries=cn,e.memoize=dn,e.nextTick=pn,e.parallel=gn,e.parallelLimit=yn,e.priorityQueue=_n,e.queue=$r,e.race=wn,e.reduce=we,e.reduceRight=Qt,e.reflect=Xt,e.reflectAll=mn,e.reject=bn,e.rejectLimit=Sn,e.rejectSeries=En,e.retry=Zt,e.retryable=Ln,e.select=Ht,e.selectLimit=Gt,e.selectSeries=zt,e.seq=Wr,e.series=On,e.setImmediate=T,e.some=Jt,e.someLimit=er,e.someSeries=tr,e.sortBy=Mn,e.timeout=An,e.times=qn,e.timesLimit=rr,e.timesSeries=xn,e.transform=Cn,e.tryEach=Pn,e.unmemoize=Dn,e.until=jn,e.waterfall=Bn,e.whilst=ft,e.wrapSync=x,Object.defineProperty(e,"__esModule",{value:!0})}))});var Vr=A((Qh,kn)=>{v();kn.exports=$("stream")});var Gn=A((Zh,Hn)=>{"use strict";v();function Wn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,i)}return r}function Un(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wn(Object(r),!0).forEach(function(i){to(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wn(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function to(e,t,r){return t=$n(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ro(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fn(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,$n(i.key),i)}}function io(e,t,r){return t&&Fn(e.prototype,t),r&&Fn(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function $n(e){var t=no(e,"string");return typeof t=="symbol"?t:String(t)}function no(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ao=$("buffer"),nr=ao.Buffer,fo=$("util"),Kr=fo.inspect,uo=Kr&&Kr.custom||"inspect";function oo(e,t,r){nr.prototype.copy.call(e,t,r)}Hn.exports=(function(){function e(){ro(this,e),this.head=null,this.tail=null,this.length=0}return io(e,[{key:"push",value:function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var i=this.head,a=""+i.data;i=i.next;)a+=r+i.data;return a}},{key:"concat",value:function(r){if(this.length===0)return nr.alloc(0);for(var i=nr.allocUnsafe(r>>>0),a=this.head,o=0;a;)oo(a.data,i,o),o+=a.data.length,a=a.next;return i}},{key:"consume",value:function(r,i){var a;return r<this.head.data.length?(a=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?a=this.shift():a=i?this._getString(r):this._getBuffer(r),a}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var i=this.head,a=1,o=i.data;for(r-=o.length;i=i.next;){var l=i.data,y=r>l.length?l.length:r;if(y===l.length?o+=l:o+=l.slice(0,r),r-=y,r===0){y===l.length?(++a,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=l.slice(y));break}++a}return this.length-=a,o}},{key:"_getBuffer",value:function(r){var i=nr.allocUnsafe(r),a=this.head,o=1;for(a.data.copy(i),r-=a.data.length;a=a.next;){var l=a.data,y=r>l.length?l.length:r;if(l.copy(i,i.length-r,0,y),r-=y,r===0){y===l.length?(++o,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=l.slice(y));break}++o}return this.length-=o,i}},{key:uo,value:function(r,i){return Kr(this,Un(Un({},i),{},{depth:0,customInspect:!1}))}}]),e})()});var Qr=A((ec,Vn)=>{"use strict";v();function so(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return i||a?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(Yr,this,e)):process.nextTick(Yr,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(o){!t&&o?r._writableState?r._writableState.errorEmitted?process.nextTick(ar,r):(r._writableState.errorEmitted=!0,process.nextTick(zn,r,o)):process.nextTick(zn,r,o):t?(process.nextTick(ar,r),t(o)):process.nextTick(ar,r)}),this)}function zn(e,t){Yr(e,t),ar(e)}function ar(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function lo(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Yr(e,t){e.emit("error",t)}function ho(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}Vn.exports={destroy:so,undestroy:lo,errorOrDestroy:ho}});var me=A((rc,Qn)=>{"use strict";v();var Yn={};function te(e,t,r){r||(r=Error);function i(o,l,y){return typeof t=="string"?t:t(o,l,y)}class a extends r{constructor(l,y,_){super(i(l,y,_))}}a.prototype.name=r.name,a.prototype.code=e,Yn[e]=a}function Kn(e,t){if(Array.isArray(e)){let r=e.length;return e=e.map(i=>String(i)),r>2?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:r===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}else return`of ${t} ${String(e)}`}function co(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function po(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function go(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}te("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);te("ERR_INVALID_ARG_TYPE",function(e,t,r){let i;typeof t=="string"&&co(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";let a;if(po(e," argument"))a=`The ${e} ${i} ${Kn(t,"type")}`;else{let o=go(e,".")?"property":"argument";a=`The "${e}" ${o} ${i} ${Kn(t,"type")}`}return a+=`. Received type ${typeof r}`,a},TypeError);te("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");te("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});te("ERR_STREAM_PREMATURE_CLOSE","Premature close");te("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});te("ERR_MULTIPLE_CALLBACK","Callback called multiple times");te("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");te("ERR_STREAM_WRITE_AFTER_END","write after end");te("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);te("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);te("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Qn.exports.codes=Yn});var Xr=A((nc,Xn)=>{"use strict";v();var yo=me().codes.ERR_INVALID_OPT_VALUE;function vo(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function _o(e,t,r,i){var a=vo(t,i,r);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var o=i?r:"highWaterMark";throw new yo(o,a)}return Math.floor(a)}return e.objectMode?16:16*1024}Xn.exports={getHighWaterMark:_o}});var ei=A((fc,ia)=>{"use strict";v();ia.exports=F;function Jn(e){var t=this;this.next=null,this.entry=null,this.finish=function(){Go(t,e)}}var Fe;F.WritableState=lt;var wo={deprecate:Nn()},ea=Vr(),ur=$("buffer").Buffer,mo=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function bo(e){return ur.from(e)}function So(e){return ur.isBuffer(e)||e instanceof mo}var Jr=Qr(),Eo=Xr(),Ro=Eo.getHighWaterMark,be=me().codes,To=be.ERR_INVALID_ARG_TYPE,Lo=be.ERR_METHOD_NOT_IMPLEMENTED,Oo=be.ERR_MULTIPLE_CALLBACK,Mo=be.ERR_STREAM_CANNOT_PIPE,Ao=be.ERR_STREAM_DESTROYED,qo=be.ERR_STREAM_NULL_VALUES,xo=be.ERR_STREAM_WRITE_AFTER_END,Co=be.ERR_UNKNOWN_ENCODING,$e=Jr.errorOrDestroy;ee()(F,ea);function Po(){}function lt(e,t,r){Fe=Fe||Ae(),e=e||{},typeof r!="boolean"&&(r=t instanceof Fe),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=Ro(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=e.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){Wo(t,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Jn(this)}lt.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(lt.prototype,"buffer",{get:wo.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var fr;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(fr=Function.prototype[Symbol.hasInstance],Object.defineProperty(F,Symbol.hasInstance,{value:function(t){return fr.call(this,t)?!0:this!==F?!1:t&&t._writableState instanceof lt}})):fr=function(t){return t instanceof this};function F(e){Fe=Fe||Ae();var t=this instanceof Fe;if(!t&&!fr.call(F,this))return new F(e);this._writableState=new lt(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),ea.call(this)}F.prototype.pipe=function(){$e(this,new Mo)};function Do(e,t){var r=new xo;$e(e,r),process.nextTick(t,r)}function jo(e,t,r,i){var a;return r===null?a=new qo:typeof r!="string"&&!t.objectMode&&(a=new To("chunk",["string","Buffer"],r)),a?($e(e,a),process.nextTick(i,a),!1):!0}F.prototype.write=function(e,t,r){var i=this._writableState,a=!1,o=!i.objectMode&&So(e);return o&&!ur.isBuffer(e)&&(e=bo(e)),typeof t=="function"&&(r=t,t=null),o?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=Po),i.ending?Do(this,r):(o||jo(this,i,e,r))&&(i.pendingcb++,a=No(this,i,o,e,t,r)),a};F.prototype.cork=function(){this._writableState.corked++};F.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&ta(this,e))};F.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new Co(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(F.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Bo(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=ur.from(t,r)),t}Object.defineProperty(F.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function No(e,t,r,i,a,o){if(!r){var l=Bo(t,i,a);i!==l&&(r=!0,a="buffer",i=l)}var y=t.objectMode?1:i.length;t.length+=y;var _=t.length<t.highWaterMark;if(_||(t.needDrain=!0),t.writing||t.corked){var T=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:a,isBuf:r,callback:o,next:null},T?T.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Zr(e,t,!1,y,i,a,o);return _}function Zr(e,t,r,i,a,o,l){t.writelen=i,t.writecb=l,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new Ao("write")):r?e._writev(a,t.onwrite):e._write(a,o,t.onwrite),t.sync=!1}function Io(e,t,r,i,a){--t.pendingcb,r?(process.nextTick(a,i),process.nextTick(st,e,t),e._writableState.errorEmitted=!0,$e(e,i)):(a(i),e._writableState.errorEmitted=!0,$e(e,i),st(e,t))}function ko(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function Wo(e,t){var r=e._writableState,i=r.sync,a=r.writecb;if(typeof a!="function")throw new Oo;if(ko(r),t)Io(e,r,i,t,a);else{var o=ra(r)||e.destroyed;!o&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&ta(e,r),i?process.nextTick(Zn,e,r,o,a):Zn(e,r,o,a)}}function Zn(e,t,r,i){r||Uo(e,t),t.pendingcb--,i(),st(e,t)}function Uo(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function ta(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,a=new Array(i),o=t.corkedRequestsFree;o.entry=r;for(var l=0,y=!0;r;)a[l]=r,r.isBuf||(y=!1),r=r.next,l+=1;a.allBuffers=y,Zr(e,t,!0,t.length,a,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new Jn(t),t.bufferedRequestCount=0}else{for(;r;){var _=r.chunk,T=r.encoding,x=r.callback,M=t.objectMode?1:_.length;if(Zr(e,t,!1,M,_,T,x),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}F.prototype._write=function(e,t,r){r(new Lo("_write()"))};F.prototype._writev=null;F.prototype.end=function(e,t,r){var i=this._writableState;return typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||Ho(this,i,r),this};Object.defineProperty(F.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function ra(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function Fo(e,t){e._final(function(r){t.pendingcb--,r&&$e(e,r),t.prefinished=!0,e.emit("prefinish"),st(e,t)})}function $o(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,process.nextTick(Fo,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function st(e,t){var r=ra(t);if(r&&($o(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return r}function Ho(e,t,r){t.ending=!0,st(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function Go(e,t,r){var i=e.entry;for(e.entry=null;i;){var a=i.callback;t.pendingcb--,a(r),i=i.next}t.corkedRequestsFree.next=e}Object.defineProperty(F.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}});F.prototype.destroy=Jr.destroy;F.prototype._undestroy=Jr.undestroy;F.prototype._destroy=function(e,t){t(e)}});var Ae=A((oc,aa)=>{"use strict";v();var zo=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};aa.exports=fe;var na=ii(),ri=ei();ee()(fe,na);for(ti=zo(ri.prototype),or=0;or<ti.length;or++)sr=ti[or],fe.prototype[sr]||(fe.prototype[sr]=ri.prototype[sr]);var ti,sr,or;function fe(e){if(!(this instanceof fe))return new fe(e);na.call(this,e),ri.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",Vo)))}Object.defineProperty(fe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(fe.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(fe.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Vo(){this._writableState.ended||process.nextTick(Ko,this)}function Ko(e){e.end()}Object.defineProperty(fe.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}})});var oa=A((ni,ua)=>{v();var lr=$("buffer"),ue=lr.Buffer;function fa(e,t){for(var r in e)t[r]=e[r]}ue.from&&ue.alloc&&ue.allocUnsafe&&ue.allocUnsafeSlow?ua.exports=lr:(fa(lr,ni),ni.Buffer=qe);function qe(e,t,r){return ue(e,t,r)}qe.prototype=Object.create(ue.prototype);fa(ue,qe);qe.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return ue(e,t,r)};qe.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=ue(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};qe.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return ue(e)};qe.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return lr.SlowBuffer(e)}});var ui=A(la=>{"use strict";v();var fi=oa().Buffer,sa=fi.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Yo(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function Qo(e){var t=Yo(e);if(typeof t!="string"&&(fi.isEncoding===sa||!sa(e)))throw new Error("Unknown encoding: "+e);return t||e}la.StringDecoder=ht;function ht(e){this.encoding=Qo(e);var t;switch(this.encoding){case"utf16le":this.text=rs,this.end=is,t=4;break;case"utf8":this.fillLast=Jo,t=4;break;case"base64":this.text=ns,this.end=as,t=3;break;default:this.write=fs,this.end=us;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=fi.allocUnsafe(t)}ht.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};ht.prototype.end=ts;ht.prototype.text=es;ht.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function ai(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function Xo(e,t,r){var i=t.length-1;if(i<r)return 0;var a=ai(t[i]);return a>=0?(a>0&&(e.lastNeed=a-1),a):--i<r||a===-2?0:(a=ai(t[i]),a>=0?(a>0&&(e.lastNeed=a-2),a):--i<r||a===-2?0:(a=ai(t[i]),a>=0?(a>0&&(a===2?a=0:e.lastNeed=a-3),a):0))}function Zo(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function Jo(e){var t=this.lastTotal-this.lastNeed,r=Zo(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function es(e,t){var r=Xo(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)}function ts(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function rs(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function is(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function ns(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function as(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function fs(e){return e.toString(this.encoding)}function us(e){return e&&e.length?this.write(e):""}});var hr=A((dc,da)=>{"use strict";v();var ha=me().codes.ERR_STREAM_PREMATURE_CLOSE;function os(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];e.apply(this,i)}}}function ss(){}function ls(e){return e.setHeader&&typeof e.abort=="function"}function ca(e,t,r){if(typeof t=="function")return ca(e,null,t);t||(t={}),r=os(r||ss);var i=t.readable||t.readable!==!1&&e.readable,a=t.writable||t.writable!==!1&&e.writable,o=function(){e.writable||y()},l=e._writableState&&e._writableState.finished,y=function(){a=!1,l=!0,i||r.call(e)},_=e._readableState&&e._readableState.endEmitted,T=function(){i=!1,_=!0,a||r.call(e)},x=function(H){r.call(e,H)},M=function(){var H;if(i&&!_)return(!e._readableState||!e._readableState.ended)&&(H=new ha),r.call(e,H);if(a&&!l)return(!e._writableState||!e._writableState.ended)&&(H=new ha),r.call(e,H)},L=function(){e.req.on("finish",y)};return ls(e)?(e.on("complete",y),e.on("abort",M),e.req?L():e.on("request",L)):a&&!e._writableState&&(e.on("end",o),e.on("close",o)),e.on("end",T),e.on("finish",y),t.error!==!1&&e.on("error",x),e.on("close",M),function(){e.removeListener("complete",y),e.removeListener("abort",M),e.removeListener("request",L),e.req&&e.req.removeListener("finish",y),e.removeListener("end",o),e.removeListener("close",o),e.removeListener("finish",y),e.removeListener("end",T),e.removeListener("error",x),e.removeListener("close",M)}}da.exports=ca});var ga=A((gc,pa)=>{"use strict";v();var cr;function Se(e,t,r){return t=hs(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hs(e){var t=cs(e,"string");return typeof t=="symbol"?t:String(t)}function cs(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ds=hr(),Ee=Symbol("lastResolve"),xe=Symbol("lastReject"),ct=Symbol("error"),dr=Symbol("ended"),Ce=Symbol("lastPromise"),oi=Symbol("handlePromise"),Pe=Symbol("stream");function Re(e,t){return{value:e,done:t}}function ps(e){var t=e[Ee];if(t!==null){var r=e[Pe].read();r!==null&&(e[Ce]=null,e[Ee]=null,e[xe]=null,t(Re(r,!1)))}}function gs(e){process.nextTick(ps,e)}function ys(e,t){return function(r,i){e.then(function(){if(t[dr]){r(Re(void 0,!0));return}t[oi](r,i)},i)}}var vs=Object.getPrototypeOf(function(){}),_s=Object.setPrototypeOf((cr={get stream(){return this[Pe]},next:function(){var t=this,r=this[ct];if(r!==null)return Promise.reject(r);if(this[dr])return Promise.resolve(Re(void 0,!0));if(this[Pe].destroyed)return new Promise(function(l,y){process.nextTick(function(){t[ct]?y(t[ct]):l(Re(void 0,!0))})});var i=this[Ce],a;if(i)a=new Promise(ys(i,this));else{var o=this[Pe].read();if(o!==null)return Promise.resolve(Re(o,!1));a=new Promise(this[oi])}return this[Ce]=a,a}},Se(cr,Symbol.asyncIterator,function(){return this}),Se(cr,"return",function(){var t=this;return new Promise(function(r,i){t[Pe].destroy(null,function(a){if(a){i(a);return}r(Re(void 0,!0))})})}),cr),vs),ws=function(t){var r,i=Object.create(_s,(r={},Se(r,Pe,{value:t,writable:!0}),Se(r,Ee,{value:null,writable:!0}),Se(r,xe,{value:null,writable:!0}),Se(r,ct,{value:null,writable:!0}),Se(r,dr,{value:t._readableState.endEmitted,writable:!0}),Se(r,oi,{value:function(o,l){var y=i[Pe].read();y?(i[Ce]=null,i[Ee]=null,i[xe]=null,o(Re(y,!1))):(i[Ee]=o,i[xe]=l)},writable:!0}),r));return i[Ce]=null,ds(t,function(a){if(a&&a.code!=="ERR_STREAM_PREMATURE_CLOSE"){var o=i[xe];o!==null&&(i[Ce]=null,i[Ee]=null,i[xe]=null,o(a)),i[ct]=a;return}var l=i[Ee];l!==null&&(i[Ce]=null,i[Ee]=null,i[xe]=null,l(Re(void 0,!0))),i[dr]=!0}),t.on("readable",gs.bind(null,i)),i};pa.exports=ws});var wa=A((vc,_a)=>{"use strict";v();function ya(e,t,r,i,a,o,l){try{var y=e[o](l),_=y.value}catch(T){r(T);return}y.done?t(_):Promise.resolve(_).then(i,a)}function ms(e){return function(){var t=this,r=arguments;return new Promise(function(i,a){var o=e.apply(t,r);function l(_){ya(o,i,a,l,y,"next",_)}function y(_){ya(o,i,a,l,y,"throw",_)}l(void 0)})}}function va(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,i)}return r}function bs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?va(Object(r),!0).forEach(function(i){Ss(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):va(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function Ss(e,t,r){return t=Es(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Es(e){var t=Rs(e,"string");return typeof t=="symbol"?t:String(t)}function Rs(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ts=me().codes.ERR_INVALID_ARG_TYPE;function Ls(e,t,r){var i;if(t&&typeof t.next=="function")i=t;else if(t&&t[Symbol.asyncIterator])i=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])i=t[Symbol.iterator]();else throw new Ts("iterable",["Iterable"],t);var a=new e(bs({objectMode:!0},r)),o=!1;a._read=function(){o||(o=!0,l())};function l(){return y.apply(this,arguments)}function y(){return y=ms(function*(){try{var _=yield i.next(),T=_.value,x=_.done;x?a.push(null):a.push(yield T)?l():o=!1}catch(M){a.destroy(M)}}),y.apply(this,arguments)}return a}_a.exports=Ls});var ii=A((mc,Aa)=>{"use strict";v();Aa.exports=j;var He;j.ReadableState=Ea;var wc=$("events").EventEmitter,Sa=function(t,r){return t.listeners(r).length},pt=Vr(),pr=$("buffer").Buffer,Os=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Ms(e){return pr.from(e)}function As(e){return pr.isBuffer(e)||e instanceof Os}var si=$("util"),q;si&&si.debuglog?q=si.debuglog("stream"):q=function(){};var qs=Gn(),yi=Qr(),xs=Xr(),Cs=xs.getHighWaterMark,gr=me().codes,Ps=gr.ERR_INVALID_ARG_TYPE,Ds=gr.ERR_STREAM_PUSH_AFTER_EOF,js=gr.ERR_METHOD_NOT_IMPLEMENTED,Bs=gr.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Ge,li,hi;ee()(j,pt);var dt=yi.errorOrDestroy,ci=["error","close","destroy","pause","resume"];function Ns(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function Ea(e,t,r){He=He||Ae(),e=e||{},typeof r!="boolean"&&(r=t instanceof He),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.obj