@legit-sdk/react 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -2
- package/dist/index.js +200 -3
- package/dist/server.d.ts +40 -0
- package/dist/server.js +201 -0
- package/package.json +7 -4
package/dist/server.js
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
// legit-sdk server bundle (Node.js)
|
|
2
|
+
|
|
3
|
+
var cL=Object.create;var yy=Object.defineProperty;var hL=Object.getOwnPropertyDescriptor;var dL=Object.getOwnPropertyNames;var pL=Object.getPrototypeOf,gL=Object.prototype.hasOwnProperty;var l=(o,i)=>yy(o,"name",{value:i,configurable:!0});var nu=(o,i)=>()=>(i||o((i={exports:{}}).exports,i),i.exports);var yL=(o,i,f,p)=>{if(i&&typeof i=="object"||typeof i=="function")for(let a of dL(i))!gL.call(o,a)&&a!==f&&yy(o,a,{get:()=>i[a],enumerable:!(p=hL(i,a))||p.enumerable});return o};var iu=(o,i,f)=>(f=o!=null?cL(pL(o)):{},yL(i||!o||!o.__esModule?yy(f,"default",{value:o,enumerable:!0}):f,o));var wR=nu(_t=>{"use strict";var by=Symbol.for("react.transitional.element"),mL=Symbol.for("react.portal"),wL=Symbol.for("react.fragment"),bL=Symbol.for("react.strict_mode"),vL=Symbol.for("react.profiler"),_L=Symbol.for("react.consumer"),EL=Symbol.for("react.context"),SL=Symbol.for("react.forward_ref"),AL=Symbol.for("react.suspense"),RL=Symbol.for("react.memo"),hR=Symbol.for("react.lazy"),OL=Symbol.for("react.activity"),lR=Symbol.iterator;function kL(o){return o===null||typeof o!="object"?null:(o=lR&&o[lR]||o["@@iterator"],typeof o=="function"?o:null)}l(kL,"getIteratorFn");var dR={isMounted:l(function(){return!1},"isMounted"),enqueueForceUpdate:l(function(){},"enqueueForceUpdate"),enqueueReplaceState:l(function(){},"enqueueReplaceState"),enqueueSetState:l(function(){},"enqueueSetState")},pR=Object.assign,gR={};function hs(o,i,f){this.props=o,this.context=i,this.refs=gR,this.updater=f||dR}l(hs,"Component");hs.prototype.isReactComponent={};hs.prototype.setState=function(o,i){if(typeof o!="object"&&typeof o!="function"&&o!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,o,i,"setState")};hs.prototype.forceUpdate=function(o){this.updater.enqueueForceUpdate(this,o,"forceUpdate")};function yR(){}l(yR,"ComponentDummy");yR.prototype=hs.prototype;function vy(o,i,f){this.props=o,this.context=i,this.refs=gR,this.updater=f||dR}l(vy,"PureComponent");var _y=vy.prototype=new yR;_y.constructor=vy;pR(_y,hs.prototype);_y.isPureReactComponent=!0;var fR=Array.isArray;function wy(){}l(wy,"noop");var Ht={H:null,A:null,T:null,S:null},mR=Object.prototype.hasOwnProperty;function Ey(o,i,f){var p=f.ref;return{$$typeof:by,type:o,key:i,ref:p!==void 0?p:null,props:f}}l(Ey,"ReactElement");function TL(o,i){return Ey(o.type,i,o.props)}l(TL,"cloneAndReplaceKey");function Sy(o){return typeof o=="object"&&o!==null&&o.$$typeof===by}l(Sy,"isValidElement");function FL(o){var i={"=":"=0",":":"=2"};return"$"+o.replace(/[=:]/g,function(f){return i[f]})}l(FL,"escape");var uR=/\/+/g;function my(o,i){return typeof o=="object"&&o!==null&&o.key!=null?FL(""+o.key):i.toString(36)}l(my,"getElementKey");function BL(o){switch(o.status){case"fulfilled":return o.value;case"rejected":throw o.reason;default:switch(typeof o.status=="string"?o.then(wy,wy):(o.status="pending",o.then(function(i){o.status==="pending"&&(o.status="fulfilled",o.value=i)},function(i){o.status==="pending"&&(o.status="rejected",o.reason=i)})),o.status){case"fulfilled":return o.value;case"rejected":throw o.reason}}throw o}l(BL,"resolveThenable");function cs(o,i,f,p,a){var n=typeof o;(n==="undefined"||n==="boolean")&&(o=null);var r=!1;if(o===null)r=!0;else switch(n){case"bigint":case"string":case"number":r=!0;break;case"object":switch(o.$$typeof){case by:case mL:r=!0;break;case hR:return r=o._init,cs(r(o._payload),i,f,p,a)}}if(r)return a=a(o),r=p===""?"."+my(o,0):p,fR(a)?(f="",r!=null&&(f=r.replace(uR,"$&/")+"/"),cs(a,i,f,"",function(h){return h})):a!=null&&(Sy(a)&&(a=TL(a,f+(a.key==null||o&&o.key===a.key?"":(""+a.key).replace(uR,"$&/")+"/")+r)),i.push(a)),1;r=0;var u=p===""?".":p+":";if(fR(o))for(var g=0;g<o.length;g++)p=o[g],n=u+my(p,g),r+=cs(p,i,f,n,a);else if(g=kL(o),typeof g=="function")for(o=g.call(o),g=0;!(p=o.next()).done;)p=p.value,n=u+my(p,g++),r+=cs(p,i,f,n,a);else if(n==="object"){if(typeof o.then=="function")return cs(BL(o),i,f,p,a);throw i=String(o),Error("Objects are not valid as a React child (found: "+(i==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":i)+"). If you meant to render a collection of children, use an array instead.")}return r}l(cs,"mapIntoArray");function ou(o,i,f){if(o==null)return o;var p=[],a=0;return cs(o,p,"","",function(n){return i.call(f,n,a++)}),p}l(ou,"mapChildren");function xL(o){if(o._status===-1){var i=o._result;i=i(),i.then(function(f){(o._status===0||o._status===-1)&&(o._status=1,o._result=f)},function(f){(o._status===0||o._status===-1)&&(o._status=2,o._result=f)}),o._status===-1&&(o._status=0,o._result=i)}if(o._status===1)return o._result.default;throw o._result}l(xL,"lazyInitializer");var cR=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)},IL={map:ou,forEach:l(function(o,i,f){ou(o,function(){i.apply(this,arguments)},f)},"forEach"),count:l(function(o){var i=0;return ou(o,function(){i++}),i},"count"),toArray:l(function(o){return ou(o,function(i){return i})||[]},"toArray"),only:l(function(o){if(!Sy(o))throw Error("React.Children.only expected to receive a single React element child.");return o},"only")};_t.Activity=OL;_t.Children=IL;_t.Component=hs;_t.Fragment=wL;_t.Profiler=vL;_t.PureComponent=vy;_t.StrictMode=bL;_t.Suspense=AL;_t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ht;_t.__COMPILER_RUNTIME={__proto__:null,c:l(function(o){return Ht.H.useMemoCache(o)},"c")};_t.cache=function(o){return function(){return o.apply(null,arguments)}};_t.cacheSignal=function(){return null};_t.cloneElement=function(o,i,f){if(o==null)throw Error("The argument must be a React element, but you passed "+o+".");var p=pR({},o.props),a=o.key;if(i!=null)for(n in i.key!==void 0&&(a=""+i.key),i)!mR.call(i,n)||n==="key"||n==="__self"||n==="__source"||n==="ref"&&i.ref===void 0||(p[n]=i[n]);var n=arguments.length-2;if(n===1)p.children=f;else if(1<n){for(var r=Array(n),u=0;u<n;u++)r[u]=arguments[u+2];p.children=r}return Ey(o.type,a,p)};_t.createContext=function(o){return o={$$typeof:EL,_currentValue:o,_currentValue2:o,_threadCount:0,Provider:null,Consumer:null},o.Provider=o,o.Consumer={$$typeof:_L,_context:o},o};_t.createElement=function(o,i,f){var p,a={},n=null;if(i!=null)for(p in i.key!==void 0&&(n=""+i.key),i)mR.call(i,p)&&p!=="key"&&p!=="__self"&&p!=="__source"&&(a[p]=i[p]);var r=arguments.length-2;if(r===1)a.children=f;else if(1<r){for(var u=Array(r),g=0;g<r;g++)u[g]=arguments[g+2];a.children=u}if(o&&o.defaultProps)for(p in r=o.defaultProps,r)a[p]===void 0&&(a[p]=r[p]);return Ey(o,n,a)};_t.createRef=function(){return{current:null}};_t.forwardRef=function(o){return{$$typeof:SL,render:o}};_t.isValidElement=Sy;_t.lazy=function(o){return{$$typeof:hR,_payload:{_status:-1,_result:o},_init:xL}};_t.memo=function(o,i){return{$$typeof:RL,type:o,compare:i===void 0?null:i}};_t.startTransition=function(o){var i=Ht.T,f={};Ht.T=f;try{var p=o(),a=Ht.S;a!==null&&a(f,p),typeof p=="object"&&p!==null&&typeof p.then=="function"&&p.then(wy,cR)}catch(n){cR(n)}finally{i!==null&&f.types!==null&&(i.types=f.types),Ht.T=i}};_t.unstable_useCacheRefresh=function(){return Ht.H.useCacheRefresh()};_t.use=function(o){return Ht.H.use(o)};_t.useActionState=function(o,i,f){return Ht.H.useActionState(o,i,f)};_t.useCallback=function(o,i){return Ht.H.useCallback(o,i)};_t.useContext=function(o){return Ht.H.useContext(o)};_t.useDebugValue=function(){};_t.useDeferredValue=function(o,i){return Ht.H.useDeferredValue(o,i)};_t.useEffect=function(o,i){return Ht.H.useEffect(o,i)};_t.useEffectEvent=function(o){return Ht.H.useEffectEvent(o)};_t.useId=function(){return Ht.H.useId()};_t.useImperativeHandle=function(o,i,f){return Ht.H.useImperativeHandle(o,i,f)};_t.useInsertionEffect=function(o,i){return Ht.H.useInsertionEffect(o,i)};_t.useLayoutEffect=function(o,i){return Ht.H.useLayoutEffect(o,i)};_t.useMemo=function(o,i){return Ht.H.useMemo(o,i)};_t.useOptimistic=function(o,i){return Ht.H.useOptimistic(o,i)};_t.useReducer=function(o,i,f){return Ht.H.useReducer(o,i,f)};_t.useRef=function(o){return Ht.H.useRef(o)};_t.useState=function(o){return Ht.H.useState(o)};_t.useSyncExternalStore=function(o,i,f){return Ht.H.useSyncExternalStore(o,i,f)};_t.useTransition=function(){return Ht.H.useTransition()};_t.version="19.2.0"});var Ay=nu((sU,bR)=>{"use strict";bR.exports=wR()});var Z4=nu(Kd=>{"use strict";var Q5=Symbol.for("react.transitional.element"),X5=Symbol.for("react.fragment");function Y4(o,i,f){var p=null;if(f!==void 0&&(p=""+f),i.key!==void 0&&(p=""+i.key),"key"in i){f={};for(var a in i)a!=="key"&&(f[a]=i[a])}else f=i;return i=f.ref,{$$typeof:Q5,type:o,key:p,ref:i!==void 0?i:null,props:f}}l(Y4,"jsxProd");Kd.Fragment=X5;Kd.jsx=Y4;Kd.jsxs=Y4});var N2=nu((BU,Q4)=>{"use strict";Q4.exports=Z4()});var Vr=iu(Ay(),1);var PL=Object.create,Qs=Object.defineProperty,jL=Object.getOwnPropertyDescriptor,CL=Object.getOwnPropertyNames,LL=Object.getPrototypeOf,NL=Object.prototype.hasOwnProperty,DL=l((o,i,f)=>i in o?Qs(o,i,{enumerable:!0,configurable:!0,writable:!0,value:f}):o[i]=f,"Z$"),e=l((o,i)=>Qs(o,"name",{value:i,configurable:!0}),"o"),er=l((o,i)=>()=>(o&&(i=o(o=0)),i),"dt"),Ge=l((o,i)=>()=>(i||o((i={exports:{}}).exports,i),i.exports),"ge"),ln=l((o,i)=>{for(var f in i)Qs(o,f,{get:i[f],enumerable:!0})},"Ur"),II=l((o,i,f,p)=>{if(i&&typeof i=="object"||typeof i=="function")for(let a of CL(i))!NL.call(o,a)&&a!==f&&Qs(o,a,{get:l(()=>i[a],"get"),enumerable:!(p=jL(i,a))||p.enumerable});return o},"c1"),Wt=l((o,i,f)=>(f=o!=null?PL(LL(o)):{},II(i||!o||!o.__esModule?Qs(f,"default",{value:o,enumerable:!0}):f,o)),"ft"),dr=l(o=>II(Qs({},"__esModule",{value:!0}),o),"Lt"),vt=l((o,i,f)=>DL(o,typeof i!="symbol"?i+"":i,f),"De");function PI(){if(r0)return _s;r0=!0,_s.byteLength=u,_s.toByteArray=h,_s.fromByteArray=y;for(var o=[],i=[],f=typeof Uint8Array<"u"?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,n=p.length;a<n;++a)o[a]=p[a],i[p.charCodeAt(a)]=a;i[45]=62,i[95]=63;function r(w){var _=w.length;if(_%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var S=w.indexOf("=");S===-1&&(S=_);var T=S===_?0:4-S%4;return[S,T]}l(r,"i"),e(r,"getLens");function u(w){var _=r(w),S=_[0],T=_[1];return(S+T)*3/4-T}l(u,"f"),e(u,"byteLength");function g(w,_,S){return(_+S)*3/4-S}l(g,"h"),e(g,"_byteLength");function h(w){var _,S=r(w),T=S[0],O=S[1],E=new f(g(w,T,O)),P=0,A=O>0?T-4:T,x;for(x=0;x<A;x+=4)_=i[w.charCodeAt(x)]<<18|i[w.charCodeAt(x+1)]<<12|i[w.charCodeAt(x+2)]<<6|i[w.charCodeAt(x+3)],E[P++]=_>>16&255,E[P++]=_>>8&255,E[P++]=_&255;return O===2&&(_=i[w.charCodeAt(x)]<<2|i[w.charCodeAt(x+1)]>>4,E[P++]=_&255),O===1&&(_=i[w.charCodeAt(x)]<<10|i[w.charCodeAt(x+1)]<<4|i[w.charCodeAt(x+2)]>>2,E[P++]=_>>8&255,E[P++]=_&255),E}l(h,"c"),e(h,"toByteArray");function d(w){return o[w>>18&63]+o[w>>12&63]+o[w>>6&63]+o[w&63]}l(d,"d"),e(d,"tripletToBase64");function m(w,_,S){for(var T,O=[],E=_;E<S;E+=3)T=(w[E]<<16&16711680)+(w[E+1]<<8&65280)+(w[E+2]&255),O.push(d(T));return O.join("")}l(m,"y"),e(m,"encodeChunk");function y(w){for(var _,S=w.length,T=S%3,O=[],E=16383,P=0,A=S-T;P<A;P+=E)O.push(m(w,P,P+E>A?A:P+E));return T===1?(_=w[S-1],O.push(o[_>>2]+o[_<<4&63]+"==")):T===2&&(_=(w[S-2]<<8)+w[S-1],O.push(o[_>>10]+o[_>>4&63]+o[_<<2&63]+"=")),O.join("")}return l(y,"m"),e(y,"fromByteArray"),_s}l(PI,"Q$");function jI(){return n0||(n0=!0,Bu.read=function(o,i,f,p,a){var n,r,u=a*8-p-1,g=(1<<u)-1,h=g>>1,d=-7,m=f?a-1:0,y=f?-1:1,w=o[i+m];for(m+=y,n=w&(1<<-d)-1,w>>=-d,d+=u;d>0;n=n*256+o[i+m],m+=y,d-=8);for(r=n&(1<<-d)-1,n>>=-d,d+=p;d>0;r=r*256+o[i+m],m+=y,d-=8);if(n===0)n=1-h;else{if(n===g)return r?NaN:(w?-1:1)*(1/0);r=r+Math.pow(2,p),n=n-h}return(w?-1:1)*r*Math.pow(2,n-p)},Bu.write=function(o,i,f,p,a,n){var r,u,g,h=n*8-a-1,d=(1<<h)-1,m=d>>1,y=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=p?0:n-1,_=p?1:-1,S=i<0||i===0&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(u=isNaN(i)?1:0,r=d):(r=Math.floor(Math.log(i)/Math.LN2),i*(g=Math.pow(2,-r))<1&&(r--,g*=2),r+m>=1?i+=y/g:i+=y*Math.pow(2,1-m),i*g>=2&&(r++,g/=2),r+m>=d?(u=0,r=d):r+m>=1?(u=(i*g-1)*Math.pow(2,a),r=r+m):(u=i*Math.pow(2,m-1)*Math.pow(2,a),r=0));a>=8;o[f+w]=u&255,w+=_,u/=256,a-=8);for(r=r<<a|u,h+=a;h>0;o[f+w]=r&255,w+=_,r/=256,h-=8);o[f+w-_]|=S*128}),Bu}l(jI,"e8");function vR(){if(i0)return Di;i0=!0;let o=PI(),i=jI(),f=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Di.Buffer=r,Di.SlowBuffer=O,Di.INSPECT_MAX_BYTES=50;let p=2147483647;Di.kMaxLength=p,r.TYPED_ARRAY_SUPPORT=a(),!r.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{let t=new Uint8Array(1),s={foo:e(function(){return 42},"foo")};return Object.setPrototypeOf(s,Uint8Array.prototype),Object.setPrototypeOf(t,s),t.foo()===42}catch{return!1}}l(a,"a"),e(a,"typedArraySupport"),Object.defineProperty(r.prototype,"parent",{enumerable:!0,get:e(function(){if(r.isBuffer(this))return this.buffer},"get")}),Object.defineProperty(r.prototype,"offset",{enumerable:!0,get:e(function(){if(r.isBuffer(this))return this.byteOffset},"get")});function n(t){if(t>p)throw new RangeError('The value "'+t+'" is invalid for option "size"');let s=new Uint8Array(t);return Object.setPrototypeOf(s,r.prototype),s}l(n,"s"),e(n,"createBuffer");function r(t,s,c){if(typeof t=="number"){if(typeof s=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(t)}return u(t,s,c)}l(r,"i"),e(r,"Buffer2"),r.poolSize=8192;function u(t,s,c){if(typeof t=="string")return m(t,s);if(ArrayBuffer.isView(t))return w(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Ie(t,ArrayBuffer)||t&&Ie(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ie(t,SharedArrayBuffer)||t&&Ie(t.buffer,SharedArrayBuffer)))return _(t,s,c);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let v=t.valueOf&&t.valueOf();if(v!=null&&v!==t)return r.from(v,s,c);let R=S(t);if(R)return R;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return r.from(t[Symbol.toPrimitive]("string"),s,c);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}l(u,"f"),e(u,"from"),r.from=function(t,s,c){return u(t,s,c)},Object.setPrototypeOf(r.prototype,Uint8Array.prototype),Object.setPrototypeOf(r,Uint8Array);function g(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}l(g,"h"),e(g,"assertSize");function h(t,s,c){return g(t),t<=0?n(t):s!==void 0?typeof c=="string"?n(t).fill(s,c):n(t).fill(s):n(t)}l(h,"c"),e(h,"alloc"),r.alloc=function(t,s,c){return h(t,s,c)};function d(t){return g(t),n(t<0?0:T(t)|0)}l(d,"d"),e(d,"allocUnsafe"),r.allocUnsafe=function(t){return d(t)},r.allocUnsafeSlow=function(t){return d(t)};function m(t,s){if((typeof s!="string"||s==="")&&(s="utf8"),!r.isEncoding(s))throw new TypeError("Unknown encoding: "+s);let c=E(t,s)|0,v=n(c),R=v.write(t,s);return R!==c&&(v=v.slice(0,R)),v}l(m,"y"),e(m,"fromString");function y(t){let s=t.length<0?0:T(t.length)|0,c=n(s);for(let v=0;v<s;v+=1)c[v]=t[v]&255;return c}l(y,"m"),e(y,"fromArrayLike");function w(t){if(Ie(t,Uint8Array)){let s=new Uint8Array(t);return _(s.buffer,s.byteOffset,s.byteLength)}return y(t)}l(w,"g"),e(w,"fromArrayView");function _(t,s,c){if(s<0||t.byteLength<s)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<s+(c||0))throw new RangeError('"length" is outside of buffer bounds');let v;return s===void 0&&c===void 0?v=new Uint8Array(t):c===void 0?v=new Uint8Array(t,s):v=new Uint8Array(t,s,c),Object.setPrototypeOf(v,r.prototype),v}l(_,"v"),e(_,"fromArrayBuffer");function S(t){if(r.isBuffer(t)){let s=T(t.length)|0,c=n(s);return c.length===0||t.copy(c,0,0,s),c}if(t.length!==void 0)return typeof t.length!="number"||ke(t.length)?n(0):y(t);if(t.type==="Buffer"&&Array.isArray(t.data))return y(t.data)}l(S,"_"),e(S,"fromObject");function T(t){if(t>=p)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+p.toString(16)+" bytes");return t|0}l(T,"b"),e(T,"checked");function O(t){return+t!=t&&(t=0),r.alloc(+t)}l(O,"E"),e(O,"SlowBuffer"),r.isBuffer=e(function(t){return t!=null&&t._isBuffer===!0&&t!==r.prototype},"isBuffer"),r.compare=e(function(t,s){if(Ie(t,Uint8Array)&&(t=r.from(t,t.offset,t.byteLength)),Ie(s,Uint8Array)&&(s=r.from(s,s.offset,s.byteLength)),!r.isBuffer(t)||!r.isBuffer(s))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===s)return 0;let c=t.length,v=s.length;for(let R=0,C=Math.min(c,v);R<C;++R)if(t[R]!==s[R]){c=t[R],v=s[R];break}return c<v?-1:v<c?1:0},"compare"),r.isEncoding=e(function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},"isEncoding"),r.concat=e(function(t,s){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return r.alloc(0);let c;if(s===void 0)for(s=0,c=0;c<t.length;++c)s+=t[c].length;let v=r.allocUnsafe(s),R=0;for(c=0;c<t.length;++c){let C=t[c];if(Ie(C,Uint8Array))R+C.length>v.length?(r.isBuffer(C)||(C=r.from(C)),C.copy(v,R)):Uint8Array.prototype.set.call(v,C,R);else if(r.isBuffer(C))C.copy(v,R);else throw new TypeError('"list" argument must be an Array of Buffers');R+=C.length}return v},"concat");function E(t,s){if(r.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Ie(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let c=t.length,v=arguments.length>2&&arguments[2]===!0;if(!v&&c===0)return 0;let R=!1;for(;;)switch(s){case"ascii":case"latin1":case"binary":return c;case"utf8":case"utf-8":return Ee(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c*2;case"hex":return c>>>1;case"base64":return ge(t).length;default:if(R)return v?-1:Ee(t).length;s=(""+s).toLowerCase(),R=!0}}l(E,"R"),e(E,"byteLength"),r.byteLength=E;function P(t,s,c){let v=!1;if((s===void 0||s<0)&&(s=0),s>this.length||((c===void 0||c>this.length)&&(c=this.length),c<=0)||(c>>>=0,s>>>=0,c<=s))return"";for(t||(t="utf8");;)switch(t){case"hex":return se(this,s,c);case"utf8":case"utf-8":return ae(this,s,c);case"ascii":return xe(this,s,c);case"latin1":case"binary":return Pe(this,s,c);case"base64":return re(this,s,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Te(this,s,c);default:if(v)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),v=!0}}l(P,"T"),e(P,"slowToString"),r.prototype._isBuffer=!0;function A(t,s,c){let v=t[s];t[s]=t[c],t[c]=v}l(A,"F"),e(A,"swap"),r.prototype.swap16=e(function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let s=0;s<t;s+=2)A(this,s,s+1);return this},"swap16"),r.prototype.swap32=e(function(){let t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let s=0;s<t;s+=4)A(this,s,s+3),A(this,s+1,s+2);return this},"swap32"),r.prototype.swap64=e(function(){let t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let s=0;s<t;s+=8)A(this,s,s+7),A(this,s+1,s+6),A(this,s+2,s+5),A(this,s+3,s+4);return this},"swap64"),r.prototype.toString=e(function(){let t=this.length;return t===0?"":arguments.length===0?ae(this,0,t):P.apply(this,arguments)},"toString"),r.prototype.toLocaleString=r.prototype.toString,r.prototype.equals=e(function(t){if(!r.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:r.compare(this,t)===0},"equals"),r.prototype.inspect=e(function(){let t="",s=Di.INSPECT_MAX_BYTES;return t=this.toString("hex",0,s).replace(/(.{2})/g,"$1 ").trim(),this.length>s&&(t+=" ... "),"<Buffer "+t+">"},"inspect"),f&&(r.prototype[f]=r.prototype.inspect),r.prototype.compare=e(function(t,s,c,v,R){if(Ie(t,Uint8Array)&&(t=r.from(t,t.offset,t.byteLength)),!r.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(s===void 0&&(s=0),c===void 0&&(c=t?t.length:0),v===void 0&&(v=0),R===void 0&&(R=this.length),s<0||c>t.length||v<0||R>this.length)throw new RangeError("out of range index");if(v>=R&&s>=c)return 0;if(v>=R)return-1;if(s>=c)return 1;if(s>>>=0,c>>>=0,v>>>=0,R>>>=0,this===t)return 0;let C=R-v,j=c-s,Z=Math.min(C,j),oe=this.slice(v,R),Ae=t.slice(s,c);for(let le=0;le<Z;++le)if(oe[le]!==Ae[le]){C=oe[le],j=Ae[le];break}return C<j?-1:j<C?1:0},"compare");function x(t,s,c,v,R){if(t.length===0)return-1;if(typeof c=="string"?(v=c,c=0):c>2147483647?c=2147483647:c<-2147483648&&(c=-2147483648),c=+c,ke(c)&&(c=R?0:t.length-1),c<0&&(c=t.length+c),c>=t.length){if(R)return-1;c=t.length-1}else if(c<0)if(R)c=0;else return-1;if(typeof s=="string"&&(s=r.from(s,v)),r.isBuffer(s))return s.length===0?-1:U(t,s,c,v,R);if(typeof s=="number")return s=s&255,typeof Uint8Array.prototype.indexOf=="function"?R?Uint8Array.prototype.indexOf.call(t,s,c):Uint8Array.prototype.lastIndexOf.call(t,s,c):U(t,[s],c,v,R);throw new TypeError("val must be string, number or Buffer")}l(x,"S"),e(x,"bidirectionalIndexOf");function U(t,s,c,v,R){let C=1,j=t.length,Z=s.length;if(v!==void 0&&(v=String(v).toLowerCase(),v==="ucs2"||v==="ucs-2"||v==="utf16le"||v==="utf-16le")){if(t.length<2||s.length<2)return-1;C=2,j/=2,Z/=2,c/=2}function oe(le,Fe){return C===1?le[Fe]:le.readUInt16BE(Fe*C)}l(oe,"re"),e(oe,"read");let Ae;if(R){let le=-1;for(Ae=c;Ae<j;Ae++)if(oe(t,Ae)===oe(s,le===-1?0:Ae-le)){if(le===-1&&(le=Ae),Ae-le+1===Z)return le*C}else le!==-1&&(Ae-=Ae-le),le=-1}else for(c+Z>j&&(c=j-Z),Ae=c;Ae>=0;Ae--){let le=!0;for(let Fe=0;Fe<Z;Fe++)if(oe(t,Ae+Fe)!==oe(s,Fe)){le=!1;break}if(le)return Ae}return-1}l(U,"B"),e(U,"arrayIndexOf"),r.prototype.includes=e(function(t,s,c){return this.indexOf(t,s,c)!==-1},"includes"),r.prototype.indexOf=e(function(t,s,c){return x(this,t,s,c,!0)},"indexOf"),r.prototype.lastIndexOf=e(function(t,s,c){return x(this,t,s,c,!1)},"lastIndexOf");function M(t,s,c,v){c=Number(c)||0;let R=t.length-c;v?(v=Number(v),v>R&&(v=R)):v=R;let C=s.length;v>C/2&&(v=C/2);let j;for(j=0;j<v;++j){let Z=parseInt(s.substr(j*2,2),16);if(ke(Z))return j;t[c+j]=Z}return j}l(M,"P"),e(M,"hexWrite");function ee(t,s,c,v){return Ne(Ee(s,t.length-c),t,c,v)}l(ee,"N"),e(ee,"utf8Write");function V(t,s,c,v){return Ne(Oe(s),t,c,v)}l(V,"L"),e(V,"asciiWrite");function q(t,s,c,v){return Ne(ge(s),t,c,v)}l(q,"C"),e(q,"base64Write");function G(t,s,c,v){return Ne(be(s,t.length-c),t,c,v)}l(G,"j"),e(G,"ucs2Write"),r.prototype.write=e(function(t,s,c,v){if(s===void 0)v="utf8",c=this.length,s=0;else if(c===void 0&&typeof s=="string")v=s,c=this.length,s=0;else if(isFinite(s))s=s>>>0,isFinite(c)?(c=c>>>0,v===void 0&&(v="utf8")):(v=c,c=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let R=this.length-s;if((c===void 0||c>R)&&(c=R),t.length>0&&(c<0||s<0)||s>this.length)throw new RangeError("Attempt to write outside buffer bounds");v||(v="utf8");let C=!1;for(;;)switch(v){case"hex":return M(this,t,s,c);case"utf8":case"utf-8":return ee(this,t,s,c);case"ascii":case"latin1":case"binary":return V(this,t,s,c);case"base64":return q(this,t,s,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,t,s,c);default:if(C)throw new TypeError("Unknown encoding: "+v);v=(""+v).toLowerCase(),C=!0}},"write"),r.prototype.toJSON=e(function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},"toJSON");function re(t,s,c){return s===0&&c===t.length?o.fromByteArray(t):o.fromByteArray(t.slice(s,c))}l(re,"q"),e(re,"base64Slice");function ae(t,s,c){c=Math.min(t.length,c);let v=[],R=s;for(;R<c;){let C=t[R],j=null,Z=C>239?4:C>223?3:C>191?2:1;if(R+Z<=c){let oe,Ae,le,Fe;switch(Z){case 1:C<128&&(j=C);break;case 2:oe=t[R+1],(oe&192)===128&&(Fe=(C&31)<<6|oe&63,Fe>127&&(j=Fe));break;case 3:oe=t[R+1],Ae=t[R+2],(oe&192)===128&&(Ae&192)===128&&(Fe=(C&15)<<12|(oe&63)<<6|Ae&63,Fe>2047&&(Fe<55296||Fe>57343)&&(j=Fe));break;case 4:oe=t[R+1],Ae=t[R+2],le=t[R+3],(oe&192)===128&&(Ae&192)===128&&(le&192)===128&&(Fe=(C&15)<<18|(oe&63)<<12|(Ae&63)<<6|le&63,Fe>65535&&Fe<1114112&&(j=Fe))}}j===null?(j=65533,Z=1):j>65535&&(j-=65536,v.push(j>>>10&1023|55296),j=56320|j&1023),v.push(j),R+=Z}return we(v)}l(ae,"Z"),e(ae,"utf8Slice");let de=4096;function we(t){let s=t.length;if(s<=de)return String.fromCharCode.apply(String,t);let c="",v=0;for(;v<s;)c+=String.fromCharCode.apply(String,t.slice(v,v+=de));return c}l(we,"se"),e(we,"decodeCodePointsArray");function xe(t,s,c){let v="";c=Math.min(t.length,c);for(let R=s;R<c;++R)v+=String.fromCharCode(t[R]&127);return v}l(xe,"_e"),e(xe,"asciiSlice");function Pe(t,s,c){let v="";c=Math.min(t.length,c);for(let R=s;R<c;++R)v+=String.fromCharCode(t[R]);return v}l(Pe,"pe"),e(Pe,"latin1Slice");function se(t,s,c){let v=t.length;(!s||s<0)&&(s=0),(!c||c<0||c>v)&&(c=v);let R="";for(let C=s;C<c;++C)R+=Ce[t[C]];return R}l(se,"Q"),e(se,"hexSlice");function Te(t,s,c){let v=t.slice(s,c),R="";for(let C=0;C<v.length-1;C+=2)R+=String.fromCharCode(v[C]+v[C+1]*256);return R}l(Te,"he"),e(Te,"utf16leSlice"),r.prototype.slice=e(function(t,s){let c=this.length;t=~~t,s=s===void 0?c:~~s,t<0?(t+=c,t<0&&(t=0)):t>c&&(t=c),s<0?(s+=c,s<0&&(s=0)):s>c&&(s=c),s<t&&(s=t);let v=this.subarray(t,s);return Object.setPrototypeOf(v,r.prototype),v},"slice");function J(t,s,c){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+s>c)throw new RangeError("Trying to access beyond buffer length")}l(J,"U"),e(J,"checkOffset"),r.prototype.readUintLE=r.prototype.readUIntLE=e(function(t,s,c){t=t>>>0,s=s>>>0,c||J(t,s,this.length);let v=this[t],R=1,C=0;for(;++C<s&&(R*=256);)v+=this[t+C]*R;return v},"readUIntLE"),r.prototype.readUintBE=r.prototype.readUIntBE=e(function(t,s,c){t=t>>>0,s=s>>>0,c||J(t,s,this.length);let v=this[t+--s],R=1;for(;s>0&&(R*=256);)v+=this[t+--s]*R;return v},"readUIntBE"),r.prototype.readUint8=r.prototype.readUInt8=e(function(t,s){return t=t>>>0,s||J(t,1,this.length),this[t]},"readUInt8"),r.prototype.readUint16LE=r.prototype.readUInt16LE=e(function(t,s){return t=t>>>0,s||J(t,2,this.length),this[t]|this[t+1]<<8},"readUInt16LE"),r.prototype.readUint16BE=r.prototype.readUInt16BE=e(function(t,s){return t=t>>>0,s||J(t,2,this.length),this[t]<<8|this[t+1]},"readUInt16BE"),r.prototype.readUint32LE=r.prototype.readUInt32LE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216},"readUInt32LE"),r.prototype.readUint32BE=r.prototype.readUInt32BE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])},"readUInt32BE"),r.prototype.readBigUInt64LE=$e(e(function(t){t=t>>>0,N(t,"offset");let s=this[t],c=this[t+7];(s===void 0||c===void 0)&&I(t,this.length-8);let v=s+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,R=this[++t]+this[++t]*2**8+this[++t]*2**16+c*2**24;return BigInt(v)+(BigInt(R)<<BigInt(32))},"readBigUInt64LE")),r.prototype.readBigUInt64BE=$e(e(function(t){t=t>>>0,N(t,"offset");let s=this[t],c=this[t+7];(s===void 0||c===void 0)&&I(t,this.length-8);let v=s*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],R=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+c;return(BigInt(v)<<BigInt(32))+BigInt(R)},"readBigUInt64BE")),r.prototype.readIntLE=e(function(t,s,c){t=t>>>0,s=s>>>0,c||J(t,s,this.length);let v=this[t],R=1,C=0;for(;++C<s&&(R*=256);)v+=this[t+C]*R;return R*=128,v>=R&&(v-=Math.pow(2,8*s)),v},"readIntLE"),r.prototype.readIntBE=e(function(t,s,c){t=t>>>0,s=s>>>0,c||J(t,s,this.length);let v=s,R=1,C=this[t+--v];for(;v>0&&(R*=256);)C+=this[t+--v]*R;return R*=128,C>=R&&(C-=Math.pow(2,8*s)),C},"readIntBE"),r.prototype.readInt8=e(function(t,s){return t=t>>>0,s||J(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]},"readInt8"),r.prototype.readInt16LE=e(function(t,s){t=t>>>0,s||J(t,2,this.length);let c=this[t]|this[t+1]<<8;return c&32768?c|4294901760:c},"readInt16LE"),r.prototype.readInt16BE=e(function(t,s){t=t>>>0,s||J(t,2,this.length);let c=this[t+1]|this[t]<<8;return c&32768?c|4294901760:c},"readInt16BE"),r.prototype.readInt32LE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},"readInt32LE"),r.prototype.readInt32BE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},"readInt32BE"),r.prototype.readBigInt64LE=$e(e(function(t){t=t>>>0,N(t,"offset");let s=this[t],c=this[t+7];(s===void 0||c===void 0)&&I(t,this.length-8);let v=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(c<<24);return(BigInt(v)<<BigInt(32))+BigInt(s+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24)},"readBigInt64LE")),r.prototype.readBigInt64BE=$e(e(function(t){t=t>>>0,N(t,"offset");let s=this[t],c=this[t+7];(s===void 0||c===void 0)&&I(t,this.length-8);let v=(s<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(v)<<BigInt(32))+BigInt(this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+c)},"readBigInt64BE")),r.prototype.readFloatLE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),i.read(this,t,!0,23,4)},"readFloatLE"),r.prototype.readFloatBE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),i.read(this,t,!1,23,4)},"readFloatBE"),r.prototype.readDoubleLE=e(function(t,s){return t=t>>>0,s||J(t,8,this.length),i.read(this,t,!0,52,8)},"readDoubleLE"),r.prototype.readDoubleBE=e(function(t,s){return t=t>>>0,s||J(t,8,this.length),i.read(this,t,!1,52,8)},"readDoubleBE");function ue(t,s,c,v,R,C){if(!r.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(s>R||s<C)throw new RangeError('"value" argument is out of bounds');if(c+v>t.length)throw new RangeError("Index out of range")}l(ue,"J"),e(ue,"checkInt"),r.prototype.writeUintLE=r.prototype.writeUIntLE=e(function(t,s,c,v){if(t=+t,s=s>>>0,c=c>>>0,!v){let j=Math.pow(2,8*c)-1;ue(this,t,s,c,j,0)}let R=1,C=0;for(this[s]=t&255;++C<c&&(R*=256);)this[s+C]=t/R&255;return s+c},"writeUIntLE"),r.prototype.writeUintBE=r.prototype.writeUIntBE=e(function(t,s,c,v){if(t=+t,s=s>>>0,c=c>>>0,!v){let j=Math.pow(2,8*c)-1;ue(this,t,s,c,j,0)}let R=c-1,C=1;for(this[s+R]=t&255;--R>=0&&(C*=256);)this[s+R]=t/C&255;return s+c},"writeUIntBE"),r.prototype.writeUint8=r.prototype.writeUInt8=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,1,255,0),this[s]=t&255,s+1},"writeUInt8"),r.prototype.writeUint16LE=r.prototype.writeUInt16LE=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,2,65535,0),this[s]=t&255,this[s+1]=t>>>8,s+2},"writeUInt16LE"),r.prototype.writeUint16BE=r.prototype.writeUInt16BE=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,2,65535,0),this[s]=t>>>8,this[s+1]=t&255,s+2},"writeUInt16BE"),r.prototype.writeUint32LE=r.prototype.writeUInt32LE=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,4,4294967295,0),this[s+3]=t>>>24,this[s+2]=t>>>16,this[s+1]=t>>>8,this[s]=t&255,s+4},"writeUInt32LE"),r.prototype.writeUint32BE=r.prototype.writeUInt32BE=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,4,4294967295,0),this[s]=t>>>24,this[s+1]=t>>>16,this[s+2]=t>>>8,this[s+3]=t&255,s+4},"writeUInt32BE");function te(t,s,c,v,R){ve(s,v,R,t,c,7);let C=Number(s&BigInt(4294967295));t[c++]=C,C=C>>8,t[c++]=C,C=C>>8,t[c++]=C,C=C>>8,t[c++]=C;let j=Number(s>>BigInt(32)&BigInt(4294967295));return t[c++]=j,j=j>>8,t[c++]=j,j=j>>8,t[c++]=j,j=j>>8,t[c++]=j,c}l(te,"z"),e(te,"wrtBigUInt64LE");function X(t,s,c,v,R){ve(s,v,R,t,c,7);let C=Number(s&BigInt(4294967295));t[c+7]=C,C=C>>8,t[c+6]=C,C=C>>8,t[c+5]=C,C=C>>8,t[c+4]=C;let j=Number(s>>BigInt(32)&BigInt(4294967295));return t[c+3]=j,j=j>>8,t[c+2]=j,j=j>>8,t[c+1]=j,j=j>>8,t[c]=j,c+8}l(X,"V"),e(X,"wrtBigUInt64BE"),r.prototype.writeBigUInt64LE=$e(e(function(t,s=0){return te(this,t,s,BigInt(0),BigInt("0xffffffffffffffff"))},"writeBigUInt64LE")),r.prototype.writeBigUInt64BE=$e(e(function(t,s=0){return X(this,t,s,BigInt(0),BigInt("0xffffffffffffffff"))},"writeBigUInt64BE")),r.prototype.writeIntLE=e(function(t,s,c,v){if(t=+t,s=s>>>0,!v){let Z=Math.pow(2,8*c-1);ue(this,t,s,c,Z-1,-Z)}let R=0,C=1,j=0;for(this[s]=t&255;++R<c&&(C*=256);)t<0&&j===0&&this[s+R-1]!==0&&(j=1),this[s+R]=(t/C>>0)-j&255;return s+c},"writeIntLE"),r.prototype.writeIntBE=e(function(t,s,c,v){if(t=+t,s=s>>>0,!v){let Z=Math.pow(2,8*c-1);ue(this,t,s,c,Z-1,-Z)}let R=c-1,C=1,j=0;for(this[s+R]=t&255;--R>=0&&(C*=256);)t<0&&j===0&&this[s+R+1]!==0&&(j=1),this[s+R]=(t/C>>0)-j&255;return s+c},"writeIntBE"),r.prototype.writeInt8=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,1,127,-128),t<0&&(t=255+t+1),this[s]=t&255,s+1},"writeInt8"),r.prototype.writeInt16LE=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,2,32767,-32768),this[s]=t&255,this[s+1]=t>>>8,s+2},"writeInt16LE"),r.prototype.writeInt16BE=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,2,32767,-32768),this[s]=t>>>8,this[s+1]=t&255,s+2},"writeInt16BE"),r.prototype.writeInt32LE=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,4,2147483647,-2147483648),this[s]=t&255,this[s+1]=t>>>8,this[s+2]=t>>>16,this[s+3]=t>>>24,s+4},"writeInt32LE"),r.prototype.writeInt32BE=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[s]=t>>>24,this[s+1]=t>>>16,this[s+2]=t>>>8,this[s+3]=t&255,s+4},"writeInt32BE"),r.prototype.writeBigInt64LE=$e(e(function(t,s=0){return te(this,t,s,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))},"writeBigInt64LE")),r.prototype.writeBigInt64BE=$e(e(function(t,s=0){return X(this,t,s,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))},"writeBigInt64BE"));function ye(t,s,c,v,R,C){if(c+v>t.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("Index out of range")}l(ye,"G"),e(ye,"checkIEEE754");function Re(t,s,c,v,R){return s=+s,c=c>>>0,R||ye(t,s,c,4),i.write(t,s,c,v,23,4),c+4}l(Re,"fe"),e(Re,"writeFloat"),r.prototype.writeFloatLE=e(function(t,s,c){return Re(this,t,s,!0,c)},"writeFloatLE"),r.prototype.writeFloatBE=e(function(t,s,c){return Re(this,t,s,!1,c)},"writeFloatBE");function De(t,s,c,v,R){return s=+s,c=c>>>0,R||ye(t,s,c,8),i.write(t,s,c,v,52,8),c+8}l(De,"be"),e(De,"writeDouble"),r.prototype.writeDoubleLE=e(function(t,s,c){return De(this,t,s,!0,c)},"writeDoubleLE"),r.prototype.writeDoubleBE=e(function(t,s,c){return De(this,t,s,!1,c)},"writeDoubleBE"),r.prototype.copy=e(function(t,s,c,v){if(!r.isBuffer(t))throw new TypeError("argument should be a Buffer");if(c||(c=0),!v&&v!==0&&(v=this.length),s>=t.length&&(s=t.length),s||(s=0),v>0&&v<c&&(v=c),v===c||t.length===0||this.length===0)return 0;if(s<0)throw new RangeError("targetStart out of bounds");if(c<0||c>=this.length)throw new RangeError("Index out of range");if(v<0)throw new RangeError("sourceEnd out of bounds");v>this.length&&(v=this.length),t.length-s<v-c&&(v=t.length-s+c);let R=v-c;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(s,c,v):Uint8Array.prototype.set.call(t,this.subarray(c,v),s),R},"copy"),r.prototype.fill=e(function(t,s,c,v){if(typeof t=="string"){if(typeof s=="string"?(v=s,s=0,c=this.length):typeof c=="string"&&(v=c,c=this.length),v!==void 0&&typeof v!="string")throw new TypeError("encoding must be a string");if(typeof v=="string"&&!r.isEncoding(v))throw new TypeError("Unknown encoding: "+v);if(t.length===1){let C=t.charCodeAt(0);(v==="utf8"&&C<128||v==="latin1")&&(t=C)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(s<0||this.length<s||this.length<c)throw new RangeError("Out of range index");if(c<=s)return this;s=s>>>0,c=c===void 0?this.length:c>>>0,t||(t=0);let R;if(typeof t=="number")for(R=s;R<c;++R)this[R]=t;else{let C=r.isBuffer(t)?t:r.from(t,v),j=C.length;if(j===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(R=0;R<c-s;++R)this[R+s]=C[R%j]}return this},"fill");let Y={};function H(t,s,c){var R;var v;Y[t]=(v=(R=class extends c{constructor(){super(),Object.defineProperty(this,"message",{value:s.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(j){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:j,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}},l(R,"w"),R),e(v,"NodeError"),v)}l(H,"$"),e(H,"E"),H("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),H("ERR_INVALID_ARG_TYPE",function(t,s){return`The "${t}" argument must be of type number. Received type ${typeof s}`},TypeError),H("ERR_OUT_OF_RANGE",function(t,s,c){let v=`The value of "${t}" is out of range.`,R=c;return Number.isInteger(c)&&Math.abs(c)>2**32?R=Q(String(c)):typeof c=="bigint"&&(R=String(c),(c>BigInt(2)**BigInt(32)||c<-(BigInt(2)**BigInt(32)))&&(R=Q(R)),R+="n"),v+=` It must be ${s}. Received ${R}`,v},RangeError);function Q(t){let s="",c=t.length,v=t[0]==="-"?1:0;for(;c>=v+4;c-=3)s=`_${t.slice(c-3,c)}${s}`;return`${t.slice(0,c)}${s}`}l(Q,"H"),e(Q,"addNumericalSeparator");function fe(t,s,c){N(s,"offset"),(t[s]===void 0||t[s+c]===void 0)&&I(s,t.length-(c+1))}l(fe,"te"),e(fe,"checkBounds");function ve(t,s,c,v,R,C){if(t>c||t<s){let j=typeof s=="bigint"?"n":"",Z;throw s===0||s===BigInt(0)?Z=`>= 0${j} and < 2${j} ** ${(C+1)*8}${j}`:Z=`>= -(2${j} ** ${(C+1)*8-1}${j}) and < 2 ** ${(C+1)*8-1}${j}`,new Y.ERR_OUT_OF_RANGE("value",Z,t)}fe(v,R,C)}l(ve,"oe"),e(ve,"checkIntBI");function N(t,s){if(typeof t!="number")throw new Y.ERR_INVALID_ARG_TYPE(s,"number",t)}l(N,"I"),e(N,"validateNumber");function I(t,s,c){throw Math.floor(t)!==t?(N(t,c),new Y.ERR_OUT_OF_RANGE("offset","an integer",t)):s<0?new Y.ERR_BUFFER_OUT_OF_BOUNDS:new Y.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${s}`,t)}l(I,"x"),e(I,"boundsError");let D=/[^+/0-9A-Za-z-_]/g;function z(t){if(t=t.split("=")[0],t=t.trim().replace(D,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}l(z,"Y"),e(z,"base64clean");function Ee(t,s){s=s||1/0;let c,v=t.length,R=null,C=[];for(let j=0;j<v;++j){if(c=t.charCodeAt(j),c>55295&&c<57344){if(!R){if(c>56319){(s-=3)>-1&&C.push(239,191,189);continue}else if(j+1===v){(s-=3)>-1&&C.push(239,191,189);continue}R=c;continue}if(c<56320){(s-=3)>-1&&C.push(239,191,189),R=c;continue}c=(R-55296<<10|c-56320)+65536}else R&&(s-=3)>-1&&C.push(239,191,189);if(R=null,c<128){if((s-=1)<0)break;C.push(c)}else if(c<2048){if((s-=2)<0)break;C.push(c>>6|192,c&63|128)}else if(c<65536){if((s-=3)<0)break;C.push(c>>12|224,c>>6&63|128,c&63|128)}else if(c<1114112){if((s-=4)<0)break;C.push(c>>18|240,c>>12&63|128,c>>6&63|128,c&63|128)}else throw new Error("Invalid code point")}return C}l(Ee,"ue"),e(Ee,"utf8ToBytes");function Oe(t){let s=[];for(let c=0;c<t.length;++c)s.push(t.charCodeAt(c)&255);return s}l(Oe,"le"),e(Oe,"asciiToBytes");function be(t,s){let c,v,R,C=[];for(let j=0;j<t.length&&!((s-=2)<0);++j)c=t.charCodeAt(j),v=c>>8,R=c%256,C.push(R),C.push(v);return C}l(be,"ee"),e(be,"utf16leToBytes");function ge(t){return o.toByteArray(z(t))}l(ge,"ie"),e(ge,"base64ToBytes");function Ne(t,s,c,v){let R;for(R=0;R<v&&!(R+c>=s.length||R>=t.length);++R)s[R+c]=t[R];return R}l(Ne,"me"),e(Ne,"blitBuffer");function Ie(t,s){return t instanceof s||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===s.name}l(Ie,"ye"),e(Ie,"isInstance");function ke(t){return t!==t}l(ke,"ve"),e(ke,"numberIsNaN");let Ce=function(){let t="0123456789abcdef",s=new Array(256);for(let c=0;c<16;++c){let v=c*16;for(let R=0;R<16;++R)s[v+R]=t[c]+t[R]}return s}();function $e(t){return typeof BigInt>"u"?Ke:t}l($e,"Be"),e($e,"defineBigIntMethod");function Ke(){throw new Error("BigInt not supported")}return l(Ke,"Je"),e(Ke,"BufferBigIntNotDefined"),Di}l(vR,"t8");var _s,r0,Bu,n0,Di,i0,ki,Js,CI,LI,BE=er(()=>{_s={},r0=!1,e(PI,"dew$2"),Bu={},n0=!1,e(jI,"dew$1"),Di={},i0=!1,e(vR,"dew"),ki=vR(),ki.Buffer,ki.SlowBuffer,ki.INSPECT_MAX_BYTES,ki.kMaxLength,Js=ki.Buffer,CI=ki.INSPECT_MAX_BYTES,LI=ki.kMaxLength}),Wn=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.constants=o.SEP=void 0,o.SEP="/",o.constants={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:64,O_EXCL:128,O_NOCTTY:256,O_TRUNC:512,O_APPEND:1024,O_DIRECTORY:65536,O_NOATIME:262144,O_NOFOLLOW:131072,O_SYNC:1052672,O_SYMLINK:2097152,O_DIRECT:16384,O_NONBLOCK:2048,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_FS_SYMLINK_DIR:1,UV_FS_SYMLINK_JUNCTION:2,UV_FS_COPYFILE_EXCL:1,UV_FS_COPYFILE_FICLONE:2,UV_FS_COPYFILE_FICLONE_FORCE:4,COPYFILE_EXCL:1,COPYFILE_FICLONE:2,COPYFILE_FICLONE_FORCE:4}}),NI=Ge(o=>{"use strict";var y;Object.defineProperty(o,"__esModule",{value:!0}),o.Stats=void 0;var i=Wn(),{S_IFMT:f,S_IFDIR:p,S_IFREG:a,S_IFBLK:n,S_IFCHR:r,S_IFLNK:u,S_IFIFO:g,S_IFSOCK:h}=i.constants,d=(y=class{static build(_,S=!1){let T=new y,{uid:O,gid:E,atime:P,mtime:A,ctime:x}=_,U=S?ee=>BigInt(ee):ee=>ee;T.uid=U(O),T.gid=U(E),T.rdev=U(_.rdev),T.blksize=U(4096),T.ino=U(_.ino),T.size=U(_.getSize()),T.blocks=U(1),T.atime=P,T.mtime=A,T.ctime=x,T.birthtime=x,T.atimeMs=U(P.getTime()),T.mtimeMs=U(A.getTime());let M=U(x.getTime());if(T.ctimeMs=M,T.birthtimeMs=M,S){T.atimeNs=BigInt(P.getTime())*BigInt(1e6),T.mtimeNs=BigInt(A.getTime())*BigInt(1e6);let ee=BigInt(x.getTime())*BigInt(1e6);T.ctimeNs=ee,T.birthtimeNs=ee}return T.dev=U(0),T.mode=U(_.mode),T.nlink=U(_.nlink),T}_checkModeProperty(_){return(Number(this.mode)&f)===_}isDirectory(){return this._checkModeProperty(p)}isFile(){return this._checkModeProperty(a)}isBlockDevice(){return this._checkModeProperty(n)}isCharacterDevice(){return this._checkModeProperty(r)}isSymbolicLink(){return this._checkModeProperty(u)}isFIFO(){return this._checkModeProperty(g)}isSocket(){return this._checkModeProperty(h)}},l(y,"Fu"),y);e(d,"Stats");var m=d;o.Stats=m,o.default=m});function DI(){if(o0)return Es;o0=!0,Es.byteLength=u,Es.toByteArray=h,Es.fromByteArray=y;for(var o=[],i=[],f=typeof Uint8Array<"u"?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,n=p.length;a<n;++a)o[a]=p[a],i[p.charCodeAt(a)]=a;i[45]=62,i[95]=63;function r(w){var _=w.length;if(_%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var S=w.indexOf("=");S===-1&&(S=_);var T=S===_?0:4-S%4;return[S,T]}l(r,"i"),e(r,"getLens");function u(w){var _=r(w),S=_[0],T=_[1];return(S+T)*3/4-T}l(u,"f"),e(u,"byteLength");function g(w,_,S){return(_+S)*3/4-S}l(g,"h"),e(g,"_byteLength");function h(w){var _,S=r(w),T=S[0],O=S[1],E=new f(g(w,T,O)),P=0,A=O>0?T-4:T,x;for(x=0;x<A;x+=4)_=i[w.charCodeAt(x)]<<18|i[w.charCodeAt(x+1)]<<12|i[w.charCodeAt(x+2)]<<6|i[w.charCodeAt(x+3)],E[P++]=_>>16&255,E[P++]=_>>8&255,E[P++]=_&255;return O===2&&(_=i[w.charCodeAt(x)]<<2|i[w.charCodeAt(x+1)]>>4,E[P++]=_&255),O===1&&(_=i[w.charCodeAt(x)]<<10|i[w.charCodeAt(x+1)]<<4|i[w.charCodeAt(x+2)]>>2,E[P++]=_>>8&255,E[P++]=_&255),E}l(h,"c"),e(h,"toByteArray");function d(w){return o[w>>18&63]+o[w>>12&63]+o[w>>6&63]+o[w&63]}l(d,"d"),e(d,"tripletToBase64");function m(w,_,S){for(var T,O=[],E=_;E<S;E+=3)T=(w[E]<<16&16711680)+(w[E+1]<<8&65280)+(w[E+2]&255),O.push(d(T));return O.join("")}l(m,"y"),e(m,"encodeChunk");function y(w){for(var _,S=w.length,T=S%3,O=[],E=16383,P=0,A=S-T;P<A;P+=E)O.push(m(w,P,P+E>A?A:P+E));return T===1?(_=w[S-1],O.push(o[_>>2]+o[_<<4&63]+"==")):T===2&&(_=(w[S-2]<<8)+w[S-1],O.push(o[_>>10]+o[_>>4&63]+o[_<<2&63]+"=")),O.join("")}return l(y,"m"),e(y,"fromByteArray"),Es}l(DI,"x6");function UI(){return a0||(a0=!0,xu.read=function(o,i,f,p,a){var n,r,u=a*8-p-1,g=(1<<u)-1,h=g>>1,d=-7,m=f?a-1:0,y=f?-1:1,w=o[i+m];for(m+=y,n=w&(1<<-d)-1,w>>=-d,d+=u;d>0;n=n*256+o[i+m],m+=y,d-=8);for(r=n&(1<<-d)-1,n>>=-d,d+=p;d>0;r=r*256+o[i+m],m+=y,d-=8);if(n===0)n=1-h;else{if(n===g)return r?NaN:(w?-1:1)*(1/0);r=r+Math.pow(2,p),n=n-h}return(w?-1:1)*r*Math.pow(2,n-p)},xu.write=function(o,i,f,p,a,n){var r,u,g,h=n*8-a-1,d=(1<<h)-1,m=d>>1,y=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=p?0:n-1,_=p?1:-1,S=i<0||i===0&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(u=isNaN(i)?1:0,r=d):(r=Math.floor(Math.log(i)/Math.LN2),i*(g=Math.pow(2,-r))<1&&(r--,g*=2),r+m>=1?i+=y/g:i+=y*Math.pow(2,1-m),i*g>=2&&(r++,g/=2),r+m>=d?(u=0,r=d):r+m>=1?(u=(i*g-1)*Math.pow(2,a),r=r+m):(u=i*Math.pow(2,m-1)*Math.pow(2,a),r=0));a>=8;o[f+w]=u&255,w+=_,u/=256,a-=8);for(r=r<<a|u,h+=a;h>0;o[f+w]=r&255,w+=_,r/=256,h-=8);o[f+w-_]|=S*128}),xu}l(UI,"O6");function _R(){if(s0)return Ui;s0=!0;let o=DI(),i=UI(),f=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Ui.Buffer=r,Ui.SlowBuffer=O,Ui.INSPECT_MAX_BYTES=50;let p=2147483647;Ui.kMaxLength=p,r.TYPED_ARRAY_SUPPORT=a(),!r.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{let t=new Uint8Array(1),s={foo:e(function(){return 42},"foo")};return Object.setPrototypeOf(s,Uint8Array.prototype),Object.setPrototypeOf(t,s),t.foo()===42}catch{return!1}}l(a,"a"),e(a,"typedArraySupport"),Object.defineProperty(r.prototype,"parent",{enumerable:!0,get:e(function(){if(r.isBuffer(this))return this.buffer},"get")}),Object.defineProperty(r.prototype,"offset",{enumerable:!0,get:e(function(){if(r.isBuffer(this))return this.byteOffset},"get")});function n(t){if(t>p)throw new RangeError('The value "'+t+'" is invalid for option "size"');let s=new Uint8Array(t);return Object.setPrototypeOf(s,r.prototype),s}l(n,"s"),e(n,"createBuffer");function r(t,s,c){if(typeof t=="number"){if(typeof s=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(t)}return u(t,s,c)}l(r,"i"),e(r,"Buffer2"),r.poolSize=8192;function u(t,s,c){if(typeof t=="string")return m(t,s);if(ArrayBuffer.isView(t))return w(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Ie(t,ArrayBuffer)||t&&Ie(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ie(t,SharedArrayBuffer)||t&&Ie(t.buffer,SharedArrayBuffer)))return _(t,s,c);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let v=t.valueOf&&t.valueOf();if(v!=null&&v!==t)return r.from(v,s,c);let R=S(t);if(R)return R;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return r.from(t[Symbol.toPrimitive]("string"),s,c);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}l(u,"f"),e(u,"from"),r.from=function(t,s,c){return u(t,s,c)},Object.setPrototypeOf(r.prototype,Uint8Array.prototype),Object.setPrototypeOf(r,Uint8Array);function g(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}l(g,"h"),e(g,"assertSize");function h(t,s,c){return g(t),t<=0?n(t):s!==void 0?typeof c=="string"?n(t).fill(s,c):n(t).fill(s):n(t)}l(h,"c"),e(h,"alloc"),r.alloc=function(t,s,c){return h(t,s,c)};function d(t){return g(t),n(t<0?0:T(t)|0)}l(d,"d"),e(d,"allocUnsafe"),r.allocUnsafe=function(t){return d(t)},r.allocUnsafeSlow=function(t){return d(t)};function m(t,s){if((typeof s!="string"||s==="")&&(s="utf8"),!r.isEncoding(s))throw new TypeError("Unknown encoding: "+s);let c=E(t,s)|0,v=n(c),R=v.write(t,s);return R!==c&&(v=v.slice(0,R)),v}l(m,"y"),e(m,"fromString");function y(t){let s=t.length<0?0:T(t.length)|0,c=n(s);for(let v=0;v<s;v+=1)c[v]=t[v]&255;return c}l(y,"m"),e(y,"fromArrayLike");function w(t){if(Ie(t,Uint8Array)){let s=new Uint8Array(t);return _(s.buffer,s.byteOffset,s.byteLength)}return y(t)}l(w,"g"),e(w,"fromArrayView");function _(t,s,c){if(s<0||t.byteLength<s)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<s+(c||0))throw new RangeError('"length" is outside of buffer bounds');let v;return s===void 0&&c===void 0?v=new Uint8Array(t):c===void 0?v=new Uint8Array(t,s):v=new Uint8Array(t,s,c),Object.setPrototypeOf(v,r.prototype),v}l(_,"v"),e(_,"fromArrayBuffer");function S(t){if(r.isBuffer(t)){let s=T(t.length)|0,c=n(s);return c.length===0||t.copy(c,0,0,s),c}if(t.length!==void 0)return typeof t.length!="number"||ke(t.length)?n(0):y(t);if(t.type==="Buffer"&&Array.isArray(t.data))return y(t.data)}l(S,"_"),e(S,"fromObject");function T(t){if(t>=p)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+p.toString(16)+" bytes");return t|0}l(T,"b"),e(T,"checked");function O(t){return+t!=t&&(t=0),r.alloc(+t)}l(O,"E"),e(O,"SlowBuffer"),r.isBuffer=e(function(t){return t!=null&&t._isBuffer===!0&&t!==r.prototype},"isBuffer"),r.compare=e(function(t,s){if(Ie(t,Uint8Array)&&(t=r.from(t,t.offset,t.byteLength)),Ie(s,Uint8Array)&&(s=r.from(s,s.offset,s.byteLength)),!r.isBuffer(t)||!r.isBuffer(s))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===s)return 0;let c=t.length,v=s.length;for(let R=0,C=Math.min(c,v);R<C;++R)if(t[R]!==s[R]){c=t[R],v=s[R];break}return c<v?-1:v<c?1:0},"compare"),r.isEncoding=e(function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},"isEncoding"),r.concat=e(function(t,s){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return r.alloc(0);let c;if(s===void 0)for(s=0,c=0;c<t.length;++c)s+=t[c].length;let v=r.allocUnsafe(s),R=0;for(c=0;c<t.length;++c){let C=t[c];if(Ie(C,Uint8Array))R+C.length>v.length?(r.isBuffer(C)||(C=r.from(C)),C.copy(v,R)):Uint8Array.prototype.set.call(v,C,R);else if(r.isBuffer(C))C.copy(v,R);else throw new TypeError('"list" argument must be an Array of Buffers');R+=C.length}return v},"concat");function E(t,s){if(r.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Ie(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let c=t.length,v=arguments.length>2&&arguments[2]===!0;if(!v&&c===0)return 0;let R=!1;for(;;)switch(s){case"ascii":case"latin1":case"binary":return c;case"utf8":case"utf-8":return Ee(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c*2;case"hex":return c>>>1;case"base64":return ge(t).length;default:if(R)return v?-1:Ee(t).length;s=(""+s).toLowerCase(),R=!0}}l(E,"R"),e(E,"byteLength"),r.byteLength=E;function P(t,s,c){let v=!1;if((s===void 0||s<0)&&(s=0),s>this.length||((c===void 0||c>this.length)&&(c=this.length),c<=0)||(c>>>=0,s>>>=0,c<=s))return"";for(t||(t="utf8");;)switch(t){case"hex":return se(this,s,c);case"utf8":case"utf-8":return ae(this,s,c);case"ascii":return xe(this,s,c);case"latin1":case"binary":return Pe(this,s,c);case"base64":return re(this,s,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Te(this,s,c);default:if(v)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),v=!0}}l(P,"T"),e(P,"slowToString"),r.prototype._isBuffer=!0;function A(t,s,c){let v=t[s];t[s]=t[c],t[c]=v}l(A,"F"),e(A,"swap"),r.prototype.swap16=e(function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let s=0;s<t;s+=2)A(this,s,s+1);return this},"swap16"),r.prototype.swap32=e(function(){let t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let s=0;s<t;s+=4)A(this,s,s+3),A(this,s+1,s+2);return this},"swap32"),r.prototype.swap64=e(function(){let t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let s=0;s<t;s+=8)A(this,s,s+7),A(this,s+1,s+6),A(this,s+2,s+5),A(this,s+3,s+4);return this},"swap64"),r.prototype.toString=e(function(){let t=this.length;return t===0?"":arguments.length===0?ae(this,0,t):P.apply(this,arguments)},"toString"),r.prototype.toLocaleString=r.prototype.toString,r.prototype.equals=e(function(t){if(!r.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:r.compare(this,t)===0},"equals"),r.prototype.inspect=e(function(){let t="",s=Ui.INSPECT_MAX_BYTES;return t=this.toString("hex",0,s).replace(/(.{2})/g,"$1 ").trim(),this.length>s&&(t+=" ... "),"<Buffer "+t+">"},"inspect"),f&&(r.prototype[f]=r.prototype.inspect),r.prototype.compare=e(function(t,s,c,v,R){if(Ie(t,Uint8Array)&&(t=r.from(t,t.offset,t.byteLength)),!r.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(s===void 0&&(s=0),c===void 0&&(c=t?t.length:0),v===void 0&&(v=0),R===void 0&&(R=this.length),s<0||c>t.length||v<0||R>this.length)throw new RangeError("out of range index");if(v>=R&&s>=c)return 0;if(v>=R)return-1;if(s>=c)return 1;if(s>>>=0,c>>>=0,v>>>=0,R>>>=0,this===t)return 0;let C=R-v,j=c-s,Z=Math.min(C,j),oe=this.slice(v,R),Ae=t.slice(s,c);for(let le=0;le<Z;++le)if(oe[le]!==Ae[le]){C=oe[le],j=Ae[le];break}return C<j?-1:j<C?1:0},"compare");function x(t,s,c,v,R){if(t.length===0)return-1;if(typeof c=="string"?(v=c,c=0):c>2147483647?c=2147483647:c<-2147483648&&(c=-2147483648),c=+c,ke(c)&&(c=R?0:t.length-1),c<0&&(c=t.length+c),c>=t.length){if(R)return-1;c=t.length-1}else if(c<0)if(R)c=0;else return-1;if(typeof s=="string"&&(s=r.from(s,v)),r.isBuffer(s))return s.length===0?-1:U(t,s,c,v,R);if(typeof s=="number")return s=s&255,typeof Uint8Array.prototype.indexOf=="function"?R?Uint8Array.prototype.indexOf.call(t,s,c):Uint8Array.prototype.lastIndexOf.call(t,s,c):U(t,[s],c,v,R);throw new TypeError("val must be string, number or Buffer")}l(x,"S"),e(x,"bidirectionalIndexOf");function U(t,s,c,v,R){let C=1,j=t.length,Z=s.length;if(v!==void 0&&(v=String(v).toLowerCase(),v==="ucs2"||v==="ucs-2"||v==="utf16le"||v==="utf-16le")){if(t.length<2||s.length<2)return-1;C=2,j/=2,Z/=2,c/=2}function oe(le,Fe){return C===1?le[Fe]:le.readUInt16BE(Fe*C)}l(oe,"re"),e(oe,"read");let Ae;if(R){let le=-1;for(Ae=c;Ae<j;Ae++)if(oe(t,Ae)===oe(s,le===-1?0:Ae-le)){if(le===-1&&(le=Ae),Ae-le+1===Z)return le*C}else le!==-1&&(Ae-=Ae-le),le=-1}else for(c+Z>j&&(c=j-Z),Ae=c;Ae>=0;Ae--){let le=!0;for(let Fe=0;Fe<Z;Fe++)if(oe(t,Ae+Fe)!==oe(s,Fe)){le=!1;break}if(le)return Ae}return-1}l(U,"B"),e(U,"arrayIndexOf"),r.prototype.includes=e(function(t,s,c){return this.indexOf(t,s,c)!==-1},"includes"),r.prototype.indexOf=e(function(t,s,c){return x(this,t,s,c,!0)},"indexOf"),r.prototype.lastIndexOf=e(function(t,s,c){return x(this,t,s,c,!1)},"lastIndexOf");function M(t,s,c,v){c=Number(c)||0;let R=t.length-c;v?(v=Number(v),v>R&&(v=R)):v=R;let C=s.length;v>C/2&&(v=C/2);let j;for(j=0;j<v;++j){let Z=parseInt(s.substr(j*2,2),16);if(ke(Z))return j;t[c+j]=Z}return j}l(M,"P"),e(M,"hexWrite");function ee(t,s,c,v){return Ne(Ee(s,t.length-c),t,c,v)}l(ee,"N"),e(ee,"utf8Write");function V(t,s,c,v){return Ne(Oe(s),t,c,v)}l(V,"L"),e(V,"asciiWrite");function q(t,s,c,v){return Ne(ge(s),t,c,v)}l(q,"C"),e(q,"base64Write");function G(t,s,c,v){return Ne(be(s,t.length-c),t,c,v)}l(G,"j"),e(G,"ucs2Write"),r.prototype.write=e(function(t,s,c,v){if(s===void 0)v="utf8",c=this.length,s=0;else if(c===void 0&&typeof s=="string")v=s,c=this.length,s=0;else if(isFinite(s))s=s>>>0,isFinite(c)?(c=c>>>0,v===void 0&&(v="utf8")):(v=c,c=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let R=this.length-s;if((c===void 0||c>R)&&(c=R),t.length>0&&(c<0||s<0)||s>this.length)throw new RangeError("Attempt to write outside buffer bounds");v||(v="utf8");let C=!1;for(;;)switch(v){case"hex":return M(this,t,s,c);case"utf8":case"utf-8":return ee(this,t,s,c);case"ascii":case"latin1":case"binary":return V(this,t,s,c);case"base64":return q(this,t,s,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,t,s,c);default:if(C)throw new TypeError("Unknown encoding: "+v);v=(""+v).toLowerCase(),C=!0}},"write"),r.prototype.toJSON=e(function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},"toJSON");function re(t,s,c){return s===0&&c===t.length?o.fromByteArray(t):o.fromByteArray(t.slice(s,c))}l(re,"q"),e(re,"base64Slice");function ae(t,s,c){c=Math.min(t.length,c);let v=[],R=s;for(;R<c;){let C=t[R],j=null,Z=C>239?4:C>223?3:C>191?2:1;if(R+Z<=c){let oe,Ae,le,Fe;switch(Z){case 1:C<128&&(j=C);break;case 2:oe=t[R+1],(oe&192)===128&&(Fe=(C&31)<<6|oe&63,Fe>127&&(j=Fe));break;case 3:oe=t[R+1],Ae=t[R+2],(oe&192)===128&&(Ae&192)===128&&(Fe=(C&15)<<12|(oe&63)<<6|Ae&63,Fe>2047&&(Fe<55296||Fe>57343)&&(j=Fe));break;case 4:oe=t[R+1],Ae=t[R+2],le=t[R+3],(oe&192)===128&&(Ae&192)===128&&(le&192)===128&&(Fe=(C&15)<<18|(oe&63)<<12|(Ae&63)<<6|le&63,Fe>65535&&Fe<1114112&&(j=Fe))}}j===null?(j=65533,Z=1):j>65535&&(j-=65536,v.push(j>>>10&1023|55296),j=56320|j&1023),v.push(j),R+=Z}return we(v)}l(ae,"Z"),e(ae,"utf8Slice");let de=4096;function we(t){let s=t.length;if(s<=de)return String.fromCharCode.apply(String,t);let c="",v=0;for(;v<s;)c+=String.fromCharCode.apply(String,t.slice(v,v+=de));return c}l(we,"se"),e(we,"decodeCodePointsArray");function xe(t,s,c){let v="";c=Math.min(t.length,c);for(let R=s;R<c;++R)v+=String.fromCharCode(t[R]&127);return v}l(xe,"_e"),e(xe,"asciiSlice");function Pe(t,s,c){let v="";c=Math.min(t.length,c);for(let R=s;R<c;++R)v+=String.fromCharCode(t[R]);return v}l(Pe,"pe"),e(Pe,"latin1Slice");function se(t,s,c){let v=t.length;(!s||s<0)&&(s=0),(!c||c<0||c>v)&&(c=v);let R="";for(let C=s;C<c;++C)R+=Ce[t[C]];return R}l(se,"Q"),e(se,"hexSlice");function Te(t,s,c){let v=t.slice(s,c),R="";for(let C=0;C<v.length-1;C+=2)R+=String.fromCharCode(v[C]+v[C+1]*256);return R}l(Te,"he"),e(Te,"utf16leSlice"),r.prototype.slice=e(function(t,s){let c=this.length;t=~~t,s=s===void 0?c:~~s,t<0?(t+=c,t<0&&(t=0)):t>c&&(t=c),s<0?(s+=c,s<0&&(s=0)):s>c&&(s=c),s<t&&(s=t);let v=this.subarray(t,s);return Object.setPrototypeOf(v,r.prototype),v},"slice");function J(t,s,c){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+s>c)throw new RangeError("Trying to access beyond buffer length")}l(J,"U"),e(J,"checkOffset"),r.prototype.readUintLE=r.prototype.readUIntLE=e(function(t,s,c){t=t>>>0,s=s>>>0,c||J(t,s,this.length);let v=this[t],R=1,C=0;for(;++C<s&&(R*=256);)v+=this[t+C]*R;return v},"readUIntLE"),r.prototype.readUintBE=r.prototype.readUIntBE=e(function(t,s,c){t=t>>>0,s=s>>>0,c||J(t,s,this.length);let v=this[t+--s],R=1;for(;s>0&&(R*=256);)v+=this[t+--s]*R;return v},"readUIntBE"),r.prototype.readUint8=r.prototype.readUInt8=e(function(t,s){return t=t>>>0,s||J(t,1,this.length),this[t]},"readUInt8"),r.prototype.readUint16LE=r.prototype.readUInt16LE=e(function(t,s){return t=t>>>0,s||J(t,2,this.length),this[t]|this[t+1]<<8},"readUInt16LE"),r.prototype.readUint16BE=r.prototype.readUInt16BE=e(function(t,s){return t=t>>>0,s||J(t,2,this.length),this[t]<<8|this[t+1]},"readUInt16BE"),r.prototype.readUint32LE=r.prototype.readUInt32LE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216},"readUInt32LE"),r.prototype.readUint32BE=r.prototype.readUInt32BE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])},"readUInt32BE"),r.prototype.readBigUInt64LE=$e(e(function(t){t=t>>>0,N(t,"offset");let s=this[t],c=this[t+7];(s===void 0||c===void 0)&&I(t,this.length-8);let v=s+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,R=this[++t]+this[++t]*2**8+this[++t]*2**16+c*2**24;return BigInt(v)+(BigInt(R)<<BigInt(32))},"readBigUInt64LE")),r.prototype.readBigUInt64BE=$e(e(function(t){t=t>>>0,N(t,"offset");let s=this[t],c=this[t+7];(s===void 0||c===void 0)&&I(t,this.length-8);let v=s*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],R=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+c;return(BigInt(v)<<BigInt(32))+BigInt(R)},"readBigUInt64BE")),r.prototype.readIntLE=e(function(t,s,c){t=t>>>0,s=s>>>0,c||J(t,s,this.length);let v=this[t],R=1,C=0;for(;++C<s&&(R*=256);)v+=this[t+C]*R;return R*=128,v>=R&&(v-=Math.pow(2,8*s)),v},"readIntLE"),r.prototype.readIntBE=e(function(t,s,c){t=t>>>0,s=s>>>0,c||J(t,s,this.length);let v=s,R=1,C=this[t+--v];for(;v>0&&(R*=256);)C+=this[t+--v]*R;return R*=128,C>=R&&(C-=Math.pow(2,8*s)),C},"readIntBE"),r.prototype.readInt8=e(function(t,s){return t=t>>>0,s||J(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]},"readInt8"),r.prototype.readInt16LE=e(function(t,s){t=t>>>0,s||J(t,2,this.length);let c=this[t]|this[t+1]<<8;return c&32768?c|4294901760:c},"readInt16LE"),r.prototype.readInt16BE=e(function(t,s){t=t>>>0,s||J(t,2,this.length);let c=this[t+1]|this[t]<<8;return c&32768?c|4294901760:c},"readInt16BE"),r.prototype.readInt32LE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},"readInt32LE"),r.prototype.readInt32BE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},"readInt32BE"),r.prototype.readBigInt64LE=$e(e(function(t){t=t>>>0,N(t,"offset");let s=this[t],c=this[t+7];(s===void 0||c===void 0)&&I(t,this.length-8);let v=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(c<<24);return(BigInt(v)<<BigInt(32))+BigInt(s+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24)},"readBigInt64LE")),r.prototype.readBigInt64BE=$e(e(function(t){t=t>>>0,N(t,"offset");let s=this[t],c=this[t+7];(s===void 0||c===void 0)&&I(t,this.length-8);let v=(s<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(v)<<BigInt(32))+BigInt(this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+c)},"readBigInt64BE")),r.prototype.readFloatLE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),i.read(this,t,!0,23,4)},"readFloatLE"),r.prototype.readFloatBE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),i.read(this,t,!1,23,4)},"readFloatBE"),r.prototype.readDoubleLE=e(function(t,s){return t=t>>>0,s||J(t,8,this.length),i.read(this,t,!0,52,8)},"readDoubleLE"),r.prototype.readDoubleBE=e(function(t,s){return t=t>>>0,s||J(t,8,this.length),i.read(this,t,!1,52,8)},"readDoubleBE");function ue(t,s,c,v,R,C){if(!r.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(s>R||s<C)throw new RangeError('"value" argument is out of bounds');if(c+v>t.length)throw new RangeError("Index out of range")}l(ue,"J"),e(ue,"checkInt"),r.prototype.writeUintLE=r.prototype.writeUIntLE=e(function(t,s,c,v){if(t=+t,s=s>>>0,c=c>>>0,!v){let j=Math.pow(2,8*c)-1;ue(this,t,s,c,j,0)}let R=1,C=0;for(this[s]=t&255;++C<c&&(R*=256);)this[s+C]=t/R&255;return s+c},"writeUIntLE"),r.prototype.writeUintBE=r.prototype.writeUIntBE=e(function(t,s,c,v){if(t=+t,s=s>>>0,c=c>>>0,!v){let j=Math.pow(2,8*c)-1;ue(this,t,s,c,j,0)}let R=c-1,C=1;for(this[s+R]=t&255;--R>=0&&(C*=256);)this[s+R]=t/C&255;return s+c},"writeUIntBE"),r.prototype.writeUint8=r.prototype.writeUInt8=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,1,255,0),this[s]=t&255,s+1},"writeUInt8"),r.prototype.writeUint16LE=r.prototype.writeUInt16LE=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,2,65535,0),this[s]=t&255,this[s+1]=t>>>8,s+2},"writeUInt16LE"),r.prototype.writeUint16BE=r.prototype.writeUInt16BE=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,2,65535,0),this[s]=t>>>8,this[s+1]=t&255,s+2},"writeUInt16BE"),r.prototype.writeUint32LE=r.prototype.writeUInt32LE=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,4,4294967295,0),this[s+3]=t>>>24,this[s+2]=t>>>16,this[s+1]=t>>>8,this[s]=t&255,s+4},"writeUInt32LE"),r.prototype.writeUint32BE=r.prototype.writeUInt32BE=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,4,4294967295,0),this[s]=t>>>24,this[s+1]=t>>>16,this[s+2]=t>>>8,this[s+3]=t&255,s+4},"writeUInt32BE");function te(t,s,c,v,R){ve(s,v,R,t,c,7);let C=Number(s&BigInt(4294967295));t[c++]=C,C=C>>8,t[c++]=C,C=C>>8,t[c++]=C,C=C>>8,t[c++]=C;let j=Number(s>>BigInt(32)&BigInt(4294967295));return t[c++]=j,j=j>>8,t[c++]=j,j=j>>8,t[c++]=j,j=j>>8,t[c++]=j,c}l(te,"z"),e(te,"wrtBigUInt64LE");function X(t,s,c,v,R){ve(s,v,R,t,c,7);let C=Number(s&BigInt(4294967295));t[c+7]=C,C=C>>8,t[c+6]=C,C=C>>8,t[c+5]=C,C=C>>8,t[c+4]=C;let j=Number(s>>BigInt(32)&BigInt(4294967295));return t[c+3]=j,j=j>>8,t[c+2]=j,j=j>>8,t[c+1]=j,j=j>>8,t[c]=j,c+8}l(X,"V"),e(X,"wrtBigUInt64BE"),r.prototype.writeBigUInt64LE=$e(e(function(t,s=0){return te(this,t,s,BigInt(0),BigInt("0xffffffffffffffff"))},"writeBigUInt64LE")),r.prototype.writeBigUInt64BE=$e(e(function(t,s=0){return X(this,t,s,BigInt(0),BigInt("0xffffffffffffffff"))},"writeBigUInt64BE")),r.prototype.writeIntLE=e(function(t,s,c,v){if(t=+t,s=s>>>0,!v){let Z=Math.pow(2,8*c-1);ue(this,t,s,c,Z-1,-Z)}let R=0,C=1,j=0;for(this[s]=t&255;++R<c&&(C*=256);)t<0&&j===0&&this[s+R-1]!==0&&(j=1),this[s+R]=(t/C>>0)-j&255;return s+c},"writeIntLE"),r.prototype.writeIntBE=e(function(t,s,c,v){if(t=+t,s=s>>>0,!v){let Z=Math.pow(2,8*c-1);ue(this,t,s,c,Z-1,-Z)}let R=c-1,C=1,j=0;for(this[s+R]=t&255;--R>=0&&(C*=256);)t<0&&j===0&&this[s+R+1]!==0&&(j=1),this[s+R]=(t/C>>0)-j&255;return s+c},"writeIntBE"),r.prototype.writeInt8=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,1,127,-128),t<0&&(t=255+t+1),this[s]=t&255,s+1},"writeInt8"),r.prototype.writeInt16LE=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,2,32767,-32768),this[s]=t&255,this[s+1]=t>>>8,s+2},"writeInt16LE"),r.prototype.writeInt16BE=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,2,32767,-32768),this[s]=t>>>8,this[s+1]=t&255,s+2},"writeInt16BE"),r.prototype.writeInt32LE=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,4,2147483647,-2147483648),this[s]=t&255,this[s+1]=t>>>8,this[s+2]=t>>>16,this[s+3]=t>>>24,s+4},"writeInt32LE"),r.prototype.writeInt32BE=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[s]=t>>>24,this[s+1]=t>>>16,this[s+2]=t>>>8,this[s+3]=t&255,s+4},"writeInt32BE"),r.prototype.writeBigInt64LE=$e(e(function(t,s=0){return te(this,t,s,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))},"writeBigInt64LE")),r.prototype.writeBigInt64BE=$e(e(function(t,s=0){return X(this,t,s,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))},"writeBigInt64BE"));function ye(t,s,c,v,R,C){if(c+v>t.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("Index out of range")}l(ye,"G"),e(ye,"checkIEEE754");function Re(t,s,c,v,R){return s=+s,c=c>>>0,R||ye(t,s,c,4),i.write(t,s,c,v,23,4),c+4}l(Re,"fe"),e(Re,"writeFloat"),r.prototype.writeFloatLE=e(function(t,s,c){return Re(this,t,s,!0,c)},"writeFloatLE"),r.prototype.writeFloatBE=e(function(t,s,c){return Re(this,t,s,!1,c)},"writeFloatBE");function De(t,s,c,v,R){return s=+s,c=c>>>0,R||ye(t,s,c,8),i.write(t,s,c,v,52,8),c+8}l(De,"be"),e(De,"writeDouble"),r.prototype.writeDoubleLE=e(function(t,s,c){return De(this,t,s,!0,c)},"writeDoubleLE"),r.prototype.writeDoubleBE=e(function(t,s,c){return De(this,t,s,!1,c)},"writeDoubleBE"),r.prototype.copy=e(function(t,s,c,v){if(!r.isBuffer(t))throw new TypeError("argument should be a Buffer");if(c||(c=0),!v&&v!==0&&(v=this.length),s>=t.length&&(s=t.length),s||(s=0),v>0&&v<c&&(v=c),v===c||t.length===0||this.length===0)return 0;if(s<0)throw new RangeError("targetStart out of bounds");if(c<0||c>=this.length)throw new RangeError("Index out of range");if(v<0)throw new RangeError("sourceEnd out of bounds");v>this.length&&(v=this.length),t.length-s<v-c&&(v=t.length-s+c);let R=v-c;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(s,c,v):Uint8Array.prototype.set.call(t,this.subarray(c,v),s),R},"copy"),r.prototype.fill=e(function(t,s,c,v){if(typeof t=="string"){if(typeof s=="string"?(v=s,s=0,c=this.length):typeof c=="string"&&(v=c,c=this.length),v!==void 0&&typeof v!="string")throw new TypeError("encoding must be a string");if(typeof v=="string"&&!r.isEncoding(v))throw new TypeError("Unknown encoding: "+v);if(t.length===1){let C=t.charCodeAt(0);(v==="utf8"&&C<128||v==="latin1")&&(t=C)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(s<0||this.length<s||this.length<c)throw new RangeError("Out of range index");if(c<=s)return this;s=s>>>0,c=c===void 0?this.length:c>>>0,t||(t=0);let R;if(typeof t=="number")for(R=s;R<c;++R)this[R]=t;else{let C=r.isBuffer(t)?t:r.from(t,v),j=C.length;if(j===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(R=0;R<c-s;++R)this[R+s]=C[R%j]}return this},"fill");let Y={};function H(t,s,c){var R;var v;Y[t]=(v=(R=class extends c{constructor(){super(),Object.defineProperty(this,"message",{value:s.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(j){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:j,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}},l(R,"w"),R),e(v,"NodeError"),v)}l(H,"$"),e(H,"E"),H("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),H("ERR_INVALID_ARG_TYPE",function(t,s){return`The "${t}" argument must be of type number. Received type ${typeof s}`},TypeError),H("ERR_OUT_OF_RANGE",function(t,s,c){let v=`The value of "${t}" is out of range.`,R=c;return Number.isInteger(c)&&Math.abs(c)>2**32?R=Q(String(c)):typeof c=="bigint"&&(R=String(c),(c>BigInt(2)**BigInt(32)||c<-(BigInt(2)**BigInt(32)))&&(R=Q(R)),R+="n"),v+=` It must be ${s}. Received ${R}`,v},RangeError);function Q(t){let s="",c=t.length,v=t[0]==="-"?1:0;for(;c>=v+4;c-=3)s=`_${t.slice(c-3,c)}${s}`;return`${t.slice(0,c)}${s}`}l(Q,"H"),e(Q,"addNumericalSeparator");function fe(t,s,c){N(s,"offset"),(t[s]===void 0||t[s+c]===void 0)&&I(s,t.length-(c+1))}l(fe,"te"),e(fe,"checkBounds");function ve(t,s,c,v,R,C){if(t>c||t<s){let j=typeof s=="bigint"?"n":"",Z;throw s===0||s===BigInt(0)?Z=`>= 0${j} and < 2${j} ** ${(C+1)*8}${j}`:Z=`>= -(2${j} ** ${(C+1)*8-1}${j}) and < 2 ** ${(C+1)*8-1}${j}`,new Y.ERR_OUT_OF_RANGE("value",Z,t)}fe(v,R,C)}l(ve,"oe"),e(ve,"checkIntBI");function N(t,s){if(typeof t!="number")throw new Y.ERR_INVALID_ARG_TYPE(s,"number",t)}l(N,"I"),e(N,"validateNumber");function I(t,s,c){throw Math.floor(t)!==t?(N(t,c),new Y.ERR_OUT_OF_RANGE("offset","an integer",t)):s<0?new Y.ERR_BUFFER_OUT_OF_BOUNDS:new Y.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${s}`,t)}l(I,"x"),e(I,"boundsError");let D=/[^+/0-9A-Za-z-_]/g;function z(t){if(t=t.split("=")[0],t=t.trim().replace(D,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}l(z,"Y"),e(z,"base64clean");function Ee(t,s){s=s||1/0;let c,v=t.length,R=null,C=[];for(let j=0;j<v;++j){if(c=t.charCodeAt(j),c>55295&&c<57344){if(!R){if(c>56319){(s-=3)>-1&&C.push(239,191,189);continue}else if(j+1===v){(s-=3)>-1&&C.push(239,191,189);continue}R=c;continue}if(c<56320){(s-=3)>-1&&C.push(239,191,189),R=c;continue}c=(R-55296<<10|c-56320)+65536}else R&&(s-=3)>-1&&C.push(239,191,189);if(R=null,c<128){if((s-=1)<0)break;C.push(c)}else if(c<2048){if((s-=2)<0)break;C.push(c>>6|192,c&63|128)}else if(c<65536){if((s-=3)<0)break;C.push(c>>12|224,c>>6&63|128,c&63|128)}else if(c<1114112){if((s-=4)<0)break;C.push(c>>18|240,c>>12&63|128,c>>6&63|128,c&63|128)}else throw new Error("Invalid code point")}return C}l(Ee,"ue"),e(Ee,"utf8ToBytes");function Oe(t){let s=[];for(let c=0;c<t.length;++c)s.push(t.charCodeAt(c)&255);return s}l(Oe,"le"),e(Oe,"asciiToBytes");function be(t,s){let c,v,R,C=[];for(let j=0;j<t.length&&!((s-=2)<0);++j)c=t.charCodeAt(j),v=c>>8,R=c%256,C.push(R),C.push(v);return C}l(be,"ee"),e(be,"utf16leToBytes");function ge(t){return o.toByteArray(z(t))}l(ge,"ie"),e(ge,"base64ToBytes");function Ne(t,s,c,v){let R;for(R=0;R<v&&!(R+c>=s.length||R>=t.length);++R)s[R+c]=t[R];return R}l(Ne,"me"),e(Ne,"blitBuffer");function Ie(t,s){return t instanceof s||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===s.name}l(Ie,"ye"),e(Ie,"isInstance");function ke(t){return t!==t}l(ke,"ve"),e(ke,"numberIsNaN");let Ce=function(){let t="0123456789abcdef",s=new Array(256);for(let c=0;c<16;++c){let v=c*16;for(let R=0;R<16;++R)s[v+R]=t[c]+t[R]}return s}();function $e(t){return typeof BigInt>"u"?Ke:t}l($e,"Be"),e($e,"defineBigIntMethod");function Ke(){throw new Error("BigInt not supported")}return l(Ke,"Je"),e(Ke,"BufferBigIntNotDefined"),Ui}l(_R,"P6");var Es,o0,xu,a0,Ui,s0,Ti,MI,$I,WI,UL=er(()=>{Es={},o0=!1,e(DI,"dew$2"),xu={},a0=!1,e(UI,"dew$1"),Ui={},s0=!1,e(_R,"dew"),Ti=_R(),Ti.Buffer,Ti.SlowBuffer,Ti.INSPECT_MAX_BYTES,Ti.kMaxLength,MI=Ti.Buffer,$I=Ti.INSPECT_MAX_BYTES,WI=Ti.kMaxLength}),zI={};ln(zI,{Buffer:l(()=>MI,"Buffer"),INSPECT_MAX_BYTES:l(()=>$I,"INSPECT_MAX_BYTES"),kMaxLength:l(()=>WI,"kMaxLength")});var ML=er(()=>{UL()}),$L=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.Buffer=void 0;var i=(ML(),dr(zI));Object.defineProperty(o,"Buffer",{enumerable:!0,get:e(function(){return i.Buffer},"get")})}),xa=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.bufferFrom=o.bufferAllocUnsafe=o.Buffer=void 0;var i=$L();Object.defineProperty(o,"Buffer",{enumerable:!0,get:e(function(){return i.Buffer},"get")});function f(n,...r){return new i.Buffer(n,...r)}l(f,"F1"),e(f,"bufferV0P12Ponyfill");var p=i.Buffer.allocUnsafe||f;o.bufferAllocUnsafe=p;var a=i.Buffer.from||f;o.bufferFrom=a}),HI=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.inherits=i,o.promisify=f,o.inspect=p,o.format=a;function i(n,r){if(n==null)throw new TypeError("The constructor to inherit from is not defined");if(r==null)throw new TypeError("The super constructor to inherit from is not defined");n.super_=r,n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}l(i,"D6"),e(i,"inherits");function f(n){if(typeof n!="function")throw new TypeError('The "original" argument must be of type function');return function(...r){return new Promise((u,g)=>{n.call(this,...r,(h,d)=>{h?g(h):u(d)})})}}l(f,"$6"),e(f,"promisify");function p(n){return n===null?"null":n===void 0?"undefined":typeof n=="string"?`'${n}'`:typeof n=="number"||typeof n=="boolean"?String(n):Array.isArray(n)?`[ ${n.map(r=>p(r)).join(", ")} ]`:typeof n=="object"?`{ ${Object.entries(n).map(([r,u])=>`${r}: ${p(u)}`).join(", ")} }`:String(n)}l(p,"fy"),e(p,"inspect");function a(n,...r){if(r.length===0)return n;let u=n,g=0;for(u=u.replace(/%[sdj%]/g,h=>{if(g>=r.length)return h;let d=r[g++];switch(h){case"%s":return String(d);case"%d":return Number(d).toString();case"%j":try{return JSON.stringify(d)}catch{return"[Circular]"}case"%%":return"%";default:return h}});g<r.length;)u+=" "+String(r[g++]);return u}l(a,"M6"),e(a,"format")}),Rd=Ge(o=>{"use strict";var d;Object.defineProperty(o,"__esModule",{value:!0}),o.AssertionError=o.RangeError=o.TypeError=o.Error=void 0,o.message=g,o.E=h;var i=HI(),f=typeof Symbol>"u"?"_kCode":Symbol("code"),p={};function a(m){var w;var y;return y=(w=class extends m{constructor(S,...T){super(g(S,T)),this.code=S,this[f]=S,this.name=`${super.name} [${this[f]}]`}},l(w,"t"),w),e(y,"NodeError"),y}l(a,"dy"),e(a,"makeNodeError");var n=globalThis,r=(d=class extends n.Error{constructor(y){if(typeof y!="object"||y===null)throw new o.TypeError("ERR_INVALID_ARG_TYPE","options","object");y.message?super(y.message):super(`${(0,i.inspect)(y.actual).slice(0,128)} ${y.operator} ${(0,i.inspect)(y.expected).slice(0,128)}`),this.generatedMessage=!y.message,this.name="AssertionError [ERR_ASSERTION]",this.code="ERR_ASSERTION",this.actual=y.actual,this.expected=y.expected,this.operator=y.operator,o.Error.captureStackTrace(this,y.stackStartFunction)}},l(d,"py"),d);e(r,"AssertionError");var u=r;o.AssertionError=u;function g(m,y){if(typeof m!="string")throw new o.Error("Error message key must be a string");let w=p[m];if(!w)throw new o.Error(`An invalid error message key was used: ${m}.`);let _;if(typeof w=="function")_=w;else{if(_=i.format,y===void 0||y.length===0)return w;y.unshift(w)}return String(_.apply(null,y))}l(g,"P1"),e(g,"message");function h(m,y){p[m]=typeof y=="function"?y:String(y)}l(h,"Ci"),e(h,"E"),o.Error=a(n.Error),o.TypeError=a(n.TypeError),o.RangeError=a(n.RangeError),h("ERR_DIR_CLOSED","Directory handle was closed"),h("ERR_DIR_CONCURRENT_OPERATION","Cannot do synchronous work on directory handle with concurrent asynchronous operations"),h("ERR_INVALID_FILE_URL_HOST",'File URL host must be "localhost" or empty on %s'),h("ERR_INVALID_FILE_URL_PATH","File URL path %s"),h("ERR_INVALID_OPT_VALUE",(m,y)=>`The value "${String(y)}" is invalid for option "${m}"`),h("ERR_INVALID_OPT_VALUE_ENCODING",m=>`The value "${String(m)}" is invalid for option "encoding"`),h("ERR_INVALID_ARG_VALUE","Unable to open file as blob")}),Od=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.ENCODING_UTF8=void 0,o.assertEncoding=p,o.strToEncoding=a;var i=xa(),f=Rd();o.ENCODING_UTF8="utf8";function p(n){if(n&&!i.Buffer.isEncoding(n))throw new f.TypeError("ERR_INVALID_OPT_VALUE_ENCODING",n)}l(p,"j6"),e(p,"assertEncoding");function a(n,r){return!r||r===o.ENCODING_UTF8?n:r==="buffer"?new i.Buffer(n):new i.Buffer(n).toString(r)}l(a,"H6"),e(a,"strToEncoding")}),xE=Ge(o=>{"use strict";var w;Object.defineProperty(o,"__esModule",{value:!0}),o.Dirent=void 0;var i=Wn(),f=Od(),{S_IFMT:p,S_IFDIR:a,S_IFREG:n,S_IFBLK:r,S_IFCHR:u,S_IFLNK:g,S_IFIFO:h,S_IFSOCK:d}=i.constants,m=(w=class{constructor(){this.name="",this.path="",this.parentPath="",this.mode=0}static build(S,T){let O=new w,{mode:E}=S.getNode();return O.name=(0,f.strToEncoding)(S.getName(),T),O.mode=E,O.path=S.getParentPath(),O.parentPath=O.path,O}_checkModeProperty(S){return(this.mode&p)===S}isDirectory(){return this._checkModeProperty(a)}isFile(){return this._checkModeProperty(n)}isBlockDevice(){return this._checkModeProperty(r)}isCharacterDevice(){return this._checkModeProperty(u)}isSymbolicLink(){return this._checkModeProperty(g)}isFIFO(){return this._checkModeProperty(h)}isSocket(){return this._checkModeProperty(d)}},l(w,"Bu"),w);e(m,"Dirent");var y=m;o.Dirent=y,o.default=y});function sd(o){throw new Error("Node.js process "+o+" is not supported by JSPM core outside of Node.js")}l(sd,"by");function qI(){!ma||!sa||(ma=!1,sa.length?jn=sa.concat(jn):Vl=-1,jn.length&&IE())}l(qI,"Q6");function IE(){if(!ma){var o=setTimeout(qI,0);ma=!0;for(var i=jn.length;i;){for(sa=jn,jn=[];++Vl<i;)sa&&sa[Vl].run();Vl=-1,i=jn.length}sa=null,ma=!1,clearTimeout(o)}}l(IE,"k1");function ER(o){var i=new Array(arguments.length-1);if(arguments.length>1)for(var f=1;f<arguments.length;f++)i[f-1]=arguments[f];jn.push(new l0(o,i)),jn.length===1&&!ma&&setTimeout(IE,0)}l(ER,"eM");function l0(o,i){this.fun=o,this.array=i}l(l0,"B1");function wr(){}l(wr,"Yt");function SR(o){sd("_linkedBinding")}l(SR,"gM");function AR(o){sd("dlopen")}l(AR,"_M");function RR(){return[]}l(RR,"EM");function OR(){return[]}l(OR,"SM");function kR(o,i){if(!o)throw new Error(i||"assertion error")}l(kR,"kM");function TR(){return!1}l(TR,"NM");function FR(){return ui.now()/1e3}l(FR,"QM");function au(o){var i=Math.floor((Date.now()-ui.now())*.001),f=ui.now()*.001,p=Math.floor(f)+i,a=Math.floor(f%1*1e9);return o&&(p=p-o[0],a=a-o[1],a<0&&(p--,a+=Iu)),[p,a]}l(au,"vy");function Qn(){return PE}l(Qn,"Ni");function BR(o){return[]}l(BR,"cU");function xR(){if(f0)return Pu;f0=!0;var o=PE;function i(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}l(i,"t"),e(i,"assertPath");function f(n,r){for(var u="",g=0,h=-1,d=0,m,y=0;y<=n.length;++y){if(y<n.length)m=n.charCodeAt(y);else{if(m===47)break;m=47}if(m===47){if(!(h===y-1||d===1))if(h!==y-1&&d===2){if(u.length<2||g!==2||u.charCodeAt(u.length-1)!==46||u.charCodeAt(u.length-2)!==46){if(u.length>2){var w=u.lastIndexOf("/");if(w!==u.length-1){w===-1?(u="",g=0):(u=u.slice(0,w),g=u.length-1-u.lastIndexOf("/")),h=y,d=0;continue}}else if(u.length===2||u.length===1){u="",g=0,h=y,d=0;continue}}r&&(u.length>0?u+="/..":u="..",g=2)}else u.length>0?u+="/"+n.slice(h+1,y):u=n.slice(h+1,y),g=y-h-1;h=y,d=0}else m===46&&d!==-1?++d:d=-1}return u}l(f,"r"),e(f,"normalizeStringPosix");function p(n,r){var u=r.dir||r.root,g=r.base||(r.name||"")+(r.ext||"");return u?u===r.root?u+g:u+n+g:g}l(p,"n"),e(p,"_format");var a={resolve:e(function(){for(var n="",r=!1,u,g=arguments.length-1;g>=-1&&!r;g--){var h;g>=0?h=arguments[g]:(u===void 0&&(u=o.cwd()),h=u),i(h),h.length!==0&&(n=h+"/"+n,r=h.charCodeAt(0)===47)}return n=f(n,!r),r?n.length>0?"/"+n:"/":n.length>0?n:"."},"resolve2"),normalize:e(function(n){if(i(n),n.length===0)return".";var r=n.charCodeAt(0)===47,u=n.charCodeAt(n.length-1)===47;return n=f(n,!r),n.length===0&&!r&&(n="."),n.length>0&&u&&(n+="/"),r?"/"+n:n},"normalize2"),isAbsolute:e(function(n){return i(n),n.length>0&&n.charCodeAt(0)===47},"isAbsolute2"),join:e(function(){if(arguments.length===0)return".";for(var n,r=0;r<arguments.length;++r){var u=arguments[r];i(u),u.length>0&&(n===void 0?n=u:n+="/"+u)}return n===void 0?".":a.normalize(n)},"join2"),relative:e(function(n,r){if(i(n),i(r),n===r||(n=a.resolve(n),r=a.resolve(r),n===r))return"";for(var u=1;u<n.length&&n.charCodeAt(u)===47;++u);for(var g=n.length,h=g-u,d=1;d<r.length&&r.charCodeAt(d)===47;++d);for(var m=r.length,y=m-d,w=h<y?h:y,_=-1,S=0;S<=w;++S){if(S===w){if(y>w){if(r.charCodeAt(d+S)===47)return r.slice(d+S+1);if(S===0)return r.slice(d+S)}else h>w&&(n.charCodeAt(u+S)===47?_=S:S===0&&(_=0));break}var T=n.charCodeAt(u+S),O=r.charCodeAt(d+S);if(T!==O)break;T===47&&(_=S)}var E="";for(S=u+_+1;S<=g;++S)(S===g||n.charCodeAt(S)===47)&&(E.length===0?E+="..":E+="/..");return E.length>0?E+r.slice(d+_):(d+=_,r.charCodeAt(d)===47&&++d,r.slice(d))},"relative2"),_makeLong:e(function(n){return n},"_makeLong2"),dirname:e(function(n){if(i(n),n.length===0)return".";for(var r=n.charCodeAt(0),u=r===47,g=-1,h=!0,d=n.length-1;d>=1;--d)if(r=n.charCodeAt(d),r===47){if(!h){g=d;break}}else h=!1;return g===-1?u?"/":".":u&&g===1?"//":n.slice(0,g)},"dirname2"),basename:e(function(n,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');i(n);var u=0,g=-1,h=!0,d;if(r!==void 0&&r.length>0&&r.length<=n.length){if(r.length===n.length&&r===n)return"";var m=r.length-1,y=-1;for(d=n.length-1;d>=0;--d){var w=n.charCodeAt(d);if(w===47){if(!h){u=d+1;break}}else y===-1&&(h=!1,y=d+1),m>=0&&(w===r.charCodeAt(m)?--m===-1&&(g=d):(m=-1,g=y))}return u===g?g=y:g===-1&&(g=n.length),n.slice(u,g)}else{for(d=n.length-1;d>=0;--d)if(n.charCodeAt(d)===47){if(!h){u=d+1;break}}else g===-1&&(h=!1,g=d+1);return g===-1?"":n.slice(u,g)}},"basename2"),extname:e(function(n){i(n);for(var r=-1,u=0,g=-1,h=!0,d=0,m=n.length-1;m>=0;--m){var y=n.charCodeAt(m);if(y===47){if(!h){u=m+1;break}continue}g===-1&&(h=!1,g=m+1),y===46?r===-1?r=m:d!==1&&(d=1):r!==-1&&(d=-1)}return r===-1||g===-1||d===0||d===1&&r===g-1&&r===u+1?"":n.slice(r,g)},"extname2"),format:e(function(n){if(n===null||typeof n!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof n);return p("/",n)},"format2"),parse:e(function(n){i(n);var r={root:"",dir:"",base:"",ext:"",name:""};if(n.length===0)return r;var u=n.charCodeAt(0),g=u===47,h;g?(r.root="/",h=1):h=0;for(var d=-1,m=0,y=-1,w=!0,_=n.length-1,S=0;_>=h;--_){if(u=n.charCodeAt(_),u===47){if(!w){m=_+1;break}continue}y===-1&&(w=!1,y=_+1),u===46?d===-1?d=_:S!==1&&(S=1):d!==-1&&(S=-1)}return d===-1||y===-1||S===0||S===1&&d===y-1&&d===m+1?y!==-1&&(m===0&&g?r.base=r.name=n.slice(1,y):r.base=r.name=n.slice(m,y)):(m===0&&g?(r.name=n.slice(1,d),r.base=n.slice(1,y)):(r.name=n.slice(m,d),r.base=n.slice(m,y)),r.ext=n.slice(d,y)),m>0?r.dir=n.slice(0,m-1):g&&(r.dir="/"),r},"parse2"),sep:"/",delimiter:":",win32:null,posix:null};return a.posix=a,Pu=a,Pu}l(xR,"hU");var jn,ma,sa,Vl,IR,PR,jR,CR,LR,NR,DR,UR,MR,$R,WR,zR,HR,qR,GR,VR,KR,JR,YR,ZR,QR,su,XR,eO,tO,rO,nO,iO,oO,aO,sO,lO,fO,uO,cO,hO,dO,pO,gO,yO,mO,wO,bO,vO,_O,EO,SO,ui,Ry,Iu,AO,RO,OO,kO,TO,FO,BO,xO,IO,PO,jO,PE,Pu,f0,Rr,GI,VI,KI,JI,YI,ZI,QI,XI,e6,t6,r6,n6,i6,o6,a6,WL=er(()=>{e(sd,"unimplemented"),jn=[],ma=!1,Vl=-1,e(qI,"cleanUpNextTick"),e(IE,"drainQueue"),e(ER,"nextTick"),e(l0,"Item"),l0.prototype.run=function(){this.fun.apply(null,this.array)},IR="browser",PR="x64",jR="browser",CR={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},LR=["/usr/bin/node"],NR=[],DR="v16.8.0",UR={},MR=e(function(o,i){console.warn((i?i+": ":"")+o)},"emitWarning"),$R=e(function(o){sd("binding")},"binding"),WR=e(function(o){return 0},"umask"),zR=e(function(){return"/"},"cwd"),HR=e(function(o){},"chdir"),qR={name:"node",sourceUrl:"",headersUrl:"",libUrl:""},e(wr,"noop"),GR=wr,VR=[],e(SR,"_linkedBinding"),KR={},JR=!1,YR={},e(AR,"dlopen"),e(RR,"_getActiveRequests"),e(OR,"_getActiveHandles"),ZR=wr,QR=wr,su=e(function(){return{}},"cpuUsage"),XR=su,eO=su,tO=wr,rO=wr,nO=wr,iO={},e(kR,"assert"),oO={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},aO=wr,sO=wr,e(TR,"hasUncaughtExceptionCaptureCallback"),lO=wr,fO=wr,uO=wr,cO=wr,hO=wr,dO=void 0,pO=void 0,gO=void 0,yO=wr,mO=2,wO=1,bO="/bin/usr/node",vO=9229,_O="node",EO=[],SO=wr,ui={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0},ui.now===void 0&&(Ry=Date.now(),ui.timing&&ui.timing.navigationStart&&(Ry=ui.timing.navigationStart),ui.now=()=>Date.now()-Ry),e(FR,"uptime"),Iu=1e9,e(au,"hrtime"),au.bigint=function(o){var i=au(o);return typeof BigInt>"u"?i[0]*Iu+i[1]:BigInt(i[0]*Iu)+BigInt(i[1])},AO=10,RO={},OO=0,e(Qn,"on"),kO=Qn,TO=Qn,FO=Qn,BO=Qn,xO=Qn,IO=wr,PO=Qn,jO=Qn,e(BR,"listeners"),PE={version:DR,versions:UR,arch:PR,platform:jR,release:qR,_rawDebug:GR,moduleLoadList:VR,binding:$R,_linkedBinding:SR,_events:RO,_eventsCount:OO,_maxListeners:AO,on:Qn,addListener:kO,once:TO,off:FO,removeListener:BO,removeAllListeners:xO,emit:IO,prependListener:PO,prependOnceListener:jO,listeners:BR,domain:KR,_exiting:JR,config:YR,dlopen:AR,uptime:FR,_getActiveRequests:RR,_getActiveHandles:OR,reallyExit:ZR,_kill:QR,cpuUsage:su,resourceUsage:XR,memoryUsage:eO,kill:tO,exit:rO,openStdin:nO,allowedNodeEnvironmentFlags:iO,assert:kR,features:oO,_fatalExceptions:aO,setUncaughtExceptionCaptureCallback:sO,hasUncaughtExceptionCaptureCallback:TR,emitWarning:MR,nextTick:ER,_tickCallback:lO,_debugProcess:fO,_debugEnd:uO,_startProfilerIdleNotifier:cO,_stopProfilerIdleNotifier:hO,stdout:dO,stdin:gO,stderr:pO,abort:yO,umask:WR,chdir:HR,cwd:zR,env:CR,title:IR,argv:LR,execArgv:NR,pid:mO,ppid:wO,execPath:bO,debugPort:vO,hrtime:au,argv0:_O,_preload_modules:EO,setSourceMapsEnabled:SO},Pu={},f0=!1,e(xR,"dew"),Rr=xR(),GI=Rr._makeLong,VI=Rr.basename,KI=Rr.delimiter,JI=Rr.dirname,YI=Rr.extname,ZI=Rr.format,QI=Rr.isAbsolute,XI=Rr.join,e6=Rr.normalize,t6=Rr.parse,r6=Rr.posix,n6=Rr.relative,i6=Rr.resolve,o6=Rr.sep,a6=Rr.win32}),s6={};ln(s6,{_makeLong:l(()=>GI,"_makeLong"),basename:l(()=>VI,"basename"),delimiter:l(()=>KI,"delimiter"),dirname:l(()=>JI,"dirname"),extname:l(()=>YI,"extname"),format:l(()=>ZI,"format"),isAbsolute:l(()=>QI,"isAbsolute"),join:l(()=>XI,"join"),normalize:l(()=>e6,"normalize"),parse:l(()=>t6,"parse"),posix:l(()=>r6,"posix"),relative:l(()=>n6,"relative"),resolve:l(()=>i6,"resolve"),sep:l(()=>o6,"sep"),win32:l(()=>a6,"win32")});var zL=er(()=>{WL()}),vf=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.basename=o.isAbsolute=o.normalize=o.dirname=o.relative=o.join=o.posix=o.sep=o.resolve=void 0;var i=(zL(),dr(s6));Object.defineProperty(o,"resolve",{enumerable:!0,get:e(function(){return i.resolve},"get")}),Object.defineProperty(o,"sep",{enumerable:!0,get:e(function(){return i.sep},"get")}),Object.defineProperty(o,"posix",{enumerable:!0,get:e(function(){return i.posix},"get")}),Object.defineProperty(o,"join",{enumerable:!0,get:e(function(){return i.join},"get")}),Object.defineProperty(o,"relative",{enumerable:!0,get:e(function(){return i.relative},"get")}),Object.defineProperty(o,"dirname",{enumerable:!0,get:e(function(){return i.dirname},"get")}),Object.defineProperty(o,"normalize",{enumerable:!0,get:e(function(){return i.normalize},"get")}),Object.defineProperty(o,"isAbsolute",{enumerable:!0,get:e(function(){return i.isAbsolute},"get")}),Object.defineProperty(o,"basename",{enumerable:!0,get:e(function(){return i.basename},"get")})}),jE={};ln(jE,{__addDisposableResource:l(()=>j0,"__addDisposableResource"),__assign:l(()=>Il,"__assign"),__asyncDelegator:l(()=>O0,"__asyncDelegator"),__asyncGenerator:l(()=>R0,"__asyncGenerator"),__asyncValues:l(()=>k0,"__asyncValues"),__await:l(()=>Ta,"__await"),__awaiter:l(()=>b0,"__awaiter"),__classPrivateFieldGet:l(()=>x0,"__classPrivateFieldGet"),__classPrivateFieldIn:l(()=>P0,"__classPrivateFieldIn"),__classPrivateFieldSet:l(()=>I0,"__classPrivateFieldSet"),__createBinding:l(()=>mf,"__createBinding"),__decorate:l(()=>h0,"__decorate"),__disposeResources:l(()=>C0,"__disposeResources"),__esDecorate:l(()=>p0,"__esDecorate"),__exportStar:l(()=>_0,"__exportStar"),__extends:l(()=>u0,"__extends"),__generator:l(()=>v0,"__generator"),__importDefault:l(()=>B0,"__importDefault"),__importStar:l(()=>F0,"__importStar"),__makeTemplateObject:l(()=>T0,"__makeTemplateObject"),__metadata:l(()=>w0,"__metadata"),__param:l(()=>d0,"__param"),__propKey:l(()=>y0,"__propKey"),__read:l(()=>ld,"__read"),__rest:l(()=>c0,"__rest"),__rewriteRelativeImportExtension:l(()=>L0,"__rewriteRelativeImportExtension"),__runInitializers:l(()=>g0,"__runInitializers"),__setFunctionName:l(()=>m0,"__setFunctionName"),__spread:l(()=>E0,"__spread"),__spreadArray:l(()=>A0,"__spreadArray"),__spreadArrays:l(()=>S0,"__spreadArrays"),__values:l(()=>yf,"__values"),default:l(()=>u6,"default")});function u0(o,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");ju(o,i);function f(){this.constructor=o}l(f,"r"),e(f,"__"),o.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}l(u0,"$1");function c0(o,i){var f={};for(var p in o)Object.prototype.hasOwnProperty.call(o,p)&&i.indexOf(p)<0&&(f[p]=o[p]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,p=Object.getOwnPropertySymbols(o);a<p.length;a++)i.indexOf(p[a])<0&&Object.prototype.propertyIsEnumerable.call(o,p[a])&&(f[p[a]]=o[p[a]]);return f}l(c0,"M1");function h0(o,i,f,p){var a=arguments.length,n=a<3?i:p===null?p=Object.getOwnPropertyDescriptor(i,f):p,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,i,f,p);else for(var u=o.length-1;u>=0;u--)(r=o[u])&&(n=(a<3?r(n):a>3?r(i,f,n):r(i,f))||n);return a>3&&n&&Object.defineProperty(i,f,n),n}l(h0,"U1");function d0(o,i){return function(f,p){i(f,p,o)}}l(d0,"j1");function p0(o,i,f,p,a,n){function r(O){if(O!==void 0&&typeof O!="function")throw new TypeError("Function expected");return O}l(r,"i"),e(r,"accept");for(var u=p.kind,g=u==="getter"?"get":u==="setter"?"set":"value",h=!i&&o?p.static?o:o.prototype:null,d=i||(h?Object.getOwnPropertyDescriptor(h,p.name):{}),m,y=!1,w=f.length-1;w>=0;w--){var _={};for(var S in p)_[S]=S==="access"?{}:p[S];for(var S in p.access)_.access[S]=p.access[S];_.addInitializer=function(O){if(y)throw new TypeError("Cannot add initializers after decoration has completed");n.push(r(O||null))};var T=(0,f[w])(u==="accessor"?{get:d.get,set:d.set}:d[g],_);if(u==="accessor"){if(T===void 0)continue;if(T===null||typeof T!="object")throw new TypeError("Object expected");(m=r(T.get))&&(d.get=m),(m=r(T.set))&&(d.set=m),(m=r(T.init))&&a.unshift(m)}else(m=r(T))&&(u==="field"?a.unshift(m):d[g]=m)}h&&Object.defineProperty(h,p.name,d),y=!0}l(p0,"H1");function g0(o,i,f){for(var p=arguments.length>2,a=0;a<i.length;a++)f=p?i[a].call(o,f):i[a].call(o);return p?f:void 0}l(g0,"W1");function y0(o){return typeof o=="symbol"?o:"".concat(o)}l(y0,"q1");function m0(o,i,f){return typeof i=="symbol"&&(i=i.description?"[".concat(i.description,"]"):""),Object.defineProperty(o,"name",{configurable:!0,value:f?"".concat(f," ",i):i})}l(m0,"z1");function w0(o,i){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,i)}l(w0,"V1");function b0(o,i,f,p){function a(n){return n instanceof f?n:new f(function(r){r(n)})}return l(a,"a"),e(a,"adopt"),new(f||(f=Promise))(function(n,r){function u(d){try{h(p.next(d))}catch(m){r(m)}}l(u,"f"),e(u,"fulfilled");function g(d){try{h(p.throw(d))}catch(m){r(m)}}l(g,"h"),e(g,"rejected");function h(d){d.done?n(d.value):a(d.value).then(u,g)}l(h,"c"),e(h,"step"),h((p=p.apply(o,i||[])).next())})}l(b0,"G1");function v0(o,i){var f={label:0,sent:e(function(){if(n[0]&1)throw n[1];return n[1]},"sent"),trys:[],ops:[]},p,a,n,r=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return r.next=u(0),r.throw=u(1),r.return=u(2),typeof Symbol=="function"&&(r[Symbol.iterator]=function(){return this}),r;function u(h){return function(d){return g([h,d])}}function g(h){if(p)throw new TypeError("Generator is already executing.");for(;r&&(r=0,h[0]&&(f=0)),f;)try{if(p=1,a&&(n=h[0]&2?a.return:h[0]?a.throw||((n=a.return)&&n.call(a),0):a.next)&&!(n=n.call(a,h[1])).done)return n;switch(a=0,n&&(h=[h[0]&2,n.value]),h[0]){case 0:case 1:n=h;break;case 4:return f.label++,{value:h[1],done:!1};case 5:f.label++,a=h[1],h=[0];continue;case 7:h=f.ops.pop(),f.trys.pop();continue;default:if(n=f.trys,!(n=n.length>0&&n[n.length-1])&&(h[0]===6||h[0]===2)){f=0;continue}if(h[0]===3&&(!n||h[1]>n[0]&&h[1]<n[3])){f.label=h[1];break}if(h[0]===6&&f.label<n[1]){f.label=n[1],n=h;break}if(n&&f.label<n[2]){f.label=n[2],f.ops.push(h);break}n[2]&&f.ops.pop(),f.trys.pop();continue}h=i.call(o,f)}catch(d){h=[6,d],a=0}finally{p=n=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}}l(v0,"Y1");function _0(o,i){for(var f in o)f!=="default"&&!Object.prototype.hasOwnProperty.call(i,f)&&mf(i,o,f)}l(_0,"K1");function yf(o){var i=typeof Symbol=="function"&&Symbol.iterator,f=i&&o[i],p=0;if(f)return f.call(o);if(o&&typeof o.length=="number")return{next:e(function(){return o&&p>=o.length&&(o=void 0),{value:o&&o[p++],done:!o}},"next")};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}l(yf,"Du");function ld(o,i){var f=typeof Symbol=="function"&&o[Symbol.iterator];if(!f)return o;var p=f.call(o),a,n=[],r;try{for(;(i===void 0||i-- >0)&&!(a=p.next()).done;)n.push(a.value)}catch(u){r={error:u}}finally{try{a&&!a.done&&(f=p.return)&&f.call(p)}finally{if(r)throw r.error}}return n}l(ld,"Ay");function E0(){for(var o=[],i=0;i<arguments.length;i++)o=o.concat(ld(arguments[i]));return o}l(E0,"X1");function S0(){for(var o=0,i=0,f=arguments.length;i<f;i++)o+=arguments[i].length;for(var p=Array(o),a=0,i=0;i<f;i++)for(var n=arguments[i],r=0,u=n.length;r<u;r++,a++)p[a]=n[r];return p}l(S0,"J1");function A0(o,i,f){if(f||arguments.length===2)for(var p=0,a=i.length,n;p<a;p++)(n||!(p in i))&&(n||(n=Array.prototype.slice.call(i,0,p)),n[p]=i[p]);return o.concat(n||Array.prototype.slice.call(i))}l(A0,"Z1");function Ta(o){return this instanceof Ta?(this.v=o,this):new Ta(o)}l(Ta,"za");function R0(o,i,f){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var p=f.apply(o,i||[]),a,n=[];return a=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",r),a[Symbol.asyncIterator]=function(){return this},a;function r(w){return function(_){return Promise.resolve(_).then(w,m)}}function u(w,_){p[w]&&(a[w]=function(S){return new Promise(function(T,O){n.push([w,S,T,O])>1||g(w,S)})},_&&(a[w]=_(a[w])))}function g(w,_){try{h(p[w](_))}catch(S){y(n[0][3],S)}}function h(w){w.value instanceof Ta?Promise.resolve(w.value.v).then(d,m):y(n[0][2],w)}function d(w){g("next",w)}function m(w){g("throw",w)}function y(w,_){w(_),n.shift(),n.length&&g(n[0][0],n[0][1])}}l(R0,"Q1");function O0(o){var i,f;return i={},p("next"),p("throw",function(a){throw a}),p("return"),i[Symbol.iterator]=function(){return this},i;function p(a,n){i[a]=o[a]?function(r){return(f=!f)?{value:Ta(o[a](r)),done:!1}:n?n(r):r}:n}}l(O0,"eE");function k0(o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=o[Symbol.asyncIterator],f;return i?i.call(o):(o=typeof yf=="function"?yf(o):o[Symbol.iterator](),f={},p("next"),p("throw"),p("return"),f[Symbol.asyncIterator]=function(){return this},f);function p(n){f[n]=o[n]&&function(r){return new Promise(function(u,g){r=o[n](r),a(u,g,r.done,r.value)})}}function a(n,r,u,g){Promise.resolve(g).then(function(h){n({value:h,done:u})},r)}}l(k0,"tE");function T0(o,i){return Object.defineProperty?Object.defineProperty(o,"raw",{value:i}):o.raw=i,o}l(T0,"rE");function F0(o){if(o&&o.__esModule)return o;var i={};if(o!=null)for(var f=Cu(o),p=0;p<f.length;p++)f[p]!=="default"&&mf(i,o,f[p]);return l6(i,o),i}l(F0,"nE");function B0(o){return o&&o.__esModule?o:{default:o}}l(B0,"iE");function x0(o,i,f,p){if(f==="a"&&!p)throw new TypeError("Private accessor was defined without a getter");if(typeof i=="function"?o!==i||!p:!i.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return f==="m"?p:f==="a"?p.call(o):p?p.value:i.get(o)}l(x0,"oE");function I0(o,i,f,p,a){if(p==="m")throw new TypeError("Private method is not writable");if(p==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof i=="function"?o!==i||!a:!i.has(o))throw new TypeError("Cannot write private member to an object whose class did not declare it");return p==="a"?a.call(o,f):a?a.value=f:i.set(o,f),f}l(I0,"aE");function P0(o,i){if(i===null||typeof i!="object"&&typeof i!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof o=="function"?i===o:o.has(i)}l(P0,"sE");function j0(o,i,f){if(i!=null){if(typeof i!="object"&&typeof i!="function")throw new TypeError("Object expected.");var p,a;if(f){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");p=i[Symbol.asyncDispose]}if(p===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");p=i[Symbol.dispose],f&&(a=p)}if(typeof p!="function")throw new TypeError("Object not disposable.");a&&(p=e(function(){try{a.call(this)}catch(n){return Promise.reject(n)}},"dispose")),o.stack.push({value:i,dispose:p,async:f})}else f&&o.stack.push({async:!0});return i}l(j0,"lE");function C0(o){function i(n){o.error=o.hasError?new f6(n,o.error,"An error was suppressed during disposal."):n,o.hasError=!0}l(i,"t"),e(i,"fail");var f,p=0;function a(){for(;f=o.stack.pop();)try{if(!f.async&&p===1)return p=0,o.stack.push(f),Promise.resolve().then(a);if(f.dispose){var n=f.dispose.call(f.value);if(f.async)return p|=2,Promise.resolve(n).then(a,function(r){return i(r),a()})}else p|=1}catch(r){i(r)}if(p===1)return o.hasError?Promise.reject(o.error):Promise.resolve();if(o.hasError)throw o.error}return l(a,"a"),e(a,"next"),a()}l(C0,"fE");function L0(o,i){return typeof o=="string"&&/^\.\.?\//.test(o)?o.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(f,p,a,n,r){return p?i?".jsx":".js":a&&(!n||!r)?f:a+n+"."+r.toLowerCase()+"js"}):o}l(L0,"uE");var ju,Il,mf,l6,Cu,f6,u6,c6=er(()=>{ju=e(function(o,i){return ju=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,p){f.__proto__=p}||function(f,p){for(var a in p)Object.prototype.hasOwnProperty.call(p,a)&&(f[a]=p[a])},ju(o,i)},"extendStatics"),e(u0,"__extends"),Il=e(function(){return Il=Object.assign||e(function(o){for(var i,f=1,p=arguments.length;f<p;f++){i=arguments[f];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(o[a]=i[a])}return o},"__assign"),Il.apply(this,arguments)},"__assign"),e(c0,"__rest"),e(h0,"__decorate"),e(d0,"__param"),e(p0,"__esDecorate"),e(g0,"__runInitializers"),e(y0,"__propKey"),e(m0,"__setFunctionName"),e(w0,"__metadata"),e(b0,"__awaiter"),e(v0,"__generator"),mf=Object.create?function(o,i,f,p){p===void 0&&(p=f);var a=Object.getOwnPropertyDescriptor(i,f);(!a||("get"in a?!i.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:e(function(){return i[f]},"get")}),Object.defineProperty(o,p,a)}:function(o,i,f,p){p===void 0&&(p=f),o[p]=i[f]},e(_0,"__exportStar"),e(yf,"__values"),e(ld,"__read"),e(E0,"__spread"),e(S0,"__spreadArrays"),e(A0,"__spreadArray"),e(Ta,"__await"),e(R0,"__asyncGenerator"),e(O0,"__asyncDelegator"),e(k0,"__asyncValues"),e(T0,"__makeTemplateObject"),l6=Object.create?function(o,i){Object.defineProperty(o,"default",{enumerable:!0,value:i})}:function(o,i){o.default=i},Cu=e(function(o){return Cu=Object.getOwnPropertyNames||function(i){var f=[];for(var p in i)Object.prototype.hasOwnProperty.call(i,p)&&(f[f.length]=p);return f},Cu(o)},"ownKeys"),e(F0,"__importStar"),e(B0,"__importDefault"),e(x0,"__classPrivateFieldGet"),e(I0,"__classPrivateFieldSet"),e(P0,"__classPrivateFieldIn"),e(j0,"__addDisposableResource"),f6=typeof SuppressedError=="function"?SuppressedError:function(o,i,f){var p=new Error(f);return p.name="SuppressedError",p.error=o,p.suppressed=i,p},e(C0,"__disposeResources"),e(L0,"__rewriteRelativeImportExtension"),u6={__extends:u0,__assign:Il,__rest:c0,__decorate:h0,__param:d0,__esDecorate:p0,__runInitializers:g0,__propKey:y0,__setFunctionName:m0,__metadata:w0,__awaiter:b0,__generator:v0,__createBinding:mf,__exportStar:_0,__values:yf,__read:ld,__spread:E0,__spreadArrays:S0,__spreadArray:A0,__await:Ta,__asyncGenerator:R0,__asyncDelegator:O0,__asyncValues:k0,__makeTemplateObject:T0,__importStar:F0,__importDefault:B0,__classPrivateFieldGet:x0,__classPrivateFieldSet:I0,__classPrivateFieldIn:P0,__addDisposableResource:j0,__disposeResources:C0,__rewriteRelativeImportExtension:L0}}),HL=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0})}),h6=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.flattenJSON=void 0;var i=xa(),f=vf(),p=f.posix?f.posix.join:f.join,a=e(n=>{let r={};function u(g,h){for(let d in h){let m=h[d],y=p(g,d);typeof m=="string"||m instanceof i.Buffer?r[y]=m:typeof m=="object"&&m!==null&&!(m instanceof i.Buffer)&&Object.keys(m).length>0?u(y,m):r[y]=null}}return l(u,"r"),e(u,"flatten"),u("",n),r},"flattenJSON");o.flattenJSON=a}),d6=Ge(o=>{"use strict";var p;Object.defineProperty(o,"__esModule",{value:!0}),o.FanOut=void 0;var i=(p=class{constructor(){this.listeners=new Set}emit(n){this.listeners.forEach(r=>r(n))}listen(n){let r=this.listeners;return r.add(n),()=>r.delete(n)}},l(p,"Py"),p);e(i,"FanOut");var f=i;o.FanOut=f});function fd(o){throw new Error("Node.js process "+o+" is not supported by JSPM core outside of Node.js")}l(fd,"Cy");function p6(){!wa||!la||(wa=!1,la.length?Cn=la.concat(Cn):Kl=-1,Cn.length&&CE())}l(p6,"BU");function CE(){if(!wa){var o=setTimeout(p6,0);wa=!0;for(var i=Cn.length;i;){for(la=Cn,Cn=[];++Kl<i;)la&&la[Kl].run();Kl=-1,i=Cn.length}la=null,wa=!1,clearTimeout(o)}}l(CE,"pE");function N0(o){var i=new Array(arguments.length-1);if(arguments.length>1)for(var f=1;f<arguments.length;f++)i[f-1]=arguments[f];Cn.push(new D0(o,i)),Cn.length===1&&!wa&&setTimeout(CE,0)}l(N0,"yE");function D0(o,i){this.fun=o,this.array=i}l(D0,"mE");function br(){}l(br,"Kt");function U0(o){fd("_linkedBinding")}l(U0,"CE");function M0(o){fd("dlopen")}l(M0,"$E");function $0(){return[]}l($0,"ME");function W0(){return[]}l(W0,"UE");function z0(o,i){if(!o)throw new Error(i||"assertion error")}l(z0,"KE");function H0(){return!1}l(H0,"QE");function q0(){return ci.now()/1e3}l(q0,"mS");function Pl(o){var i=Math.floor((Date.now()-ci.now())*.001),f=ci.now()*.001,p=Math.floor(f)+i,a=Math.floor(f%1*1e9);return o&&(p=p-o[0],a=a-o[1],a<0&&(p--,a+=Lu)),[p,a]}l(Pl,"Hu");function Tn(){return g6}l(Tn,"Vn");function G0(o){return[]}l(G0,"xS");var Cn,wa,la,Kl,V0,K0,J0,Y0,Z0,Q0,X0,ew,tw,rw,nw,iw,ow,aw,sw,lw,fw,uw,cw,hw,dw,pw,jl,gw,yw,mw,ww,bw,vw,_w,Ew,Sw,Aw,Rw,Ow,kw,Tw,Fw,Bw,xw,Iw,Pw,jw,Cw,Lw,Nw,Dw,Uw,ci,Oy,Lu,Mw,$w,Ww,zw,Hw,qw,Gw,Vw,Kw,Jw,Yw,g6,qL=er(()=>{e(fd,"unimplemented"),Cn=[],wa=!1,Kl=-1,e(p6,"cleanUpNextTick"),e(CE,"drainQueue"),e(N0,"nextTick"),e(D0,"Item"),D0.prototype.run=function(){this.fun.apply(null,this.array)},V0="browser",K0="x64",J0="browser",Y0={PATH:"/usr/bin",LANG:typeof navigator<"u"?navigator.language+".UTF-8":void 0,PWD:"/",HOME:"/home",TMP:"/tmp"},Z0=["/usr/bin/node"],Q0=[],X0="v16.8.0",ew={},tw=e(function(o,i){console.warn((i?i+": ":"")+o)},"emitWarning"),rw=e(function(o){fd("binding")},"binding"),nw=e(function(o){return 0},"umask"),iw=e(function(){return"/"},"cwd"),ow=e(function(o){},"chdir"),aw={name:"node",sourceUrl:"",headersUrl:"",libUrl:""},e(br,"noop"),sw=!0,lw=br,fw=[],e(U0,"_linkedBinding"),uw={},cw=!1,hw={},e(M0,"dlopen"),e($0,"_getActiveRequests"),e(W0,"_getActiveHandles"),dw=br,pw=br,jl=e(function(){return{}},"cpuUsage"),gw=jl,yw=jl,mw=br,ww=br,bw=br,vw={},e(z0,"assert"),_w={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},Ew=br,Sw=br,e(H0,"hasUncaughtExceptionCaptureCallback"),Aw=br,Rw=br,Ow=br,kw=br,Tw=br,Fw=void 0,Bw=void 0,xw=void 0,Iw=br,Pw=2,jw=1,Cw="/bin/usr/node",Lw=9229,Nw="node",Dw=[],Uw=br,ci={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0},ci.now===void 0&&(Oy=Date.now(),ci.timing&&ci.timing.navigationStart&&(Oy=ci.timing.navigationStart),ci.now=()=>Date.now()-Oy),e(q0,"uptime"),Lu=1e9,e(Pl,"hrtime"),Pl.bigint=function(o){var i=Pl(o);return typeof BigInt>"u"?i[0]*Lu+i[1]:BigInt(i[0]*Lu)+BigInt(i[1])},Mw=10,$w={},Ww=0,e(Tn,"on"),zw=Tn,Hw=Tn,qw=Tn,Gw=Tn,Vw=Tn,Kw=br,Jw=Tn,Yw=Tn,e(G0,"listeners"),g6={version:X0,versions:ew,arch:K0,platform:J0,browser:sw,release:aw,_rawDebug:lw,moduleLoadList:fw,binding:rw,_linkedBinding:U0,_events:$w,_eventsCount:Ww,_maxListeners:Mw,on:Tn,addListener:zw,once:Hw,off:qw,removeListener:Gw,removeAllListeners:Vw,emit:Kw,prependListener:Jw,prependOnceListener:Yw,listeners:G0,domain:uw,_exiting:cw,config:hw,dlopen:M0,uptime:q0,_getActiveRequests:$0,_getActiveHandles:W0,reallyExit:dw,_kill:pw,cpuUsage:jl,resourceUsage:gw,memoryUsage:yw,kill:mw,exit:ww,openStdin:bw,allowedNodeEnvironmentFlags:vw,assert:z0,features:_w,_fatalExceptions:Ew,setUncaughtExceptionCaptureCallback:Sw,hasUncaughtExceptionCaptureCallback:H0,emitWarning:tw,nextTick:N0,_tickCallback:Aw,_debugProcess:Rw,_debugEnd:Ow,_startProfilerIdleNotifier:kw,_stopProfilerIdleNotifier:Tw,stdout:Fw,stdin:xw,stderr:Bw,abort:Iw,umask:nw,chdir:ow,cwd:iw,env:Y0,title:V0,argv:Z0,execArgv:Q0,pid:Pw,ppid:jw,execPath:Cw,debugPort:Lw,hrtime:Pl,argv0:Nw,_preload_modules:Dw,setSourceMapsEnabled:Uw}}),y6={};ln(y6,{_debugEnd:l(()=>Ow,"_debugEnd"),_debugProcess:l(()=>Rw,"_debugProcess"),_events:l(()=>$w,"_events"),_eventsCount:l(()=>Ww,"_eventsCount"),_exiting:l(()=>cw,"_exiting"),_fatalExceptions:l(()=>Ew,"_fatalExceptions"),_getActiveHandles:l(()=>W0,"_getActiveHandles"),_getActiveRequests:l(()=>$0,"_getActiveRequests"),_kill:l(()=>pw,"_kill"),_linkedBinding:l(()=>U0,"_linkedBinding"),_maxListeners:l(()=>Mw,"_maxListeners"),_preload_modules:l(()=>Dw,"_preload_modules"),_rawDebug:l(()=>lw,"_rawDebug"),_startProfilerIdleNotifier:l(()=>kw,"_startProfilerIdleNotifier"),_stopProfilerIdleNotifier:l(()=>Tw,"_stopProfilerIdleNotifier"),_tickCallback:l(()=>Aw,"_tickCallback"),abort:l(()=>Iw,"abort"),addListener:l(()=>zw,"addListener"),allowedNodeEnvironmentFlags:l(()=>vw,"allowedNodeEnvironmentFlags"),arch:l(()=>K0,"arch"),argv:l(()=>Z0,"argv"),argv0:l(()=>Nw,"argv0"),assert:l(()=>z0,"assert"),binding:l(()=>rw,"binding"),browser:l(()=>sw,"browser"),chdir:l(()=>ow,"chdir"),config:l(()=>hw,"config"),cpuUsage:l(()=>jl,"cpuUsage"),cwd:l(()=>iw,"cwd"),debugPort:l(()=>Lw,"debugPort"),dlopen:l(()=>M0,"dlopen"),domain:l(()=>uw,"domain"),emit:l(()=>Kw,"emit"),emitWarning:l(()=>tw,"emitWarning"),env:l(()=>Y0,"env"),execArgv:l(()=>Q0,"execArgv"),execPath:l(()=>Cw,"execPath"),exit:l(()=>ww,"exit"),features:l(()=>_w,"features"),hasUncaughtExceptionCaptureCallback:l(()=>H0,"hasUncaughtExceptionCaptureCallback"),hrtime:l(()=>Pl,"hrtime"),kill:l(()=>mw,"kill"),listeners:l(()=>G0,"listeners"),memoryUsage:l(()=>yw,"memoryUsage"),moduleLoadList:l(()=>fw,"moduleLoadList"),nextTick:l(()=>N0,"nextTick"),off:l(()=>qw,"off"),on:l(()=>Tn,"on"),once:l(()=>Hw,"once"),openStdin:l(()=>bw,"openStdin"),pid:l(()=>Pw,"pid"),platform:l(()=>J0,"platform"),ppid:l(()=>jw,"ppid"),prependListener:l(()=>Jw,"prependListener"),prependOnceListener:l(()=>Yw,"prependOnceListener"),reallyExit:l(()=>dw,"reallyExit"),release:l(()=>aw,"release"),removeAllListeners:l(()=>Vw,"removeAllListeners"),removeListener:l(()=>Gw,"removeListener"),resourceUsage:l(()=>gw,"resourceUsage"),setSourceMapsEnabled:l(()=>Uw,"setSourceMapsEnabled"),setUncaughtExceptionCaptureCallback:l(()=>Sw,"setUncaughtExceptionCaptureCallback"),stderr:l(()=>Bw,"stderr"),stdin:l(()=>xw,"stdin"),stdout:l(()=>Fw,"stdout"),title:l(()=>V0,"title"),umask:l(()=>nw,"umask"),uptime:l(()=>q0,"uptime"),version:l(()=>X0,"version"),versions:l(()=>ew,"versions")});var GL=er(()=>{qL()}),LE=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.createProcess=f;var i=e(()=>{if(typeof process<"u")return process;try{return GL(),dr(y6)}catch{return}},"maybeReturnProcess");function f(){let p=i()||{};return p.cwd||(p.cwd=()=>"/"),p.emitWarning||(p.emitWarning=(a,n)=>{console.warn(`${n}${n?": ":""}${a}`)}),p.env||(p.env={}),p}l(f,"kS"),e(f,"createProcess"),o.default=f()}),m6=Ge(o=>{"use strict";var _;Object.defineProperty(o,"__esModule",{value:!0}),o.Node=void 0;var i=d6(),f=LE(),p=xa(),a=Wn(),{S_IFMT:n,S_IFDIR:r,S_IFREG:u,S_IFLNK:g,S_IFCHR:h}=a.constants,d=e(()=>f.default.getuid?.()??0,"getuid"),m=e(()=>f.default.getgid?.()??0,"getgid"),y=(_=class{constructor(T,O=438){this.changes=new i.FanOut,this._uid=d(),this._gid=m(),this._atime=new Date,this._mtime=new Date,this._ctime=new Date,this.rdev=0,this._nlink=1,this.mode=O,this.ino=T}set ctime(T){this._ctime=T}get ctime(){return this._ctime}set uid(T){this._uid=T,this.ctime=new Date}get uid(){return this._uid}set gid(T){this._gid=T,this.ctime=new Date}get gid(){return this._gid}set atime(T){this._atime=T}get atime(){return this._atime}set mtime(T){this._mtime=T,this.ctime=new Date}get mtime(){return this._mtime}get perm(){return this.mode&~n}set perm(T){this.mode=this.mode&n|T&~n,this.ctime=new Date}set nlink(T){this._nlink=T,this.ctime=new Date}get nlink(){return this._nlink}getString(T="utf8"){return this.atime=new Date,this.getBuffer().toString(T)}setString(T){this.buf=(0,p.bufferFrom)(T,"utf8"),this.touch()}getBuffer(){return this.atime=new Date,this.buf||(this.buf=(0,p.bufferAllocUnsafe)(0)),(0,p.bufferFrom)(this.buf)}setBuffer(T){this.buf=(0,p.bufferFrom)(T),this.touch()}getSize(){return this.buf?this.buf.length:0}setModeProperty(T){this.mode=T}isFile(){return(this.mode&n)===u}isDirectory(){return(this.mode&n)===r}isSymlink(){return(this.mode&n)===g}isCharacterDevice(){return(this.mode&n)===h}makeSymlink(T){this.mode=g|438,this.symlink=T}write(T,O=0,E=T.length,P=0){if(this.buf||(this.buf=(0,p.bufferAllocUnsafe)(0)),P+E>this.buf.length){let A=(0,p.bufferAllocUnsafe)(P+E);this.buf.copy(A,0,0,this.buf.length),this.buf=A}return T.copy(this.buf,P,O,O+E),this.touch(),E}read(T,O=0,E=T.byteLength,P=0){if(this.atime=new Date,this.buf||(this.buf=(0,p.bufferAllocUnsafe)(0)),P>=this.buf.length)return 0;let A=E;A>T.byteLength&&(A=T.byteLength),A+P>this.buf.length&&(A=this.buf.length-P);let x=T instanceof p.Buffer?T:p.Buffer.from(T.buffer,T.byteOffset,T.byteLength);return this.buf.copy(x,O,P,P+A),A}truncate(T=0){if(!T)this.buf=(0,p.bufferAllocUnsafe)(0);else if(this.buf||(this.buf=(0,p.bufferAllocUnsafe)(0)),T<=this.buf.length)this.buf=this.buf.slice(0,T);else{let O=(0,p.bufferAllocUnsafe)(T);this.buf.copy(O),O.fill(0,this.buf.length),this.buf=O}this.touch()}chmod(T){this.mode=this.mode&n|T&~n,this.touch()}chown(T,O){this.uid=T,this.gid=O,this.touch()}touch(){this.mtime=new Date,this.changes.emit(["modify"])}canRead(T=d(),O=m()){return!!(this.perm&4||O===this.gid&&this.perm&32||T===this.uid&&this.perm&256)}canWrite(T=d(),O=m()){return!!(this.perm&2||O===this.gid&&this.perm&16||T===this.uid&&this.perm&128)}canExecute(T=d(),O=m()){return!!(this.perm&1||O===this.gid&&this.perm&8||T===this.uid&&this.perm&64)}del(){this.changes.emit(["delete"])}toJSON(){return{ino:this.ino,uid:this.uid,gid:this.gid,atime:this.atime.getTime(),mtime:this.mtime.getTime(),ctime:this.ctime.getTime(),perm:this.perm,mode:this.mode,nlink:this.nlink,symlink:this.symlink,data:this.getString()}}},l(_,"Ny"),_);e(y,"Node");var w=y;o.Node=w}),w6=Ge(o=>{"use strict";var r;Object.defineProperty(o,"__esModule",{value:!0}),o.Link=void 0;var i=Wn(),f=d6(),{S_IFREG:p}=i.constants,a=(r=class{get steps(){return this._steps}set steps(g){this._steps=g;for(let[h,d]of this.children.entries())h==="."||h===".."||d?.syncSteps()}constructor(g,h,d){this.changes=new f.FanOut,this.children=new Map,this._steps=[],this.ino=0,this.length=0,this.vol=g,this.parent=h,this.name=d,this.syncSteps()}setNode(g){this.node=g,this.ino=g.ino}getNode(){return this.node}createChild(g,h=this.vol.createNode(p|438)){let d=new r(this.vol,this,g);return d.setNode(h),h.isDirectory()&&(d.children.set(".",d),d.getNode().nlink++),this.setChild(g,d),d}setChild(g,h=new r(this.vol,this,g)){return this.children.set(g,h),h.parent=this,this.length++,h.getNode().isDirectory()&&(h.children.set("..",this),this.getNode().nlink++),this.getNode().mtime=new Date,this.changes.emit(["child:add",h,this]),h}deleteChild(g){g.getNode().isDirectory()&&(g.children.delete(".."),this.getNode().nlink--),this.children.delete(g.getName()),this.length--,this.getNode().mtime=new Date,this.changes.emit(["child:del",g,this])}getChild(g){return this.getNode().atime=new Date,this.children.get(g)}getPath(){return this.steps.join("/")}getParentPath(){return this.steps.slice(0,-1).join("/")}getName(){return this.steps[this.steps.length-1]}toJSON(){return{steps:this.steps,ino:this.ino,children:Array.from(this.children.keys())}}syncSteps(){this.steps=this.parent?this.parent.steps.concat([this.name]):[this.name]}},l(r,"Ll"),r);e(a,"Link");var n=a;o.Link=n}),b6=Ge(o=>{"use strict";var n;Object.defineProperty(o,"__esModule",{value:!0}),o.File=void 0;var i=Wn(),{O_APPEND:f}=i.constants,p=(n=class{constructor(u,g,h,d){this.link=u,this.node=g,this.flags=h,this.fd=d,this.position=0,this.flags&f&&(this.position=this.getSize())}getString(u="utf8"){return this.node.getString()}setString(u){this.node.setString(u)}getBuffer(){return this.node.getBuffer()}setBuffer(u){this.node.setBuffer(u)}getSize(){return this.node.getSize()}truncate(u){this.node.truncate(u)}seekTo(u){this.position=u}write(u,g=0,h=u.length,d){typeof d!="number"&&(d=this.position);let m=this.node.write(u,g,h,d);return this.position=d+m,m}read(u,g=0,h=u.byteLength,d){typeof d!="number"&&(d=this.position);let m=this.node.read(u,g,h,d);return this.position=d+m,m}chmod(u){this.node.chmod(u)}chown(u,g){this.node.chown(u,g)}},l(n,"jy"),n);e(p,"File");var a=p;o.File=a}),_f=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.FLAGS=o.ERRSTR=void 0;var i=Wn();o.ERRSTR={PATH_STR:"path must be a string, Buffer, or Uint8Array",FD:"fd must be a file descriptor",MODE_INT:"mode must be an int",CB:"callback must be a function",UID:"uid must be an unsigned int",GID:"gid must be an unsigned int",LEN:"len must be an integer",ATIME:"atime must be an integer",MTIME:"mtime must be an integer",PREFIX:"filename prefix is required",BUFFER:"buffer must be an instance of Buffer or StaticBuffer",OFFSET:"offset must be an integer",LENGTH:"length must be an integer",POSITION:"position must be an integer"};var{O_RDONLY:f,O_WRONLY:p,O_RDWR:a,O_CREAT:n,O_EXCL:r,O_TRUNC:u,O_APPEND:g,O_SYNC:h}=i.constants,d;(function(m){m[m.r=f]="r",m[m["r+"]=a]="r+",m[m.rs=f|h]="rs",m[m.sr=m.rs]="sr",m[m["rs+"]=a|h]="rs+",m[m["sr+"]=m["rs+"]]="sr+",m[m.w=p|n|u]="w",m[m.wx=p|n|u|r]="wx",m[m.xw=m.wx]="xw",m[m["w+"]=a|n|u]="w+",m[m["wx+"]=a|n|u|r]="wx+",m[m["xw+"]=m["wx+"]]="xw+",m[m.a=p|g|n]="a",m[m.ax=p|g|n|r]="ax",m[m.xa=m.ax]="xa",m[m["a+"]=a|g|n]="a+",m[m["ax+"]=a|g|n|r]="ax+",m[m["xa+"]=m["ax+"]]="xa+"})(d||(o.FLAGS=d={}))}),v6=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.default=typeof queueMicrotask=="function"?queueMicrotask:i=>Promise.resolve().then(()=>i()).catch(()=>{})}),NE=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.filenameToSteps=o.resolve=o.unixify=o.isWin=void 0,o.isFd=_,o.validateFd=S,o.dataToBuffer=T;var i=vf(),f=xa(),p=LE(),a=Od(),n=_f();o.isWin=p.default.platform==="win32";var r=i.resolve,u=i.posix?i.posix.sep:i.sep,g=e((O,E)=>{let P=O[E];return E>0&&(P==="/"||o.isWin&&P==="\\")},"isSeparator"),h=e(O=>{let E=O.length-1;if(E<2)return O;for(;g(O,E);)E--;return O.substr(0,E+1)},"removeTrailingSeparator"),d=e((O,E)=>{if(typeof O!="string")throw new TypeError("expected a string");return O=O.replace(/[\\\/]+/g,"/"),E!==!1&&(O=h(O)),O},"normalizePath"),m=e((O,E=!0)=>o.isWin?(O=d(O,E),O.replace(/^([a-zA-Z]+:|\.\/)/,"")):O,"unixify");o.unixify=m;var y=e((O,E=p.default.cwd())=>r(E,O),"resolve");if(o.resolve=y,o.isWin){let O=y;o.resolve=y=e((E,P)=>(0,o.unixify)(O(E,P)),"resolve")}var w=e((O,E)=>{let P=y(O,E).substring(1);return P?P.split(u):[]},"filenameToSteps");o.filenameToSteps=w;function _(O){return O>>>0===O}l(_,"MS"),e(_,"isFd");function S(O){if(!_(O))throw TypeError(n.ERRSTR.FD)}l(S,"r3"),e(S,"validateFd");function T(O,E=a.ENCODING_UTF8){return f.Buffer.isBuffer(O)?O:O instanceof Uint8Array?(0,f.bufferFrom)(O):E==="buffer"?(0,f.bufferFrom)(String(O),"utf8"):(0,f.bufferFrom)(String(O),E)}l(T,"n3"),e(T,"dataToBuffer")});function CO(){if(eb)return Nu;eb=!0;let o=2147483647,i=36,f=1,p=26,a=38,n=700,r=72,u=128,g="-",h=/^xn--/,d=/[^\0-\x7F]/,m=/[\x2E\u3002\uFF0E\uFF61]/g,y={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},w=i-f,_=Math.floor,S=String.fromCharCode;function T(q){throw new RangeError(y[q])}l(T,"b"),e(T,"error");function O(q,G){let re=[],ae=q.length;for(;ae--;)re[ae]=G(q[ae]);return re}l(O,"E"),e(O,"map");function E(q,G){let re=q.split("@"),ae="";re.length>1&&(ae=re[0]+"@",q=re[1]),q=q.replace(m,".");let de=q.split("."),we=O(de,G).join(".");return ae+we}l(E,"R"),e(E,"mapDomain");function P(q){let G=[],re=0,ae=q.length;for(;re<ae;){let de=q.charCodeAt(re++);if(de>=55296&&de<=56319&&re<ae){let we=q.charCodeAt(re++);(we&64512)==56320?G.push(((de&1023)<<10)+(we&1023)+65536):(G.push(de),re--)}else G.push(de)}return G}l(P,"T"),e(P,"ucs2decode");let A=e(q=>String.fromCodePoint(...q),"ucs2encode"),x=e(function(q){return q>=48&&q<58?26+(q-48):q>=65&&q<91?q-65:q>=97&&q<123?q-97:i},"basicToDigit"),U=e(function(q,G){return q+22+75*(q<26)-((G!=0)<<5)},"digitToBasic"),M=e(function(q,G,re){let ae=0;for(q=re?_(q/n):q>>1,q+=_(q/G);q>w*p>>1;ae+=i)q=_(q/w);return _(ae+(w+1)*q/(q+a))},"adapt"),ee=e(function(q){let G=[],re=q.length,ae=0,de=u,we=r,xe=q.lastIndexOf(g);xe<0&&(xe=0);for(let Pe=0;Pe<xe;++Pe)q.charCodeAt(Pe)>=128&&T("not-basic"),G.push(q.charCodeAt(Pe));for(let Pe=xe>0?xe+1:0;Pe<re;){let se=ae;for(let J=1,ue=i;;ue+=i){Pe>=re&&T("invalid-input");let te=x(q.charCodeAt(Pe++));te>=i&&T("invalid-input"),te>_((o-ae)/J)&&T("overflow"),ae+=te*J;let X=ue<=we?f:ue>=we+p?p:ue-we;if(te<X)break;let ye=i-X;J>_(o/ye)&&T("overflow"),J*=ye}let Te=G.length+1;we=M(ae-se,Te,se==0),_(ae/Te)>o-de&&T("overflow"),de+=_(ae/Te),ae%=Te,G.splice(ae++,0,de)}return String.fromCodePoint(...G)},"decode2"),V=e(function(q){let G=[];q=P(q);let re=q.length,ae=u,de=0,we=r;for(let se of q)se<128&&G.push(S(se));let xe=G.length,Pe=xe;for(xe&&G.push(g);Pe<re;){let se=o;for(let J of q)J>=ae&&J<se&&(se=J);let Te=Pe+1;se-ae>_((o-de)/Te)&&T("overflow"),de+=(se-ae)*Te,ae=se;for(let J of q)if(J<ae&&++de>o&&T("overflow"),J===ae){let ue=de;for(let te=i;;te+=i){let X=te<=we?f:te>=we+p?p:te-we;if(ue<X)break;let ye=ue-X,Re=i-X;G.push(S(U(X+ye%Re,0))),ue=_(ye/Re)}G.push(S(U(ue,0))),we=M(de,Te,Pe===xe),de=0,++Pe}++de,++ae}return G.join("")},"encode2");return Nu={version:"2.3.1",ucs2:{decode:P,encode:A},decode:ee,encode:V,toASCII:e(function(q){return E(q,function(G){return d.test(G)?"xn--"+V(G):G})},"toASCII2"),toUnicode:e(function(q){return E(q,function(G){return h.test(G)?ee(G.slice(4).toLowerCase()):G})},"toUnicode2")},Nu}l(CO,"i3");function _6(){return rb||(rb=!0,tb=e(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var o={},i=Symbol("test"),f=Object(i);if(typeof i=="string"||Object.prototype.toString.call(i)!=="[object Symbol]"||Object.prototype.toString.call(f)!=="[object Symbol]")return!1;var p=42;o[i]=p;for(i in o)return!1;if(typeof Object.keys=="function"&&Object.keys(o).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(o).length!==0)return!1;var a=Object.getOwnPropertySymbols(o);if(a.length!==1||a[0]!==i||!Object.prototype.propertyIsEnumerable.call(o,i))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var n=Object.getOwnPropertyDescriptor(o,i);if(n.value!==p||n.enumerable!==!0)return!1}return!0},"hasSymbols")),tb}l(_6,"o3");function E6(){return ib||(ib=!0,nb=Error),nb}l(E6,"a3");function S6(){return ab||(ab=!0,ob=EvalError),ob}l(S6,"s3");function A6(){return lb||(lb=!0,sb=RangeError),sb}l(A6,"l3");function R6(){return ub||(ub=!0,fb=ReferenceError),fb}l(R6,"f3");function DE(){return hb||(hb=!0,cb=SyntaxError),cb}l(DE,"wA");function Xs(){return pb||(pb=!0,db=TypeError),db}l(Xs,"Dl");function O6(){return yb||(yb=!0,gb=URIError),gb}l(O6,"u3");function k6(){if(mb)return Du;mb=!0;var o=typeof Symbol<"u"&&Symbol,i=_6();return Du=e(function(){return typeof o!="function"||typeof Symbol!="function"||typeof o("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:i()},"hasNativeSymbols"),Du}l(k6,"c3");function T6(){if(wb)return Uu;wb=!0;var o={__proto__:null,foo:{}},i=Object;return Uu=e(function(){return{__proto__:o}.foo===o.foo&&!(o instanceof i)},"hasProto"),Uu}l(T6,"h3");function F6(){if(bb)return Mu;bb=!0;var o="Function.prototype.bind called on incompatible ",i=Object.prototype.toString,f=Math.max,p="[object Function]",a=e(function(u,g){for(var h=[],d=0;d<u.length;d+=1)h[d]=u[d];for(var m=0;m<g.length;m+=1)h[m+u.length]=g[m];return h},"concatty2"),n=e(function(u,g){for(var h=[],d=g,m=0;d<u.length;d+=1,m+=1)h[m]=u[d];return h},"slicy2"),r=e(function(u,g){for(var h="",d=0;d<u.length;d+=1)h+=u[d],d+1<u.length&&(h+=g);return h},"joiny");return Mu=e(function(u){var g=this;if(typeof g!="function"||i.apply(g)!==p)throw new TypeError(o+g);for(var h=n(arguments,1),d,m=e(function(){if(this instanceof d){var T=g.apply(this,a(h,arguments));return Object(T)===T?T:this}return g.apply(u,a(h,arguments))},"binder"),y=f(0,g.length-h.length),w=[],_=0;_<y;_++)w[_]="$"+_;if(d=Function("binder","return function ("+r(w,",")+"){ return binder.apply(this,arguments); }")(m),g.prototype){var S=e(function(){},"Empty2");S.prototype=g.prototype,d.prototype=new S,S.prototype=null}return d},"bind"),Mu}l(F6,"d3");function kd(){if(vb)return $u;vb=!0;var o=F6();return $u=Function.prototype.bind||o,$u}l(kd,"Rm");function B6(){if(_b)return Wu;_b=!0;var o=Function.prototype.call,i=Object.prototype.hasOwnProperty,f=kd();return Wu=f.call(o,i),Wu}l(B6,"p3");function Ia(){if(Eb)return zu;Eb=!0;var o,i=E6(),f=S6(),p=A6(),a=R6(),n=DE(),r=Xs(),u=O6(),g=Function,h=e(function(Pe){try{return g('"use strict"; return ('+Pe+").constructor;")()}catch{}},"getEvalledConstructor"),d=Object.getOwnPropertyDescriptor;if(d)try{d({},"")}catch{d=null}var m=e(function(){throw new r},"throwTypeError"),y=d?function(){try{return arguments.callee,m}catch{try{return d(arguments,"callee").get}catch{return m}}}():m,w=k6()(),_=T6()(),S=Object.getPrototypeOf||(_?function(Pe){return Pe.__proto__}:null),T={},O=typeof Uint8Array>"u"||!S?o:S(Uint8Array),E={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?o:ArrayBuffer,"%ArrayIteratorPrototype%":w&&S?S([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":T,"%AsyncGenerator%":T,"%AsyncGeneratorFunction%":T,"%AsyncIteratorPrototype%":T,"%Atomics%":typeof Atomics>"u"?o:Atomics,"%BigInt%":typeof BigInt>"u"?o:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?o:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?o:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":f,"%Float32Array%":typeof Float32Array>"u"?o:Float32Array,"%Float64Array%":typeof Float64Array>"u"?o:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?o:FinalizationRegistry,"%Function%":g,"%GeneratorFunction%":T,"%Int8Array%":typeof Int8Array>"u"?o:Int8Array,"%Int16Array%":typeof Int16Array>"u"?o:Int16Array,"%Int32Array%":typeof Int32Array>"u"?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&S?S(S([][Symbol.iterator]())):o,"%JSON%":typeof JSON=="object"?JSON:o,"%Map%":typeof Map>"u"?o:Map,"%MapIteratorPrototype%":typeof Map>"u"||!w||!S?o:S(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?o:Promise,"%Proxy%":typeof Proxy>"u"?o:Proxy,"%RangeError%":p,"%ReferenceError%":a,"%Reflect%":typeof Reflect>"u"?o:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?o:Set,"%SetIteratorPrototype%":typeof Set>"u"||!w||!S?o:S(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&S?S(""[Symbol.iterator]()):o,"%Symbol%":w?Symbol:o,"%SyntaxError%":n,"%ThrowTypeError%":y,"%TypedArray%":O,"%TypeError%":r,"%Uint8Array%":typeof Uint8Array>"u"?o:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?o:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?o:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?o:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>"u"?o:WeakMap,"%WeakRef%":typeof WeakRef>"u"?o:WeakRef,"%WeakSet%":typeof WeakSet>"u"?o:WeakSet};if(S)try{null.error}catch(Pe){var P=S(S(Pe));E["%Error.prototype%"]=P}var A=e(l(function Pe(se){var Te;if(se==="%AsyncFunction%")Te=h("async function () {}");else if(se==="%GeneratorFunction%")Te=h("function* () {}");else if(se==="%AsyncGeneratorFunction%")Te=h("async function* () {}");else if(se==="%AsyncGenerator%"){var J=Pe("%AsyncGeneratorFunction%");J&&(Te=J.prototype)}else if(se==="%AsyncIteratorPrototype%"){var ue=Pe("%AsyncGenerator%");ue&&S&&(Te=S(ue.prototype))}return E[se]=Te,Te},"pe"),"doEval2"),x={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},U=kd(),M=B6(),ee=U.call(Function.call,Array.prototype.concat),V=U.call(Function.apply,Array.prototype.splice),q=U.call(Function.call,String.prototype.replace),G=U.call(Function.call,String.prototype.slice),re=U.call(Function.call,RegExp.prototype.exec),ae=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,de=/\\(\\)?/g,we=e(function(Pe){var se=G(Pe,0,1),Te=G(Pe,-1);if(se==="%"&&Te!=="%")throw new n("invalid intrinsic syntax, expected closing `%`");if(Te==="%"&&se!=="%")throw new n("invalid intrinsic syntax, expected opening `%`");var J=[];return q(Pe,ae,function(ue,te,X,ye){J[J.length]=X?q(ye,de,"$1"):te||ue}),J},"stringToPath2"),xe=e(function(Pe,se){var Te=Pe,J;if(M(x,Te)&&(J=x[Te],Te="%"+J[0]+"%"),M(E,Te)){var ue=E[Te];if(ue===T&&(ue=A(Te)),typeof ue>"u"&&!se)throw new r("intrinsic "+Pe+" exists, but is not available. Please file an issue!");return{alias:J,name:Te,value:ue}}throw new n("intrinsic "+Pe+" does not exist!")},"getBaseIntrinsic2");return zu=e(function(Pe,se){if(typeof Pe!="string"||Pe.length===0)throw new r("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof se!="boolean")throw new r('"allowMissing" argument must be a boolean');if(re(/^%?[^%]*%?$/,Pe)===null)throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Te=we(Pe),J=Te.length>0?Te[0]:"",ue=xe("%"+J+"%",se),te=ue.name,X=ue.value,ye=!1,Re=ue.alias;Re&&(J=Re[0],V(Te,ee([0,1],Re)));for(var De=1,Y=!0;De<Te.length;De+=1){var H=Te[De],Q=G(H,0,1),fe=G(H,-1);if((Q==='"'||Q==="'"||Q==="`"||fe==='"'||fe==="'"||fe==="`")&&Q!==fe)throw new n("property names with quotes must have matching quotes");if((H==="constructor"||!Y)&&(ye=!0),J+="."+H,te="%"+J+"%",M(E,te))X=E[te];else if(X!=null){if(!(H in X)){if(!se)throw new r("base intrinsic for "+Pe+" exists, but the property is not available.");return}if(d&&De+1>=Te.length){var ve=d(X,H);Y=!!ve,Y&&"get"in ve&&!("originalValue"in ve.get)?X=ve.get:X=X[H]}else Y=M(X,H),X=X[H];Y&&!ye&&(E[te]=X)}}return X},"GetIntrinsic"),zu}l(Ia,"Ja");function Td(){if(Sb)return Hu;Sb=!0;var o=Ia(),i=o("%Object.defineProperty%",!0)||!1;if(i)try{i({},"a",{value:1})}catch{i=!1}return Hu=i,Hu}l(Td,"Tm");function UE(){if(Ab)return qu;Ab=!0;var o=Ia(),i=o("%Object.getOwnPropertyDescriptor%",!0);if(i)try{i([],"length")}catch{i=null}return qu=i,qu}l(UE,"vA");function x6(){if(Rb)return Gu;Rb=!0;var o=Td(),i=DE(),f=Xs(),p=UE();return Gu=e(function(a,n,r){if(!a||typeof a!="object"&&typeof a!="function")throw new f("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new f("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new f("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new f("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new f("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new f("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,g=arguments.length>4?arguments[4]:null,h=arguments.length>5?arguments[5]:null,d=arguments.length>6?arguments[6]:!1,m=!!p&&p(a,n);if(o)o(a,n,{configurable:h===null&&m?m.configurable:!h,enumerable:u===null&&m?m.enumerable:!u,value:r,writable:g===null&&m?m.writable:!g});else if(d||!u&&!g&&!h)a[n]=r;else throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},"defineDataProperty"),Gu}l(x6,"y3");function I6(){if(Ob)return Vu;Ob=!0;var o=Td(),i=e(function(){return!!o},"hasPropertyDescriptors2");return i.hasArrayLengthDefineBug=e(function(){if(!o)return null;try{return o([],"length",{value:1}).length!==1}catch{return!0}},"hasArrayLengthDefineBug"),Vu=i,Vu}l(I6,"m3");function P6(){if(kb)return Ku;kb=!0;var o=Ia(),i=x6(),f=I6()(),p=UE(),a=Xs(),n=o("%Math.floor%");return Ku=e(function(r,u){if(typeof r!="function")throw new a("`fn` is not a function");if(typeof u!="number"||u<0||u>4294967295||n(u)!==u)throw new a("`length` must be a positive 32-bit integer");var g=arguments.length>2&&!!arguments[2],h=!0,d=!0;if("length"in r&&p){var m=p(r,"length");m&&!m.configurable&&(h=!1),m&&!m.writable&&(d=!1)}return(h||d||!g)&&(f?i(r,"length",u,!0,!0):i(r,"length",u)),r},"setFunctionLength"),Ku}l(P6,"g3");function j6(){if(Tb)return Ss;Tb=!0;var o=kd(),i=Ia(),f=P6(),p=Xs(),a=i("%Function.prototype.apply%"),n=i("%Function.prototype.call%"),r=i("%Reflect.apply%",!0)||o.call(n,a),u=Td(),g=i("%Math.max%");Ss=e(function(d){if(typeof d!="function")throw new p("a function is required");var m=r(o,n,arguments);return f(m,1+g(0,d.length-(arguments.length-1)),!0)},"callBind");var h=e(function(){return r(o,a,arguments)},"applyBind2");return u?u(Ss,"apply",{value:h}):Ss.apply=h,Ss}l(j6,"w3");function C6(){if(Fb)return Ju;Fb=!0;var o=Ia(),i=j6(),f=i(o("String.prototype.indexOf"));return Ju=e(function(p,a){var n=o(p,!!a);return typeof n=="function"&&f(p,".prototype.")>-1?i(n):n},"callBoundIntrinsic"),Ju}l(C6,"v3");function ud(o){throw new Error("Node.js process "+o+" is not supported by JSPM core outside of Node.js")}l(ud,"Fm");function L6(){!ba||!fa||(ba=!1,fa.length?Ln=fa.concat(Ln):Jl=-1,Ln.length&&ME())}l(L6,"b3");function ME(){if(!ba){var o=setTimeout(L6,0);ba=!0;for(var i=Ln.length;i;){for(fa=Ln,Ln=[];++Jl<i;)fa&&fa[Jl].run();Jl=-1,i=Ln.length}fa=null,ba=!1,clearTimeout(o)}}l(ME,"bA");function LO(o){var i=new Array(arguments.length-1);if(arguments.length>1)for(var f=1;f<arguments.length;f++)i[f-1]=arguments[f];Ln.push(new Zw(o,i)),Ln.length===1&&!ba&&setTimeout(ME,0)}l(LO,"_3");function Zw(o,i){this.fun=o,this.array=i}l(Zw,"_A");function vr(){}l(vr,"Xt");function NO(o){ud("_linkedBinding")}l(NO,"$3");function DO(o){ud("dlopen")}l(DO,"H3");function UO(){return[]}l(UO,"W3");function MO(){return[]}l(MO,"q3");function $O(o,i){if(!o)throw new Error(i||"assertion error")}l($O,"Q3");function WO(){return!1}l(WO,"nj");function zO(){return hi.now()/1e3}l(zO,"bj");function lu(o){var i=Math.floor((Date.now()-hi.now())*.001),f=hi.now()*.001,p=Math.floor(f)+i,a=Math.floor(f%1*1e9);return o&&(p=p-o[0],a=a-o[1],a<0&&(p--,a+=Yu)),[p,a]}l(lu,"Sm");function Xn(){return WE}l(Xn,"Ui");function HO(o){return[]}l(HO,"kj");function qO(){if(Bb)return Zu;Bb=!0;var o=WE;function i(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}l(i,"t"),e(i,"assertPath");function f(n,r){for(var u="",g=0,h=-1,d=0,m,y=0;y<=n.length;++y){if(y<n.length)m=n.charCodeAt(y);else{if(m===47)break;m=47}if(m===47){if(!(h===y-1||d===1))if(h!==y-1&&d===2){if(u.length<2||g!==2||u.charCodeAt(u.length-1)!==46||u.charCodeAt(u.length-2)!==46){if(u.length>2){var w=u.lastIndexOf("/");if(w!==u.length-1){w===-1?(u="",g=0):(u=u.slice(0,w),g=u.length-1-u.lastIndexOf("/")),h=y,d=0;continue}}else if(u.length===2||u.length===1){u="",g=0,h=y,d=0;continue}}r&&(u.length>0?u+="/..":u="..",g=2)}else u.length>0?u+="/"+n.slice(h+1,y):u=n.slice(h+1,y),g=y-h-1;h=y,d=0}else m===46&&d!==-1?++d:d=-1}return u}l(f,"r"),e(f,"normalizeStringPosix");function p(n,r){var u=r.dir||r.root,g=r.base||(r.name||"")+(r.ext||"");return u?u===r.root?u+g:u+n+g:g}l(p,"n"),e(p,"_format");var a={resolve:e(function(){for(var n="",r=!1,u,g=arguments.length-1;g>=-1&&!r;g--){var h;g>=0?h=arguments[g]:(u===void 0&&(u=o.cwd()),h=u),i(h),h.length!==0&&(n=h+"/"+n,r=h.charCodeAt(0)===47)}return n=f(n,!r),r?n.length>0?"/"+n:"/":n.length>0?n:"."},"resolve2"),normalize:e(function(n){if(i(n),n.length===0)return".";var r=n.charCodeAt(0)===47,u=n.charCodeAt(n.length-1)===47;return n=f(n,!r),n.length===0&&!r&&(n="."),n.length>0&&u&&(n+="/"),r?"/"+n:n},"normalize"),isAbsolute:e(function(n){return i(n),n.length>0&&n.charCodeAt(0)===47},"isAbsolute"),join:e(function(){if(arguments.length===0)return".";for(var n,r=0;r<arguments.length;++r){var u=arguments[r];i(u),u.length>0&&(n===void 0?n=u:n+="/"+u)}return n===void 0?".":a.normalize(n)},"join"),relative:e(function(n,r){if(i(n),i(r),n===r||(n=a.resolve(n),r=a.resolve(r),n===r))return"";for(var u=1;u<n.length&&n.charCodeAt(u)===47;++u);for(var g=n.length,h=g-u,d=1;d<r.length&&r.charCodeAt(d)===47;++d);for(var m=r.length,y=m-d,w=h<y?h:y,_=-1,S=0;S<=w;++S){if(S===w){if(y>w){if(r.charCodeAt(d+S)===47)return r.slice(d+S+1);if(S===0)return r.slice(d+S)}else h>w&&(n.charCodeAt(u+S)===47?_=S:S===0&&(_=0));break}var T=n.charCodeAt(u+S),O=r.charCodeAt(d+S);if(T!==O)break;T===47&&(_=S)}var E="";for(S=u+_+1;S<=g;++S)(S===g||n.charCodeAt(S)===47)&&(E.length===0?E+="..":E+="/..");return E.length>0?E+r.slice(d+_):(d+=_,r.charCodeAt(d)===47&&++d,r.slice(d))},"relative"),_makeLong:e(function(n){return n},"_makeLong"),dirname:e(function(n){if(i(n),n.length===0)return".";for(var r=n.charCodeAt(0),u=r===47,g=-1,h=!0,d=n.length-1;d>=1;--d)if(r=n.charCodeAt(d),r===47){if(!h){g=d;break}}else h=!1;return g===-1?u?"/":".":u&&g===1?"//":n.slice(0,g)},"dirname"),basename:e(function(n,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');i(n);var u=0,g=-1,h=!0,d;if(r!==void 0&&r.length>0&&r.length<=n.length){if(r.length===n.length&&r===n)return"";var m=r.length-1,y=-1;for(d=n.length-1;d>=0;--d){var w=n.charCodeAt(d);if(w===47){if(!h){u=d+1;break}}else y===-1&&(h=!1,y=d+1),m>=0&&(w===r.charCodeAt(m)?--m===-1&&(g=d):(m=-1,g=y))}return u===g?g=y:g===-1&&(g=n.length),n.slice(u,g)}else{for(d=n.length-1;d>=0;--d)if(n.charCodeAt(d)===47){if(!h){u=d+1;break}}else g===-1&&(h=!1,g=d+1);return g===-1?"":n.slice(u,g)}},"basename"),extname:e(function(n){i(n);for(var r=-1,u=0,g=-1,h=!0,d=0,m=n.length-1;m>=0;--m){var y=n.charCodeAt(m);if(y===47){if(!h){u=m+1;break}continue}g===-1&&(h=!1,g=m+1),y===46?r===-1?r=m:d!==1&&(d=1):r!==-1&&(d=-1)}return r===-1||g===-1||d===0||d===1&&r===g-1&&r===u+1?"":n.slice(r,g)},"extname"),format:e(function(n){if(n===null||typeof n!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof n);return p("/",n)},"format2"),parse:e(function(n){i(n);var r={root:"",dir:"",base:"",ext:"",name:""};if(n.length===0)return r;var u=n.charCodeAt(0),g=u===47,h;g?(r.root="/",h=1):h=0;for(var d=-1,m=0,y=-1,w=!0,_=n.length-1,S=0;_>=h;--_){if(u=n.charCodeAt(_),u===47){if(!w){m=_+1;break}continue}y===-1&&(w=!1,y=_+1),u===46?d===-1?d=_:S!==1&&(S=1):d!==-1&&(S=-1)}return d===-1||y===-1||S===0||S===1&&d===y-1&&d===m+1?y!==-1&&(m===0&&g?r.base=r.name=n.slice(1,y):r.base=r.name=n.slice(m,y)):(m===0&&g?(r.name=n.slice(1,d),r.base=n.slice(1,y)):(r.name=n.slice(m,d),r.base=n.slice(m,y)),r.ext=n.slice(d,y)),m>0?r.dir=n.slice(0,m-1):g&&(r.dir="/"),r},"parse2"),sep:"/",delimiter:":",win32:null,posix:null};return a.posix=a,Zu=a,Zu}l(qO,"Bj");function N6(){if(Ib)return Qu;Ib=!0;var o=typeof Map=="function"&&Map.prototype,i=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,f=o&&i&&typeof i.get=="function"?i.get:null,p=o&&Map.prototype.forEach,a=typeof Set=="function"&&Set.prototype,n=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,r=a&&n&&typeof n.get=="function"?n.get:null,u=a&&Set.prototype.forEach,g=typeof WeakMap=="function"&&WeakMap.prototype,h=g?WeakMap.prototype.has:null,d=typeof WeakSet=="function"&&WeakSet.prototype,m=d?WeakSet.prototype.has:null,y=typeof WeakRef=="function"&&WeakRef.prototype,w=y?WeakRef.prototype.deref:null,_=Boolean.prototype.valueOf,S=Object.prototype.toString,T=Function.prototype.toString,O=String.prototype.match,E=String.prototype.slice,P=String.prototype.replace,A=String.prototype.toUpperCase,x=String.prototype.toLowerCase,U=RegExp.prototype.test,M=Array.prototype.concat,ee=Array.prototype.join,V=Array.prototype.slice,q=Math.floor,G=typeof BigInt=="function"?BigInt.prototype.valueOf:null,re=Object.getOwnPropertySymbols,ae=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,de=typeof Symbol=="function"&&typeof Symbol.iterator=="object",we=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===de||!0)?Symbol.toStringTag:null,xe=Object.prototype.propertyIsEnumerable,Pe=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(Z){return Z.__proto__}:null);function se(Z,oe){if(Z===1/0||Z===-1/0||Z!==Z||Z&&Z>-1e3&&Z<1e3||U.call(/e/,oe))return oe;var Ae=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof Z=="number"){var le=Z<0?-q(-Z):q(Z);if(le!==Z){var Fe=String(le),ie=E.call(oe,Fe.length+1);return P.call(Fe,Ae,"$&_")+"."+P.call(P.call(ie,/([0-9]{3})/g,"$&_"),/_$/,"")}}return P.call(oe,Ae,"$&_")}l(se,"Q"),e(se,"addNumericSeparator");var Te=H6,J=Te.custom,ue=ve(J)?J:null;Qu=e(l(function Z(oe,Ae,le,Fe){var ie=Ae||{};if(D(ie,"quoteStyle")&&ie.quoteStyle!=="single"&&ie.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(D(ie,"maxStringLength")&&(typeof ie.maxStringLength=="number"?ie.maxStringLength<0&&ie.maxStringLength!==1/0:ie.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Je=D(ie,"customInspect")?ie.customInspect:!0;if(typeof Je!="boolean"&&Je!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(D(ie,"indent")&&ie.indent!==null&&ie.indent!==" "&&!(parseInt(ie.indent,10)===ie.indent&&ie.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(D(ie,"numericSeparator")&&typeof ie.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var dt=ie.numericSeparator;if(typeof oe>"u")return"undefined";if(oe===null)return"null";if(typeof oe=="boolean")return oe?"true":"false";if(typeof oe=="string")return $e(oe,ie);if(typeof oe=="number"){if(oe===0)return 1/0/oe>0?"0":"-0";var W=String(oe);return dt?se(oe,W):W}if(typeof oe=="bigint"){var qe=String(oe)+"n";return dt?se(oe,qe):qe}var Ve=typeof ie.depth>"u"?5:ie.depth;if(typeof le>"u"&&(le=0),le>=Ve&&Ve>0&&typeof oe=="object")return ye(oe)?"[Array]":"[Object]";var pe=R(ie,le);if(typeof Fe>"u")Fe=[];else if(Oe(Fe,oe)>=0)return"[Circular]";function Le(Dt,Mt,gr){if(Mt&&(Fe=V.call(Fe),Fe.push(Mt)),gr){var al={depth:ie.depth};return D(ie,"quoteStyle")&&(al.quoteStyle=ie.quoteStyle),Z(Dt,al,le+1,Fe)}return Z(Dt,ie,le+1,Fe)}if(l(Le,"nr"),e(Le,"inspect"),typeof oe=="function"&&!De(oe)){var He=Ee(oe),me=j(oe,Le);return"[Function"+(He?": "+He:" (anonymous)")+"]"+(me.length>0?" { "+ee.call(me,", ")+" }":"")}if(ve(oe)){var Se=de?P.call(String(oe),/^(Symbol\(.*\))_[^)]*$/,"$1"):ae.call(oe);return typeof oe=="object"&&!de?t(Se):Se}if(Ce(oe)){for(var We="<"+x.call(String(oe.nodeName)),Qe=oe.attributes||[],lt=0;lt<Qe.length;lt++)We+=" "+Qe[lt].name+"="+te(X(Qe[lt].value),"double",ie);return We+=">",oe.childNodes&&oe.childNodes.length&&(We+="..."),We+="</"+x.call(String(oe.nodeName))+">",We}if(ye(oe)){if(oe.length===0)return"[]";var bt=j(oe,Le);return pe&&!v(bt)?"["+C(bt,pe)+"]":"[ "+ee.call(bt,", ")+" ]"}if(Y(oe)){var ht=j(oe,Le);return!("cause"in Error.prototype)&&"cause"in oe&&!xe.call(oe,"cause")?"{ ["+String(oe)+"] "+ee.call(M.call("[cause]: "+Le(oe.cause),ht),", ")+" }":ht.length===0?"["+String(oe)+"]":"{ ["+String(oe)+"] "+ee.call(ht,", ")+" }"}if(typeof oe=="object"&&Je){if(ue&&typeof oe[ue]=="function"&&Te)return Te(oe,{depth:Ve-le});if(Je!=="symbol"&&typeof oe.inspect=="function")return oe.inspect()}if(be(oe)){var kt=[];return p&&p.call(oe,function(Dt,Mt){kt.push(Le(Mt,oe,!0)+" => "+Le(Dt,oe))}),c("Map",f.call(oe),kt,pe)}if(Ie(oe)){var qt=[];return u&&u.call(oe,function(Dt){qt.push(Le(Dt,oe))}),c("Set",r.call(oe),qt,pe)}if(ge(oe))return s("WeakMap");if(ke(oe))return s("WeakSet");if(Ne(oe))return s("WeakRef");if(Q(oe))return t(Le(Number(oe)));if(N(oe))return t(Le(G.call(oe)));if(fe(oe))return t(_.call(oe));if(H(oe))return t(Le(String(oe)));if(typeof window<"u"&&oe===window)return"{ [object Window] }";if(typeof globalThis<"u"&&oe===globalThis||typeof Xu<"u"&&oe===Xu)return"{ [object globalThis] }";if(!Re(oe)&&!De(oe)){var zt=j(oe,Le),or=Pe?Pe(oe)===Object.prototype:oe instanceof Object||oe.constructor===Object,kr=oe instanceof Object?"":"null prototype",et=!or&&we&&Object(oe)===oe&&we in oe?E.call(z(oe),8,-1):kr?"Object":"",tr=or||typeof oe.constructor!="function"?"":oe.constructor.name?oe.constructor.name+" ":"",Bt=tr+(et||kr?"["+ee.call(M.call([],et||[],kr||[]),": ")+"] ":"");return zt.length===0?Bt+"{}":pe?Bt+"{"+C(zt,pe)+"}":Bt+"{ "+ee.call(zt,", ")+" }"}return String(oe)},"W"),"inspect_");function te(Z,oe,Ae){var le=(Ae.quoteStyle||oe)==="double"?'"':"'";return le+Z+le}l(te,"z"),e(te,"wrapQuotes");function X(Z){return P.call(String(Z),/"/g,""")}l(X,"V"),e(X,"quote");function ye(Z){return z(Z)==="[object Array]"&&(!we||!(typeof Z=="object"&&we in Z))}l(ye,"G"),e(ye,"isArray");function Re(Z){return z(Z)==="[object Date]"&&(!we||!(typeof Z=="object"&&we in Z))}l(Re,"fe"),e(Re,"isDate");function De(Z){return z(Z)==="[object RegExp]"&&(!we||!(typeof Z=="object"&&we in Z))}l(De,"be"),e(De,"isRegExp");function Y(Z){return z(Z)==="[object Error]"&&(!we||!(typeof Z=="object"&&we in Z))}l(Y,"D"),e(Y,"isError");function H(Z){return z(Z)==="[object String]"&&(!we||!(typeof Z=="object"&&we in Z))}l(H,"$"),e(H,"isString");function Q(Z){return z(Z)==="[object Number]"&&(!we||!(typeof Z=="object"&&we in Z))}l(Q,"H"),e(Q,"isNumber");function fe(Z){return z(Z)==="[object Boolean]"&&(!we||!(typeof Z=="object"&&we in Z))}l(fe,"te"),e(fe,"isBoolean");function ve(Z){if(de)return Z&&typeof Z=="object"&&Z instanceof Symbol;if(typeof Z=="symbol")return!0;if(!Z||typeof Z!="object"||!ae)return!1;try{return ae.call(Z),!0}catch{}return!1}l(ve,"oe"),e(ve,"isSymbol");function N(Z){if(!Z||typeof Z!="object"||!G)return!1;try{return G.call(Z),!0}catch{}return!1}l(N,"I"),e(N,"isBigInt");var I=Object.prototype.hasOwnProperty||function(Z){return Z in(this||Xu)};function D(Z,oe){return I.call(Z,oe)}l(D,"M"),e(D,"has");function z(Z){return S.call(Z)}l(z,"Y"),e(z,"toStr");function Ee(Z){if(Z.name)return Z.name;var oe=O.call(T.call(Z),/^function\s*([\w$]+)/);return oe?oe[1]:null}l(Ee,"ue"),e(Ee,"nameOf");function Oe(Z,oe){if(Z.indexOf)return Z.indexOf(oe);for(var Ae=0,le=Z.length;Ae<le;Ae++)if(Z[Ae]===oe)return Ae;return-1}l(Oe,"le"),e(Oe,"indexOf");function be(Z){if(!f||!Z||typeof Z!="object")return!1;try{f.call(Z);try{r.call(Z)}catch{return!0}return Z instanceof Map}catch{}return!1}l(be,"ee"),e(be,"isMap");function ge(Z){if(!h||!Z||typeof Z!="object")return!1;try{h.call(Z,h);try{m.call(Z,m)}catch{return!0}return Z instanceof WeakMap}catch{}return!1}l(ge,"ie"),e(ge,"isWeakMap");function Ne(Z){if(!w||!Z||typeof Z!="object")return!1;try{return w.call(Z),!0}catch{}return!1}l(Ne,"me"),e(Ne,"isWeakRef");function Ie(Z){if(!r||!Z||typeof Z!="object")return!1;try{r.call(Z);try{f.call(Z)}catch{return!0}return Z instanceof Set}catch{}return!1}l(Ie,"ye"),e(Ie,"isSet");function ke(Z){if(!m||!Z||typeof Z!="object")return!1;try{m.call(Z,m);try{h.call(Z,h)}catch{return!0}return Z instanceof WeakSet}catch{}return!1}l(ke,"ve"),e(ke,"isWeakSet");function Ce(Z){return!Z||typeof Z!="object"?!1:typeof HTMLElement<"u"&&Z instanceof HTMLElement?!0:typeof Z.nodeName=="string"&&typeof Z.getAttribute=="function"}l(Ce,"Me"),e(Ce,"isElement");function $e(Z,oe){if(Z.length>oe.maxStringLength){var Ae=Z.length-oe.maxStringLength,le="... "+Ae+" more character"+(Ae>1?"s":"");return $e(E.call(Z,0,oe.maxStringLength),oe)+le}var Fe=P.call(P.call(Z,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Ke);return te(Fe,"single",oe)}l($e,"Be"),e($e,"inspectString");function Ke(Z){var oe=Z.charCodeAt(0),Ae={8:"b",9:"t",10:"n",12:"f",13:"r"}[oe];return Ae?"\\"+Ae:"\\x"+(oe<16?"0":"")+A.call(oe.toString(16))}l(Ke,"Je"),e(Ke,"lowbyte");function t(Z){return"Object("+Z+")"}l(t,"p"),e(t,"markBoxed");function s(Z){return Z+" { ? }"}l(s,"l"),e(s,"weakCollectionOf");function c(Z,oe,Ae,le){var Fe=le?C(Ae,le):ee.call(Ae,", ");return Z+" ("+oe+") {"+Fe+"}"}l(c,"u"),e(c,"collectionOf");function v(Z){for(var oe=0;oe<Z.length;oe++)if(Oe(Z[oe],`
|
|
4
|
+
`)>=0)return!1;return!0}l(v,"w"),e(v,"singleLineValues");function R(Z,oe){var Ae;if(Z.indent===" ")Ae=" ";else if(typeof Z.indent=="number"&&Z.indent>0)Ae=ee.call(Array(Z.indent+1)," ");else return null;return{base:Ae,prev:ee.call(Array(oe+1),Ae)}}l(R,"A"),e(R,"getIndent");function C(Z,oe){if(Z.length===0)return"";var Ae=`
|
|
5
|
+
`+oe.prev+oe.base;return Ae+ee.call(Z,","+Ae)+`
|
|
6
|
+
`+oe.prev}l(C,"O"),e(C,"indentedJoin");function j(Z,oe){var Ae=ye(Z),le=[];if(Ae){le.length=Z.length;for(var Fe=0;Fe<Z.length;Fe++)le[Fe]=D(Z,Fe)?oe(Z[Fe],Z):""}var ie=typeof re=="function"?re(Z):[],Je;if(de){Je={};for(var dt=0;dt<ie.length;dt++)Je["$"+ie[dt]]=ie[dt]}for(var W in Z)D(Z,W)&&(Ae&&String(Number(W))===W&&W<Z.length||de&&Je["$"+W]instanceof Symbol||(U.call(/[^\w$]/,W)?le.push(oe(W,Z)+": "+oe(Z[W],Z)):le.push(W+": "+oe(Z[W],Z))));if(typeof re=="function")for(var qe=0;qe<ie.length;qe++)xe.call(Z,ie[qe])&&le.push("["+oe(ie[qe])+"]: "+oe(Z[ie[qe]],Z));return le}return l(j,"k"),e(j,"arrObjKeys"),Qu}l(N6,"Lj");function D6(){if(Pb)return ec;Pb=!0;var o=Ia(),i=C6(),f=N6(),p=Xs(),a=o("%WeakMap%",!0),n=o("%Map%",!0),r=i("WeakMap.prototype.get",!0),u=i("WeakMap.prototype.set",!0),g=i("WeakMap.prototype.has",!0),h=i("Map.prototype.get",!0),d=i("Map.prototype.set",!0),m=i("Map.prototype.has",!0),y=e(function(T,O){for(var E=T,P;(P=E.next)!==null;E=P)if(P.key===O)return E.next=P.next,P.next=T.next,T.next=P,P},"listGetNode"),w=e(function(T,O){var E=y(T,O);return E&&E.value},"listGet"),_=e(function(T,O,E){var P=y(T,O);P?P.value=E:T.next={key:O,next:T.next,value:E}},"listSet"),S=e(function(T,O){return!!y(T,O)},"listHas");return ec=e(function(){var T,O,E,P={assert:e(function(A){if(!P.has(A))throw new p("Side channel does not contain "+f(A))},"assert"),get:e(function(A){if(a&&A&&(typeof A=="object"||typeof A=="function")){if(T)return r(T,A)}else if(n){if(O)return h(O,A)}else if(E)return w(E,A)},"get"),has:e(function(A){if(a&&A&&(typeof A=="object"||typeof A=="function")){if(T)return g(T,A)}else if(n){if(O)return m(O,A)}else if(E)return S(E,A);return!1},"has"),set:e(function(A,x){a&&A&&(typeof A=="object"||typeof A=="function")?(T||(T=new a),u(T,A,x)):n?(O||(O=new n),d(O,A,x)):(E||(E={key:{},next:null}),_(E,A,x))},"set")};return P},"getSideChannel"),ec}l(D6,"Nj");function Fd(){if(jb)return tc;jb=!0;var o=String.prototype.replace,i=/%20/g,f={RFC1738:"RFC1738",RFC3986:"RFC3986"};return tc={default:f.RFC3986,formatters:{RFC1738:e(function(p){return o.call(p,i,"+")},"RFC1738"),RFC3986:e(function(p){return String(p)},"RFC3986")},RFC1738:f.RFC1738,RFC3986:f.RFC3986},tc}l(Fd,"Om");function $E(){if(Cb)return rc;Cb=!0;var o=Fd(),i=Object.prototype.hasOwnProperty,f=Array.isArray,p=function(){for(var T=[],O=0;O<256;++O)T.push("%"+((O<16?"0":"")+O.toString(16)).toUpperCase());return T}(),a=e(function(T){for(;T.length>1;){var O=T.pop(),E=O.obj[O.prop];if(f(E)){for(var P=[],A=0;A<E.length;++A)typeof E[A]<"u"&&P.push(E[A]);O.obj[O.prop]=P}}},"compactQueue2"),n=e(function(T,O){for(var E=O&&O.plainObjects?Object.create(null):{},P=0;P<T.length;++P)typeof T[P]<"u"&&(E[P]=T[P]);return E},"arrayToObject2"),r=e(l(function T(O,E,P){if(!E)return O;if(typeof E!="object"){if(f(O))O.push(E);else if(O&&typeof O=="object")(P&&(P.plainObjects||P.allowPrototypes)||!i.call(Object.prototype,E))&&(O[E]=!0);else return[O,E];return O}if(!O||typeof O!="object")return[O].concat(E);var A=O;return f(O)&&!f(E)&&(A=n(O,P)),f(O)&&f(E)?(E.forEach(function(x,U){if(i.call(O,U)){var M=O[U];M&&typeof M=="object"&&x&&typeof x=="object"?O[U]=T(M,x,P):O.push(x)}else O[U]=x}),O):Object.keys(E).reduce(function(x,U){var M=E[U];return i.call(x,U)?x[U]=T(x[U],M,P):x[U]=M,x},A)},"b"),"merge2"),u=e(function(T,O){return Object.keys(O).reduce(function(E,P){return E[P]=O[P],E},T)},"assignSingleSource"),g=e(function(T,O,E){var P=T.replace(/\+/g," ");if(E==="iso-8859-1")return P.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(P)}catch{return P}},"decode2"),h=1024,d=e(function(T,O,E,P,A){if(T.length===0)return T;var x=T;if(typeof T=="symbol"?x=Symbol.prototype.toString.call(T):typeof T!="string"&&(x=String(T)),E==="iso-8859-1")return escape(x).replace(/%u[0-9a-f]{4}/gi,function(re){return"%26%23"+parseInt(re.slice(2),16)+"%3B"});for(var U="",M=0;M<x.length;M+=h){for(var ee=x.length>=h?x.slice(M,M+h):x,V=[],q=0;q<ee.length;++q){var G=ee.charCodeAt(q);if(G===45||G===46||G===95||G===126||G>=48&&G<=57||G>=65&&G<=90||G>=97&&G<=122||A===o.RFC1738&&(G===40||G===41)){V[V.length]=ee.charAt(q);continue}if(G<128){V[V.length]=p[G];continue}if(G<2048){V[V.length]=p[192|G>>6]+p[128|G&63];continue}if(G<55296||G>=57344){V[V.length]=p[224|G>>12]+p[128|G>>6&63]+p[128|G&63];continue}q+=1,G=65536+((G&1023)<<10|ee.charCodeAt(q)&1023),V[V.length]=p[240|G>>18]+p[128|G>>12&63]+p[128|G>>6&63]+p[128|G&63]}U+=V.join("")}return U},"encode3"),m=e(function(T){for(var O=[{obj:{o:T},prop:"o"}],E=[],P=0;P<O.length;++P)for(var A=O[P],x=A.obj[A.prop],U=Object.keys(x),M=0;M<U.length;++M){var ee=U[M],V=x[ee];typeof V=="object"&&V!==null&&E.indexOf(V)===-1&&(O.push({obj:x,prop:ee}),E.push(V))}return a(O),T},"compact2"),y=e(function(T){return Object.prototype.toString.call(T)==="[object RegExp]"},"isRegExp2"),w=e(function(T){return!T||typeof T!="object"?!1:!!(T.constructor&&T.constructor.isBuffer&&T.constructor.isBuffer(T))},"isBuffer2"),_=e(function(T,O){return[].concat(T,O)},"combine2"),S=e(function(T,O){if(f(T)){for(var E=[],P=0;P<T.length;P+=1)E.push(O(T[P]));return E}return O(T)},"maybeMap2");return rc={arrayToObject:n,assign:u,combine:_,compact:m,decode:g,encode:d,isBuffer:w,isRegExp:y,maybeMap:S,merge:r},rc}l($E,"SA");function U6(){if(Lb)return nc;Lb=!0;var o=D6(),i=$E(),f=Fd(),p=Object.prototype.hasOwnProperty,a={brackets:e(function(S){return S+"[]"},"brackets"),comma:"comma",indices:e(function(S,T){return S+"["+T+"]"},"indices"),repeat:e(function(S){return S},"repeat")},n=Array.isArray,r=Array.prototype.push,u=e(function(S,T){r.apply(S,n(T)?T:[T])},"pushToArray"),g=Date.prototype.toISOString,h=f.default,d={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:i.encode,encodeValuesOnly:!1,format:h,formatter:f.formatters[h],indices:!1,serializeDate:e(function(S){return g.call(S)},"serializeDate"),skipNulls:!1,strictNullHandling:!1},m=e(function(S){return typeof S=="string"||typeof S=="number"||typeof S=="boolean"||typeof S=="symbol"||typeof S=="bigint"},"isNonNullishPrimitive2"),y={},w=e(l(function S(T,O,E,P,A,x,U,M,ee,V,q,G,re,ae,de,we,xe,Pe){for(var se=T,Te=Pe,J=0,ue=!1;(Te=Te.get(y))!==void 0&&!ue;){var te=Te.get(T);if(J+=1,typeof te<"u"){if(te===J)throw new RangeError("Cyclic object value");ue=!0}typeof Te.get(y)>"u"&&(J=0)}if(typeof V=="function"?se=V(O,se):se instanceof Date?se=re(se):E==="comma"&&n(se)&&(se=i.maybeMap(se,function(z){return z instanceof Date?re(z):z})),se===null){if(x)return ee&&!we?ee(O,d.encoder,xe,"key",ae):O;se=""}if(m(se)||i.isBuffer(se)){if(ee){var X=we?O:ee(O,d.encoder,xe,"key",ae);return[de(X)+"="+de(ee(se,d.encoder,xe,"value",ae))]}return[de(O)+"="+de(String(se))]}var ye=[];if(typeof se>"u")return ye;var Re;if(E==="comma"&&n(se))we&&ee&&(se=i.maybeMap(se,ee)),Re=[{value:se.length>0?se.join(",")||null:void 0}];else if(n(V))Re=V;else{var De=Object.keys(se);Re=q?De.sort(q):De}var Y=M?O.replace(/\./g,"%2E"):O,H=P&&n(se)&&se.length===1?Y+"[]":Y;if(A&&n(se)&&se.length===0)return H+"[]";for(var Q=0;Q<Re.length;++Q){var fe=Re[Q],ve=typeof fe=="object"&&typeof fe.value<"u"?fe.value:se[fe];if(!(U&&ve===null)){var N=G&&M?fe.replace(/\./g,"%2E"):fe,I=n(se)?typeof E=="function"?E(H,N):H:H+(G?"."+N:"["+N+"]");Pe.set(T,J);var D=o();D.set(y,Pe),u(ye,S(ve,I,E,P,A,x,U,M,E==="comma"&&we&&n(se)?null:ee,V,q,G,re,ae,de,we,xe,D))}}return ye},"_"),"stringify2"),_=e(function(S){if(!S)return d;if(typeof S.allowEmptyArrays<"u"&&typeof S.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof S.encodeDotInKeys<"u"&&typeof S.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(S.encoder!==null&&typeof S.encoder<"u"&&typeof S.encoder!="function")throw new TypeError("Encoder has to be a function.");var T=S.charset||d.charset;if(typeof S.charset<"u"&&S.charset!=="utf-8"&&S.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var O=f.default;if(typeof S.format<"u"){if(!p.call(f.formatters,S.format))throw new TypeError("Unknown format option provided.");O=S.format}var E=f.formatters[O],P=d.filter;(typeof S.filter=="function"||n(S.filter))&&(P=S.filter);var A;if(S.arrayFormat in a?A=S.arrayFormat:"indices"in S?A=S.indices?"indices":"repeat":A=d.arrayFormat,"commaRoundTrip"in S&&typeof S.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var x=typeof S.allowDots>"u"?S.encodeDotInKeys===!0?!0:d.allowDots:!!S.allowDots;return{addQueryPrefix:typeof S.addQueryPrefix=="boolean"?S.addQueryPrefix:d.addQueryPrefix,allowDots:x,allowEmptyArrays:typeof S.allowEmptyArrays=="boolean"?!!S.allowEmptyArrays:d.allowEmptyArrays,arrayFormat:A,charset:T,charsetSentinel:typeof S.charsetSentinel=="boolean"?S.charsetSentinel:d.charsetSentinel,commaRoundTrip:S.commaRoundTrip,delimiter:typeof S.delimiter>"u"?d.delimiter:S.delimiter,encode:typeof S.encode=="boolean"?S.encode:d.encode,encodeDotInKeys:typeof S.encodeDotInKeys=="boolean"?S.encodeDotInKeys:d.encodeDotInKeys,encoder:typeof S.encoder=="function"?S.encoder:d.encoder,encodeValuesOnly:typeof S.encodeValuesOnly=="boolean"?S.encodeValuesOnly:d.encodeValuesOnly,filter:P,format:O,formatter:E,serializeDate:typeof S.serializeDate=="function"?S.serializeDate:d.serializeDate,skipNulls:typeof S.skipNulls=="boolean"?S.skipNulls:d.skipNulls,sort:typeof S.sort=="function"?S.sort:null,strictNullHandling:typeof S.strictNullHandling=="boolean"?S.strictNullHandling:d.strictNullHandling}},"normalizeStringifyOptions2");return nc=e(function(S,T){var O=S,E=_(T),P,A;typeof E.filter=="function"?(A=E.filter,O=A("",O)):n(E.filter)&&(A=E.filter,P=A);var x=[];if(typeof O!="object"||O===null)return"";var U=a[E.arrayFormat],M=U==="comma"&&E.commaRoundTrip;P||(P=Object.keys(O)),E.sort&&P.sort(E.sort);for(var ee=o(),V=0;V<P.length;++V){var q=P[V];E.skipNulls&&O[q]===null||u(x,w(O[q],q,U,M,E.allowEmptyArrays,E.strictNullHandling,E.skipNulls,E.encodeDotInKeys,E.encode?E.encoder:null,E.filter,E.sort,E.allowDots,E.serializeDate,E.format,E.formatter,E.encodeValuesOnly,E.charset,ee))}var G=x.join(E.delimiter),re=E.addQueryPrefix===!0?"?":"";return E.charsetSentinel&&(E.charset==="iso-8859-1"?re+="utf8=%26%2310003%3B&":re+="utf8=%E2%9C%93&"),G.length>0?re+G:""},"exports$42"),nc}l(U6,"Dj");function M6(){if(Nb)return ic;Nb=!0;var o=$E(),i=Object.prototype.hasOwnProperty,f=Array.isArray,p={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:o.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},a=e(function(y){return y.replace(/&#(\d+);/g,function(w,_){return String.fromCharCode(parseInt(_,10))})},"interpretNumericEntities"),n=e(function(y,w){return y&&typeof y=="string"&&w.comma&&y.indexOf(",")>-1?y.split(","):y},"parseArrayValue"),r="utf8=%26%2310003%3B",u="utf8=%E2%9C%93",g=e(function(y,w){var _={__proto__:null},S=w.ignoreQueryPrefix?y.replace(/^\?/,""):y;S=S.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var T=w.parameterLimit===1/0?void 0:w.parameterLimit,O=S.split(w.delimiter,T),E=-1,P,A=w.charset;if(w.charsetSentinel)for(P=0;P<O.length;++P)O[P].indexOf("utf8=")===0&&(O[P]===u?A="utf-8":O[P]===r&&(A="iso-8859-1"),E=P,P=O.length);for(P=0;P<O.length;++P)if(P!==E){var x=O[P],U=x.indexOf("]="),M=U===-1?x.indexOf("="):U+1,ee,V;M===-1?(ee=w.decoder(x,p.decoder,A,"key"),V=w.strictNullHandling?null:""):(ee=w.decoder(x.slice(0,M),p.decoder,A,"key"),V=o.maybeMap(n(x.slice(M+1),w),function(G){return w.decoder(G,p.decoder,A,"value")})),V&&w.interpretNumericEntities&&A==="iso-8859-1"&&(V=a(V)),x.indexOf("[]=")>-1&&(V=f(V)?[V]:V);var q=i.call(_,ee);q&&w.duplicates==="combine"?_[ee]=o.combine(_[ee],V):(!q||w.duplicates==="last")&&(_[ee]=V)}return _},"parseQueryStringValues"),h=e(function(y,w,_,S){for(var T=S?w:n(w,_),O=y.length-1;O>=0;--O){var E,P=y[O];if(P==="[]"&&_.parseArrays)E=_.allowEmptyArrays&&(T===""||_.strictNullHandling&&T===null)?[]:[].concat(T);else{E=_.plainObjects?Object.create(null):{};var A=P.charAt(0)==="["&&P.charAt(P.length-1)==="]"?P.slice(1,-1):P,x=_.decodeDotInKeys?A.replace(/%2E/g,"."):A,U=parseInt(x,10);!_.parseArrays&&x===""?E={0:T}:!isNaN(U)&&P!==x&&String(U)===x&&U>=0&&_.parseArrays&&U<=_.arrayLimit?(E=[],E[U]=T):x!=="__proto__"&&(E[x]=T)}T=E}return T},"parseObject"),d=e(function(y,w,_,S){if(y){var T=_.allowDots?y.replace(/\.([^.[]+)/g,"[$1]"):y,O=/(\[[^[\]]*])/,E=/(\[[^[\]]*])/g,P=_.depth>0&&O.exec(T),A=P?T.slice(0,P.index):T,x=[];if(A){if(!_.plainObjects&&i.call(Object.prototype,A)&&!_.allowPrototypes)return;x.push(A)}for(var U=0;_.depth>0&&(P=E.exec(T))!==null&&U<_.depth;){if(U+=1,!_.plainObjects&&i.call(Object.prototype,P[1].slice(1,-1))&&!_.allowPrototypes)return;x.push(P[1])}if(P){if(_.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+_.depth+" and strictDepth is true");x.push("["+T.slice(P.index)+"]")}return h(x,w,_,S)}},"parseQueryStringKeys"),m=e(function(y){if(!y)return p;if(typeof y.allowEmptyArrays<"u"&&typeof y.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof y.decodeDotInKeys<"u"&&typeof y.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(y.decoder!==null&&typeof y.decoder<"u"&&typeof y.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof y.charset<"u"&&y.charset!=="utf-8"&&y.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var w=typeof y.charset>"u"?p.charset:y.charset,_=typeof y.duplicates>"u"?p.duplicates:y.duplicates;if(_!=="combine"&&_!=="first"&&_!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var S=typeof y.allowDots>"u"?y.decodeDotInKeys===!0?!0:p.allowDots:!!y.allowDots;return{allowDots:S,allowEmptyArrays:typeof y.allowEmptyArrays=="boolean"?!!y.allowEmptyArrays:p.allowEmptyArrays,allowPrototypes:typeof y.allowPrototypes=="boolean"?y.allowPrototypes:p.allowPrototypes,allowSparse:typeof y.allowSparse=="boolean"?y.allowSparse:p.allowSparse,arrayLimit:typeof y.arrayLimit=="number"?y.arrayLimit:p.arrayLimit,charset:w,charsetSentinel:typeof y.charsetSentinel=="boolean"?y.charsetSentinel:p.charsetSentinel,comma:typeof y.comma=="boolean"?y.comma:p.comma,decodeDotInKeys:typeof y.decodeDotInKeys=="boolean"?y.decodeDotInKeys:p.decodeDotInKeys,decoder:typeof y.decoder=="function"?y.decoder:p.decoder,delimiter:typeof y.delimiter=="string"||o.isRegExp(y.delimiter)?y.delimiter:p.delimiter,depth:typeof y.depth=="number"||y.depth===!1?+y.depth:p.depth,duplicates:_,ignoreQueryPrefix:y.ignoreQueryPrefix===!0,interpretNumericEntities:typeof y.interpretNumericEntities=="boolean"?y.interpretNumericEntities:p.interpretNumericEntities,parameterLimit:typeof y.parameterLimit=="number"?y.parameterLimit:p.parameterLimit,parseArrays:y.parseArrays!==!1,plainObjects:typeof y.plainObjects=="boolean"?y.plainObjects:p.plainObjects,strictDepth:typeof y.strictDepth=="boolean"?!!y.strictDepth:p.strictDepth,strictNullHandling:typeof y.strictNullHandling=="boolean"?y.strictNullHandling:p.strictNullHandling}},"normalizeParseOptions2");return ic=e(function(y,w){var _=m(w);if(y===""||y===null||typeof y>"u")return _.plainObjects?Object.create(null):{};for(var S=typeof y=="string"?g(y,_):y,T=_.plainObjects?Object.create(null):{},O=Object.keys(S),E=0;E<O.length;++E){var P=O[E],A=d(P,S[P],_,typeof y=="string");T=o.merge(T,A,_)}return _.allowSparse===!0?T:o.compact(T)},"exports$32"),ic}l(M6,"$j");function $6(){if(Db)return oc;Db=!0;var o=U6(),i=M6(),f=Fd();return oc={formats:f,parse:i,stringify:o},oc}l($6,"Mj");function GO(){if(Ub)return $i;Ub=!0;var o=Mi;function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}l(i,"t"),e(i,"Url2");var f=/^([a-z0-9.+-]+:)/i,p=/:[0-9]*$/,a=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,n=["<",">",'"',"`"," ","\r",`
|
|
7
|
+
`," "],r=["{","}","|","\\","^","`"].concat(n),u=["'"].concat(r),g=["%","/","?",";","#"].concat(u),h=["/","?","#"],d=255,m=/^[+a-z0-9A-Z_-]{0,63}$/,y=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,w={javascript:!0,"javascript:":!0},_={javascript:!0,"javascript:":!0},S={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},T=$6();function O(x,U,M){if(x&&typeof x=="object"&&x instanceof i)return x;var ee=new i;return ee.parse(x,U,M),ee}l(O,"E"),e(O,"urlParse"),i.prototype.parse=function(x,U,M){if(typeof x!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof x);var ee=x.indexOf("?"),V=ee!==-1&&ee<x.indexOf("#")?"?":"#",q=x.split(V),G=/\\/g;q[0]=q[0].replace(G,"/"),x=q.join(V);var re=x;if(re=re.trim(),!M&&x.split("#").length===1){var ae=a.exec(re);if(ae)return this.path=re,this.href=re,this.pathname=ae[1],ae[2]?(this.search=ae[2],U?this.query=T.parse(this.search.substr(1)):this.query=this.search.substr(1)):U&&(this.search="",this.query={}),this}var de=f.exec(re);if(de){de=de[0];var we=de.toLowerCase();this.protocol=we,re=re.substr(de.length)}if(M||de||re.match(/^\/\/[^@/]+@[^@/]+/)){var xe=re.substr(0,2)==="//";xe&&!(de&&_[de])&&(re=re.substr(2),this.slashes=!0)}if(!_[de]&&(xe||de&&!S[de])){for(var Pe=-1,se=0;se<h.length;se++){var Te=re.indexOf(h[se]);Te!==-1&&(Pe===-1||Te<Pe)&&(Pe=Te)}var J,ue;Pe===-1?ue=re.lastIndexOf("@"):ue=re.lastIndexOf("@",Pe),ue!==-1&&(J=re.slice(0,ue),re=re.slice(ue+1),this.auth=decodeURIComponent(J)),Pe=-1;for(var se=0;se<g.length;se++){var Te=re.indexOf(g[se]);Te!==-1&&(Pe===-1||Te<Pe)&&(Pe=Te)}Pe===-1&&(Pe=re.length),this.host=re.slice(0,Pe),re=re.slice(Pe),this.parseHost(),this.hostname=this.hostname||"";var te=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!te)for(var X=this.hostname.split(/\./),se=0,ye=X.length;se<ye;se++){var Re=X[se];if(Re&&!Re.match(m)){for(var De="",Y=0,H=Re.length;Y<H;Y++)Re.charCodeAt(Y)>127?De+="x":De+=Re[Y];if(!De.match(m)){var Q=X.slice(0,se),fe=X.slice(se+1),ve=Re.match(y);ve&&(Q.push(ve[1]),fe.unshift(ve[2])),fe.length&&(re="/"+fe.join(".")+re),this.hostname=Q.join(".");break}}}this.hostname.length>d?this.hostname="":this.hostname=this.hostname.toLowerCase(),te||(this.hostname=o.toASCII(this.hostname));var N=this.port?":"+this.port:"",I=this.hostname||"";this.host=I+N,this.href+=this.host,te&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),re[0]!=="/"&&(re="/"+re))}if(!w[we])for(var se=0,ye=u.length;se<ye;se++){var D=u[se];if(re.indexOf(D)!==-1){var z=encodeURIComponent(D);z===D&&(z=escape(D)),re=re.split(D).join(z)}}var Ee=re.indexOf("#");Ee!==-1&&(this.hash=re.substr(Ee),re=re.slice(0,Ee));var Oe=re.indexOf("?");if(Oe!==-1?(this.search=re.substr(Oe),this.query=re.substr(Oe+1),U&&(this.query=T.parse(this.query)),re=re.slice(0,Oe)):U&&(this.search="",this.query={}),re&&(this.pathname=re),S[we]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var N=this.pathname||"",be=this.search||"";this.path=N+be}return this.href=this.format(),this};function E(x){return typeof x=="string"&&(x=O(x)),x instanceof i?x.format():i.prototype.format.call(x)}l(E,"R"),e(E,"urlFormat"),i.prototype.format=function(){var x=this.auth||"";x&&(x=encodeURIComponent(x),x=x.replace(/%3A/i,":"),x+="@");var U=this.protocol||"",M=this.pathname||"",ee=this.hash||"",V=!1,q="";this.host?V=x+this.host:this.hostname&&(V=x+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(V+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(q=T.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var G=this.search||q&&"?"+q||"";return U&&U.substr(-1)!==":"&&(U+=":"),this.slashes||(!U||S[U])&&V!==!1?(V="//"+(V||""),M&&M.charAt(0)!=="/"&&(M="/"+M)):V||(V=""),ee&&ee.charAt(0)!=="#"&&(ee="#"+ee),G&&G.charAt(0)!=="?"&&(G="?"+G),M=M.replace(/[?#]/g,function(re){return encodeURIComponent(re)}),G=G.replace("#","%23"),U+V+M+G+ee};function P(x,U){return O(x,!1,!0).resolve(U)}l(P,"T"),e(P,"urlResolve"),i.prototype.resolve=function(x){return this.resolveObject(O(x,!1,!0)).format()};function A(x,U){return x?O(x,!1,!0).resolveObject(U):U}return l(A,"F"),e(A,"urlResolveObject"),i.prototype.resolveObject=function(x){if(typeof x=="string"){var U=new i;U.parse(x,!1,!0),x=U}for(var M=new i,ee=Object.keys(this),V=0;V<ee.length;V++){var q=ee[V];M[q]=this[q]}if(M.hash=x.hash,x.href==="")return M.href=M.format(),M;if(x.slashes&&!x.protocol){for(var G=Object.keys(x),re=0;re<G.length;re++){var ae=G[re];ae!=="protocol"&&(M[ae]=x[ae])}return S[M.protocol]&&M.hostname&&!M.pathname&&(M.pathname="/",M.path=M.pathname),M.href=M.format(),M}if(x.protocol&&x.protocol!==M.protocol){if(!S[x.protocol]){for(var de=Object.keys(x),we=0;we<de.length;we++){var xe=de[we];M[xe]=x[xe]}return M.href=M.format(),M}if(M.protocol=x.protocol,!x.host&&!_[x.protocol]){for(var ye=(x.pathname||"").split("/");ye.length&&!(x.host=ye.shift()););x.host||(x.host=""),x.hostname||(x.hostname=""),ye[0]!==""&&ye.unshift(""),ye.length<2&&ye.unshift(""),M.pathname=ye.join("/")}else M.pathname=x.pathname;if(M.search=x.search,M.query=x.query,M.host=x.host||"",M.auth=x.auth,M.hostname=x.hostname||x.host,M.port=x.port,M.pathname||M.search){var Pe=M.pathname||"",se=M.search||"";M.path=Pe+se}return M.slashes=M.slashes||x.slashes,M.href=M.format(),M}var Te=M.pathname&&M.pathname.charAt(0)==="/",J=x.host||x.pathname&&x.pathname.charAt(0)==="/",ue=J||Te||M.host&&x.pathname,te=ue,X=M.pathname&&M.pathname.split("/")||[],ye=x.pathname&&x.pathname.split("/")||[],Re=M.protocol&&!S[M.protocol];if(Re&&(M.hostname="",M.port=null,M.host&&(X[0]===""?X[0]=M.host:X.unshift(M.host)),M.host="",x.protocol&&(x.hostname=null,x.port=null,x.host&&(ye[0]===""?ye[0]=x.host:ye.unshift(x.host)),x.host=null),ue=ue&&(ye[0]===""||X[0]==="")),J)M.host=x.host||x.host===""?x.host:M.host,M.hostname=x.hostname||x.hostname===""?x.hostname:M.hostname,M.search=x.search,M.query=x.query,X=ye;else if(ye.length)X||(X=[]),X.pop(),X=X.concat(ye),M.search=x.search,M.query=x.query;else if(x.search!=null){if(Re){M.host=X.shift(),M.hostname=M.host;var De=M.host&&M.host.indexOf("@")>0?M.host.split("@"):!1;De&&(M.auth=De.shift(),M.hostname=De.shift(),M.host=M.hostname)}return M.search=x.search,M.query=x.query,(M.pathname!==null||M.search!==null)&&(M.path=(M.pathname?M.pathname:"")+(M.search?M.search:"")),M.href=M.format(),M}if(!X.length)return M.pathname=null,M.search?M.path="/"+M.search:M.path=null,M.href=M.format(),M;for(var Y=X.slice(-1)[0],H=(M.host||x.host||X.length>1)&&(Y==="."||Y==="..")||Y==="",Q=0,fe=X.length;fe>=0;fe--)Y=X[fe],Y==="."?X.splice(fe,1):Y===".."?(X.splice(fe,1),Q++):Q&&(X.splice(fe,1),Q--);if(!ue&&!te)for(;Q--;Q)X.unshift("..");ue&&X[0]!==""&&(!X[0]||X[0].charAt(0)!=="/")&&X.unshift(""),H&&X.join("/").substr(-1)!=="/"&&X.push("");var ve=X[0]===""||X[0]&&X[0].charAt(0)==="/";if(Re){M.hostname=ve?"":X.length?X.shift():"",M.host=M.hostname;var De=M.host&&M.host.indexOf("@")>0?M.host.split("@"):!1;De&&(M.auth=De.shift(),M.hostname=De.shift(),M.host=M.hostname)}return ue=ue||M.host&&X.length,ue&&!ve&&X.unshift(""),X.length>0?M.pathname=X.join("/"):(M.pathname=null,M.path=null),(M.pathname!==null||M.search!==null)&&(M.path=(M.pathname?M.pathname:"")+(M.search?M.search:"")),M.auth=x.auth||M.auth,M.slashes=M.slashes||x.slashes,M.href=M.format(),M},i.prototype.parseHost=function(){var x=this.host,U=p.exec(x);U&&(U=U[0],U!==":"&&(this.port=U.substr(1)),x=x.substr(0,x.length-U.length)),x&&(this.hostname=x)},$i.parse=O,$i.resolve=P,$i.resolveObject=A,$i.format=E,$i.Url=i,$i}l(GO,"Uj");function Qw(o){if(typeof o=="string")o=new URL(o);else if(!(o instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if(o.protocol!=="file:")throw new Deno.errors.InvalidData("invalid url scheme");return cd?W6(o):z6(o)}l(Qw,"AA");function W6(o){let i=o.hostname,f=o.pathname;for(let p=0;p<f.length;p++)if(f[p]==="%"){let a=f.codePointAt(p+2)||32;if(f[p+1]==="2"&&a===102||f[p+1]==="5"&&a===99)throw new Deno.errors.InvalidData("must not include encoded \\ or / characters")}if(f=f.replace(tP,"\\"),f=decodeURIComponent(f),i!=="")return`\\\\${i}${f}`;{let p=f.codePointAt(1)|32,a=f[2];if(p<X6||p>eP||a!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return f.slice(1)}}l(W6,"i4");function z6(o){if(o.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let i=o.pathname;for(let f=0;f<i.length;f++)if(i[f]==="%"){let p=i.codePointAt(f+2)||32;if(i[f+1]==="2"&&p===102)throw new Deno.errors.InvalidData("must not include encoded / characters")}return decodeURIComponent(i)}l(z6,"o4");function Xw(o){let i=xb.resolve(o),f=o.charCodeAt(o.length-1);(f===Q6||cd&&f===Z6)&&i[i.length-1]!==xb.sep&&(i+="/");let p=new URL("file://");return i.includes("%")&&(i=i.replace(rP,"%25")),!cd&&i.includes("\\")&&(i=i.replace(nP,"%5C")),i.includes(`
|
|
8
|
+
`)&&(i=i.replace(iP,"%0A")),i.includes("\r")&&(i=i.replace(oP,"%0D")),i.includes(" ")&&(i=i.replace(aP,"%09")),p.pathname=i,p}l(Xw,"RA");var Nu,eb,Mi,VL,KL,JL,YL,ZL,QL,tb,rb,nb,ib,ob,ab,sb,lb,fb,ub,cb,hb,db,pb,gb,yb,Du,mb,Uu,wb,Mu,bb,$u,vb,Wu,_b,zu,Eb,Hu,Sb,qu,Ab,Gu,Rb,Vu,Ob,Ku,kb,Ss,Tb,Ju,Fb,Ln,ba,fa,Jl,VO,KO,JO,YO,ZO,QO,XO,ek,tk,rk,nk,ik,ok,ak,sk,lk,fk,uk,ck,hk,dk,fu,pk,gk,yk,mk,wk,bk,vk,_k,Ek,Sk,Ak,Rk,Ok,kk,Tk,Fk,Bk,xk,Ik,Pk,jk,Ck,Lk,Nk,Dk,hi,ky,Yu,Uk,Mk,$k,Wk,zk,Hk,qk,Gk,Vk,Kk,Jk,WE,Zu,Bb,xb,H6,Qu,Ib,Xu,ec,Pb,tc,jb,rc,Cb,nc,Lb,ic,Nb,oc,Db,$i,Ub,xr,Yk,q6,G6,V6,K6,J6,Y6,Z6,Q6,X6,eP,cd,tP,rP,nP,iP,oP,aP,XL=er(()=>{Nu={},eb=!1,e(CO,"dew"),Mi=CO(),VL=Mi.decode,KL=Mi.encode,JL=Mi.toASCII,YL=Mi.toUnicode,ZL=Mi.ucs2,QL=Mi.version,tb={},rb=!1,e(_6,"dew$k"),nb={},ib=!1,e(E6,"dew$j"),ob={},ab=!1,e(S6,"dew$i"),sb={},lb=!1,e(A6,"dew$h"),fb={},ub=!1,e(R6,"dew$g"),cb={},hb=!1,e(DE,"dew$f"),db={},pb=!1,e(Xs,"dew$e"),gb={},yb=!1,e(O6,"dew$d"),Du={},mb=!1,e(k6,"dew$c"),Uu={},wb=!1,e(T6,"dew$b"),Mu={},bb=!1,e(F6,"dew$a"),$u={},vb=!1,e(kd,"dew$9"),Wu={},_b=!1,e(B6,"dew$8"),zu={},Eb=!1,e(Ia,"dew$7"),Hu={},Sb=!1,e(Td,"dew$6"),qu={},Ab=!1,e(UE,"dew$5"),Gu={},Rb=!1,e(x6,"dew$4"),Vu={},Ob=!1,e(I6,"dew$3"),Ku={},kb=!1,e(P6,"dew$2"),Ss={},Tb=!1,e(j6,"dew$1"),Ju={},Fb=!1,e(C6,"dew2"),e(ud,"unimplemented"),Ln=[],ba=!1,Jl=-1,e(L6,"cleanUpNextTick"),e(ME,"drainQueue"),e(LO,"nextTick"),e(Zw,"Item"),Zw.prototype.run=function(){this.fun.apply(null,this.array)},VO="browser",KO="x64",JO="browser",YO={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},ZO=["/usr/bin/node"],QO=[],XO="v16.8.0",ek={},tk=e(function(o,i){console.warn((i?i+": ":"")+o)},"emitWarning"),rk=e(function(o){ud("binding")},"binding"),nk=e(function(o){return 0},"umask"),ik=e(function(){return"/"},"cwd"),ok=e(function(o){},"chdir"),ak={name:"node",sourceUrl:"",headersUrl:"",libUrl:""},e(vr,"noop"),sk=vr,lk=[],e(NO,"_linkedBinding"),fk={},uk=!1,ck={},e(DO,"dlopen"),e(UO,"_getActiveRequests"),e(MO,"_getActiveHandles"),hk=vr,dk=vr,fu=e(function(){return{}},"cpuUsage"),pk=fu,gk=fu,yk=vr,mk=vr,wk=vr,bk={},e($O,"assert"),vk={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},_k=vr,Ek=vr,e(WO,"hasUncaughtExceptionCaptureCallback"),Sk=vr,Ak=vr,Rk=vr,Ok=vr,kk=vr,Tk=void 0,Fk=void 0,Bk=void 0,xk=vr,Ik=2,Pk=1,jk="/bin/usr/node",Ck=9229,Lk="node",Nk=[],Dk=vr,hi={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0},hi.now===void 0&&(ky=Date.now(),hi.timing&&hi.timing.navigationStart&&(ky=hi.timing.navigationStart),hi.now=()=>Date.now()-ky),e(zO,"uptime"),Yu=1e9,e(lu,"hrtime"),lu.bigint=function(o){var i=lu(o);return typeof BigInt>"u"?i[0]*Yu+i[1]:BigInt(i[0]*Yu)+BigInt(i[1])},Uk=10,Mk={},$k=0,e(Xn,"on"),Wk=Xn,zk=Xn,Hk=Xn,qk=Xn,Gk=Xn,Vk=vr,Kk=Xn,Jk=Xn,e(HO,"listeners"),WE={version:XO,versions:ek,arch:KO,platform:JO,release:ak,_rawDebug:sk,moduleLoadList:lk,binding:rk,_linkedBinding:NO,_events:Mk,_eventsCount:$k,_maxListeners:Uk,on:Xn,addListener:Wk,once:zk,off:Hk,removeListener:qk,removeAllListeners:Gk,emit:Vk,prependListener:Kk,prependOnceListener:Jk,listeners:HO,domain:fk,_exiting:uk,config:ck,dlopen:DO,uptime:zO,_getActiveRequests:UO,_getActiveHandles:MO,reallyExit:hk,_kill:dk,cpuUsage:fu,resourceUsage:pk,memoryUsage:gk,kill:yk,exit:mk,openStdin:wk,allowedNodeEnvironmentFlags:bk,assert:$O,features:vk,_fatalExceptions:_k,setUncaughtExceptionCaptureCallback:Ek,hasUncaughtExceptionCaptureCallback:WO,emitWarning:tk,nextTick:LO,_tickCallback:Sk,_debugProcess:Ak,_debugEnd:Rk,_startProfilerIdleNotifier:Ok,_stopProfilerIdleNotifier:kk,stdout:Tk,stdin:Bk,stderr:Fk,abort:xk,umask:nk,chdir:ok,cwd:ik,env:YO,title:VO,argv:ZO,execArgv:QO,pid:Ik,ppid:Pk,execPath:jk,debugPort:Ck,hrtime:lu,argv0:Lk,_preload_modules:Nk,setSourceMapsEnabled:Dk},Zu={},Bb=!1,e(qO,"dew3"),xb=qO(),H6=Object.freeze(Object.create(null)),Qu={},Ib=!1,Xu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(N6,"dew$72"),ec={},Pb=!1,e(D6,"dew$62"),tc={},jb=!1,e(Fd,"dew$52"),rc={},Cb=!1,e($E,"dew$42"),nc={},Lb=!1,e(U6,"dew$32"),ic={},Nb=!1,e(M6,"dew$22"),oc={},Db=!1,e($6,"dew$12"),$i={},Ub=!1,e(GO,"dew4"),xr=GO(),xr.parse,xr.resolve,xr.resolveObject,xr.format,xr.Url,Yk=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,xr.URL=typeof URL<"u"?URL:null,xr.pathToFileURL=Xw,xr.fileURLToPath=Qw,q6=xr.Url,G6=xr.format,V6=xr.resolve,K6=xr.resolveObject,J6=xr.parse,Y6=xr.URL,Z6=92,Q6=47,X6=97,eP=122,cd=Yk==="win32",tP=/\//g,rP=/%/g,nP=/\\/g,iP=/\n/g,oP=/\r/g,aP=/\t/g,e(Qw,"fileURLToPath"),e(W6,"getPathFromURLWin"),e(z6,"getPathFromURLPosix"),e(Xw,"pathToFileURL")}),zE={};ln(zE,{URL:l(()=>Y6,"URL"),Url:l(()=>q6,"Url"),fileURLToPath:l(()=>Qw,"fileURLToPath"),format:l(()=>G6,"format"),parse:l(()=>J6,"parse"),pathToFileURL:l(()=>Xw,"pathToFileURL"),resolve:l(()=>V6,"resolve"),resolveObject:l(()=>K6,"resolveObject")});var sP=er(()=>{XL()}),Pa=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.getWriteSyncArgs=o.getWriteArgs=o.bufToUint8=void 0,o.promisify=r,o.validateCallback=u,o.modeToNumber=h,o.nullCheck=d,o.pathToFilename=y,o.createError=re,o.genRndStr6=ae,o.flagsToNumber=de,o.streamToBuffer=we,o.bufferToEncoding=Te,o.isReadableStream=J;var i=_f(),f=Rd(),p=xa(),a=v6(),n=NE();function r(ue,te,X=ye=>ye){return(...ye)=>new Promise((Re,De)=>{ue[te].bind(ue)(...ye,(Y,H)=>Y?De(Y):Re(X(H)))})}l(r,"s4"),e(r,"promisify");function u(ue){if(typeof ue!="function")throw TypeError(i.ERRSTR.CB);return ue}l(u,"FA"),e(u,"validateCallback");function g(ue,te){if(typeof ue=="number")return ue;if(typeof ue=="string")return parseInt(ue,8);if(te)return h(te)}l(g,"l4"),e(g,"_modeToNumber");function h(ue,te){let X=g(ue,te);if(typeof X!="number"||isNaN(X))throw new TypeError(i.ERRSTR.MODE_INT);return X}l(h,"xA"),e(h,"modeToNumber");function d(ue,te){if((""+ue).indexOf("\0")!==-1){let X=new Error("Path must be a string without null bytes");if(X.code="ENOENT",typeof te!="function")throw X;return(0,a.default)(()=>{te(X)}),!1}return!0}l(d,"OA"),e(d,"nullCheck");function m(ue){if(ue.hostname!=="")throw new f.TypeError("ERR_INVALID_FILE_URL_HOST",process.platform);let te=ue.pathname;for(let X=0;X<te.length;X++)if(te[X]==="%"){let ye=te.codePointAt(X+2)|32;if(te[X+1]==="2"&&ye===102)throw new f.TypeError("ERR_INVALID_FILE_URL_PATH","must not include encoded / characters")}return decodeURIComponent(te)}l(m,"f4"),e(m,"getPathFromURLPosix");function y(ue){if(ue instanceof Uint8Array&&(ue=(0,p.bufferFrom)(ue)),typeof ue!="string"&&!p.Buffer.isBuffer(ue)){try{if(!(ue instanceof(sP(),dr(zE)).URL))throw new TypeError(i.ERRSTR.PATH_STR)}catch{throw new TypeError(i.ERRSTR.PATH_STR)}ue=m(ue)}let te=String(ue);return d(te),te}l(y,"u4"),e(y,"pathToFilename");var w="ENOENT",_="EBADF",S="EINVAL",T="EPERM",O="EPROTO",E="EEXIST",P="ENOTDIR",A="EMFILE",x="EACCES",U="EISDIR",M="ENOTEMPTY",ee="ENOSYS",V="ERR_FS_EISDIR",q="ERR_OUT_OF_RANGE";function G(ue,te="",X="",ye=""){let Re="";switch(X&&(Re=` '${X}'`),ye&&(Re+=` -> '${ye}'`),ue){case w:return`ENOENT: no such file or directory, ${te}${Re}`;case _:return`EBADF: bad file descriptor, ${te}${Re}`;case S:return`EINVAL: invalid argument, ${te}${Re}`;case T:return`EPERM: operation not permitted, ${te}${Re}`;case O:return`EPROTO: protocol error, ${te}${Re}`;case E:return`EEXIST: file already exists, ${te}${Re}`;case P:return`ENOTDIR: not a directory, ${te}${Re}`;case U:return`EISDIR: illegal operation on a directory, ${te}${Re}`;case x:return`EACCES: permission denied, ${te}${Re}`;case M:return`ENOTEMPTY: directory not empty, ${te}${Re}`;case A:return`EMFILE: too many open files, ${te}${Re}`;case ee:return`ENOSYS: function not implemented, ${te}${Re}`;case V:return`[ERR_FS_EISDIR]: Path is a directory: ${te} returned EISDIR (is a directory) ${X}`;case q:return`[ERR_OUT_OF_RANGE]: value out of range, ${te}${Re}`;default:return`${ue}: error occurred, ${te}${Re}`}}l(G,"R4"),e(G,"formatError");function re(ue,te="",X="",ye="",Re=Error){let De=new Re(G(ue,te,X,ye));return De.code=ue,X&&(De.path=X),De}l(re,"T4"),e(re,"createError");function ae(){return Math.random().toString(36).slice(2,8).padEnd(6,"0")}l(ae,"F4"),e(ae,"genRndStr6");function de(ue){if(typeof ue=="number")return ue;if(typeof ue=="string"){let te=i.FLAGS[ue];if(typeof te<"u")return te}throw new f.TypeError("ERR_INVALID_OPT_VALUE","flags",ue)}l(de,"x4"),e(de,"flagsToNumber");function we(ue){let te=[];return new Promise((X,ye)=>{ue.on("data",Re=>te.push(Re)),ue.on("end",()=>X(p.Buffer.concat(te))),ue.on("error",ye)})}l(we,"O4"),e(we,"streamToBuffer");var xe=e(ue=>new Uint8Array(ue.buffer,ue.byteOffset,ue.byteLength),"bufToUint8");o.bufToUint8=xe;var Pe=e((ue,te,X,ye,Re,De)=>{(0,n.validateFd)(ue);let Y=0,H,Q=null,fe,ve,N=typeof te,I=typeof X,D=typeof ye,z=typeof Re;N!=="string"?I==="function"?ve=X:D==="function"?(Y=X|0,ve=ye):z==="function"?(Y=X|0,H=ye,ve=Re):(Y=X|0,H=ye,Q=Re,ve=De):I==="function"?ve=X:D==="function"?(Q=X,ve=ye):z==="function"&&(Q=X,fe=ye,ve=Re);let Ee=(0,n.dataToBuffer)(te,fe);N!=="string"?typeof H>"u"&&(H=Ee.length):(Y=0,H=Ee.length);let Oe=u(ve);return[ue,N==="string",Ee,Y,H,Q,Oe]},"getWriteArgs");o.getWriteArgs=Pe;var se=e((ue,te,X,ye,Re)=>{(0,n.validateFd)(ue);let De,Y,H,Q,fe=typeof te!="string";fe?(Y=(X||0)|0,H=ye,Q=Re):(Q=X,De=ye);let ve=(0,n.dataToBuffer)(te,De);return fe?typeof H>"u"&&(H=ve.length):(Y=0,H=ve.length),[ue,ve,Y||0,H,Q]},"getWriteSyncArgs");o.getWriteSyncArgs=se;function Te(ue,te){return!te||te==="buffer"?ue:ue.toString(te)}l(Te,"B4"),e(Te,"bufferToEncoding");function J(ue){return ue!==null&&typeof ue=="object"&&typeof ue.pipe=="function"&&typeof ue.on=="function"&&ue.readable===!0}l(J,"C4"),e(J,"isReadableStream")}),eN=Ge(o=>{"use strict";var V;Object.defineProperty(o,"__esModule",{value:!0}),o.Superblock=void 0;var i=vf(),f=m6(),p=w6(),a=b6(),n=xa(),r=LE(),u=Wn(),g=_f(),h=Pa(),d=NE(),m=h6(),y=i.posix?i.posix.sep:i.sep,w=i.posix?i.posix.relative:i.relative,_=i.posix?i.posix.join:i.join,{O_RDONLY:S,O_WRONLY:T,O_RDWR:O,O_CREAT:E,O_EXCL:P,O_TRUNC:A,O_APPEND:x,O_DIRECTORY:U}=u.constants,M=(V=class{static fromJSON(G,re){let ae=new V;return ae.fromJSON(G,re),ae}static fromNestedJSON(G,re){let ae=new V;return ae.fromNestedJSON(G,re),ae}constructor(G={}){this.ino=0,this.inodes={},this.releasedInos=[],this.fds={},this.releasedFds=[],this.maxFiles=1e4,this.openFiles=0,this.open=(ae,de,we,xe=!0)=>{let Pe=this.openFile(ae,de,we,xe);if(!Pe)throw(0,h.createError)("ENOENT","open",ae);return Pe.fd},this.writeFile=(ae,de,we,xe)=>{let Pe=typeof ae=="number",se;Pe?se=ae:se=this.open((0,h.pathToFilename)(ae),we,xe);let Te=0,J=de.length,ue=we&x?void 0:0;try{for(;J>0;){let te=this.write(se,de,Te,J,ue);Te+=te,J-=te,ue!==void 0&&(ue+=te)}}finally{Pe||this.close(se)}},this.read=(ae,de,we,xe,Pe)=>{if(de.byteLength<xe)throw(0,h.createError)("ERR_OUT_OF_RANGE","read",void 0,void 0,RangeError);let se=this.getFileByFdOrThrow(ae);if(se.node.isSymlink())throw(0,h.createError)("EPERM","read",se.link.getPath());return se.read(de,Number(we),Number(xe),Pe===-1||typeof Pe!="number"?void 0:Pe)},this.readv=(ae,de,we)=>{let xe=this.getFileByFdOrThrow(ae),Pe=we??void 0;Pe===-1&&(Pe=void 0);let se=0;for(let Te of de){let J=xe.read(Te,0,Te.byteLength,Pe);if(Pe=void 0,se+=J,J<Te.byteLength)break}return se},this.link=(ae,de)=>{let we;try{we=this.getLinkOrThrow(ae,"link")}catch(J){throw J.code&&(J=(0,h.createError)(J.code,"link",ae,de)),J}let xe=(0,i.dirname)(de),Pe;try{Pe=this.getLinkOrThrow(xe,"link")}catch(J){throw J.code&&(J=(0,h.createError)(J.code,"link",ae,de)),J}let se=(0,i.basename)(de);if(Pe.getChild(se))throw(0,h.createError)("EEXIST","link",ae,de);let Te=we.getNode();Te.nlink++,Pe.createChild(se,Te)},this.unlink=ae=>{let de=this.getLinkOrThrow(ae,"unlink");if(de.length)throw Error("Dir not empty...");this.deleteLink(de);let we=de.getNode();we.nlink--,we.nlink<=0&&this.deleteNode(we)},this.symlink=(ae,de)=>{let we=(0,d.filenameToSteps)(de),xe;try{xe=this.getLinkParentAsDirOrThrow(we)}catch(J){throw J.code&&(J=(0,h.createError)(J.code,"symlink",ae,de)),J}let Pe=we[we.length-1];if(xe.getChild(Pe))throw(0,h.createError)("EEXIST","symlink",ae,de);let se=xe.getNode();if(!se.canExecute()||!se.canWrite())throw(0,h.createError)("EACCES","symlink",ae,de);let Te=xe.createChild(Pe);return Te.getNode().makeSymlink(ae),Te},this.rename=(ae,de)=>{let we;try{we=this.getResolvedLinkOrThrow(ae)}catch(ue){throw ue.code&&(ue=(0,h.createError)(ue.code,"rename",ae,de)),ue}let xe;try{xe=this.getLinkParentAsDirOrThrow(de)}catch(ue){throw ue.code&&(ue=(0,h.createError)(ue.code,"rename",ae,de)),ue}let Pe=we.parent;if(!Pe)throw(0,h.createError)("EINVAL","rename",ae,de);let se=Pe.getNode(),Te=xe.getNode();if(!se.canExecute()||!se.canWrite()||!Te.canExecute()||!Te.canWrite())throw(0,h.createError)("EACCES","rename",ae,de);Pe.deleteChild(we);let J=(0,i.basename)(de);we.name=J,we.steps=[...xe.steps,J],xe.setChild(we.getName(),we)},this.mkdir=(ae,de)=>{let we=(0,d.filenameToSteps)(ae);if(!we.length)throw(0,h.createError)("EEXIST","mkdir",ae);let xe=this.getLinkParentAsDirOrThrow(ae,"mkdir"),Pe=we[we.length-1];if(xe.getChild(Pe))throw(0,h.createError)("EEXIST","mkdir",ae);let se=xe.getNode();if(!se.canWrite()||!se.canExecute())throw(0,h.createError)("EACCES","mkdir",ae);xe.createChild(Pe,this.createNode(u.constants.S_IFDIR|de))},this.mkdirp=(ae,de)=>{let we=!1,xe=(0,d.filenameToSteps)(ae),Pe=null,se=xe.length;for(se=xe.length;se>=0&&(Pe=this.getResolvedLink(xe.slice(0,se)),!Pe);se--);for(Pe||(Pe=this.root,se=0),Pe=this.getResolvedLinkOrThrow(i.sep+xe.slice(0,se).join(i.sep),"mkdir"),se;se<xe.length;se++){let Te=Pe.getNode();if(Te.isDirectory()){if(!Te.canExecute()||!Te.canWrite())throw(0,h.createError)("EACCES","mkdir",ae)}else throw(0,h.createError)("ENOTDIR","mkdir",ae);we=!0,Pe=Pe.createChild(xe[se],this.createNode(u.constants.S_IFDIR|de))}return we?ae:void 0},this.rmdir=(ae,de=!1)=>{let we=this.getLinkAsDirOrThrow(ae,"rmdir");if(we.length&&!de)throw(0,h.createError)("ENOTEMPTY","rmdir",ae);this.deleteLink(we)},this.rm=(ae,de=!1,we=!1)=>{let xe;try{xe=this.getResolvedLinkOrThrow(ae,"stat")}catch(Pe){if(Pe.code==="ENOENT"&&de)return;throw Pe}if(xe.getNode().isDirectory()&&!we)throw(0,h.createError)("ERR_FS_EISDIR","rm",ae);if(!xe.parent?.getNode().canWrite())throw(0,h.createError)("EACCES","rm",ae);this.deleteLink(xe)},this.close=ae=>{(0,d.validateFd)(ae);let de=this.getFileByFdOrThrow(ae,"close");this.closeFile(de)};let re=this.createLink();re.setNode(this.createNode(u.constants.S_IFDIR|511)),re.setChild(".",re),re.getNode().nlink++,re.setChild("..",re),re.getNode().nlink++,this.root=re}createLink(G,re,ae=!1,de){if(!G)return new p.Link(this,void 0,"");if(!re)throw new Error("createLink: name cannot be empty");let we=de??(ae?511:438),xe=de&&de&u.constants.S_IFMT?de&u.constants.S_IFMT:ae?u.constants.S_IFDIR:u.constants.S_IFREG,Pe=we&~u.constants.S_IFMT|xe;return G.createChild(re,this.createNode(Pe))}deleteLink(G){let re=G.parent;return re?(re.deleteChild(G),!0):!1}newInoNumber(){return this.releasedInos.pop()||(this.ino=(this.ino+1)%4294967295,this.ino)}newFdNumber(){let G=this.releasedFds.pop();return typeof G=="number"?G:V.fd--}createNode(G){let re=new f.Node(this.newInoNumber(),G);return this.inodes[re.ino]=re,re}deleteNode(G){G.del(),delete this.inodes[G.ino],this.releasedInos.push(G.ino)}walk(G,re=!1,ae=!1,de=!1,we){let xe,Pe;G instanceof p.Link?(xe=G.steps,Pe=y+xe.join(y)):typeof G=="string"?(xe=(0,d.filenameToSteps)(G),Pe=G):(xe=G,Pe=y+xe.join(y));let se=this.root,Te=0;for(;Te<xe.length;){let J=se.getNode();if(J.isDirectory()){if(de&&!J.canExecute())throw(0,h.createError)("EACCES",we,Pe)}else if(Te<xe.length-1)throw(0,h.createError)("ENOTDIR",we,Pe);if(se=se.getChild(xe[Te])??null,!se){if(ae)throw(0,h.createError)("ENOENT",we,Pe);return null}if(J=se?.getNode(),J.isSymlink()&&(re||Te<xe.length-1)){let ue=(0,i.isAbsolute)(J.symlink)?J.symlink:_((0,i.dirname)(se.getPath()),J.symlink);xe=(0,d.filenameToSteps)(ue).concat(xe.slice(Te+1)),se=this.root,Te=0;continue}if(ae&&!J.isDirectory()&&Te<xe.length-1){let ue=r.default.platform==="win32"?"ENOENT":"ENOTDIR";throw(0,h.createError)(ue,we,Pe)}Te++}return se}getLink(G){return this.walk(G,!1,!1,!1)}getLinkOrThrow(G,re){return this.walk(G,!1,!0,!0,re)}getResolvedLink(G){return this.walk(G,!0,!1,!1)}getResolvedLinkOrThrow(G,re){return this.walk(G,!0,!0,!0,re)}resolveSymlinks(G){return this.getResolvedLink(G.steps.slice(1))}getLinkAsDirOrThrow(G,re){let ae=this.getLinkOrThrow(G,re);if(!ae.getNode().isDirectory())throw(0,h.createError)("ENOTDIR",re,G);return ae}getLinkParent(G){return this.getLink(G.slice(0,-1))}getLinkParentAsDirOrThrow(G,re){let ae=(G instanceof Array?G:(0,d.filenameToSteps)(G)).slice(0,-1),de=y+ae.join(y),we=this.getLinkOrThrow(de,re);if(!we.getNode().isDirectory())throw(0,h.createError)("ENOTDIR",re,de);return we}getFileByFd(G){return this.fds[String(G)]}getFileByFdOrThrow(G,re){if(!(0,d.isFd)(G))throw TypeError(g.ERRSTR.FD);let ae=this.getFileByFd(G);if(!ae)throw(0,h.createError)("EBADF",re);return ae}_toJSON(G=this.root,re={},ae,de){let we=!0,xe=G.children;G.getNode().isFile()&&(xe=new Map([[G.getName(),G.parent.getChild(G.getName())]]),G=G.parent);for(let se of xe.keys()){if(se==="."||se==="..")continue;we=!1;let Te=G.getChild(se);if(!Te)throw new Error("_toJSON: unexpected undefined");let J=Te.getNode();if(J.isFile()){let ue=Te.getPath();ae&&(ue=w(ae,ue)),re[ue]=de?J.getBuffer():J.getString()}else J.isDirectory()&&this._toJSON(Te,re,ae,de)}let Pe=G.getPath();return ae&&(Pe=w(ae,Pe)),Pe&&we&&(re[Pe]=null),re}toJSON(G,re={},ae=!1,de=!1){let we=[];if(G){Array.isArray(G)||(G=[G]);for(let xe of G){let Pe=(0,h.pathToFilename)(xe),se=this.getResolvedLink(Pe);se&&we.push(se)}}else we.push(this.root);if(!we.length)return re;for(let xe of we)this._toJSON(xe,re,ae?xe.getPath():"",de);return re}fromJSON(G,re=r.default.cwd()){for(let ae in G){let de=G[ae];if(ae=(0,d.resolve)(ae,re),typeof de=="string"||de instanceof n.Buffer){let we=(0,i.dirname)(ae);this.mkdirp(we,511);let xe=(0,d.dataToBuffer)(de);this.writeFile(ae,xe,g.FLAGS.w,438)}else this.mkdirp(ae,511)}}fromNestedJSON(G,re){this.fromJSON((0,m.flattenJSON)(G),re)}reset(){this.ino=0,this.inodes={},this.releasedInos=[],this.fds={},this.releasedFds=[],this.openFiles=0,this.root=this.createLink(),this.root.setNode(this.createNode(u.constants.S_IFDIR|511))}mountSync(G,re){this.fromJSON(re,G)}openLink(G,re,ae=!0){if(this.openFiles>=this.maxFiles)throw(0,h.createError)("EMFILE","open",G.getPath());let de=G;ae&&(de=this.getResolvedLinkOrThrow(G.getPath(),"open"));let we=de.getNode();if(we.isDirectory()){if((re&(S|O|T))!==S)throw(0,h.createError)("EISDIR","open",G.getPath())}else if(re&U)throw(0,h.createError)("ENOTDIR","open",G.getPath());if((re&(S|O|T))!==T&&!we.canRead()||re&(T|O)&&!we.canWrite())throw(0,h.createError)("EACCES","open",G.getPath());let xe=new a.File(G,we,re,this.newFdNumber());return this.fds[xe.fd]=xe,this.openFiles++,re&A&&xe.truncate(),xe}openFile(G,re,ae,de=!0){let we=(0,d.filenameToSteps)(G),xe;try{if(xe=de?this.getResolvedLinkOrThrow(G,"open"):this.getLinkOrThrow(G,"open"),xe&&re&E&&re&P)throw(0,h.createError)("EEXIST","open",G)}catch(Pe){if(Pe.code==="ENOENT"&&re&E){let se=(0,i.dirname)(G),Te=this.getResolvedLinkOrThrow(se),J=Te.getNode();if(!J.isDirectory())throw(0,h.createError)("ENOTDIR","open",G);if(!J.canExecute()||!J.canWrite())throw(0,h.createError)("EACCES","open",G);ae??(ae=438),xe=this.createLink(Te,we[we.length-1],!1,ae)}else throw Pe}if(xe)return this.openLink(xe,re,de);throw(0,h.createError)("ENOENT","open",G)}closeFile(G){this.fds[G.fd]&&(this.openFiles--,delete this.fds[G.fd],this.releasedFds.push(G.fd))}write(G,re,ae,de,we){let xe=this.getFileByFdOrThrow(G,"write");if(xe.node.isSymlink())throw(0,h.createError)("EBADF","write",xe.link.getPath());return xe.write(re,ae,de,we===-1||typeof we!="number"?void 0:we)}},l(V,"Qa"),V);e(M,"Superblock");var ee=M;o.Superblock=ee,ee.fd=2147483647}),tN=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.Superblock=o.File=o.Link=o.Node=void 0;var i=(c6(),dr(jE));i.__exportStar(HL(),o),i.__exportStar(h6(),o);var f=m6();Object.defineProperty(o,"Node",{enumerable:!0,get:e(function(){return f.Node},"get")});var p=w6();Object.defineProperty(o,"Link",{enumerable:!0,get:e(function(){return p.Link},"get")});var a=b6();Object.defineProperty(o,"File",{enumerable:!0,get:e(function(){return a.File},"get")});var n=eN();Object.defineProperty(o,"Superblock",{enumerable:!0,get:e(function(){return n.Superblock},"get")})}),rN=Ge(o=>{"use strict";var p;Object.defineProperty(o,"__esModule",{value:!0}),o.StatFs=void 0;var i=(p=class{static build(n,r=!1){let u=new p,g=r?_=>BigInt(_):_=>_;u.type=g(2240043254),u.bsize=g(4096);let h=Object.keys(n.inodes).length,d=1e6,m=Math.min(h*2,d),y=d-m;u.blocks=g(d),u.bfree=g(y),u.bavail=g(y);let w=1e6;return u.files=g(w),u.ffree=g(w-h),u}},l(p,"cc"),p);e(i,"StatFs");var f=i;o.StatFs=f,o.default=f}),nN=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0});function i(f,p,a){let n=setTimeout.apply(globalThis,arguments);return n&&typeof n=="object"&&typeof n.unref=="function"&&n.unref(),n}l(i,"Y4"),e(i,"setTimeoutUnref"),o.default=i});function lP(){if($b)return As;$b=!0,As.byteLength=u,As.toByteArray=h,As.fromByteArray=y;for(var o=[],i=[],f=typeof Uint8Array<"u"?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,n=p.length;a<n;++a)o[a]=p[a],i[p.charCodeAt(a)]=a;i[45]=62,i[95]=63;function r(w){var _=w.length;if(_%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var S=w.indexOf("=");S===-1&&(S=_);var T=S===_?0:4-S%4;return[S,T]}l(r,"i"),e(r,"getLens");function u(w){var _=r(w),S=_[0],T=_[1];return(S+T)*3/4-T}l(u,"f"),e(u,"byteLength");function g(w,_,S){return(_+S)*3/4-S}l(g,"h"),e(g,"_byteLength");function h(w){var _,S=r(w),T=S[0],O=S[1],E=new f(g(w,T,O)),P=0,A=O>0?T-4:T,x;for(x=0;x<A;x+=4)_=i[w.charCodeAt(x)]<<18|i[w.charCodeAt(x+1)]<<12|i[w.charCodeAt(x+2)]<<6|i[w.charCodeAt(x+3)],E[P++]=_>>16&255,E[P++]=_>>8&255,E[P++]=_&255;return O===2&&(_=i[w.charCodeAt(x)]<<2|i[w.charCodeAt(x+1)]>>4,E[P++]=_&255),O===1&&(_=i[w.charCodeAt(x)]<<10|i[w.charCodeAt(x+1)]<<4|i[w.charCodeAt(x+2)]>>2,E[P++]=_>>8&255,E[P++]=_&255),E}l(h,"c"),e(h,"toByteArray");function d(w){return o[w>>18&63]+o[w>>12&63]+o[w>>6&63]+o[w&63]}l(d,"d"),e(d,"tripletToBase64");function m(w,_,S){for(var T,O=[],E=_;E<S;E+=3)T=(w[E]<<16&16711680)+(w[E+1]<<8&65280)+(w[E+2]&255),O.push(d(T));return O.join("")}l(m,"y"),e(m,"encodeChunk");function y(w){for(var _,S=w.length,T=S%3,O=[],E=16383,P=0,A=S-T;P<A;P+=E)O.push(m(w,P,P+E>A?A:P+E));return T===1?(_=w[S-1],O.push(o[_>>2]+o[_<<4&63]+"==")):T===2&&(_=(w[S-2]<<8)+w[S-1],O.push(o[_>>10]+o[_>>4&63]+o[_<<2&63]+"=")),O.join("")}return l(y,"m"),e(y,"fromByteArray"),As}l(lP,"K4");function fP(){return Wb||(Wb=!0,ac.read=function(o,i,f,p,a){var n,r,u=a*8-p-1,g=(1<<u)-1,h=g>>1,d=-7,m=f?a-1:0,y=f?-1:1,w=o[i+m];for(m+=y,n=w&(1<<-d)-1,w>>=-d,d+=u;d>0;n=n*256+o[i+m],m+=y,d-=8);for(r=n&(1<<-d)-1,n>>=-d,d+=p;d>0;r=r*256+o[i+m],m+=y,d-=8);if(n===0)n=1-h;else{if(n===g)return r?NaN:(w?-1:1)*(1/0);r=r+Math.pow(2,p),n=n-h}return(w?-1:1)*r*Math.pow(2,n-p)},ac.write=function(o,i,f,p,a,n){var r,u,g,h=n*8-a-1,d=(1<<h)-1,m=d>>1,y=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=p?0:n-1,_=p?1:-1,S=i<0||i===0&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(u=isNaN(i)?1:0,r=d):(r=Math.floor(Math.log(i)/Math.LN2),i*(g=Math.pow(2,-r))<1&&(r--,g*=2),r+m>=1?i+=y/g:i+=y*Math.pow(2,1-m),i*g>=2&&(r++,g/=2),r+m>=d?(u=0,r=d):r+m>=1?(u=(i*g-1)*Math.pow(2,a),r=r+m):(u=i*Math.pow(2,m-1)*Math.pow(2,a),r=0));a>=8;o[f+w]=u&255,w+=_,u/=256,a-=8);for(r=r<<a|u,h+=a;h>0;o[f+w]=r&255,w+=_,r/=256,h-=8);o[f+w-_]|=S*128}),ac}l(fP,"X4");function _i(){if(zb)return Wi;zb=!0;let o=lP(),i=fP(),f=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Wi.Buffer=r,Wi.SlowBuffer=O,Wi.INSPECT_MAX_BYTES=50;let p=2147483647;Wi.kMaxLength=p,r.TYPED_ARRAY_SUPPORT=a(),!r.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{let t=new Uint8Array(1),s={foo:e(function(){return 42},"foo")};return Object.setPrototypeOf(s,Uint8Array.prototype),Object.setPrototypeOf(t,s),t.foo()===42}catch{return!1}}l(a,"a"),e(a,"typedArraySupport"),Object.defineProperty(r.prototype,"parent",{enumerable:!0,get:e(function(){if(r.isBuffer(this))return this.buffer},"get")}),Object.defineProperty(r.prototype,"offset",{enumerable:!0,get:e(function(){if(r.isBuffer(this))return this.byteOffset},"get")});function n(t){if(t>p)throw new RangeError('The value "'+t+'" is invalid for option "size"');let s=new Uint8Array(t);return Object.setPrototypeOf(s,r.prototype),s}l(n,"s"),e(n,"createBuffer");function r(t,s,c){if(typeof t=="number"){if(typeof s=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(t)}return u(t,s,c)}l(r,"i"),e(r,"Buffer"),r.poolSize=8192;function u(t,s,c){if(typeof t=="string")return m(t,s);if(ArrayBuffer.isView(t))return w(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Ie(t,ArrayBuffer)||t&&Ie(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ie(t,SharedArrayBuffer)||t&&Ie(t.buffer,SharedArrayBuffer)))return _(t,s,c);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let v=t.valueOf&&t.valueOf();if(v!=null&&v!==t)return r.from(v,s,c);let R=S(t);if(R)return R;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return r.from(t[Symbol.toPrimitive]("string"),s,c);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}l(u,"f"),e(u,"from"),r.from=function(t,s,c){return u(t,s,c)},Object.setPrototypeOf(r.prototype,Uint8Array.prototype),Object.setPrototypeOf(r,Uint8Array);function g(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}l(g,"h"),e(g,"assertSize");function h(t,s,c){return g(t),t<=0?n(t):s!==void 0?typeof c=="string"?n(t).fill(s,c):n(t).fill(s):n(t)}l(h,"c"),e(h,"alloc"),r.alloc=function(t,s,c){return h(t,s,c)};function d(t){return g(t),n(t<0?0:T(t)|0)}l(d,"d"),e(d,"allocUnsafe"),r.allocUnsafe=function(t){return d(t)},r.allocUnsafeSlow=function(t){return d(t)};function m(t,s){if((typeof s!="string"||s==="")&&(s="utf8"),!r.isEncoding(s))throw new TypeError("Unknown encoding: "+s);let c=E(t,s)|0,v=n(c),R=v.write(t,s);return R!==c&&(v=v.slice(0,R)),v}l(m,"y"),e(m,"fromString");function y(t){let s=t.length<0?0:T(t.length)|0,c=n(s);for(let v=0;v<s;v+=1)c[v]=t[v]&255;return c}l(y,"m"),e(y,"fromArrayLike");function w(t){if(Ie(t,Uint8Array)){let s=new Uint8Array(t);return _(s.buffer,s.byteOffset,s.byteLength)}return y(t)}l(w,"g"),e(w,"fromArrayView");function _(t,s,c){if(s<0||t.byteLength<s)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<s+(c||0))throw new RangeError('"length" is outside of buffer bounds');let v;return s===void 0&&c===void 0?v=new Uint8Array(t):c===void 0?v=new Uint8Array(t,s):v=new Uint8Array(t,s,c),Object.setPrototypeOf(v,r.prototype),v}l(_,"v"),e(_,"fromArrayBuffer");function S(t){if(r.isBuffer(t)){let s=T(t.length)|0,c=n(s);return c.length===0||t.copy(c,0,0,s),c}if(t.length!==void 0)return typeof t.length!="number"||ke(t.length)?n(0):y(t);if(t.type==="Buffer"&&Array.isArray(t.data))return y(t.data)}l(S,"_"),e(S,"fromObject");function T(t){if(t>=p)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+p.toString(16)+" bytes");return t|0}l(T,"b"),e(T,"checked");function O(t){return+t!=t&&(t=0),r.alloc(+t)}l(O,"E"),e(O,"SlowBuffer"),r.isBuffer=e(function(t){return t!=null&&t._isBuffer===!0&&t!==r.prototype},"isBuffer2"),r.compare=e(function(t,s){if(Ie(t,Uint8Array)&&(t=r.from(t,t.offset,t.byteLength)),Ie(s,Uint8Array)&&(s=r.from(s,s.offset,s.byteLength)),!r.isBuffer(t)||!r.isBuffer(s))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===s)return 0;let c=t.length,v=s.length;for(let R=0,C=Math.min(c,v);R<C;++R)if(t[R]!==s[R]){c=t[R],v=s[R];break}return c<v?-1:v<c?1:0},"compare"),r.isEncoding=e(function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},"isEncoding"),r.concat=e(function(t,s){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return r.alloc(0);let c;if(s===void 0)for(s=0,c=0;c<t.length;++c)s+=t[c].length;let v=r.allocUnsafe(s),R=0;for(c=0;c<t.length;++c){let C=t[c];if(Ie(C,Uint8Array))R+C.length>v.length?(r.isBuffer(C)||(C=r.from(C)),C.copy(v,R)):Uint8Array.prototype.set.call(v,C,R);else if(r.isBuffer(C))C.copy(v,R);else throw new TypeError('"list" argument must be an Array of Buffers');R+=C.length}return v},"concat");function E(t,s){if(r.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Ie(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let c=t.length,v=arguments.length>2&&arguments[2]===!0;if(!v&&c===0)return 0;let R=!1;for(;;)switch(s){case"ascii":case"latin1":case"binary":return c;case"utf8":case"utf-8":return Ee(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c*2;case"hex":return c>>>1;case"base64":return ge(t).length;default:if(R)return v?-1:Ee(t).length;s=(""+s).toLowerCase(),R=!0}}l(E,"R"),e(E,"byteLength"),r.byteLength=E;function P(t,s,c){let v=!1;if((s===void 0||s<0)&&(s=0),s>this.length||((c===void 0||c>this.length)&&(c=this.length),c<=0)||(c>>>=0,s>>>=0,c<=s))return"";for(t||(t="utf8");;)switch(t){case"hex":return se(this,s,c);case"utf8":case"utf-8":return ae(this,s,c);case"ascii":return xe(this,s,c);case"latin1":case"binary":return Pe(this,s,c);case"base64":return re(this,s,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Te(this,s,c);default:if(v)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),v=!0}}l(P,"T"),e(P,"slowToString"),r.prototype._isBuffer=!0;function A(t,s,c){let v=t[s];t[s]=t[c],t[c]=v}l(A,"F"),e(A,"swap"),r.prototype.swap16=e(function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let s=0;s<t;s+=2)A(this,s,s+1);return this},"swap16"),r.prototype.swap32=e(function(){let t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let s=0;s<t;s+=4)A(this,s,s+3),A(this,s+1,s+2);return this},"swap32"),r.prototype.swap64=e(function(){let t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let s=0;s<t;s+=8)A(this,s,s+7),A(this,s+1,s+6),A(this,s+2,s+5),A(this,s+3,s+4);return this},"swap64"),r.prototype.toString=e(function(){let t=this.length;return t===0?"":arguments.length===0?ae(this,0,t):P.apply(this,arguments)},"toString"),r.prototype.toLocaleString=r.prototype.toString,r.prototype.equals=e(function(t){if(!r.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:r.compare(this,t)===0},"equals"),r.prototype.inspect=e(function(){let t="",s=Wi.INSPECT_MAX_BYTES;return t=this.toString("hex",0,s).replace(/(.{2})/g,"$1 ").trim(),this.length>s&&(t+=" ... "),"<Buffer "+t+">"},"inspect2"),f&&(r.prototype[f]=r.prototype.inspect),r.prototype.compare=e(function(t,s,c,v,R){if(Ie(t,Uint8Array)&&(t=r.from(t,t.offset,t.byteLength)),!r.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(s===void 0&&(s=0),c===void 0&&(c=t?t.length:0),v===void 0&&(v=0),R===void 0&&(R=this.length),s<0||c>t.length||v<0||R>this.length)throw new RangeError("out of range index");if(v>=R&&s>=c)return 0;if(v>=R)return-1;if(s>=c)return 1;if(s>>>=0,c>>>=0,v>>>=0,R>>>=0,this===t)return 0;let C=R-v,j=c-s,Z=Math.min(C,j),oe=this.slice(v,R),Ae=t.slice(s,c);for(let le=0;le<Z;++le)if(oe[le]!==Ae[le]){C=oe[le],j=Ae[le];break}return C<j?-1:j<C?1:0},"compare");function x(t,s,c,v,R){if(t.length===0)return-1;if(typeof c=="string"?(v=c,c=0):c>2147483647?c=2147483647:c<-2147483648&&(c=-2147483648),c=+c,ke(c)&&(c=R?0:t.length-1),c<0&&(c=t.length+c),c>=t.length){if(R)return-1;c=t.length-1}else if(c<0)if(R)c=0;else return-1;if(typeof s=="string"&&(s=r.from(s,v)),r.isBuffer(s))return s.length===0?-1:U(t,s,c,v,R);if(typeof s=="number")return s=s&255,typeof Uint8Array.prototype.indexOf=="function"?R?Uint8Array.prototype.indexOf.call(t,s,c):Uint8Array.prototype.lastIndexOf.call(t,s,c):U(t,[s],c,v,R);throw new TypeError("val must be string, number or Buffer")}l(x,"S"),e(x,"bidirectionalIndexOf");function U(t,s,c,v,R){let C=1,j=t.length,Z=s.length;if(v!==void 0&&(v=String(v).toLowerCase(),v==="ucs2"||v==="ucs-2"||v==="utf16le"||v==="utf-16le")){if(t.length<2||s.length<2)return-1;C=2,j/=2,Z/=2,c/=2}function oe(le,Fe){return C===1?le[Fe]:le.readUInt16BE(Fe*C)}l(oe,"re"),e(oe,"read");let Ae;if(R){let le=-1;for(Ae=c;Ae<j;Ae++)if(oe(t,Ae)===oe(s,le===-1?0:Ae-le)){if(le===-1&&(le=Ae),Ae-le+1===Z)return le*C}else le!==-1&&(Ae-=Ae-le),le=-1}else for(c+Z>j&&(c=j-Z),Ae=c;Ae>=0;Ae--){let le=!0;for(let Fe=0;Fe<Z;Fe++)if(oe(t,Ae+Fe)!==oe(s,Fe)){le=!1;break}if(le)return Ae}return-1}l(U,"B"),e(U,"arrayIndexOf"),r.prototype.includes=e(function(t,s,c){return this.indexOf(t,s,c)!==-1},"includes"),r.prototype.indexOf=e(function(t,s,c){return x(this,t,s,c,!0)},"indexOf"),r.prototype.lastIndexOf=e(function(t,s,c){return x(this,t,s,c,!1)},"lastIndexOf");function M(t,s,c,v){c=Number(c)||0;let R=t.length-c;v?(v=Number(v),v>R&&(v=R)):v=R;let C=s.length;v>C/2&&(v=C/2);let j;for(j=0;j<v;++j){let Z=parseInt(s.substr(j*2,2),16);if(ke(Z))return j;t[c+j]=Z}return j}l(M,"P"),e(M,"hexWrite");function ee(t,s,c,v){return Ne(Ee(s,t.length-c),t,c,v)}l(ee,"N"),e(ee,"utf8Write");function V(t,s,c,v){return Ne(Oe(s),t,c,v)}l(V,"L"),e(V,"asciiWrite");function q(t,s,c,v){return Ne(ge(s),t,c,v)}l(q,"C"),e(q,"base64Write");function G(t,s,c,v){return Ne(be(s,t.length-c),t,c,v)}l(G,"j"),e(G,"ucs2Write"),r.prototype.write=e(function(t,s,c,v){if(s===void 0)v="utf8",c=this.length,s=0;else if(c===void 0&&typeof s=="string")v=s,c=this.length,s=0;else if(isFinite(s))s=s>>>0,isFinite(c)?(c=c>>>0,v===void 0&&(v="utf8")):(v=c,c=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let R=this.length-s;if((c===void 0||c>R)&&(c=R),t.length>0&&(c<0||s<0)||s>this.length)throw new RangeError("Attempt to write outside buffer bounds");v||(v="utf8");let C=!1;for(;;)switch(v){case"hex":return M(this,t,s,c);case"utf8":case"utf-8":return ee(this,t,s,c);case"ascii":case"latin1":case"binary":return V(this,t,s,c);case"base64":return q(this,t,s,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,t,s,c);default:if(C)throw new TypeError("Unknown encoding: "+v);v=(""+v).toLowerCase(),C=!0}},"write"),r.prototype.toJSON=e(function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},"toJSON");function re(t,s,c){return s===0&&c===t.length?o.fromByteArray(t):o.fromByteArray(t.slice(s,c))}l(re,"q"),e(re,"base64Slice");function ae(t,s,c){c=Math.min(t.length,c);let v=[],R=s;for(;R<c;){let C=t[R],j=null,Z=C>239?4:C>223?3:C>191?2:1;if(R+Z<=c){let oe,Ae,le,Fe;switch(Z){case 1:C<128&&(j=C);break;case 2:oe=t[R+1],(oe&192)===128&&(Fe=(C&31)<<6|oe&63,Fe>127&&(j=Fe));break;case 3:oe=t[R+1],Ae=t[R+2],(oe&192)===128&&(Ae&192)===128&&(Fe=(C&15)<<12|(oe&63)<<6|Ae&63,Fe>2047&&(Fe<55296||Fe>57343)&&(j=Fe));break;case 4:oe=t[R+1],Ae=t[R+2],le=t[R+3],(oe&192)===128&&(Ae&192)===128&&(le&192)===128&&(Fe=(C&15)<<18|(oe&63)<<12|(Ae&63)<<6|le&63,Fe>65535&&Fe<1114112&&(j=Fe))}}j===null?(j=65533,Z=1):j>65535&&(j-=65536,v.push(j>>>10&1023|55296),j=56320|j&1023),v.push(j),R+=Z}return we(v)}l(ae,"Z"),e(ae,"utf8Slice");let de=4096;function we(t){let s=t.length;if(s<=de)return String.fromCharCode.apply(String,t);let c="",v=0;for(;v<s;)c+=String.fromCharCode.apply(String,t.slice(v,v+=de));return c}l(we,"se"),e(we,"decodeCodePointsArray");function xe(t,s,c){let v="";c=Math.min(t.length,c);for(let R=s;R<c;++R)v+=String.fromCharCode(t[R]&127);return v}l(xe,"_e"),e(xe,"asciiSlice");function Pe(t,s,c){let v="";c=Math.min(t.length,c);for(let R=s;R<c;++R)v+=String.fromCharCode(t[R]);return v}l(Pe,"pe"),e(Pe,"latin1Slice");function se(t,s,c){let v=t.length;(!s||s<0)&&(s=0),(!c||c<0||c>v)&&(c=v);let R="";for(let C=s;C<c;++C)R+=Ce[t[C]];return R}l(se,"Q"),e(se,"hexSlice");function Te(t,s,c){let v=t.slice(s,c),R="";for(let C=0;C<v.length-1;C+=2)R+=String.fromCharCode(v[C]+v[C+1]*256);return R}l(Te,"he"),e(Te,"utf16leSlice"),r.prototype.slice=e(function(t,s){let c=this.length;t=~~t,s=s===void 0?c:~~s,t<0?(t+=c,t<0&&(t=0)):t>c&&(t=c),s<0?(s+=c,s<0&&(s=0)):s>c&&(s=c),s<t&&(s=t);let v=this.subarray(t,s);return Object.setPrototypeOf(v,r.prototype),v},"slice");function J(t,s,c){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+s>c)throw new RangeError("Trying to access beyond buffer length")}l(J,"U"),e(J,"checkOffset"),r.prototype.readUintLE=r.prototype.readUIntLE=e(function(t,s,c){t=t>>>0,s=s>>>0,c||J(t,s,this.length);let v=this[t],R=1,C=0;for(;++C<s&&(R*=256);)v+=this[t+C]*R;return v},"readUIntLE"),r.prototype.readUintBE=r.prototype.readUIntBE=e(function(t,s,c){t=t>>>0,s=s>>>0,c||J(t,s,this.length);let v=this[t+--s],R=1;for(;s>0&&(R*=256);)v+=this[t+--s]*R;return v},"readUIntBE"),r.prototype.readUint8=r.prototype.readUInt8=e(function(t,s){return t=t>>>0,s||J(t,1,this.length),this[t]},"readUInt8"),r.prototype.readUint16LE=r.prototype.readUInt16LE=e(function(t,s){return t=t>>>0,s||J(t,2,this.length),this[t]|this[t+1]<<8},"readUInt16LE"),r.prototype.readUint16BE=r.prototype.readUInt16BE=e(function(t,s){return t=t>>>0,s||J(t,2,this.length),this[t]<<8|this[t+1]},"readUInt16BE"),r.prototype.readUint32LE=r.prototype.readUInt32LE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216},"readUInt32LE"),r.prototype.readUint32BE=r.prototype.readUInt32BE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])},"readUInt32BE"),r.prototype.readBigUInt64LE=$e(e(function(t){t=t>>>0,N(t,"offset");let s=this[t],c=this[t+7];(s===void 0||c===void 0)&&I(t,this.length-8);let v=s+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,R=this[++t]+this[++t]*2**8+this[++t]*2**16+c*2**24;return BigInt(v)+(BigInt(R)<<BigInt(32))},"readBigUInt64LE")),r.prototype.readBigUInt64BE=$e(e(function(t){t=t>>>0,N(t,"offset");let s=this[t],c=this[t+7];(s===void 0||c===void 0)&&I(t,this.length-8);let v=s*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],R=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+c;return(BigInt(v)<<BigInt(32))+BigInt(R)},"readBigUInt64BE")),r.prototype.readIntLE=e(function(t,s,c){t=t>>>0,s=s>>>0,c||J(t,s,this.length);let v=this[t],R=1,C=0;for(;++C<s&&(R*=256);)v+=this[t+C]*R;return R*=128,v>=R&&(v-=Math.pow(2,8*s)),v},"readIntLE"),r.prototype.readIntBE=e(function(t,s,c){t=t>>>0,s=s>>>0,c||J(t,s,this.length);let v=s,R=1,C=this[t+--v];for(;v>0&&(R*=256);)C+=this[t+--v]*R;return R*=128,C>=R&&(C-=Math.pow(2,8*s)),C},"readIntBE"),r.prototype.readInt8=e(function(t,s){return t=t>>>0,s||J(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]},"readInt8"),r.prototype.readInt16LE=e(function(t,s){t=t>>>0,s||J(t,2,this.length);let c=this[t]|this[t+1]<<8;return c&32768?c|4294901760:c},"readInt16LE"),r.prototype.readInt16BE=e(function(t,s){t=t>>>0,s||J(t,2,this.length);let c=this[t+1]|this[t]<<8;return c&32768?c|4294901760:c},"readInt16BE"),r.prototype.readInt32LE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},"readInt32LE"),r.prototype.readInt32BE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},"readInt32BE"),r.prototype.readBigInt64LE=$e(e(function(t){t=t>>>0,N(t,"offset");let s=this[t],c=this[t+7];(s===void 0||c===void 0)&&I(t,this.length-8);let v=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(c<<24);return(BigInt(v)<<BigInt(32))+BigInt(s+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24)},"readBigInt64LE")),r.prototype.readBigInt64BE=$e(e(function(t){t=t>>>0,N(t,"offset");let s=this[t],c=this[t+7];(s===void 0||c===void 0)&&I(t,this.length-8);let v=(s<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(v)<<BigInt(32))+BigInt(this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+c)},"readBigInt64BE")),r.prototype.readFloatLE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),i.read(this,t,!0,23,4)},"readFloatLE"),r.prototype.readFloatBE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),i.read(this,t,!1,23,4)},"readFloatBE"),r.prototype.readDoubleLE=e(function(t,s){return t=t>>>0,s||J(t,8,this.length),i.read(this,t,!0,52,8)},"readDoubleLE"),r.prototype.readDoubleBE=e(function(t,s){return t=t>>>0,s||J(t,8,this.length),i.read(this,t,!1,52,8)},"readDoubleBE");function ue(t,s,c,v,R,C){if(!r.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(s>R||s<C)throw new RangeError('"value" argument is out of bounds');if(c+v>t.length)throw new RangeError("Index out of range")}l(ue,"J"),e(ue,"checkInt"),r.prototype.writeUintLE=r.prototype.writeUIntLE=e(function(t,s,c,v){if(t=+t,s=s>>>0,c=c>>>0,!v){let j=Math.pow(2,8*c)-1;ue(this,t,s,c,j,0)}let R=1,C=0;for(this[s]=t&255;++C<c&&(R*=256);)this[s+C]=t/R&255;return s+c},"writeUIntLE"),r.prototype.writeUintBE=r.prototype.writeUIntBE=e(function(t,s,c,v){if(t=+t,s=s>>>0,c=c>>>0,!v){let j=Math.pow(2,8*c)-1;ue(this,t,s,c,j,0)}let R=c-1,C=1;for(this[s+R]=t&255;--R>=0&&(C*=256);)this[s+R]=t/C&255;return s+c},"writeUIntBE"),r.prototype.writeUint8=r.prototype.writeUInt8=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,1,255,0),this[s]=t&255,s+1},"writeUInt8"),r.prototype.writeUint16LE=r.prototype.writeUInt16LE=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,2,65535,0),this[s]=t&255,this[s+1]=t>>>8,s+2},"writeUInt16LE"),r.prototype.writeUint16BE=r.prototype.writeUInt16BE=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,2,65535,0),this[s]=t>>>8,this[s+1]=t&255,s+2},"writeUInt16BE"),r.prototype.writeUint32LE=r.prototype.writeUInt32LE=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,4,4294967295,0),this[s+3]=t>>>24,this[s+2]=t>>>16,this[s+1]=t>>>8,this[s]=t&255,s+4},"writeUInt32LE"),r.prototype.writeUint32BE=r.prototype.writeUInt32BE=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,4,4294967295,0),this[s]=t>>>24,this[s+1]=t>>>16,this[s+2]=t>>>8,this[s+3]=t&255,s+4},"writeUInt32BE");function te(t,s,c,v,R){ve(s,v,R,t,c,7);let C=Number(s&BigInt(4294967295));t[c++]=C,C=C>>8,t[c++]=C,C=C>>8,t[c++]=C,C=C>>8,t[c++]=C;let j=Number(s>>BigInt(32)&BigInt(4294967295));return t[c++]=j,j=j>>8,t[c++]=j,j=j>>8,t[c++]=j,j=j>>8,t[c++]=j,c}l(te,"z"),e(te,"wrtBigUInt64LE");function X(t,s,c,v,R){ve(s,v,R,t,c,7);let C=Number(s&BigInt(4294967295));t[c+7]=C,C=C>>8,t[c+6]=C,C=C>>8,t[c+5]=C,C=C>>8,t[c+4]=C;let j=Number(s>>BigInt(32)&BigInt(4294967295));return t[c+3]=j,j=j>>8,t[c+2]=j,j=j>>8,t[c+1]=j,j=j>>8,t[c]=j,c+8}l(X,"V"),e(X,"wrtBigUInt64BE"),r.prototype.writeBigUInt64LE=$e(e(function(t,s=0){return te(this,t,s,BigInt(0),BigInt("0xffffffffffffffff"))},"writeBigUInt64LE")),r.prototype.writeBigUInt64BE=$e(e(function(t,s=0){return X(this,t,s,BigInt(0),BigInt("0xffffffffffffffff"))},"writeBigUInt64BE")),r.prototype.writeIntLE=e(function(t,s,c,v){if(t=+t,s=s>>>0,!v){let Z=Math.pow(2,8*c-1);ue(this,t,s,c,Z-1,-Z)}let R=0,C=1,j=0;for(this[s]=t&255;++R<c&&(C*=256);)t<0&&j===0&&this[s+R-1]!==0&&(j=1),this[s+R]=(t/C>>0)-j&255;return s+c},"writeIntLE"),r.prototype.writeIntBE=e(function(t,s,c,v){if(t=+t,s=s>>>0,!v){let Z=Math.pow(2,8*c-1);ue(this,t,s,c,Z-1,-Z)}let R=c-1,C=1,j=0;for(this[s+R]=t&255;--R>=0&&(C*=256);)t<0&&j===0&&this[s+R+1]!==0&&(j=1),this[s+R]=(t/C>>0)-j&255;return s+c},"writeIntBE"),r.prototype.writeInt8=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,1,127,-128),t<0&&(t=255+t+1),this[s]=t&255,s+1},"writeInt8"),r.prototype.writeInt16LE=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,2,32767,-32768),this[s]=t&255,this[s+1]=t>>>8,s+2},"writeInt16LE"),r.prototype.writeInt16BE=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,2,32767,-32768),this[s]=t>>>8,this[s+1]=t&255,s+2},"writeInt16BE"),r.prototype.writeInt32LE=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,4,2147483647,-2147483648),this[s]=t&255,this[s+1]=t>>>8,this[s+2]=t>>>16,this[s+3]=t>>>24,s+4},"writeInt32LE"),r.prototype.writeInt32BE=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[s]=t>>>24,this[s+1]=t>>>16,this[s+2]=t>>>8,this[s+3]=t&255,s+4},"writeInt32BE"),r.prototype.writeBigInt64LE=$e(e(function(t,s=0){return te(this,t,s,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))},"writeBigInt64LE")),r.prototype.writeBigInt64BE=$e(e(function(t,s=0){return X(this,t,s,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))},"writeBigInt64BE"));function ye(t,s,c,v,R,C){if(c+v>t.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("Index out of range")}l(ye,"G"),e(ye,"checkIEEE754");function Re(t,s,c,v,R){return s=+s,c=c>>>0,R||ye(t,s,c,4),i.write(t,s,c,v,23,4),c+4}l(Re,"fe"),e(Re,"writeFloat"),r.prototype.writeFloatLE=e(function(t,s,c){return Re(this,t,s,!0,c)},"writeFloatLE"),r.prototype.writeFloatBE=e(function(t,s,c){return Re(this,t,s,!1,c)},"writeFloatBE");function De(t,s,c,v,R){return s=+s,c=c>>>0,R||ye(t,s,c,8),i.write(t,s,c,v,52,8),c+8}l(De,"be"),e(De,"writeDouble"),r.prototype.writeDoubleLE=e(function(t,s,c){return De(this,t,s,!0,c)},"writeDoubleLE"),r.prototype.writeDoubleBE=e(function(t,s,c){return De(this,t,s,!1,c)},"writeDoubleBE"),r.prototype.copy=e(function(t,s,c,v){if(!r.isBuffer(t))throw new TypeError("argument should be a Buffer");if(c||(c=0),!v&&v!==0&&(v=this.length),s>=t.length&&(s=t.length),s||(s=0),v>0&&v<c&&(v=c),v===c||t.length===0||this.length===0)return 0;if(s<0)throw new RangeError("targetStart out of bounds");if(c<0||c>=this.length)throw new RangeError("Index out of range");if(v<0)throw new RangeError("sourceEnd out of bounds");v>this.length&&(v=this.length),t.length-s<v-c&&(v=t.length-s+c);let R=v-c;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(s,c,v):Uint8Array.prototype.set.call(t,this.subarray(c,v),s),R},"copy"),r.prototype.fill=e(function(t,s,c,v){if(typeof t=="string"){if(typeof s=="string"?(v=s,s=0,c=this.length):typeof c=="string"&&(v=c,c=this.length),v!==void 0&&typeof v!="string")throw new TypeError("encoding must be a string");if(typeof v=="string"&&!r.isEncoding(v))throw new TypeError("Unknown encoding: "+v);if(t.length===1){let C=t.charCodeAt(0);(v==="utf8"&&C<128||v==="latin1")&&(t=C)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(s<0||this.length<s||this.length<c)throw new RangeError("Out of range index");if(c<=s)return this;s=s>>>0,c=c===void 0?this.length:c>>>0,t||(t=0);let R;if(typeof t=="number")for(R=s;R<c;++R)this[R]=t;else{let C=r.isBuffer(t)?t:r.from(t,v),j=C.length;if(j===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(R=0;R<c-s;++R)this[R+s]=C[R%j]}return this},"fill");let Y={};function H(t,s,c){var R;var v;Y[t]=(v=(R=class extends c{constructor(){super(),Object.defineProperty(this,"message",{value:s.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(j){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:j,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}},l(R,"w"),R),e(v,"NodeError"),v)}l(H,"$"),e(H,"E"),H("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),H("ERR_INVALID_ARG_TYPE",function(t,s){return`The "${t}" argument must be of type number. Received type ${typeof s}`},TypeError),H("ERR_OUT_OF_RANGE",function(t,s,c){let v=`The value of "${t}" is out of range.`,R=c;return Number.isInteger(c)&&Math.abs(c)>2**32?R=Q(String(c)):typeof c=="bigint"&&(R=String(c),(c>BigInt(2)**BigInt(32)||c<-(BigInt(2)**BigInt(32)))&&(R=Q(R)),R+="n"),v+=` It must be ${s}. Received ${R}`,v},RangeError);function Q(t){let s="",c=t.length,v=t[0]==="-"?1:0;for(;c>=v+4;c-=3)s=`_${t.slice(c-3,c)}${s}`;return`${t.slice(0,c)}${s}`}l(Q,"H"),e(Q,"addNumericalSeparator");function fe(t,s,c){N(s,"offset"),(t[s]===void 0||t[s+c]===void 0)&&I(s,t.length-(c+1))}l(fe,"te"),e(fe,"checkBounds");function ve(t,s,c,v,R,C){if(t>c||t<s){let j=typeof s=="bigint"?"n":"",Z;throw s===0||s===BigInt(0)?Z=`>= 0${j} and < 2${j} ** ${(C+1)*8}${j}`:Z=`>= -(2${j} ** ${(C+1)*8-1}${j}) and < 2 ** ${(C+1)*8-1}${j}`,new Y.ERR_OUT_OF_RANGE("value",Z,t)}fe(v,R,C)}l(ve,"oe"),e(ve,"checkIntBI");function N(t,s){if(typeof t!="number")throw new Y.ERR_INVALID_ARG_TYPE(s,"number",t)}l(N,"I"),e(N,"validateNumber");function I(t,s,c){throw Math.floor(t)!==t?(N(t,c),new Y.ERR_OUT_OF_RANGE("offset","an integer",t)):s<0?new Y.ERR_BUFFER_OUT_OF_BOUNDS:new Y.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${s}`,t)}l(I,"x"),e(I,"boundsError");let D=/[^+/0-9A-Za-z-_]/g;function z(t){if(t=t.split("=")[0],t=t.trim().replace(D,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}l(z,"Y"),e(z,"base64clean");function Ee(t,s){s=s||1/0;let c,v=t.length,R=null,C=[];for(let j=0;j<v;++j){if(c=t.charCodeAt(j),c>55295&&c<57344){if(!R){if(c>56319){(s-=3)>-1&&C.push(239,191,189);continue}else if(j+1===v){(s-=3)>-1&&C.push(239,191,189);continue}R=c;continue}if(c<56320){(s-=3)>-1&&C.push(239,191,189),R=c;continue}c=(R-55296<<10|c-56320)+65536}else R&&(s-=3)>-1&&C.push(239,191,189);if(R=null,c<128){if((s-=1)<0)break;C.push(c)}else if(c<2048){if((s-=2)<0)break;C.push(c>>6|192,c&63|128)}else if(c<65536){if((s-=3)<0)break;C.push(c>>12|224,c>>6&63|128,c&63|128)}else if(c<1114112){if((s-=4)<0)break;C.push(c>>18|240,c>>12&63|128,c>>6&63|128,c&63|128)}else throw new Error("Invalid code point")}return C}l(Ee,"ue"),e(Ee,"utf8ToBytes");function Oe(t){let s=[];for(let c=0;c<t.length;++c)s.push(t.charCodeAt(c)&255);return s}l(Oe,"le"),e(Oe,"asciiToBytes");function be(t,s){let c,v,R,C=[];for(let j=0;j<t.length&&!((s-=2)<0);++j)c=t.charCodeAt(j),v=c>>8,R=c%256,C.push(R),C.push(v);return C}l(be,"ee"),e(be,"utf16leToBytes");function ge(t){return o.toByteArray(z(t))}l(ge,"ie"),e(ge,"base64ToBytes");function Ne(t,s,c,v){let R;for(R=0;R<v&&!(R+c>=s.length||R>=t.length);++R)s[R+c]=t[R];return R}l(Ne,"me"),e(Ne,"blitBuffer");function Ie(t,s){return t instanceof s||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===s.name}l(Ie,"ye"),e(Ie,"isInstance");function ke(t){return t!==t}l(ke,"ve"),e(ke,"numberIsNaN");let Ce=function(){let t="0123456789abcdef",s=new Array(256);for(let c=0;c<16;++c){let v=c*16;for(let R=0;R<16;++R)s[v+R]=t[c]+t[R]}return s}();function $e(t){return typeof BigInt>"u"?Ke:t}l($e,"Be"),e($e,"defineBigIntMethod");function Ke(){throw new Error("BigInt not supported")}return l(Ke,"Je"),e(Ke,"BufferBigIntNotDefined"),Wi}l(_i,"Wi");function Zk(){if(Hb)return Cl;Hb=!0;var o=typeof Reflect=="object"?Reflect:null,i=o&&typeof o.apply=="function"?o.apply:e(function(A,x,U){return Function.prototype.apply.call(A,x,U)},"ReflectApply2"),f;o&&typeof o.ownKeys=="function"?f=o.ownKeys:Object.getOwnPropertySymbols?f=e(function(A){return Object.getOwnPropertyNames(A).concat(Object.getOwnPropertySymbols(A))},"ReflectOwnKeys2"):f=e(function(A){return Object.getOwnPropertyNames(A)},"ReflectOwnKeys2");function p(A){console&&console.warn&&console.warn(A)}l(p,"n"),e(p,"ProcessEmitWarning");var a=Number.isNaN||e(function(A){return A!==A},"NumberIsNaN2");function n(){n.init.call(this)}l(n,"s"),e(n,"EventEmitter2"),Cl=n,Cl.once=O,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._eventsCount=0,n.prototype._maxListeners=void 0;var r=10;function u(A){if(typeof A!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof A)}l(u,"f"),e(u,"checkListener"),Object.defineProperty(n,"defaultMaxListeners",{enumerable:!0,get:e(function(){return r},"get"),set:e(function(A){if(typeof A!="number"||A<0||a(A))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+A+".");r=A},"set")}),n.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},n.prototype.setMaxListeners=e(function(A){if(typeof A!="number"||A<0||a(A))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+A+".");return this._maxListeners=A,this},"setMaxListeners");function g(A){return A._maxListeners===void 0?n.defaultMaxListeners:A._maxListeners}l(g,"h"),e(g,"_getMaxListeners"),n.prototype.getMaxListeners=e(function(){return g(this)},"getMaxListeners"),n.prototype.emit=e(function(A){for(var x=[],U=1;U<arguments.length;U++)x.push(arguments[U]);var M=A==="error",ee=this._events;if(ee!==void 0)M=M&&ee.error===void 0;else if(!M)return!1;if(M){var V;if(x.length>0&&(V=x[0]),V instanceof Error)throw V;var q=new Error("Unhandled error."+(V?" ("+V.message+")":""));throw q.context=V,q}var G=ee[A];if(G===void 0)return!1;if(typeof G=="function")i(G,this,x);else for(var re=G.length,ae=_(G,re),U=0;U<re;++U)i(ae[U],this,x);return!0},"emit2");function h(A,x,U,M){var ee,V,q;if(u(U),V=A._events,V===void 0?(V=A._events=Object.create(null),A._eventsCount=0):(V.newListener!==void 0&&(A.emit("newListener",x,U.listener?U.listener:U),V=A._events),q=V[x]),q===void 0)q=V[x]=U,++A._eventsCount;else if(typeof q=="function"?q=V[x]=M?[U,q]:[q,U]:M?q.unshift(U):q.push(U),ee=g(A),ee>0&&q.length>ee&&!q.warned){q.warned=!0;var G=new Error("Possible EventEmitter memory leak detected. "+q.length+" "+String(x)+" listeners added. Use emitter.setMaxListeners() to increase limit");G.name="MaxListenersExceededWarning",G.emitter=A,G.type=x,G.count=q.length,p(G)}return A}l(h,"c"),e(h,"_addListener"),n.prototype.addListener=e(function(A,x){return h(this,A,x,!1)},"addListener2"),n.prototype.on=n.prototype.addListener,n.prototype.prependListener=e(function(A,x){return h(this,A,x,!0)},"prependListener2");function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}l(d,"d"),e(d,"onceWrapper");function m(A,x,U){var M={fired:!1,wrapFn:void 0,target:A,type:x,listener:U},ee=d.bind(M);return ee.listener=U,M.wrapFn=ee,ee}l(m,"y"),e(m,"_onceWrap"),n.prototype.once=e(function(A,x){return u(x),this.on(A,m(this,A,x)),this},"once4"),n.prototype.prependOnceListener=e(function(A,x){return u(x),this.prependListener(A,m(this,A,x)),this},"prependOnceListener2"),n.prototype.removeListener=e(function(A,x){var U,M,ee,V,q;if(u(x),M=this._events,M===void 0)return this;if(U=M[A],U===void 0)return this;if(U===x||U.listener===x)--this._eventsCount===0?this._events=Object.create(null):(delete M[A],M.removeListener&&this.emit("removeListener",A,U.listener||x));else if(typeof U!="function"){for(ee=-1,V=U.length-1;V>=0;V--)if(U[V]===x||U[V].listener===x){q=U[V].listener,ee=V;break}if(ee<0)return this;ee===0?U.shift():S(U,ee),U.length===1&&(M[A]=U[0]),M.removeListener!==void 0&&this.emit("removeListener",A,q||x)}return this},"removeListener2"),n.prototype.off=n.prototype.removeListener,n.prototype.removeAllListeners=e(function(A){var x,U,M;if(U=this._events,U===void 0)return this;if(U.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):U[A]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete U[A]),this;if(arguments.length===0){var ee=Object.keys(U),V;for(M=0;M<ee.length;++M)V=ee[M],V!=="removeListener"&&this.removeAllListeners(V);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(x=U[A],typeof x=="function")this.removeListener(A,x);else if(x!==void 0)for(M=x.length-1;M>=0;M--)this.removeListener(A,x[M]);return this},"removeAllListeners2");function y(A,x,U){var M=A._events;if(M===void 0)return[];var ee=M[x];return ee===void 0?[]:typeof ee=="function"?U?[ee.listener||ee]:[ee]:U?T(ee):_(ee,ee.length)}l(y,"m"),e(y,"_listeners"),n.prototype.listeners=e(function(A){return y(this,A,!0)},"listeners2"),n.prototype.rawListeners=e(function(A){return y(this,A,!1)},"rawListeners"),n.listenerCount=function(A,x){return typeof A.listenerCount=="function"?A.listenerCount(x):w.call(A,x)},n.prototype.listenerCount=w;function w(A){var x=this._events;if(x!==void 0){var U=x[A];if(typeof U=="function")return 1;if(U!==void 0)return U.length}return 0}l(w,"g"),e(w,"listenerCount2"),n.prototype.eventNames=e(function(){return this._eventsCount>0?f(this._events):[]},"eventNames");function _(A,x){for(var U=new Array(x),M=0;M<x;++M)U[M]=A[M];return U}l(_,"v"),e(_,"arrayClone");function S(A,x){for(;x+1<A.length;x++)A[x]=A[x+1];A.pop()}l(S,"_"),e(S,"spliceOne");function T(A){for(var x=new Array(A.length),U=0;U<x.length;++U)x[U]=A[U].listener||A[U];return x}l(T,"b"),e(T,"unwrapListeners");function O(A,x){return new Promise(function(U,M){function ee(q){A.removeListener(x,V),M(q)}l(ee,"N"),e(ee,"errorListener");function V(){typeof A.removeListener=="function"&&A.removeListener("error",ee),U([].slice.call(arguments))}l(V,"L"),e(V,"resolver"),P(A,x,V,{once:!0}),x!=="error"&&E(A,ee,{once:!0})})}l(O,"E"),e(O,"once3");function E(A,x,U){typeof A.on=="function"&&P(A,"error",x,U)}l(E,"R"),e(E,"addErrorHandlerIfEventEmitter");function P(A,x,U,M){if(typeof A.on=="function")M.once?A.once(x,U):A.on(x,U);else if(typeof A.addEventListener=="function")A.addEventListener(x,e(l(function ee(V){M.once&&A.removeEventListener(x,ee),U(V)},"N"),"wrapListener"));else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof A)}return l(P,"T"),e(P,"eventTargetAgnosticAddListener"),Cl}l(Zk,"J4");function hd(o){throw new Error("Node.js process "+o+" is not supported by JSPM core outside of Node.js")}l(hd,"Dg");function uP(){!va||!ua||(va=!1,ua.length?Nn=ua.concat(Nn):Yl=-1,Nn.length&&HE())}l(uP,"Z4");function HE(){if(!va){var o=setTimeout(uP,0);va=!0;for(var i=Nn.length;i;){for(ua=Nn,Nn=[];++Yl<i;)ua&&ua[Yl].run();Yl=-1,i=Nn.length}ua=null,va=!1,clearTimeout(o)}}l(HE,"Q2");function Qk(o){var i=new Array(arguments.length-1);if(arguments.length>1)for(var f=1;f<arguments.length;f++)i[f-1]=arguments[f];Nn.push(new Mb(o,i)),Nn.length===1&&!va&&setTimeout(HE,0)}l(Qk,"Q4");function Mb(o,i){this.fun=o,this.array=i}l(Mb,"eR");function _r(){}l(_r,"Jt");function Xk(o){hd("_linkedBinding")}l(Xk,"mH");function eT(o){hd("dlopen")}l(eT,"bH");function tT(){return[]}l(tT,"_H");function rT(){return[]}l(rT,"EH");function nT(o,i){if(!o)throw new Error(i||"assertion error")}l(nT,"IH");function iT(){return!1}l(iT,"LH");function oT(){return di.now()/1e3}l(oT,"ZH");function uu(o){var i=Math.floor((Date.now()-di.now())*.001),f=di.now()*.001,p=Math.floor(f)+i,a=Math.floor(f%1*1e9);return o&&(p=p-o[0],a=a-o[1],a<0&&(p--,a+=sc)),[p,a]}l(uu,"Lg");function ei(){return Hn}l(ei,"zi");function aT(o){return[]}l(aT,"uW");function cP(){if(qb)return Rs;qb=!0;var o=_i(),i=o.Buffer;function f(a,n){for(var r in a)n[r]=a[r]}l(f,"r"),e(f,"copyProps"),i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?Rs=o:(f(o,Rs),Rs.Buffer=p);function p(a,n,r){return i(a,n,r)}return l(p,"n"),e(p,"SafeBuffer"),p.prototype=Object.create(i.prototype),f(i,p),p.from=function(a,n,r){if(typeof a=="number")throw new TypeError("Argument must not be a number");return i(a,n,r)},p.alloc=function(a,n,r){if(typeof a!="number")throw new TypeError("Argument must be a number");var u=i(a);return n!==void 0?typeof r=="string"?u.fill(n,r):u.fill(n):u.fill(0),u},p.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return i(a)},p.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return o.SlowBuffer(a)},Rs}l(cP,"cW");function sT(){if(Gb)return lc;Gb=!0;var o=cP().Buffer,i=o.isEncoding||function(O){switch(O=""+O,O&&O.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 f(O){if(!O)return"utf8";for(var E;;)switch(O){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 O;default:if(E)return;O=(""+O).toLowerCase(),E=!0}}l(f,"r"),e(f,"_normalizeEncoding");function p(O){var E=f(O);if(typeof E!="string"&&(o.isEncoding===i||!i(O)))throw new Error("Unknown encoding: "+O);return E||O}l(p,"n"),e(p,"normalizeEncoding"),lc.StringDecoder=a;function a(O){this.encoding=p(O);var E;switch(this.encoding){case"utf16le":this.text=m,this.end=y,E=4;break;case"utf8":this.fillLast=g,E=4;break;case"base64":this.text=w,this.end=_,E=3;break;default:this.write=S,this.end=T;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=o.allocUnsafe(E)}l(a,"a"),e(a,"StringDecoder2"),a.prototype.write=function(O){if(O.length===0)return"";var E,P;if(this.lastNeed){if(E=this.fillLast(O),E===void 0)return"";P=this.lastNeed,this.lastNeed=0}else P=0;return P<O.length?E?E+this.text(O,P):this.text(O,P):E||""},a.prototype.end=d,a.prototype.text=h,a.prototype.fillLast=function(O){if(this.lastNeed<=O.length)return O.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);O.copy(this.lastChar,this.lastTotal-this.lastNeed,0,O.length),this.lastNeed-=O.length};function n(O){return O<=127?0:O>>5===6?2:O>>4===14?3:O>>3===30?4:O>>6===2?-1:-2}l(n,"s"),e(n,"utf8CheckByte");function r(O,E,P){var A=E.length-1;if(A<P)return 0;var x=n(E[A]);return x>=0?(x>0&&(O.lastNeed=x-1),x):--A<P||x===-2?0:(x=n(E[A]),x>=0?(x>0&&(O.lastNeed=x-2),x):--A<P||x===-2?0:(x=n(E[A]),x>=0?(x>0&&(x===2?x=0:O.lastNeed=x-3),x):0))}l(r,"i"),e(r,"utf8CheckIncomplete");function u(O,E,P){if((E[0]&192)!==128)return O.lastNeed=0,"\uFFFD";if(O.lastNeed>1&&E.length>1){if((E[1]&192)!==128)return O.lastNeed=1,"\uFFFD";if(O.lastNeed>2&&E.length>2&&(E[2]&192)!==128)return O.lastNeed=2,"\uFFFD"}}l(u,"f"),e(u,"utf8CheckExtraBytes");function g(O){var E=this.lastTotal-this.lastNeed,P=u(this,O);if(P!==void 0)return P;if(this.lastNeed<=O.length)return O.copy(this.lastChar,E,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);O.copy(this.lastChar,E,0,O.length),this.lastNeed-=O.length}l(g,"h"),e(g,"utf8FillLast");function h(O,E){var P=r(this,O,E);if(!this.lastNeed)return O.toString("utf8",E);this.lastTotal=P;var A=O.length-(P-this.lastNeed);return O.copy(this.lastChar,0,A),O.toString("utf8",E,A)}l(h,"c"),e(h,"utf8Text");function d(O){var E=O&&O.length?this.write(O):"";return this.lastNeed?E+"\uFFFD":E}l(d,"d"),e(d,"utf8End");function m(O,E){if((O.length-E)%2===0){var P=O.toString("utf16le",E);if(P){var A=P.charCodeAt(P.length-1);if(A>=55296&&A<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=O[O.length-2],this.lastChar[1]=O[O.length-1],P.slice(0,-1)}return P}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=O[O.length-1],O.toString("utf16le",E,O.length-1)}l(m,"y"),e(m,"utf16Text");function y(O){var E=O&&O.length?this.write(O):"";if(this.lastNeed){var P=this.lastTotal-this.lastNeed;return E+this.lastChar.toString("utf16le",0,P)}return E}l(y,"m"),e(y,"utf16End");function w(O,E){var P=(O.length-E)%3;return P===0?O.toString("base64",E):(this.lastNeed=3-P,this.lastTotal=3,P===1?this.lastChar[0]=O[O.length-1]:(this.lastChar[0]=O[O.length-2],this.lastChar[1]=O[O.length-1]),O.toString("base64",E,O.length-P))}l(w,"g"),e(w,"base64Text");function _(O){var E=O&&O.length?this.write(O):"";return this.lastNeed?E+this.lastChar.toString("base64",0,3-this.lastNeed):E}l(_,"v"),e(_,"base64End");function S(O){return O.toString(this.encoding)}l(S,"_"),e(S,"simpleWrite");function T(O){return O&&O.length?this.write(O):""}return l(T,"b"),e(T,"simpleEnd"),lc}l(sT,"hW");function qE(){return Kb||(Kb=!0,Vb=e(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var o={},i=Symbol("test"),f=Object(i);if(typeof i=="string"||Object.prototype.toString.call(i)!=="[object Symbol]"||Object.prototype.toString.call(f)!=="[object Symbol]")return!1;var p=42;o[i]=p;for(i in o)return!1;if(typeof Object.keys=="function"&&Object.keys(o).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(o).length!==0)return!1;var a=Object.getOwnPropertySymbols(o);if(a.length!==1||a[0]!==i||!Object.prototype.propertyIsEnumerable.call(o,i))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var n=Object.getOwnPropertyDescriptor(o,i);if(n.value!==p||n.enumerable!==!0)return!1}return!0},"hasSymbols")),Vb}l(qE,"tR");function hP(){return Yb||(Yb=!0,Jb=Error),Jb}l(hP,"dW");function dP(){return Qb||(Qb=!0,Zb=EvalError),Zb}l(dP,"pW");function pP(){return e1||(e1=!0,Xb=RangeError),Xb}l(pP,"yW");function gP(){return r1||(r1=!0,t1=ReferenceError),t1}l(gP,"mW");function GE(){return i1||(i1=!0,n1=SyntaxError),n1}l(GE,"rR");function Ef(){return a1||(a1=!0,o1=TypeError),o1}l(Ef,"vc");function yP(){return l1||(l1=!0,s1=URIError),s1}l(yP,"gW");function mP(){if(f1)return uc;f1=!0;var o=typeof Symbol<"u"&&Symbol,i=qE();return uc=e(function(){return typeof o!="function"||typeof Symbol!="function"||typeof o("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:i()},"hasNativeSymbols"),uc}l(mP,"wW");function wP(){if(u1)return cc;u1=!0;var o={__proto__:null,foo:{}},i=Object;return cc=e(function(){return{__proto__:o}.foo===o.foo&&!(o instanceof i)},"hasProto"),cc}l(wP,"vW");function bP(){if(c1)return hc;c1=!0;var o="Function.prototype.bind called on incompatible ",i=Object.prototype.toString,f=Math.max,p="[object Function]",a=e(function(u,g){for(var h=[],d=0;d<u.length;d+=1)h[d]=u[d];for(var m=0;m<g.length;m+=1)h[m+u.length]=g[m];return h},"concatty2"),n=e(function(u,g){for(var h=[],d=g,m=0;d<u.length;d+=1,m+=1)h[m]=u[d];return h},"slicy2"),r=e(function(u,g){for(var h="",d=0;d<u.length;d+=1)h+=u[d],d+1<u.length&&(h+=g);return h},"joiny");return hc=e(function(u){var g=this;if(typeof g!="function"||i.apply(g)!==p)throw new TypeError(o+g);for(var h=n(arguments,1),d,m=e(function(){if(this instanceof d){var T=g.apply(this,a(h,arguments));return Object(T)===T?T:this}return g.apply(u,a(h,arguments))},"binder"),y=f(0,g.length-h.length),w=[],_=0;_<y;_++)w[_]="$"+_;if(d=Function("binder","return function ("+r(w,",")+"){ return binder.apply(this,arguments); }")(m),g.prototype){var S=e(function(){},"Empty2");S.prototype=g.prototype,d.prototype=new S,S.prototype=null}return d},"bind"),hc}l(bP,"bW");function Bd(){if(h1)return dc;h1=!0;var o=bP();return dc=Function.prototype.bind||o,dc}l(Bd,"Ug");function vP(){if(d1)return pc;d1=!0;var o=Function.prototype.call,i=Object.prototype.hasOwnProperty,f=Bd();return pc=f.call(o,i),pc}l(vP,"_W");function el(){if(p1)return gc;p1=!0;var o,i=hP(),f=dP(),p=pP(),a=gP(),n=GE(),r=Ef(),u=yP(),g=Function,h=e(function(Pe){try{return g('"use strict"; return ('+Pe+").constructor;")()}catch{}},"getEvalledConstructor"),d=Object.getOwnPropertyDescriptor;if(d)try{d({},"")}catch{d=null}var m=e(function(){throw new r},"throwTypeError"),y=d?function(){try{return arguments.callee,m}catch{try{return d(arguments,"callee").get}catch{return m}}}():m,w=mP()(),_=wP()(),S=Object.getPrototypeOf||(_?function(Pe){return Pe.__proto__}:null),T={},O=typeof Uint8Array>"u"||!S?o:S(Uint8Array),E={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?o:ArrayBuffer,"%ArrayIteratorPrototype%":w&&S?S([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":T,"%AsyncGenerator%":T,"%AsyncGeneratorFunction%":T,"%AsyncIteratorPrototype%":T,"%Atomics%":typeof Atomics>"u"?o:Atomics,"%BigInt%":typeof BigInt>"u"?o:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?o:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?o:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":f,"%Float32Array%":typeof Float32Array>"u"?o:Float32Array,"%Float64Array%":typeof Float64Array>"u"?o:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?o:FinalizationRegistry,"%Function%":g,"%GeneratorFunction%":T,"%Int8Array%":typeof Int8Array>"u"?o:Int8Array,"%Int16Array%":typeof Int16Array>"u"?o:Int16Array,"%Int32Array%":typeof Int32Array>"u"?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&S?S(S([][Symbol.iterator]())):o,"%JSON%":typeof JSON=="object"?JSON:o,"%Map%":typeof Map>"u"?o:Map,"%MapIteratorPrototype%":typeof Map>"u"||!w||!S?o:S(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?o:Promise,"%Proxy%":typeof Proxy>"u"?o:Proxy,"%RangeError%":p,"%ReferenceError%":a,"%Reflect%":typeof Reflect>"u"?o:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?o:Set,"%SetIteratorPrototype%":typeof Set>"u"||!w||!S?o:S(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&S?S(""[Symbol.iterator]()):o,"%Symbol%":w?Symbol:o,"%SyntaxError%":n,"%ThrowTypeError%":y,"%TypedArray%":O,"%TypeError%":r,"%Uint8Array%":typeof Uint8Array>"u"?o:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?o:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?o:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?o:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>"u"?o:WeakMap,"%WeakRef%":typeof WeakRef>"u"?o:WeakRef,"%WeakSet%":typeof WeakSet>"u"?o:WeakSet};if(S)try{null.error}catch(Pe){var P=S(S(Pe));E["%Error.prototype%"]=P}var A=e(l(function Pe(se){var Te;if(se==="%AsyncFunction%")Te=h("async function () {}");else if(se==="%GeneratorFunction%")Te=h("function* () {}");else if(se==="%AsyncGeneratorFunction%")Te=h("async function* () {}");else if(se==="%AsyncGenerator%"){var J=Pe("%AsyncGeneratorFunction%");J&&(Te=J.prototype)}else if(se==="%AsyncIteratorPrototype%"){var ue=Pe("%AsyncGenerator%");ue&&S&&(Te=S(ue.prototype))}return E[se]=Te,Te},"pe"),"doEval2"),x={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},U=Bd(),M=vP(),ee=U.call(Function.call,Array.prototype.concat),V=U.call(Function.apply,Array.prototype.splice),q=U.call(Function.call,String.prototype.replace),G=U.call(Function.call,String.prototype.slice),re=U.call(Function.call,RegExp.prototype.exec),ae=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,de=/\\(\\)?/g,we=e(function(Pe){var se=G(Pe,0,1),Te=G(Pe,-1);if(se==="%"&&Te!=="%")throw new n("invalid intrinsic syntax, expected closing `%`");if(Te==="%"&&se!=="%")throw new n("invalid intrinsic syntax, expected opening `%`");var J=[];return q(Pe,ae,function(ue,te,X,ye){J[J.length]=X?q(ye,de,"$1"):te||ue}),J},"stringToPath2"),xe=e(function(Pe,se){var Te=Pe,J;if(M(x,Te)&&(J=x[Te],Te="%"+J[0]+"%"),M(E,Te)){var ue=E[Te];if(ue===T&&(ue=A(Te)),typeof ue>"u"&&!se)throw new r("intrinsic "+Pe+" exists, but is not available. Please file an issue!");return{alias:J,name:Te,value:ue}}throw new n("intrinsic "+Pe+" does not exist!")},"getBaseIntrinsic2");return gc=e(function(Pe,se){if(typeof Pe!="string"||Pe.length===0)throw new r("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof se!="boolean")throw new r('"allowMissing" argument must be a boolean');if(re(/^%?[^%]*%?$/,Pe)===null)throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Te=we(Pe),J=Te.length>0?Te[0]:"",ue=xe("%"+J+"%",se),te=ue.name,X=ue.value,ye=!1,Re=ue.alias;Re&&(J=Re[0],V(Te,ee([0,1],Re)));for(var De=1,Y=!0;De<Te.length;De+=1){var H=Te[De],Q=G(H,0,1),fe=G(H,-1);if((Q==='"'||Q==="'"||Q==="`"||fe==='"'||fe==="'"||fe==="`")&&Q!==fe)throw new n("property names with quotes must have matching quotes");if((H==="constructor"||!Y)&&(ye=!0),J+="."+H,te="%"+J+"%",M(E,te))X=E[te];else if(X!=null){if(!(H in X)){if(!se)throw new r("base intrinsic for "+Pe+" exists, but the property is not available.");return}if(d&&De+1>=Te.length){var ve=d(X,H);Y=!!ve,Y&&"get"in ve&&!("originalValue"in ve.get)?X=ve.get:X=X[H]}else Y=M(X,H),X=X[H];Y&&!ye&&(E[te]=X)}}return X},"GetIntrinsic"),gc}l(el,"Gl");function xd(){if(g1)return yc;g1=!0;var o=el(),i=o("%Object.defineProperty%",!0)||!1;if(i)try{i({},"a",{value:1})}catch{i=!1}return yc=i,yc}l(xd,"jg");function Id(){if(y1)return mc;y1=!0;var o=el(),i=o("%Object.getOwnPropertyDescriptor%",!0);if(i)try{i([],"length")}catch{i=null}return mc=i,mc}l(Id,"Hg");function _P(){if(m1)return wc;m1=!0;var o=xd(),i=GE(),f=Ef(),p=Id();return wc=e(function(a,n,r){if(!a||typeof a!="object"&&typeof a!="function")throw new f("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new f("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new f("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new f("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new f("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new f("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,g=arguments.length>4?arguments[4]:null,h=arguments.length>5?arguments[5]:null,d=arguments.length>6?arguments[6]:!1,m=!!p&&p(a,n);if(o)o(a,n,{configurable:h===null&&m?m.configurable:!h,enumerable:u===null&&m?m.enumerable:!u,value:r,writable:g===null&&m?m.writable:!g});else if(d||!u&&!g&&!h)a[n]=r;else throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},"defineDataProperty"),wc}l(_P,"EW");function EP(){if(w1)return bc;w1=!0;var o=xd(),i=e(function(){return!!o},"hasPropertyDescriptors2");return i.hasArrayLengthDefineBug=e(function(){if(!o)return null;try{return o([],"length",{value:1}).length!==1}catch{return!0}},"hasArrayLengthDefineBug"),bc=i,bc}l(EP,"SW");function SP(){if(b1)return vc;b1=!0;var o=el(),i=_P(),f=EP()(),p=Id(),a=Ef(),n=o("%Math.floor%");return vc=e(function(r,u){if(typeof r!="function")throw new a("`fn` is not a function");if(typeof u!="number"||u<0||u>4294967295||n(u)!==u)throw new a("`length` must be a positive 32-bit integer");var g=arguments.length>2&&!!arguments[2],h=!0,d=!0;if("length"in r&&p){var m=p(r,"length");m&&!m.configurable&&(h=!1),m&&!m.writable&&(d=!1)}return(h||d||!g)&&(f?i(r,"length",u,!0,!0):i(r,"length",u)),r},"setFunctionLength"),vc}l(SP,"AW");function VE(){if(v1)return Os;v1=!0;var o=Bd(),i=el(),f=SP(),p=Ef(),a=i("%Function.prototype.apply%"),n=i("%Function.prototype.call%"),r=i("%Reflect.apply%",!0)||o.call(n,a),u=xd(),g=i("%Math.max%");Os=e(function(d){if(typeof d!="function")throw new p("a function is required");var m=r(o,n,arguments);return f(m,1+g(0,d.length-(arguments.length-1)),!0)},"callBind");var h=e(function(){return r(o,a,arguments)},"applyBind2");return u?u(Os,"apply",{value:h}):Os.apply=h,Os}l(VE,"nR");function KE(){if(_1)return _c;_1=!0;var o=el(),i=VE(),f=i(o("String.prototype.indexOf"));return _c=e(function(p,a){var n=o(p,!!a);return typeof n=="function"&&f(p,".prototype.")>-1?i(n):n},"callBoundIntrinsic"),_c}l(KE,"iR");function AP(){return E1||(E1=!0,typeof Object.create=="function"?Ec=e(function(o,i){i&&(o.super_=i,o.prototype=Object.create(i.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}))},"inherits2"):Ec=e(function(o,i){if(i){o.super_=i;var f=e(function(){},"TempCtor");f.prototype=i.prototype,o.prototype=new f,o.prototype.constructor=o}},"inherits2")),Ec}l(AP,"RW");function Pd(){if(S1)return Sc;S1=!0;var o=qE();return Sc=e(function(){return o()&&!!Symbol.toStringTag},"hasToStringTagShams"),Sc}l(Pd,"Wg");function RP(){if(A1)return Ac;A1=!0;var o=Pd()(),i=KE(),f=i("Object.prototype.toString"),p=e(function(r){return o&&r&&typeof r=="object"&&Symbol.toStringTag in r?!1:f(r)==="[object Arguments]"},"isArguments"),a=e(function(r){return p(r)?!0:r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&f(r)!=="[object Array]"&&f(r.callee)==="[object Function]"},"isArguments"),n=function(){return p(arguments)}();return p.isLegacyArguments=a,Ac=n?p:a,Ac}l(RP,"TW");function OP(){if(R1)return Rc;R1=!0;var o=Object.prototype.toString,i=Function.prototype.toString,f=/^\s*(?:function)?\*/,p=Pd()(),a=Object.getPrototypeOf,n=e(function(){if(!p)return!1;try{return Function("return function*() {}")()}catch{}},"getGeneratorFunc"),r;return Rc=e(function(u){if(typeof u!="function")return!1;if(f.test(i.call(u)))return!0;if(!p){var g=o.call(u);return g==="[object GeneratorFunction]"}if(!a)return!1;if(typeof r>"u"){var h=n();r=h?a(h):!1}return a(u)===r},"isGeneratorFunction"),Rc}l(OP,"FW");function kP(){if(O1)return Oc;O1=!0;var o=Function.prototype.toString,i=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,f,p;if(typeof i=="function"&&typeof Object.defineProperty=="function")try{f=Object.defineProperty({},"length",{get:e(function(){throw p},"get")}),p={},i(function(){throw 42},null,f)}catch(E){E!==p&&(i=null)}else i=null;var a=/^\s*class\b/,n=e(function(E){try{var P=o.call(E);return a.test(P)}catch{return!1}},"isES6ClassFunction"),r=e(function(E){try{return n(E)?!1:(o.call(E),!0)}catch{return!1}},"tryFunctionToStr"),u=Object.prototype.toString,g="[object Object]",h="[object Function]",d="[object GeneratorFunction]",m="[object HTMLAllCollection]",y="[object HTML document.all class]",w="[object HTMLCollection]",_=typeof Symbol=="function"&&!!Symbol.toStringTag,S=!(0 in[,]),T=e(function(){return!1},"isDocumentDotAll");if(typeof document=="object"){var O=document.all;u.call(O)===u.call(document.all)&&(T=e(function(E){if((S||!E)&&(typeof E>"u"||typeof E=="object"))try{var P=u.call(E);return(P===m||P===y||P===w||P===g)&&E("")==null}catch{}return!1},"isDocumentDotAll"))}return Oc=e(i?function(E){if(T(E))return!0;if(!E||typeof E!="function"&&typeof E!="object")return!1;try{i(E,null,f)}catch(P){if(P!==p)return!1}return!n(E)&&r(E)}:function(E){if(T(E))return!0;if(!E||typeof E!="function"&&typeof E!="object")return!1;if(_)return r(E);if(n(E))return!1;var P=u.call(E);return P!==h&&P!==d&&!/^\[object HTML/.test(P)?!1:r(E)},"isCallable"),Oc}l(kP,"xW");function TP(){if(k1)return kc;k1=!0;var o=kP(),i=Object.prototype.toString,f=Object.prototype.hasOwnProperty,p=e(function(u,g,h){for(var d=0,m=u.length;d<m;d++)f.call(u,d)&&(h==null?g(u[d],d,u):g.call(h,u[d],d,u))},"forEachArray2"),a=e(function(u,g,h){for(var d=0,m=u.length;d<m;d++)h==null?g(u.charAt(d),d,u):g.call(h,u.charAt(d),d,u)},"forEachString2"),n=e(function(u,g,h){for(var d in u)f.call(u,d)&&(h==null?g(u[d],d,u):g.call(h,u[d],d,u))},"forEachObject2"),r=e(function(u,g,h){if(!o(g))throw new TypeError("iterator must be a function");var d;arguments.length>=3&&(d=h),i.call(u)==="[object Array]"?p(u,g,d):typeof u=="string"?a(u,g,d):n(u,g,d)},"forEach2");return kc=r,kc}l(TP,"OW");function FP(){return F1||(F1=!0,T1=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),T1}l(FP,"PW");function BP(){if(B1)return Tc;B1=!0;var o=FP(),i=typeof globalThis>"u"?NP:globalThis;return Tc=e(function(){for(var f=[],p=0;p<o.length;p++)typeof i[o[p]]=="function"&&(f[f.length]=o[p]);return f},"availableTypedArrays"),Tc}l(BP,"kW");function JE(){if(x1)return Fc;x1=!0;var o=TP(),i=BP(),f=VE(),p=KE(),a=Id(),n=p("Object.prototype.toString"),r=Pd()(),u=typeof globalThis>"u"?DP:globalThis,g=i(),h=p("String.prototype.slice"),d=Object.getPrototypeOf,m=p("Array.prototype.indexOf",!0)||e(function(S,T){for(var O=0;O<S.length;O+=1)if(S[O]===T)return O;return-1},"indexOf"),y={__proto__:null};r&&a&&d?o(g,function(S){var T=new u[S];if(Symbol.toStringTag in T){var O=d(T),E=a(O,Symbol.toStringTag);if(!E){var P=d(O);E=a(P,Symbol.toStringTag)}y["$"+S]=f(E.get)}}):o(g,function(S){var T=new u[S],O=T.slice||T.set;O&&(y["$"+S]=f(O))});var w=e(function(S){var T=!1;return o(y,function(O,E){if(!T)try{"$"+O(S)===E&&(T=h(E,1))}catch{}}),T},"tryAllTypedArrays"),_=e(function(S){var T=!1;return o(y,function(O,E){if(!T)try{O(S),T=h(E,1)}catch{}}),T},"tryAllSlices");return Fc=e(function(S){if(!S||typeof S!="object")return!1;if(!r){var T=h(n(S),8,-1);return m(g,T)>-1?T:T!=="Object"?!1:_(S)}return a?w(S):null},"whichTypedArray"),Fc}l(JE,"oR");function xP(){if(I1)return Bc;I1=!0;var o=JE();return Bc=e(function(i){return!!o(i)},"isTypedArray"),Bc}l(xP,"CW");function IP(){if(P1)return St;P1=!0;var o=RP(),i=OP(),f=JE(),p=xP();function a(be){return be.call.bind(be)}l(a,"a"),e(a,"uncurryThis");var n=typeof BigInt<"u",r=typeof Symbol<"u",u=a(Object.prototype.toString),g=a(Number.prototype.valueOf),h=a(String.prototype.valueOf),d=a(Boolean.prototype.valueOf);if(n)var m=a(BigInt.prototype.valueOf);if(r)var y=a(Symbol.prototype.valueOf);function w(be,ge){if(typeof be!="object")return!1;try{return ge(be),!0}catch{return!1}}l(w,"g"),e(w,"checkBoxedPrimitive"),St.isArgumentsObject=o,St.isGeneratorFunction=i,St.isTypedArray=p;function _(be){return typeof Promise<"u"&&be instanceof Promise||be!==null&&typeof be=="object"&&typeof be.then=="function"&&typeof be.catch=="function"}l(_,"v"),e(_,"isPromise"),St.isPromise=_;function S(be){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(be):p(be)||te(be)}l(S,"_"),e(S,"isArrayBufferView"),St.isArrayBufferView=S;function T(be){return f(be)==="Uint8Array"}l(T,"b"),e(T,"isUint8Array"),St.isUint8Array=T;function O(be){return f(be)==="Uint8ClampedArray"}l(O,"E"),e(O,"isUint8ClampedArray"),St.isUint8ClampedArray=O;function E(be){return f(be)==="Uint16Array"}l(E,"R"),e(E,"isUint16Array"),St.isUint16Array=E;function P(be){return f(be)==="Uint32Array"}l(P,"T"),e(P,"isUint32Array"),St.isUint32Array=P;function A(be){return f(be)==="Int8Array"}l(A,"F"),e(A,"isInt8Array"),St.isInt8Array=A;function x(be){return f(be)==="Int16Array"}l(x,"S"),e(x,"isInt16Array"),St.isInt16Array=x;function U(be){return f(be)==="Int32Array"}l(U,"B"),e(U,"isInt32Array"),St.isInt32Array=U;function M(be){return f(be)==="Float32Array"}l(M,"P"),e(M,"isFloat32Array"),St.isFloat32Array=M;function ee(be){return f(be)==="Float64Array"}l(ee,"N"),e(ee,"isFloat64Array"),St.isFloat64Array=ee;function V(be){return f(be)==="BigInt64Array"}l(V,"L"),e(V,"isBigInt64Array"),St.isBigInt64Array=V;function q(be){return f(be)==="BigUint64Array"}l(q,"C"),e(q,"isBigUint64Array"),St.isBigUint64Array=q;function G(be){return u(be)==="[object Map]"}l(G,"j"),e(G,"isMapToString"),G.working=typeof Map<"u"&&G(new Map);function re(be){return typeof Map>"u"?!1:G.working?G(be):be instanceof Map}l(re,"q"),e(re,"isMap"),St.isMap=re;function ae(be){return u(be)==="[object Set]"}l(ae,"Z"),e(ae,"isSetToString"),ae.working=typeof Set<"u"&&ae(new Set);function de(be){return typeof Set>"u"?!1:ae.working?ae(be):be instanceof Set}l(de,"K"),e(de,"isSet"),St.isSet=de;function we(be){return u(be)==="[object WeakMap]"}l(we,"se"),e(we,"isWeakMapToString"),we.working=typeof WeakMap<"u"&&we(new WeakMap);function xe(be){return typeof WeakMap>"u"?!1:we.working?we(be):be instanceof WeakMap}l(xe,"_e"),e(xe,"isWeakMap"),St.isWeakMap=xe;function Pe(be){return u(be)==="[object WeakSet]"}l(Pe,"pe"),e(Pe,"isWeakSetToString"),Pe.working=typeof WeakSet<"u"&&Pe(new WeakSet);function se(be){return Pe(be)}l(se,"Q"),e(se,"isWeakSet"),St.isWeakSet=se;function Te(be){return u(be)==="[object ArrayBuffer]"}l(Te,"he"),e(Te,"isArrayBufferToString"),Te.working=typeof ArrayBuffer<"u"&&Te(new ArrayBuffer);function J(be){return typeof ArrayBuffer>"u"?!1:Te.working?Te(be):be instanceof ArrayBuffer}l(J,"U"),e(J,"isArrayBuffer"),St.isArrayBuffer=J;function ue(be){return u(be)==="[object DataView]"}l(ue,"J"),e(ue,"isDataViewToString"),ue.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&ue(new DataView(new ArrayBuffer(1),0,1));function te(be){return typeof DataView>"u"?!1:ue.working?ue(be):be instanceof DataView}l(te,"z"),e(te,"isDataView"),St.isDataView=te;var X=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function ye(be){return u(be)==="[object SharedArrayBuffer]"}l(ye,"G"),e(ye,"isSharedArrayBufferToString");function Re(be){return typeof X>"u"?!1:(typeof ye.working>"u"&&(ye.working=ye(new X)),ye.working?ye(be):be instanceof X)}l(Re,"fe"),e(Re,"isSharedArrayBuffer"),St.isSharedArrayBuffer=Re;function De(be){return u(be)==="[object AsyncFunction]"}l(De,"be"),e(De,"isAsyncFunction"),St.isAsyncFunction=De;function Y(be){return u(be)==="[object Map Iterator]"}l(Y,"D"),e(Y,"isMapIterator"),St.isMapIterator=Y;function H(be){return u(be)==="[object Set Iterator]"}l(H,"$"),e(H,"isSetIterator"),St.isSetIterator=H;function Q(be){return u(be)==="[object Generator]"}l(Q,"H"),e(Q,"isGeneratorObject"),St.isGeneratorObject=Q;function fe(be){return u(be)==="[object WebAssembly.Module]"}l(fe,"te"),e(fe,"isWebAssemblyCompiledModule"),St.isWebAssemblyCompiledModule=fe;function ve(be){return w(be,g)}l(ve,"oe"),e(ve,"isNumberObject"),St.isNumberObject=ve;function N(be){return w(be,h)}l(N,"I"),e(N,"isStringObject"),St.isStringObject=N;function I(be){return w(be,d)}l(I,"x"),e(I,"isBooleanObject"),St.isBooleanObject=I;function D(be){return n&&w(be,m)}l(D,"M"),e(D,"isBigIntObject"),St.isBigIntObject=D;function z(be){return r&&w(be,y)}l(z,"Y"),e(z,"isSymbolObject"),St.isSymbolObject=z;function Ee(be){return ve(be)||N(be)||I(be)||D(be)||z(be)}l(Ee,"ue"),e(Ee,"isBoxedPrimitive"),St.isBoxedPrimitive=Ee;function Oe(be){return typeof Uint8Array<"u"&&(J(be)||Re(be))}return l(Oe,"le"),e(Oe,"isAnyArrayBuffer"),St.isAnyArrayBuffer=Oe,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(be){Object.defineProperty(St,be,{enumerable:!1,value:e(function(){throw new Error(be+" is not supported in userland")},"value")})}),St}l(IP,"LW");function PP(){return C1||(C1=!0,j1=e(function(o){return o&&typeof o=="object"&&typeof o.copy=="function"&&typeof o.fill=="function"&&typeof o.readUInt8=="function"},"isBuffer2")),j1}l(PP,"NW");function lT(){if(L1)return At;L1=!0;var o=Hn,i=Object.getOwnPropertyDescriptors||e(function(te){for(var X=Object.keys(te),ye={},Re=0;Re<X.length;Re++)ye[X[Re]]=Object.getOwnPropertyDescriptor(te,X[Re]);return ye},"getOwnPropertyDescriptors2"),f=/%[sdj%]/g;At.format=function(te){if(!x(te)){for(var X=[],ye=0;ye<arguments.length;ye++)X.push(r(arguments[ye]));return X.join(" ")}for(var ye=1,Re=arguments,De=Re.length,Y=String(te).replace(f,function(fe){if(fe==="%%")return"%";if(ye>=De)return fe;switch(fe){case"%s":return String(Re[ye++]);case"%d":return Number(Re[ye++]);case"%j":try{return JSON.stringify(Re[ye++])}catch{return"[Circular]"}default:return fe}}),H=Re[ye];ye<De;H=Re[++ye])E(H)||!V(H)?Y+=" "+H:Y+=" "+r(H);return Y},At.deprecate=function(te,X){if(typeof o<"u"&&o.noDeprecation===!0)return te;if(typeof o>"u")return function(){return At.deprecate(te,X).apply(this||ks,arguments)};var ye=!1;function Re(){if(!ye){if(o.throwDeprecation)throw new Error(X);o.traceDeprecation?console.trace(X):console.error(X),ye=!0}return te.apply(this||ks,arguments)}return l(Re,"fe"),e(Re,"deprecated"),Re};var p={},a=/^$/;if(o.env.NODE_DEBUG){var n=o.env.NODE_DEBUG;n=n.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),a=new RegExp("^"+n+"$","i")}At.debuglog=function(te){if(te=te.toUpperCase(),!p[te])if(a.test(te)){var X=o.pid;p[te]=function(){var ye=At.format.apply(At,arguments);console.error("%s %d: %s",te,X,ye)}}else p[te]=function(){};return p[te]};function r(te,X){var ye={seen:[],stylize:g};return arguments.length>=3&&(ye.depth=arguments[2]),arguments.length>=4&&(ye.colors=arguments[3]),O(X)?ye.showHidden=X:X&&At._extend(ye,X),M(ye.showHidden)&&(ye.showHidden=!1),M(ye.depth)&&(ye.depth=2),M(ye.colors)&&(ye.colors=!1),M(ye.customInspect)&&(ye.customInspect=!0),ye.colors&&(ye.stylize=u),d(ye,te,ye.depth)}l(r,"i"),e(r,"inspect2"),At.inspect=r,r.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},r.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function u(te,X){var ye=r.styles[X];return ye?"\x1B["+r.colors[ye][0]+"m"+te+"\x1B["+r.colors[ye][1]+"m":te}l(u,"f"),e(u,"stylizeWithColor");function g(te,X){return te}l(g,"h"),e(g,"stylizeNoColor");function h(te){var X={};return te.forEach(function(ye,Re){X[ye]=!0}),X}l(h,"c"),e(h,"arrayToHash");function d(te,X,ye){if(te.customInspect&&X&&re(X.inspect)&&X.inspect!==At.inspect&&!(X.constructor&&X.constructor.prototype===X)){var Re=X.inspect(ye,te);return x(Re)||(Re=d(te,Re,ye)),Re}var De=m(te,X);if(De)return De;var Y=Object.keys(X),H=h(Y);if(te.showHidden&&(Y=Object.getOwnPropertyNames(X)),G(X)&&(Y.indexOf("message")>=0||Y.indexOf("description")>=0))return y(X);if(Y.length===0){if(re(X)){var Q=X.name?": "+X.name:"";return te.stylize("[Function"+Q+"]","special")}if(ee(X))return te.stylize(RegExp.prototype.toString.call(X),"regexp");if(q(X))return te.stylize(Date.prototype.toString.call(X),"date");if(G(X))return y(X)}var fe="",ve=!1,N=["{","}"];if(T(X)&&(ve=!0,N=["[","]"]),re(X)){var I=X.name?": "+X.name:"";fe=" [Function"+I+"]"}if(ee(X)&&(fe=" "+RegExp.prototype.toString.call(X)),q(X)&&(fe=" "+Date.prototype.toUTCString.call(X)),G(X)&&(fe=" "+y(X)),Y.length===0&&(!ve||X.length==0))return N[0]+fe+N[1];if(ye<0)return ee(X)?te.stylize(RegExp.prototype.toString.call(X),"regexp"):te.stylize("[Object]","special");te.seen.push(X);var D;return ve?D=w(te,X,ye,H,Y):D=Y.map(function(z){return _(te,X,ye,H,z,ve)}),te.seen.pop(),S(D,fe,N)}l(d,"d"),e(d,"formatValue");function m(te,X){if(M(X))return te.stylize("undefined","undefined");if(x(X)){var ye="'"+JSON.stringify(X).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return te.stylize(ye,"string")}if(A(X))return te.stylize(""+X,"number");if(O(X))return te.stylize(""+X,"boolean");if(E(X))return te.stylize("null","null")}l(m,"y"),e(m,"formatPrimitive");function y(te){return"["+Error.prototype.toString.call(te)+"]"}l(y,"m"),e(y,"formatError");function w(te,X,ye,Re,De){for(var Y=[],H=0,Q=X.length;H<Q;++H)se(X,String(H))?Y.push(_(te,X,ye,Re,String(H),!0)):Y.push("");return De.forEach(function(fe){fe.match(/^\d+$/)||Y.push(_(te,X,ye,Re,fe,!0))}),Y}l(w,"g"),e(w,"formatArray");function _(te,X,ye,Re,De,Y){var H,Q,fe;if(fe=Object.getOwnPropertyDescriptor(X,De)||{value:X[De]},fe.get?fe.set?Q=te.stylize("[Getter/Setter]","special"):Q=te.stylize("[Getter]","special"):fe.set&&(Q=te.stylize("[Setter]","special")),se(Re,De)||(H="["+De+"]"),Q||(te.seen.indexOf(fe.value)<0?(E(ye)?Q=d(te,fe.value,null):Q=d(te,fe.value,ye-1),Q.indexOf(`
|
|
9
|
+
`)>-1&&(Y?Q=Q.split(`
|
|
10
|
+
`).map(function(ve){return" "+ve}).join(`
|
|
11
|
+
`).slice(2):Q=`
|
|
12
|
+
`+Q.split(`
|
|
13
|
+
`).map(function(ve){return" "+ve}).join(`
|
|
14
|
+
`))):Q=te.stylize("[Circular]","special")),M(H)){if(Y&&De.match(/^\d+$/))return Q;H=JSON.stringify(""+De),H.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(H=H.slice(1,-1),H=te.stylize(H,"name")):(H=H.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),H=te.stylize(H,"string"))}return H+": "+Q}l(_,"v"),e(_,"formatProperty");function S(te,X,ye){var Re=te.reduce(function(De,Y){return Y.indexOf(`
|
|
15
|
+
`)>=0,De+Y.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Re>60?ye[0]+(X===""?"":X+`
|
|
16
|
+
`)+" "+te.join(`,
|
|
17
|
+
`)+" "+ye[1]:ye[0]+X+" "+te.join(", ")+" "+ye[1]}l(S,"_"),e(S,"reduceToSingleString"),At.types=IP();function T(te){return Array.isArray(te)}l(T,"b"),e(T,"isArray2"),At.isArray=T;function O(te){return typeof te=="boolean"}l(O,"E"),e(O,"isBoolean2"),At.isBoolean=O;function E(te){return te===null}l(E,"R"),e(E,"isNull2"),At.isNull=E;function P(te){return te==null}l(P,"T"),e(P,"isNullOrUndefined2"),At.isNullOrUndefined=P;function A(te){return typeof te=="number"}l(A,"F"),e(A,"isNumber2"),At.isNumber=A;function x(te){return typeof te=="string"}l(x,"S"),e(x,"isString2"),At.isString=x;function U(te){return typeof te=="symbol"}l(U,"B"),e(U,"isSymbol2"),At.isSymbol=U;function M(te){return te===void 0}l(M,"P"),e(M,"isUndefined2"),At.isUndefined=M;function ee(te){return V(te)&&de(te)==="[object RegExp]"}l(ee,"N"),e(ee,"isRegExp2"),At.isRegExp=ee,At.types.isRegExp=ee;function V(te){return typeof te=="object"&&te!==null}l(V,"L"),e(V,"isObject2"),At.isObject=V;function q(te){return V(te)&&de(te)==="[object Date]"}l(q,"C"),e(q,"isDate2"),At.isDate=q,At.types.isDate=q;function G(te){return V(te)&&(de(te)==="[object Error]"||te instanceof Error)}l(G,"j"),e(G,"isError2"),At.isError=G,At.types.isNativeError=G;function re(te){return typeof te=="function"}l(re,"q"),e(re,"isFunction2"),At.isFunction=re;function ae(te){return te===null||typeof te=="boolean"||typeof te=="number"||typeof te=="string"||typeof te=="symbol"||typeof te>"u"}l(ae,"Z"),e(ae,"isPrimitive2"),At.isPrimitive=ae,At.isBuffer=PP();function de(te){return Object.prototype.toString.call(te)}l(de,"K"),e(de,"objectToString");function we(te){return te<10?"0"+te.toString(10):te.toString(10)}l(we,"se"),e(we,"pad");var xe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Pe(){var te=new Date,X=[we(te.getHours()),we(te.getMinutes()),we(te.getSeconds())].join(":");return[te.getDate(),xe[te.getMonth()],X].join(" ")}l(Pe,"pe"),e(Pe,"timestamp"),At.log=function(){console.log("%s - %s",Pe(),At.format.apply(At,arguments))},At.inherits=AP(),At._extend=function(te,X){if(!X||!V(X))return te;for(var ye=Object.keys(X),Re=ye.length;Re--;)te[ye[Re]]=X[ye[Re]];return te};function se(te,X){return Object.prototype.hasOwnProperty.call(te,X)}l(se,"Q"),e(se,"hasOwnProperty");var Te=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;At.promisify=e(function(te){if(typeof te!="function")throw new TypeError('The "original" argument must be of type Function');if(Te&&te[Te]){if(X=te[Te],typeof X!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(X,Te,{value:X,enumerable:!1,writable:!1,configurable:!0}),X}function X(){for(var ye,Re,De=new Promise(function(Q,fe){ye=Q,Re=fe}),Y=[],H=0;H<arguments.length;H++)Y.push(arguments[H]);Y.push(function(Q,fe){Q?Re(Q):ye(fe)});try{te.apply(this||ks,Y)}catch(Q){Re(Q)}return De}return l(X,"G"),e(X,"fn"),Object.setPrototypeOf(X,Object.getPrototypeOf(te)),Te&&Object.defineProperty(X,Te,{value:X,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(X,i(te))},"promisify2"),At.promisify.custom=Te;function J(te,X){if(!te){var ye=new Error("Promise was rejected with a falsy value");ye.reason=te,te=ye}return X(te)}l(J,"U"),e(J,"callbackifyOnRejected");function ue(te){if(typeof te!="function")throw new TypeError('The "original" argument must be of type Function');function X(){for(var ye=[],Re=0;Re<arguments.length;Re++)ye.push(arguments[Re]);var De=ye.pop();if(typeof De!="function")throw new TypeError("The last argument must be of type Function");var Y=this||ks,H=e(function(){return De.apply(Y,arguments)},"cb");te.apply(this||ks,ye).then(function(Q){o.nextTick(H.bind(null,null,Q))},function(Q){o.nextTick(J.bind(null,Q,H))})}return l(X,"V"),e(X,"callbackified"),Object.setPrototypeOf(X,Object.getPrototypeOf(te)),Object.defineProperties(X,i(te)),X}return l(ue,"J"),e(ue,"callbackify2"),At.callbackify=ue,At}l(lT,"DW");function Xt(){return D1||(D1=!0,N1={ArrayIsArray(o){return Array.isArray(o)},ArrayPrototypeIncludes(o,i){return o.includes(i)},ArrayPrototypeIndexOf(o,i){return o.indexOf(i)},ArrayPrototypeJoin(o,i){return o.join(i)},ArrayPrototypeMap(o,i){return o.map(i)},ArrayPrototypePop(o,i){return o.pop(i)},ArrayPrototypePush(o,i){return o.push(i)},ArrayPrototypeSlice(o,i,f){return o.slice(i,f)},Error,FunctionPrototypeCall(o,i,...f){return o.call(i,...f)},FunctionPrototypeSymbolHasInstance(o,i){return Function.prototype[Symbol.hasInstance].call(o,i)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(o,i){return Object.defineProperties(o,i)},ObjectDefineProperty(o,i,f){return Object.defineProperty(o,i,f)},ObjectGetOwnPropertyDescriptor(o,i){return Object.getOwnPropertyDescriptor(o,i)},ObjectKeys(o){return Object.keys(o)},ObjectSetPrototypeOf(o,i){return Object.setPrototypeOf(o,i)},Promise,PromisePrototypeCatch(o,i){return o.catch(i)},PromisePrototypeThen(o,i,f){return o.then(i,f)},PromiseReject(o){return Promise.reject(o)},PromiseResolve(o){return Promise.resolve(o)},ReflectApply:Reflect.apply,RegExpPrototypeTest(o,i){return o.test(i)},SafeSet:Set,String,StringPrototypeSlice(o,i,f){return o.slice(i,f)},StringPrototypeToLowerCase(o){return o.toLowerCase()},StringPrototypeToUpperCase(o){return o.toUpperCase()},StringPrototypeTrim(o){return o.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(o,i,f){return o.set(i,f)},Boolean,Uint8Array}),N1}l(Xt,"_t");function Ys(){if(U1)return Ts;U1=!0;let{AbortController:o,AbortSignal:i}=typeof self<"u"?self:typeof window<"u"?window:void 0;return Ts=o,Ts.AbortSignal=i,Ts.default=o,Ts}l(Ys,"Vl");function Or(){var y;if(M1)return Ll;M1=!0;let o=_i(),{kResistStopPropagation:i,SymbolDispose:f}=Xt(),p=globalThis.AbortSignal||Ys().AbortSignal,a=globalThis.AbortController||Ys().AbortController,n=Object.getPrototypeOf(async function(){}).constructor,r=globalThis.Blob||o.Blob,u=e(typeof r<"u"?function(w){return w instanceof r}:function(w){return!1},"isBlob2"),g=e((w,_)=>{if(w!==void 0&&(w===null||typeof w!="object"||!("aborted"in w)))throw new ERR_INVALID_ARG_TYPE(_,"AbortSignal",w)},"validateAbortSignal"),h=e((w,_)=>{if(typeof w!="function")throw new ERR_INVALID_ARG_TYPE(_,"Function",w)},"validateFunction"),d=(y=class extends Error{constructor(_){if(!Array.isArray(_))throw new TypeError(`Expected input to be an Array, got ${typeof _}`);let S="";for(let T=0;T<_.length;T++)S+=` ${_[T].stack}
|
|
18
|
+
`;super(S),this.name="AggregateError",this.errors=_}},l(y,"y"),y);return e(d,"AggregateError2"),Ll={AggregateError:d,kEmptyObject:Object.freeze({}),once(w){let _=!1;return function(...S){_||(_=!0,w.apply(this,S))}},createDeferredPromise:e(function(){let w,_;return{promise:new Promise((S,T)=>{w=S,_=T}),resolve:w,reject:_}},"createDeferredPromise"),promisify(w){return new Promise((_,S)=>{w((T,...O)=>T?S(T):_(...O))})},debuglog(){return function(){}},format(w,..._){return w.replace(/%([sdifj])/g,function(...[S,T]){let O=_.shift();return T==="f"?O.toFixed(6):T==="j"?JSON.stringify(O):T==="s"&&typeof O=="object"?`${O.constructor!==Object?O.constructor.name:""} {}`.trim():O.toString()})},inspect(w){switch(typeof w){case"string":if(w.includes("'"))if(w.includes('"')){if(!w.includes("`")&&!w.includes("${"))return`\`${w}\``}else return`"${w}"`;return`'${w}'`;case"number":return isNaN(w)?"NaN":Object.is(w,-0)?String(w):w;case"bigint":return`${String(w)}n`;case"boolean":case"undefined":return String(w);case"object":return"{}"}},types:{isAsyncFunction(w){return w instanceof n},isArrayBufferView(w){return ArrayBuffer.isView(w)}},isBlob:u,deprecate(w,_){return w},addAbortListener:mi.addAbortListener||e(function(w,_){if(w===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",w);g(w,"signal"),h(_,"listener");let S;return w.aborted?queueMicrotask(()=>_()):(w.addEventListener("abort",_,{__proto__:null,once:!0,[i]:!0}),S=e(()=>{w.removeEventListener("abort",_)},"removeEventListener")),{__proto__:null,[f](){var T;(T=S)===null||T===void 0||T()}}},"addAbortListener"),AbortSignalAny:p.any||e(function(w){if(w.length===1)return w[0];let _=new a,S=e(()=>_.abort(),"abort2");return w.forEach(T=>{g(T,"signals"),T.addEventListener("abort",S,{once:!0})}),_.signal.addEventListener("abort",()=>{w.forEach(T=>T.removeEventListener("abort",S))},{once:!0}),_.signal},"AbortSignalAny")},Ll.promisify.custom=Symbol.for("nodejs.util.promisify.custom"),Ll}l(Or,"ar");function Lr(){var O;if($1)return xc;$1=!0;let{format:o,inspect:i,AggregateError:f}=Or(),p=globalThis.AggregateError||f,a=Symbol("kIsNodeError"),n=["string","function","number","object","Function","Object","boolean","bigint","symbol"],r=/^([A-Z][a-z0-9]*)+$/,u="__node_internal_",g={};function h(E,P){if(!E)throw new g.ERR_INTERNAL_ASSERTION(P)}l(h,"c"),e(h,"assert2");function d(E){let P="",A=E.length,x=E[0]==="-"?1:0;for(;A>=x+4;A-=3)P=`_${E.slice(A-3,A)}${P}`;return`${E.slice(0,A)}${P}`}l(d,"d"),e(d,"addNumericalSeparator");function m(E,P,A){if(typeof P=="function")return h(P.length<=A.length,`Code: ${E}; The provided arguments length (${A.length}) does not match the required ones (${P.length}).`),P(...A);let x=(P.match(/%[dfijoOs]/g)||[]).length;return h(x===A.length,`Code: ${E}; The provided arguments length (${A.length}) does not match the required ones (${x}).`),A.length===0?P:o(P,...A)}l(m,"y"),e(m,"getMessage");function y(E,P,A){var M;A||(A=Error);let x=(M=class extends A{constructor(...V){super(m(E,P,V))}toString(){return`${this.name} [${E}]: ${this.message}`}},l(M,"S"),M);e(x,"NodeError");let U=x;Object.defineProperties(U.prototype,{name:{value:A.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${E}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),U.prototype.code=E,U.prototype[a]=!0,g[E]=U}l(y,"m"),e(y,"E");function w(E){let P=u+E.name;return Object.defineProperty(E,"name",{value:P}),E}l(w,"g"),e(w,"hideStackFrames");function _(E,P){if(E&&P&&E!==P){if(Array.isArray(P.errors))return P.errors.push(E),P;let A=new p([P,E],P.message);return A.code=P.code,A}return E||P}l(_,"v"),e(_,"aggregateTwoErrors");let S=(O=class extends Error{constructor(P="The operation was aborted",A=void 0){if(A!==void 0&&typeof A!="object")throw new g.ERR_INVALID_ARG_TYPE("options","Object",A);super(P,A),this.code="ABORT_ERR",this.name="AbortError"}},l(O,"b"),O);e(S,"AbortError");let T=S;return y("ERR_ASSERTION","%s",Error),y("ERR_INVALID_ARG_TYPE",(E,P,A)=>{h(typeof E=="string","'name' must be a string"),Array.isArray(P)||(P=[P]);let x="The ";E.endsWith(" argument")?x+=`${E} `:x+=`"${E}" ${E.includes(".")?"property":"argument"} `,x+="must be ";let U=[],M=[],ee=[];for(let q of P)h(typeof q=="string","All expected entries have to be of type string"),n.includes(q)?U.push(q.toLowerCase()):r.test(q)?M.push(q):(h(q!=="object",'The value "object" should be written as "Object"'),ee.push(q));if(M.length>0){let q=U.indexOf("object");q!==-1&&(U.splice(U,q,1),M.push("Object"))}if(U.length>0){switch(U.length){case 1:x+=`of type ${U[0]}`;break;case 2:x+=`one of type ${U[0]} or ${U[1]}`;break;default:{let q=U.pop();x+=`one of type ${U.join(", ")}, or ${q}`}}(M.length>0||ee.length>0)&&(x+=" or ")}if(M.length>0){switch(M.length){case 1:x+=`an instance of ${M[0]}`;break;case 2:x+=`an instance of ${M[0]} or ${M[1]}`;break;default:{let q=M.pop();x+=`an instance of ${M.join(", ")}, or ${q}`}}ee.length>0&&(x+=" or ")}switch(ee.length){case 0:break;case 1:ee[0].toLowerCase()!==ee[0]&&(x+="an "),x+=`${ee[0]}`;break;case 2:x+=`one of ${ee[0]} or ${ee[1]}`;break;default:{let q=ee.pop();x+=`one of ${ee.join(", ")}, or ${q}`}}if(A==null)x+=`. Received ${A}`;else if(typeof A=="function"&&A.name)x+=`. Received function ${A.name}`;else if(typeof A=="object"){var V;if((V=A.constructor)!==null&&V!==void 0&&V.name)x+=`. Received an instance of ${A.constructor.name}`;else{let q=i(A,{depth:-1});x+=`. Received ${q}`}}else{let q=i(A,{colors:!1});q.length>25&&(q=`${q.slice(0,25)}...`),x+=`. Received type ${typeof A} (${q})`}return x},TypeError),y("ERR_INVALID_ARG_VALUE",(E,P,A="is invalid")=>{let x=i(P);return x.length>128&&(x=x.slice(0,128)+"..."),`The ${E.includes(".")?"property":"argument"} '${E}' ${A}. Received ${x}`},TypeError),y("ERR_INVALID_RETURN_VALUE",(E,P,A)=>{var x;let U=A!=null&&(x=A.constructor)!==null&&x!==void 0&&x.name?`instance of ${A.constructor.name}`:`type ${typeof A}`;return`Expected ${E} to be returned from the "${P}" function but got ${U}.`},TypeError),y("ERR_MISSING_ARGS",(...E)=>{h(E.length>0,"At least one arg needs to be specified");let P,A=E.length;switch(E=(Array.isArray(E)?E:[E]).map(x=>`"${x}"`).join(" or "),A){case 1:P+=`The ${E[0]} argument`;break;case 2:P+=`The ${E[0]} and ${E[1]} arguments`;break;default:{let x=E.pop();P+=`The ${E.join(", ")}, and ${x} arguments`}break}return`${P} must be specified`},TypeError),y("ERR_OUT_OF_RANGE",(E,P,A)=>{h(P,'Missing "range" argument');let x;return Number.isInteger(A)&&Math.abs(A)>2**32?x=d(String(A)):typeof A=="bigint"?(x=String(A),(A>2n**32n||A<-(2n**32n))&&(x=d(x)),x+="n"):x=i(A),`The value of "${E}" is out of range. It must be ${P}. Received ${x}`},RangeError),y("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),y("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),y("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),y("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),y("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),y("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),y("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),y("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),y("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),y("ERR_STREAM_WRITE_AFTER_END","write after end",Error),y("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),xc={AbortError:T,aggregateTwoErrors:w(_),hideStackFrames:w,codes:g},xc}l(Lr,"dr");function tl(){if(W1)return Ic;W1=!0;let{ArrayIsArray:o,ArrayPrototypeIncludes:i,ArrayPrototypeJoin:f,ArrayPrototypeMap:p,NumberIsInteger:a,NumberIsNaN:n,NumberMAX_SAFE_INTEGER:r,NumberMIN_SAFE_INTEGER:u,NumberParseInt:g,ObjectPrototypeHasOwnProperty:h,RegExpPrototypeExec:d,String:m,StringPrototypeToUpperCase:y,StringPrototypeTrim:w}=Xt(),{hideStackFrames:_,codes:{ERR_SOCKET_BAD_PORT:S,ERR_INVALID_ARG_TYPE:T,ERR_INVALID_ARG_VALUE:O,ERR_OUT_OF_RANGE:E,ERR_UNKNOWN_SIGNAL:P}}=Lr(),{normalizeEncoding:A}=Or(),{isAsyncFunction:x,isArrayBufferView:U}=Or().types,M={};function ee(ge){return ge===(ge|0)}l(ee,"N"),e(ee,"isInt32");function V(ge){return ge===ge>>>0}l(V,"L"),e(V,"isUint32");let q=/^[0-7]+$/,G="must be a 32-bit unsigned integer or an octal string";function re(ge,Ne,Ie){if(typeof ge>"u"&&(ge=Ie),typeof ge=="string"){if(d(q,ge)===null)throw new O(Ne,ge,G);ge=g(ge,8)}return we(ge,Ne),ge}l(re,"q"),e(re,"parseFileMode");let ae=_((ge,Ne,Ie=u,ke=r)=>{if(typeof ge!="number")throw new T(Ne,"number",ge);if(!a(ge))throw new E(Ne,"an integer",ge);if(ge<Ie||ge>ke)throw new E(Ne,`>= ${Ie} && <= ${ke}`,ge)}),de=_((ge,Ne,Ie=-2147483648,ke=2147483647)=>{if(typeof ge!="number")throw new T(Ne,"number",ge);if(!a(ge))throw new E(Ne,"an integer",ge);if(ge<Ie||ge>ke)throw new E(Ne,`>= ${Ie} && <= ${ke}`,ge)}),we=_((ge,Ne,Ie=!1)=>{if(typeof ge!="number")throw new T(Ne,"number",ge);if(!a(ge))throw new E(Ne,"an integer",ge);let ke=Ie?1:0,Ce=4294967295;if(ge<ke||ge>Ce)throw new E(Ne,`>= ${ke} && <= ${Ce}`,ge)});function xe(ge,Ne){if(typeof ge!="string")throw new T(Ne,"string",ge)}l(xe,"_e"),e(xe,"validateString");function Pe(ge,Ne,Ie=void 0,ke){if(typeof ge!="number")throw new T(Ne,"number",ge);if(Ie!=null&&ge<Ie||ke!=null&&ge>ke||(Ie!=null||ke!=null)&&n(ge))throw new E(Ne,`${Ie!=null?`>= ${Ie}`:""}${Ie!=null&&ke!=null?" && ":""}${ke!=null?`<= ${ke}`:""}`,ge)}l(Pe,"pe"),e(Pe,"validateNumber");let se=_((ge,Ne,Ie)=>{if(!i(Ie,ge)){let ke="must be one of: "+f(p(Ie,Ce=>typeof Ce=="string"?`'${Ce}'`:m(Ce)),", ");throw new O(Ne,ge,ke)}});function Te(ge,Ne){if(typeof ge!="boolean")throw new T(Ne,"boolean",ge)}l(Te,"he"),e(Te,"validateBoolean");function J(ge,Ne,Ie){return ge==null||!h(ge,Ne)?Ie:ge[Ne]}l(J,"U"),e(J,"getOwnPropertyValueOrDefault");let ue=_((ge,Ne,Ie=null)=>{let ke=J(Ie,"allowArray",!1),Ce=J(Ie,"allowFunction",!1);if(!J(Ie,"nullable",!1)&&ge===null||!ke&&o(ge)||typeof ge!="object"&&(!Ce||typeof ge!="function"))throw new T(Ne,"Object",ge)}),te=_((ge,Ne)=>{if(ge!=null&&typeof ge!="object"&&typeof ge!="function")throw new T(Ne,"a dictionary",ge)}),X=_((ge,Ne,Ie=0)=>{if(!o(ge))throw new T(Ne,"Array",ge);if(ge.length<Ie){let ke=`must be longer than ${Ie}`;throw new O(Ne,ge,ke)}});function ye(ge,Ne){X(ge,Ne);for(let Ie=0;Ie<ge.length;Ie++)xe(ge[Ie],`${Ne}[${Ie}]`)}l(ye,"G"),e(ye,"validateStringArray");function Re(ge,Ne){X(ge,Ne);for(let Ie=0;Ie<ge.length;Ie++)Te(ge[Ie],`${Ne}[${Ie}]`)}l(Re,"fe"),e(Re,"validateBooleanArray");function De(ge,Ne){X(ge,Ne);for(let Ie=0;Ie<ge.length;Ie++){let ke=ge[Ie],Ce=`${Ne}[${Ie}]`;if(ke==null)throw new T(Ce,"AbortSignal",ke);ve(ke,Ce)}}l(De,"be"),e(De,"validateAbortSignalArray");function Y(ge,Ne="signal"){if(xe(ge,Ne),M[ge]===void 0)throw M[y(ge)]!==void 0?new P(ge+" (signals must use all capital letters)"):new P(ge)}l(Y,"D"),e(Y,"validateSignalName");let H=_((ge,Ne="buffer")=>{if(!U(ge))throw new T(Ne,["Buffer","TypedArray","DataView"],ge)});function Q(ge,Ne){let Ie=A(Ne),ke=ge.length;if(Ie==="hex"&&ke%2!==0)throw new O("encoding",Ne,`is invalid for data of length ${ke}`)}l(Q,"H"),e(Q,"validateEncoding");function fe(ge,Ne="Port",Ie=!0){if(typeof ge!="number"&&typeof ge!="string"||typeof ge=="string"&&w(ge).length===0||+ge!==+ge>>>0||ge>65535||ge===0&&!Ie)throw new S(Ne,ge,Ie);return ge|0}l(fe,"te"),e(fe,"validatePort");let ve=_((ge,Ne)=>{if(ge!==void 0&&(ge===null||typeof ge!="object"||!("aborted"in ge)))throw new T(Ne,"AbortSignal",ge)}),N=_((ge,Ne)=>{if(typeof ge!="function")throw new T(Ne,"Function",ge)}),I=_((ge,Ne)=>{if(typeof ge!="function"||x(ge))throw new T(Ne,"Function",ge)}),D=_((ge,Ne)=>{if(ge!==void 0)throw new T(Ne,"undefined",ge)});function z(ge,Ne,Ie){if(!i(Ie,ge))throw new T(Ne,`('${f(Ie,"|")}')`,ge)}l(z,"Y"),e(z,"validateUnion");let Ee=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function Oe(ge,Ne){if(typeof ge>"u"||!d(Ee,ge))throw new O(Ne,ge,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}l(Oe,"le"),e(Oe,"validateLinkHeaderFormat");function be(ge){if(typeof ge=="string")return Oe(ge,"hints"),ge;if(o(ge)){let Ne=ge.length,Ie="";if(Ne===0)return Ie;for(let ke=0;ke<Ne;ke++){let Ce=ge[ke];Oe(Ce,"hints"),Ie+=Ce,ke!==Ne-1&&(Ie+=", ")}return Ie}throw new O("hints",ge,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}return l(be,"ee"),e(be,"validateLinkHeaderValue"),Ic={isInt32:ee,isUint32:V,parseFileMode:re,validateArray:X,validateStringArray:ye,validateBooleanArray:Re,validateAbortSignalArray:De,validateBoolean:Te,validateBuffer:H,validateDictionary:te,validateEncoding:Q,validateFunction:N,validateInt32:de,validateInteger:ae,validateNumber:Pe,validateObject:ue,validateOneOf:se,validatePlainFunction:I,validatePort:fe,validateSignalName:Y,validateString:xe,validateUint32:we,validateUndefined:D,validateUnion:z,validateAbortSignal:ve,validateLinkHeaderValue:be},Ic}l(tl,"Yl");function zn(){if(z1)return Pc;z1=!0;let{SymbolAsyncIterator:o,SymbolIterator:i,SymbolFor:f}=Xt(),p=f("nodejs.stream.destroyed"),a=f("nodejs.stream.errored"),n=f("nodejs.stream.readable"),r=f("nodejs.stream.writable"),u=f("nodejs.stream.disturbed"),g=f("nodejs.webstream.isClosedPromise"),h=f("nodejs.webstream.controllerErrorFunction");function d(J,ue=!1){var te;return!!(J&&typeof J.pipe=="function"&&typeof J.on=="function"&&(!ue||typeof J.pause=="function"&&typeof J.resume=="function")&&(!J._writableState||((te=J._readableState)===null||te===void 0?void 0:te.readable)!==!1)&&(!J._writableState||J._readableState))}l(d,"d"),e(d,"isReadableNodeStream");function m(J){var ue;return!!(J&&typeof J.write=="function"&&typeof J.on=="function"&&(!J._readableState||((ue=J._writableState)===null||ue===void 0?void 0:ue.writable)!==!1))}l(m,"y"),e(m,"isWritableNodeStream");function y(J){return!!(J&&typeof J.pipe=="function"&&J._readableState&&typeof J.on=="function"&&typeof J.write=="function")}l(y,"m"),e(y,"isDuplexNodeStream");function w(J){return J&&(J._readableState||J._writableState||typeof J.write=="function"&&typeof J.on=="function"||typeof J.pipe=="function"&&typeof J.on=="function")}l(w,"g"),e(w,"isNodeStream");function _(J){return!!(J&&!w(J)&&typeof J.pipeThrough=="function"&&typeof J.getReader=="function"&&typeof J.cancel=="function")}l(_,"v"),e(_,"isReadableStream");function S(J){return!!(J&&!w(J)&&typeof J.getWriter=="function"&&typeof J.abort=="function")}l(S,"_"),e(S,"isWritableStream");function T(J){return!!(J&&!w(J)&&typeof J.readable=="object"&&typeof J.writable=="object")}l(T,"b"),e(T,"isTransformStream");function O(J){return _(J)||S(J)||T(J)}l(O,"E"),e(O,"isWebStream");function E(J,ue){return J==null?!1:ue===!0?typeof J[o]=="function":ue===!1?typeof J[i]=="function":typeof J[o]=="function"||typeof J[i]=="function"}l(E,"R"),e(E,"isIterable");function P(J){if(!w(J))return null;let ue=J._writableState,te=J._readableState,X=ue||te;return!!(J.destroyed||J[p]||X!=null&&X.destroyed)}l(P,"T"),e(P,"isDestroyed");function A(J){if(!m(J))return null;if(J.writableEnded===!0)return!0;let ue=J._writableState;return ue!=null&&ue.errored?!1:typeof ue?.ended!="boolean"?null:ue.ended}l(A,"F"),e(A,"isWritableEnded");function x(J,ue){if(!m(J))return null;if(J.writableFinished===!0)return!0;let te=J._writableState;return te!=null&&te.errored?!1:typeof te?.finished!="boolean"?null:!!(te.finished||ue===!1&&te.ended===!0&&te.length===0)}l(x,"S"),e(x,"isWritableFinished");function U(J){if(!d(J))return null;if(J.readableEnded===!0)return!0;let ue=J._readableState;return!ue||ue.errored?!1:typeof ue?.ended!="boolean"?null:ue.ended}l(U,"B"),e(U,"isReadableEnded");function M(J,ue){if(!d(J))return null;let te=J._readableState;return te!=null&&te.errored?!1:typeof te?.endEmitted!="boolean"?null:!!(te.endEmitted||ue===!1&&te.ended===!0&&te.length===0)}l(M,"P"),e(M,"isReadableFinished");function ee(J){return J&&J[n]!=null?J[n]:typeof J?.readable!="boolean"?null:P(J)?!1:d(J)&&J.readable&&!M(J)}l(ee,"N"),e(ee,"isReadable");function V(J){return J&&J[r]!=null?J[r]:typeof J?.writable!="boolean"?null:P(J)?!1:m(J)&&J.writable&&!A(J)}l(V,"L"),e(V,"isWritable");function q(J,ue){return w(J)?P(J)?!0:!(ue?.readable!==!1&&ee(J)||ue?.writable!==!1&&V(J)):null}l(q,"C"),e(q,"isFinished");function G(J){var ue,te;return w(J)?J.writableErrored?J.writableErrored:(ue=(te=J._writableState)===null||te===void 0?void 0:te.errored)!==null&&ue!==void 0?ue:null:null}l(G,"j"),e(G,"isWritableErrored");function re(J){var ue,te;return w(J)?J.readableErrored?J.readableErrored:(ue=(te=J._readableState)===null||te===void 0?void 0:te.errored)!==null&&ue!==void 0?ue:null:null}l(re,"q"),e(re,"isReadableErrored");function ae(J){if(!w(J))return null;if(typeof J.closed=="boolean")return J.closed;let ue=J._writableState,te=J._readableState;return typeof ue?.closed=="boolean"||typeof te?.closed=="boolean"?ue?.closed||te?.closed:typeof J._closed=="boolean"&&de(J)?J._closed:null}l(ae,"Z"),e(ae,"isClosed");function de(J){return typeof J._closed=="boolean"&&typeof J._defaultKeepAlive=="boolean"&&typeof J._removedConnection=="boolean"&&typeof J._removedContLen=="boolean"}l(de,"K"),e(de,"isOutgoingMessage");function we(J){return typeof J._sent100=="boolean"&&de(J)}l(we,"se"),e(we,"isServerResponse");function xe(J){var ue;return typeof J._consuming=="boolean"&&typeof J._dumped=="boolean"&&((ue=J.req)===null||ue===void 0?void 0:ue.upgradeOrConnect)===void 0}l(xe,"_e"),e(xe,"isServerRequest");function Pe(J){if(!w(J))return null;let ue=J._writableState,te=J._readableState,X=ue||te;return!X&&we(J)||!!(X&&X.autoDestroy&&X.emitClose&&X.closed===!1)}l(Pe,"pe"),e(Pe,"willEmitClose");function se(J){var ue;return!!(J&&((ue=J[u])!==null&&ue!==void 0?ue:J.readableDidRead||J.readableAborted))}l(se,"Q"),e(se,"isDisturbed");function Te(J){var ue,te,X,ye,Re,De,Y,H,Q,fe;return!!(J&&((ue=(te=(X=(ye=(Re=(De=J[a])!==null&&De!==void 0?De:J.readableErrored)!==null&&Re!==void 0?Re:J.writableErrored)!==null&&ye!==void 0?ye:(Y=J._readableState)===null||Y===void 0?void 0:Y.errorEmitted)!==null&&X!==void 0?X:(H=J._writableState)===null||H===void 0?void 0:H.errorEmitted)!==null&&te!==void 0?te:(Q=J._readableState)===null||Q===void 0?void 0:Q.errored)!==null&&ue!==void 0?ue:!((fe=J._writableState)===null||fe===void 0)&&fe.errored))}return l(Te,"he"),e(Te,"isErrored"),Pc={isDestroyed:P,kIsDestroyed:p,isDisturbed:se,kIsDisturbed:u,isErrored:Te,kIsErrored:a,isReadable:ee,kIsReadable:n,kIsClosedPromise:g,kControllerErrorFunction:h,kIsWritable:r,isClosed:ae,isDuplexNodeStream:y,isFinished:q,isIterable:E,isReadableNodeStream:d,isReadableStream:_,isReadableEnded:U,isReadableFinished:M,isReadableErrored:re,isNodeStream:w,isWebStream:O,isWritable:V,isWritableNodeStream:m,isWritableStream:S,isWritableEnded:A,isWritableFinished:x,isWritableErrored:G,isServerRequest:xe,isServerResponse:we,willEmitClose:Pe,isTransformStream:T},Pc}l(zn,"Zn");function Ei(){if(H1)return Nl;H1=!0;let o=Hn,{AbortError:i,codes:f}=Lr(),{ERR_INVALID_ARG_TYPE:p,ERR_STREAM_PREMATURE_CLOSE:a}=f,{kEmptyObject:n,once:r}=Or(),{validateAbortSignal:u,validateFunction:g,validateObject:h,validateBoolean:d}=tl(),{Promise:m,PromisePrototypeThen:y,SymbolDispose:w}=Xt(),{isClosed:_,isReadable:S,isReadableNodeStream:T,isReadableStream:O,isReadableFinished:E,isReadableErrored:P,isWritable:A,isWritableNodeStream:x,isWritableStream:U,isWritableFinished:M,isWritableErrored:ee,isNodeStream:V,willEmitClose:q,kIsClosedPromise:G}=zn(),re;function ae(se){return se.setHeader&&typeof se.abort=="function"}l(ae,"Z"),e(ae,"isRequest");let de=e(()=>{},"nop");function we(se,Te,J){var ue,te;if(arguments.length===2?(J=Te,Te=n):Te==null?Te=n:h(Te,"options"),g(J,"callback"),u(Te.signal,"options.signal"),J=r(J),O(se)||U(se))return xe(se,Te,J);if(!V(se))throw new p("stream",["ReadableStream","WritableStream","Stream"],se);let X=(ue=Te.readable)!==null&&ue!==void 0?ue:T(se),ye=(te=Te.writable)!==null&&te!==void 0?te:x(se),Re=se._writableState,De=se._readableState,Y=e(()=>{se.writable||fe()},"onlegacyfinish"),H=q(se)&&T(se)===X&&x(se)===ye,Q=M(se,!1),fe=e(()=>{Q=!0,se.destroyed&&(H=!1),!(H&&(!se.readable||X))&&(!X||ve)&&J.call(se)},"onfinish"),ve=E(se,!1),N=e(()=>{ve=!0,se.destroyed&&(H=!1),!(H&&(!se.writable||ye))&&(!ye||Q)&&J.call(se)},"onend"),I=e(ge=>{J.call(se,ge)},"onerror"),D=_(se),z=e(()=>{D=!0;let ge=ee(se)||P(se);if(ge&&typeof ge!="boolean")return J.call(se,ge);if(X&&!ve&&T(se,!0)&&!E(se,!1))return J.call(se,new a);if(ye&&!Q&&!M(se,!1))return J.call(se,new a);J.call(se)},"onclose"),Ee=e(()=>{D=!0;let ge=ee(se)||P(se);if(ge&&typeof ge!="boolean")return J.call(se,ge);J.call(se)},"onclosed"),Oe=e(()=>{se.req.on("finish",fe)},"onrequest");ae(se)?(se.on("complete",fe),H||se.on("abort",z),se.req?Oe():se.on("request",Oe)):ye&&!Re&&(se.on("end",Y),se.on("close",Y)),!H&&typeof se.aborted=="boolean"&&se.on("aborted",z),se.on("end",N),se.on("finish",fe),Te.error!==!1&&se.on("error",I),se.on("close",z),D?o.nextTick(z):Re!=null&&Re.errorEmitted||De!=null&&De.errorEmitted?H||o.nextTick(Ee):(!X&&(!H||S(se))&&(Q||A(se)===!1)||!ye&&(!H||A(se))&&(ve||S(se)===!1)||De&&se.req&&se.aborted)&&o.nextTick(Ee);let be=e(()=>{J=de,se.removeListener("aborted",z),se.removeListener("complete",fe),se.removeListener("abort",z),se.removeListener("request",Oe),se.req&&se.req.removeListener("finish",fe),se.removeListener("end",Y),se.removeListener("close",Y),se.removeListener("finish",fe),se.removeListener("end",N),se.removeListener("error",I),se.removeListener("close",z)},"cleanup");if(Te.signal&&!D){let ge=e(()=>{let Ne=J;be(),Ne.call(se,new i(void 0,{cause:Te.signal.reason}))},"abort2");if(Te.signal.aborted)o.nextTick(ge);else{re=re||Or().addAbortListener;let Ne=re(Te.signal,ge),Ie=J;J=r((...ke)=>{Ne[w](),Ie.apply(se,ke)})}}return be}l(we,"se"),e(we,"eos");function xe(se,Te,J){let ue=!1,te=de;if(Te.signal)if(te=e(()=>{ue=!0,J.call(se,new i(void 0,{cause:Te.signal.reason}))},"abort2"),Te.signal.aborted)o.nextTick(te);else{re=re||Or().addAbortListener;let ye=re(Te.signal,te),Re=J;J=r((...De)=>{ye[w](),Re.apply(se,De)})}let X=e((...ye)=>{ue||o.nextTick(()=>J.apply(se,ye))},"resolverFn");return y(se[G].promise,X,X),de}l(xe,"_e"),e(xe,"eosWeb");function Pe(se,Te){var J;let ue=!1;return Te===null&&(Te=n),(J=Te)!==null&&J!==void 0&&J.cleanup&&(d(Te.cleanup,"cleanup"),ue=Te.cleanup),new m((te,X)=>{let ye=we(se,Te,Re=>{ue&&ye(),Re?X(Re):te()})})}return l(Pe,"pe"),e(Pe,"finished2"),Nl=we,Nl.finished=Pe,Nl}l(Ei,"Vi");function ja(){if(q1)return jc;q1=!0;let o=Hn,{aggregateTwoErrors:i,codes:{ERR_MULTIPLE_CALLBACK:f},AbortError:p}=Lr(),{Symbol:a}=Xt(),{kIsDestroyed:n,isDestroyed:r,isFinished:u,isServerRequest:g}=zn(),h=a("kDestroy"),d=a("kConstruct");function m(q,G,re){q&&(q.stack,G&&!G.errored&&(G.errored=q),re&&!re.errored&&(re.errored=q))}l(m,"y"),e(m,"checkError");function y(q,G){let re=this._readableState,ae=this._writableState,de=ae||re;return ae!=null&&ae.destroyed||re!=null&&re.destroyed?(typeof G=="function"&&G(),this):(m(q,ae,re),ae&&(ae.destroyed=!0),re&&(re.destroyed=!0),de.constructed?w(this,q,G):this.once(h,function(we){w(this,i(we,q),G)}),this)}l(y,"m"),e(y,"destroy");function w(q,G,re){let ae=!1;function de(we){if(ae)return;ae=!0;let xe=q._readableState,Pe=q._writableState;m(we,Pe,xe),Pe&&(Pe.closed=!0),xe&&(xe.closed=!0),typeof re=="function"&&re(we),we?o.nextTick(_,q,we):o.nextTick(S,q)}l(de,"K"),e(de,"onDestroy");try{q._destroy(G||null,de)}catch(we){de(we)}}l(w,"g"),e(w,"_destroy");function _(q,G){T(q,G),S(q)}l(_,"v"),e(_,"emitErrorCloseNT");function S(q){let G=q._readableState,re=q._writableState;re&&(re.closeEmitted=!0),G&&(G.closeEmitted=!0),(re!=null&&re.emitClose||G!=null&&G.emitClose)&&q.emit("close")}l(S,"_"),e(S,"emitCloseNT");function T(q,G){let re=q._readableState,ae=q._writableState;ae!=null&&ae.errorEmitted||re!=null&&re.errorEmitted||(ae&&(ae.errorEmitted=!0),re&&(re.errorEmitted=!0),q.emit("error",G))}l(T,"b"),e(T,"emitErrorNT");function O(){let q=this._readableState,G=this._writableState;q&&(q.constructed=!0,q.closed=!1,q.closeEmitted=!1,q.destroyed=!1,q.errored=null,q.errorEmitted=!1,q.reading=!1,q.ended=q.readable===!1,q.endEmitted=q.readable===!1),G&&(G.constructed=!0,G.destroyed=!1,G.closed=!1,G.closeEmitted=!1,G.errored=null,G.errorEmitted=!1,G.finalCalled=!1,G.prefinished=!1,G.ended=G.writable===!1,G.ending=G.writable===!1,G.finished=G.writable===!1)}l(O,"E"),e(O,"undestroy");function E(q,G,re){let ae=q._readableState,de=q._writableState;if(de!=null&&de.destroyed||ae!=null&&ae.destroyed)return this;ae!=null&&ae.autoDestroy||de!=null&&de.autoDestroy?q.destroy(G):G&&(G.stack,de&&!de.errored&&(de.errored=G),ae&&!ae.errored&&(ae.errored=G),re?o.nextTick(T,q,G):T(q,G))}l(E,"R"),e(E,"errorOrDestroy");function P(q,G){if(typeof q._construct!="function")return;let re=q._readableState,ae=q._writableState;re&&(re.constructed=!1),ae&&(ae.constructed=!1),q.once(d,G),!(q.listenerCount(d)>1)&&o.nextTick(A,q)}l(P,"T"),e(P,"construct");function A(q){let G=!1;function re(ae){if(G){E(q,ae??new f);return}G=!0;let de=q._readableState,we=q._writableState,xe=we||de;de&&(de.constructed=!0),we&&(we.constructed=!0),xe.destroyed?q.emit(h,ae):ae?E(q,ae,!0):o.nextTick(x,q)}l(re,"q"),e(re,"onConstruct");try{q._construct(ae=>{o.nextTick(re,ae)})}catch(ae){o.nextTick(re,ae)}}l(A,"F"),e(A,"constructNT");function x(q){q.emit(d)}l(x,"S"),e(x,"emitConstructNT");function U(q){return q?.setHeader&&typeof q.abort=="function"}l(U,"B"),e(U,"isRequest");function M(q){q.emit("close")}l(M,"P"),e(M,"emitCloseLegacy");function ee(q,G){q.emit("error",G),o.nextTick(M,q)}l(ee,"N"),e(ee,"emitErrorCloseLegacy");function V(q,G){!q||r(q)||(!G&&!u(q)&&(G=new p),g(q)?(q.socket=null,q.destroy(G)):U(q)?q.abort():U(q.req)?q.req.abort():typeof q.destroy=="function"?q.destroy(G):typeof q.close=="function"?q.close():G?o.nextTick(ee,q,G):o.nextTick(M,q),q.destroyed||(q[n]=!0))}return l(V,"L"),e(V,"destroyer"),jc={construct:P,destroyer:V,destroy:y,undestroy:O,errorOrDestroy:E},jc}l(ja,"ts");function jd(){if(G1)return Cc;G1=!0;let{ArrayIsArray:o,ObjectSetPrototypeOf:i}=Xt(),{EventEmitter:f}=mi;function p(n){f.call(this,n)}l(p,"n"),e(p,"Stream2"),i(p.prototype,f.prototype),i(p,f),p.prototype.pipe=function(n,r){let u=this;function g(S){n.writable&&n.write(S)===!1&&u.pause&&u.pause()}l(g,"h"),e(g,"ondata"),u.on("data",g);function h(){u.readable&&u.resume&&u.resume()}l(h,"c"),e(h,"ondrain"),n.on("drain",h),!n._isStdio&&(!r||r.end!==!1)&&(u.on("end",m),u.on("close",y));let d=!1;function m(){d||(d=!0,n.end())}l(m,"y"),e(m,"onend");function y(){d||(d=!0,typeof n.destroy=="function"&&n.destroy())}l(y,"m"),e(y,"onclose");function w(S){_(),f.listenerCount(this,"error")===0&&this.emit("error",S)}l(w,"g"),e(w,"onerror"),a(u,"error",w),a(n,"error",w);function _(){u.removeListener("data",g),n.removeListener("drain",h),u.removeListener("end",m),u.removeListener("close",y),u.removeListener("error",w),n.removeListener("error",w),u.removeListener("end",_),u.removeListener("close",_),n.removeListener("close",_)}return l(_,"v"),e(_,"cleanup"),u.on("end",_),u.on("close",_),n.on("close",_),n.emit("pipe",u),n};function a(n,r,u){if(typeof n.prependListener=="function")return n.prependListener(r,u);!n._events||!n._events[r]?n.on(r,u):o(n._events[r])?n._events[r].unshift(u):n._events[r]=[u,n._events[r]]}return l(a,"a"),e(a,"prependListener2"),Cc={Stream:p,prependListener:a},Cc}l(jd,"qg");function Sf(){if(V1)return Fs;V1=!0;let{SymbolDispose:o}=Xt(),{AbortError:i,codes:f}=Lr(),{isNodeStream:p,isWebStream:a,kControllerErrorFunction:n}=zn(),r=Ei(),{ERR_INVALID_ARG_TYPE:u}=f,g,h=e((d,m)=>{if(typeof d!="object"||!("aborted"in d))throw new u(m,"AbortSignal",d)},"validateAbortSignal");return Fs.addAbortSignal=e(function(d,m){if(h(d,"signal"),!p(m)&&!a(m))throw new u("stream",["ReadableStream","WritableStream","Stream"],m);return Fs.addAbortSignalNoValidate(d,m)},"addAbortSignal"),Fs.addAbortSignalNoValidate=function(d,m){if(typeof d!="object"||!("aborted"in d))return m;let y=p(m)?()=>{m.destroy(new i(void 0,{cause:d.reason}))}:()=>{m[n](new i(void 0,{cause:d.reason}))};if(d.aborted)y();else{g=g||Or().addAbortListener;let w=g(d,y);r(m,w[o])}return m},Fs}l(Sf,"bc");function jP(){var u;var o;if(K1)return Lc;K1=!0;let{StringPrototypeSlice:i,SymbolIterator:f,TypedArrayPrototypeSet:p,Uint8Array:a}=Xt(),{Buffer:n}=_i(),{inspect:r}=Or();return Lc=(o=(u=class{constructor(){this.head=null,this.tail=null,this.length=0}push(h){let d={data:h,next:null};this.length>0?this.tail.next=d:this.head=d,this.tail=d,++this.length}unshift(h){let d={data:h,next:this.head};this.length===0&&(this.tail=d),this.head=d,++this.length}shift(){if(this.length===0)return;let h=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,h}clear(){this.head=this.tail=null,this.length=0}join(h){if(this.length===0)return"";let d=this.head,m=""+d.data;for(;(d=d.next)!==null;)m+=h+d.data;return m}concat(h){if(this.length===0)return n.alloc(0);let d=n.allocUnsafe(h>>>0),m=this.head,y=0;for(;m;)p(d,m.data,y),y+=m.data.length,m=m.next;return d}consume(h,d){let m=this.head.data;if(h<m.length){let y=m.slice(0,h);return this.head.data=m.slice(h),y}return h===m.length?this.shift():d?this._getString(h):this._getBuffer(h)}first(){return this.head.data}*[f](){for(let h=this.head;h;h=h.next)yield h.data}_getString(h){let d="",m=this.head,y=0;do{let w=m.data;if(h>w.length)d+=w,h-=w.length;else{h===w.length?(d+=w,++y,m.next?this.head=m.next:this.head=this.tail=null):(d+=i(w,0,h),this.head=m,m.data=i(w,h));break}++y}while((m=m.next)!==null);return this.length-=y,d}_getBuffer(h){let d=n.allocUnsafe(h),m=h,y=this.head,w=0;do{let _=y.data;if(h>_.length)p(d,_,m-h),h-=_.length;else{h===_.length?(p(d,_,m-h),++w,y.next?this.head=y.next:this.head=this.tail=null):(p(d,new a(_.buffer,_.byteOffset,h),m-h),this.head=y,y.data=_.slice(h));break}++w}while((y=y.next)!==null);return this.length-=w,d}[Symbol.for("nodejs.util.inspect.custom")](h,d){return r(this,{...d,depth:0,customInspect:!1})}},l(u,"i"),u),e(o,"BufferList"),o),Lc}l(jP,"$W");function Af(){if(J1)return Nc;J1=!0;let{MathFloor:o,NumberIsInteger:i}=Xt(),{validateInteger:f}=tl(),{ERR_INVALID_ARG_VALUE:p}=Lr().codes,a=16*1024,n=16;function r(d,m,y){return d.highWaterMark!=null?d.highWaterMark:m?d[y]:null}l(r,"i"),e(r,"highWaterMarkFrom");function u(d){return d?n:a}l(u,"f"),e(u,"getDefaultHighWaterMark");function g(d,m){f(m,"value",0),d?n=m:a=m}l(g,"h"),e(g,"setDefaultHighWaterMark");function h(d,m,y,w){let _=r(m,w,y);if(_!=null){if(!i(_)||_<0){let S=w?`options.${y}`:"options.highWaterMark";throw new p(S,_)}return o(_)}return u(d.objectMode)}return l(h,"c"),e(h,"getHighWaterMark"),Nc={getHighWaterMark:h,getDefaultHighWaterMark:u,setDefaultHighWaterMark:g},Nc}l(Af,"_c");function YE(){if(Y1)return Dc;Y1=!0;let o=Hn,{PromisePrototypeThen:i,SymbolAsyncIterator:f,SymbolIterator:p}=Xt(),{Buffer:a}=_i(),{ERR_INVALID_ARG_TYPE:n,ERR_STREAM_NULL_VALUES:r}=Lr().codes;function u(g,h,d){let m;if(typeof h=="string"||h instanceof a)return new g({objectMode:!0,...d,read(){this.push(h),this.push(null)}});let y;if(h&&h[f])y=!0,m=h[f]();else if(h&&h[p])y=!1,m=h[p]();else throw new n("iterable",["Iterable"],h);let w=new g({objectMode:!0,highWaterMark:1,...d}),_=!1;w._read=function(){_||(_=!0,T())},w._destroy=function(O,E){i(S(O),()=>o.nextTick(E,O),P=>o.nextTick(E,P||O))};async function S(O){let E=O!=null,P=typeof m.throw=="function";if(E&&P){let{value:A,done:x}=await m.throw(O);if(await A,x)return}if(typeof m.return=="function"){let{value:A}=await m.return();await A}}l(S,"_"),e(S,"close");async function T(){for(;;){try{let{value:O,done:E}=y?await m.next():m.next();if(E)w.push(null);else{let P=O&&typeof O.then=="function"?await O:O;if(P===null)throw _=!1,new r;if(w.push(P))continue;_=!1}}catch(O){w.destroy(O)}break}}return l(T,"b"),e(T,"next"),w}return l(u,"f"),e(u,"from"),Dc=u,Dc}l(YE,"aR");function Rf(){if(Z1)return Uc;Z1=!0;let o=Hn,{ArrayPrototypeIndexOf:i,NumberIsInteger:f,NumberIsNaN:p,NumberParseInt:a,ObjectDefineProperties:n,ObjectKeys:r,ObjectSetPrototypeOf:u,Promise:g,SafeSet:h,SymbolAsyncDispose:d,SymbolAsyncIterator:m,Symbol:y}=Xt();Uc=ke,ke.ReadableState=Ie;let{EventEmitter:w}=mi,{Stream:_,prependListener:S}=jd(),{Buffer:T}=_i(),{addAbortSignal:O}=Sf(),E=Ei(),P=Or().debuglog("stream",me=>{P=me}),A=jP(),x=ja(),{getHighWaterMark:U,getDefaultHighWaterMark:M}=Af(),{aggregateTwoErrors:ee,codes:{ERR_INVALID_ARG_TYPE:V,ERR_METHOD_NOT_IMPLEMENTED:q,ERR_OUT_OF_RANGE:G,ERR_STREAM_PUSH_AFTER_EOF:re,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:ae},AbortError:de}=Lr(),{validateObject:we}=tl(),xe=y("kPaused"),{StringDecoder:Pe}=fc,se=YE();u(ke.prototype,_.prototype),u(ke,_);let Te=e(()=>{},"nop"),{errorOrDestroy:J}=x,ue=1,te=2,X=4,ye=8,Re=16,De=32,Y=64,H=128,Q=256,fe=512,ve=1024,N=2048,I=4096,D=8192,z=16384,Ee=32768,Oe=65536,be=1<<17,ge=1<<18;function Ne(me){return{enumerable:!1,get(){return((this||Ze).state&me)!==0},set(Se){Se?(this||Ze).state|=me:(this||Ze).state&=~me}}}l(Ne,"me"),e(Ne,"makeBitMapDescriptor"),n(Ie.prototype,{objectMode:Ne(ue),ended:Ne(te),endEmitted:Ne(X),reading:Ne(ye),constructed:Ne(Re),sync:Ne(De),needReadable:Ne(Y),emittedReadable:Ne(H),readableListening:Ne(Q),resumeScheduled:Ne(fe),errorEmitted:Ne(ve),emitClose:Ne(N),autoDestroy:Ne(I),destroyed:Ne(D),closed:Ne(z),closeEmitted:Ne(Ee),multiAwaitDrain:Ne(Oe),readingMore:Ne(be),dataEmitted:Ne(ge)});function Ie(me,Se,We){typeof We!="boolean"&&(We=Se instanceof $n()),(this||Ze).state=N|I|Re|De,me&&me.objectMode&&((this||Ze).state|=ue),We&&me&&me.readableObjectMode&&((this||Ze).state|=ue),(this||Ze).highWaterMark=me?U(this||Ze,me,"readableHighWaterMark",We):M(!1),(this||Ze).buffer=new A,(this||Ze).length=0,(this||Ze).pipes=[],(this||Ze).flowing=null,(this||Ze)[xe]=null,me&&me.emitClose===!1&&((this||Ze).state&=~N),me&&me.autoDestroy===!1&&((this||Ze).state&=~I),(this||Ze).errored=null,(this||Ze).defaultEncoding=me&&me.defaultEncoding||"utf8",(this||Ze).awaitDrainWriters=null,(this||Ze).decoder=null,(this||Ze).encoding=null,me&&me.encoding&&((this||Ze).decoder=new Pe(me.encoding),(this||Ze).encoding=me.encoding)}l(Ie,"ye"),e(Ie,"ReadableState");function ke(me){if(!((this||Ze)instanceof ke))return new ke(me);let Se=(this||Ze)instanceof $n();(this||Ze)._readableState=new Ie(me,this||Ze,Se),me&&(typeof me.read=="function"&&((this||Ze)._read=me.read),typeof me.destroy=="function"&&((this||Ze)._destroy=me.destroy),typeof me.construct=="function"&&((this||Ze)._construct=me.construct),me.signal&&!Se&&O(me.signal,this||Ze)),_.call(this||Ze,me),x.construct(this||Ze,()=>{(this||Ze)._readableState.needReadable&&C(this||Ze,(this||Ze)._readableState)})}l(ke,"ve"),e(ke,"Readable2"),ke.prototype.destroy=x.destroy,ke.prototype._undestroy=x.undestroy,ke.prototype._destroy=function(me,Se){Se(me)},ke.prototype[w.captureRejectionSymbol]=function(me){this.destroy(me)},ke.prototype[d]=function(){let me;return(this||Ze).destroyed||(me=(this||Ze).readableEnded?null:new de,this.destroy(me)),new g((Se,We)=>E(this||Ze,Qe=>Qe&&Qe!==me?We(Qe):Se(null)))},ke.prototype.push=function(me,Se){return Ce(this||Ze,me,Se,!1)},ke.prototype.unshift=function(me,Se){return Ce(this||Ze,me,Se,!0)};function Ce(me,Se,We,Qe){P("readableAddChunk",Se);let lt=me._readableState,bt;if(lt.state&ue||(typeof Se=="string"?(We=We||lt.defaultEncoding,lt.encoding!==We&&(Qe&<.encoding?Se=T.from(Se,We).toString(lt.encoding):(Se=T.from(Se,We),We=""))):Se instanceof T?We="":_._isUint8Array(Se)?(Se=_._uint8ArrayToBuffer(Se),We=""):Se!=null&&(bt=new V("chunk",["string","Buffer","Uint8Array"],Se))),bt)J(me,bt);else if(Se===null)lt.state&=~ye,c(me,lt);else if(lt.state&ue||Se&&Se.length>0)if(Qe)if(lt.state&X)J(me,new ae);else{if(lt.destroyed||lt.errored)return!1;$e(me,lt,Se,!0)}else if(lt.ended)J(me,new re);else{if(lt.destroyed||lt.errored)return!1;lt.state&=~ye,lt.decoder&&!We?(Se=lt.decoder.write(Se),lt.objectMode||Se.length!==0?$e(me,lt,Se,!1):C(me,lt)):$e(me,lt,Se,!1)}else Qe||(lt.state&=~ye,C(me,lt));return!lt.ended&&(lt.length<lt.highWaterMark||lt.length===0)}l(Ce,"Me"),e(Ce,"readableAddChunk");function $e(me,Se,We,Qe){Se.flowing&&Se.length===0&&!Se.sync&&me.listenerCount("data")>0?(Se.state&Oe?Se.awaitDrainWriters.clear():Se.awaitDrainWriters=null,Se.dataEmitted=!0,me.emit("data",We)):(Se.length+=Se.objectMode?1:We.length,Qe?Se.buffer.unshift(We):Se.buffer.push(We),Se.state&Y&&v(me)),C(me,Se)}l($e,"Be"),e($e,"addChunk"),ke.prototype.isPaused=function(){let me=(this||Ze)._readableState;return me[xe]===!0||me.flowing===!1},ke.prototype.setEncoding=function(me){let Se=new Pe(me);(this||Ze)._readableState.decoder=Se,(this||Ze)._readableState.encoding=(this||Ze)._readableState.decoder.encoding;let We=(this||Ze)._readableState.buffer,Qe="";for(let lt of We)Qe+=Se.write(lt);return We.clear(),Qe!==""&&We.push(Qe),(this||Ze)._readableState.length=Qe.length,this||Ze};let Ke=1073741824;function t(me){if(me>Ke)throw new G("size","<= 1GiB",me);return me--,me|=me>>>1,me|=me>>>2,me|=me>>>4,me|=me>>>8,me|=me>>>16,me++,me}l(t,"p"),e(t,"computeNewHighWaterMark");function s(me,Se){return me<=0||Se.length===0&&Se.ended?0:Se.state&ue?1:p(me)?Se.flowing&&Se.length?Se.buffer.first().length:Se.length:me<=Se.length?me:Se.ended?Se.length:0}l(s,"l"),e(s,"howMuchToRead"),ke.prototype.read=function(me){P("read",me),me===void 0?me=NaN:f(me)||(me=a(me,10));let Se=(this||Ze)._readableState,We=me;if(me>Se.highWaterMark&&(Se.highWaterMark=t(me)),me!==0&&(Se.state&=~H),me===0&&Se.needReadable&&((Se.highWaterMark!==0?Se.length>=Se.highWaterMark:Se.length>0)||Se.ended))return P("read: emitReadable",Se.length,Se.ended),Se.length===0&&Se.ended?qe(this||Ze):v(this||Ze),null;if(me=s(me,Se),me===0&&Se.ended)return Se.length===0&&qe(this||Ze),null;let Qe=(Se.state&Y)!==0;if(P("need readable",Qe),(Se.length===0||Se.length-me<Se.highWaterMark)&&(Qe=!0,P("length less than watermark",Qe)),Se.ended||Se.reading||Se.destroyed||Se.errored||!Se.constructed)Qe=!1,P("reading, ended or constructing",Qe);else if(Qe){P("do read"),Se.state|=ye|De,Se.length===0&&(Se.state|=Y);try{this._read(Se.highWaterMark)}catch(bt){J(this||Ze,bt)}Se.state&=~De,Se.reading||(me=s(We,Se))}let lt;return me>0?lt=W(me,Se):lt=null,lt===null?(Se.needReadable=Se.length<=Se.highWaterMark,me=0):(Se.length-=me,Se.multiAwaitDrain?Se.awaitDrainWriters.clear():Se.awaitDrainWriters=null),Se.length===0&&(Se.ended||(Se.needReadable=!0),We!==me&&Se.ended&&qe(this||Ze)),lt!==null&&!Se.errorEmitted&&!Se.closeEmitted&&(Se.dataEmitted=!0,this.emit("data",lt)),lt};function c(me,Se){if(P("onEofChunk"),!Se.ended){if(Se.decoder){let We=Se.decoder.end();We&&We.length&&(Se.buffer.push(We),Se.length+=Se.objectMode?1:We.length)}Se.ended=!0,Se.sync?v(me):(Se.needReadable=!1,Se.emittedReadable=!0,R(me))}}l(c,"u"),e(c,"onEofChunk");function v(me){let Se=me._readableState;P("emitReadable",Se.needReadable,Se.emittedReadable),Se.needReadable=!1,Se.emittedReadable||(P("emitReadable",Se.flowing),Se.emittedReadable=!0,o.nextTick(R,me))}l(v,"w"),e(v,"emitReadable");function R(me){let Se=me._readableState;P("emitReadable_",Se.destroyed,Se.length,Se.ended),!Se.destroyed&&!Se.errored&&(Se.length||Se.ended)&&(me.emit("readable"),Se.emittedReadable=!1),Se.needReadable=!Se.flowing&&!Se.ended&&Se.length<=Se.highWaterMark,ie(me)}l(R,"A"),e(R,"emitReadable_");function C(me,Se){!Se.readingMore&&Se.constructed&&(Se.readingMore=!0,o.nextTick(j,me,Se))}l(C,"O"),e(C,"maybeReadMore");function j(me,Se){for(;!Se.reading&&!Se.ended&&(Se.length<Se.highWaterMark||Se.flowing&&Se.length===0);){let We=Se.length;if(P("maybeReadMore read 0"),me.read(0),We===Se.length)break}Se.readingMore=!1}l(j,"k"),e(j,"maybeReadMore_"),ke.prototype._read=function(me){throw new q("_read()")},ke.prototype.pipe=function(me,Se){let We=this||Ze,Qe=(this||Ze)._readableState;Qe.pipes.length===1&&(Qe.multiAwaitDrain||(Qe.multiAwaitDrain=!0,Qe.awaitDrainWriters=new h(Qe.awaitDrainWriters?[Qe.awaitDrainWriters]:[]))),Qe.pipes.push(me),P("pipe count=%d opts=%j",Qe.pipes.length,Se);let lt=(!Se||Se.end!==!1)&&me!==o.stdout&&me!==o.stderr?ht:Dt;Qe.endEmitted?o.nextTick(lt):We.once("end",lt),me.on("unpipe",bt);function bt(Mt,gr){P("onunpipe"),Mt===We&&gr&&gr.hasUnpiped===!1&&(gr.hasUnpiped=!0,zt())}l(bt,"zt"),e(bt,"onunpipe");function ht(){P("onend"),me.end()}l(ht,"Rl"),e(ht,"onend");let kt,qt=!1;function zt(){P("cleanup"),me.removeListener("close",tr),me.removeListener("finish",Bt),kt&&me.removeListener("drain",kt),me.removeListener("error",et),me.removeListener("unpipe",bt),We.removeListener("end",ht),We.removeListener("end",Dt),We.removeListener("data",kr),qt=!0,kt&&Qe.awaitDrainWriters&&(!me._writableState||me._writableState.needDrain)&&kt()}l(zt,"Eu"),e(zt,"cleanup");function or(){qt||(Qe.pipes.length===1&&Qe.pipes[0]===me?(P("false write response, pause",0),Qe.awaitDrainWriters=me,Qe.multiAwaitDrain=!1):Qe.pipes.length>1&&Qe.pipes.includes(me)&&(P("false write response, pause",Qe.awaitDrainWriters.size),Qe.awaitDrainWriters.add(me)),We.pause()),kt||(kt=Z(We,me),me.on("drain",kt))}l(or,"Da"),e(or,"pause"),We.on("data",kr);function kr(Mt){P("ondata");let gr=me.write(Mt);P("dest.write",gr),gr===!1&&or()}l(kr,"Tl"),e(kr,"ondata");function et(Mt){if(P("onerror",Mt),Dt(),me.removeListener("error",et),me.listenerCount("error")===0){let gr=me._writableState||me._readableState;gr&&!gr.errorEmitted?J(me,Mt):me.emit("error",Mt)}}l(et,"Fl"),e(et,"onerror"),S(me,"error",et);function tr(){me.removeListener("finish",Bt),Dt()}l(tr,"Ro"),e(tr,"onclose"),me.once("close",tr);function Bt(){P("onfinish"),me.removeListener("close",tr),Dt()}l(Bt,"gn"),e(Bt,"onfinish"),me.once("finish",Bt);function Dt(){P("unpipe"),We.unpipe(me)}return l(Dt,"wn"),e(Dt,"unpipe"),me.emit("pipe",We),me.writableNeedDrain===!0?or():Qe.flowing||(P("pipe resume"),We.resume()),me};function Z(me,Se){return e(function(){let We=me._readableState;We.awaitDrainWriters===Se?(P("pipeOnDrain",1),We.awaitDrainWriters=null):We.multiAwaitDrain&&(P("pipeOnDrain",We.awaitDrainWriters.size),We.awaitDrainWriters.delete(Se)),(!We.awaitDrainWriters||We.awaitDrainWriters.size===0)&&me.listenerCount("data")&&me.resume()},"pipeOnDrainFunctionResult")}l(Z,"W"),e(Z,"pipeOnDrain"),ke.prototype.unpipe=function(me){let Se=(this||Ze)._readableState,We={hasUnpiped:!1};if(Se.pipes.length===0)return this||Ze;if(!me){let lt=Se.pipes;Se.pipes=[],this.pause();for(let bt=0;bt<lt.length;bt++)lt[bt].emit("unpipe",this||Ze,{hasUnpiped:!1});return this||Ze}let Qe=i(Se.pipes,me);return Qe===-1?this||Ze:(Se.pipes.splice(Qe,1),Se.pipes.length===0&&this.pause(),me.emit("unpipe",this||Ze,We),this||Ze)},ke.prototype.on=function(me,Se){let We=_.prototype.on.call(this||Ze,me,Se),Qe=(this||Ze)._readableState;return me==="data"?(Qe.readableListening=this.listenerCount("readable")>0,Qe.flowing!==!1&&this.resume()):me==="readable"&&!Qe.endEmitted&&!Qe.readableListening&&(Qe.readableListening=Qe.needReadable=!0,Qe.flowing=!1,Qe.emittedReadable=!1,P("on readable",Qe.length,Qe.reading),Qe.length?v(this||Ze):Qe.reading||o.nextTick(Ae,this||Ze)),We},ke.prototype.addListener=ke.prototype.on,ke.prototype.removeListener=function(me,Se){let We=_.prototype.removeListener.call(this||Ze,me,Se);return me==="readable"&&o.nextTick(oe,this||Ze),We},ke.prototype.off=ke.prototype.removeListener,ke.prototype.removeAllListeners=function(me){let Se=_.prototype.removeAllListeners.apply(this||Ze,arguments);return(me==="readable"||me===void 0)&&o.nextTick(oe,this||Ze),Se};function oe(me){let Se=me._readableState;Se.readableListening=me.listenerCount("readable")>0,Se.resumeScheduled&&Se[xe]===!1?Se.flowing=!0:me.listenerCount("data")>0?me.resume():Se.readableListening||(Se.flowing=null)}l(oe,"re"),e(oe,"updateReadableListening");function Ae(me){P("readable nexttick read 0"),me.read(0)}l(Ae,"de"),e(Ae,"nReadingNextTick"),ke.prototype.resume=function(){let me=(this||Ze)._readableState;return me.flowing||(P("resume"),me.flowing=!me.readableListening,le(this||Ze,me)),me[xe]=!1,this||Ze};function le(me,Se){Se.resumeScheduled||(Se.resumeScheduled=!0,o.nextTick(Fe,me,Se))}l(le,"we"),e(le,"resume");function Fe(me,Se){P("resume",Se.reading),Se.reading||me.read(0),Se.resumeScheduled=!1,me.emit("resume"),ie(me),Se.flowing&&!Se.reading&&me.read(0)}l(Fe,"ce"),e(Fe,"resume_"),ke.prototype.pause=function(){return P("call pause flowing=%j",(this||Ze)._readableState.flowing),(this||Ze)._readableState.flowing!==!1&&(P("pause"),(this||Ze)._readableState.flowing=!1,this.emit("pause")),(this||Ze)._readableState[xe]=!0,this||Ze};function ie(me){let Se=me._readableState;for(P("flow",Se.flowing);Se.flowing&&me.read()!==null;);}l(ie,"je"),e(ie,"flow"),ke.prototype.wrap=function(me){let Se=!1;me.on("data",Qe=>{!this.push(Qe)&&me.pause&&(Se=!0,me.pause())}),me.on("end",()=>{this.push(null)}),me.on("error",Qe=>{J(this||Ze,Qe)}),me.on("close",()=>{this.destroy()}),me.on("destroy",()=>{this.destroy()}),(this||Ze)._read=()=>{Se&&me.resume&&(Se=!1,me.resume())};let We=r(me);for(let Qe=1;Qe<We.length;Qe++){let lt=We[Qe];(this||Ze)[lt]===void 0&&typeof me[lt]=="function"&&((this||Ze)[lt]=me[lt].bind(me))}return this||Ze},ke.prototype[m]=function(){return Je(this||Ze)},ke.prototype.iterator=function(me){return me!==void 0&&we(me,"options"),Je(this||Ze,me)};function Je(me,Se){typeof me.read!="function"&&(me=ke.wrap(me,{objectMode:!0}));let We=dt(me,Se);return We.stream=me,We}l(Je,"nn"),e(Je,"streamToAsyncIterator");async function*dt(me,Se){let We=Te;function Qe(ht){(this||Ze)===me?(We(),We=Te):We=ht}l(Qe,"Pe"),e(Qe,"next"),me.on("readable",Qe);let lt,bt=E(me,{writable:!1},ht=>{lt=ht?ee(lt,ht):null,We(),We=Te});try{for(;;){let ht=me.destroyed?null:me.read();if(ht!==null)yield ht;else{if(lt)throw lt;if(lt===null)return;await new g(Qe)}}}catch(ht){throw lt=ee(lt,ht),lt}finally{(lt||Se?.destroyOnReturn!==!1)&&(lt===void 0||me._readableState.autoDestroy)?x.destroyer(me,null):(me.off("readable",Qe),bt())}}l(dt,"Un"),e(dt,"createAsyncIterator"),n(ke.prototype,{readable:{__proto__:null,get(){let me=(this||Ze)._readableState;return!!me&&me.readable!==!1&&!me.destroyed&&!me.errorEmitted&&!me.endEmitted},set(me){(this||Ze)._readableState&&((this||Ze)._readableState.readable=!!me)}},readableDidRead:{__proto__:null,enumerable:!1,get:e(function(){return(this||Ze)._readableState.dataEmitted},"get")},readableAborted:{__proto__:null,enumerable:!1,get:e(function(){return!!((this||Ze)._readableState.readable!==!1&&((this||Ze)._readableState.destroyed||(this||Ze)._readableState.errored)&&!(this||Ze)._readableState.endEmitted)},"get")},readableHighWaterMark:{__proto__:null,enumerable:!1,get:e(function(){return(this||Ze)._readableState.highWaterMark},"get")},readableBuffer:{__proto__:null,enumerable:!1,get:e(function(){return(this||Ze)._readableState&&(this||Ze)._readableState.buffer},"get")},readableFlowing:{__proto__:null,enumerable:!1,get:e(function(){return(this||Ze)._readableState.flowing},"get"),set:e(function(me){(this||Ze)._readableState&&((this||Ze)._readableState.flowing=me)},"set")},readableLength:{__proto__:null,enumerable:!1,get(){return(this||Ze)._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return(this||Ze)._readableState?(this||Ze)._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return(this||Ze)._readableState?(this||Ze)._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return(this||Ze)._readableState?(this||Ze)._readableState.errored:null}},closed:{__proto__:null,get(){return(this||Ze)._readableState?(this||Ze)._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return(this||Ze)._readableState?(this||Ze)._readableState.destroyed:!1},set(me){(this||Ze)._readableState&&((this||Ze)._readableState.destroyed=me)}},readableEnded:{__proto__:null,enumerable:!1,get(){return(this||Ze)._readableState?(this||Ze)._readableState.endEmitted:!1}}}),n(Ie.prototype,{pipesCount:{__proto__:null,get(){return(this||Ze).pipes.length}},paused:{__proto__:null,get(){return(this||Ze)[xe]!==!1},set(me){(this||Ze)[xe]=!!me}}}),ke._fromList=W;function W(me,Se){if(Se.length===0)return null;let We;return Se.objectMode?We=Se.buffer.shift():!me||me>=Se.length?(Se.decoder?We=Se.buffer.join(""):Se.buffer.length===1?We=Se.buffer.first():We=Se.buffer.concat(Se.length),Se.buffer.clear()):We=Se.buffer.consume(me,Se.decoder),We}l(W,"qt"),e(W,"fromList");function qe(me){let Se=me._readableState;P("endReadable",Se.endEmitted),Se.endEmitted||(Se.ended=!0,o.nextTick(Ve,Se,me))}l(qe,"$r"),e(qe,"endReadable");function Ve(me,Se){if(P("endReadableNT",me.endEmitted,me.length),!me.errored&&!me.closeEmitted&&!me.endEmitted&&me.length===0){if(me.endEmitted=!0,Se.emit("end"),Se.writable&&Se.allowHalfOpen===!1)o.nextTick(pe,Se);else if(me.autoDestroy){let We=Se._writableState;(!We||We.autoDestroy&&(We.finished||We.writable===!1))&&Se.destroy()}}}l(Ve,"Sl"),e(Ve,"endReadableNT");function pe(me){me.writable&&!me.writableEnded&&!me.destroyed&&me.end()}l(pe,"Oi"),e(pe,"endWritableNT"),ke.from=function(me,Se){return se(ke,me,Se)};let Le;function He(){return Le===void 0&&(Le={}),Le}return l(He,"Al"),e(He,"lazyWebStreams"),ke.fromWeb=function(me,Se){return He().newStreamReadableFromReadableStream(me,Se)},ke.toWeb=function(me,Se){return He().newReadableStreamFromStreamReadable(me,Se)},ke.wrap=function(me,Se){var We,Qe;return new ke({objectMode:(We=(Qe=me.readableObjectMode)!==null&&Qe!==void 0?Qe:me.objectMode)!==null&&We!==void 0?We:!0,...Se,destroy(lt,bt){x.destroyer(me,lt),bt(lt)}}).wrap(me)},Uc}l(Rf,"Ec");function Cd(){if(Q1)return Mc;Q1=!0;let o=Hn,{ArrayPrototypeSlice:i,Error:f,FunctionPrototypeSymbolHasInstance:p,ObjectDefineProperty:a,ObjectDefineProperties:n,ObjectSetPrototypeOf:r,StringPrototypeToLowerCase:u,Symbol:g,SymbolHasInstance:h}=Xt();Mc=we,we.WritableState=ae;let{EventEmitter:d}=mi,m=jd().Stream,{Buffer:y}=_i(),w=ja(),{addAbortSignal:_}=Sf(),{getHighWaterMark:S,getDefaultHighWaterMark:T}=Af(),{ERR_INVALID_ARG_TYPE:O,ERR_METHOD_NOT_IMPLEMENTED:E,ERR_MULTIPLE_CALLBACK:P,ERR_STREAM_CANNOT_PIPE:A,ERR_STREAM_DESTROYED:x,ERR_STREAM_ALREADY_FINISHED:U,ERR_STREAM_NULL_VALUES:M,ERR_STREAM_WRITE_AFTER_END:ee,ERR_UNKNOWN_ENCODING:V}=Lr().codes,{errorOrDestroy:q}=w;r(we.prototype,m.prototype),r(we,m);function G(){}l(G,"j"),e(G,"nop");let re=g("kOnFinished");function ae(I,D,z){typeof z!="boolean"&&(z=D instanceof $n()),(this||nt).objectMode=!!(I&&I.objectMode),z&&((this||nt).objectMode=(this||nt).objectMode||!!(I&&I.writableObjectMode)),(this||nt).highWaterMark=I?S(this||nt,I,"writableHighWaterMark",z):T(!1),(this||nt).finalCalled=!1,(this||nt).needDrain=!1,(this||nt).ending=!1,(this||nt).ended=!1,(this||nt).finished=!1,(this||nt).destroyed=!1;let Ee=!!(I&&I.decodeStrings===!1);(this||nt).decodeStrings=!Ee,(this||nt).defaultEncoding=I&&I.defaultEncoding||"utf8",(this||nt).length=0,(this||nt).writing=!1,(this||nt).corked=0,(this||nt).sync=!0,(this||nt).bufferProcessing=!1,(this||nt).onwrite=J.bind(void 0,D),(this||nt).writecb=null,(this||nt).writelen=0,(this||nt).afterWriteTickInfo=null,de(this||nt),(this||nt).pendingcb=0,(this||nt).constructed=!0,(this||nt).prefinished=!1,(this||nt).errorEmitted=!1,(this||nt).emitClose=!I||I.emitClose!==!1,(this||nt).autoDestroy=!I||I.autoDestroy!==!1,(this||nt).errored=null,(this||nt).closed=!1,(this||nt).closeEmitted=!1,(this||nt)[re]=[]}l(ae,"Z"),e(ae,"WritableState");function de(I){I.buffered=[],I.bufferedIndex=0,I.allBuffers=!0,I.allNoop=!0}l(de,"K"),e(de,"resetBuffer"),ae.prototype.getBuffer=e(function(){return i((this||nt).buffered,(this||nt).bufferedIndex)},"getBuffer"),a(ae.prototype,"bufferedRequestCount",{__proto__:null,get(){return(this||nt).buffered.length-(this||nt).bufferedIndex}});function we(I){let D=(this||nt)instanceof $n();if(!D&&!p(we,this||nt))return new we(I);(this||nt)._writableState=new ae(I,this||nt,D),I&&(typeof I.write=="function"&&((this||nt)._write=I.write),typeof I.writev=="function"&&((this||nt)._writev=I.writev),typeof I.destroy=="function"&&((this||nt)._destroy=I.destroy),typeof I.final=="function"&&((this||nt)._final=I.final),typeof I.construct=="function"&&((this||nt)._construct=I.construct),I.signal&&_(I.signal,this||nt)),m.call(this||nt,I),w.construct(this||nt,()=>{let z=(this||nt)._writableState;z.writing||ye(this||nt,z),H(this||nt,z)})}l(we,"se"),e(we,"Writable2"),a(we,h,{__proto__:null,value:e(function(I){return p(this||nt,I)?!0:(this||nt)!==we?!1:I&&I._writableState instanceof ae},"value")}),we.prototype.pipe=function(){q(this||nt,new A)};function xe(I,D,z,Ee){let Oe=I._writableState;if(typeof z=="function")Ee=z,z=Oe.defaultEncoding;else{if(!z)z=Oe.defaultEncoding;else if(z!=="buffer"&&!y.isEncoding(z))throw new V(z);typeof Ee!="function"&&(Ee=G)}if(D===null)throw new M;if(!Oe.objectMode)if(typeof D=="string")Oe.decodeStrings!==!1&&(D=y.from(D,z),z="buffer");else if(D instanceof y)z="buffer";else if(m._isUint8Array(D))D=m._uint8ArrayToBuffer(D),z="buffer";else throw new O("chunk",["string","Buffer","Uint8Array"],D);let be;return Oe.ending?be=new ee:Oe.destroyed&&(be=new x("write")),be?(o.nextTick(Ee,be),q(I,be,!0),be):(Oe.pendingcb++,Pe(I,Oe,D,z,Ee))}l(xe,"_e"),e(xe,"_write"),we.prototype.write=function(I,D,z){return xe(this||nt,I,D,z)===!0},we.prototype.cork=function(){(this||nt)._writableState.corked++},we.prototype.uncork=function(){let I=(this||nt)._writableState;I.corked&&(I.corked--,I.writing||ye(this||nt,I))},we.prototype.setDefaultEncoding=e(function(I){if(typeof I=="string"&&(I=u(I)),!y.isEncoding(I))throw new V(I);return(this||nt)._writableState.defaultEncoding=I,this||nt},"setDefaultEncoding");function Pe(I,D,z,Ee,Oe){let be=D.objectMode?1:z.length;D.length+=be;let ge=D.length<D.highWaterMark;return ge||(D.needDrain=!0),D.writing||D.corked||D.errored||!D.constructed?(D.buffered.push({chunk:z,encoding:Ee,callback:Oe}),D.allBuffers&&Ee!=="buffer"&&(D.allBuffers=!1),D.allNoop&&Oe!==G&&(D.allNoop=!1)):(D.writelen=be,D.writecb=Oe,D.writing=!0,D.sync=!0,I._write(z,Ee,D.onwrite),D.sync=!1),ge&&!D.errored&&!D.destroyed}l(Pe,"pe"),e(Pe,"writeOrBuffer");function se(I,D,z,Ee,Oe,be,ge){D.writelen=Ee,D.writecb=ge,D.writing=!0,D.sync=!0,D.destroyed?D.onwrite(new x("write")):z?I._writev(Oe,D.onwrite):I._write(Oe,be,D.onwrite),D.sync=!1}l(se,"Q"),e(se,"doWrite");function Te(I,D,z,Ee){--D.pendingcb,Ee(z),X(D),q(I,z)}l(Te,"he"),e(Te,"onwriteError");function J(I,D){let z=I._writableState,Ee=z.sync,Oe=z.writecb;if(typeof Oe!="function"){q(I,new P);return}z.writing=!1,z.writecb=null,z.length-=z.writelen,z.writelen=0,D?(D.stack,z.errored||(z.errored=D),I._readableState&&!I._readableState.errored&&(I._readableState.errored=D),Ee?o.nextTick(Te,I,z,D,Oe):Te(I,z,D,Oe)):(z.buffered.length>z.bufferedIndex&&ye(I,z),Ee?z.afterWriteTickInfo!==null&&z.afterWriteTickInfo.cb===Oe?z.afterWriteTickInfo.count++:(z.afterWriteTickInfo={count:1,cb:Oe,stream:I,state:z},o.nextTick(ue,z.afterWriteTickInfo)):te(I,z,1,Oe))}l(J,"U"),e(J,"onwrite");function ue({stream:I,state:D,count:z,cb:Ee}){return D.afterWriteTickInfo=null,te(I,D,z,Ee)}l(ue,"J"),e(ue,"afterWriteTick");function te(I,D,z,Ee){for(!D.ending&&!I.destroyed&&D.length===0&&D.needDrain&&(D.needDrain=!1,I.emit("drain"));z-- >0;)D.pendingcb--,Ee();D.destroyed&&X(D),H(I,D)}l(te,"z"),e(te,"afterWrite");function X(I){if(I.writing)return;for(let Oe=I.bufferedIndex;Oe<I.buffered.length;++Oe){var D;let{chunk:be,callback:ge}=I.buffered[Oe],Ne=I.objectMode?1:be.length;I.length-=Ne,ge((D=I.errored)!==null&&D!==void 0?D:new x("write"))}let z=I[re].splice(0);for(let Oe=0;Oe<z.length;Oe++){var Ee;z[Oe]((Ee=I.errored)!==null&&Ee!==void 0?Ee:new x("end"))}de(I)}l(X,"V"),e(X,"errorBuffer");function ye(I,D){if(D.corked||D.bufferProcessing||D.destroyed||!D.constructed)return;let{buffered:z,bufferedIndex:Ee,objectMode:Oe}=D,be=z.length-Ee;if(!be)return;let ge=Ee;if(D.bufferProcessing=!0,be>1&&I._writev){D.pendingcb-=be-1;let Ne=D.allNoop?G:ke=>{for(let Ce=ge;Ce<z.length;++Ce)z[Ce].callback(ke)},Ie=D.allNoop&&ge===0?z:i(z,ge);Ie.allBuffers=D.allBuffers,se(I,D,!0,D.length,Ie,"",Ne),de(D)}else{do{let{chunk:Ne,encoding:Ie,callback:ke}=z[ge];z[ge++]=null;let Ce=Oe?1:Ne.length;se(I,D,!1,Ce,Ne,Ie,ke)}while(ge<z.length&&!D.writing);ge===z.length?de(D):ge>256?(z.splice(0,ge),D.bufferedIndex=0):D.bufferedIndex=ge}D.bufferProcessing=!1}l(ye,"G"),e(ye,"clearBuffer"),we.prototype._write=function(I,D,z){if((this||nt)._writev)this._writev([{chunk:I,encoding:D}],z);else throw new E("_write()")},we.prototype._writev=null,we.prototype.end=function(I,D,z){let Ee=(this||nt)._writableState;typeof I=="function"?(z=I,I=null,D=null):typeof D=="function"&&(z=D,D=null);let Oe;if(I!=null){let be=xe(this||nt,I,D);be instanceof f&&(Oe=be)}return Ee.corked&&(Ee.corked=1,this.uncork()),Oe||(!Ee.errored&&!Ee.ending?(Ee.ending=!0,H(this||nt,Ee,!0),Ee.ended=!0):Ee.finished?Oe=new U("end"):Ee.destroyed&&(Oe=new x("end"))),typeof z=="function"&&(Oe||Ee.finished?o.nextTick(z,Oe):Ee[re].push(z)),this||nt};function Re(I){return I.ending&&!I.destroyed&&I.constructed&&I.length===0&&!I.errored&&I.buffered.length===0&&!I.finished&&!I.writing&&!I.errorEmitted&&!I.closeEmitted}l(Re,"fe"),e(Re,"needFinish");function De(I,D){let z=!1;function Ee(Oe){if(z){q(I,Oe??P());return}if(z=!0,D.pendingcb--,Oe){let be=D[re].splice(0);for(let ge=0;ge<be.length;ge++)be[ge](Oe);q(I,Oe,D.sync)}else Re(D)&&(D.prefinished=!0,I.emit("prefinish"),D.pendingcb++,o.nextTick(Q,I,D))}l(Ee,"ue"),e(Ee,"onFinish"),D.sync=!0,D.pendingcb++;try{I._final(Ee)}catch(Oe){Ee(Oe)}D.sync=!1}l(De,"be"),e(De,"callFinal");function Y(I,D){!D.prefinished&&!D.finalCalled&&(typeof I._final=="function"&&!D.destroyed?(D.finalCalled=!0,De(I,D)):(D.prefinished=!0,I.emit("prefinish")))}l(Y,"D"),e(Y,"prefinish");function H(I,D,z){Re(D)&&(Y(I,D),D.pendingcb===0&&(z?(D.pendingcb++,o.nextTick((Ee,Oe)=>{Re(Oe)?Q(Ee,Oe):Oe.pendingcb--},I,D)):Re(D)&&(D.pendingcb++,Q(I,D))))}l(H,"$"),e(H,"finishMaybe");function Q(I,D){D.pendingcb--,D.finished=!0;let z=D[re].splice(0);for(let Ee=0;Ee<z.length;Ee++)z[Ee]();if(I.emit("finish"),D.autoDestroy){let Ee=I._readableState;(!Ee||Ee.autoDestroy&&(Ee.endEmitted||Ee.readable===!1))&&I.destroy()}}l(Q,"H"),e(Q,"finish"),n(we.prototype,{closed:{__proto__:null,get(){return(this||nt)._writableState?(this||nt)._writableState.closed:!1}},destroyed:{__proto__:null,get(){return(this||nt)._writableState?(this||nt)._writableState.destroyed:!1},set(I){(this||nt)._writableState&&((this||nt)._writableState.destroyed=I)}},writable:{__proto__:null,get(){let I=(this||nt)._writableState;return!!I&&I.writable!==!1&&!I.destroyed&&!I.errored&&!I.ending&&!I.ended},set(I){(this||nt)._writableState&&((this||nt)._writableState.writable=!!I)}},writableFinished:{__proto__:null,get(){return(this||nt)._writableState?(this||nt)._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return(this||nt)._writableState?(this||nt)._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return(this||nt)._writableState&&(this||nt)._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return(this||nt)._writableState?(this||nt)._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let I=(this||nt)._writableState;return I?!I.destroyed&&!I.ending&&I.needDrain:!1}},writableHighWaterMark:{__proto__:null,get(){return(this||nt)._writableState&&(this||nt)._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return(this||nt)._writableState?(this||nt)._writableState.corked:0}},writableLength:{__proto__:null,get(){return(this||nt)._writableState&&(this||nt)._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return(this||nt)._writableState?(this||nt)._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:e(function(){return!!((this||nt)._writableState.writable!==!1&&((this||nt)._writableState.destroyed||(this||nt)._writableState.errored)&&!(this||nt)._writableState.finished)},"get")}});let fe=w.destroy;we.prototype.destroy=function(I,D){let z=(this||nt)._writableState;return!z.destroyed&&(z.bufferedIndex<z.buffered.length||z[re].length)&&o.nextTick(X,z),fe.call(this||nt,I,D),this||nt},we.prototype._undestroy=w.undestroy,we.prototype._destroy=function(I,D){D(I)},we.prototype[d.captureRejectionSymbol]=function(I){this.destroy(I)};let ve;function N(){return ve===void 0&&(ve={}),ve}return l(N,"I"),e(N,"lazyWebStreams"),we.fromWeb=function(I,D){return N().newStreamWritableFromWritableStream(I,D)},we.toWeb=function(I){return N().newWritableStreamFromStreamWritable(I)},Mc}l(Cd,"zg");function CP(){var ae;if(X1)return $c;X1=!0;let o=Hn,i=_i(),{isReadable:f,isWritable:p,isIterable:a,isNodeStream:n,isReadableNodeStream:r,isWritableNodeStream:u,isDuplexNodeStream:g,isReadableStream:h,isWritableStream:d}=zn(),m=Ei(),{AbortError:y,codes:{ERR_INVALID_ARG_TYPE:w,ERR_INVALID_RETURN_VALUE:_}}=Lr(),{destroyer:S}=ja(),T=$n(),O=Rf(),E=Cd(),{createDeferredPromise:P}=Or(),A=YE(),x=globalThis.Blob||i.Blob,U=e(typeof x<"u"?function(de){return de instanceof x}:function(de){return!1},"isBlob2"),M=globalThis.AbortController||Ys().AbortController,{FunctionPrototypeCall:ee}=Xt(),V=(ae=class extends T{constructor(we){super(we),we?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),we?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}},l(ae,"q"),ae);e(V,"Duplexify");let q=V;$c=e(l(function de(we,xe){if(g(we))return we;if(r(we))return re({readable:we});if(u(we))return re({writable:we});if(n(we))return re({writable:!1,readable:!1});if(h(we))return re({readable:O.fromWeb(we)});if(d(we))return re({writable:E.fromWeb(we)});if(typeof we=="function"){let{value:se,write:Te,final:J,destroy:ue}=G(we);if(a(se))return A(q,se,{objectMode:!0,write:Te,final:J,destroy:ue});let te=se?.then;if(typeof te=="function"){let X,ye=ee(te,se,Re=>{if(Re!=null)throw new _("nully","body",Re)},Re=>{S(X,Re)});return X=new q({objectMode:!0,readable:!1,write:Te,final(Re){J(async()=>{try{await ye,o.nextTick(Re,null)}catch(De){o.nextTick(Re,De)}})},destroy:ue})}throw new _("Iterable, AsyncIterable or AsyncFunction",xe,se)}if(U(we))return de(we.arrayBuffer());if(a(we))return A(q,we,{objectMode:!0,writable:!1});if(h(we?.readable)&&d(we?.writable))return q.fromWeb(we);if(typeof we?.writable=="object"||typeof we?.readable=="object"){let se=we!=null&&we.readable?r(we?.readable)?we?.readable:de(we.readable):void 0,Te=we!=null&&we.writable?u(we?.writable)?we?.writable:de(we.writable):void 0;return re({readable:se,writable:Te})}let Pe=we?.then;if(typeof Pe=="function"){let se;return ee(Pe,we,Te=>{Te!=null&&se.push(Te),se.push(null)},Te=>{S(se,Te)}),se=new q({objectMode:!0,writable:!1,read(){}})}throw new w(xe,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],we)},"Z"),"duplexify");function G(de){let{promise:we,resolve:xe}=P(),Pe=new M,se=Pe.signal;return{value:de(async function*(){for(;;){let Te=we;we=null;let{chunk:J,done:ue,cb:te}=await Te;if(o.nextTick(te),ue)return;if(se.aborted)throw new y(void 0,{cause:se.reason});({promise:we,resolve:xe}=P()),yield J}}(),{signal:se}),write(Te,J,ue){let te=xe;xe=null,te({chunk:Te,done:!1,cb:ue})},final(Te){let J=xe;xe=null,J({done:!0,cb:Te})},destroy(Te,J){Pe.abort(),J(Te)}}}l(G,"C"),e(G,"fromAsyncGen");function re(de){let we=de.readable&&typeof de.readable.read!="function"?O.wrap(de.readable):de.readable,xe=de.writable,Pe=!!f(we),se=!!p(xe),Te,J,ue,te,X;function ye(Re){let De=te;te=null,De?De(Re):Re&&X.destroy(Re)}return l(ye,"V"),e(ye,"onfinished"),X=new q({readableObjectMode:!!(we!=null&&we.readableObjectMode),writableObjectMode:!!(xe!=null&&xe.writableObjectMode),readable:Pe,writable:se}),se&&(m(xe,Re=>{se=!1,Re&&S(we,Re),ye(Re)}),X._write=function(Re,De,Y){xe.write(Re,De)?Y():Te=Y},X._final=function(Re){xe.end(),J=Re},xe.on("drain",function(){if(Te){let Re=Te;Te=null,Re()}}),xe.on("finish",function(){if(J){let Re=J;J=null,Re()}})),Pe&&(m(we,Re=>{Pe=!1,Re&&S(we,Re),ye(Re)}),we.on("readable",function(){if(ue){let Re=ue;ue=null,Re()}}),we.on("end",function(){X.push(null)}),X._read=function(){for(;;){let Re=we.read();if(Re===null){ue=X._read;return}if(!X.push(Re))return}}),X._destroy=function(Re,De){!Re&&te!==null&&(Re=new y),ue=null,Te=null,J=null,te===null?De(Re):(te=De,S(xe,Re),S(we,Re))},X}return l(re,"j"),e(re,"_duplexify"),$c}l(CP,"MW");function $n(){if(ev)return Wc;ev=!0;let{ObjectDefineProperties:o,ObjectGetOwnPropertyDescriptor:i,ObjectKeys:f,ObjectSetPrototypeOf:p}=Xt();Wc=r;let a=Rf(),n=Cd();p(r.prototype,a.prototype),p(r,a);{let d=f(n.prototype);for(let m=0;m<d.length;m++){let y=d[m];r.prototype[y]||(r.prototype[y]=n.prototype[y])}}function r(d){if(!(this instanceof r))return new r(d);a.call(this,d),n.call(this,d),d?(this.allowHalfOpen=d.allowHalfOpen!==!1,d.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),d.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}l(r,"i"),e(r,"Duplex2"),o(r.prototype,{writable:{__proto__:null,...i(n.prototype,"writable")},writableHighWaterMark:{__proto__:null,...i(n.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...i(n.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...i(n.prototype,"writableBuffer")},writableLength:{__proto__:null,...i(n.prototype,"writableLength")},writableFinished:{__proto__:null,...i(n.prototype,"writableFinished")},writableCorked:{__proto__:null,...i(n.prototype,"writableCorked")},writableEnded:{__proto__:null,...i(n.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...i(n.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(d){this._readableState&&this._writableState&&(this._readableState.destroyed=d,this._writableState.destroyed=d)}}});let u;function g(){return u===void 0&&(u={}),u}l(g,"h"),e(g,"lazyWebStreams"),r.fromWeb=function(d,m){return g().newStreamDuplexFromReadableWritablePair(d,m)},r.toWeb=function(d){return g().newReadableWritablePairFromDuplex(d)};let h;return r.from=function(d){return h||(h=CP()),h(d,"body")},Wc}l($n,"Xn");function ZE(){if(tv)return zc;tv=!0;let{ObjectSetPrototypeOf:o,Symbol:i}=Xt();zc=r;let{ERR_METHOD_NOT_IMPLEMENTED:f}=Lr().codes,p=$n(),{getHighWaterMark:a}=Af();o(r.prototype,p.prototype),o(r,p);let n=i("kCallback");function r(h){if(!(this instanceof r))return new r(h);let d=h?a(this,h,"readableHighWaterMark",!0):null;d===0&&(h={...h,highWaterMark:null,readableHighWaterMark:d,writableHighWaterMark:h.writableHighWaterMark||0}),p.call(this,h),this._readableState.sync=!1,this[n]=null,h&&(typeof h.transform=="function"&&(this._transform=h.transform),typeof h.flush=="function"&&(this._flush=h.flush)),this.on("prefinish",g)}l(r,"i"),e(r,"Transform2");function u(h){typeof this._flush=="function"&&!this.destroyed?this._flush((d,m)=>{if(d){h?h(d):this.destroy(d);return}m!=null&&this.push(m),this.push(null),h&&h()}):(this.push(null),h&&h())}l(u,"f"),e(u,"final");function g(){this._final!==u&&u.call(this)}return l(g,"h"),e(g,"prefinish"),r.prototype._final=u,r.prototype._transform=function(h,d,m){throw new f("_transform()")},r.prototype._write=function(h,d,m){let y=this._readableState,w=this._writableState,_=y.length;this._transform(h,d,(S,T)=>{if(S){m(S);return}T!=null&&this.push(T),w.ended||_===y.length||y.length<y.highWaterMark?m():this[n]=m})},r.prototype._read=function(){if(this[n]){let h=this[n];this[n]=null,h()}},zc}l(ZE,"sR");function QE(){if(rv)return Hc;rv=!0;let{ObjectSetPrototypeOf:o}=Xt();Hc=f;let i=ZE();o(f.prototype,i.prototype),o(f,i);function f(p){if(!(this instanceof f))return new f(p);i.call(this,p)}return l(f,"r"),e(f,"PassThrough2"),f.prototype._transform=function(p,a,n){n(null,p)},Hc}l(QE,"lR");function Ld(){if(nv)return qc;nv=!0;let o=Hn,{ArrayIsArray:i,Promise:f,SymbolAsyncIterator:p,SymbolDispose:a}=Xt(),n=Ei(),{once:r}=Or(),u=ja(),g=$n(),{aggregateTwoErrors:h,codes:{ERR_INVALID_ARG_TYPE:d,ERR_INVALID_RETURN_VALUE:m,ERR_MISSING_ARGS:y,ERR_STREAM_DESTROYED:w,ERR_STREAM_PREMATURE_CLOSE:_},AbortError:S}=Lr(),{validateFunction:T,validateAbortSignal:O}=tl(),{isIterable:E,isReadable:P,isReadableNodeStream:A,isNodeStream:x,isTransformStream:U,isWebStream:M,isReadableStream:ee,isReadableFinished:V}=zn(),q=globalThis.AbortController||Ys().AbortController,G,re,ae;function de(X,ye,Re){let De=!1;X.on("close",()=>{De=!0});let Y=n(X,{readable:ye,writable:Re},H=>{De=!H});return{destroy:e(H=>{De||(De=!0,u.destroyer(X,H||new w("pipe")))},"destroy"),cleanup:Y}}l(de,"K"),e(de,"destroyer");function we(X){return T(X[X.length-1],"streams[stream.length - 1]"),X.pop()}l(we,"se"),e(we,"popCallback");function xe(X){if(E(X))return X;if(A(X))return Pe(X);throw new d("val",["Readable","Iterable","AsyncIterable"],X)}l(xe,"_e"),e(xe,"makeAsyncIterable");async function*Pe(X){re||(re=Rf()),yield*re.prototype[p].call(X)}l(Pe,"pe"),e(Pe,"fromReadable");async function se(X,ye,Re,{end:De}){let Y,H=null,Q=e(N=>{if(N&&(Y=N),H){let I=H;H=null,I()}},"resume"),fe=e(()=>new f((N,I)=>{Y?I(Y):H=e(()=>{Y?I(Y):N()},"onresolve")}),"wait");ye.on("drain",Q);let ve=n(ye,{readable:!1},Q);try{ye.writableNeedDrain&&await fe();for await(let N of X)ye.write(N)||await fe();De&&(ye.end(),await fe()),Re()}catch(N){Re(Y!==N?h(Y,N):N)}finally{ve(),ye.off("drain",Q)}}l(se,"Q"),e(se,"pumpToNode");async function Te(X,ye,Re,{end:De}){U(ye)&&(ye=ye.writable);let Y=ye.getWriter();try{for await(let H of X)await Y.ready,Y.write(H).catch(()=>{});await Y.ready,De&&await Y.close(),Re()}catch(H){try{await Y.abort(H),Re(H)}catch(Q){Re(Q)}}}l(Te,"he"),e(Te,"pumpToWeb");function J(...X){return ue(X,r(we(X)))}l(J,"U"),e(J,"pipeline2");function ue(X,ye,Re){if(X.length===1&&i(X[0])&&(X=X[0]),X.length<2)throw new y("streams");let De=new q,Y=De.signal,H=Re?.signal,Q=[];O(H,"options.signal");function fe(){Oe(new S)}l(fe,"te"),e(fe,"abort2"),ae=ae||Or().addAbortListener;let ve;H&&(ve=ae(H,fe));let N,I,D=[],z=0;function Ee(Ie){Oe(Ie,--z===0)}l(Ee,"ue"),e(Ee,"finish");function Oe(Ie,ke){var Ce;if(Ie&&(!N||N.code==="ERR_STREAM_PREMATURE_CLOSE")&&(N=Ie),!(!N&&!ke)){for(;D.length;)D.shift()(N);(Ce=ve)===null||Ce===void 0||Ce[a](),De.abort(),ke&&(N||Q.forEach($e=>$e()),o.nextTick(ye,N,I))}}l(Oe,"le"),e(Oe,"finishImpl");let be;for(let Ie=0;Ie<X.length;Ie++){let ke=X[Ie],Ce=Ie<X.length-1,$e=Ie>0,Ke=Ce||Re?.end!==!1,t=Ie===X.length-1;if(x(ke)){let s=e(function(c){c&&c.name!=="AbortError"&&c.code!=="ERR_STREAM_PREMATURE_CLOSE"&&Ee(c)},"onError");if(Ke){let{destroy:c,cleanup:v}=de(ke,Ce,$e);D.push(c),P(ke)&&t&&Q.push(v)}ke.on("error",s),P(ke)&&t&&Q.push(()=>{ke.removeListener("error",s)})}if(Ie===0)if(typeof ke=="function"){if(be=ke({signal:Y}),!E(be))throw new m("Iterable, AsyncIterable or Stream","source",be)}else E(ke)||A(ke)||U(ke)?be=ke:be=g.from(ke);else if(typeof ke=="function"){if(U(be)){var ge;be=xe((ge=be)===null||ge===void 0?void 0:ge.readable)}else be=xe(be);if(be=ke(be,{signal:Y}),Ce){if(!E(be,!0))throw new m("AsyncIterable",`transform[${Ie-1}]`,be)}else{var Ne;G||(G=QE());let s=new G({objectMode:!0}),c=(Ne=be)===null||Ne===void 0?void 0:Ne.then;if(typeof c=="function")z++,c.call(be,C=>{I=C,C!=null&&s.write(C),Ke&&s.end(),o.nextTick(Ee)},C=>{s.destroy(C),o.nextTick(Ee,C)});else if(E(be,!0))z++,se(be,s,Ee,{end:Ke});else if(ee(be)||U(be)){let C=be.readable||be;z++,se(C,s,Ee,{end:Ke})}else throw new m("AsyncIterable or Promise","destination",be);be=s;let{destroy:v,cleanup:R}=de(be,!1,!0);D.push(v),t&&Q.push(R)}}else if(x(ke)){if(A(be)){z+=2;let s=te(be,ke,Ee,{end:Ke});P(ke)&&t&&Q.push(s)}else if(U(be)||ee(be)){let s=be.readable||be;z++,se(s,ke,Ee,{end:Ke})}else if(E(be))z++,se(be,ke,Ee,{end:Ke});else throw new d("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],be);be=ke}else if(M(ke)){if(A(be))z++,Te(xe(be),ke,Ee,{end:Ke});else if(ee(be)||E(be))z++,Te(be,ke,Ee,{end:Ke});else if(U(be))z++,Te(be.readable,ke,Ee,{end:Ke});else throw new d("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],be);be=ke}else be=g.from(ke)}return(Y!=null&&Y.aborted||H!=null&&H.aborted)&&o.nextTick(fe),be}l(ue,"J"),e(ue,"pipelineImpl");function te(X,ye,Re,{end:De}){let Y=!1;if(ye.on("close",()=>{Y||Re(new _)}),X.pipe(ye,{end:!1}),De){let H=e(function(){Y=!0,ye.end()},"endFn");V(X)?o.nextTick(H):X.once("end",H)}else Re();return n(X,{readable:!0,writable:!1},H=>{let Q=X._readableState;H&&H.code==="ERR_STREAM_PREMATURE_CLOSE"&&Q&&Q.ended&&!Q.errored&&!Q.errorEmitted?X.once("end",Re).once("error",Re):Re(H)}),n(ye,{readable:!1,writable:!0},Re)}return l(te,"z"),e(te,"pipe"),qc={pipelineImpl:ue,pipeline:J},qc}l(Ld,"Vg");function XE(){if(iv)return Gc;iv=!0;let{pipeline:o}=Ld(),i=$n(),{destroyer:f}=ja(),{isNodeStream:p,isReadable:a,isWritable:n,isWebStream:r,isTransformStream:u,isWritableStream:g,isReadableStream:h}=zn(),{AbortError:d,codes:{ERR_INVALID_ARG_VALUE:m,ERR_MISSING_ARGS:y}}=Lr(),w=Ei();return Gc=e(function(..._){if(_.length===0)throw new y("streams");if(_.length===1)return i.from(_[0]);let S=[..._];if(typeof _[0]=="function"&&(_[0]=i.from(_[0])),typeof _[_.length-1]=="function"){let q=_.length-1;_[q]=i.from(_[q])}for(let q=0;q<_.length;++q)if(!(!p(_[q])&&!r(_[q]))){if(q<_.length-1&&!(a(_[q])||h(_[q])||u(_[q])))throw new m(`streams[${q}]`,S[q],"must be readable");if(q>0&&!(n(_[q])||g(_[q])||u(_[q])))throw new m(`streams[${q}]`,S[q],"must be writable")}let T,O,E,P,A;function x(q){let G=P;P=null,G?G(q):q?A.destroy(q):!V&&!ee&&A.destroy()}l(x,"B"),e(x,"onfinished");let U=_[0],M=o(_,x),ee=!!(n(U)||g(U)||u(U)),V=!!(a(M)||h(M)||u(M));if(A=new i({writableObjectMode:!!(U!=null&&U.writableObjectMode),readableObjectMode:!!(M!=null&&M.readableObjectMode),writable:ee,readable:V}),ee){if(p(U))A._write=function(G,re,ae){U.write(G,re)?ae():T=ae},A._final=function(G){U.end(),O=G},U.on("drain",function(){if(T){let G=T;T=null,G()}});else if(r(U)){let G=(u(U)?U.writable:U).getWriter();A._write=async function(re,ae,de){try{await G.ready,G.write(re).catch(()=>{}),de()}catch(we){de(we)}},A._final=async function(re){try{await G.ready,G.close().catch(()=>{}),O=re}catch(ae){re(ae)}}}let q=u(M)?M.readable:M;w(q,()=>{if(O){let G=O;O=null,G()}})}if(V){if(p(M))M.on("readable",function(){if(E){let q=E;E=null,q()}}),M.on("end",function(){A.push(null)}),A._read=function(){for(;;){let q=M.read();if(q===null){E=A._read;return}if(!A.push(q))return}};else if(r(M)){let q=(u(M)?M.readable:M).getReader();A._read=async function(){for(;;)try{let{value:G,done:re}=await q.read();if(!A.push(G))return;if(re){A.push(null);return}}catch{return}}}}return A._destroy=function(q,G){!q&&P!==null&&(q=new d),E=null,T=null,O=null,P===null?G(q):(P=G,p(M)&&f(M,q))},A},"compose"),Gc}l(XE,"fR");function LP(){var Q;if(ov)return Dl;ov=!0;let o=globalThis.AbortController||Ys().AbortController,{codes:{ERR_INVALID_ARG_VALUE:i,ERR_INVALID_ARG_TYPE:f,ERR_MISSING_ARGS:p,ERR_OUT_OF_RANGE:a},AbortError:n}=Lr(),{validateAbortSignal:r,validateInteger:u,validateObject:g}=tl(),h=Xt().Symbol("kWeak"),d=Xt().Symbol("kResistStopPropagation"),{finished:m}=Ei(),y=XE(),{addAbortSignalNoValidate:w}=Sf(),{isWritable:_,isNodeStream:S}=zn(),{deprecate:T}=Or(),{ArrayPrototypePush:O,Boolean:E,MathFloor:P,Number:A,NumberIsNaN:x,Promise:U,PromiseReject:M,PromiseResolve:ee,PromisePrototypeThen:V,Symbol:q}=Xt(),G=q("kEmpty"),re=q("kEof");function ae(fe,ve){if(ve!=null&&g(ve,"options"),ve?.signal!=null&&r(ve.signal,"options.signal"),S(fe)&&!_(fe))throw new i("stream",fe,"must be writable");let N=y(this,fe);return ve!=null&&ve.signal&&w(ve.signal,N),N}l(ae,"Z"),e(ae,"compose");function de(fe,ve){if(typeof fe!="function")throw new f("fn",["Function","AsyncFunction"],fe);ve!=null&&g(ve,"options"),ve?.signal!=null&&r(ve.signal,"options.signal");let N=1;ve?.concurrency!=null&&(N=P(ve.concurrency));let I=N-1;return ve?.highWaterMark!=null&&(I=P(ve.highWaterMark)),u(N,"options.concurrency",1),u(I,"options.highWaterMark",0),I+=N,e(async function*(){let D=Or().AbortSignalAny([ve?.signal].filter(E)),z=this,Ee=[],Oe={signal:D},be,ge,Ne=!1,Ie=0;function ke(){Ne=!0,Ce()}l(ke,"ve"),e(ke,"onCatch");function Ce(){Ie-=1,$e()}l(Ce,"Me"),e(Ce,"afterItemProcessed");function $e(){ge&&!Ne&&Ie<N&&Ee.length<I&&(ge(),ge=null)}l($e,"Be"),e($e,"maybeResume");async function Ke(){try{for await(let t of z){if(Ne)return;if(D.aborted)throw new n;try{if(t=fe(t,Oe),t===G)continue;t=ee(t)}catch(s){t=M(s)}Ie+=1,V(t,Ce,ke),Ee.push(t),be&&(be(),be=null),!Ne&&(Ee.length>=I||Ie>=N)&&await new U(s=>{ge=s})}Ee.push(re)}catch(t){let s=M(t);V(s,Ce,ke),Ee.push(s)}finally{Ne=!0,be&&(be(),be=null)}}l(Ke,"Je"),e(Ke,"pump"),Ke();try{for(;;){for(;Ee.length>0;){let t=await Ee[0];if(t===re)return;if(D.aborted)throw new n;t!==G&&(yield t),Ee.shift(),$e()}await new U(t=>{be=t})}}finally{Ne=!0,ge&&(ge(),ge=null)}},"map2").call(this)}l(de,"K"),e(de,"map");function we(fe=void 0){return fe!=null&&g(fe,"options"),fe?.signal!=null&&r(fe.signal,"options.signal"),e(async function*(){let ve=0;for await(let I of this){var N;if(fe!=null&&(N=fe.signal)!==null&&N!==void 0&&N.aborted)throw new n({cause:fe.signal.reason});yield[ve++,I]}},"asIndexedPairs2").call(this)}l(we,"se"),e(we,"asIndexedPairs");async function xe(fe,ve=void 0){for await(let N of J.call(this,fe,ve))return!0;return!1}l(xe,"_e"),e(xe,"some");async function Pe(fe,ve=void 0){if(typeof fe!="function")throw new f("fn",["Function","AsyncFunction"],fe);return!await xe.call(this,async(...N)=>!await fe(...N),ve)}l(Pe,"pe"),e(Pe,"every");async function se(fe,ve){for await(let N of J.call(this,fe,ve))return N}l(se,"Q"),e(se,"find");async function Te(fe,ve){if(typeof fe!="function")throw new f("fn",["Function","AsyncFunction"],fe);async function N(I,D){return await fe(I,D),G}l(N,"oe"),e(N,"forEachFn");for await(let I of de.call(this,N,ve));}l(Te,"he"),e(Te,"forEach");function J(fe,ve){if(typeof fe!="function")throw new f("fn",["Function","AsyncFunction"],fe);async function N(I,D){return await fe(I,D)?I:G}return l(N,"oe"),e(N,"filterFn"),de.call(this,N,ve)}l(J,"U"),e(J,"filter");let ue=(Q=class extends p{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}},l(Q,"$"),Q);e(ue,"ReduceAwareErrMissingArgs");let te=ue;async function X(fe,ve,N){var I;if(typeof fe!="function")throw new f("reducer",["Function","AsyncFunction"],fe);N!=null&&g(N,"options"),N?.signal!=null&&r(N.signal,"options.signal");let D=arguments.length>1;if(N!=null&&(I=N.signal)!==null&&I!==void 0&&I.aborted){let ge=new n(void 0,{cause:N.signal.reason});throw this.once("error",()=>{}),await m(this.destroy(ge)),ge}let z=new o,Ee=z.signal;if(N!=null&&N.signal){let ge={once:!0,[h]:this,[d]:!0};N.signal.addEventListener("abort",()=>z.abort(),ge)}let Oe=!1;try{for await(let ge of this){var be;if(Oe=!0,N!=null&&(be=N.signal)!==null&&be!==void 0&&be.aborted)throw new n;D?ve=await fe(ve,ge,{signal:Ee}):(ve=ge,D=!0)}if(!Oe&&!D)throw new te}finally{z.abort()}return ve}l(X,"z"),e(X,"reduce");async function ye(fe){fe!=null&&g(fe,"options"),fe?.signal!=null&&r(fe.signal,"options.signal");let ve=[];for await(let I of this){var N;if(fe!=null&&(N=fe.signal)!==null&&N!==void 0&&N.aborted)throw new n(void 0,{cause:fe.signal.reason});O(ve,I)}return ve}l(ye,"V"),e(ye,"toArray");function Re(fe,ve){let N=de.call(this,fe,ve);return e(async function*(){for await(let I of N)yield*I},"flatMap2").call(this)}l(Re,"G"),e(Re,"flatMap");function De(fe){if(fe=A(fe),x(fe))return 0;if(fe<0)throw new a("number",">= 0",fe);return fe}l(De,"fe"),e(De,"toIntegerOrInfinity");function Y(fe,ve=void 0){return ve!=null&&g(ve,"options"),ve?.signal!=null&&r(ve.signal,"options.signal"),fe=De(fe),e(async function*(){var N;if(ve!=null&&(N=ve.signal)!==null&&N!==void 0&&N.aborted)throw new n;for await(let D of this){var I;if(ve!=null&&(I=ve.signal)!==null&&I!==void 0&&I.aborted)throw new n;fe--<=0&&(yield D)}},"drop2").call(this)}l(Y,"be"),e(Y,"drop");function H(fe,ve=void 0){return ve!=null&&g(ve,"options"),ve?.signal!=null&&r(ve.signal,"options.signal"),fe=De(fe),e(async function*(){var N;if(ve!=null&&(N=ve.signal)!==null&&N!==void 0&&N.aborted)throw new n;for await(let D of this){var I;if(ve!=null&&(I=ve.signal)!==null&&I!==void 0&&I.aborted)throw new n;if(fe-- >0&&(yield D),fe<=0)return}},"take2").call(this)}return l(H,"D"),e(H,"take"),Dl.streamReturningOperators={asIndexedPairs:T(we,"readable.asIndexedPairs will be removed in a future version."),drop:Y,filter:J,flatMap:Re,map:de,take:H,compose:ae},Dl.promiseReturningOperators={every:Pe,forEach:Te,reduce:X,toArray:ye,some:xe,find:se},Dl}l(LP,"UW");function e2(){if(av)return Vc;av=!0;let{ArrayPrototypePop:o,Promise:i}=Xt(),{isIterable:f,isNodeStream:p,isWebStream:a}=zn(),{pipelineImpl:n}=Ld(),{finished:r}=Ei();t2();function u(...g){return new i((h,d)=>{let m,y,w=g[g.length-1];if(w&&typeof w=="object"&&!p(w)&&!f(w)&&!a(w)){let _=o(g);m=_.signal,y=_.end}n(g,(_,S)=>{_?d(_):h(S)},{signal:m,end:y})})}return l(u,"f"),e(u,"pipeline2"),Vc={finished:r,pipeline:u},Vc}l(e2,"uR");function t2(){if(sv)return Kc;sv=!0;let{Buffer:o}=_i(),{ObjectDefineProperty:i,ObjectKeys:f,ReflectApply:p}=Xt(),{promisify:{custom:a}}=Or(),{streamReturningOperators:n,promiseReturningOperators:r}=LP(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:u}}=Lr(),g=XE(),{setDefaultHighWaterMark:h,getDefaultHighWaterMark:d}=Af(),{pipeline:m}=Ld(),{destroyer:y}=ja(),w=Ei(),_=e2(),S=zn(),T=Kc=jd().Stream;T.isDestroyed=S.isDestroyed,T.isDisturbed=S.isDisturbed,T.isErrored=S.isErrored,T.isReadable=S.isReadable,T.isWritable=S.isWritable,T.Readable=Rf();for(let E of f(n)){let P=e(function(...x){if(new.target)throw u();return T.Readable.from(p(A,this||lv,x))},"fn"),A=n[E];i(P,"name",{__proto__:null,value:A.name}),i(P,"length",{__proto__:null,value:A.length}),i(T.Readable.prototype,E,{__proto__:null,value:P,enumerable:!1,configurable:!0,writable:!0})}for(let E of f(r)){let P=e(function(...x){if(new.target)throw u();return p(A,this||lv,x)},"fn"),A=r[E];i(P,"name",{__proto__:null,value:A.name}),i(P,"length",{__proto__:null,value:A.length}),i(T.Readable.prototype,E,{__proto__:null,value:P,enumerable:!1,configurable:!0,writable:!0})}T.Writable=Cd(),T.Duplex=$n(),T.Transform=ZE(),T.PassThrough=QE(),T.pipeline=m;let{addAbortSignal:O}=Sf();return T.addAbortSignal=O,T.finished=w,T.destroy=y,T.compose=g,T.setDefaultHighWaterMark=h,T.getDefaultHighWaterMark=d,i(T,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return _}}),i(m,a,{__proto__:null,enumerable:!0,get(){return _.pipeline}}),i(w,a,{__proto__:null,enumerable:!0,get(){return _.finished}}),T.Stream=T,T._isUint8Array=e(function(E){return E instanceof Uint8Array},"isUint8Array"),T._uint8ArrayToBuffer=e(function(E){return o.from(E.buffer,E.byteOffset,E.byteLength)},"_uint8ArrayToBuffer"),Kc}l(t2,"cR");function fT(){if(fv)return Qt;fv=!0;let o=t2(),i=e2(),f=o.Readable.destroy;return Qt=o.Readable,Qt._uint8ArrayToBuffer=o._uint8ArrayToBuffer,Qt._isUint8Array=o._isUint8Array,Qt.isDisturbed=o.isDisturbed,Qt.isErrored=o.isErrored,Qt.isReadable=o.isReadable,Qt.Readable=o.Readable,Qt.Writable=o.Writable,Qt.Duplex=o.Duplex,Qt.Transform=o.Transform,Qt.PassThrough=o.PassThrough,Qt.addAbortSignal=o.addAbortSignal,Qt.finished=o.finished,Qt.destroy=o.destroy,Qt.destroy=f,Qt.pipeline=o.pipeline,Qt.compose=o.compose,Object.defineProperty(o,"promises",{configurable:!0,enumerable:!0,get(){return i}}),Qt.Stream=o.Stream,Qt.default=Qt,Qt}l(fT,"jW");var As,$b,ac,Wb,Wi,zb,Cl,Hb,mi,iN,oN,aN,sN,lN,fN,Nn,va,ua,Yl,uT,cT,hT,dT,pT,gT,yT,mT,wT,bT,vT,_T,ET,ST,AT,RT,OT,kT,TT,FT,BT,cu,xT,IT,PT,jT,CT,LT,NT,DT,UT,MT,$T,WT,zT,HT,qT,GT,VT,KT,JT,YT,ZT,QT,XT,eF,tF,di,Ty,sc,rF,nF,iF,oF,aF,sF,lF,fF,uF,cF,hF,Hn,Rs,qb,lc,Gb,fc,uN,Vb,Kb,Jb,Yb,Zb,Qb,Xb,e1,t1,r1,n1,i1,o1,a1,s1,l1,uc,f1,cc,u1,hc,c1,dc,h1,pc,d1,gc,p1,yc,g1,mc,y1,wc,m1,bc,w1,vc,b1,Os,v1,_c,_1,Ec,E1,Sc,S1,Ac,A1,Rc,R1,Oc,O1,kc,k1,T1,F1,Tc,B1,NP,Fc,x1,DP,Bc,I1,St,P1,j1,C1,At,L1,ks,wt,cN,hN,dN,pN,gN,yN,mN,wN,bN,vN,_N,EN,SN,AN,RN,ON,kN,TN,FN,BN,xN,IN,PN,Fy,jN,CN,LN,N1,D1,Ts,U1,Ll,M1,xc,$1,Ic,W1,Pc,z1,Nl,H1,jc,q1,Cc,G1,Fs,V1,Lc,K1,Nc,J1,Dc,Y1,Uc,Z1,Ze,Mc,Q1,nt,$c,X1,Wc,ev,zc,tv,Hc,rv,qc,nv,Gc,iv,Dl,ov,Vc,av,Kc,sv,lv,Qt,fv,Ut,Jc,UP,MP,$P,WP,zP,HP,qP,GP,NN=er(()=>{As={},$b=!1,e(lP,"dew$2"),ac={},Wb=!1,e(fP,"dew$1"),Wi={},zb=!1,e(_i,"dew"),Cl={},Hb=!1,e(Zk,"dew2"),mi=Zk(),mi.once,mi.once=function(o,i){return new Promise((f,p)=>{function a(...r){n!==void 0&&o.removeListener("error",n),f(r)}l(a,"a"),e(a,"eventListener");let n;i!=="error"&&(n=e(r=>{o.removeListener(name,a),p(r)},"errorListener"),o.once("error",n)),o.once(i,a)})},mi.on=function(o,i){let f=[],p=[],a=null,n=!1,r={async next(){let h=f.shift();if(h)return createIterResult(h,!1);if(a){let d=Promise.reject(a);return a=null,d}return n?createIterResult(void 0,!0):new Promise((d,m)=>p.push({resolve:d,reject:m}))},async return(){o.removeListener(i,u),o.removeListener("error",g),n=!0;for(let h of p)h.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(h){a=h,o.removeListener(i,u),o.removeListener("error",g)},[Symbol.asyncIterator](){return this}};return o.on(i,u),o.on("error",g),r;function u(...h){let d=p.shift();d?d.resolve(createIterResult(h,!1)):f.push(h)}function g(h){n=!0;let d=p.shift();d?d.reject(h):a=h,r.return()}},{EventEmitter:iN,defaultMaxListeners:oN,init:aN,listenerCount:sN,on:lN,once:fN}=mi,e(hd,"unimplemented"),Nn=[],va=!1,Yl=-1,e(uP,"cleanUpNextTick"),e(HE,"drainQueue"),e(Qk,"nextTick"),e(Mb,"Item"),Mb.prototype.run=function(){this.fun.apply(null,this.array)},uT="browser",cT="x64",hT="browser",dT={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},pT=["/usr/bin/node"],gT=[],yT="v16.8.0",mT={},wT=e(function(o,i){console.warn((i?i+": ":"")+o)},"emitWarning"),bT=e(function(o){hd("binding")},"binding"),vT=e(function(o){return 0},"umask"),_T=e(function(){return"/"},"cwd"),ET=e(function(o){},"chdir"),ST={name:"node",sourceUrl:"",headersUrl:"",libUrl:""},e(_r,"noop"),AT=_r,RT=[],e(Xk,"_linkedBinding"),OT={},kT=!1,TT={},e(eT,"dlopen"),e(tT,"_getActiveRequests"),e(rT,"_getActiveHandles"),FT=_r,BT=_r,cu=e(function(){return{}},"cpuUsage"),xT=cu,IT=cu,PT=_r,jT=_r,CT=_r,LT={},e(nT,"assert"),NT={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},DT=_r,UT=_r,e(iT,"hasUncaughtExceptionCaptureCallback"),MT=_r,$T=_r,WT=_r,zT=_r,HT=_r,qT=void 0,GT=void 0,VT=void 0,KT=_r,JT=2,YT=1,ZT="/bin/usr/node",QT=9229,XT="node",eF=[],tF=_r,di={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0},di.now===void 0&&(Ty=Date.now(),di.timing&&di.timing.navigationStart&&(Ty=di.timing.navigationStart),di.now=()=>Date.now()-Ty),e(oT,"uptime"),sc=1e9,e(uu,"hrtime"),uu.bigint=function(o){var i=uu(o);return typeof BigInt>"u"?i[0]*sc+i[1]:BigInt(i[0]*sc)+BigInt(i[1])},rF=10,nF={},iF=0,e(ei,"on2"),oF=ei,aF=ei,sF=ei,lF=ei,fF=ei,uF=_r,cF=ei,hF=ei,e(aT,"listeners"),Hn={version:yT,versions:mT,arch:cT,platform:hT,release:ST,_rawDebug:AT,moduleLoadList:RT,binding:bT,_linkedBinding:Xk,_events:nF,_eventsCount:iF,_maxListeners:rF,on:ei,addListener:oF,once:aF,off:sF,removeListener:lF,removeAllListeners:fF,emit:uF,prependListener:cF,prependOnceListener:hF,listeners:aT,domain:OT,_exiting:kT,config:TT,dlopen:eT,uptime:oT,_getActiveRequests:tT,_getActiveHandles:rT,reallyExit:FT,_kill:BT,cpuUsage:cu,resourceUsage:xT,memoryUsage:IT,kill:PT,exit:jT,openStdin:CT,allowedNodeEnvironmentFlags:LT,assert:nT,features:NT,_fatalExceptions:DT,setUncaughtExceptionCaptureCallback:UT,hasUncaughtExceptionCaptureCallback:iT,emitWarning:wT,nextTick:Qk,_tickCallback:MT,_debugProcess:$T,_debugEnd:WT,_startProfilerIdleNotifier:zT,_stopProfilerIdleNotifier:HT,stdout:qT,stdin:VT,stderr:GT,abort:KT,umask:vT,chdir:ET,cwd:_T,env:dT,title:uT,argv:pT,execArgv:gT,pid:JT,ppid:YT,execPath:ZT,debugPort:QT,hrtime:uu,argv0:XT,_preload_modules:eF,setSourceMapsEnabled:tF},Rs={},qb=!1,e(cP,"dew$12"),lc={},Gb=!1,e(sT,"dew3"),fc=sT(),fc.StringDecoder,uN=fc.StringDecoder,Vb={},Kb=!1,e(qE,"dew$k"),Jb={},Yb=!1,e(hP,"dew$j"),Zb={},Qb=!1,e(dP,"dew$i"),Xb={},e1=!1,e(pP,"dew$h"),t1={},r1=!1,e(gP,"dew$g"),n1={},i1=!1,e(GE,"dew$f"),o1={},a1=!1,e(Ef,"dew$e"),s1={},l1=!1,e(yP,"dew$d"),uc={},f1=!1,e(mP,"dew$c"),cc={},u1=!1,e(wP,"dew$b"),hc={},c1=!1,e(bP,"dew$a"),dc={},h1=!1,e(Bd,"dew$9"),pc={},d1=!1,e(vP,"dew$8"),gc={},p1=!1,e(el,"dew$7"),yc={},g1=!1,e(xd,"dew$6"),mc={},y1=!1,e(Id,"dew$5"),wc={},m1=!1,e(_P,"dew$4"),bc={},w1=!1,e(EP,"dew$3"),vc={},b1=!1,e(SP,"dew$22"),Os={},v1=!1,e(VE,"dew$13"),_c={},_1=!1,e(KE,"dew4"),Ec={},E1=!1,e(AP,"dew5"),Sc={},S1=!1,e(Pd,"dew$b2"),Ac={},A1=!1,e(RP,"dew$a2"),Rc={},R1=!1,e(OP,"dew$92"),Oc={},O1=!1,e(kP,"dew$82"),kc={},k1=!1,e(TP,"dew$72"),T1={},F1=!1,e(FP,"dew$62"),Tc={},B1=!1,NP=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(BP,"dew$52"),Fc={},x1=!1,DP=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(JE,"dew$42"),Bc={},I1=!1,e(xP,"dew$32"),St={},P1=!1,e(IP,"dew$23"),j1={},C1=!1,e(PP,"dew$14"),At={},L1=!1,ks=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(lT,"dew6"),wt=lT(),wt.format,wt.deprecate,wt.debuglog,wt.inspect,wt.types,wt.isArray,wt.isBoolean,wt.isNull,wt.isNullOrUndefined,wt.isNumber,wt.isString,wt.isSymbol,wt.isUndefined,wt.isRegExp,wt.isObject,wt.isDate,wt.isError,wt.isFunction,wt.isPrimitive,wt.isBuffer,wt.log,wt.inherits,wt._extend,wt.promisify,wt.callbackify,cN=wt._extend,hN=wt.callbackify,dN=wt.debuglog,pN=wt.deprecate,gN=wt.format,yN=wt.inherits,mN=wt.inspect,wN=wt.isArray,bN=wt.isBoolean,vN=wt.isBuffer,_N=wt.isDate,EN=wt.isError,SN=wt.isFunction,AN=wt.isNull,RN=wt.isNullOrUndefined,ON=wt.isNumber,kN=wt.isObject,TN=wt.isPrimitive,FN=wt.isRegExp,BN=wt.isString,xN=wt.isSymbol,IN=wt.isUndefined,PN=wt.log,Fy=wt.promisify,jN=wt.types,CN=wt.TextEncoder=globalThis.TextEncoder,LN=wt.TextDecoder=globalThis.TextDecoder,N1={},D1=!1,e(Xt,"dew$o"),Ts={},U1=!1,e(Ys,"dew$n"),Ll={},M1=!1,e(Or,"dew$m"),xc={},$1=!1,e(Lr,"dew$l"),Ic={},W1=!1,e(tl,"dew$k2"),Pc={},z1=!1,e(zn,"dew$j2"),Nl={},H1=!1,e(Ei,"dew$i2"),jc={},q1=!1,e(ja,"dew$h2"),Cc={},G1=!1,e(jd,"dew$g2"),Fs={},V1=!1,e(Sf,"dew$f2"),Lc={},K1=!1,e(jP,"dew$e2"),Nc={},J1=!1,e(Af,"dew$d2"),Dc={},Y1=!1,e(YE,"dew$c2"),Uc={},Z1=!1,Ze=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(Rf,"dew$b3"),Mc={},Q1=!1,nt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(Cd,"dew$a3"),$c={},X1=!1,e(CP,"dew$93"),Wc={},ev=!1,e($n,"dew$83"),zc={},tv=!1,e(ZE,"dew$73"),Hc={},rv=!1,e(QE,"dew$63"),qc={},nv=!1,e(Ld,"dew$53"),Gc={},iv=!1,e(XE,"dew$43"),Dl={},ov=!1,e(LP,"dew$33"),Vc={},av=!1,e(e2,"dew$24"),Kc={},sv=!1,lv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(t2,"dew$15"),Qt={},fv=!1,e(fT,"dew7"),Ut=fT(),Ut._uint8ArrayToBuffer,Ut._isUint8Array,Ut.isDisturbed,Ut.isErrored,Ut.isReadable,Ut.Readable,Ut.Writable,Ut.Duplex,Ut.Transform,Ut.PassThrough,Ut.addAbortSignal,Ut.finished,Ut.destroy,Ut.pipeline,Ut.compose,Ut.Stream,Jc=Ut.Readable,Jc.wrap=function(o,i){return i=Object.assign({objectMode:o.readableObjectMode!=null||o.objectMode!=null||!0},i),i.destroy=function(f,p){o.destroy(f),p(f)},new Jc(i).wrap(o)},UP=Ut.Writable,MP=Ut.Duplex,$P=Ut.Transform,WP=Ut.PassThrough,zP=Ut.finished,HP=Ut.pipeline,qP=Ut.Stream,GP={finished:Fy(Ut.finished),pipeline:Fy(Ut.pipeline)}}),VP={};ln(VP,{Duplex:l(()=>MP,"Duplex"),PassThrough:l(()=>WP,"PassThrough"),Readable:l(()=>Jc,"Readable"),Stream:l(()=>qP,"Stream"),Transform:l(()=>$P,"Transform"),Writable:l(()=>UP,"Writable"),finished:l(()=>zP,"finished"),pipeline:l(()=>HP,"pipeline"),promises:l(()=>GP,"promises")});var DN=er(()=>{NN()}),UN=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.Writable=o.Readable=void 0;var i=(DN(),dr(VP));Object.defineProperty(o,"Readable",{enumerable:!0,get:e(function(){return i.Readable},"get")}),Object.defineProperty(o,"Writable",{enumerable:!0,get:e(function(){return i.Writable},"get")})});function dF(){if(uv)return Ul;uv=!0;var o=typeof Reflect=="object"?Reflect:null,i=o&&typeof o.apply=="function"?o.apply:e(function(A,x,U){return Function.prototype.apply.call(A,x,U)},"ReflectApply2"),f;o&&typeof o.ownKeys=="function"?f=o.ownKeys:Object.getOwnPropertySymbols?f=e(function(A){return Object.getOwnPropertyNames(A).concat(Object.getOwnPropertySymbols(A))},"ReflectOwnKeys2"):f=e(function(A){return Object.getOwnPropertyNames(A)},"ReflectOwnKeys2");function p(A){console&&console.warn&&console.warn(A)}l(p,"n"),e(p,"ProcessEmitWarning");var a=Number.isNaN||e(function(A){return A!==A},"NumberIsNaN2");function n(){n.init.call(this)}l(n,"s"),e(n,"EventEmitter2"),Ul=n,Ul.once=O,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._eventsCount=0,n.prototype._maxListeners=void 0;var r=10;function u(A){if(typeof A!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof A)}l(u,"f"),e(u,"checkListener"),Object.defineProperty(n,"defaultMaxListeners",{enumerable:!0,get:e(function(){return r},"get"),set:e(function(A){if(typeof A!="number"||A<0||a(A))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+A+".");r=A},"set")}),n.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},n.prototype.setMaxListeners=e(function(A){if(typeof A!="number"||A<0||a(A))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+A+".");return this._maxListeners=A,this},"setMaxListeners");function g(A){return A._maxListeners===void 0?n.defaultMaxListeners:A._maxListeners}l(g,"h"),e(g,"_getMaxListeners"),n.prototype.getMaxListeners=e(function(){return g(this)},"getMaxListeners"),n.prototype.emit=e(function(A){for(var x=[],U=1;U<arguments.length;U++)x.push(arguments[U]);var M=A==="error",ee=this._events;if(ee!==void 0)M=M&&ee.error===void 0;else if(!M)return!1;if(M){var V;if(x.length>0&&(V=x[0]),V instanceof Error)throw V;var q=new Error("Unhandled error."+(V?" ("+V.message+")":""));throw q.context=V,q}var G=ee[A];if(G===void 0)return!1;if(typeof G=="function")i(G,this,x);else for(var re=G.length,ae=_(G,re),U=0;U<re;++U)i(ae[U],this,x);return!0},"emit");function h(A,x,U,M){var ee,V,q;if(u(U),V=A._events,V===void 0?(V=A._events=Object.create(null),A._eventsCount=0):(V.newListener!==void 0&&(A.emit("newListener",x,U.listener?U.listener:U),V=A._events),q=V[x]),q===void 0)q=V[x]=U,++A._eventsCount;else if(typeof q=="function"?q=V[x]=M?[U,q]:[q,U]:M?q.unshift(U):q.push(U),ee=g(A),ee>0&&q.length>ee&&!q.warned){q.warned=!0;var G=new Error("Possible EventEmitter memory leak detected. "+q.length+" "+String(x)+" listeners added. Use emitter.setMaxListeners() to increase limit");G.name="MaxListenersExceededWarning",G.emitter=A,G.type=x,G.count=q.length,p(G)}return A}l(h,"c"),e(h,"_addListener"),n.prototype.addListener=e(function(A,x){return h(this,A,x,!1)},"addListener"),n.prototype.on=n.prototype.addListener,n.prototype.prependListener=e(function(A,x){return h(this,A,x,!0)},"prependListener");function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}l(d,"d"),e(d,"onceWrapper");function m(A,x,U){var M={fired:!1,wrapFn:void 0,target:A,type:x,listener:U},ee=d.bind(M);return ee.listener=U,M.wrapFn=ee,ee}l(m,"y"),e(m,"_onceWrap"),n.prototype.once=e(function(A,x){return u(x),this.on(A,m(this,A,x)),this},"once3"),n.prototype.prependOnceListener=e(function(A,x){return u(x),this.prependListener(A,m(this,A,x)),this},"prependOnceListener"),n.prototype.removeListener=e(function(A,x){var U,M,ee,V,q;if(u(x),M=this._events,M===void 0)return this;if(U=M[A],U===void 0)return this;if(U===x||U.listener===x)--this._eventsCount===0?this._events=Object.create(null):(delete M[A],M.removeListener&&this.emit("removeListener",A,U.listener||x));else if(typeof U!="function"){for(ee=-1,V=U.length-1;V>=0;V--)if(U[V]===x||U[V].listener===x){q=U[V].listener,ee=V;break}if(ee<0)return this;ee===0?U.shift():S(U,ee),U.length===1&&(M[A]=U[0]),M.removeListener!==void 0&&this.emit("removeListener",A,q||x)}return this},"removeListener"),n.prototype.off=n.prototype.removeListener,n.prototype.removeAllListeners=e(function(A){var x,U,M;if(U=this._events,U===void 0)return this;if(U.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):U[A]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete U[A]),this;if(arguments.length===0){var ee=Object.keys(U),V;for(M=0;M<ee.length;++M)V=ee[M],V!=="removeListener"&&this.removeAllListeners(V);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(x=U[A],typeof x=="function")this.removeListener(A,x);else if(x!==void 0)for(M=x.length-1;M>=0;M--)this.removeListener(A,x[M]);return this},"removeAllListeners");function y(A,x,U){var M=A._events;if(M===void 0)return[];var ee=M[x];return ee===void 0?[]:typeof ee=="function"?U?[ee.listener||ee]:[ee]:U?T(ee):_(ee,ee.length)}l(y,"m"),e(y,"_listeners"),n.prototype.listeners=e(function(A){return y(this,A,!0)},"listeners"),n.prototype.rawListeners=e(function(A){return y(this,A,!1)},"rawListeners"),n.listenerCount=function(A,x){return typeof A.listenerCount=="function"?A.listenerCount(x):w.call(A,x)},n.prototype.listenerCount=w;function w(A){var x=this._events;if(x!==void 0){var U=x[A];if(typeof U=="function")return 1;if(U!==void 0)return U.length}return 0}l(w,"g"),e(w,"listenerCount2"),n.prototype.eventNames=e(function(){return this._eventsCount>0?f(this._events):[]},"eventNames");function _(A,x){for(var U=new Array(x),M=0;M<x;++M)U[M]=A[M];return U}l(_,"v"),e(_,"arrayClone");function S(A,x){for(;x+1<A.length;x++)A[x]=A[x+1];A.pop()}l(S,"_"),e(S,"spliceOne");function T(A){for(var x=new Array(A.length),U=0;U<x.length;++U)x[U]=A[U].listener||A[U];return x}l(T,"b"),e(T,"unwrapListeners");function O(A,x){return new Promise(function(U,M){function ee(q){A.removeListener(x,V),M(q)}l(ee,"N"),e(ee,"errorListener");function V(){typeof A.removeListener=="function"&&A.removeListener("error",ee),U([].slice.call(arguments))}l(V,"L"),e(V,"resolver"),P(A,x,V,{once:!0}),x!=="error"&&E(A,ee,{once:!0})})}l(O,"E"),e(O,"once2");function E(A,x,U){typeof A.on=="function"&&P(A,"error",x,U)}l(E,"R"),e(E,"addErrorHandlerIfEventEmitter");function P(A,x,U,M){if(typeof A.on=="function")M.once?A.once(x,U):A.on(x,U);else if(typeof A.addEventListener=="function")A.addEventListener(x,e(l(function ee(V){M.once&&A.removeEventListener(x,ee),U(V)},"N"),"wrapListener"));else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof A)}return l(P,"T"),e(P,"eventTargetAgnosticAddListener"),Ul}l(dF,"XW");var Ul,uv,yl,KP,JP,YP,ZP,QP,XP,MN=er(()=>{Ul={},uv=!1,e(dF,"dew"),yl=dF(),yl.once,yl.once=function(o,i){return new Promise((f,p)=>{function a(...r){n!==void 0&&o.removeListener("error",n),f(r)}l(a,"a"),e(a,"eventListener");let n;i!=="error"&&(n=e(r=>{o.removeListener(name,a),p(r)},"errorListener"),o.once("error",n)),o.once(i,a)})},yl.on=function(o,i){let f=[],p=[],a=null,n=!1,r={async next(){let h=f.shift();if(h)return createIterResult(h,!1);if(a){let d=Promise.reject(a);return a=null,d}return n?createIterResult(void 0,!0):new Promise((d,m)=>p.push({resolve:d,reject:m}))},async return(){o.removeListener(i,u),o.removeListener("error",g),n=!0;for(let h of p)h.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(h){a=h,o.removeListener(i,u),o.removeListener("error",g)},[Symbol.asyncIterator](){return this}};return o.on(i,u),o.on("error",g),r;function u(...h){let d=p.shift();d?d.resolve(createIterResult(h,!1)):f.push(h)}function g(h){n=!0;let d=p.shift();d?d.reject(h):a=h,r.return()}},{EventEmitter:KP,defaultMaxListeners:JP,init:YP,listenerCount:ZP,on:QP,once:XP}=yl}),ej={};ln(ej,{EventEmitter:l(()=>KP,"EventEmitter"),defaultMaxListeners:l(()=>JP,"defaultMaxListeners"),init:l(()=>YP,"init"),listenerCount:l(()=>ZP,"listenerCount"),on:l(()=>QP,"on"),once:l(()=>XP,"once")});var $N=er(()=>{MN()}),tj=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.EventEmitter=void 0;var i=($N(),dr(ej));Object.defineProperty(o,"EventEmitter",{enumerable:!0,get:e(function(){return i.EventEmitter},"get")})}),WN=Ge(o=>{"use strict";var n;Object.defineProperty(o,"__esModule",{value:!0}),o.FileHandle=void 0;var i=Pa(),f=tj(),p=(n=class extends f.EventEmitter{constructor(u,g){super(),this.refs=1,this.closePromise=null,this.position=0,this.readableWebStreamLocked=!1,this.fs=u,this.fd=g}getAsyncId(){return this.fd}appendFile(u,g){return(0,i.promisify)(this.fs,"appendFile")(this.fd,u,g)}chmod(u){return(0,i.promisify)(this.fs,"fchmod")(this.fd,u)}chown(u,g){return(0,i.promisify)(this.fs,"fchown")(this.fd,u,g)}close(){if(this.fd===-1)return Promise.resolve();if(this.closePromise)return this.closePromise;if(this.refs--,this.refs===0){let u=this.fd;this.fd=-1,this.closePromise=(0,i.promisify)(this.fs,"close")(u).finally(()=>{this.closePromise=null})}else this.closePromise=new Promise((u,g)=>{this.closeResolve=u,this.closeReject=g}).finally(()=>{this.closePromise=null,this.closeReject=void 0,this.closeResolve=void 0});return this.emit("close"),this.closePromise}datasync(){return(0,i.promisify)(this.fs,"fdatasync")(this.fd)}createReadStream(u){return this.fs.createReadStream("",{...u,fd:this})}createWriteStream(u){return this.fs.createWriteStream("",{...u,fd:this})}readableWebStream(u={}){let{type:g="bytes",autoClose:h=!1}=u,d=0;if(this.fd===-1)throw new Error("The FileHandle is closed");if(this.closePromise)throw new Error("The FileHandle is closing");if(this.readableWebStreamLocked)throw new Error("An error will be thrown if this method is called more than once or is called after the FileHandle is closed or closing.");this.readableWebStreamLocked=!0,this.ref();let m=e(()=>{this.readableWebStreamLocked=!1,this.unref(),h&&this.close().catch(()=>{})},"unlockAndCleanup");return new ReadableStream({type:g==="bytes"?"bytes":void 0,autoAllocateChunkSize:16384,pull:e(async y=>{try{let w=y.byobRequest?.view;if(!w){let S=new Uint8Array(16384),T=await this.read(S,0,S.length,d);if(T.bytesRead===0){y.close(),m();return}d+=T.bytesRead,y.enqueue(S.slice(0,T.bytesRead));return}let _=await this.read(w,w.byteOffset,w.byteLength,d);if(_.bytesRead===0){y.close(),m();return}d+=_.bytesRead,y.byobRequest.respond(_.bytesRead)}catch(w){y.error(w),m()}},"pull"),cancel:e(async()=>{m()},"cancel")})}async read(u,g,h,d){let m=d??this.position,y=await(0,i.promisify)(this.fs,"read",w=>({bytesRead:w,buffer:u}))(this.fd,u,g,h,m);return d==null&&(this.position+=y.bytesRead),y}readv(u,g){return(0,i.promisify)(this.fs,"readv",h=>({bytesRead:h,buffers:u}))(this.fd,u,g)}readFile(u){return(0,i.promisify)(this.fs,"readFile")(this.fd,u)}stat(u){return(0,i.promisify)(this.fs,"fstat")(this.fd,u)}sync(){return(0,i.promisify)(this.fs,"fsync")(this.fd)}truncate(u){return(0,i.promisify)(this.fs,"ftruncate")(this.fd,u)}utimes(u,g){return(0,i.promisify)(this.fs,"futimes")(this.fd,u,g)}async write(u,g,h,d){let m=typeof d!="number",y=m?this.position:d,w=await(0,i.promisify)(this.fs,"write",_=>({bytesWritten:_,buffer:u}))(this.fd,u,g,h,y);return m&&(this.position+=w.bytesWritten),w}writev(u,g){return(0,i.promisify)(this.fs,"writev",h=>({bytesWritten:h,buffers:u}))(this.fd,u,g)}writeFile(u,g){return(0,i.promisify)(this.fs,"writeFile")(this.fd,u,g)}async[Symbol.asyncDispose](){await this.close()}ref(){this.refs++}unref(){this.refs--,this.refs===0&&(this.fd=-1,this.closeResolve&&(0,i.promisify)(this.fs,"close")(this.fd).then(this.closeResolve,this.closeReject))}},l(n,"Kg"),n);e(p,"FileHandle");var a=p;o.FileHandle=a}),zN=Ge(o=>{"use strict";var u,g;Object.defineProperty(o,"__esModule",{value:!0}),o.FsPromises=void 0;var i=Pa(),f=Wn(),p=(u=class{constructor(d,m,y={}){if(this.fs=d,this.path=m,this.options=y,this.eventQueue=[],this.resolveQueue=[],this.finished=!1,this.maxQueue=y.maxQueue||2048,this.overflow=y.overflow||"ignore",this.startWatching(),y.signal){if(y.signal.aborted){this.finish();return}y.signal.addEventListener("abort",()=>{this.finish()})}}startWatching(){try{this.watcher=this.fs.watch(this.path,this.options,(d,m)=>{this.enqueueEvent({eventType:d,filename:m})})}catch(d){throw this.finish(),d}}enqueueEvent(d){if(!this.finished){if(this.eventQueue.length>=this.maxQueue)if(this.overflow==="throw"){let m=new Error(`Watch queue overflow: more than ${this.maxQueue} events queued`);this.finish(m);return}else this.eventQueue.shift(),console.warn(`Watch queue overflow: dropping event due to exceeding maxQueue of ${this.maxQueue}`);if(this.eventQueue.push(d),this.resolveQueue.length>0){let{resolve:m}=this.resolveQueue.shift(),y=this.eventQueue.shift();m({value:y,done:!1})}}}finish(d){if(!this.finished)for(this.finished=!0,this.watcher&&(this.watcher.close(),this.watcher=null);this.resolveQueue.length>0;){let{resolve:m,reject:y}=this.resolveQueue.shift();d?y(d):m({value:void 0,done:!0})}}async next(){return this.finished?{value:void 0,done:!0}:this.eventQueue.length>0?{value:this.eventQueue.shift(),done:!1}:new Promise((d,m)=>{this.resolveQueue.push({resolve:d,reject:m})})}async return(){return this.finish(),{value:void 0,done:!0}}async throw(d){throw this.finish(d),d}[Symbol.asyncIterator](){return this}},l(u,"Zg"),u);e(p,"FSWatchAsyncIterator");var a=p,n=(g=class{constructor(d,m){this.fs=d,this.FileHandle=m,this.constants=f.constants,this.cp=(0,i.promisify)(this.fs,"cp"),this.opendir=(0,i.promisify)(this.fs,"opendir"),this.statfs=(0,i.promisify)(this.fs,"statfs"),this.lutimes=(0,i.promisify)(this.fs,"lutimes"),this.glob=(0,i.promisify)(this.fs,"glob"),this.access=(0,i.promisify)(this.fs,"access"),this.chmod=(0,i.promisify)(this.fs,"chmod"),this.chown=(0,i.promisify)(this.fs,"chown"),this.copyFile=(0,i.promisify)(this.fs,"copyFile"),this.lchmod=(0,i.promisify)(this.fs,"lchmod"),this.lchown=(0,i.promisify)(this.fs,"lchown"),this.link=(0,i.promisify)(this.fs,"link"),this.lstat=(0,i.promisify)(this.fs,"lstat"),this.mkdir=(0,i.promisify)(this.fs,"mkdir"),this.mkdtemp=(0,i.promisify)(this.fs,"mkdtemp"),this.readdir=(0,i.promisify)(this.fs,"readdir"),this.readlink=(0,i.promisify)(this.fs,"readlink"),this.realpath=(0,i.promisify)(this.fs,"realpath"),this.rename=(0,i.promisify)(this.fs,"rename"),this.rmdir=(0,i.promisify)(this.fs,"rmdir"),this.rm=(0,i.promisify)(this.fs,"rm"),this.stat=(0,i.promisify)(this.fs,"stat"),this.symlink=(0,i.promisify)(this.fs,"symlink"),this.truncate=(0,i.promisify)(this.fs,"truncate"),this.unlink=(0,i.promisify)(this.fs,"unlink"),this.utimes=(0,i.promisify)(this.fs,"utimes"),this.readFile=(y,w)=>(0,i.promisify)(this.fs,"readFile")(y instanceof this.FileHandle?y.fd:y,w),this.appendFile=(y,w,_)=>(0,i.promisify)(this.fs,"appendFile")(y instanceof this.FileHandle?y.fd:y,w,_),this.open=(y,w="r",_)=>(0,i.promisify)(this.fs,"open",S=>new this.FileHandle(this.fs,S))(y,w,_),this.writeFile=(y,w,_)=>((0,i.isReadableStream)(w)?(0,i.streamToBuffer)(w):Promise.resolve(w)).then(S=>(0,i.promisify)(this.fs,"writeFile")(y instanceof this.FileHandle?y.fd:y,S,_)),this.watch=(y,w)=>{let _=typeof w=="string"?{encoding:w}:w||{};return new a(this.fs,y,_)}}},l(g,"Qg"),g);e(n,"FsPromises");var r=n;o.FsPromises=r}),HN=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.printTree=void 0;var i=e((f="",p)=>{let a="",n=p.length-1;for(;n>=0&&!p[n];n--);for(let r=0;r<=n;r++){let u=p[r];if(!u)continue;let g=r===n,h=u(f+(g?" ":"\u2502")+" "),d=h?g?"\u2514\u2500":"\u251C\u2500":"\u2502";a+=`
|
|
19
|
+
`+f+d+(h?" "+h:"")}return a},"printTree");o.printTree=i}),qN=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.printBinary=void 0;var i=e((f="",p)=>{let a=p[0],n=p[1],r="";return a&&(r+=`
|
|
20
|
+
`+f+"\u2190 "+a(f+" ")),n&&(r+=`
|
|
21
|
+
`+f+"\u2192 "+n(f+" ")),r},"printBinary");o.printBinary=i}),GN=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.printJson=void 0;var i=e((f="",p,a=2)=>(JSON.stringify(p,null,a)||"nil").split(`
|
|
22
|
+
`).join(`
|
|
23
|
+
`+f),"printJson");o.printJson=i}),VN=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0});var i=(c6(),dr(jE));i.__exportStar(HN(),o),i.__exportStar(qN(),o),i.__exportStar(GN(),o)}),KN=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.newNotAllowedError=o.newTypeMismatchError=o.newNotFoundError=o.assertCanWrite=o.assertName=o.basename=o.ctx=void 0;var i=e((h={})=>({separator:"/",syncHandleAllowed:!1,mode:"read",...h}),"ctx");o.ctx=i;var f=e((h,d)=>{h[h.length-1]===d&&(h=h.slice(0,-1));let m=h.lastIndexOf(d);return m===-1?h:h.slice(m+1)},"basename");o.basename=f;var p=/^(\.{1,2})$|^(.*([\/\\]).*)$/,a=e((h,d,m)=>{if(!h||p.test(h))throw new TypeError(`Failed to execute '${d}' on '${m}': Name is not allowed.`)},"assertName");o.assertName=a;var n=e(h=>{if(h!=="readwrite")throw new DOMException("The request is not allowed by the user agent or the platform in the current context.","NotAllowedError")},"assertCanWrite");o.assertCanWrite=n;var r=e(()=>new DOMException("A requested file or directory could not be found at the time an operation was processed.","NotFoundError"),"newNotFoundError");o.newNotFoundError=r;var u=e(()=>new DOMException("The path supplied exists, but was not an entry of requested type.","TypeMismatchError"),"newTypeMismatchError");o.newTypeMismatchError=u;var g=e(()=>new DOMException("Permission not granted.","NotAllowedError"),"newNotAllowedError");o.newNotAllowedError=g}),JN=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.toTreeSync=void 0;var i=VN(),f=KN(),p=e((a,n={})=>{let r=n.separator||"/",u=n.dir||r;u[u.length-1]!==r&&(u+=r);let g=n.tab||"",h=n.depth??10,d=" (...)";if(h>0){let m=a.readdirSync(u,{withFileTypes:!0});d=(0,i.printTree)(g,m.map(y=>w=>y.isDirectory()?(0,o.toTreeSync)(a,{dir:u+y.name,depth:h-1,tab:w}):y.isSymbolicLink()?""+y.name+" \u2192 "+a.readlinkSync(u+y.name):""+y.name))}return(0,f.basename)(u,r)+r+d},"toTreeSync");o.toTreeSync=p}),YN=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.getWriteFileOptions=o.writeFileDefaults=o.getRealpathOptsAndCb=o.getRealpathOptions=o.getStatfsOptsAndCb=o.getStatfsOptions=o.getStatOptsAndCb=o.getStatOptions=o.getAppendFileOptsAndCb=o.getAppendFileOpts=o.getOpendirOptsAndCb=o.getOpendirOptions=o.getReaddirOptsAndCb=o.getReaddirOptions=o.getReadFileOptions=o.getRmOptsAndCb=o.getRmdirOptions=o.getDefaultOptsAndCb=o.getDefaultOpts=o.optsDefaults=o.getMkdirOptions=void 0,o.getOptions=u,o.optsGenerator=g,o.optsAndCbGenerator=h;var i=_f(),f=Od(),p=Pa(),a={mode:511,recursive:!1},n=e(ee=>typeof ee=="number"?Object.assign({},a,{mode:ee}):Object.assign({},a,ee),"getMkdirOptions");o.getMkdirOptions=n;var r=e(ee=>`Expected options to be either an object or a string, but got ${ee} instead`,"ERRSTR_OPTS");function u(ee,V){let q;if(V){let G=typeof V;switch(G){case"string":q=Object.assign({},ee,{encoding:V});break;case"object":q=Object.assign({},ee,V);break;default:throw TypeError(r(G))}}else return ee;return q.encoding!=="buffer"&&(0,f.assertEncoding)(q.encoding),q}l(u,"PR"),e(u,"getOptions");function g(ee){return V=>u(ee,V)}l(g,"Qn"),e(g,"optsGenerator");function h(ee){return(V,q)=>typeof V=="function"?[ee(),V]:[ee(V),(0,p.validateCallback)(q)]}l(h,"Uo"),e(h,"optsAndCbGenerator"),o.optsDefaults={encoding:"utf8"},o.getDefaultOpts=g(o.optsDefaults),o.getDefaultOptsAndCb=h(o.getDefaultOpts);var d={recursive:!1},m=e(ee=>Object.assign({},d,ee),"getRmdirOptions");o.getRmdirOptions=m;var y=g(o.optsDefaults);o.getRmOptsAndCb=h(y);var w={flag:"r"};o.getReadFileOptions=g(w);var _={encoding:"utf8",recursive:!1,withFileTypes:!1};o.getReaddirOptions=g(_),o.getReaddirOptsAndCb=h(o.getReaddirOptions);var S={encoding:"utf8",bufferSize:32,recursive:!1};o.getOpendirOptions=g(S),o.getOpendirOptsAndCb=h(o.getOpendirOptions);var T={encoding:"utf8",mode:438,flag:i.FLAGS[i.FLAGS.a]};o.getAppendFileOpts=g(T),o.getAppendFileOptsAndCb=h(o.getAppendFileOpts);var O={bigint:!1},E=e((ee={})=>Object.assign({},O,ee),"getStatOptions");o.getStatOptions=E;var P=e((ee,V)=>typeof ee=="function"?[(0,o.getStatOptions)(),ee]:[(0,o.getStatOptions)(ee),(0,p.validateCallback)(V)],"getStatOptsAndCb");o.getStatOptsAndCb=P;var A={bigint:!1},x=e((ee={})=>Object.assign({},A,ee),"getStatfsOptions");o.getStatfsOptions=x;var U=e((ee,V)=>typeof ee=="function"?[(0,o.getStatfsOptions)(),ee]:[(0,o.getStatfsOptions)(ee),(0,p.validateCallback)(V)],"getStatfsOptsAndCb");o.getStatfsOptsAndCb=U;var M=o.optsDefaults;o.getRealpathOptions=g(M),o.getRealpathOptsAndCb=h(o.getRealpathOptions),o.writeFileDefaults={encoding:"utf8",mode:438,flag:i.FLAGS[i.FLAGS.w]},o.getWriteFileOptions=g(o.writeFileDefaults)}),ZN=Ge(o=>{"use strict";var r;Object.defineProperty(o,"__esModule",{value:!0}),o.Dir=void 0;var i=Pa(),f=xE(),p=Rd(),a=(r=class{constructor(g,h){this.link=g,this.options=h,this.iteratorInfo=[],this.closed=!1,this.operationQueue=null,this.path=g.getPath(),this.iteratorInfo.push(g.children[Symbol.iterator]())}closeBase(){}readBase(g){let h,d,m,y;do{do if({done:h,value:d}=g[g.length-1].next(),!h)[m,y]=d;else break;while(m==="."||m==="..");if(h){if(g.pop(),g.length===0)break;h=!1}else return this.options.recursive&&y.children.size&&g.push(y.children[Symbol.iterator]()),f.default.build(y,this.options.encoding)}while(!h);return null}close(g){if(g===void 0)return this.closed?Promise.reject(new p.Error("ERR_DIR_CLOSED")):new Promise((h,d)=>{this.close(m=>{m?d(m):h()})});if((0,i.validateCallback)(g),this.closed){process.nextTick(g,new p.Error("ERR_DIR_CLOSED"));return}if(this.operationQueue!==null){this.operationQueue.push(()=>{this.close(g)});return}this.closed=!0;try{this.closeBase(),process.nextTick(g)}catch(h){process.nextTick(g,h)}}closeSync(){if(this.closed)throw new p.Error("ERR_DIR_CLOSED");if(this.operationQueue!==null)throw new p.Error("ERR_DIR_CONCURRENT_OPERATION");this.closed=!0,this.closeBase()}read(g){if(g===void 0)return new Promise((h,d)=>{this.read((m,y)=>{m?d(m):h(y??null)})});if((0,i.validateCallback)(g),this.closed){process.nextTick(g,new p.Error("ERR_DIR_CLOSED"));return}if(this.operationQueue!==null){this.operationQueue.push(()=>{this.read(g)});return}this.operationQueue=[];try{let h=this.readBase(this.iteratorInfo);process.nextTick(()=>{let d=this.operationQueue;this.operationQueue=null;for(let m of d)m();g(null,h)})}catch(h){process.nextTick(()=>{let d=this.operationQueue;this.operationQueue=null;for(let m of d)m();g(h)})}}readSync(){if(this.closed)throw new p.Error("ERR_DIR_CLOSED");if(this.operationQueue!==null)throw new p.Error("ERR_DIR_CONCURRENT_OPERATION");return this.readBase(this.iteratorInfo)}[Symbol.asyncIterator](){return{next:e(async()=>{try{let g=await this.read();return g!==null?{done:!1,value:g}:{done:!0,value:void 0}}catch(g){throw g}},"next"),[Symbol.asyncIterator](){return this}}}},l(r,"nw"),r);e(a,"Dir");var n=a;o.Dir=n}),QN=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.toMatcher=o.toRegex=void 0;var i=e(r=>/[.^$+{}()|\\]/.test(r)?`\\${r}`:r,"escapeRe"),f=e((r,u,g,h)=>{let d=u,m=[],y="",w=1;for(;d<r.length&&w>0;){let T=r[d];if(T==="(")w++,y+=T,d++;else if(T===")")if(w--,w===0){m.push(y),d++;break}else y+=T,d++;else T==="|"&&w===1?(m.push(y),y="",d++):(y+=T,d++)}if(w!==0)return;let _="",S=m.length;for(let T=0;T<S;T++)_+=(_?"|":"")+(0,o.toRegex)(m[T],h).source.replace(/^\^/,"").replace(/\$$/,"");switch(g){case"?":return[`(?:${_})?`,d];case"*":return[`(?:${_})*`,d];case"+":return[`(?:${_})+`,d];case"@":return[`(?:${_})`,d];case"!":return[`(?!${_})[^/]*`,d]}},"parseExtGlob"),p=e((r,u)=>{let g="",h=0,d=e(()=>{h++;let w=[],_="",S=!1;for(;h<r.length;){let T=r[h];if(T==="}"){w.push(_),h++,S=!0;break}if(T===","){w.push(_),_="",h++;continue}_+=T,h++}return S?`(?:${w.map(T=>(0,o.toRegex)(T,u).source.replace(/^\^/,"").replace(/\$$/,"")).join("|")})`:"\\{"+i(_)},"parseBraceGroup"),m=!!u?.extglob;for(;h<r.length;){let w=r[h];if(m&&r[h+1]==="("&&(w==="?"||w==="*"||w==="+"||w==="@"||w==="!")){let _=f(r,h+2,w,u);if(_){g+=_[0],h=_[1];continue}}switch(w){case"*":{if(r[h+1]==="*"){let _=h+2;for(;r[_]==="*";)_++;r[_]==="/"?(g+="(?:.*/)?",h=_+1):(g+=".*",h=_)}else g+="[^/]*",h++;break}case"?":g+="[^/]",h++;break;case"[":{let _="[";for(h++,h<r.length&&r[h]==="!"&&(_+="^",h++),h<r.length&&r[h]==="]"&&(_+="]",h++);h<r.length&&r[h]!=="]";){let S=r[h];_+=S==="\\"?"\\\\":S,h++}if(h<r.length&&r[h]==="]")_+="]",h++;else{g+="\\[";continue}g+=_;break}case"{":{g+=d();break}case"/":g+="/",h++;break;case".":case"^":case"$":case"+":case"(":case")":case"|":case"\\":g+=`\\${w}`,h++;break;default:g+=w,h++;break}}let y=u?.nocase?"i":"";return new RegExp("^"+g+"$",y)},"toRegex");o.toRegex=p;var a=/^\/(.{1,4096})\/([gimsuy]{0,6})$/,n=e((r,u)=>{let g=[],h=Array.isArray(r)?r:[r];for(let d of h)if(typeof d=="string"){let m=a.exec(d);if(m){let[,y,w]=m;g.push(new RegExp(y,w))}else g.push((0,o.toRegex)(d,u))}else g.push(d);return g.length?new Function("p","return "+g.map(d=>d+".test(p)").join("||")):()=>!1},"toMatcher");o.toMatcher=n}),XN=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.globSync=d;var i=vf(),f=QN(),p=Pa(),a=i.posix.join,n=i.posix.relative,r=i.posix.resolve;function u(m,y){return(0,f.toRegex)(y).test(m)}l(u,"NR"),e(u,"matchesPattern");function g(m,y){return y?typeof y=="function"?y(m):(Array.isArray(y)?y:[y]).some(w=>u(m,w)):!1}l(g,"G7"),e(g,"isExcluded");function h(m,y,w,_,S=0){let T=[],O=_.maxdepth??1/0,E=_.cwd?(0,p.pathToFilename)(_.cwd):process.cwd();if(S>O)return T;try{let P=m.readdirSync(y,{withFileTypes:!0});for(let A of P){let x=a(y,A.name.toString()),U=n(E,x);if(!g(U,_.exclude)&&(w.some(M=>u(U,M))&&T.push(U),A.isDirectory()&&S<O)){let M=h(m,x,w,_,S+1);T.push(...M)}}}catch{}return T}l(h,"iw"),e(h,"walkDirectory");function d(m,y,w={}){let _=w.cwd?(0,p.pathToFilename)(w.cwd):process.cwd(),S=r(_),T={cwd:S,exclude:w.exclude,maxdepth:w.maxdepth,withFileTypes:w.withFileTypes||!1},O=[];if(i.posix.isAbsolute(y)){let E=i.posix.dirname(y),P=i.posix.basename(y),A=h(m,E,[P],{...T,cwd:E});O.push(...A.map(x=>i.posix.resolve(E,x)))}else{let E=h(m,S,[y],T);O.push(...E)}return O=[...new Set(O)].sort(),O}l(d,"Y7"),e(d,"globSync")}),e3=Ge(o=>{"use strict";var be,ge,Ne;Object.defineProperty(o,"__esModule",{value:!0}),o.FSWatcher=o.StatWatcher=o.Volume=void 0,o.pathToSteps=ue,o.dataToStr=te,o.toUnixTimestamp=X;var i=vf(),f=tN(),p=NI(),a=xE(),n=rN(),r=xa(),u=v6(),g=nN(),h=UN(),d=Wn(),m=tj(),y=Od(),w=WN(),_=HI(),S=zN(),T=JN(),O=_f(),E=Rd(),P=YN(),A=Pa(),x=ZN(),U=NE(),M=i.resolve,{O_SYMLINK:ee,F_OK:V,R_OK:q,W_OK:G,X_OK:re,COPYFILE_EXCL:ae,COPYFILE_FICLONE_FORCE:de}=d.constants,we=i.posix?i.posix.sep:i.sep,xe=i.posix?i.posix.relative:i.relative,Pe=i.posix?i.posix.join:i.join,se=i.posix?i.posix.dirname:i.dirname,Te=i.posix?i.posix.normalize:i.normalize,J=128;function ue(Ie){return(0,U.filenameToSteps)((0,A.pathToFilename)(Ie))}l(ue,"cq"),e(ue,"pathToSteps");function te(Ie,ke=y.ENCODING_UTF8){return r.Buffer.isBuffer(Ie)?Ie.toString(ke):Ie instanceof Uint8Array?(0,r.bufferFrom)(Ie).toString(ke):String(Ie)}l(te,"hq"),e(te,"dataToStr");function X(Ie){if(typeof Ie=="string"&&+Ie==Ie)return+Ie;if(Ie instanceof Date)return Ie.getTime()/1e3;if(isFinite(Ie))return Ie<0?Date.now()/1e3:Ie;throw new Error("Cannot parse time: "+Ie)}l(X,"Tr"),e(X,"toUnixTimestamp");function ye(Ie){if(typeof Ie!="number")throw TypeError(O.ERRSTR.UID)}l(ye,"ns"),e(ye,"validateUid");function Re(Ie){if(typeof Ie!="number")throw TypeError(O.ERRSTR.GID)}l(Re,"is"),e(Re,"validateGid");var De=(be=class{get promises(){if(this.promisesApi===null)throw new Error("Promise is not supported in this environment.");return this.promisesApi}constructor(ke=new f.Superblock){this._core=ke,this.promisesApi=new S.FsPromises(this,w.FileHandle),this.openSync=(v,R,C=438)=>{let j=(0,A.modeToNumber)(C),Z=(0,A.pathToFilename)(v),oe=(0,A.flagsToNumber)(R);return this._core.open(Z,oe,j,!(oe&ee))},this.open=(v,R,C,j)=>{let Z=C,oe=j;typeof C=="function"&&(Z=438,oe=C),Z=Z||438;let Ae=(0,A.modeToNumber)(Z),le=(0,A.pathToFilename)(v),Fe=(0,A.flagsToNumber)(R);this.wrapAsync(this._core.open,[le,Fe,Ae,!(Fe&ee)],oe)},this.closeSync=v=>{this._core.close(v)},this.close=(v,R)=>{(0,U.validateFd)(v);let C=this._core.getFileByFdOrThrow(v,"close");this.wrapAsync(this._core.close,[C.fd],R)},this.readSync=(v,R,C,j,Z)=>((0,U.validateFd)(v),this._core.read(v,R,C,j,Z)),this.read=(v,R,C,j,Z,oe)=>{if((0,A.validateCallback)(oe),j===0)return(0,u.default)(()=>{oe&&oe(null,0,R)});Promise.resolve().then(()=>{try{let Ae=this._core.read(v,R,C,j,Z);oe(null,Ae,R)}catch(Ae){oe(Ae)}})},this.readv=(v,R,C,j)=>{let Z=C,oe=j;typeof C=="function"&&([Z,oe]=[null,C]),(0,A.validateCallback)(oe),Promise.resolve().then(()=>{try{let Ae=this._core.readv(v,R,Z);oe(null,Ae,R)}catch(Ae){oe(Ae)}})},this.readvSync=(v,R,C)=>((0,U.validateFd)(v),this._core.readv(v,R,C??null)),this._readfile=(v,R,C)=>{let j,Z=typeof v=="number"&&(0,U.isFd)(v),oe;if(Z)oe=v;else{let Ae=(0,A.pathToFilename)(v),le=String(v),Fe=le.length>1&&le.endsWith("/"),ie=this._core.getResolvedLinkOrThrow(Ae,"open"),Je=ie.getNode();if(Je.isDirectory())throw(0,A.createError)("EISDIR","open",ie.getPath());if(Fe&&Je.isFile())throw(0,A.createError)("ENOTDIR","open",le);oe=this.openSync(v,R)}try{j=(0,A.bufferToEncoding)(this._core.getFileByFdOrThrow(oe).getBuffer(),C)}finally{Z||this.closeSync(oe)}return j},this.readFileSync=(v,R)=>{let C=(0,P.getReadFileOptions)(R),j=(0,A.flagsToNumber)(C.flag);return this._readfile(v,j,C.encoding)},this.readFile=(v,R,C)=>{let[j,Z]=(0,P.optsAndCbGenerator)(P.getReadFileOptions)(R,C),oe=(0,A.flagsToNumber)(j.flag);this.wrapAsync(this._readfile,[v,oe,j.encoding],Z)},this.writeSync=(v,R,C,j,Z)=>{let[,oe,Ae,le,Fe]=(0,A.getWriteSyncArgs)(v,R,C,j,Z);return this._write(v,oe,Ae,le,Fe)},this.write=(v,R,C,j,Z,oe)=>{let[,Ae,le,Fe,ie,Je,dt]=(0,A.getWriteArgs)(v,R,C,j,Z,oe);Promise.resolve().then(()=>{try{let W=this._write(v,le,Fe,ie,Je);Ae?dt(null,W,R):dt(null,W,le)}catch(W){dt(W)}})},this.writev=(v,R,C,j)=>{let Z=C,oe=j;typeof C=="function"&&([Z,oe]=[null,C]),(0,A.validateCallback)(oe),Promise.resolve().then(()=>{try{let Ae=this.writevBase(v,R,Z);oe(null,Ae,R)}catch(Ae){oe(Ae)}})},this.writevSync=(v,R,C)=>((0,U.validateFd)(v),this.writevBase(v,R,C??null)),this.writeFileSync=(v,R,C)=>{let j=(0,P.getWriteFileOptions)(C),Z=(0,A.flagsToNumber)(j.flag),oe=(0,A.modeToNumber)(j.mode),Ae=(0,U.dataToBuffer)(R,j.encoding);this._core.writeFile(v,Ae,Z,oe)},this.writeFile=(v,R,C,j)=>{let Z=C,oe=j;typeof C=="function"&&([Z,oe]=[P.writeFileDefaults,C]);let Ae=(0,A.validateCallback)(oe),le=(0,P.getWriteFileOptions)(Z),Fe=(0,A.flagsToNumber)(le.flag),ie=(0,A.modeToNumber)(le.mode),Je=(0,U.dataToBuffer)(R,le.encoding);this.wrapAsync(this._core.writeFile,[v,Je,Fe,ie],Ae)},this.copyFileSync=(v,R,C)=>{let j=(0,A.pathToFilename)(v),Z=(0,A.pathToFilename)(R);return this._copyFile(j,Z,(C||0)|0)},this.copyFile=(v,R,C,j)=>{let Z=(0,A.pathToFilename)(v),oe=(0,A.pathToFilename)(R),Ae,le;typeof C=="function"?[Ae,le]=[0,C]:[Ae,le]=[C,j],(0,A.validateCallback)(le),this.wrapAsync(this._copyFile,[Z,oe,Ae],le)},this._cp=(v,R,C)=>{if(C.filter&&!C.filter(v,R))return;let j=C.dereference?this.statSync(v):this.lstatSync(v),Z=null;try{Z=this.lstatSync(R)}catch(oe){if(oe.code!=="ENOENT")throw oe}if(Z&&j.ino===Z.ino&&j.dev===Z.dev)throw(0,A.createError)("EINVAL","cp",v,R);if(Z){if(j.isDirectory()&&!Z.isDirectory())throw(0,A.createError)("EISDIR","cp",v,R);if(!j.isDirectory()&&Z.isDirectory())throw(0,A.createError)("ENOTDIR","cp",v,R)}if(j.isDirectory()&&this.isSrcSubdir(v,R))throw(0,A.createError)("EINVAL","cp",v,R);{let oe=se(R);this.existsSync(oe)||this.mkdirSync(oe,{recursive:!0})}if(j.isDirectory()){if(!C.recursive)throw(0,A.createError)("EISDIR","cp",v);this.cpDirSync(j,Z,v,R,C)}else if(j.isFile()||j.isCharacterDevice()||j.isBlockDevice())this.cpFileSync(j,Z,v,R,C);else if(j.isSymbolicLink()&&!C.dereference)this.cpSymlinkSync(Z,v,R,C);else throw(0,A.createError)("EINVAL","cp",v)},this.linkSync=(v,R)=>{let C=(0,A.pathToFilename)(v),j=(0,A.pathToFilename)(R);this._core.link(C,j)},this.link=(v,R,C)=>{let j=(0,A.pathToFilename)(v),Z=(0,A.pathToFilename)(R);this.wrapAsync(this._core.link,[j,Z],C)},this.unlinkSync=v=>{let R=(0,A.pathToFilename)(v);this._core.unlink(R)},this.unlink=(v,R)=>{let C=(0,A.pathToFilename)(v);this.wrapAsync(this._core.unlink,[C],R)},this.symlinkSync=(v,R,C)=>{let j=(0,A.pathToFilename)(v),Z=(0,A.pathToFilename)(R);this._core.symlink(j,Z)},this.symlink=(v,R,C,j)=>{let Z=(0,A.validateCallback)(typeof C=="function"?C:j),oe=(0,A.pathToFilename)(v),Ae=(0,A.pathToFilename)(R);this.wrapAsync(this._core.symlink,[oe,Ae],Z)},this._lstat=(v,R=!1,C=!1)=>{let j;try{j=this._core.getLinkOrThrow(v,"lstat")}catch(Z){if(Z.code==="ENOENT"&&!C)return;throw Z}return p.default.build(j.getNode(),R)},this.lstatSync=(v,R)=>{let{throwIfNoEntry:C=!0,bigint:j=!1}=(0,P.getStatOptions)(R);return this._lstat((0,A.pathToFilename)(v),j,C)},this.renameSync=(v,R)=>{let C=(0,A.pathToFilename)(v),j=(0,A.pathToFilename)(R);this._core.rename(C,j)},this.rename=(v,R,C)=>{let j=(0,A.pathToFilename)(v),Z=(0,A.pathToFilename)(R);this.wrapAsync(this._core.rename,[j,Z],C)},this.existsSync=v=>{try{return this._exists((0,A.pathToFilename)(v))}catch{return!1}},this.exists=(v,R)=>{let C=(0,A.pathToFilename)(v);if(typeof R!="function")throw Error(O.ERRSTR.CB);Promise.resolve().then(()=>{try{R(this._exists(C))}catch{R(!1)}})},this.accessSync=(v,R=V)=>{let C=(0,A.pathToFilename)(v);R=R|0,this._access(C,R)},this.access=(v,R,C)=>{let j=V,Z;typeof R!="function"?[j,Z]=[R|0,(0,A.validateCallback)(C)]:Z=R;let oe=(0,A.pathToFilename)(v);this.wrapAsync(this._access,[oe,j],Z)},this.appendFileSync=(v,R,C)=>{let j=(0,P.getAppendFileOpts)(C);(!j.flag||(0,U.isFd)(v))&&(j.flag="a"),this.writeFileSync(v,R,j)},this.appendFile=(v,R,C,j)=>{let[Z,oe]=(0,P.getAppendFileOptsAndCb)(C,j);(!Z.flag||(0,U.isFd)(v))&&(Z.flag="a"),this.writeFile(v,R,Z,oe)},this._readdir=(v,R)=>{let C=(0,U.filenameToSteps)(v),j=this._core.getResolvedLinkOrThrow(v,"scandir"),Z=j.getNode();if(!Z.isDirectory())throw(0,A.createError)("ENOTDIR","scandir",v);if(!Z.canRead())throw(0,A.createError)("EACCES","scandir",v);let oe=[];for(let le of j.children.keys()){let Fe=j.getChild(le);if(!(!Fe||le==="."||le==="..")&&(oe.push(a.default.build(Fe,R.encoding)),R.recursive&&Fe.children.size)){let ie={...R,recursive:!0,withFileTypes:!0},Je=this._readdir(Fe.getPath(),ie);oe.push(...Je)}}if(!U.isWin&&R.encoding!=="buffer"&&oe.sort((le,Fe)=>le.name<Fe.name?-1:le.name>Fe.name?1:0),R.withFileTypes)return oe;let Ae=v;return U.isWin&&(Ae=Ae.replace(/\\/g,"/")),oe.map(le=>{if(R.recursive){let Fe=Pe(le.parentPath,le.name.toString());return U.isWin&&(Fe=Fe.replace(/\\/g,"/")),Fe.replace(Ae+i.posix.sep,"")}return le.name})},this.readdirSync=(v,R)=>{let C=(0,P.getReaddirOptions)(R),j=(0,A.pathToFilename)(v);return this._readdir(j,C)},this.readdir=(v,R,C)=>{let[j,Z]=(0,P.getReaddirOptsAndCb)(R,C),oe=(0,A.pathToFilename)(v);this.wrapAsync(this._readdir,[oe,j],Z)},this._readlink=(v,R)=>{let C=this._core.getLinkOrThrow(v,"readlink").getNode();if(!C.isSymlink())throw(0,A.createError)("EINVAL","readlink",v);return(0,y.strToEncoding)(C.symlink,R)},this.readlinkSync=(v,R)=>{let C=(0,P.getDefaultOpts)(R),j=(0,A.pathToFilename)(v);return this._readlink(j,C.encoding)},this.readlink=(v,R,C)=>{let[j,Z]=(0,P.getDefaultOptsAndCb)(R,C),oe=(0,A.pathToFilename)(v);this.wrapAsync(this._readlink,[oe,j.encoding],Z)},this._fsync=v=>{this._core.getFileByFdOrThrow(v,"fsync")},this.fsyncSync=v=>{this._fsync(v)},this.fsync=(v,R)=>{this.wrapAsync(this._fsync,[v],R)},this._fdatasync=v=>{this._core.getFileByFdOrThrow(v,"fdatasync")},this.fdatasyncSync=v=>{this._fdatasync(v)},this.fdatasync=(v,R)=>{this.wrapAsync(this._fdatasync,[v],R)},this._ftruncate=(v,R)=>{this._core.getFileByFdOrThrow(v,"ftruncate").truncate(R)},this.ftruncateSync=(v,R)=>{this._ftruncate(v,R)},this.ftruncate=(v,R,C)=>{let j=typeof R=="number"?R:0,Z=(0,A.validateCallback)(typeof R=="number"?C:R);this.wrapAsync(this._ftruncate,[v,j],Z)},this._truncate=(v,R)=>{let C=this.openSync(v,"r+");try{this.ftruncateSync(C,R)}finally{this.closeSync(C)}},this.truncateSync=(v,R)=>{if((0,U.isFd)(v))return this.ftruncateSync(v,R);this._truncate(v,R)},this.truncate=(v,R,C)=>{let j=typeof R=="number"?R:0,Z=(0,A.validateCallback)(typeof R=="number"?C:R);if((0,U.isFd)(v))return this.ftruncate(v,j,Z);this.wrapAsync(this._truncate,[v,j],Z)},this._futimes=(v,R,C)=>{let j=this._core.getFileByFdOrThrow(v,"futimes").node;j.atime=new Date(R*1e3),j.mtime=new Date(C*1e3)},this.futimesSync=(v,R,C)=>{this._futimes(v,X(R),X(C))},this.futimes=(v,R,C,j)=>{this.wrapAsync(this._futimes,[v,X(R),X(C)],j)},this._utimes=(v,R,C,j=!0)=>{let Z=this._core,oe=(j?Z.getResolvedLinkOrThrow(v,"utimes"):Z.getLinkOrThrow(v,"lutimes")).getNode();oe.atime=new Date(R*1e3),oe.mtime=new Date(C*1e3)},this.utimesSync=(v,R,C)=>{this._utimes((0,A.pathToFilename)(v),X(R),X(C),!0)},this.utimes=(v,R,C,j)=>{this.wrapAsync(this._utimes,[(0,A.pathToFilename)(v),X(R),X(C),!0],j)},this.lutimesSync=(v,R,C)=>{this._utimes((0,A.pathToFilename)(v),X(R),X(C),!1)},this.lutimes=(v,R,C,j)=>{this.wrapAsync(this._utimes,[(0,A.pathToFilename)(v),X(R),X(C),!1],j)},this.mkdirSync=(v,R)=>{let C=(0,P.getMkdirOptions)(R),j=(0,A.modeToNumber)(C.mode,511),Z=(0,A.pathToFilename)(v);if(C.recursive)return this._core.mkdirp(Z,j);this._core.mkdir(Z,j)},this.mkdir=(v,R,C)=>{let j=(0,P.getMkdirOptions)(R),Z=(0,A.validateCallback)(typeof R=="function"?R:C),oe=(0,A.modeToNumber)(j.mode,511),Ae=(0,A.pathToFilename)(v);j.recursive?this.wrapAsync(this._core.mkdirp,[Ae,oe],Z):this.wrapAsync(this._core.mkdir,[Ae,oe],Z)},this._mkdtemp=(v,R,C=5)=>{let j=v+(0,A.genRndStr6)();try{return this._core.mkdir(j,511),(0,y.strToEncoding)(j,R)}catch(Z){if(Z.code==="EEXIST"){if(C>1)return this._mkdtemp(v,R,C-1);throw Error("Could not create temp dir.")}else throw Z}},this.mkdtempSync=(v,R)=>{let{encoding:C}=(0,P.getDefaultOpts)(R);if(!v||typeof v!="string")throw new TypeError("filename prefix is required");return(0,A.nullCheck)(v),this._mkdtemp(v,C)},this.mkdtemp=(v,R,C)=>{let[{encoding:j},Z]=(0,P.getDefaultOptsAndCb)(R,C);if(!v||typeof v!="string")throw new TypeError("filename prefix is required");(0,A.nullCheck)(v)&&this.wrapAsync(this._mkdtemp,[v,j],Z)},this.rmdirSync=(v,R)=>{let C=(0,P.getRmdirOptions)(R);this._core.rmdir((0,A.pathToFilename)(v),C.recursive)},this.rmdir=(v,R,C)=>{let j=(0,P.getRmdirOptions)(R),Z=(0,A.validateCallback)(typeof R=="function"?R:C);this.wrapAsync(this._core.rmdir,[(0,A.pathToFilename)(v),j.recursive],Z)},this.rmSync=(v,R)=>{this._core.rm((0,A.pathToFilename)(v),R?.force,R?.recursive)},this.rm=(v,R,C)=>{let[j,Z]=(0,P.getRmOptsAndCb)(R,C);this.wrapAsync(this._core.rm,[(0,A.pathToFilename)(v),j?.force,j?.recursive],Z)},this._fchmod=(v,R)=>{this._core.getFileByFdOrThrow(v,"fchmod").chmod(R)},this.fchmodSync=(v,R)=>{this._fchmod(v,(0,A.modeToNumber)(R))},this.fchmod=(v,R,C)=>{this.wrapAsync(this._fchmod,[v,(0,A.modeToNumber)(R)],C)},this._chmod=(v,R,C=!0)=>{(C?this._core.getResolvedLinkOrThrow(v,"chmod"):this._core.getLinkOrThrow(v,"chmod")).getNode().chmod(R)},this.chmodSync=(v,R)=>{let C=(0,A.modeToNumber)(R),j=(0,A.pathToFilename)(v);this._chmod(j,C,!0)},this.chmod=(v,R,C)=>{let j=(0,A.modeToNumber)(R),Z=(0,A.pathToFilename)(v);this.wrapAsync(this._chmod,[Z,j],C)},this._lchmod=(v,R)=>{this._chmod(v,R,!1)},this.lchmodSync=(v,R)=>{let C=(0,A.modeToNumber)(R),j=(0,A.pathToFilename)(v);this._lchmod(j,C)},this.lchmod=(v,R,C)=>{let j=(0,A.modeToNumber)(R),Z=(0,A.pathToFilename)(v);this.wrapAsync(this._lchmod,[Z,j],C)},this._fchown=(v,R,C)=>{this._core.getFileByFdOrThrow(v,"fchown").chown(R,C)},this.fchownSync=(v,R,C)=>{ye(R),Re(C),this._fchown(v,R,C)},this.fchown=(v,R,C,j)=>{ye(R),Re(C),this.wrapAsync(this._fchown,[v,R,C],j)},this._chown=(v,R,C)=>{this._core.getResolvedLinkOrThrow(v,"chown").getNode().chown(R,C)},this.chownSync=(v,R,C)=>{ye(R),Re(C),this._chown((0,A.pathToFilename)(v),R,C)},this.chown=(v,R,C,j)=>{ye(R),Re(C),this.wrapAsync(this._chown,[(0,A.pathToFilename)(v),R,C],j)},this._lchown=(v,R,C)=>{this._core.getLinkOrThrow(v,"lchown").getNode().chown(R,C)},this.lchownSync=(v,R,C)=>{ye(R),Re(C),this._lchown((0,A.pathToFilename)(v),R,C)},this.lchown=(v,R,C,j)=>{ye(R),Re(C),this.wrapAsync(this._lchown,[(0,A.pathToFilename)(v),R,C],j)},this.statWatchers={},this.cpSync=(v,R,C)=>{let j=(0,A.pathToFilename)(v),Z=(0,A.pathToFilename)(R),oe={dereference:C?.dereference??!1,errorOnExist:C?.errorOnExist??!1,filter:C?.filter,force:C?.force??!0,mode:C?.mode??0,preserveTimestamps:C?.preserveTimestamps??!1,recursive:C?.recursive??!1,verbatimSymlinks:C?.verbatimSymlinks??!1};return this._cp(j,Z,oe)},this.cp=(v,R,C,j)=>{let Z=(0,A.pathToFilename)(v),oe=(0,A.pathToFilename)(R),Ae,le;typeof C=="function"?[Ae,le]=[{},C]:[Ae,le]=[C||{},j],(0,A.validateCallback)(le);let Fe={dereference:Ae?.dereference??!1,errorOnExist:Ae?.errorOnExist??!1,filter:Ae?.filter,force:Ae?.force??!0,mode:Ae?.mode??0,preserveTimestamps:Ae?.preserveTimestamps??!1,recursive:Ae?.recursive??!1,verbatimSymlinks:Ae?.verbatimSymlinks??!1};this.wrapAsync(this._cp,[Z,oe,Fe],le)},this.openAsBlob=async(v,R)=>{let C=(0,A.pathToFilename)(v),j;try{j=this._core.getResolvedLinkOrThrow(C,"open")}catch(Ae){throw Ae&&typeof Ae=="object"&&Ae.code==="ENOENT"?new E.TypeError("ERR_INVALID_ARG_VALUE"):Ae}let Z=j.getNode().getBuffer(),oe=R?.type||"";return new Blob([Z],{type:oe})},this.glob=(v,...R)=>{let[C,j]=R.length===1?[{},R[0]]:[R[0],R[1]];this.wrapAsync(this._globSync,[v,C||{}],j)},this.globSync=(v,R={})=>this._globSync(v,R),this._globSync=(v,R={})=>{let{globSync:C}=XN();return C(this,v,R)},this._opendir=(v,R)=>{let C=this._core.getResolvedLinkOrThrow(v,"scandir");if(!C.getNode().isDirectory())throw(0,A.createError)("ENOTDIR","scandir",v);return new x.Dir(C,R)},this.opendirSync=(v,R)=>{let C=(0,P.getOpendirOptions)(R),j=(0,A.pathToFilename)(v);return this._opendir(j,C)},this.opendir=(v,R,C)=>{let[j,Z]=(0,P.getOpendirOptsAndCb)(R,C),oe=(0,A.pathToFilename)(v);this.wrapAsync(this._opendir,[oe,j],Z)};let Ce=this;this.StatWatcher=class extends fe{constructor(){super(Ce)}};let $e=I;this.ReadStream=class extends $e{constructor(...v){super(Ce,...v)}};let Ke=z;this.WriteStream=class extends Ke{constructor(...v){super(Ce,...v)}},this.FSWatcher=class extends Oe{constructor(){super(Ce)}};let t=e((v,R)=>{let C=this._core.getResolvedLinkOrThrow(v,"realpath");return(0,y.strToEncoding)(C.getPath()||"/",R)},"_realpath"),s=e((v,R,C)=>{let[j,Z]=(0,P.getRealpathOptsAndCb)(R,C),oe=(0,A.pathToFilename)(v);Ce.wrapAsync(t,[oe,j.encoding],Z)},"realpathImpl"),c=e((v,R)=>t((0,A.pathToFilename)(v),(0,P.getRealpathOptions)(R).encoding),"realpathSyncImpl");this.realpath=s,this.realpath.native=s,this.realpathSync=c,this.realpathSync.native=c}wrapAsync(ke,Ce,$e){(0,A.validateCallback)($e),Promise.resolve().then(()=>{let Ke;try{Ke=ke.apply(this,Ce)}catch(t){$e(t);return}$e(null,Ke)})}toTree(ke={separator:i.sep}){return(0,T.toTreeSync)(this,ke)}reset(){this._core.reset()}toJSON(ke,Ce={},$e=!1,Ke=!1){return this._core.toJSON(ke,Ce,$e,Ke)}fromJSON(ke,Ce){return this._core.fromJSON(ke,Ce)}fromNestedJSON(ke,Ce){return this._core.fromNestedJSON(ke,Ce)}mountSync(ke,Ce){this._core.fromJSON(Ce,ke)}_write(ke,Ce,$e,Ke,t){let s=this._core.getFileByFdOrThrow(ke,"write");if(s.node.isSymlink())throw(0,A.createError)("EBADF","write",s.link.getPath());return s.write(Ce,$e,Ke,t===-1||typeof t!="number"?void 0:t)}writevBase(ke,Ce,$e){let Ke=this._core.getFileByFdOrThrow(ke),t=$e??void 0;t===-1&&(t=void 0);let s=0;for(let c of Ce){let v=r.Buffer.from(c.buffer,c.byteOffset,c.byteLength),R=Ke.write(v,0,v.byteLength,t);if(t=void 0,s+=R,R<v.byteLength)break}return s}_copyFile(ke,Ce,$e){let Ke=this.readFileSync(ke);if($e&ae&&this.existsSync(Ce))throw(0,A.createError)("EEXIST","copyFile",ke,Ce);if($e&de)throw(0,A.createError)("ENOSYS","copyFile",ke,Ce);this._core.writeFile(Ce,Ke,O.FLAGS.w,438)}isSrcSubdir(ke,Ce){try{let $e=Te(ke.startsWith("/")?ke:"/"+ke),Ke=Te(Ce.startsWith("/")?Ce:"/"+Ce);if($e===Ke)return!0;let t=xe($e,Ke);return t===""||!t.startsWith("..")&&!(0,i.isAbsolute)(t)}catch{return!1}}cpFileSync(ke,Ce,$e,Ke,t){if(Ce){if(t.errorOnExist)throw(0,A.createError)("EEXIST","cp",Ke);if(!t.force)return;this.unlinkSync(Ke)}this.copyFileSync($e,Ke,t.mode),t.preserveTimestamps&&this.utimesSync(Ke,ke.atime,ke.mtime),this.chmodSync(Ke,Number(ke.mode))}cpDirSync(ke,Ce,$e,Ke,t){Ce||this.mkdirSync(Ke);let s=this.readdirSync($e);for(let c of s){let v=Pe($e,String(c)),R=Pe(Ke,String(c));t.filter&&!t.filter(v,R)||this._cp(v,R,t)}this.chmodSync(Ke,Number(ke.mode))}cpSymlinkSync(ke,Ce,$e,Ke){let t=String(this.readlinkSync(Ce));!Ke.verbatimSymlinks&&!(0,i.isAbsolute)(t)&&(t=M(se(Ce),t)),ke&&this.unlinkSync($e),this.symlinkSync(t,$e)}lstat(ke,Ce,$e){let[{throwIfNoEntry:Ke=!0,bigint:t=!1},s]=(0,P.getStatOptsAndCb)(Ce,$e);this.wrapAsync(this._lstat,[(0,A.pathToFilename)(ke),t,Ke],s)}_stat(ke,Ce=!1,$e=!0){let Ke;try{Ke=this._core.getResolvedLinkOrThrow(ke,"stat")}catch(t){if(t.code==="ENOENT"&&!$e)return;throw t}return p.default.build(Ke.getNode(),Ce)}statSync(ke,Ce){let{bigint:$e=!0,throwIfNoEntry:Ke=!0}=(0,P.getStatOptions)(Ce);return this._stat((0,A.pathToFilename)(ke),$e,Ke)}stat(ke,Ce,$e){let[{bigint:Ke=!1,throwIfNoEntry:t=!0},s]=(0,P.getStatOptsAndCb)(Ce,$e);this.wrapAsync(this._stat,[(0,A.pathToFilename)(ke),Ke,t],s)}fstatBase(ke,Ce=!1){let $e=this._core.getFileByFd(ke);if(!$e)throw(0,A.createError)("EBADF","fstat");return p.default.build($e.node,Ce)}fstatSync(ke,Ce){return this.fstatBase(ke,(0,P.getStatOptions)(Ce).bigint)}fstat(ke,Ce,$e){let[Ke,t]=(0,P.getStatOptsAndCb)(Ce,$e);this.wrapAsync(this.fstatBase,[ke,Ke.bigint],t)}_exists(ke){return!!this._stat(ke)}_access(ke,Ce){let $e=this._core.getLinkOrThrow(ke,"access").getNode();if(Ce!==V&&(Ce&q&&!$e.canRead()||Ce&G&&!$e.canWrite()||Ce&re&&!$e.canExecute()))throw(0,A.createError)("EACCES","access",ke)}watchFile(ke,Ce,$e){let Ke=(0,A.pathToFilename)(ke),t=Ce,s=$e;if(typeof t=="function"&&(s=Ce,t=null),typeof s!="function")throw Error('"watchFile()" requires a listener function');let c=5007,v=!0;t&&typeof t=="object"&&(typeof t.interval=="number"&&(c=t.interval),typeof t.persistent=="boolean"&&(v=t.persistent));let R=this.statWatchers[Ke];return R||(R=new this.StatWatcher,R.start(Ke,v,c),this.statWatchers[Ke]=R),R.addListener("change",s),R}unwatchFile(ke,Ce){let $e=(0,A.pathToFilename)(ke),Ke=this.statWatchers[$e];Ke&&(typeof Ce=="function"?Ke.removeListener("change",Ce):Ke.removeAllListeners("change"),Ke.listenerCount("change")===0&&(Ke.stop(),delete this.statWatchers[$e]))}createReadStream(ke,Ce){return new this.ReadStream(ke,Ce)}createWriteStream(ke,Ce){return new this.WriteStream(ke,Ce)}watch(ke,Ce,$e){let Ke=(0,A.pathToFilename)(ke),t=Ce;typeof Ce=="function"&&($e=Ce,t=null);let{persistent:s,recursive:c,encoding:v}=(0,P.getDefaultOpts)(t);s===void 0&&(s=!0),c===void 0&&(c=!1);let R=new this.FSWatcher;return R.start(Ke,s,c,v),$e&&R.addListener("change",$e),R}_statfs(ke,Ce=!1){return this._core.getResolvedLinkOrThrow(ke,"statfs"),n.default.build(this._core,Ce)}statfsSync(ke,Ce){let{bigint:$e=!1}=(0,P.getStatfsOptions)(Ce);return this._statfs((0,A.pathToFilename)(ke),$e)}statfs(ke,Ce,$e){let[{bigint:Ke=!1},t]=(0,P.getStatfsOptsAndCb)(Ce,$e);this.wrapAsync(this._statfs,[(0,A.pathToFilename)(ke),Ke],t)}},l(be,"uw"),be);e(De,"Volume");var Y=De;o.Volume=Y,Y.fromJSON=(Ie,ke)=>new Y(f.Superblock.fromJSON(Ie,ke)),Y.fromNestedJSON=(Ie,ke)=>new Y(f.Superblock.fromNestedJSON(Ie,ke));function H(Ie){Ie.emit("stop")}l(H,"dq"),e(H,"emitStop");var Q=(ge=class extends m.EventEmitter{constructor(ke){super(),this.onInterval=()=>{try{let Ce=this.vol.statSync(this.filename);this.hasChanged(Ce)&&(this.emit("change",Ce,this.prev),this.prev=Ce)}finally{this.loop()}},this.vol=ke}loop(){this.timeoutRef=this.setTimeout(this.onInterval,this.interval)}hasChanged(ke){return ke.mtimeMs>this.prev.mtimeMs||ke.nlink!==this.prev.nlink}start(ke,Ce=!0,$e=5007){this.filename=(0,A.pathToFilename)(ke),this.setTimeout=Ce?setTimeout.bind(globalThis):g.default,this.interval=$e,this.prev=this.vol.statSync(this.filename),this.loop()}stop(){clearTimeout(this.timeoutRef),(0,u.default)(()=>{H.call(this,this)})}},l(ge,"cw"),ge);e(Q,"StatWatcher");var fe=Q;o.StatWatcher=fe;var ve;function N(Ie){ve=(0,r.bufferAllocUnsafe)(Ie),ve.used=0}l(N,"pq"),e(N,"allocNewPool"),(0,_.inherits)(I,h.Readable),o.ReadStream=I;function I(Ie,ke,Ce){if(!(this instanceof I))return new I(Ie,ke,Ce);if(this._vol=Ie,Ce=Object.assign({},(0,P.getOptions)(Ce,{})),Ce.highWaterMark===void 0&&(Ce.highWaterMark=64*1024),h.Readable.call(this,Ce),this.path=(0,A.pathToFilename)(ke),this.fd=Ce.fd===void 0?null:typeof Ce.fd!="number"?Ce.fd.fd:Ce.fd,this.flags=Ce.flags===void 0?"r":Ce.flags,this.mode=Ce.mode===void 0?438:Ce.mode,this.start=Ce.start,this.end=Ce.end,this.autoClose=Ce.autoClose===void 0?!0:Ce.autoClose,this.pos=void 0,this.bytesRead=0,this.start!==void 0){if(typeof this.start!="number")throw new TypeError('"start" option must be a Number');if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw new TypeError('"end" option must be a Number');if(this.start>this.end)throw new Error('"start" option must be <= "end" option');this.pos=this.start}typeof this.fd!="number"&&this.open(),this.on("end",function(){this.autoClose&&this.destroy&&this.destroy()})}l(I,"bn"),e(I,"FsReadStream"),I.prototype.open=function(){var Ie=this;this._vol.open(this.path,this.flags,this.mode,(ke,Ce)=>{if(ke){Ie.autoClose&&Ie.destroy&&Ie.destroy(),Ie.emit("error",ke);return}Ie.fd=Ce,Ie.emit("open",Ce),Ie.read()})},I.prototype._read=function(Ie){if(typeof this.fd!="number")return this.once("open",function(){this._read(Ie)});if(this.destroyed)return;(!ve||ve.length-ve.used<J)&&N(this._readableState.highWaterMark);var ke=ve,Ce=Math.min(ve.length-ve.used,Ie),$e=ve.used;if(this.pos!==void 0&&(Ce=Math.min(this.end-this.pos+1,Ce)),Ce<=0)return this.push(null);var Ke=this;this._vol.read(this.fd,ve,ve.used,Ce,this.pos,t),this.pos!==void 0&&(this.pos+=Ce),ve.used+=Ce;function t(s,c){if(s)Ke.autoClose&&Ke.destroy&&Ke.destroy(),Ke.emit("error",s);else{var v=null;c>0&&(Ke.bytesRead+=c,v=ke.slice($e,$e+c)),Ke.push(v)}}l(t,"s"),e(t,"onread")},I.prototype._destroy=function(Ie,ke){this.close(Ce=>{ke(Ie||Ce)})},I.prototype.close=function(Ie){if(Ie&&this.once("close",Ie),this.closed||typeof this.fd!="number"){if(typeof this.fd!="number"){this.once("open",D);return}return(0,u.default)(()=>this.emit("close"))}typeof this._readableState?.closed=="boolean"?this._readableState.closed=!0:this.closed=!0,this._vol.close(this.fd,ke=>{ke?this.emit("error",ke):this.emit("close")}),this.fd=null};function D(Ie){this.close()}l(D,"WR"),e(D,"closeOnOpen"),(0,_.inherits)(z,h.Writable),o.WriteStream=z;function z(Ie,ke,Ce){if(!(this instanceof z))return new z(Ie,ke,Ce);if(this._vol=Ie,Ce=Object.assign({},(0,P.getOptions)(Ce,{})),h.Writable.call(this,Ce),this.path=(0,A.pathToFilename)(ke),this.fd=Ce.fd===void 0?null:typeof Ce.fd!="number"?Ce.fd.fd:Ce.fd,this.flags=Ce.flags===void 0?"w":Ce.flags,this.mode=Ce.mode===void 0?438:Ce.mode,this.start=Ce.start,this.autoClose=Ce.autoClose===void 0?!0:!!Ce.autoClose,this.pos=void 0,this.bytesWritten=0,this.pending=!0,this.start!==void 0){if(typeof this.start!="number")throw new TypeError('"start" option must be a Number');if(this.start<0)throw new Error('"start" must be >= zero');this.pos=this.start}Ce.encoding&&this.setDefaultEncoding(Ce.encoding),typeof this.fd!="number"&&this.open(),this.once("finish",function(){this.autoClose&&this.close()})}l(z,"qr"),e(z,"FsWriteStream"),z.prototype.open=function(){this._vol.open(this.path,this.flags,this.mode,function(Ie,ke){if(Ie){this.autoClose&&this.destroy&&this.destroy(),this.emit("error",Ie);return}this.fd=ke,this.pending=!1,this.emit("open",ke)}.bind(this))},z.prototype._write=function(Ie,ke,Ce){if(!(Ie instanceof r.Buffer||Ie instanceof Uint8Array))return this.emit("error",new Error("Invalid data"));if(typeof this.fd!="number")return this.once("open",function(){this._write(Ie,ke,Ce)});var $e=this;this._vol.write(this.fd,Ie,0,Ie.length,this.pos,(Ke,t)=>{if(Ke)return $e.autoClose&&$e.destroy&&$e.destroy(),Ce(Ke);$e.bytesWritten+=t,Ce()}),this.pos!==void 0&&(this.pos+=Ie.length)},z.prototype._writev=function(Ie,ke){if(typeof this.fd!="number")return this.once("open",function(){this._writev(Ie,ke)});let Ce=this,$e=Ie.length,Ke=new Array($e);for(var t=0,s=0;s<$e;s++){var c=Ie[s].chunk;Ke[s]=c,t+=c.length}let v=r.Buffer.concat(Ke);this._vol.write(this.fd,v,0,v.length,this.pos,(R,C)=>{if(R)return Ce.destroy&&Ce.destroy(),ke(R);Ce.bytesWritten+=C,ke()}),this.pos!==void 0&&(this.pos+=t)},z.prototype.close=function(Ie){if(Ie&&this.once("close",Ie),this.closed||typeof this.fd!="number"){if(typeof this.fd!="number"){this.once("open",D);return}return(0,u.default)(()=>this.emit("close"))}typeof this._writableState?.closed=="boolean"?this._writableState.closed=!0:this.closed=!0,this._vol.close(this.fd,ke=>{ke?this.emit("error",ke):this.emit("close")}),this.fd=null},z.prototype._destroy=I.prototype._destroy,z.prototype.destroySoon=z.prototype.end;var Ee=(Ne=class extends m.EventEmitter{constructor(ke){super(),this._filename="",this._filenameEncoded="",this._recursive=!1,this._encoding=y.ENCODING_UTF8,this._listenerRemovers=new Map,this._onParentChild=Ce=>{Ce.getName()===this._getName()&&this._emit("rename")},this._emit=Ce=>{this.emit("change",Ce,this._filenameEncoded)},this._persist=()=>{this._timer=setTimeout(this._persist,1e6)},this._vol=ke}_getName(){return this._steps[this._steps.length-1]}start(ke,Ce=!0,$e=!1,Ke=y.ENCODING_UTF8){this._filename=(0,A.pathToFilename)(ke),this._steps=(0,U.filenameToSteps)(this._filename),this._filenameEncoded=(0,y.strToEncoding)(this._filename),this._recursive=$e,this._encoding=Ke;try{this._link=this._vol._core.getLinkOrThrow(this._filename,"FSWatcher")}catch(v){let R=new Error(`watch ${this._filename} ${v.code}`);throw R.code=v.code,R.errno=v.code,R}let t=e(v=>{let R=v.getPath(),C=v.getNode(),j=e(()=>{let Ae=xe(this._filename,R);return Ae||(Ae=this._getName()),this.emit("change","change",Ae)},"onNodeChange"),Z=C.changes.listen(([Ae])=>{Ae==="modify"&&j()}),oe=this._listenerRemovers.get(C.ino)??[];oe.push(()=>Z()),this._listenerRemovers.set(C.ino,oe)},"watchLinkNodeChanged"),s=e(v=>{let R=v.getNode(),C=e(oe=>{this.emit("change","rename",xe(this._filename,oe.getPath())),t(oe),s(oe)},"onLinkChildAdd"),j=e(oe=>{let Ae=e(le=>{let Fe=le.getNode().ino,ie=this._listenerRemovers.get(Fe);ie&&(ie.forEach(Je=>Je()),this._listenerRemovers.delete(Fe));for(let[Je,dt]of le.children.entries())dt&&Je!=="."&&Je!==".."&&Ae(dt)},"removeLinkNodeListeners");Ae(oe),this.emit("change","rename",xe(this._filename,oe.getPath()))},"onLinkChildDelete");for(let[oe,Ae]of v.children.entries())Ae&&oe!=="."&&oe!==".."&&t(Ae);let Z=v.changes.listen(([oe,Ae])=>{oe==="child:add"?C(Ae):oe==="child:del"&&j(Ae)});if((this._listenerRemovers.get(R.ino)??[]).push(()=>{Z()}),$e)for(let[oe,Ae]of v.children.entries())Ae&&oe!=="."&&oe!==".."&&s(Ae)},"watchLinkChildrenChanged");t(this._link),s(this._link);let c=this._link.parent;c&&c.changes.listen(([v,R])=>{v==="child:del"&&this._onParentChild(R)}),Ce&&this._persist()}close(){clearTimeout(this._timer),this._listenerRemovers.forEach(ke=>{ke.forEach(Ce=>Ce())}),this._listenerRemovers.clear(),this._parentChangesUnsub?.()}},l(Ne,"hw"),Ne);e(Ee,"FSWatcher");var Oe=Ee;o.FSWatcher=Oe}),t3=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.fsSynchronousApiList=void 0,o.fsSynchronousApiList=["accessSync","appendFileSync","chmodSync","chownSync","closeSync","copyFileSync","existsSync","fchmodSync","fchownSync","fdatasyncSync","fstatSync","fsyncSync","ftruncateSync","futimesSync","lchmodSync","lchownSync","linkSync","lstatSync","mkdirSync","mkdtempSync","openSync","opendirSync","readdirSync","readFileSync","readlinkSync","readSync","readvSync","realpathSync","renameSync","rmdirSync","rmSync","statSync","symlinkSync","truncateSync","unlinkSync","utimesSync","lutimesSync","writeFileSync","writeSync","writevSync"]}),r3=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.fsCallbackApiList=void 0,o.fsCallbackApiList=["access","appendFile","chmod","chown","close","copyFile","cp","createReadStream","createWriteStream","exists","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","openAsBlob","opendir","read","readv","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","statfs","symlink","truncate","unlink","unwatchFile","utimes","lutimes","watch","watchFile","write","writev","writeFile"]}),Of=Ge((o,i)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.memfs=o.fs=o.vol=o.Volume=void 0,o.createFsFromVolume=y;var f=NI(),p=xE(),a=e3();Object.defineProperty(o,"Volume",{enumerable:!0,get:e(function(){return a.Volume},"get")});var n=Wn(),r=t3(),u=r3(),{F_OK:g,R_OK:h,W_OK:d,X_OK:m}=n.constants;o.vol=new a.Volume;function y(_){let S={F_OK:g,R_OK:h,W_OK:d,X_OK:m,constants:n.constants,Stats:f.default,Dirent:p.default};for(let T of r.fsSynchronousApiList)typeof _[T]=="function"&&(S[T]=_[T].bind(_));for(let T of u.fsCallbackApiList)typeof _[T]=="function"&&(S[T]=_[T].bind(_));return S.StatWatcher=_.StatWatcher,S.FSWatcher=_.FSWatcher,S.WriteStream=_.WriteStream,S.ReadStream=_.ReadStream,S.promises=_.promises,typeof _.realpath=="function"&&(S.realpath=_.realpath.bind(_),typeof _.realpath.native=="function"&&(S.realpath.native=_.realpath.native.bind(_))),typeof _.realpathSync=="function"&&(S.realpathSync=_.realpathSync.bind(_),typeof _.realpathSync.native=="function"&&(S.realpathSync.native=_.realpathSync.native.bind(_))),S._toUnixTimestamp=a.toUnixTimestamp,S.__vol=_,S}l(y,"dw"),e(y,"createFsFromVolume"),o.fs=y(o.vol);var w=e((_={},S="/")=>{let T=a.Volume.fromNestedJSON(_,S);return{fs:y(T),vol:T}},"memfs");o.memfs=w,i.exports={...i.exports,...o.fs},i.exports.semantic=!0}),rj=Ge((o,i)=>{var Q,fe,ve;function f(N){return Array.isArray(N)?N:[N]}l(f,"XR"),e(f,"makeArray");var p=void 0,a="",n=" ",r="\\",u=/^\s+$/,g=/(?:[^\\]|^)\\$/,h=/^\\!/,d=/^\\#/,m=/\r?\n/g,y=/^\.{0,2}\/|^\.{1,2}$/,w=/\/$/,_="/",S="node-ignore";typeof Symbol<"u"&&(S=Symbol.for("node-ignore"));var T=S,O=e((N,I,D)=>(Object.defineProperty(N,I,{value:D}),D),"define"),E=/([0-z])-([0-z])/g,P=e(()=>!1,"RETURN_FALSE"),A=e(N=>N.replace(E,(I,D,z)=>D.charCodeAt(0)<=z.charCodeAt(0)?I:a),"sanitizeRange"),x=e(N=>{let{length:I}=N;return N.slice(0,I-I%2)},"cleanRangeBackSlash"),U=[[/^\uFEFF/,()=>a],[/((?:\\\\)*?)(\\?\s+)$/,(N,I,D)=>I+(D.indexOf("\\")===0?n:a)],[/(\\+?)\s/g,(N,I)=>{let{length:D}=I;return I.slice(0,D-D%2)+n}],[/[\\$.|*+(){^]/g,N=>`\\${N}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,e(function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"},"startingReplacer")],[/\\\/\\\*\\\*(?=\\\/|$)/g,(N,I,D)=>I+6<D.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(N,I,D)=>{let z=D.replace(/\\\*/g,"[^\\/]*");return I+z}],[/\\\\\\(?=[$.|*+(){^])/g,()=>r],[/\\\\/g,()=>r],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(N,I,D,z,Ee)=>I===r?`\\[${D}${x(z)}${Ee}`:Ee==="]"&&z.length%2===0?`[${A(D)}${z}]`:"[]"],[/(?:[^*])$/,N=>/\/$/.test(N)?`${N}$`:`${N}(?=$|\\/$)`]],M=/(^|\\\/)?\\\*$/,ee="regex",V="checkRegex",q="_",G={[ee](N,I){return`${I?`${I}[^/]+`:"[^/]*"}(?=$|\\/$)`},[V](N,I){return`${I?`${I}[^/]*`:"[^/]*"}(?=$|\\/$)`}},re=e(N=>U.reduce((I,[D,z])=>I.replace(D,z.bind(N)),N),"makeRegexPrefix"),ae=e(N=>typeof N=="string","isString"),de=e(N=>N&&ae(N)&&!u.test(N)&&!g.test(N)&&N.indexOf("#")!==0,"checkPattern"),we=e(N=>N.split(m).filter(Boolean),"splitPattern"),xe=(Q=class{constructor(I,D,z,Ee,Oe,be){this.pattern=I,this.mark=D,this.negative=Oe,O(this,"body",z),O(this,"ignoreCase",Ee),O(this,"regexPrefix",be)}get regex(){let I=q+ee;return this[I]?this[I]:this._make(ee,I)}get checkRegex(){let I=q+V;return this[I]?this[I]:this._make(V,I)}_make(I,D){let z=this.regexPrefix.replace(M,G[I]),Ee=this.ignoreCase?new RegExp(z,"i"):new RegExp(z);return O(this,D,Ee)}},l(Q,"Aw"),Q);e(xe,"IgnoreRule");var Pe=xe,se=e(({pattern:N,mark:I},D)=>{let z=!1,Ee=N;Ee.indexOf("!")===0&&(z=!0,Ee=Ee.substr(1)),Ee=Ee.replace(h,"!").replace(d,"#");let Oe=re(Ee);return new Pe(N,I,Ee,D,z,Oe)},"createRule"),Te=(fe=class{constructor(I){this._ignoreCase=I,this._rules=[]}_add(I){if(I&&I[T]){this._rules=this._rules.concat(I._rules._rules),this._added=!0;return}if(ae(I)&&(I={pattern:I}),de(I.pattern)){let D=se(I,this._ignoreCase);this._added=!0,this._rules.push(D)}}add(I){return this._added=!1,f(ae(I)?we(I):I).forEach(this._add,this),this._added}test(I,D,z){let Ee=!1,Oe=!1,be;this._rules.forEach(Ne=>{let{negative:Ie}=Ne;Oe===Ie&&Ee!==Oe||Ie&&!Ee&&!Oe&&!D||!Ne[z].test(I)||(Ee=!Ie,Oe=Ie,be=Ie?p:Ne)});let ge={ignored:Ee,unignored:Oe};return be&&(ge.rule=be),ge}},l(fe,"Rw"),fe);e(Te,"RuleManager");var J=Te,ue=e((N,I)=>{throw new I(N)},"throwError"),te=e((N,I,D)=>ae(N)?N?te.isNotRelative(N)?D(`path should be a \`path.relative()\`d string, but got "${I}"`,RangeError):!0:D("path must not be empty",TypeError):D(`path must be a string, but got \`${I}\``,TypeError),"checkPath"),X=e(N=>y.test(N),"isNotRelative");te.isNotRelative=X,te.convert=N=>N;var ye=(ve=class{constructor({ignorecase:I=!0,ignoreCase:D=I,allowRelativePaths:z=!1}={}){O(this,T,!0),this._rules=new J(D),this._strictPathCheck=!z,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}add(I){return this._rules.add(I)&&this._initCache(),this}addPattern(I){return this.add(I)}_test(I,D,z,Ee){let Oe=I&&te.convert(I);return te(Oe,I,this._strictPathCheck?ue:P),this._t(Oe,D,z,Ee)}checkIgnore(I){if(!w.test(I))return this.test(I);let D=I.split(_).filter(Boolean);if(D.pop(),D.length){let z=this._t(D.join(_)+_,this._testCache,!0,D);if(z.ignored)return z}return this._rules.test(I,!1,V)}_t(I,D,z,Ee){if(I in D)return D[I];if(Ee||(Ee=I.split(_).filter(Boolean)),Ee.pop(),!Ee.length)return D[I]=this._rules.test(I,z,ee);let Oe=this._t(Ee.join(_)+_,D,z,Ee);return D[I]=Oe.ignored?Oe:this._rules.test(I,z,ee)}ignores(I){return this._test(I,this._ignoreCache,!1).ignored}createFilter(){return I=>!this.ignores(I)}filter(I){return f(I).filter(this.createFilter())}test(I){return this._test(I,this._testCache,!0)}},l(ve,"Tw"),ve);e(ye,"Ignore");var Re=ye,De=e(N=>new Re(N),"factory"),Y=e(N=>te(N&&te.convert(N),N,P),"isPathValid"),H=e(()=>{let N=e(D=>/^\\\\\?\\/.test(D)||/["<>|\u0000-\u001F]+/u.test(D)?D:D.replace(/\\/g,"/"),"makePosix");te.convert=N;let I=/^[a-z]:\//i;te.isNotRelative=D=>I.test(D)||X(D)},"setupWindows");typeof process<"u"&&process.platform==="win32"&&H(),i.exports=De,De.default=De,i.exports.isPathValid=Y,O(i.exports,Symbol.for("setupWindows"),H)}),n3=Ge((o,i)=>{"use strict";var f=e(function(p){if(p=p||{},this.Promise=p.Promise||Promise,this.queues=Object.create(null),this.domainReentrant=p.domainReentrant||!1,this.domainReentrant){if(typeof process>"u"||typeof process.domain>"u")throw new Error("Domain-reentrant locks require `process.domain` to exist. Please flip `opts.domainReentrant = false`, use a NodeJS version that still implements Domain, or install a browser polyfill.");this.domains=Object.create(null)}this.timeout=p.timeout||f.DEFAULT_TIMEOUT,this.maxOccupationTime=p.maxOccupationTime||f.DEFAULT_MAX_OCCUPATION_TIME,this.maxExecutionTime=p.maxExecutionTime||f.DEFAULT_MAX_EXECUTION_TIME,p.maxPending===1/0||Number.isInteger(p.maxPending)&&p.maxPending>=0?this.maxPending=p.maxPending:this.maxPending=f.DEFAULT_MAX_PENDING},"AsyncLock");f.DEFAULT_TIMEOUT=0,f.DEFAULT_MAX_OCCUPATION_TIME=0,f.DEFAULT_MAX_EXECUTION_TIME=0,f.DEFAULT_MAX_PENDING=1e3,f.prototype.acquire=function(p,a,n,r){if(Array.isArray(p))return this._acquireBatch(p,a,n,r);if(typeof a!="function")throw new Error("You must pass a function to execute");var u=null,g=null,h=null;typeof n!="function"&&(r=n,n=null,h=new this.Promise(function(x,U){u=x,g=U})),r=r||{};var d=!1,m=null,y=null,w=null,_=this,S=e(function(x,U,M){y&&(clearTimeout(y),y=null),w&&(clearTimeout(w),w=null),x&&(_.queues[p]&&_.queues[p].length===0&&delete _.queues[p],_.domainReentrant&&delete _.domains[p]),d||(h?U?g(U):u(M):typeof n=="function"&&n(U,M),d=!0),x&&_.queues[p]&&_.queues[p].length>0&&_.queues[p].shift()()},"done"),T=e(function(x){if(d)return S(x);m&&(clearTimeout(m),m=null),_.domainReentrant&&x&&(_.domains[p]=process.domain);var U=r.maxExecutionTime||_.maxExecutionTime;if(U&&(w=setTimeout(function(){_.queues[p]&&S(x,new Error("Maximum execution time is exceeded "+p))},U)),a.length===1){var M=!1;try{a(function(ee,V){M||(M=!0,S(x,ee,V))})}catch(ee){M||(M=!0,S(x,ee))}}else _._promiseTry(function(){return a()}).then(function(ee){S(x,void 0,ee)},function(ee){S(x,ee)})},"exec");_.domainReentrant&&process.domain&&(T=process.domain.bind(T));var O=r.maxPending||_.maxPending;if(!_.queues[p])_.queues[p]=[],T(!0);else if(_.domainReentrant&&process.domain&&process.domain===_.domains[p])T(!1);else if(_.queues[p].length>=O)S(!1,new Error("Too many pending tasks in queue "+p));else{var E=e(function(){T(!0)},"taskFn");r.skipQueue?_.queues[p].unshift(E):_.queues[p].push(E);var P=r.timeout||_.timeout;P&&(m=setTimeout(function(){m=null,S(!1,new Error("async-lock timed out in queue "+p))},P))}var A=r.maxOccupationTime||_.maxOccupationTime;if(A&&(y=setTimeout(function(){_.queues[p]&&S(!1,new Error("Maximum occupation time is exceeded in queue "+p))},A)),h)return h},f.prototype._acquireBatch=function(p,a,n,r){typeof n!="function"&&(r=n,n=null);var u=this,g=e(function(d,m){return function(y){u.acquire(d,m,y,r)}},"getFn"),h=p.reduceRight(function(d,m){return g(m,d)},a);if(typeof n=="function")h(n);else return new this.Promise(function(d,m){h.length===1?h(function(y,w){y?m(y):d(w)}):d(h())})},f.prototype.isBusy=function(p){return p?!!this.queues[p]:Object.keys(this.queues).length>0},f.prototype._promiseTry=function(p){try{return this.Promise.resolve(p())}catch(a){return this.Promise.reject(a)}},i.exports=f}),i3=Ge((o,i)=>{"use strict";i.exports=n3()}),rl=Ge((o,i)=>{typeof Object.create=="function"?i.exports=e(function(f,p){p&&(f.super_=p,f.prototype=Object.create(p.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}))},"inherits"):i.exports=e(function(f,p){if(p){f.super_=p;var a=e(function(){},"TempCtor");a.prototype=p.prototype,f.prototype=new a,f.prototype.constructor=f}},"inherits")}),kf={};ln(kf,{Buffer:l(()=>Js,"Buffer"),INSPECT_MAX_BYTES:l(()=>CI,"INSPECT_MAX_BYTES"),kMaxLength:l(()=>LI,"kMaxLength")});var Nd=er(()=>{BE()}),Dd=Ge((o,i)=>{var f=(Nd(),dr(kf)),p=f.Buffer;function a(r,u){for(var g in r)u[g]=r[g]}l(a,"lT"),e(a,"copyProps"),p.from&&p.alloc&&p.allocUnsafe&&p.allocUnsafeSlow?i.exports=f:(a(f,o),o.Buffer=n);function n(r,u,g){return p(r,u,g)}l(n,"Vo"),e(n,"SafeBuffer"),n.prototype=Object.create(p.prototype),a(p,n),n.from=function(r,u,g){if(typeof r=="number")throw new TypeError("Argument must not be a number");return p(r,u,g)},n.alloc=function(r,u,g){if(typeof r!="number")throw new TypeError("Argument must be a number");var h=p(r);return u!==void 0?typeof g=="string"?h.fill(u,g):h.fill(u):h.fill(0),h},n.allocUnsafe=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return p(r)},n.allocUnsafeSlow=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return f.SlowBuffer(r)}}),o3=Ge((o,i)=>{var f={}.toString;i.exports=Array.isArray||function(p){return f.call(p)=="[object Array]"}}),Tf=Ge((o,i)=>{"use strict";i.exports=TypeError}),nj=Ge((o,i)=>{"use strict";i.exports=Object}),a3=Ge((o,i)=>{"use strict";i.exports=Error}),s3=Ge((o,i)=>{"use strict";i.exports=EvalError}),l3=Ge((o,i)=>{"use strict";i.exports=RangeError}),f3=Ge((o,i)=>{"use strict";i.exports=ReferenceError}),ij=Ge((o,i)=>{"use strict";i.exports=SyntaxError}),u3=Ge((o,i)=>{"use strict";i.exports=URIError}),c3=Ge((o,i)=>{"use strict";i.exports=Math.abs}),h3=Ge((o,i)=>{"use strict";i.exports=Math.floor}),d3=Ge((o,i)=>{"use strict";i.exports=Math.max}),p3=Ge((o,i)=>{"use strict";i.exports=Math.min}),g3=Ge((o,i)=>{"use strict";i.exports=Math.pow}),y3=Ge((o,i)=>{"use strict";i.exports=Math.round}),m3=Ge((o,i)=>{"use strict";i.exports=Number.isNaN||e(function(f){return f!==f},"isNaN")}),w3=Ge((o,i)=>{"use strict";var f=m3();i.exports=e(function(p){return f(p)||p===0?p:p<0?-1:1},"sign")}),b3=Ge((o,i)=>{"use strict";i.exports=Object.getOwnPropertyDescriptor}),Ff=Ge((o,i)=>{"use strict";var f=b3();if(f)try{f([],"length")}catch{f=null}i.exports=f}),Ud=Ge((o,i)=>{"use strict";var f=Object.defineProperty||!1;if(f)try{f({},"a",{value:1})}catch{f=!1}i.exports=f}),oj=Ge((o,i)=>{"use strict";i.exports=e(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var f={},p=Symbol("test"),a=Object(p);if(typeof p=="string"||Object.prototype.toString.call(p)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var n=42;f[p]=n;for(var r in f)return!1;if(typeof Object.keys=="function"&&Object.keys(f).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(f).length!==0)return!1;var u=Object.getOwnPropertySymbols(f);if(u.length!==1||u[0]!==p||!Object.prototype.propertyIsEnumerable.call(f,p))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var g=Object.getOwnPropertyDescriptor(f,p);if(g.value!==n||g.enumerable!==!0)return!1}return!0},"hasSymbols")}),v3=Ge((o,i)=>{"use strict";var f=typeof Symbol<"u"&&Symbol,p=oj();i.exports=e(function(){return typeof f!="function"||typeof Symbol!="function"||typeof f("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:p()},"hasNativeSymbols")}),aj=Ge((o,i)=>{"use strict";i.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}),sj=Ge((o,i)=>{"use strict";var f=nj();i.exports=f.getPrototypeOf||null}),_3=Ge((o,i)=>{"use strict";var f="Function.prototype.bind called on incompatible ",p=Object.prototype.toString,a=Math.max,n="[object Function]",r=e(function(h,d){for(var m=[],y=0;y<h.length;y+=1)m[y]=h[y];for(var w=0;w<d.length;w+=1)m[w+h.length]=d[w];return m},"concatty"),u=e(function(h,d){for(var m=[],y=d||0,w=0;y<h.length;y+=1,w+=1)m[w]=h[y];return m},"slicy"),g=e(function(h,d){for(var m="",y=0;y<h.length;y+=1)m+=h[y],y+1<h.length&&(m+=d);return m},"joiny");i.exports=e(function(h){var d=this;if(typeof d!="function"||p.apply(d)!==n)throw new TypeError(f+d);for(var m=u(arguments,1),y,w=e(function(){if(this instanceof y){var E=d.apply(this,r(m,arguments));return Object(E)===E?E:this}return d.apply(h,r(m,arguments))},"binder"),_=a(0,d.length-m.length),S=[],T=0;T<_;T++)S[T]="$"+T;if(y=Function("binder","return function ("+g(S,",")+"){ return binder.apply(this,arguments); }")(w),d.prototype){var O=e(function(){},"Empty");O.prototype=d.prototype,y.prototype=new O,O.prototype=null}return y},"bind")}),Bf=Ge((o,i)=>{"use strict";var f=_3();i.exports=Function.prototype.bind||f}),r2=Ge((o,i)=>{"use strict";i.exports=Function.prototype.call}),n2=Ge((o,i)=>{"use strict";i.exports=Function.prototype.apply}),E3=Ge((o,i)=>{"use strict";i.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}),lj=Ge((o,i)=>{"use strict";var f=Bf(),p=n2(),a=r2(),n=E3();i.exports=n||f.call(a,p)}),i2=Ge((o,i)=>{"use strict";var f=Bf(),p=Tf(),a=r2(),n=lj();i.exports=e(function(r){if(r.length<1||typeof r[0]!="function")throw new p("a function is required");return n(f,a,r)},"callBindBasic")}),S3=Ge((o,i)=>{"use strict";var f=i2(),p=Ff(),a;try{a=[].__proto__===Array.prototype}catch(g){if(!g||typeof g!="object"||!("code"in g)||g.code!=="ERR_PROTO_ACCESS")throw g}var n=!!a&&p&&p(Object.prototype,"__proto__"),r=Object,u=r.getPrototypeOf;i.exports=n&&typeof n.get=="function"?f([n.get]):typeof u=="function"?e(function(g){return u(g==null?g:r(g))},"getDunder"):!1}),fj=Ge((o,i)=>{"use strict";var f=aj(),p=sj(),a=S3();i.exports=f?e(function(n){return f(n)},"getProto"):p?e(function(n){if(!n||typeof n!="object"&&typeof n!="function")throw new TypeError("getProto: not an object");return p(n)},"getProto"):a?e(function(n){return a(n)},"getProto"):null}),A3=Ge((o,i)=>{"use strict";var f=Function.prototype.call,p=Object.prototype.hasOwnProperty,a=Bf();i.exports=a.call(f,p)}),uj=Ge((o,i)=>{"use strict";var f,p=nj(),a=a3(),n=s3(),r=l3(),u=f3(),g=ij(),h=Tf(),d=u3(),m=c3(),y=h3(),w=d3(),_=p3(),S=g3(),T=y3(),O=w3(),E=Function,P=e(function(ve){try{return E('"use strict"; return ('+ve+").constructor;")()}catch{}},"getEvalledConstructor"),A=Ff(),x=Ud(),U=e(function(){throw new h},"throwTypeError"),M=A?function(){try{return arguments.callee,U}catch{try{return A(arguments,"callee").get}catch{return U}}}():U,ee=v3()(),V=fj(),q=sj(),G=aj(),re=n2(),ae=r2(),de={},we=typeof Uint8Array>"u"||!V?f:V(Uint8Array),xe={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?f:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?f:ArrayBuffer,"%ArrayIteratorPrototype%":ee&&V?V([][Symbol.iterator]()):f,"%AsyncFromSyncIteratorPrototype%":f,"%AsyncFunction%":de,"%AsyncGenerator%":de,"%AsyncGeneratorFunction%":de,"%AsyncIteratorPrototype%":de,"%Atomics%":typeof Atomics>"u"?f:Atomics,"%BigInt%":typeof BigInt>"u"?f:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?f:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?f:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?f:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?f:Float16Array,"%Float32Array%":typeof Float32Array>"u"?f:Float32Array,"%Float64Array%":typeof Float64Array>"u"?f:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?f:FinalizationRegistry,"%Function%":E,"%GeneratorFunction%":de,"%Int8Array%":typeof Int8Array>"u"?f:Int8Array,"%Int16Array%":typeof Int16Array>"u"?f:Int16Array,"%Int32Array%":typeof Int32Array>"u"?f:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ee&&V?V(V([][Symbol.iterator]())):f,"%JSON%":typeof JSON=="object"?JSON:f,"%Map%":typeof Map>"u"?f:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ee||!V?f:V(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":p,"%Object.getOwnPropertyDescriptor%":A,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?f:Promise,"%Proxy%":typeof Proxy>"u"?f:Proxy,"%RangeError%":r,"%ReferenceError%":u,"%Reflect%":typeof Reflect>"u"?f:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?f:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ee||!V?f:V(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?f:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ee&&V?V(""[Symbol.iterator]()):f,"%Symbol%":ee?Symbol:f,"%SyntaxError%":g,"%ThrowTypeError%":M,"%TypedArray%":we,"%TypeError%":h,"%Uint8Array%":typeof Uint8Array>"u"?f:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?f:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?f:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?f:Uint32Array,"%URIError%":d,"%WeakMap%":typeof WeakMap>"u"?f:WeakMap,"%WeakRef%":typeof WeakRef>"u"?f:WeakRef,"%WeakSet%":typeof WeakSet>"u"?f:WeakSet,"%Function.prototype.call%":ae,"%Function.prototype.apply%":re,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":q,"%Math.abs%":m,"%Math.floor%":y,"%Math.max%":w,"%Math.min%":_,"%Math.pow%":S,"%Math.round%":T,"%Math.sign%":O,"%Reflect.getPrototypeOf%":G};if(V)try{null.error}catch(ve){Pe=V(V(ve)),xe["%Error.prototype%"]=Pe}var Pe,se=e(l(function ve(N){var I;if(N==="%AsyncFunction%")I=P("async function () {}");else if(N==="%GeneratorFunction%")I=P("function* () {}");else if(N==="%AsyncGeneratorFunction%")I=P("async function* () {}");else if(N==="%AsyncGenerator%"){var D=ve("%AsyncGeneratorFunction%");D&&(I=D.prototype)}else if(N==="%AsyncIteratorPrototype%"){var z=ve("%AsyncGenerator%");z&&V&&(I=V(z.prototype))}return xe[N]=I,I},"e"),"doEval"),Te={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},J=Bf(),ue=A3(),te=J.call(ae,Array.prototype.concat),X=J.call(re,Array.prototype.splice),ye=J.call(ae,String.prototype.replace),Re=J.call(ae,String.prototype.slice),De=J.call(ae,RegExp.prototype.exec),Y=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,H=/\\(\\)?/g,Q=e(function(ve){var N=Re(ve,0,1),I=Re(ve,-1);if(N==="%"&&I!=="%")throw new g("invalid intrinsic syntax, expected closing `%`");if(I==="%"&&N!=="%")throw new g("invalid intrinsic syntax, expected opening `%`");var D=[];return ye(ve,Y,function(z,Ee,Oe,be){D[D.length]=Oe?ye(be,H,"$1"):Ee||z}),D},"stringToPath"),fe=e(function(ve,N){var I=ve,D;if(ue(Te,I)&&(D=Te[I],I="%"+D[0]+"%"),ue(xe,I)){var z=xe[I];if(z===de&&(z=se(I)),typeof z>"u"&&!N)throw new h("intrinsic "+ve+" exists, but is not available. Please file an issue!");return{alias:D,name:I,value:z}}throw new g("intrinsic "+ve+" does not exist!")},"getBaseIntrinsic");i.exports=e(function(ve,N){if(typeof ve!="string"||ve.length===0)throw new h("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof N!="boolean")throw new h('"allowMissing" argument must be a boolean');if(De(/^%?[^%]*%?$/,ve)===null)throw new g("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var I=Q(ve),D=I.length>0?I[0]:"",z=fe("%"+D+"%",N),Ee=z.name,Oe=z.value,be=!1,ge=z.alias;ge&&(D=ge[0],X(I,te([0,1],ge)));for(var Ne=1,Ie=!0;Ne<I.length;Ne+=1){var ke=I[Ne],Ce=Re(ke,0,1),$e=Re(ke,-1);if((Ce==='"'||Ce==="'"||Ce==="`"||$e==='"'||$e==="'"||$e==="`")&&Ce!==$e)throw new g("property names with quotes must have matching quotes");if((ke==="constructor"||!Ie)&&(be=!0),D+="."+ke,Ee="%"+D+"%",ue(xe,Ee))Oe=xe[Ee];else if(Oe!=null){if(!(ke in Oe)){if(!N)throw new h("base intrinsic for "+ve+" exists, but the property is not available.");return}if(A&&Ne+1>=I.length){var Ke=A(Oe,ke);Ie=!!Ke,Ie&&"get"in Ke&&!("originalValue"in Ke.get)?Oe=Ke.get:Oe=Oe[ke]}else Ie=ue(Oe,ke),Oe=Oe[ke];Ie&&!be&&(xe[Ee]=Oe)}}return Oe},"GetIntrinsic")}),cj=Ge((o,i)=>{"use strict";var f=uj(),p=i2(),a=p([f("%String.prototype.indexOf%")]);i.exports=e(function(n,r){var u=f(n,!!r);return typeof u=="function"&&a(n,".prototype.")>-1?p([u]):u},"callBoundIntrinsic")}),R3=Ge((o,i)=>{"use strict";var f=Function.prototype.toString,p=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,a,n;if(typeof p=="function"&&typeof Object.defineProperty=="function")try{a=Object.defineProperty({},"length",{get:e(function(){throw n},"get")}),n={},p(function(){throw 42},null,a)}catch(A){A!==n&&(p=null)}else p=null;var r=/^\s*class\b/,u=e(function(A){try{var x=f.call(A);return r.test(x)}catch{return!1}},"isES6ClassFunction"),g=e(function(A){try{return u(A)?!1:(f.call(A),!0)}catch{return!1}},"tryFunctionToStr"),h=Object.prototype.toString,d="[object Object]",m="[object Function]",y="[object GeneratorFunction]",w="[object HTMLAllCollection]",_="[object HTML document.all class]",S="[object HTMLCollection]",T=typeof Symbol=="function"&&!!Symbol.toStringTag,O=!(0 in[,]),E=e(function(){return!1},"isDocumentDotAll");typeof document=="object"&&(P=document.all,h.call(P)===h.call(document.all)&&(E=e(function(A){if((O||!A)&&(typeof A>"u"||typeof A=="object"))try{var x=h.call(A);return(x===w||x===_||x===S||x===d)&&A("")==null}catch{}return!1},"isDocumentDotAll")));var P;i.exports=e(p?function(A){if(E(A))return!0;if(!A||typeof A!="function"&&typeof A!="object")return!1;try{p(A,null,a)}catch(x){if(x!==n)return!1}return!u(A)&&g(A)}:function(A){if(E(A))return!0;if(!A||typeof A!="function"&&typeof A!="object")return!1;if(T)return g(A);if(u(A))return!1;var x=h.call(A);return x!==m&&x!==y&&!/^\[object HTML/.test(x)?!1:g(A)},"isCallable")}),O3=Ge((o,i)=>{"use strict";var f=R3(),p=Object.prototype.toString,a=Object.prototype.hasOwnProperty,n=e(function(h,d,m){for(var y=0,w=h.length;y<w;y++)a.call(h,y)&&(m==null?d(h[y],y,h):d.call(m,h[y],y,h))},"forEachArray"),r=e(function(h,d,m){for(var y=0,w=h.length;y<w;y++)m==null?d(h.charAt(y),y,h):d.call(m,h.charAt(y),y,h)},"forEachString"),u=e(function(h,d,m){for(var y in h)a.call(h,y)&&(m==null?d(h[y],y,h):d.call(m,h[y],y,h))},"forEachObject");function g(h){return p.call(h)==="[object Array]"}l(g,"ez"),e(g,"isArray"),i.exports=e(function(h,d,m){if(!f(d))throw new TypeError("iterator must be a function");var y;arguments.length>=3&&(y=m),g(h)?n(h,d,y):typeof h=="string"?r(h,d,y):u(h,d,y)},"forEach")}),k3=Ge((o,i)=>{"use strict";i.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]}),T3=Ge((o,i)=>{"use strict";var f=k3(),p=globalThis;i.exports=e(function(){for(var a=[],n=0;n<f.length;n++)typeof p[f[n]]=="function"&&(a[a.length]=f[n]);return a},"availableTypedArrays")}),F3=Ge((o,i)=>{"use strict";var f=Ud(),p=ij(),a=Tf(),n=Ff();i.exports=e(function(r,u,g){if(!r||typeof r!="object"&&typeof r!="function")throw new a("`obj` must be an object or a function`");if(typeof u!="string"&&typeof u!="symbol")throw new a("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new a("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new a("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new a("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new a("`loose`, if provided, must be a boolean");var h=arguments.length>3?arguments[3]:null,d=arguments.length>4?arguments[4]:null,m=arguments.length>5?arguments[5]:null,y=arguments.length>6?arguments[6]:!1,w=!!n&&n(r,u);if(f)f(r,u,{configurable:m===null&&w?w.configurable:!m,enumerable:h===null&&w?w.enumerable:!h,value:g,writable:d===null&&w?w.writable:!d});else if(y||!h&&!d&&!m)r[u]=g;else throw new p("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},"defineDataProperty")}),B3=Ge((o,i)=>{"use strict";var f=Ud(),p=e(function(){return!!f},"hasPropertyDescriptors");p.hasArrayLengthDefineBug=e(function(){if(!f)return null;try{return f([],"length",{value:1}).length!==1}catch{return!0}},"hasArrayLengthDefineBug"),i.exports=p}),x3=Ge((o,i)=>{"use strict";var f=uj(),p=F3(),a=B3()(),n=Ff(),r=Tf(),u=f("%Math.floor%");i.exports=e(function(g,h){if(typeof g!="function")throw new r("`fn` is not a function");if(typeof h!="number"||h<0||h>4294967295||u(h)!==h)throw new r("`length` must be a positive 32-bit integer");var d=arguments.length>2&&!!arguments[2],m=!0,y=!0;if("length"in g&&n){var w=n(g,"length");w&&!w.configurable&&(m=!1),w&&!w.writable&&(y=!1)}return(m||y||!d)&&(a?p(g,"length",h,!0,!0):p(g,"length",h)),g},"setFunctionLength")}),I3=Ge((o,i)=>{"use strict";var f=Bf(),p=n2(),a=lj();i.exports=e(function(){return a(f,p,arguments)},"applyBind")}),P3=Ge((o,i)=>{"use strict";var f=x3(),p=Ud(),a=i2(),n=I3();i.exports=e(function(r){var u=a(arguments),g=r.length-(arguments.length-1);return f(u,1+(g>0?g:0),!0)},"callBind"),p?p(i.exports,"apply",{value:n}):i.exports.apply=n}),j3=Ge((o,i)=>{"use strict";var f=oj();i.exports=e(function(){return f()&&!!Symbol.toStringTag},"hasToStringTagShams")}),C3=Ge((o,i)=>{"use strict";var f=O3(),p=T3(),a=P3(),n=cj(),r=Ff(),u=fj(),g=n("Object.prototype.toString"),h=j3()(),d=globalThis,m=p(),y=n("String.prototype.slice"),w=n("Array.prototype.indexOf",!0)||e(function(O,E){for(var P=0;P<O.length;P+=1)if(O[P]===E)return P;return-1},"indexOf"),_={__proto__:null};h&&r&&u?f(m,function(O){var E=new d[O];if(Symbol.toStringTag in E&&u){var P=u(E),A=r(P,Symbol.toStringTag);if(!A&&P){var x=u(P);A=r(x,Symbol.toStringTag)}_["$"+O]=a(A.get)}}):f(m,function(O){var E=new d[O],P=E.slice||E.set;P&&(_["$"+O]=a(P))});var S=e(function(O){var E=!1;return f(_,function(P,A){if(!E)try{"$"+P(O)===A&&(E=y(A,1))}catch{}}),E},"tryAllTypedArrays"),T=e(function(O){var E=!1;return f(_,function(P,A){if(!E)try{P(O),E=y(A,1)}catch{}}),E},"tryAllSlices");i.exports=e(function(O){if(!O||typeof O!="object")return!1;if(!h){var E=y(g(O),8,-1);return w(m,E)>-1?E:E!=="Object"?!1:T(O)}return r?S(O):null},"whichTypedArray")}),L3=Ge((o,i)=>{"use strict";var f=C3();i.exports=e(function(p){return!!f(p)},"isTypedArray")}),N3=Ge((o,i)=>{"use strict";var f=Tf(),p=cj(),a=p("TypedArray.prototype.buffer",!0),n=L3();i.exports=a||e(function(r){if(!n(r))throw new f("Not a Typed Array");return r.buffer},"typedArrayBuffer")}),D3=Ge((o,i)=>{"use strict";var f=Dd().Buffer,p=o3(),a=N3(),n=ArrayBuffer.isView||e(function(h){try{return a(h),!0}catch{return!1}},"isView"),r=typeof Uint8Array<"u",u=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",g=u&&(f.prototype instanceof Uint8Array||f.TYPED_ARRAY_SUPPORT);i.exports=e(function(h,d){if(f.isBuffer(h))return h.constructor&&!("isBuffer"in h)?f.from(h):h;if(typeof h=="string")return f.from(h,d);if(u&&n(h)){if(h.byteLength===0)return f.alloc(0);if(g){var m=f.from(h.buffer,h.byteOffset,h.byteLength);if(m.byteLength===h.byteLength)return m}var y=h instanceof Uint8Array?h:new Uint8Array(h.buffer,h.byteOffset,h.byteLength),w=f.from(y);if(w.length===h.byteLength)return w}if(r&&h instanceof Uint8Array)return f.from(h);var _=p(h);if(_)for(var S=0;S<h.length;S+=1){var T=h[S];if(typeof T!="number"||T<0||T>255||~~T!==T)throw new RangeError("Array items must be numbers in the range 0-255.")}if(_||f.isBuffer(h)&&h.constructor&&typeof h.constructor.isBuffer=="function"&&h.constructor.isBuffer(h))return f.from(h);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')},"toBuffer")}),U3=Ge((o,i)=>{"use strict";var f=Dd().Buffer,p=D3();function a(n,r){this._block=f.alloc(n),this._finalSize=r,this._blockSize=n,this._len=0}l(a,"hh"),e(a,"Hash"),a.prototype.update=function(n,r){n=p(n,r||"utf8");for(var u=this._block,g=this._blockSize,h=n.length,d=this._len,m=0;m<h;){for(var y=d%g,w=Math.min(h-m,g-y),_=0;_<w;_++)u[y+_]=n[m+_];d+=w,m+=w,d%g===0&&this._update(u)}return this._len+=h,this},a.prototype.digest=function(n){var r=this._len%this._blockSize;this._block[r]=128,this._block.fill(0,r+1),r>=this._finalSize&&(this._update(this._block),this._block.fill(0));var u=this._len*8;if(u<=4294967295)this._block.writeUInt32BE(u,this._blockSize-4);else{var g=(u&4294967295)>>>0,h=(u-g)/4294967296;this._block.writeUInt32BE(h,this._blockSize-8),this._block.writeUInt32BE(g,this._blockSize-4)}this._update(this._block);var d=this._hash();return n?d.toString(n):d},a.prototype._update=function(){throw new Error("_update must be implemented by subclass")},i.exports=a}),M3=Ge((o,i)=>{"use strict";var f=rl(),p=U3(),a=Dd().Buffer,n=[1518500249,1859775393,-1894007588,-899497514],r=new Array(80);function u(){this.init(),this._w=r,p.call(this,64,56)}l(u,"ff"),e(u,"Sha1"),f(u,p),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function g(y){return y<<1|y>>>31}l(g,"Bz"),e(g,"rotl1");function h(y){return y<<5|y>>>27}l(h,"Cz"),e(h,"rotl5");function d(y){return y<<30|y>>>2}l(d,"Lz"),e(d,"rotl30");function m(y,w,_,S){return y===0?w&_|~w&S:y===2?w&_|w&S|_&S:w^_^S}l(m,"Nz"),e(m,"ft"),u.prototype._update=function(y){for(var w=this._w,_=this._a|0,S=this._b|0,T=this._c|0,O=this._d|0,E=this._e|0,P=0;P<16;++P)w[P]=y.readInt32BE(P*4);for(;P<80;++P)w[P]=g(w[P-3]^w[P-8]^w[P-14]^w[P-16]);for(var A=0;A<80;++A){var x=~~(A/20),U=h(_)+m(x,S,T,O)+E+w[A]+n[x]|0;E=O,O=T,T=d(S),S=_,_=U}this._a=_+this._a|0,this._b=S+this._b|0,this._c=T+this._c|0,this._d=O+this._d|0,this._e=E+this._e|0},u.prototype._hash=function(){var y=a.allocUnsafe(20);return y.writeInt32BE(this._a|0,0),y.writeInt32BE(this._b|0,4),y.writeInt32BE(this._c|0,8),y.writeInt32BE(this._d|0,12),y.writeInt32BE(this._e|0,16),y},i.exports=u}),$3=Ge((o,i)=>{"use strict";function f(r){if(typeof r!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(r))}l(f,"En"),e(f,"assertPath");function p(r,u){for(var g="",h=0,d=-1,m=0,y,w=0;w<=r.length;++w){if(w<r.length)y=r.charCodeAt(w);else{if(y===47)break;y=47}if(y===47){if(!(d===w-1||m===1))if(d!==w-1&&m===2){if(g.length<2||h!==2||g.charCodeAt(g.length-1)!==46||g.charCodeAt(g.length-2)!==46){if(g.length>2){var _=g.lastIndexOf("/");if(_!==g.length-1){_===-1?(g="",h=0):(g=g.slice(0,_),h=g.length-1-g.lastIndexOf("/")),d=w,m=0;continue}}else if(g.length===2||g.length===1){g="",h=0,d=w,m=0;continue}}u&&(g.length>0?g+="/..":g="..",h=2)}else g.length>0?g+="/"+r.slice(d+1,w):g=r.slice(d+1,w),h=w-d-1;d=w,m=0}else y===46&&m!==-1?++m:m=-1}return g}l(p,"_x"),e(p,"normalizeStringPosix");function a(r,u){var g=u.dir||u.root,h=u.base||(u.name||"")+(u.ext||"");return g?g===u.root?g+h:g+r+h:h}l(a,"Dz"),e(a,"_format");var n={resolve:e(function(){for(var r="",u=!1,g,h=arguments.length-1;h>=-1&&!u;h--){var d;h>=0?d=arguments[h]:(g===void 0&&(g=process.cwd()),d=g),f(d),d.length!==0&&(r=d+"/"+r,u=d.charCodeAt(0)===47)}return r=p(r,!u),u?r.length>0?"/"+r:"/":r.length>0?r:"."},"resolve"),normalize:e(function(r){if(f(r),r.length===0)return".";var u=r.charCodeAt(0)===47,g=r.charCodeAt(r.length-1)===47;return r=p(r,!u),r.length===0&&!u&&(r="."),r.length>0&&g&&(r+="/"),u?"/"+r:r},"normalize"),isAbsolute:e(function(r){return f(r),r.length>0&&r.charCodeAt(0)===47},"isAbsolute"),join:e(function(){if(arguments.length===0)return".";for(var r,u=0;u<arguments.length;++u){var g=arguments[u];f(g),g.length>0&&(r===void 0?r=g:r+="/"+g)}return r===void 0?".":n.normalize(r)},"join"),relative:e(function(r,u){if(f(r),f(u),r===u||(r=n.resolve(r),u=n.resolve(u),r===u))return"";for(var g=1;g<r.length&&r.charCodeAt(g)===47;++g);for(var h=r.length,d=h-g,m=1;m<u.length&&u.charCodeAt(m)===47;++m);for(var y=u.length,w=y-m,_=d<w?d:w,S=-1,T=0;T<=_;++T){if(T===_){if(w>_){if(u.charCodeAt(m+T)===47)return u.slice(m+T+1);if(T===0)return u.slice(m+T)}else d>_&&(r.charCodeAt(g+T)===47?S=T:T===0&&(S=0));break}var O=r.charCodeAt(g+T),E=u.charCodeAt(m+T);if(O!==E)break;O===47&&(S=T)}var P="";for(T=g+S+1;T<=h;++T)(T===h||r.charCodeAt(T)===47)&&(P.length===0?P+="..":P+="/..");return P.length>0?P+u.slice(m+S):(m+=S,u.charCodeAt(m)===47&&++m,u.slice(m))},"relative"),_makeLong:e(function(r){return r},"_makeLong"),dirname:e(function(r){if(f(r),r.length===0)return".";for(var u=r.charCodeAt(0),g=u===47,h=-1,d=!0,m=r.length-1;m>=1;--m)if(u=r.charCodeAt(m),u===47){if(!d){h=m;break}}else d=!1;return h===-1?g?"/":".":g&&h===1?"//":r.slice(0,h)},"dirname"),basename:e(function(r,u){if(u!==void 0&&typeof u!="string")throw new TypeError('"ext" argument must be a string');f(r);var g=0,h=-1,d=!0,m;if(u!==void 0&&u.length>0&&u.length<=r.length){if(u.length===r.length&&u===r)return"";var y=u.length-1,w=-1;for(m=r.length-1;m>=0;--m){var _=r.charCodeAt(m);if(_===47){if(!d){g=m+1;break}}else w===-1&&(d=!1,w=m+1),y>=0&&(_===u.charCodeAt(y)?--y===-1&&(h=m):(y=-1,h=w))}return g===h?h=w:h===-1&&(h=r.length),r.slice(g,h)}else{for(m=r.length-1;m>=0;--m)if(r.charCodeAt(m)===47){if(!d){g=m+1;break}}else h===-1&&(d=!1,h=m+1);return h===-1?"":r.slice(g,h)}},"basename"),extname:e(function(r){f(r);for(var u=-1,g=0,h=-1,d=!0,m=0,y=r.length-1;y>=0;--y){var w=r.charCodeAt(y);if(w===47){if(!d){g=y+1;break}continue}h===-1&&(d=!1,h=y+1),w===46?u===-1?u=y:m!==1&&(m=1):u!==-1&&(m=-1)}return u===-1||h===-1||m===0||m===1&&u===h-1&&u===g+1?"":r.slice(u,h)},"extname"),format:e(function(r){if(r===null||typeof r!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof r);return a("/",r)},"format"),parse:e(function(r){f(r);var u={root:"",dir:"",base:"",ext:"",name:""};if(r.length===0)return u;var g=r.charCodeAt(0),h=g===47,d;h?(u.root="/",d=1):d=0;for(var m=-1,y=0,w=-1,_=!0,S=r.length-1,T=0;S>=d;--S){if(g=r.charCodeAt(S),g===47){if(!_){y=S+1;break}continue}w===-1&&(_=!1,w=S+1),g===46?m===-1?m=S:T!==1&&(T=1):m!==-1&&(T=-1)}return m===-1||w===-1||T===0||T===1&&m===w-1&&m===y+1?w!==-1&&(y===0&&h?u.base=u.name=r.slice(1,w):u.base=u.name=r.slice(y,w)):(y===0&&h?(u.name=r.slice(1,m),u.base=r.slice(1,w)):(u.name=r.slice(y,m),u.base=r.slice(y,w)),u.ext=r.slice(m,w)),y>0?u.dir=r.slice(0,y-1):h&&(u.dir="/"),u},"parse"),sep:"/",delimiter:":",win32:null,posix:null};n.posix=n,i.exports=n}),W3=Ge(o=>{var i;(function(f){typeof DO_NOT_EXPORT_CRC>"u"?typeof o=="object"?f(o):typeof define=="function"&&define.amd?define(function(){var p={};return f(p),p}):f(i={}):f(i={})})(function(f){f.version="1.2.2";function p(){for(var V=0,q=new Array(256),G=0;G!=256;++G)V=G,V=V&1?-306674912^V>>>1:V>>>1,V=V&1?-306674912^V>>>1:V>>>1,V=V&1?-306674912^V>>>1:V>>>1,V=V&1?-306674912^V>>>1:V>>>1,V=V&1?-306674912^V>>>1:V>>>1,V=V&1?-306674912^V>>>1:V>>>1,V=V&1?-306674912^V>>>1:V>>>1,V=V&1?-306674912^V>>>1:V>>>1,q[G]=V;return typeof Int32Array<"u"?new Int32Array(q):q}l(p,"t"),e(p,"signed_crc_table");var a=p();function n(V){var q=0,G=0,re=0,ae=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(re=0;re!=256;++re)ae[re]=V[re];for(re=0;re!=256;++re)for(G=V[re],q=256+re;q<4096;q+=256)G=ae[q]=G>>>8^V[G&255];var de=[];for(re=1;re!=16;++re)de[re-1]=typeof Int32Array<"u"?ae.subarray(re*256,re*256+256):ae.slice(re*256,re*256+256);return de}l(n,"n"),e(n,"slice_by_16_tables");var r=n(a),u=r[0],g=r[1],h=r[2],d=r[3],m=r[4],y=r[5],w=r[6],_=r[7],S=r[8],T=r[9],O=r[10],E=r[11],P=r[12],A=r[13],x=r[14];function U(V,q){for(var G=q^-1,re=0,ae=V.length;re<ae;)G=G>>>8^a[(G^V.charCodeAt(re++))&255];return~G}l(U,"F"),e(U,"crc32_bstr");function M(V,q){for(var G=q^-1,re=V.length-15,ae=0;ae<re;)G=x[V[ae++]^G&255]^A[V[ae++]^G>>8&255]^P[V[ae++]^G>>16&255]^E[V[ae++]^G>>>24]^O[V[ae++]]^T[V[ae++]]^S[V[ae++]]^_[V[ae++]]^w[V[ae++]]^y[V[ae++]]^m[V[ae++]]^d[V[ae++]]^h[V[ae++]]^g[V[ae++]]^u[V[ae++]]^a[V[ae++]];for(re+=15;ae<re;)G=G>>>8^a[(G^V[ae++])&255];return~G}l(M,"S"),e(M,"crc32_buf");function ee(V,q){for(var G=q^-1,re=0,ae=V.length,de=0,we=0;re<ae;)de=V.charCodeAt(re++),de<128?G=G>>>8^a[(G^de)&255]:de<2048?(G=G>>>8^a[(G^(192|de>>6&31))&255],G=G>>>8^a[(G^(128|de&63))&255]):de>=55296&&de<57344?(de=(de&1023)+64,we=V.charCodeAt(re++)&1023,G=G>>>8^a[(G^(240|de>>8&7))&255],G=G>>>8^a[(G^(128|de>>2&63))&255],G=G>>>8^a[(G^(128|we>>6&15|(de&3)<<4))&255],G=G>>>8^a[(G^(128|we&63))&255]):(G=G>>>8^a[(G^(224|de>>12&15))&255],G=G>>>8^a[(G^(128|de>>6&63))&255],G=G>>>8^a[(G^(128|de&63))&255]);return~G}l(ee,"B"),e(ee,"crc32_str"),f.table=a,f.bstr=U,f.buf=M,f.str=ee})}),Zi=Ge(o=>{"use strict";var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function f(n,r){return Object.prototype.hasOwnProperty.call(n,r)}l(f,"Mz"),e(f,"_has"),o.assign=function(n){for(var r=Array.prototype.slice.call(arguments,1);r.length;){var u=r.shift();if(u){if(typeof u!="object")throw new TypeError(u+"must be non-object");for(var g in u)f(u,g)&&(n[g]=u[g])}}return n},o.shrinkBuf=function(n,r){return n.length===r?n:n.subarray?n.subarray(0,r):(n.length=r,n)};var p={arraySet:e(function(n,r,u,g,h){if(r.subarray&&n.subarray){n.set(r.subarray(u,u+g),h);return}for(var d=0;d<g;d++)n[h+d]=r[u+d]},"arraySet"),flattenChunks:e(function(n){var r,u,g,h,d,m;for(g=0,r=0,u=n.length;r<u;r++)g+=n[r].length;for(m=new Uint8Array(g),h=0,r=0,u=n.length;r<u;r++)d=n[r],m.set(d,h),h+=d.length;return m},"flattenChunks")},a={arraySet:e(function(n,r,u,g,h){for(var d=0;d<g;d++)n[h+d]=r[u+d]},"arraySet"),flattenChunks:e(function(n){return[].concat.apply([],n)},"flattenChunks")};o.setTyped=function(n){n?(o.Buf8=Uint8Array,o.Buf16=Uint16Array,o.Buf32=Int32Array,o.assign(o,p)):(o.Buf8=Array,o.Buf16=Array,o.Buf32=Array,o.assign(o,a))},o.setTyped(i)}),z3=Ge(o=>{"use strict";var i=Zi(),f=4,p=0,a=1,n=2;function r(j){for(var Z=j.length;--Z>=0;)j[Z]=0}l(r,"bs"),e(r,"zero");var u=0,g=1,h=2,d=3,m=258,y=29,w=256,_=w+1+y,S=30,T=19,O=2*_+1,E=15,P=16,A=7,x=256,U=16,M=17,ee=18,V=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],q=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],G=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],re=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ae=512,de=new Array((_+2)*2);r(de);var we=new Array(S*2);r(we);var xe=new Array(ae);r(xe);var Pe=new Array(m-d+1);r(Pe);var se=new Array(y);r(se);var Te=new Array(S);r(Te);function J(j,Z,oe,Ae,le){this.static_tree=j,this.extra_bits=Z,this.extra_base=oe,this.elems=Ae,this.max_length=le,this.has_stree=j&&j.length}l(J,"t0"),e(J,"StaticTreeDesc");var ue,te,X;function ye(j,Z){this.dyn_tree=j,this.max_code=0,this.stat_desc=Z}l(ye,"r0"),e(ye,"TreeDesc");function Re(j){return j<256?xe[j]:xe[256+(j>>>7)]}l(Re,"Hx"),e(Re,"d_code");function De(j,Z){j.pending_buf[j.pending++]=Z&255,j.pending_buf[j.pending++]=Z>>>8&255}l(De,"pf"),e(De,"put_short");function Y(j,Z,oe){j.bi_valid>P-oe?(j.bi_buf|=Z<<j.bi_valid&65535,De(j,j.bi_buf),j.bi_buf=Z>>P-j.bi_valid,j.bi_valid+=oe-P):(j.bi_buf|=Z<<j.bi_valid&65535,j.bi_valid+=oe)}l(Y,"pr"),e(Y,"send_bits");function H(j,Z,oe){Y(j,oe[Z*2],oe[Z*2+1])}l(H,"Sn"),e(H,"send_code");function Q(j,Z){var oe=0;do oe|=j&1,j>>>=1,oe<<=1;while(--Z>0);return oe>>>1}l(Q,"Wx"),e(Q,"bi_reverse");function fe(j){j.bi_valid===16?(De(j,j.bi_buf),j.bi_buf=0,j.bi_valid=0):j.bi_valid>=8&&(j.pending_buf[j.pending++]=j.bi_buf&255,j.bi_buf>>=8,j.bi_valid-=8)}l(fe,"Zz"),e(fe,"bi_flush");function ve(j,Z){var oe=Z.dyn_tree,Ae=Z.max_code,le=Z.stat_desc.static_tree,Fe=Z.stat_desc.has_stree,ie=Z.stat_desc.extra_bits,Je=Z.stat_desc.extra_base,dt=Z.stat_desc.max_length,W,qe,Ve,pe,Le,He,me=0;for(pe=0;pe<=E;pe++)j.bl_count[pe]=0;for(oe[j.heap[j.heap_max]*2+1]=0,W=j.heap_max+1;W<O;W++)qe=j.heap[W],pe=oe[oe[qe*2+1]*2+1]+1,pe>dt&&(pe=dt,me++),oe[qe*2+1]=pe,!(qe>Ae)&&(j.bl_count[pe]++,Le=0,qe>=Je&&(Le=ie[qe-Je]),He=oe[qe*2],j.opt_len+=He*(pe+Le),Fe&&(j.static_len+=He*(le[qe*2+1]+Le)));if(me!==0){do{for(pe=dt-1;j.bl_count[pe]===0;)pe--;j.bl_count[pe]--,j.bl_count[pe+1]+=2,j.bl_count[dt]--,me-=2}while(me>0);for(pe=dt;pe!==0;pe--)for(qe=j.bl_count[pe];qe!==0;)Ve=j.heap[--W],!(Ve>Ae)&&(oe[Ve*2+1]!==pe&&(j.opt_len+=(pe-oe[Ve*2+1])*oe[Ve*2],oe[Ve*2+1]=pe),qe--)}}l(ve,"Qz"),e(ve,"gen_bitlen");function N(j,Z,oe){var Ae=new Array(E+1),le=0,Fe,ie;for(Fe=1;Fe<=E;Fe++)Ae[Fe]=le=le+oe[Fe-1]<<1;for(ie=0;ie<=Z;ie++){var Je=j[ie*2+1];Je!==0&&(j[ie*2]=Q(Ae[Je]++,Je))}}l(N,"qx"),e(N,"gen_codes");function I(){var j,Z,oe,Ae,le,Fe=new Array(E+1);for(oe=0,Ae=0;Ae<y-1;Ae++)for(se[Ae]=oe,j=0;j<1<<V[Ae];j++)Pe[oe++]=Ae;for(Pe[oe-1]=Ae,le=0,Ae=0;Ae<16;Ae++)for(Te[Ae]=le,j=0;j<1<<q[Ae];j++)xe[le++]=Ae;for(le>>=7;Ae<S;Ae++)for(Te[Ae]=le<<7,j=0;j<1<<q[Ae]-7;j++)xe[256+le++]=Ae;for(Z=0;Z<=E;Z++)Fe[Z]=0;for(j=0;j<=143;)de[j*2+1]=8,j++,Fe[8]++;for(;j<=255;)de[j*2+1]=9,j++,Fe[9]++;for(;j<=279;)de[j*2+1]=7,j++,Fe[7]++;for(;j<=287;)de[j*2+1]=8,j++,Fe[8]++;for(N(de,_+1,Fe),j=0;j<S;j++)we[j*2+1]=5,we[j*2]=Q(j,5);ue=new J(de,V,w+1,_,E),te=new J(we,q,0,S,E),X=new J(new Array(0),G,0,T,A)}l(I,"eV"),e(I,"tr_static_init");function D(j){var Z;for(Z=0;Z<_;Z++)j.dyn_ltree[Z*2]=0;for(Z=0;Z<S;Z++)j.dyn_dtree[Z*2]=0;for(Z=0;Z<T;Z++)j.bl_tree[Z*2]=0;j.dyn_ltree[x*2]=1,j.opt_len=j.static_len=0,j.last_lit=j.matches=0}l(D,"zx"),e(D,"init_block");function z(j){j.bi_valid>8?De(j,j.bi_buf):j.bi_valid>0&&(j.pending_buf[j.pending++]=j.bi_buf),j.bi_buf=0,j.bi_valid=0}l(z,"Vx"),e(z,"bi_windup");function Ee(j,Z,oe,Ae){z(j),Ae&&(De(j,oe),De(j,~oe)),i.arraySet(j.pending_buf,j.window,Z,oe,j.pending),j.pending+=oe}l(Ee,"tV"),e(Ee,"copy_block");function Oe(j,Z,oe,Ae){var le=Z*2,Fe=oe*2;return j[le]<j[Fe]||j[le]===j[Fe]&&Ae[Z]<=Ae[oe]}l(Oe,"xx"),e(Oe,"smaller");function be(j,Z,oe){for(var Ae=j.heap[oe],le=oe<<1;le<=j.heap_len&&(le<j.heap_len&&Oe(Z,j.heap[le+1],j.heap[le],j.depth)&&le++,!Oe(Z,Ae,j.heap[le],j.depth));)j.heap[oe]=j.heap[le],oe=le,le<<=1;j.heap[oe]=Ae}l(be,"n0"),e(be,"pqdownheap");function ge(j,Z,oe){var Ae,le,Fe=0,ie,Je;if(j.last_lit!==0)do Ae=j.pending_buf[j.d_buf+Fe*2]<<8|j.pending_buf[j.d_buf+Fe*2+1],le=j.pending_buf[j.l_buf+Fe],Fe++,Ae===0?H(j,le,Z):(ie=Pe[le],H(j,ie+w+1,Z),Je=V[ie],Je!==0&&(le-=se[ie],Y(j,le,Je)),Ae--,ie=Re(Ae),H(j,ie,oe),Je=q[ie],Je!==0&&(Ae-=Te[ie],Y(j,Ae,Je)));while(Fe<j.last_lit);H(j,x,Z)}l(ge,"Ox"),e(ge,"compress_block");function Ne(j,Z){var oe=Z.dyn_tree,Ae=Z.stat_desc.static_tree,le=Z.stat_desc.has_stree,Fe=Z.stat_desc.elems,ie,Je,dt=-1,W;for(j.heap_len=0,j.heap_max=O,ie=0;ie<Fe;ie++)oe[ie*2]!==0?(j.heap[++j.heap_len]=dt=ie,j.depth[ie]=0):oe[ie*2+1]=0;for(;j.heap_len<2;)W=j.heap[++j.heap_len]=dt<2?++dt:0,oe[W*2]=1,j.depth[W]=0,j.opt_len--,le&&(j.static_len-=Ae[W*2+1]);for(Z.max_code=dt,ie=j.heap_len>>1;ie>=1;ie--)be(j,oe,ie);W=Fe;do ie=j.heap[1],j.heap[1]=j.heap[j.heap_len--],be(j,oe,1),Je=j.heap[1],j.heap[--j.heap_max]=ie,j.heap[--j.heap_max]=Je,oe[W*2]=oe[ie*2]+oe[Je*2],j.depth[W]=(j.depth[ie]>=j.depth[Je]?j.depth[ie]:j.depth[Je])+1,oe[ie*2+1]=oe[Je*2+1]=W,j.heap[1]=W++,be(j,oe,1);while(j.heap_len>=2);j.heap[--j.heap_max]=j.heap[1],ve(j,Z),N(oe,dt,j.bl_count)}l(Ne,"o0"),e(Ne,"build_tree");function Ie(j,Z,oe){var Ae,le=-1,Fe,ie=Z[0*2+1],Je=0,dt=7,W=4;for(ie===0&&(dt=138,W=3),Z[(oe+1)*2+1]=65535,Ae=0;Ae<=oe;Ae++)Fe=ie,ie=Z[(Ae+1)*2+1],!(++Je<dt&&Fe===ie)&&(Je<W?j.bl_tree[Fe*2]+=Je:Fe!==0?(Fe!==le&&j.bl_tree[Fe*2]++,j.bl_tree[U*2]++):Je<=10?j.bl_tree[M*2]++:j.bl_tree[ee*2]++,Je=0,le=Fe,ie===0?(dt=138,W=3):Fe===ie?(dt=6,W=3):(dt=7,W=4))}l(Ie,"Px"),e(Ie,"scan_tree");function ke(j,Z,oe){var Ae,le=-1,Fe,ie=Z[0*2+1],Je=0,dt=7,W=4;for(ie===0&&(dt=138,W=3),Ae=0;Ae<=oe;Ae++)if(Fe=ie,ie=Z[(Ae+1)*2+1],!(++Je<dt&&Fe===ie)){if(Je<W)do H(j,Fe,j.bl_tree);while(--Je!==0);else Fe!==0?(Fe!==le&&(H(j,Fe,j.bl_tree),Je--),H(j,U,j.bl_tree),Y(j,Je-3,2)):Je<=10?(H(j,M,j.bl_tree),Y(j,Je-3,3)):(H(j,ee,j.bl_tree),Y(j,Je-11,7));Je=0,le=Fe,ie===0?(dt=138,W=3):Fe===ie?(dt=6,W=3):(dt=7,W=4)}}l(ke,"Ix"),e(ke,"send_tree");function Ce(j){var Z;for(Ie(j,j.dyn_ltree,j.l_desc.max_code),Ie(j,j.dyn_dtree,j.d_desc.max_code),Ne(j,j.bl_desc),Z=T-1;Z>=3&&j.bl_tree[re[Z]*2+1]===0;Z--);return j.opt_len+=3*(Z+1)+5+5+4,Z}l(Ce,"rV"),e(Ce,"build_bl_tree");function $e(j,Z,oe,Ae){var le;for(Y(j,Z-257,5),Y(j,oe-1,5),Y(j,Ae-4,4),le=0;le<Ae;le++)Y(j,j.bl_tree[re[le]*2+1],3);ke(j,j.dyn_ltree,Z-1),ke(j,j.dyn_dtree,oe-1)}l($e,"nV"),e($e,"send_all_trees");function Ke(j){var Z=4093624447,oe;for(oe=0;oe<=31;oe++,Z>>>=1)if(Z&1&&j.dyn_ltree[oe*2]!==0)return p;if(j.dyn_ltree[9*2]!==0||j.dyn_ltree[10*2]!==0||j.dyn_ltree[13*2]!==0)return a;for(oe=32;oe<w;oe++)if(j.dyn_ltree[oe*2]!==0)return a;return p}l(Ke,"iV"),e(Ke,"detect_data_type");var t=!1;function s(j){t||(I(),t=!0),j.l_desc=new ye(j.dyn_ltree,ue),j.d_desc=new ye(j.dyn_dtree,te),j.bl_desc=new ye(j.bl_tree,X),j.bi_buf=0,j.bi_valid=0,D(j)}l(s,"oV"),e(s,"_tr_init");function c(j,Z,oe,Ae){Y(j,(u<<1)+(Ae?1:0),3),Ee(j,Z,oe,!0)}l(c,"Gx"),e(c,"_tr_stored_block");function v(j){Y(j,g<<1,3),H(j,x,de),fe(j)}l(v,"aV"),e(v,"_tr_align");function R(j,Z,oe,Ae){var le,Fe,ie=0;j.level>0?(j.strm.data_type===n&&(j.strm.data_type=Ke(j)),Ne(j,j.l_desc),Ne(j,j.d_desc),ie=Ce(j),le=j.opt_len+3+7>>>3,Fe=j.static_len+3+7>>>3,Fe<=le&&(le=Fe)):le=Fe=oe+5,oe+4<=le&&Z!==-1?c(j,Z,oe,Ae):j.strategy===f||Fe===le?(Y(j,(g<<1)+(Ae?1:0),3),ge(j,de,we)):(Y(j,(h<<1)+(Ae?1:0),3),$e(j,j.l_desc.max_code+1,j.d_desc.max_code+1,ie+1),ge(j,j.dyn_ltree,j.dyn_dtree)),D(j),Ae&&z(j)}l(R,"sV"),e(R,"_tr_flush_block");function C(j,Z,oe){return j.pending_buf[j.d_buf+j.last_lit*2]=Z>>>8&255,j.pending_buf[j.d_buf+j.last_lit*2+1]=Z&255,j.pending_buf[j.l_buf+j.last_lit]=oe&255,j.last_lit++,Z===0?j.dyn_ltree[oe*2]++:(j.matches++,Z--,j.dyn_ltree[(Pe[oe]+w+1)*2]++,j.dyn_dtree[Re(Z)*2]++),j.last_lit===j.lit_bufsize-1}l(C,"lV"),e(C,"_tr_tally"),o._tr_init=s,o._tr_stored_block=c,o._tr_flush_block=R,o._tr_tally=C,o._tr_align=v}),hj=Ge((o,i)=>{"use strict";function f(p,a,n,r){for(var u=p&65535|0,g=p>>>16&65535|0,h=0;n!==0;){h=n>2e3?2e3:n,n-=h;do u=u+a[r++]|0,g=g+u|0;while(--h);u%=65521,g%=65521}return u|g<<16|0}l(f,"fV"),e(f,"adler32"),i.exports=f}),dj=Ge((o,i)=>{"use strict";function f(){for(var n,r=[],u=0;u<256;u++){n=u;for(var g=0;g<8;g++)n=n&1?3988292384^n>>>1:n>>>1;r[u]=n}return r}l(f,"uV"),e(f,"makeTable");var p=f();function a(n,r,u,g){var h=p,d=g+u;n^=-1;for(var m=g;m<d;m++)n=n>>>8^h[(n^r[m])&255];return n^-1}l(a,"hV"),e(a,"crc32"),i.exports=a}),o2=Ge((o,i)=>{"use strict";i.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}}),H3=Ge(o=>{"use strict";var i=Zi(),f=z3(),p=hj(),a=dj(),n=o2(),r=0,u=1,g=3,h=4,d=5,m=0,y=1,w=-2,_=-3,S=-5,T=-1,O=1,E=2,P=3,A=4,x=0,U=2,M=8,ee=9,V=15,q=8,G=29,re=256,ae=re+1+G,de=30,we=19,xe=2*ae+1,Pe=15,se=3,Te=258,J=Te+se+1,ue=32,te=42,X=69,ye=73,Re=91,De=103,Y=113,H=666,Q=1,fe=2,ve=3,N=4,I=3;function D(W,qe){return W.msg=n[qe],qe}l(D,"Ji"),e(D,"err");function z(W){return(W<<1)-(W>4?9:0)}l(z,"eO"),e(z,"rank");function Ee(W){for(var qe=W.length;--qe>=0;)W[qe]=0}l(Ee,"Ki"),e(Ee,"zero");function Oe(W){var qe=W.state,Ve=qe.pending;Ve>W.avail_out&&(Ve=W.avail_out),Ve!==0&&(i.arraySet(W.output,qe.pending_buf,qe.pending_out,Ve,W.next_out),W.next_out+=Ve,qe.pending_out+=Ve,W.total_out+=Ve,W.avail_out-=Ve,qe.pending-=Ve,qe.pending===0&&(qe.pending_out=0))}l(Oe,"Yi"),e(Oe,"flush_pending");function be(W,qe){f._tr_flush_block(W,W.block_start>=0?W.block_start:-1,W.strstart-W.block_start,qe),W.block_start=W.strstart,Oe(W.strm)}l(be,"Wt"),e(be,"flush_block_only");function ge(W,qe){W.pending_buf[W.pending++]=qe}l(ge,"rt"),e(ge,"put_byte");function Ne(W,qe){W.pending_buf[W.pending++]=qe>>>8&255,W.pending_buf[W.pending++]=qe&255}l(Ne,"mf"),e(Ne,"putShortMSB");function Ie(W,qe,Ve,pe){var Le=W.avail_in;return Le>pe&&(Le=pe),Le===0?0:(W.avail_in-=Le,i.arraySet(qe,W.input,W.next_in,Le,Ve),W.state.wrap===1?W.adler=p(W.adler,qe,Le,Ve):W.state.wrap===2&&(W.adler=a(W.adler,qe,Le,Ve)),W.next_in+=Le,W.total_in+=Le,Le)}l(Ie,"CV"),e(Ie,"read_buf");function ke(W,qe){var Ve=W.max_chain_length,pe=W.strstart,Le,He,me=W.prev_length,Se=W.nice_match,We=W.strstart>W.w_size-J?W.strstart-(W.w_size-J):0,Qe=W.window,lt=W.w_mask,bt=W.prev,ht=W.strstart+Te,kt=Qe[pe+me-1],qt=Qe[pe+me];W.prev_length>=W.good_match&&(Ve>>=2),Se>W.lookahead&&(Se=W.lookahead);do if(Le=qe,!(Qe[Le+me]!==qt||Qe[Le+me-1]!==kt||Qe[Le]!==Qe[pe]||Qe[++Le]!==Qe[pe+1])){pe+=2,Le++;do;while(Qe[++pe]===Qe[++Le]&&Qe[++pe]===Qe[++Le]&&Qe[++pe]===Qe[++Le]&&Qe[++pe]===Qe[++Le]&&Qe[++pe]===Qe[++Le]&&Qe[++pe]===Qe[++Le]&&Qe[++pe]===Qe[++Le]&&Qe[++pe]===Qe[++Le]&&pe<ht);if(He=Te-(ht-pe),pe=ht-Te,He>me){if(W.match_start=qe,me=He,He>=Se)break;kt=Qe[pe+me-1],qt=Qe[pe+me]}}while((qe=bt[qe<])>We&&--Ve!==0);return me<=W.lookahead?me:W.lookahead}l(ke,"rO"),e(ke,"longest_match");function Ce(W){var qe=W.w_size,Ve,pe,Le,He,me;do{if(He=W.window_size-W.lookahead-W.strstart,W.strstart>=qe+(qe-J)){i.arraySet(W.window,W.window,qe,qe,0),W.match_start-=qe,W.strstart-=qe,W.block_start-=qe,pe=W.hash_size,Ve=pe;do Le=W.head[--Ve],W.head[Ve]=Le>=qe?Le-qe:0;while(--pe);pe=qe,Ve=pe;do Le=W.prev[--Ve],W.prev[Ve]=Le>=qe?Le-qe:0;while(--pe);He+=qe}if(W.strm.avail_in===0)break;if(pe=Ie(W.strm,W.window,W.strstart+W.lookahead,He),W.lookahead+=pe,W.lookahead+W.insert>=se)for(me=W.strstart-W.insert,W.ins_h=W.window[me],W.ins_h=(W.ins_h<<W.hash_shift^W.window[me+1])&W.hash_mask;W.insert&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[me+se-1])&W.hash_mask,W.prev[me&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=me,me++,W.insert--,!(W.lookahead+W.insert<se)););}while(W.lookahead<J&&W.strm.avail_in!==0)}l(Ce,"Jo"),e(Ce,"fill_window");function $e(W,qe){var Ve=65535;for(Ve>W.pending_buf_size-5&&(Ve=W.pending_buf_size-5);;){if(W.lookahead<=1){if(Ce(W),W.lookahead===0&&qe===r)return Q;if(W.lookahead===0)break}W.strstart+=W.lookahead,W.lookahead=0;var pe=W.block_start+Ve;if((W.strstart===0||W.strstart>=pe)&&(W.lookahead=W.strstart-pe,W.strstart=pe,be(W,!1),W.strm.avail_out===0)||W.strstart-W.block_start>=W.w_size-J&&(be(W,!1),W.strm.avail_out===0))return Q}return W.insert=0,qe===h?(be(W,!0),W.strm.avail_out===0?ve:N):(W.strstart>W.block_start&&(be(W,!1),W.strm.avail_out),Q)}l($e,"LV"),e($e,"deflate_stored");function Ke(W,qe){for(var Ve,pe;;){if(W.lookahead<J){if(Ce(W),W.lookahead<J&&qe===r)return Q;if(W.lookahead===0)break}if(Ve=0,W.lookahead>=se&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+se-1])&W.hash_mask,Ve=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart),Ve!==0&&W.strstart-Ve<=W.w_size-J&&(W.match_length=ke(W,Ve)),W.match_length>=se)if(pe=f._tr_tally(W,W.strstart-W.match_start,W.match_length-se),W.lookahead-=W.match_length,W.match_length<=W.max_lazy_match&&W.lookahead>=se){W.match_length--;do W.strstart++,W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+se-1])&W.hash_mask,Ve=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart;while(--W.match_length!==0);W.strstart++}else W.strstart+=W.match_length,W.match_length=0,W.ins_h=W.window[W.strstart],W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+1])&W.hash_mask;else pe=f._tr_tally(W,0,W.window[W.strstart]),W.lookahead--,W.strstart++;if(pe&&(be(W,!1),W.strm.avail_out===0))return Q}return W.insert=W.strstart<se-1?W.strstart:se-1,qe===h?(be(W,!0),W.strm.avail_out===0?ve:N):W.last_lit&&(be(W,!1),W.strm.avail_out===0)?Q:fe}l(Ke,"d0"),e(Ke,"deflate_fast");function t(W,qe){for(var Ve,pe,Le;;){if(W.lookahead<J){if(Ce(W),W.lookahead<J&&qe===r)return Q;if(W.lookahead===0)break}if(Ve=0,W.lookahead>=se&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+se-1])&W.hash_mask,Ve=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart),W.prev_length=W.match_length,W.prev_match=W.match_start,W.match_length=se-1,Ve!==0&&W.prev_length<W.max_lazy_match&&W.strstart-Ve<=W.w_size-J&&(W.match_length=ke(W,Ve),W.match_length<=5&&(W.strategy===O||W.match_length===se&&W.strstart-W.match_start>4096)&&(W.match_length=se-1)),W.prev_length>=se&&W.match_length<=W.prev_length){Le=W.strstart+W.lookahead-se,pe=f._tr_tally(W,W.strstart-1-W.prev_match,W.prev_length-se),W.lookahead-=W.prev_length-1,W.prev_length-=2;do++W.strstart<=Le&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+se-1])&W.hash_mask,Ve=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart);while(--W.prev_length!==0);if(W.match_available=0,W.match_length=se-1,W.strstart++,pe&&(be(W,!1),W.strm.avail_out===0))return Q}else if(W.match_available){if(pe=f._tr_tally(W,0,W.window[W.strstart-1]),pe&&be(W,!1),W.strstart++,W.lookahead--,W.strm.avail_out===0)return Q}else W.match_available=1,W.strstart++,W.lookahead--}return W.match_available&&(pe=f._tr_tally(W,0,W.window[W.strstart-1]),W.match_available=0),W.insert=W.strstart<se-1?W.strstart:se-1,qe===h?(be(W,!0),W.strm.avail_out===0?ve:N):W.last_lit&&(be(W,!1),W.strm.avail_out===0)?Q:fe}l(t,"Es"),e(t,"deflate_slow");function s(W,qe){for(var Ve,pe,Le,He,me=W.window;;){if(W.lookahead<=Te){if(Ce(W),W.lookahead<=Te&&qe===r)return Q;if(W.lookahead===0)break}if(W.match_length=0,W.lookahead>=se&&W.strstart>0&&(Le=W.strstart-1,pe=me[Le],pe===me[++Le]&&pe===me[++Le]&&pe===me[++Le])){He=W.strstart+Te;do;while(pe===me[++Le]&&pe===me[++Le]&&pe===me[++Le]&&pe===me[++Le]&&pe===me[++Le]&&pe===me[++Le]&&pe===me[++Le]&&pe===me[++Le]&&Le<He);W.match_length=Te-(He-Le),W.match_length>W.lookahead&&(W.match_length=W.lookahead)}if(W.match_length>=se?(Ve=f._tr_tally(W,1,W.match_length-se),W.lookahead-=W.match_length,W.strstart+=W.match_length,W.match_length=0):(Ve=f._tr_tally(W,0,W.window[W.strstart]),W.lookahead--,W.strstart++),Ve&&(be(W,!1),W.strm.avail_out===0))return Q}return W.insert=0,qe===h?(be(W,!0),W.strm.avail_out===0?ve:N):W.last_lit&&(be(W,!1),W.strm.avail_out===0)?Q:fe}l(s,"NV"),e(s,"deflate_rle");function c(W,qe){for(var Ve;;){if(W.lookahead===0&&(Ce(W),W.lookahead===0)){if(qe===r)return Q;break}if(W.match_length=0,Ve=f._tr_tally(W,0,W.window[W.strstart]),W.lookahead--,W.strstart++,Ve&&(be(W,!1),W.strm.avail_out===0))return Q}return W.insert=0,qe===h?(be(W,!0),W.strm.avail_out===0?ve:N):W.last_lit&&(be(W,!1),W.strm.avail_out===0)?Q:fe}l(c,"DV"),e(c,"deflate_huff");function v(W,qe,Ve,pe,Le){this.good_length=W,this.max_lazy=qe,this.nice_length=Ve,this.max_chain=pe,this.func=Le}l(v,"An"),e(v,"Config");var R;R=[new v(0,0,0,0,$e),new v(4,4,8,4,Ke),new v(4,5,16,8,Ke),new v(4,6,32,32,Ke),new v(4,4,16,16,t),new v(8,16,32,32,t),new v(8,16,128,128,t),new v(8,32,128,256,t),new v(32,128,258,1024,t),new v(32,258,258,4096,t)];function C(W){W.window_size=2*W.w_size,Ee(W.head),W.max_lazy_match=R[W.level].max_lazy,W.good_match=R[W.level].good_length,W.nice_match=R[W.level].nice_length,W.max_chain_length=R[W.level].max_chain,W.strstart=0,W.block_start=0,W.lookahead=0,W.insert=0,W.match_length=W.prev_length=se-1,W.match_available=0,W.ins_h=0}l(C,"$V"),e(C,"lm_init");function j(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=M,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(xe*2),this.dyn_dtree=new i.Buf16((2*de+1)*2),this.bl_tree=new i.Buf16((2*we+1)*2),Ee(this.dyn_ltree),Ee(this.dyn_dtree),Ee(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(Pe+1),this.heap=new i.Buf16(2*ae+1),Ee(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*ae+1),Ee(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}l(j,"MV"),e(j,"DeflateState");function Z(W){var qe;return!W||!W.state?D(W,w):(W.total_in=W.total_out=0,W.data_type=U,qe=W.state,qe.pending=0,qe.pending_out=0,qe.wrap<0&&(qe.wrap=-qe.wrap),qe.status=qe.wrap?te:Y,W.adler=qe.wrap===2?0:1,qe.last_flush=r,f._tr_init(qe),m)}l(Z,"nO"),e(Z,"deflateResetKeep");function oe(W){var qe=Z(W);return qe===m&&C(W.state),qe}l(oe,"iO"),e(oe,"deflateReset");function Ae(W,qe){return!W||!W.state||W.state.wrap!==2?w:(W.state.gzhead=qe,m)}l(Ae,"UV"),e(Ae,"deflateSetHeader");function le(W,qe,Ve,pe,Le,He){if(!W)return w;var me=1;if(qe===T&&(qe=6),pe<0?(me=0,pe=-pe):pe>15&&(me=2,pe-=16),Le<1||Le>ee||Ve!==M||pe<8||pe>15||qe<0||qe>9||He<0||He>A)return D(W,w);pe===8&&(pe=9);var Se=new j;return W.state=Se,Se.strm=W,Se.wrap=me,Se.gzhead=null,Se.w_bits=pe,Se.w_size=1<<Se.w_bits,Se.w_mask=Se.w_size-1,Se.hash_bits=Le+7,Se.hash_size=1<<Se.hash_bits,Se.hash_mask=Se.hash_size-1,Se.hash_shift=~~((Se.hash_bits+se-1)/se),Se.window=new i.Buf8(Se.w_size*2),Se.head=new i.Buf16(Se.hash_size),Se.prev=new i.Buf16(Se.w_size),Se.lit_bufsize=1<<Le+6,Se.pending_buf_size=Se.lit_bufsize*4,Se.pending_buf=new i.Buf8(Se.pending_buf_size),Se.d_buf=1*Se.lit_bufsize,Se.l_buf=3*Se.lit_bufsize,Se.level=qe,Se.strategy=He,Se.method=Ve,oe(W)}l(le,"oO"),e(le,"deflateInit2");function Fe(W,qe){return le(W,qe,M,V,q,x)}l(Fe,"jV"),e(Fe,"deflateInit");function ie(W,qe){var Ve,pe,Le,He;if(!W||!W.state||qe>d||qe<0)return W?D(W,w):w;if(pe=W.state,!W.output||!W.input&&W.avail_in!==0||pe.status===H&&qe!==h)return D(W,W.avail_out===0?S:w);if(pe.strm=W,Ve=pe.last_flush,pe.last_flush=qe,pe.status===te)if(pe.wrap===2)W.adler=0,ge(pe,31),ge(pe,139),ge(pe,8),pe.gzhead?(ge(pe,(pe.gzhead.text?1:0)+(pe.gzhead.hcrc?2:0)+(pe.gzhead.extra?4:0)+(pe.gzhead.name?8:0)+(pe.gzhead.comment?16:0)),ge(pe,pe.gzhead.time&255),ge(pe,pe.gzhead.time>>8&255),ge(pe,pe.gzhead.time>>16&255),ge(pe,pe.gzhead.time>>24&255),ge(pe,pe.level===9?2:pe.strategy>=E||pe.level<2?4:0),ge(pe,pe.gzhead.os&255),pe.gzhead.extra&&pe.gzhead.extra.length&&(ge(pe,pe.gzhead.extra.length&255),ge(pe,pe.gzhead.extra.length>>8&255)),pe.gzhead.hcrc&&(W.adler=a(W.adler,pe.pending_buf,pe.pending,0)),pe.gzindex=0,pe.status=X):(ge(pe,0),ge(pe,0),ge(pe,0),ge(pe,0),ge(pe,0),ge(pe,pe.level===9?2:pe.strategy>=E||pe.level<2?4:0),ge(pe,I),pe.status=Y);else{var me=M+(pe.w_bits-8<<4)<<8,Se=-1;pe.strategy>=E||pe.level<2?Se=0:pe.level<6?Se=1:pe.level===6?Se=2:Se=3,me|=Se<<6,pe.strstart!==0&&(me|=ue),me+=31-me%31,pe.status=Y,Ne(pe,me),pe.strstart!==0&&(Ne(pe,W.adler>>>16),Ne(pe,W.adler&65535)),W.adler=1}if(pe.status===X)if(pe.gzhead.extra){for(Le=pe.pending;pe.gzindex<(pe.gzhead.extra.length&65535)&&!(pe.pending===pe.pending_buf_size&&(pe.gzhead.hcrc&&pe.pending>Le&&(W.adler=a(W.adler,pe.pending_buf,pe.pending-Le,Le)),Oe(W),Le=pe.pending,pe.pending===pe.pending_buf_size));)ge(pe,pe.gzhead.extra[pe.gzindex]&255),pe.gzindex++;pe.gzhead.hcrc&&pe.pending>Le&&(W.adler=a(W.adler,pe.pending_buf,pe.pending-Le,Le)),pe.gzindex===pe.gzhead.extra.length&&(pe.gzindex=0,pe.status=ye)}else pe.status=ye;if(pe.status===ye)if(pe.gzhead.name){Le=pe.pending;do{if(pe.pending===pe.pending_buf_size&&(pe.gzhead.hcrc&&pe.pending>Le&&(W.adler=a(W.adler,pe.pending_buf,pe.pending-Le,Le)),Oe(W),Le=pe.pending,pe.pending===pe.pending_buf_size)){He=1;break}pe.gzindex<pe.gzhead.name.length?He=pe.gzhead.name.charCodeAt(pe.gzindex++)&255:He=0,ge(pe,He)}while(He!==0);pe.gzhead.hcrc&&pe.pending>Le&&(W.adler=a(W.adler,pe.pending_buf,pe.pending-Le,Le)),He===0&&(pe.gzindex=0,pe.status=Re)}else pe.status=Re;if(pe.status===Re)if(pe.gzhead.comment){Le=pe.pending;do{if(pe.pending===pe.pending_buf_size&&(pe.gzhead.hcrc&&pe.pending>Le&&(W.adler=a(W.adler,pe.pending_buf,pe.pending-Le,Le)),Oe(W),Le=pe.pending,pe.pending===pe.pending_buf_size)){He=1;break}pe.gzindex<pe.gzhead.comment.length?He=pe.gzhead.comment.charCodeAt(pe.gzindex++)&255:He=0,ge(pe,He)}while(He!==0);pe.gzhead.hcrc&&pe.pending>Le&&(W.adler=a(W.adler,pe.pending_buf,pe.pending-Le,Le)),He===0&&(pe.status=De)}else pe.status=De;if(pe.status===De&&(pe.gzhead.hcrc?(pe.pending+2>pe.pending_buf_size&&Oe(W),pe.pending+2<=pe.pending_buf_size&&(ge(pe,W.adler&255),ge(pe,W.adler>>8&255),W.adler=0,pe.status=Y)):pe.status=Y),pe.pending!==0){if(Oe(W),W.avail_out===0)return pe.last_flush=-1,m}else if(W.avail_in===0&&z(qe)<=z(Ve)&&qe!==h)return D(W,S);if(pe.status===H&&W.avail_in!==0)return D(W,S);if(W.avail_in!==0||pe.lookahead!==0||qe!==r&&pe.status!==H){var We=pe.strategy===E?c(pe,qe):pe.strategy===P?s(pe,qe):R[pe.level].func(pe,qe);if((We===ve||We===N)&&(pe.status=H),We===Q||We===ve)return W.avail_out===0&&(pe.last_flush=-1),m;if(We===fe&&(qe===u?f._tr_align(pe):qe!==d&&(f._tr_stored_block(pe,0,0,!1),qe===g&&(Ee(pe.head),pe.lookahead===0&&(pe.strstart=0,pe.block_start=0,pe.insert=0))),Oe(W),W.avail_out===0))return pe.last_flush=-1,m}return qe!==h?m:pe.wrap<=0?y:(pe.wrap===2?(ge(pe,W.adler&255),ge(pe,W.adler>>8&255),ge(pe,W.adler>>16&255),ge(pe,W.adler>>24&255),ge(pe,W.total_in&255),ge(pe,W.total_in>>8&255),ge(pe,W.total_in>>16&255),ge(pe,W.total_in>>24&255)):(Ne(pe,W.adler>>>16),Ne(pe,W.adler&65535)),Oe(W),pe.wrap>0&&(pe.wrap=-pe.wrap),pe.pending!==0?m:y)}l(ie,"HV"),e(ie,"deflate");function Je(W){var qe;return!W||!W.state?w:(qe=W.state.status,qe!==te&&qe!==X&&qe!==ye&&qe!==Re&&qe!==De&&qe!==Y&&qe!==H?D(W,w):(W.state=null,qe===Y?D(W,_):m))}l(Je,"WV"),e(Je,"deflateEnd");function dt(W,qe){var Ve=qe.length,pe,Le,He,me,Se,We,Qe,lt;if(!W||!W.state||(pe=W.state,me=pe.wrap,me===2||me===1&&pe.status!==te||pe.lookahead))return w;for(me===1&&(W.adler=p(W.adler,qe,Ve,0)),pe.wrap=0,Ve>=pe.w_size&&(me===0&&(Ee(pe.head),pe.strstart=0,pe.block_start=0,pe.insert=0),lt=new i.Buf8(pe.w_size),i.arraySet(lt,qe,Ve-pe.w_size,pe.w_size,0),qe=lt,Ve=pe.w_size),Se=W.avail_in,We=W.next_in,Qe=W.input,W.avail_in=Ve,W.next_in=0,W.input=qe,Ce(pe);pe.lookahead>=se;){Le=pe.strstart,He=pe.lookahead-(se-1);do pe.ins_h=(pe.ins_h<<pe.hash_shift^pe.window[Le+se-1])&pe.hash_mask,pe.prev[Le&pe.w_mask]=pe.head[pe.ins_h],pe.head[pe.ins_h]=Le,Le++;while(--He);pe.strstart=Le,pe.lookahead=se-1,Ce(pe)}return pe.strstart+=pe.lookahead,pe.block_start=pe.strstart,pe.insert=pe.lookahead,pe.lookahead=0,pe.match_length=pe.prev_length=se-1,pe.match_available=0,W.next_in=We,W.input=Qe,W.avail_in=Se,pe.wrap=me,m}l(dt,"qV"),e(dt,"deflateSetDictionary"),o.deflateInit=Fe,o.deflateInit2=le,o.deflateReset=oe,o.deflateResetKeep=Z,o.deflateSetHeader=Ae,o.deflate=ie,o.deflateEnd=Je,o.deflateSetDictionary=dt,o.deflateInfo="pako deflate (from Nodeca project)"}),pj=Ge(o=>{"use strict";var i=Zi(),f=!0,p=!0;try{String.fromCharCode.apply(null,[0])}catch{f=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{p=!1}var a=new i.Buf8(256);for(n=0;n<256;n++)a[n]=n>=252?6:n>=248?5:n>=240?4:n>=224?3:n>=192?2:1;var n;a[254]=a[254]=1,o.string2buf=function(u){var g,h,d,m,y,w=u.length,_=0;for(m=0;m<w;m++)h=u.charCodeAt(m),(h&64512)===55296&&m+1<w&&(d=u.charCodeAt(m+1),(d&64512)===56320&&(h=65536+(h-55296<<10)+(d-56320),m++)),_+=h<128?1:h<2048?2:h<65536?3:4;for(g=new i.Buf8(_),y=0,m=0;y<_;m++)h=u.charCodeAt(m),(h&64512)===55296&&m+1<w&&(d=u.charCodeAt(m+1),(d&64512)===56320&&(h=65536+(h-55296<<10)+(d-56320),m++)),h<128?g[y++]=h:h<2048?(g[y++]=192|h>>>6,g[y++]=128|h&63):h<65536?(g[y++]=224|h>>>12,g[y++]=128|h>>>6&63,g[y++]=128|h&63):(g[y++]=240|h>>>18,g[y++]=128|h>>>12&63,g[y++]=128|h>>>6&63,g[y++]=128|h&63);return g};function r(u,g){if(g<65534&&(u.subarray&&p||!u.subarray&&f))return String.fromCharCode.apply(null,i.shrinkBuf(u,g));for(var h="",d=0;d<g;d++)h+=String.fromCharCode(u[d]);return h}l(r,"fO"),e(r,"buf2binstring"),o.buf2binstring=function(u){return r(u,u.length)},o.binstring2buf=function(u){for(var g=new i.Buf8(u.length),h=0,d=g.length;h<d;h++)g[h]=u.charCodeAt(h);return g},o.buf2string=function(u,g){var h,d,m,y,w=g||u.length,_=new Array(w*2);for(d=0,h=0;h<w;){if(m=u[h++],m<128){_[d++]=m;continue}if(y=a[m],y>4){_[d++]=65533,h+=y-1;continue}for(m&=y===2?31:y===3?15:7;y>1&&h<w;)m=m<<6|u[h++]&63,y--;if(y>1){_[d++]=65533;continue}m<65536?_[d++]=m:(m-=65536,_[d++]=55296|m>>10&1023,_[d++]=56320|m&1023)}return r(_,d)},o.utf8border=function(u,g){var h;for(g=g||u.length,g>u.length&&(g=u.length),h=g-1;h>=0&&(u[h]&192)===128;)h--;return h<0||h===0?g:h+a[u[h]]>g?h:g}}),gj=Ge((o,i)=>{"use strict";function f(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}l(f,"zV"),e(f,"ZStream"),i.exports=f}),q3=Ge(o=>{"use strict";var i=H3(),f=Zi(),p=pj(),a=o2(),n=gj(),r=Object.prototype.toString,u=0,g=4,h=0,d=1,m=2,y=-1,w=0,_=8;function S(P){if(!(this instanceof S))return new S(P);this.options=f.assign({level:y,method:_,chunkSize:16384,windowBits:15,memLevel:8,strategy:w,to:""},P||{});var A=this.options;A.raw&&A.windowBits>0?A.windowBits=-A.windowBits:A.gzip&&A.windowBits>0&&A.windowBits<16&&(A.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new n,this.strm.avail_out=0;var x=i.deflateInit2(this.strm,A.level,A.method,A.windowBits,A.memLevel,A.strategy);if(x!==h)throw new Error(a[x]);if(A.header&&i.deflateSetHeader(this.strm,A.header),A.dictionary){var U;if(typeof A.dictionary=="string"?U=p.string2buf(A.dictionary):r.call(A.dictionary)==="[object ArrayBuffer]"?U=new Uint8Array(A.dictionary):U=A.dictionary,x=i.deflateSetDictionary(this.strm,U),x!==h)throw new Error(a[x]);this._dict_set=!0}}l(S,"Qo"),e(S,"Deflate"),S.prototype.push=function(P,A){var x=this.strm,U=this.options.chunkSize,M,ee;if(this.ended)return!1;ee=A===~~A?A:A===!0?g:u,typeof P=="string"?x.input=p.string2buf(P):r.call(P)==="[object ArrayBuffer]"?x.input=new Uint8Array(P):x.input=P,x.next_in=0,x.avail_in=x.input.length;do{if(x.avail_out===0&&(x.output=new f.Buf8(U),x.next_out=0,x.avail_out=U),M=i.deflate(x,ee),M!==d&&M!==h)return this.onEnd(M),this.ended=!0,!1;(x.avail_out===0||x.avail_in===0&&(ee===g||ee===m))&&(this.options.to==="string"?this.onData(p.buf2binstring(f.shrinkBuf(x.output,x.next_out))):this.onData(f.shrinkBuf(x.output,x.next_out)))}while((x.avail_in>0||x.avail_out===0)&&M!==d);return ee===g?(M=i.deflateEnd(this.strm),this.onEnd(M),this.ended=!0,M===h):(ee===m&&(this.onEnd(h),x.avail_out=0),!0)},S.prototype.onData=function(P){this.chunks.push(P)},S.prototype.onEnd=function(P){P===h&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=f.flattenChunks(this.chunks)),this.chunks=[],this.err=P,this.msg=this.strm.msg};function T(P,A){var x=new S(A);if(x.push(P,!0),x.err)throw x.msg||a[x.err];return x.result}l(T,"_0"),e(T,"deflate");function O(P,A){return A=A||{},A.raw=!0,T(P,A)}l(O,"JV"),e(O,"deflateRaw");function E(P,A){return A=A||{},A.gzip=!0,T(P,A)}l(E,"ZV"),e(E,"gzip"),o.Deflate=S,o.deflate=T,o.deflateRaw=O,o.gzip=E}),G3=Ge((o,i)=>{"use strict";var f=30,p=12;i.exports=e(function(a,n){var r,u,g,h,d,m,y,w,_,S,T,O,E,P,A,x,U,M,ee,V,q,G,re,ae,de;r=a.state,u=a.next_in,ae=a.input,g=u+(a.avail_in-5),h=a.next_out,de=a.output,d=h-(n-a.avail_out),m=h+(a.avail_out-257),y=r.dmax,w=r.wsize,_=r.whave,S=r.wnext,T=r.window,O=r.hold,E=r.bits,P=r.lencode,A=r.distcode,x=(1<<r.lenbits)-1,U=(1<<r.distbits)-1;e:do{E<15&&(O+=ae[u++]<<E,E+=8,O+=ae[u++]<<E,E+=8),M=P[O&x];t:for(;;){if(ee=M>>>24,O>>>=ee,E-=ee,ee=M>>>16&255,ee===0)de[h++]=M&65535;else if(ee&16){V=M&65535,ee&=15,ee&&(E<ee&&(O+=ae[u++]<<E,E+=8),V+=O&(1<<ee)-1,O>>>=ee,E-=ee),E<15&&(O+=ae[u++]<<E,E+=8,O+=ae[u++]<<E,E+=8),M=A[O&U];r:for(;;){if(ee=M>>>24,O>>>=ee,E-=ee,ee=M>>>16&255,ee&16){if(q=M&65535,ee&=15,E<ee&&(O+=ae[u++]<<E,E+=8,E<ee&&(O+=ae[u++]<<E,E+=8)),q+=O&(1<<ee)-1,q>y){a.msg="invalid distance too far back",r.mode=f;break e}if(O>>>=ee,E-=ee,ee=h-d,q>ee){if(ee=q-ee,ee>_&&r.sane){a.msg="invalid distance too far back",r.mode=f;break e}if(G=0,re=T,S===0){if(G+=w-ee,ee<V){V-=ee;do de[h++]=T[G++];while(--ee);G=h-q,re=de}}else if(S<ee){if(G+=w+S-ee,ee-=S,ee<V){V-=ee;do de[h++]=T[G++];while(--ee);if(G=0,S<V){ee=S,V-=ee;do de[h++]=T[G++];while(--ee);G=h-q,re=de}}}else if(G+=S-ee,ee<V){V-=ee;do de[h++]=T[G++];while(--ee);G=h-q,re=de}for(;V>2;)de[h++]=re[G++],de[h++]=re[G++],de[h++]=re[G++],V-=3;V&&(de[h++]=re[G++],V>1&&(de[h++]=re[G++]))}else{G=h-q;do de[h++]=de[G++],de[h++]=de[G++],de[h++]=de[G++],V-=3;while(V>2);V&&(de[h++]=de[G++],V>1&&(de[h++]=de[G++]))}}else if(ee&64){a.msg="invalid distance code",r.mode=f;break e}else{M=A[(M&65535)+(O&(1<<ee)-1)];continue r}break}}else if(ee&64)if(ee&32){r.mode=p;break e}else{a.msg="invalid literal/length code",r.mode=f;break e}else{M=P[(M&65535)+(O&(1<<ee)-1)];continue t}break}}while(u<g&&h<m);V=E>>3,u-=V,E-=V<<3,O&=(1<<E)-1,a.next_in=u,a.next_out=h,a.avail_in=u<g?5+(g-u):5-(u-g),a.avail_out=h<m?257+(m-h):257-(h-m),r.hold=O,r.bits=E},"inflate_fast")}),V3=Ge((o,i)=>{"use strict";var f=Zi(),p=15,a=852,n=592,r=0,u=1,g=2,h=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],d=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],m=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],y=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];i.exports=e(function(w,_,S,T,O,E,P,A){var x=A.bits,U=0,M=0,ee=0,V=0,q=0,G=0,re=0,ae=0,de=0,we=0,xe,Pe,se,Te,J,ue=null,te=0,X,ye=new f.Buf16(p+1),Re=new f.Buf16(p+1),De=null,Y=0,H,Q,fe;for(U=0;U<=p;U++)ye[U]=0;for(M=0;M<T;M++)ye[_[S+M]]++;for(q=x,V=p;V>=1&&ye[V]===0;V--);if(q>V&&(q=V),V===0)return O[E++]=1<<24|64<<16|0,O[E++]=1<<24|64<<16|0,A.bits=1,0;for(ee=1;ee<V&&ye[ee]===0;ee++);for(q<ee&&(q=ee),ae=1,U=1;U<=p;U++)if(ae<<=1,ae-=ye[U],ae<0)return-1;if(ae>0&&(w===r||V!==1))return-1;for(Re[1]=0,U=1;U<p;U++)Re[U+1]=Re[U]+ye[U];for(M=0;M<T;M++)_[S+M]!==0&&(P[Re[_[S+M]]++]=M);if(w===r?(ue=De=P,X=19):w===u?(ue=h,te-=257,De=d,Y-=257,X=256):(ue=m,De=y,X=-1),we=0,M=0,U=ee,J=E,G=q,re=0,se=-1,de=1<<q,Te=de-1,w===u&&de>a||w===g&&de>n)return 1;for(;;){H=U-re,P[M]<X?(Q=0,fe=P[M]):P[M]>X?(Q=De[Y+P[M]],fe=ue[te+P[M]]):(Q=96,fe=0),xe=1<<U-re,Pe=1<<G,ee=Pe;do Pe-=xe,O[J+(we>>re)+Pe]=H<<24|Q<<16|fe|0;while(Pe!==0);for(xe=1<<U-1;we&xe;)xe>>=1;if(xe!==0?(we&=xe-1,we+=xe):we=0,M++,--ye[U]===0){if(U===V)break;U=_[S+P[M]]}if(U>q&&(we&Te)!==se){for(re===0&&(re=q),J+=ee,G=U-re,ae=1<<G;G+re<V&&(ae-=ye[G+re],!(ae<=0));)G++,ae<<=1;if(de+=1<<G,w===u&&de>a||w===g&&de>n)return 1;se=we&Te,O[se]=q<<24|G<<16|J-E|0}}return we!==0&&(O[J+we]=U-re<<24|64<<16|0),A.bits=q,0},"inflate_table")}),K3=Ge(o=>{"use strict";var i=Zi(),f=hj(),p=dj(),a=G3(),n=V3(),r=0,u=1,g=2,h=4,d=5,m=6,y=0,w=1,_=2,S=-2,T=-3,O=-4,E=-5,P=8,A=1,x=2,U=3,M=4,ee=5,V=6,q=7,G=8,re=9,ae=10,de=11,we=12,xe=13,Pe=14,se=15,Te=16,J=17,ue=18,te=19,X=20,ye=21,Re=22,De=23,Y=24,H=25,Q=26,fe=27,ve=28,N=29,I=30,D=31,z=32,Ee=852,Oe=592,be=15,ge=be;function Ne(le){return(le>>>24&255)+(le>>>8&65280)+((le&65280)<<8)+((le&255)<<24)}l(Ne,"GO"),e(Ne,"zswap32");function Ie(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}l(Ie,"yG"),e(Ie,"InflateState");function ke(le){var Fe;return!le||!le.state?S:(Fe=le.state,le.total_in=le.total_out=Fe.total=0,le.msg="",Fe.wrap&&(le.adler=Fe.wrap&1),Fe.mode=A,Fe.last=0,Fe.havedict=0,Fe.dmax=32768,Fe.head=null,Fe.hold=0,Fe.bits=0,Fe.lencode=Fe.lendyn=new i.Buf32(Ee),Fe.distcode=Fe.distdyn=new i.Buf32(Oe),Fe.sane=1,Fe.back=-1,y)}l(ke,"QO"),e(ke,"inflateResetKeep");function Ce(le){var Fe;return!le||!le.state?S:(Fe=le.state,Fe.wsize=0,Fe.whave=0,Fe.wnext=0,ke(le))}l(Ce,"eP"),e(Ce,"inflateReset");function $e(le,Fe){var ie,Je;return!le||!le.state||(Je=le.state,Fe<0?(ie=0,Fe=-Fe):(ie=(Fe>>4)+1,Fe<48&&(Fe&=15)),Fe&&(Fe<8||Fe>15))?S:(Je.window!==null&&Je.wbits!==Fe&&(Je.window=null),Je.wrap=ie,Je.wbits=Fe,Ce(le))}l($e,"tP"),e($e,"inflateReset2");function Ke(le,Fe){var ie,Je;return le?(Je=new Ie,le.state=Je,Je.window=null,ie=$e(le,Fe),ie!==y&&(le.state=null),ie):S}l(Ke,"rP"),e(Ke,"inflateInit2");function t(le){return Ke(le,ge)}l(t,"mG"),e(t,"inflateInit");var s=!0,c,v;function R(le){if(s){var Fe;for(c=new i.Buf32(512),v=new i.Buf32(32),Fe=0;Fe<144;)le.lens[Fe++]=8;for(;Fe<256;)le.lens[Fe++]=9;for(;Fe<280;)le.lens[Fe++]=7;for(;Fe<288;)le.lens[Fe++]=8;for(n(u,le.lens,0,288,c,0,le.work,{bits:9}),Fe=0;Fe<32;)le.lens[Fe++]=5;n(g,le.lens,0,32,v,0,le.work,{bits:5}),s=!1}le.lencode=c,le.lenbits=9,le.distcode=v,le.distbits=5}l(R,"gG"),e(R,"fixedtables");function C(le,Fe,ie,Je){var dt,W=le.state;return W.window===null&&(W.wsize=1<<W.wbits,W.wnext=0,W.whave=0,W.window=new i.Buf8(W.wsize)),Je>=W.wsize?(i.arraySet(W.window,Fe,ie-W.wsize,W.wsize,0),W.wnext=0,W.whave=W.wsize):(dt=W.wsize-W.wnext,dt>Je&&(dt=Je),i.arraySet(W.window,Fe,ie-Je,dt,W.wnext),Je-=dt,Je?(i.arraySet(W.window,Fe,ie-Je,Je,0),W.wnext=Je,W.whave=W.wsize):(W.wnext+=dt,W.wnext===W.wsize&&(W.wnext=0),W.whave<W.wsize&&(W.whave+=dt))),0}l(C,"nP"),e(C,"updatewindow");function j(le,Fe){var ie,Je,dt,W,qe,Ve,pe,Le,He,me,Se,We,Qe,lt,bt=0,ht,kt,qt,zt,or,kr,et,tr,Bt=new i.Buf8(4),Dt,Mt,gr=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!le||!le.state||!le.output||!le.input&&le.avail_in!==0)return S;ie=le.state,ie.mode===we&&(ie.mode=xe),qe=le.next_out,dt=le.output,pe=le.avail_out,W=le.next_in,Je=le.input,Ve=le.avail_in,Le=ie.hold,He=ie.bits,me=Ve,Se=pe,tr=y;e:for(;;)switch(ie.mode){case A:if(ie.wrap===0){ie.mode=xe;break}for(;He<16;){if(Ve===0)break e;Ve--,Le+=Je[W++]<<He,He+=8}if(ie.wrap&2&&Le===35615){ie.check=0,Bt[0]=Le&255,Bt[1]=Le>>>8&255,ie.check=p(ie.check,Bt,2,0),Le=0,He=0,ie.mode=x;break}if(ie.flags=0,ie.head&&(ie.head.done=!1),!(ie.wrap&1)||(((Le&255)<<8)+(Le>>8))%31){le.msg="incorrect header check",ie.mode=I;break}if((Le&15)!==P){le.msg="unknown compression method",ie.mode=I;break}if(Le>>>=4,He-=4,et=(Le&15)+8,ie.wbits===0)ie.wbits=et;else if(et>ie.wbits){le.msg="invalid window size",ie.mode=I;break}ie.dmax=1<<et,le.adler=ie.check=1,ie.mode=Le&512?ae:we,Le=0,He=0;break;case x:for(;He<16;){if(Ve===0)break e;Ve--,Le+=Je[W++]<<He,He+=8}if(ie.flags=Le,(ie.flags&255)!==P){le.msg="unknown compression method",ie.mode=I;break}if(ie.flags&57344){le.msg="unknown header flags set",ie.mode=I;break}ie.head&&(ie.head.text=Le>>8&1),ie.flags&512&&(Bt[0]=Le&255,Bt[1]=Le>>>8&255,ie.check=p(ie.check,Bt,2,0)),Le=0,He=0,ie.mode=U;case U:for(;He<32;){if(Ve===0)break e;Ve--,Le+=Je[W++]<<He,He+=8}ie.head&&(ie.head.time=Le),ie.flags&512&&(Bt[0]=Le&255,Bt[1]=Le>>>8&255,Bt[2]=Le>>>16&255,Bt[3]=Le>>>24&255,ie.check=p(ie.check,Bt,4,0)),Le=0,He=0,ie.mode=M;case M:for(;He<16;){if(Ve===0)break e;Ve--,Le+=Je[W++]<<He,He+=8}ie.head&&(ie.head.xflags=Le&255,ie.head.os=Le>>8),ie.flags&512&&(Bt[0]=Le&255,Bt[1]=Le>>>8&255,ie.check=p(ie.check,Bt,2,0)),Le=0,He=0,ie.mode=ee;case ee:if(ie.flags&1024){for(;He<16;){if(Ve===0)break e;Ve--,Le+=Je[W++]<<He,He+=8}ie.length=Le,ie.head&&(ie.head.extra_len=Le),ie.flags&512&&(Bt[0]=Le&255,Bt[1]=Le>>>8&255,ie.check=p(ie.check,Bt,2,0)),Le=0,He=0}else ie.head&&(ie.head.extra=null);ie.mode=V;case V:if(ie.flags&1024&&(We=ie.length,We>Ve&&(We=Ve),We&&(ie.head&&(et=ie.head.extra_len-ie.length,ie.head.extra||(ie.head.extra=new Array(ie.head.extra_len)),i.arraySet(ie.head.extra,Je,W,We,et)),ie.flags&512&&(ie.check=p(ie.check,Je,We,W)),Ve-=We,W+=We,ie.length-=We),ie.length))break e;ie.length=0,ie.mode=q;case q:if(ie.flags&2048){if(Ve===0)break e;We=0;do et=Je[W+We++],ie.head&&et&&ie.length<65536&&(ie.head.name+=String.fromCharCode(et));while(et&&We<Ve);if(ie.flags&512&&(ie.check=p(ie.check,Je,We,W)),Ve-=We,W+=We,et)break e}else ie.head&&(ie.head.name=null);ie.length=0,ie.mode=G;case G:if(ie.flags&4096){if(Ve===0)break e;We=0;do et=Je[W+We++],ie.head&&et&&ie.length<65536&&(ie.head.comment+=String.fromCharCode(et));while(et&&We<Ve);if(ie.flags&512&&(ie.check=p(ie.check,Je,We,W)),Ve-=We,W+=We,et)break e}else ie.head&&(ie.head.comment=null);ie.mode=re;case re:if(ie.flags&512){for(;He<16;){if(Ve===0)break e;Ve--,Le+=Je[W++]<<He,He+=8}if(Le!==(ie.check&65535)){le.msg="header crc mismatch",ie.mode=I;break}Le=0,He=0}ie.head&&(ie.head.hcrc=ie.flags>>9&1,ie.head.done=!0),le.adler=ie.check=0,ie.mode=we;break;case ae:for(;He<32;){if(Ve===0)break e;Ve--,Le+=Je[W++]<<He,He+=8}le.adler=ie.check=Ne(Le),Le=0,He=0,ie.mode=de;case de:if(ie.havedict===0)return le.next_out=qe,le.avail_out=pe,le.next_in=W,le.avail_in=Ve,ie.hold=Le,ie.bits=He,_;le.adler=ie.check=1,ie.mode=we;case we:if(Fe===d||Fe===m)break e;case xe:if(ie.last){Le>>>=He&7,He-=He&7,ie.mode=fe;break}for(;He<3;){if(Ve===0)break e;Ve--,Le+=Je[W++]<<He,He+=8}switch(ie.last=Le&1,Le>>>=1,He-=1,Le&3){case 0:ie.mode=Pe;break;case 1:if(R(ie),ie.mode=X,Fe===m){Le>>>=2,He-=2;break e}break;case 2:ie.mode=J;break;case 3:le.msg="invalid block type",ie.mode=I}Le>>>=2,He-=2;break;case Pe:for(Le>>>=He&7,He-=He&7;He<32;){if(Ve===0)break e;Ve--,Le+=Je[W++]<<He,He+=8}if((Le&65535)!==(Le>>>16^65535)){le.msg="invalid stored block lengths",ie.mode=I;break}if(ie.length=Le&65535,Le=0,He=0,ie.mode=se,Fe===m)break e;case se:ie.mode=Te;case Te:if(We=ie.length,We){if(We>Ve&&(We=Ve),We>pe&&(We=pe),We===0)break e;i.arraySet(dt,Je,W,We,qe),Ve-=We,W+=We,pe-=We,qe+=We,ie.length-=We;break}ie.mode=we;break;case J:for(;He<14;){if(Ve===0)break e;Ve--,Le+=Je[W++]<<He,He+=8}if(ie.nlen=(Le&31)+257,Le>>>=5,He-=5,ie.ndist=(Le&31)+1,Le>>>=5,He-=5,ie.ncode=(Le&15)+4,Le>>>=4,He-=4,ie.nlen>286||ie.ndist>30){le.msg="too many length or distance symbols",ie.mode=I;break}ie.have=0,ie.mode=ue;case ue:for(;ie.have<ie.ncode;){for(;He<3;){if(Ve===0)break e;Ve--,Le+=Je[W++]<<He,He+=8}ie.lens[gr[ie.have++]]=Le&7,Le>>>=3,He-=3}for(;ie.have<19;)ie.lens[gr[ie.have++]]=0;if(ie.lencode=ie.lendyn,ie.lenbits=7,Dt={bits:ie.lenbits},tr=n(r,ie.lens,0,19,ie.lencode,0,ie.work,Dt),ie.lenbits=Dt.bits,tr){le.msg="invalid code lengths set",ie.mode=I;break}ie.have=0,ie.mode=te;case te:for(;ie.have<ie.nlen+ie.ndist;){for(;bt=ie.lencode[Le&(1<<ie.lenbits)-1],ht=bt>>>24,kt=bt>>>16&255,qt=bt&65535,!(ht<=He);){if(Ve===0)break e;Ve--,Le+=Je[W++]<<He,He+=8}if(qt<16)Le>>>=ht,He-=ht,ie.lens[ie.have++]=qt;else{if(qt===16){for(Mt=ht+2;He<Mt;){if(Ve===0)break e;Ve--,Le+=Je[W++]<<He,He+=8}if(Le>>>=ht,He-=ht,ie.have===0){le.msg="invalid bit length repeat",ie.mode=I;break}et=ie.lens[ie.have-1],We=3+(Le&3),Le>>>=2,He-=2}else if(qt===17){for(Mt=ht+3;He<Mt;){if(Ve===0)break e;Ve--,Le+=Je[W++]<<He,He+=8}Le>>>=ht,He-=ht,et=0,We=3+(Le&7),Le>>>=3,He-=3}else{for(Mt=ht+7;He<Mt;){if(Ve===0)break e;Ve--,Le+=Je[W++]<<He,He+=8}Le>>>=ht,He-=ht,et=0,We=11+(Le&127),Le>>>=7,He-=7}if(ie.have+We>ie.nlen+ie.ndist){le.msg="invalid bit length repeat",ie.mode=I;break}for(;We--;)ie.lens[ie.have++]=et}}if(ie.mode===I)break;if(ie.lens[256]===0){le.msg="invalid code -- missing end-of-block",ie.mode=I;break}if(ie.lenbits=9,Dt={bits:ie.lenbits},tr=n(u,ie.lens,0,ie.nlen,ie.lencode,0,ie.work,Dt),ie.lenbits=Dt.bits,tr){le.msg="invalid literal/lengths set",ie.mode=I;break}if(ie.distbits=6,ie.distcode=ie.distdyn,Dt={bits:ie.distbits},tr=n(g,ie.lens,ie.nlen,ie.ndist,ie.distcode,0,ie.work,Dt),ie.distbits=Dt.bits,tr){le.msg="invalid distances set",ie.mode=I;break}if(ie.mode=X,Fe===m)break e;case X:ie.mode=ye;case ye:if(Ve>=6&&pe>=258){le.next_out=qe,le.avail_out=pe,le.next_in=W,le.avail_in=Ve,ie.hold=Le,ie.bits=He,a(le,Se),qe=le.next_out,dt=le.output,pe=le.avail_out,W=le.next_in,Je=le.input,Ve=le.avail_in,Le=ie.hold,He=ie.bits,ie.mode===we&&(ie.back=-1);break}for(ie.back=0;bt=ie.lencode[Le&(1<<ie.lenbits)-1],ht=bt>>>24,kt=bt>>>16&255,qt=bt&65535,!(ht<=He);){if(Ve===0)break e;Ve--,Le+=Je[W++]<<He,He+=8}if(kt&&!(kt&240)){for(zt=ht,or=kt,kr=qt;bt=ie.lencode[kr+((Le&(1<<zt+or)-1)>>zt)],ht=bt>>>24,kt=bt>>>16&255,qt=bt&65535,!(zt+ht<=He);){if(Ve===0)break e;Ve--,Le+=Je[W++]<<He,He+=8}Le>>>=zt,He-=zt,ie.back+=zt}if(Le>>>=ht,He-=ht,ie.back+=ht,ie.length=qt,kt===0){ie.mode=Q;break}if(kt&32){ie.back=-1,ie.mode=we;break}if(kt&64){le.msg="invalid literal/length code",ie.mode=I;break}ie.extra=kt&15,ie.mode=Re;case Re:if(ie.extra){for(Mt=ie.extra;He<Mt;){if(Ve===0)break e;Ve--,Le+=Je[W++]<<He,He+=8}ie.length+=Le&(1<<ie.extra)-1,Le>>>=ie.extra,He-=ie.extra,ie.back+=ie.extra}ie.was=ie.length,ie.mode=De;case De:for(;bt=ie.distcode[Le&(1<<ie.distbits)-1],ht=bt>>>24,kt=bt>>>16&255,qt=bt&65535,!(ht<=He);){if(Ve===0)break e;Ve--,Le+=Je[W++]<<He,He+=8}if(!(kt&240)){for(zt=ht,or=kt,kr=qt;bt=ie.distcode[kr+((Le&(1<<zt+or)-1)>>zt)],ht=bt>>>24,kt=bt>>>16&255,qt=bt&65535,!(zt+ht<=He);){if(Ve===0)break e;Ve--,Le+=Je[W++]<<He,He+=8}Le>>>=zt,He-=zt,ie.back+=zt}if(Le>>>=ht,He-=ht,ie.back+=ht,kt&64){le.msg="invalid distance code",ie.mode=I;break}ie.offset=qt,ie.extra=kt&15,ie.mode=Y;case Y:if(ie.extra){for(Mt=ie.extra;He<Mt;){if(Ve===0)break e;Ve--,Le+=Je[W++]<<He,He+=8}ie.offset+=Le&(1<<ie.extra)-1,Le>>>=ie.extra,He-=ie.extra,ie.back+=ie.extra}if(ie.offset>ie.dmax){le.msg="invalid distance too far back",ie.mode=I;break}ie.mode=H;case H:if(pe===0)break e;if(We=Se-pe,ie.offset>We){if(We=ie.offset-We,We>ie.whave&&ie.sane){le.msg="invalid distance too far back",ie.mode=I;break}We>ie.wnext?(We-=ie.wnext,Qe=ie.wsize-We):Qe=ie.wnext-We,We>ie.length&&(We=ie.length),lt=ie.window}else lt=dt,Qe=qe-ie.offset,We=ie.length;We>pe&&(We=pe),pe-=We,ie.length-=We;do dt[qe++]=lt[Qe++];while(--We);ie.length===0&&(ie.mode=ye);break;case Q:if(pe===0)break e;dt[qe++]=ie.length,pe--,ie.mode=ye;break;case fe:if(ie.wrap){for(;He<32;){if(Ve===0)break e;Ve--,Le|=Je[W++]<<He,He+=8}if(Se-=pe,le.total_out+=Se,ie.total+=Se,Se&&(le.adler=ie.check=ie.flags?p(ie.check,dt,Se,qe-Se):f(ie.check,dt,Se,qe-Se)),Se=pe,(ie.flags?Le:Ne(Le))!==ie.check){le.msg="incorrect data check",ie.mode=I;break}Le=0,He=0}ie.mode=ve;case ve:if(ie.wrap&&ie.flags){for(;He<32;){if(Ve===0)break e;Ve--,Le+=Je[W++]<<He,He+=8}if(Le!==(ie.total&4294967295)){le.msg="incorrect length check",ie.mode=I;break}Le=0,He=0}ie.mode=N;case N:tr=w;break e;case I:tr=T;break e;case D:return O;case z:default:return S}return le.next_out=qe,le.avail_out=pe,le.next_in=W,le.avail_in=Ve,ie.hold=Le,ie.bits=He,(ie.wsize||Se!==le.avail_out&&ie.mode<I&&(ie.mode<fe||Fe!==h))&&C(le,le.output,le.next_out,Se-le.avail_out)?(ie.mode=D,O):(me-=le.avail_in,Se-=le.avail_out,le.total_in+=me,le.total_out+=Se,ie.total+=Se,ie.wrap&&Se&&(le.adler=ie.check=ie.flags?p(ie.check,dt,Se,le.next_out-Se):f(ie.check,dt,Se,le.next_out-Se)),le.data_type=ie.bits+(ie.last?64:0)+(ie.mode===we?128:0)+(ie.mode===X||ie.mode===se?256:0),(me===0&&Se===0||Fe===h)&&tr===y&&(tr=E),tr)}l(j,"wG"),e(j,"inflate");function Z(le){if(!le||!le.state)return S;var Fe=le.state;return Fe.window&&(Fe.window=null),le.state=null,y}l(Z,"vG"),e(Z,"inflateEnd");function oe(le,Fe){var ie;return!le||!le.state||(ie=le.state,!(ie.wrap&2))?S:(ie.head=Fe,Fe.done=!1,y)}l(oe,"bG"),e(oe,"inflateGetHeader");function Ae(le,Fe){var ie=Fe.length,Je,dt,W;return!le||!le.state||(Je=le.state,Je.wrap!==0&&Je.mode!==de)?S:Je.mode===de&&(dt=1,dt=f(dt,Fe,ie,0),dt!==Je.check)?T:(W=C(le,Fe,ie,ie),W?(Je.mode=D,O):(Je.havedict=1,y))}l(Ae,"_G"),e(Ae,"inflateSetDictionary"),o.inflateReset=Ce,o.inflateReset2=$e,o.inflateResetKeep=ke,o.inflateInit=t,o.inflateInit2=Ke,o.inflate=j,o.inflateEnd=Z,o.inflateGetHeader=oe,o.inflateSetDictionary=Ae,o.inflateInfo="pako inflate (from Nodeca project)"}),yj=Ge((o,i)=>{"use strict";i.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}}),J3=Ge((o,i)=>{"use strict";function f(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}l(f,"EG"),e(f,"GZheader"),i.exports=f}),Y3=Ge(o=>{"use strict";var i=K3(),f=Zi(),p=pj(),a=yj(),n=o2(),r=gj(),u=J3(),g=Object.prototype.toString;function h(y){if(!(this instanceof h))return new h(y);this.options=f.assign({chunkSize:16384,windowBits:0,to:""},y||{});var w=this.options;w.raw&&w.windowBits>=0&&w.windowBits<16&&(w.windowBits=-w.windowBits,w.windowBits===0&&(w.windowBits=-15)),w.windowBits>=0&&w.windowBits<16&&!(y&&y.windowBits)&&(w.windowBits+=32),w.windowBits>15&&w.windowBits<48&&(w.windowBits&15||(w.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new r,this.strm.avail_out=0;var _=i.inflateInit2(this.strm,w.windowBits);if(_!==a.Z_OK)throw new Error(n[_]);if(this.header=new u,i.inflateGetHeader(this.strm,this.header),w.dictionary&&(typeof w.dictionary=="string"?w.dictionary=p.string2buf(w.dictionary):g.call(w.dictionary)==="[object ArrayBuffer]"&&(w.dictionary=new Uint8Array(w.dictionary)),w.raw&&(_=i.inflateSetDictionary(this.strm,w.dictionary),_!==a.Z_OK)))throw new Error(n[_])}l(h,"ta"),e(h,"Inflate"),h.prototype.push=function(y,w){var _=this.strm,S=this.options.chunkSize,T=this.options.dictionary,O,E,P,A,x,U=!1;if(this.ended)return!1;E=w===~~w?w:w===!0?a.Z_FINISH:a.Z_NO_FLUSH,typeof y=="string"?_.input=p.binstring2buf(y):g.call(y)==="[object ArrayBuffer]"?_.input=new Uint8Array(y):_.input=y,_.next_in=0,_.avail_in=_.input.length;do{if(_.avail_out===0&&(_.output=new f.Buf8(S),_.next_out=0,_.avail_out=S),O=i.inflate(_,a.Z_NO_FLUSH),O===a.Z_NEED_DICT&&T&&(O=i.inflateSetDictionary(this.strm,T)),O===a.Z_BUF_ERROR&&U===!0&&(O=a.Z_OK,U=!1),O!==a.Z_STREAM_END&&O!==a.Z_OK)return this.onEnd(O),this.ended=!0,!1;_.next_out&&(_.avail_out===0||O===a.Z_STREAM_END||_.avail_in===0&&(E===a.Z_FINISH||E===a.Z_SYNC_FLUSH))&&(this.options.to==="string"?(P=p.utf8border(_.output,_.next_out),A=_.next_out-P,x=p.buf2string(_.output,P),_.next_out=A,_.avail_out=S-A,A&&f.arraySet(_.output,_.output,P,A,0),this.onData(x)):this.onData(f.shrinkBuf(_.output,_.next_out))),_.avail_in===0&&_.avail_out===0&&(U=!0)}while((_.avail_in>0||_.avail_out===0)&&O!==a.Z_STREAM_END);return O===a.Z_STREAM_END&&(E=a.Z_FINISH),E===a.Z_FINISH?(O=i.inflateEnd(this.strm),this.onEnd(O),this.ended=!0,O===a.Z_OK):(E===a.Z_SYNC_FLUSH&&(this.onEnd(a.Z_OK),_.avail_out=0),!0)},h.prototype.onData=function(y){this.chunks.push(y)},h.prototype.onEnd=function(y){y===a.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=f.flattenChunks(this.chunks)),this.chunks=[],this.err=y,this.msg=this.strm.msg};function d(y,w){var _=new h(w);if(_.push(y,!0),_.err)throw _.msg||n[_.err];return _.result}l(d,"B0"),e(d,"inflate");function m(y,w){return w=w||{},w.raw=!0,d(y,w)}l(m,"RG"),e(m,"inflateRaw"),o.Inflate=h,o.inflate=d,o.inflateRaw=m,o.ungzip=d}),Z3=Ge((o,i)=>{"use strict";var f=Zi().assign,p=q3(),a=Y3(),n=yj(),r={};f(r,p,a,n),i.exports=r}),Q3=Ge((o,i)=>{"use strict";var f=e((p,a)=>function(...n){let r=a.promiseModule;return new r((u,g)=>{a.multiArgs?n.push((...h)=>{a.errorFirst?h[0]?g(h):(h.shift(),u(h)):u(h)}):a.errorFirst?n.push((h,d)=>{h?g(h):u(d)}):n.push(u),p.apply(this,n)})},"processFn");i.exports=(p,a)=>{a=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},a);let n=typeof p;if(!(p!==null&&(n==="object"||n==="function")))throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${p===null?"null":n}\``);let r=e(g=>{let h=e(d=>typeof d=="string"?g===d:d.test(g),"match");return a.include?a.include.some(h):!a.exclude.some(h)},"filter"),u;n==="function"?u=e(function(...g){return a.excludeMain?p(...g):f(p,a).apply(this,g)},"ret"):u=Object.create(Object.getPrototypeOf(p));for(let g in p){let h=p[g];u[g]=typeof h=="function"&&r(g)?f(h,a):h}return u}}),X3=Ge((o,i)=>{var J,ue;function f(te){return Array.isArray(te)?te:[te]}l(f,"mP"),e(f,"makeArray");var p="",a=" ",n="\\",r=/^\s+$/,u=/(?:[^\\]|^)\\$/,g=/^\\!/,h=/^\\#/,d=/\r?\n/g,m=/^\.*\/|^\.+$/,y="/",w="node-ignore";typeof Symbol<"u"&&(w=Symbol.for("node-ignore"));var _=w,S=e((te,X,ye)=>Object.defineProperty(te,X,{value:ye}),"define"),T=/([0-z])-([0-z])/g,O=e(()=>!1,"RETURN_FALSE"),E=e(te=>te.replace(T,(X,ye,Re)=>ye.charCodeAt(0)<=Re.charCodeAt(0)?X:p),"sanitizeRange"),P=e(te=>{let{length:X}=te;return te.slice(0,X-X%2)},"cleanRangeBackSlash"),A=[[/^\uFEFF/,()=>p],[/((?:\\\\)*?)(\\?\s+)$/,(te,X,ye)=>X+(ye.indexOf("\\")===0?a:p)],[/(\\+?)\s/g,(te,X)=>{let{length:ye}=X;return X.slice(0,ye-ye%2)+a}],[/[\\$.|*+(){^]/g,te=>`\\${te}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,e(function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"},"startingReplacer")],[/\\\/\\\*\\\*(?=\\\/|$)/g,(te,X,ye)=>X+6<ye.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(te,X,ye)=>{let Re=ye.replace(/\\\*/g,"[^\\/]*");return X+Re}],[/\\\\\\(?=[$.|*+(){^])/g,()=>n],[/\\\\/g,()=>n],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(te,X,ye,Re,De)=>X===n?`\\[${ye}${P(Re)}${De}`:De==="]"&&Re.length%2===0?`[${E(ye)}${Re}]`:"[]"],[/(?:[^*])$/,te=>/\/$/.test(te)?`${te}$`:`${te}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(te,X)=>`${X?`${X}[^/]+`:"[^/]*"}(?=$|\\/$)`]],x=Object.create(null),U=e((te,X)=>{let ye=x[te];return ye||(ye=A.reduce((Re,[De,Y])=>Re.replace(De,Y.bind(te)),te),x[te]=ye),X?new RegExp(ye,"i"):new RegExp(ye)},"makeRegex"),M=e(te=>typeof te=="string","isString"),ee=e(te=>te&&M(te)&&!r.test(te)&&!u.test(te)&&te.indexOf("#")!==0,"checkPattern"),V=e(te=>te.split(d),"splitPattern"),q=(J=class{constructor(X,ye,Re,De){this.origin=X,this.pattern=ye,this.negative=Re,this.regex=De}},l(J,"U0"),J);e(q,"IgnoreRule");var G=q,re=e((te,X)=>{let ye=te,Re=!1;te.indexOf("!")===0&&(Re=!0,te=te.substr(1)),te=te.replace(g,"!").replace(h,"#");let De=U(te,X);return new G(ye,te,Re,De)},"createRule"),ae=e((te,X)=>{throw new X(te)},"throwError"),de=e((te,X,ye)=>M(te)?te?de.isNotRelative(te)?ye(`path should be a \`path.relative()\`d string, but got "${X}"`,RangeError):!0:ye("path must not be empty",TypeError):ye(`path must be a string, but got \`${X}\``,TypeError),"checkPath"),we=e(te=>m.test(te),"isNotRelative");de.isNotRelative=we,de.convert=te=>te;var xe=(ue=class{constructor({ignorecase:X=!0,ignoreCase:ye=X,allowRelativePaths:Re=!1}={}){S(this,_,!0),this._rules=[],this._ignoreCase=ye,this._allowRelativePaths=Re,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(X){if(X&&X[_]){this._rules=this._rules.concat(X._rules),this._added=!0;return}if(ee(X)){let ye=re(X,this._ignoreCase);this._added=!0,this._rules.push(ye)}}add(X){return this._added=!1,f(M(X)?V(X):X).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(X){return this.add(X)}_testOne(X,ye){let Re=!1,De=!1;return this._rules.forEach(Y=>{let{negative:H}=Y;De===H&&Re!==De||H&&!Re&&!De&&!ye||Y.regex.test(X)&&(Re=!H,De=H)}),{ignored:Re,unignored:De}}_test(X,ye,Re,De){let Y=X&&de.convert(X);return de(Y,X,this._allowRelativePaths?O:ae),this._t(Y,ye,Re,De)}_t(X,ye,Re,De){if(X in ye)return ye[X];if(De||(De=X.split(y)),De.pop(),!De.length)return ye[X]=this._testOne(X,Re);let Y=this._t(De.join(y)+y,ye,Re,De);return ye[X]=Y.ignored?Y:this._testOne(X,Re)}ignores(X){return this._test(X,this._ignoreCache,!1).ignored}createFilter(){return X=>!this.ignores(X)}filter(X){return f(X).filter(this.createFilter())}test(X){return this._test(X,this._testCache,!0)}},l(ue,"j0"),ue);e(xe,"Ignore");var Pe=xe,se=e(te=>new Pe(te),"factory"),Te=e(te=>de(te&&de.convert(te),te,O),"isPathValid");if(se.isPathValid=Te,se.default=se,i.exports=se,typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let te=e(ye=>/^\\\\\?\\/.test(ye)||/["<>|\u0000-\u001F]+/u.test(ye)?ye:ye.replace(/\\/g,"/"),"makePosix");de.convert=te;let X=/^[a-z]:\//i;de.isNotRelative=ye=>X.test(ye)||we(ye)}}),eD=Ge((o,i)=>{"use strict";function f(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}l(f,"GG"),e(f,"escapeRegExp");function p(n,r,u){return r=r instanceof RegExp?r:new RegExp(f(r),"g"),n.replace(r,u)}l(p,"xn"),e(p,"replaceAll");var a={clean:e(function(n){if(typeof n!="string")throw new Error("Expected a string, received: "+n);return n=p(n,"./","/"),n=p(n,"..","."),n=p(n," ","-"),n=p(n,/^[~^:?*\\\-]/g,""),n=p(n,/[~^:?*\\]/g,"-"),n=p(n,/[~^:?*\\\-]$/g,""),n=p(n,"@{","-"),n=p(n,/\.$/g,""),n=p(n,/\/$/g,""),n=p(n,/\.lock$/g,""),n},"clean")};i.exports=a}),tD=Ge((o,i)=>{"use strict";var f=/(^|[/.])([/.]|$)|^@$|@{|[\x00-\x20\x7f~^:?*[\\]|\.lock(\/|$)/;i.exports=e(function(p,a){if(typeof p!="string")throw new TypeError("Reference name must be a string");return!f.test(p)&&(!!a||p.includes("/"))},"validRef")}),rD=Ge((o,i)=>{i.exports=function(f,p){var a=f,n=p,r=a.length,u=n.length,g=!1,h=null,d=r+1,m=[],y=[],w=[],_="",S=-1,T=0,O=1,E,P,A=e(function(){r>=u&&(E=a,P=r,a=n,n=E,r=u,u=P,g=!0,d=r+1)},"init"),x=e(function(V,q,G){return{x:V,y:q,k:G}},"P"),U=e(function(V,q){return{elem:V,t:q}},"seselem"),M=e(function(V,q,G){var re,ae,de;for(q>G?re=m[V-1+d]:re=m[V+1+d],de=Math.max(q,G),ae=de-V;ae<r&&de<u&&a[ae]===n[de];)++ae,++de;return m[V+d]=y.length,y[y.length]=new x(ae,de,re),de},"snake"),ee=e(function(V){var q,G,re,ae,de;for(q=G=1,re=ae=0,de=V.length-1;de>=0;--de)for(;re<V[de].x||ae<V[de].y;)V[de].y-V[de].x>ae-re?(g?w[w.length]=new U(n[ae],S):w[w.length]=new U(n[ae],O),++G,++ae):V[de].y-V[de].x<ae-re?(g?w[w.length]=new U(a[re],O):w[w.length]=new U(a[re],S),++q,++re):(w[w.length]=new U(a[re],T),_+=a[re],++q,++G,++re,++ae)},"recordseq");return A(),{SES_DELETE:-1,SES_COMMON:0,SES_ADD:1,editdistance:e(function(){return h},"editdistance"),getlcs:e(function(){return _},"getlcs"),getses:e(function(){return w},"getses"),compose:e(function(){var V,q,G,re,ae,de,we,xe;for(V=u-r,q=r+u+3,G={},we=0;we<q;++we)G[we]=-1,m[we]=-1;re=-1;do{for(++re,xe=-re;xe<=V-1;++xe)G[xe+d]=M(xe,G[xe-1+d]+1,G[xe+1+d]);for(xe=V+re;xe>=V+1;--xe)G[xe+d]=M(xe,G[xe-1+d]+1,G[xe+1+d]);G[V+d]=M(V,G[V-1+d]+1,G[V+1+d])}while(G[V+d]!==u);for(h=V+2*re,ae=m[V+d],de=[];ae!==-1;)de[de.length]=new x(y[ae].x,y[ae].y,null),ae=y[ae].k;ee(de)},"compose")}}}),nD=Ge((o,i)=>{var f=rD();function p(u,g){var h=new f(u,g);h.compose();for(var d=h.getses(),m,y,w=u.length-1,_=g.length-1,S=d.length-1;S>=0;--S)d[S].t===h.SES_COMMON?(y?(y.chain={file1index:w,file2index:_,chain:null},y=y.chain):(m={file1index:w,file2index:_,chain:null},y=m),w--,_--):d[S].t===h.SES_DELETE?w--:d[S].t===h.SES_ADD&&_--;var T={file1index:-1,file2index:-1,chain:null};return y?(y.chain=T,m):T}l(p,"JG"),e(p,"longestCommonSubsequence");function a(u,g){for(var h=[],d=u.length,m=g.length,y=p(u,g);y!==null;y=y.chain){var w=d-y.file1index-1,_=m-y.file2index-1;d=y.file1index,m=y.file2index,(w||_)&&h.push({file1:[d+1,w],file2:[m+1,_]})}return h.reverse(),h}l(a,"IP"),e(a,"diffIndices");function n(u,g,h){var d,m=a(g,u),y=a(g,h),w=[];function _(J,ue){w.push([J.file1[0],ue,J.file1[1],J.file2[0],J.file2[1]])}for(l(_,"f"),e(_,"addHunk"),d=0;d<m.length;d++)_(m[d],0);for(d=0;d<y.length;d++)_(y[d],2);w.sort(function(J,ue){return J[0]-ue[0]});var S=[],T=0;function O(J){J>T&&(S.push([1,T,J-T]),T=J)}l(O,"d"),e(O,"copyCommon");for(var E=0;E<w.length;E++){for(var P=E,A=w[E],x=A[0],U=x+A[2];E<w.length-1;){var M=w[E+1],ee=M[0];if(ee>U)break;U=Math.max(U,ee+M[2]),E++}if(O(x),P==E)A[4]>0&&S.push([A[1],A[3],A[4]]);else{var V={0:[u.length,-1,g.length,-1],2:[h.length,-1,g.length,-1]};for(d=P;d<=E;d++){A=w[d];var q=A[1],G=V[q],re=A[0],ae=re+A[2],de=A[3],we=de+A[4];G[0]=Math.min(de,G[0]),G[1]=Math.max(we,G[1]),G[2]=Math.min(re,G[2]),G[3]=Math.max(ae,G[3])}var xe=V[0][0]+(x-V[0][2]),Pe=V[0][1]+(U-V[0][3]),se=V[2][0]+(x-V[2][2]),Te=V[2][1]+(U-V[2][3]);S.push([-1,xe,Pe-xe,x,U-x,se,Te-se])}T=U}return O(g.length),S}l(n,"ZG"),e(n,"diff3MergeIndices");function r(u,g,h){var d=[],m=[u,g,h],y=n(u,g,h),w=[];function _(){w.length&&d.push({ok:w}),w=[]}l(_,"f"),e(_,"flushOk");function S(A){for(var x=0;x<A.length;x++)w.push(A[x])}l(S,"h"),e(S,"pushOk");function T(A){if(A[2]!=A[6])return!0;for(var x=A[1],U=A[5],M=0;M<A[2];M++)if(u[M+x]!=h[M+U])return!0;return!1}l(T,"c"),e(T,"isTrueConflict");for(var O=0;O<y.length;O++){var E=y[O],P=E[0];P==-1?T(E)?(_(),d.push({conflict:{a:u.slice(E[1],E[1]+E[2]),aIndex:E[1],o:g.slice(E[3],E[3]+E[4]),oIndex:E[3],b:h.slice(E[5],E[5]+E[6]),bIndex:E[5]}})):S(m[0].slice(E[1],E[1]+E[2])):S(m[P].slice(E[1],E[1]+E[2]))}return _(),d}l(r,"QG"),e(r,"diff3Merge"),i.exports=r}),pr=Ge(o=>{"use strict";var so,lo,fo,uo,Ga,un,Va,Ka,co,ho,po,go,yo,mo,wo,bo,Ja,Zt,vo,Ya,Za,Oi,_o,Eo,So,Ao,Ro,Oo,ko,To,Fo,Bo,xo,Io,Po,jo,Co,Lo,No,Do,Uo,Mo,$o,Wo,zo,Ho,qo,Yn,yr,Qa,Xa,es,ts,rs,ns,is,os,as,ss,ls,Go,Zn;Object.defineProperty(o,"__esModule",{value:!0});function i(B){return B&&typeof B=="object"&&"default"in B?B.default:B}l(i,"fi"),e(i,"_interopDefault");var f=i(i3()),p=i(M3()),a=$3(),n=i(W3()),r=i(Z3()),u=i(Q3()),g=i(X3()),h=i(eD()),d=i(tD()),m=i(nD()),y=(so=class extends Error{constructor(b){super(b),this.caller=""}toJSON(){return{code:this.code,data:this.data,caller:this.caller,message:this.message,stack:this.stack}}fromJSON(b){let k=new so(b.message);return k.code=b.code,k.data=b.data,k.caller=b.caller,k.stack=b.stack,k}get isIsomorphicGitError(){return!0}},l(so,"Hh"),so);e(y,"BaseError");var w=y,_=(lo=class extends w{constructor(b){super(`Modifying the index is not possible because you have unmerged files: ${b.toString}. Fix them up in the work tree, and then use 'git add/rm as appropriate to mark resolution and make a commit.`),this.code=this.name=lo.code,this.data={filepaths:b}}},l(lo,"Wh"),lo);e(_,"UnmergedPathsError");var S=_;S.code="UnmergedPathsError";var T=(fo=class extends w{constructor(b){super(`An internal error caused this command to fail. Please file a bug report at https://github.com/isomorphic-git/isomorphic-git/issues with this error message: ${b}`),this.code=this.name=fo.code,this.data={message:b}}},l(fo,"qh"),fo);e(T,"InternalError");var O=T;O.code="InternalError";var E=(uo=class extends w{constructor(b){super(`The filepath "${b}" contains unsafe character sequences`),this.code=this.name=uo.code,this.data={filepath:b}}},l(uo,"zh"),uo);e(E,"UnsafeFilepathError");var P=E;P.code="UnsafeFilepathError";var A=(Ga=class{constructor(b){this.buffer=b,this._start=0}eof(){return this._start>=this.buffer.length}tell(){return this._start}seek(b){this._start=b}slice(b){let k=this.buffer.slice(this._start,this._start+b);return this._start+=b,k}toString(b,k){let F=this.buffer.toString(b,this._start,this._start+k);return this._start+=k,F}write(b,k,F){let L=this.buffer.write(b,this._start,k,F);return this._start+=k,L}copy(b,k,F){let L=b.copy(this.buffer,this._start,k,F);return this._start+=L,L}readUInt8(){let b=this.buffer.readUInt8(this._start);return this._start+=1,b}writeUInt8(b){let k=this.buffer.writeUInt8(b,this._start);return this._start+=1,k}readUInt16BE(){let b=this.buffer.readUInt16BE(this._start);return this._start+=2,b}writeUInt16BE(b){let k=this.buffer.writeUInt16BE(b,this._start);return this._start+=2,k}readUInt32BE(){let b=this.buffer.readUInt32BE(this._start);return this._start+=4,b}writeUInt32BE(b){let k=this.buffer.writeUInt32BE(b,this._start);return this._start+=4,k}},l(Ga,"bv"),Ga);e(A,"BufferCursor");var x=A;function U(B,b){return-(B<b)||+(B>b)}l(U,"Fd"),e(U,"compareStrings");function M(B,b){return U(B.path,b.path)}l(M,"nI"),e(M,"comparePath");function ee(B){let b=B>0?B>>12:0;b!==4&&b!==8&&b!==10&&b!==14&&(b=8);let k=B&511;return k&73?k=493:k=420,b!==8&&(k=0),(b<<12)+k}l(ee,"iI"),e(ee,"normalizeMode");var V=2**32;function q(B,b,k,F){if(B!==void 0&&b!==void 0)return[B,b];k===void 0&&(k=F.valueOf());let L=Math.floor(k/1e3),$=(k-L*1e3)*1e6;return[L,$]}l(q,"CP"),e(q,"SecondsNanoseconds");function G(B){let[b,k]=q(B.ctimeSeconds,B.ctimeNanoseconds,B.ctimeMs,B.ctime),[F,L]=q(B.mtimeSeconds,B.mtimeNanoseconds,B.mtimeMs,B.mtime);return{ctimeSeconds:b%V,ctimeNanoseconds:k%V,mtimeSeconds:F%V,mtimeNanoseconds:L%V,dev:B.dev%V,ino:B.ino%V,mode:ee(B.mode%V),uid:B.uid%V,gid:B.gid%V,size:B.size>-1?B.size%V:0}}l(G,"Bs"),e(G,"normalizeStats");function re(B){let b="";for(let k of new Uint8Array(B))k<16&&(b+="0"),b+=k.toString(16);return b}l(re,"nY"),e(re,"toHex");var ae=null;async function de(B){return ae===null&&(ae=await Pe()),ae?xe(B):we(B)}l(de,"li"),e(de,"shasum");function we(B){return new p().update(B).digest("hex")}l(we,"iY"),e(we,"shasumSync");async function xe(B){let b=await crypto.subtle.digest("SHA-1",B);return re(b)}l(xe,"oI"),e(xe,"subtleSHA1");async function Pe(){try{return await xe(new Uint8Array([]))==="da39a3ee5e6b4b0d3255bfef95601890afd80709"}catch{}return!1}l(Pe,"oY"),e(Pe,"testSubtleSHA1");function se(B){return{assumeValid:!!(B&32768),extended:!!(B&16384),stage:(B&12288)>>12,nameLength:B&4095}}l(se,"aY"),e(se,"parseCacheEntryFlags");function Te(B){let b=B.flags;return b.extended=!1,b.nameLength=Math.min(Buffer.from(B.path).length,4095),(b.assumeValid?32768:0)+(b.extended?16384:0)+((b.stage&3)<<12)+(b.nameLength&4095)}l(Te,"sY"),e(Te,"renderCacheEntryFlags");var J=(un=class{constructor(b,k){this._dirty=!1,this._unmergedPaths=k||new Set,this._entries=b||new Map}_addEntry(b){if(b.flags.stage===0)b.stages=[b],this._entries.set(b.path,b),this._unmergedPaths.delete(b.path);else{let k=this._entries.get(b.path);k||(this._entries.set(b.path,b),k=b),k.stages[b.flags.stage]=b,this._unmergedPaths.add(b.path)}}static async from(b){if(Buffer.isBuffer(b))return un.fromBuffer(b);if(b===null)return new un(null);throw new O("invalid type passed to GitIndex.from")}static async fromBuffer(b){if(b.length===0)throw new O("Index file is empty (.git/index)");let k=new un,F=new x(b),L=F.toString("utf8",4);if(L!=="DIRC")throw new O(`Invalid dircache magic file number: ${L}`);let $=await de(b.slice(0,-20)),K=b.slice(-20).toString("hex");if(K!==$)throw new O(`Invalid checksum in GitIndex buffer: expected ${K} but saw ${$}`);let ne=F.readUInt32BE();if(ne!==2)throw new O(`Unsupported dircache version: ${ne}`);let _e=F.readUInt32BE(),ce=0;for(;!F.eof()&&ce<_e;){let he={};he.ctimeSeconds=F.readUInt32BE(),he.ctimeNanoseconds=F.readUInt32BE(),he.mtimeSeconds=F.readUInt32BE(),he.mtimeNanoseconds=F.readUInt32BE(),he.dev=F.readUInt32BE(),he.ino=F.readUInt32BE(),he.mode=F.readUInt32BE(),he.uid=F.readUInt32BE(),he.gid=F.readUInt32BE(),he.size=F.readUInt32BE(),he.oid=F.slice(20).toString("hex");let Be=F.readUInt16BE();he.flags=se(Be);let je=b.indexOf(0,F.tell()+1)-F.tell();if(je<1)throw new O(`Got a path length of: ${je}`);if(he.path=F.toString("utf8",je),he.path.includes("..\\")||he.path.includes("../"))throw new P(he.path);let Me=8-(F.tell()-12)%8;for(Me===0&&(Me=8);Me--;){let ze=F.readUInt8();if(ze!==0)throw new O(`Expected 1-8 null characters but got '${ze}' after ${he.path}`);if(F.eof())throw new O("Unexpected end of file")}he.stages=[],k._addEntry(he),ce++}return k}get unmergedPaths(){return[...this._unmergedPaths]}get entries(){return[...this._entries.values()].sort(M)}get entriesMap(){return this._entries}get entriesFlat(){return[...this.entries].flatMap(b=>b.stages.length>1?b.stages.filter(k=>k):b)}*[Symbol.iterator](){for(let b of this.entries)yield b}insert({filepath:b,stats:k,oid:F,stage:L=0}){k||(k={ctimeSeconds:0,ctimeNanoseconds:0,mtimeSeconds:0,mtimeNanoseconds:0,dev:0,ino:0,mode:0,uid:0,gid:0,size:0}),k=G(k);let $=Buffer.from(b),K={ctimeSeconds:k.ctimeSeconds,ctimeNanoseconds:k.ctimeNanoseconds,mtimeSeconds:k.mtimeSeconds,mtimeNanoseconds:k.mtimeNanoseconds,dev:k.dev,ino:k.ino,mode:k.mode||33188,uid:k.uid,gid:k.gid,size:k.size,path:b,oid:F,flags:{assumeValid:!1,extended:!1,stage:L,nameLength:$.length<4095?$.length:4095},stages:[]};this._addEntry(K),this._dirty=!0}delete({filepath:b}){if(this._entries.has(b))this._entries.delete(b);else for(let k of this._entries.keys())k.startsWith(b+"/")&&this._entries.delete(k);this._unmergedPaths.has(b)&&this._unmergedPaths.delete(b),this._dirty=!0}clear(){this._entries.clear(),this._dirty=!0}has({filepath:b}){return this._entries.has(b)}render(){return this.entries.map(b=>`${b.mode.toString(8)} ${b.oid} ${b.path}`).join(`
|
|
24
|
+
`)}static async _entryToBuffer(b){let k=Buffer.from(b.path),F=Math.ceil((62+k.length+1)/8)*8,L=Buffer.alloc(F),$=new x(L),K=G(b);return $.writeUInt32BE(K.ctimeSeconds),$.writeUInt32BE(K.ctimeNanoseconds),$.writeUInt32BE(K.mtimeSeconds),$.writeUInt32BE(K.mtimeNanoseconds),$.writeUInt32BE(K.dev),$.writeUInt32BE(K.ino),$.writeUInt32BE(K.mode),$.writeUInt32BE(K.uid),$.writeUInt32BE(K.gid),$.writeUInt32BE(K.size),$.write(b.oid,20,"hex"),$.writeUInt16BE(Te(b)),$.write(b.path,k.length,"utf8"),L}async toObject(){let b=Buffer.alloc(12),k=new x(b);k.write("DIRC",4,"utf8"),k.writeUInt32BE(2),k.writeUInt32BE(this.entriesFlat.length);let F=[];for(let ne of this.entries)if(F.push(un._entryToBuffer(ne)),ne.stages.length>1)for(let _e of ne.stages)_e&&_e!==ne&&F.push(un._entryToBuffer(_e));F=await Promise.all(F);let L=Buffer.concat(F),$=Buffer.concat([b,L]),K=await de($);return Buffer.concat([$,Buffer.from(K,"hex")])}},l(un,"eo"),un);e(J,"GitIndex");var ue=J;function te(B,b,k=!0,F=!0){let L=G(B),$=G(b);return k&&L.mode!==$.mode||L.mtimeSeconds!==$.mtimeSeconds||L.ctimeSeconds!==$.ctimeSeconds||L.uid!==$.uid||L.gid!==$.gid||F&&L.ino!==$.ino||L.size!==$.size}l(te,"kh"),e(te,"compareStats");var X=null,ye=Symbol("IndexCache");function Re(){return{map:new Map,stats:new Map}}l(Re,"lY"),e(Re,"createCache");async function De(B,b,k){let[F,L]=await Promise.all([B.lstat(b),B.read(b)]),$=await ue.from(L);k.map.set(b,$),k.stats.set(b,F)}l(De,"fY"),e(De,"updateCachedIndexFile");async function Y(B,b,k){let F=k.stats.get(b);if(F===void 0)return!0;if(F===null)return!1;let L=await B.lstat(b);return L===null?!1:te(F,L)}l(Y,"uY"),e(Y,"isIndexStale");var H=(Va=class{static async acquire({fs:b,gitdir:k,cache:F,allowUnmerged:L=!0},$){F[ye]||(F[ye]=Re());let K=`${k}/index`;X===null&&(X=new f({maxPending:1/0}));let ne,_e=[];return await X.acquire(K,async()=>{let ce=F[ye];await Y(b,K,ce)&&await De(b,K,ce);let he=ce.map.get(K);if(_e=he.unmergedPaths,_e.length&&!L)throw new S(_e);if(ne=await $(he),he._dirty){let Be=await he.toObject();await b.write(K,Be),ce.stats.set(K,await b.lstat(K)),he._dirty=!1}}),ne}},l(Va,"_v"),Va);e(H,"GitIndexManager");var Q=H;function fe(B){let b=Math.max(B.lastIndexOf("/"),B.lastIndexOf("\\"));return b>-1&&(B=B.slice(b+1)),B}l(fe,"Bh"),e(fe,"basename");function ve(B){let b=Math.max(B.lastIndexOf("/"),B.lastIndexOf("\\"));return b===-1?".":b===0?"/":B.slice(0,b)}l(ve,"Cs"),e(ve,"dirname");function N(B){let b=new Map,k=e(function(L){if(!b.has(L)){let $={type:"tree",fullpath:L,basename:fe(L),metadata:{},children:[]};b.set(L,$),$.parent=k(ve(L)),$.parent&&$.parent!==$&&$.parent.children.push($)}return b.get(L)},"mkdir"),F=e(function(L,$){if(!b.has(L)){let K={type:"blob",fullpath:L,basename:fe(L),metadata:$,parent:k(ve(L)),children:[]};K.parent&&K.parent.children.push(K),b.set(L,K)}return b.get(L)},"mkfile");k(".");for(let L of B)F(L.path,L);return b}l(N,"aI"),e(N,"flatFileListToDirectoryStructure");function I(B){switch(B){case 16384:return"tree";case 33188:return"blob";case 33261:return"blob";case 40960:return"blob";case 57344:return"commit"}throw new O(`Unexpected GitTree entry mode: ${B.toString(8)}`)}l(I,"cY"),e(I,"mode2type");var D=(Ka=class{constructor({fs:b,gitdir:k,cache:F}){var K;var L;this.treePromise=Q.acquire({fs:b,gitdir:k,cache:F},async function(ne){return N(ne.entries)});let $=this;this.ConstructEntry=(L=(K=class{constructor(_e){this._fullpath=_e,this._type=!1,this._mode=!1,this._stat=!1,this._oid=!1}async type(){return $.type(this)}async mode(){return $.mode(this)}async stat(){return $.stat(this)}async content(){return $.content(this)}async oid(){return $.oid(this)}},l(K,"s"),K),e(L,"StageEntry"),L)}async readdir(b){let k=b._fullpath,F=(await this.treePromise).get(k);if(!F||F.type==="blob")return null;if(F.type!=="tree")throw new Error(`ENOTDIR: not a directory, scandir '${k}'`);let L=F.children.map($=>$.fullpath);return L.sort(U),L}async type(b){return b._type===!1&&await b.stat(),b._type}async mode(b){return b._mode===!1&&await b.stat(),b._mode}async stat(b){if(b._stat===!1){let k=(await this.treePromise).get(b._fullpath);if(!k)throw new Error(`ENOENT: no such file or directory, lstat '${b._fullpath}'`);let F=k.type==="tree"?{}:G(k.metadata);b._type=k.type==="tree"?"tree":I(F.mode),b._mode=F.mode,k.type==="tree"?b._stat=void 0:b._stat=F}return b._stat}async content(b){}async oid(b){if(b._oid===!1){let k=(await this.treePromise).get(b._fullpath);b._oid=k.metadata.oid}return b._oid}},l(Ka,"Ev"),Ka);e(D,"GitWalkerIndex");var z=D,Ee=Symbol("GitWalkSymbol");function Oe(){let B=Object.create(null);return Object.defineProperty(B,Ee,{value:e(function({fs:b,gitdir:k,cache:F}){return new z({fs:b,gitdir:k,cache:F})},"value")}),Object.freeze(B),B}l(Oe,"sa"),e(Oe,"STAGE");var be=(co=class extends w{constructor(b){super(`Could not find ${b}.`),this.code=this.name=co.code,this.data={what:b}}},l(co,"Vh"),co);e(be,"NotFoundError");var ge=be;ge.code="NotFoundError";var Ne=(ho=class extends w{constructor(b,k,F,L){super(`Object ${b} ${L?`at ${L}`:""}was anticipated to be a ${F} but it is a ${k}.`),this.code=this.name=ho.code,this.data={oid:b,actual:k,expected:F,filepath:L}}},l(ho,"Gh"),ho);e(Ne,"ObjectTypeError");var Ie=Ne;Ie.code="ObjectTypeError";var ke=(po=class extends w{constructor(b){super(`Expected a 40-char hex object id but saw "${b}".`),this.code=this.name=po.code,this.data={value:b}}},l(po,"Yh"),po);e(ke,"InvalidOidError");var Ce=ke;Ce.code="InvalidOidError";var $e=(go=class extends w{constructor(b){super(`Could not find a fetch refspec for remote "${b}". Make sure the config file has an entry like the following:
|
|
25
|
+
[remote "${b}"]
|
|
26
|
+
fetch = +refs/heads/*:refs/remotes/origin/*
|
|
27
|
+
`),this.code=this.name=go.code,this.data={remote:b}}},l(go,"Kh"),go);e($e,"NoRefspecError");var Ke=$e;Ke.code="NoRefspecError";var t=(yo=class{constructor(b){if(this.refs=new Map,this.parsedConfig=[],b){let k=null;this.parsedConfig=b.trim().split(`
|
|
28
|
+
`).map(F=>{if(/^\s*#/.test(F))return{line:F,comment:!0};let L=F.indexOf(" ");if(F.startsWith("^")){let $=F.slice(1);return this.refs.set(k+"^{}",$),{line:F,ref:k,peeled:$}}else{let $=F.slice(0,L);return k=F.slice(L+1),this.refs.set(k,$),{line:F,ref:k,oid:$}}})}return this}static from(b){return new yo(b)}delete(b){this.parsedConfig=this.parsedConfig.filter(k=>k.ref!==b),this.refs.delete(b)}toString(){return this.parsedConfig.map(({line:b})=>b).join(`
|
|
29
|
+
`)+`
|
|
30
|
+
`}},l(yo,"Xh"),yo);e(t,"GitPackedRefs");var s=t,c=(mo=class{constructor({remotePath:b,localPath:k,force:F,matchPrefix:L}){Object.assign(this,{remotePath:b,localPath:k,force:F,matchPrefix:L})}static from(b){let[k,F,L,$,K]=b.match(/^(\+?)(.*?)(\*?):(.*?)(\*?)$/).slice(1),ne=k==="+",_e=L==="*";if(_e!==(K==="*"))throw new O("Invalid refspec");return new mo({remotePath:F,localPath:$,force:ne,matchPrefix:_e})}translate(b){if(this.matchPrefix){if(b.startsWith(this.remotePath))return this.localPath+b.replace(this.remotePath,"")}else if(b===this.remotePath)return this.localPath;return null}reverseTranslate(b){if(this.matchPrefix){if(b.startsWith(this.localPath))return this.remotePath+b.replace(this.localPath,"")}else if(b===this.localPath)return this.remotePath;return null}},l(mo,"Jh"),mo);e(c,"GitRefSpec");var v=c,R=(wo=class{constructor(b=[]){this.rules=b}static from(b){let k=[];for(let F of b)k.push(v.from(F));return new wo(k)}add(b){let k=v.from(b);this.rules.push(k)}translate(b){let k=[];for(let F of this.rules)for(let L of b){let $=F.translate(L);$&&k.push([L,$])}return k}translateOne(b){let k=null;for(let F of this.rules){let L=F.translate(b);L&&(k=L)}return k}localNamespaces(){return this.rules.filter(b=>b.matchPrefix).map(b=>b.localPath.replace(/\/$/,""))}},l(wo,"Zh"),wo);e(R,"GitRefSpecSet");var C=R;function j(B,b){let k=B.replace(/\^\{\}$/,""),F=b.replace(/\^\{\}$/,""),L=-(k<F)||+(k>F);return L===0?B.endsWith("^{}")?1:-1:L}l(j,"hY"),e(j,"compareRefNames");var Z=e(B=>{if(typeof B=="number")return B;B=B.toLowerCase();let b=parseInt(B);return B.endsWith("k")&&(b*=1024),B.endsWith("m")&&(b*=1024*1024),B.endsWith("g")&&(b*=1024*1024*1024),b},"num"),oe=e(B=>{if(typeof B=="boolean")return B;if(B=B.trim().toLowerCase(),B==="true"||B==="yes"||B==="on")return!0;if(B==="false"||B==="no"||B==="off")return!1;throw Error(`Expected 'true', 'false', 'yes', 'no', 'on', or 'off', but got ${B}`)},"bool"),Ae={core:{filemode:oe,bare:oe,logallrefupdates:oe,symlinks:oe,ignorecase:oe,bigFileThreshold:Z}},le=/^\[([A-Za-z0-9-.]+)(?: "(.*)")?\]$/,Fe=/^[A-Za-z0-9-.]+$/,ie=/^([A-Za-z][A-Za-z-]*)(?: *= *(.*))?$/,Je=/^[A-Za-z][A-Za-z-]*$/,dt=/^(.*?)( *[#;].*)$/,W=e(B=>{let b=le.exec(B);if(b!=null){let[k,F]=b.slice(1);return[k,F]}return null},"extractSectionLine"),qe=e(B=>{let b=ie.exec(B);if(b!=null){let[k,F="true"]=b.slice(1),L=Ve(F),$=Le(L);return[k,$]}return null},"extractVariableLine"),Ve=e(B=>{let b=dt.exec(B);if(b==null)return B;let[k,F]=b.slice(1);return pe(k)&&pe(F)?`${k}${F}`:k},"removeComments"),pe=e(B=>(B.match(/(?:^|[^\\])"/g)||[]).length%2!==0,"hasOddNumberOfQuotes"),Le=e(B=>B.split("").reduce((b,k,F,L)=>{let $=k==='"'&&L[F-1]!=="\\",K=k==="\\"&&L[F+1]==='"';return $||K?b:b+k},""),"removeQuotes"),He=e(B=>B!=null?B.toLowerCase():null,"lower"),me=e((B,b,k)=>[He(B),b,He(k)].filter(F=>F!=null).join("."),"getPath"),Se=e(B=>{let b=B.split("."),k=b.shift(),F=b.pop(),L=b.length?b.join("."):void 0;return{section:k,subsection:L,name:F,path:me(k,L,F),sectionPath:me(k,L,null),isSection:!!k}},"normalizePath"),We=e((B,b)=>B.reduce((k,F,L)=>b(F)?L:k,-1),"findLastIndex"),Qe=(bo=class{constructor(b){let k=null,F=null;this.parsedConfig=b?b.split(`
|
|
31
|
+
`).map(L=>{let $=null,K=null,ne=L.trim(),_e=W(ne),ce=_e!=null;if(ce)[k,F]=_e;else{let Be=qe(ne);Be!=null&&([$,K]=Be)}let he=me(k,F,$);return{line:L,isSection:ce,section:k,subsection:F,name:$,value:K,path:he}}):[]}static from(b){return new bo(b)}async get(b,k=!1){let F=Se(b).path,L=this.parsedConfig.filter($=>$.path===F).map(({section:$,name:K,value:ne})=>{let _e=Ae[$]&&Ae[$][K];return _e?_e(ne):ne});return k?L:L.pop()}async getall(b){return this.get(b,!0)}async getSubsections(b){return this.parsedConfig.filter(k=>k.isSection&&k.section===b).map(k=>k.subsection)}async deleteSection(b,k){this.parsedConfig=this.parsedConfig.filter(F=>!(F.section===b&&F.subsection===k))}async append(b,k){return this.set(b,k,!0)}async set(b,k,F=!1){let{section:L,subsection:$,name:K,path:ne,sectionPath:_e,isSection:ce}=Se(b),he=We(this.parsedConfig,Be=>Be.path===ne);if(k==null)he!==-1&&this.parsedConfig.splice(he,1);else if(he!==-1){let Be=this.parsedConfig[he],je=Object.assign({},Be,{name:K,value:k,modified:!0});F?this.parsedConfig.splice(he+1,0,je):this.parsedConfig[he]=je}else{let Be=this.parsedConfig.findIndex(Me=>Me.path===_e),je={section:L,subsection:$,name:K,value:k,modified:!0,path:ne};if(Fe.test(L)&&Je.test(K))if(Be>=0)this.parsedConfig.splice(Be+1,0,je);else{let Me={isSection:ce,section:L,subsection:$,modified:!0,path:_e};this.parsedConfig.push(Me,je)}}}toString(){return this.parsedConfig.map(({line:b,section:k,subsection:F,name:L,value:$,modified:K=!1})=>K?L!=null&&$!=null?typeof $=="string"&&/[#;]/.test($)?` ${L} = "${$}"`:` ${L} = ${$}`:F!=null?`[${k} "${F}"]`:`[${k}]`:b).join(`
|
|
32
|
+
`)}},l(bo,"Qh"),bo);e(Qe,"GitConfig");var lt=Qe,bt=(Ja=class{static async get({fs:b,gitdir:k}){let F=await b.read(`${k}/config`,{encoding:"utf8"});return lt.from(F)}static async save({fs:b,gitdir:k,config:F}){await b.write(`${k}/config`,F.toString(),{encoding:"utf8"})}},l(Ja,"Sv"),Ja);e(bt,"GitConfigManager");var ht=bt,kt=e(B=>[`${B}`,`refs/${B}`,`refs/tags/${B}`,`refs/heads/${B}`,`refs/remotes/${B}`,`refs/remotes/${B}/HEAD`],"refpaths"),qt=["config","description","index","shallow","commondir"],zt;async function or(B,b){return zt===void 0&&(zt=new f),zt.acquire(B,b)}l(or,"Qi"),e(or,"acquireLock");var kr=(Zt=class{static async updateRemoteRefs({fs:b,gitdir:k,remote:F,refs:L,symrefs:$,tags:K,refspecs:ne=void 0,prune:_e=!1,pruneTags:ce=!1}){for(let rt of L.values())if(!rt.match(/[0-9a-f]{40}/))throw new Ce(rt);let he=await ht.get({fs:b,gitdir:k});if(!ne){if(ne=await he.getall(`remote.${F}.fetch`),ne.length===0)throw new Ke(F);ne.unshift(`+HEAD:refs/remotes/${F}/HEAD`)}let Be=C.from(ne),je=new Map;if(ce){let rt=await Zt.listRefs({fs:b,gitdir:k,filepath:"refs/tags"});await Zt.deleteRefs({fs:b,gitdir:k,refs:rt.map(ot=>`refs/tags/${ot}`)})}if(K){for(let rt of L.keys())if(rt.startsWith("refs/tags")&&!rt.endsWith("^{}")&&!await Zt.exists({fs:b,gitdir:k,ref:rt})){let ot=L.get(rt);je.set(rt,ot)}}let Me=Be.translate([...L.keys()]);for(let[rt,ot]of Me){let it=L.get(rt);je.set(ot,it)}let ze=Be.translate([...$.keys()]);for(let[rt,ot]of ze){let it=$.get(rt),ft=Be.translateOne(it);ft&&je.set(ot,`ref: ${ft}`)}let Ye=[];if(_e){for(let rt of Be.localNamespaces()){let ot=(await Zt.listRefs({fs:b,gitdir:k,filepath:rt})).map(it=>`${rt}/${it}`);for(let it of ot)je.has(it)||Ye.push(it)}Ye.length>0&&await Zt.deleteRefs({fs:b,gitdir:k,refs:Ye})}for(let[rt,ot]of je)await or(rt,async()=>b.write(a.join(k,rt),`${ot.trim()}
|
|
33
|
+
`,"utf8"));return{pruned:Ye}}static async writeRef({fs:b,gitdir:k,ref:F,value:L}){if(!L.match(/[0-9a-f]{40}/))throw new Ce(L);await or(F,async()=>b.write(a.join(k,F),`${L.trim()}
|
|
34
|
+
`,"utf8"))}static async writeSymbolicRef({fs:b,gitdir:k,ref:F,value:L}){await or(F,async()=>b.write(a.join(k,F),`ref: ${L.trim()}
|
|
35
|
+
`,"utf8"))}static async deleteRef({fs:b,gitdir:k,ref:F}){return Zt.deleteRefs({fs:b,gitdir:k,refs:[F]})}static async deleteRefs({fs:b,gitdir:k,refs:F}){await Promise.all(F.map(ne=>b.rm(a.join(k,ne))));let L=await or("packed-refs",async()=>b.read(`${k}/packed-refs`,{encoding:"utf8"})),$=s.from(L),K=$.refs.size;for(let ne of F)$.refs.has(ne)&&$.delete(ne);$.refs.size<K&&(L=$.toString(),await or("packed-refs",async()=>b.write(`${k}/packed-refs`,L,{encoding:"utf8"})))}static async resolve({fs:b,gitdir:k,ref:F,depth:L=void 0}){if(L!==void 0&&(L--,L===-1))return F;if(F.startsWith("ref: "))return F=F.slice(5),Zt.resolve({fs:b,gitdir:k,ref:F,depth:L});if(F.length===40&&/[0-9a-f]{40}/.test(F))return F;let $=await Zt.packedRefs({fs:b,gitdir:k}),K=kt(F).filter(ne=>!qt.includes(ne));for(let ne of K){let _e=await or(ne,async()=>await b.read(`${k}/${ne}`,{encoding:"utf8"})||$.get(ne));if(_e)return Zt.resolve({fs:b,gitdir:k,ref:_e.trim(),depth:L})}throw new ge(F)}static async exists({fs:b,gitdir:k,ref:F}){try{return await Zt.expand({fs:b,gitdir:k,ref:F}),!0}catch{return!1}}static async expand({fs:b,gitdir:k,ref:F}){if(F.length===40&&/[0-9a-f]{40}/.test(F))return F;let L=await Zt.packedRefs({fs:b,gitdir:k}),$=kt(F);for(let K of $)if(await or(K,async()=>b.exists(`${k}/${K}`))||L.has(K))return K;throw new ge(F)}static async expandAgainstMap({ref:b,map:k}){let F=kt(b);for(let L of F)if(await k.has(L))return L;throw new ge(b)}static resolveAgainstMap({ref:b,fullref:k=b,depth:F=void 0,map:L}){if(F!==void 0&&(F--,F===-1))return{fullref:k,oid:b};if(b.startsWith("ref: "))return b=b.slice(5),Zt.resolveAgainstMap({ref:b,fullref:k,depth:F,map:L});if(b.length===40&&/[0-9a-f]{40}/.test(b))return{fullref:k,oid:b};let $=kt(b);for(let K of $){let ne=L.get(K);if(ne)return Zt.resolveAgainstMap({ref:ne.trim(),fullref:K,depth:F,map:L})}throw new ge(b)}static async packedRefs({fs:b,gitdir:k}){let F=await or("packed-refs",async()=>b.read(`${k}/packed-refs`,{encoding:"utf8"}));return s.from(F).refs}static async listRefs({fs:b,gitdir:k,filepath:F}){let L=Zt.packedRefs({fs:b,gitdir:k}),$=null;try{$=await b.readdirDeep(`${k}/${F}`),$=$.map(K=>K.replace(`${k}/${F}/`,""))}catch{$=[]}for(let K of(await L).keys())K.startsWith(F)&&(K=K.replace(F+"/",""),$.includes(K)||$.push(K));return $.sort(j),$}static async listBranches({fs:b,gitdir:k,remote:F}){return F?Zt.listRefs({fs:b,gitdir:k,filepath:`refs/remotes/${F}`}):Zt.listRefs({fs:b,gitdir:k,filepath:"refs/heads"})}static async listTags({fs:b,gitdir:k}){return(await Zt.listRefs({fs:b,gitdir:k,filepath:"refs/tags"})).filter(F=>!F.endsWith("^{}"))}},l(Zt,"It"),Zt);e(kr,"GitRefManager");var et=kr;function tr(B,b){return U(Bt(B),Bt(b))}l(tr,"RY"),e(tr,"compareTreeEntryPath");function Bt(B){return B.mode==="040000"?B.path+"/":B.path}l(Bt,"MP"),e(Bt,"appendSlashIfDir");function Dt(B){switch(B){case"040000":return"tree";case"100644":return"blob";case"100755":return"blob";case"120000":return"blob";case"160000":return"commit"}throw new O(`Unexpected GitTree entry mode: ${B}`)}l(Dt,"sI"),e(Dt,"mode2type$1");function Mt(B){let b=[],k=0;for(;k<B.length;){let F=B.indexOf(32,k);if(F===-1)throw new O(`GitTree: Error parsing buffer at byte location ${k}: Could not find the next space character.`);let L=B.indexOf(0,k);if(L===-1)throw new O(`GitTree: Error parsing buffer at byte location ${k}: Could not find the next null character.`);let $=B.slice(k,F).toString("utf8");$==="40000"&&($="040000");let K=Dt($),ne=B.slice(F+1,L).toString("utf8");if(ne.includes("\\")||ne.includes("/"))throw new P(ne);let _e=B.slice(L+1,L+21).toString("hex");k=L+21,b.push({mode:$,path:ne,oid:_e,type:K})}return b}l(Mt,"TY"),e(Mt,"parseBuffer");function gr(B){if(typeof B=="number"&&(B=B.toString(8)),B.match(/^0?4.*/))return"040000";if(B.match(/^1006.*/))return"100644";if(B.match(/^1007.*/))return"100755";if(B.match(/^120.*/))return"120000";if(B.match(/^160.*/))return"160000";throw new O(`Could not understand file mode: ${B}`)}l(gr,"FY"),e(gr,"limitModeToAllowed");function al(B){return!B.oid&&B.sha&&(B.oid=B.sha),B.mode=gr(B.mode),B.type||(B.type=Dt(B.mode)),B}l(al,"xY"),e(al,"nudgeIntoShape");var U2=(vo=class{constructor(b){if(Buffer.isBuffer(b))this._entries=Mt(b);else if(Array.isArray(b))this._entries=b.map(al);else throw new O("invalid type passed to GitTree constructor");this._entries.sort(M)}static from(b){return new vo(b)}render(){return this._entries.map(b=>`${b.mode} ${b.type} ${b.oid} ${b.path}`).join(`
|
|
36
|
+
`)}toObject(){let b=[...this._entries];return b.sort(tr),Buffer.concat(b.map(k=>{let F=Buffer.from(k.mode.replace(/^0/,"")),L=Buffer.from(" "),$=Buffer.from(k.path,"utf8"),K=Buffer.from([0]),ne=Buffer.from(k.oid,"hex");return Buffer.concat([F,L,$,K,ne])}))}entries(){return this._entries}*[Symbol.iterator](){for(let b of this._entries)yield b}},l(vo,"ed"),vo);e(U2,"GitTree");var rn=U2,M2=(Ya=class{static wrap({type:b,object:k}){let F=`${b} ${k.length}\0`,L=F.length,$=L+k.length,K=new Uint8Array($);for(let ne=0;ne<L;ne++)K[ne]=F.charCodeAt(ne);return K.set(k,L),K}static unwrap(b){let k=b.indexOf(32),F=b.indexOf(0),L=b.slice(0,k).toString("utf8"),$=b.slice(k+1,F).toString("utf8"),K=b.length-(F+1);if(parseInt($)!==K)throw new O(`Length mismatch: expected ${$} bytes but got ${K} instead.`);return{type:L,object:Buffer.from(b.slice(F+1))}}},l(Ya,"Av"),Ya);e(M2,"GitObject");var Da=M2;async function Jd({fs:B,gitdir:b,oid:k}){let F=`objects/${k.slice(0,2)}/${k.slice(2)}`,L=await B.read(`${b}/${F}`);return L?{object:L,format:"deflated",source:F}:null}l(Jd,"lI"),e(Jd,"readObjectLoose");function $2(B,b){let k=new x(B),F=Yd(k);if(F!==b.byteLength)throw new O(`applyDelta expected source buffer to be ${F} bytes but the provided buffer was ${b.length} bytes`);let L=Yd(k),$,K=Qd(k,b);if(K.byteLength===L)$=K;else{$=Buffer.alloc(L);let ne=new x($);for(ne.copy(K);!k.eof();)ne.copy(Qd(k,b));let _e=ne.tell();if(L!==_e)throw new O(`applyDelta expected target buffer to be ${L} bytes but the resulting buffer was ${_e} bytes`)}return $}l($2,"OY"),e($2,"applyDelta");function Yd(B){let b=0,k=0,F=null;do F=B.readUInt8(),b|=(F&127)<<k,k+=7;while(F&128);return b}l(Yd,"UP"),e(Yd,"readVarIntLE");function Zd(B,b,k){let F=0,L=0;for(;k--;)b&1&&(F|=B.readUInt8()<<L),b>>=1,L+=8;return F}l(Zd,"jP"),e(Zd,"readCompactLE");function Qd(B,b){let k=B.readUInt8(),F=128,L=15,$=112;if(k&F){let K=Zd(B,k&L,4),ne=Zd(B,(k&$)>>4,3);return ne===0&&(ne=65536),b.slice(K,K+ne)}else return B.slice(k)}l(Qd,"HP"),e(Qd,"readOp");function W2(B){let b=[B];return{next(){return Promise.resolve({done:b.length===0,value:b.pop()})},return(){return b=[],{}},[Symbol.asyncIterator](){return this}}}l(W2,"PY"),e(W2,"fromValue");function Xd(B){return B[Symbol.asyncIterator]?B[Symbol.asyncIterator]():B[Symbol.iterator]?B[Symbol.iterator]():B.next?B:W2(B)}l(Xd,"fI"),e(Xd,"getIterator");var z2=(Za=class{constructor(b){if(typeof Buffer>"u")throw new Error("Missing Buffer dependency");this.stream=Xd(b),this.buffer=null,this.cursor=0,this.undoCursor=0,this.started=!1,this._ended=!1,this._discardedBytes=0}eof(){return this._ended&&this.cursor===this.buffer.length}tell(){return this._discardedBytes+this.cursor}async byte(){if(!this.eof()&&(this.started||await this._init(),!(this.cursor===this.buffer.length&&(await this._loadnext(),this._ended))))return this._moveCursor(1),this.buffer[this.undoCursor]}async chunk(){if(!this.eof()&&(this.started||await this._init(),!(this.cursor===this.buffer.length&&(await this._loadnext(),this._ended))))return this._moveCursor(this.buffer.length),this.buffer.slice(this.undoCursor,this.cursor)}async read(b){if(!this.eof())return this.started||await this._init(),this.cursor+b>this.buffer.length&&(this._trim(),await this._accumulate(b)),this._moveCursor(b),this.buffer.slice(this.undoCursor,this.cursor)}async skip(b){this.eof()||(this.started||await this._init(),this.cursor+b>this.buffer.length&&(this._trim(),await this._accumulate(b)),this._moveCursor(b))}async undo(){this.cursor=this.undoCursor}async _next(){this.started=!0;let{done:b,value:k}=await this.stream.next();return b&&(this._ended=!0,!k)?Buffer.alloc(0):(k&&(k=Buffer.from(k)),k)}_trim(){this.buffer=this.buffer.slice(this.undoCursor),this.cursor-=this.undoCursor,this._discardedBytes+=this.undoCursor,this.undoCursor=0}_moveCursor(b){this.undoCursor=this.cursor,this.cursor+=b,this.cursor>this.buffer.length&&(this.cursor=this.buffer.length)}async _accumulate(b){if(this._ended)return;let k=[this.buffer];for(;this.cursor+b>q2(k);){let F=await this._next();if(this._ended)break;k.push(F)}this.buffer=Buffer.concat(k)}async _loadnext(){this._discardedBytes+=this.buffer.length,this.undoCursor=0,this.cursor=0,this.buffer=await this._next()}async _init(){this.buffer=await this._next()}},l(Za,"Rv"),Za);e(z2,"StreamReader");var H2=z2;function q2(B){return B.reduce((b,k)=>b+k.length,0)}l(q2,"IY"),e(q2,"lengthBuffers");async function G2(B,b){let k=new H2(B),F=await k.read(4);if(F=F.toString("utf8"),F!=="PACK")throw new O(`Invalid PACK header '${F}'`);let L=await k.read(4);if(L=L.readUInt32BE(0),L!==2)throw new O(`Invalid packfile version: ${L}`);let $=await k.read(4);if($=$.readUInt32BE(0),!($<1))for(;!k.eof()&&$--;){let K=k.tell(),{type:ne,length:_e,ofs:ce,reference:he}=await V2(k),Be=new r.Inflate;for(;!Be.result;){let je=await k.chunk();if(!je)break;if(Be.push(je,!1),Be.err)throw new O(`Pako error: ${Be.msg}`);if(Be.result){if(Be.result.length!==_e)throw new O("Inflated object size is different from that stated in packfile.");await k.undo(),await k.read(je.length-Be.strm.avail_in);let Me=k.tell();await b({data:Be.result,type:ne,num:$,offset:K,end:Me,reference:he,ofs:ce})}}}}l(G2,"kY"),e(G2,"listpack");async function V2(B){let b=await B.byte(),k=b>>4&7,F=b&15;if(b&128){let K=4;do b=await B.byte(),F|=(b&127)<<K,K+=7;while(b&128)}let L,$;if(k===6){let K=0;L=0;let ne=[];do b=await B.byte(),L|=(b&127)<<K,K+=7,ne.push(b);while(b&128);$=Buffer.from(ne)}return k===7&&($=await B.read(20)),{type:k,length:F,ofs:L,reference:$}}l(V2,"BY"),e(V2,"parseHeader");var ep=!1;async function tp(B){return ep===null&&(ep=J2()),ep?K2(B):r.inflate(B)}l(tp,"uI"),e(tp,"inflate");async function K2(B){let b=new DecompressionStream("deflate"),k=new Blob([B]).stream().pipeThrough(b);return new Uint8Array(await new Response(k).arrayBuffer())}l(K2,"CY"),e(K2,"browserInflate");function J2(){try{if(new DecompressionStream("deflate"))return!0}catch{}return!1}l(J2,"LY"),e(J2,"testDecompressionStream");function Y2(B){let b=[],k=0,F=0;do{k=B.readUInt8();let L=k&127;b.push(L),F=k&128}while(F);return b.reduce((L,$)=>L+1<<7|$,-1)}l(Y2,"NY"),e(Y2,"decodeVarInt");function Z2(B,b){let k=b,F=4,L=null;do L=B.readUInt8(),k|=(L&127)<<F,F+=7;while(L&128);return k}l(Z2,"DY"),e(Z2,"otherVarIntDecode");var Q2=(Oi=class{constructor(b){Object.assign(this,b),this.offsetCache={}}static async fromIdx({idx:b,getExternalRefDelta:k}){let F=new x(b);if(F.slice(4).toString("hex")!=="ff744f63")return;let L=F.readUInt32BE();if(L!==2)throw new O(`Unable to read version ${L} packfile IDX. (Only version 2 supported)`);if(b.byteLength>2048*1024*1024)throw new O("To keep implementation simple, I haven't implemented the layer 5 feature needed to support packfiles > 2GB in size.");F.seek(F.tell()+4*255);let $=F.readUInt32BE(),K=[];for(let ce=0;ce<$;ce++){let he=F.slice(20).toString("hex");K[ce]=he}F.seek(F.tell()+4*$);let ne=new Map;for(let ce=0;ce<$;ce++)ne.set(K[ce],F.readUInt32BE());let _e=F.slice(20).toString("hex");return new Oi({hashes:K,crcs:{},offsets:ne,packfileSha:_e,getExternalRefDelta:k})}static async fromPack({pack:b,getExternalRefDelta:k,onProgress:F}){let L={1:"commit",2:"tree",3:"blob",4:"tag",6:"ofs-delta",7:"ref-delta"},$={},K=b.slice(-20).toString("hex"),ne=[],_e={},ce=new Map,he=null,Be=null;await G2([b],async({data:rt,type:ot,reference:it,offset:ft,num:gt})=>{he===null&&(he=gt);let yt=Math.floor((he-gt)*100/he);yt!==Be&&F&&await F({phase:"Receiving objects",loaded:he-gt,total:he}),Be=yt,ot=L[ot],["commit","tree","blob","tag"].includes(ot)?$[ft]={type:ot,offset:ft}:ot==="ofs-delta"?$[ft]={type:ot,offset:ft}:ot==="ref-delta"&&($[ft]={type:ot,offset:ft})});let je=Object.keys($).map(Number);for(let[rt,ot]of je.entries()){let it=rt+1===je.length?b.byteLength-20:je[rt+1],ft=$[ot],gt=n.buf(b.slice(ot,it))>>>0;ft.end=it,ft.crc=gt}let Me=new Oi({pack:Promise.resolve(b),packfileSha:K,crcs:_e,hashes:ne,offsets:ce,getExternalRefDelta:k});Be=null;let ze=0,Ye=[0,0,0,0,0,0,0,0,0,0,0,0];for(let rt in $){rt=Number(rt);let ot=Math.floor(ze*100/he);ot!==Be&&F&&await F({phase:"Resolving deltas",loaded:ze,total:he}),ze++,Be=ot;let it=$[rt];if(!it.oid)try{Me.readDepth=0,Me.externalReadDepth=0;let{type:ft,object:gt}=await Me.readSlice({start:rt});Ye[Me.readDepth]+=1;let yt=await de(Da.wrap({type:ft,object:gt}));it.oid=yt,ne.push(yt),ce.set(yt,rt),_e[yt]=it.crc}catch{continue}}return ne.sort(),Me}async toBuffer(){let b=[],k=e((ce,he)=>{b.push(Buffer.from(ce,he))},"write");k("ff744f63","hex"),k("00000002","hex");let F=new x(Buffer.alloc(256*4));for(let ce=0;ce<256;ce++){let he=0;for(let Be of this.hashes)parseInt(Be.slice(0,2),16)<=ce&&he++;F.writeUInt32BE(he)}b.push(F.buffer);for(let ce of this.hashes)k(ce,"hex");let L=new x(Buffer.alloc(this.hashes.length*4));for(let ce of this.hashes)L.writeUInt32BE(this.crcs[ce]);b.push(L.buffer);let $=new x(Buffer.alloc(this.hashes.length*4));for(let ce of this.hashes)$.writeUInt32BE(this.offsets.get(ce));b.push($.buffer),k(this.packfileSha,"hex");let K=Buffer.concat(b),ne=await de(K),_e=Buffer.alloc(20);return _e.write(ne,"hex"),Buffer.concat([K,_e])}async load({pack:b}){this.pack=b}async unload(){this.pack=null}async read({oid:b}){if(!this.offsets.get(b)){if(this.getExternalRefDelta)return this.externalReadDepth++,this.getExternalRefDelta(b);throw new O(`Could not read object ${b} from packfile`)}let k=this.offsets.get(b);return this.readSlice({start:k})}async readSlice({start:b}){if(this.offsetCache[b])return Object.assign({},this.offsetCache[b]);this.readDepth++;let k={16:"commit",32:"tree",48:"blob",64:"tag",96:"ofs_delta",112:"ref_delta"};if(!this.pack)throw new O("Tried to read from a GitPackIndex with no packfile loaded into memory");let F=(await this.pack).slice(b),L=new x(F),$=L.readUInt8(),K=$&112,ne=k[K];if(ne===void 0)throw new O("Unrecognized type: 0b"+K.toString(2));let _e=$&15,ce=_e;$&128&&(ce=Z2(L,_e));let he=null,Be=null;if(ne==="ofs_delta"){let Me=Y2(L),ze=b-Me;({object:he,type:ne}=await this.readSlice({start:ze}))}if(ne==="ref_delta"){let Me=L.slice(20).toString("hex");({object:he,type:ne}=await this.read({oid:Me}))}let je=F.slice(L.tell());if(Be=Buffer.from(await tp(je)),Be.byteLength!==ce)throw new O(`Packfile told us object would have length ${ce} but it had length ${Be.byteLength}`);return he&&(Be=Buffer.from($2(Be,he))),this.readDepth>3&&(this.offsetCache[b]={type:ne,object:Be}),{type:ne,format:"content",object:Be}}},l(Oi,"Ff"),Oi);e(Q2,"GitPackIndex");var rp=Q2,Pf=Symbol("PackfileCache");async function X2({fs:B,filename:b,getExternalRefDelta:k,emitter:F,emitterPrefix:L}){let $=await B.read(b);return rp.fromIdx({idx:$,getExternalRefDelta:k})}l(X2,"$Y"),e(X2,"loadPackIndex");function jf({fs:B,cache:b,filename:k,getExternalRefDelta:F,emitter:L,emitterPrefix:$}){b[Pf]||(b[Pf]=new Map);let K=b[Pf].get(k);return K||(K=X2({fs:B,filename:k,getExternalRefDelta:F,emitter:L,emitterPrefix:$}),b[Pf].set(k,K)),K}l(jf,"pv"),e(jf,"readPackIndex");async function eS({fs:B,cache:b,gitdir:k,oid:F,format:L="content",getExternalRefDelta:$}){let K=await B.readdir(a.join(k,"objects/pack"));K=K.filter(ne=>ne.endsWith(".idx"));for(let ne of K){let _e=`${k}/objects/pack/${ne}`,ce=await jf({fs:B,cache:b,filename:_e,getExternalRefDelta:$});if(ce.error)throw new O(ce.error);if(ce.offsets.has(F)){if(!ce.pack){let Be=_e.replace(/idx$/,"pack");ce.pack=B.read(Be)}let he=await ce.read({oid:F,getExternalRefDelta:$});return he.format="content",he.source=`objects/pack/${ne.replace(/idx$/,"pack")}`,he}}return null}l(eS,"MY"),e(eS,"readObjectPacked");async function $t({fs:B,cache:b,gitdir:k,oid:F,format:L="content"}){let $=e(he=>$t({fs:B,cache:b,gitdir:k,oid:he}),"getExternalRefDelta"),K;if(F==="4b825dc642cb6eb9a060e54bf8d69288fbee4904"&&(K={format:"wrapped",object:Buffer.from("tree 0\0")}),K||(K=await Jd({fs:B,gitdir:k,oid:F})),!K){if(K=await eS({fs:B,cache:b,gitdir:k,oid:F,getExternalRefDelta:$}),!K)throw new ge(F);return K}if(L==="deflated"||(K.format==="deflated"&&(K.object=Buffer.from(await tp(K.object)),K.format="wrapped"),L==="wrapped"))return K;let ne=await de(K.object);if(ne!==F)throw new O(`SHA check failed! Expected ${F}, computed ${ne}`);let{object:_e,type:ce}=Da.unwrap(K.object);if(K.type=ce,K.object=_e,K.format="content",L==="content")return K;throw new O(`invalid requested format "${L}"`)}l($t,"ct"),e($t,"_readObject");var tS=(_o=class extends w{constructor(b,k,F=!0){super(`Failed to create ${b} at ${k} because it already exists.${F?` (Hint: use 'force: true' parameter to overwrite existing ${b}.)`:""}`),this.code=this.name=_o.code,this.data={noun:b,where:k,canForce:F}}},l(_o,"td"),_o);e(tS,"AlreadyExistsError");var qn=tS;qn.code="AlreadyExistsError";var rS=(Eo=class extends w{constructor(b,k,F){super(`Found multiple ${b} matching "${k}" (${F.join(", ")}). Use a longer abbreviation length to disambiguate them.`),this.code=this.name=Eo.code,this.data={nouns:b,short:k,matches:F}}},l(Eo,"rd"),Eo);e(rS,"AmbiguousError");var np=rS;np.code="AmbiguousError";var nS=(So=class extends w{constructor(b){super(`Your local changes to the following files would be overwritten by checkout: ${b.join(", ")}`),this.code=this.name=So.code,this.data={filepaths:b}}},l(So,"nd"),So);e(nS,"CheckoutConflictError");var ip=nS;ip.code="CheckoutConflictError";var iS=(Ao=class extends w{constructor(b,k){super(`Failed to checkout "${b}" because commit ${k} is not available locally. Do a git fetch to make the branch available locally.`),this.code=this.name=Ao.code,this.data={ref:b,oid:k}}},l(Ao,"id"),Ao);e(iS,"CommitNotFetchedError");var op=iS;op.code="CommitNotFetchedError";var oS=(Ro=class extends w{constructor(){super("Empty response from git server."),this.code=this.name=Ro.code,this.data={}}},l(Ro,"od"),Ro);e(oS,"EmptyServerResponseError");var ap=oS;ap.code="EmptyServerResponseError";var aS=(Oo=class extends w{constructor(){super("A simple fast-forward merge was not possible."),this.code=this.name=Oo.code,this.data={}}},l(Oo,"ad"),Oo);e(aS,"FastForwardError");var sp=aS;sp.code="FastForwardError";var sS=(ko=class extends w{constructor(b,k){super(`One or more branches were not updated: ${b}`),this.code=this.name=ko.code,this.data={prettyDetails:b,result:k}}},l(ko,"sd"),ko);e(sS,"GitPushError");var lp=sS;lp.code="GitPushError";var lS=(To=class extends w{constructor(b,k,F){super(`HTTP Error: ${b} ${k}`),this.code=this.name=To.code,this.data={statusCode:b,statusMessage:k,response:F}}},l(To,"ld"),To);e(lS,"HttpError");var Cf=lS;Cf.code="HttpError";var fS=(Fo=class extends w{constructor(b){let k="invalid filepath";b==="leading-slash"||b==="trailing-slash"?k='"filepath" parameter should not include leading or trailing directory separators because these can cause problems on some platforms.':b==="directory"&&(k='"filepath" should not be a directory.'),super(k),this.code=this.name=Fo.code,this.data={reason:b}}},l(Fo,"fd"),Fo);e(fS,"InvalidFilepathError");var Ua=fS;Ua.code="InvalidFilepathError";var uS=(Bo=class extends w{constructor(b,k){super(`"${b}" would be an invalid git reference. (Hint: a valid alternative would be "${k}".)`),this.code=this.name=Bo.code,this.data={ref:b,suggestion:k}}},l(Bo,"ud"),Bo);e(uS,"InvalidRefNameError");var Gn=uS;Gn.code="InvalidRefNameError";var cS=(xo=class extends w{constructor(b){super(`Maximum search depth of ${b} exceeded.`),this.code=this.name=xo.code,this.data={depth:b}}},l(xo,"cd"),xo);e(cS,"MaxDepthError");var fp=cS;fp.code="MaxDepthError";var hS=(Io=class extends w{constructor(){super("Merges with conflicts are not supported yet."),this.code=this.name=Io.code,this.data={}}},l(Io,"hd"),Io);e(hS,"MergeNotSupportedError");var Lf=hS;Lf.code="MergeNotSupportedError";var dS=(Po=class extends w{constructor(b,k,F,L){super(`Automatic merge failed with one or more merge conflicts in the following files: ${b.toString()}. Fix conflicts then commit the result.`),this.code=this.name=Po.code,this.data={filepaths:b,bothModified:k,deleteByUs:F,deleteByTheirs:L}}},l(Po,"dd"),Po);e(dS,"MergeConflictError");var Nf=dS;Nf.code="MergeConflictError";var pS=(jo=class extends w{constructor(b){super(`No name was provided for ${b} in the argument or in the .git/config file.`),this.code=this.name=jo.code,this.data={role:b}}},l(jo,"pd"),jo);e(pS,"MissingNameError");var Dr=pS;Dr.code="MissingNameError";var gS=(Co=class extends w{constructor(b){super(`The function requires a "${b}" parameter but none was provided.`),this.code=this.name=Co.code,this.data={parameter:b}}},l(Co,"yd"),Co);e(gS,"MissingParameterError");var nn=gS;nn.code="MissingParameterError";var yS=(Lo=class extends w{constructor(b){super('There are multiple errors that were thrown by the method. Please refer to the "errors" property to see more'),this.code=this.name=Lo.code,this.data={errors:b},this.errors=b}},l(Lo,"md"),Lo);e(yS,"MultipleGitError");var up=yS;up.code="MultipleGitError";var mS=(No=class extends w{constructor(b,k){super(`Expected "${b}" but received "${k}".`),this.code=this.name=No.code,this.data={expected:b,actual:k}}},l(No,"gd"),No);e(mS,"ParseError");var sl=mS;sl.code="ParseError";var wS=(Do=class extends w{constructor(b){let k="";b==="not-fast-forward"?k=" because it was not a simple fast-forward":b==="tag-exists"&&(k=" because tag already exists"),super(`Push rejected${k}. Use "force: true" to override.`),this.code=this.name=Do.code,this.data={reason:b}}},l(Do,"wd"),Do);e(wS,"PushRejectedError");var Df=wS;Df.code="PushRejectedError";var bS=(Uo=class extends w{constructor(b,k){super(`Remote does not support the "${b}" so the "${k}" parameter cannot be used.`),this.code=this.name=Uo.code,this.data={capability:b,parameter:k}}},l(Uo,"vd"),Uo);e(bS,"RemoteCapabilityError");var Ma=bS;Ma.code="RemoteCapabilityError";var vS=(Mo=class extends w{constructor(b,k){super(`Remote did not reply using the "smart" HTTP protocol. Expected "001e# service=git-upload-pack" but received: ${b}`),this.code=this.name=Mo.code,this.data={preview:b,response:k}}},l(Mo,"bd"),Mo);e(vS,"SmartHttpError");var cp=vS;cp.code="SmartHttpError";var _S=($o=class extends w{constructor(b,k,F){super(`Git remote "${b}" uses an unrecognized transport protocol: "${k}"`),this.code=this.name=$o.code,this.data={url:b,transport:k,suggestion:F}}},l($o,"_d"),$o);e(_S,"UnknownTransportError");var hp=_S;hp.code="UnknownTransportError";var ES=(Wo=class extends w{constructor(b){super(`Cannot parse remote URL: "${b}"`),this.code=this.name=Wo.code,this.data={url:b}}},l(Wo,"Ed"),Wo);e(ES,"UrlParseError");var dp=ES;dp.code="UrlParseError";var SS=(zo=class extends w{constructor(){super("The operation was canceled."),this.code=this.name=zo.code,this.data={}}},l(zo,"Sd"),zo);e(SS,"UserCanceledError");var Uf=SS;Uf.code="UserCanceledError";var AS=(Ho=class extends w{constructor(b){super(`Could not merge index: Entry for '${b}' is not up to date. Either reset the index entry to HEAD, or stage your unstaged changes.`),this.code=this.name=Ho.code,this.data={filepath:b}}},l(Ho,"Ad"),Ho);e(AS,"IndexResetError");var pp=AS;pp.code="IndexResetError";var RS=(qo=class extends w{constructor(b){super(`"${b}" does not point to any commit. You're maybe working on a repository with no commits yet. `),this.code=this.name=qo.code,this.data={ref:b}}},l(qo,"Rd"),qo);e(RS,"NoCommitError");var gp=RS;gp.code="NoCommitError";var OS=Object.freeze({__proto__:null,AlreadyExistsError:qn,AmbiguousError:np,CheckoutConflictError:ip,CommitNotFetchedError:op,EmptyServerResponseError:ap,FastForwardError:sp,GitPushError:lp,HttpError:Cf,InternalError:O,InvalidFilepathError:Ua,InvalidOidError:Ce,InvalidRefNameError:Gn,MaxDepthError:fp,MergeNotSupportedError:Lf,MergeConflictError:Nf,MissingNameError:Dr,MissingParameterError:nn,MultipleGitError:up,NoRefspecError:Ke,NotFoundError:ge,ObjectTypeError:Ie,ParseError:sl,PushRejectedError:Df,RemoteCapabilityError:Ma,SmartHttpError:cp,UnknownTransportError:hp,UnsafeFilepathError:P,UrlParseError:dp,UserCanceledError:Uf,UnmergedPathsError:S,IndexResetError:pp,NoCommitError:gp});function Mf({name:B,email:b,timestamp:k,timezoneOffset:F}){return F=kS(F),`${B} <${b}> ${k} ${F}`}l(Mf,"av"),e(Mf,"formatAuthor");function kS(B){let b=TS(FS(B));B=Math.abs(B);let k=Math.floor(B/60);B-=k*60;let F=String(k),L=String(B);return F.length<2&&(F="0"+F),L.length<2&&(L="0"+L),(b===-1?"-":"+")+F+L}l(kS,"UY"),e(kS,"formatTimezoneOffset");function TS(B){return Math.sign(B)||(Object.is(B,-0)?-1:1)}l(TS,"jY"),e(TS,"simpleSign");function FS(B){return B===0?B:-B}l(FS,"HY"),e(FS,"negateExceptForZero");function vn(B){return B=B.replace(/\r/g,""),B=B.replace(/^\n+/,""),B=B.replace(/\n+$/,"")+`
|
|
37
|
+
`,B}l(vn,"si"),e(vn,"normalizeNewlines");function ll(B){let[,b,k,F,L]=B.match(/^(.*) <(.*)> (.*) (.*)$/);return{name:b,email:k,timestamp:Number(F),timezoneOffset:BS(L)}}l(ll,"Dh"),e(ll,"parseAuthor");function BS(B){let[,b,k,F]=B.match(/(\+|-)(\d\d)(\d\d)/);return F=(b==="+"?1:-1)*(Number(k)*60+Number(F)),xS(F)}l(BS,"WY"),e(BS,"parseTimezoneOffset");function xS(B){return B===0?B:-B}l(xS,"qY"),e(xS,"negateExceptForZero$1");var IS=(Yn=class{constructor(b){if(typeof b=="string")this._tag=b;else if(Buffer.isBuffer(b))this._tag=b.toString("utf8");else if(typeof b=="object")this._tag=Yn.render(b);else throw new O("invalid type passed to GitAnnotatedTag constructor")}static from(b){return new Yn(b)}static render(b){return`object ${b.object}
|
|
38
|
+
type ${b.type}
|
|
39
|
+
tag ${b.tag}
|
|
40
|
+
tagger ${Mf(b.tagger)}
|
|
41
|
+
|
|
42
|
+
${b.message}
|
|
43
|
+
${b.gpgsig?b.gpgsig:""}`}justHeaders(){return this._tag.slice(0,this._tag.indexOf(`
|
|
44
|
+
|
|
45
|
+
`))}message(){let b=this.withoutSignature();return b.slice(b.indexOf(`
|
|
46
|
+
|
|
47
|
+
`)+2)}parse(){return Object.assign(this.headers(),{message:this.message(),gpgsig:this.gpgsig()})}render(){return this._tag}headers(){let b=this.justHeaders().split(`
|
|
48
|
+
`),k=[];for(let L of b)L[0]===" "?k[k.length-1]+=`
|
|
49
|
+
`+L.slice(1):k.push(L);let F={};for(let L of k){let $=L.slice(0,L.indexOf(" ")),K=L.slice(L.indexOf(" ")+1);Array.isArray(F[$])?F[$].push(K):F[$]=K}return F.tagger&&(F.tagger=ll(F.tagger)),F.committer&&(F.committer=ll(F.committer)),F}withoutSignature(){let b=vn(this._tag);return b.indexOf(`
|
|
50
|
+
-----BEGIN PGP SIGNATURE-----`)===-1?b:b.slice(0,b.lastIndexOf(`
|
|
51
|
+
-----BEGIN PGP SIGNATURE-----`))}gpgsig(){if(this._tag.indexOf(`
|
|
52
|
+
-----BEGIN PGP SIGNATURE-----`)===-1)return;let b=this._tag.slice(this._tag.indexOf("-----BEGIN PGP SIGNATURE-----"),this._tag.indexOf("-----END PGP SIGNATURE-----")+27);return vn(b)}payload(){return this.withoutSignature()+`
|
|
53
|
+
`}toObject(){return Buffer.from(this._tag,"utf8")}static async sign(b,k,F){let L=b.payload(),{signature:$}=await k({payload:L,secretKey:F});$=vn($);let K=L+$;return Yn.from(K)}},l(Yn,"Os"),Yn);e(IS,"GitAnnotatedTag");var fn=IS;function $f(B){return B.trim().split(`
|
|
54
|
+
`).map(b=>" "+b).join(`
|
|
55
|
+
`)+`
|
|
56
|
+
`}l($f,"Y0"),e($f,"indent");function PS(B){return B.split(`
|
|
57
|
+
`).map(b=>b.replace(/^ /,"")).join(`
|
|
58
|
+
`)}l(PS,"zY"),e(PS,"outdent");var jS=(yr=class{constructor(b){if(typeof b=="string")this._commit=b;else if(Buffer.isBuffer(b))this._commit=b.toString("utf8");else if(typeof b=="object")this._commit=yr.render(b);else throw new O("invalid type passed to GitCommit constructor")}static fromPayloadSignature({payload:b,signature:k}){let F=yr.justHeaders(b),L=yr.justMessage(b),$=vn(F+`
|
|
59
|
+
gpgsig`+$f(k)+`
|
|
60
|
+
`+L);return new yr($)}static from(b){return new yr(b)}toObject(){return Buffer.from(this._commit,"utf8")}headers(){return this.parseHeaders()}message(){return yr.justMessage(this._commit)}parse(){return Object.assign({message:this.message()},this.headers())}static justMessage(b){return vn(b.slice(b.indexOf(`
|
|
61
|
+
|
|
62
|
+
`)+2))}static justHeaders(b){return b.slice(0,b.indexOf(`
|
|
63
|
+
|
|
64
|
+
`))}parseHeaders(){let b=yr.justHeaders(this._commit).split(`
|
|
65
|
+
`),k=[];for(let L of b)L[0]===" "?k[k.length-1]+=`
|
|
66
|
+
`+L.slice(1):k.push(L);let F={parent:[]};for(let L of k){let $=L.slice(0,L.indexOf(" ")),K=L.slice(L.indexOf(" ")+1);Array.isArray(F[$])?F[$].push(K):F[$]=K}return F.author&&(F.author=ll(F.author)),F.committer&&(F.committer=ll(F.committer)),F}static renderHeaders(b){let k="";if(b.tree?k+=`tree ${b.tree}
|
|
67
|
+
`:k+=`tree 4b825dc642cb6eb9a060e54bf8d69288fbee4904
|
|
68
|
+
`,b.parent){if(b.parent.length===void 0)throw new O("commit 'parent' property should be an array");for(let $ of b.parent)k+=`parent ${$}
|
|
69
|
+
`}let F=b.author;k+=`author ${Mf(F)}
|
|
70
|
+
`;let L=b.committer||b.author;return k+=`committer ${Mf(L)}
|
|
71
|
+
`,b.gpgsig&&(k+="gpgsig"+$f(b.gpgsig)),k}static render(b){return yr.renderHeaders(b)+`
|
|
72
|
+
`+vn(b.message)}render(){return this._commit}withoutSignature(){let b=vn(this._commit);if(b.indexOf(`
|
|
73
|
+
gpgsig`)===-1)return b;let k=b.slice(0,b.indexOf(`
|
|
74
|
+
gpgsig`)),F=b.slice(b.indexOf(`-----END PGP SIGNATURE-----
|
|
75
|
+
`)+28);return vn(k+`
|
|
76
|
+
`+F)}isolateSignature(){let b=this._commit.slice(this._commit.indexOf("-----BEGIN PGP SIGNATURE-----"),this._commit.indexOf("-----END PGP SIGNATURE-----")+27);return PS(b)}static async sign(b,k,F){let L=b.withoutSignature(),$=yr.justMessage(b._commit),{signature:K}=await k({payload:L,secretKey:F});K=vn(K);let ne=yr.justHeaders(b._commit)+`
|
|
77
|
+
gpgsig`+$f(K)+`
|
|
78
|
+
`+$;return yr.from(ne)}},l(yr,"yr"),yr);e(jS,"GitCommit");var on=jS;async function eo({fs:B,cache:b,gitdir:k,oid:F}){if(F==="4b825dc642cb6eb9a060e54bf8d69288fbee4904")return{tree:rn.from([]),oid:F};let{type:L,object:$}=await $t({fs:B,cache:b,gitdir:k,oid:F});if(L==="tag")return F=fn.from($).parse().object,eo({fs:B,cache:b,gitdir:k,oid:F});if(L==="commit")return F=on.from($).parse().tree,eo({fs:B,cache:b,gitdir:k,oid:F});if(L!=="tree")throw new Ie(F,L,"tree");return{tree:rn.from($),oid:F}}l(eo,"Us"),e(eo,"resolveTree");var CS=(Qa=class{constructor({fs:b,gitdir:k,ref:F,cache:L}){var ne;var $;this.fs=b,this.cache=L,this.gitdir=k,this.mapPromise=(async()=>{let _e=new Map,ce;try{ce=await et.resolve({fs:b,gitdir:k,ref:F})}catch(Be){Be instanceof ge&&(ce="4b825dc642cb6eb9a060e54bf8d69288fbee4904")}let he=await eo({fs:b,cache:this.cache,gitdir:k,oid:ce});return he.type="tree",he.mode="40000",_e.set(".",he),_e})();let K=this;this.ConstructEntry=($=(ne=class{constructor(ce){this._fullpath=ce,this._type=!1,this._mode=!1,this._stat=!1,this._content=!1,this._oid=!1}async type(){return K.type(this)}async mode(){return K.mode(this)}async stat(){return K.stat(this)}async content(){return K.content(this)}async oid(){return K.oid(this)}},l(ne,"i"),ne),e($,"TreeEntry"),$)}async readdir(b){let k=b._fullpath,{fs:F,cache:L,gitdir:$}=this,K=await this.mapPromise,ne=K.get(k);if(!ne)throw new Error(`No obj for ${k}`);let _e=ne.oid;if(!_e)throw new Error(`No oid for obj ${JSON.stringify(ne)}`);if(ne.type!=="tree")return null;let{type:ce,object:he}=await $t({fs:F,cache:L,gitdir:$,oid:_e});if(ce!==ne.type)throw new Ie(_e,ce,ne.type);let Be=rn.from(he);for(let je of Be)K.set(a.join(k,je.path),je);return Be.entries().map(je=>a.join(k,je.path))}async type(b){if(b._type===!1){let k=await this.mapPromise,{type:F}=k.get(b._fullpath);b._type=F}return b._type}async mode(b){if(b._mode===!1){let k=await this.mapPromise,{mode:F}=k.get(b._fullpath);b._mode=ee(parseInt(F,8))}return b._mode}async stat(b){}async content(b){if(b._content===!1){let k=await this.mapPromise,{fs:F,cache:L,gitdir:$}=this,K=k.get(b._fullpath).oid,{type:ne,object:_e}=await $t({fs:F,cache:L,gitdir:$,oid:K});ne!=="blob"?b._content=void 0:b._content=new Uint8Array(_e)}return b._content}async oid(b){if(b._oid===!1){let k=(await this.mapPromise).get(b._fullpath);b._oid=k.oid}return b._oid}},l(Qa,"Tv"),Qa);e(CS,"GitWalkerRepo");var tL=CS;function Ur({ref:B="HEAD"}={}){let b=Object.create(null);return Object.defineProperty(b,Ee,{value:e(function({fs:k,gitdir:F,cache:L}){return new tL({fs:k,gitdir:F,ref:B,cache:L})},"value")}),Object.freeze(b),b}l(Ur,"Ir"),e(Ur,"TREE");var LS=(Xa=class{constructor({fs:b,dir:k,gitdir:F,cache:L}){var ne;var $;this.fs=b,this.cache=L,this.dir=k,this.gitdir=F,this.config=null;let K=this;this.ConstructEntry=($=(ne=class{constructor(ce){this._fullpath=ce,this._type=!1,this._mode=!1,this._stat=!1,this._content=!1,this._oid=!1}async type(){return K.type(this)}async mode(){return K.mode(this)}async stat(){return K.stat(this)}async content(){return K.content(this)}async oid(){return K.oid(this)}},l(ne,"i"),ne),e($,"WorkdirEntry"),$)}async readdir(b){let k=b._fullpath,{fs:F,dir:L}=this,$=await F.readdir(a.join(L,k));return $===null?null:$.map(K=>a.join(k,K))}async type(b){return b._type===!1&&await b.stat(),b._type}async mode(b){return b._mode===!1&&await b.stat(),b._mode}async stat(b){if(b._stat===!1){let{fs:k,dir:F}=this,L=await k.lstat(`${F}/${b._fullpath}`);if(!L)throw new Error(`ENOENT: no such file or directory, lstat '${b._fullpath}'`);let $=L.isDirectory()?"tree":"blob";$==="blob"&&!L.isFile()&&!L.isSymbolicLink()&&($="special"),b._type=$,L=G(L),b._mode=L.mode,L.size===-1&&b._actualSize&&(L.size=b._actualSize),b._stat=L}return b._stat}async content(b){if(b._content===!1){let{fs:k,dir:F,gitdir:L}=this;if(await b.type()==="tree")b._content=void 0;else{let $=await(await this._getGitConfig(k,L)).get("core.autocrlf"),K=await k.read(`${F}/${b._fullpath}`,{autocrlf:$});b._actualSize=K.length,b._stat&&b._stat.size===-1&&(b._stat.size=b._actualSize),b._content=new Uint8Array(K)}}return b._content}async oid(b){if(b._oid===!1){let k=this,{fs:F,gitdir:L,cache:$}=this,K;await Q.acquire({fs:F,gitdir:L,cache:$},async function(ne){let _e=ne.entriesMap.get(b._fullpath),ce=await b.stat(),he=await(await k._getGitConfig(F,L)).get("core.filemode"),Be=typeof process<"u"?process.platform!=="win32":!0;if(!_e||te(ce,_e,he,Be)){let je=await b.content();je===void 0?K=void 0:(K=await de(Da.wrap({type:"blob",object:je})),_e&&K===_e.oid&&(!he||ce.mode===_e.mode)&&te(ce,_e,he,Be)&&ne.insert({filepath:b._fullpath,stats:ce,oid:K}))}else K=_e.oid}),b._oid=K}return b._oid}async _getGitConfig(b,k){return this.config?this.config:(this.config=await ht.get({fs:b,gitdir:k}),this.config)}},l(Xa,"Fv"),Xa);e(LS,"GitWalkerFs");var rL=LS;function to(){let B=Object.create(null);return Object.defineProperty(B,Ee,{value:e(function({fs:b,dir:k,gitdir:F,cache:L}){return new rL({fs:b,dir:k,gitdir:F,cache:L})},"value")}),Object.freeze(B),B}l(to,"Vs"),e(to,"WORKDIR");function NS(B,b){let k=b-B;return Array.from({length:k},(F,L)=>B+L)}l(NS,"VY"),e(NS,"arrayRange");var DS=typeof Array.prototype.flat>"u"?B=>B.reduce((b,k)=>b.concat(k),[]):B=>B.flat(),US=(es=class{constructor(){this.value=null}consider(b){b!=null&&(this.value===null?this.value=b:b<this.value&&(this.value=b))}reset(){this.value=null}},l(es,"xv"),es);e(US,"RunningMinimum");var nL=US;function*MS(B){let b=new nL,k,F=[],L=B.length;for(let $=0;$<L;$++)F[$]=B[$].next().value,F[$]!==void 0&&b.consider(F[$]);if(b.value!==null)for(;;){let $=[];k=b.value,b.reset();for(let K=0;K<L;K++)F[K]!==void 0&&F[K]===k?($[K]=F[K],F[K]=B[K].next().value):$[K]=null,F[K]!==void 0&&b.consider(F[K]);if(yield $,b.value===null)return}}l(MS,"GY"),e(MS,"unionOfIterators");async function Vn({fs:B,cache:b,dir:k,gitdir:F,trees:L,map:$=e(async(_e,ce)=>ce,"map"),reduce:K=e(async(_e,ce)=>{let he=DS(ce);return _e!==void 0&&he.unshift(_e),he},"reduce"),iterate:ne=e((_e,ce)=>Promise.all([...ce].map(_e)),"iterate")}){let _e=L.map(Me=>Me[Ee]({fs:B,dir:k,gitdir:F,cache:b})),ce=new Array(_e.length).fill("."),he=NS(0,_e.length),Be=e(async Me=>{he.map(Ye=>{let rt=Me[Ye];Me[Ye]=rt&&new _e[Ye].ConstructEntry(rt)});let ze=(await Promise.all(he.map(Ye=>{let rt=Me[Ye];return rt?_e[Ye].readdir(rt):[]}))).map(Ye=>(Ye===null?[]:Ye)[Symbol.iterator]());return{entries:Me,children:MS(ze)}},"unionWalkerFromReaddir"),je=e(async Me=>{let{entries:ze,children:Ye}=await Be(Me),rt=ze.find(it=>it&&it._fullpath)._fullpath,ot=await $(rt,ze);if(ot!==null){let it=await ne(je,Ye);return it=it.filter(ft=>ft!==void 0),K(ot,it)}},"walk");return je(ce)}l(Vn,"oo"),e(Vn,"_walk");async function Wf(B,b){let k=await B.readdir(b);k==null?await B.rm(b):k.length?await Promise.all(k.map(F=>{let L=a.join(b,F);return B.lstat(L).then($=>{if($)return $.isDirectory()?Wf(B,L):B.rm(L)})})).then(()=>B.rmdir(b)):await B.rmdir(b)}l(Wf,"uv"),e(Wf,"rmRecursive");function $S(B){return WS(B)&&yp(B.then)&&yp(B.catch)}l($S,"YY"),e($S,"isPromiseLike");function WS(B){return B&&typeof B=="object"}l(WS,"KY"),e(WS,"isObject");function yp(B){return typeof B=="function"}l(yp,"WP"),e(yp,"isFunction");function mp(B){return $S(e(b=>{try{return b.readFile().catch(k=>k)}catch(k){return k}},"test")(B))}l(mp,"qP"),e(mp,"isPromiseFs");var zS=["readFile","writeFile","mkdir","rmdir","unlink","stat","lstat","readdir","readlink","symlink"];function wp(B,b){if(mp(b))for(let k of zS)B[`_${k}`]=b[k].bind(b);else for(let k of zS)B[`_${k}`]=u(b[k].bind(b));mp(b)?b.rm?B._rm=b.rm.bind(b):b.rmdir.length>1?B._rm=b.rmdir.bind(b):B._rm=Wf.bind(null,B):b.rm?B._rm=u(b.rm.bind(b)):b.rmdir.length>2?B._rm=u(b.rmdir.bind(b)):B._rm=Wf.bind(null,B)}l(wp,"VP"),e(wp,"bindFs");var HS=(ts=class{constructor(b){if(typeof b._original_unwrapped_fs<"u")return b;let k=Object.getOwnPropertyDescriptor(b,"promises");k&&k.enumerable?wp(this,b.promises):wp(this,b),this._original_unwrapped_fs=b}async exists(b,k={}){try{return await this._stat(b),!0}catch(F){if(F.code==="ENOENT"||F.code==="ENOTDIR"||(F.code||"").includes("ENS"))return!1;throw console.log('Unhandled error in "FileSystem.exists()" function',F),F}}async read(b,k={}){try{let F=await this._readFile(b,k);if(k.autocrlf==="true")try{F=new TextDecoder("utf8",{fatal:!0}).decode(F),F=F.replace(/\r\n/g,`
|
|
79
|
+
`),F=new TextEncoder().encode(F)}catch{}return typeof F!="string"&&(F=Buffer.from(F)),F}catch{return null}}async write(b,k,F={}){try{await this._writeFile(b,k,F);return}catch{await this.mkdir(ve(b)),await this._writeFile(b,k,F)}}async mkdir(b,k=!1){try{await this._mkdir(b);return}catch(F){if(F===null||F.code==="EEXIST")return;if(k)throw F;if(F.code==="ENOENT"){let L=ve(b);if(L==="."||L==="/"||L===b)throw F;await this.mkdir(L),await this.mkdir(b,!0)}}}async rm(b){try{await this._unlink(b)}catch(k){if(k.code!=="ENOENT")throw k}}async rmdir(b,k){try{k&&k.recursive?await this._rm(b,k):await this._rmdir(b)}catch(F){if(F.code!=="ENOENT")throw F}}async readdir(b){try{let k=await this._readdir(b);return k.sort(U),k}catch(k){return k.code==="ENOTDIR"?null:[]}}async readdirDeep(b){let k=await this._readdir(b);return(await Promise.all(k.map(async F=>{let L=b+"/"+F;return(await this._stat(L)).isDirectory()?this.readdirDeep(L):L}))).reduce((F,L)=>F.concat(L),[])}async lstat(b){try{return await this._lstat(b)}catch(k){if(k.code==="ENOENT"||(k.code||"").includes("ENS"))return null;throw k}}async readlink(b,k={encoding:"buffer"}){try{let F=await this._readlink(b,k);return Buffer.isBuffer(F)?F:Buffer.from(F)}catch(F){if(F.code==="ENOENT"||(F.code||"").includes("ENS"))return null;throw F}}async writelink(b,k){return this._symlink(k.toString("utf8"),b)}},l(ts,"Ov"),ts);e(HS,"FileSystem");var mt=HS;function Ue(B,b){if(b===void 0)throw new nn(B)}l(Ue,"ae"),e(Ue,"assertParameter");async function fl(B,b){return!B&&!b?!1:B&&!b||!B&&b?!0:!(await B.type()==="tree"&&await b.type()==="tree"||await B.type()===await b.type()&&await B.mode()===await b.mode()&&await B.oid()===await b.oid())}l(fl,"$h"),e(fl,"modified");async function bp({fs:B,dir:b,gitdir:k=a.join(b,".git"),commit:F="HEAD",cache:L={}}){try{Ue("fs",B),Ue("dir",b),Ue("gitdir",k);let $=new mt(B),K=[Ur({ref:F}),to(),Oe()],ne=[];await Q.acquire({fs:$,gitdir:k,cache:L},async function(ce){ne=ce.unmergedPaths});let _e=await Vn({fs:$,cache:L,dir:b,gitdir:k,trees:K,map:e(async function(ce,[he,Be,je]){let Me=!await fl(Be,je),ze=ne.includes(ce),Ye=!await fl(je,he);if(Me||ze)return he?{path:ce,mode:await he.mode(),oid:await he.oid(),type:await he.type(),content:await he.content()}:void 0;if(Ye)return!1;throw new pp(ce)},"map")});await Q.acquire({fs:$,gitdir:k,cache:L},async function(ce){for(let he of _e)if(he!==!1){if(!he){await $.rmdir(`${b}/${he.path}`,{recursive:!0}),ce.delete({filepath:he.path});continue}if(he.type==="blob"){let Be=new TextDecoder().decode(he.content);await $.write(`${b}/${he.path}`,Be,{mode:he.mode}),ce.insert({filepath:he.path,oid:he.oid,stage:0})}}})}catch($){throw $.caller="git.abortMerge",$}}l(bp,"dI"),e(bp,"abortMerge");var qS=(rs=class{static async isIgnored({fs:b,dir:k,gitdir:F=a.join(k,".git"),filepath:L}){if(fe(L)===".git")return!0;if(L===".")return!1;let $="",K=a.join(F,"info","exclude");await b.exists(K)&&($=await b.read(K,"utf8"));let ne=[{gitignore:a.join(k,".gitignore"),filepath:L}],_e=L.split("/").filter(Boolean);for(let he=1;he<_e.length;he++){let Be=_e.slice(0,he).join("/"),je=_e.slice(he).join("/");ne.push({gitignore:a.join(k,Be,".gitignore"),filepath:je})}let ce=!1;for(let he of ne){let Be;try{Be=await b.read(he.gitignore,"utf8")}catch(ze){if(ze.code==="NOENT")continue}let je=g().add($);je.add(Be);let Me=ve(he.filepath);if(Me!=="."&&je.ignores(Me))return!0;ce?ce=!je.test(he.filepath).unignored:ce=je.test(he.filepath).ignored}return ce}},l(rs,"Pv"),rs);e(qS,"GitIgnoreManager");var $a=qS;async function GS({fs:B,gitdir:b,object:k,format:F,oid:L}){if(F!=="deflated")throw new O("GitObjectStoreLoose expects objects to write to be in deflated format");let $=`objects/${L.slice(0,2)}/${L.slice(2)}`,K=`${b}/${$}`;await B.exists(K)||await B.write(K,k)}l(GS,"XY"),e(GS,"writeObjectLoose");var vp=null;async function _p(B){return vp===null&&(vp=KS()),vp?VS(B):r.deflate(B)}l(_p,"pI"),e(_p,"deflate");async function VS(B){let b=new CompressionStream("deflate"),k=new Blob([B]).stream().pipeThrough(b);return new Uint8Array(await new Response(k).arrayBuffer())}l(VS,"JY"),e(VS,"browserDeflate");function KS(){try{return new CompressionStream("deflate").writable.close(),new Blob([]).stream().cancel(),!0}catch{return!1}}l(KS,"ZY"),e(KS,"testCompressionStream");async function Tr({fs:B,gitdir:b,type:k,object:F,format:L="content",oid:$=void 0,dryRun:K=!1}){return L!=="deflated"&&(L!=="wrapped"&&(F=Da.wrap({type:k,object:F})),$=await de(F),F=Buffer.from(await _p(F))),K||await GS({fs:B,gitdir:b,object:F,format:"deflated",oid:$}),$}l(Tr,"vr"),e(Tr,"_writeObject");function Ep(B){let b;for(;~(b=B.indexOf(92));)B[b]=47;return B}l(Ep,"yI"),e(Ep,"posixifyPathBuffer");async function Sp({fs:B,dir:b,gitdir:k=a.join(b,".git"),filepath:F,cache:L={},force:$=!1,parallel:K=!0}){try{Ue("fs",B),Ue("dir",b),Ue("gitdir",k),Ue("filepath",F);let ne=new mt(B);await Q.acquire({fs:ne,gitdir:k,cache:L},async _e=>{let ce=await(await ht.get({fs:ne,gitdir:k})).get("core.autocrlf");return zf({dir:b,gitdir:k,fs:ne,filepath:F,index:_e,force:$,parallel:K,autocrlf:ce})})}catch(ne){throw ne.caller="git.add",ne}}l(Sp,"mI"),e(Sp,"add");async function zf({dir:B,gitdir:b,fs:k,filepath:F,index:L,force:$,parallel:K,autocrlf:ne}){F=Array.isArray(F)?F:[F];let _e=F.map(async Be=>{if(!$&&await $a.isIgnored({fs:k,dir:B,gitdir:b,filepath:Be}))return;let je=await k.lstat(a.join(B,Be));if(!je)throw new ge(Be);if(je.isDirectory()){let Me=await k.readdir(a.join(B,Be));if(K){let ze=Me.map(Ye=>zf({dir:B,gitdir:b,fs:k,filepath:[a.join(Be,Ye)],index:L,force:$,parallel:K,autocrlf:ne}));await Promise.all(ze)}else for(let ze of Me)await zf({dir:B,gitdir:b,fs:k,filepath:[a.join(Be,ze)],index:L,force:$,parallel:K,autocrlf:ne})}else{let Me=je.isSymbolicLink()?await k.readlink(a.join(B,Be)).then(Ep):await k.read(a.join(B,Be),{autocrlf:ne});if(Me===null)throw new ge(Be);let ze=await Tr({fs:k,gitdir:b,type:"blob",object:Me});L.insert({filepath:Be,stats:je,oid:ze})}}),ce=await Promise.allSettled(_e),he=ce.filter(Be=>Be.status==="rejected").map(Be=>Be.reason);if(he.length>1)throw new up(he);if(he.length===1)throw he[0];return ce.filter(Be=>Be.status==="fulfilled"&&Be.value).map(Be=>Be.value)}l(zf,"cv"),e(zf,"addToIndex");async function Wa({fs:B,gitdir:b,path:k}){return(await ht.get({fs:B,gitdir:b})).get(k)}l(Wa,"Gf"),e(Wa,"_getConfig");function Ap(B,...b){for(let k of b)if(k)for(let F of Object.keys(k)){let L=k[F];L!==void 0&&(B[F]=L)}return B}l(Ap,"gI"),e(Ap,"assignDefined");async function Kn({fs:B,gitdir:b,author:k,commit:F}){let L=Math.floor(Date.now()/1e3),$={name:await Wa({fs:B,gitdir:b,path:"user.name"}),email:await Wa({fs:B,gitdir:b,path:"user.email"})||"",timestamp:L,timezoneOffset:new Date(L*1e3).getTimezoneOffset()},K=Ap({},$,F?F.author:void 0,k);if(K.name!==void 0)return K}l(Kn,"so"),e(Kn,"normalizeAuthorObject");async function ro({fs:B,gitdir:b,author:k,committer:F,commit:L}){let $=Math.floor(Date.now()/1e3),K={name:await Wa({fs:B,gitdir:b,path:"user.name"}),email:await Wa({fs:B,gitdir:b,path:"user.email"})||"",timestamp:$,timezoneOffset:new Date($*1e3).getTimezoneOffset()},ne=Ap({},K,L?L.committer:void 0,k,F);if(ne.name!==void 0)return ne}l(ro,"js"),e(ro,"normalizeCommitterObject");async function Rp({fs:B,cache:b,gitdir:k,oid:F}){let{type:L,object:$}=await $t({fs:B,cache:b,gitdir:k,oid:F});if(L==="tag")return F=fn.from($).parse().object,Rp({fs:B,cache:b,gitdir:k,oid:F});if(L!=="commit")throw new Ie(F,L,"commit");return{commit:on.from($),oid:F}}l(Rp,"wI"),e(Rp,"resolveCommit");async function no({fs:B,cache:b,gitdir:k,oid:F}){let{commit:L,oid:$}=await Rp({fs:B,cache:b,gitdir:k,oid:F});return{oid:$,commit:L.parse(),payload:L.withoutSignature()}}l(no,"Hs"),e(no,"_readCommit");async function ul({fs:B,cache:b,onSign:k,gitdir:F,message:L,author:$,committer:K,signingKey:ne,amend:_e=!1,dryRun:ce=!1,noUpdateBranch:he=!1,ref:Be,parent:je,tree:Me}){let ze=!1;Be||(Be=await et.resolve({fs:B,gitdir:F,ref:"HEAD",depth:2}));let Ye,rt;try{Ye=await et.resolve({fs:B,gitdir:F,ref:Be}),rt=await no({fs:B,gitdir:F,oid:Ye,cache:{}})}catch{ze=!0}if(_e&&ze)throw new gp(Be);let ot=_e?await Kn({fs:B,gitdir:F,author:$,commit:rt.commit}):await Kn({fs:B,gitdir:F,author:$});if(!ot)throw new Dr("author");let it=_e?await ro({fs:B,gitdir:F,author:ot,committer:K,commit:rt.commit}):await ro({fs:B,gitdir:F,author:ot,committer:K});if(!it)throw new Dr("committer");return Q.acquire({fs:B,gitdir:F,cache:b,allowUnmerged:!1},async function(ft){let gt=N(ft.entries).get(".");if(Me||(Me=await Op({fs:B,gitdir:F,inode:gt,dryRun:ce})),je?je=await Promise.all(je.map(st=>et.resolve({fs:B,gitdir:F,ref:st}))):_e?je=rt.commit.parent:je=Ye?[Ye]:[],!L)if(_e)L=rt.commit.message;else throw new nn("message");let yt=on.from({tree:Me,parent:je,author:ot,committer:it,message:L});ne&&(yt=await on.sign(yt,k,ne));let pt=await Tr({fs:B,gitdir:F,type:"commit",object:yt.toObject(),dryRun:ce});return!he&&!ce&&await et.writeRef({fs:B,gitdir:F,ref:Be,value:pt}),pt})}l(ul,"Od"),e(ul,"_commit");async function Op({fs:B,gitdir:b,inode:k,dryRun:F}){let L=k.children;for(let ne of L)ne.type==="tree"&&(ne.metadata.mode="040000",ne.metadata.oid=await Op({fs:B,gitdir:b,inode:ne,dryRun:F}));let $=L.map(ne=>({mode:ne.metadata.mode,path:ne.basename,oid:ne.metadata.oid,type:ne.type})),K=rn.from($);return await Tr({fs:B,gitdir:b,type:"tree",object:K.toObject(),dryRun:F})}l(Op,"vI"),e(Op,"constructTree");async function za({fs:B,cache:b,gitdir:k,oid:F,filepath:L}){if(L.startsWith("/"))throw new Ua("leading-slash");if(L.endsWith("/"))throw new Ua("trailing-slash");let $=F,K=await eo({fs:B,cache:b,gitdir:k,oid:F}),ne=K.tree;if(L==="")F=K.oid;else{let _e=L.split("/");F=await kp({fs:B,cache:b,gitdir:k,tree:ne,pathArray:_e,oid:$,filepath:L})}return F}l(za,"Yf"),e(za,"resolveFilepath");async function kp({fs:B,cache:b,gitdir:k,tree:F,pathArray:L,oid:$,filepath:K}){let ne=L.shift();for(let _e of F)if(_e.path===ne){if(L.length===0)return _e.oid;{let{type:ce,object:he}=await $t({fs:B,cache:b,gitdir:k,oid:_e.oid});if(ce!=="tree")throw new Ie($,ce,"tree",K);return F=rn.from(he),kp({fs:B,cache:b,gitdir:k,tree:F,pathArray:L,oid:$,filepath:K})}}throw new ge(`file or directory found at "${$}:${K}"`)}l(kp,"bI"),e(kp,"_resolveFilepath");async function io({fs:B,cache:b,gitdir:k,oid:F,filepath:L=void 0}){L!==void 0&&(F=await za({fs:B,cache:b,gitdir:k,oid:F,filepath:L}));let{tree:$,oid:K}=await eo({fs:B,cache:b,gitdir:k,oid:F});return{oid:K,tree:$.entries()}}l(io,"Gs"),e(io,"_readTree");async function Ha({fs:B,gitdir:b,tree:k}){let F=rn.from(k).toObject();return await Tr({fs:B,gitdir:b,type:"tree",object:F,format:"content"})}l(Ha,"Kf"),e(Ha,"_writeTree");async function JS({fs:B,cache:b,onSign:k,gitdir:F,ref:L,oid:$,note:K,force:ne,author:_e,committer:ce,signingKey:he}){let Be;try{Be=await et.resolve({gitdir:F,fs:B,ref:L})}catch(Ye){if(!(Ye instanceof ge))throw Ye}let je=(await io({fs:B,cache:b,gitdir:F,oid:Be||"4b825dc642cb6eb9a060e54bf8d69288fbee4904"})).tree;if(ne)je=je.filter(Ye=>Ye.path!==$);else for(let Ye of je)if(Ye.path===$)throw new qn("note",$);typeof K=="string"&&(K=Buffer.from(K,"utf8"));let Me=await Tr({fs:B,gitdir:F,type:"blob",object:K,format:"content"});je.push({mode:"100644",path:$,oid:Me,type:"blob"});let ze=await Ha({fs:B,gitdir:F,tree:je});return await ul({fs:B,cache:b,onSign:k,gitdir:F,ref:L,tree:ze,parent:Be&&[Be],message:`Note added by 'isomorphic-git addNote'
|
|
80
|
+
`,author:_e,committer:ce,signingKey:he})}l(JS,"QY"),e(JS,"_addNote");async function Tp({fs:B,onSign:b,dir:k,gitdir:F=a.join(k,".git"),ref:L="refs/notes/commits",oid:$,note:K,force:ne,author:_e,committer:ce,signingKey:he,cache:Be={}}){try{Ue("fs",B),Ue("gitdir",F),Ue("oid",$),Ue("note",K),he&&Ue("onSign",b);let je=new mt(B),Me=await Kn({fs:je,gitdir:F,author:_e});if(!Me)throw new Dr("author");let ze=await ro({fs:je,gitdir:F,author:Me,committer:ce});if(!ze)throw new Dr("committer");return await JS({fs:new mt(je),cache:Be,onSign:b,gitdir:F,ref:L,oid:$,note:K,force:ne,author:Me,committer:ze,signingKey:he})}catch(je){throw je.caller="git.addNote",je}}l(Tp,"_I"),e(Tp,"addNote");async function Fp({fs:B,gitdir:b,remote:k,url:F,force:L}){if(!d(k,!0))throw new Gn(k,h.clean(k));let $=await ht.get({fs:B,gitdir:b});if(!L&&(await $.getSubsections("remote")).includes(k)&&F!==await $.get(`remote.${k}.url`))throw new qn("remote",k);await $.set(`remote.${k}.url`,F),await $.set(`remote.${k}.fetch`,`+refs/heads/*:refs/remotes/${k}/*`),await ht.save({fs:B,gitdir:b,config:$})}l(Fp,"EI"),e(Fp,"_addRemote");async function Bp({fs:B,dir:b,gitdir:k=a.join(b,".git"),remote:F,url:L,force:$=!1}){try{return Ue("fs",B),Ue("gitdir",k),Ue("remote",F),Ue("url",L),await Fp({fs:new mt(B),gitdir:k,remote:F,url:L,force:$})}catch(K){throw K.caller="git.addRemote",K}}l(Bp,"SI"),e(Bp,"addRemote");async function YS({fs:B,cache:b,onSign:k,gitdir:F,ref:L,tagger:$,message:K=L,gpgsig:ne,object:_e,signingKey:ce,force:he=!1}){if(L=L.startsWith("refs/tags/")?L:`refs/tags/${L}`,!he&&await et.exists({fs:B,gitdir:F,ref:L}))throw new qn("tag",L);let Be=await et.resolve({fs:B,gitdir:F,ref:_e||"HEAD"}),{type:je}=await $t({fs:B,cache:b,gitdir:F,oid:Be}),Me=fn.from({object:Be,type:je,tag:L.replace("refs/tags/",""),tagger:$,message:K,gpgsig:ne});ce&&(Me=await fn.sign(Me,k,ce));let ze=await Tr({fs:B,gitdir:F,type:"tag",object:Me.toObject()});await et.writeRef({fs:B,gitdir:F,ref:L,value:ze})}l(YS,"eK"),e(YS,"_annotatedTag");async function xp({fs:B,onSign:b,dir:k,gitdir:F=a.join(k,".git"),ref:L,tagger:$,message:K=L,gpgsig:ne,object:_e,signingKey:ce,force:he=!1,cache:Be={}}){try{Ue("fs",B),Ue("gitdir",F),Ue("ref",L),ce&&Ue("onSign",b);let je=new mt(B),Me=await Kn({fs:je,gitdir:F,author:$});if(!Me)throw new Dr("tagger");return await YS({fs:je,cache:Be,onSign:b,gitdir:F,ref:L,tagger:Me,message:K,gpgsig:ne,object:_e,signingKey:ce,force:he})}catch(je){throw je.caller="git.annotatedTag",je}}l(xp,"AI"),e(xp,"annotatedTag");async function ZS({fs:B,gitdir:b,ref:k,object:F,checkout:L=!1,force:$=!1}){if(!d(k,!0))throw new Gn(k,h.clean(k));let K=`refs/heads/${k}`;if(!$&&await et.exists({fs:B,gitdir:b,ref:K}))throw new qn("branch",k,!1);let ne;try{ne=await et.resolve({fs:B,gitdir:b,ref:F||"HEAD"})}catch{}ne&&await et.writeRef({fs:B,gitdir:b,ref:K,value:ne}),L&&await et.writeSymbolicRef({fs:B,gitdir:b,ref:"HEAD",value:K})}l(ZS,"tK"),e(ZS,"_branch");async function Ip({fs:B,dir:b,gitdir:k=a.join(b,".git"),ref:F,object:L,checkout:$=!1,force:K=!1}){try{return Ue("fs",B),Ue("gitdir",k),Ue("ref",F),await ZS({fs:new mt(B),gitdir:k,ref:F,object:L,checkout:$,force:K})}catch(ne){throw ne.caller="git.branch",ne}}l(Ip,"RI"),e(Ip,"branch");var QS=e((B,b)=>B==="."||b==null||b.length===0||b==="."?!0:b.length>=B.length?b.startsWith(B):B.startsWith(b),"worthWalking");async function Hf({fs:B,cache:b,onProgress:k,onPostCheckout:F,dir:L,gitdir:$,remote:K,ref:ne,filepaths:_e,noCheckout:ce,noUpdateHead:he,dryRun:Be,force:je,track:Me=!0,nonBlocking:ze=!1,batchSize:Ye=100}){let rt;if(F)try{rt=await et.resolve({fs:B,gitdir:$,ref:"HEAD"})}catch{rt="0000000000000000000000000000000000000000"}let ot;try{ot=await et.resolve({fs:B,gitdir:$,ref:ne})}catch(it){if(ne==="HEAD")throw it;let ft=`${K}/${ne}`;if(ot=await et.resolve({fs:B,gitdir:$,ref:ft}),Me){let gt=await ht.get({fs:B,gitdir:$});await gt.set(`branch.${ne}.remote`,K),await gt.set(`branch.${ne}.merge`,`refs/heads/${ne}`),await ht.save({fs:B,gitdir:$,config:gt})}await et.writeRef({fs:B,gitdir:$,ref:`refs/heads/${ne}`,value:ot})}if(!ce){let it;try{it=await XS({fs:B,cache:b,onProgress:k,dir:L,gitdir:$,ref:ne,force:je,filepaths:_e})}catch(st){throw st instanceof ge&&st.data.what===ot?new op(ne,ot):st}let ft=it.filter(([st])=>st==="conflict").map(([st,ut])=>ut);if(ft.length>0)throw new ip(ft);let gt=it.filter(([st])=>st==="error").map(([st,ut])=>ut);if(gt.length>0)throw new O(gt.join(", "));if(Be){F&&await F({previousHead:rt,newHead:ot,type:_e!=null&&_e.length>0?"file":"branch"});return}let yt=0,pt=it.length;if(await Q.acquire({fs:B,gitdir:$,cache:b},async function(st){await Promise.all(it.filter(([ut])=>ut==="delete"||ut==="delete-index").map(async function([ut,ct]){let Et=`${L}/${ct}`;ut==="delete"&&await B.rm(Et),st.delete({filepath:ct}),k&&await k({phase:"Updating workdir",loaded:++yt,total:pt})}))}),await Q.acquire({fs:B,gitdir:$,cache:b},async function(st){for(let[ut,ct]of it)if(ut==="rmdir"||ut==="rmdir-index"){let Et=`${L}/${ct}`;try{ut==="rmdir"&&await B.rmdir(Et),st.delete({filepath:ct}),k&&await k({phase:"Updating workdir",loaded:++yt,total:pt})}catch(Ct){if(Ct.code==="ENOTEMPTY")console.log(`Did not delete ${ct} because directory is not empty`);else throw Ct}}}),await Promise.all(it.filter(([st])=>st==="mkdir"||st==="mkdir-index").map(async function([st,ut]){let ct=`${L}/${ut}`;await B.mkdir(ct),k&&await k({phase:"Updating workdir",loaded:++yt,total:pt})})),ze){let st=it.filter(([ct])=>ct==="create"||ct==="create-index"||ct==="update"||ct==="mkdir-index"),ut=await Pp("Update Working Dir",st.map(([ct,Et,Ct,sr,xt])=>()=>tA({fs:B,cache:b,gitdir:$,dir:L},[ct,Et,Ct,sr,xt])),k,Ye);await Q.acquire({fs:B,gitdir:$,cache:b,allowUnmerged:!0},async function(ct){await Pp("Update Index",ut.map(([Et,Ct,sr])=>()=>eA({index:ct,fullpath:Et,oid:Ct,stats:sr})),k,Ye)})}else await Q.acquire({fs:B,gitdir:$,cache:b,allowUnmerged:!0},async function(st){await Promise.all(it.filter(([ut])=>ut==="create"||ut==="create-index"||ut==="update"||ut==="mkdir-index").map(async function([ut,ct,Et,Ct,sr]){let xt=`${L}/${ct}`;try{if(ut!=="create-index"&&ut!=="mkdir-index"){let{object:mr}=await $t({fs:B,cache:b,gitdir:$,oid:Et});if(sr&&await B.rm(xt),Ct===33188)await B.write(xt,mr);else if(Ct===33261)await B.write(xt,mr,{mode:511});else if(Ct===40960)await B.writelink(xt,mr);else throw new O(`Invalid mode 0o${Ct.toString(8)} detected in blob ${Et}`)}let lr=await B.lstat(xt);Ct===33261&&(lr.mode=493),ut==="mkdir-index"&&(lr.mode=57344),st.insert({filepath:ct,stats:lr,oid:Et}),k&&await k({phase:"Updating workdir",loaded:++yt,total:pt})}catch(lr){console.log(lr)}}))});F&&await F({previousHead:rt,newHead:ot,type:_e!=null&&_e.length>0?"file":"branch"})}if(!he){let it=await et.expand({fs:B,gitdir:$,ref:ne});it.startsWith("refs/heads")?await et.writeSymbolicRef({fs:B,gitdir:$,ref:"HEAD",value:it}):await et.writeRef({fs:B,gitdir:$,ref:"HEAD",value:ot})}}l(Hf,"yv"),e(Hf,"_checkout");async function XS({fs:B,cache:b,onProgress:k,dir:F,gitdir:L,ref:$,force:K,filepaths:ne}){let _e=0;return Vn({fs:B,cache:b,dir:F,gitdir:L,trees:[Ur({ref:$}),to(),Oe()],map:e(async function(ce,[he,Be,je]){if(ce!=="."){if(ne&&!ne.some(Me=>QS(ce,Me)))return null;switch(k&&await k({phase:"Analyzing workdir",loaded:++_e}),[!!je,!!he,!!Be].map(Number).join("")){case"000":return;case"001":return K&&ne&&ne.includes(ce)?["delete",ce]:void 0;case"010":switch(await he.type()){case"tree":return["mkdir",ce];case"blob":return["create",ce,await he.oid(),await he.mode()];case"commit":return["mkdir-index",ce,await he.oid(),await he.mode()];default:return["error",`new entry Unhandled type ${await he.type()}`]}case"011":switch(`${await he.type()}-${await Be.type()}`){case"tree-tree":return;case"tree-blob":case"blob-tree":return["conflict",ce];case"blob-blob":return await he.oid()!==await Be.oid()?K?["update",ce,await he.oid(),await he.mode(),await he.mode()!==await Be.mode()]:["conflict",ce]:await he.mode()!==await Be.mode()?K?["update",ce,await he.oid(),await he.mode(),!0]:["conflict",ce]:["create-index",ce,await he.oid(),await he.mode()];case"commit-tree":return;case"commit-blob":return["conflict",ce];default:return["error",`new entry Unhandled type ${he.type}`]}case"100":return["delete-index",ce];case"101":switch(await je.type()){case"tree":return["rmdir-index",ce];case"blob":return await je.oid()!==await Be.oid()?K?["delete",ce]:["conflict",ce]:["delete",ce];case"commit":return["rmdir-index",ce];default:return["error",`delete entry Unhandled type ${await je.type()}`]}case"110":case"111":switch(`${await je.type()}-${await he.type()}`){case"tree-tree":return;case"blob-blob":{if(await je.oid()===await he.oid()&&await je.mode()===await he.mode()&&!K)return;if(Be){if(await Be.oid()!==await je.oid()&&await Be.oid()!==await he.oid())return K?["update",ce,await he.oid(),await he.mode(),await he.mode()!==await Be.mode()]:["conflict",ce]}else if(K)return["update",ce,await he.oid(),await he.mode(),await he.mode()!==await je.mode()];return await he.mode()!==await je.mode()?["update",ce,await he.oid(),await he.mode(),!0]:await he.oid()!==await je.oid()?["update",ce,await he.oid(),await he.mode(),!1]:void 0}case"tree-blob":return["update-dir-to-blob",ce,await he.oid()];case"blob-tree":return["update-blob-to-tree",ce];case"commit-commit":return["mkdir-index",ce,await he.oid(),await he.mode()];default:return["error",`update entry Unhandled type ${await je.type()}-${await he.type()}`]}}}},"map"),reduce:e(async function(ce,he){return he=DS(he),ce?ce&&ce[0]==="rmdir"?(he.push(ce),he):(he.unshift(ce),he):he},"reduce")})}l(XS,"rK"),e(XS,"analyze");async function eA({index:B,fullpath:b,stats:k,oid:F}){try{B.insert({filepath:b,stats:k,oid:F})}catch(L){console.warn(`Error inserting ${b} into index:`,L)}}l(eA,"nK"),e(eA,"updateIndex");async function tA({fs:B,cache:b,gitdir:k,dir:F},[L,$,K,ne,_e]){let ce=`${F}/${$}`;if(L!=="create-index"&&L!=="mkdir-index"){let{object:Be}=await $t({fs:B,cache:b,gitdir:k,oid:K});if(_e&&await B.rm(ce),ne===33188)await B.write(ce,Be);else if(ne===33261)await B.write(ce,Be,{mode:511});else if(ne===40960)await B.writelink(ce,Be);else throw new O(`Invalid mode 0o${ne.toString(8)} detected in blob ${K}`)}let he=await B.lstat(ce);return ne===33261&&(he.mode=493),L==="mkdir-index"&&(he.mode=57344),[$,K,he]}l(tA,"iK"),e(tA,"updateWorkingDir");async function Pp(B,b,k,F){let L=[];try{for(let $=0;$<b.length;$+=F){let K=b.slice($,$+F).map(ne=>ne());(await Promise.allSettled(K)).forEach(ne=>{ne.status==="fulfilled"&&L.push(ne.value)}),k&&await k({phase:"Updating workdir",loaded:$+K.length,total:b.length})}return L}catch($){console.error(`Error during ${B}: ${$}`)}return L}l(Pp,"GP"),e(Pp,"batchAllSettled");async function qf({fs:B,onProgress:b,onPostCheckout:k,dir:F,gitdir:L=a.join(F,".git"),remote:$="origin",ref:K,filepaths:ne,noCheckout:_e=!1,noUpdateHead:ce=K===void 0,dryRun:he=!1,force:Be=!1,track:je=!0,cache:Me={},nonBlocking:ze=!1,batchSize:Ye=100}){try{Ue("fs",B),Ue("dir",F),Ue("gitdir",L);let rt=K||"HEAD";return await Hf({fs:new mt(B),cache:Me,onProgress:b,onPostCheckout:k,dir:F,gitdir:L,remote:$,ref:rt,filepaths:ne,noCheckout:_e,noUpdateHead:ce,dryRun:he,force:Be,track:je,nonBlocking:ze,batchSize:Ye})}catch(rt){throw rt.caller="git.checkout",rt}}l(qf,"mv"),e(qf,"checkout");var iL=new RegExp("^refs/(heads/|tags/|remotes/)?(.*)");function Ri(B){let b=iL.exec(B);return b?b[1]==="remotes/"&&B.endsWith("/HEAD")?b[2].slice(0,-5):b[2]:B}l(Ri,"na"),e(Ri,"abbreviateRef");async function Jn({fs:B,gitdir:b,fullname:k=!1,test:F=!1}){let L=await et.resolve({fs:B,gitdir:b,ref:"HEAD",depth:2});if(F)try{await et.resolve({fs:B,gitdir:b,ref:L})}catch{return}if(L.startsWith("refs/"))return k?L:Ri(L)}l(Jn,"lo"),e(Jn,"_currentBranch");function rA(B){return B=B.replace(/^git@([^:]+):/,"https://$1/"),B=B.replace(/^ssh:\/\//,"https://"),B}l(rA,"aK"),e(rA,"translateSSHtoHTTP");function jp({username:B="",password:b=""}){return`Basic ${Buffer.from(`${B}:${b}`).toString("base64")}`}l(jp,"FI"),e(jp,"calculateBasicAuthHeader");async function qa(B,b){let k=Xd(B);for(;;){let{value:F,done:L}=await k.next();if(F&&await b(F),L)break}k.return&&k.return()}l(qa,"Xf"),e(qa,"forAwait");async function cl(B){let b=0,k=[];await qa(B,$=>{k.push($),b+=$.byteLength});let F=new Uint8Array(b),L=0;for(let $ of k)F.set($,L),L+=$.byteLength;return F}l(cl,"Mh"),e(cl,"collect");function Cp(B){let b=B.match(/^https?:\/\/([^/]+)@/);if(b==null)return{url:B,auth:{}};b=b[1];let[k,F]=b.split(":");return B=B.replace(`${b}@`,""),{url:B,auth:{username:k,password:F}}}l(Cp,"YP"),e(Cp,"extractAuthFromUrl");function Gf(B,b){let k=b.toString(16);return"0".repeat(B-k.length)+k}l(Gf,"hv"),e(Gf,"padHex");var nA=(ns=class{static flush(){return Buffer.from("0000","utf8")}static delim(){return Buffer.from("0001","utf8")}static encode(b){typeof b=="string"&&(b=Buffer.from(b));let k=b.length+4,F=Gf(4,k);return Buffer.concat([Buffer.from(F,"utf8"),b])}static streamReader(b){let k=new H2(b);return e(async function(){try{let F=await k.read(4);return F==null?!0:(F=parseInt(F.toString("utf8"),16),F===0||F===1?null:await k.read(F-4)??!0)}catch(F){return b.error=F,!0}},"read")}},l(ns,"Iv"),ns);e(nA,"GitPktLine");var ar=nA;async function Lp(B){let b={},k;for(;k=await B(),k!==!0;){if(k===null)continue;k=k.toString("utf8").replace(/\n$/,"");let F=k.indexOf("=");if(F>-1){let L=k.slice(0,F),$=k.slice(F+1);b[L]=$}else b[k]=!0}return{protocolVersion:2,capabilities2:b}}l(Lp,"KP"),e(Lp,"parseCapabilitiesV2");async function Np(B,{service:b}){let k=new Set,F=new Map,L=new Map,$=ar.streamReader(B),K=await $();for(;K===null;)K=await $();if(K===!0)throw new ap;if(K.includes("version 2"))return Lp($);if(K.toString("utf8").replace(/\n$/,"")!==`# service=${b}`)throw new sl(`# service=${b}\\n`,K.toString("utf8"));let ne=await $();for(;ne===null;)ne=await $();if(ne===!0)return{capabilities:k,refs:F,symrefs:L};if(ne=ne.toString("utf8"),ne.includes("version 2"))return Lp($);let[_e,ce]=Vf(ne,"\0","\\x00");if(ce.split(" ").map(he=>k.add(he)),_e!=="0000000000000000000000000000000000000000 capabilities^{}"){let[he,Be]=Vf(_e," "," ");for(F.set(Be,he);;){let je=await $();if(je===!0)break;if(je!==null){let[Me,ze]=Vf(je.toString("utf8")," "," ");F.set(ze,Me)}}}for(let he of k)if(he.startsWith("symref=")){let Be=he.match(/symref=([^:]+):(.*)/);Be.length===3&&L.set(Be[1],Be[2])}return{protocolVersion:1,capabilities:k,refs:F,symrefs:L}}l(Np,"XP"),e(Np,"parseRefsAdResponse");function Vf(B,b,k){let F=B.trim().split(b);if(F.length!==2)throw new sl(`Two strings separated by '${k}'`,B.toString("utf8"));return F}l(Vf,"X0"),e(Vf,"splitAndAssert");var iA=e((B,b)=>B.endsWith("?")?`${B}${b}`:`${B}/${b.replace(/^https?:\/\//,"")}`,"corsProxify"),oA=e((B,b)=>{(b.username||b.password)&&(B.Authorization=jp(b)),b.headers&&Object.assign(B,b.headers)},"updateHeaders"),Dp=e(async B=>{try{let b=Buffer.from(await cl(B.body)),k=b.toString("utf8");return{preview:k.length<256?k:k.slice(0,256)+"...",response:k,data:b}}catch{return{}}},"stringifyBody"),aA=(is=class{static async capabilities(){return["discover","connect"]}static async discover({http:b,onProgress:k,onAuth:F,onAuthSuccess:L,onAuthFailure:$,corsProxy:K,service:ne,url:_e,headers:ce,protocolVersion:he}){let{url:Be,auth:je}=Cp(_e),Me=K?iA(K,Be):Be;(je.username||je.password)&&(ce.Authorization=jp(je)),he===2&&(ce["Git-Protocol"]="version=2");let ze,Ye,rt=!1;do if(ze=await b.request({onProgress:k,method:"GET",url:`${Me}/info/refs?service=${ne}`,headers:ce}),Ye=!1,ze.statusCode===401||ze.statusCode===203){let ot=rt?$:F;if(ot){if(je=await ot(Be,{...je,headers:{...ce}}),je&&je.cancel)throw new Uf;je&&(oA(ce,je),rt=!0,Ye=!0)}}else ze.statusCode===200&&rt&&L&&await L(Be,je);while(Ye);if(ze.statusCode!==200){let{response:ot}=await Dp(ze);throw new Cf(ze.statusCode,ze.statusMessage,ot)}if(ze.headers["content-type"]===`application/x-${ne}-advertisement`){let ot=await Np(ze.body,{service:ne});return ot.auth=je,ot}else{let{preview:ot,response:it,data:ft}=await Dp(ze);try{let gt=await Np([ft],{service:ne});return gt.auth=je,gt}catch{throw new cp(ot,it)}}}static async connect({http:b,onProgress:k,corsProxy:F,service:L,url:$,auth:K,body:ne,headers:_e}){let ce=Cp($);ce&&($=ce.url),F&&($=iA(F,$)),_e["content-type"]=`application/x-${L}-request`,_e.accept=`application/x-${L}-result`,oA(_e,K);let he=await b.request({onProgress:k,method:"POST",url:`${$}/${L}`,body:ne,headers:_e});if(he.statusCode!==200){let{response:Be}=Dp(he);throw new Cf(he.statusCode,he.statusMessage,Be)}return he}},l(is,"kv"),is);e(aA,"GitRemoteHTTP");var Kf=aA,sA=(os=class{static getRemoteHelperFor({url:b}){let k=new Map;k.set("http",Kf),k.set("https",Kf);let F=lA({url:b});if(!F)throw new dp(b);if(k.has(F.transport))return k.get(F.transport);throw new hp(b,F.transport,F.transport==="ssh"?rA(b):void 0)}},l(os,"Bv"),os);e(sA,"GitRemoteManager");var Jf=sA;function lA({url:B}){if(B.startsWith("git@"))return{transport:"ssh",address:B};let b=B.match(/(\w+)(:\/\/|::)(.*)/);if(b!==null){if(b[2]==="://")return{transport:b[1],address:b[0]};if(b[2]==="::")return{transport:b[1],address:b[3]}}}l(lA,"sK"),e(lA,"parseRemoteUrl");var oo=null,fA=(as=class{static async read({fs:b,gitdir:k}){oo===null&&(oo=new f);let F=a.join(k,"shallow"),L=new Set;return await oo.acquire(F,async function(){let $=await b.read(F,{encoding:"utf8"});if($===null||$.trim()==="")return L;$.trim().split(`
|
|
81
|
+
`).map(K=>L.add(K))}),L}static async write({fs:b,gitdir:k,oids:F}){oo===null&&(oo=new f);let L=a.join(k,"shallow");if(F.size>0){let $=[...F].join(`
|
|
82
|
+
`)+`
|
|
83
|
+
`;await oo.acquire(L,async function(){await b.write(L,$,{encoding:"utf8"})})}else await oo.acquire(L,async function(){await b.rm(L)})}},l(as,"Cv"),as);e(fA,"GitShallowManager");var hl=fA;async function uA({fs:B,gitdir:b,oid:k}){let F=`objects/${k.slice(0,2)}/${k.slice(2)}`;return B.exists(`${b}/${F}`)}l(uA,"lK"),e(uA,"hasObjectLoose");async function cA({fs:B,cache:b,gitdir:k,oid:F,getExternalRefDelta:L}){let $=await B.readdir(a.join(k,"objects/pack"));$=$.filter(K=>K.endsWith(".idx"));for(let K of $){let ne=`${k}/objects/pack/${K}`,_e=await jf({fs:B,cache:b,filename:ne,getExternalRefDelta:L});if(_e.error)throw new O(_e.error);if(_e.offsets.has(F))return!0}return!1}l(cA,"fK"),e(cA,"hasObjectPacked");async function Up({fs:B,cache:b,gitdir:k,oid:F,format:L="content"}){let $=e(ne=>$t({fs:B,cache:b,gitdir:k,oid:ne}),"getExternalRefDelta"),K=await uA({fs:B,gitdir:k,oid:F});return K||(K=await cA({fs:B,cache:b,gitdir:k,oid:F,getExternalRefDelta:$})),K}l(Up,"QP"),e(Up,"hasObject");function hA(B){return B.slice(0,12).toString("hex")==="5041434b0000000200000000"}l(hA,"uK"),e(hA,"emptyPackfile");function Mp(B,b){let k=B.map(F=>F.split("=",1)[0]);return b.filter(F=>{let L=F.split("=",1)[0];return k.includes(L)})}l(Mp,"xI"),e(Mp,"filterCapabilities");var Yf={name:"isomorphic-git",version:"1.34.0",agent:"git/isomorphic-git@1.34.0"},dA=(ss=class{constructor(){this._queue=[]}write(b){if(this._ended)throw Error("You cannot write to a FIFO that has already been ended!");if(this._waiting){let k=this._waiting;this._waiting=null,k({value:b})}else this._queue.push(b)}end(){if(this._ended=!0,this._waiting){let b=this._waiting;this._waiting=null,b({done:!0})}}destroy(b){this.error=b,this.end()}async next(){if(this._queue.length>0)return{value:this._queue.shift()};if(this._ended)return{done:!0};if(this._waiting)throw Error("You cannot call read until the previous call to read has returned!");return new Promise(b=>{this._waiting=b})}},l(ss,"Lv"),ss);e(dA,"FIFO");var Zf=dA;function pA(B){let b=B.indexOf("\r"),k=B.indexOf(`
|
|
84
|
+
`);return b===-1&&k===-1?-1:b===-1?k+1:k===-1?b+1:k===b+1?k+1:Math.min(b,k)+1}l(pA,"cK"),e(pA,"findSplit");function $p(B){let b=new Zf,k="";return(async()=>(await qa(B,F=>{for(F=F.toString("utf8"),k+=F;;){let L=pA(k);if(L===-1)break;b.write(k.slice(0,L)),k=k.slice(L)}}),k.length>0&&b.write(k),b.end()))(),b}l($p,"OI"),e($p,"splitLines");var gA=(ls=class{static demux(b){let k=ar.streamReader(b),F=new Zf,L=new Zf,$=new Zf,K=e(async function(){let ne=await k();if(ne===null)return K();if(ne===!0){F.end(),$.end(),b.error?L.destroy(b.error):L.end();return}switch(ne[0]){case 1:{L.write(ne.slice(1));break}case 2:{$.write(ne.slice(1));break}case 3:{let _e=ne.slice(1);$.write(_e),F.end(),$.end(),L.destroy(new Error(_e.toString("utf8")));return}default:F.write(ne)}K()},"nextBit");return K(),{packetlines:F,packfile:L,progress:$}}},l(ls,"Nv"),ls);e(gA,"GitSideBand");var yA=gA;async function mA(B){let{packetlines:b,packfile:k,progress:F}=yA.demux(B),L=[],$=[],K=[],ne=!1,_e=!1;return new Promise((ce,he)=>{qa(b,Be=>{let je=Be.toString("utf8").trim();if(je.startsWith("shallow")){let Me=je.slice(-41).trim();Me.length!==40&&he(new Ce(Me)),L.push(Me)}else if(je.startsWith("unshallow")){let Me=je.slice(-41).trim();Me.length!==40&&he(new Ce(Me)),$.push(Me)}else if(je.startsWith("ACK")){let[,Me,ze]=je.split(" ");K.push({oid:Me,status:ze}),ze||(_e=!0)}else je.startsWith("NAK")?(ne=!0,_e=!0):(_e=!0,ne=!0);_e&&(B.error?he(B.error):ce({shallows:L,unshallows:$,acks:K,nak:ne,packfile:k,progress:F}))}).finally(()=>{_e||(B.error?he(B.error):ce({shallows:L,unshallows:$,acks:K,nak:ne,packfile:k,progress:F}))})})}l(mA,"hK"),e(mA,"parseUploadPackResponse");function wA({capabilities:B=[],wants:b=[],haves:k=[],shallows:F=[],depth:L=null,since:$=null,exclude:K=[]}){let ne=[];b=[...new Set(b)];let _e=` ${B.join(" ")}`;for(let ce of b)ne.push(ar.encode(`want ${ce}${_e}
|
|
85
|
+
`)),_e="";for(let ce of F)ne.push(ar.encode(`shallow ${ce}
|
|
86
|
+
`));L!==null&&ne.push(ar.encode(`deepen ${L}
|
|
87
|
+
`)),$!==null&&ne.push(ar.encode(`deepen-since ${Math.floor($.valueOf()/1e3)}
|
|
88
|
+
`));for(let ce of K)ne.push(ar.encode(`deepen-not ${ce}
|
|
89
|
+
`));ne.push(ar.flush());for(let ce of k)ne.push(ar.encode(`have ${ce}
|
|
90
|
+
`));return ne.push(ar.encode(`done
|
|
91
|
+
`)),ne}l(wA,"dK"),e(wA,"writeUploadPackRequest");async function Qf({fs:B,cache:b,http:k,onProgress:F,onMessage:L,onAuth:$,onAuthSuccess:K,onAuthFailure:ne,gitdir:_e,ref:ce,remoteRef:he,remote:Be,url:je,corsProxy:Me,depth:ze=null,since:Ye=null,exclude:rt=[],relative:ot=!1,tags:it=!1,singleBranch:ft=!1,headers:gt={},prune:yt=!1,pruneTags:pt=!1}){let st=ce||await Jn({fs:B,gitdir:_e,test:!0}),ut=await ht.get({fs:B,gitdir:_e}),ct=Be||st&&await ut.get(`branch.${st}.remote`)||"origin",Et=je||await ut.get(`remote.${ct}.url`);if(typeof Et>"u")throw new nn("remote OR url");let Ct=he||st&&await ut.get(`branch.${st}.merge`)||ce||"HEAD";Me===void 0&&(Me=await ut.get("http.corsProxy"));let sr=Jf.getRemoteHelperFor({url:Et}),xt=await sr.discover({http:k,onAuth:$,onAuthSuccess:K,onAuthFailure:ne,corsProxy:Me,service:"git-upload-pack",url:Et,headers:gt,protocolVersion:1}),lr=xt.auth,mr=xt.refs;if(mr.size===0)return{defaultBranch:null,fetchHead:null,fetchHeadDescription:null};if(ze!==null&&!xt.capabilities.has("shallow"))throw new Ma("shallow","depth");if(Ye!==null&&!xt.capabilities.has("deepen-since"))throw new Ma("deepen-since","since");if(rt.length>0&&!xt.capabilities.has("deepen-not"))throw new Ma("deepen-not","exclude");if(ot===!0&&!xt.capabilities.has("deepen-relative"))throw new Ma("deepen-relative","relative");let{oid:Vo,fullref:Ko}=et.resolveAgainstMap({ref:Ct,map:mr});for(let Lt of mr.keys())Lt===Ko||Lt==="HEAD"||Lt.startsWith("refs/heads/")||it&&Lt.startsWith("refs/tags/")||mr.delete(Lt);let fs=Mp([...xt.capabilities],["multi_ack_detailed","no-done","side-band-64k","ofs-delta",`agent=${Yf.agent}`]);ot&&fs.push("deepen-relative");let dy=ft?[Vo]:mr.values(),py=ft?[st]:await et.listRefs({fs:B,gitdir:_e,filepath:"refs"}),Kr=[];for(let Lt of py)try{Lt=await et.expand({fs:B,gitdir:_e,ref:Lt});let Br=await et.resolve({fs:B,gitdir:_e,ref:Lt});await Up({fs:B,cache:b,gitdir:_e,oid:Br})&&Kr.push(Br)}catch{}Kr=[...new Set(Kr)];let rr=await hl.read({fs:B,gitdir:_e}),_n=xt.capabilities.has("shallow")?[...rr]:[],Fr=wA({capabilities:fs,wants:dy,haves:Kr,shallows:_n,depth:ze,since:Ye,exclude:rt}),pl=Buffer.from(await cl(Fr)),Jo=await sr.connect({http:k,onProgress:F,corsProxy:Me,service:"git-upload-pack",url:Et,auth:lr,body:[pl],headers:gt}),fr=await mA(Jo.body);Jo.headers&&(fr.headers=Jo.headers);for(let Lt of fr.shallows)if(!rr.has(Lt))try{let{object:Br}=await $t({fs:B,cache:b,gitdir:_e,oid:Lt}),an=new on(Br),En=await Promise.all(an.headers().parent.map(us=>Up({fs:B,cache:b,gitdir:_e,oid:us})));En.length===0||En.every(us=>us)||rr.add(Lt)}catch{rr.add(Lt)}for(let Lt of fr.unshallows)rr.delete(Lt);if(await hl.write({fs:B,gitdir:_e,oids:rr}),ft){let Lt=new Map([[Ko,Vo]]),Br=new Map,an=10,En=Ko;for(;an--;){let gy=xt.symrefs.get(En);if(gy===void 0)break;Br.set(En,gy),En=gy}let us=mr.get(En);us&&Lt.set(En,us);let{pruned:uL}=await et.updateRemoteRefs({fs:B,gitdir:_e,remote:ct,refs:Lt,symrefs:Br,tags:it,prune:yt});yt&&(fr.pruned=uL)}else{let{pruned:Lt}=await et.updateRemoteRefs({fs:B,gitdir:_e,remote:ct,refs:mr,symrefs:xt.symrefs,tags:it,prune:yt,pruneTags:pt});yt&&(fr.pruned=Lt)}if(fr.HEAD=xt.symrefs.get("HEAD"),fr.HEAD===void 0){let{oid:Lt}=et.resolveAgainstMap({ref:"HEAD",map:mr});for(let[Br,an]of mr.entries())if(Br!=="HEAD"&&an===Lt){fr.HEAD=Br;break}}let fL=Ko.startsWith("refs/tags")?"tag":"branch";if(fr.FETCH_HEAD={oid:Vo,description:`${fL} '${Ri(Ko)}' of ${Et}`},F||L){let Lt=$p(fr.progress);qa(Lt,async Br=>{if(L&&await L(Br),F){let an=Br.match(/([^:]*).*\((\d+?)\/(\d+?)\)/);an&&await F({phase:an[1].trim(),loaded:parseInt(an[2],10),total:parseInt(an[3],10)})}})}let ru=Buffer.from(await cl(fr.packfile));if(Jo.body.error)throw Jo.body.error;let sR=ru.slice(-20).toString("hex"),gl={defaultBranch:fr.HEAD,fetchHead:fr.FETCH_HEAD.oid,fetchHeadDescription:fr.FETCH_HEAD.description};if(fr.headers&&(gl.headers=fr.headers),yt&&(gl.pruned=fr.pruned),sR!==""&&!hA(ru)){gl.packfile=`objects/pack/pack-${sR}.pack`;let Lt=a.join(_e,gl.packfile);await B.write(Lt,ru);let Br=e(En=>$t({fs:B,cache:b,gitdir:_e,oid:En}),"getExternalRefDelta"),an=await rp.fromPack({pack:ru,getExternalRefDelta:Br,onProgress:F});await B.write(Lt.replace(/\.pack$/,".idx"),await an.toBuffer())}return gl}l(Qf,"gv"),e(Qf,"_fetch");async function Wp({fs:B,bare:b=!1,dir:k,gitdir:F=b?k:a.join(k,".git"),defaultBranch:L="master"}){if(await B.exists(F+"/config"))return;let $=["hooks","info","objects/info","objects/pack","refs/heads","refs/tags"];$=$.map(K=>F+"/"+K);for(let K of $)await B.mkdir(K);await B.write(F+"/config",`[core]
|
|
92
|
+
repositoryformatversion = 0
|
|
93
|
+
filemode = false
|
|
94
|
+
bare = ${b}
|
|
95
|
+
`+(b?"":` logallrefupdates = true
|
|
96
|
+
`)+` symlinks = false
|
|
97
|
+
ignorecase = true
|
|
98
|
+
`),await B.write(F+"/HEAD",`ref: refs/heads/${L}
|
|
99
|
+
`)}l(Wp,"PI"),e(Wp,"_init");async function bA({fs:B,cache:b,http:k,onProgress:F,onMessage:L,onAuth:$,onAuthSuccess:K,onAuthFailure:ne,onPostCheckout:_e,dir:ce,gitdir:he,url:Be,corsProxy:je,ref:Me,remote:ze,depth:Ye,since:rt,exclude:ot,relative:it,singleBranch:ft,noCheckout:gt,noTags:yt,headers:pt,nonBlocking:st,batchSize:ut=100}){try{if(await Wp({fs:B,gitdir:he}),await Fp({fs:B,gitdir:he,remote:ze,url:Be,force:!1}),je){let Ct=await ht.get({fs:B,gitdir:he});await Ct.set("http.corsProxy",je),await ht.save({fs:B,gitdir:he,config:Ct})}let{defaultBranch:ct,fetchHead:Et}=await Qf({fs:B,cache:b,http:k,onProgress:F,onMessage:L,onAuth:$,onAuthSuccess:K,onAuthFailure:ne,gitdir:he,ref:Me,remote:ze,corsProxy:je,depth:Ye,since:rt,exclude:ot,relative:it,singleBranch:ft,headers:pt,tags:!yt});if(Et===null)return;Me=Me||ct,Me=Me.replace("refs/heads/",""),await Hf({fs:B,cache:b,onProgress:F,onPostCheckout:_e,dir:ce,gitdir:he,ref:Me,remote:ze,noCheckout:gt,nonBlocking:st,batchSize:ut})}catch(ct){throw await B.rmdir(he,{recursive:!0,maxRetries:10}).catch(()=>{}),ct}}l(bA,"pK"),e(bA,"_clone");async function zp({fs:B,http:b,onProgress:k,onMessage:F,onAuth:L,onAuthSuccess:$,onAuthFailure:K,onPostCheckout:ne,dir:_e,gitdir:ce=a.join(_e,".git"),url:he,corsProxy:Be=void 0,ref:je=void 0,remote:Me="origin",depth:ze=void 0,since:Ye=void 0,exclude:rt=[],relative:ot=!1,singleBranch:it=!1,noCheckout:ft=!1,noTags:gt=!1,headers:yt={},cache:pt={},nonBlocking:st=!1,batchSize:ut=100}){try{return Ue("fs",B),Ue("http",b),Ue("gitdir",ce),ft||Ue("dir",_e),Ue("url",he),await bA({fs:new mt(B),cache:pt,http:b,onProgress:k,onMessage:F,onAuth:L,onAuthSuccess:$,onAuthFailure:K,onPostCheckout:ne,dir:_e,gitdir:ce,url:he,corsProxy:Be,ref:je,remote:Me,depth:ze,since:Ye,exclude:rt,relative:ot,singleBranch:it,noCheckout:ft,noTags:gt,headers:yt,nonBlocking:st,batchSize:ut})}catch(ct){throw ct.caller="git.clone",ct}}l(zp,"II"),e(zp,"clone");async function Hp({fs:B,onSign:b,dir:k,gitdir:F=a.join(k,".git"),message:L,author:$,committer:K,signingKey:ne,amend:_e=!1,dryRun:ce=!1,noUpdateBranch:he=!1,ref:Be,parent:je,tree:Me,cache:ze={}}){try{Ue("fs",B),_e||Ue("message",L),ne&&Ue("onSign",b);let Ye=new mt(B);return await ul({fs:Ye,cache:ze,onSign:b,gitdir:F,message:L,author:$,committer:K,signingKey:ne,amend:_e,dryRun:ce,noUpdateBranch:he,ref:Be,parent:je,tree:Me})}catch(Ye){throw Ye.caller="git.commit",Ye}}l(Hp,"kI"),e(Hp,"commit");async function qp({fs:B,dir:b,gitdir:k=a.join(b,".git"),fullname:F=!1,test:L=!1}){try{return Ue("fs",B),Ue("gitdir",k),await Jn({fs:new mt(B),gitdir:k,fullname:F,test:L})}catch($){throw $.caller="git.currentBranch",$}}l(qp,"BI"),e(qp,"currentBranch");async function vA({fs:B,gitdir:b,ref:k}){if(k=k.startsWith("refs/heads/")?k:`refs/heads/${k}`,!await et.exists({fs:B,gitdir:b,ref:k}))throw new ge(k);let F=await et.expand({fs:B,gitdir:b,ref:k}),L=await Jn({fs:B,gitdir:b,fullname:!0});if(F===L){let ne=await et.resolve({fs:B,gitdir:b,ref:F});await et.writeRef({fs:B,gitdir:b,ref:"HEAD",value:ne})}await et.deleteRef({fs:B,gitdir:b,ref:F});let $=Ri(k),K=await ht.get({fs:B,gitdir:b});await K.deleteSection("branch",$),await ht.save({fs:B,gitdir:b,config:K})}l(vA,"yK"),e(vA,"_deleteBranch");async function Gp({fs:B,dir:b,gitdir:k=a.join(b,".git"),ref:F}){try{return Ue("fs",B),Ue("ref",F),await vA({fs:new mt(B),gitdir:k,ref:F})}catch(L){throw L.caller="git.deleteBranch",L}}l(Gp,"CI"),e(Gp,"deleteBranch");async function Vp({fs:B,dir:b,gitdir:k=a.join(b,".git"),ref:F}){try{Ue("fs",B),Ue("ref",F),await et.deleteRef({fs:new mt(B),gitdir:k,ref:F})}catch(L){throw L.caller="git.deleteRef",L}}l(Vp,"LI"),e(Vp,"deleteRef");async function _A({fs:B,gitdir:b,remote:k}){let F=await ht.get({fs:B,gitdir:b});await F.deleteSection("remote",k),await ht.save({fs:B,gitdir:b,config:F})}l(_A,"mK"),e(_A,"_deleteRemote");async function Kp({fs:B,dir:b,gitdir:k=a.join(b,".git"),remote:F}){try{return Ue("fs",B),Ue("remote",F),await _A({fs:new mt(B),gitdir:k,remote:F})}catch(L){throw L.caller="git.deleteRemote",L}}l(Kp,"NI"),e(Kp,"deleteRemote");async function EA({fs:B,gitdir:b,ref:k}){k=k.startsWith("refs/tags/")?k:`refs/tags/${k}`,await et.deleteRef({fs:B,gitdir:b,ref:k})}l(EA,"gK"),e(EA,"_deleteTag");async function Jp({fs:B,dir:b,gitdir:k=a.join(b,".git"),ref:F}){try{return Ue("fs",B),Ue("ref",F),await EA({fs:new mt(B),gitdir:k,ref:F})}catch(L){throw L.caller="git.deleteTag",L}}l(Jp,"DI"),e(Jp,"deleteTag");async function SA({fs:B,gitdir:b,oid:k}){let F=k.slice(0,2);return(await B.readdir(`${b}/objects/${F}`)).map(L=>`${F}${L}`).filter(L=>L.startsWith(k))}l(SA,"wK"),e(SA,"expandOidLoose");async function AA({fs:B,cache:b,gitdir:k,oid:F,getExternalRefDelta:L}){let $=[],K=await B.readdir(a.join(k,"objects/pack"));K=K.filter(ne=>ne.endsWith(".idx"));for(let ne of K){let _e=`${k}/objects/pack/${ne}`,ce=await jf({fs:B,cache:b,filename:_e,getExternalRefDelta:L});if(ce.error)throw new O(ce.error);for(let he of ce.offsets.keys())he.startsWith(F)&&$.push(he)}return $}l(AA,"vK"),e(AA,"expandOidPacked");async function RA({fs:B,cache:b,gitdir:k,oid:F}){let L=e(ne=>$t({fs:B,cache:b,gitdir:k,oid:ne}),"getExternalRefDelta"),$=await SA({fs:B,gitdir:k,oid:F}),K=await AA({fs:B,cache:b,gitdir:k,oid:F,getExternalRefDelta:L});for(let ne of K)$.indexOf(ne)===-1&&$.push(ne);if($.length===1)return $[0];throw $.length>1?new np("oids",F,$):new ge(`an object matching "${F}"`)}l(RA,"bK"),e(RA,"_expandOid");async function Yp({fs:B,dir:b,gitdir:k=a.join(b,".git"),oid:F,cache:L={}}){try{return Ue("fs",B),Ue("gitdir",k),Ue("oid",F),await RA({fs:new mt(B),cache:L,gitdir:k,oid:F})}catch($){throw $.caller="git.expandOid",$}}l(Yp,"$I"),e(Yp,"expandOid");async function Zp({fs:B,dir:b,gitdir:k=a.join(b,".git"),ref:F}){try{return Ue("fs",B),Ue("gitdir",k),Ue("ref",F),await et.expand({fs:new mt(B),gitdir:k,ref:F})}catch(L){throw L.caller="git.expandRef",L}}l(Zp,"MI"),e(Zp,"expandRef");async function Xf({fs:B,cache:b,gitdir:k,oids:F}){let L={},$=F.length,K=F.map((ne,_e)=>({index:_e,oid:ne}));for(;K.length;){let ne=new Set;for(let{oid:ce,index:he}of K)L[ce]||(L[ce]=new Set),L[ce].add(he),L[ce].size===$&&ne.add(ce);if(ne.size>0)return[...ne];let _e=new Map;for(let{oid:ce,index:he}of K)try{let{object:Be}=await $t({fs:B,cache:b,gitdir:k,oid:ce}),je=on.from(Be),{parent:Me}=je.parseHeaders();for(let ze of Me)(!L[ze]||!L[ze].has(he))&&_e.set(ze+":"+he,{oid:ze,index:he})}catch{}K=Array.from(_e.values())}return[]}l(Xf,"wv"),e(Xf,"_findMergeBase");var Qp=/^.*(\r?\n|$)/gm;function OA({branches:B,contents:b}){let k=B[1],F=B[2],L=b[0],$=b[1],K=b[2],ne=$.match(Qp),_e=L.match(Qp),ce=K.match(Qp),he=m(ne,_e,ce),Be=7,je="",Me=!0;for(let ze of he)ze.ok&&(je+=ze.ok.join("")),ze.conflict&&(Me=!1,je+=`${"<".repeat(Be)} ${k}
|
|
100
|
+
`,je+=ze.conflict.a.join(""),je+=`${"=".repeat(Be)}
|
|
101
|
+
`,je+=ze.conflict.b.join(""),je+=`${">".repeat(Be)} ${F}
|
|
102
|
+
`);return{cleanMerge:Me,mergedText:je}}l(OA,"_K"),e(OA,"mergeFile");async function kA({fs:B,cache:b,dir:k,gitdir:F=a.join(k,".git"),index:L,ourOid:$,baseOid:K,theirOid:ne,ourName:_e="ours",baseName:ce="base",theirName:he="theirs",dryRun:Be=!1,abortOnConflict:je=!0,mergeDriver:Me}){let ze=Ur({ref:$}),Ye=Ur({ref:K}),rt=Ur({ref:ne}),ot=[],it=[],ft=[],gt=[],yt=await Vn({fs:B,cache:b,dir:k,gitdir:F,trees:[ze,Ye,rt],map:e(async function(pt,[st,ut,ct]){let Et=fe(pt),Ct=await fl(st,ut),sr=await fl(ct,ut);switch(`${Ct}-${sr}`){case"false-false":return{mode:await ut.mode(),path:Et,oid:await ut.oid(),type:await ut.type()};case"false-true":return!ct&&await st.type()==="tree"?{mode:await st.mode(),path:Et,oid:await st.oid(),type:await st.type()}:ct?{mode:await ct.mode(),path:Et,oid:await ct.oid(),type:await ct.type()}:void 0;case"true-false":return!st&&await ct.type()==="tree"?{mode:await ct.mode(),path:Et,oid:await ct.oid(),type:await ct.type()}:st?{mode:await st.mode(),path:Et,oid:await st.oid(),type:await st.type()}:void 0;case"true-true":{if(st&&ct&&await st.type()==="tree"&&await ct.type()==="tree")return{mode:await st.mode(),path:Et,oid:await st.oid(),type:"tree"};if(st&&ct&&await st.type()==="blob"&&await ct.type()==="blob")return TA({fs:B,gitdir:F,path:Et,ours:st,base:ut,theirs:ct,ourName:_e,baseName:ce,theirName:he,mergeDriver:Me}).then(async xt=>{if(xt.cleanMerge)je||L.insert({filepath:pt,oid:xt.mergeResult.oid,stage:0});else if(ot.push(pt),it.push(pt),!je){let lr="";ut&&await ut.type()==="blob"&&(lr=await ut.oid());let mr=await st.oid(),Vo=await ct.oid();L.delete({filepath:pt}),lr&&L.insert({filepath:pt,oid:lr,stage:1}),L.insert({filepath:pt,oid:mr,stage:2}),L.insert({filepath:pt,oid:Vo,stage:3})}return xt.mergeResult});if(ut&&!st&&ct&&await ut.type()==="blob"&&await ct.type()==="blob"){if(ot.push(pt),ft.push(pt),!je){let xt=await ut.oid(),lr=await ct.oid();L.delete({filepath:pt}),L.insert({filepath:pt,oid:xt,stage:1}),L.insert({filepath:pt,oid:lr,stage:3})}return{mode:await ct.mode(),oid:await ct.oid(),type:"blob",path:Et}}if(ut&&st&&!ct&&await ut.type()==="blob"&&await st.type()==="blob"){if(ot.push(pt),gt.push(pt),!je){let xt=await ut.oid(),lr=await st.oid();L.delete({filepath:pt}),L.insert({filepath:pt,oid:xt,stage:1}),L.insert({filepath:pt,oid:lr,stage:2})}return{mode:await st.mode(),oid:await st.oid(),type:"blob",path:Et}}if(ut&&!st&&!ct&&(await ut.type()==="blob"||await ut.type()==="tree"))return;throw new Lf}}},"map"),reduce:ot.length!==0&&(!k||je)?void 0:async(pt,st)=>{let ut=st.filter(Boolean);if(pt&&!(pt&&pt.type==="tree"&&ut.length===0&&pt.path!==".")){if(ut.length>0||pt.path==="."&&ut.length===0){let ct=new rn(ut).toObject(),Et=await Tr({fs:B,gitdir:F,type:"tree",object:ct,dryRun:Be});pt.oid=Et}return pt}}});return ot.length!==0?(k&&!je&&await Vn({fs:B,cache:b,dir:k,gitdir:F,trees:[Ur({ref:yt.oid})],map:e(async function(pt,[st]){let ut=`${k}/${pt}`;if(await st.type()==="blob"){let ct=await st.mode(),Et=new TextDecoder().decode(await st.content());await B.write(ut,Et,{mode:ct})}return!0},"map")}),new Nf(ot,it,ft,gt)):yt.oid}l(kA,"EK"),e(kA,"mergeTree");async function TA({fs:B,gitdir:b,path:k,ours:F,base:L,theirs:$,ourName:K,theirName:ne,baseName:_e,dryRun:ce,mergeDriver:he=OA}){let Be="blob",je="100755",Me="",ze="";L&&await L.type()==="blob"&&(je=await L.mode(),Me=await L.oid(),ze=Buffer.from(await L.content()).toString("utf8"));let Ye=je===await F.mode()?await $.mode():await F.mode();if(await F.oid()===await $.oid())return{cleanMerge:!0,mergeResult:{mode:Ye,path:k,oid:await F.oid(),type:Be}};if(await F.oid()===Me)return{cleanMerge:!0,mergeResult:{mode:Ye,path:k,oid:await $.oid(),type:Be}};if(await $.oid()===Me)return{cleanMerge:!0,mergeResult:{mode:Ye,path:k,oid:await F.oid(),type:Be}};let rt=Buffer.from(await F.content()).toString("utf8"),ot=Buffer.from(await $.content()).toString("utf8"),{mergedText:it,cleanMerge:ft}=await he({branches:[_e,K,ne],contents:[ze,rt,ot],path:k}),gt=await Tr({fs:B,gitdir:b,type:"blob",object:Buffer.from(it,"utf8"),dryRun:ce});return{cleanMerge:ft,mergeResult:{mode:Ye,path:k,oid:gt,type:Be}}}l(TA,"SK"),e(TA,"mergeBlobs");async function Xp({fs:B,cache:b,dir:k,gitdir:F,ours:L,theirs:$,fastForward:K=!0,fastForwardOnly:ne=!1,dryRun:_e=!1,noUpdateBranch:ce=!1,abortOnConflict:he=!0,message:Be,author:je,committer:Me,signingKey:ze,onSign:Ye,mergeDriver:rt,allowUnrelatedHistories:ot=!1}){L===void 0&&(L=await Jn({fs:B,gitdir:F,fullname:!0})),L=await et.expand({fs:B,gitdir:F,ref:L}),$=await et.expand({fs:B,gitdir:F,ref:$});let it=await et.resolve({fs:B,gitdir:F,ref:L}),ft=await et.resolve({fs:B,gitdir:F,ref:$}),gt=await Xf({fs:B,cache:b,gitdir:F,oids:[it,ft]});if(gt.length!==1)if(gt.length===0&&ot)gt.push("4b825dc642cb6eb9a060e54bf8d69288fbee4904");else throw new Lf;let yt=gt[0];if(yt===ft)return{oid:it,alreadyMerged:!0};if(K&&yt===it)return!_e&&!ce&&await et.writeRef({fs:B,gitdir:F,ref:L,value:ft}),{oid:ft,fastForward:!0};{if(ne)throw new sp;let pt=await Q.acquire({fs:B,gitdir:F,cache:b,allowUnmerged:!1},async st=>kA({fs:B,cache:b,dir:k,gitdir:F,index:st,ourOid:it,theirOid:ft,baseOid:yt,ourName:Ri(L),baseName:"base",theirName:Ri($),dryRun:_e,abortOnConflict:he,mergeDriver:rt}));if(pt instanceof Nf)throw pt;return Be||(Be=`Merge branch '${Ri($)}' into ${Ri(L)}`),{oid:await ul({fs:B,cache:b,gitdir:F,message:Be,ref:L,tree:pt,parent:[it,ft],author:je,committer:Me,signingKey:ze,onSign:Ye,dryRun:_e,noUpdateBranch:ce}),tree:pt,mergeCommit:!0}}}l(Xp,"UI"),e(Xp,"_merge");async function eg({fs:B,cache:b,http:k,onProgress:F,onMessage:L,onAuth:$,onAuthSuccess:K,onAuthFailure:ne,dir:_e,gitdir:ce,ref:he,url:Be,remote:je,remoteRef:Me,prune:ze,pruneTags:Ye,fastForward:rt,fastForwardOnly:ot,corsProxy:it,singleBranch:ft,headers:gt,author:yt,committer:pt,signingKey:st}){try{if(!he){let Et=await Jn({fs:B,gitdir:ce});if(!Et)throw new nn("ref");he=Et}let{fetchHead:ut,fetchHeadDescription:ct}=await Qf({fs:B,cache:b,http:k,onProgress:F,onMessage:L,onAuth:$,onAuthSuccess:K,onAuthFailure:ne,gitdir:ce,corsProxy:it,ref:he,url:Be,remote:je,remoteRef:Me,singleBranch:ft,headers:gt,prune:ze,pruneTags:Ye});await Xp({fs:B,cache:b,gitdir:ce,ours:he,theirs:ut,fastForward:rt,fastForwardOnly:ot,message:`Merge ${ct}`,author:yt,committer:pt,signingKey:st,dryRun:!1,noUpdateBranch:!1}),await Hf({fs:B,cache:b,onProgress:F,dir:_e,gitdir:ce,ref:he,remote:je,noCheckout:!1})}catch(ut){throw ut.caller="git.pull",ut}}l(eg,"jI"),e(eg,"_pull");async function tg({fs:B,http:b,onProgress:k,onMessage:F,onAuth:L,onAuthSuccess:$,onAuthFailure:K,dir:ne,gitdir:_e=a.join(ne,".git"),ref:ce,url:he,remote:Be,remoteRef:je,corsProxy:Me,singleBranch:ze,headers:Ye={},cache:rt={}}){try{Ue("fs",B),Ue("http",b),Ue("gitdir",_e);let ot={name:"",email:"",timestamp:Date.now(),timezoneOffset:0};return await eg({fs:new mt(B),cache:rt,http:b,onProgress:k,onMessage:F,onAuth:L,onAuthSuccess:$,onAuthFailure:K,dir:ne,gitdir:_e,ref:ce,url:he,remote:Be,remoteRef:je,fastForwardOnly:!0,corsProxy:Me,singleBranch:ze,headers:Ye,author:ot,committer:ot})}catch(ot){throw ot.caller="git.fastForward",ot}}l(tg,"HI"),e(tg,"fastForward");async function rg({fs:B,http:b,onProgress:k,onMessage:F,onAuth:L,onAuthSuccess:$,onAuthFailure:K,dir:ne,gitdir:_e=a.join(ne,".git"),ref:ce,remote:he,remoteRef:Be,url:je,corsProxy:Me,depth:ze=null,since:Ye=null,exclude:rt=[],relative:ot=!1,tags:it=!1,singleBranch:ft=!1,headers:gt={},prune:yt=!1,pruneTags:pt=!1,cache:st={}}){try{return Ue("fs",B),Ue("http",b),Ue("gitdir",_e),await Qf({fs:new mt(B),cache:st,http:b,onProgress:k,onMessage:F,onAuth:L,onAuthSuccess:$,onAuthFailure:K,gitdir:_e,ref:ce,remote:he,remoteRef:Be,url:je,corsProxy:Me,depth:ze,since:Ye,exclude:rt,relative:ot,tags:it,singleBranch:ft,headers:gt,prune:yt,pruneTags:pt})}catch(ut){throw ut.caller="git.fetch",ut}}l(rg,"WI"),e(rg,"fetch");async function ng({fs:B,dir:b,gitdir:k=a.join(b,".git"),oids:F,cache:L={}}){try{return Ue("fs",B),Ue("gitdir",k),Ue("oids",F),await Xf({fs:new mt(B),cache:L,gitdir:k,oids:F})}catch($){throw $.caller="git.findMergeBase",$}}l(ng,"qI"),e(ng,"findMergeBase");async function ig({fs:B,filepath:b}){if(await B.exists(a.join(b,".git")))return b;{let k=ve(b);if(k===b)throw new ge(`git root for ${b}`);return ig({fs:B,filepath:k})}}l(ig,"zI"),e(ig,"_findRoot");async function og({fs:B,filepath:b}){try{return Ue("fs",B),Ue("filepath",b),await ig({fs:new mt(B),filepath:b})}catch(k){throw k.caller="git.findRoot",k}}l(og,"VI"),e(og,"findRoot");async function ag({fs:B,dir:b,gitdir:k=a.join(b,".git"),path:F}){try{return Ue("fs",B),Ue("gitdir",k),Ue("path",F),await Wa({fs:new mt(B),gitdir:k,path:F})}catch(L){throw L.caller="git.getConfig",L}}l(ag,"GI"),e(ag,"getConfig");async function FA({fs:B,gitdir:b,path:k}){return(await ht.get({fs:B,gitdir:b})).getall(k)}l(FA,"AK"),e(FA,"_getConfigAll");async function sg({fs:B,dir:b,gitdir:k=a.join(b,".git"),path:F}){try{return Ue("fs",B),Ue("gitdir",k),Ue("path",F),await FA({fs:new mt(B),gitdir:k,path:F})}catch(L){throw L.caller="git.getConfigAll",L}}l(sg,"YI"),e(sg,"getConfigAll");async function lg({http:B,onAuth:b,onAuthSuccess:k,onAuthFailure:F,corsProxy:L,url:$,headers:K={},forPush:ne=!1}){try{Ue("http",B),Ue("url",$);let _e=await Jf.getRemoteHelperFor({url:$}).discover({http:B,onAuth:b,onAuthSuccess:k,onAuthFailure:F,corsProxy:L,service:ne?"git-receive-pack":"git-upload-pack",url:$,headers:K,protocolVersion:1}),ce={capabilities:[..._e.capabilities]};for(let[he,Be]of _e.refs){let je=he.split("/"),Me=je.pop(),ze=ce;for(let Ye of je)ze[Ye]=ze[Ye]||{},ze=ze[Ye];ze[Me]=Be}for(let[he,Be]of _e.symrefs){let je=he.split("/"),Me=je.pop(),ze=ce;for(let Ye of je)ze[Ye]=ze[Ye]||{},ze=ze[Ye];ze[Me]=Be}return ce}catch(_e){throw _e.caller="git.getRemoteInfo",_e}}l(lg,"KI"),e(lg,"getRemoteInfo");function fg(B,b,k,F){let L=[];for(let[$,K]of B.refs){if(b&&!$.startsWith(b))continue;if($.endsWith("^{}")){if(F){let _e=$.replace("^{}",""),ce=L[L.length-1],he=ce.ref===_e?ce:L.find(Be=>Be.ref===_e);if(he===void 0)throw new Error("I did not expect this to happen");he.peeled=K}continue}let ne={ref:$,oid:K};k&&B.symrefs.has($)&&(ne.target=B.symrefs.get($)),L.push(ne)}return L}l(fg,"XI"),e(fg,"formatInfoRefs");async function ug({http:B,onAuth:b,onAuthSuccess:k,onAuthFailure:F,corsProxy:L,url:$,headers:K={},forPush:ne=!1,protocolVersion:_e=2}){try{Ue("http",B),Ue("url",$);let ce=await Jf.getRemoteHelperFor({url:$}).discover({http:B,onAuth:b,onAuthSuccess:k,onAuthFailure:F,corsProxy:L,service:ne?"git-receive-pack":"git-upload-pack",url:$,headers:K,protocolVersion:_e});if(ce.protocolVersion===2)return{protocolVersion:ce.protocolVersion,capabilities:ce.capabilities2};let he={};for(let Be of ce.capabilities){let[je,Me]=Be.split("=");Me?he[je]=Me:he[je]=!0}return{protocolVersion:1,capabilities:he,refs:fg(ce,void 0,!0,!0)}}catch(ce){throw ce.caller="git.getRemoteInfo2",ce}}l(ug,"JI"),e(ug,"getRemoteInfo2");async function BA({type:B,object:b,format:k="content",oid:F=void 0}){return k!=="deflated"&&(k!=="wrapped"&&(b=Da.wrap({type:B,object:b})),F=await de(b)),{oid:F,object:b}}l(BA,"RK"),e(BA,"hashObject");async function cg({object:B}){try{Ue("object",B),typeof B=="string"?B=Buffer.from(B,"utf8"):B instanceof Uint8Array||(B=new Uint8Array(B));let b="blob",{oid:k,object:F}=await BA({type:b,format:"content",object:B});return{oid:k,type:b,object:F,format:"wrapped"}}catch(b){throw b.caller="git.hashBlob",b}}l(cg,"ZI"),e(cg,"hashBlob");async function xA({fs:B,cache:b,onProgress:k,dir:F,gitdir:L,filepath:$}){try{$=a.join(F,$);let K=await B.read($),ne=e(ce=>$t({fs:B,cache:b,gitdir:L,oid:ce}),"getExternalRefDelta"),_e=await rp.fromPack({pack:K,getExternalRefDelta:ne,onProgress:k});return await B.write($.replace(/\.pack$/,".idx"),await _e.toBuffer()),{oids:[..._e.hashes]}}catch(K){throw K.caller="git.indexPack",K}}l(xA,"TK"),e(xA,"_indexPack");async function hg({fs:B,onProgress:b,dir:k,gitdir:F=a.join(k,".git"),filepath:L,cache:$={}}){try{return Ue("fs",B),Ue("dir",k),Ue("gitdir",k),Ue("filepath",L),await xA({fs:new mt(B),cache:$,onProgress:b,dir:k,gitdir:F,filepath:L})}catch(K){throw K.caller="git.indexPack",K}}l(hg,"QI"),e(hg,"indexPack");async function dg({fs:B,bare:b=!1,dir:k,gitdir:F=b?k:a.join(k,".git"),defaultBranch:L="master"}){try{return Ue("fs",B),Ue("gitdir",F),b||Ue("dir",k),await Wp({fs:new mt(B),bare:b,dir:k,gitdir:F,defaultBranch:L})}catch($){throw $.caller="git.init",$}}l(dg,"ek"),e(dg,"init");async function pg({fs:B,cache:b,gitdir:k,oid:F,ancestor:L,depth:$}){let K=await hl.read({fs:B,gitdir:k});if(!F)throw new nn("oid");if(!L)throw new nn("ancestor");if(F===L)return!1;let ne=[F],_e=new Set,ce=0;for(;ne.length;){if(ce++===$)throw new fp($);let he=ne.shift(),{type:Be,object:je}=await $t({fs:B,cache:b,gitdir:k,oid:he});if(Be!=="commit")throw new Ie(he,Be,"commit");let Me=on.from(je).parse();for(let ze of Me.parent)if(ze===L)return!0;if(!K.has(he))for(let ze of Me.parent)_e.has(ze)||(ne.push(ze),_e.add(ze))}return!1}l(pg,"tk"),e(pg,"_isDescendent");async function gg({fs:B,dir:b,gitdir:k=a.join(b,".git"),oid:F,ancestor:L,depth:$=-1,cache:K={}}){try{return Ue("fs",B),Ue("gitdir",k),Ue("oid",F),Ue("ancestor",L),await pg({fs:new mt(B),cache:K,gitdir:k,oid:F,ancestor:L,depth:$})}catch(ne){throw ne.caller="git.isDescendent",ne}}l(gg,"rk"),e(gg,"isDescendent");async function yg({fs:B,dir:b,gitdir:k=a.join(b,".git"),filepath:F}){try{return Ue("fs",B),Ue("dir",b),Ue("gitdir",k),Ue("filepath",F),$a.isIgnored({fs:new mt(B),dir:b,gitdir:k,filepath:F})}catch(L){throw L.caller="git.isIgnored",L}}l(yg,"nk"),e(yg,"isIgnored");async function mg({fs:B,dir:b,gitdir:k=a.join(b,".git"),remote:F}){try{return Ue("fs",B),Ue("gitdir",k),et.listBranches({fs:new mt(B),gitdir:k,remote:F})}catch(L){throw L.caller="git.listBranches",L}}l(mg,"ik"),e(mg,"listBranches");async function IA({fs:B,gitdir:b,ref:k,cache:F}){if(k){let L=await et.resolve({gitdir:b,fs:B,ref:k}),$=[];return await wg({fs:B,cache:F,gitdir:b,oid:L,filenames:$,prefix:""}),$}else return Q.acquire({fs:B,gitdir:b,cache:F},async function(L){return L.entries.map($=>$.path)})}l(IA,"FK"),e(IA,"_listFiles");async function wg({fs:B,cache:b,gitdir:k,oid:F,filenames:L,prefix:$}){let{tree:K}=await io({fs:B,cache:b,gitdir:k,oid:F});for(let ne of K)ne.type==="tree"?await wg({fs:B,cache:b,gitdir:k,oid:ne.oid,filenames:L,prefix:a.join($,ne.path)}):L.push(a.join($,ne.path))}l(wg,"ok"),e(wg,"accumulateFilesFromOid");async function bg({fs:B,dir:b,gitdir:k=a.join(b,".git"),ref:F,cache:L={}}){try{return Ue("fs",B),Ue("gitdir",k),await IA({fs:new mt(B),cache:L,gitdir:k,ref:F})}catch($){throw $.caller="git.listFiles",$}}l(bg,"ak"),e(bg,"listFiles");async function PA({fs:B,cache:b,gitdir:k,ref:F}){let L;try{L=await et.resolve({gitdir:k,fs:B,ref:F})}catch($){if($ instanceof ge)return[]}return(await io({fs:B,cache:b,gitdir:k,oid:L})).tree.map($=>({target:$.path,note:$.oid}))}l(PA,"xK"),e(PA,"_listNotes");async function vg({fs:B,dir:b,gitdir:k=a.join(b,".git"),ref:F="refs/notes/commits",cache:L={}}){try{return Ue("fs",B),Ue("gitdir",k),Ue("ref",F),await PA({fs:new mt(B),cache:L,gitdir:k,ref:F})}catch($){throw $.caller="git.listNotes",$}}l(vg,"sk"),e(vg,"listNotes");async function _g({fs:B,dir:b,gitdir:k=a.join(b,".git"),filepath:F}){try{return Ue("fs",B),Ue("gitdir",k),et.listRefs({fs:new mt(B),gitdir:k,filepath:F})}catch(L){throw L.caller="git.listRefs",L}}l(_g,"lk"),e(_g,"listRefs");async function jA({fs:B,gitdir:b}){let k=await ht.get({fs:B,gitdir:b}),F=await k.getSubsections("remote");return Promise.all(F.map(async L=>{let $=await k.get(`remote.${L}.url`);return{remote:L,url:$}}))}l(jA,"OK"),e(jA,"_listRemotes");async function Eg({fs:B,dir:b,gitdir:k=a.join(b,".git")}){try{return Ue("fs",B),Ue("gitdir",k),await jA({fs:new mt(B),gitdir:k})}catch(F){throw F.caller="git.listRemotes",F}}l(Eg,"fk"),e(Eg,"listRemotes");async function CA(B){let b=ar.streamReader(B),k=[],F;for(;F=await b(),F!==!0;){if(F===null)continue;F=F.toString("utf8").replace(/\n$/,"");let[L,$,...K]=F.split(" "),ne={ref:$,oid:L};for(let _e of K){let[ce,he]=_e.split(":");ce==="symref-target"?ne.target=he:ce==="peeled"&&(ne.peeled=he)}k.push(ne)}return k}l(CA,"PK"),e(CA,"parseListRefsResponse");async function LA({prefix:B,symrefs:b,peelTags:k}){let F=[];return F.push(ar.encode(`command=ls-refs
|
|
103
|
+
`)),F.push(ar.encode(`agent=${Yf.agent}
|
|
104
|
+
`)),(k||b||B)&&F.push(ar.delim()),k&&F.push(ar.encode("peel")),b&&F.push(ar.encode("symrefs")),B&&F.push(ar.encode(`ref-prefix ${B}`)),F.push(ar.flush()),F}l(LA,"IK"),e(LA,"writeListRefsRequest");async function Sg({http:B,onAuth:b,onAuthSuccess:k,onAuthFailure:F,corsProxy:L,url:$,headers:K={},forPush:ne=!1,protocolVersion:_e=2,prefix:ce,symrefs:he,peelTags:Be}){try{Ue("http",B),Ue("url",$);let je=await Kf.discover({http:B,onAuth:b,onAuthSuccess:k,onAuthFailure:F,corsProxy:L,service:ne?"git-receive-pack":"git-upload-pack",url:$,headers:K,protocolVersion:_e});if(je.protocolVersion===1)return fg(je,ce,he,Be);let Me=await LA({prefix:ce,symrefs:he,peelTags:Be}),ze=await Kf.connect({http:B,auth:je.auth,headers:K,corsProxy:L,service:ne?"git-receive-pack":"git-upload-pack",url:$,body:Me});return CA(ze.body)}catch(je){throw je.caller="git.listServerRefs",je}}l(Sg,"uk"),e(Sg,"listServerRefs");async function Ag({fs:B,dir:b,gitdir:k=a.join(b,".git")}){try{return Ue("fs",B),Ue("gitdir",k),et.listTags({fs:new mt(B),gitdir:k})}catch(F){throw F.caller="git.listTags",F}}l(Ag,"ck"),e(Ag,"listTags");function NA(B,b){return B.committer.timestamp-b.committer.timestamp}l(NA,"kK"),e(NA,"compareAge");var oL="e69de29bb2d1d6434b8b29ae775ad8c2e48c5391";async function Rg({fs:B,cache:b,gitdir:k,oid:F,fileId:L}){if(L===oL)return;let $=F,K,ne=await eo({fs:B,cache:b,gitdir:k,oid:F}),_e=ne.tree;return L===ne.oid?K=ne.path:(K=await Og({fs:B,cache:b,gitdir:k,tree:_e,fileId:L,oid:$}),Array.isArray(K)&&(K.length===0?K=void 0:K.length===1&&(K=K[0]))),K}l(Rg,"eI"),e(Rg,"resolveFileIdInTree");async function Og({fs:B,cache:b,gitdir:k,tree:F,fileId:L,oid:$,filepaths:K=[],parentPath:ne=""}){let _e=F.entries().map(function(ce){let he;return ce.oid===L?(he=a.join(ne,ce.path),K.push(he)):ce.type==="tree"&&(he=$t({fs:B,cache:b,gitdir:k,oid:ce.oid}).then(function({object:Be}){return Og({fs:B,cache:b,gitdir:k,tree:rn.from(Be),fileId:L,oid:$,filepaths:K,parentPath:a.join(ne,ce.path)})})),he});return await Promise.all(_e),K}l(Og,"hk"),e(Og,"_resolveFileId");async function DA({fs:B,cache:b,gitdir:k,filepath:F,ref:L,depth:$,since:K,force:ne,follow:_e}){let ce=typeof K>"u"?void 0:Math.floor(K.valueOf()/1e3),he=[],Be=await hl.read({fs:B,gitdir:k}),je=await et.resolve({fs:B,gitdir:k,ref:L}),Me=[await no({fs:B,cache:b,gitdir:k,oid:je})],ze,Ye,rt;function ot(it){rt&&F&&he.push(it)}for(l(ot,"E"),e(ot,"endCommit");Me.length>0;){let it=Me.pop();if(ce!==void 0&&it.commit.committer.timestamp<=ce)break;if(F){let ft;try{ft=await za({fs:B,cache:b,gitdir:k,oid:it.commit.tree,filepath:F}),Ye&&ze!==ft&&he.push(Ye),ze=ft,Ye=it,rt=!0}catch(gt){if(gt instanceof ge){let yt=_e&&ze;if(yt&&(yt=await Rg({fs:B,cache:b,gitdir:k,oid:it.commit.tree,fileId:ze}),yt))if(Array.isArray(yt)){if(Ye){let pt=await Rg({fs:B,cache:b,gitdir:k,oid:Ye.commit.tree,fileId:ze});if(Array.isArray(pt))if(yt=yt.filter(st=>pt.indexOf(st)===-1),yt.length===1)yt=yt[0],F=yt,Ye&&he.push(Ye);else{yt=!1,Ye&&he.push(Ye);break}}}else F=yt,Ye&&he.push(Ye);if(!yt){if(rt&&ze&&(he.push(Ye),!ne))break;if(!ne&&!_e)throw gt}Ye=it,rt=!1}else throw gt}}else he.push(it);if($!==void 0&&he.length===$){ot(it);break}if(!Be.has(it.oid))for(let ft of it.commit.parent){let gt=await no({fs:B,cache:b,gitdir:k,oid:ft});Me.map(yt=>yt.oid).includes(gt.oid)||Me.push(gt)}Me.length===0&&ot(it),Me.sort((ft,gt)=>NA(ft.commit,gt.commit))}return he}l(DA,"CK"),e(DA,"_log");async function kg({fs:B,dir:b,gitdir:k=a.join(b,".git"),filepath:F,ref:L="HEAD",depth:$,since:K,force:ne,follow:_e,cache:ce={}}){try{return Ue("fs",B),Ue("gitdir",k),Ue("ref",L),await DA({fs:new mt(B),cache:ce,gitdir:k,filepath:F,ref:L,depth:$,since:K,force:ne,follow:_e})}catch(he){throw he.caller="git.log",he}}l(kg,"dk"),e(kg,"log");async function Tg({fs:B,onSign:b,dir:k,gitdir:F=a.join(k,".git"),ours:L,theirs:$,fastForward:K=!0,fastForwardOnly:ne=!1,dryRun:_e=!1,noUpdateBranch:ce=!1,abortOnConflict:he=!0,message:Be,author:je,committer:Me,signingKey:ze,cache:Ye={},mergeDriver:rt,allowUnrelatedHistories:ot=!1}){try{Ue("fs",B),ze&&Ue("onSign",b);let it=new mt(B),ft=await Kn({fs:it,gitdir:F,author:je});if(!ft&&(!ne||!K))throw new Dr("author");let gt=await ro({fs:it,gitdir:F,author:ft,committer:Me});if(!gt&&(!ne||!K))throw new Dr("committer");return await Xp({fs:it,cache:Ye,dir:k,gitdir:F,ours:L,theirs:$,fastForward:K,fastForwardOnly:ne,dryRun:_e,noUpdateBranch:ce,abortOnConflict:he,message:Be,author:ft,committer:gt,signingKey:ze,onSign:b,mergeDriver:rt,allowUnrelatedHistories:ot})}catch(it){throw it.caller="git.merge",it}}l(Tg,"pk"),e(Tg,"merge");var aL={commit:16,tree:32,blob:48,tag:64,ofs_delta:96,ref_delta:112};async function Fg({fs:B,cache:b,dir:k,gitdir:F=a.join(k,".git"),oids:L}){let $=new p,K=[];function ne(he,Be){let je=Buffer.from(he,Be);K.push(je),$.update(je)}l(ne,"f"),e(ne,"write");async function _e({stype:he,object:Be}){let je=aL[he],Me=Be.length,ze=Me>15?128:0,Ye=Me&15;Me=Me>>>4;let rt=(ze|je|Ye).toString(16);for(ne(rt,"hex");ze;)ze=Me>127?128:0,rt=ze|Me&127,ne(Gf(2,rt),"hex"),Me=Me>>>7;ne(Buffer.from(await _p(Be)))}l(_e,"h"),e(_e,"writeObject"),ne("PACK"),ne("00000002","hex"),ne(Gf(8,L.length),"hex");for(let he of L){let{type:Be,object:je}=await $t({fs:B,cache:b,gitdir:F,oid:he});await _e({write:ne,object:je,stype:Be})}let ce=$.digest();return K.push(ce),K}l(Fg,"yk"),e(Fg,"_pack");async function UA({fs:B,cache:b,gitdir:k,oids:F,write:L}){let $=await Fg({fs:B,cache:b,gitdir:k,oids:F}),K=Buffer.from(await cl($)),ne=`pack-${K.slice(-20).toString("hex")}.pack`;return L?(await B.write(a.join(k,`objects/pack/${ne}`),K),{filename:ne}):{filename:ne,packfile:new Uint8Array(K)}}l(UA,"NK"),e(UA,"_packObjects");async function Bg({fs:B,dir:b,gitdir:k=a.join(b,".git"),oids:F,write:L=!1,cache:$={}}){try{return Ue("fs",B),Ue("gitdir",k),Ue("oids",F),await UA({fs:new mt(B),cache:$,gitdir:k,oids:F,write:L})}catch(K){throw K.caller="git.packObjects",K}}l(Bg,"mk"),e(Bg,"packObjects");async function xg({fs:B,http:b,onProgress:k,onMessage:F,onAuth:L,onAuthSuccess:$,onAuthFailure:K,dir:ne,gitdir:_e=a.join(ne,".git"),ref:ce,url:he,remote:Be,remoteRef:je,prune:Me=!1,pruneTags:ze=!1,fastForward:Ye=!0,fastForwardOnly:rt=!1,corsProxy:ot,singleBranch:it,headers:ft={},author:gt,committer:yt,signingKey:pt,cache:st={}}){try{Ue("fs",B),Ue("gitdir",_e);let ut=new mt(B),ct=await Kn({fs:ut,gitdir:_e,author:gt});if(!ct)throw new Dr("author");let Et=await ro({fs:ut,gitdir:_e,author:ct,committer:yt});if(!Et)throw new Dr("committer");return await eg({fs:ut,cache:st,http:b,onProgress:k,onMessage:F,onAuth:L,onAuthSuccess:$,onAuthFailure:K,dir:ne,gitdir:_e,ref:ce,url:he,remote:Be,remoteRef:je,fastForward:Ye,fastForwardOnly:rt,corsProxy:ot,singleBranch:it,headers:ft,author:ct,committer:Et,signingKey:pt,prune:Me,pruneTags:ze})}catch(ut){throw ut.caller="git.pull",ut}}l(xg,"gk"),e(xg,"pull");async function MA({fs:B,cache:b,dir:k,gitdir:F=a.join(k,".git"),start:L,finish:$}){let K=await hl.read({fs:B,gitdir:F}),ne=new Set,_e=new Set;for(let Be of L)ne.add(await et.resolve({fs:B,gitdir:F,ref:Be}));for(let Be of $)try{let je=await et.resolve({fs:B,gitdir:F,ref:Be});_e.add(je)}catch{}let ce=new Set;async function he(Be){ce.add(Be);let{type:je,object:Me}=await $t({fs:B,cache:b,gitdir:F,oid:Be});if(je==="tag"){let ze=fn.from(Me).headers().object;return he(ze)}if(je!=="commit")throw new Ie(Be,je,"commit");if(!K.has(Be)){let ze=on.from(Me).headers().parent;for(Be of ze)!_e.has(Be)&&!ce.has(Be)&&await he(Be)}}l(he,"d"),e(he,"walk");for(let Be of ne)await he(Be);return ce}l(MA,"DK"),e(MA,"listCommitsAndTags");async function eu({fs:B,cache:b,dir:k,gitdir:F=a.join(k,".git"),oids:L}){let $=new Set;async function K(ne){if($.has(ne))return;$.add(ne);let{type:_e,object:ce}=await $t({fs:B,cache:b,gitdir:F,oid:ne});if(_e==="tag"){let he=fn.from(ce).headers().object;await K(he)}else if(_e==="commit"){let he=on.from(ce).headers().tree;await K(he)}else if(_e==="tree"){let he=rn.from(ce);for(let Be of he)Be.type==="blob"&&$.add(Be.oid),Be.type==="tree"&&await K(Be.oid)}}l(K,"i"),e(K,"walk");for(let ne of L)await K(ne);return $}l(eu,"Q0"),e(eu,"listObjects");async function $A(B){let b={},k="",F=ar.streamReader(B),L=await F();for(;L!==!0;)L!==null&&(k+=L.toString("utf8")+`
|
|
105
|
+
`),L=await F();let $=k.toString("utf8").split(`
|
|
106
|
+
`);if(L=$.shift(),!L.startsWith("unpack "))throw new sl('unpack ok" or "unpack [error message]',L);b.ok=L==="unpack ok",b.ok||(b.error=L.slice(7)),b.refs={};for(let K of $){if(K.trim()==="")continue;let ne=K.slice(0,2),_e=K.slice(3),ce=_e.indexOf(" ");ce===-1&&(ce=_e.length);let he=_e.slice(0,ce),Be=_e.slice(ce+1);b.refs[he]={ok:ne==="ok",error:Be}}return b}l($A,"$K"),e($A,"parseReceivePackResponse");async function WA({capabilities:B=[],triplets:b=[]}){let k=[],F=`\0 ${B.join(" ")}`;for(let L of b)k.push(ar.encode(`${L.oldoid} ${L.oid} ${L.fullRef}${F}
|
|
107
|
+
`)),F="";return k.push(ar.flush()),k}l(WA,"MK"),e(WA,"writeReceivePackRequest");async function zA({fs:B,cache:b,http:k,onProgress:F,onMessage:L,onAuth:$,onAuthSuccess:K,onAuthFailure:ne,onPrePush:_e,gitdir:ce,ref:he,remoteRef:Be,remote:je,url:Me,force:ze=!1,delete:Ye=!1,corsProxy:rt,headers:ot={}}){let it=he||await Jn({fs:B,gitdir:ce});if(typeof it>"u")throw new nn("ref");let ft=await ht.get({fs:B,gitdir:ce});je=je||await ft.get(`branch.${it}.pushRemote`)||await ft.get("remote.pushDefault")||await ft.get(`branch.${it}.remote`)||"origin";let gt=Me||await ft.get(`remote.${je}.pushurl`)||await ft.get(`remote.${je}.url`);if(typeof gt>"u")throw new nn("remote OR url");let yt=Be||await ft.get(`branch.${it}.merge`);if(typeof gt>"u")throw new nn("remoteRef");rt===void 0&&(rt=await ft.get("http.corsProxy"));let pt=await et.expand({fs:B,gitdir:ce,ref:it}),st=Ye?"0000000000000000000000000000000000000000":await et.resolve({fs:B,gitdir:ce,ref:pt}),ut=Jf.getRemoteHelperFor({url:gt}),ct=await ut.discover({http:k,onAuth:$,onAuthSuccess:K,onAuthFailure:ne,corsProxy:rt,service:"git-receive-pack",url:gt,headers:ot,protocolVersion:1}),Et=ct.auth,Ct;if(!yt)Ct=pt;else try{Ct=await et.expandAgainstMap({ref:yt,map:ct.refs})}catch(rr){if(rr instanceof ge)Ct=yt.startsWith("refs/")?yt:`refs/heads/${yt}`;else throw rr}let sr=ct.refs.get(Ct)||"0000000000000000000000000000000000000000";if(_e&&!await _e({remote:je,url:gt,localRef:{ref:Ye?"(delete)":pt,oid:st},remoteRef:{ref:Ct,oid:sr}}))throw new Uf;let xt=!ct.capabilities.has("no-thin"),lr=new Set;if(!Ye){let rr=[...ct.refs.values()],_n=new Set;if(sr!=="0000000000000000000000000000000000000000"){let Fr=await Xf({fs:B,cache:b,gitdir:ce,oids:[st,sr]});for(let pl of Fr)rr.push(pl);xt&&(_n=await eu({fs:B,cache:b,gitdir:ce,oids:Fr}))}if(!rr.includes(st)){let Fr=await MA({fs:B,cache:b,gitdir:ce,start:[st],finish:rr});lr=await eu({fs:B,cache:b,gitdir:ce,oids:Fr})}if(xt){try{let Fr=await et.resolve({fs:B,gitdir:ce,ref:`refs/remotes/${je}/HEAD`,depth:2}),{oid:pl}=await et.resolveAgainstMap({ref:Fr.replace(`refs/remotes/${je}/`,""),fullref:Fr,map:ct.refs}),Jo=[pl];for(let fr of await eu({fs:B,cache:b,gitdir:ce,oids:Jo}))_n.add(fr)}catch{}for(let Fr of _n)lr.delete(Fr)}if(st===sr&&(ze=!0),!ze){if(pt.startsWith("refs/tags")&&sr!=="0000000000000000000000000000000000000000")throw new Df("tag-exists");if(st!=="0000000000000000000000000000000000000000"&&sr!=="0000000000000000000000000000000000000000"&&!await pg({fs:B,cache:b,gitdir:ce,oid:st,ancestor:sr,depth:-1}))throw new Df("not-fast-forward")}}let mr=Mp([...ct.capabilities],["report-status","side-band-64k",`agent=${Yf.agent}`]),Vo=await WA({capabilities:mr,triplets:[{oldoid:sr,oid:st,fullRef:Ct}]}),Ko=Ye?[]:await Fg({fs:B,cache:b,gitdir:ce,oids:[...lr]}),fs=await ut.connect({http:k,onProgress:F,corsProxy:rt,service:"git-receive-pack",url:gt,auth:Et,headers:ot,body:[...Vo,...Ko]}),{packfile:dy,progress:py}=await yA.demux(fs.body);if(L){let rr=$p(py);qa(rr,async _n=>{await L(_n)})}let Kr=await $A(dy);if(fs.headers&&(Kr.headers=fs.headers),je&&Kr.ok&&Kr.refs[Ct].ok&&!pt.startsWith("refs/tags")){let rr=`refs/remotes/${je}/${Ct.replace("refs/heads","")}`;Ye?await et.deleteRef({fs:B,gitdir:ce,ref:rr}):await et.writeRef({fs:B,gitdir:ce,ref:rr,value:st})}if(Kr.ok&&Object.values(Kr.refs).every(rr=>rr.ok))return Kr;{let rr=Object.entries(Kr.refs).filter(([_n,Fr])=>!Fr.ok).map(([_n,Fr])=>`
|
|
108
|
+
- ${_n}: ${Fr.error}`).join("");throw new lp(rr,Kr)}}l(zA,"UK"),e(zA,"_push");async function Ig({fs:B,http:b,onProgress:k,onMessage:F,onAuth:L,onAuthSuccess:$,onAuthFailure:K,onPrePush:ne,dir:_e,gitdir:ce=a.join(_e,".git"),ref:he,remoteRef:Be,remote:je="origin",url:Me,force:ze=!1,delete:Ye=!1,corsProxy:rt,headers:ot={},cache:it={}}){try{return Ue("fs",B),Ue("http",b),Ue("gitdir",ce),await zA({fs:new mt(B),cache:it,http:b,onProgress:k,onMessage:F,onAuth:L,onAuthSuccess:$,onAuthFailure:K,onPrePush:ne,gitdir:ce,ref:he,remoteRef:Be,remote:je,url:Me,force:ze,delete:Ye,corsProxy:rt,headers:ot})}catch(ft){throw ft.caller="git.push",ft}}l(Ig,"wk"),e(Ig,"push");async function Pg({fs:B,cache:b,gitdir:k,oid:F}){let{type:L,object:$}=await $t({fs:B,cache:b,gitdir:k,oid:F});if(L==="tag")return F=fn.from($).parse().object,Pg({fs:B,cache:b,gitdir:k,oid:F});if(L!=="blob")throw new Ie(F,L,"blob");return{oid:F,blob:new Uint8Array($)}}l(Pg,"vk"),e(Pg,"resolveBlob");async function jg({fs:B,cache:b,gitdir:k,oid:F,filepath:L=void 0}){return L!==void 0&&(F=await za({fs:B,cache:b,gitdir:k,oid:F,filepath:L})),await Pg({fs:B,cache:b,gitdir:k,oid:F})}l(jg,"bk"),e(jg,"_readBlob");async function Cg({fs:B,dir:b,gitdir:k=a.join(b,".git"),oid:F,filepath:L,cache:$={}}){try{return Ue("fs",B),Ue("gitdir",k),Ue("oid",F),await jg({fs:new mt(B),cache:$,gitdir:k,oid:F,filepath:L})}catch(K){throw K.caller="git.readBlob",K}}l(Cg,"_k"),e(Cg,"readBlob");async function tu({fs:B,dir:b,gitdir:k=a.join(b,".git"),oid:F,cache:L={}}){try{return Ue("fs",B),Ue("gitdir",k),Ue("oid",F),await no({fs:new mt(B),cache:L,gitdir:k,oid:F})}catch($){throw $.caller="git.readCommit",$}}l(tu,"vv"),e(tu,"readCommit");async function HA({fs:B,cache:b,gitdir:k,ref:F="refs/notes/commits",oid:L}){let $=await et.resolve({gitdir:k,fs:B,ref:F}),{blob:K}=await jg({fs:B,cache:b,gitdir:k,oid:$,filepath:L});return K}l(HA,"jK"),e(HA,"_readNote");async function Lg({fs:B,dir:b,gitdir:k=a.join(b,".git"),ref:F="refs/notes/commits",oid:L,cache:$={}}){try{return Ue("fs",B),Ue("gitdir",k),Ue("ref",F),Ue("oid",L),await HA({fs:new mt(B),cache:$,gitdir:k,ref:F,oid:L})}catch(K){throw K.caller="git.readNote",K}}l(Lg,"Ek"),e(Lg,"readNote");async function Ng({fs:B,dir:b,gitdir:k=a.join(b,".git"),oid:F,format:L="parsed",filepath:$=void 0,encoding:K=void 0,cache:ne={}}){try{Ue("fs",B),Ue("gitdir",k),Ue("oid",F);let _e=new mt(B);$!==void 0&&(F=await za({fs:_e,cache:ne,gitdir:k,oid:F,filepath:$}));let ce=await $t({fs:_e,cache:ne,gitdir:k,oid:F,format:L==="parsed"?"content":L});if(ce.oid=F,L==="parsed")switch(ce.format="parsed",ce.type){case"commit":ce.object=on.from(ce.object).parse();break;case"tree":ce.object=rn.from(ce.object).entries();break;case"blob":K?ce.object=ce.object.toString(K):(ce.object=new Uint8Array(ce.object),ce.format="content");break;case"tag":ce.object=fn.from(ce.object).parse();break;default:throw new Ie(ce.oid,ce.type,"blob|commit|tag|tree")}else(ce.format==="deflated"||ce.format==="wrapped")&&(ce.type=ce.format);return ce}catch(_e){throw _e.caller="git.readObject",_e}}l(Ng,"Sk"),e(Ng,"readObject");async function qA({fs:B,cache:b,gitdir:k,oid:F}){let{type:L,object:$}=await $t({fs:B,cache:b,gitdir:k,oid:F,format:"content"});if(L!=="tag")throw new Ie(F,L,"tag");let K=fn.from($);return{oid:F,tag:K.parse(),payload:K.payload()}}l(qA,"HK"),e(qA,"_readTag");async function Dg({fs:B,dir:b,gitdir:k=a.join(b,".git"),oid:F,cache:L={}}){try{return Ue("fs",B),Ue("gitdir",k),Ue("oid",F),await qA({fs:new mt(B),cache:L,gitdir:k,oid:F})}catch($){throw $.caller="git.readTag",$}}l(Dg,"Ak"),e(Dg,"readTag");async function Ug({fs:B,dir:b,gitdir:k=a.join(b,".git"),oid:F,filepath:L=void 0,cache:$={}}){try{return Ue("fs",B),Ue("gitdir",k),Ue("oid",F),await io({fs:new mt(B),cache:$,gitdir:k,oid:F,filepath:L})}catch(K){throw K.caller="git.readTree",K}}l(Ug,"Rk"),e(Ug,"readTree");async function Mg({fs:B,dir:b,gitdir:k=a.join(b,".git"),filepath:F,cache:L={}}){try{Ue("fs",B),Ue("gitdir",k),Ue("filepath",F),await Q.acquire({fs:new mt(B),gitdir:k,cache:L},async function($){$.delete({filepath:F})})}catch($){throw $.caller="git.remove",$}}l(Mg,"Tk"),e(Mg,"remove");async function GA({fs:B,cache:b,onSign:k,gitdir:F,ref:L="refs/notes/commits",oid:$,author:K,committer:ne,signingKey:_e}){let ce;try{ce=await et.resolve({gitdir:F,fs:B,ref:L})}catch(je){if(!(je instanceof ge))throw je}let he=(await io({fs:B,gitdir:F,oid:ce||"4b825dc642cb6eb9a060e54bf8d69288fbee4904"})).tree;he=he.filter(je=>je.path!==$);let Be=await Ha({fs:B,gitdir:F,tree:he});return await ul({fs:B,cache:b,onSign:k,gitdir:F,ref:L,tree:Be,parent:ce&&[ce],message:`Note removed by 'isomorphic-git removeNote'
|
|
109
|
+
`,author:K,committer:ne,signingKey:_e})}l(GA,"WK"),e(GA,"_removeNote");async function $g({fs:B,onSign:b,dir:k,gitdir:F=a.join(k,".git"),ref:L="refs/notes/commits",oid:$,author:K,committer:ne,signingKey:_e,cache:ce={}}){try{Ue("fs",B),Ue("gitdir",F),Ue("oid",$);let he=new mt(B),Be=await Kn({fs:he,gitdir:F,author:K});if(!Be)throw new Dr("author");let je=await ro({fs:he,gitdir:F,author:Be,committer:ne});if(!je)throw new Dr("committer");return await GA({fs:he,cache:ce,onSign:b,gitdir:F,ref:L,oid:$,author:Be,committer:je,signingKey:_e})}catch(he){throw he.caller="git.removeNote",he}}l($g,"Fk"),e($g,"removeNote");async function VA({fs:B,gitdir:b,oldref:k,ref:F,checkout:L=!1}){if(!d(F,!0))throw new Gn(F,h.clean(F));if(!d(k,!0))throw new Gn(k,h.clean(k));let $=`refs/heads/${k}`,K=`refs/heads/${F}`;if(await et.exists({fs:B,gitdir:b,ref:K}))throw new qn("branch",F,!1);let ne=await et.resolve({fs:B,gitdir:b,ref:$,depth:1});await et.writeRef({fs:B,gitdir:b,ref:K,value:ne}),await et.deleteRef({fs:B,gitdir:b,ref:$});let _e=await Jn({fs:B,gitdir:b,fullname:!0})===$;(L||_e)&&await et.writeSymbolicRef({fs:B,gitdir:b,ref:"HEAD",value:K})}l(VA,"qK"),e(VA,"_renameBranch");async function Wg({fs:B,dir:b,gitdir:k=a.join(b,".git"),ref:F,oldref:L,checkout:$=!1}){try{return Ue("fs",B),Ue("gitdir",k),Ue("ref",F),Ue("oldref",L),await VA({fs:new mt(B),gitdir:k,ref:F,oldref:L,checkout:$})}catch(K){throw K.caller="git.renameBranch",K}}l(Wg,"xk"),e(Wg,"renameBranch");async function zg({gitdir:B,type:b,object:k}){return de(Da.wrap({type:b,object:k}))}l(zg,"Ok"),e(zg,"hashObject$1");async function Hg({fs:B,dir:b,gitdir:k=a.join(b,".git"),filepath:F,ref:L,cache:$={}}){try{Ue("fs",B),Ue("gitdir",k),Ue("filepath",F);let K=new mt(B),ne,_e;try{ne=await et.resolve({fs:K,gitdir:k,ref:L||"HEAD"})}catch(Be){if(L)throw Be}if(ne)try{ne=await za({fs:K,cache:$,gitdir:k,oid:ne,filepath:F})}catch{ne=null}let ce={ctime:new Date(0),mtime:new Date(0),dev:0,ino:0,mode:0,uid:0,gid:0,size:0},he=b&&await K.read(a.join(b,F));he&&(_e=await zg({gitdir:k,type:"blob",object:he}),ne===_e&&(ce=await K.lstat(a.join(b,F)))),await Q.acquire({fs:K,gitdir:k,cache:$},async function(Be){Be.delete({filepath:F}),ne&&Be.insert({filepath:F,stats:ce,oid:ne})})}catch(K){throw K.caller="git.reset",K}}l(Hg,"Pk"),e(Hg,"resetIndex");async function qg({fs:B,dir:b,gitdir:k=a.join(b,".git"),ref:F,depth:L}){try{return Ue("fs",B),Ue("gitdir",k),Ue("ref",F),await et.resolve({fs:new mt(B),gitdir:k,ref:F,depth:L})}catch($){throw $.caller="git.resolveRef",$}}l(qg,"Ik"),e(qg,"resolveRef");async function Gg({fs:B,dir:b,gitdir:k=a.join(b,".git"),path:F,value:L,append:$=!1}){try{Ue("fs",B),Ue("gitdir",k),Ue("path",F);let K=new mt(B),ne=await ht.get({fs:K,gitdir:k});$?await ne.append(F,L):await ne.set(F,L),await ht.save({fs:K,gitdir:k,config:ne})}catch(K){throw K.caller="git.setConfig",K}}l(Gg,"kk"),e(Gg,"setConfig");async function Vg({fs:B,gitdir:b,commit:k}){let F=on.from(k).toObject();return await Tr({fs:B,gitdir:b,type:"commit",object:F,format:"content"})}l(Vg,"Bk"),e(Vg,"_writeCommit");var KA=(Go=class{static get timezoneOffsetForRefLogEntry(){let b=new Date().getTimezoneOffset(),k=Math.abs(Math.floor(b/60)),F=Math.abs(b%60).toString().padStart(2,"0");return`${b>0?"-":"+"}${k.toString().padStart(2,"0")}${F}`}static createStashReflogEntry(b,k,F){let L=b.name.replace(/\s/g,""),$="0000000000000000000000000000000000000000",K=Math.floor(Date.now()/1e3),ne=Go.timezoneOffsetForRefLogEntry;return`${$} ${k} ${L} ${b.email} ${K} ${ne} ${F}
|
|
110
|
+
`}static getStashReflogEntry(b,k=!1){return b.split(`
|
|
111
|
+
`).filter(F=>F).reverse().map((F,L)=>k?`stash@{${L}}: ${F.split(" ")[1]}`:F)}},l(Go,"Td"),Go);e(KA,"GitRefStash");var JA=KA,sL={stage:Oe,workdir:to},Kg;async function ao(B,b){return Kg===void 0&&(Kg=new f),Kg.acquire(B,b)}l(ao,"zs"),e(ao,"acquireLock$1");async function YA(B,b,k,F,L=null){let $=a.join(k,F),K=await B.lstat($);if(!K)throw new ge($);if(K.isDirectory())throw new O(`${$}: file expected, but found directory`);let ne=L?await Jd({fs:B,gitdir:b,oid:L}):void 0,_e=ne?L:void 0;return ne||await ao({fs:B,gitdir:b,currentFilepath:$},async()=>{let ce=K.isSymbolicLink()?await B.readlink($).then(Ep):await B.read($);if(ce===null)throw new ge($);_e=await Tr({fs:B,gitdir:b,type:"blob",object:ce})}),_e}l(YA,"VK"),e(YA,"checkAndWriteBlob");async function ZA({fs:B,dir:b,gitdir:k,entries:F}){async function L($){if($.type==="tree"){if(!$.oid){let K=await Promise.all($.children.map(L));$.oid=await Ha({fs:B,gitdir:k,tree:K}),$.mode=16384}}else $.type==="blob"&&($.oid=await YA(B,k,b,$.path,$.oid),$.mode=33188);return $.path=$.path.split("/").pop(),$}return l(L,"a"),e(L,"processTreeEntry"),Promise.all(F.map(L))}l(ZA,"GK"),e(ZA,"processTreeEntries");async function Jg({fs:B,dir:b,gitdir:k,treePair:F}){let L=F[1]==="stage",$=F.map(ce=>typeof ce=="string"?sL[ce]():ce),K=[],ne=await Vn({fs:B,cache:{},dir:b,gitdir:k,trees:$,map:e(async(ce,[he,Be])=>{if(!(ce==="."||await $a.isIgnored({fs:B,dir:b,gitdir:k,filepath:ce}))&&Be)return(!he||await he.oid()!==await Be.oid()&&await Be.oid()!==void 0)&&K.push([he,Be]),{mode:await Be.mode(),path:ce,oid:await Be.oid(),type:await Be.type()}},"map"),reduce:e(async(ce,he)=>(he=he.filter(Boolean),ce?(ce.children=he,ce):he.length>0?he:void 0),"reduce"),iterate:e(async(ce,he)=>{let Be=[];for(let je of he){let[Me,ze]=je;L?ze&&(await B.exists(`${b}/${ze.toString()}`)?Be.push(je):K.push([null,ze])):Me&&(ze?Be.push(je):K.push([Me,null]))}return Be.length?Promise.all(Be.map(ce)):[]},"iterate")});if(K.length===0||ne.length===0)return null;let _e=(await ZA({fs:B,dir:b,gitdir:k,entries:ne})).filter(Boolean).map(ce=>({mode:ce.mode,path:ce.path,oid:ce.oid,type:ce.type}));return Ha({fs:B,gitdir:k,tree:_e})}l(Jg,"tI"),e(Jg,"writeTreeChanges");async function QA({fs:B,dir:b,gitdir:k,stashCommit:F,parentCommit:L,wasStaged:$}){let K=[],ne=[],_e=await Vn({fs:B,cache:{},dir:b,gitdir:k,trees:[Ur({ref:L}),Ur({ref:F})],map:e(async(ce,[he,Be])=>{if(ce==="."||await $a.isIgnored({fs:B,dir:b,gitdir:k,filepath:ce}))return;let je=Be?await Be.type():await he.type();if(je!=="tree"&&je!=="blob")return;if(!Be&&he){let ze=je==="tree"?"rmdir":"rm";return je==="tree"&&K.push(ce),je==="blob"&&$&&ne.push({filepath:ce,oid:await he.oid()}),{method:ze,filepath:ce}}let Me=await Be.oid();if(!he||await he.oid()!==Me)return je==="tree"?{method:"mkdir",filepath:ce}:($&&ne.push({filepath:ce,oid:Me,stats:await B.lstat(a.join(b,ce))}),{method:"write",filepath:ce,oid:Me})},"map")});await ao({fs:B,gitdir:k,dirRemoved:K,ops:_e},async()=>{for(let ce of _e){let he=a.join(b,ce.filepath);switch(ce.method){case"rmdir":await B.rmdir(he);break;case"mkdir":await B.mkdir(he);break;case"rm":await B.rm(he);break;case"write":if(!K.some(Be=>he.startsWith(Be))){let{object:Be}=await $t({fs:B,cache:{},gitdir:k,oid:ce.oid});await B.exists(he)&&await B.rm(he),await B.write(he,Be)}break}}}),await Q.acquire({fs:B,gitdir:k,cache:{}},async ce=>{ne.forEach(({filepath:he,stats:Be,oid:je})=>{ce.insert({filepath:he,stats:Be,oid:je})})})}l(QA,"YK"),e(QA,"applyTreeChanges");var XA=(Zn=class{constructor({fs:b,dir:k,gitdir:F=a.join(k,".git")}){Object.assign(this,{fs:b,dir:k,gitdir:F,_author:null})}static get refStash(){return"refs/stash"}static get refLogsStash(){return"logs/refs/stash"}get refStashPath(){return a.join(this.gitdir,Zn.refStash)}get refLogsStashPath(){return a.join(this.gitdir,Zn.refLogsStash)}async getAuthor(){if(!this._author&&(this._author=await Kn({fs:this.fs,gitdir:this.gitdir,author:{}}),!this._author))throw new Dr("author");return this._author}async getStashSHA(b,k){return await this.fs.exists(this.refStashPath)?(k||await this.readStashReflogs({parsed:!1}))[b].split(" ")[1]:null}async writeStashCommit({message:b,tree:k,parent:F}){return Vg({fs:this.fs,gitdir:this.gitdir,commit:{message:b,tree:k,parent:F,author:await this.getAuthor(),committer:await this.getAuthor()}})}async readStashCommit(b){let k=await this.readStashReflogs({parsed:!1});if(b!==0&&(b<0||b>k.length-1))throw new Gn(`stash@${b}`,"number that is in range of [0, num of stash pushed]");let F=await this.getStashSHA(b,k);return F?no({fs:this.fs,cache:{},gitdir:this.gitdir,oid:F}):{}}async writeStashRef(b){return et.writeRef({fs:this.fs,gitdir:this.gitdir,ref:Zn.refStash,value:b})}async writeStashReflogEntry({stashCommit:b,message:k}){let F=await this.getAuthor(),L=JA.createStashReflogEntry(F,b,k),$=this.refLogsStashPath;await ao({filepath:$,entry:L},async()=>{let K=await this.fs.exists($)?await this.fs.read($,"utf8"):"";await this.fs.write($,K+L,"utf8")})}async readStashReflogs({parsed:b=!1}){if(!await this.fs.exists(this.refLogsStashPath))return[];let k=await this.fs.read(this.refLogsStashPath,"utf8");return JA.getStashReflogEntry(k,b)}},l(Zn,"Ps"),Zn);e(XA,"GitStashManager");var dl=XA;async function Yg({fs:B,dir:b,gitdir:k,message:F=""}){let L=new dl({fs:B,dir:b,gitdir:k});await L.getAuthor();let $=await Jn({fs:B,gitdir:k,fullname:!1}),K=await et.resolve({fs:B,gitdir:k,ref:"HEAD"}),ne=(await tu({fs:B,dir:b,gitdir:k,oid:K})).commit.message,_e=[K],ce=null,he=Ur({ref:"HEAD"}),Be=await Jg({fs:B,dir:b,gitdir:k,treePair:[Ur({ref:"HEAD"}),"stage"]});if(Be){let ze=await L.writeStashCommit({message:`stash-Index: WIP on ${$} - ${new Date().toISOString()}`,tree:Be,parent:_e});_e.push(ze),ce=Be,he=Oe()}let je=await Jg({fs:B,dir:b,gitdir:k,treePair:[he,"workdir"]});if(je){let ze=await L.writeStashCommit({message:`stash-WorkDir: WIP on ${$} - ${new Date().toISOString()}`,tree:je,parent:[_e[_e.length-1]]});_e.push(ze),ce=je}if(!ce||!Be&&!je)throw new ge("changes, nothing to stash");let Me=(F.trim()||`WIP on ${$}`)+`: ${K.substring(0,7)} ${ne}`;return{stashCommit:await L.writeStashCommit({message:Me,tree:ce,parent:_e}),stashMsg:Me,branch:$,stashMgr:L}}l(Yg,"Ck"),e(Yg,"_createStashCommit");async function eR({fs:B,dir:b,gitdir:k,message:F=""}){let{stashCommit:L,stashMsg:$,branch:K,stashMgr:ne}=await Yg({fs:B,dir:b,gitdir:k,message:F});return await ne.writeStashRef(L),await ne.writeStashReflogEntry({stashCommit:L,message:$}),await qf({fs:B,dir:b,gitdir:k,ref:K,track:!1,force:!0}),L}l(eR,"KK"),e(eR,"_stashPush");async function tR({fs:B,dir:b,gitdir:k,message:F=""}){let{stashCommit:L}=await Yg({fs:B,dir:b,gitdir:k,message:F});return L}l(tR,"XK"),e(tR,"_stashCreate");async function Zg({fs:B,dir:b,gitdir:k,refIdx:F=0}){let L=await new dl({fs:B,dir:b,gitdir:k}).readStashCommit(F),{parent:$=null}=L.commit?L.commit:{};if(!(!$||!Array.isArray($)))for(let K=0;K<$.length-1;K++){let ne=(await no({fs:B,cache:{},gitdir:k,oid:$[K+1]})).commit.message.startsWith("stash-Index");await QA({fs:B,dir:b,gitdir:k,stashCommit:$[K+1],parentCommit:$[K],wasStaged:ne})}}l(Zg,"Lk"),e(Zg,"_stashApply");async function Qg({fs:B,dir:b,gitdir:k,refIdx:F=0}){let L=new dl({fs:B,dir:b,gitdir:k});if(!(await L.readStashCommit(F)).commit)return;let $=L.refStashPath;await ao($,async()=>{await B.exists($)&&await B.rm($)});let K=await L.readStashReflogs({parsed:!1});if(!K.length)return;K.splice(F,1);let ne=L.refLogsStashPath;await ao({reflogEntries:K,stashReflogPath:ne,stashMgr:L},async()=>{if(K.length){await B.write(ne,K.reverse().join(`
|
|
112
|
+
`)+`
|
|
113
|
+
`,"utf8");let _e=K[K.length-1].split(" ")[1];await L.writeStashRef(_e)}else await B.rm(ne)})}l(Qg,"Nk"),e(Qg,"_stashDrop");async function rR({fs:B,dir:b,gitdir:k}){return new dl({fs:B,dir:b,gitdir:k}).readStashReflogs({parsed:!0})}l(rR,"JK"),e(rR,"_stashList");async function nR({fs:B,dir:b,gitdir:k}){let F=new dl({fs:B,dir:b,gitdir:k}),L=[F.refStashPath,F.refLogsStashPath];await ao(L,async()=>{await Promise.all(L.map(async $=>{if(await B.exists($))return B.rm($)}))})}l(nR,"ZK"),e(nR,"_stashClear");async function iR({fs:B,dir:b,gitdir:k,refIdx:F=0}){await Zg({fs:B,dir:b,gitdir:k,refIdx:F}),await Qg({fs:B,dir:b,gitdir:k,refIdx:F})}l(iR,"QK"),e(iR,"_stashPop");async function Xg({fs:B,dir:b,gitdir:k=a.join(b,".git"),op:F="push",message:L="",refIdx:$=0}){Ue("fs",B),Ue("dir",b),Ue("gitdir",k),Ue("op",F);let K={push:eR,apply:Zg,drop:Qg,list:rR,clear:nR,pop:iR,create:tR},ne=["apply","drop","pop"];try{let _e=new mt(B);["refs","logs","logs/refs"].map(he=>a.join(k,he)).forEach(async he=>{await _e.exists(he)||await _e.mkdir(he)});let ce=K[F];if(ce){if(ne.includes(F)&&$<0)throw new Gn(`stash@${$}`,"number that is in range of [0, num of stash pushed]");return await ce({fs:_e,dir:b,gitdir:k,message:L,refIdx:$})}throw new Error(`To be implemented: ${F}`)}catch(_e){throw _e.caller="git.stash",_e}}l(Xg,"Dk"),e(Xg,"stash");async function ey({fs:B,dir:b,gitdir:k=a.join(b,".git"),filepath:F,cache:L={}}){try{Ue("fs",B),Ue("gitdir",k),Ue("filepath",F);let $=new mt(B);if(await $a.isIgnored({fs:$,gitdir:k,dir:b,filepath:F}))return"ignored";let K=await oR({fs:$,cache:L,gitdir:k}),ne=await ty({fs:$,cache:L,gitdir:k,tree:K,path:F}),_e=await Q.acquire({fs:$,gitdir:k,cache:L},async function(ze){for(let Ye of ze)if(Ye.path===F)return Ye;return null}),ce=await $.lstat(a.join(b,F)),he=ne!==null,Be=_e!==null,je=ce!==null,Me=e(async()=>{if(Be&&!te(_e,ce))return _e.oid;{let ze=await $.read(a.join(b,F)),Ye=await zg({gitdir:k,type:"blob",object:ze});return Be&&_e.oid===Ye&&ce.size!==-1&&Q.acquire({fs:$,gitdir:k,cache:L},async function(rt){rt.insert({filepath:F,stats:ce,oid:Ye})}),Ye}},"getWorkdirOid");if(!he&&!je&&!Be)return"absent";if(!he&&!je&&Be)return"*absent";if(!he&&je&&!Be)return"*added";if(!he&&je&&Be)return await Me()===_e.oid?"added":"*added";if(he&&!je&&!Be)return"deleted";if(he&&!je&&Be)return _e.oid,"*deleted";if(he&&je&&!Be)return await Me()===ne?"*undeleted":"*undeletemodified";if(he&&je&&Be){let ze=await Me();return ze===ne?ze===_e.oid?"unmodified":"*unmodified":ze===_e.oid?"modified":"*modified"}}catch($){throw $.caller="git.status",$}}l(ey,"$k"),e(ey,"status");async function ty({fs:B,cache:b,gitdir:k,tree:F,path:L}){typeof L=="string"&&(L=L.split("/"));let $=L.shift();for(let K of F)if(K.path===$){if(L.length===0)return K.oid;let{type:ne,object:_e}=await $t({fs:B,cache:b,gitdir:k,oid:K.oid});if(ne==="tree"){let ce=rn.from(_e);return ty({fs:B,cache:b,gitdir:k,tree:ce,path:L})}if(ne==="blob")throw new Ie(K.oid,ne,"blob",L.join("/"))}return null}l(ty,"Mk"),e(ty,"getOidAtPath");async function oR({fs:B,cache:b,gitdir:k}){let F;try{F=await et.resolve({fs:B,gitdir:k,ref:"HEAD"})}catch($){if($ instanceof ge)return[]}let{tree:L}=await io({fs:B,cache:b,gitdir:k,oid:F});return L}l(oR,"eX"),e(oR,"getHeadTree");async function ry({fs:B,dir:b,gitdir:k=a.join(b,".git"),ref:F="HEAD",filepaths:L=["."],filter:$,cache:K={},ignored:ne=!1}){try{Ue("fs",B),Ue("gitdir",k),Ue("ref",F);let _e=new mt(B);return await Vn({fs:_e,cache:K,dir:b,gitdir:k,trees:[Ur({ref:F}),to(),Oe()],map:e(async function(ce,[he,Be,je]){if(!he&&!je&&Be&&!ne&&await $a.isIgnored({fs:_e,dir:b,filepath:ce})||!L.some(pt=>QS(ce,pt)))return null;if($&&!$(ce))return;let[Me,ze,Ye]=await Promise.all([he&&he.type(),Be&&Be.type(),je&&je.type()]),rt=[Me,ze,Ye].includes("blob");if((Me==="tree"||Me==="special")&&!rt)return;if(Me==="commit")return null;if((ze==="tree"||ze==="special")&&!rt)return;if(Ye==="commit")return null;if((Ye==="tree"||Ye==="special")&&!rt)return;let ot=Me==="blob"?await he.oid():void 0,it=Ye==="blob"?await je.oid():void 0,ft;Me!=="blob"&&ze==="blob"&&Ye!=="blob"?ft="42":ze==="blob"&&(ft=await Be.oid());let gt=[void 0,ot,ft,it],yt=gt.map(pt=>gt.indexOf(pt));return yt.shift(),[ce,...yt]},"map")})}catch(_e){throw _e.caller="git.statusMatrix",_e}}l(ry,"Uk"),e(ry,"statusMatrix");async function ny({fs:B,dir:b,gitdir:k=a.join(b,".git"),ref:F,object:L,force:$=!1}){try{Ue("fs",B),Ue("gitdir",k),Ue("ref",F);let K=new mt(B);if(F===void 0)throw new nn("ref");F=F.startsWith("refs/tags/")?F:`refs/tags/${F}`;let ne=await et.resolve({fs:K,gitdir:k,ref:L||"HEAD"});if(!$&&await et.exists({fs:K,gitdir:k,ref:F}))throw new qn("tag",F);await et.writeRef({fs:K,gitdir:k,ref:F,value:ne})}catch(K){throw K.caller="git.tag",K}}l(ny,"jk"),e(ny,"tag");async function iy({fs:B,dir:b,gitdir:k=a.join(b,".git"),cache:F={},filepath:L,oid:$,mode:K,add:ne,remove:_e,force:ce}){try{Ue("fs",B),Ue("gitdir",k),Ue("filepath",L);let he=new mt(B);if(_e)return await Q.acquire({fs:he,gitdir:k,cache:F},async function(je){if(!ce){let Me=await he.lstat(a.join(b,L));if(Me){if(Me.isDirectory())throw new Ua("directory");return}}je.has({filepath:L})&&je.delete({filepath:L})});let Be;if(!$){if(Be=await he.lstat(a.join(b,L)),!Be)throw new ge(`file at "${L}" on disk and "remove" not set`);if(Be.isDirectory())throw new Ua("directory")}return await Q.acquire({fs:he,gitdir:k,cache:F},async function(je){if(!ne&&!je.has({filepath:L}))throw new ge(`file at "${L}" in index and "add" not set`);let Me;if($)Me={ctime:new Date(0),mtime:new Date(0),dev:0,ino:0,mode:K,uid:0,gid:0,size:0};else{Me=Be;let ze=Me.isSymbolicLink()?await he.readlink(a.join(b,L)):await he.read(a.join(b,L));$=await Tr({fs:he,gitdir:k,type:"blob",format:"content",object:ze})}return je.insert({filepath:L,oid:$,stats:Me}),$})}catch(he){throw he.caller="git.updateIndex",he}}l(iy,"Hk"),e(iy,"updateIndex$1");function oy(){try{return Yf.version}catch(B){throw B.caller="git.version",B}}l(oy,"Wk"),e(oy,"version");async function ay({fs:B,dir:b,gitdir:k=a.join(b,".git"),trees:F,map:L,reduce:$,iterate:K,cache:ne={}}){try{return Ue("fs",B),Ue("gitdir",k),Ue("trees",F),await Vn({fs:new mt(B),cache:ne,dir:b,gitdir:k,trees:F,map:L,reduce:$,iterate:K})}catch(_e){throw _e.caller="git.walk",_e}}l(ay,"qk"),e(ay,"walk");async function sy({fs:B,dir:b,gitdir:k=a.join(b,".git"),blob:F}){try{return Ue("fs",B),Ue("gitdir",k),Ue("blob",F),await Tr({fs:new mt(B),gitdir:k,type:"blob",object:F,format:"content"})}catch(L){throw L.caller="git.writeBlob",L}}l(sy,"zk"),e(sy,"writeBlob");async function ly({fs:B,dir:b,gitdir:k=a.join(b,".git"),commit:F}){try{return Ue("fs",B),Ue("gitdir",k),Ue("commit",F),await Vg({fs:new mt(B),gitdir:k,commit:F})}catch(L){throw L.caller="git.writeCommit",L}}l(ly,"Vk"),e(ly,"writeCommit");async function fy({fs:B,dir:b,gitdir:k=a.join(b,".git"),type:F,object:L,format:$="parsed",oid:K,encoding:ne=void 0}){try{let _e=new mt(B);if($==="parsed"){switch(F){case"commit":L=on.from(L).toObject();break;case"tree":L=rn.from(L).toObject();break;case"blob":L=Buffer.from(L,ne);break;case"tag":L=fn.from(L).toObject();break;default:throw new Ie(K||"",F,"blob|commit|tag|tree")}$="content"}return K=await Tr({fs:_e,gitdir:k,type:F,object:L,oid:K,format:$}),K}catch(_e){throw _e.caller="git.writeObject",_e}}l(fy,"Gk"),e(fy,"writeObject");async function uy({fs:B,dir:b,gitdir:k=a.join(b,".git"),ref:F,value:L,force:$=!1,symbolic:K=!1}){try{Ue("fs",B),Ue("gitdir",k),Ue("ref",F),Ue("value",L);let ne=new mt(B);if(!d(F,!0))throw new Gn(F,h.clean(F));if(!$&&await et.exists({fs:ne,gitdir:k,ref:F}))throw new qn("ref",F);K?await et.writeSymbolicRef({fs:ne,gitdir:k,ref:F,value:L}):(L=await et.resolve({fs:ne,gitdir:k,ref:L}),await et.writeRef({fs:ne,gitdir:k,ref:F,value:L}))}catch(ne){throw ne.caller="git.writeRef",ne}}l(uy,"Yk"),e(uy,"writeRef");async function aR({fs:B,gitdir:b,tag:k}){let F=fn.from(k).toObject();return await Tr({fs:B,gitdir:b,type:"tag",object:F,format:"content"})}l(aR,"tX"),e(aR,"_writeTag");async function cy({fs:B,dir:b,gitdir:k=a.join(b,".git"),tag:F}){try{return Ue("fs",B),Ue("gitdir",k),Ue("tag",F),await aR({fs:new mt(B),gitdir:k,tag:F})}catch(L){throw L.caller="git.writeTag",L}}l(cy,"Kk"),e(cy,"writeTag");async function hy({fs:B,dir:b,gitdir:k=a.join(b,".git"),tree:F}){try{return Ue("fs",B),Ue("gitdir",k),Ue("tree",F),await Ha({fs:new mt(B),gitdir:k,tree:F})}catch(L){throw L.caller="git.writeTree",L}}l(hy,"Xk"),e(hy,"writeTree");var lL={Errors:OS,STAGE:Oe,TREE:Ur,WORKDIR:to,add:Sp,abortMerge:bp,addNote:Tp,addRemote:Bp,annotatedTag:xp,branch:Ip,checkout:qf,clone:zp,commit:Hp,getConfig:ag,getConfigAll:sg,setConfig:Gg,currentBranch:qp,deleteBranch:Gp,deleteRef:Vp,deleteRemote:Kp,deleteTag:Jp,expandOid:Yp,expandRef:Zp,fastForward:tg,fetch:rg,findMergeBase:ng,findRoot:og,getRemoteInfo:lg,getRemoteInfo2:ug,hashBlob:cg,indexPack:hg,init:dg,isDescendent:gg,isIgnored:yg,listBranches:mg,listFiles:bg,listNotes:vg,listRefs:_g,listRemotes:Eg,listServerRefs:Sg,listTags:Ag,log:kg,merge:Tg,packObjects:Bg,pull:xg,push:Ig,readBlob:Cg,readCommit:tu,readNote:Lg,readObject:Ng,readTag:Dg,readTree:Ug,remove:Mg,removeNote:$g,renameBranch:Wg,resetIndex:Hg,updateIndex:iy,resolveRef:qg,status:ey,statusMatrix:ry,tag:ny,version:oy,walk:ay,writeBlob:sy,writeCommit:ly,writeObject:fy,writeRef:uy,writeTag:cy,writeTree:hy,stash:Xg};o.Errors=OS,o.STAGE=Oe,o.TREE=Ur,o.WORKDIR=to,o.abortMerge=bp,o.add=Sp,o.addNote=Tp,o.addRemote=Bp,o.annotatedTag=xp,o.branch=Ip,o.checkout=qf,o.clone=zp,o.commit=Hp,o.currentBranch=qp,o.default=lL,o.deleteBranch=Gp,o.deleteRef=Vp,o.deleteRemote=Kp,o.deleteTag=Jp,o.expandOid=Yp,o.expandRef=Zp,o.fastForward=tg,o.fetch=rg,o.findMergeBase=ng,o.findRoot=og,o.getConfig=ag,o.getConfigAll=sg,o.getRemoteInfo=lg,o.getRemoteInfo2=ug,o.hashBlob=cg,o.indexPack=hg,o.init=dg,o.isDescendent=gg,o.isIgnored=yg,o.listBranches=mg,o.listFiles=bg,o.listNotes=vg,o.listRefs=_g,o.listRemotes=Eg,o.listServerRefs=Sg,o.listTags=Ag,o.log=kg,o.merge=Tg,o.packObjects=Bg,o.pull=xg,o.push=Ig,o.readBlob=Cg,o.readCommit=tu,o.readNote=Lg,o.readObject=Ng,o.readTag=Dg,o.readTree=Ug,o.remove=Mg,o.removeNote=$g,o.renameBranch=Wg,o.resetIndex=Hg,o.resolveRef=qg,o.setConfig=Gg,o.stash=Xg,o.status=ey,o.statusMatrix=ry,o.tag=ny,o.updateIndex=iy,o.version=oy,o.walk=ay,o.writeBlob=sy,o.writeCommit=ly,o.writeObject=fy,o.writeRef=uy,o.writeTag=cy,o.writeTree=hy}),iD=Ge((o,i)=>{i.exports=function(f,p){var a=[];f.on("data",function(n){a.push(n)}),f.once("end",function(){p&&p(null,Buffer.concat(a)),p=null}),f.once("error",function(n){p&&p(n),p=null})}}),oD=Ge(()=>{});function Qi(){return Fv||(Fv=!0,typeof Object.create=="function"?th=e(function(o,i){i&&(o.super_=i,o.prototype=Object.create(i.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}))},"inherits"):th=e(function(o,i){if(i){o.super_=i;var f=e(function(){},"TempCtor");f.prototype=i.prototype,o.prototype=new f,o.prototype.constructor=o}},"inherits")),th}l(Qi,"wa");function It(){It.init.call(this)}l(It,"ot");function Ml(o){if(typeof o!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof o)}l(Ml,"Jd");function cv(o){return o._maxListeners===void 0?It.defaultMaxListeners:o._maxListeners}l(cv,"EC");function By(o,i,f,p){var a,n,r,u;if(Ml(f),(n=o._events)===void 0?(n=o._events=Object.create(null),o._eventsCount=0):(n.newListener!==void 0&&(o.emit("newListener",i,f.listener?f.listener:f),n=o._events),r=n[i]),r===void 0)r=n[i]=f,++o._eventsCount;else if(typeof r=="function"?r=n[i]=p?[f,r]:[r,f]:p?r.unshift(f):r.push(f),(a=cv(o))>0&&r.length>a&&!r.warned){r.warned=!0;var g=new Error("Possible EventEmitter memory leak detected. "+r.length+" "+String(i)+" listeners added. Use emitter.setMaxListeners() to increase limit");g.name="MaxListenersExceededWarning",g.emitter=o,g.type=i,g.count=r.length,u=g,console&&console.warn&&console.warn(u)}return o}l(By,"gB");function mj(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}l(mj,"aX");function xy(o,i,f){var p={fired:!1,wrapFn:void 0,target:o,type:i,listener:f},a=mj.bind(p);return a.listener=f,p.wrapFn=a,a}l(xy,"wB");function Iy(o,i,f){var p=o._events;if(p===void 0)return[];var a=p[i];return a===void 0?[]:typeof a=="function"?f?[a.listener||a]:[a]:f?function(n){for(var r=new Array(n.length),u=0;u<r.length;++u)r[u]=n[u].listener||n[u];return r}(a):hv(a,a.length)}l(Iy,"vB");function Py(o){var i=this._events;if(i!==void 0){var f=i[o];if(typeof f=="function")return 1;if(f!==void 0)return f.length}return 0}l(Py,"bB");function hv(o,i){for(var f=new Array(i),p=0;p<i;++p)f[p]=o[p];return f}l(hv,"SC");function wj(){if(Bv)return Bs;Bv=!0,Bs.byteLength=u,Bs.toByteArray=h,Bs.fromByteArray=y;for(var o=[],i=[],f=typeof Uint8Array<"u"?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,n=p.length;a<n;++a)o[a]=p[a],i[p.charCodeAt(a)]=a;i[45]=62,i[95]=63;function r(w){var _=w.length;if(_%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var S=w.indexOf("=");S===-1&&(S=_);var T=S===_?0:4-S%4;return[S,T]}l(r,"i"),e(r,"getLens");function u(w){var _=r(w),S=_[0],T=_[1];return(S+T)*3/4-T}l(u,"f"),e(u,"byteLength");function g(w,_,S){return(_+S)*3/4-S}l(g,"h"),e(g,"_byteLength");function h(w){var _,S=r(w),T=S[0],O=S[1],E=new f(g(w,T,O)),P=0,A=O>0?T-4:T,x;for(x=0;x<A;x+=4)_=i[w.charCodeAt(x)]<<18|i[w.charCodeAt(x+1)]<<12|i[w.charCodeAt(x+2)]<<6|i[w.charCodeAt(x+3)],E[P++]=_>>16&255,E[P++]=_>>8&255,E[P++]=_&255;return O===2&&(_=i[w.charCodeAt(x)]<<2|i[w.charCodeAt(x+1)]>>4,E[P++]=_&255),O===1&&(_=i[w.charCodeAt(x)]<<10|i[w.charCodeAt(x+1)]<<4|i[w.charCodeAt(x+2)]>>2,E[P++]=_>>8&255,E[P++]=_&255),E}l(h,"c"),e(h,"toByteArray");function d(w){return o[w>>18&63]+o[w>>12&63]+o[w>>6&63]+o[w&63]}l(d,"d"),e(d,"tripletToBase64");function m(w,_,S){for(var T,O=[],E=_;E<S;E+=3)T=(w[E]<<16&16711680)+(w[E+1]<<8&65280)+(w[E+2]&255),O.push(d(T));return O.join("")}l(m,"y"),e(m,"encodeChunk");function y(w){for(var _,S=w.length,T=S%3,O=[],E=16383,P=0,A=S-T;P<A;P+=E)O.push(m(w,P,P+E>A?A:P+E));return T===1?(_=w[S-1],O.push(o[_>>2]+o[_<<4&63]+"==")):T===2&&(_=(w[S-2]<<8)+w[S-1],O.push(o[_>>10]+o[_>>4&63]+o[_<<2&63]+"=")),O.join("")}return l(y,"m"),e(y,"fromByteArray"),Bs}l(wj,"sX");function bj(){return xv||(xv=!0,rh.read=function(o,i,f,p,a){var n,r,u=a*8-p-1,g=(1<<u)-1,h=g>>1,d=-7,m=f?a-1:0,y=f?-1:1,w=o[i+m];for(m+=y,n=w&(1<<-d)-1,w>>=-d,d+=u;d>0;n=n*256+o[i+m],m+=y,d-=8);for(r=n&(1<<-d)-1,n>>=-d,d+=p;d>0;r=r*256+o[i+m],m+=y,d-=8);if(n===0)n=1-h;else{if(n===g)return r?NaN:(w?-1:1)*(1/0);r=r+Math.pow(2,p),n=n-h}return(w?-1:1)*r*Math.pow(2,n-p)},rh.write=function(o,i,f,p,a,n){var r,u,g,h=n*8-a-1,d=(1<<h)-1,m=d>>1,y=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=p?0:n-1,_=p?1:-1,S=i<0||i===0&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(u=isNaN(i)?1:0,r=d):(r=Math.floor(Math.log(i)/Math.LN2),i*(g=Math.pow(2,-r))<1&&(r--,g*=2),r+m>=1?i+=y/g:i+=y*Math.pow(2,1-m),i*g>=2&&(r++,g/=2),r+m>=d?(u=0,r=d):r+m>=1?(u=(i*g-1)*Math.pow(2,a),r=r+m):(u=i*Math.pow(2,m-1)*Math.pow(2,a),r=0));a>=8;o[f+w]=u&255,w+=_,u/=256,a-=8);for(r=r<<a|u,h+=a;h>0;o[f+w]=r&255,w+=_,r/=256,h-=8);o[f+w-_]|=S*128}),rh}l(bj,"lX");function Ca(){if(Iv)return zi;Iv=!0;let o=wj(),i=bj(),f=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;zi.Buffer=r,zi.SlowBuffer=O,zi.INSPECT_MAX_BYTES=50;let p=2147483647;zi.kMaxLength=p,r.TYPED_ARRAY_SUPPORT=a(),!r.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{let t=new Uint8Array(1),s={foo:e(function(){return 42},"foo")};return Object.setPrototypeOf(s,Uint8Array.prototype),Object.setPrototypeOf(t,s),t.foo()===42}catch{return!1}}l(a,"a"),e(a,"typedArraySupport"),Object.defineProperty(r.prototype,"parent",{enumerable:!0,get:e(function(){if(r.isBuffer(this))return this.buffer},"get")}),Object.defineProperty(r.prototype,"offset",{enumerable:!0,get:e(function(){if(r.isBuffer(this))return this.byteOffset},"get")});function n(t){if(t>p)throw new RangeError('The value "'+t+'" is invalid for option "size"');let s=new Uint8Array(t);return Object.setPrototypeOf(s,r.prototype),s}l(n,"s"),e(n,"createBuffer");function r(t,s,c){if(typeof t=="number"){if(typeof s=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(t)}return u(t,s,c)}l(r,"i"),e(r,"Buffer"),r.poolSize=8192;function u(t,s,c){if(typeof t=="string")return m(t,s);if(ArrayBuffer.isView(t))return w(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Ie(t,ArrayBuffer)||t&&Ie(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ie(t,SharedArrayBuffer)||t&&Ie(t.buffer,SharedArrayBuffer)))return _(t,s,c);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let v=t.valueOf&&t.valueOf();if(v!=null&&v!==t)return r.from(v,s,c);let R=S(t);if(R)return R;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return r.from(t[Symbol.toPrimitive]("string"),s,c);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}l(u,"f"),e(u,"from"),r.from=function(t,s,c){return u(t,s,c)},Object.setPrototypeOf(r.prototype,Uint8Array.prototype),Object.setPrototypeOf(r,Uint8Array);function g(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}l(g,"h"),e(g,"assertSize");function h(t,s,c){return g(t),t<=0?n(t):s!==void 0?typeof c=="string"?n(t).fill(s,c):n(t).fill(s):n(t)}l(h,"c"),e(h,"alloc"),r.alloc=function(t,s,c){return h(t,s,c)};function d(t){return g(t),n(t<0?0:T(t)|0)}l(d,"d"),e(d,"allocUnsafe"),r.allocUnsafe=function(t){return d(t)},r.allocUnsafeSlow=function(t){return d(t)};function m(t,s){if((typeof s!="string"||s==="")&&(s="utf8"),!r.isEncoding(s))throw new TypeError("Unknown encoding: "+s);let c=E(t,s)|0,v=n(c),R=v.write(t,s);return R!==c&&(v=v.slice(0,R)),v}l(m,"y"),e(m,"fromString");function y(t){let s=t.length<0?0:T(t.length)|0,c=n(s);for(let v=0;v<s;v+=1)c[v]=t[v]&255;return c}l(y,"m"),e(y,"fromArrayLike");function w(t){if(Ie(t,Uint8Array)){let s=new Uint8Array(t);return _(s.buffer,s.byteOffset,s.byteLength)}return y(t)}l(w,"g"),e(w,"fromArrayView");function _(t,s,c){if(s<0||t.byteLength<s)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<s+(c||0))throw new RangeError('"length" is outside of buffer bounds');let v;return s===void 0&&c===void 0?v=new Uint8Array(t):c===void 0?v=new Uint8Array(t,s):v=new Uint8Array(t,s,c),Object.setPrototypeOf(v,r.prototype),v}l(_,"v"),e(_,"fromArrayBuffer");function S(t){if(r.isBuffer(t)){let s=T(t.length)|0,c=n(s);return c.length===0||t.copy(c,0,0,s),c}if(t.length!==void 0)return typeof t.length!="number"||ke(t.length)?n(0):y(t);if(t.type==="Buffer"&&Array.isArray(t.data))return y(t.data)}l(S,"_"),e(S,"fromObject");function T(t){if(t>=p)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+p.toString(16)+" bytes");return t|0}l(T,"b"),e(T,"checked");function O(t){return+t!=t&&(t=0),r.alloc(+t)}l(O,"E"),e(O,"SlowBuffer"),r.isBuffer=e(function(t){return t!=null&&t._isBuffer===!0&&t!==r.prototype},"isBuffer"),r.compare=e(function(t,s){if(Ie(t,Uint8Array)&&(t=r.from(t,t.offset,t.byteLength)),Ie(s,Uint8Array)&&(s=r.from(s,s.offset,s.byteLength)),!r.isBuffer(t)||!r.isBuffer(s))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===s)return 0;let c=t.length,v=s.length;for(let R=0,C=Math.min(c,v);R<C;++R)if(t[R]!==s[R]){c=t[R],v=s[R];break}return c<v?-1:v<c?1:0},"compare"),r.isEncoding=e(function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},"isEncoding"),r.concat=e(function(t,s){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return r.alloc(0);let c;if(s===void 0)for(s=0,c=0;c<t.length;++c)s+=t[c].length;let v=r.allocUnsafe(s),R=0;for(c=0;c<t.length;++c){let C=t[c];if(Ie(C,Uint8Array))R+C.length>v.length?(r.isBuffer(C)||(C=r.from(C)),C.copy(v,R)):Uint8Array.prototype.set.call(v,C,R);else if(r.isBuffer(C))C.copy(v,R);else throw new TypeError('"list" argument must be an Array of Buffers');R+=C.length}return v},"concat");function E(t,s){if(r.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Ie(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let c=t.length,v=arguments.length>2&&arguments[2]===!0;if(!v&&c===0)return 0;let R=!1;for(;;)switch(s){case"ascii":case"latin1":case"binary":return c;case"utf8":case"utf-8":return Ee(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c*2;case"hex":return c>>>1;case"base64":return ge(t).length;default:if(R)return v?-1:Ee(t).length;s=(""+s).toLowerCase(),R=!0}}l(E,"R"),e(E,"byteLength"),r.byteLength=E;function P(t,s,c){let v=!1;if((s===void 0||s<0)&&(s=0),s>this.length||((c===void 0||c>this.length)&&(c=this.length),c<=0)||(c>>>=0,s>>>=0,c<=s))return"";for(t||(t="utf8");;)switch(t){case"hex":return se(this,s,c);case"utf8":case"utf-8":return ae(this,s,c);case"ascii":return xe(this,s,c);case"latin1":case"binary":return Pe(this,s,c);case"base64":return re(this,s,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Te(this,s,c);default:if(v)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),v=!0}}l(P,"T"),e(P,"slowToString"),r.prototype._isBuffer=!0;function A(t,s,c){let v=t[s];t[s]=t[c],t[c]=v}l(A,"F"),e(A,"swap"),r.prototype.swap16=e(function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let s=0;s<t;s+=2)A(this,s,s+1);return this},"swap16"),r.prototype.swap32=e(function(){let t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let s=0;s<t;s+=4)A(this,s,s+3),A(this,s+1,s+2);return this},"swap32"),r.prototype.swap64=e(function(){let t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let s=0;s<t;s+=8)A(this,s,s+7),A(this,s+1,s+6),A(this,s+2,s+5),A(this,s+3,s+4);return this},"swap64"),r.prototype.toString=e(function(){let t=this.length;return t===0?"":arguments.length===0?ae(this,0,t):P.apply(this,arguments)},"toString"),r.prototype.toLocaleString=r.prototype.toString,r.prototype.equals=e(function(t){if(!r.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:r.compare(this,t)===0},"equals"),r.prototype.inspect=e(function(){let t="",s=zi.INSPECT_MAX_BYTES;return t=this.toString("hex",0,s).replace(/(.{2})/g,"$1 ").trim(),this.length>s&&(t+=" ... "),"<Buffer "+t+">"},"inspect"),f&&(r.prototype[f]=r.prototype.inspect),r.prototype.compare=e(function(t,s,c,v,R){if(Ie(t,Uint8Array)&&(t=r.from(t,t.offset,t.byteLength)),!r.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(s===void 0&&(s=0),c===void 0&&(c=t?t.length:0),v===void 0&&(v=0),R===void 0&&(R=this.length),s<0||c>t.length||v<0||R>this.length)throw new RangeError("out of range index");if(v>=R&&s>=c)return 0;if(v>=R)return-1;if(s>=c)return 1;if(s>>>=0,c>>>=0,v>>>=0,R>>>=0,this===t)return 0;let C=R-v,j=c-s,Z=Math.min(C,j),oe=this.slice(v,R),Ae=t.slice(s,c);for(let le=0;le<Z;++le)if(oe[le]!==Ae[le]){C=oe[le],j=Ae[le];break}return C<j?-1:j<C?1:0},"compare");function x(t,s,c,v,R){if(t.length===0)return-1;if(typeof c=="string"?(v=c,c=0):c>2147483647?c=2147483647:c<-2147483648&&(c=-2147483648),c=+c,ke(c)&&(c=R?0:t.length-1),c<0&&(c=t.length+c),c>=t.length){if(R)return-1;c=t.length-1}else if(c<0)if(R)c=0;else return-1;if(typeof s=="string"&&(s=r.from(s,v)),r.isBuffer(s))return s.length===0?-1:U(t,s,c,v,R);if(typeof s=="number")return s=s&255,typeof Uint8Array.prototype.indexOf=="function"?R?Uint8Array.prototype.indexOf.call(t,s,c):Uint8Array.prototype.lastIndexOf.call(t,s,c):U(t,[s],c,v,R);throw new TypeError("val must be string, number or Buffer")}l(x,"S"),e(x,"bidirectionalIndexOf");function U(t,s,c,v,R){let C=1,j=t.length,Z=s.length;if(v!==void 0&&(v=String(v).toLowerCase(),v==="ucs2"||v==="ucs-2"||v==="utf16le"||v==="utf-16le")){if(t.length<2||s.length<2)return-1;C=2,j/=2,Z/=2,c/=2}function oe(le,Fe){return C===1?le[Fe]:le.readUInt16BE(Fe*C)}l(oe,"re"),e(oe,"read");let Ae;if(R){let le=-1;for(Ae=c;Ae<j;Ae++)if(oe(t,Ae)===oe(s,le===-1?0:Ae-le)){if(le===-1&&(le=Ae),Ae-le+1===Z)return le*C}else le!==-1&&(Ae-=Ae-le),le=-1}else for(c+Z>j&&(c=j-Z),Ae=c;Ae>=0;Ae--){let le=!0;for(let Fe=0;Fe<Z;Fe++)if(oe(t,Ae+Fe)!==oe(s,Fe)){le=!1;break}if(le)return Ae}return-1}l(U,"B"),e(U,"arrayIndexOf"),r.prototype.includes=e(function(t,s,c){return this.indexOf(t,s,c)!==-1},"includes"),r.prototype.indexOf=e(function(t,s,c){return x(this,t,s,c,!0)},"indexOf"),r.prototype.lastIndexOf=e(function(t,s,c){return x(this,t,s,c,!1)},"lastIndexOf");function M(t,s,c,v){c=Number(c)||0;let R=t.length-c;v?(v=Number(v),v>R&&(v=R)):v=R;let C=s.length;v>C/2&&(v=C/2);let j;for(j=0;j<v;++j){let Z=parseInt(s.substr(j*2,2),16);if(ke(Z))return j;t[c+j]=Z}return j}l(M,"P"),e(M,"hexWrite");function ee(t,s,c,v){return Ne(Ee(s,t.length-c),t,c,v)}l(ee,"N"),e(ee,"utf8Write");function V(t,s,c,v){return Ne(Oe(s),t,c,v)}l(V,"L"),e(V,"asciiWrite");function q(t,s,c,v){return Ne(ge(s),t,c,v)}l(q,"C"),e(q,"base64Write");function G(t,s,c,v){return Ne(be(s,t.length-c),t,c,v)}l(G,"j"),e(G,"ucs2Write"),r.prototype.write=e(function(t,s,c,v){if(s===void 0)v="utf8",c=this.length,s=0;else if(c===void 0&&typeof s=="string")v=s,c=this.length,s=0;else if(isFinite(s))s=s>>>0,isFinite(c)?(c=c>>>0,v===void 0&&(v="utf8")):(v=c,c=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let R=this.length-s;if((c===void 0||c>R)&&(c=R),t.length>0&&(c<0||s<0)||s>this.length)throw new RangeError("Attempt to write outside buffer bounds");v||(v="utf8");let C=!1;for(;;)switch(v){case"hex":return M(this,t,s,c);case"utf8":case"utf-8":return ee(this,t,s,c);case"ascii":case"latin1":case"binary":return V(this,t,s,c);case"base64":return q(this,t,s,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,t,s,c);default:if(C)throw new TypeError("Unknown encoding: "+v);v=(""+v).toLowerCase(),C=!0}},"write"),r.prototype.toJSON=e(function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},"toJSON");function re(t,s,c){return s===0&&c===t.length?o.fromByteArray(t):o.fromByteArray(t.slice(s,c))}l(re,"q"),e(re,"base64Slice");function ae(t,s,c){c=Math.min(t.length,c);let v=[],R=s;for(;R<c;){let C=t[R],j=null,Z=C>239?4:C>223?3:C>191?2:1;if(R+Z<=c){let oe,Ae,le,Fe;switch(Z){case 1:C<128&&(j=C);break;case 2:oe=t[R+1],(oe&192)===128&&(Fe=(C&31)<<6|oe&63,Fe>127&&(j=Fe));break;case 3:oe=t[R+1],Ae=t[R+2],(oe&192)===128&&(Ae&192)===128&&(Fe=(C&15)<<12|(oe&63)<<6|Ae&63,Fe>2047&&(Fe<55296||Fe>57343)&&(j=Fe));break;case 4:oe=t[R+1],Ae=t[R+2],le=t[R+3],(oe&192)===128&&(Ae&192)===128&&(le&192)===128&&(Fe=(C&15)<<18|(oe&63)<<12|(Ae&63)<<6|le&63,Fe>65535&&Fe<1114112&&(j=Fe))}}j===null?(j=65533,Z=1):j>65535&&(j-=65536,v.push(j>>>10&1023|55296),j=56320|j&1023),v.push(j),R+=Z}return we(v)}l(ae,"Z"),e(ae,"utf8Slice");let de=4096;function we(t){let s=t.length;if(s<=de)return String.fromCharCode.apply(String,t);let c="",v=0;for(;v<s;)c+=String.fromCharCode.apply(String,t.slice(v,v+=de));return c}l(we,"se"),e(we,"decodeCodePointsArray");function xe(t,s,c){let v="";c=Math.min(t.length,c);for(let R=s;R<c;++R)v+=String.fromCharCode(t[R]&127);return v}l(xe,"_e"),e(xe,"asciiSlice");function Pe(t,s,c){let v="";c=Math.min(t.length,c);for(let R=s;R<c;++R)v+=String.fromCharCode(t[R]);return v}l(Pe,"pe"),e(Pe,"latin1Slice");function se(t,s,c){let v=t.length;(!s||s<0)&&(s=0),(!c||c<0||c>v)&&(c=v);let R="";for(let C=s;C<c;++C)R+=Ce[t[C]];return R}l(se,"Q"),e(se,"hexSlice");function Te(t,s,c){let v=t.slice(s,c),R="";for(let C=0;C<v.length-1;C+=2)R+=String.fromCharCode(v[C]+v[C+1]*256);return R}l(Te,"he"),e(Te,"utf16leSlice"),r.prototype.slice=e(function(t,s){let c=this.length;t=~~t,s=s===void 0?c:~~s,t<0?(t+=c,t<0&&(t=0)):t>c&&(t=c),s<0?(s+=c,s<0&&(s=0)):s>c&&(s=c),s<t&&(s=t);let v=this.subarray(t,s);return Object.setPrototypeOf(v,r.prototype),v},"slice");function J(t,s,c){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+s>c)throw new RangeError("Trying to access beyond buffer length")}l(J,"U"),e(J,"checkOffset"),r.prototype.readUintLE=r.prototype.readUIntLE=e(function(t,s,c){t=t>>>0,s=s>>>0,c||J(t,s,this.length);let v=this[t],R=1,C=0;for(;++C<s&&(R*=256);)v+=this[t+C]*R;return v},"readUIntLE"),r.prototype.readUintBE=r.prototype.readUIntBE=e(function(t,s,c){t=t>>>0,s=s>>>0,c||J(t,s,this.length);let v=this[t+--s],R=1;for(;s>0&&(R*=256);)v+=this[t+--s]*R;return v},"readUIntBE"),r.prototype.readUint8=r.prototype.readUInt8=e(function(t,s){return t=t>>>0,s||J(t,1,this.length),this[t]},"readUInt8"),r.prototype.readUint16LE=r.prototype.readUInt16LE=e(function(t,s){return t=t>>>0,s||J(t,2,this.length),this[t]|this[t+1]<<8},"readUInt16LE"),r.prototype.readUint16BE=r.prototype.readUInt16BE=e(function(t,s){return t=t>>>0,s||J(t,2,this.length),this[t]<<8|this[t+1]},"readUInt16BE"),r.prototype.readUint32LE=r.prototype.readUInt32LE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216},"readUInt32LE"),r.prototype.readUint32BE=r.prototype.readUInt32BE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])},"readUInt32BE"),r.prototype.readBigUInt64LE=$e(e(function(t){t=t>>>0,N(t,"offset");let s=this[t],c=this[t+7];(s===void 0||c===void 0)&&I(t,this.length-8);let v=s+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,R=this[++t]+this[++t]*2**8+this[++t]*2**16+c*2**24;return BigInt(v)+(BigInt(R)<<BigInt(32))},"readBigUInt64LE")),r.prototype.readBigUInt64BE=$e(e(function(t){t=t>>>0,N(t,"offset");let s=this[t],c=this[t+7];(s===void 0||c===void 0)&&I(t,this.length-8);let v=s*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],R=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+c;return(BigInt(v)<<BigInt(32))+BigInt(R)},"readBigUInt64BE")),r.prototype.readIntLE=e(function(t,s,c){t=t>>>0,s=s>>>0,c||J(t,s,this.length);let v=this[t],R=1,C=0;for(;++C<s&&(R*=256);)v+=this[t+C]*R;return R*=128,v>=R&&(v-=Math.pow(2,8*s)),v},"readIntLE"),r.prototype.readIntBE=e(function(t,s,c){t=t>>>0,s=s>>>0,c||J(t,s,this.length);let v=s,R=1,C=this[t+--v];for(;v>0&&(R*=256);)C+=this[t+--v]*R;return R*=128,C>=R&&(C-=Math.pow(2,8*s)),C},"readIntBE"),r.prototype.readInt8=e(function(t,s){return t=t>>>0,s||J(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]},"readInt8"),r.prototype.readInt16LE=e(function(t,s){t=t>>>0,s||J(t,2,this.length);let c=this[t]|this[t+1]<<8;return c&32768?c|4294901760:c},"readInt16LE"),r.prototype.readInt16BE=e(function(t,s){t=t>>>0,s||J(t,2,this.length);let c=this[t+1]|this[t]<<8;return c&32768?c|4294901760:c},"readInt16BE"),r.prototype.readInt32LE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},"readInt32LE"),r.prototype.readInt32BE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},"readInt32BE"),r.prototype.readBigInt64LE=$e(e(function(t){t=t>>>0,N(t,"offset");let s=this[t],c=this[t+7];(s===void 0||c===void 0)&&I(t,this.length-8);let v=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(c<<24);return(BigInt(v)<<BigInt(32))+BigInt(s+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24)},"readBigInt64LE")),r.prototype.readBigInt64BE=$e(e(function(t){t=t>>>0,N(t,"offset");let s=this[t],c=this[t+7];(s===void 0||c===void 0)&&I(t,this.length-8);let v=(s<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(v)<<BigInt(32))+BigInt(this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+c)},"readBigInt64BE")),r.prototype.readFloatLE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),i.read(this,t,!0,23,4)},"readFloatLE"),r.prototype.readFloatBE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),i.read(this,t,!1,23,4)},"readFloatBE"),r.prototype.readDoubleLE=e(function(t,s){return t=t>>>0,s||J(t,8,this.length),i.read(this,t,!0,52,8)},"readDoubleLE"),r.prototype.readDoubleBE=e(function(t,s){return t=t>>>0,s||J(t,8,this.length),i.read(this,t,!1,52,8)},"readDoubleBE");function ue(t,s,c,v,R,C){if(!r.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(s>R||s<C)throw new RangeError('"value" argument is out of bounds');if(c+v>t.length)throw new RangeError("Index out of range")}l(ue,"J"),e(ue,"checkInt"),r.prototype.writeUintLE=r.prototype.writeUIntLE=e(function(t,s,c,v){if(t=+t,s=s>>>0,c=c>>>0,!v){let j=Math.pow(2,8*c)-1;ue(this,t,s,c,j,0)}let R=1,C=0;for(this[s]=t&255;++C<c&&(R*=256);)this[s+C]=t/R&255;return s+c},"writeUIntLE"),r.prototype.writeUintBE=r.prototype.writeUIntBE=e(function(t,s,c,v){if(t=+t,s=s>>>0,c=c>>>0,!v){let j=Math.pow(2,8*c)-1;ue(this,t,s,c,j,0)}let R=c-1,C=1;for(this[s+R]=t&255;--R>=0&&(C*=256);)this[s+R]=t/C&255;return s+c},"writeUIntBE"),r.prototype.writeUint8=r.prototype.writeUInt8=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,1,255,0),this[s]=t&255,s+1},"writeUInt8"),r.prototype.writeUint16LE=r.prototype.writeUInt16LE=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,2,65535,0),this[s]=t&255,this[s+1]=t>>>8,s+2},"writeUInt16LE"),r.prototype.writeUint16BE=r.prototype.writeUInt16BE=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,2,65535,0),this[s]=t>>>8,this[s+1]=t&255,s+2},"writeUInt16BE"),r.prototype.writeUint32LE=r.prototype.writeUInt32LE=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,4,4294967295,0),this[s+3]=t>>>24,this[s+2]=t>>>16,this[s+1]=t>>>8,this[s]=t&255,s+4},"writeUInt32LE"),r.prototype.writeUint32BE=r.prototype.writeUInt32BE=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,4,4294967295,0),this[s]=t>>>24,this[s+1]=t>>>16,this[s+2]=t>>>8,this[s+3]=t&255,s+4},"writeUInt32BE");function te(t,s,c,v,R){ve(s,v,R,t,c,7);let C=Number(s&BigInt(4294967295));t[c++]=C,C=C>>8,t[c++]=C,C=C>>8,t[c++]=C,C=C>>8,t[c++]=C;let j=Number(s>>BigInt(32)&BigInt(4294967295));return t[c++]=j,j=j>>8,t[c++]=j,j=j>>8,t[c++]=j,j=j>>8,t[c++]=j,c}l(te,"z"),e(te,"wrtBigUInt64LE");function X(t,s,c,v,R){ve(s,v,R,t,c,7);let C=Number(s&BigInt(4294967295));t[c+7]=C,C=C>>8,t[c+6]=C,C=C>>8,t[c+5]=C,C=C>>8,t[c+4]=C;let j=Number(s>>BigInt(32)&BigInt(4294967295));return t[c+3]=j,j=j>>8,t[c+2]=j,j=j>>8,t[c+1]=j,j=j>>8,t[c]=j,c+8}l(X,"V"),e(X,"wrtBigUInt64BE"),r.prototype.writeBigUInt64LE=$e(e(function(t,s=0){return te(this,t,s,BigInt(0),BigInt("0xffffffffffffffff"))},"writeBigUInt64LE")),r.prototype.writeBigUInt64BE=$e(e(function(t,s=0){return X(this,t,s,BigInt(0),BigInt("0xffffffffffffffff"))},"writeBigUInt64BE")),r.prototype.writeIntLE=e(function(t,s,c,v){if(t=+t,s=s>>>0,!v){let Z=Math.pow(2,8*c-1);ue(this,t,s,c,Z-1,-Z)}let R=0,C=1,j=0;for(this[s]=t&255;++R<c&&(C*=256);)t<0&&j===0&&this[s+R-1]!==0&&(j=1),this[s+R]=(t/C>>0)-j&255;return s+c},"writeIntLE"),r.prototype.writeIntBE=e(function(t,s,c,v){if(t=+t,s=s>>>0,!v){let Z=Math.pow(2,8*c-1);ue(this,t,s,c,Z-1,-Z)}let R=c-1,C=1,j=0;for(this[s+R]=t&255;--R>=0&&(C*=256);)t<0&&j===0&&this[s+R+1]!==0&&(j=1),this[s+R]=(t/C>>0)-j&255;return s+c},"writeIntBE"),r.prototype.writeInt8=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,1,127,-128),t<0&&(t=255+t+1),this[s]=t&255,s+1},"writeInt8"),r.prototype.writeInt16LE=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,2,32767,-32768),this[s]=t&255,this[s+1]=t>>>8,s+2},"writeInt16LE"),r.prototype.writeInt16BE=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,2,32767,-32768),this[s]=t>>>8,this[s+1]=t&255,s+2},"writeInt16BE"),r.prototype.writeInt32LE=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,4,2147483647,-2147483648),this[s]=t&255,this[s+1]=t>>>8,this[s+2]=t>>>16,this[s+3]=t>>>24,s+4},"writeInt32LE"),r.prototype.writeInt32BE=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[s]=t>>>24,this[s+1]=t>>>16,this[s+2]=t>>>8,this[s+3]=t&255,s+4},"writeInt32BE"),r.prototype.writeBigInt64LE=$e(e(function(t,s=0){return te(this,t,s,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))},"writeBigInt64LE")),r.prototype.writeBigInt64BE=$e(e(function(t,s=0){return X(this,t,s,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))},"writeBigInt64BE"));function ye(t,s,c,v,R,C){if(c+v>t.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("Index out of range")}l(ye,"G"),e(ye,"checkIEEE754");function Re(t,s,c,v,R){return s=+s,c=c>>>0,R||ye(t,s,c,4),i.write(t,s,c,v,23,4),c+4}l(Re,"fe"),e(Re,"writeFloat"),r.prototype.writeFloatLE=e(function(t,s,c){return Re(this,t,s,!0,c)},"writeFloatLE"),r.prototype.writeFloatBE=e(function(t,s,c){return Re(this,t,s,!1,c)},"writeFloatBE");function De(t,s,c,v,R){return s=+s,c=c>>>0,R||ye(t,s,c,8),i.write(t,s,c,v,52,8),c+8}l(De,"be"),e(De,"writeDouble"),r.prototype.writeDoubleLE=e(function(t,s,c){return De(this,t,s,!0,c)},"writeDoubleLE"),r.prototype.writeDoubleBE=e(function(t,s,c){return De(this,t,s,!1,c)},"writeDoubleBE"),r.prototype.copy=e(function(t,s,c,v){if(!r.isBuffer(t))throw new TypeError("argument should be a Buffer");if(c||(c=0),!v&&v!==0&&(v=this.length),s>=t.length&&(s=t.length),s||(s=0),v>0&&v<c&&(v=c),v===c||t.length===0||this.length===0)return 0;if(s<0)throw new RangeError("targetStart out of bounds");if(c<0||c>=this.length)throw new RangeError("Index out of range");if(v<0)throw new RangeError("sourceEnd out of bounds");v>this.length&&(v=this.length),t.length-s<v-c&&(v=t.length-s+c);let R=v-c;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(s,c,v):Uint8Array.prototype.set.call(t,this.subarray(c,v),s),R},"copy"),r.prototype.fill=e(function(t,s,c,v){if(typeof t=="string"){if(typeof s=="string"?(v=s,s=0,c=this.length):typeof c=="string"&&(v=c,c=this.length),v!==void 0&&typeof v!="string")throw new TypeError("encoding must be a string");if(typeof v=="string"&&!r.isEncoding(v))throw new TypeError("Unknown encoding: "+v);if(t.length===1){let C=t.charCodeAt(0);(v==="utf8"&&C<128||v==="latin1")&&(t=C)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(s<0||this.length<s||this.length<c)throw new RangeError("Out of range index");if(c<=s)return this;s=s>>>0,c=c===void 0?this.length:c>>>0,t||(t=0);let R;if(typeof t=="number")for(R=s;R<c;++R)this[R]=t;else{let C=r.isBuffer(t)?t:r.from(t,v),j=C.length;if(j===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(R=0;R<c-s;++R)this[R+s]=C[R%j]}return this},"fill");let Y={};function H(t,s,c){var R;var v;Y[t]=(v=(R=class extends c{constructor(){super(),Object.defineProperty(this,"message",{value:s.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(j){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:j,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}},l(R,"w"),R),e(v,"NodeError"),v)}l(H,"$"),e(H,"E2"),H("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),H("ERR_INVALID_ARG_TYPE",function(t,s){return`The "${t}" argument must be of type number. Received type ${typeof s}`},TypeError),H("ERR_OUT_OF_RANGE",function(t,s,c){let v=`The value of "${t}" is out of range.`,R=c;return Number.isInteger(c)&&Math.abs(c)>2**32?R=Q(String(c)):typeof c=="bigint"&&(R=String(c),(c>BigInt(2)**BigInt(32)||c<-(BigInt(2)**BigInt(32)))&&(R=Q(R)),R+="n"),v+=` It must be ${s}. Received ${R}`,v},RangeError);function Q(t){let s="",c=t.length,v=t[0]==="-"?1:0;for(;c>=v+4;c-=3)s=`_${t.slice(c-3,c)}${s}`;return`${t.slice(0,c)}${s}`}l(Q,"H"),e(Q,"addNumericalSeparator");function fe(t,s,c){N(s,"offset"),(t[s]===void 0||t[s+c]===void 0)&&I(s,t.length-(c+1))}l(fe,"te"),e(fe,"checkBounds");function ve(t,s,c,v,R,C){if(t>c||t<s){let j=typeof s=="bigint"?"n":"",Z;throw s===0||s===BigInt(0)?Z=`>= 0${j} and < 2${j} ** ${(C+1)*8}${j}`:Z=`>= -(2${j} ** ${(C+1)*8-1}${j}) and < 2 ** ${(C+1)*8-1}${j}`,new Y.ERR_OUT_OF_RANGE("value",Z,t)}fe(v,R,C)}l(ve,"oe"),e(ve,"checkIntBI");function N(t,s){if(typeof t!="number")throw new Y.ERR_INVALID_ARG_TYPE(s,"number",t)}l(N,"I"),e(N,"validateNumber");function I(t,s,c){throw Math.floor(t)!==t?(N(t,c),new Y.ERR_OUT_OF_RANGE("offset","an integer",t)):s<0?new Y.ERR_BUFFER_OUT_OF_BOUNDS:new Y.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${s}`,t)}l(I,"x"),e(I,"boundsError");let D=/[^+/0-9A-Za-z-_]/g;function z(t){if(t=t.split("=")[0],t=t.trim().replace(D,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}l(z,"Y"),e(z,"base64clean");function Ee(t,s){s=s||1/0;let c,v=t.length,R=null,C=[];for(let j=0;j<v;++j){if(c=t.charCodeAt(j),c>55295&&c<57344){if(!R){if(c>56319){(s-=3)>-1&&C.push(239,191,189);continue}else if(j+1===v){(s-=3)>-1&&C.push(239,191,189);continue}R=c;continue}if(c<56320){(s-=3)>-1&&C.push(239,191,189),R=c;continue}c=(R-55296<<10|c-56320)+65536}else R&&(s-=3)>-1&&C.push(239,191,189);if(R=null,c<128){if((s-=1)<0)break;C.push(c)}else if(c<2048){if((s-=2)<0)break;C.push(c>>6|192,c&63|128)}else if(c<65536){if((s-=3)<0)break;C.push(c>>12|224,c>>6&63|128,c&63|128)}else if(c<1114112){if((s-=4)<0)break;C.push(c>>18|240,c>>12&63|128,c>>6&63|128,c&63|128)}else throw new Error("Invalid code point")}return C}l(Ee,"ue"),e(Ee,"utf8ToBytes");function Oe(t){let s=[];for(let c=0;c<t.length;++c)s.push(t.charCodeAt(c)&255);return s}l(Oe,"le"),e(Oe,"asciiToBytes");function be(t,s){let c,v,R,C=[];for(let j=0;j<t.length&&!((s-=2)<0);++j)c=t.charCodeAt(j),v=c>>8,R=c%256,C.push(R),C.push(v);return C}l(be,"ee"),e(be,"utf16leToBytes");function ge(t){return o.toByteArray(z(t))}l(ge,"ie"),e(ge,"base64ToBytes");function Ne(t,s,c,v){let R;for(R=0;R<v&&!(R+c>=s.length||R>=t.length);++R)s[R+c]=t[R];return R}l(Ne,"me"),e(Ne,"blitBuffer");function Ie(t,s){return t instanceof s||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===s.name}l(Ie,"ye"),e(Ie,"isInstance");function ke(t){return t!==t}l(ke,"ve"),e(ke,"numberIsNaN");let Ce=function(){let t="0123456789abcdef",s=new Array(256);for(let c=0;c<16;++c){let v=c*16;for(let R=0;R<16;++R)s[v+R]=t[c]+t[R]}return s}();function $e(t){return typeof BigInt>"u"?Ke:t}l($e,"Be"),e($e,"defineBigIntMethod");function Ke(){throw new Error("BigInt not supported")}return l(Ke,"Je"),e(Ke,"BufferBigIntNotDefined"),zi}l(Ca,"il");function Yc(){throw new Error("setTimeout has not been defined")}l(Yc,"bb");function Zc(){throw new Error("clearTimeout has not been defined")}l(Zc,"_b");function dv(o){if(ai===setTimeout)return setTimeout(o,0);if((ai===Yc||!ai)&&setTimeout)return ai=setTimeout,setTimeout(o,0);try{return ai(o,0)}catch{try{return ai.call(null,o,0)}catch{return ai.call(this||_a,o,0)}}}l(dv,"RC");function vj(){Ea&&ha&&(Ea=!1,ha.length?Dn=ha.concat(Dn):of=-1,Dn.length&&pv())}l(vj,"fX");function pv(){if(!Ea){var o=dv(vj);Ea=!0;for(var i=Dn.length;i;){for(ha=Dn,Dn=[];++of<i;)ha&&ha[of].run();of=-1,i=Dn.length}ha=null,Ea=!1,function(f){if(si===clearTimeout)return clearTimeout(f);if((si===Zc||!si)&&clearTimeout)return si=clearTimeout,clearTimeout(f);try{si(f)}catch{try{return si.call(null,f)}catch{return si.call(this||_a,f)}}}(o)}}l(pv,"TC");function jy(o,i){(this||_a).fun=o,(this||_a).array=i}l(jy,"AB");function Sn(){}l(Sn,"di");function Fi(o){return o.call.bind(o)}l(Fi,"va");function nl(o,i){if(typeof o!="object")return!1;try{return i(o),!0}catch{return!1}}l(nl,"au");function Cy(o){return jr&&qr?Zr(o)!==void 0:gv(o)||yv(o)||mv(o)||wv(o)||bv(o)||vv(o)||_v(o)||Ev(o)||Sv(o)||Av(o)||Rv(o)}l(Cy,"TB");function gv(o){return jr&&qr?Zr(o)==="Uint8Array":Jt(o)==="[object Uint8Array]"||Dj(o)&&o.buffer!==void 0}l(gv,"kC");function yv(o){return jr&&qr?Zr(o)==="Uint8ClampedArray":Jt(o)==="[object Uint8ClampedArray]"}l(yv,"BC");function mv(o){return jr&&qr?Zr(o)==="Uint16Array":Jt(o)==="[object Uint16Array]"}l(mv,"CC");function wv(o){return jr&&qr?Zr(o)==="Uint32Array":Jt(o)==="[object Uint32Array]"}l(wv,"LC");function bv(o){return jr&&qr?Zr(o)==="Int8Array":Jt(o)==="[object Int8Array]"}l(bv,"NC");function vv(o){return jr&&qr?Zr(o)==="Int16Array":Jt(o)==="[object Int16Array]"}l(vv,"DC");function _v(o){return jr&&qr?Zr(o)==="Int32Array":Jt(o)==="[object Int32Array]"}l(_v,"$C");function Ev(o){return jr&&qr?Zr(o)==="Float32Array":Jt(o)==="[object Float32Array]"}l(Ev,"MC");function Sv(o){return jr&&qr?Zr(o)==="Float64Array":Jt(o)==="[object Float64Array]"}l(Sv,"UC");function Av(o){return jr&&qr?Zr(o)==="BigInt64Array":Jt(o)==="[object BigInt64Array]"}l(Av,"jC");function Rv(o){return jr&&qr?Zr(o)==="BigUint64Array":Jt(o)==="[object BigUint64Array]"}l(Rv,"HC");function ml(o){return Jt(o)==="[object Map]"}l(ml,"qd");function wl(o){return Jt(o)==="[object Set]"}l(wl,"zd");function bl(o){return Jt(o)==="[object WeakMap]"}l(bl,"Vd");function hu(o){return Jt(o)==="[object WeakSet]"}l(hu,"Hv");function Zl(o){return Jt(o)==="[object ArrayBuffer]"}l(Zl,"tp");function Ly(o){return typeof ArrayBuffer<"u"&&(Zl.working?Zl(o):o instanceof ArrayBuffer)}l(Ly,"FB");function Ql(o){return Jt(o)==="[object DataView]"}l(Ql,"rp");function Ny(o){return typeof DataView<"u"&&(Ql.working?Ql(o):o instanceof DataView)}l(Ny,"xB");function Xl(o){return Jt(o)==="[object SharedArrayBuffer]"}l(Xl,"np");function Dy(o){return typeof SharedArrayBuffer<"u"&&(Xl.working?Xl(o):o instanceof SharedArrayBuffer)}l(Dy,"OB");function Uy(o){return nl(o,Uj)}l(Uy,"PB");function My(o){return nl(o,Mj)}l(My,"IB");function $y(o){return nl(o,$j)}l($y,"kB");function Wy(o){return Pv&&nl(o,FX)}l(Wy,"BB");function zy(o){return nh&&nl(o,xX)}l(zy,"CB");function pi(o,i){var f={seen:[],stylize:Ej};return arguments.length>=3&&(f.depth=arguments[2]),arguments.length>=4&&(f.colors=arguments[3]),dd(i)?f.showHidden=i:i&&Xe._extend(f,i),Ji(f.showHidden)&&(f.showHidden=!1),Ji(f.depth)&&(f.depth=2),Ji(f.colors)&&(f.colors=!1),Ji(f.customInspect)&&(f.customInspect=!0),f.colors&&(f.stylize=_j),wf(f,o,f.depth)}l(pi,"co");function _j(o,i){var f=pi.styles[i];return f?"\x1B["+pi.colors[f][0]+"m"+o+"\x1B["+pi.colors[f][1]+"m":o}l(_j,"PX");function Ej(o,i){return o}l(Ej,"IX");function wf(o,i,f){if(o.customInspect&&i&&nf(i.inspect)&&i.inspect!==Xe.inspect&&(!i.constructor||i.constructor.prototype!==i)){var p=i.inspect(f,o);return tf(p)||(p=wf(o,p,f)),p}var a=function(y,w){if(Ji(w))return y.stylize("undefined","undefined");if(tf(w)){var _="'"+JSON.stringify(w).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return y.stylize(_,"string")}if(kv(w))return y.stylize(""+w,"number");if(dd(w))return y.stylize(""+w,"boolean");if(ef(w))return y.stylize("null","null")}(o,i);if(a)return a;var n=Object.keys(i),r=function(y){var w={};return y.forEach(function(_,S){w[_]=!0}),w}(n);if(o.showHidden&&(n=Object.getOwnPropertyNames(i)),Cs(i)&&(n.indexOf("message")>=0||n.indexOf("description")>=0))return Qc(i);if(n.length===0){if(nf(i)){var u=i.name?": "+i.name:"";return o.stylize("[Function"+u+"]","special")}if(js(i))return o.stylize(RegExp.prototype.toString.call(i),"regexp");if(rf(i))return o.stylize(Date.prototype.toString.call(i),"date");if(Cs(i))return Qc(i)}var g,h="",d=!1,m=["{","}"];return Ov(i)&&(d=!0,m=["[","]"]),nf(i)&&(h=" [Function"+(i.name?": "+i.name:"")+"]"),js(i)&&(h=" "+RegExp.prototype.toString.call(i)),rf(i)&&(h=" "+Date.prototype.toUTCString.call(i)),Cs(i)&&(h=" "+Qc(i)),n.length!==0||d&&i.length!=0?f<0?js(i)?o.stylize(RegExp.prototype.toString.call(i),"regexp"):o.stylize("[Object]","special"):(o.seen.push(i),g=d?function(y,w,_,S,T){for(var O=[],E=0,P=w.length;E<P;++E)a2(w,String(E))?O.push(Xc(y,w,_,S,String(E),!0)):O.push("");return T.forEach(function(A){A.match(/^\d+$/)||O.push(Xc(y,w,_,S,A,!0))}),O}(o,i,f,r,n):n.map(function(y){return Xc(o,i,f,r,y,d)}),o.seen.pop(),function(y,w,_){var S=0;return y.reduce(function(T,O){return S++,O.indexOf(`
|
|
114
|
+
`)>=0&&S++,T+O.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?_[0]+(w===""?"":w+`
|
|
115
|
+
`)+" "+y.join(`,
|
|
116
|
+
`)+" "+_[1]:_[0]+w+" "+y.join(", ")+" "+_[1]}(g,h,m)):m[0]+h+m[1]}l(wf,"ip");function Qc(o){return"["+Error.prototype.toString.call(o)+"]"}l(Qc,"Wv");function Xc(o,i,f,p,a,n){var r,u,g;if((g=Object.getOwnPropertyDescriptor(i,a)||{value:i[a]}).get?u=g.set?o.stylize("[Getter/Setter]","special"):o.stylize("[Getter]","special"):g.set&&(u=o.stylize("[Setter]","special")),a2(p,a)||(r="["+a+"]"),u||(o.seen.indexOf(g.value)<0?(u=ef(f)?wf(o,g.value,null):wf(o,g.value,f-1)).indexOf(`
|
|
117
|
+
`)>-1&&(u=n?u.split(`
|
|
118
|
+
`).map(function(h){return" "+h}).join(`
|
|
119
|
+
`).substr(2):`
|
|
120
|
+
`+u.split(`
|
|
121
|
+
`).map(function(h){return" "+h}).join(`
|
|
122
|
+
`)):u=o.stylize("[Circular]","special")),Ji(r)){if(n&&a.match(/^\d+$/))return u;(r=JSON.stringify(""+a)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(r=r.substr(1,r.length-2),r=o.stylize(r,"name")):(r=r.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),r=o.stylize(r,"string"))}return r+": "+u}l(Xc,"qv");function Ov(o){return Array.isArray(o)}l(Ov,"qC");function dd(o){return typeof o=="boolean"}l(dd,"Ob");function ef(o){return o===null}l(ef,"fp");function kv(o){return typeof o=="number"}l(kv,"zC");function tf(o){return typeof o=="string"}l(tf,"op");function Ji(o){return o===void 0}l(Ji,"ma");function js(o){return ca(o)&&Md(o)==="[object RegExp]"}l(js,"iu");function ca(o){return typeof o=="object"&&o!==null}l(ca,"ol");function rf(o){return ca(o)&&Md(o)==="[object Date]"}l(rf,"ap");function Cs(o){return ca(o)&&(Md(o)==="[object Error]"||o instanceof Error)}l(Cs,"ou");function nf(o){return typeof o=="function"}l(nf,"Qd");function Md(o){return Object.prototype.toString.call(o)}l(Md,"Pb");function eh(o){return o<10?"0"+o.toString(10):o.toString(10)}l(eh,"zv");function pF(){var o=new Date,i=[eh(o.getHours()),eh(o.getMinutes()),eh(o.getSeconds())].join(":");return[o.getDate(),Wj[o.getMonth()],i].join(" ")}l(pF,"BX");function a2(o,i){return Object.prototype.hasOwnProperty.call(o,i)}l(a2,"VC");function gF(o,i){if(!o){var f=new Error("Promise was rejected with a falsy value");f.reason=o,o=f}return i(o)}l(gF,"CX");function pd(o){throw new Error("Node.js process "+o+" is not supported by JSPM core outside of Node.js")}l(pd,"Ib");function Sj(){!Sa||!da||(Sa=!1,da.length?Un=da.concat(Un):af=-1,Un.length&&s2())}l(Sj,"LX");function s2(){if(!Sa){var o=setTimeout(Sj,0);Sa=!0;for(var i=Un.length;i;){for(da=Un,Un=[];++af<i;)da&&da[af].run();af=-1,i=Un.length}da=null,Sa=!1,clearTimeout(o)}}l(s2,"GC");function yF(o){var i=new Array(arguments.length-1);if(arguments.length>1)for(var f=1;f<arguments.length;f++)i[f-1]=arguments[f];Un.push(new Tv(o,i)),Un.length===1&&!Sa&&setTimeout(s2,0)}l(yF,"NX");function Tv(o,i){this.fun=o,this.array=i}l(Tv,"YC");function Er(){}l(Er,"tr");function mF(o){pd("_linkedBinding")}l(mF,"QX");function wF(o){pd("dlopen")}l(wF,"nJ");function bF(){return[]}l(bF,"iJ");function vF(){return[]}l(vF,"oJ");function _F(o,i){if(!o)throw new Error(i||"assertion error")}l(_F,"pJ");function EF(){return!1}l(EF,"wJ");function SF(){return gi.now()/1e3}l(SF,"LJ");function du(o){var i=Math.floor((Date.now()-gi.now())*.001),f=gi.now()*.001,p=Math.floor(f)+i,a=Math.floor(f%1*1e9);return o&&(p=p-o[0],a=a-o[1],a<0&&(p--,a+=ih)),[p,a]}l(du,"Ab");function ti(){return Si}l(ti,"ho");function AF(o){return[]}l(AF,"GJ");function Aj(){if(jv)return oh;jv=!0,oh=o;function o(f,p){if(i("noDeprecation"))return f;var a=!1;function n(){if(!a){if(i("throwDeprecation"))throw new Error(p);i("traceDeprecation")?console.trace(p):console.warn(p),a=!0}return f.apply(this||ah,arguments)}return l(n,"s"),e(n,"deprecated"),n}l(o,"e"),e(o,"deprecate");function i(f){try{if(!ah.localStorage)return!1}catch{return!1}var p=ah.localStorage[f];return p==null?!1:String(p).toLowerCase()==="true"}return l(i,"t"),e(i,"config2"),oh}l(Aj,"YJ");function Rj(){if(Cv)return xs;Cv=!0;var o=Ca(),i=o.Buffer;function f(a,n){for(var r in a)n[r]=a[r]}l(f,"r"),e(f,"copyProps"),i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?xs=o:(f(o,xs),xs.Buffer=p);function p(a,n,r){return i(a,n,r)}return l(p,"n"),e(p,"SafeBuffer"),p.prototype=Object.create(i.prototype),f(i,p),p.from=function(a,n,r){if(typeof a=="number")throw new TypeError("Argument must not be a number");return i(a,n,r)},p.alloc=function(a,n,r){if(typeof a!="number")throw new TypeError("Argument must be a number");var u=i(a);return n!==void 0?typeof r=="string"?u.fill(n,r):u.fill(n):u.fill(0),u},p.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return i(a)},p.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return o.SlowBuffer(a)},xs}l(Rj,"KJ");function RF(){if(Lv)return sh;Lv=!0;var o=Rj().Buffer,i=o.isEncoding||function(O){switch(O=""+O,O&&O.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 f(O){if(!O)return"utf8";for(var E;;)switch(O){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 O;default:if(E)return;O=(""+O).toLowerCase(),E=!0}}l(f,"r"),e(f,"_normalizeEncoding");function p(O){var E=f(O);if(typeof E!="string"&&(o.isEncoding===i||!i(O)))throw new Error("Unknown encoding: "+O);return E||O}l(p,"n"),e(p,"normalizeEncoding"),sh.StringDecoder=a;function a(O){this.encoding=p(O);var E;switch(this.encoding){case"utf16le":this.text=m,this.end=y,E=4;break;case"utf8":this.fillLast=g,E=4;break;case"base64":this.text=w,this.end=_,E=3;break;default:this.write=S,this.end=T;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=o.allocUnsafe(E)}l(a,"a"),e(a,"StringDecoder2"),a.prototype.write=function(O){if(O.length===0)return"";var E,P;if(this.lastNeed){if(E=this.fillLast(O),E===void 0)return"";P=this.lastNeed,this.lastNeed=0}else P=0;return P<O.length?E?E+this.text(O,P):this.text(O,P):E||""},a.prototype.end=d,a.prototype.text=h,a.prototype.fillLast=function(O){if(this.lastNeed<=O.length)return O.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);O.copy(this.lastChar,this.lastTotal-this.lastNeed,0,O.length),this.lastNeed-=O.length};function n(O){return O<=127?0:O>>5===6?2:O>>4===14?3:O>>3===30?4:O>>6===2?-1:-2}l(n,"s"),e(n,"utf8CheckByte");function r(O,E,P){var A=E.length-1;if(A<P)return 0;var x=n(E[A]);return x>=0?(x>0&&(O.lastNeed=x-1),x):--A<P||x===-2?0:(x=n(E[A]),x>=0?(x>0&&(O.lastNeed=x-2),x):--A<P||x===-2?0:(x=n(E[A]),x>=0?(x>0&&(x===2?x=0:O.lastNeed=x-3),x):0))}l(r,"i"),e(r,"utf8CheckIncomplete");function u(O,E,P){if((E[0]&192)!==128)return O.lastNeed=0,"\uFFFD";if(O.lastNeed>1&&E.length>1){if((E[1]&192)!==128)return O.lastNeed=1,"\uFFFD";if(O.lastNeed>2&&E.length>2&&(E[2]&192)!==128)return O.lastNeed=2,"\uFFFD"}}l(u,"f"),e(u,"utf8CheckExtraBytes");function g(O){var E=this.lastTotal-this.lastNeed,P=u(this,O);if(P!==void 0)return P;if(this.lastNeed<=O.length)return O.copy(this.lastChar,E,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);O.copy(this.lastChar,E,0,O.length),this.lastNeed-=O.length}l(g,"h"),e(g,"utf8FillLast");function h(O,E){var P=r(this,O,E);if(!this.lastNeed)return O.toString("utf8",E);this.lastTotal=P;var A=O.length-(P-this.lastNeed);return O.copy(this.lastChar,0,A),O.toString("utf8",E,A)}l(h,"c"),e(h,"utf8Text");function d(O){var E=O&&O.length?this.write(O):"";return this.lastNeed?E+"\uFFFD":E}l(d,"d"),e(d,"utf8End");function m(O,E){if((O.length-E)%2===0){var P=O.toString("utf16le",E);if(P){var A=P.charCodeAt(P.length-1);if(A>=55296&&A<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=O[O.length-2],this.lastChar[1]=O[O.length-1],P.slice(0,-1)}return P}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=O[O.length-1],O.toString("utf16le",E,O.length-1)}l(m,"y"),e(m,"utf16Text");function y(O){var E=O&&O.length?this.write(O):"";if(this.lastNeed){var P=this.lastTotal-this.lastNeed;return E+this.lastChar.toString("utf16le",0,P)}return E}l(y,"m"),e(y,"utf16End");function w(O,E){var P=(O.length-E)%3;return P===0?O.toString("base64",E):(this.lastNeed=3-P,this.lastTotal=3,P===1?this.lastChar[0]=O[O.length-1]:(this.lastChar[0]=O[O.length-2],this.lastChar[1]=O[O.length-1]),O.toString("base64",E,O.length-P))}l(w,"g"),e(w,"base64Text");function _(O){var E=O&&O.length?this.write(O):"";return this.lastNeed?E+this.lastChar.toString("base64",0,3-this.lastNeed):E}l(_,"v"),e(_,"base64End");function S(O){return O.toString(this.encoding)}l(S,"_"),e(S,"simpleWrite");function T(O){return O&&O.length?this.write(O):""}return l(T,"b"),e(T,"simpleEnd"),sh}l(RF,"XJ");function OF(){if(Nv)return lh;Nv=!0;var o=lh={},i,f;function p(){throw new Error("setTimeout has not been defined")}l(p,"n"),e(p,"defaultSetTimout");function a(){throw new Error("clearTimeout has not been defined")}l(a,"a"),e(a,"defaultClearTimeout"),function(){try{typeof setTimeout=="function"?i=setTimeout:i=p}catch{i=p}try{typeof clearTimeout=="function"?f=clearTimeout:f=a}catch{f=a}}();function n(S){if(i===setTimeout)return setTimeout(S,0);if((i===p||!i)&&setTimeout)return i=setTimeout,setTimeout(S,0);try{return i(S,0)}catch{try{return i.call(null,S,0)}catch{return i.call(this||ia,S,0)}}}l(n,"s"),e(n,"runTimeout");function r(S){if(f===clearTimeout)return clearTimeout(S);if((f===a||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(S);try{return f(S)}catch{try{return f.call(null,S)}catch{return f.call(this||ia,S)}}}l(r,"i"),e(r,"runClearTimeout");var u=[],g=!1,h,d=-1;function m(){!g||!h||(g=!1,h.length?u=h.concat(u):d=-1,u.length&&y())}l(m,"y"),e(m,"cleanUpNextTick2");function y(){if(!g){var S=n(m);g=!0;for(var T=u.length;T;){for(h=u,u=[];++d<T;)h&&h[d].run();d=-1,T=u.length}h=null,g=!1,r(S)}}l(y,"m"),e(y,"drainQueue2"),o.nextTick=function(S){var T=new Array(arguments.length-1);if(arguments.length>1)for(var O=1;O<arguments.length;O++)T[O-1]=arguments[O];u.push(new w(S,T)),u.length===1&&!g&&n(y)};function w(S,T){(this||ia).fun=S,(this||ia).array=T}l(w,"g"),e(w,"Item2"),w.prototype.run=function(){(this||ia).fun.apply(null,(this||ia).array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={};function _(){}return l(_,"v"),e(_,"noop2"),o.on=_,o.addListener=_,o.once=_,o.off=_,o.removeListener=_,o.removeAllListeners=_,o.emit=_,o.prependListener=_,o.prependOnceListener=_,o.listeners=function(S){return[]},o.binding=function(S){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(S){throw new Error("process.chdir is not supported")},o.umask=function(){return 0},lh}l(OF,"JJ");function kF(){if(Dv)return fh;Dv=!0;var o=Vt;function i(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}l(i,"t"),e(i,"assertPath");function f(n,r){for(var u="",g=0,h=-1,d=0,m,y=0;y<=n.length;++y){if(y<n.length)m=n.charCodeAt(y);else{if(m===47)break;m=47}if(m===47){if(!(h===y-1||d===1))if(h!==y-1&&d===2){if(u.length<2||g!==2||u.charCodeAt(u.length-1)!==46||u.charCodeAt(u.length-2)!==46){if(u.length>2){var w=u.lastIndexOf("/");if(w!==u.length-1){w===-1?(u="",g=0):(u=u.slice(0,w),g=u.length-1-u.lastIndexOf("/")),h=y,d=0;continue}}else if(u.length===2||u.length===1){u="",g=0,h=y,d=0;continue}}r&&(u.length>0?u+="/..":u="..",g=2)}else u.length>0?u+="/"+n.slice(h+1,y):u=n.slice(h+1,y),g=y-h-1;h=y,d=0}else m===46&&d!==-1?++d:d=-1}return u}l(f,"r"),e(f,"normalizeStringPosix");function p(n,r){var u=r.dir||r.root,g=r.base||(r.name||"")+(r.ext||"");return u?u===r.root?u+g:u+n+g:g}l(p,"n"),e(p,"_format");var a={resolve:e(function(){for(var n="",r=!1,u,g=arguments.length-1;g>=-1&&!r;g--){var h;g>=0?h=arguments[g]:(u===void 0&&(u=o.cwd()),h=u),i(h),h.length!==0&&(n=h+"/"+n,r=h.charCodeAt(0)===47)}return n=f(n,!r),r?n.length>0?"/"+n:"/":n.length>0?n:"."},"resolve"),normalize:e(function(n){if(i(n),n.length===0)return".";var r=n.charCodeAt(0)===47,u=n.charCodeAt(n.length-1)===47;return n=f(n,!r),n.length===0&&!r&&(n="."),n.length>0&&u&&(n+="/"),r?"/"+n:n},"normalize"),isAbsolute:e(function(n){return i(n),n.length>0&&n.charCodeAt(0)===47},"isAbsolute"),join:e(function(){if(arguments.length===0)return".";for(var n,r=0;r<arguments.length;++r){var u=arguments[r];i(u),u.length>0&&(n===void 0?n=u:n+="/"+u)}return n===void 0?".":a.normalize(n)},"join"),relative:e(function(n,r){if(i(n),i(r),n===r||(n=a.resolve(n),r=a.resolve(r),n===r))return"";for(var u=1;u<n.length&&n.charCodeAt(u)===47;++u);for(var g=n.length,h=g-u,d=1;d<r.length&&r.charCodeAt(d)===47;++d);for(var m=r.length,y=m-d,w=h<y?h:y,_=-1,S=0;S<=w;++S){if(S===w){if(y>w){if(r.charCodeAt(d+S)===47)return r.slice(d+S+1);if(S===0)return r.slice(d+S)}else h>w&&(n.charCodeAt(u+S)===47?_=S:S===0&&(_=0));break}var T=n.charCodeAt(u+S),O=r.charCodeAt(d+S);if(T!==O)break;T===47&&(_=S)}var E="";for(S=u+_+1;S<=g;++S)(S===g||n.charCodeAt(S)===47)&&(E.length===0?E+="..":E+="/..");return E.length>0?E+r.slice(d+_):(d+=_,r.charCodeAt(d)===47&&++d,r.slice(d))},"relative"),_makeLong:e(function(n){return n},"_makeLong"),dirname:e(function(n){if(i(n),n.length===0)return".";for(var r=n.charCodeAt(0),u=r===47,g=-1,h=!0,d=n.length-1;d>=1;--d)if(r=n.charCodeAt(d),r===47){if(!h){g=d;break}}else h=!1;return g===-1?u?"/":".":u&&g===1?"//":n.slice(0,g)},"dirname"),basename:e(function(n,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');i(n);var u=0,g=-1,h=!0,d;if(r!==void 0&&r.length>0&&r.length<=n.length){if(r.length===n.length&&r===n)return"";var m=r.length-1,y=-1;for(d=n.length-1;d>=0;--d){var w=n.charCodeAt(d);if(w===47){if(!h){u=d+1;break}}else y===-1&&(h=!1,y=d+1),m>=0&&(w===r.charCodeAt(m)?--m===-1&&(g=d):(m=-1,g=y))}return u===g?g=y:g===-1&&(g=n.length),n.slice(u,g)}else{for(d=n.length-1;d>=0;--d)if(n.charCodeAt(d)===47){if(!h){u=d+1;break}}else g===-1&&(h=!1,g=d+1);return g===-1?"":n.slice(u,g)}},"basename"),extname:e(function(n){i(n);for(var r=-1,u=0,g=-1,h=!0,d=0,m=n.length-1;m>=0;--m){var y=n.charCodeAt(m);if(y===47){if(!h){u=m+1;break}continue}g===-1&&(h=!1,g=m+1),y===46?r===-1?r=m:d!==1&&(d=1):r!==-1&&(d=-1)}return r===-1||g===-1||d===0||d===1&&r===g-1&&r===u+1?"":n.slice(r,g)},"extname"),format:e(function(n){if(n===null||typeof n!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof n);return p("/",n)},"format"),parse:e(function(n){i(n);var r={root:"",dir:"",base:"",ext:"",name:""};if(n.length===0)return r;var u=n.charCodeAt(0),g=u===47,h;g?(r.root="/",h=1):h=0;for(var d=-1,m=0,y=-1,w=!0,_=n.length-1,S=0;_>=h;--_){if(u=n.charCodeAt(_),u===47){if(!w){m=_+1;break}continue}y===-1&&(w=!1,y=_+1),u===46?d===-1?d=_:S!==1&&(S=1):d!==-1&&(S=-1)}return d===-1||y===-1||S===0||S===1&&d===y-1&&d===m+1?y!==-1&&(m===0&&g?r.base=r.name=n.slice(1,y):r.base=r.name=n.slice(m,y)):(m===0&&g?(r.name=n.slice(1,d),r.base=n.slice(1,y)):(r.name=n.slice(m,d),r.base=n.slice(m,y)),r.ext=n.slice(d,y)),m>0?r.dir=n.slice(0,m-1):g&&(r.dir="/"),r},"parse"),sep:"/",delimiter:":",win32:null,posix:null};return a.posix=a,fh=a,fh}l(kF,"ZJ");function Bi(o){throw new RangeError(Hj[o])}l(Bi,"pa");function Hy(o,i){let f=o.split("@"),p="";f.length>1&&(p=f[0]+"@",o=f[1]);let a=function(n,r){let u=[],g=n.length;for(;g--;)u[g]=r(n[g]);return u}((o=o.replace(zj,".")).split("."),i).join(".");return p+a}l(Hy,"HB");function qy(o){let i=[],f=0,p=o.length;for(;f<p;){let a=o.charCodeAt(f++);if(a>=55296&&a<=56319&&f<p){let n=o.charCodeAt(f++);(64512&n)==56320?i.push(((1023&a)<<10)+(1023&n)+65536):(i.push(a),f--)}else i.push(a)}return i}l(qy,"KC");function TF(o,i){return Object.prototype.hasOwnProperty.call(o,i)}l(TF,"iZ");function Qr(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}l(Qr,"Xr");function ds(o,i,f){if(o&&gn.isObject(o)&&o instanceof Qr)return o;var p=new Qr;return p.parse(o,i,f),p}l(ds,"ru");function FF(){if(Mv)return uh;Mv=!0;var o=Gt;function i(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}l(i,"t"),e(i,"assertPath");function f(n,r){for(var u="",g=0,h=-1,d=0,m,y=0;y<=n.length;++y){if(y<n.length)m=n.charCodeAt(y);else{if(m===47)break;m=47}if(m===47){if(!(h===y-1||d===1))if(h!==y-1&&d===2){if(u.length<2||g!==2||u.charCodeAt(u.length-1)!==46||u.charCodeAt(u.length-2)!==46){if(u.length>2){var w=u.lastIndexOf("/");if(w!==u.length-1){w===-1?(u="",g=0):(u=u.slice(0,w),g=u.length-1-u.lastIndexOf("/")),h=y,d=0;continue}}else if(u.length===2||u.length===1){u="",g=0,h=y,d=0;continue}}r&&(u.length>0?u+="/..":u="..",g=2)}else u.length>0?u+="/"+n.slice(h+1,y):u=n.slice(h+1,y),g=y-h-1;h=y,d=0}else m===46&&d!==-1?++d:d=-1}return u}l(f,"r"),e(f,"normalizeStringPosix");function p(n,r){var u=r.dir||r.root,g=r.base||(r.name||"")+(r.ext||"");return u?u===r.root?u+g:u+n+g:g}l(p,"n"),e(p,"_format");var a={resolve:e(function(){for(var n="",r=!1,u,g=arguments.length-1;g>=-1&&!r;g--){var h;g>=0?h=arguments[g]:(u===void 0&&(u=o.cwd()),h=u),i(h),h.length!==0&&(n=h+"/"+n,r=h.charCodeAt(0)===47)}return n=f(n,!r),r?n.length>0?"/"+n:"/":n.length>0?n:"."},"resolve"),normalize:e(function(n){if(i(n),n.length===0)return".";var r=n.charCodeAt(0)===47,u=n.charCodeAt(n.length-1)===47;return n=f(n,!r),n.length===0&&!r&&(n="."),n.length>0&&u&&(n+="/"),r?"/"+n:n},"normalize"),isAbsolute:e(function(n){return i(n),n.length>0&&n.charCodeAt(0)===47},"isAbsolute"),join:e(function(){if(arguments.length===0)return".";for(var n,r=0;r<arguments.length;++r){var u=arguments[r];i(u),u.length>0&&(n===void 0?n=u:n+="/"+u)}return n===void 0?".":a.normalize(n)},"join"),relative:e(function(n,r){if(i(n),i(r),n===r||(n=a.resolve(n),r=a.resolve(r),n===r))return"";for(var u=1;u<n.length&&n.charCodeAt(u)===47;++u);for(var g=n.length,h=g-u,d=1;d<r.length&&r.charCodeAt(d)===47;++d);for(var m=r.length,y=m-d,w=h<y?h:y,_=-1,S=0;S<=w;++S){if(S===w){if(y>w){if(r.charCodeAt(d+S)===47)return r.slice(d+S+1);if(S===0)return r.slice(d+S)}else h>w&&(n.charCodeAt(u+S)===47?_=S:S===0&&(_=0));break}var T=n.charCodeAt(u+S),O=r.charCodeAt(d+S);if(T!==O)break;T===47&&(_=S)}var E="";for(S=u+_+1;S<=g;++S)(S===g||n.charCodeAt(S)===47)&&(E.length===0?E+="..":E+="/..");return E.length>0?E+r.slice(d+_):(d+=_,r.charCodeAt(d)===47&&++d,r.slice(d))},"relative"),_makeLong:e(function(n){return n},"_makeLong"),dirname:e(function(n){if(i(n),n.length===0)return".";for(var r=n.charCodeAt(0),u=r===47,g=-1,h=!0,d=n.length-1;d>=1;--d)if(r=n.charCodeAt(d),r===47){if(!h){g=d;break}}else h=!1;return g===-1?u?"/":".":u&&g===1?"//":n.slice(0,g)},"dirname"),basename:e(function(n,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');i(n);var u=0,g=-1,h=!0,d;if(r!==void 0&&r.length>0&&r.length<=n.length){if(r.length===n.length&&r===n)return"";var m=r.length-1,y=-1;for(d=n.length-1;d>=0;--d){var w=n.charCodeAt(d);if(w===47){if(!h){u=d+1;break}}else y===-1&&(h=!1,y=d+1),m>=0&&(w===r.charCodeAt(m)?--m===-1&&(g=d):(m=-1,g=y))}return u===g?g=y:g===-1&&(g=n.length),n.slice(u,g)}else{for(d=n.length-1;d>=0;--d)if(n.charCodeAt(d)===47){if(!h){u=d+1;break}}else g===-1&&(h=!1,g=d+1);return g===-1?"":n.slice(u,g)}},"basename"),extname:e(function(n){i(n);for(var r=-1,u=0,g=-1,h=!0,d=0,m=n.length-1;m>=0;--m){var y=n.charCodeAt(m);if(y===47){if(!h){u=m+1;break}continue}g===-1&&(h=!1,g=m+1),y===46?r===-1?r=m:d!==1&&(d=1):r!==-1&&(d=-1)}return r===-1||g===-1||d===0||d===1&&r===g-1&&r===u+1?"":n.slice(r,g)},"extname"),format:e(function(n){if(n===null||typeof n!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof n);return p("/",n)},"format"),parse:e(function(n){i(n);var r={root:"",dir:"",base:"",ext:"",name:""};if(n.length===0)return r;var u=n.charCodeAt(0),g=u===47,h;g?(r.root="/",h=1):h=0;for(var d=-1,m=0,y=-1,w=!0,_=n.length-1,S=0;_>=h;--_){if(u=n.charCodeAt(_),u===47){if(!w){m=_+1;break}continue}y===-1&&(w=!1,y=_+1),u===46?d===-1?d=_:S!==1&&(S=1):d!==-1&&(S=-1)}return d===-1||y===-1||S===0||S===1&&d===y-1&&d===m+1?y!==-1&&(m===0&&g?r.base=r.name=n.slice(1,y):r.base=r.name=n.slice(m,y)):(m===0&&g?(r.name=n.slice(1,d),r.base=n.slice(1,y)):(r.name=n.slice(m,d),r.base=n.slice(m,y)),r.ext=n.slice(d,y)),m>0?r.dir=n.slice(0,m-1):g&&(r.dir="/"),r},"parse"),sep:"/",delimiter:":",win32:null,posix:null};return a.posix=a,uh=a,uh}l(FF,"pZ");function BF(o){if(typeof o=="string")o=new URL(o);else if(!(o instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if(o.protocol!=="file:")throw new Deno.errors.InvalidData("invalid url scheme");return gd?Oj(o):kj(o)}l(BF,"TZ");function Oj(o){let i=o.hostname,f=o.pathname;for(let p=0;p<f.length;p++)if(f[p]==="%"){let a=f.codePointAt(p+2)||32;if(f[p+1]==="2"&&a===102||f[p+1]==="5"&&a===99)throw new Deno.errors.InvalidData("must not include encoded \\ or / characters")}if(f=f.replace(Jj,"\\"),f=decodeURIComponent(f),i!=="")return`\\\\${i}${f}`;{let p=f.codePointAt(1)|32,a=f[2];if(p<Vj||p>Kj||a!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return f.slice(1)}}l(Oj,"FZ");function kj(o){if(o.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let i=o.pathname;for(let f=0;f<i.length;f++)if(i[f]==="%"){let p=i.codePointAt(f+2)||32;if(i[f+1]==="2"&&p===102)throw new Deno.errors.InvalidData("must not include encoded / characters")}return decodeURIComponent(i)}l(kj,"xZ");function xF(o){let i=$v.resolve(o),f=o.charCodeAt(o.length-1);(f===Gj||gd&&f===qj)&&i[i.length-1]!==$v.sep&&(i+="/");let p=new URL("file://");return i.includes("%")&&(i=i.replace(Yj,"%25")),!gd&&i.includes("\\")&&(i=i.replace(Zj,"%5C")),i.includes(`
|
|
123
|
+
`)&&(i=i.replace(Qj,"%0A")),i.includes("\r")&&(i=i.replace(Xj,"%0D")),i.includes(" ")&&(i=i.replace(eC,"%09")),p.pathname=i,p}l(xF,"OZ");function IF(o){if(typeof o=="string")o=new URL(o);else if(!(o instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if(o.protocol!=="file:")throw new Deno.errors.InvalidData("invalid url scheme");return yd?Tj(o):Fj(o)}l(IF,"jZ");function Tj(o){let i=o.hostname,f=o.pathname;for(let p=0;p<f.length;p++)if(f[p]==="%"){let a=f.codePointAt(p+2)||32;if(f[p+1]==="2"&&a===102||f[p+1]==="5"&&a===99)throw new Deno.errors.InvalidData("must not include encoded \\ or / characters")}if(f=f.replace(oC,"\\"),f=decodeURIComponent(f),i!=="")return`\\\\${i}${f}`;{let p=f.codePointAt(1)|32,a=f[2];if(p<nC||p>iC||a!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return f.slice(1)}}l(Tj,"HZ");function Fj(o){if(o.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let i=o.pathname;for(let f=0;f<i.length;f++)if(i[f]==="%"){let p=i.codePointAt(f+2)||32;if(i[f+1]==="2"&&p===102)throw new Deno.errors.InvalidData("must not include encoded / characters")}return decodeURIComponent(i)}l(Fj,"WZ");function PF(o){let i=Uv.resolve(o),f=o.charCodeAt(o.length-1);(f===rC||yd&&f===tC)&&i[i.length-1]!==Uv.sep&&(i+="/");let p=new URL("file://");return i.includes("%")&&(i=i.replace(aC,"%25")),!yd&&i.includes("\\")&&(i=i.replace(sC,"%5C")),i.includes(`
|
|
124
|
+
`)&&(i=i.replace(lC,"%0A")),i.includes("\r")&&(i=i.replace(fC,"%0D")),i.includes(" ")&&(i=i.replace(uC,"%09")),p.pathname=i,p}l(PF,"qZ");function l2(){if(Wv)return $r;Wv=!0,$r.fetch=p(Hi.fetch)&&p(Hi.ReadableStream),$r.writableStream=p(Hi.WritableStream),$r.abortController=p(Hi.AbortController);var o;function i(){if(o!==void 0)return o;if(Hi.XMLHttpRequest){o=new Hi.XMLHttpRequest;try{o.open("GET",Hi.XDomainRequest?"/":"https://example.com")}catch{o=null}}else o=null;return o}l(i,"t"),e(i,"getXHR");function f(a){var n=i();if(!n)return!1;try{return n.responseType=a,n.responseType===a}catch{}return!1}l(f,"r"),e(f,"checkTypeSupport"),$r.arraybuffer=$r.fetch||f("arraybuffer"),$r.msstream=!$r.fetch&&f("ms-stream"),$r.mozchunkedarraybuffer=!$r.fetch&&f("moz-chunked-arraybuffer"),$r.overrideMimeType=$r.fetch||(i()?p(i().overrideMimeType):!1);function p(a){return typeof a=="function"}return l(p,"n"),e(p,"isFunction"),o=null,$r}l(l2,"JC");function f2(){return Hv||(Hv=!0,zv=Xr.EventEmitter),zv}l(f2,"ZC");function Bj(){if(qv)return ch;qv=!0;function o(_,S){var T=Object.keys(_);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(_);S&&(O=O.filter(function(E){return Object.getOwnPropertyDescriptor(_,E).enumerable})),T.push.apply(T,O)}return T}l(o,"e"),e(o,"ownKeys");function i(_){for(var S=1;S<arguments.length;S++){var T=arguments[S]!=null?arguments[S]:{};S%2?o(Object(T),!0).forEach(function(O){f(_,O,T[O])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(T)):o(Object(T)).forEach(function(O){Object.defineProperty(_,O,Object.getOwnPropertyDescriptor(T,O))})}return _}l(i,"t"),e(i,"_objectSpread");function f(_,S,T){return S=r(S),S in _?Object.defineProperty(_,S,{value:T,enumerable:!0,configurable:!0,writable:!0}):_[S]=T,_}l(f,"r"),e(f,"_defineProperty");function p(_,S){if(!(_ instanceof S))throw new TypeError("Cannot call a class as a function")}l(p,"n"),e(p,"_classCallCheck");function a(_,S){for(var T=0;T<S.length;T++){var O=S[T];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(_,r(O.key),O)}}l(a,"a"),e(a,"_defineProperties");function n(_,S,T){return S&&a(_.prototype,S),Object.defineProperty(_,"prototype",{writable:!1}),_}l(n,"s"),e(n,"_createClass");function r(_){var S=u(_,"string");return typeof S=="symbol"?S:String(S)}l(r,"i"),e(r,"_toPropertyKey");function u(_,S){if(typeof _!="object"||_===null)return _;var T=_[Symbol.toPrimitive];if(T!==void 0){var O=T.call(_,S||"default");if(typeof O!="object")return O;throw new TypeError("@@toPrimitive must return a primitive value.")}return(S==="string"?String:Number)(_)}l(u,"f"),e(u,"_toPrimitive");var g=Ca(),h=g.Buffer,d=Xe,m=d.inspect,y=m&&m.custom||"inspect";function w(_,S,T){h.prototype.copy.call(_,S,T)}return l(w,"g"),e(w,"copyBuffer"),ch=function(){function _(){p(this,_),this.head=null,this.tail=null,this.length=0}return l(_,"v"),e(_,"BufferList"),n(_,[{key:"push",value:e(function(S){var T={data:S,next:null};this.length>0?this.tail.next=T:this.head=T,this.tail=T,++this.length},"push")},{key:"unshift",value:e(function(S){var T={data:S,next:this.head};this.length===0&&(this.tail=T),this.head=T,++this.length},"unshift")},{key:"shift",value:e(function(){if(this.length!==0){var S=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,S}},"shift")},{key:"clear",value:e(function(){this.head=this.tail=null,this.length=0},"clear")},{key:"join",value:e(function(S){if(this.length===0)return"";for(var T=this.head,O=""+T.data;T=T.next;)O+=S+T.data;return O},"join")},{key:"concat",value:e(function(S){if(this.length===0)return h.alloc(0);for(var T=h.allocUnsafe(S>>>0),O=this.head,E=0;O;)w(O.data,T,E),E+=O.data.length,O=O.next;return T},"concat")},{key:"consume",value:e(function(S,T){var O;return S<this.head.data.length?(O=this.head.data.slice(0,S),this.head.data=this.head.data.slice(S)):S===this.head.data.length?O=this.shift():O=T?this._getString(S):this._getBuffer(S),O},"consume")},{key:"first",value:e(function(){return this.head.data},"first")},{key:"_getString",value:e(function(S){var T=this.head,O=1,E=T.data;for(S-=E.length;T=T.next;){var P=T.data,A=S>P.length?P.length:S;if(A===P.length?E+=P:E+=P.slice(0,S),S-=A,S===0){A===P.length?(++O,T.next?this.head=T.next:this.head=this.tail=null):(this.head=T,T.data=P.slice(A));break}++O}return this.length-=O,E},"_getString")},{key:"_getBuffer",value:e(function(S){var T=h.allocUnsafe(S),O=this.head,E=1;for(O.data.copy(T),S-=O.data.length;O=O.next;){var P=O.data,A=S>P.length?P.length:S;if(P.copy(T,T.length-S,0,A),S-=A,S===0){A===P.length?(++E,O.next?this.head=O.next:this.head=this.tail=null):(this.head=O,O.data=P.slice(A));break}++E}return this.length-=E,T},"_getBuffer")},{key:y,value:e(function(S,T){return m(this,i(i({},T),{},{depth:0,customInspect:!1}))},"value")}]),_}(),ch}l(Bj,"zZ");function u2(){if(Gv)return hh;Gv=!0;var o=Si;function i(u,g){var h=this,d=this._readableState&&this._readableState.destroyed,m=this._writableState&&this._writableState.destroyed;return d||m?(g?g(u):u&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,o.nextTick(n,this,u)):o.nextTick(n,this,u)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(u||null,function(y){!g&&y?h._writableState?h._writableState.errorEmitted?o.nextTick(p,h):(h._writableState.errorEmitted=!0,o.nextTick(f,h,y)):o.nextTick(f,h,y):g?(o.nextTick(p,h),g(y)):o.nextTick(p,h)}),this)}l(i,"t"),e(i,"destroy");function f(u,g){n(u,g),p(u)}l(f,"r"),e(f,"emitErrorAndCloseNT");function p(u){u._writableState&&!u._writableState.emitClose||u._readableState&&!u._readableState.emitClose||u.emit("close")}l(p,"n"),e(p,"emitCloseNT");function a(){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)}l(a,"a"),e(a,"undestroy");function n(u,g){u.emit("error",g)}l(n,"s"),e(n,"emitErrorNT");function r(u,g){var h=u._readableState,d=u._writableState;h&&h.autoDestroy||d&&d.autoDestroy?u.destroy(g):u.emit("error",g)}return l(r,"i"),e(r,"errorOrDestroy"),hh={destroy:i,undestroy:a,errorOrDestroy:r},hh}l(u2,"QC");function La(){if(Vv)return dh;Vv=!0;let o={};function i(r,u,g){var y;g||(g=Error);function h(w,_,S){return typeof u=="string"?u:u(w,_,S)}l(h,"c"),e(h,"getMessage");let d=(y=class extends g{constructor(_,S,T){super(h(_,S,T))}},l(y,"y"),y);e(d,"NodeError");let m=d;m.prototype.name=g.name,m.prototype.code=r,o[r]=m}l(i,"t"),e(i,"createErrorType");function f(r,u){if(Array.isArray(r)){let g=r.length;return r=r.map(h=>String(h)),g>2?`one of ${u} ${r.slice(0,g-1).join(", ")}, or `+r[g-1]:g===2?`one of ${u} ${r[0]} or ${r[1]}`:`of ${u} ${r[0]}`}else return`of ${u} ${String(r)}`}l(f,"r"),e(f,"oneOf");function p(r,u,g){return r.substr(0,u.length)===u}l(p,"n"),e(p,"startsWith");function a(r,u,g){return(g===void 0||g>r.length)&&(g=r.length),r.substring(g-u.length,g)===u}l(a,"a"),e(a,"endsWith");function n(r,u,g){return typeof g!="number"&&(g=0),g+u.length>r.length?!1:r.indexOf(u,g)!==-1}return l(n,"s"),e(n,"includes"),i("ERR_INVALID_OPT_VALUE",function(r,u){return'The value "'+u+'" is invalid for option "'+r+'"'},TypeError),i("ERR_INVALID_ARG_TYPE",function(r,u,g){let h;typeof u=="string"&&p(u,"not ")?(h="must not be",u=u.replace(/^not /,"")):h="must be";let d;if(a(r," argument"))d=`The ${r} ${h} ${f(u,"type")}`;else{let m=n(r,".")?"property":"argument";d=`The "${r}" ${m} ${h} ${f(u,"type")}`}return d+=`. Received type ${typeof g}`,d},TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",function(r){return"The "+r+" method is not implemented"}),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",function(r){return"Cannot call "+r+" after a stream was destroyed"}),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",function(r){return"Unknown encoding: "+r},TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),dh.codes=o,dh}l(La,"al");function c2(){if(Kv)return ph;Kv=!0;var o=La().codes.ERR_INVALID_OPT_VALUE;function i(p,a,n){return p.highWaterMark!=null?p.highWaterMark:a?p[n]:null}l(i,"t"),e(i,"highWaterMarkFrom");function f(p,a,n,r){var u=i(a,r,n);if(u!=null){if(!(isFinite(u)&&Math.floor(u)===u)||u<0){var g=r?n:"highWaterMark";throw new o(g,u)}return Math.floor(u)}return p.objectMode?16:16*1024}return l(f,"r"),e(f,"getHighWaterMark"),ph={getHighWaterMark:f},ph}l(c2,"eL");function h2(){if(Jv)return gh;Jv=!0;var o=Si;gh=V;function i(Y){var H=this;this.next=null,this.entry=null,this.finish=function(){De(H,Y)}}l(i,"t"),e(i,"CorkedRequest");var f;V.WritableState=M;var p={deprecate:Aj()},a=f2(),n=Ca().Buffer,r=(typeof Yv<"u"?Yv:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function u(Y){return n.from(Y)}l(u,"f"),e(u,"_uint8ArrayToBuffer");function g(Y){return n.isBuffer(Y)||Y instanceof r}l(g,"h"),e(g,"_isUint8Array");var h=u2(),d=c2(),m=d.getHighWaterMark,y=La().codes,w=y.ERR_INVALID_ARG_TYPE,_=y.ERR_METHOD_NOT_IMPLEMENTED,S=y.ERR_MULTIPLE_CALLBACK,T=y.ERR_STREAM_CANNOT_PIPE,O=y.ERR_STREAM_DESTROYED,E=y.ERR_STREAM_NULL_VALUES,P=y.ERR_STREAM_WRITE_AFTER_END,A=y.ERR_UNKNOWN_ENCODING,x=h.errorOrDestroy;Qi()(V,a);function U(){}l(U,"B"),e(U,"nop");function M(Y,H,Q){f=f||Fa(),Y=Y||{},typeof Q!="boolean"&&(Q=H instanceof f),this.objectMode=!!Y.objectMode,Q&&(this.objectMode=this.objectMode||!!Y.writableObjectMode),this.highWaterMark=m(this,Y,"writableHighWaterMark",Q),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var fe=Y.decodeStrings===!1;this.decodeStrings=!fe,this.defaultEncoding=Y.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ve){Pe(H,ve)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Y.emitClose!==!1,this.autoDestroy=!!Y.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}l(M,"P"),e(M,"WritableState"),M.prototype.getBuffer=e(function(){for(var Y=this.bufferedRequest,H=[];Y;)H.push(Y),Y=Y.next;return H},"getBuffer"),function(){try{Object.defineProperty(M.prototype,"buffer",{get:p.deprecate(e(function(){return this.getBuffer()},"writableStateBufferGetter"),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var ee;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ee=Function.prototype[Symbol.hasInstance],Object.defineProperty(V,Symbol.hasInstance,{value:e(function(Y){return ee.call(this,Y)?!0:this!==V?!1:Y&&Y._writableState instanceof M},"value")})):ee=e(function(Y){return Y instanceof this},"realHasInstance2");function V(Y){f=f||Fa();var H=this instanceof f;if(!H&&!ee.call(V,this))return new V(Y);this._writableState=new M(Y,this,H),this.writable=!0,Y&&(typeof Y.write=="function"&&(this._write=Y.write),typeof Y.writev=="function"&&(this._writev=Y.writev),typeof Y.destroy=="function"&&(this._destroy=Y.destroy),typeof Y.final=="function"&&(this._final=Y.final)),a.call(this)}l(V,"L"),e(V,"Writable"),V.prototype.pipe=function(){x(this,new T)};function q(Y,H){var Q=new P;x(Y,Q),o.nextTick(H,Q)}l(q,"C"),e(q,"writeAfterEnd");function G(Y,H,Q,fe){var ve;return Q===null?ve=new E:typeof Q!="string"&&!H.objectMode&&(ve=new w("chunk",["string","Buffer"],Q)),ve?(x(Y,ve),o.nextTick(fe,ve),!1):!0}l(G,"j"),e(G,"validChunk"),V.prototype.write=function(Y,H,Q){var fe=this._writableState,ve=!1,N=!fe.objectMode&&g(Y);return N&&!n.isBuffer(Y)&&(Y=u(Y)),typeof H=="function"&&(Q=H,H=null),N?H="buffer":H||(H=fe.defaultEncoding),typeof Q!="function"&&(Q=U),fe.ending?q(this,Q):(N||G(this,fe,Y,Q))&&(fe.pendingcb++,ve=ae(this,fe,N,Y,H,Q)),ve},V.prototype.cork=function(){this._writableState.corked++},V.prototype.uncork=function(){var Y=this._writableState;Y.corked&&(Y.corked--,!Y.writing&&!Y.corked&&!Y.bufferProcessing&&Y.bufferedRequest&&J(this,Y))},V.prototype.setDefaultEncoding=e(function(Y){if(typeof Y=="string"&&(Y=Y.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Y+"").toLowerCase())>-1))throw new A(Y);return this._writableState.defaultEncoding=Y,this},"setDefaultEncoding"),Object.defineProperty(V.prototype,"writableBuffer",{enumerable:!1,get:e(function(){return this._writableState&&this._writableState.getBuffer()},"get2")});function re(Y,H,Q){return!Y.objectMode&&Y.decodeStrings!==!1&&typeof H=="string"&&(H=n.from(H,Q)),H}l(re,"q"),e(re,"decodeChunk"),Object.defineProperty(V.prototype,"writableHighWaterMark",{enumerable:!1,get:e(function(){return this._writableState.highWaterMark},"get2")});function ae(Y,H,Q,fe,ve,N){if(!Q){var I=re(H,fe,ve);fe!==I&&(Q=!0,ve="buffer",fe=I)}var D=H.objectMode?1:fe.length;H.length+=D;var z=H.length<H.highWaterMark;if(z||(H.needDrain=!0),H.writing||H.corked){var Ee=H.lastBufferedRequest;H.lastBufferedRequest={chunk:fe,encoding:ve,isBuf:Q,callback:N,next:null},Ee?Ee.next=H.lastBufferedRequest:H.bufferedRequest=H.lastBufferedRequest,H.bufferedRequestCount+=1}else de(Y,H,!1,D,fe,ve,N);return z}l(ae,"Z"),e(ae,"writeOrBuffer");function de(Y,H,Q,fe,ve,N,I){H.writelen=fe,H.writecb=I,H.writing=!0,H.sync=!0,H.destroyed?H.onwrite(new O("write")):Q?Y._writev(ve,H.onwrite):Y._write(ve,N,H.onwrite),H.sync=!1}l(de,"K"),e(de,"doWrite");function we(Y,H,Q,fe,ve){--H.pendingcb,Q?(o.nextTick(ve,fe),o.nextTick(ye,Y,H),Y._writableState.errorEmitted=!0,x(Y,fe)):(ve(fe),Y._writableState.errorEmitted=!0,x(Y,fe),ye(Y,H))}l(we,"se"),e(we,"onwriteError");function xe(Y){Y.writing=!1,Y.writecb=null,Y.length-=Y.writelen,Y.writelen=0}l(xe,"_e"),e(xe,"onwriteStateUpdate");function Pe(Y,H){var Q=Y._writableState,fe=Q.sync,ve=Q.writecb;if(typeof ve!="function")throw new S;if(xe(Q),H)we(Y,Q,fe,H,ve);else{var N=ue(Q)||Y.destroyed;!N&&!Q.corked&&!Q.bufferProcessing&&Q.bufferedRequest&&J(Y,Q),fe?o.nextTick(se,Y,Q,N,ve):se(Y,Q,N,ve)}}l(Pe,"pe"),e(Pe,"onwrite");function se(Y,H,Q,fe){Q||Te(Y,H),H.pendingcb--,fe(),ye(Y,H)}l(se,"Q"),e(se,"afterWrite");function Te(Y,H){H.length===0&&H.needDrain&&(H.needDrain=!1,Y.emit("drain"))}l(Te,"he"),e(Te,"onwriteDrain");function J(Y,H){H.bufferProcessing=!0;var Q=H.bufferedRequest;if(Y._writev&&Q&&Q.next){var fe=H.bufferedRequestCount,ve=new Array(fe),N=H.corkedRequestsFree;N.entry=Q;for(var I=0,D=!0;Q;)ve[I]=Q,Q.isBuf||(D=!1),Q=Q.next,I+=1;ve.allBuffers=D,de(Y,H,!0,H.length,ve,"",N.finish),H.pendingcb++,H.lastBufferedRequest=null,N.next?(H.corkedRequestsFree=N.next,N.next=null):H.corkedRequestsFree=new i(H),H.bufferedRequestCount=0}else{for(;Q;){var z=Q.chunk,Ee=Q.encoding,Oe=Q.callback,be=H.objectMode?1:z.length;if(de(Y,H,!1,be,z,Ee,Oe),Q=Q.next,H.bufferedRequestCount--,H.writing)break}Q===null&&(H.lastBufferedRequest=null)}H.bufferedRequest=Q,H.bufferProcessing=!1}l(J,"U"),e(J,"clearBuffer"),V.prototype._write=function(Y,H,Q){Q(new _("_write()"))},V.prototype._writev=null,V.prototype.end=function(Y,H,Q){var fe=this._writableState;return typeof Y=="function"?(Q=Y,Y=null,H=null):typeof H=="function"&&(Q=H,H=null),Y!=null&&this.write(Y,H),fe.corked&&(fe.corked=1,this.uncork()),fe.ending||Re(this,fe,Q),this},Object.defineProperty(V.prototype,"writableLength",{enumerable:!1,get:e(function(){return this._writableState.length},"get2")});function ue(Y){return Y.ending&&Y.length===0&&Y.bufferedRequest===null&&!Y.finished&&!Y.writing}l(ue,"J"),e(ue,"needFinish");function te(Y,H){Y._final(function(Q){H.pendingcb--,Q&&x(Y,Q),H.prefinished=!0,Y.emit("prefinish"),ye(Y,H)})}l(te,"z"),e(te,"callFinal");function X(Y,H){!H.prefinished&&!H.finalCalled&&(typeof Y._final=="function"&&!H.destroyed?(H.pendingcb++,H.finalCalled=!0,o.nextTick(te,Y,H)):(H.prefinished=!0,Y.emit("prefinish")))}l(X,"V"),e(X,"prefinish");function ye(Y,H){var Q=ue(H);if(Q&&(X(Y,H),H.pendingcb===0&&(H.finished=!0,Y.emit("finish"),H.autoDestroy))){var fe=Y._readableState;(!fe||fe.autoDestroy&&fe.endEmitted)&&Y.destroy()}return Q}l(ye,"G"),e(ye,"finishMaybe");function Re(Y,H,Q){H.ending=!0,ye(Y,H),Q&&(H.finished?o.nextTick(Q):Y.once("finish",Q)),H.ended=!0,Y.writable=!1}l(Re,"fe"),e(Re,"endWritable");function De(Y,H,Q){var fe=Y.entry;for(Y.entry=null;fe;){var ve=fe.callback;H.pendingcb--,ve(Q),fe=fe.next}H.corkedRequestsFree.next=Y}return l(De,"be"),e(De,"onCorkedFinish"),Object.defineProperty(V.prototype,"destroyed",{enumerable:!1,get:e(function(){return this._writableState===void 0?!1:this._writableState.destroyed},"get2"),set:e(function(Y){this._writableState&&(this._writableState.destroyed=Y)},"set")}),V.prototype.destroy=h.destroy,V.prototype._undestroy=h.undestroy,V.prototype._destroy=function(Y,H){H(Y)},gh}l(h2,"tL");function Fa(){if(Zv)return yh;Zv=!0;var o=Si,i=Object.keys||function(d){var m=[];for(var y in d)m.push(y);return m};yh=u;var f=d2(),p=h2();Qi()(u,f);for(var a=i(p.prototype),n=0;n<a.length;n++){var r=a[n];u.prototype[r]||(u.prototype[r]=p.prototype[r])}function u(d){if(!(this instanceof u))return new u(d);f.call(this,d),p.call(this,d),this.allowHalfOpen=!0,d&&(d.readable===!1&&(this.readable=!1),d.writable===!1&&(this.writable=!1),d.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",g)))}l(u,"f"),e(u,"Duplex"),Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:e(function(){return this._writableState.highWaterMark},"get2")}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:e(function(){return this._writableState&&this._writableState.getBuffer()},"get2")}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:e(function(){return this._writableState.length},"get2")});function g(){this._writableState.ended||o.nextTick(h,this)}l(g,"h"),e(g,"onend");function h(d){d.end()}return l(h,"c"),e(h,"onEndNT"),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:e(function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},"get2"),set:e(function(d){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=d,this._writableState.destroyed=d)},"set")}),yh}l(Fa,"nl");function $d(){if(Qv)return mh;Qv=!0;var o=La().codes.ERR_STREAM_PREMATURE_CLOSE;function i(n){var r=!1;return function(){if(!r){r=!0;for(var u=arguments.length,g=new Array(u),h=0;h<u;h++)g[h]=arguments[h];n.apply(this,g)}}}l(i,"t"),e(i,"once2");function f(){}l(f,"r"),e(f,"noop2");function p(n){return n.setHeader&&typeof n.abort=="function"}l(p,"n"),e(p,"isRequest");function a(n,r,u){if(typeof r=="function")return a(n,null,r);r||(r={}),u=i(u||f);var g=r.readable||r.readable!==!1&&n.readable,h=r.writable||r.writable!==!1&&n.writable,d=e(function(){n.writable||y()},"onlegacyfinish2"),m=n._writableState&&n._writableState.finished,y=e(function(){h=!1,m=!0,g||u.call(n)},"onfinish2"),w=n._readableState&&n._readableState.endEmitted,_=e(function(){g=!1,w=!0,h||u.call(n)},"onend2"),S=e(function(E){u.call(n,E)},"onerror2"),T=e(function(){var E;if(g&&!w)return(!n._readableState||!n._readableState.ended)&&(E=new o),u.call(n,E);if(h&&!m)return(!n._writableState||!n._writableState.ended)&&(E=new o),u.call(n,E)},"onclose2"),O=e(function(){n.req.on("finish",y)},"onrequest2");return p(n)?(n.on("complete",y),n.on("abort",T),n.req?O():n.on("request",O)):h&&!n._writableState&&(n.on("end",d),n.on("close",d)),n.on("end",_),n.on("finish",y),r.error!==!1&&n.on("error",S),n.on("close",T),function(){n.removeListener("complete",y),n.removeListener("abort",T),n.removeListener("request",O),n.req&&n.req.removeListener("finish",y),n.removeListener("end",d),n.removeListener("close",d),n.removeListener("finish",y),n.removeListener("end",_),n.removeListener("error",S),n.removeListener("close",T)}}return l(a,"a"),e(a,"eos"),mh=a,mh}l($d,"Bb");function xj(){if(Xv)return wh;Xv=!0;var o=Si,i;function f(A,x,U){return x=p(x),x in A?Object.defineProperty(A,x,{value:U,enumerable:!0,configurable:!0,writable:!0}):A[x]=U,A}l(f,"r"),e(f,"_defineProperty");function p(A){var x=a(A,"string");return typeof x=="symbol"?x:String(x)}l(p,"n"),e(p,"_toPropertyKey");function a(A,x){if(typeof A!="object"||A===null)return A;var U=A[Symbol.toPrimitive];if(U!==void 0){var M=U.call(A,x||"default");if(typeof M!="object")return M;throw new TypeError("@@toPrimitive must return a primitive value.")}return(x==="string"?String:Number)(A)}l(a,"a"),e(a,"_toPrimitive");var n=$d(),r=Symbol("lastResolve"),u=Symbol("lastReject"),g=Symbol("error"),h=Symbol("ended"),d=Symbol("lastPromise"),m=Symbol("handlePromise"),y=Symbol("stream");function w(A,x){return{value:A,done:x}}l(w,"g"),e(w,"createIterResult2");function _(A){var x=A[r];if(x!==null){var U=A[y].read();U!==null&&(A[d]=null,A[r]=null,A[u]=null,x(w(U,!1)))}}l(_,"v"),e(_,"readAndResolve");function S(A){o.nextTick(_,A)}l(S,"_"),e(S,"onReadable");function T(A,x){return function(U,M){A.then(function(){if(x[h]){U(w(void 0,!0));return}x[m](U,M)},M)}}l(T,"b"),e(T,"wrapForNext");var O=Object.getPrototypeOf(function(){}),E=Object.setPrototypeOf((i={get stream(){return this[y]},next:e(function(){var A=this,x=this[g];if(x!==null)return Promise.reject(x);if(this[h])return Promise.resolve(w(void 0,!0));if(this[y].destroyed)return new Promise(function(V,q){o.nextTick(function(){A[g]?q(A[g]):V(w(void 0,!0))})});var U=this[d],M;if(U)M=new Promise(T(U,this));else{var ee=this[y].read();if(ee!==null)return Promise.resolve(w(ee,!1));M=new Promise(this[m])}return this[d]=M,M},"next")},f(i,Symbol.asyncIterator,function(){return this}),f(i,"return",e(function(){var A=this;return new Promise(function(x,U){A[y].destroy(null,function(M){if(M){U(M);return}x(w(void 0,!0))})})},"_return")),i),O),P=e(function(A){var x,U=Object.create(E,(x={},f(x,y,{value:A,writable:!0}),f(x,r,{value:null,writable:!0}),f(x,u,{value:null,writable:!0}),f(x,g,{value:null,writable:!0}),f(x,h,{value:A._readableState.endEmitted,writable:!0}),f(x,m,{value:e(function(M,ee){var V=U[y].read();V?(U[d]=null,U[r]=null,U[u]=null,M(w(V,!1))):(U[r]=M,U[u]=ee)},"value"),writable:!0}),x));return U[d]=null,n(A,function(M){if(M&&M.code!=="ERR_STREAM_PREMATURE_CLOSE"){var ee=U[u];ee!==null&&(U[d]=null,U[r]=null,U[u]=null,ee(M)),U[g]=M;return}var V=U[r];V!==null&&(U[d]=null,U[r]=null,U[u]=null,V(w(void 0,!0))),U[h]=!0}),A.on("readable",S.bind(null,U)),U},"createReadableStreamAsyncIterator2");return wh=P,wh}l(xj,"VZ");function Ij(){return t_||(t_=!0,e_=e(function(){throw new Error("Readable.from is not available in the browser")},"exports$b")),e_}l(Ij,"GZ");function d2(){if(r_)return bh;r_=!0;var o=Si;bh=q;var i;q.ReadableState=V,Xr.EventEmitter;var f=e(function(N,I){return N.listeners(I).length},"EElistenerCount2"),p=f2(),a=Ca().Buffer,n=(typeof n_<"u"?n_:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function r(N){return a.from(N)}l(r,"i"),e(r,"_uint8ArrayToBuffer");function u(N){return a.isBuffer(N)||N instanceof n}l(u,"f"),e(u,"_isUint8Array");var g=Xe,h;g&&g.debuglog?h=g.debuglog("stream"):h=e(function(){},"debug2");var d=Bj(),m=u2(),y=c2(),w=y.getHighWaterMark,_=La().codes,S=_.ERR_INVALID_ARG_TYPE,T=_.ERR_STREAM_PUSH_AFTER_EOF,O=_.ERR_METHOD_NOT_IMPLEMENTED,E=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,P,A,x;Qi()(q,p);var U=m.errorOrDestroy,M=["error","close","destroy","pause","resume"];function ee(N,I,D){if(typeof N.prependListener=="function")return N.prependListener(I,D);!N._events||!N._events[I]?N.on(I,D):Array.isArray(N._events[I])?N._events[I].unshift(D):N._events[I]=[D,N._events[I]]}l(ee,"N"),e(ee,"prependListener2");function V(N,I,D){i=i||Fa(),N=N||{},typeof D!="boolean"&&(D=I instanceof i),this.objectMode=!!N.objectMode,D&&(this.objectMode=this.objectMode||!!N.readableObjectMode),this.highWaterMark=w(this,N,"readableHighWaterMark",D),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=N.emitClose!==!1,this.autoDestroy=!!N.autoDestroy,this.destroyed=!1,this.defaultEncoding=N.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,N.encoding&&(P||(P=sf.StringDecoder),this.decoder=new P(N.encoding),this.encoding=N.encoding)}l(V,"L"),e(V,"ReadableState");function q(N){if(i=i||Fa(),!(this instanceof q))return new q(N);var I=this instanceof i;this._readableState=new V(N,this,I),this.readable=!0,N&&(typeof N.read=="function"&&(this._read=N.read),typeof N.destroy=="function"&&(this._destroy=N.destroy)),p.call(this)}l(q,"C"),e(q,"Readable"),Object.defineProperty(q.prototype,"destroyed",{enumerable:!1,get:e(function(){return this._readableState===void 0?!1:this._readableState.destroyed},"get2"),set:e(function(N){this._readableState&&(this._readableState.destroyed=N)},"set")}),q.prototype.destroy=m.destroy,q.prototype._undestroy=m.undestroy,q.prototype._destroy=function(N,I){I(N)},q.prototype.push=function(N,I){var D=this._readableState,z;return D.objectMode?z=!0:typeof N=="string"&&(I=I||D.defaultEncoding,I!==D.encoding&&(N=a.from(N,I),I=""),z=!0),G(this,N,I,!1,z)},q.prototype.unshift=function(N){return G(this,N,null,!0,!1)};function G(N,I,D,z,Ee){h("readableAddChunk",I);var Oe=N._readableState;if(I===null)Oe.reading=!1,Pe(N,Oe);else{var be;if(Ee||(be=ae(Oe,I)),be)U(N,be);else if(Oe.objectMode||I&&I.length>0)if(typeof I!="string"&&!Oe.objectMode&&Object.getPrototypeOf(I)!==a.prototype&&(I=r(I)),z)Oe.endEmitted?U(N,new E):re(N,Oe,I,!0);else if(Oe.ended)U(N,new T);else{if(Oe.destroyed)return!1;Oe.reading=!1,Oe.decoder&&!D?(I=Oe.decoder.write(I),Oe.objectMode||I.length!==0?re(N,Oe,I,!1):J(N,Oe)):re(N,Oe,I,!1)}else z||(Oe.reading=!1,J(N,Oe))}return!Oe.ended&&(Oe.length<Oe.highWaterMark||Oe.length===0)}l(G,"j"),e(G,"readableAddChunk");function re(N,I,D,z){I.flowing&&I.length===0&&!I.sync?(I.awaitDrain=0,N.emit("data",D)):(I.length+=I.objectMode?1:D.length,z?I.buffer.unshift(D):I.buffer.push(D),I.needReadable&&se(N)),J(N,I)}l(re,"q"),e(re,"addChunk");function ae(N,I){var D;return!u(I)&&typeof I!="string"&&I!==void 0&&!N.objectMode&&(D=new S("chunk",["string","Buffer","Uint8Array"],I)),D}l(ae,"Z"),e(ae,"chunkInvalid"),q.prototype.isPaused=function(){return this._readableState.flowing===!1},q.prototype.setEncoding=function(N){P||(P=sf.StringDecoder);var I=new P(N);this._readableState.decoder=I,this._readableState.encoding=this._readableState.decoder.encoding;for(var D=this._readableState.buffer.head,z="";D!==null;)z+=I.write(D.data),D=D.next;return this._readableState.buffer.clear(),z!==""&&this._readableState.buffer.push(z),this._readableState.length=z.length,this};var de=1073741824;function we(N){return N>=de?N=de:(N--,N|=N>>>1,N|=N>>>2,N|=N>>>4,N|=N>>>8,N|=N>>>16,N++),N}l(we,"se"),e(we,"computeNewHighWaterMark");function xe(N,I){return N<=0||I.length===0&&I.ended?0:I.objectMode?1:N!==N?I.flowing&&I.length?I.buffer.head.data.length:I.length:(N>I.highWaterMark&&(I.highWaterMark=we(N)),N<=I.length?N:I.ended?I.length:(I.needReadable=!0,0))}l(xe,"_e"),e(xe,"howMuchToRead"),q.prototype.read=function(N){h("read",N),N=parseInt(N,10);var I=this._readableState,D=N;if(N!==0&&(I.emittedReadable=!1),N===0&&I.needReadable&&((I.highWaterMark!==0?I.length>=I.highWaterMark:I.length>0)||I.ended))return h("read: emitReadable",I.length,I.ended),I.length===0&&I.ended?Q(this):se(this),null;if(N=xe(N,I),N===0&&I.ended)return I.length===0&&Q(this),null;var z=I.needReadable;h("need readable",z),(I.length===0||I.length-N<I.highWaterMark)&&(z=!0,h("length less than watermark",z)),I.ended||I.reading?(z=!1,h("reading or ended",z)):z&&(h("do read"),I.reading=!0,I.sync=!0,I.length===0&&(I.needReadable=!0),this._read(I.highWaterMark),I.sync=!1,I.reading||(N=xe(D,I)));var Ee;return N>0?Ee=H(N,I):Ee=null,Ee===null?(I.needReadable=I.length<=I.highWaterMark,N=0):(I.length-=N,I.awaitDrain=0),I.length===0&&(I.ended||(I.needReadable=!0),D!==N&&I.ended&&Q(this)),Ee!==null&&this.emit("data",Ee),Ee};function Pe(N,I){if(h("onEofChunk"),!I.ended){if(I.decoder){var D=I.decoder.end();D&&D.length&&(I.buffer.push(D),I.length+=I.objectMode?1:D.length)}I.ended=!0,I.sync?se(N):(I.needReadable=!1,I.emittedReadable||(I.emittedReadable=!0,Te(N)))}}l(Pe,"pe"),e(Pe,"onEofChunk");function se(N){var I=N._readableState;h("emitReadable",I.needReadable,I.emittedReadable),I.needReadable=!1,I.emittedReadable||(h("emitReadable",I.flowing),I.emittedReadable=!0,o.nextTick(Te,N))}l(se,"Q"),e(se,"emitReadable");function Te(N){var I=N._readableState;h("emitReadable_",I.destroyed,I.length,I.ended),!I.destroyed&&(I.length||I.ended)&&(N.emit("readable"),I.emittedReadable=!1),I.needReadable=!I.flowing&&!I.ended&&I.length<=I.highWaterMark,Y(N)}l(Te,"he"),e(Te,"emitReadable_");function J(N,I){I.readingMore||(I.readingMore=!0,o.nextTick(ue,N,I))}l(J,"U"),e(J,"maybeReadMore");function ue(N,I){for(;!I.reading&&!I.ended&&(I.length<I.highWaterMark||I.flowing&&I.length===0);){var D=I.length;if(h("maybeReadMore read 0"),N.read(0),D===I.length)break}I.readingMore=!1}l(ue,"J"),e(ue,"maybeReadMore_"),q.prototype._read=function(N){U(this,new O("_read()"))},q.prototype.pipe=function(N,I){var D=this,z=this._readableState;switch(z.pipesCount){case 0:z.pipes=N;break;case 1:z.pipes=[z.pipes,N];break;default:z.pipes.push(N);break}z.pipesCount+=1,h("pipe count=%d opts=%j",z.pipesCount,I);var Ee=(!I||I.end!==!1)&&N!==o.stdout&&N!==o.stderr,Oe=Ee?ge:s;z.endEmitted?o.nextTick(Oe):D.once("end",Oe),N.on("unpipe",be);function be(c,v){h("onunpipe"),c===D&&v&&v.hasUnpiped===!1&&(v.hasUnpiped=!0,ke())}l(be,"ee"),e(be,"onunpipe");function ge(){h("onend"),N.end()}l(ge,"ie"),e(ge,"onend");var Ne=te(D);N.on("drain",Ne);var Ie=!1;function ke(){h("cleanup"),N.removeListener("close",Ke),N.removeListener("finish",t),N.removeListener("drain",Ne),N.removeListener("error",$e),N.removeListener("unpipe",be),D.removeListener("end",ge),D.removeListener("end",s),D.removeListener("data",Ce),Ie=!0,z.awaitDrain&&(!N._writableState||N._writableState.needDrain)&&Ne()}l(ke,"ve"),e(ke,"cleanup"),D.on("data",Ce);function Ce(c){h("ondata");var v=N.write(c);h("dest.write",v),v===!1&&((z.pipesCount===1&&z.pipes===N||z.pipesCount>1&&ve(z.pipes,N)!==-1)&&!Ie&&(h("false write response, pause",z.awaitDrain),z.awaitDrain++),D.pause())}l(Ce,"Me"),e(Ce,"ondata");function $e(c){h("onerror",c),s(),N.removeListener("error",$e),f(N,"error")===0&&U(N,c)}l($e,"Be"),e($e,"onerror"),ee(N,"error",$e);function Ke(){N.removeListener("finish",t),s()}l(Ke,"Je"),e(Ke,"onclose"),N.once("close",Ke);function t(){h("onfinish"),N.removeListener("close",Ke),s()}l(t,"p"),e(t,"onfinish"),N.once("finish",t);function s(){h("unpipe"),D.unpipe(N)}return l(s,"l"),e(s,"unpipe"),N.emit("pipe",D),z.flowing||(h("pipe resume"),D.resume()),N};function te(N){return e(function(){var I=N._readableState;h("pipeOnDrain",I.awaitDrain),I.awaitDrain&&I.awaitDrain--,I.awaitDrain===0&&f(N,"data")&&(I.flowing=!0,Y(N))},"pipeOnDrainFunctionResult")}l(te,"z"),e(te,"pipeOnDrain"),q.prototype.unpipe=function(N){var I=this._readableState,D={hasUnpiped:!1};if(I.pipesCount===0)return this;if(I.pipesCount===1)return N&&N!==I.pipes?this:(N||(N=I.pipes),I.pipes=null,I.pipesCount=0,I.flowing=!1,N&&N.emit("unpipe",this,D),this);if(!N){var z=I.pipes,Ee=I.pipesCount;I.pipes=null,I.pipesCount=0,I.flowing=!1;for(var Oe=0;Oe<Ee;Oe++)z[Oe].emit("unpipe",this,{hasUnpiped:!1});return this}var be=ve(I.pipes,N);return be===-1?this:(I.pipes.splice(be,1),I.pipesCount-=1,I.pipesCount===1&&(I.pipes=I.pipes[0]),N.emit("unpipe",this,D),this)},q.prototype.on=function(N,I){var D=p.prototype.on.call(this,N,I),z=this._readableState;return N==="data"?(z.readableListening=this.listenerCount("readable")>0,z.flowing!==!1&&this.resume()):N==="readable"&&!z.endEmitted&&!z.readableListening&&(z.readableListening=z.needReadable=!0,z.flowing=!1,z.emittedReadable=!1,h("on readable",z.length,z.reading),z.length?se(this):z.reading||o.nextTick(ye,this)),D},q.prototype.addListener=q.prototype.on,q.prototype.removeListener=function(N,I){var D=p.prototype.removeListener.call(this,N,I);return N==="readable"&&o.nextTick(X,this),D},q.prototype.removeAllListeners=function(N){var I=p.prototype.removeAllListeners.apply(this,arguments);return(N==="readable"||N===void 0)&&o.nextTick(X,this),I};function X(N){var I=N._readableState;I.readableListening=N.listenerCount("readable")>0,I.resumeScheduled&&!I.paused?I.flowing=!0:N.listenerCount("data")>0&&N.resume()}l(X,"V"),e(X,"updateReadableListening");function ye(N){h("readable nexttick read 0"),N.read(0)}l(ye,"G"),e(ye,"nReadingNextTick"),q.prototype.resume=function(){var N=this._readableState;return N.flowing||(h("resume"),N.flowing=!N.readableListening,Re(this,N)),N.paused=!1,this};function Re(N,I){I.resumeScheduled||(I.resumeScheduled=!0,o.nextTick(De,N,I))}l(Re,"fe"),e(Re,"resume");function De(N,I){h("resume",I.reading),I.reading||N.read(0),I.resumeScheduled=!1,N.emit("resume"),Y(N),I.flowing&&!I.reading&&N.read(0)}l(De,"be"),e(De,"resume_"),q.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Y(N){var I=N._readableState;for(h("flow",I.flowing);I.flowing&&N.read()!==null;);}l(Y,"D"),e(Y,"flow"),q.prototype.wrap=function(N){var I=this,D=this._readableState,z=!1;N.on("end",function(){if(h("wrapped end"),D.decoder&&!D.ended){var be=D.decoder.end();be&&be.length&&I.push(be)}I.push(null)}),N.on("data",function(be){if(h("wrapped data"),D.decoder&&(be=D.decoder.write(be)),!(D.objectMode&&be==null)&&!(!D.objectMode&&(!be||!be.length))){var ge=I.push(be);ge||(z=!0,N.pause())}});for(var Ee in N)this[Ee]===void 0&&typeof N[Ee]=="function"&&(this[Ee]=e(function(be){return e(function(){return N[be].apply(N,arguments)},"methodWrapReturnFunction")},"methodWrap")(Ee));for(var Oe=0;Oe<M.length;Oe++)N.on(M[Oe],this.emit.bind(this,M[Oe]));return this._read=function(be){h("wrapped _read",be),z&&(z=!1,N.resume())},this},typeof Symbol=="function"&&(q.prototype[Symbol.asyncIterator]=function(){return A===void 0&&(A=xj()),A(this)}),Object.defineProperty(q.prototype,"readableHighWaterMark",{enumerable:!1,get:e(function(){return this._readableState.highWaterMark},"get2")}),Object.defineProperty(q.prototype,"readableBuffer",{enumerable:!1,get:e(function(){return this._readableState&&this._readableState.buffer},"get2")}),Object.defineProperty(q.prototype,"readableFlowing",{enumerable:!1,get:e(function(){return this._readableState.flowing},"get2"),set:e(function(N){this._readableState&&(this._readableState.flowing=N)},"set")}),q._fromList=H,Object.defineProperty(q.prototype,"readableLength",{enumerable:!1,get:e(function(){return this._readableState.length},"get2")});function H(N,I){if(I.length===0)return null;var D;return I.objectMode?D=I.buffer.shift():!N||N>=I.length?(I.decoder?D=I.buffer.join(""):I.buffer.length===1?D=I.buffer.first():D=I.buffer.concat(I.length),I.buffer.clear()):D=I.buffer.consume(N,I.decoder),D}l(H,"$"),e(H,"fromList");function Q(N){var I=N._readableState;h("endReadable",I.endEmitted),I.endEmitted||(I.ended=!0,o.nextTick(fe,I,N))}l(Q,"H"),e(Q,"endReadable");function fe(N,I){if(h("endReadableNT",N.endEmitted,N.length),!N.endEmitted&&N.length===0&&(N.endEmitted=!0,I.readable=!1,I.emit("end"),N.autoDestroy)){var D=I._writableState;(!D||D.autoDestroy&&D.finished)&&I.destroy()}}l(fe,"te"),e(fe,"endReadableNT"),typeof Symbol=="function"&&(q.from=function(N,I){return x===void 0&&(x=Ij()),x(q,N,I)});function ve(N,I){for(var D=0,z=N.length;D<z;D++)if(N[D]===I)return D;return-1}return l(ve,"oe"),e(ve,"indexOf"),bh}l(d2,"rL");function p2(){if(i_)return vh;i_=!0,vh=u;var o=La().codes,i=o.ERR_METHOD_NOT_IMPLEMENTED,f=o.ERR_MULTIPLE_CALLBACK,p=o.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=o.ERR_TRANSFORM_WITH_LENGTH_0,n=Fa();Qi()(u,n);function r(d,m){var y=this._transformState;y.transforming=!1;var w=y.writecb;if(w===null)return this.emit("error",new f);y.writechunk=null,y.writecb=null,m!=null&&this.push(m),w(d);var _=this._readableState;_.reading=!1,(_.needReadable||_.length<_.highWaterMark)&&this._read(_.highWaterMark)}l(r,"i"),e(r,"afterTransform");function u(d){if(!(this instanceof u))return new u(d);n.call(this,d),this._transformState={afterTransform:r.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,d&&(typeof d.transform=="function"&&(this._transform=d.transform),typeof d.flush=="function"&&(this._flush=d.flush)),this.on("prefinish",g)}l(u,"f"),e(u,"Transform");function g(){var d=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(m,y){h(d,m,y)}):h(this,null,null)}l(g,"h"),e(g,"prefinish"),u.prototype.push=function(d,m){return this._transformState.needTransform=!1,n.prototype.push.call(this,d,m)},u.prototype._transform=function(d,m,y){y(new i("_transform()"))},u.prototype._write=function(d,m,y){var w=this._transformState;if(w.writecb=y,w.writechunk=d,w.writeencoding=m,!w.transforming){var _=this._readableState;(w.needTransform||_.needReadable||_.length<_.highWaterMark)&&this._read(_.highWaterMark)}},u.prototype._read=function(d){var m=this._transformState;m.writechunk!==null&&!m.transforming?(m.transforming=!0,this._transform(m.writechunk,m.writeencoding,m.afterTransform)):m.needTransform=!0},u.prototype._destroy=function(d,m){n.prototype._destroy.call(this,d,function(y){m(y)})};function h(d,m,y){if(m)return d.emit("error",m);if(y!=null&&d.push(y),d._writableState.length)throw new a;if(d._transformState.transforming)throw new p;return d.push(null)}return l(h,"c"),e(h,"done"),vh}l(p2,"nL");function Pj(){if(o_)return _h;o_=!0,_h=i;var o=p2();Qi()(i,o);function i(f){if(!(this instanceof i))return new i(f);o.call(this,f)}return l(i,"t"),e(i,"PassThrough"),i.prototype._transform=function(f,p,a){a(null,f)},_h}l(Pj,"YZ");function jj(){if(a_)return Eh;a_=!0;var o;function i(y){var w=!1;return function(){w||(w=!0,y.apply(void 0,arguments))}}l(i,"t"),e(i,"once2");var f=La().codes,p=f.ERR_MISSING_ARGS,a=f.ERR_STREAM_DESTROYED;function n(y){if(y)throw y}l(n,"s"),e(n,"noop2");function r(y){return y.setHeader&&typeof y.abort=="function"}l(r,"i"),e(r,"isRequest");function u(y,w,_,S){S=i(S);var T=!1;y.on("close",function(){T=!0}),o===void 0&&(o=$d()),o(y,{readable:w,writable:_},function(E){if(E)return S(E);T=!0,S()});var O=!1;return function(E){if(!T&&!O){if(O=!0,r(y))return y.abort();if(typeof y.destroy=="function")return y.destroy();S(E||new a("pipe"))}}}l(u,"f"),e(u,"destroyer");function g(y){y()}l(g,"h"),e(g,"call");function h(y,w){return y.pipe(w)}l(h,"c"),e(h,"pipe");function d(y){return!y.length||typeof y[y.length-1]!="function"?n:y.pop()}l(d,"d"),e(d,"popCallback");function m(){for(var y=arguments.length,w=new Array(y),_=0;_<y;_++)w[_]=arguments[_];var S=d(w);if(Array.isArray(w[0])&&(w=w[0]),w.length<2)throw new p("streams");var T,O=w.map(function(E,P){var A=P<w.length-1,x=P>0;return u(E,A,x,function(U){T||(T=U),U&&O.forEach(g),!A&&(O.forEach(g),S(T))})});return w.reduce(h)}return l(m,"y"),e(m,"pipeline"),Eh=m,Eh}l(jj,"KZ");function g2(){return s_||(s_=!0,Wr=Wr=d2(),Wr.Stream=Wr,Wr.Readable=Wr,Wr.Writable=h2(),Wr.Duplex=Fa(),Wr.Transform=p2(),Wr.PassThrough=Pj(),Wr.finished=$d(),Wr.pipeline=jj()),Wr}l(g2,"iL");function y2(){if(l_)return $l;l_=!0;var o=Ca().Buffer,i=Si,f=l2(),p=Qi(),a=g2(),n=$l.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},r=$l.IncomingMessage=function(u,g,h,d){var m=this||Wl;if(a.Readable.call(m),m._mode=h,m.headers={},m.rawHeaders=[],m.trailers={},m.rawTrailers=[],m.on("end",function(){i.nextTick(function(){m.emit("close")})}),h==="fetch"){let O=e(function(){w.read().then(function(E){if(!m._destroyed){if(d(E.done),E.done){m.push(null);return}m.push(o.from(E.value)),O()}}).catch(function(E){d(!0),m._destroyed||m.emit("error",E)})},"read");if(m._fetchResponse=g,m.url=g.url,m.statusCode=g.status,m.statusMessage=g.statusText,g.headers.forEach(function(E,P){m.headers[P.toLowerCase()]=E,m.rawHeaders.push(P,E)}),f.writableStream){var y=new WritableStream({write:e(function(E){return d(!1),new Promise(function(P,A){m._destroyed?A():m.push(o.from(E))?P():m._resumeFetch=P})},"write"),close:e(function(){d(!0),m._destroyed||m.push(null)},"close"),abort:e(function(E){d(!0),m._destroyed||m.emit("error",E)},"abort")});try{g.body.pipeTo(y).catch(function(E){d(!0),m._destroyed||m.emit("error",E)});return}catch{}}var w=g.body.getReader();O()}else{m._xhr=u,m._pos=0,m.url=u.responseURL,m.statusCode=u.status,m.statusMessage=u.statusText;var _=u.getAllResponseHeaders().split(/\r?\n/);if(_.forEach(function(O){var E=O.match(/^([^:]+):\s*(.*)/);if(E){var P=E[1].toLowerCase();P==="set-cookie"?(m.headers[P]===void 0&&(m.headers[P]=[]),m.headers[P].push(E[2])):m.headers[P]!==void 0?m.headers[P]+=", "+E[2]:m.headers[P]=E[2],m.rawHeaders.push(E[1],E[2])}}),m._charset="x-user-defined",!f.overrideMimeType){var S=m.rawHeaders["mime-type"];if(S){var T=S.match(/;\s*charset=([^;])(;|$)/);T&&(m._charset=T[1].toLowerCase())}m._charset||(m._charset="utf-8")}}};return p(r,a.Readable),r.prototype._read=function(){var u=this||Wl,g=u._resumeFetch;g&&(u._resumeFetch=null,g())},r.prototype._onXHRProgress=function(u){var g=this||Wl,h=g._xhr,d=null;switch(g._mode){case"text":if(d=h.responseText,d.length>g._pos){var m=d.substr(g._pos);if(g._charset==="x-user-defined"){for(var y=o.alloc(m.length),w=0;w<m.length;w++)y[w]=m.charCodeAt(w)&255;g.push(y)}else g.push(m,g._charset);g._pos=d.length}break;case"arraybuffer":if(h.readyState!==n.DONE||!h.response)break;d=h.response,g.push(o.from(new Uint8Array(d)));break;case"moz-chunked-arraybuffer":if(d=h.response,h.readyState!==n.LOADING||!d)break;g.push(o.from(new Uint8Array(d)));break;case"ms-stream":if(d=h.response,h.readyState!==n.LOADING)break;var _=new Wl.MSStreamReader;_.onprogress=function(){_.result.byteLength>g._pos&&(g.push(o.from(new Uint8Array(_.result.slice(g._pos)))),g._pos=_.result.byteLength)},_.onload=function(){u(!0),g.push(null)},_.readAsArrayBuffer(d);break}g._xhr.readyState===n.DONE&&g._mode!=="ms-stream"&&(u(!0),g.push(null))},$l}l(y2,"oL");function Cj(){if(f_)return Sh;f_=!0;var o=Ca().Buffer,i=Si,f=l2(),p=Qi(),a=y2(),n=g2(),r=a.IncomingMessage,u=a.readyStates;function g(y,w){return f.fetch&&w?"fetch":f.mozchunkedarraybuffer?"moz-chunked-arraybuffer":f.msstream?"ms-stream":f.arraybuffer&&y?"arraybuffer":"text"}l(g,"h"),e(g,"decideMode");var h=Sh=e(function(y){var w=this||cr;n.Writable.call(w),w._opts=y,w._body=[],w._headers={},y.auth&&w.setHeader("Authorization","Basic "+o.from(y.auth).toString("base64")),Object.keys(y.headers).forEach(function(T){w.setHeader(T,y.headers[T])});var _,S=!0;if(y.mode==="disable-fetch"||"requestTimeout"in y&&!f.abortController)S=!1,_=!0;else if(y.mode==="prefer-streaming")_=!1;else if(y.mode==="allow-wrong-content-type")_=!f.overrideMimeType;else if(!y.mode||y.mode==="default"||y.mode==="prefer-fast")_=!0;else throw new Error("Invalid value for opts.mode");w._mode=g(_,S),w._fetchTimer=null,w._socketTimeout=null,w._socketTimer=null,w.on("finish",function(){w._onFinish()})},"exports$4");p(h,n.Writable),h.prototype.setHeader=function(y,w){var _=this||cr,S=y.toLowerCase();m.indexOf(S)===-1&&(_._headers[S]={name:y,value:w})},h.prototype.getHeader=function(y){var w=(this||cr)._headers[y.toLowerCase()];return w?w.value:null},h.prototype.removeHeader=function(y){var w=this||cr;delete w._headers[y.toLowerCase()]},h.prototype._onFinish=function(){var y=this||cr;if(!y._destroyed){var w=y._opts;"timeout"in w&&w.timeout!==0&&y.setTimeout(w.timeout);var _=y._headers,S=null;w.method!=="GET"&&w.method!=="HEAD"&&(S=new Blob(y._body,{type:(_["content-type"]||{}).value||""}));var T=[];if(Object.keys(_).forEach(function(A){var x=_[A].name,U=_[A].value;Array.isArray(U)?U.forEach(function(M){T.push([x,M])}):T.push([x,U])}),y._mode==="fetch"){var O=null;if(f.abortController){var E=new AbortController;O=E.signal,y._fetchAbortController=E,"requestTimeout"in w&&w.requestTimeout!==0&&(y._fetchTimer=cr.setTimeout(function(){y.emit("requestTimeout"),y._fetchAbortController&&y._fetchAbortController.abort()},w.requestTimeout))}cr.fetch(y._opts.url,{method:y._opts.method,headers:T,body:S||void 0,mode:"cors",credentials:w.withCredentials?"include":"same-origin",signal:O}).then(function(A){y._fetchResponse=A,y._resetTimers(!1),y._connect()},function(A){y._resetTimers(!0),y._destroyed||y.emit("error",A)})}else{var P=y._xhr=new cr.XMLHttpRequest;try{P.open(y._opts.method,y._opts.url,!0)}catch(A){i.nextTick(function(){y.emit("error",A)});return}"responseType"in P&&(P.responseType=y._mode),"withCredentials"in P&&(P.withCredentials=!!w.withCredentials),y._mode==="text"&&"overrideMimeType"in P&&P.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in w&&(P.timeout=w.requestTimeout,P.ontimeout=function(){y.emit("requestTimeout")}),T.forEach(function(A){P.setRequestHeader(A[0],A[1])}),y._response=null,P.onreadystatechange=function(){switch(P.readyState){case u.LOADING:case u.DONE:y._onXHRProgress();break}},y._mode==="moz-chunked-arraybuffer"&&(P.onprogress=function(){y._onXHRProgress()}),P.onerror=function(){y._destroyed||(y._resetTimers(!0),y.emit("error",new Error("XHR error")))};try{P.send(S)}catch(A){i.nextTick(function(){y.emit("error",A)});return}}}};function d(y){try{var w=y.status;return w!==null&&w!==0}catch{return!1}}l(d,"d"),e(d,"statusValid"),h.prototype._onXHRProgress=function(){var y=this||cr;y._resetTimers(!1),!(!d(y._xhr)||y._destroyed)&&(y._response||y._connect(),y._response._onXHRProgress(y._resetTimers.bind(y)))},h.prototype._connect=function(){var y=this||cr;y._destroyed||(y._response=new r(y._xhr,y._fetchResponse,y._mode,y._resetTimers.bind(y)),y._response.on("error",function(w){y.emit("error",w)}),y.emit("response",y._response))},h.prototype._write=function(y,w,_){var S=this||cr;S._body.push(y),_()},h.prototype._resetTimers=function(y){var w=this||cr;cr.clearTimeout(w._socketTimer),w._socketTimer=null,y?(cr.clearTimeout(w._fetchTimer),w._fetchTimer=null):w._socketTimeout&&(w._socketTimer=cr.setTimeout(function(){w.emit("timeout")},w._socketTimeout))},h.prototype.abort=h.prototype.destroy=function(y){var w=this||cr;w._destroyed=!0,w._resetTimers(!0),w._response&&(w._response._destroyed=!0),w._xhr?w._xhr.abort():w._fetchAbortController&&w._fetchAbortController.abort(),y&&w.emit("error",y)},h.prototype.end=function(y,w,_){var S=this||cr;typeof y=="function"&&(_=y,y=void 0),n.Writable.prototype.end.call(S,y,w,_)},h.prototype.setTimeout=function(y,w){var _=this||cr;w&&_.once("timeout",w),_._socketTimeout=y,_._resetTimers(!1)},h.prototype.flushHeaders=function(){},h.prototype.setNoDelay=function(){},h.prototype.setSocketKeepAlive=function(){};var m=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"];return Sh}l(Cj,"XZ");function Lj(){if(u_)return Ah;u_=!0,Ah=i;var o=Object.prototype.hasOwnProperty;function i(){for(var f={},p=0;p<arguments.length;p++){var a=arguments[p];for(var n in a)o.call(a,n)&&(f[n]=a[n])}return f}return l(i,"t"),e(i,"extend"),Ah}l(Lj,"JZ");function Nj(){return h_||(h_=!0,c_={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}),c_}l(Nj,"ZZ");function jF(){if(d_)return Rh;d_=!0;var o=Cj(),i=y2(),f=Lj(),p=Nj(),a=Nt,n=Rh;return n.request=function(r,u){typeof r=="string"?r=a.parse(r):r=f(r);var g=cC.location.protocol.search(/^https?:$/)===-1?"http:":"",h=r.protocol||g,d=r.hostname||r.host,m=r.port,y=r.path||"/";d&&d.indexOf(":")!==-1&&(d="["+d+"]"),r.url=(d?h+"//"+d:"")+(m?":"+m:"")+y,r.method=(r.method||"GET").toUpperCase(),r.headers=r.headers||{};var w=new o(r);return u&&w.on("response",u),w},n.get=e(function(r,u){var g=n.request(r,u);return g.end(),g},"get2"),n.ClientRequest=o,n.IncomingMessage=i.IncomingMessage,n.Agent=function(){},n.Agent.defaultMaxSockets=4,n.globalAgent=new n.Agent,n.STATUS_CODES=p,n.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"],Rh}l(jF,"eQ");var th,Fv,CF,LF,Yo,Gy,Vy,Ky,Xr,Bs,Bv,rh,xv,zi,Iv,NF,ai,si,_a,nr,ha,Dn,Ea,of,Gt,DF,pu,vl,Jy,UF,MF,$F,WF,zF,Yy,Zy,Qy,HF,qF,GF,Xy,Rt,Dj,VF,KF,Pv,nh,qr,jr,JF,Jt,Uj,Mj,$j,ps,Xe,cn,em,YF,_l,tm,gu,Wj,xi,aD,sD,Un,Sa,da,af,ZF,QF,XF,eB,tB,rB,nB,iB,oB,aB,sB,lB,fB,uB,cB,hB,dB,pB,gB,yB,mB,yu,wB,bB,vB,_B,EB,SB,AB,RB,OB,kB,TB,FB,BB,xB,IB,PB,jB,CB,LB,NB,DB,UB,MB,$B,WB,gi,rm,ih,zB,HB,qB,GB,VB,KB,JB,YB,ZB,QB,XB,Si,oh,jv,ah,xs,Cv,sh,Lv,sf,lD,lh,Nv,ia,Vt,fh,Dv,Uv,Zo,ex,tx,zj,Hj,hn,mu,nm,im,om,am,rx,nx,gs,ix,An,Nt,ox,gn,ax,sx,lx,fx,wu,sm,lm,fm,ux,cx,bu,Qo,vu,uh,Mv,$v,hx,qj,Gj,Vj,Kj,gd,Jj,Yj,Zj,Qj,Xj,eC,dx,tC,rC,nC,iC,yd,oC,aC,sC,lC,fC,uC,$r,Wv,Hi,zv,Hv,ch,qv,hh,Gv,dh,Vv,ph,Kv,gh,Jv,Yv,yh,Zv,mh,Qv,wh,Xv,e_,t_,bh,r_,n_,vh,i_,_h,o_,Eh,a_,Wr,s_,$l,l_,Wl,Sh,f_,cr,Ah,u_,c_,h_,Rh,d_,cC,ri,hC,dC,pC,gC,yC,mC,wC,bC,fD=er(()=>{if(th={},Fv=!1,e(Qi,"dew"),Yo=typeof Reflect=="object"?Reflect:null,Gy=Yo&&typeof Yo.apply=="function"?Yo.apply:function(a,n,r){return Function.prototype.apply.call(a,n,r)},LF=Yo&&typeof Yo.ownKeys=="function"?Yo.ownKeys:Object.getOwnPropertySymbols?function(a){return Object.getOwnPropertyNames(a).concat(Object.getOwnPropertySymbols(a))}:function(a){return Object.getOwnPropertyNames(a)},Vy=Number.isNaN||function(a){return a!=a},e(It,"o"),CF=It,It.EventEmitter=It,It.prototype._events=void 0,It.prototype._eventsCount=0,It.prototype._maxListeners=void 0,Ky=10,e(Ml,"u"),e(cv,"f"),e(By,"v"),e(mj,"a"),e(xy,"l"),e(Iy,"h"),e(Py,"p"),e(hv,"c"),Object.defineProperty(It,"defaultMaxListeners",{enumerable:!0,get:e(function(){return Ky},"get"),set:e(function(a){if(typeof a!="number"||a<0||Vy(a))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+a+".");Ky=a},"set")}),It.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},It.prototype.setMaxListeners=function(a){if(typeof a!="number"||a<0||Vy(a))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+a+".");return this._maxListeners=a,this},It.prototype.getMaxListeners=function(){return cv(this)},It.prototype.emit=function(a){for(var n=[],r=1;r<arguments.length;r++)n.push(arguments[r]);var u=a==="error",g=this._events;if(g!==void 0)u=u&&g.error===void 0;else if(!u)return!1;if(u){var h;if(n.length>0&&(h=n[0]),h instanceof Error)throw h;var d=new Error("Unhandled error."+(h?" ("+h.message+")":""));throw d.context=h,d}var m=g[a];if(m===void 0)return!1;if(typeof m=="function")Gy(m,this,n);else{var y=m.length,w=hv(m,y);for(r=0;r<y;++r)Gy(w[r],this,n)}return!0},It.prototype.addListener=function(a,n){return By(this,a,n,!1)},It.prototype.on=It.prototype.addListener,It.prototype.prependListener=function(a,n){return By(this,a,n,!0)},It.prototype.once=function(a,n){return Ml(n),this.on(a,xy(this,a,n)),this},It.prototype.prependOnceListener=function(a,n){return Ml(n),this.prependListener(a,xy(this,a,n)),this},It.prototype.removeListener=function(a,n){var r,u,g,h,d;if(Ml(n),(u=this._events)===void 0)return this;if((r=u[a])===void 0)return this;if(r===n||r.listener===n)--this._eventsCount==0?this._events=Object.create(null):(delete u[a],u.removeListener&&this.emit("removeListener",a,r.listener||n));else if(typeof r!="function"){for(g=-1,h=r.length-1;h>=0;h--)if(r[h]===n||r[h].listener===n){d=r[h].listener,g=h;break}if(g<0)return this;g===0?r.shift():function(m,y){for(;y+1<m.length;y++)m[y]=m[y+1];m.pop()}(r,g),r.length===1&&(u[a]=r[0]),u.removeListener!==void 0&&this.emit("removeListener",a,d||n)}return this},It.prototype.off=It.prototype.removeListener,It.prototype.removeAllListeners=function(a){var n,r,u;if((r=this._events)===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[a]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete r[a]),this;if(arguments.length===0){var g,h=Object.keys(r);for(u=0;u<h.length;++u)(g=h[u])!=="removeListener"&&this.removeAllListeners(g);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(n=r[a])=="function")this.removeListener(a,n);else if(n!==void 0)for(u=n.length-1;u>=0;u--)this.removeListener(a,n[u]);return this},It.prototype.listeners=function(a){return Iy(this,a,!0)},It.prototype.rawListeners=function(a){return Iy(this,a,!1)},It.listenerCount=function(a,n){return typeof a.listenerCount=="function"?a.listenerCount(n):Py.call(a,n)},It.prototype.listenerCount=Py,It.prototype.eventNames=function(){return this._eventsCount>0?LF(this._events):[]},Xr=CF,Xr.EventEmitter,Xr.defaultMaxListeners,Xr.init,Xr.listenerCount,Xr.EventEmitter,Xr.defaultMaxListeners,Xr.init,Xr.listenerCount,Xr.once=function(a,n){return new Promise((r,u)=>{function g(...d){h!==void 0&&a.removeListener("error",h),r(d)}l(g,"a"),e(g,"eventListener");let h;n!=="error"&&(h=e(d=>{a.removeListener(name,g),u(d)},"errorListener"),a.once("error",h)),a.once(n,g)})},Xr.on=function(a,n){let r=[],u=[],g=null,h=!1,d={async next(){let w=r.shift();if(w)return createIterResult(w,!1);if(g){let _=Promise.reject(g);return g=null,_}return h?createIterResult(void 0,!0):new Promise((_,S)=>u.push({resolve:_,reject:S}))},async return(){a.removeListener(n,m),a.removeListener("error",y),h=!0;for(let w of u)w.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(w){g=w,a.removeListener(n,m),a.removeListener("error",y)},[Symbol.asyncIterator](){return this}};return a.on(n,m),a.on("error",y),d;function m(...w){let _=u.shift();_?_.resolve(createIterResult(w,!1)):r.push(w)}function y(w){h=!0;let _=u.shift();_?_.reject(w):g=w,d.return()}},Bs={},Bv=!1,e(wj,"dew$2"),rh={},xv=!1,e(bj,"dew$1"),zi={},Iv=!1,e(Ca,"dew2"),_a=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,nr=NF={},e(Yc,"i$2"),e(Zc,"u$2"),e(dv,"c$2"),function(){try{ai=typeof setTimeout=="function"?setTimeout:Yc}catch{ai=Yc}try{si=typeof clearTimeout=="function"?clearTimeout:Zc}catch{si=Zc}}(),Dn=[],Ea=!1,of=-1,e(vj,"h$1"),e(pv,"d$1"),e(jy,"m$1"),e(Sn,"p$1"),nr.nextTick=function(a){var n=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)n[r-1]=arguments[r];Dn.push(new jy(a,n)),Dn.length!==1||Ea||dv(pv)},jy.prototype.run=function(){(this||_a).fun.apply(null,(this||_a).array)},nr.title="browser",nr.browser=!0,nr.env={},nr.argv=[],nr.version="",nr.versions={},nr.on=Sn,nr.addListener=Sn,nr.once=Sn,nr.off=Sn,nr.removeListener=Sn,nr.removeAllListeners=Sn,nr.emit=Sn,nr.prependListener=Sn,nr.prependOnceListener=Sn,nr.listeners=function(a){return[]},nr.binding=function(a){throw new Error("process.binding is not supported")},nr.cwd=function(){return"/"},nr.chdir=function(a){throw new Error("process.chdir is not supported")},nr.umask=function(){return 0},Gt=NF,Gt.addListener,Gt.argv,Gt.binding,Gt.browser,Gt.chdir,Gt.cwd,Gt.emit,Gt.env,Gt.listeners,Gt.nextTick,Gt.off,Gt.on,Gt.once,Gt.prependListener,Gt.prependOnceListener,Gt.removeAllListeners,Gt.removeListener,Gt.title,Gt.umask,Gt.version,Gt.versions,DF=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",pu=Object.prototype.toString,vl=e(function(a){return!(DF&&a&&typeof a=="object"&&Symbol.toStringTag in a)&&pu.call(a)==="[object Arguments]"},"o2"),Jy=e(function(a){return!!vl(a)||a!==null&&typeof a=="object"&&typeof a.length=="number"&&a.length>=0&&pu.call(a)!=="[object Array]"&&pu.call(a.callee)==="[object Function]"},"n2"),UF=function(){return vl(arguments)}(),vl.isLegacyArguments=Jy,MF=UF?vl:Jy,$F=Object.prototype.toString,WF=Function.prototype.toString,zF=/^\s*(?:function)?\*/,Yy=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Zy=Object.getPrototypeOf,Qy=function(){if(!Yy)return!1;try{return Function("return function*() {}")()}catch{}}(),HF=Qy?Zy(Qy):{},qF=e(function(a){return typeof a=="function"&&(!!zF.test(WF.call(a))||(Yy?Zy(a)===HF:$F.call(a)==="[object GeneratorFunction]"))},"i2"),GF=typeof Object.create=="function"?function(a,n){n&&(a.super_=n,a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}))}:function(a,n){if(n){a.super_=n;var r=e(function(){},"o4");r.prototype=n.prototype,a.prototype=new r,a.prototype.constructor=a}},Xy=e(function(a){return a&&typeof a=="object"&&typeof a.copy=="function"&&typeof a.fill=="function"&&typeof a.readUInt8=="function"},"i$1"),Rt={},Dj=Xy,VF=MF,KF=qF,e(Fi,"c$1"),Pv=typeof BigInt<"u",nh=typeof Symbol<"u",qr=nh&&Symbol.toStringTag!==void 0,jr=typeof Uint8Array<"u",JF=typeof ArrayBuffer<"u",jr&&qr)var o=Object.getPrototypeOf(Uint8Array.prototype),i=Fi(Object.getOwnPropertyDescriptor(o,Symbol.toStringTag).get);if(Jt=Fi(Object.prototype.toString),Uj=Fi(Number.prototype.valueOf),Mj=Fi(String.prototype.valueOf),$j=Fi(Boolean.prototype.valueOf),Pv)var f=Fi(BigInt.prototype.valueOf);if(nh)var p=Fi(Symbol.prototype.valueOf);e(nl,"O"),e(Cy,"S"),e(gv,"B"),e(yv,"k"),e(mv,"E"),e(wv,"D"),e(bv,"U"),e(vv,"P"),e(_v,"x"),e(Ev,"I"),e(Sv,"M"),e(Av,"z"),e(Rv,"F"),e(ml,"T"),e(wl,"N"),e(bl,"W"),e(hu,"$"),e(Zl,"C"),e(Ly,"V"),e(Ql,"G"),e(Ny,"R"),e(Xl,"J"),e(Dy,"_"),e(Uy,"H"),e(My,"Z"),e($y,"q"),e(Wy,"K"),e(zy,"L"),Rt.isArgumentsObject=VF,Rt.isGeneratorFunction=KF,Rt.isPromise=function(a){return typeof Promise<"u"&&a instanceof Promise||a!==null&&typeof a=="object"&&typeof a.then=="function"&&typeof a.catch=="function"},Rt.isArrayBufferView=function(a){return JF&&ArrayBuffer.isView?ArrayBuffer.isView(a):Cy(a)||Ny(a)},Rt.isTypedArray=Cy,Rt.isUint8Array=gv,Rt.isUint8ClampedArray=yv,Rt.isUint16Array=mv,Rt.isUint32Array=wv,Rt.isInt8Array=bv,Rt.isInt16Array=vv,Rt.isInt32Array=_v,Rt.isFloat32Array=Ev,Rt.isFloat64Array=Sv,Rt.isBigInt64Array=Av,Rt.isBigUint64Array=Rv,ml.working=typeof Map<"u"&&ml(new Map),Rt.isMap=function(a){return typeof Map<"u"&&(ml.working?ml(a):a instanceof Map)},wl.working=typeof Set<"u"&&wl(new Set),Rt.isSet=function(a){return typeof Set<"u"&&(wl.working?wl(a):a instanceof Set)},bl.working=typeof WeakMap<"u"&&bl(new WeakMap),Rt.isWeakMap=function(a){return typeof WeakMap<"u"&&(bl.working?bl(a):a instanceof WeakMap)},hu.working=typeof WeakSet<"u"&&hu(new WeakSet),Rt.isWeakSet=function(a){return hu(a)},Zl.working=typeof ArrayBuffer<"u"&&Zl(new ArrayBuffer),Rt.isArrayBuffer=Ly,Ql.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Ql(new DataView(new ArrayBuffer(1),0,1)),Rt.isDataView=Ny,Xl.working=typeof SharedArrayBuffer<"u"&&Xl(new SharedArrayBuffer),Rt.isSharedArrayBuffer=Dy,Rt.isAsyncFunction=function(a){return Jt(a)==="[object AsyncFunction]"},Rt.isMapIterator=function(a){return Jt(a)==="[object Map Iterator]"},Rt.isSetIterator=function(a){return Jt(a)==="[object Set Iterator]"},Rt.isGeneratorObject=function(a){return Jt(a)==="[object Generator]"},Rt.isWebAssemblyCompiledModule=function(a){return Jt(a)==="[object WebAssembly.Module]"},Rt.isNumberObject=Uy,Rt.isStringObject=My,Rt.isBooleanObject=$y,Rt.isBigIntObject=Wy,Rt.isSymbolObject=zy,Rt.isBoxedPrimitive=function(a){return Uy(a)||My(a)||$y(a)||Wy(a)||zy(a)},Rt.isAnyArrayBuffer=function(a){return jr&&(Ly(a)||Dy(a))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(a){Object.defineProperty(Rt,a,{enumerable:!1,value:e(function(){throw new Error(a+" is not supported in userland")},"value")})}),ps=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,Xe={},cn=Gt,em=Object.getOwnPropertyDescriptors||function(a){for(var n=Object.keys(a),r={},u=0;u<n.length;u++)r[n[u]]=Object.getOwnPropertyDescriptor(a,n[u]);return r},YF=/%[sdj%]/g,Xe.format=function(a){if(!tf(a)){for(var n=[],r=0;r<arguments.length;r++)n.push(pi(arguments[r]));return n.join(" ")}r=1;for(var u=arguments,g=u.length,h=String(a).replace(YF,function(m){if(m==="%%")return"%";if(r>=g)return m;switch(m){case"%s":return String(u[r++]);case"%d":return Number(u[r++]);case"%j":try{return JSON.stringify(u[r++])}catch{return"[Circular]"}default:return m}}),d=u[r];r<g;d=u[++r])ef(d)||!ca(d)?h+=" "+d:h+=" "+pi(d);return h},Xe.deprecate=function(a,n){if(cn!==void 0&&cn.noDeprecation===!0)return a;if(cn===void 0)return function(){return Xe.deprecate(a,n).apply(this||ps,arguments)};var r=!1;return function(){if(!r){if(cn.throwDeprecation)throw new Error(n);cn.traceDeprecation?console.trace(n):console.error(n),r=!0}return a.apply(this||ps,arguments)}},_l={},tm=/^$/,cn.env.NODE_DEBUG&&(gu=cn.env.NODE_DEBUG,gu=gu.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),tm=new RegExp("^"+gu+"$","i")),e(pi,"oe"),e(_j,"ue"),e(Ej,"fe"),e(wf,"ae"),e(Qc,"ce"),e(Xc,"se"),e(Ov,"pe"),e(dd,"ye"),e(ef,"le"),e(kv,"de"),e(tf,"ge"),e(Ji,"be"),e(js,"me"),e(ca,"he"),e(rf,"je"),e(Cs,"Ae"),e(nf,"we"),e(Md,"ve"),e(eh,"Oe"),Xe.debuglog=function(a){if(a=a.toUpperCase(),!_l[a])if(tm.test(a)){var n=cn.pid;_l[a]=function(){var r=Xe.format.apply(Xe,arguments);console.error("%s %d: %s",a,n,r)}}else _l[a]=function(){};return _l[a]},Xe.inspect=pi,pi.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},pi.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},Xe.types=Rt,Xe.isArray=Ov,Xe.isBoolean=dd,Xe.isNull=ef,Xe.isNullOrUndefined=function(a){return a==null},Xe.isNumber=kv,Xe.isString=tf,Xe.isSymbol=function(a){return typeof a=="symbol"},Xe.isUndefined=Ji,Xe.isRegExp=js,Xe.types.isRegExp=js,Xe.isObject=ca,Xe.isDate=rf,Xe.types.isDate=rf,Xe.isError=Cs,Xe.types.isNativeError=Cs,Xe.isFunction=nf,Xe.isPrimitive=function(a){return a===null||typeof a=="boolean"||typeof a=="number"||typeof a=="string"||typeof a=="symbol"||a===void 0},Xe.isBuffer=Xy,Wj=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],e(pF,"Be"),e(a2,"ke"),Xe.log=function(){console.log("%s - %s",pF(),Xe.format.apply(Xe,arguments))},Xe.inherits=GF,Xe._extend=function(a,n){if(!n||!ca(n))return a;for(var r=Object.keys(n),u=r.length;u--;)a[r[u]]=n[r[u]];return a},xi=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0,e(gF,"De"),Xe.promisify=function(a){if(typeof a!="function")throw new TypeError('The "original" argument must be of type Function');if(xi&&a[xi]){var n;if(typeof(n=a[xi])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(n,xi,{value:n,enumerable:!1,writable:!1,configurable:!0}),n}function n(){for(var r,u,g=new Promise(function(m,y){r=m,u=y}),h=[],d=0;d<arguments.length;d++)h.push(arguments[d]);h.push(function(m,y){m?u(m):r(y)});try{a.apply(this||ps,h)}catch(m){u(m)}return g}return l(n,"t"),e(n,"t4"),Object.setPrototypeOf(n,Object.getPrototypeOf(a)),xi&&Object.defineProperty(n,xi,{value:n,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(n,em(a))},Xe.promisify.custom=xi,Xe.callbackify=function(a){if(typeof a!="function")throw new TypeError('The "original" argument must be of type Function');function n(){for(var r=[],u=0;u<arguments.length;u++)r.push(arguments[u]);var g=r.pop();if(typeof g!="function")throw new TypeError("The last argument must be of type Function");var h=this||ps,d=e(function(){return g.apply(h,arguments)},"o4");a.apply(this||ps,r).then(function(m){cn.nextTick(d.bind(null,null,m))},function(m){cn.nextTick(gF.bind(null,m,d))})}return l(n,"t"),e(n,"t4"),Object.setPrototypeOf(n,Object.getPrototypeOf(a)),Object.defineProperties(n,em(a)),n},Xe._extend,Xe.callbackify,Xe.debuglog,Xe.deprecate,Xe.format,Xe.inherits,Xe.inspect,Xe.isArray,Xe.isBoolean,Xe.isBuffer,Xe.isDate,Xe.isError,Xe.isFunction,Xe.isNull,Xe.isNullOrUndefined,Xe.isNumber,Xe.isObject,Xe.isPrimitive,Xe.isRegExp,Xe.isString,Xe.isSymbol,Xe.isUndefined,Xe.log,Xe.promisify,Xe._extend,Xe.callbackify,Xe.debuglog,Xe.deprecate,Xe.format,Xe.inherits,Xe.inspect,Xe.isArray,Xe.isBoolean,Xe.isBuffer,Xe.isDate,Xe.isError,Xe.isFunction,Xe.isNull,Xe.isNullOrUndefined,Xe.isNumber,Xe.isObject,Xe.isPrimitive,Xe.isRegExp,Xe.isString,Xe.isSymbol,Xe.isUndefined,Xe.log,aD=Xe.promisify,Xe.types,Xe._extend,Xe.callbackify,Xe.debuglog,Xe.deprecate,Xe.format,Xe.inherits,Xe.inspect,Xe.isArray,Xe.isBoolean,Xe.isBuffer,Xe.isDate,Xe.isError,Xe.isFunction,Xe.isNull,Xe.isNullOrUndefined,Xe.isNumber,Xe.isObject,Xe.isPrimitive,Xe.isRegExp,Xe.isString,Xe.isSymbol,Xe.isUndefined,Xe.log,sD=Xe.promisify,Xe.types,Xe.TextEncoder=globalThis.TextEncoder,Xe.TextDecoder=globalThis.TextDecoder,e(pd,"unimplemented"),Un=[],Sa=!1,af=-1,e(Sj,"cleanUpNextTick"),e(s2,"drainQueue"),e(yF,"nextTick"),e(Tv,"Item"),Tv.prototype.run=function(){this.fun.apply(null,this.array)},ZF="browser",QF="x64",XF="browser",eB={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},tB=["/usr/bin/node"],rB=[],nB="v16.8.0",iB={},oB=e(function(a,n){console.warn((n?n+": ":"")+a)},"emitWarning"),aB=e(function(a){pd("binding")},"binding"),sB=e(function(a){return 0},"umask"),lB=e(function(){return"/"},"cwd"),fB=e(function(a){},"chdir"),uB={name:"node",sourceUrl:"",headersUrl:"",libUrl:""},e(Er,"noop"),cB=Er,hB=[],e(mF,"_linkedBinding"),dB={},pB=!1,gB={},e(wF,"dlopen"),e(bF,"_getActiveRequests"),e(vF,"_getActiveHandles"),yB=Er,mB=Er,yu=e(function(){return{}},"cpuUsage"),wB=yu,bB=yu,vB=Er,_B=Er,EB=Er,SB={},e(_F,"assert"),AB={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},RB=Er,OB=Er,e(EF,"hasUncaughtExceptionCaptureCallback"),kB=Er,TB=Er,FB=Er,BB=Er,xB=Er,IB=void 0,PB=void 0,jB=void 0,CB=Er,LB=2,NB=1,DB="/bin/usr/node",UB=9229,MB="node",$B=[],WB=Er,gi={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0},gi.now===void 0&&(rm=Date.now(),gi.timing&&gi.timing.navigationStart&&(rm=gi.timing.navigationStart),gi.now=()=>Date.now()-rm),e(SF,"uptime"),ih=1e9,e(du,"hrtime"),du.bigint=function(a){var n=du(a);return typeof BigInt>"u"?n[0]*ih+n[1]:BigInt(n[0]*ih)+BigInt(n[1])},zB=10,HB={},qB=0,e(ti,"on"),GB=ti,VB=ti,KB=ti,JB=ti,YB=ti,ZB=Er,QB=ti,XB=ti,e(AF,"listeners"),Si={version:nB,versions:iB,arch:QF,platform:XF,release:uB,_rawDebug:cB,moduleLoadList:hB,binding:aB,_linkedBinding:mF,_events:HB,_eventsCount:qB,_maxListeners:zB,on:ti,addListener:GB,once:VB,off:KB,removeListener:JB,removeAllListeners:YB,emit:ZB,prependListener:QB,prependOnceListener:XB,listeners:AF,domain:dB,_exiting:pB,config:gB,dlopen:wF,uptime:SF,_getActiveRequests:bF,_getActiveHandles:vF,reallyExit:yB,_kill:mB,cpuUsage:yu,resourceUsage:wB,memoryUsage:bB,kill:vB,exit:_B,openStdin:EB,allowedNodeEnvironmentFlags:SB,assert:_F,features:AB,_fatalExceptions:RB,setUncaughtExceptionCaptureCallback:OB,hasUncaughtExceptionCaptureCallback:EF,emitWarning:oB,nextTick:yF,_tickCallback:kB,_debugProcess:TB,_debugEnd:FB,_startProfilerIdleNotifier:BB,_stopProfilerIdleNotifier:xB,stdout:IB,stdin:jB,stderr:PB,abort:CB,umask:sB,chdir:fB,cwd:lB,env:eB,title:ZF,argv:tB,execArgv:rB,pid:LB,ppid:NB,execPath:DB,debugPort:UB,hrtime:du,argv0:MB,_preload_modules:$B,setSourceMapsEnabled:WB},oh={},jv=!1,ah=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(Aj,"dew3"),xs={},Cv=!1,e(Rj,"dew$12"),sh={},Lv=!1,e(RF,"dew4"),sf=RF(),sf.StringDecoder,lD=sf.StringDecoder,lh={},Nv=!1,ia=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(OF,"dew5"),Vt=OF(),Vt.platform="browser",Vt.addListener,Vt.argv,Vt.binding,Vt.browser,Vt.chdir,Vt.cwd,Vt.emit,Vt.env,Vt.listeners,Vt.nextTick,Vt.off,Vt.on,Vt.once,Vt.prependListener,Vt.prependOnceListener,Vt.removeAllListeners,Vt.removeListener,Vt.title,Vt.umask,Vt.version,Vt.versions,fh={},Dv=!1,e(kF,"dew$13"),Uv=kF(),Zo=2147483647,ex=/^xn--/,tx=/[^\0-\x7E]/,zj=/[\x2E\u3002\uFF0E\uFF61]/g,Hj={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},hn=Math.floor,mu=String.fromCharCode,e(Bi,"i$12"),e(Hy,"f$12"),e(qy,"l$12"),nm=e(function(a,n){return a+22+75*(a<26)-((n!=0)<<5)},"u$12"),im=e(function(a,n,r){let u=0;for(a=r?hn(a/700):a>>1,a+=hn(a/n);a>455;u+=36)a=hn(a/35);return hn(u+36*a/(a+38))},"a$12"),om=e(function(a){let n=[],r=a.length,u=0,g=128,h=72,d=a.lastIndexOf("-");d<0&&(d=0);for(let y=0;y<d;++y)a.charCodeAt(y)>=128&&Bi("not-basic"),n.push(a.charCodeAt(y));for(let y=d>0?d+1:0;y<r;){let w=u;for(let S=1,T=36;;T+=36){y>=r&&Bi("invalid-input");let O=(m=a.charCodeAt(y++))-48<10?m-22:m-65<26?m-65:m-97<26?m-97:36;(O>=36||O>hn((Zo-u)/S))&&Bi("overflow"),u+=O*S;let E=T<=h?1:T>=h+26?26:T-h;if(O<E)break;let P=36-E;S>hn(Zo/P)&&Bi("overflow"),S*=P}let _=n.length+1;h=im(u-w,_,w==0),hn(u/_)>Zo-g&&Bi("overflow"),g+=hn(u/_),u%=_,n.splice(u++,0,g)}var m;return String.fromCodePoint(...n)},"d2"),am=e(function(a){let n=[],r=(a=qy(a)).length,u=128,g=0,h=72;for(let y of a)y<128&&n.push(mu(y));let d=n.length,m=d;for(d&&n.push("-");m<r;){let y=Zo;for(let _ of a)_>=u&&_<y&&(y=_);let w=m+1;y-u>hn((Zo-g)/w)&&Bi("overflow"),g+=(y-u)*w,u=y;for(let _ of a)if(_<u&&++g>Zo&&Bi("overflow"),_==u){let S=g;for(let T=36;;T+=36){let O=T<=h?1:T>=h+26?26:T-h;if(S<O)break;let E=S-O,P=36-O;n.push(mu(nm(O+E%P,0))),S=hn(E/P)}n.push(mu(nm(S,0))),h=im(g,w,m==d),g=0,++m}++g,++u}return n.join("")},"h$12"),rx={version:"2.1.0",ucs2:{decode:qy,encode:e(a=>String.fromCodePoint(...a),"encode")},decode:om,encode:am,toASCII:e(function(a){return Hy(a,function(n){return tx.test(n)?"xn--"+am(n):n})},"toASCII"),toUnicode:e(function(a){return Hy(a,function(n){return ex.test(n)?om(n.slice(4).toLowerCase()):n})},"toUnicode")},e(TF,"e$12"),nx=e(function(a,n,r,u){n=n||"&",r=r||"=";var g={};if(typeof a!="string"||a.length===0)return g;var h=/\+/g;a=a.split(n);var d=1e3;u&&typeof u.maxKeys=="number"&&(d=u.maxKeys);var m=a.length;d>0&&m>d&&(m=d);for(var y=0;y<m;++y){var w,_,S,T,O=a[y].replace(h,"%20"),E=O.indexOf(r);E>=0?(w=O.substr(0,E),_=O.substr(E+1)):(w=O,_=""),S=decodeURIComponent(w),T=decodeURIComponent(_),TF(g,S)?Array.isArray(g[S])?g[S].push(T):g[S]=[g[S],T]:g[S]=T}return g},"n$12"),gs=e(function(a){switch(typeof a){case"string":return a;case"boolean":return a?"true":"false";case"number":return isFinite(a)?a:"";default:return""}},"r$12"),ix=e(function(a,n,r,u){return n=n||"&",r=r||"=",a===null&&(a=void 0),typeof a=="object"?Object.keys(a).map(function(g){var h=encodeURIComponent(gs(g))+r;return Array.isArray(a[g])?a[g].map(function(d){return h+encodeURIComponent(gs(d))}).join(n):h+encodeURIComponent(gs(a[g]))}).join(n):u?encodeURIComponent(gs(u))+r+encodeURIComponent(gs(a)):""},"t3"),An={},An.decode=An.parse=nx,An.encode=An.stringify=ix,An.decode,An.encode,An.parse,An.stringify,Nt={},ox=rx,gn={isString:e(function(a){return typeof a=="string"},"isString"),isObject:e(function(a){return typeof a=="object"&&a!==null},"isObject"),isNull:e(function(a){return a===null},"isNull"),isNullOrUndefined:e(function(a){return a==null},"isNullOrUndefined")},e(Qr,"r3"),Nt.parse=ds,Nt.resolve=function(a,n){return ds(a,!1,!0).resolve(n)},Nt.resolveObject=function(a,n){return a?ds(a,!1,!0).resolveObject(n):n},Nt.format=function(a){return gn.isString(a)&&(a=ds(a)),a instanceof Qr?a.format():Qr.prototype.format.call(a)},Nt.Url=Qr,ax=/^([a-z0-9.+-]+:)/i,sx=/:[0-9]*$/,lx=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,fx=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",`
|
|
125
|
+
`," "]),wu=["'"].concat(fx),sm=["%","/","?",";","#"].concat(wu),lm=["/","?","#"],fm=/^[+a-z0-9A-Z_-]{0,63}$/,ux=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,cx={javascript:!0,"javascript:":!0},bu={javascript:!0,"javascript:":!0},Qo={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},vu=An,e(ds,"O2"),Qr.prototype.parse=function(a,n,r){if(!gn.isString(a))throw new TypeError("Parameter 'url' must be a string, not "+typeof a);var u=a.indexOf("?"),g=u!==-1&&u<a.indexOf("#")?"?":"#",h=a.split(g);h[0]=h[0].replace(/\\/g,"/");var d=a=h.join(g);if(d=d.trim(),!r&&a.split("#").length===1){var m=lx.exec(d);if(m)return this.path=d,this.href=d,this.pathname=m[1],m[2]?(this.search=m[2],this.query=n?vu.parse(this.search.substr(1)):this.search.substr(1)):n&&(this.search="",this.query={}),this}var y=ax.exec(d);if(y){var w=(y=y[0]).toLowerCase();this.protocol=w,d=d.substr(y.length)}if(r||y||d.match(/^\/\/[^@\/]+@[^@\/]+/)){var _=d.substr(0,2)==="//";!_||y&&bu[y]||(d=d.substr(2),this.slashes=!0)}if(!bu[y]&&(_||y&&!Qo[y])){for(var S,T,O=-1,E=0;E<lm.length;E++)(P=d.indexOf(lm[E]))!==-1&&(O===-1||P<O)&&(O=P);for((T=O===-1?d.lastIndexOf("@"):d.lastIndexOf("@",O))!==-1&&(S=d.slice(0,T),d=d.slice(T+1),this.auth=decodeURIComponent(S)),O=-1,E=0;E<sm.length;E++){var P;(P=d.indexOf(sm[E]))!==-1&&(O===-1||P<O)&&(O=P)}O===-1&&(O=d.length),this.host=d.slice(0,O),d=d.slice(O),this.parseHost(),this.hostname=this.hostname||"";var A=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!A)for(var x=this.hostname.split(/\./),U=(E=0,x.length);E<U;E++){var M=x[E];if(M&&!M.match(fm)){for(var ee="",V=0,q=M.length;V<q;V++)M.charCodeAt(V)>127?ee+="x":ee+=M[V];if(!ee.match(fm)){var G=x.slice(0,E),re=x.slice(E+1),ae=M.match(ux);ae&&(G.push(ae[1]),re.unshift(ae[2])),re.length&&(d="/"+re.join(".")+d),this.hostname=G.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),A||(this.hostname=ox.toASCII(this.hostname));var de=this.port?":"+this.port:"",we=this.hostname||"";this.host=we+de,this.href+=this.host,A&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),d[0]!=="/"&&(d="/"+d))}if(!cx[w])for(E=0,U=wu.length;E<U;E++){var xe=wu[E];if(d.indexOf(xe)!==-1){var Pe=encodeURIComponent(xe);Pe===xe&&(Pe=escape(xe)),d=d.split(xe).join(Pe)}}var se=d.indexOf("#");se!==-1&&(this.hash=d.substr(se),d=d.slice(0,se));var Te=d.indexOf("?");if(Te!==-1?(this.search=d.substr(Te),this.query=d.substr(Te+1),n&&(this.query=vu.parse(this.query)),d=d.slice(0,Te)):n&&(this.search="",this.query={}),d&&(this.pathname=d),Qo[w]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){de=this.pathname||"";var J=this.search||"";this.path=de+J}return this.href=this.format(),this},Qr.prototype.format=function(){var a=this.auth||"";a&&(a=(a=encodeURIComponent(a)).replace(/%3A/i,":"),a+="@");var n=this.protocol||"",r=this.pathname||"",u=this.hash||"",g=!1,h="";this.host?g=a+this.host:this.hostname&&(g=a+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(g+=":"+this.port)),this.query&&gn.isObject(this.query)&&Object.keys(this.query).length&&(h=vu.stringify(this.query));var d=this.search||h&&"?"+h||"";return n&&n.substr(-1)!==":"&&(n+=":"),this.slashes||(!n||Qo[n])&&g!==!1?(g="//"+(g||""),r&&r.charAt(0)!=="/"&&(r="/"+r)):g||(g=""),u&&u.charAt(0)!=="#"&&(u="#"+u),d&&d.charAt(0)!=="?"&&(d="?"+d),n+g+(r=r.replace(/[?#]/g,function(m){return encodeURIComponent(m)}))+(d=d.replace("#","%23"))+u},Qr.prototype.resolve=function(a){return this.resolveObject(ds(a,!1,!0)).format()},Qr.prototype.resolveObject=function(a){if(gn.isString(a)){var n=new Qr;n.parse(a,!1,!0),a=n}for(var r=new Qr,u=Object.keys(this),g=0;g<u.length;g++){var h=u[g];r[h]=this[h]}if(r.hash=a.hash,a.href==="")return r.href=r.format(),r;if(a.slashes&&!a.protocol){for(var d=Object.keys(a),m=0;m<d.length;m++){var y=d[m];y!=="protocol"&&(r[y]=a[y])}return Qo[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(a.protocol&&a.protocol!==r.protocol){if(!Qo[a.protocol]){for(var w=Object.keys(a),_=0;_<w.length;_++){var S=w[_];r[S]=a[S]}return r.href=r.format(),r}if(r.protocol=a.protocol,a.host||bu[a.protocol])r.pathname=a.pathname;else{for(var T=(a.pathname||"").split("/");T.length&&!(a.host=T.shift()););a.host||(a.host=""),a.hostname||(a.hostname=""),T[0]!==""&&T.unshift(""),T.length<2&&T.unshift(""),r.pathname=T.join("/")}if(r.search=a.search,r.query=a.query,r.host=a.host||"",r.auth=a.auth,r.hostname=a.hostname||a.host,r.port=a.port,r.pathname||r.search){var O=r.pathname||"",E=r.search||"";r.path=O+E}return r.slashes=r.slashes||a.slashes,r.href=r.format(),r}var P=r.pathname&&r.pathname.charAt(0)==="/",A=a.host||a.pathname&&a.pathname.charAt(0)==="/",x=A||P||r.host&&a.pathname,U=x,M=r.pathname&&r.pathname.split("/")||[],ee=(T=a.pathname&&a.pathname.split("/")||[],r.protocol&&!Qo[r.protocol]);if(ee&&(r.hostname="",r.port=null,r.host&&(M[0]===""?M[0]=r.host:M.unshift(r.host)),r.host="",a.protocol&&(a.hostname=null,a.port=null,a.host&&(T[0]===""?T[0]=a.host:T.unshift(a.host)),a.host=null),x=x&&(T[0]===""||M[0]==="")),A)r.host=a.host||a.host===""?a.host:r.host,r.hostname=a.hostname||a.hostname===""?a.hostname:r.hostname,r.search=a.search,r.query=a.query,M=T;else if(T.length)M||(M=[]),M.pop(),M=M.concat(T),r.search=a.search,r.query=a.query;else if(!gn.isNullOrUndefined(a.search))return ee&&(r.hostname=r.host=M.shift(),(ae=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=ae.shift(),r.host=r.hostname=ae.shift())),r.search=a.search,r.query=a.query,gn.isNull(r.pathname)&&gn.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!M.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var V=M.slice(-1)[0],q=(r.host||a.host||M.length>1)&&(V==="."||V==="..")||V==="",G=0,re=M.length;re>=0;re--)(V=M[re])==="."?M.splice(re,1):V===".."?(M.splice(re,1),G++):G&&(M.splice(re,1),G--);if(!x&&!U)for(;G--;G)M.unshift("..");!x||M[0]===""||M[0]&&M[0].charAt(0)==="/"||M.unshift(""),q&&M.join("/").substr(-1)!=="/"&&M.push("");var ae,de=M[0]===""||M[0]&&M[0].charAt(0)==="/";return ee&&(r.hostname=r.host=de?"":M.length?M.shift():"",(ae=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=ae.shift(),r.host=r.hostname=ae.shift())),(x=x||r.host&&M.length)&&!de&&M.unshift(""),M.length?r.pathname=M.join("/"):(r.pathname=null,r.path=null),gn.isNull(r.pathname)&&gn.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=a.auth||r.auth,r.slashes=r.slashes||a.slashes,r.href=r.format(),r},Qr.prototype.parseHost=function(){var a=this.host,n=sx.exec(a);n&&((n=n[0])!==":"&&(this.port=n.substr(1)),a=a.substr(0,a.length-n.length)),a&&(this.hostname=a)},Nt.Url,Nt.format,Nt.resolve,Nt.resolveObject,uh={},Mv=!1,e(FF,"dew6"),$v=FF(),hx=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,Nt.URL=typeof URL<"u"?URL:null,Nt.pathToFileURL=xF,Nt.fileURLToPath=BF,Nt.Url,Nt.format,Nt.resolve,Nt.resolveObject,Nt.URL,qj=92,Gj=47,Vj=97,Kj=122,gd=hx==="win32",Jj=/\//g,Yj=/%/g,Zj=/\\/g,Qj=/\n/g,Xj=/\r/g,eC=/\t/g,e(BF,"fileURLToPath$1"),e(Oj,"getPathFromURLWin$1"),e(kj,"getPathFromURLPosix$1"),e(xF,"pathToFileURL$1"),dx=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,Nt.URL=typeof URL<"u"?URL:null,Nt.pathToFileURL=PF,Nt.fileURLToPath=IF,Nt.Url,Nt.format,Nt.resolve,Nt.resolveObject,Nt.parse,Nt.URL,tC=92,rC=47,nC=97,iC=122,yd=dx==="win32",oC=/\//g,aC=/%/g,sC=/\\/g,lC=/\n/g,fC=/\r/g,uC=/\t/g,e(IF,"fileURLToPath"),e(Tj,"getPathFromURLWin"),e(Fj,"getPathFromURLPosix"),e(PF,"pathToFileURL"),$r={},Wv=!1,Hi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(l2,"dew$k"),zv={},Hv=!1,e(f2,"dew$j"),ch={},qv=!1,e(Bj,"dew$i"),hh={},Gv=!1,e(u2,"dew$h"),dh={},Vv=!1,e(La,"dew$g"),ph={},Kv=!1,e(c2,"dew$f"),gh={},Jv=!1,Yv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(h2,"dew$e"),yh={},Zv=!1,e(Fa,"dew$d"),mh={},Qv=!1,e($d,"dew$c"),wh={},Xv=!1,e(xj,"dew$b"),e_={},t_=!1,e(Ij,"dew$a"),bh={},r_=!1,n_=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(d2,"dew$9"),vh={},i_=!1,e(p2,"dew$8"),_h={},o_=!1,e(Pj,"dew$7"),Eh={},a_=!1,e(jj,"dew$6"),Wr={},s_=!1,e(g2,"dew$5"),$l={},l_=!1,Wl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(y2,"dew$4"),Sh={},f_=!1,cr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(Cj,"dew$3"),Ah={},u_=!1,e(Lj,"dew$22"),c_={},h_=!1,e(Nj,"dew$14"),Rh={},d_=!1,cC=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(jF,"dew7"),ri=jF(),hC=ri.Agent,dC=ri.ClientRequest,pC=ri.IncomingMessage,gC=ri.METHODS,yC=ri.STATUS_CODES,mC=ri.get,wC=ri.globalAgent,bC=ri.request}),vC={};ln(vC,{Agent:l(()=>hC,"Agent"),ClientRequest:l(()=>dC,"ClientRequest"),IncomingMessage:l(()=>pC,"IncomingMessage"),METHODS:l(()=>gC,"METHODS"),STATUS_CODES:l(()=>yC,"STATUS_CODES"),get:l(()=>mC,"get"),globalAgent:l(()=>wC,"globalAgent"),request:l(()=>bC,"request")});var uD=er(()=>{fD()});function Pt(){Pt.init.call(this)}l(Pt,"at");function zl(o){if(typeof o!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof o)}l(zl,"bp");function p_(o){return o._maxListeners===void 0?Pt.defaultMaxListeners:o._maxListeners}l(p_,"FN");function um(o,i,f,p){var a,n,r,u;if(zl(f),(n=o._events)===void 0?(n=o._events=Object.create(null),o._eventsCount=0):(n.newListener!==void 0&&(o.emit("newListener",i,f.listener?f.listener:f),n=o._events),r=n[i]),r===void 0)r=n[i]=f,++o._eventsCount;else if(typeof r=="function"?r=n[i]=p?[f,r]:[r,f]:p?r.unshift(f):r.push(f),(a=p_(o))>0&&r.length>a&&!r.warned){r.warned=!0;var g=new Error("Possible EventEmitter memory leak detected. "+r.length+" "+String(i)+" listeners added. Use emitter.setMaxListeners() to increase limit");g.name="MaxListenersExceededWarning",g.emitter=o,g.type=i,g.count=r.length,u=g,console&&console.warn&&console.warn(u)}return o}l(um,"hL");function _C(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}l(_C,"fQ");function cm(o,i,f){var p={fired:!1,wrapFn:void 0,target:o,type:i,listener:f},a=_C.bind(p);return a.listener=f,p.wrapFn=a,a}l(cm,"dL");function hm(o,i,f){var p=o._events;if(p===void 0)return[];var a=p[i];return a===void 0?[]:typeof a=="function"?f?[a.listener||a]:[a]:f?function(n){for(var r=new Array(n.length),u=0;u<r.length;++u)r[u]=n[u].listener||n[u];return r}(a):g_(a,a.length)}l(hm,"pL");function dm(o){var i=this._events;if(i!==void 0){var f=i[o];if(typeof f=="function")return 1;if(f!==void 0)return f.length}return 0}l(dm,"yL");function g_(o,i){for(var f=new Array(i),p=0;p<i;++p)f[p]=o[p];return f}l(g_,"xN");function Oh(){throw new Error("setTimeout has not been defined")}l(Oh,"d_");function kh(){throw new Error("clearTimeout has not been defined")}l(kh,"p_");function y_(o){if(li===setTimeout)return setTimeout(o,0);if((li===Oh||!li)&&setTimeout)return li=setTimeout,setTimeout(o,0);try{return li(o,0)}catch{try{return li.call(null,o,0)}catch{return li.call(this||Aa,o,0)}}}l(y_,"PN");function EC(){Ra&&ga&&(Ra=!1,ga.length?Mn=ga.concat(Mn):gf=-1,Mn.length&&m_())}l(EC,"uQ");function m_(){if(!Ra){var o=y_(EC);Ra=!0;for(var i=Mn.length;i;){for(ga=Mn,Mn=[];++gf<i;)ga&&ga[gf].run();gf=-1,i=Mn.length}ga=null,Ra=!1,function(f){if(fi===clearTimeout)return clearTimeout(f);if((fi===kh||!fi)&&clearTimeout)return fi=clearTimeout,clearTimeout(f);try{fi(f)}catch{try{return fi.call(null,f)}catch{return fi.call(this||Aa,f)}}}(o)}}l(m_,"IN");function pm(o,i){(this||Aa).fun=o,(this||Aa).array=i}l(pm,"mL");function Rn(){}l(Rn,"vi");function Ii(o){return o.call.bind(o)}l(Ii,"Oa");function il(o,i){if(typeof o!="object")return!1;try{return i(o),!0}catch{return!1}}l(il,"pu");function gm(o){return Cr&&Gr?en(o)!==void 0:w_(o)||b_(o)||v_(o)||__(o)||E_(o)||S_(o)||A_(o)||R_(o)||O_(o)||k_(o)||T_(o)}l(gm,"wL");function w_(o){return Cr&&Gr?en(o)==="Uint8Array":Yt(o)==="[object Uint8Array]"||XC(o)&&o.buffer!==void 0}l(w_,"DN");function b_(o){return Cr&&Gr?en(o)==="Uint8ClampedArray":Yt(o)==="[object Uint8ClampedArray]"}l(b_,"$N");function v_(o){return Cr&&Gr?en(o)==="Uint16Array":Yt(o)==="[object Uint16Array]"}l(v_,"MN");function __(o){return Cr&&Gr?en(o)==="Uint32Array":Yt(o)==="[object Uint32Array]"}l(__,"UN");function E_(o){return Cr&&Gr?en(o)==="Int8Array":Yt(o)==="[object Int8Array]"}l(E_,"jN");function S_(o){return Cr&&Gr?en(o)==="Int16Array":Yt(o)==="[object Int16Array]"}l(S_,"HN");function A_(o){return Cr&&Gr?en(o)==="Int32Array":Yt(o)==="[object Int32Array]"}l(A_,"WN");function R_(o){return Cr&&Gr?en(o)==="Float32Array":Yt(o)==="[object Float32Array]"}l(R_,"qN");function O_(o){return Cr&&Gr?en(o)==="Float64Array":Yt(o)==="[object Float64Array]"}l(O_,"zN");function k_(o){return Cr&&Gr?en(o)==="BigInt64Array":Yt(o)==="[object BigInt64Array]"}l(k_,"VN");function T_(o){return Cr&&Gr?en(o)==="BigUint64Array":Yt(o)==="[object BigUint64Array]"}l(T_,"GN");function El(o){return Yt(o)==="[object Map]"}l(El,"up");function Sl(o){return Yt(o)==="[object Set]"}l(Sl,"cp");function Al(o){return Yt(o)==="[object WeakMap]"}l(Al,"hp");function _u(o){return Yt(o)==="[object WeakSet]"}l(_u,"Cb");function lf(o){return Yt(o)==="[object ArrayBuffer]"}l(lf,"Rp");function ym(o){return typeof ArrayBuffer<"u"&&(lf.working?lf(o):o instanceof ArrayBuffer)}l(ym,"vL");function ff(o){return Yt(o)==="[object DataView]"}l(ff,"Tp");function mm(o){return typeof DataView<"u"&&(ff.working?ff(o):o instanceof DataView)}l(mm,"bL");function uf(o){return Yt(o)==="[object SharedArrayBuffer]"}l(uf,"Fp");function wm(o){return typeof SharedArrayBuffer<"u"&&(uf.working?uf(o):o instanceof SharedArrayBuffer)}l(wm,"_L");function bm(o){return il(o,e8)}l(bm,"EL");function vm(o){return il(o,t8)}l(vm,"SL");function _m(o){return il(o,r8)}l(_m,"AL");function Em(o){return N_&&il(o,xQ)}l(Em,"RL");function Sm(o){return Ph&&il(o,OQ)}l(Sm,"TL");function yi(o,i){var f={seen:[],stylize:AC};return arguments.length>=3&&(f.depth=arguments[2]),arguments.length>=4&&(f.colors=arguments[3]),md(i)?f.showHidden=i:i&&at._extend(f,i),Yi(f.showHidden)&&(f.showHidden=!1),Yi(f.depth)&&(f.depth=2),Yi(f.colors)&&(f.colors=!1),Yi(f.customInspect)&&(f.customInspect=!0),f.colors&&(f.stylize=SC),bf(f,o,f.depth)}l(yi,"mo");function SC(o,i){var f=yi.styles[i];return f?"\x1B["+yi.colors[f][0]+"m"+o+"\x1B["+yi.colors[f][1]+"m":o}l(SC,"IQ");function AC(o,i){return o}l(AC,"kQ");function bf(o,i,f){if(o.customInspect&&i&&pf(i.inspect)&&i.inspect!==at.inspect&&(!i.constructor||i.constructor.prototype!==i)){var p=i.inspect(f,o);return hf(p)||(p=bf(o,p,f)),p}var a=function(y,w){if(Yi(w))return y.stylize("undefined","undefined");if(hf(w)){var _="'"+JSON.stringify(w).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return y.stylize(_,"string")}if(B_(w))return y.stylize(""+w,"number");if(md(w))return y.stylize(""+w,"boolean");if(cf(w))return y.stylize("null","null")}(o,i);if(a)return a;var n=Object.keys(i),r=function(y){var w={};return y.forEach(function(_,S){w[_]=!0}),w}(n);if(o.showHidden&&(n=Object.getOwnPropertyNames(i)),Ns(i)&&(n.indexOf("message")>=0||n.indexOf("description")>=0))return Th(i);if(n.length===0){if(pf(i)){var u=i.name?": "+i.name:"";return o.stylize("[Function"+u+"]","special")}if(Ls(i))return o.stylize(RegExp.prototype.toString.call(i),"regexp");if(df(i))return o.stylize(Date.prototype.toString.call(i),"date");if(Ns(i))return Th(i)}var g,h="",d=!1,m=["{","}"];return F_(i)&&(d=!0,m=["[","]"]),pf(i)&&(h=" [Function"+(i.name?": "+i.name:"")+"]"),Ls(i)&&(h=" "+RegExp.prototype.toString.call(i)),df(i)&&(h=" "+Date.prototype.toUTCString.call(i)),Ns(i)&&(h=" "+Th(i)),n.length!==0||d&&i.length!=0?f<0?Ls(i)?o.stylize(RegExp.prototype.toString.call(i),"regexp"):o.stylize("[Object]","special"):(o.seen.push(i),g=d?function(y,w,_,S,T){for(var O=[],E=0,P=w.length;E<P;++E)m2(w,String(E))?O.push(Fh(y,w,_,S,String(E),!0)):O.push("");return T.forEach(function(A){A.match(/^\d+$/)||O.push(Fh(y,w,_,S,A,!0))}),O}(o,i,f,r,n):n.map(function(y){return Fh(o,i,f,r,y,d)}),o.seen.pop(),function(y,w,_){var S=0;return y.reduce(function(T,O){return S++,O.indexOf(`
|
|
126
|
+
`)>=0&&S++,T+O.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?_[0]+(w===""?"":w+`
|
|
127
|
+
`)+" "+y.join(`,
|
|
128
|
+
`)+" "+_[1]:_[0]+w+" "+y.join(", ")+" "+_[1]}(g,h,m)):m[0]+h+m[1]}l(bf,"xp");function Th(o){return"["+Error.prototype.toString.call(o)+"]"}l(Th,"Lb");function Fh(o,i,f,p,a,n){var r,u,g;if((g=Object.getOwnPropertyDescriptor(i,a)||{value:i[a]}).get?u=g.set?o.stylize("[Getter/Setter]","special"):o.stylize("[Getter]","special"):g.set&&(u=o.stylize("[Setter]","special")),m2(p,a)||(r="["+a+"]"),u||(o.seen.indexOf(g.value)<0?(u=cf(f)?bf(o,g.value,null):bf(o,g.value,f-1)).indexOf(`
|
|
129
|
+
`)>-1&&(u=n?u.split(`
|
|
130
|
+
`).map(function(h){return" "+h}).join(`
|
|
131
|
+
`).substr(2):`
|
|
132
|
+
`+u.split(`
|
|
133
|
+
`).map(function(h){return" "+h}).join(`
|
|
134
|
+
`)):u=o.stylize("[Circular]","special")),Yi(r)){if(n&&a.match(/^\d+$/))return u;(r=JSON.stringify(""+a)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(r=r.substr(1,r.length-2),r=o.stylize(r,"name")):(r=r.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),r=o.stylize(r,"string"))}return r+": "+u}l(Fh,"Nb");function F_(o){return Array.isArray(o)}l(F_,"KN");function md(o){return typeof o=="boolean"}l(md,"R_");function cf(o){return o===null}l(cf,"kp");function B_(o){return typeof o=="number"}l(B_,"XN");function hf(o){return typeof o=="string"}l(hf,"Op");function Yi(o){return o===void 0}l(Yi,"xa");function Ls(o){return pa(o)&&Wd(o)==="[object RegExp]"}l(Ls,"hu");function pa(o){return typeof o=="object"&&o!==null}l(pa,"yl");function df(o){return pa(o)&&Wd(o)==="[object Date]"}l(df,"Pp");function Ns(o){return pa(o)&&(Wd(o)==="[object Error]"||o instanceof Error)}l(Ns,"du");function pf(o){return typeof o=="function"}l(pf,"Ep");function Wd(o){return Object.prototype.toString.call(o)}l(Wd,"T_");function Bh(o){return o<10?"0"+o.toString(10):o.toString(10)}l(Bh,"Db");function px(){var o=new Date,i=[Bh(o.getHours()),Bh(o.getMinutes()),Bh(o.getSeconds())].join(":");return[o.getDate(),n8[o.getMonth()],i].join(" ")}l(px,"CQ");function m2(o,i){return Object.prototype.hasOwnProperty.call(o,i)}l(m2,"JN");function gx(o,i){if(!o){var f=new Error("Promise was rejected with a falsy value");f.reason=o,o=f}return i(o)}l(gx,"LQ");function yx(){if(D_)return jh;D_=!0;var o=jh={},i,f;function p(){throw new Error("setTimeout has not been defined")}l(p,"n"),e(p,"defaultSetTimout");function a(){throw new Error("clearTimeout has not been defined")}l(a,"a"),e(a,"defaultClearTimeout"),function(){try{typeof setTimeout=="function"?i=setTimeout:i=p}catch{i=p}try{typeof clearTimeout=="function"?f=clearTimeout:f=a}catch{f=a}}();function n(S){if(i===setTimeout)return setTimeout(S,0);if((i===p||!i)&&setTimeout)return i=setTimeout,setTimeout(S,0);try{return i(S,0)}catch{try{return i.call(null,S,0)}catch{return i.call(this||oa,S,0)}}}l(n,"s"),e(n,"runTimeout");function r(S){if(f===clearTimeout)return clearTimeout(S);if((f===a||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(S);try{return f(S)}catch{try{return f.call(null,S)}catch{return f.call(this||oa,S)}}}l(r,"i"),e(r,"runClearTimeout");var u=[],g=!1,h,d=-1;function m(){!g||!h||(g=!1,h.length?u=h.concat(u):d=-1,u.length&&y())}l(m,"y"),e(m,"cleanUpNextTick");function y(){if(!g){var S=n(m);g=!0;for(var T=u.length;T;){for(h=u,u=[];++d<T;)h&&h[d].run();d=-1,T=u.length}h=null,g=!1,r(S)}}l(y,"m"),e(y,"drainQueue"),o.nextTick=function(S){var T=new Array(arguments.length-1);if(arguments.length>1)for(var O=1;O<arguments.length;O++)T[O-1]=arguments[O];u.push(new w(S,T)),u.length===1&&!g&&n(y)};function w(S,T){(this||oa).fun=S,(this||oa).array=T}l(w,"g"),e(w,"Item"),w.prototype.run=function(){(this||oa).fun.apply(null,(this||oa).array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={};function _(){}return l(_,"v"),e(_,"noop"),o.on=_,o.addListener=_,o.once=_,o.off=_,o.removeListener=_,o.removeAllListeners=_,o.emit=_,o.prependListener=_,o.prependOnceListener=_,o.listeners=function(S){return[]},o.binding=function(S){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(S){throw new Error("process.chdir is not supported")},o.umask=function(){return 0},jh}l(yx,"NQ");function Am(o){var i=o.length;if(i%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var f=o.indexOf("=");return f===-1&&(f=i),[f,f===i?0:4-f%4]}l(Am,"IL");function mx(o,i,f){for(var p,a,n=[],r=i;r<f;r+=3)p=(o[r]<<16&16711680)+(o[r+1]<<8&65280)+(255&o[r+2]),n.push(bn[(a=p)>>18&63]+bn[a>>12&63]+bn[a>>6&63]+bn[63&a]);return n.join("")}l(mx,"DQ");function Bn(o){if(o>2147483647)throw new RangeError('The value "'+o+'" is invalid for option "size"');var i=new Uint8Array(o);return Object.setPrototypeOf(i,tt.prototype),i}l(Bn,"Si");function tt(o,i,f){if(typeof o=="number"){if(typeof i=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return xh(o)}return x_(o,i,f)}l(tt,"Te");function x_(o,i,f){if(typeof o=="string")return function(n,r){if(typeof r=="string"&&r!==""||(r="utf8"),!tt.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var u=0|P_(n,r),g=Bn(u),h=g.write(n,r);return h!==u&&(g=g.slice(0,h)),g}(o,i);if(ArrayBuffer.isView(o))return Ih(o);if(o==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof o);if(xn(o,ArrayBuffer)||o&&xn(o.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(xn(o,SharedArrayBuffer)||o&&xn(o.buffer,SharedArrayBuffer)))return RC(o,i,f);if(typeof o=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var p=o.valueOf&&o.valueOf();if(p!=null&&p!==o)return tt.from(p,i,f);var a=function(n){if(tt.isBuffer(n)){var r=0|zd(n.length),u=Bn(r);return u.length===0||n.copy(u,0,0,r),u}if(n.length!==void 0)return typeof n.length!="number"||Hd(n.length)?Bn(0):Ih(n);if(n.type==="Buffer"&&Array.isArray(n.data))return Ih(n.data)}(o);if(a)return a;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof o[Symbol.toPrimitive]=="function")return tt.from(o[Symbol.toPrimitive]("string"),i,f);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof o)}l(x_,"QN");function I_(o){if(typeof o!="number")throw new TypeError('"size" argument must be of type number');if(o<0)throw new RangeError('The value "'+o+'" is invalid for option "size"')}l(I_,"eD");function xh(o){return I_(o),Bn(o<0?0:0|zd(o))}l(xh,"g_");function Ih(o){for(var i=o.length<0?0:0|zd(o.length),f=Bn(i),p=0;p<i;p+=1)f[p]=255&o[p];return f}l(Ih,"Mb");function RC(o,i,f){if(i<0||o.byteLength<i)throw new RangeError('"offset" is outside of buffer bounds');if(o.byteLength<i+(f||0))throw new RangeError('"length" is outside of buffer bounds');var p;return p=i===void 0&&f===void 0?new Uint8Array(o):f===void 0?new Uint8Array(o,i):new Uint8Array(o,i,f),Object.setPrototypeOf(p,tt.prototype),p}l(RC,"BL");function zd(o){if(o>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|o}l(zd,"F_");function P_(o,i){if(tt.isBuffer(o))return o.length;if(ArrayBuffer.isView(o)||xn(o,ArrayBuffer))return o.byteLength;if(typeof o!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof o);var f=o.length,p=arguments.length>2&&arguments[2]===!0;if(!p&&f===0)return 0;for(var a=!1;;)switch(i){case"ascii":case"latin1":case"binary":return f;case"utf8":case"utf-8":return wd(o).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*f;case"hex":return f>>>1;case"base64":return b2(o).length;default:if(a)return p?-1:wd(o).length;i=(""+i).toLowerCase(),a=!0}}l(P_,"tD");function wx(o,i,f){var p=!1;if((i===void 0||i<0)&&(i=0),i>this.length||((f===void 0||f>this.length)&&(f=this.length),f<=0)||(f>>>=0)<=(i>>>=0))return"";for(o||(o="utf8");;)switch(o){case"hex":return FC(this,i,f);case"utf8":case"utf-8":return L_(this,i,f);case"ascii":return kC(this,i,f);case"latin1":case"binary":return TC(this,i,f);case"base64":return OC(this,i,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return BC(this,i,f);default:if(p)throw new TypeError("Unknown encoding: "+o);o=(o+"").toLowerCase(),p=!0}}l(wx,"MQ");function Pi(o,i,f){var p=o[i];o[i]=o[f],o[f]=p}l(Pi,"Ea");function Rm(o,i,f,p,a){if(o.length===0)return-1;if(typeof f=="string"?(p=f,f=0):f>2147483647?f=2147483647:f<-2147483648&&(f=-2147483648),Hd(f=+f)&&(f=a?0:o.length-1),f<0&&(f=o.length+f),f>=o.length){if(a)return-1;f=o.length-1}else if(f<0){if(!a)return-1;f=0}if(typeof i=="string"&&(i=tt.from(i,p)),tt.isBuffer(i))return i.length===0?-1:j_(o,i,f,p,a);if(typeof i=="number")return i&=255,typeof Uint8Array.prototype.indexOf=="function"?a?Uint8Array.prototype.indexOf.call(o,i,f):Uint8Array.prototype.lastIndexOf.call(o,i,f):j_(o,[i],f,p,a);throw new TypeError("val must be string, number or Buffer")}l(Rm,"CL");function j_(o,i,f,p,a){var n,r=1,u=o.length,g=i.length;if(p!==void 0&&((p=String(p).toLowerCase())==="ucs2"||p==="ucs-2"||p==="utf16le"||p==="utf-16le")){if(o.length<2||i.length<2)return-1;r=2,u/=2,g/=2,f/=2}function h(w,_){return r===1?w[_]:w.readUInt16BE(_*r)}if(l(h,"c"),e(h,"h5"),a){var d=-1;for(n=f;n<u;n++)if(h(o,n)===h(i,d===-1?0:n-d)){if(d===-1&&(d=n),n-d+1===g)return d*r}else d!==-1&&(n-=n-d),d=-1}else for(f+g>u&&(f=u-g),n=f;n>=0;n--){for(var m=!0,y=0;y<g;y++)if(h(o,n+y)!==h(i,y)){m=!1;break}if(m)return n}return-1}l(j_,"LL");function bx(o,i,f,p){f=Number(f)||0;var a=o.length-f;p?(p=Number(p))>a&&(p=a):p=a;var n=i.length;p>n/2&&(p=n/2);for(var r=0;r<p;++r){var u=parseInt(i.substr(2*r,2),16);if(Hd(u))return r;o[f+r]=u}return r}l(bx,"UQ");function vx(o,i,f,p){return xf(wd(i,o.length-f),o,f,p)}l(vx,"jQ");function C_(o,i,f,p){return xf(function(a){for(var n=[],r=0;r<a.length;++r)n.push(255&a.charCodeAt(r));return n}(i),o,f,p)}l(C_,"rD");function _x(o,i,f,p){return C_(o,i,f,p)}l(_x,"HQ");function Ex(o,i,f,p){return xf(b2(i),o,f,p)}l(Ex,"WQ");function Sx(o,i,f,p){return xf(function(a,n){for(var r,u,g,h=[],d=0;d<a.length&&!((n-=2)<0);++d)r=a.charCodeAt(d),u=r>>8,g=r%256,h.push(g),h.push(u);return h}(i,o.length-f),o,f,p)}l(Sx,"qQ");function OC(o,i,f){return i===0&&f===o.length?bd.fromByteArray(o):bd.fromByteArray(o.slice(i,f))}l(OC,"zQ");function L_(o,i,f){f=Math.min(o.length,f);for(var p=[],a=i;a<f;){var n,r,u,g,h=o[a],d=null,m=h>239?4:h>223?3:h>191?2:1;if(a+m<=f)switch(m){case 1:h<128&&(d=h);break;case 2:(192&(n=o[a+1]))==128&&(g=(31&h)<<6|63&n)>127&&(d=g);break;case 3:n=o[a+1],r=o[a+2],(192&n)==128&&(192&r)==128&&(g=(15&h)<<12|(63&n)<<6|63&r)>2047&&(g<55296||g>57343)&&(d=g);break;case 4:n=o[a+1],r=o[a+2],u=o[a+3],(192&n)==128&&(192&r)==128&&(192&u)==128&&(g=(15&h)<<18|(63&n)<<12|(63&r)<<6|63&u)>65535&&g<1114112&&(d=g)}d===null?(d=65533,m=1):d>65535&&(d-=65536,p.push(d>>>10&1023|55296),d=56320|1023&d),p.push(d),a+=m}return function(y){var w=y.length;if(w<=4096)return String.fromCharCode.apply(String,y);for(var _="",S=0;S<w;)_+=String.fromCharCode.apply(String,y.slice(S,S+=4096));return _}(p)}l(L_,"nD");function kC(o,i,f){var p="";f=Math.min(o.length,f);for(var a=i;a<f;++a)p+=String.fromCharCode(127&o[a]);return p}l(kC,"VQ");function TC(o,i,f){var p="";f=Math.min(o.length,f);for(var a=i;a<f;++a)p+=String.fromCharCode(o[a]);return p}l(TC,"GQ");function FC(o,i,f){var p=o.length;(!i||i<0)&&(i=0),(!f||f<0||f>p)&&(f=p);for(var a="",n=i;n<f;++n)a+=o8[o[n]];return a}l(FC,"YQ");function BC(o,i,f){for(var p=o.slice(i,f),a="",n=0;n<p.length;n+=2)a+=String.fromCharCode(p[n]+256*p[n+1]);return a}l(BC,"KQ");function ur(o,i,f){if(o%1!=0||o<0)throw new RangeError("offset is not uint");if(o+i>f)throw new RangeError("Trying to access beyond buffer length")}l(ur,"Ut");function Ir(o,i,f,p,a,n){if(!tt.isBuffer(o))throw new TypeError('"buffer" argument must be a Buffer instance');if(i>a||i<n)throw new RangeError('"value" argument is out of bounds');if(f+p>o.length)throw new RangeError("Index out of range")}l(Ir,"Sr");function w2(o,i,f,p,a,n){if(f+p>o.length)throw new RangeError("Index out of range");if(f<0)throw new RangeError("Index out of range")}l(w2,"iD");function Om(o,i,f,p,a){return i=+i,f>>>=0,a||w2(o,0,f,4),aa.write(o,i,f,p,23,4),f+4}l(Om,"NL");function km(o,i,f,p,a){return i=+i,f>>>=0,a||w2(o,0,f,8),aa.write(o,i,f,p,52,8),f+8}l(km,"DL");function wd(o,i){var f;i=i||1/0;for(var p=o.length,a=null,n=[],r=0;r<p;++r){if((f=o.charCodeAt(r))>55295&&f<57344){if(!a){if(f>56319){(i-=3)>-1&&n.push(239,191,189);continue}if(r+1===p){(i-=3)>-1&&n.push(239,191,189);continue}a=f;continue}if(f<56320){(i-=3)>-1&&n.push(239,191,189),a=f;continue}f=65536+(a-55296<<10|f-56320)}else a&&(i-=3)>-1&&n.push(239,191,189);if(a=null,f<128){if((i-=1)<0)break;n.push(f)}else if(f<2048){if((i-=2)<0)break;n.push(f>>6|192,63&f|128)}else if(f<65536){if((i-=3)<0)break;n.push(f>>12|224,f>>6&63|128,63&f|128)}else{if(!(f<1114112))throw new Error("Invalid code point");if((i-=4)<0)break;n.push(f>>18|240,f>>12&63|128,f>>6&63|128,63&f|128)}}return n}l(wd,"w_");function b2(o){return bd.toByteArray(function(i){if((i=(i=i.split("=")[0]).trim().replace(i8,"")).length<2)return"";for(;i.length%4!=0;)i+="=";return i}(o))}l(b2,"oD");function xf(o,i,f,p){for(var a=0;a<p&&!(a+f>=i.length||a>=o.length);++a)i[a+f]=o[a];return a}l(xf,"Bp");function xn(o,i){return o instanceof i||o!=null&&o.constructor!=null&&o.constructor.name!=null&&o.constructor.name===i.name}l(xn,"Ai");function Hd(o){return o!=o}l(Hd,"x_");function Tm(o,i){for(var f in o)i[f]=o[f]}l(Tm,"$L");function ji(o,i,f){return yn(o,i,f)}l(ji,"Sa");function ys(o){var i;switch(this.encoding=function(f){var p=function(a){if(!a)return"utf8";for(var n;;)switch(a){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 a;default:if(n)return;a=(""+a).toLowerCase(),n=!0}}(f);if(typeof p!="string"&&(_d.isEncoding===U_||!U_(f)))throw new Error("Unknown encoding: "+f);return p||f}(o),this.encoding){case"utf16le":this.text=IC,this.end=PC,i=4;break;case"utf8":this.fillLast=xC,i=4;break;case"base64":this.text=jC,this.end=CC,i=3;break;default:return this.write=LC,this.end=NC,void 0}this.lastNeed=0,this.lastTotal=0,this.lastChar=_d.allocUnsafe(i)}l(ys,"su");function Eu(o){return o<=127?0:o>>5==6?2:o>>4==14?3:o>>3==30?4:o>>6==2?-1:-2}l(Eu,"Ub");function xC(o){var i=this.lastTotal-this.lastNeed,f=function(p,a,n){if((192&a[0])!=128)return p.lastNeed=0,"\uFFFD";if(p.lastNeed>1&&a.length>1){if((192&a[1])!=128)return p.lastNeed=1,"\uFFFD";if(p.lastNeed>2&&a.length>2&&(192&a[2])!=128)return p.lastNeed=2,"\uFFFD"}}(this,o);return f!==void 0?f:this.lastNeed<=o.length?(o.copy(this.lastChar,i,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(o.copy(this.lastChar,i,0,o.length),this.lastNeed-=o.length,void 0)}l(xC,"QQ");function IC(o,i){if((o.length-i)%2==0){var f=o.toString("utf16le",i);if(f){var p=f.charCodeAt(f.length-1);if(p>=55296&&p<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=o[o.length-2],this.lastChar[1]=o[o.length-1],f.slice(0,-1)}return f}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=o[o.length-1],o.toString("utf16le",i,o.length-1)}l(IC,"e5");function PC(o){var i=o&&o.length?this.write(o):"";if(this.lastNeed){var f=this.lastTotal-this.lastNeed;return i+this.lastChar.toString("utf16le",0,f)}return i}l(PC,"t5");function jC(o,i){var f=(o.length-i)%3;return f===0?o.toString("base64",i):(this.lastNeed=3-f,this.lastTotal=3,f===1?this.lastChar[0]=o[o.length-1]:(this.lastChar[0]=o[o.length-2],this.lastChar[1]=o[o.length-1]),o.toString("base64",i,o.length-f))}l(jC,"r5");function CC(o){var i=o&&o.length?this.write(o):"";return this.lastNeed?i+this.lastChar.toString("base64",0,3-this.lastNeed):i}l(CC,"n5");function LC(o){return o.toString(this.encoding)}l(LC,"i5");function NC(o){return o&&o.length?this.write(o):""}l(NC,"o5");function DC(){if(M_)return Is;M_=!0,Is.byteLength=u,Is.toByteArray=h,Is.fromByteArray=y;for(var o=[],i=[],f=typeof Uint8Array<"u"?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,n=p.length;a<n;++a)o[a]=p[a],i[p.charCodeAt(a)]=a;i[45]=62,i[95]=63;function r(w){var _=w.length;if(_%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var S=w.indexOf("=");S===-1&&(S=_);var T=S===_?0:4-S%4;return[S,T]}l(r,"i"),e(r,"getLens");function u(w){var _=r(w),S=_[0],T=_[1];return(S+T)*3/4-T}l(u,"f"),e(u,"byteLength");function g(w,_,S){return(_+S)*3/4-S}l(g,"h"),e(g,"_byteLength");function h(w){var _,S=r(w),T=S[0],O=S[1],E=new f(g(w,T,O)),P=0,A=O>0?T-4:T,x;for(x=0;x<A;x+=4)_=i[w.charCodeAt(x)]<<18|i[w.charCodeAt(x+1)]<<12|i[w.charCodeAt(x+2)]<<6|i[w.charCodeAt(x+3)],E[P++]=_>>16&255,E[P++]=_>>8&255,E[P++]=_&255;return O===2&&(_=i[w.charCodeAt(x)]<<2|i[w.charCodeAt(x+1)]>>4,E[P++]=_&255),O===1&&(_=i[w.charCodeAt(x)]<<10|i[w.charCodeAt(x+1)]<<4|i[w.charCodeAt(x+2)]>>2,E[P++]=_>>8&255,E[P++]=_&255),E}l(h,"c"),e(h,"toByteArray");function d(w){return o[w>>18&63]+o[w>>12&63]+o[w>>6&63]+o[w&63]}l(d,"d"),e(d,"tripletToBase64");function m(w,_,S){for(var T,O=[],E=_;E<S;E+=3)T=(w[E]<<16&16711680)+(w[E+1]<<8&65280)+(w[E+2]&255),O.push(d(T));return O.join("")}l(m,"y"),e(m,"encodeChunk");function y(w){for(var _,S=w.length,T=S%3,O=[],E=16383,P=0,A=S-T;P<A;P+=E)O.push(m(w,P,P+E>A?A:P+E));return T===1?(_=w[S-1],O.push(o[_>>2]+o[_<<4&63]+"==")):T===2&&(_=(w[S-2]<<8)+w[S-1],O.push(o[_>>10]+o[_>>4&63]+o[_<<2&63]+"=")),O.join("")}return l(y,"m"),e(y,"fromByteArray"),Is}l(DC,"a5");function UC(){return $_||($_=!0,Ch.read=function(o,i,f,p,a){var n,r,u=a*8-p-1,g=(1<<u)-1,h=g>>1,d=-7,m=f?a-1:0,y=f?-1:1,w=o[i+m];for(m+=y,n=w&(1<<-d)-1,w>>=-d,d+=u;d>0;n=n*256+o[i+m],m+=y,d-=8);for(r=n&(1<<-d)-1,n>>=-d,d+=p;d>0;r=r*256+o[i+m],m+=y,d-=8);if(n===0)n=1-h;else{if(n===g)return r?NaN:(w?-1:1)*(1/0);r=r+Math.pow(2,p),n=n-h}return(w?-1:1)*r*Math.pow(2,n-p)},Ch.write=function(o,i,f,p,a,n){var r,u,g,h=n*8-a-1,d=(1<<h)-1,m=d>>1,y=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=p?0:n-1,_=p?1:-1,S=i<0||i===0&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(u=isNaN(i)?1:0,r=d):(r=Math.floor(Math.log(i)/Math.LN2),i*(g=Math.pow(2,-r))<1&&(r--,g*=2),r+m>=1?i+=y/g:i+=y*Math.pow(2,1-m),i*g>=2&&(r++,g/=2),r+m>=d?(u=0,r=d):r+m>=1?(u=(i*g-1)*Math.pow(2,a),r=r+m):(u=i*Math.pow(2,m-1)*Math.pow(2,a),r=0));a>=8;o[f+w]=u&255,w+=_,u/=256,a-=8);for(r=r<<a|u,h+=a;h>0;o[f+w]=r&255,w+=_,r/=256,h-=8);o[f+w-_]|=S*128}),Ch}l(UC,"s5");function Ax(){if(W_)return qi;W_=!0;let o=DC(),i=UC(),f=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;qi.Buffer=r,qi.SlowBuffer=O,qi.INSPECT_MAX_BYTES=50;let p=2147483647;qi.kMaxLength=p,r.TYPED_ARRAY_SUPPORT=a(),!r.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{let t=new Uint8Array(1),s={foo:e(function(){return 42},"foo")};return Object.setPrototypeOf(s,Uint8Array.prototype),Object.setPrototypeOf(t,s),t.foo()===42}catch{return!1}}l(a,"a"),e(a,"typedArraySupport"),Object.defineProperty(r.prototype,"parent",{enumerable:!0,get:e(function(){if(r.isBuffer(this))return this.buffer},"get")}),Object.defineProperty(r.prototype,"offset",{enumerable:!0,get:e(function(){if(r.isBuffer(this))return this.byteOffset},"get")});function n(t){if(t>p)throw new RangeError('The value "'+t+'" is invalid for option "size"');let s=new Uint8Array(t);return Object.setPrototypeOf(s,r.prototype),s}l(n,"s"),e(n,"createBuffer");function r(t,s,c){if(typeof t=="number"){if(typeof s=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(t)}return u(t,s,c)}l(r,"i"),e(r,"Buffer"),r.poolSize=8192;function u(t,s,c){if(typeof t=="string")return m(t,s);if(ArrayBuffer.isView(t))return w(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Ie(t,ArrayBuffer)||t&&Ie(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ie(t,SharedArrayBuffer)||t&&Ie(t.buffer,SharedArrayBuffer)))return _(t,s,c);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let v=t.valueOf&&t.valueOf();if(v!=null&&v!==t)return r.from(v,s,c);let R=S(t);if(R)return R;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return r.from(t[Symbol.toPrimitive]("string"),s,c);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}l(u,"f"),e(u,"from"),r.from=function(t,s,c){return u(t,s,c)},Object.setPrototypeOf(r.prototype,Uint8Array.prototype),Object.setPrototypeOf(r,Uint8Array);function g(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}l(g,"h"),e(g,"assertSize");function h(t,s,c){return g(t),t<=0?n(t):s!==void 0?typeof c=="string"?n(t).fill(s,c):n(t).fill(s):n(t)}l(h,"c"),e(h,"alloc"),r.alloc=function(t,s,c){return h(t,s,c)};function d(t){return g(t),n(t<0?0:T(t)|0)}l(d,"d"),e(d,"allocUnsafe"),r.allocUnsafe=function(t){return d(t)},r.allocUnsafeSlow=function(t){return d(t)};function m(t,s){if((typeof s!="string"||s==="")&&(s="utf8"),!r.isEncoding(s))throw new TypeError("Unknown encoding: "+s);let c=E(t,s)|0,v=n(c),R=v.write(t,s);return R!==c&&(v=v.slice(0,R)),v}l(m,"y"),e(m,"fromString");function y(t){let s=t.length<0?0:T(t.length)|0,c=n(s);for(let v=0;v<s;v+=1)c[v]=t[v]&255;return c}l(y,"m"),e(y,"fromArrayLike");function w(t){if(Ie(t,Uint8Array)){let s=new Uint8Array(t);return _(s.buffer,s.byteOffset,s.byteLength)}return y(t)}l(w,"g"),e(w,"fromArrayView");function _(t,s,c){if(s<0||t.byteLength<s)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<s+(c||0))throw new RangeError('"length" is outside of buffer bounds');let v;return s===void 0&&c===void 0?v=new Uint8Array(t):c===void 0?v=new Uint8Array(t,s):v=new Uint8Array(t,s,c),Object.setPrototypeOf(v,r.prototype),v}l(_,"v"),e(_,"fromArrayBuffer");function S(t){if(r.isBuffer(t)){let s=T(t.length)|0,c=n(s);return c.length===0||t.copy(c,0,0,s),c}if(t.length!==void 0)return typeof t.length!="number"||ke(t.length)?n(0):y(t);if(t.type==="Buffer"&&Array.isArray(t.data))return y(t.data)}l(S,"_"),e(S,"fromObject");function T(t){if(t>=p)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+p.toString(16)+" bytes");return t|0}l(T,"b"),e(T,"checked");function O(t){return+t!=t&&(t=0),r.alloc(+t)}l(O,"E"),e(O,"SlowBuffer"),r.isBuffer=e(function(t){return t!=null&&t._isBuffer===!0&&t!==r.prototype},"isBuffer"),r.compare=e(function(t,s){if(Ie(t,Uint8Array)&&(t=r.from(t,t.offset,t.byteLength)),Ie(s,Uint8Array)&&(s=r.from(s,s.offset,s.byteLength)),!r.isBuffer(t)||!r.isBuffer(s))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===s)return 0;let c=t.length,v=s.length;for(let R=0,C=Math.min(c,v);R<C;++R)if(t[R]!==s[R]){c=t[R],v=s[R];break}return c<v?-1:v<c?1:0},"compare"),r.isEncoding=e(function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},"isEncoding"),r.concat=e(function(t,s){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return r.alloc(0);let c;if(s===void 0)for(s=0,c=0;c<t.length;++c)s+=t[c].length;let v=r.allocUnsafe(s),R=0;for(c=0;c<t.length;++c){let C=t[c];if(Ie(C,Uint8Array))R+C.length>v.length?(r.isBuffer(C)||(C=r.from(C)),C.copy(v,R)):Uint8Array.prototype.set.call(v,C,R);else if(r.isBuffer(C))C.copy(v,R);else throw new TypeError('"list" argument must be an Array of Buffers');R+=C.length}return v},"concat");function E(t,s){if(r.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Ie(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let c=t.length,v=arguments.length>2&&arguments[2]===!0;if(!v&&c===0)return 0;let R=!1;for(;;)switch(s){case"ascii":case"latin1":case"binary":return c;case"utf8":case"utf-8":return Ee(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c*2;case"hex":return c>>>1;case"base64":return ge(t).length;default:if(R)return v?-1:Ee(t).length;s=(""+s).toLowerCase(),R=!0}}l(E,"R"),e(E,"byteLength"),r.byteLength=E;function P(t,s,c){let v=!1;if((s===void 0||s<0)&&(s=0),s>this.length||((c===void 0||c>this.length)&&(c=this.length),c<=0)||(c>>>=0,s>>>=0,c<=s))return"";for(t||(t="utf8");;)switch(t){case"hex":return se(this,s,c);case"utf8":case"utf-8":return ae(this,s,c);case"ascii":return xe(this,s,c);case"latin1":case"binary":return Pe(this,s,c);case"base64":return re(this,s,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Te(this,s,c);default:if(v)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),v=!0}}l(P,"T"),e(P,"slowToString"),r.prototype._isBuffer=!0;function A(t,s,c){let v=t[s];t[s]=t[c],t[c]=v}l(A,"F"),e(A,"swap"),r.prototype.swap16=e(function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let s=0;s<t;s+=2)A(this,s,s+1);return this},"swap16"),r.prototype.swap32=e(function(){let t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let s=0;s<t;s+=4)A(this,s,s+3),A(this,s+1,s+2);return this},"swap32"),r.prototype.swap64=e(function(){let t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let s=0;s<t;s+=8)A(this,s,s+7),A(this,s+1,s+6),A(this,s+2,s+5),A(this,s+3,s+4);return this},"swap64"),r.prototype.toString=e(function(){let t=this.length;return t===0?"":arguments.length===0?ae(this,0,t):P.apply(this,arguments)},"toString"),r.prototype.toLocaleString=r.prototype.toString,r.prototype.equals=e(function(t){if(!r.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:r.compare(this,t)===0},"equals"),r.prototype.inspect=e(function(){let t="",s=qi.INSPECT_MAX_BYTES;return t=this.toString("hex",0,s).replace(/(.{2})/g,"$1 ").trim(),this.length>s&&(t+=" ... "),"<Buffer "+t+">"},"inspect"),f&&(r.prototype[f]=r.prototype.inspect),r.prototype.compare=e(function(t,s,c,v,R){if(Ie(t,Uint8Array)&&(t=r.from(t,t.offset,t.byteLength)),!r.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(s===void 0&&(s=0),c===void 0&&(c=t?t.length:0),v===void 0&&(v=0),R===void 0&&(R=this.length),s<0||c>t.length||v<0||R>this.length)throw new RangeError("out of range index");if(v>=R&&s>=c)return 0;if(v>=R)return-1;if(s>=c)return 1;if(s>>>=0,c>>>=0,v>>>=0,R>>>=0,this===t)return 0;let C=R-v,j=c-s,Z=Math.min(C,j),oe=this.slice(v,R),Ae=t.slice(s,c);for(let le=0;le<Z;++le)if(oe[le]!==Ae[le]){C=oe[le],j=Ae[le];break}return C<j?-1:j<C?1:0},"compare");function x(t,s,c,v,R){if(t.length===0)return-1;if(typeof c=="string"?(v=c,c=0):c>2147483647?c=2147483647:c<-2147483648&&(c=-2147483648),c=+c,ke(c)&&(c=R?0:t.length-1),c<0&&(c=t.length+c),c>=t.length){if(R)return-1;c=t.length-1}else if(c<0)if(R)c=0;else return-1;if(typeof s=="string"&&(s=r.from(s,v)),r.isBuffer(s))return s.length===0?-1:U(t,s,c,v,R);if(typeof s=="number")return s=s&255,typeof Uint8Array.prototype.indexOf=="function"?R?Uint8Array.prototype.indexOf.call(t,s,c):Uint8Array.prototype.lastIndexOf.call(t,s,c):U(t,[s],c,v,R);throw new TypeError("val must be string, number or Buffer")}l(x,"S"),e(x,"bidirectionalIndexOf");function U(t,s,c,v,R){let C=1,j=t.length,Z=s.length;if(v!==void 0&&(v=String(v).toLowerCase(),v==="ucs2"||v==="ucs-2"||v==="utf16le"||v==="utf-16le")){if(t.length<2||s.length<2)return-1;C=2,j/=2,Z/=2,c/=2}function oe(le,Fe){return C===1?le[Fe]:le.readUInt16BE(Fe*C)}l(oe,"re"),e(oe,"read");let Ae;if(R){let le=-1;for(Ae=c;Ae<j;Ae++)if(oe(t,Ae)===oe(s,le===-1?0:Ae-le)){if(le===-1&&(le=Ae),Ae-le+1===Z)return le*C}else le!==-1&&(Ae-=Ae-le),le=-1}else for(c+Z>j&&(c=j-Z),Ae=c;Ae>=0;Ae--){let le=!0;for(let Fe=0;Fe<Z;Fe++)if(oe(t,Ae+Fe)!==oe(s,Fe)){le=!1;break}if(le)return Ae}return-1}l(U,"B"),e(U,"arrayIndexOf"),r.prototype.includes=e(function(t,s,c){return this.indexOf(t,s,c)!==-1},"includes"),r.prototype.indexOf=e(function(t,s,c){return x(this,t,s,c,!0)},"indexOf"),r.prototype.lastIndexOf=e(function(t,s,c){return x(this,t,s,c,!1)},"lastIndexOf");function M(t,s,c,v){c=Number(c)||0;let R=t.length-c;v?(v=Number(v),v>R&&(v=R)):v=R;let C=s.length;v>C/2&&(v=C/2);let j;for(j=0;j<v;++j){let Z=parseInt(s.substr(j*2,2),16);if(ke(Z))return j;t[c+j]=Z}return j}l(M,"P"),e(M,"hexWrite");function ee(t,s,c,v){return Ne(Ee(s,t.length-c),t,c,v)}l(ee,"N"),e(ee,"utf8Write");function V(t,s,c,v){return Ne(Oe(s),t,c,v)}l(V,"L"),e(V,"asciiWrite");function q(t,s,c,v){return Ne(ge(s),t,c,v)}l(q,"C"),e(q,"base64Write");function G(t,s,c,v){return Ne(be(s,t.length-c),t,c,v)}l(G,"j"),e(G,"ucs2Write"),r.prototype.write=e(function(t,s,c,v){if(s===void 0)v="utf8",c=this.length,s=0;else if(c===void 0&&typeof s=="string")v=s,c=this.length,s=0;else if(isFinite(s))s=s>>>0,isFinite(c)?(c=c>>>0,v===void 0&&(v="utf8")):(v=c,c=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let R=this.length-s;if((c===void 0||c>R)&&(c=R),t.length>0&&(c<0||s<0)||s>this.length)throw new RangeError("Attempt to write outside buffer bounds");v||(v="utf8");let C=!1;for(;;)switch(v){case"hex":return M(this,t,s,c);case"utf8":case"utf-8":return ee(this,t,s,c);case"ascii":case"latin1":case"binary":return V(this,t,s,c);case"base64":return q(this,t,s,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,t,s,c);default:if(C)throw new TypeError("Unknown encoding: "+v);v=(""+v).toLowerCase(),C=!0}},"write"),r.prototype.toJSON=e(function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},"toJSON");function re(t,s,c){return s===0&&c===t.length?o.fromByteArray(t):o.fromByteArray(t.slice(s,c))}l(re,"q"),e(re,"base64Slice");function ae(t,s,c){c=Math.min(t.length,c);let v=[],R=s;for(;R<c;){let C=t[R],j=null,Z=C>239?4:C>223?3:C>191?2:1;if(R+Z<=c){let oe,Ae,le,Fe;switch(Z){case 1:C<128&&(j=C);break;case 2:oe=t[R+1],(oe&192)===128&&(Fe=(C&31)<<6|oe&63,Fe>127&&(j=Fe));break;case 3:oe=t[R+1],Ae=t[R+2],(oe&192)===128&&(Ae&192)===128&&(Fe=(C&15)<<12|(oe&63)<<6|Ae&63,Fe>2047&&(Fe<55296||Fe>57343)&&(j=Fe));break;case 4:oe=t[R+1],Ae=t[R+2],le=t[R+3],(oe&192)===128&&(Ae&192)===128&&(le&192)===128&&(Fe=(C&15)<<18|(oe&63)<<12|(Ae&63)<<6|le&63,Fe>65535&&Fe<1114112&&(j=Fe))}}j===null?(j=65533,Z=1):j>65535&&(j-=65536,v.push(j>>>10&1023|55296),j=56320|j&1023),v.push(j),R+=Z}return we(v)}l(ae,"Z"),e(ae,"utf8Slice");let de=4096;function we(t){let s=t.length;if(s<=de)return String.fromCharCode.apply(String,t);let c="",v=0;for(;v<s;)c+=String.fromCharCode.apply(String,t.slice(v,v+=de));return c}l(we,"se"),e(we,"decodeCodePointsArray");function xe(t,s,c){let v="";c=Math.min(t.length,c);for(let R=s;R<c;++R)v+=String.fromCharCode(t[R]&127);return v}l(xe,"_e"),e(xe,"asciiSlice");function Pe(t,s,c){let v="";c=Math.min(t.length,c);for(let R=s;R<c;++R)v+=String.fromCharCode(t[R]);return v}l(Pe,"pe"),e(Pe,"latin1Slice");function se(t,s,c){let v=t.length;(!s||s<0)&&(s=0),(!c||c<0||c>v)&&(c=v);let R="";for(let C=s;C<c;++C)R+=Ce[t[C]];return R}l(se,"Q"),e(se,"hexSlice");function Te(t,s,c){let v=t.slice(s,c),R="";for(let C=0;C<v.length-1;C+=2)R+=String.fromCharCode(v[C]+v[C+1]*256);return R}l(Te,"he"),e(Te,"utf16leSlice"),r.prototype.slice=e(function(t,s){let c=this.length;t=~~t,s=s===void 0?c:~~s,t<0?(t+=c,t<0&&(t=0)):t>c&&(t=c),s<0?(s+=c,s<0&&(s=0)):s>c&&(s=c),s<t&&(s=t);let v=this.subarray(t,s);return Object.setPrototypeOf(v,r.prototype),v},"slice");function J(t,s,c){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+s>c)throw new RangeError("Trying to access beyond buffer length")}l(J,"U"),e(J,"checkOffset"),r.prototype.readUintLE=r.prototype.readUIntLE=e(function(t,s,c){t=t>>>0,s=s>>>0,c||J(t,s,this.length);let v=this[t],R=1,C=0;for(;++C<s&&(R*=256);)v+=this[t+C]*R;return v},"readUIntLE"),r.prototype.readUintBE=r.prototype.readUIntBE=e(function(t,s,c){t=t>>>0,s=s>>>0,c||J(t,s,this.length);let v=this[t+--s],R=1;for(;s>0&&(R*=256);)v+=this[t+--s]*R;return v},"readUIntBE"),r.prototype.readUint8=r.prototype.readUInt8=e(function(t,s){return t=t>>>0,s||J(t,1,this.length),this[t]},"readUInt8"),r.prototype.readUint16LE=r.prototype.readUInt16LE=e(function(t,s){return t=t>>>0,s||J(t,2,this.length),this[t]|this[t+1]<<8},"readUInt16LE"),r.prototype.readUint16BE=r.prototype.readUInt16BE=e(function(t,s){return t=t>>>0,s||J(t,2,this.length),this[t]<<8|this[t+1]},"readUInt16BE"),r.prototype.readUint32LE=r.prototype.readUInt32LE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216},"readUInt32LE"),r.prototype.readUint32BE=r.prototype.readUInt32BE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])},"readUInt32BE"),r.prototype.readBigUInt64LE=$e(e(function(t){t=t>>>0,N(t,"offset");let s=this[t],c=this[t+7];(s===void 0||c===void 0)&&I(t,this.length-8);let v=s+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,R=this[++t]+this[++t]*2**8+this[++t]*2**16+c*2**24;return BigInt(v)+(BigInt(R)<<BigInt(32))},"readBigUInt64LE")),r.prototype.readBigUInt64BE=$e(e(function(t){t=t>>>0,N(t,"offset");let s=this[t],c=this[t+7];(s===void 0||c===void 0)&&I(t,this.length-8);let v=s*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],R=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+c;return(BigInt(v)<<BigInt(32))+BigInt(R)},"readBigUInt64BE")),r.prototype.readIntLE=e(function(t,s,c){t=t>>>0,s=s>>>0,c||J(t,s,this.length);let v=this[t],R=1,C=0;for(;++C<s&&(R*=256);)v+=this[t+C]*R;return R*=128,v>=R&&(v-=Math.pow(2,8*s)),v},"readIntLE"),r.prototype.readIntBE=e(function(t,s,c){t=t>>>0,s=s>>>0,c||J(t,s,this.length);let v=s,R=1,C=this[t+--v];for(;v>0&&(R*=256);)C+=this[t+--v]*R;return R*=128,C>=R&&(C-=Math.pow(2,8*s)),C},"readIntBE"),r.prototype.readInt8=e(function(t,s){return t=t>>>0,s||J(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]},"readInt8"),r.prototype.readInt16LE=e(function(t,s){t=t>>>0,s||J(t,2,this.length);let c=this[t]|this[t+1]<<8;return c&32768?c|4294901760:c},"readInt16LE"),r.prototype.readInt16BE=e(function(t,s){t=t>>>0,s||J(t,2,this.length);let c=this[t+1]|this[t]<<8;return c&32768?c|4294901760:c},"readInt16BE"),r.prototype.readInt32LE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},"readInt32LE"),r.prototype.readInt32BE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},"readInt32BE"),r.prototype.readBigInt64LE=$e(e(function(t){t=t>>>0,N(t,"offset");let s=this[t],c=this[t+7];(s===void 0||c===void 0)&&I(t,this.length-8);let v=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(c<<24);return(BigInt(v)<<BigInt(32))+BigInt(s+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24)},"readBigInt64LE")),r.prototype.readBigInt64BE=$e(e(function(t){t=t>>>0,N(t,"offset");let s=this[t],c=this[t+7];(s===void 0||c===void 0)&&I(t,this.length-8);let v=(s<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(v)<<BigInt(32))+BigInt(this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+c)},"readBigInt64BE")),r.prototype.readFloatLE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),i.read(this,t,!0,23,4)},"readFloatLE"),r.prototype.readFloatBE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),i.read(this,t,!1,23,4)},"readFloatBE"),r.prototype.readDoubleLE=e(function(t,s){return t=t>>>0,s||J(t,8,this.length),i.read(this,t,!0,52,8)},"readDoubleLE"),r.prototype.readDoubleBE=e(function(t,s){return t=t>>>0,s||J(t,8,this.length),i.read(this,t,!1,52,8)},"readDoubleBE");function ue(t,s,c,v,R,C){if(!r.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(s>R||s<C)throw new RangeError('"value" argument is out of bounds');if(c+v>t.length)throw new RangeError("Index out of range")}l(ue,"J"),e(ue,"checkInt"),r.prototype.writeUintLE=r.prototype.writeUIntLE=e(function(t,s,c,v){if(t=+t,s=s>>>0,c=c>>>0,!v){let j=Math.pow(2,8*c)-1;ue(this,t,s,c,j,0)}let R=1,C=0;for(this[s]=t&255;++C<c&&(R*=256);)this[s+C]=t/R&255;return s+c},"writeUIntLE"),r.prototype.writeUintBE=r.prototype.writeUIntBE=e(function(t,s,c,v){if(t=+t,s=s>>>0,c=c>>>0,!v){let j=Math.pow(2,8*c)-1;ue(this,t,s,c,j,0)}let R=c-1,C=1;for(this[s+R]=t&255;--R>=0&&(C*=256);)this[s+R]=t/C&255;return s+c},"writeUIntBE"),r.prototype.writeUint8=r.prototype.writeUInt8=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,1,255,0),this[s]=t&255,s+1},"writeUInt8"),r.prototype.writeUint16LE=r.prototype.writeUInt16LE=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,2,65535,0),this[s]=t&255,this[s+1]=t>>>8,s+2},"writeUInt16LE"),r.prototype.writeUint16BE=r.prototype.writeUInt16BE=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,2,65535,0),this[s]=t>>>8,this[s+1]=t&255,s+2},"writeUInt16BE"),r.prototype.writeUint32LE=r.prototype.writeUInt32LE=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,4,4294967295,0),this[s+3]=t>>>24,this[s+2]=t>>>16,this[s+1]=t>>>8,this[s]=t&255,s+4},"writeUInt32LE"),r.prototype.writeUint32BE=r.prototype.writeUInt32BE=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,4,4294967295,0),this[s]=t>>>24,this[s+1]=t>>>16,this[s+2]=t>>>8,this[s+3]=t&255,s+4},"writeUInt32BE");function te(t,s,c,v,R){ve(s,v,R,t,c,7);let C=Number(s&BigInt(4294967295));t[c++]=C,C=C>>8,t[c++]=C,C=C>>8,t[c++]=C,C=C>>8,t[c++]=C;let j=Number(s>>BigInt(32)&BigInt(4294967295));return t[c++]=j,j=j>>8,t[c++]=j,j=j>>8,t[c++]=j,j=j>>8,t[c++]=j,c}l(te,"z"),e(te,"wrtBigUInt64LE");function X(t,s,c,v,R){ve(s,v,R,t,c,7);let C=Number(s&BigInt(4294967295));t[c+7]=C,C=C>>8,t[c+6]=C,C=C>>8,t[c+5]=C,C=C>>8,t[c+4]=C;let j=Number(s>>BigInt(32)&BigInt(4294967295));return t[c+3]=j,j=j>>8,t[c+2]=j,j=j>>8,t[c+1]=j,j=j>>8,t[c]=j,c+8}l(X,"V"),e(X,"wrtBigUInt64BE"),r.prototype.writeBigUInt64LE=$e(e(function(t,s=0){return te(this,t,s,BigInt(0),BigInt("0xffffffffffffffff"))},"writeBigUInt64LE")),r.prototype.writeBigUInt64BE=$e(e(function(t,s=0){return X(this,t,s,BigInt(0),BigInt("0xffffffffffffffff"))},"writeBigUInt64BE")),r.prototype.writeIntLE=e(function(t,s,c,v){if(t=+t,s=s>>>0,!v){let Z=Math.pow(2,8*c-1);ue(this,t,s,c,Z-1,-Z)}let R=0,C=1,j=0;for(this[s]=t&255;++R<c&&(C*=256);)t<0&&j===0&&this[s+R-1]!==0&&(j=1),this[s+R]=(t/C>>0)-j&255;return s+c},"writeIntLE"),r.prototype.writeIntBE=e(function(t,s,c,v){if(t=+t,s=s>>>0,!v){let Z=Math.pow(2,8*c-1);ue(this,t,s,c,Z-1,-Z)}let R=c-1,C=1,j=0;for(this[s+R]=t&255;--R>=0&&(C*=256);)t<0&&j===0&&this[s+R+1]!==0&&(j=1),this[s+R]=(t/C>>0)-j&255;return s+c},"writeIntBE"),r.prototype.writeInt8=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,1,127,-128),t<0&&(t=255+t+1),this[s]=t&255,s+1},"writeInt8"),r.prototype.writeInt16LE=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,2,32767,-32768),this[s]=t&255,this[s+1]=t>>>8,s+2},"writeInt16LE"),r.prototype.writeInt16BE=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,2,32767,-32768),this[s]=t>>>8,this[s+1]=t&255,s+2},"writeInt16BE"),r.prototype.writeInt32LE=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,4,2147483647,-2147483648),this[s]=t&255,this[s+1]=t>>>8,this[s+2]=t>>>16,this[s+3]=t>>>24,s+4},"writeInt32LE"),r.prototype.writeInt32BE=e(function(t,s,c){return t=+t,s=s>>>0,c||ue(this,t,s,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[s]=t>>>24,this[s+1]=t>>>16,this[s+2]=t>>>8,this[s+3]=t&255,s+4},"writeInt32BE"),r.prototype.writeBigInt64LE=$e(e(function(t,s=0){return te(this,t,s,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))},"writeBigInt64LE")),r.prototype.writeBigInt64BE=$e(e(function(t,s=0){return X(this,t,s,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))},"writeBigInt64BE"));function ye(t,s,c,v,R,C){if(c+v>t.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("Index out of range")}l(ye,"G"),e(ye,"checkIEEE754");function Re(t,s,c,v,R){return s=+s,c=c>>>0,R||ye(t,s,c,4),i.write(t,s,c,v,23,4),c+4}l(Re,"fe"),e(Re,"writeFloat"),r.prototype.writeFloatLE=e(function(t,s,c){return Re(this,t,s,!0,c)},"writeFloatLE"),r.prototype.writeFloatBE=e(function(t,s,c){return Re(this,t,s,!1,c)},"writeFloatBE");function De(t,s,c,v,R){return s=+s,c=c>>>0,R||ye(t,s,c,8),i.write(t,s,c,v,52,8),c+8}l(De,"be"),e(De,"writeDouble"),r.prototype.writeDoubleLE=e(function(t,s,c){return De(this,t,s,!0,c)},"writeDoubleLE"),r.prototype.writeDoubleBE=e(function(t,s,c){return De(this,t,s,!1,c)},"writeDoubleBE"),r.prototype.copy=e(function(t,s,c,v){if(!r.isBuffer(t))throw new TypeError("argument should be a Buffer");if(c||(c=0),!v&&v!==0&&(v=this.length),s>=t.length&&(s=t.length),s||(s=0),v>0&&v<c&&(v=c),v===c||t.length===0||this.length===0)return 0;if(s<0)throw new RangeError("targetStart out of bounds");if(c<0||c>=this.length)throw new RangeError("Index out of range");if(v<0)throw new RangeError("sourceEnd out of bounds");v>this.length&&(v=this.length),t.length-s<v-c&&(v=t.length-s+c);let R=v-c;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(s,c,v):Uint8Array.prototype.set.call(t,this.subarray(c,v),s),R},"copy"),r.prototype.fill=e(function(t,s,c,v){if(typeof t=="string"){if(typeof s=="string"?(v=s,s=0,c=this.length):typeof c=="string"&&(v=c,c=this.length),v!==void 0&&typeof v!="string")throw new TypeError("encoding must be a string");if(typeof v=="string"&&!r.isEncoding(v))throw new TypeError("Unknown encoding: "+v);if(t.length===1){let C=t.charCodeAt(0);(v==="utf8"&&C<128||v==="latin1")&&(t=C)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(s<0||this.length<s||this.length<c)throw new RangeError("Out of range index");if(c<=s)return this;s=s>>>0,c=c===void 0?this.length:c>>>0,t||(t=0);let R;if(typeof t=="number")for(R=s;R<c;++R)this[R]=t;else{let C=r.isBuffer(t)?t:r.from(t,v),j=C.length;if(j===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(R=0;R<c-s;++R)this[R+s]=C[R%j]}return this},"fill");let Y={};function H(t,s,c){var R;var v;Y[t]=(v=(R=class extends c{constructor(){super(),Object.defineProperty(this,"message",{value:s.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(j){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:j,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}},l(R,"w"),R),e(v,"NodeError"),v)}l(H,"$"),e(H,"E3"),H("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),H("ERR_INVALID_ARG_TYPE",function(t,s){return`The "${t}" argument must be of type number. Received type ${typeof s}`},TypeError),H("ERR_OUT_OF_RANGE",function(t,s,c){let v=`The value of "${t}" is out of range.`,R=c;return Number.isInteger(c)&&Math.abs(c)>2**32?R=Q(String(c)):typeof c=="bigint"&&(R=String(c),(c>BigInt(2)**BigInt(32)||c<-(BigInt(2)**BigInt(32)))&&(R=Q(R)),R+="n"),v+=` It must be ${s}. Received ${R}`,v},RangeError);function Q(t){let s="",c=t.length,v=t[0]==="-"?1:0;for(;c>=v+4;c-=3)s=`_${t.slice(c-3,c)}${s}`;return`${t.slice(0,c)}${s}`}l(Q,"H"),e(Q,"addNumericalSeparator");function fe(t,s,c){N(s,"offset"),(t[s]===void 0||t[s+c]===void 0)&&I(s,t.length-(c+1))}l(fe,"te"),e(fe,"checkBounds");function ve(t,s,c,v,R,C){if(t>c||t<s){let j=typeof s=="bigint"?"n":"",Z;throw s===0||s===BigInt(0)?Z=`>= 0${j} and < 2${j} ** ${(C+1)*8}${j}`:Z=`>= -(2${j} ** ${(C+1)*8-1}${j}) and < 2 ** ${(C+1)*8-1}${j}`,new Y.ERR_OUT_OF_RANGE("value",Z,t)}fe(v,R,C)}l(ve,"oe"),e(ve,"checkIntBI");function N(t,s){if(typeof t!="number")throw new Y.ERR_INVALID_ARG_TYPE(s,"number",t)}l(N,"I"),e(N,"validateNumber");function I(t,s,c){throw Math.floor(t)!==t?(N(t,c),new Y.ERR_OUT_OF_RANGE("offset","an integer",t)):s<0?new Y.ERR_BUFFER_OUT_OF_BOUNDS:new Y.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${s}`,t)}l(I,"x"),e(I,"boundsError");let D=/[^+/0-9A-Za-z-_]/g;function z(t){if(t=t.split("=")[0],t=t.trim().replace(D,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}l(z,"Y"),e(z,"base64clean");function Ee(t,s){s=s||1/0;let c,v=t.length,R=null,C=[];for(let j=0;j<v;++j){if(c=t.charCodeAt(j),c>55295&&c<57344){if(!R){if(c>56319){(s-=3)>-1&&C.push(239,191,189);continue}else if(j+1===v){(s-=3)>-1&&C.push(239,191,189);continue}R=c;continue}if(c<56320){(s-=3)>-1&&C.push(239,191,189),R=c;continue}c=(R-55296<<10|c-56320)+65536}else R&&(s-=3)>-1&&C.push(239,191,189);if(R=null,c<128){if((s-=1)<0)break;C.push(c)}else if(c<2048){if((s-=2)<0)break;C.push(c>>6|192,c&63|128)}else if(c<65536){if((s-=3)<0)break;C.push(c>>12|224,c>>6&63|128,c&63|128)}else if(c<1114112){if((s-=4)<0)break;C.push(c>>18|240,c>>12&63|128,c>>6&63|128,c&63|128)}else throw new Error("Invalid code point")}return C}l(Ee,"ue"),e(Ee,"utf8ToBytes");function Oe(t){let s=[];for(let c=0;c<t.length;++c)s.push(t.charCodeAt(c)&255);return s}l(Oe,"le"),e(Oe,"asciiToBytes");function be(t,s){let c,v,R,C=[];for(let j=0;j<t.length&&!((s-=2)<0);++j)c=t.charCodeAt(j),v=c>>8,R=c%256,C.push(R),C.push(v);return C}l(be,"ee"),e(be,"utf16leToBytes");function ge(t){return o.toByteArray(z(t))}l(ge,"ie"),e(ge,"base64ToBytes");function Ne(t,s,c,v){let R;for(R=0;R<v&&!(R+c>=s.length||R>=t.length);++R)s[R+c]=t[R];return R}l(Ne,"me"),e(Ne,"blitBuffer");function Ie(t,s){return t instanceof s||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===s.name}l(Ie,"ye"),e(Ie,"isInstance");function ke(t){return t!==t}l(ke,"ve"),e(ke,"numberIsNaN");let Ce=function(){let t="0123456789abcdef",s=new Array(256);for(let c=0;c<16;++c){let v=c*16;for(let R=0;R<16;++R)s[v+R]=t[c]+t[R]}return s}();function $e(t){return typeof BigInt>"u"?Ke:t}l($e,"Be"),e($e,"defineBigIntMethod");function Ke(){throw new Error("BigInt not supported")}return l(Ke,"Je"),e(Ke,"BufferBigIntNotDefined"),qi}l(Ax,"l5");function Xi(){return z_||(z_=!0,typeof Object.create=="function"?Lh=e(function(o,i){i&&(o.super_=i,o.prototype=Object.create(i.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}))},"inherits"):Lh=e(function(o,i){if(i){o.super_=i;var f=e(function(){},"TempCtor");f.prototype=i.prototype,o.prototype=new f,o.prototype.constructor=o}},"inherits")),Lh}l(Xi,"Pa");function v2(){return q_||(q_=!0,H_=wn.EventEmitter),H_}l(v2,"aD");function MC(){if(G_)return Nh;G_=!0;function o(y,w){var _=Object.keys(y);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(y);w&&(S=S.filter(function(T){return Object.getOwnPropertyDescriptor(y,T).enumerable})),_.push.apply(_,S)}return _}l(o,"e"),e(o,"ownKeys");function i(y){for(var w=1;w<arguments.length;w++){var _=arguments[w]!=null?arguments[w]:{};w%2?o(Object(_),!0).forEach(function(S){f(y,S,_[S])}):Object.getOwnPropertyDescriptors?Object.defineProperties(y,Object.getOwnPropertyDescriptors(_)):o(Object(_)).forEach(function(S){Object.defineProperty(y,S,Object.getOwnPropertyDescriptor(_,S))})}return y}l(i,"t"),e(i,"_objectSpread");function f(y,w,_){return w in y?Object.defineProperty(y,w,{value:_,enumerable:!0,configurable:!0,writable:!0}):y[w]=_,y}l(f,"r"),e(f,"_defineProperty");function p(y,w){if(!(y instanceof w))throw new TypeError("Cannot call a class as a function")}l(p,"n"),e(p,"_classCallCheck");function a(y,w){for(var _=0;_<w.length;_++){var S=w[_];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(y,S.key,S)}}l(a,"a"),e(a,"_defineProperties");function n(y,w,_){return w&&a(y.prototype,w),y}l(n,"s"),e(n,"_createClass");var r=bi,u=r.Buffer,g=at,h=g.inspect,d=h&&h.custom||"inspect";function m(y,w,_){u.prototype.copy.call(y,w,_)}return l(m,"y"),e(m,"copyBuffer"),Nh=function(){function y(){p(this,y),this.head=null,this.tail=null,this.length=0}return l(y,"m"),e(y,"BufferList"),n(y,[{key:"push",value:e(function(w){var _={data:w,next:null};this.length>0?this.tail.next=_:this.head=_,this.tail=_,++this.length},"push")},{key:"unshift",value:e(function(w){var _={data:w,next:this.head};this.length===0&&(this.tail=_),this.head=_,++this.length},"unshift")},{key:"shift",value:e(function(){if(this.length!==0){var w=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,w}},"shift")},{key:"clear",value:e(function(){this.head=this.tail=null,this.length=0},"clear")},{key:"join",value:e(function(w){if(this.length===0)return"";for(var _=this.head,S=""+_.data;_=_.next;)S+=w+_.data;return S},"join")},{key:"concat",value:e(function(w){if(this.length===0)return u.alloc(0);for(var _=u.allocUnsafe(w>>>0),S=this.head,T=0;S;)m(S.data,_,T),T+=S.data.length,S=S.next;return _},"concat")},{key:"consume",value:e(function(w,_){var S;return w<this.head.data.length?(S=this.head.data.slice(0,w),this.head.data=this.head.data.slice(w)):w===this.head.data.length?S=this.shift():S=_?this._getString(w):this._getBuffer(w),S},"consume")},{key:"first",value:e(function(){return this.head.data},"first")},{key:"_getString",value:e(function(w){var _=this.head,S=1,T=_.data;for(w-=T.length;_=_.next;){var O=_.data,E=w>O.length?O.length:w;if(E===O.length?T+=O:T+=O.slice(0,w),w-=E,w===0){E===O.length?(++S,_.next?this.head=_.next:this.head=this.tail=null):(this.head=_,_.data=O.slice(E));break}++S}return this.length-=S,T},"_getString")},{key:"_getBuffer",value:e(function(w){var _=u.allocUnsafe(w),S=this.head,T=1;for(S.data.copy(_),w-=S.data.length;S=S.next;){var O=S.data,E=w>O.length?O.length:w;if(O.copy(_,_.length-w,0,E),w-=E,w===0){E===O.length?(++T,S.next?this.head=S.next:this.head=this.tail=null):(this.head=S,S.data=O.slice(E));break}++T}return this.length-=T,_},"_getBuffer")},{key:d,value:e(function(w,_){return h(this,i({},_,{depth:0,customInspect:!1}))},"value")}]),y}(),Nh}l(MC,"f5");function _2(){if(V_)return Dh;V_=!0;var o=Ft;function i(u,g){var h=this,d=this._readableState&&this._readableState.destroyed,m=this._writableState&&this._writableState.destroyed;return d||m?(g?g(u):u&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,o.nextTick(n,this,u)):o.nextTick(n,this,u)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(u||null,function(y){!g&&y?h._writableState?h._writableState.errorEmitted?o.nextTick(p,h):(h._writableState.errorEmitted=!0,o.nextTick(f,h,y)):o.nextTick(f,h,y):g?(o.nextTick(p,h),g(y)):o.nextTick(p,h)}),this)}l(i,"t"),e(i,"destroy");function f(u,g){n(u,g),p(u)}l(f,"r"),e(f,"emitErrorAndCloseNT");function p(u){u._writableState&&!u._writableState.emitClose||u._readableState&&!u._readableState.emitClose||u.emit("close")}l(p,"n"),e(p,"emitCloseNT");function a(){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)}l(a,"a"),e(a,"undestroy");function n(u,g){u.emit("error",g)}l(n,"s"),e(n,"emitErrorNT");function r(u,g){var h=u._readableState,d=u._writableState;h&&h.autoDestroy||d&&d.autoDestroy?u.destroy(g):u.emit("error",g)}return l(r,"i"),e(r,"errorOrDestroy"),Dh={destroy:i,undestroy:a,errorOrDestroy:r},Dh}l(_2,"sD");function Na(){if(K_)return Uh;K_=!0;let o={};function i(r,u,g){var y;g||(g=Error);function h(w,_,S){return typeof u=="string"?u:u(w,_,S)}l(h,"c"),e(h,"getMessage");let d=(y=class extends g{constructor(_,S,T){super(h(_,S,T))}},l(y,"y"),y);e(d,"NodeError");let m=d;m.prototype.name=g.name,m.prototype.code=r,o[r]=m}l(i,"t"),e(i,"createErrorType");function f(r,u){if(Array.isArray(r)){let g=r.length;return r=r.map(h=>String(h)),g>2?`one of ${u} ${r.slice(0,g-1).join(", ")}, or `+r[g-1]:g===2?`one of ${u} ${r[0]} or ${r[1]}`:`of ${u} ${r[0]}`}else return`of ${u} ${String(r)}`}l(f,"r"),e(f,"oneOf");function p(r,u,g){return r.substr(0,u.length)===u}l(p,"n"),e(p,"startsWith");function a(r,u,g){return(g===void 0||g>r.length)&&(g=r.length),r.substring(g-u.length,g)===u}l(a,"a"),e(a,"endsWith");function n(r,u,g){return typeof g!="number"&&(g=0),g+u.length>r.length?!1:r.indexOf(u,g)!==-1}return l(n,"s"),e(n,"includes"),i("ERR_INVALID_OPT_VALUE",function(r,u){return'The value "'+u+'" is invalid for option "'+r+'"'},TypeError),i("ERR_INVALID_ARG_TYPE",function(r,u,g){let h;typeof u=="string"&&p(u,"not ")?(h="must not be",u=u.replace(/^not /,"")):h="must be";let d;if(a(r," argument"))d=`The ${r} ${h} ${f(u,"type")}`;else{let m=n(r,".")?"property":"argument";d=`The "${r}" ${m} ${h} ${f(u,"type")}`}return d+=`. Received type ${typeof g}`,d},TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",function(r){return"The "+r+" method is not implemented"}),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",function(r){return"Cannot call "+r+" after a stream was destroyed"}),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",function(r){return"Unknown encoding: "+r},TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Uh.codes=o,Uh}l(Na,"ml");function E2(){if(J_)return Mh;J_=!0;var o=Na().codes.ERR_INVALID_OPT_VALUE;function i(p,a,n){return p.highWaterMark!=null?p.highWaterMark:a?p[n]:null}l(i,"t"),e(i,"highWaterMarkFrom");function f(p,a,n,r){var u=i(a,r,n);if(u!=null){if(!(isFinite(u)&&Math.floor(u)===u)||u<0){var g=r?n:"highWaterMark";throw new o(g,u)}return Math.floor(u)}return p.objectMode?16:16*1024}return l(f,"r"),e(f,"getHighWaterMark"),Mh={getHighWaterMark:f},Mh}l(E2,"lD");function $C(){if(Y_)return $h;Y_=!0,$h=o;function o(f,p){if(i("noDeprecation"))return f;var a=!1;function n(){if(!a){if(i("throwDeprecation"))throw new Error(p);i("traceDeprecation")?console.trace(p):console.warn(p),a=!0}return f.apply(this||Wh,arguments)}return l(n,"s"),e(n,"deprecated"),n}l(o,"e"),e(o,"deprecate");function i(f){try{if(!Wh.localStorage)return!1}catch{return!1}var p=Wh.localStorage[f];return p==null?!1:String(p).toLowerCase()==="true"}return l(i,"t"),e(i,"config"),$h}l($C,"u5");function S2(){if(Z_)return zh;Z_=!0;var o=Ft;zh=V;function i(Y){var H=this;this.next=null,this.entry=null,this.finish=function(){De(H,Y)}}l(i,"t"),e(i,"CorkedRequest");var f;V.WritableState=M;var p={deprecate:$C()},a=v2(),n=bi.Buffer,r=a8.Uint8Array||function(){};function u(Y){return n.from(Y)}l(u,"f"),e(u,"_uint8ArrayToBuffer");function g(Y){return n.isBuffer(Y)||Y instanceof r}l(g,"h"),e(g,"_isUint8Array");var h=_2(),d=E2(),m=d.getHighWaterMark,y=Na().codes,w=y.ERR_INVALID_ARG_TYPE,_=y.ERR_METHOD_NOT_IMPLEMENTED,S=y.ERR_MULTIPLE_CALLBACK,T=y.ERR_STREAM_CANNOT_PIPE,O=y.ERR_STREAM_DESTROYED,E=y.ERR_STREAM_NULL_VALUES,P=y.ERR_STREAM_WRITE_AFTER_END,A=y.ERR_UNKNOWN_ENCODING,x=h.errorOrDestroy;Xi()(V,a);function U(){}l(U,"B"),e(U,"nop");function M(Y,H,Q){f=f||Ba(),Y=Y||{},typeof Q!="boolean"&&(Q=H instanceof f),this.objectMode=!!Y.objectMode,Q&&(this.objectMode=this.objectMode||!!Y.writableObjectMode),this.highWaterMark=m(this,Y,"writableHighWaterMark",Q),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var fe=Y.decodeStrings===!1;this.decodeStrings=!fe,this.defaultEncoding=Y.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ve){Pe(H,ve)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Y.emitClose!==!1,this.autoDestroy=!!Y.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}l(M,"P"),e(M,"WritableState"),M.prototype.getBuffer=e(function(){for(var Y=this.bufferedRequest,H=[];Y;)H.push(Y),Y=Y.next;return H},"getBuffer"),function(){try{Object.defineProperty(M.prototype,"buffer",{get:p.deprecate(e(function(){return this.getBuffer()},"writableStateBufferGetter"),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var ee;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ee=Function.prototype[Symbol.hasInstance],Object.defineProperty(V,Symbol.hasInstance,{value:e(function(Y){return ee.call(this,Y)?!0:this!==V?!1:Y&&Y._writableState instanceof M},"value")})):ee=e(function(Y){return Y instanceof this},"realHasInstance2");function V(Y){f=f||Ba();var H=this instanceof f;if(!H&&!ee.call(V,this))return new V(Y);this._writableState=new M(Y,this,H),this.writable=!0,Y&&(typeof Y.write=="function"&&(this._write=Y.write),typeof Y.writev=="function"&&(this._writev=Y.writev),typeof Y.destroy=="function"&&(this._destroy=Y.destroy),typeof Y.final=="function"&&(this._final=Y.final)),a.call(this)}l(V,"L"),e(V,"Writable"),V.prototype.pipe=function(){x(this,new T)};function q(Y,H){var Q=new P;x(Y,Q),o.nextTick(H,Q)}l(q,"C"),e(q,"writeAfterEnd");function G(Y,H,Q,fe){var ve;return Q===null?ve=new E:typeof Q!="string"&&!H.objectMode&&(ve=new w("chunk",["string","Buffer"],Q)),ve?(x(Y,ve),o.nextTick(fe,ve),!1):!0}l(G,"j"),e(G,"validChunk"),V.prototype.write=function(Y,H,Q){var fe=this._writableState,ve=!1,N=!fe.objectMode&&g(Y);return N&&!n.isBuffer(Y)&&(Y=u(Y)),typeof H=="function"&&(Q=H,H=null),N?H="buffer":H||(H=fe.defaultEncoding),typeof Q!="function"&&(Q=U),fe.ending?q(this,Q):(N||G(this,fe,Y,Q))&&(fe.pendingcb++,ve=ae(this,fe,N,Y,H,Q)),ve},V.prototype.cork=function(){this._writableState.corked++},V.prototype.uncork=function(){var Y=this._writableState;Y.corked&&(Y.corked--,!Y.writing&&!Y.corked&&!Y.bufferProcessing&&Y.bufferedRequest&&J(this,Y))},V.prototype.setDefaultEncoding=e(function(Y){if(typeof Y=="string"&&(Y=Y.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Y+"").toLowerCase())>-1))throw new A(Y);return this._writableState.defaultEncoding=Y,this},"setDefaultEncoding"),Object.defineProperty(V.prototype,"writableBuffer",{enumerable:!1,get:e(function(){return this._writableState&&this._writableState.getBuffer()},"get2")});function re(Y,H,Q){return!Y.objectMode&&Y.decodeStrings!==!1&&typeof H=="string"&&(H=n.from(H,Q)),H}l(re,"q"),e(re,"decodeChunk"),Object.defineProperty(V.prototype,"writableHighWaterMark",{enumerable:!1,get:e(function(){return this._writableState.highWaterMark},"get2")});function ae(Y,H,Q,fe,ve,N){if(!Q){var I=re(H,fe,ve);fe!==I&&(Q=!0,ve="buffer",fe=I)}var D=H.objectMode?1:fe.length;H.length+=D;var z=H.length<H.highWaterMark;if(z||(H.needDrain=!0),H.writing||H.corked){var Ee=H.lastBufferedRequest;H.lastBufferedRequest={chunk:fe,encoding:ve,isBuf:Q,callback:N,next:null},Ee?Ee.next=H.lastBufferedRequest:H.bufferedRequest=H.lastBufferedRequest,H.bufferedRequestCount+=1}else de(Y,H,!1,D,fe,ve,N);return z}l(ae,"Z"),e(ae,"writeOrBuffer");function de(Y,H,Q,fe,ve,N,I){H.writelen=fe,H.writecb=I,H.writing=!0,H.sync=!0,H.destroyed?H.onwrite(new O("write")):Q?Y._writev(ve,H.onwrite):Y._write(ve,N,H.onwrite),H.sync=!1}l(de,"K"),e(de,"doWrite");function we(Y,H,Q,fe,ve){--H.pendingcb,Q?(o.nextTick(ve,fe),o.nextTick(ye,Y,H),Y._writableState.errorEmitted=!0,x(Y,fe)):(ve(fe),Y._writableState.errorEmitted=!0,x(Y,fe),ye(Y,H))}l(we,"se"),e(we,"onwriteError");function xe(Y){Y.writing=!1,Y.writecb=null,Y.length-=Y.writelen,Y.writelen=0}l(xe,"_e"),e(xe,"onwriteStateUpdate");function Pe(Y,H){var Q=Y._writableState,fe=Q.sync,ve=Q.writecb;if(typeof ve!="function")throw new S;if(xe(Q),H)we(Y,Q,fe,H,ve);else{var N=ue(Q)||Y.destroyed;!N&&!Q.corked&&!Q.bufferProcessing&&Q.bufferedRequest&&J(Y,Q),fe?o.nextTick(se,Y,Q,N,ve):se(Y,Q,N,ve)}}l(Pe,"pe"),e(Pe,"onwrite");function se(Y,H,Q,fe){Q||Te(Y,H),H.pendingcb--,fe(),ye(Y,H)}l(se,"Q"),e(se,"afterWrite");function Te(Y,H){H.length===0&&H.needDrain&&(H.needDrain=!1,Y.emit("drain"))}l(Te,"he"),e(Te,"onwriteDrain");function J(Y,H){H.bufferProcessing=!0;var Q=H.bufferedRequest;if(Y._writev&&Q&&Q.next){var fe=H.bufferedRequestCount,ve=new Array(fe),N=H.corkedRequestsFree;N.entry=Q;for(var I=0,D=!0;Q;)ve[I]=Q,Q.isBuf||(D=!1),Q=Q.next,I+=1;ve.allBuffers=D,de(Y,H,!0,H.length,ve,"",N.finish),H.pendingcb++,H.lastBufferedRequest=null,N.next?(H.corkedRequestsFree=N.next,N.next=null):H.corkedRequestsFree=new i(H),H.bufferedRequestCount=0}else{for(;Q;){var z=Q.chunk,Ee=Q.encoding,Oe=Q.callback,be=H.objectMode?1:z.length;if(de(Y,H,!1,be,z,Ee,Oe),Q=Q.next,H.bufferedRequestCount--,H.writing)break}Q===null&&(H.lastBufferedRequest=null)}H.bufferedRequest=Q,H.bufferProcessing=!1}l(J,"U"),e(J,"clearBuffer"),V.prototype._write=function(Y,H,Q){Q(new _("_write()"))},V.prototype._writev=null,V.prototype.end=function(Y,H,Q){var fe=this._writableState;return typeof Y=="function"?(Q=Y,Y=null,H=null):typeof H=="function"&&(Q=H,H=null),Y!=null&&this.write(Y,H),fe.corked&&(fe.corked=1,this.uncork()),fe.ending||Re(this,fe,Q),this},Object.defineProperty(V.prototype,"writableLength",{enumerable:!1,get:e(function(){return this._writableState.length},"get2")});function ue(Y){return Y.ending&&Y.length===0&&Y.bufferedRequest===null&&!Y.finished&&!Y.writing}l(ue,"J"),e(ue,"needFinish");function te(Y,H){Y._final(function(Q){H.pendingcb--,Q&&x(Y,Q),H.prefinished=!0,Y.emit("prefinish"),ye(Y,H)})}l(te,"z"),e(te,"callFinal");function X(Y,H){!H.prefinished&&!H.finalCalled&&(typeof Y._final=="function"&&!H.destroyed?(H.pendingcb++,H.finalCalled=!0,o.nextTick(te,Y,H)):(H.prefinished=!0,Y.emit("prefinish")))}l(X,"V"),e(X,"prefinish");function ye(Y,H){var Q=ue(H);if(Q&&(X(Y,H),H.pendingcb===0&&(H.finished=!0,Y.emit("finish"),H.autoDestroy))){var fe=Y._readableState;(!fe||fe.autoDestroy&&fe.endEmitted)&&Y.destroy()}return Q}l(ye,"G"),e(ye,"finishMaybe");function Re(Y,H,Q){H.ending=!0,ye(Y,H),Q&&(H.finished?o.nextTick(Q):Y.once("finish",Q)),H.ended=!0,Y.writable=!1}l(Re,"fe"),e(Re,"endWritable");function De(Y,H,Q){var fe=Y.entry;for(Y.entry=null;fe;){var ve=fe.callback;H.pendingcb--,ve(Q),fe=fe.next}H.corkedRequestsFree.next=Y}return l(De,"be"),e(De,"onCorkedFinish"),Object.defineProperty(V.prototype,"destroyed",{enumerable:!1,get:e(function(){return this._writableState===void 0?!1:this._writableState.destroyed},"get2"),set:e(function(Y){this._writableState&&(this._writableState.destroyed=Y)},"set")}),V.prototype.destroy=h.destroy,V.prototype._undestroy=h.undestroy,V.prototype._destroy=function(Y,H){H(Y)},zh}l(S2,"fD");function Ba(){if(Q_)return Hh;Q_=!0;var o=Ft,i=Object.keys||function(d){var m=[];for(var y in d)m.push(y);return m};Hh=u;var f=A2(),p=S2();Xi()(u,f);for(var a=i(p.prototype),n=0;n<a.length;n++){var r=a[n];u.prototype[r]||(u.prototype[r]=p.prototype[r])}function u(d){if(!(this instanceof u))return new u(d);f.call(this,d),p.call(this,d),this.allowHalfOpen=!0,d&&(d.readable===!1&&(this.readable=!1),d.writable===!1&&(this.writable=!1),d.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",g)))}l(u,"f"),e(u,"Duplex"),Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:e(function(){return this._writableState.highWaterMark},"get2")}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:e(function(){return this._writableState&&this._writableState.getBuffer()},"get2")}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:e(function(){return this._writableState.length},"get2")});function g(){this._writableState.ended||o.nextTick(h,this)}l(g,"h"),e(g,"onend");function h(d){d.end()}return l(h,"c"),e(h,"onEndNT"),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:e(function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},"get2"),set:e(function(d){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=d,this._writableState.destroyed=d)},"set")}),Hh}l(Ba,"pl");function qd(){if(X_)return qh;X_=!0;var o=Na().codes.ERR_STREAM_PREMATURE_CLOSE;function i(n){var r=!1;return function(){if(!r){r=!0;for(var u=arguments.length,g=new Array(u),h=0;h<u;h++)g[h]=arguments[h];n.apply(this,g)}}}l(i,"t"),e(i,"once");function f(){}l(f,"r"),e(f,"noop");function p(n){return n.setHeader&&typeof n.abort=="function"}l(p,"n"),e(p,"isRequest");function a(n,r,u){if(typeof r=="function")return a(n,null,r);r||(r={}),u=i(u||f);var g=r.readable||r.readable!==!1&&n.readable,h=r.writable||r.writable!==!1&&n.writable,d=e(function(){n.writable||y()},"onlegacyfinish2"),m=n._writableState&&n._writableState.finished,y=e(function(){h=!1,m=!0,g||u.call(n)},"onfinish2"),w=n._readableState&&n._readableState.endEmitted,_=e(function(){g=!1,w=!0,h||u.call(n)},"onend2"),S=e(function(E){u.call(n,E)},"onerror2"),T=e(function(){var E;if(g&&!w)return(!n._readableState||!n._readableState.ended)&&(E=new o),u.call(n,E);if(h&&!m)return(!n._writableState||!n._writableState.ended)&&(E=new o),u.call(n,E)},"onclose2"),O=e(function(){n.req.on("finish",y)},"onrequest2");return p(n)?(n.on("complete",y),n.on("abort",T),n.req?O():n.on("request",O)):h&&!n._writableState&&(n.on("end",d),n.on("close",d)),n.on("end",_),n.on("finish",y),r.error!==!1&&n.on("error",S),n.on("close",T),function(){n.removeListener("complete",y),n.removeListener("abort",T),n.removeListener("request",O),n.req&&n.req.removeListener("finish",y),n.removeListener("end",d),n.removeListener("close",d),n.removeListener("finish",y),n.removeListener("end",_),n.removeListener("error",S),n.removeListener("close",T)}}return l(a,"a"),e(a,"eos"),qh=a,qh}l(qd,"O_");function WC(){if(eE)return Gh;eE=!0;var o=Ft,i;function f(E,P,A){return P in E?Object.defineProperty(E,P,{value:A,enumerable:!0,configurable:!0,writable:!0}):E[P]=A,E}l(f,"r"),e(f,"_defineProperty");var p=qd(),a=Symbol("lastResolve"),n=Symbol("lastReject"),r=Symbol("error"),u=Symbol("ended"),g=Symbol("lastPromise"),h=Symbol("handlePromise"),d=Symbol("stream");function m(E,P){return{value:E,done:P}}l(m,"y"),e(m,"createIterResult");function y(E){var P=E[a];if(P!==null){var A=E[d].read();A!==null&&(E[g]=null,E[a]=null,E[n]=null,P(m(A,!1)))}}l(y,"m"),e(y,"readAndResolve");function w(E){o.nextTick(y,E)}l(w,"g"),e(w,"onReadable");function _(E,P){return function(A,x){E.then(function(){if(P[u]){A(m(void 0,!0));return}P[h](A,x)},x)}}l(_,"v"),e(_,"wrapForNext");var S=Object.getPrototypeOf(function(){}),T=Object.setPrototypeOf((i={get stream(){return this[d]},next:e(function(){var E=this,P=this[r];if(P!==null)return Promise.reject(P);if(this[u])return Promise.resolve(m(void 0,!0));if(this[d].destroyed)return new Promise(function(M,ee){o.nextTick(function(){E[r]?ee(E[r]):M(m(void 0,!0))})});var A=this[g],x;if(A)x=new Promise(_(A,this));else{var U=this[d].read();if(U!==null)return Promise.resolve(m(U,!1));x=new Promise(this[h])}return this[g]=x,x},"next")},f(i,Symbol.asyncIterator,function(){return this}),f(i,"return",e(function(){var E=this;return new Promise(function(P,A){E[d].destroy(null,function(x){if(x){A(x);return}P(m(void 0,!0))})})},"_return")),i),S),O=e(function(E){var P,A=Object.create(T,(P={},f(P,d,{value:E,writable:!0}),f(P,a,{value:null,writable:!0}),f(P,n,{value:null,writable:!0}),f(P,r,{value:null,writable:!0}),f(P,u,{value:E._readableState.endEmitted,writable:!0}),f(P,h,{value:e(function(x,U){var M=A[d].read();M?(A[g]=null,A[a]=null,A[n]=null,x(m(M,!1))):(A[a]=x,A[n]=U)},"value"),writable:!0}),P));return A[g]=null,p(E,function(x){if(x&&x.code!=="ERR_STREAM_PREMATURE_CLOSE"){var U=A[n];U!==null&&(A[g]=null,A[a]=null,A[n]=null,U(x)),A[r]=x;return}var M=A[a];M!==null&&(A[g]=null,A[a]=null,A[n]=null,M(m(void 0,!0))),A[u]=!0}),E.on("readable",w.bind(null,A)),A},"createReadableStreamAsyncIterator2");return Gh=O,Gh}l(WC,"h5");function zC(){return rE||(rE=!0,tE=e(function(){throw new Error("Readable.from is not available in the browser")},"exports$4")),tE}l(zC,"d5");function A2(){if(nE)return Vh;nE=!0;var o=Ft;Vh=q;var i;q.ReadableState=V,wn.EventEmitter;var f=e(function(N,I){return N.listeners(I).length},"EElistenerCount2"),p=v2(),a=bi.Buffer,n=s8.Uint8Array||function(){};function r(N){return a.from(N)}l(r,"i"),e(r,"_uint8ArrayToBuffer");function u(N){return a.isBuffer(N)||N instanceof n}l(u,"f"),e(u,"_isUint8Array");var g=at,h;g&&g.debuglog?h=g.debuglog("stream"):h=e(function(){},"debug2");var d=MC(),m=_2(),y=E2(),w=y.getHighWaterMark,_=Na().codes,S=_.ERR_INVALID_ARG_TYPE,T=_.ERR_STREAM_PUSH_AFTER_EOF,O=_.ERR_METHOD_NOT_IMPLEMENTED,E=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,P,A,x;Xi()(q,p);var U=m.errorOrDestroy,M=["error","close","destroy","pause","resume"];function ee(N,I,D){if(typeof N.prependListener=="function")return N.prependListener(I,D);!N._events||!N._events[I]?N.on(I,D):Array.isArray(N._events[I])?N._events[I].unshift(D):N._events[I]=[D,N._events[I]]}l(ee,"N"),e(ee,"prependListener");function V(N,I,D){i=i||Ba(),N=N||{},typeof D!="boolean"&&(D=I instanceof i),this.objectMode=!!N.objectMode,D&&(this.objectMode=this.objectMode||!!N.readableObjectMode),this.highWaterMark=w(this,N,"readableHighWaterMark",D),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=N.emitClose!==!1,this.autoDestroy=!!N.autoDestroy,this.destroyed=!1,this.defaultEncoding=N.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,N.encoding&&(P||(P=vd.StringDecoder),this.decoder=new P(N.encoding),this.encoding=N.encoding)}l(V,"L"),e(V,"ReadableState");function q(N){if(i=i||Ba(),!(this instanceof q))return new q(N);var I=this instanceof i;this._readableState=new V(N,this,I),this.readable=!0,N&&(typeof N.read=="function"&&(this._read=N.read),typeof N.destroy=="function"&&(this._destroy=N.destroy)),p.call(this)}l(q,"C"),e(q,"Readable"),Object.defineProperty(q.prototype,"destroyed",{enumerable:!1,get:e(function(){return this._readableState===void 0?!1:this._readableState.destroyed},"get2"),set:e(function(N){this._readableState&&(this._readableState.destroyed=N)},"set")}),q.prototype.destroy=m.destroy,q.prototype._undestroy=m.undestroy,q.prototype._destroy=function(N,I){I(N)},q.prototype.push=function(N,I){var D=this._readableState,z;return D.objectMode?z=!0:typeof N=="string"&&(I=I||D.defaultEncoding,I!==D.encoding&&(N=a.from(N,I),I=""),z=!0),G(this,N,I,!1,z)},q.prototype.unshift=function(N){return G(this,N,null,!0,!1)};function G(N,I,D,z,Ee){h("readableAddChunk",I);var Oe=N._readableState;if(I===null)Oe.reading=!1,Pe(N,Oe);else{var be;if(Ee||(be=ae(Oe,I)),be)U(N,be);else if(Oe.objectMode||I&&I.length>0)if(typeof I!="string"&&!Oe.objectMode&&Object.getPrototypeOf(I)!==a.prototype&&(I=r(I)),z)Oe.endEmitted?U(N,new E):re(N,Oe,I,!0);else if(Oe.ended)U(N,new T);else{if(Oe.destroyed)return!1;Oe.reading=!1,Oe.decoder&&!D?(I=Oe.decoder.write(I),Oe.objectMode||I.length!==0?re(N,Oe,I,!1):J(N,Oe)):re(N,Oe,I,!1)}else z||(Oe.reading=!1,J(N,Oe))}return!Oe.ended&&(Oe.length<Oe.highWaterMark||Oe.length===0)}l(G,"j"),e(G,"readableAddChunk");function re(N,I,D,z){I.flowing&&I.length===0&&!I.sync?(I.awaitDrain=0,N.emit("data",D)):(I.length+=I.objectMode?1:D.length,z?I.buffer.unshift(D):I.buffer.push(D),I.needReadable&&se(N)),J(N,I)}l(re,"q"),e(re,"addChunk");function ae(N,I){var D;return!u(I)&&typeof I!="string"&&I!==void 0&&!N.objectMode&&(D=new S("chunk",["string","Buffer","Uint8Array"],I)),D}l(ae,"Z"),e(ae,"chunkInvalid"),q.prototype.isPaused=function(){return this._readableState.flowing===!1},q.prototype.setEncoding=function(N){P||(P=vd.StringDecoder);var I=new P(N);this._readableState.decoder=I,this._readableState.encoding=this._readableState.decoder.encoding;for(var D=this._readableState.buffer.head,z="";D!==null;)z+=I.write(D.data),D=D.next;return this._readableState.buffer.clear(),z!==""&&this._readableState.buffer.push(z),this._readableState.length=z.length,this};var de=1073741824;function we(N){return N>=de?N=de:(N--,N|=N>>>1,N|=N>>>2,N|=N>>>4,N|=N>>>8,N|=N>>>16,N++),N}l(we,"se"),e(we,"computeNewHighWaterMark");function xe(N,I){return N<=0||I.length===0&&I.ended?0:I.objectMode?1:N!==N?I.flowing&&I.length?I.buffer.head.data.length:I.length:(N>I.highWaterMark&&(I.highWaterMark=we(N)),N<=I.length?N:I.ended?I.length:(I.needReadable=!0,0))}l(xe,"_e"),e(xe,"howMuchToRead"),q.prototype.read=function(N){h("read",N),N=parseInt(N,10);var I=this._readableState,D=N;if(N!==0&&(I.emittedReadable=!1),N===0&&I.needReadable&&((I.highWaterMark!==0?I.length>=I.highWaterMark:I.length>0)||I.ended))return h("read: emitReadable",I.length,I.ended),I.length===0&&I.ended?Q(this):se(this),null;if(N=xe(N,I),N===0&&I.ended)return I.length===0&&Q(this),null;var z=I.needReadable;h("need readable",z),(I.length===0||I.length-N<I.highWaterMark)&&(z=!0,h("length less than watermark",z)),I.ended||I.reading?(z=!1,h("reading or ended",z)):z&&(h("do read"),I.reading=!0,I.sync=!0,I.length===0&&(I.needReadable=!0),this._read(I.highWaterMark),I.sync=!1,I.reading||(N=xe(D,I)));var Ee;return N>0?Ee=H(N,I):Ee=null,Ee===null?(I.needReadable=I.length<=I.highWaterMark,N=0):(I.length-=N,I.awaitDrain=0),I.length===0&&(I.ended||(I.needReadable=!0),D!==N&&I.ended&&Q(this)),Ee!==null&&this.emit("data",Ee),Ee};function Pe(N,I){if(h("onEofChunk"),!I.ended){if(I.decoder){var D=I.decoder.end();D&&D.length&&(I.buffer.push(D),I.length+=I.objectMode?1:D.length)}I.ended=!0,I.sync?se(N):(I.needReadable=!1,I.emittedReadable||(I.emittedReadable=!0,Te(N)))}}l(Pe,"pe"),e(Pe,"onEofChunk");function se(N){var I=N._readableState;h("emitReadable",I.needReadable,I.emittedReadable),I.needReadable=!1,I.emittedReadable||(h("emitReadable",I.flowing),I.emittedReadable=!0,o.nextTick(Te,N))}l(se,"Q"),e(se,"emitReadable");function Te(N){var I=N._readableState;h("emitReadable_",I.destroyed,I.length,I.ended),!I.destroyed&&(I.length||I.ended)&&(N.emit("readable"),I.emittedReadable=!1),I.needReadable=!I.flowing&&!I.ended&&I.length<=I.highWaterMark,Y(N)}l(Te,"he"),e(Te,"emitReadable_");function J(N,I){I.readingMore||(I.readingMore=!0,o.nextTick(ue,N,I))}l(J,"U"),e(J,"maybeReadMore");function ue(N,I){for(;!I.reading&&!I.ended&&(I.length<I.highWaterMark||I.flowing&&I.length===0);){var D=I.length;if(h("maybeReadMore read 0"),N.read(0),D===I.length)break}I.readingMore=!1}l(ue,"J"),e(ue,"maybeReadMore_"),q.prototype._read=function(N){U(this,new O("_read()"))},q.prototype.pipe=function(N,I){var D=this,z=this._readableState;switch(z.pipesCount){case 0:z.pipes=N;break;case 1:z.pipes=[z.pipes,N];break;default:z.pipes.push(N);break}z.pipesCount+=1,h("pipe count=%d opts=%j",z.pipesCount,I);var Ee=(!I||I.end!==!1)&&N!==o.stdout&&N!==o.stderr,Oe=Ee?ge:s;z.endEmitted?o.nextTick(Oe):D.once("end",Oe),N.on("unpipe",be);function be(c,v){h("onunpipe"),c===D&&v&&v.hasUnpiped===!1&&(v.hasUnpiped=!0,ke())}l(be,"ee"),e(be,"onunpipe");function ge(){h("onend"),N.end()}l(ge,"ie"),e(ge,"onend");var Ne=te(D);N.on("drain",Ne);var Ie=!1;function ke(){h("cleanup"),N.removeListener("close",Ke),N.removeListener("finish",t),N.removeListener("drain",Ne),N.removeListener("error",$e),N.removeListener("unpipe",be),D.removeListener("end",ge),D.removeListener("end",s),D.removeListener("data",Ce),Ie=!0,z.awaitDrain&&(!N._writableState||N._writableState.needDrain)&&Ne()}l(ke,"ve"),e(ke,"cleanup"),D.on("data",Ce);function Ce(c){h("ondata");var v=N.write(c);h("dest.write",v),v===!1&&((z.pipesCount===1&&z.pipes===N||z.pipesCount>1&&ve(z.pipes,N)!==-1)&&!Ie&&(h("false write response, pause",z.awaitDrain),z.awaitDrain++),D.pause())}l(Ce,"Me"),e(Ce,"ondata");function $e(c){h("onerror",c),s(),N.removeListener("error",$e),f(N,"error")===0&&U(N,c)}l($e,"Be"),e($e,"onerror"),ee(N,"error",$e);function Ke(){N.removeListener("finish",t),s()}l(Ke,"Je"),e(Ke,"onclose"),N.once("close",Ke);function t(){h("onfinish"),N.removeListener("close",Ke),s()}l(t,"p"),e(t,"onfinish"),N.once("finish",t);function s(){h("unpipe"),D.unpipe(N)}return l(s,"l"),e(s,"unpipe"),N.emit("pipe",D),z.flowing||(h("pipe resume"),D.resume()),N};function te(N){return e(function(){var I=N._readableState;h("pipeOnDrain",I.awaitDrain),I.awaitDrain&&I.awaitDrain--,I.awaitDrain===0&&f(N,"data")&&(I.flowing=!0,Y(N))},"pipeOnDrainFunctionResult")}l(te,"z"),e(te,"pipeOnDrain"),q.prototype.unpipe=function(N){var I=this._readableState,D={hasUnpiped:!1};if(I.pipesCount===0)return this;if(I.pipesCount===1)return N&&N!==I.pipes?this:(N||(N=I.pipes),I.pipes=null,I.pipesCount=0,I.flowing=!1,N&&N.emit("unpipe",this,D),this);if(!N){var z=I.pipes,Ee=I.pipesCount;I.pipes=null,I.pipesCount=0,I.flowing=!1;for(var Oe=0;Oe<Ee;Oe++)z[Oe].emit("unpipe",this,{hasUnpiped:!1});return this}var be=ve(I.pipes,N);return be===-1?this:(I.pipes.splice(be,1),I.pipesCount-=1,I.pipesCount===1&&(I.pipes=I.pipes[0]),N.emit("unpipe",this,D),this)},q.prototype.on=function(N,I){var D=p.prototype.on.call(this,N,I),z=this._readableState;return N==="data"?(z.readableListening=this.listenerCount("readable")>0,z.flowing!==!1&&this.resume()):N==="readable"&&!z.endEmitted&&!z.readableListening&&(z.readableListening=z.needReadable=!0,z.flowing=!1,z.emittedReadable=!1,h("on readable",z.length,z.reading),z.length?se(this):z.reading||o.nextTick(ye,this)),D},q.prototype.addListener=q.prototype.on,q.prototype.removeListener=function(N,I){var D=p.prototype.removeListener.call(this,N,I);return N==="readable"&&o.nextTick(X,this),D},q.prototype.removeAllListeners=function(N){var I=p.prototype.removeAllListeners.apply(this,arguments);return(N==="readable"||N===void 0)&&o.nextTick(X,this),I};function X(N){var I=N._readableState;I.readableListening=N.listenerCount("readable")>0,I.resumeScheduled&&!I.paused?I.flowing=!0:N.listenerCount("data")>0&&N.resume()}l(X,"V"),e(X,"updateReadableListening");function ye(N){h("readable nexttick read 0"),N.read(0)}l(ye,"G"),e(ye,"nReadingNextTick"),q.prototype.resume=function(){var N=this._readableState;return N.flowing||(h("resume"),N.flowing=!N.readableListening,Re(this,N)),N.paused=!1,this};function Re(N,I){I.resumeScheduled||(I.resumeScheduled=!0,o.nextTick(De,N,I))}l(Re,"fe"),e(Re,"resume");function De(N,I){h("resume",I.reading),I.reading||N.read(0),I.resumeScheduled=!1,N.emit("resume"),Y(N),I.flowing&&!I.reading&&N.read(0)}l(De,"be"),e(De,"resume_"),q.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Y(N){var I=N._readableState;for(h("flow",I.flowing);I.flowing&&N.read()!==null;);}l(Y,"D"),e(Y,"flow"),q.prototype.wrap=function(N){var I=this,D=this._readableState,z=!1;N.on("end",function(){if(h("wrapped end"),D.decoder&&!D.ended){var be=D.decoder.end();be&&be.length&&I.push(be)}I.push(null)}),N.on("data",function(be){if(h("wrapped data"),D.decoder&&(be=D.decoder.write(be)),!(D.objectMode&&be==null)&&!(!D.objectMode&&(!be||!be.length))){var ge=I.push(be);ge||(z=!0,N.pause())}});for(var Ee in N)this[Ee]===void 0&&typeof N[Ee]=="function"&&(this[Ee]=e(function(be){return e(function(){return N[be].apply(N,arguments)},"methodWrapReturnFunction")},"methodWrap")(Ee));for(var Oe=0;Oe<M.length;Oe++)N.on(M[Oe],this.emit.bind(this,M[Oe]));return this._read=function(be){h("wrapped _read",be),z&&(z=!1,N.resume())},this},typeof Symbol=="function"&&(q.prototype[Symbol.asyncIterator]=function(){return A===void 0&&(A=WC()),A(this)}),Object.defineProperty(q.prototype,"readableHighWaterMark",{enumerable:!1,get:e(function(){return this._readableState.highWaterMark},"get2")}),Object.defineProperty(q.prototype,"readableBuffer",{enumerable:!1,get:e(function(){return this._readableState&&this._readableState.buffer},"get2")}),Object.defineProperty(q.prototype,"readableFlowing",{enumerable:!1,get:e(function(){return this._readableState.flowing},"get2"),set:e(function(N){this._readableState&&(this._readableState.flowing=N)},"set")}),q._fromList=H,Object.defineProperty(q.prototype,"readableLength",{enumerable:!1,get:e(function(){return this._readableState.length},"get2")});function H(N,I){if(I.length===0)return null;var D;return I.objectMode?D=I.buffer.shift():!N||N>=I.length?(I.decoder?D=I.buffer.join(""):I.buffer.length===1?D=I.buffer.first():D=I.buffer.concat(I.length),I.buffer.clear()):D=I.buffer.consume(N,I.decoder),D}l(H,"$"),e(H,"fromList");function Q(N){var I=N._readableState;h("endReadable",I.endEmitted),I.endEmitted||(I.ended=!0,o.nextTick(fe,I,N))}l(Q,"H"),e(Q,"endReadable");function fe(N,I){if(h("endReadableNT",N.endEmitted,N.length),!N.endEmitted&&N.length===0&&(N.endEmitted=!0,I.readable=!1,I.emit("end"),N.autoDestroy)){var D=I._writableState;(!D||D.autoDestroy&&D.finished)&&I.destroy()}}l(fe,"te"),e(fe,"endReadableNT"),typeof Symbol=="function"&&(q.from=function(N,I){return x===void 0&&(x=zC()),x(q,N,I)});function ve(N,I){for(var D=0,z=N.length;D<z;D++)if(N[D]===I)return D;return-1}return l(ve,"oe"),e(ve,"indexOf"),Vh}l(A2,"uD");function R2(){if(iE)return Kh;iE=!0,Kh=u;var o=Na().codes,i=o.ERR_METHOD_NOT_IMPLEMENTED,f=o.ERR_MULTIPLE_CALLBACK,p=o.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=o.ERR_TRANSFORM_WITH_LENGTH_0,n=Ba();Xi()(u,n);function r(d,m){var y=this._transformState;y.transforming=!1;var w=y.writecb;if(w===null)return this.emit("error",new f);y.writechunk=null,y.writecb=null,m!=null&&this.push(m),w(d);var _=this._readableState;_.reading=!1,(_.needReadable||_.length<_.highWaterMark)&&this._read(_.highWaterMark)}l(r,"i"),e(r,"afterTransform");function u(d){if(!(this instanceof u))return new u(d);n.call(this,d),this._transformState={afterTransform:r.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,d&&(typeof d.transform=="function"&&(this._transform=d.transform),typeof d.flush=="function"&&(this._flush=d.flush)),this.on("prefinish",g)}l(u,"f"),e(u,"Transform");function g(){var d=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(m,y){h(d,m,y)}):h(this,null,null)}l(g,"h"),e(g,"prefinish"),u.prototype.push=function(d,m){return this._transformState.needTransform=!1,n.prototype.push.call(this,d,m)},u.prototype._transform=function(d,m,y){y(new i("_transform()"))},u.prototype._write=function(d,m,y){var w=this._transformState;if(w.writecb=y,w.writechunk=d,w.writeencoding=m,!w.transforming){var _=this._readableState;(w.needTransform||_.needReadable||_.length<_.highWaterMark)&&this._read(_.highWaterMark)}},u.prototype._read=function(d){var m=this._transformState;m.writechunk!==null&&!m.transforming?(m.transforming=!0,this._transform(m.writechunk,m.writeencoding,m.afterTransform)):m.needTransform=!0},u.prototype._destroy=function(d,m){n.prototype._destroy.call(this,d,function(y){m(y)})};function h(d,m,y){if(m)return d.emit("error",m);if(y!=null&&d.push(y),d._writableState.length)throw new a;if(d._transformState.transforming)throw new p;return d.push(null)}return l(h,"c"),e(h,"done"),Kh}l(R2,"cD");function HC(){if(oE)return Jh;oE=!0,Jh=i;var o=R2();Xi()(i,o);function i(f){if(!(this instanceof i))return new i(f);o.call(this,f)}return l(i,"t"),e(i,"PassThrough"),i.prototype._transform=function(f,p,a){a(null,f)},Jh}l(HC,"y5");function qC(){if(aE)return Yh;aE=!0;var o;function i(y){var w=!1;return function(){w||(w=!0,y.apply(void 0,arguments))}}l(i,"t"),e(i,"once");var f=Na().codes,p=f.ERR_MISSING_ARGS,a=f.ERR_STREAM_DESTROYED;function n(y){if(y)throw y}l(n,"s"),e(n,"noop");function r(y){return y.setHeader&&typeof y.abort=="function"}l(r,"i"),e(r,"isRequest");function u(y,w,_,S){S=i(S);var T=!1;y.on("close",function(){T=!0}),o===void 0&&(o=qd()),o(y,{readable:w,writable:_},function(E){if(E)return S(E);T=!0,S()});var O=!1;return function(E){if(!T&&!O){if(O=!0,r(y))return y.abort();if(typeof y.destroy=="function")return y.destroy();S(E||new a("pipe"))}}}l(u,"f"),e(u,"destroyer");function g(y){y()}l(g,"h"),e(g,"call");function h(y,w){return y.pipe(w)}l(h,"c"),e(h,"pipe");function d(y){return!y.length||typeof y[y.length-1]!="function"?n:y.pop()}l(d,"d"),e(d,"popCallback");function m(){for(var y=arguments.length,w=new Array(y),_=0;_<y;_++)w[_]=arguments[_];var S=d(w);if(Array.isArray(w[0])&&(w=w[0]),w.length<2)throw new p("streams");var T,O=w.map(function(E,P){var A=P<w.length-1,x=P>0;return u(E,A,x,function(U){T||(T=U),U&&O.forEach(g),!A&&(O.forEach(g),S(T))})});return w.reduce(h)}return l(m,"y"),e(m,"pipeline"),Yh=m,Yh}l(qC,"m5");function O2(){return sE||(sE=!0,zr=zr=A2(),zr.Stream=zr,zr.Readable=zr,zr.Writable=S2(),zr.Duplex=Ba(),zr.Transform=R2(),zr.PassThrough=HC(),zr.finished=qd(),zr.pipeline=qC()),zr}l(O2,"hD");function Rx(){if(lE)return Zh;lE=!0;var o=Ft;function i(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}l(i,"t"),e(i,"assertPath");function f(n,r){for(var u="",g=0,h=-1,d=0,m,y=0;y<=n.length;++y){if(y<n.length)m=n.charCodeAt(y);else{if(m===47)break;m=47}if(m===47){if(!(h===y-1||d===1))if(h!==y-1&&d===2){if(u.length<2||g!==2||u.charCodeAt(u.length-1)!==46||u.charCodeAt(u.length-2)!==46){if(u.length>2){var w=u.lastIndexOf("/");if(w!==u.length-1){w===-1?(u="",g=0):(u=u.slice(0,w),g=u.length-1-u.lastIndexOf("/")),h=y,d=0;continue}}else if(u.length===2||u.length===1){u="",g=0,h=y,d=0;continue}}r&&(u.length>0?u+="/..":u="..",g=2)}else u.length>0?u+="/"+n.slice(h+1,y):u=n.slice(h+1,y),g=y-h-1;h=y,d=0}else m===46&&d!==-1?++d:d=-1}return u}l(f,"r"),e(f,"normalizeStringPosix");function p(n,r){var u=r.dir||r.root,g=r.base||(r.name||"")+(r.ext||"");return u?u===r.root?u+g:u+n+g:g}l(p,"n"),e(p,"_format");var a={resolve:e(function(){for(var n="",r=!1,u,g=arguments.length-1;g>=-1&&!r;g--){var h;g>=0?h=arguments[g]:(u===void 0&&(u=o.cwd()),h=u),i(h),h.length!==0&&(n=h+"/"+n,r=h.charCodeAt(0)===47)}return n=f(n,!r),r?n.length>0?"/"+n:"/":n.length>0?n:"."},"resolve"),normalize:e(function(n){if(i(n),n.length===0)return".";var r=n.charCodeAt(0)===47,u=n.charCodeAt(n.length-1)===47;return n=f(n,!r),n.length===0&&!r&&(n="."),n.length>0&&u&&(n+="/"),r?"/"+n:n},"normalize"),isAbsolute:e(function(n){return i(n),n.length>0&&n.charCodeAt(0)===47},"isAbsolute"),join:e(function(){if(arguments.length===0)return".";for(var n,r=0;r<arguments.length;++r){var u=arguments[r];i(u),u.length>0&&(n===void 0?n=u:n+="/"+u)}return n===void 0?".":a.normalize(n)},"join"),relative:e(function(n,r){if(i(n),i(r),n===r||(n=a.resolve(n),r=a.resolve(r),n===r))return"";for(var u=1;u<n.length&&n.charCodeAt(u)===47;++u);for(var g=n.length,h=g-u,d=1;d<r.length&&r.charCodeAt(d)===47;++d);for(var m=r.length,y=m-d,w=h<y?h:y,_=-1,S=0;S<=w;++S){if(S===w){if(y>w){if(r.charCodeAt(d+S)===47)return r.slice(d+S+1);if(S===0)return r.slice(d+S)}else h>w&&(n.charCodeAt(u+S)===47?_=S:S===0&&(_=0));break}var T=n.charCodeAt(u+S),O=r.charCodeAt(d+S);if(T!==O)break;T===47&&(_=S)}var E="";for(S=u+_+1;S<=g;++S)(S===g||n.charCodeAt(S)===47)&&(E.length===0?E+="..":E+="/..");return E.length>0?E+r.slice(d+_):(d+=_,r.charCodeAt(d)===47&&++d,r.slice(d))},"relative"),_makeLong:e(function(n){return n},"_makeLong"),dirname:e(function(n){if(i(n),n.length===0)return".";for(var r=n.charCodeAt(0),u=r===47,g=-1,h=!0,d=n.length-1;d>=1;--d)if(r=n.charCodeAt(d),r===47){if(!h){g=d;break}}else h=!1;return g===-1?u?"/":".":u&&g===1?"//":n.slice(0,g)},"dirname"),basename:e(function(n,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');i(n);var u=0,g=-1,h=!0,d;if(r!==void 0&&r.length>0&&r.length<=n.length){if(r.length===n.length&&r===n)return"";var m=r.length-1,y=-1;for(d=n.length-1;d>=0;--d){var w=n.charCodeAt(d);if(w===47){if(!h){u=d+1;break}}else y===-1&&(h=!1,y=d+1),m>=0&&(w===r.charCodeAt(m)?--m===-1&&(g=d):(m=-1,g=y))}return u===g?g=y:g===-1&&(g=n.length),n.slice(u,g)}else{for(d=n.length-1;d>=0;--d)if(n.charCodeAt(d)===47){if(!h){u=d+1;break}}else g===-1&&(h=!1,g=d+1);return g===-1?"":n.slice(u,g)}},"basename"),extname:e(function(n){i(n);for(var r=-1,u=0,g=-1,h=!0,d=0,m=n.length-1;m>=0;--m){var y=n.charCodeAt(m);if(y===47){if(!h){u=m+1;break}continue}g===-1&&(h=!1,g=m+1),y===46?r===-1?r=m:d!==1&&(d=1):r!==-1&&(d=-1)}return r===-1||g===-1||d===0||d===1&&r===g-1&&r===u+1?"":n.slice(r,g)},"extname"),format:e(function(n){if(n===null||typeof n!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof n);return p("/",n)},"format"),parse:e(function(n){i(n);var r={root:"",dir:"",base:"",ext:"",name:""};if(n.length===0)return r;var u=n.charCodeAt(0),g=u===47,h;g?(r.root="/",h=1):h=0;for(var d=-1,m=0,y=-1,w=!0,_=n.length-1,S=0;_>=h;--_){if(u=n.charCodeAt(_),u===47){if(!w){m=_+1;break}continue}y===-1&&(w=!1,y=_+1),u===46?d===-1?d=_:S!==1&&(S=1):d!==-1&&(S=-1)}return d===-1||y===-1||S===0||S===1&&d===y-1&&d===m+1?y!==-1&&(m===0&&g?r.base=r.name=n.slice(1,y):r.base=r.name=n.slice(m,y)):(m===0&&g?(r.name=n.slice(1,d),r.base=n.slice(1,y)):(r.name=n.slice(m,d),r.base=n.slice(m,y)),r.ext=n.slice(d,y)),m>0?r.dir=n.slice(0,m-1):g&&(r.dir="/"),r},"parse"),sep:"/",delimiter:":",win32:null,posix:null};return a.posix=a,Zh=a,Zh}l(Rx,"g5");function Ci(o){throw new RangeError(f8[o])}l(Ci,"Ta");function Fm(o,i){let f=o.split("@"),p="";f.length>1&&(p=f[0]+"@",o=f[1]);let a=function(n,r){let u=[],g=n.length;for(;g--;)u[g]=r(n[g]);return u}((o=o.replace(l8,".")).split("."),i).join(".");return p+a}l(Fm,"lN");function Bm(o){let i=[],f=0,p=o.length;for(;f<p;){let a=o.charCodeAt(f++);if(a>=55296&&a<=56319&&f<p){let n=o.charCodeAt(f++);(64512&n)==56320?i.push(((1023&a)<<10)+(1023&n)+65536):(i.push(a),f--)}else i.push(a)}return i}l(Bm,"dD");function Ox(o,i){return Object.prototype.hasOwnProperty.call(o,i)}l(Ox,"S5");function tn(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}l(tn,"Qr");function ms(o,i,f){if(o&&mn.isObject(o)&&o instanceof tn)return o;var p=new tn;return p.parse(o,i,f),p}l(ms,"uu");function kx(){if(uE)return Qh;uE=!0;var o=Kt;function i(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}l(i,"t"),e(i,"assertPath");function f(n,r){for(var u="",g=0,h=-1,d=0,m,y=0;y<=n.length;++y){if(y<n.length)m=n.charCodeAt(y);else{if(m===47)break;m=47}if(m===47){if(!(h===y-1||d===1))if(h!==y-1&&d===2){if(u.length<2||g!==2||u.charCodeAt(u.length-1)!==46||u.charCodeAt(u.length-2)!==46){if(u.length>2){var w=u.lastIndexOf("/");if(w!==u.length-1){w===-1?(u="",g=0):(u=u.slice(0,w),g=u.length-1-u.lastIndexOf("/")),h=y,d=0;continue}}else if(u.length===2||u.length===1){u="",g=0,h=y,d=0;continue}}r&&(u.length>0?u+="/..":u="..",g=2)}else u.length>0?u+="/"+n.slice(h+1,y):u=n.slice(h+1,y),g=y-h-1;h=y,d=0}else m===46&&d!==-1?++d:d=-1}return u}l(f,"r"),e(f,"normalizeStringPosix");function p(n,r){var u=r.dir||r.root,g=r.base||(r.name||"")+(r.ext||"");return u?u===r.root?u+g:u+n+g:g}l(p,"n"),e(p,"_format");var a={resolve:e(function(){for(var n="",r=!1,u,g=arguments.length-1;g>=-1&&!r;g--){var h;g>=0?h=arguments[g]:(u===void 0&&(u=o.cwd()),h=u),i(h),h.length!==0&&(n=h+"/"+n,r=h.charCodeAt(0)===47)}return n=f(n,!r),r?n.length>0?"/"+n:"/":n.length>0?n:"."},"resolve"),normalize:e(function(n){if(i(n),n.length===0)return".";var r=n.charCodeAt(0)===47,u=n.charCodeAt(n.length-1)===47;return n=f(n,!r),n.length===0&&!r&&(n="."),n.length>0&&u&&(n+="/"),r?"/"+n:n},"normalize"),isAbsolute:e(function(n){return i(n),n.length>0&&n.charCodeAt(0)===47},"isAbsolute"),join:e(function(){if(arguments.length===0)return".";for(var n,r=0;r<arguments.length;++r){var u=arguments[r];i(u),u.length>0&&(n===void 0?n=u:n+="/"+u)}return n===void 0?".":a.normalize(n)},"join"),relative:e(function(n,r){if(i(n),i(r),n===r||(n=a.resolve(n),r=a.resolve(r),n===r))return"";for(var u=1;u<n.length&&n.charCodeAt(u)===47;++u);for(var g=n.length,h=g-u,d=1;d<r.length&&r.charCodeAt(d)===47;++d);for(var m=r.length,y=m-d,w=h<y?h:y,_=-1,S=0;S<=w;++S){if(S===w){if(y>w){if(r.charCodeAt(d+S)===47)return r.slice(d+S+1);if(S===0)return r.slice(d+S)}else h>w&&(n.charCodeAt(u+S)===47?_=S:S===0&&(_=0));break}var T=n.charCodeAt(u+S),O=r.charCodeAt(d+S);if(T!==O)break;T===47&&(_=S)}var E="";for(S=u+_+1;S<=g;++S)(S===g||n.charCodeAt(S)===47)&&(E.length===0?E+="..":E+="/..");return E.length>0?E+r.slice(d+_):(d+=_,r.charCodeAt(d)===47&&++d,r.slice(d))},"relative"),_makeLong:e(function(n){return n},"_makeLong"),dirname:e(function(n){if(i(n),n.length===0)return".";for(var r=n.charCodeAt(0),u=r===47,g=-1,h=!0,d=n.length-1;d>=1;--d)if(r=n.charCodeAt(d),r===47){if(!h){g=d;break}}else h=!1;return g===-1?u?"/":".":u&&g===1?"//":n.slice(0,g)},"dirname"),basename:e(function(n,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');i(n);var u=0,g=-1,h=!0,d;if(r!==void 0&&r.length>0&&r.length<=n.length){if(r.length===n.length&&r===n)return"";var m=r.length-1,y=-1;for(d=n.length-1;d>=0;--d){var w=n.charCodeAt(d);if(w===47){if(!h){u=d+1;break}}else y===-1&&(h=!1,y=d+1),m>=0&&(w===r.charCodeAt(m)?--m===-1&&(g=d):(m=-1,g=y))}return u===g?g=y:g===-1&&(g=n.length),n.slice(u,g)}else{for(d=n.length-1;d>=0;--d)if(n.charCodeAt(d)===47){if(!h){u=d+1;break}}else g===-1&&(h=!1,g=d+1);return g===-1?"":n.slice(u,g)}},"basename"),extname:e(function(n){i(n);for(var r=-1,u=0,g=-1,h=!0,d=0,m=n.length-1;m>=0;--m){var y=n.charCodeAt(m);if(y===47){if(!h){u=m+1;break}continue}g===-1&&(h=!1,g=m+1),y===46?r===-1?r=m:d!==1&&(d=1):r!==-1&&(d=-1)}return r===-1||g===-1||d===0||d===1&&r===g-1&&r===u+1?"":n.slice(r,g)},"extname"),format:e(function(n){if(n===null||typeof n!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof n);return p("/",n)},"format"),parse:e(function(n){i(n);var r={root:"",dir:"",base:"",ext:"",name:""};if(n.length===0)return r;var u=n.charCodeAt(0),g=u===47,h;g?(r.root="/",h=1):h=0;for(var d=-1,m=0,y=-1,w=!0,_=n.length-1,S=0;_>=h;--_){if(u=n.charCodeAt(_),u===47){if(!w){m=_+1;break}continue}y===-1&&(w=!1,y=_+1),u===46?d===-1?d=_:S!==1&&(S=1):d!==-1&&(S=-1)}return d===-1||y===-1||S===0||S===1&&d===y-1&&d===m+1?y!==-1&&(m===0&&g?r.base=r.name=n.slice(1,y):r.base=r.name=n.slice(m,y)):(m===0&&g?(r.name=n.slice(1,d),r.base=n.slice(1,y)):(r.name=n.slice(m,d),r.base=n.slice(m,y)),r.ext=n.slice(d,y)),m>0?r.dir=n.slice(0,m-1):g&&(r.dir="/"),r},"parse"),sep:"/",delimiter:":",win32:null,posix:null};return a.posix=a,Qh=a,Qh}l(kx,"B5");function Tx(o){if(typeof o=="string")o=new URL(o);else if(!(o instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if(o.protocol!=="file:")throw new Deno.errors.InvalidData("invalid url scheme");return Ed?GC(o):VC(o)}l(Tx,"z5");function GC(o){let i=o.hostname,f=o.pathname;for(let p=0;p<f.length;p++)if(f[p]==="%"){let a=f.codePointAt(p+2)||32;if(f[p+1]==="2"&&a===102||f[p+1]==="5"&&a===99)throw new Deno.errors.InvalidData("must not include encoded \\ or / characters")}if(f=f.replace(p8,"\\"),f=decodeURIComponent(f),i!=="")return`\\\\${i}${f}`;{let p=f.codePointAt(1)|32,a=f[2];if(p<h8||p>d8||a!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return f.slice(1)}}l(GC,"V5");function VC(o){if(o.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let i=o.pathname;for(let f=0;f<i.length;f++)if(i[f]==="%"){let p=i.codePointAt(f+2)||32;if(i[f+1]==="2"&&p===102)throw new Deno.errors.InvalidData("must not include encoded / characters")}return decodeURIComponent(i)}l(VC,"G5");function Fx(o){let i=cE.resolve(o),f=o.charCodeAt(o.length-1);(f===c8||Ed&&f===u8)&&i[i.length-1]!==cE.sep&&(i+="/");let p=new URL("file://");return i.includes("%")&&(i=i.replace(g8,"%25")),!Ed&&i.includes("\\")&&(i=i.replace(y8,"%5C")),i.includes(`
|
|
135
|
+
`)&&(i=i.replace(m8,"%0A")),i.includes("\r")&&(i=i.replace(w8,"%0D")),i.includes(" ")&&(i=i.replace(b8,"%09")),p.pathname=i,p}l(Fx,"Y5");function Bx(o){if(typeof o=="string")o=new URL(o);else if(!(o instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if(o.protocol!=="file:")throw new Deno.errors.InvalidData("invalid url scheme");return Sd?KC(o):JC(o)}l(Bx,"aee");function KC(o){let i=o.hostname,f=o.pathname;for(let p=0;p<f.length;p++)if(f[p]==="%"){let a=f.codePointAt(p+2)||32;if(f[p+1]==="2"&&a===102||f[p+1]==="5"&&a===99)throw new Deno.errors.InvalidData("must not include encoded \\ or / characters")}if(f=f.replace(A8,"\\"),f=decodeURIComponent(f),i!=="")return`\\\\${i}${f}`;{let p=f.codePointAt(1)|32,a=f[2];if(p<E8||p>S8||a!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return f.slice(1)}}l(KC,"see");function JC(o){if(o.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let i=o.pathname;for(let f=0;f<i.length;f++)if(i[f]==="%"){let p=i.codePointAt(f+2)||32;if(i[f+1]==="2"&&p===102)throw new Deno.errors.InvalidData("must not include encoded / characters")}return decodeURIComponent(i)}l(JC,"lee");function xx(o){let i=fE.resolve(o),f=o.charCodeAt(o.length-1);(f===_8||Sd&&f===v8)&&i[i.length-1]!==fE.sep&&(i+="/");let p=new URL("file://");return i.includes("%")&&(i=i.replace(R8,"%25")),!Sd&&i.includes("\\")&&(i=i.replace(O8,"%5C")),i.includes(`
|
|
136
|
+
`)&&(i=i.replace(k8,"%0A")),i.includes("\r")&&(i=i.replace(T8,"%0D")),i.includes(" ")&&(i=i.replace(F8,"%09")),p.pathname=i,p}l(xx,"fee");function k2(){if(hE)return Hr;hE=!0,Hr.fetch=p(Gi.fetch)&&p(Gi.ReadableStream),Hr.writableStream=p(Gi.WritableStream),Hr.abortController=p(Gi.AbortController);var o;function i(){if(o!==void 0)return o;if(Gi.XMLHttpRequest){o=new Gi.XMLHttpRequest;try{o.open("GET",Gi.XDomainRequest?"/":"https://example.com")}catch{o=null}}else o=null;return o}l(i,"t"),e(i,"getXHR");function f(a){var n=i();if(!n)return!1;try{return n.responseType=a,n.responseType===a}catch{}return!1}l(f,"r"),e(f,"checkTypeSupport"),Hr.arraybuffer=Hr.fetch||f("arraybuffer"),Hr.msstream=!Hr.fetch&&f("ms-stream"),Hr.mozchunkedarraybuffer=!Hr.fetch&&f("moz-chunked-arraybuffer"),Hr.overrideMimeType=Hr.fetch||(i()?p(i().overrideMimeType):!1);function p(a){return typeof a=="function"}return l(p,"n"),e(p,"isFunction"),o=null,Hr}l(k2,"yD");function T2(){if(dE)return Hl;dE=!0;var o=bi.Buffer,i=Ft,f=k2(),p=Xi(),a=O2(),n=Hl.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},r=Hl.IncomingMessage=function(u,g,h,d){var m=this||ql;if(a.Readable.call(m),m._mode=h,m.headers={},m.rawHeaders=[],m.trailers={},m.rawTrailers=[],m.on("end",function(){i.nextTick(function(){m.emit("close")})}),h==="fetch"){let O=e(function(){w.read().then(function(E){if(!m._destroyed){if(d(E.done),E.done){m.push(null);return}m.push(o.from(E.value)),O()}}).catch(function(E){d(!0),m._destroyed||m.emit("error",E)})},"read");if(m._fetchResponse=g,m.url=g.url,m.statusCode=g.status,m.statusMessage=g.statusText,g.headers.forEach(function(E,P){m.headers[P.toLowerCase()]=E,m.rawHeaders.push(P,E)}),f.writableStream){var y=new WritableStream({write:e(function(E){return d(!1),new Promise(function(P,A){m._destroyed?A():m.push(o.from(E))?P():m._resumeFetch=P})},"write"),close:e(function(){d(!0),m._destroyed||m.push(null)},"close"),abort:e(function(E){d(!0),m._destroyed||m.emit("error",E)},"abort")});try{g.body.pipeTo(y).catch(function(E){d(!0),m._destroyed||m.emit("error",E)});return}catch{}}var w=g.body.getReader();O()}else{m._xhr=u,m._pos=0,m.url=u.responseURL,m.statusCode=u.status,m.statusMessage=u.statusText;var _=u.getAllResponseHeaders().split(/\r?\n/);if(_.forEach(function(O){var E=O.match(/^([^:]+):\s*(.*)/);if(E){var P=E[1].toLowerCase();P==="set-cookie"?(m.headers[P]===void 0&&(m.headers[P]=[]),m.headers[P].push(E[2])):m.headers[P]!==void 0?m.headers[P]+=", "+E[2]:m.headers[P]=E[2],m.rawHeaders.push(E[1],E[2])}}),m._charset="x-user-defined",!f.overrideMimeType){var S=m.rawHeaders["mime-type"];if(S){var T=S.match(/;\s*charset=([^;])(;|$)/);T&&(m._charset=T[1].toLowerCase())}m._charset||(m._charset="utf-8")}}};return p(r,a.Readable),r.prototype._read=function(){var u=this||ql,g=u._resumeFetch;g&&(u._resumeFetch=null,g())},r.prototype._onXHRProgress=function(u){var g=this||ql,h=g._xhr,d=null;switch(g._mode){case"text":if(d=h.responseText,d.length>g._pos){var m=d.substr(g._pos);if(g._charset==="x-user-defined"){for(var y=o.alloc(m.length),w=0;w<m.length;w++)y[w]=m.charCodeAt(w)&255;g.push(y)}else g.push(m,g._charset);g._pos=d.length}break;case"arraybuffer":if(h.readyState!==n.DONE||!h.response)break;d=h.response,g.push(o.from(new Uint8Array(d)));break;case"moz-chunked-arraybuffer":if(d=h.response,h.readyState!==n.LOADING||!d)break;g.push(o.from(new Uint8Array(d)));break;case"ms-stream":if(d=h.response,h.readyState!==n.LOADING)break;var _=new ql.MSStreamReader;_.onprogress=function(){_.result.byteLength>g._pos&&(g.push(o.from(new Uint8Array(_.result.slice(g._pos)))),g._pos=_.result.byteLength)},_.onload=function(){u(!0),g.push(null)},_.readAsArrayBuffer(d);break}g._xhr.readyState===n.DONE&&g._mode!=="ms-stream"&&(u(!0),g.push(null))},Hl}l(T2,"mD");function YC(){if(pE)return Xh;pE=!0;var o=bi.Buffer,i=Ft,f=k2(),p=Xi(),a=T2(),n=O2(),r=a.IncomingMessage,u=a.readyStates;function g(y,w){return f.fetch&&w?"fetch":f.mozchunkedarraybuffer?"moz-chunked-arraybuffer":f.msstream?"ms-stream":f.arraybuffer&&y?"arraybuffer":"text"}l(g,"h"),e(g,"decideMode");var h=Xh=e(function(y){var w=this||hr;n.Writable.call(w),w._opts=y,w._body=[],w._headers={},y.auth&&w.setHeader("Authorization","Basic "+o.from(y.auth).toString("base64")),Object.keys(y.headers).forEach(function(T){w.setHeader(T,y.headers[T])});var _,S=!0;if(y.mode==="disable-fetch"||"requestTimeout"in y&&!f.abortController)S=!1,_=!0;else if(y.mode==="prefer-streaming")_=!1;else if(y.mode==="allow-wrong-content-type")_=!f.overrideMimeType;else if(!y.mode||y.mode==="default"||y.mode==="prefer-fast")_=!0;else throw new Error("Invalid value for opts.mode");w._mode=g(_,S),w._fetchTimer=null,w._socketTimeout=null,w._socketTimer=null,w.on("finish",function(){w._onFinish()})},"exports$42");p(h,n.Writable),h.prototype.setHeader=function(y,w){var _=this||hr,S=y.toLowerCase();m.indexOf(S)===-1&&(_._headers[S]={name:y,value:w})},h.prototype.getHeader=function(y){var w=(this||hr)._headers[y.toLowerCase()];return w?w.value:null},h.prototype.removeHeader=function(y){var w=this||hr;delete w._headers[y.toLowerCase()]},h.prototype._onFinish=function(){var y=this||hr;if(!y._destroyed){var w=y._opts;"timeout"in w&&w.timeout!==0&&y.setTimeout(w.timeout);var _=y._headers,S=null;w.method!=="GET"&&w.method!=="HEAD"&&(S=new Blob(y._body,{type:(_["content-type"]||{}).value||""}));var T=[];if(Object.keys(_).forEach(function(A){var x=_[A].name,U=_[A].value;Array.isArray(U)?U.forEach(function(M){T.push([x,M])}):T.push([x,U])}),y._mode==="fetch"){var O=null;if(f.abortController){var E=new AbortController;O=E.signal,y._fetchAbortController=E,"requestTimeout"in w&&w.requestTimeout!==0&&(y._fetchTimer=hr.setTimeout(function(){y.emit("requestTimeout"),y._fetchAbortController&&y._fetchAbortController.abort()},w.requestTimeout))}hr.fetch(y._opts.url,{method:y._opts.method,headers:T,body:S||void 0,mode:"cors",credentials:w.withCredentials?"include":"same-origin",signal:O}).then(function(A){y._fetchResponse=A,y._resetTimers(!1),y._connect()},function(A){y._resetTimers(!0),y._destroyed||y.emit("error",A)})}else{var P=y._xhr=new hr.XMLHttpRequest;try{P.open(y._opts.method,y._opts.url,!0)}catch(A){i.nextTick(function(){y.emit("error",A)});return}"responseType"in P&&(P.responseType=y._mode),"withCredentials"in P&&(P.withCredentials=!!w.withCredentials),y._mode==="text"&&"overrideMimeType"in P&&P.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in w&&(P.timeout=w.requestTimeout,P.ontimeout=function(){y.emit("requestTimeout")}),T.forEach(function(A){P.setRequestHeader(A[0],A[1])}),y._response=null,P.onreadystatechange=function(){switch(P.readyState){case u.LOADING:case u.DONE:y._onXHRProgress();break}},y._mode==="moz-chunked-arraybuffer"&&(P.onprogress=function(){y._onXHRProgress()}),P.onerror=function(){y._destroyed||(y._resetTimers(!0),y.emit("error",new Error("XHR error")))};try{P.send(S)}catch(A){i.nextTick(function(){y.emit("error",A)});return}}}};function d(y){try{var w=y.status;return w!==null&&w!==0}catch{return!1}}l(d,"d"),e(d,"statusValid"),h.prototype._onXHRProgress=function(){var y=this||hr;y._resetTimers(!1),!(!d(y._xhr)||y._destroyed)&&(y._response||y._connect(),y._response._onXHRProgress(y._resetTimers.bind(y)))},h.prototype._connect=function(){var y=this||hr;y._destroyed||(y._response=new r(y._xhr,y._fetchResponse,y._mode,y._resetTimers.bind(y)),y._response.on("error",function(w){y.emit("error",w)}),y.emit("response",y._response))},h.prototype._write=function(y,w,_){var S=this||hr;S._body.push(y),_()},h.prototype._resetTimers=function(y){var w=this||hr;hr.clearTimeout(w._socketTimer),w._socketTimer=null,y?(hr.clearTimeout(w._fetchTimer),w._fetchTimer=null):w._socketTimeout&&(w._socketTimer=hr.setTimeout(function(){w.emit("timeout")},w._socketTimeout))},h.prototype.abort=h.prototype.destroy=function(y){var w=this||hr;w._destroyed=!0,w._resetTimers(!0),w._response&&(w._response._destroyed=!0),w._xhr?w._xhr.abort():w._fetchAbortController&&w._fetchAbortController.abort(),y&&w.emit("error",y)},h.prototype.end=function(y,w,_){var S=this||hr;typeof y=="function"&&(_=y,y=void 0),n.Writable.prototype.end.call(S,y,w,_)},h.prototype.setTimeout=function(y,w){var _=this||hr;w&&_.once("timeout",w),_._socketTimeout=y,_._resetTimers(!1)},h.prototype.flushHeaders=function(){},h.prototype.setNoDelay=function(){},h.prototype.setSocketKeepAlive=function(){};var m=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"];return Xh}l(YC,"uee");function ZC(){if(gE)return ed;gE=!0,ed=i;var o=Object.prototype.hasOwnProperty;function i(){for(var f={},p=0;p<arguments.length;p++){var a=arguments[p];for(var n in a)o.call(a,n)&&(f[n]=a[n])}return f}return l(i,"t"),e(i,"extend"),ed}l(ZC,"cee");function QC(){return mE||(mE=!0,yE={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}),yE}l(QC,"hee");function Ix(){if(wE)return td;wE=!0;var o=YC(),i=T2(),f=ZC(),p=QC(),a=jt,n=td;return n.request=function(r,u){typeof r=="string"?r=a.parse(r):r=f(r);var g=B8.location.protocol.search(/^https?:$/)===-1?"http:":"",h=r.protocol||g,d=r.hostname||r.host,m=r.port,y=r.path||"/";d&&d.indexOf(":")!==-1&&(d="["+d+"]"),r.url=(d?h+"//"+d:"")+(m?":"+m:"")+y,r.method=(r.method||"GET").toUpperCase(),r.headers=r.headers||{};var w=new o(r);return u&&w.on("response",u),w},n.get=e(function(r,u){var g=n.request(r,u);return g.end(),g},"get2"),n.ClientRequest=o,n.IncomingMessage=i.IncomingMessage,n.Agent=function(){},n.Agent.defaultMaxSockets=4,n.globalAgent=new n.Agent,n.STATUS_CODES=p,n.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"],td}l(Ix,"pee");function Px(){if(bE)return rd;bE=!0;var o=Fn,i=jt,f=rd;for(var p in o)o.hasOwnProperty(p)&&(f[p]=o[p]);f.request=function(n,r){return n=a(n),o.request.call(this||vE,n,r)},f.get=function(n,r){return n=a(n),o.get.call(this||vE,n,r)};function a(n){if(typeof n=="string"&&(n=i.parse(n)),n.protocol||(n.protocol="https:"),n.protocol!=="https:")throw new Error('Protocol "'+n.protocol+'" not supported. Expected "https:"');return n}return l(a,"a"),e(a,"validateParams"),rd}l(Px,"yee");var jx,Cx,Xo,xm,Im,Pm,wn,Lx,li,fi,Aa,ir,ga,Mn,Ra,gf,Kt,Nx,Su,Rl,jm,Dx,Ux,Mx,$x,Wx,Cm,Lm,Nm,zx,Hx,qx,Dm,Ot,XC,Gx,Vx,N_,Ph,Gr,Cr,Kx,Yt,e8,t8,r8,ws,at,dn,Um,Jx,Ol,Mm,Au,n8,Li,cD,jh,D_,oa,Ft,Yx,bn,Jr,Zx,Ru,ea,Qx,Xx,On,bd,aa,$m,i8,o8,kl,Tl,yn,eI,vd,_d,U_,Is,M_,Ch,$_,qi,W_,bi,Lh,z_,H_,q_,Nh,G_,Dh,V_,Uh,K_,Mh,J_,$h,Y_,Wh,zh,Z_,a8,Hh,Q_,qh,X_,Gh,eE,tE,rE,Vh,nE,s8,Kh,iE,Jh,oE,Yh,aE,zr,sE,Zh,lE,fE,ta,tI,rI,l8,f8,pn,Ou,Wm,zm,Hm,qm,nI,iI,bs,oI,kn,jt,aI,mn,sI,lI,fI,uI,ku,Gm,Vm,Km,cI,hI,Tu,ra,Fu,Qh,uE,cE,dI,u8,c8,h8,d8,Ed,p8,g8,y8,m8,w8,b8,pI,v8,_8,E8,S8,Sd,A8,R8,O8,k8,T8,F8,Hr,hE,Gi,Hl,dE,ql,Xh,pE,hr,ed,gE,yE,mE,td,wE,B8,Fn,rd,bE,vE,ni,x8,I8,P8,j8,C8,L8,N8,D8,hD=er(()=>{if(Xo=typeof Reflect=="object"?Reflect:null,xm=Xo&&typeof Xo.apply=="function"?Xo.apply:function(a,n,r){return Function.prototype.apply.call(a,n,r)},Cx=Xo&&typeof Xo.ownKeys=="function"?Xo.ownKeys:Object.getOwnPropertySymbols?function(a){return Object.getOwnPropertyNames(a).concat(Object.getOwnPropertySymbols(a))}:function(a){return Object.getOwnPropertyNames(a)},Im=Number.isNaN||function(a){return a!=a},e(Pt,"o"),jx=Pt,Pt.EventEmitter=Pt,Pt.prototype._events=void 0,Pt.prototype._eventsCount=0,Pt.prototype._maxListeners=void 0,Pm=10,e(zl,"u"),e(p_,"f"),e(um,"v"),e(_C,"a"),e(cm,"l"),e(hm,"h"),e(dm,"p"),e(g_,"c"),Object.defineProperty(Pt,"defaultMaxListeners",{enumerable:!0,get:e(function(){return Pm},"get"),set:e(function(a){if(typeof a!="number"||a<0||Im(a))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+a+".");Pm=a},"set")}),Pt.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Pt.prototype.setMaxListeners=function(a){if(typeof a!="number"||a<0||Im(a))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+a+".");return this._maxListeners=a,this},Pt.prototype.getMaxListeners=function(){return p_(this)},Pt.prototype.emit=function(a){for(var n=[],r=1;r<arguments.length;r++)n.push(arguments[r]);var u=a==="error",g=this._events;if(g!==void 0)u=u&&g.error===void 0;else if(!u)return!1;if(u){var h;if(n.length>0&&(h=n[0]),h instanceof Error)throw h;var d=new Error("Unhandled error."+(h?" ("+h.message+")":""));throw d.context=h,d}var m=g[a];if(m===void 0)return!1;if(typeof m=="function")xm(m,this,n);else{var y=m.length,w=g_(m,y);for(r=0;r<y;++r)xm(w[r],this,n)}return!0},Pt.prototype.addListener=function(a,n){return um(this,a,n,!1)},Pt.prototype.on=Pt.prototype.addListener,Pt.prototype.prependListener=function(a,n){return um(this,a,n,!0)},Pt.prototype.once=function(a,n){return zl(n),this.on(a,cm(this,a,n)),this},Pt.prototype.prependOnceListener=function(a,n){return zl(n),this.prependListener(a,cm(this,a,n)),this},Pt.prototype.removeListener=function(a,n){var r,u,g,h,d;if(zl(n),(u=this._events)===void 0)return this;if((r=u[a])===void 0)return this;if(r===n||r.listener===n)--this._eventsCount==0?this._events=Object.create(null):(delete u[a],u.removeListener&&this.emit("removeListener",a,r.listener||n));else if(typeof r!="function"){for(g=-1,h=r.length-1;h>=0;h--)if(r[h]===n||r[h].listener===n){d=r[h].listener,g=h;break}if(g<0)return this;g===0?r.shift():function(m,y){for(;y+1<m.length;y++)m[y]=m[y+1];m.pop()}(r,g),r.length===1&&(u[a]=r[0]),u.removeListener!==void 0&&this.emit("removeListener",a,d||n)}return this},Pt.prototype.off=Pt.prototype.removeListener,Pt.prototype.removeAllListeners=function(a){var n,r,u;if((r=this._events)===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[a]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete r[a]),this;if(arguments.length===0){var g,h=Object.keys(r);for(u=0;u<h.length;++u)(g=h[u])!=="removeListener"&&this.removeAllListeners(g);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(n=r[a])=="function")this.removeListener(a,n);else if(n!==void 0)for(u=n.length-1;u>=0;u--)this.removeListener(a,n[u]);return this},Pt.prototype.listeners=function(a){return hm(this,a,!0)},Pt.prototype.rawListeners=function(a){return hm(this,a,!1)},Pt.listenerCount=function(a,n){return typeof a.listenerCount=="function"?a.listenerCount(n):dm.call(a,n)},Pt.prototype.listenerCount=dm,Pt.prototype.eventNames=function(){return this._eventsCount>0?Cx(this._events):[]},wn=jx,wn.EventEmitter,wn.defaultMaxListeners,wn.init,wn.listenerCount,wn.EventEmitter,wn.defaultMaxListeners,wn.init,wn.listenerCount,Aa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,ir=Lx={},e(Oh,"i$2"),e(kh,"u$2"),e(y_,"c$2"),function(){try{li=typeof setTimeout=="function"?setTimeout:Oh}catch{li=Oh}try{fi=typeof clearTimeout=="function"?clearTimeout:kh}catch{fi=kh}}(),Mn=[],Ra=!1,gf=-1,e(EC,"h$1"),e(m_,"d$1"),e(pm,"m$1"),e(Rn,"p$1"),ir.nextTick=function(a){var n=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)n[r-1]=arguments[r];Mn.push(new pm(a,n)),Mn.length!==1||Ra||y_(m_)},pm.prototype.run=function(){(this||Aa).fun.apply(null,(this||Aa).array)},ir.title="browser",ir.browser=!0,ir.env={},ir.argv=[],ir.version="",ir.versions={},ir.on=Rn,ir.addListener=Rn,ir.once=Rn,ir.off=Rn,ir.removeListener=Rn,ir.removeAllListeners=Rn,ir.emit=Rn,ir.prependListener=Rn,ir.prependOnceListener=Rn,ir.listeners=function(a){return[]},ir.binding=function(a){throw new Error("process.binding is not supported")},ir.cwd=function(){return"/"},ir.chdir=function(a){throw new Error("process.chdir is not supported")},ir.umask=function(){return 0},Kt=Lx,Kt.addListener,Kt.argv,Kt.binding,Kt.browser,Kt.chdir,Kt.cwd,Kt.emit,Kt.env,Kt.listeners,Kt.nextTick,Kt.off,Kt.on,Kt.once,Kt.prependListener,Kt.prependOnceListener,Kt.removeAllListeners,Kt.removeListener,Kt.title,Kt.umask,Kt.version,Kt.versions,Nx=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Su=Object.prototype.toString,Rl=e(function(a){return!(Nx&&a&&typeof a=="object"&&Symbol.toStringTag in a)&&Su.call(a)==="[object Arguments]"},"o2"),jm=e(function(a){return!!Rl(a)||a!==null&&typeof a=="object"&&typeof a.length=="number"&&a.length>=0&&Su.call(a)!=="[object Array]"&&Su.call(a.callee)==="[object Function]"},"n2"),Dx=function(){return Rl(arguments)}(),Rl.isLegacyArguments=jm,Ux=Dx?Rl:jm,Mx=Object.prototype.toString,$x=Function.prototype.toString,Wx=/^\s*(?:function)?\*/,Cm=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Lm=Object.getPrototypeOf,Nm=function(){if(!Cm)return!1;try{return Function("return function*() {}")()}catch{}}(),zx=Nm?Lm(Nm):{},Hx=e(function(a){return typeof a=="function"&&(!!Wx.test($x.call(a))||(Cm?Lm(a)===zx:Mx.call(a)==="[object GeneratorFunction]"))},"i2"),qx=typeof Object.create=="function"?function(a,n){n&&(a.super_=n,a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}))}:function(a,n){if(n){a.super_=n;var r=e(function(){},"o5");r.prototype=n.prototype,a.prototype=new r,a.prototype.constructor=a}},Dm=e(function(a){return a&&typeof a=="object"&&typeof a.copy=="function"&&typeof a.fill=="function"&&typeof a.readUInt8=="function"},"i$1"),Ot={},XC=Dm,Gx=Ux,Vx=Hx,e(Ii,"c$1"),N_=typeof BigInt<"u",Ph=typeof Symbol<"u",Gr=Ph&&Symbol.toStringTag!==void 0,Cr=typeof Uint8Array<"u",Kx=typeof ArrayBuffer<"u",Cr&&Gr)var o=Object.getPrototypeOf(Uint8Array.prototype),i=Ii(Object.getOwnPropertyDescriptor(o,Symbol.toStringTag).get);if(Yt=Ii(Object.prototype.toString),e8=Ii(Number.prototype.valueOf),t8=Ii(String.prototype.valueOf),r8=Ii(Boolean.prototype.valueOf),N_)var f=Ii(BigInt.prototype.valueOf);if(Ph)var p=Ii(Symbol.prototype.valueOf);for(e(il,"O"),e(gm,"S"),e(w_,"B"),e(b_,"k"),e(v_,"E"),e(__,"D"),e(E_,"U"),e(S_,"P"),e(A_,"x"),e(R_,"I"),e(O_,"M"),e(k_,"z"),e(T_,"F"),e(El,"T"),e(Sl,"N"),e(Al,"W"),e(_u,"$"),e(lf,"C"),e(ym,"V"),e(ff,"G"),e(mm,"R"),e(uf,"J"),e(wm,"_"),e(bm,"H"),e(vm,"Z"),e(_m,"q"),e(Em,"K"),e(Sm,"L"),Ot.isArgumentsObject=Gx,Ot.isGeneratorFunction=Vx,Ot.isPromise=function(a){return typeof Promise<"u"&&a instanceof Promise||a!==null&&typeof a=="object"&&typeof a.then=="function"&&typeof a.catch=="function"},Ot.isArrayBufferView=function(a){return Kx&&ArrayBuffer.isView?ArrayBuffer.isView(a):gm(a)||mm(a)},Ot.isTypedArray=gm,Ot.isUint8Array=w_,Ot.isUint8ClampedArray=b_,Ot.isUint16Array=v_,Ot.isUint32Array=__,Ot.isInt8Array=E_,Ot.isInt16Array=S_,Ot.isInt32Array=A_,Ot.isFloat32Array=R_,Ot.isFloat64Array=O_,Ot.isBigInt64Array=k_,Ot.isBigUint64Array=T_,El.working=typeof Map<"u"&&El(new Map),Ot.isMap=function(a){return typeof Map<"u"&&(El.working?El(a):a instanceof Map)},Sl.working=typeof Set<"u"&&Sl(new Set),Ot.isSet=function(a){return typeof Set<"u"&&(Sl.working?Sl(a):a instanceof Set)},Al.working=typeof WeakMap<"u"&&Al(new WeakMap),Ot.isWeakMap=function(a){return typeof WeakMap<"u"&&(Al.working?Al(a):a instanceof WeakMap)},_u.working=typeof WeakSet<"u"&&_u(new WeakSet),Ot.isWeakSet=function(a){return _u(a)},lf.working=typeof ArrayBuffer<"u"&&lf(new ArrayBuffer),Ot.isArrayBuffer=ym,ff.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&ff(new DataView(new ArrayBuffer(1),0,1)),Ot.isDataView=mm,uf.working=typeof SharedArrayBuffer<"u"&&uf(new SharedArrayBuffer),Ot.isSharedArrayBuffer=wm,Ot.isAsyncFunction=function(a){return Yt(a)==="[object AsyncFunction]"},Ot.isMapIterator=function(a){return Yt(a)==="[object Map Iterator]"},Ot.isSetIterator=function(a){return Yt(a)==="[object Set Iterator]"},Ot.isGeneratorObject=function(a){return Yt(a)==="[object Generator]"},Ot.isWebAssemblyCompiledModule=function(a){return Yt(a)==="[object WebAssembly.Module]"},Ot.isNumberObject=bm,Ot.isStringObject=vm,Ot.isBooleanObject=_m,Ot.isBigIntObject=Em,Ot.isSymbolObject=Sm,Ot.isBoxedPrimitive=function(a){return bm(a)||vm(a)||_m(a)||Em(a)||Sm(a)},Ot.isAnyArrayBuffer=function(a){return Cr&&(ym(a)||wm(a))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(a){Object.defineProperty(Ot,a,{enumerable:!1,value:e(function(){throw new Error(a+" is not supported in userland")},"value")})}),ws=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,at={},dn=Kt,Um=Object.getOwnPropertyDescriptors||function(a){for(var n=Object.keys(a),r={},u=0;u<n.length;u++)r[n[u]]=Object.getOwnPropertyDescriptor(a,n[u]);return r},Jx=/%[sdj%]/g,at.format=function(a){if(!hf(a)){for(var n=[],r=0;r<arguments.length;r++)n.push(yi(arguments[r]));return n.join(" ")}r=1;for(var u=arguments,g=u.length,h=String(a).replace(Jx,function(m){if(m==="%%")return"%";if(r>=g)return m;switch(m){case"%s":return String(u[r++]);case"%d":return Number(u[r++]);case"%j":try{return JSON.stringify(u[r++])}catch{return"[Circular]"}default:return m}}),d=u[r];r<g;d=u[++r])cf(d)||!pa(d)?h+=" "+d:h+=" "+yi(d);return h},at.deprecate=function(a,n){if(dn!==void 0&&dn.noDeprecation===!0)return a;if(dn===void 0)return function(){return at.deprecate(a,n).apply(this||ws,arguments)};var r=!1;return function(){if(!r){if(dn.throwDeprecation)throw new Error(n);dn.traceDeprecation?console.trace(n):console.error(n),r=!0}return a.apply(this||ws,arguments)}},Ol={},Mm=/^$/,dn.env.NODE_DEBUG&&(Au=dn.env.NODE_DEBUG,Au=Au.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),Mm=new RegExp("^"+Au+"$","i")),e(yi,"oe"),e(SC,"ue"),e(AC,"fe"),e(bf,"ae"),e(Th,"ce"),e(Fh,"se"),e(F_,"pe"),e(md,"ye"),e(cf,"le"),e(B_,"de"),e(hf,"ge"),e(Yi,"be"),e(Ls,"me"),e(pa,"he"),e(df,"je"),e(Ns,"Ae"),e(pf,"we"),e(Wd,"ve"),e(Bh,"Oe"),at.debuglog=function(a){if(a=a.toUpperCase(),!Ol[a])if(Mm.test(a)){var n=dn.pid;Ol[a]=function(){var r=at.format.apply(at,arguments);console.error("%s %d: %s",a,n,r)}}else Ol[a]=function(){};return Ol[a]},at.inspect=yi,yi.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},yi.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},at.types=Ot,at.isArray=F_,at.isBoolean=md,at.isNull=cf,at.isNullOrUndefined=function(a){return a==null},at.isNumber=B_,at.isString=hf,at.isSymbol=function(a){return typeof a=="symbol"},at.isUndefined=Yi,at.isRegExp=Ls,at.types.isRegExp=Ls,at.isObject=pa,at.isDate=df,at.types.isDate=df,at.isError=Ns,at.types.isNativeError=Ns,at.isFunction=pf,at.isPrimitive=function(a){return a===null||typeof a=="boolean"||typeof a=="number"||typeof a=="string"||typeof a=="symbol"||a===void 0},at.isBuffer=Dm,n8=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],e(px,"Be"),e(m2,"ke"),at.log=function(){console.log("%s - %s",px(),at.format.apply(at,arguments))},at.inherits=qx,at._extend=function(a,n){if(!n||!pa(n))return a;for(var r=Object.keys(n),u=r.length;u--;)a[r[u]]=n[r[u]];return a},Li=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0,e(gx,"De"),at.promisify=function(a){if(typeof a!="function")throw new TypeError('The "original" argument must be of type Function');if(Li&&a[Li]){var n;if(typeof(n=a[Li])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(n,Li,{value:n,enumerable:!1,writable:!1,configurable:!0}),n}function n(){for(var r,u,g=new Promise(function(m,y){r=m,u=y}),h=[],d=0;d<arguments.length;d++)h.push(arguments[d]);h.push(function(m,y){m?u(m):r(y)});try{a.apply(this||ws,h)}catch(m){u(m)}return g}return l(n,"t"),e(n,"t5"),Object.setPrototypeOf(n,Object.getPrototypeOf(a)),Li&&Object.defineProperty(n,Li,{value:n,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(n,Um(a))},at.promisify.custom=Li,at.callbackify=function(a){if(typeof a!="function")throw new TypeError('The "original" argument must be of type Function');function n(){for(var r=[],u=0;u<arguments.length;u++)r.push(arguments[u]);var g=r.pop();if(typeof g!="function")throw new TypeError("The last argument must be of type Function");var h=this||ws,d=e(function(){return g.apply(h,arguments)},"o5");a.apply(this||ws,r).then(function(m){dn.nextTick(d.bind(null,null,m))},function(m){dn.nextTick(gx.bind(null,m,d))})}return l(n,"t"),e(n,"t5"),Object.setPrototypeOf(n,Object.getPrototypeOf(a)),Object.defineProperties(n,Um(a)),n},at._extend,at.callbackify,at.debuglog,at.deprecate,at.format,at.inherits,at.inspect,at.isArray,at.isBoolean,at.isBuffer,at.isDate,at.isError,at.isFunction,at.isNull,at.isNullOrUndefined,at.isNumber,at.isObject,at.isPrimitive,at.isRegExp,at.isString,at.isSymbol,at.isUndefined,at.log,at.promisify,at._extend,at.callbackify,at.debuglog,at.deprecate,at.format,at.inherits,at.inspect,at.isArray,at.isBoolean,at.isBuffer,at.isDate,at.isError,at.isFunction,at.isNull,at.isNullOrUndefined,at.isNumber,at.isObject,at.isPrimitive,at.isRegExp,at.isString,at.isSymbol,at.isUndefined,at.log,cD=at.promisify,at.types,jh={},D_=!1,oa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(yx,"dew"),Ft=yx(),Ft.platform="browser",Ft.addListener,Ft.argv,Ft.binding,Ft.browser,Ft.chdir,Ft.cwd,Ft.emit,Ft.env,Ft.listeners,Ft.nextTick,Ft.off,Ft.on,Ft.once,Ft.prependListener,Ft.prependOnceListener,Ft.removeAllListeners,Ft.removeListener,Ft.title,Ft.umask,Ft.version,Ft.versions,Yx={byteLength:e(function(a){var n=Am(a),r=n[0],u=n[1];return 3*(r+u)/4-u},"byteLength"),toByteArray:e(function(a){var n,r,u=Am(a),g=u[0],h=u[1],d=new Zx(function(w,_,S){return 3*(_+S)/4-S}(0,g,h)),m=0,y=h>0?g-4:g;for(r=0;r<y;r+=4)n=Jr[a.charCodeAt(r)]<<18|Jr[a.charCodeAt(r+1)]<<12|Jr[a.charCodeAt(r+2)]<<6|Jr[a.charCodeAt(r+3)],d[m++]=n>>16&255,d[m++]=n>>8&255,d[m++]=255&n;return h===2&&(n=Jr[a.charCodeAt(r)]<<2|Jr[a.charCodeAt(r+1)]>>4,d[m++]=255&n),h===1&&(n=Jr[a.charCodeAt(r)]<<10|Jr[a.charCodeAt(r+1)]<<4|Jr[a.charCodeAt(r+2)]>>2,d[m++]=n>>8&255,d[m++]=255&n),d},"toByteArray"),fromByteArray:e(function(a){for(var n,r=a.length,u=r%3,g=[],h=0,d=r-u;h<d;h+=16383)g.push(mx(a,h,h+16383>d?d:h+16383));return u===1?(n=a[r-1],g.push(bn[n>>2]+bn[n<<4&63]+"==")):u===2&&(n=(a[r-2]<<8)+a[r-1],g.push(bn[n>>10]+bn[n>>4&63]+bn[n<<2&63]+"=")),g.join("")},"fromByteArray")},bn=[],Jr=[],Zx=typeof Uint8Array<"u"?Uint8Array:Array,Ru="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ea=0,Qx=Ru.length;ea<Qx;++ea)bn[ea]=Ru[ea],Jr[Ru.charCodeAt(ea)]=ea;e(Am,"u$22"),e(mx,"c$12"),Jr[45]=62,Jr[95]=63,Xx={read:e(function(a,n,r,u,g){var h,d,m=8*g-u-1,y=(1<<m)-1,w=y>>1,_=-7,S=r?g-1:0,T=r?-1:1,O=a[n+S];for(S+=T,h=O&(1<<-_)-1,O>>=-_,_+=m;_>0;h=256*h+a[n+S],S+=T,_-=8);for(d=h&(1<<-_)-1,h>>=-_,_+=u;_>0;d=256*d+a[n+S],S+=T,_-=8);if(h===0)h=1-w;else{if(h===y)return d?NaN:1/0*(O?-1:1);d+=Math.pow(2,u),h-=w}return(O?-1:1)*d*Math.pow(2,h-u)},"read"),write:e(function(a,n,r,u,g,h){var d,m,y,w=8*h-g-1,_=(1<<w)-1,S=_>>1,T=g===23?Math.pow(2,-24)-Math.pow(2,-77):0,O=u?0:h-1,E=u?1:-1,P=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(m=isNaN(n)?1:0,d=_):(d=Math.floor(Math.log(n)/Math.LN2),n*(y=Math.pow(2,-d))<1&&(d--,y*=2),(n+=d+S>=1?T/y:T*Math.pow(2,1-S))*y>=2&&(d++,y/=2),d+S>=_?(m=0,d=_):d+S>=1?(m=(n*y-1)*Math.pow(2,g),d+=S):(m=n*Math.pow(2,S-1)*Math.pow(2,g),d=0));g>=8;a[r+O]=255&m,O+=E,m/=256,g-=8);for(d=d<<g|m,w+=g;w>0;a[r+O]=255&d,O+=E,d/=256,w-=8);a[r+O-E]|=128*P},"write")},On={},bd=Yx,aa=Xx,$m=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null,On.Buffer=tt,On.SlowBuffer=function(a){return+a!=a&&(a=0),tt.alloc(+a)},On.INSPECT_MAX_BYTES=50,e(Bn,"f$2"),e(tt,"u$1$1"),e(x_,"s$12"),e(I_,"h$1$1"),e(xh,"a$2"),e(Ih,"p3"),e(RC,"c$1$1"),e(zd,"l$12"),e(P_,"y3"),e(wx,"g2"),e(Pi,"w2"),e(Rm,"d2"),e(j_,"v3"),e(bx,"b2"),e(vx,"m2"),e(C_,"E2"),e(_x,"B2"),e(Ex,"A2"),e(Sx,"U2"),e(OC,"T2"),e(L_,"I2"),On.kMaxLength=2147483647,tt.TYPED_ARRAY_SUPPORT=function(){try{var a=new Uint8Array(1),n={foo:e(function(){return 42},"foo")};return Object.setPrototypeOf(n,Uint8Array.prototype),Object.setPrototypeOf(a,n),a.foo()===42}catch{return!1}}(),tt.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(tt.prototype,"parent",{enumerable:!0,get:e(function(){if(tt.isBuffer(this))return this.buffer},"get")}),Object.defineProperty(tt.prototype,"offset",{enumerable:!0,get:e(function(){if(tt.isBuffer(this))return this.byteOffset},"get")}),tt.poolSize=8192,tt.from=function(a,n,r){return x_(a,n,r)},Object.setPrototypeOf(tt.prototype,Uint8Array.prototype),Object.setPrototypeOf(tt,Uint8Array),tt.alloc=function(a,n,r){return function(u,g,h){return I_(u),u<=0?Bn(u):g!==void 0?typeof h=="string"?Bn(u).fill(g,h):Bn(u).fill(g):Bn(u)}(a,n,r)},tt.allocUnsafe=function(a){return xh(a)},tt.allocUnsafeSlow=function(a){return xh(a)},tt.isBuffer=function(a){return a!=null&&a._isBuffer===!0&&a!==tt.prototype},tt.compare=function(a,n){if(xn(a,Uint8Array)&&(a=tt.from(a,a.offset,a.byteLength)),xn(n,Uint8Array)&&(n=tt.from(n,n.offset,n.byteLength)),!tt.isBuffer(a)||!tt.isBuffer(n))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(a===n)return 0;for(var r=a.length,u=n.length,g=0,h=Math.min(r,u);g<h;++g)if(a[g]!==n[g]){r=a[g],u=n[g];break}return r<u?-1:u<r?1:0},tt.isEncoding=function(a){switch(String(a).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},tt.concat=function(a,n){if(!Array.isArray(a))throw new TypeError('"list" argument must be an Array of Buffers');if(a.length===0)return tt.alloc(0);var r;if(n===void 0)for(n=0,r=0;r<a.length;++r)n+=a[r].length;var u=tt.allocUnsafe(n),g=0;for(r=0;r<a.length;++r){var h=a[r];if(xn(h,Uint8Array)&&(h=tt.from(h)),!tt.isBuffer(h))throw new TypeError('"list" argument must be an Array of Buffers');h.copy(u,g),g+=h.length}return u},tt.byteLength=P_,tt.prototype._isBuffer=!0,tt.prototype.swap16=function(){var a=this.length;if(a%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<a;n+=2)Pi(this,n,n+1);return this},tt.prototype.swap32=function(){var a=this.length;if(a%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<a;n+=4)Pi(this,n,n+3),Pi(this,n+1,n+2);return this},tt.prototype.swap64=function(){var a=this.length;if(a%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<a;n+=8)Pi(this,n,n+7),Pi(this,n+1,n+6),Pi(this,n+2,n+5),Pi(this,n+3,n+4);return this},tt.prototype.toString=function(){var a=this.length;return a===0?"":arguments.length===0?L_(this,0,a):wx.apply(this,arguments)},tt.prototype.toLocaleString=tt.prototype.toString,tt.prototype.equals=function(a){if(!tt.isBuffer(a))throw new TypeError("Argument must be a Buffer");return this===a||tt.compare(this,a)===0},tt.prototype.inspect=function(){var a="",n=On.INSPECT_MAX_BYTES;return a=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(a+=" ... "),"<Buffer "+a+">"},$m&&(tt.prototype[$m]=tt.prototype.inspect),tt.prototype.compare=function(a,n,r,u,g){if(xn(a,Uint8Array)&&(a=tt.from(a,a.offset,a.byteLength)),!tt.isBuffer(a))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof a);if(n===void 0&&(n=0),r===void 0&&(r=a?a.length:0),u===void 0&&(u=0),g===void 0&&(g=this.length),n<0||r>a.length||u<0||g>this.length)throw new RangeError("out of range index");if(u>=g&&n>=r)return 0;if(u>=g)return-1;if(n>=r)return 1;if(this===a)return 0;for(var h=(g>>>=0)-(u>>>=0),d=(r>>>=0)-(n>>>=0),m=Math.min(h,d),y=this.slice(u,g),w=a.slice(n,r),_=0;_<m;++_)if(y[_]!==w[_]){h=y[_],d=w[_];break}return h<d?-1:d<h?1:0},tt.prototype.includes=function(a,n,r){return this.indexOf(a,n,r)!==-1},tt.prototype.indexOf=function(a,n,r){return Rm(this,a,n,r,!0)},tt.prototype.lastIndexOf=function(a,n,r){return Rm(this,a,n,r,!1)},tt.prototype.write=function(a,n,r,u){if(n===void 0)u="utf8",r=this.length,n=0;else if(r===void 0&&typeof n=="string")u=n,r=this.length,n=0;else{if(!isFinite(n))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");n>>>=0,isFinite(r)?(r>>>=0,u===void 0&&(u="utf8")):(u=r,r=void 0)}var g=this.length-n;if((r===void 0||r>g)&&(r=g),a.length>0&&(r<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");u||(u="utf8");for(var h=!1;;)switch(u){case"hex":return bx(this,a,n,r);case"utf8":case"utf-8":return vx(this,a,n,r);case"ascii":return C_(this,a,n,r);case"latin1":case"binary":return _x(this,a,n,r);case"base64":return Ex(this,a,n,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Sx(this,a,n,r);default:if(h)throw new TypeError("Unknown encoding: "+u);u=(""+u).toLowerCase(),h=!0}},tt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},e(kC,"S2"),e(TC,"R2"),e(FC,"O2"),e(BC,"L2"),e(ur,"x2"),e(Ir,"C2"),e(w2,"P2"),e(Om,"k2"),e(km,"M2"),tt.prototype.slice=function(a,n){var r=this.length;(a=~~a)<0?(a+=r)<0&&(a=0):a>r&&(a=r),(n=n===void 0?r:~~n)<0?(n+=r)<0&&(n=0):n>r&&(n=r),n<a&&(n=a);var u=this.subarray(a,n);return Object.setPrototypeOf(u,tt.prototype),u},tt.prototype.readUIntLE=function(a,n,r){a>>>=0,n>>>=0,r||ur(a,n,this.length);for(var u=this[a],g=1,h=0;++h<n&&(g*=256);)u+=this[a+h]*g;return u},tt.prototype.readUIntBE=function(a,n,r){a>>>=0,n>>>=0,r||ur(a,n,this.length);for(var u=this[a+--n],g=1;n>0&&(g*=256);)u+=this[a+--n]*g;return u},tt.prototype.readUInt8=function(a,n){return a>>>=0,n||ur(a,1,this.length),this[a]},tt.prototype.readUInt16LE=function(a,n){return a>>>=0,n||ur(a,2,this.length),this[a]|this[a+1]<<8},tt.prototype.readUInt16BE=function(a,n){return a>>>=0,n||ur(a,2,this.length),this[a]<<8|this[a+1]},tt.prototype.readUInt32LE=function(a,n){return a>>>=0,n||ur(a,4,this.length),(this[a]|this[a+1]<<8|this[a+2]<<16)+16777216*this[a+3]},tt.prototype.readUInt32BE=function(a,n){return a>>>=0,n||ur(a,4,this.length),16777216*this[a]+(this[a+1]<<16|this[a+2]<<8|this[a+3])},tt.prototype.readIntLE=function(a,n,r){a>>>=0,n>>>=0,r||ur(a,n,this.length);for(var u=this[a],g=1,h=0;++h<n&&(g*=256);)u+=this[a+h]*g;return u>=(g*=128)&&(u-=Math.pow(2,8*n)),u},tt.prototype.readIntBE=function(a,n,r){a>>>=0,n>>>=0,r||ur(a,n,this.length);for(var u=n,g=1,h=this[a+--u];u>0&&(g*=256);)h+=this[a+--u]*g;return h>=(g*=128)&&(h-=Math.pow(2,8*n)),h},tt.prototype.readInt8=function(a,n){return a>>>=0,n||ur(a,1,this.length),128&this[a]?-1*(255-this[a]+1):this[a]},tt.prototype.readInt16LE=function(a,n){a>>>=0,n||ur(a,2,this.length);var r=this[a]|this[a+1]<<8;return 32768&r?4294901760|r:r},tt.prototype.readInt16BE=function(a,n){a>>>=0,n||ur(a,2,this.length);var r=this[a+1]|this[a]<<8;return 32768&r?4294901760|r:r},tt.prototype.readInt32LE=function(a,n){return a>>>=0,n||ur(a,4,this.length),this[a]|this[a+1]<<8|this[a+2]<<16|this[a+3]<<24},tt.prototype.readInt32BE=function(a,n){return a>>>=0,n||ur(a,4,this.length),this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]},tt.prototype.readFloatLE=function(a,n){return a>>>=0,n||ur(a,4,this.length),aa.read(this,a,!0,23,4)},tt.prototype.readFloatBE=function(a,n){return a>>>=0,n||ur(a,4,this.length),aa.read(this,a,!1,23,4)},tt.prototype.readDoubleLE=function(a,n){return a>>>=0,n||ur(a,8,this.length),aa.read(this,a,!0,52,8)},tt.prototype.readDoubleBE=function(a,n){return a>>>=0,n||ur(a,8,this.length),aa.read(this,a,!1,52,8)},tt.prototype.writeUIntLE=function(a,n,r,u){a=+a,n>>>=0,r>>>=0,u||Ir(this,a,n,r,Math.pow(2,8*r)-1,0);var g=1,h=0;for(this[n]=255&a;++h<r&&(g*=256);)this[n+h]=a/g&255;return n+r},tt.prototype.writeUIntBE=function(a,n,r,u){a=+a,n>>>=0,r>>>=0,u||Ir(this,a,n,r,Math.pow(2,8*r)-1,0);var g=r-1,h=1;for(this[n+g]=255&a;--g>=0&&(h*=256);)this[n+g]=a/h&255;return n+r},tt.prototype.writeUInt8=function(a,n,r){return a=+a,n>>>=0,r||Ir(this,a,n,1,255,0),this[n]=255&a,n+1},tt.prototype.writeUInt16LE=function(a,n,r){return a=+a,n>>>=0,r||Ir(this,a,n,2,65535,0),this[n]=255&a,this[n+1]=a>>>8,n+2},tt.prototype.writeUInt16BE=function(a,n,r){return a=+a,n>>>=0,r||Ir(this,a,n,2,65535,0),this[n]=a>>>8,this[n+1]=255&a,n+2},tt.prototype.writeUInt32LE=function(a,n,r){return a=+a,n>>>=0,r||Ir(this,a,n,4,4294967295,0),this[n+3]=a>>>24,this[n+2]=a>>>16,this[n+1]=a>>>8,this[n]=255&a,n+4},tt.prototype.writeUInt32BE=function(a,n,r){return a=+a,n>>>=0,r||Ir(this,a,n,4,4294967295,0),this[n]=a>>>24,this[n+1]=a>>>16,this[n+2]=a>>>8,this[n+3]=255&a,n+4},tt.prototype.writeIntLE=function(a,n,r,u){if(a=+a,n>>>=0,!u){var g=Math.pow(2,8*r-1);Ir(this,a,n,r,g-1,-g)}var h=0,d=1,m=0;for(this[n]=255&a;++h<r&&(d*=256);)a<0&&m===0&&this[n+h-1]!==0&&(m=1),this[n+h]=(a/d>>0)-m&255;return n+r},tt.prototype.writeIntBE=function(a,n,r,u){if(a=+a,n>>>=0,!u){var g=Math.pow(2,8*r-1);Ir(this,a,n,r,g-1,-g)}var h=r-1,d=1,m=0;for(this[n+h]=255&a;--h>=0&&(d*=256);)a<0&&m===0&&this[n+h+1]!==0&&(m=1),this[n+h]=(a/d>>0)-m&255;return n+r},tt.prototype.writeInt8=function(a,n,r){return a=+a,n>>>=0,r||Ir(this,a,n,1,127,-128),a<0&&(a=255+a+1),this[n]=255&a,n+1},tt.prototype.writeInt16LE=function(a,n,r){return a=+a,n>>>=0,r||Ir(this,a,n,2,32767,-32768),this[n]=255&a,this[n+1]=a>>>8,n+2},tt.prototype.writeInt16BE=function(a,n,r){return a=+a,n>>>=0,r||Ir(this,a,n,2,32767,-32768),this[n]=a>>>8,this[n+1]=255&a,n+2},tt.prototype.writeInt32LE=function(a,n,r){return a=+a,n>>>=0,r||Ir(this,a,n,4,2147483647,-2147483648),this[n]=255&a,this[n+1]=a>>>8,this[n+2]=a>>>16,this[n+3]=a>>>24,n+4},tt.prototype.writeInt32BE=function(a,n,r){return a=+a,n>>>=0,r||Ir(this,a,n,4,2147483647,-2147483648),a<0&&(a=4294967295+a+1),this[n]=a>>>24,this[n+1]=a>>>16,this[n+2]=a>>>8,this[n+3]=255&a,n+4},tt.prototype.writeFloatLE=function(a,n,r){return Om(this,a,n,!0,r)},tt.prototype.writeFloatBE=function(a,n,r){return Om(this,a,n,!1,r)},tt.prototype.writeDoubleLE=function(a,n,r){return km(this,a,n,!0,r)},tt.prototype.writeDoubleBE=function(a,n,r){return km(this,a,n,!1,r)},tt.prototype.copy=function(a,n,r,u){if(!tt.isBuffer(a))throw new TypeError("argument should be a Buffer");if(r||(r=0),u||u===0||(u=this.length),n>=a.length&&(n=a.length),n||(n=0),u>0&&u<r&&(u=r),u===r||a.length===0||this.length===0)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(u<0)throw new RangeError("sourceEnd out of bounds");u>this.length&&(u=this.length),a.length-n<u-r&&(u=a.length-n+r);var g=u-r;if(this===a&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(n,r,u);else if(this===a&&r<n&&n<u)for(var h=g-1;h>=0;--h)a[h+n]=this[h+r];else Uint8Array.prototype.set.call(a,this.subarray(r,u),n);return g},tt.prototype.fill=function(a,n,r,u){if(typeof a=="string"){if(typeof n=="string"?(u=n,n=0,r=this.length):typeof r=="string"&&(u=r,r=this.length),u!==void 0&&typeof u!="string")throw new TypeError("encoding must be a string");if(typeof u=="string"&&!tt.isEncoding(u))throw new TypeError("Unknown encoding: "+u);if(a.length===1){var g=a.charCodeAt(0);(u==="utf8"&&g<128||u==="latin1")&&(a=g)}}else typeof a=="number"?a&=255:typeof a=="boolean"&&(a=Number(a));if(n<0||this.length<n||this.length<r)throw new RangeError("Out of range index");if(r<=n)return this;var h;if(n>>>=0,r=r===void 0?this.length:r>>>0,a||(a=0),typeof a=="number")for(h=n;h<r;++h)this[h]=a;else{var d=tt.isBuffer(a)?a:tt.from(a,u),m=d.length;if(m===0)throw new TypeError('The value "'+a+'" is invalid for argument "value"');for(h=0;h<r-n;++h)this[h+n]=d[h%m]}return this},i8=/[^+/0-9A-Za-z-_]/g,e(wd,"_2"),e(b2,"z2"),e(xf,"D2"),e(xn,"F2"),e(Hd,"N2"),o8=function(){for(var a=new Array(256),n=0;n<16;++n)for(var r=16*n,u=0;u<16;++u)a[r+u]="0123456789abcdef"[n]+"0123456789abcdef"[u];return a}(),On.Buffer,On.INSPECT_MAX_BYTES,On.kMaxLength,kl={},Tl=On,yn=Tl.Buffer,e(Tm,"t3"),e(ji,"f3"),yn.from&&yn.alloc&&yn.allocUnsafe&&yn.allocUnsafeSlow?kl=Tl:(Tm(Tl,kl),kl.Buffer=ji),ji.prototype=Object.create(yn.prototype),Tm(yn,ji),ji.from=function(a,n,r){if(typeof a=="number")throw new TypeError("Argument must not be a number");return yn(a,n,r)},ji.alloc=function(a,n,r){if(typeof a!="number")throw new TypeError("Argument must be a number");var u=yn(a);return n!==void 0?typeof r=="string"?u.fill(n,r):u.fill(n):u.fill(0),u},ji.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return yn(a)},ji.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return Tl.SlowBuffer(a)},eI=kl,vd={},_d=eI.Buffer,U_=_d.isEncoding||function(a){switch((a=""+a)&&a.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}},e(ys,"a3"),e(Eu,"r3"),e(xC,"n$12"),e(IC,"h3"),e(PC,"l3"),e(jC,"u$12"),e(CC,"o$12"),e(LC,"f$12"),e(NC,"c3"),vd.StringDecoder=ys,ys.prototype.write=function(a){if(a.length===0)return"";var n,r;if(this.lastNeed){if((n=this.fillLast(a))===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<a.length?n?n+this.text(a,r):this.text(a,r):n||""},ys.prototype.end=function(a){var n=a&&a.length?this.write(a):"";return this.lastNeed?n+"\uFFFD":n},ys.prototype.text=function(a,n){var r=function(g,h,d){var m=h.length-1;if(m<d)return 0;var y=Eu(h[m]);return y>=0?(y>0&&(g.lastNeed=y-1),y):--m<d||y===-2?0:(y=Eu(h[m]))>=0?(y>0&&(g.lastNeed=y-2),y):--m<d||y===-2?0:(y=Eu(h[m]))>=0?(y>0&&(y===2?y=0:g.lastNeed=y-3),y):0}(this,a,n);if(!this.lastNeed)return a.toString("utf8",n);this.lastTotal=r;var u=a.length-(r-this.lastNeed);return a.copy(this.lastChar,0,u),a.toString("utf8",n,u)},ys.prototype.fillLast=function(a){if(this.lastNeed<=a.length)return a.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);a.copy(this.lastChar,this.lastTotal-this.lastNeed,0,a.length),this.lastNeed-=a.length},Is={},M_=!1,e(DC,"dew$2$1"),Ch={},$_=!1,e(UC,"dew$1$1"),qi={},W_=!1,e(Ax,"dew$g"),bi=Ax(),bi.Buffer,bi.INSPECT_MAX_BYTES,bi.kMaxLength,Lh={},z_=!1,e(Xi,"dew$f"),H_={},q_=!1,e(v2,"dew$e"),Nh={},G_=!1,e(MC,"dew$d"),Dh={},V_=!1,e(_2,"dew$c"),Uh={},K_=!1,e(Na,"dew$b"),Mh={},J_=!1,e(E2,"dew$a"),$h={},Y_=!1,Wh=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e($C,"dew$9"),zh={},Z_=!1,a8=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(S2,"dew$8"),Hh={},Q_=!1,e(Ba,"dew$7"),qh={},X_=!1,e(qd,"dew$6"),Gh={},eE=!1,e(WC,"dew$5"),tE={},rE=!1,e(zC,"dew$4"),Vh={},nE=!1,s8=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(A2,"dew$3"),Kh={},iE=!1,e(R2,"dew$2"),Jh={},oE=!1,e(HC,"dew$1"),Yh={},aE=!1,e(qC,"dew2"),zr={},sE=!1,e(O2,"dew3"),Zh={},lE=!1,e(Rx,"dew$12"),fE=Rx(),ta=2147483647,tI=/^xn--/,rI=/[^\0-\x7E]/,l8=/[\x2E\u3002\uFF0E\uFF61]/g,f8={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},pn=Math.floor,Ou=String.fromCharCode,e(Ci,"i$13"),e(Fm,"f$13"),e(Bm,"l$13"),Wm=e(function(a,n){return a+22+75*(a<26)-((n!=0)<<5)},"u$13"),zm=e(function(a,n,r){let u=0;for(a=r?pn(a/700):a>>1,a+=pn(a/n);a>455;u+=36)a=pn(a/35);return pn(u+36*a/(a+38))},"a$12"),Hm=e(function(a){let n=[],r=a.length,u=0,g=128,h=72,d=a.lastIndexOf("-");d<0&&(d=0);for(let y=0;y<d;++y)a.charCodeAt(y)>=128&&Ci("not-basic"),n.push(a.charCodeAt(y));for(let y=d>0?d+1:0;y<r;){let w=u;for(let S=1,T=36;;T+=36){y>=r&&Ci("invalid-input");let O=(m=a.charCodeAt(y++))-48<10?m-22:m-65<26?m-65:m-97<26?m-97:36;(O>=36||O>pn((ta-u)/S))&&Ci("overflow"),u+=O*S;let E=T<=h?1:T>=h+26?26:T-h;if(O<E)break;let P=36-E;S>pn(ta/P)&&Ci("overflow"),S*=P}let _=n.length+1;h=zm(u-w,_,w==0),pn(u/_)>ta-g&&Ci("overflow"),g+=pn(u/_),u%=_,n.splice(u++,0,g)}var m;return String.fromCodePoint(...n)},"d3"),qm=e(function(a){let n=[],r=(a=Bm(a)).length,u=128,g=0,h=72;for(let y of a)y<128&&n.push(Ou(y));let d=n.length,m=d;for(d&&n.push("-");m<r;){let y=ta;for(let _ of a)_>=u&&_<y&&(y=_);let w=m+1;y-u>pn((ta-g)/w)&&Ci("overflow"),g+=(y-u)*w,u=y;for(let _ of a)if(_<u&&++g>ta&&Ci("overflow"),_==u){let S=g;for(let T=36;;T+=36){let O=T<=h?1:T>=h+26?26:T-h;if(S<O)break;let E=S-O,P=36-O;n.push(Ou(Wm(O+E%P,0))),S=pn(E/P)}n.push(Ou(Wm(S,0))),h=zm(g,w,m==d),g=0,++m}++g,++u}return n.join("")},"h$12"),nI={version:"2.1.0",ucs2:{decode:Bm,encode:e(a=>String.fromCodePoint(...a),"encode")},decode:Hm,encode:qm,toASCII:e(function(a){return Fm(a,function(n){return rI.test(n)?"xn--"+qm(n):n})},"toASCII"),toUnicode:e(function(a){return Fm(a,function(n){return tI.test(n)?Hm(n.slice(4).toLowerCase()):n})},"toUnicode")},e(Ox,"e$13"),iI=e(function(a,n,r,u){n=n||"&",r=r||"=";var g={};if(typeof a!="string"||a.length===0)return g;var h=/\+/g;a=a.split(n);var d=1e3;u&&typeof u.maxKeys=="number"&&(d=u.maxKeys);var m=a.length;d>0&&m>d&&(m=d);for(var y=0;y<m;++y){var w,_,S,T,O=a[y].replace(h,"%20"),E=O.indexOf(r);E>=0?(w=O.substr(0,E),_=O.substr(E+1)):(w=O,_=""),S=decodeURIComponent(w),T=decodeURIComponent(_),Ox(g,S)?Array.isArray(g[S])?g[S].push(T):g[S]=[g[S],T]:g[S]=T}return g},"n$13"),bs=e(function(a){switch(typeof a){case"string":return a;case"boolean":return a?"true":"false";case"number":return isFinite(a)?a:"";default:return""}},"r$12"),oI=e(function(a,n,r,u){return n=n||"&",r=r||"=",a===null&&(a=void 0),typeof a=="object"?Object.keys(a).map(function(g){var h=encodeURIComponent(bs(g))+r;return Array.isArray(a[g])?a[g].map(function(d){return h+encodeURIComponent(bs(d))}).join(n):h+encodeURIComponent(bs(a[g]))}).join(n):u?encodeURIComponent(bs(u))+r+encodeURIComponent(bs(a)):""},"t4"),kn={},kn.decode=kn.parse=iI,kn.encode=kn.stringify=oI,kn.decode,kn.encode,kn.parse,kn.stringify,jt={},aI=nI,mn={isString:e(function(a){return typeof a=="string"},"isString"),isObject:e(function(a){return typeof a=="object"&&a!==null},"isObject"),isNull:e(function(a){return a===null},"isNull"),isNullOrUndefined:e(function(a){return a==null},"isNullOrUndefined")},e(tn,"r4"),jt.parse=ms,jt.resolve=function(a,n){return ms(a,!1,!0).resolve(n)},jt.resolveObject=function(a,n){return a?ms(a,!1,!0).resolveObject(n):n},jt.format=function(a){return mn.isString(a)&&(a=ms(a)),a instanceof tn?a.format():tn.prototype.format.call(a)},jt.Url=tn,sI=/^([a-z0-9.+-]+:)/i,lI=/:[0-9]*$/,fI=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,uI=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",`
|
|
137
|
+
`," "]),ku=["'"].concat(uI),Gm=["%","/","?",";","#"].concat(ku),Vm=["/","?","#"],Km=/^[+a-z0-9A-Z_-]{0,63}$/,cI=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,hI={javascript:!0,"javascript:":!0},Tu={javascript:!0,"javascript:":!0},ra={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Fu=kn,e(ms,"O3"),tn.prototype.parse=function(a,n,r){if(!mn.isString(a))throw new TypeError("Parameter 'url' must be a string, not "+typeof a);var u=a.indexOf("?"),g=u!==-1&&u<a.indexOf("#")?"?":"#",h=a.split(g);h[0]=h[0].replace(/\\/g,"/");var d=a=h.join(g);if(d=d.trim(),!r&&a.split("#").length===1){var m=fI.exec(d);if(m)return this.path=d,this.href=d,this.pathname=m[1],m[2]?(this.search=m[2],this.query=n?Fu.parse(this.search.substr(1)):this.search.substr(1)):n&&(this.search="",this.query={}),this}var y=sI.exec(d);if(y){var w=(y=y[0]).toLowerCase();this.protocol=w,d=d.substr(y.length)}if(r||y||d.match(/^\/\/[^@\/]+@[^@\/]+/)){var _=d.substr(0,2)==="//";!_||y&&Tu[y]||(d=d.substr(2),this.slashes=!0)}if(!Tu[y]&&(_||y&&!ra[y])){for(var S,T,O=-1,E=0;E<Vm.length;E++)(P=d.indexOf(Vm[E]))!==-1&&(O===-1||P<O)&&(O=P);for((T=O===-1?d.lastIndexOf("@"):d.lastIndexOf("@",O))!==-1&&(S=d.slice(0,T),d=d.slice(T+1),this.auth=decodeURIComponent(S)),O=-1,E=0;E<Gm.length;E++){var P;(P=d.indexOf(Gm[E]))!==-1&&(O===-1||P<O)&&(O=P)}O===-1&&(O=d.length),this.host=d.slice(0,O),d=d.slice(O),this.parseHost(),this.hostname=this.hostname||"";var A=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!A)for(var x=this.hostname.split(/\./),U=(E=0,x.length);E<U;E++){var M=x[E];if(M&&!M.match(Km)){for(var ee="",V=0,q=M.length;V<q;V++)M.charCodeAt(V)>127?ee+="x":ee+=M[V];if(!ee.match(Km)){var G=x.slice(0,E),re=x.slice(E+1),ae=M.match(cI);ae&&(G.push(ae[1]),re.unshift(ae[2])),re.length&&(d="/"+re.join(".")+d),this.hostname=G.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),A||(this.hostname=aI.toASCII(this.hostname));var de=this.port?":"+this.port:"",we=this.hostname||"";this.host=we+de,this.href+=this.host,A&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),d[0]!=="/"&&(d="/"+d))}if(!hI[w])for(E=0,U=ku.length;E<U;E++){var xe=ku[E];if(d.indexOf(xe)!==-1){var Pe=encodeURIComponent(xe);Pe===xe&&(Pe=escape(xe)),d=d.split(xe).join(Pe)}}var se=d.indexOf("#");se!==-1&&(this.hash=d.substr(se),d=d.slice(0,se));var Te=d.indexOf("?");if(Te!==-1?(this.search=d.substr(Te),this.query=d.substr(Te+1),n&&(this.query=Fu.parse(this.query)),d=d.slice(0,Te)):n&&(this.search="",this.query={}),d&&(this.pathname=d),ra[w]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){de=this.pathname||"";var J=this.search||"";this.path=de+J}return this.href=this.format(),this},tn.prototype.format=function(){var a=this.auth||"";a&&(a=(a=encodeURIComponent(a)).replace(/%3A/i,":"),a+="@");var n=this.protocol||"",r=this.pathname||"",u=this.hash||"",g=!1,h="";this.host?g=a+this.host:this.hostname&&(g=a+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(g+=":"+this.port)),this.query&&mn.isObject(this.query)&&Object.keys(this.query).length&&(h=Fu.stringify(this.query));var d=this.search||h&&"?"+h||"";return n&&n.substr(-1)!==":"&&(n+=":"),this.slashes||(!n||ra[n])&&g!==!1?(g="//"+(g||""),r&&r.charAt(0)!=="/"&&(r="/"+r)):g||(g=""),u&&u.charAt(0)!=="#"&&(u="#"+u),d&&d.charAt(0)!=="?"&&(d="?"+d),n+g+(r=r.replace(/[?#]/g,function(m){return encodeURIComponent(m)}))+(d=d.replace("#","%23"))+u},tn.prototype.resolve=function(a){return this.resolveObject(ms(a,!1,!0)).format()},tn.prototype.resolveObject=function(a){if(mn.isString(a)){var n=new tn;n.parse(a,!1,!0),a=n}for(var r=new tn,u=Object.keys(this),g=0;g<u.length;g++){var h=u[g];r[h]=this[h]}if(r.hash=a.hash,a.href==="")return r.href=r.format(),r;if(a.slashes&&!a.protocol){for(var d=Object.keys(a),m=0;m<d.length;m++){var y=d[m];y!=="protocol"&&(r[y]=a[y])}return ra[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(a.protocol&&a.protocol!==r.protocol){if(!ra[a.protocol]){for(var w=Object.keys(a),_=0;_<w.length;_++){var S=w[_];r[S]=a[S]}return r.href=r.format(),r}if(r.protocol=a.protocol,a.host||Tu[a.protocol])r.pathname=a.pathname;else{for(var T=(a.pathname||"").split("/");T.length&&!(a.host=T.shift()););a.host||(a.host=""),a.hostname||(a.hostname=""),T[0]!==""&&T.unshift(""),T.length<2&&T.unshift(""),r.pathname=T.join("/")}if(r.search=a.search,r.query=a.query,r.host=a.host||"",r.auth=a.auth,r.hostname=a.hostname||a.host,r.port=a.port,r.pathname||r.search){var O=r.pathname||"",E=r.search||"";r.path=O+E}return r.slashes=r.slashes||a.slashes,r.href=r.format(),r}var P=r.pathname&&r.pathname.charAt(0)==="/",A=a.host||a.pathname&&a.pathname.charAt(0)==="/",x=A||P||r.host&&a.pathname,U=x,M=r.pathname&&r.pathname.split("/")||[],ee=(T=a.pathname&&a.pathname.split("/")||[],r.protocol&&!ra[r.protocol]);if(ee&&(r.hostname="",r.port=null,r.host&&(M[0]===""?M[0]=r.host:M.unshift(r.host)),r.host="",a.protocol&&(a.hostname=null,a.port=null,a.host&&(T[0]===""?T[0]=a.host:T.unshift(a.host)),a.host=null),x=x&&(T[0]===""||M[0]==="")),A)r.host=a.host||a.host===""?a.host:r.host,r.hostname=a.hostname||a.hostname===""?a.hostname:r.hostname,r.search=a.search,r.query=a.query,M=T;else if(T.length)M||(M=[]),M.pop(),M=M.concat(T),r.search=a.search,r.query=a.query;else if(!mn.isNullOrUndefined(a.search))return ee&&(r.hostname=r.host=M.shift(),(ae=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=ae.shift(),r.host=r.hostname=ae.shift())),r.search=a.search,r.query=a.query,mn.isNull(r.pathname)&&mn.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!M.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var V=M.slice(-1)[0],q=(r.host||a.host||M.length>1)&&(V==="."||V==="..")||V==="",G=0,re=M.length;re>=0;re--)(V=M[re])==="."?M.splice(re,1):V===".."?(M.splice(re,1),G++):G&&(M.splice(re,1),G--);if(!x&&!U)for(;G--;G)M.unshift("..");!x||M[0]===""||M[0]&&M[0].charAt(0)==="/"||M.unshift(""),q&&M.join("/").substr(-1)!=="/"&&M.push("");var ae,de=M[0]===""||M[0]&&M[0].charAt(0)==="/";return ee&&(r.hostname=r.host=de?"":M.length?M.shift():"",(ae=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=ae.shift(),r.host=r.hostname=ae.shift())),(x=x||r.host&&M.length)&&!de&&M.unshift(""),M.length?r.pathname=M.join("/"):(r.pathname=null,r.path=null),mn.isNull(r.pathname)&&mn.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=a.auth||r.auth,r.slashes=r.slashes||a.slashes,r.href=r.format(),r},tn.prototype.parseHost=function(){var a=this.host,n=lI.exec(a);n&&((n=n[0])!==":"&&(this.port=n.substr(1)),a=a.substr(0,a.length-n.length)),a&&(this.hostname=a)},jt.Url,jt.format,jt.resolve,jt.resolveObject,Qh={},uE=!1,e(kx,"dew4"),cE=kx(),dI=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,jt.URL=typeof URL<"u"?URL:null,jt.pathToFileURL=Fx,jt.fileURLToPath=Tx,jt.Url,jt.format,jt.resolve,jt.resolveObject,jt.URL,u8=92,c8=47,h8=97,d8=122,Ed=dI==="win32",p8=/\//g,g8=/%/g,y8=/\\/g,m8=/\n/g,w8=/\r/g,b8=/\t/g,e(Tx,"fileURLToPath$1"),e(GC,"getPathFromURLWin$1"),e(VC,"getPathFromURLPosix$1"),e(Fx,"pathToFileURL$1"),pI=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,jt.URL=typeof URL<"u"?URL:null,jt.pathToFileURL=xx,jt.fileURLToPath=Bx,jt.Url,jt.format,jt.resolve,jt.resolveObject,jt.parse,jt.URL,v8=92,_8=47,E8=97,S8=122,Sd=pI==="win32",A8=/\//g,R8=/%/g,O8=/\\/g,k8=/\n/g,T8=/\r/g,F8=/\t/g,e(Bx,"fileURLToPath"),e(KC,"getPathFromURLWin"),e(JC,"getPathFromURLPosix"),e(xx,"pathToFileURL"),Hr={},hE=!1,Gi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(k2,"dew$52"),Hl={},dE=!1,ql=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(T2,"dew$42"),Xh={},pE=!1,hr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(YC,"dew$32"),ed={},gE=!1,e(ZC,"dew$22"),yE={},mE=!1,e(QC,"dew$13"),td={},wE=!1,B8=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(Ix,"dew$62"),Fn=Ix(),Fn.Agent,Fn.ClientRequest,Fn.IncomingMessage,Fn.METHODS,Fn.STATUS_CODES,Fn.get,Fn.globalAgent,Fn.request,rd={},bE=!1,vE=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(Px,"dew5"),ni=Px(),x8=ni.Agent,I8=ni.ClientRequest,P8=ni.IncomingMessage,j8=ni.METHODS,C8=ni.STATUS_CODES,L8=ni.get,N8=ni.globalAgent,D8=ni.request}),U8={};ln(U8,{Agent:l(()=>x8,"Agent"),ClientRequest:l(()=>I8,"ClientRequest"),IncomingMessage:l(()=>P8,"IncomingMessage"),METHODS:l(()=>j8,"METHODS"),STATUS_CODES:l(()=>C8,"STATUS_CODES"),get:l(()=>L8,"get"),globalAgent:l(()=>N8,"globalAgent"),request:l(()=>D8,"request")});var dD=er(()=>{hD()}),pD=Ge((o,i)=>{i.exports=f;function f(p,a){if(p&&a)return f(p)(a);if(typeof p!="function")throw new TypeError("need wrapper function");return Object.keys(p).forEach(function(r){n[r]=p[r]}),n;function n(){for(var r=new Array(arguments.length),u=0;u<r.length;u++)r[u]=arguments[u];var g=p.apply(this,r),h=r[r.length-1];return typeof g=="function"&&g!==h&&Object.keys(h).forEach(function(d){g[d]=h[d]}),g}}l(f,"bD"),e(f,"wrappy")}),gD=Ge((o,i)=>{var f=pD();i.exports=f(p),i.exports.strict=f(a),p.proto=p(function(){Object.defineProperty(Function.prototype,"once",{value:e(function(){return p(this)},"value"),configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:e(function(){return a(this)},"value"),configurable:!0})});function p(n){var r=e(function(){return r.called?r.value:(r.called=!0,r.value=n.apply(this,arguments))},"f");return r.called=!1,r}l(p,"Cp"),e(p,"once");function a(n){var r=e(function(){if(r.called)throw new Error(r.onceError);return r.called=!0,r.value=n.apply(this,arguments)},"f"),u=n.name||"Function wrapped with `once`";return r.onceError=u+" shouldn't be called more than once",r.called=!1,r}l(a,"AD"),e(a,"onceStrict")});function M8(){if(_E)return nd;_E=!0;function o(i,f){return Object.prototype.hasOwnProperty.call(i,f)}return l(o,"e"),e(o,"hasOwnProperty"),nd=e(function(i,f,p,a){f=f||"&",p=p||"=";var n={};if(typeof i!="string"||i.length===0)return n;var r=/\+/g;i=i.split(f);var u=1e3;a&&typeof a.maxKeys=="number"&&(u=a.maxKeys);var g=i.length;u>0&&g>u&&(g=u);for(var h=0;h<g;++h){var d=i[h].replace(r,"%20"),m=d.indexOf(p),y,w,_,S;m>=0?(y=d.substr(0,m),w=d.substr(m+1)):(y=d,w=""),_=decodeURIComponent(y),S=decodeURIComponent(w),o(n,_)?Array.isArray(n[_])?n[_].push(S):n[_]=[n[_],S]:n[_]=S}return n},"exports$3"),nd}l(M8,"Aee");function $8(){if(EE)return id;EE=!0;var o=e(function(i){switch(typeof i){case"string":return i;case"boolean":return i?"true":"false";case"number":return isFinite(i)?i:"";default:return""}},"stringifyPrimitive");return id=e(function(i,f,p,a){return f=f||"&",p=p||"=",i===null&&(i=void 0),typeof i=="object"?Object.keys(i).map(function(n){var r=encodeURIComponent(o(n))+p;return Array.isArray(i[n])?i[n].map(function(u){return r+encodeURIComponent(o(u))}).join(f):r+encodeURIComponent(o(i[n]))}).filter(Boolean).join(f):a?encodeURIComponent(o(a))+p+encodeURIComponent(o(i)):""},"exports$2"),id}l($8,"Ree");function gI(){return SE||(SE=!0,Ps.decode=Ps.parse=M8(),Ps.encode=Ps.stringify=$8()),Ps}l(gI,"Tee");var nd,_E,id,EE,Ps,SE,ii,W8,z8,H8,q8,yD=er(()=>{nd={},_E=!1,e(M8,"dew$2"),id={},EE=!1,e($8,"dew$1"),Ps={},SE=!1,e(gI,"dew"),ii=gI(),ii.decode,ii.parse,ii.encode,ii.stringify,W8=ii.decode,z8=ii.encode,H8=ii.parse,q8=ii.stringify}),G8={};ln(G8,{decode:l(()=>W8,"decode"),encode:l(()=>z8,"encode"),parse:l(()=>H8,"parse"),stringify:l(()=>q8,"stringify")});var mD=er(()=>{yD()}),wD=Ge((o,i)=>{i.exports=d;var f=iD(),p=oD(),a=(uD(),dr(vC)),n=(dD(),dr(U8)),r=gD(),u=(mD(),dr(G8)),g=(sP(),dr(zE)),h=e(m=>m!==null&&typeof m=="object"&&typeof m.pipe=="function","isStream");function d(m,y){if(m=Object.assign({maxRedirects:10},typeof m=="string"?{url:m}:m),y=r(y),m.url){let{hostname:O,port:E,protocol:P,auth:A,path:x}=g.parse(m.url);delete m.url,!O&&!E&&!P&&!A?m.path=x:Object.assign(m,{hostname:O,port:E,protocol:P,auth:A,path:x})}let w={"accept-encoding":"gzip, deflate"};m.headers&&Object.keys(m.headers).forEach(O=>w[O.toLowerCase()]=m.headers[O]),m.headers=w;let _;m.body?_=m.json&&!h(m.body)?JSON.stringify(m.body):m.body:m.form&&(_=typeof m.form=="string"?m.form:u.stringify(m.form),m.headers["content-type"]="application/x-www-form-urlencoded"),_&&(m.method||(m.method="POST"),h(_)||(m.headers["content-length"]=Buffer.byteLength(_)),m.json&&!m.form&&(m.headers["content-type"]="application/json")),delete m.body,delete m.form,m.json&&(m.headers.accept="application/json"),m.method&&(m.method=m.method.toUpperCase());let S=m.hostname,T=(m.protocol==="https:"?n:a).request(m,O=>{if(m.followRedirects!==!1&&O.statusCode>=300&&O.statusCode<400&&O.headers.location){m.url=O.headers.location,delete m.headers.host,O.resume();let P=g.parse(m.url).hostname;return P!==null&&P!==S&&(delete m.headers.cookie,delete m.headers.authorization),m.method==="POST"&&[301,302].includes(O.statusCode)&&(m.method="GET",delete m.headers["content-length"],delete m.headers["content-type"]),m.maxRedirects--===0?y(new Error("too many redirects")):d(m,y)}let E=typeof p=="function"&&m.method!=="HEAD";y(null,E?p(O):O)});return T.on("timeout",()=>{T.abort(),y(new Error("Request timed out"))}),T.on("error",y),h(_)?_.on("error",y).pipe(T):T.end(_),T}l(d,"wl"),e(d,"simpleGet"),d.concat=(m,y)=>d(m,(w,_)=>{if(w)return y(w);f(_,(S,T)=>{if(S)return y(S);if(m.json)try{T=JSON.parse(T.toString())}catch(O){return y(O,_,T)}y(null,_,T)})}),["get","post","put","patch","head","delete"].forEach(m=>{d[m]=(y,w)=>(typeof y=="string"&&(y={url:y}),d(Object.assign({method:m.toUpperCase()},y),w))})});function yI(){if(AE)return Gl;AE=!0;var o=typeof Reflect=="object"?Reflect:null,i=o&&typeof o.apply=="function"?o.apply:e(function(A,x,U){return Function.prototype.apply.call(A,x,U)},"ReflectApply2"),f;o&&typeof o.ownKeys=="function"?f=o.ownKeys:Object.getOwnPropertySymbols?f=e(function(A){return Object.getOwnPropertyNames(A).concat(Object.getOwnPropertySymbols(A))},"ReflectOwnKeys2"):f=e(function(A){return Object.getOwnPropertyNames(A)},"ReflectOwnKeys2");function p(A){console&&console.warn&&console.warn(A)}l(p,"n"),e(p,"ProcessEmitWarning");var a=Number.isNaN||e(function(A){return A!==A},"NumberIsNaN2");function n(){n.init.call(this)}l(n,"s"),e(n,"EventEmitter2"),Gl=n,Gl.once=O,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._eventsCount=0,n.prototype._maxListeners=void 0;var r=10;function u(A){if(typeof A!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof A)}l(u,"f"),e(u,"checkListener"),Object.defineProperty(n,"defaultMaxListeners",{enumerable:!0,get:e(function(){return r},"get"),set:e(function(A){if(typeof A!="number"||A<0||a(A))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+A+".");r=A},"set")}),n.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},n.prototype.setMaxListeners=e(function(A){if(typeof A!="number"||A<0||a(A))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+A+".");return this._maxListeners=A,this},"setMaxListeners");function g(A){return A._maxListeners===void 0?n.defaultMaxListeners:A._maxListeners}l(g,"h"),e(g,"_getMaxListeners"),n.prototype.getMaxListeners=e(function(){return g(this)},"getMaxListeners"),n.prototype.emit=e(function(A){for(var x=[],U=1;U<arguments.length;U++)x.push(arguments[U]);var M=A==="error",ee=this._events;if(ee!==void 0)M=M&&ee.error===void 0;else if(!M)return!1;if(M){var V;if(x.length>0&&(V=x[0]),V instanceof Error)throw V;var q=new Error("Unhandled error."+(V?" ("+V.message+")":""));throw q.context=V,q}var G=ee[A];if(G===void 0)return!1;if(typeof G=="function")i(G,this,x);else for(var re=G.length,ae=_(G,re),U=0;U<re;++U)i(ae[U],this,x);return!0},"emit");function h(A,x,U,M){var ee,V,q;if(u(U),V=A._events,V===void 0?(V=A._events=Object.create(null),A._eventsCount=0):(V.newListener!==void 0&&(A.emit("newListener",x,U.listener?U.listener:U),V=A._events),q=V[x]),q===void 0)q=V[x]=U,++A._eventsCount;else if(typeof q=="function"?q=V[x]=M?[U,q]:[q,U]:M?q.unshift(U):q.push(U),ee=g(A),ee>0&&q.length>ee&&!q.warned){q.warned=!0;var G=new Error("Possible EventEmitter memory leak detected. "+q.length+" "+String(x)+" listeners added. Use emitter.setMaxListeners() to increase limit");G.name="MaxListenersExceededWarning",G.emitter=A,G.type=x,G.count=q.length,p(G)}return A}l(h,"c"),e(h,"_addListener"),n.prototype.addListener=e(function(A,x){return h(this,A,x,!1)},"addListener"),n.prototype.on=n.prototype.addListener,n.prototype.prependListener=e(function(A,x){return h(this,A,x,!0)},"prependListener");function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}l(d,"d"),e(d,"onceWrapper");function m(A,x,U){var M={fired:!1,wrapFn:void 0,target:A,type:x,listener:U},ee=d.bind(M);return ee.listener=U,M.wrapFn=ee,ee}l(m,"y"),e(m,"_onceWrap"),n.prototype.once=e(function(A,x){return u(x),this.on(A,m(this,A,x)),this},"once3"),n.prototype.prependOnceListener=e(function(A,x){return u(x),this.prependListener(A,m(this,A,x)),this},"prependOnceListener"),n.prototype.removeListener=e(function(A,x){var U,M,ee,V,q;if(u(x),M=this._events,M===void 0)return this;if(U=M[A],U===void 0)return this;if(U===x||U.listener===x)--this._eventsCount===0?this._events=Object.create(null):(delete M[A],M.removeListener&&this.emit("removeListener",A,U.listener||x));else if(typeof U!="function"){for(ee=-1,V=U.length-1;V>=0;V--)if(U[V]===x||U[V].listener===x){q=U[V].listener,ee=V;break}if(ee<0)return this;ee===0?U.shift():S(U,ee),U.length===1&&(M[A]=U[0]),M.removeListener!==void 0&&this.emit("removeListener",A,q||x)}return this},"removeListener"),n.prototype.off=n.prototype.removeListener,n.prototype.removeAllListeners=e(function(A){var x,U,M;if(U=this._events,U===void 0)return this;if(U.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):U[A]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete U[A]),this;if(arguments.length===0){var ee=Object.keys(U),V;for(M=0;M<ee.length;++M)V=ee[M],V!=="removeListener"&&this.removeAllListeners(V);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(x=U[A],typeof x=="function")this.removeListener(A,x);else if(x!==void 0)for(M=x.length-1;M>=0;M--)this.removeListener(A,x[M]);return this},"removeAllListeners");function y(A,x,U){var M=A._events;if(M===void 0)return[];var ee=M[x];return ee===void 0?[]:typeof ee=="function"?U?[ee.listener||ee]:[ee]:U?T(ee):_(ee,ee.length)}l(y,"m"),e(y,"_listeners"),n.prototype.listeners=e(function(A){return y(this,A,!0)},"listeners"),n.prototype.rawListeners=e(function(A){return y(this,A,!1)},"rawListeners"),n.listenerCount=function(A,x){return typeof A.listenerCount=="function"?A.listenerCount(x):w.call(A,x)},n.prototype.listenerCount=w;function w(A){var x=this._events;if(x!==void 0){var U=x[A];if(typeof U=="function")return 1;if(U!==void 0)return U.length}return 0}l(w,"g"),e(w,"listenerCount2"),n.prototype.eventNames=e(function(){return this._eventsCount>0?f(this._events):[]},"eventNames");function _(A,x){for(var U=new Array(x),M=0;M<x;++M)U[M]=A[M];return U}l(_,"v"),e(_,"arrayClone");function S(A,x){for(;x+1<A.length;x++)A[x]=A[x+1];A.pop()}l(S,"_"),e(S,"spliceOne");function T(A){for(var x=new Array(A.length),U=0;U<x.length;++U)x[U]=A[U].listener||A[U];return x}l(T,"b"),e(T,"unwrapListeners");function O(A,x){return new Promise(function(U,M){function ee(q){A.removeListener(x,V),M(q)}l(ee,"N"),e(ee,"errorListener");function V(){typeof A.removeListener=="function"&&A.removeListener("error",ee),U([].slice.call(arguments))}l(V,"L"),e(V,"resolver"),P(A,x,V,{once:!0}),x!=="error"&&E(A,ee,{once:!0})})}l(O,"E"),e(O,"once2");function E(A,x,U){typeof A.on=="function"&&P(A,"error",x,U)}l(E,"R"),e(E,"addErrorHandlerIfEventEmitter");function P(A,x,U,M){if(typeof A.on=="function")M.once?A.once(x,U):A.on(x,U);else if(typeof A.addEventListener=="function")A.addEventListener(x,e(l(function ee(V){M.once&&A.removeEventListener(x,ee),U(V)},"N"),"wrapListener"));else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof A)}return l(P,"T"),e(P,"eventTargetAgnosticAddListener"),Gl}l(yI,"Nee");var Gl,AE,Fl,V8,K8,J8,Y8,Z8,Q8,bD=er(()=>{Gl={},AE=!1,e(yI,"dew"),Fl=yI(),Fl.once,Fl.once=function(o,i){return new Promise((f,p)=>{function a(...r){n!==void 0&&o.removeListener("error",n),f(r)}l(a,"a"),e(a,"eventListener");let n;i!=="error"&&(n=e(r=>{o.removeListener(name,a),p(r)},"errorListener"),o.once("error",n)),o.once(i,a)})},Fl.on=function(o,i){let f=[],p=[],a=null,n=!1,r={async next(){let h=f.shift();if(h)return createIterResult(h,!1);if(a){let d=Promise.reject(a);return a=null,d}return n?createIterResult(void 0,!0):new Promise((d,m)=>p.push({resolve:d,reject:m}))},async return(){o.removeListener(i,u),o.removeListener("error",g),n=!0;for(let h of p)h.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(h){a=h,o.removeListener(i,u),o.removeListener("error",g)},[Symbol.asyncIterator](){return this}};return o.on(i,u),o.on("error",g),r;function u(...h){let d=p.shift();d?d.resolve(createIterResult(h,!1)):f.push(h)}function g(h){n=!0;let d=p.shift();d?d.reject(h):a=h,r.return()}},{EventEmitter:V8,defaultMaxListeners:K8,init:J8,listenerCount:Y8,on:Z8,once:Q8}=Fl}),F2={};ln(F2,{EventEmitter:l(()=>V8,"EventEmitter"),defaultMaxListeners:l(()=>K8,"defaultMaxListeners"),init:l(()=>J8,"init"),listenerCount:l(()=>Y8,"listenerCount"),on:l(()=>Z8,"on"),once:l(()=>Q8,"once")});var X8=er(()=>{bD()}),e4=Ge((o,i)=>{i.exports=(X8(),dr(F2)).EventEmitter}),t4=Ge((o,i)=>{i.exports={}}),vD=Ge((o,i)=>{"use strict";function f(T,O){var E=Object.keys(T);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(T);O&&(P=P.filter(function(A){return Object.getOwnPropertyDescriptor(T,A).enumerable})),E.push.apply(E,P)}return E}l(f,"UD"),e(f,"ownKeys");function p(T){for(var O=1;O<arguments.length;O++){var E=arguments[O]!=null?arguments[O]:{};O%2?f(Object(E),!0).forEach(function(P){a(T,P,E[P])}):Object.getOwnPropertyDescriptors?Object.defineProperties(T,Object.getOwnPropertyDescriptors(E)):f(Object(E)).forEach(function(P){Object.defineProperty(T,P,Object.getOwnPropertyDescriptor(E,P))})}return T}l(p,"jD"),e(p,"_objectSpread");function a(T,O,E){return O=g(O),O in T?Object.defineProperty(T,O,{value:E,enumerable:!0,configurable:!0,writable:!0}):T[O]=E,T}l(a,"Wee"),e(a,"_defineProperty");function n(T,O){if(!(T instanceof O))throw new TypeError("Cannot call a class as a function")}l(n,"qee"),e(n,"_classCallCheck");function r(T,O){for(var E=0;E<O.length;E++){var P=O[E];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(T,g(P.key),P)}}l(r,"HD"),e(r,"_defineProperties");function u(T,O,E){return O&&r(T.prototype,O),E&&r(T,E),Object.defineProperty(T,"prototype",{writable:!1}),T}l(u,"zee"),e(u,"_createClass");function g(T){var O=h(T,"string");return typeof O=="symbol"?O:String(O)}l(g,"WD"),e(g,"_toPropertyKey");function h(T,O){if(typeof T!="object"||T===null)return T;var E=T[Symbol.toPrimitive];if(E!==void 0){var P=E.call(T,O||"default");if(typeof P!="object")return P;throw new TypeError("@@toPrimitive must return a primitive value.")}return(O==="string"?String:Number)(T)}l(h,"Vee"),e(h,"_toPrimitive");var d=(Nd(),dr(kf)),m=d.Buffer,y=t4(),w=y.inspect,_=w&&w.custom||"inspect";function S(T,O,E){m.prototype.copy.call(T,O,E)}l(S,"Xee"),e(S,"copyBuffer"),i.exports=function(){function T(){n(this,T),this.head=null,this.tail=null,this.length=0}return l(T,"e"),e(T,"BufferList"),u(T,[{key:"push",value:e(function(O){var E={data:O,next:null};this.length>0?this.tail.next=E:this.head=E,this.tail=E,++this.length},"push")},{key:"unshift",value:e(function(O){var E={data:O,next:this.head};this.length===0&&(this.tail=E),this.head=E,++this.length},"unshift")},{key:"shift",value:e(function(){if(this.length!==0){var O=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,O}},"shift")},{key:"clear",value:e(function(){this.head=this.tail=null,this.length=0},"clear")},{key:"join",value:e(function(O){if(this.length===0)return"";for(var E=this.head,P=""+E.data;E=E.next;)P+=O+E.data;return P},"join")},{key:"concat",value:e(function(O){if(this.length===0)return m.alloc(0);for(var E=m.allocUnsafe(O>>>0),P=this.head,A=0;P;)S(P.data,E,A),A+=P.data.length,P=P.next;return E},"concat")},{key:"consume",value:e(function(O,E){var P;return O<this.head.data.length?(P=this.head.data.slice(0,O),this.head.data=this.head.data.slice(O)):O===this.head.data.length?P=this.shift():P=E?this._getString(O):this._getBuffer(O),P},"consume")},{key:"first",value:e(function(){return this.head.data},"first")},{key:"_getString",value:e(function(O){var E=this.head,P=1,A=E.data;for(O-=A.length;E=E.next;){var x=E.data,U=O>x.length?x.length:O;if(U===x.length?A+=x:A+=x.slice(0,O),O-=U,O===0){U===x.length?(++P,E.next?this.head=E.next:this.head=this.tail=null):(this.head=E,E.data=x.slice(U));break}++P}return this.length-=P,A},"_getString")},{key:"_getBuffer",value:e(function(O){var E=m.allocUnsafe(O),P=this.head,A=1;for(P.data.copy(E),O-=P.data.length;P=P.next;){var x=P.data,U=O>x.length?x.length:O;if(x.copy(E,E.length-O,0,U),O-=U,O===0){U===x.length?(++A,P.next?this.head=P.next:this.head=this.tail=null):(this.head=P,P.data=x.slice(U));break}++A}return this.length-=A,E},"_getBuffer")},{key:_,value:e(function(O,E){return w(this,p(p({},E),{},{depth:0,customInspect:!1}))},"value")}]),T}()}),r4=Ge((o,i)=>{"use strict";function f(g,h){var d=this,m=this._readableState&&this._readableState.destroyed,y=this._writableState&&this._writableState.destroyed;return m||y?(h?h(g):g&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(r,this,g)):process.nextTick(r,this,g)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(g||null,function(w){!h&&w?d._writableState?d._writableState.errorEmitted?process.nextTick(a,d):(d._writableState.errorEmitted=!0,process.nextTick(p,d,w)):process.nextTick(p,d,w):h?(process.nextTick(a,d),h(w)):process.nextTick(a,d)}),this)}l(f,"Jee"),e(f,"destroy");function p(g,h){r(g,h),a(g)}l(p,"VD"),e(p,"emitErrorAndCloseNT");function a(g){g._writableState&&!g._writableState.emitClose||g._readableState&&!g._readableState.emitClose||g.emit("close")}l(a,"$p"),e(a,"emitCloseNT");function n(){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)}l(n,"Zee"),e(n,"undestroy");function r(g,h){g.emit("error",h)}l(r,"M_"),e(r,"emitErrorNT");function u(g,h){var d=g._readableState,m=g._writableState;d&&d.autoDestroy||m&&m.autoDestroy?g.destroy(h):g.emit("error",h)}l(u,"Qee"),e(u,"errorOrDestroy"),i.exports={destroy:f,undestroy:n,errorOrDestroy:u}}),ol=Ge((o,i)=>{"use strict";function f(h,d){h.prototype=Object.create(d.prototype),h.prototype.constructor=h,h.__proto__=d}l(f,"ete"),e(f,"_inheritsLoose");var p={};function a(h,d,m){m||(m=Error);function y(_,S,T){return typeof d=="string"?d:d(_,S,T)}l(y,"n"),e(y,"getMessage");var w=function(_){f(S,_);function S(T,O,E){return _.call(this,y(T,O,E))||this}return l(S,"i"),e(S,"NodeError"),S}(m);w.prototype.name=m.name,w.prototype.code=h,p[h]=w}l(a,"tn"),e(a,"createErrorType");function n(h,d){if(Array.isArray(h)){var m=h.length;return h=h.map(function(y){return String(y)}),m>2?"one of ".concat(d," ").concat(h.slice(0,m-1).join(", "),", or ")+h[m-1]:m===2?"one of ".concat(d," ").concat(h[0]," or ").concat(h[1]):"of ".concat(d," ").concat(h[0])}else return"of ".concat(d," ").concat(String(h))}l(n,"YD"),e(n,"oneOf");function r(h,d,m){return h.substr(!m||m<0?0:+m,d.length)===d}l(r,"tte"),e(r,"startsWith");function u(h,d,m){return(m===void 0||m>h.length)&&(m=h.length),h.substring(m-d.length,m)===d}l(u,"rte"),e(u,"endsWith");function g(h,d,m){return typeof m!="number"&&(m=0),m+d.length>h.length?!1:h.indexOf(d,m)!==-1}l(g,"nte"),e(g,"includes"),a("ERR_INVALID_OPT_VALUE",function(h,d){return'The value "'+d+'" is invalid for option "'+h+'"'},TypeError),a("ERR_INVALID_ARG_TYPE",function(h,d,m){var y;typeof d=="string"&&r(d,"not ")?(y="must not be",d=d.replace(/^not /,"")):y="must be";var w;if(u(h," argument"))w="The ".concat(h," ").concat(y," ").concat(n(d,"type"));else{var _=g(h,".")?"property":"argument";w='The "'.concat(h,'" ').concat(_," ").concat(y," ").concat(n(d,"type"))}return w+=". Received type ".concat(typeof m),w},TypeError),a("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),a("ERR_METHOD_NOT_IMPLEMENTED",function(h){return"The "+h+" method is not implemented"}),a("ERR_STREAM_PREMATURE_CLOSE","Premature close"),a("ERR_STREAM_DESTROYED",function(h){return"Cannot call "+h+" after a stream was destroyed"}),a("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),a("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),a("ERR_STREAM_WRITE_AFTER_END","write after end"),a("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),a("ERR_UNKNOWN_ENCODING",function(h){return"Unknown encoding: "+h},TypeError),a("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),i.exports.codes=p}),n4=Ge((o,i)=>{"use strict";var f=ol().codes.ERR_INVALID_OPT_VALUE;function p(n,r,u){return n.highWaterMark!=null?n.highWaterMark:r?n[u]:null}l(p,"ote"),e(p,"highWaterMarkFrom");function a(n,r,u,g){var h=p(r,g,u);if(h!=null){if(!(isFinite(h)&&Math.floor(h)===h)||h<0){var d=g?u:"highWaterMark";throw new f(d,h)}return Math.floor(h)}return n.objectMode?16:16*1024}l(a,"ate"),e(a,"getHighWaterMark"),i.exports={getHighWaterMark:a}}),_D=Ge((o,i)=>{i.exports=f;function f(a,n){if(p("noDeprecation"))return a;var r=!1;function u(){if(!r){if(p("throwDeprecation"))throw new Error(n);p("traceDeprecation")?console.trace(n):console.warn(n),r=!0}return a.apply(this,arguments)}return l(u,"n"),e(u,"deprecated"),u}l(f,"ste"),e(f,"deprecate");function p(a){try{if(!globalThis.localStorage)return!1}catch{return!1}var n=globalThis.localStorage[a];return n==null?!1:String(n).toLowerCase()==="true"}l(p,"H_"),e(p,"config")}),i4=Ge((o,i)=>{"use strict";i.exports=q;function f(H){var Q=this;this.next=null,this.entry=null,this.finish=function(){Y(Q,H)}}l(f,"t$"),e(f,"CorkedRequest");var p;q.WritableState=ee;var a={deprecate:_D()},n=e4(),r=(Nd(),dr(kf)).Buffer,u=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function g(H){return r.from(H)}l(g,"ute"),e(g,"_uint8ArrayToBuffer");function h(H){return r.isBuffer(H)||H instanceof u}l(h,"cte"),e(h,"_isUint8Array");var d=r4(),m=n4(),y=m.getHighWaterMark,w=ol().codes,_=w.ERR_INVALID_ARG_TYPE,S=w.ERR_METHOD_NOT_IMPLEMENTED,T=w.ERR_MULTIPLE_CALLBACK,O=w.ERR_STREAM_CANNOT_PIPE,E=w.ERR_STREAM_DESTROYED,P=w.ERR_STREAM_NULL_VALUES,A=w.ERR_STREAM_WRITE_AFTER_END,x=w.ERR_UNKNOWN_ENCODING,U=d.errorOrDestroy;rl()(q,n);function M(){}l(M,"Ete"),e(M,"nop");function ee(H,Q,fe){p=p||Zs(),H=H||{},typeof fe!="boolean"&&(fe=Q instanceof p),this.objectMode=!!H.objectMode,fe&&(this.objectMode=this.objectMode||!!H.writableObjectMode),this.highWaterMark=y(this,H,"writableHighWaterMark",fe),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ve=H.decodeStrings===!1;this.decodeStrings=!ve,this.defaultEncoding=H.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(N){se(Q,N)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=H.emitClose!==!1,this.autoDestroy=!!H.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new f(this)}l(ee,"mu"),e(ee,"WritableState"),ee.prototype.getBuffer=e(function(){for(var H=this.bufferedRequest,Q=[];H;)Q.push(H),H=H.next;return Q},"getBuffer"),function(){try{Object.defineProperty(ee.prototype,"buffer",{get:a.deprecate(e(function(){return this.getBuffer()},"writableStateBufferGetter"),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var V;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(V=Function.prototype[Symbol.hasInstance],Object.defineProperty(q,Symbol.hasInstance,{value:e(function(H){return V.call(this,H)?!0:this!==q?!1:H&&H._writableState instanceof ee},"value")})):V=e(function(H){return H instanceof this},"realHasInstance");function q(H){p=p||Zs();var Q=this instanceof p;if(!Q&&!V.call(q,this))return new q(H);this._writableState=new ee(H,this,Q),this.writable=!0,H&&(typeof H.write=="function"&&(this._write=H.write),typeof H.writev=="function"&&(this._writev=H.writev),typeof H.destroy=="function"&&(this._destroy=H.destroy),typeof H.final=="function"&&(this._final=H.final)),n.call(this)}l(q,"St"),e(q,"Writable"),q.prototype.pipe=function(){U(this,new O)};function G(H,Q){var fe=new A;U(H,fe),process.nextTick(Q,fe)}l(G,"Ste"),e(G,"writeAfterEnd");function re(H,Q,fe,ve){var N;return fe===null?N=new P:typeof fe!="string"&&!Q.objectMode&&(N=new _("chunk",["string","Buffer"],fe)),N?(U(H,N),process.nextTick(ve,N),!1):!0}l(re,"Ate"),e(re,"validChunk"),q.prototype.write=function(H,Q,fe){var ve=this._writableState,N=!1,I=!ve.objectMode&&h(H);return I&&!r.isBuffer(H)&&(H=g(H)),typeof Q=="function"&&(fe=Q,Q=null),I?Q="buffer":Q||(Q=ve.defaultEncoding),typeof fe!="function"&&(fe=M),ve.ending?G(this,fe):(I||re(this,ve,H,fe))&&(ve.pendingcb++,N=de(this,ve,I,H,Q,fe)),N},q.prototype.cork=function(){this._writableState.corked++},q.prototype.uncork=function(){var H=this._writableState;H.corked&&(H.corked--,!H.writing&&!H.corked&&!H.bufferProcessing&&H.bufferedRequest&&ue(this,H))},q.prototype.setDefaultEncoding=e(function(H){if(typeof H=="string"&&(H=H.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((H+"").toLowerCase())>-1))throw new x(H);return this._writableState.defaultEncoding=H,this},"setDefaultEncoding"),Object.defineProperty(q.prototype,"writableBuffer",{enumerable:!1,get:e(function(){return this._writableState&&this._writableState.getBuffer()},"get")});function ae(H,Q,fe){return!H.objectMode&&H.decodeStrings!==!1&&typeof Q=="string"&&(Q=r.from(Q,fe)),Q}l(ae,"Rte"),e(ae,"decodeChunk"),Object.defineProperty(q.prototype,"writableHighWaterMark",{enumerable:!1,get:e(function(){return this._writableState.highWaterMark},"get")});function de(H,Q,fe,ve,N,I){if(!fe){var D=ae(Q,ve,N);ve!==D&&(fe=!0,N="buffer",ve=D)}var z=Q.objectMode?1:ve.length;Q.length+=z;var Ee=Q.length<Q.highWaterMark;if(Ee||(Q.needDrain=!0),Q.writing||Q.corked){var Oe=Q.lastBufferedRequest;Q.lastBufferedRequest={chunk:ve,encoding:N,isBuf:fe,callback:I,next:null},Oe?Oe.next=Q.lastBufferedRequest:Q.bufferedRequest=Q.lastBufferedRequest,Q.bufferedRequestCount+=1}else we(H,Q,!1,z,ve,N,I);return Ee}l(de,"Tte"),e(de,"writeOrBuffer");function we(H,Q,fe,ve,N,I,D){Q.writelen=ve,Q.writecb=D,Q.writing=!0,Q.sync=!0,Q.destroyed?Q.onwrite(new E("write")):fe?H._writev(N,Q.onwrite):H._write(N,I,Q.onwrite),Q.sync=!1}l(we,"W_"),e(we,"doWrite");function xe(H,Q,fe,ve,N){--Q.pendingcb,fe?(process.nextTick(N,ve),process.nextTick(Re,H,Q),H._writableState.errorEmitted=!0,U(H,ve)):(N(ve),H._writableState.errorEmitted=!0,U(H,ve),Re(H,Q))}l(xe,"Fte"),e(xe,"onwriteError");function Pe(H){H.writing=!1,H.writecb=null,H.length-=H.writelen,H.writelen=0}l(Pe,"xte"),e(Pe,"onwriteStateUpdate");function se(H,Q){var fe=H._writableState,ve=fe.sync,N=fe.writecb;if(typeof N!="function")throw new T;if(Pe(fe),Q)xe(H,fe,ve,Q,N);else{var I=te(fe)||H.destroyed;!I&&!fe.corked&&!fe.bufferProcessing&&fe.bufferedRequest&&ue(H,fe),ve?process.nextTick(Te,H,fe,I,N):Te(H,fe,I,N)}}l(se,"Ote"),e(se,"onwrite");function Te(H,Q,fe,ve){fe||J(H,Q),Q.pendingcb--,ve(),Re(H,Q)}l(Te,"e$"),e(Te,"afterWrite");function J(H,Q){Q.length===0&&Q.needDrain&&(Q.needDrain=!1,H.emit("drain"))}l(J,"Pte"),e(J,"onwriteDrain");function ue(H,Q){Q.bufferProcessing=!0;var fe=Q.bufferedRequest;if(H._writev&&fe&&fe.next){var ve=Q.bufferedRequestCount,N=new Array(ve),I=Q.corkedRequestsFree;I.entry=fe;for(var D=0,z=!0;fe;)N[D]=fe,fe.isBuf||(z=!1),fe=fe.next,D+=1;N.allBuffers=z,we(H,Q,!0,Q.length,N,"",I.finish),Q.pendingcb++,Q.lastBufferedRequest=null,I.next?(Q.corkedRequestsFree=I.next,I.next=null):Q.corkedRequestsFree=new f(Q),Q.bufferedRequestCount=0}else{for(;fe;){var Ee=fe.chunk,Oe=fe.encoding,be=fe.callback,ge=Q.objectMode?1:Ee.length;if(we(H,Q,!1,ge,Ee,Oe,be),fe=fe.next,Q.bufferedRequestCount--,Q.writing)break}fe===null&&(Q.lastBufferedRequest=null)}Q.bufferedRequest=fe,Q.bufferProcessing=!1}l(ue,"n$"),e(ue,"clearBuffer"),q.prototype._write=function(H,Q,fe){fe(new S("_write()"))},q.prototype._writev=null,q.prototype.end=function(H,Q,fe){var ve=this._writableState;return typeof H=="function"?(fe=H,H=null,Q=null):typeof Q=="function"&&(fe=Q,Q=null),H!=null&&this.write(H,Q),ve.corked&&(ve.corked=1,this.uncork()),ve.ending||De(this,ve,fe),this},Object.defineProperty(q.prototype,"writableLength",{enumerable:!1,get:e(function(){return this._writableState.length},"get")});function te(H){return H.ending&&H.length===0&&H.bufferedRequest===null&&!H.finished&&!H.writing}l(te,"i$"),e(te,"needFinish");function X(H,Q){H._final(function(fe){Q.pendingcb--,fe&&U(H,fe),Q.prefinished=!0,H.emit("prefinish"),Re(H,Q)})}l(X,"Ite"),e(X,"callFinal");function ye(H,Q){!Q.prefinished&&!Q.finalCalled&&(typeof H._final=="function"&&!Q.destroyed?(Q.pendingcb++,Q.finalCalled=!0,process.nextTick(X,H,Q)):(Q.prefinished=!0,H.emit("prefinish")))}l(ye,"kte"),e(ye,"prefinish");function Re(H,Q){var fe=te(Q);if(fe&&(ye(H,Q),Q.pendingcb===0&&(Q.finished=!0,H.emit("finish"),Q.autoDestroy))){var ve=H._readableState;(!ve||ve.autoDestroy&&ve.endEmitted)&&H.destroy()}return fe}l(Re,"yu"),e(Re,"finishMaybe");function De(H,Q,fe){Q.ending=!0,Re(H,Q),fe&&(Q.finished?process.nextTick(fe):H.once("finish",fe)),Q.ended=!0,H.writable=!1}l(De,"Bte"),e(De,"endWritable");function Y(H,Q,fe){var ve=H.entry;for(H.entry=null;ve;){var N=ve.callback;Q.pendingcb--,N(fe),ve=ve.next}Q.corkedRequestsFree.next=H}l(Y,"Cte"),e(Y,"onCorkedFinish"),Object.defineProperty(q.prototype,"destroyed",{enumerable:!1,get:e(function(){return this._writableState===void 0?!1:this._writableState.destroyed},"get"),set:e(function(H){this._writableState&&(this._writableState.destroyed=H)},"set")}),q.prototype.destroy=d.destroy,q.prototype._undestroy=d.undestroy,q.prototype._destroy=function(H,Q){Q(H)}}),Zs=Ge((o,i)=>{"use strict";var f=Object.keys||function(m){var y=[];for(var w in m)y.push(w);return y};i.exports=g;var p=o4(),a=i4();for(rl()(g,p),n=f(a.prototype),u=0;u<n.length;u++)r=n[u],g.prototype[r]||(g.prototype[r]=a.prototype[r]);var n,r,u;function g(m){if(!(this instanceof g))return new g(m);p.call(this,m),a.call(this,m),this.allowHalfOpen=!0,m&&(m.readable===!1&&(this.readable=!1),m.writable===!1&&(this.writable=!1),m.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",h)))}l(g,"Mn"),e(g,"Duplex"),Object.defineProperty(g.prototype,"writableHighWaterMark",{enumerable:!1,get:e(function(){return this._writableState.highWaterMark},"get")}),Object.defineProperty(g.prototype,"writableBuffer",{enumerable:!1,get:e(function(){return this._writableState&&this._writableState.getBuffer()},"get")}),Object.defineProperty(g.prototype,"writableLength",{enumerable:!1,get:e(function(){return this._writableState.length},"get")});function h(){this._writableState.ended||process.nextTick(d,this)}l(h,"Nte"),e(h,"onend");function d(m){m.end()}l(d,"Dte"),e(d,"onEndNT"),Object.defineProperty(g.prototype,"destroyed",{enumerable:!1,get:e(function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},"get"),set:e(function(m){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=m,this._writableState.destroyed=m)},"set")})}),mI=Ge(o=>{"use strict";var i=Dd().Buffer,f=i.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 p(E){if(!E)return"utf8";for(var P;;)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(P)return;E=(""+E).toLowerCase(),P=!0}}l(p,"$te"),e(p,"_normalizeEncoding");function a(E){var P=p(E);if(typeof P!="string"&&(i.isEncoding===f||!f(E)))throw new Error("Unknown encoding: "+E);return P||E}l(a,"Mte"),e(a,"normalizeEncoding"),o.StringDecoder=n;function n(E){this.encoding=a(E);var P;switch(this.encoding){case"utf16le":this.text=y,this.end=w,P=4;break;case"utf8":this.fillLast=h,P=4;break;case"base64":this.text=_,this.end=S,P=3;break;default:this.write=T,this.end=O;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(P)}l(n,"gu"),e(n,"StringDecoder"),n.prototype.write=function(E){if(E.length===0)return"";var P,A;if(this.lastNeed){if(P=this.fillLast(E),P===void 0)return"";A=this.lastNeed,this.lastNeed=0}else A=0;return A<E.length?P?P+this.text(E,A):this.text(E,A):P||""},n.prototype.end=m,n.prototype.text=d,n.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 r(E){return E<=127?0:E>>5===6?2:E>>4===14?3:E>>3===30?4:E>>6===2?-1:-2}l(r,"K_"),e(r,"utf8CheckByte");function u(E,P,A){var x=P.length-1;if(x<A)return 0;var U=r(P[x]);return U>=0?(U>0&&(E.lastNeed=U-1),U):--x<A||U===-2?0:(U=r(P[x]),U>=0?(U>0&&(E.lastNeed=U-2),U):--x<A||U===-2?0:(U=r(P[x]),U>=0?(U>0&&(U===2?U=0:E.lastNeed=U-3),U):0))}l(u,"Ute"),e(u,"utf8CheckIncomplete");function g(E,P,A){if((P[0]&192)!==128)return E.lastNeed=0,"\uFFFD";if(E.lastNeed>1&&P.length>1){if((P[1]&192)!==128)return E.lastNeed=1,"\uFFFD";if(E.lastNeed>2&&P.length>2&&(P[2]&192)!==128)return E.lastNeed=2,"\uFFFD"}}l(g,"jte"),e(g,"utf8CheckExtraBytes");function h(E){var P=this.lastTotal-this.lastNeed,A=g(this,E,P);if(A!==void 0)return A;if(this.lastNeed<=E.length)return E.copy(this.lastChar,P,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);E.copy(this.lastChar,P,0,E.length),this.lastNeed-=E.length}l(h,"Hte"),e(h,"utf8FillLast");function d(E,P){var A=u(this,E,P);if(!this.lastNeed)return E.toString("utf8",P);this.lastTotal=A;var x=E.length-(A-this.lastNeed);return E.copy(this.lastChar,0,x),E.toString("utf8",P,x)}l(d,"Wte"),e(d,"utf8Text");function m(E){var P=E&&E.length?this.write(E):"";return this.lastNeed?P+"\uFFFD":P}l(m,"qte"),e(m,"utf8End");function y(E,P){if((E.length-P)%2===0){var A=E.toString("utf16le",P);if(A){var x=A.charCodeAt(A.length-1);if(x>=55296&&x<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=E[E.length-2],this.lastChar[1]=E[E.length-1],A.slice(0,-1)}return A}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=E[E.length-1],E.toString("utf16le",P,E.length-1)}l(y,"zte"),e(y,"utf16Text");function w(E){var P=E&&E.length?this.write(E):"";if(this.lastNeed){var A=this.lastTotal-this.lastNeed;return P+this.lastChar.toString("utf16le",0,A)}return P}l(w,"Vte"),e(w,"utf16End");function _(E,P){var A=(E.length-P)%3;return A===0?E.toString("base64",P):(this.lastNeed=3-A,this.lastTotal=3,A===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",P,E.length-A))}l(_,"Gte"),e(_,"base64Text");function S(E){var P=E&&E.length?this.write(E):"";return this.lastNeed?P+this.lastChar.toString("base64",0,3-this.lastNeed):P}l(S,"Yte"),e(S,"base64End");function T(E){return E.toString(this.encoding)}l(T,"Kte"),e(T,"simpleWrite");function O(E){return E&&E.length?this.write(E):""}l(O,"Xte"),e(O,"simpleEnd")}),B2=Ge((o,i)=>{"use strict";var f=ol().codes.ERR_STREAM_PREMATURE_CLOSE;function p(u){var g=!1;return function(){if(!g){g=!0;for(var h=arguments.length,d=new Array(h),m=0;m<h;m++)d[m]=arguments[m];u.apply(this,d)}}}l(p,"Jte"),e(p,"once");function a(){}l(a,"Zte"),e(a,"noop");function n(u){return u.setHeader&&typeof u.abort=="function"}l(n,"Qte"),e(n,"isRequest");function r(u,g,h){if(typeof g=="function")return r(u,null,g);g||(g={}),h=p(h||a);var d=g.readable||g.readable!==!1&&u.readable,m=g.writable||g.writable!==!1&&u.writable,y=e(function(){u.writable||_()},"onlegacyfinish"),w=u._writableState&&u._writableState.finished,_=e(function(){m=!1,w=!0,d||h.call(u)},"onfinish"),S=u._readableState&&u._readableState.endEmitted,T=e(function(){d=!1,S=!0,m||h.call(u)},"onend"),O=e(function(A){h.call(u,A)},"onerror"),E=e(function(){var A;if(d&&!S)return(!u._readableState||!u._readableState.ended)&&(A=new f),h.call(u,A);if(m&&!w)return(!u._writableState||!u._writableState.ended)&&(A=new f),h.call(u,A)},"onclose"),P=e(function(){u.req.on("finish",_)},"onrequest");return n(u)?(u.on("complete",_),u.on("abort",E),u.req?P():u.on("request",P)):m&&!u._writableState&&(u.on("end",y),u.on("close",y)),u.on("end",T),u.on("finish",_),g.error!==!1&&u.on("error",O),u.on("close",E),function(){u.removeListener("complete",_),u.removeListener("abort",E),u.removeListener("request",P),u.req&&u.req.removeListener("finish",_),u.removeListener("end",y),u.removeListener("close",y),u.removeListener("finish",_),u.removeListener("end",T),u.removeListener("error",O),u.removeListener("close",E)}}l(r,"c$"),e(r,"eos"),i.exports=r}),ED=Ge((o,i)=>{"use strict";var f;function p(x,U,M){return U=a(U),U in x?Object.defineProperty(x,U,{value:M,enumerable:!0,configurable:!0,writable:!0}):x[U]=M,x}l(p,"_o"),e(p,"_defineProperty");function a(x){var U=n(x,"string");return typeof U=="symbol"?U:String(U)}l(a,"ere"),e(a,"_toPropertyKey");function n(x,U){if(typeof x!="object"||x===null)return x;var M=x[Symbol.toPrimitive];if(M!==void 0){var ee=M.call(x,U||"default");if(typeof ee!="object")return ee;throw new TypeError("@@toPrimitive must return a primitive value.")}return(U==="string"?String:Number)(x)}l(n,"tre"),e(n,"_toPrimitive");var r=B2(),u=Symbol("lastResolve"),g=Symbol("lastReject"),h=Symbol("error"),d=Symbol("ended"),m=Symbol("lastPromise"),y=Symbol("handlePromise"),w=Symbol("stream");function _(x,U){return{value:x,done:U}}l(_,"So"),e(_,"createIterResult");function S(x){var U=x[u];if(U!==null){var M=x[w].read();M!==null&&(x[m]=null,x[u]=null,x[g]=null,U(_(M,!1)))}}l(S,"nre"),e(S,"readAndResolve");function T(x){process.nextTick(S,x)}l(T,"ire"),e(T,"onReadable");function O(x,U){return function(M,ee){x.then(function(){if(U[d]){M(_(void 0,!0));return}U[y](M,ee)},ee)}}l(O,"ore"),e(O,"wrapForNext");var E=Object.getPrototypeOf(function(){}),P=Object.setPrototypeOf((f={get stream(){return this[w]},next:e(function(){var x=this,U=this[h];if(U!==null)return Promise.reject(U);if(this[d])return Promise.resolve(_(void 0,!0));if(this[w].destroyed)return new Promise(function(q,G){process.nextTick(function(){x[h]?G(x[h]):q(_(void 0,!0))})});var M=this[m],ee;if(M)ee=new Promise(O(M,this));else{var V=this[w].read();if(V!==null)return Promise.resolve(_(V,!1));ee=new Promise(this[y])}return this[m]=ee,ee},"next")},p(f,Symbol.asyncIterator,function(){return this}),p(f,"return",e(function(){var x=this;return new Promise(function(U,M){x[w].destroy(null,function(ee){if(ee){M(ee);return}U(_(void 0,!0))})})},"_return")),f),E),A=e(function(x){var U,M=Object.create(P,(U={},p(U,w,{value:x,writable:!0}),p(U,u,{value:null,writable:!0}),p(U,g,{value:null,writable:!0}),p(U,h,{value:null,writable:!0}),p(U,d,{value:x._readableState.endEmitted,writable:!0}),p(U,y,{value:e(function(ee,V){var q=M[w].read();q?(M[m]=null,M[u]=null,M[g]=null,ee(_(q,!1))):(M[u]=ee,M[g]=V)},"value"),writable:!0}),U));return M[m]=null,r(x,function(ee){if(ee&&ee.code!=="ERR_STREAM_PREMATURE_CLOSE"){var V=M[g];V!==null&&(M[m]=null,M[u]=null,M[g]=null,V(ee)),M[h]=ee;return}var q=M[u];q!==null&&(M[m]=null,M[u]=null,M[g]=null,q(_(void 0,!0))),M[d]=!0}),x.on("readable",T.bind(null,M)),M},"createReadableStreamAsyncIterator");i.exports=A}),SD=Ge((o,i)=>{i.exports=function(){throw new Error("Readable.from is not available in the browser")}}),o4=Ge((o,i)=>{"use strict";i.exports=re;var f;re.ReadableState=G;var p=(X8(),dr(F2)).EventEmitter,a=e(function(D,z){return D.listeners(z).length},"EElistenerCount"),n=e4(),r=(Nd(),dr(kf)).Buffer,u=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function g(D){return r.from(D)}l(g,"ure"),e(g,"_uint8ArrayToBuffer");function h(D){return r.isBuffer(D)||D instanceof u}l(h,"cre"),e(h,"_isUint8Array");var d=t4(),m;d&&d.debuglog?m=d.debuglog("stream"):m=e(function(){},"debug");var y=vD(),w=r4(),_=n4(),S=_.getHighWaterMark,T=ol().codes,O=T.ERR_INVALID_ARG_TYPE,E=T.ERR_STREAM_PUSH_AFTER_EOF,P=T.ERR_METHOD_NOT_IMPLEMENTED,A=T.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,x,U,M;rl()(re,n);var ee=w.errorOrDestroy,V=["error","close","destroy","pause","resume"];function q(D,z,Ee){if(typeof D.prependListener=="function")return D.prependListener(z,Ee);!D._events||!D._events[z]?D.on(z,Ee):Array.isArray(D._events[z])?D._events[z].unshift(Ee):D._events[z]=[Ee,D._events[z]]}l(q,"vre"),e(q,"prependListener");function G(D,z,Ee){f=f||Zs(),D=D||{},typeof Ee!="boolean"&&(Ee=z instanceof f),this.objectMode=!!D.objectMode,Ee&&(this.objectMode=this.objectMode||!!D.readableObjectMode),this.highWaterMark=S(this,D,"readableHighWaterMark",Ee),this.buffer=new y,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=D.emitClose!==!1,this.autoDestroy=!!D.autoDestroy,this.destroyed=!1,this.defaultEncoding=D.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,D.encoding&&(x||(x=mI().StringDecoder),this.decoder=new x(D.encoding),this.encoding=D.encoding)}l(G,"b$"),e(G,"ReadableState");function re(D){if(f=f||Zs(),!(this instanceof re))return new re(D);var z=this instanceof f;this._readableState=new G(D,this,z),this.readable=!0,D&&(typeof D.read=="function"&&(this._read=D.read),typeof D.destroy=="function"&&(this._destroy=D.destroy)),n.call(this)}l(re,"et"),e(re,"Readable"),Object.defineProperty(re.prototype,"destroyed",{enumerable:!1,get:e(function(){return this._readableState===void 0?!1:this._readableState.destroyed},"get"),set:e(function(D){this._readableState&&(this._readableState.destroyed=D)},"set")}),re.prototype.destroy=w.destroy,re.prototype._undestroy=w.undestroy,re.prototype._destroy=function(D,z){z(D)},re.prototype.push=function(D,z){var Ee=this._readableState,Oe;return Ee.objectMode?Oe=!0:typeof D=="string"&&(z=z||Ee.defaultEncoding,z!==Ee.encoding&&(D=r.from(D,z),z=""),Oe=!0),ae(this,D,z,!1,Oe)},re.prototype.unshift=function(D){return ae(this,D,null,!0,!1)};function ae(D,z,Ee,Oe,be){m("readableAddChunk",z);var ge=D._readableState;if(z===null)ge.reading=!1,Te(D,ge);else{var Ne;if(be||(Ne=we(ge,z)),Ne)ee(D,Ne);else if(ge.objectMode||z&&z.length>0)if(typeof z!="string"&&!ge.objectMode&&Object.getPrototypeOf(z)!==r.prototype&&(z=g(z)),Oe)ge.endEmitted?ee(D,new A):de(D,ge,z,!0);else if(ge.ended)ee(D,new E);else{if(ge.destroyed)return!1;ge.reading=!1,ge.decoder&&!Ee?(z=ge.decoder.write(z),ge.objectMode||z.length!==0?de(D,ge,z,!1):te(D,ge)):de(D,ge,z,!1)}else Oe||(ge.reading=!1,te(D,ge))}return!ge.ended&&(ge.length<ge.highWaterMark||ge.length===0)}l(ae,"_$"),e(ae,"readableAddChunk");function de(D,z,Ee,Oe){z.flowing&&z.length===0&&!z.sync?(z.awaitDrain=0,D.emit("data",Ee)):(z.length+=z.objectMode?1:Ee.length,Oe?z.buffer.unshift(Ee):z.buffer.push(Ee),z.needReadable&&J(D)),te(D,z)}l(de,"n1"),e(de,"addChunk");function we(D,z){var Ee;return!h(z)&&typeof z!="string"&&z!==void 0&&!D.objectMode&&(Ee=new O("chunk",["string","Buffer","Uint8Array"],z)),Ee}l(we,"bre"),e(we,"chunkInvalid"),re.prototype.isPaused=function(){return this._readableState.flowing===!1},re.prototype.setEncoding=function(D){x||(x=mI().StringDecoder);var z=new x(D);this._readableState.decoder=z,this._readableState.encoding=this._readableState.decoder.encoding;for(var Ee=this._readableState.buffer.head,Oe="";Ee!==null;)Oe+=z.write(Ee.data),Ee=Ee.next;return this._readableState.buffer.clear(),Oe!==""&&this._readableState.buffer.push(Oe),this._readableState.length=Oe.length,this};var xe=1073741824;function Pe(D){return D>=xe?D=xe:(D--,D|=D>>>1,D|=D>>>2,D|=D>>>4,D|=D>>>8,D|=D>>>16,D++),D}l(Pe,"_re"),e(Pe,"computeNewHighWaterMark");function se(D,z){return D<=0||z.length===0&&z.ended?0:z.objectMode?1:D!==D?z.flowing&&z.length?z.buffer.head.data.length:z.length:(D>z.highWaterMark&&(z.highWaterMark=Pe(D)),D<=z.length?D:z.ended?z.length:(z.needReadable=!0,0))}l(se,"w$"),e(se,"howMuchToRead"),re.prototype.read=function(D){m("read",D),D=parseInt(D,10);var z=this._readableState,Ee=D;if(D!==0&&(z.emittedReadable=!1),D===0&&z.needReadable&&((z.highWaterMark!==0?z.length>=z.highWaterMark:z.length>0)||z.ended))return m("read: emitReadable",z.length,z.ended),z.length===0&&z.ended?ve(this):J(this),null;if(D=se(D,z),D===0&&z.ended)return z.length===0&&ve(this),null;var Oe=z.needReadable;m("need readable",Oe),(z.length===0||z.length-D<z.highWaterMark)&&(Oe=!0,m("length less than watermark",Oe)),z.ended||z.reading?(Oe=!1,m("reading or ended",Oe)):Oe&&(m("do read"),z.reading=!0,z.sync=!0,z.length===0&&(z.needReadable=!0),this._read(z.highWaterMark),z.sync=!1,z.reading||(D=se(Ee,z)));var be;return D>0?be=fe(D,z):be=null,be===null?(z.needReadable=z.length<=z.highWaterMark,D=0):(z.length-=D,z.awaitDrain=0),z.length===0&&(z.ended||(z.needReadable=!0),Ee!==D&&z.ended&&ve(this)),be!==null&&this.emit("data",be),be};function Te(D,z){if(m("onEofChunk"),!z.ended){if(z.decoder){var Ee=z.decoder.end();Ee&&Ee.length&&(z.buffer.push(Ee),z.length+=z.objectMode?1:Ee.length)}z.ended=!0,z.sync?J(D):(z.needReadable=!1,z.emittedReadable||(z.emittedReadable=!0,ue(D)))}}l(Te,"Ere"),e(Te,"onEofChunk");function J(D){var z=D._readableState;m("emitReadable",z.needReadable,z.emittedReadable),z.needReadable=!1,z.emittedReadable||(m("emitReadable",z.flowing),z.emittedReadable=!0,process.nextTick(ue,D))}l(J,"Yp"),e(J,"emitReadable");function ue(D){var z=D._readableState;m("emitReadable_",z.destroyed,z.length,z.ended),!z.destroyed&&(z.length||z.ended)&&(D.emit("readable"),z.emittedReadable=!1),z.needReadable=!z.flowing&&!z.ended&&z.length<=z.highWaterMark,Q(D)}l(ue,"E$"),e(ue,"emitReadable_");function te(D,z){z.readingMore||(z.readingMore=!0,process.nextTick(X,D,z))}l(te,"o1"),e(te,"maybeReadMore");function X(D,z){for(;!z.reading&&!z.ended&&(z.length<z.highWaterMark||z.flowing&&z.length===0);){var Ee=z.length;if(m("maybeReadMore read 0"),D.read(0),Ee===z.length)break}z.readingMore=!1}l(X,"Sre"),e(X,"maybeReadMore_"),re.prototype._read=function(D){ee(this,new P("_read()"))},re.prototype.pipe=function(D,z){var Ee=this,Oe=this._readableState;switch(Oe.pipesCount){case 0:Oe.pipes=D;break;case 1:Oe.pipes=[Oe.pipes,D];break;default:Oe.pipes.push(D);break}Oe.pipesCount+=1,m("pipe count=%d opts=%j",Oe.pipesCount,z);var be=(!z||z.end!==!1)&&D!==process.stdout&&D!==process.stderr,ge=be?Ie:v;Oe.endEmitted?process.nextTick(ge):Ee.once("end",ge),D.on("unpipe",Ne);function Ne(R,C){m("onunpipe"),R===Ee&&C&&C.hasUnpiped===!1&&(C.hasUnpiped=!0,$e())}l(Ne,"i"),e(Ne,"onunpipe");function Ie(){m("onend"),D.end()}l(Ie,"f"),e(Ie,"onend");var ke=ye(Ee);D.on("drain",ke);var Ce=!1;function $e(){m("cleanup"),D.removeListener("close",s),D.removeListener("finish",c),D.removeListener("drain",ke),D.removeListener("error",t),D.removeListener("unpipe",Ne),Ee.removeListener("end",Ie),Ee.removeListener("end",v),Ee.removeListener("data",Ke),Ce=!0,Oe.awaitDrain&&(!D._writableState||D._writableState.needDrain)&&ke()}l($e,"d"),e($e,"cleanup"),Ee.on("data",Ke);function Ke(R){m("ondata");var C=D.write(R);m("dest.write",C),C===!1&&((Oe.pipesCount===1&&Oe.pipes===D||Oe.pipesCount>1&&I(Oe.pipes,D)!==-1)&&!Ce&&(m("false write response, pause",Oe.awaitDrain),Oe.awaitDrain++),Ee.pause())}l(Ke,"y"),e(Ke,"ondata");function t(R){m("onerror",R),v(),D.removeListener("error",t),a(D,"error")===0&&ee(D,R)}l(t,"m"),e(t,"onerror"),q(D,"error",t);function s(){D.removeListener("finish",c),v()}l(s,"g"),e(s,"onclose"),D.once("close",s);function c(){m("onfinish"),D.removeListener("close",s),v()}l(c,"v"),e(c,"onfinish"),D.once("finish",c);function v(){m("unpipe"),Ee.unpipe(D)}return l(v,"_"),e(v,"unpipe"),D.emit("pipe",Ee),Oe.flowing||(m("pipe resume"),Ee.resume()),D};function ye(D){return e(function(){var z=D._readableState;m("pipeOnDrain",z.awaitDrain),z.awaitDrain&&z.awaitDrain--,z.awaitDrain===0&&a(D,"data")&&(z.flowing=!0,Q(D))},"pipeOnDrainFunctionResult")}l(ye,"Are"),e(ye,"pipeOnDrain"),re.prototype.unpipe=function(D){var z=this._readableState,Ee={hasUnpiped:!1};if(z.pipesCount===0)return this;if(z.pipesCount===1)return D&&D!==z.pipes?this:(D||(D=z.pipes),z.pipes=null,z.pipesCount=0,z.flowing=!1,D&&D.emit("unpipe",this,Ee),this);if(!D){var Oe=z.pipes,be=z.pipesCount;z.pipes=null,z.pipesCount=0,z.flowing=!1;for(var ge=0;ge<be;ge++)Oe[ge].emit("unpipe",this,{hasUnpiped:!1});return this}var Ne=I(z.pipes,D);return Ne===-1?this:(z.pipes.splice(Ne,1),z.pipesCount-=1,z.pipesCount===1&&(z.pipes=z.pipes[0]),D.emit("unpipe",this,Ee),this)},re.prototype.on=function(D,z){var Ee=n.prototype.on.call(this,D,z),Oe=this._readableState;return D==="data"?(Oe.readableListening=this.listenerCount("readable")>0,Oe.flowing!==!1&&this.resume()):D==="readable"&&!Oe.endEmitted&&!Oe.readableListening&&(Oe.readableListening=Oe.needReadable=!0,Oe.flowing=!1,Oe.emittedReadable=!1,m("on readable",Oe.length,Oe.reading),Oe.length?J(this):Oe.reading||process.nextTick(De,this)),Ee},re.prototype.addListener=re.prototype.on,re.prototype.removeListener=function(D,z){var Ee=n.prototype.removeListener.call(this,D,z);return D==="readable"&&process.nextTick(Re,this),Ee},re.prototype.removeAllListeners=function(D){var z=n.prototype.removeAllListeners.apply(this,arguments);return(D==="readable"||D===void 0)&&process.nextTick(Re,this),z};function Re(D){var z=D._readableState;z.readableListening=D.listenerCount("readable")>0,z.resumeScheduled&&!z.paused?z.flowing=!0:D.listenerCount("data")>0&&D.resume()}l(Re,"S$"),e(Re,"updateReadableListening");function De(D){m("readable nexttick read 0"),D.read(0)}l(De,"Rre"),e(De,"nReadingNextTick"),re.prototype.resume=function(){var D=this._readableState;return D.flowing||(m("resume"),D.flowing=!D.readableListening,Y(this,D)),D.paused=!1,this};function Y(D,z){z.resumeScheduled||(z.resumeScheduled=!0,process.nextTick(H,D,z))}l(Y,"Tre"),e(Y,"resume");function H(D,z){m("resume",z.reading),z.reading||D.read(0),z.resumeScheduled=!1,D.emit("resume"),Q(D),z.flowing&&!z.reading&&D.read(0)}l(H,"Fre"),e(H,"resume_"),re.prototype.pause=function(){return m("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(m("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Q(D){var z=D._readableState;for(m("flow",z.flowing);z.flowing&&D.read()!==null;);}l(Q,"s1"),e(Q,"flow"),re.prototype.wrap=function(D){var z=this,Ee=this._readableState,Oe=!1;D.on("end",function(){if(m("wrapped end"),Ee.decoder&&!Ee.ended){var Ne=Ee.decoder.end();Ne&&Ne.length&&z.push(Ne)}z.push(null)}),D.on("data",function(Ne){if(m("wrapped data"),Ee.decoder&&(Ne=Ee.decoder.write(Ne)),!(Ee.objectMode&&Ne==null)&&!(!Ee.objectMode&&(!Ne||!Ne.length))){var Ie=z.push(Ne);Ie||(Oe=!0,D.pause())}});for(var be in D)this[be]===void 0&&typeof D[be]=="function"&&(this[be]=e(function(Ne){return e(function(){return D[Ne].apply(D,arguments)},"methodWrapReturnFunction")},"methodWrap")(be));for(var ge=0;ge<V.length;ge++)D.on(V[ge],this.emit.bind(this,V[ge]));return this._read=function(Ne){m("wrapped _read",Ne),Oe&&(Oe=!1,D.resume())},this},typeof Symbol=="function"&&(re.prototype[Symbol.asyncIterator]=function(){return U===void 0&&(U=ED()),U(this)}),Object.defineProperty(re.prototype,"readableHighWaterMark",{enumerable:!1,get:e(function(){return this._readableState.highWaterMark},"get")}),Object.defineProperty(re.prototype,"readableBuffer",{enumerable:!1,get:e(function(){return this._readableState&&this._readableState.buffer},"get")}),Object.defineProperty(re.prototype,"readableFlowing",{enumerable:!1,get:e(function(){return this._readableState.flowing},"get"),set:e(function(D){this._readableState&&(this._readableState.flowing=D)},"set")}),re._fromList=fe,Object.defineProperty(re.prototype,"readableLength",{enumerable:!1,get:e(function(){return this._readableState.length},"get")});function fe(D,z){if(z.length===0)return null;var Ee;return z.objectMode?Ee=z.buffer.shift():!D||D>=z.length?(z.decoder?Ee=z.buffer.join(""):z.buffer.length===1?Ee=z.buffer.first():Ee=z.buffer.concat(z.length),z.buffer.clear()):Ee=z.buffer.consume(D,z.decoder),Ee}l(fe,"A$"),e(fe,"fromList");function ve(D){var z=D._readableState;m("endReadable",z.endEmitted),z.endEmitted||(z.ended=!0,process.nextTick(N,z,D))}l(ve,"i1"),e(ve,"endReadable");function N(D,z){if(m("endReadableNT",D.endEmitted,D.length),!D.endEmitted&&D.length===0&&(D.endEmitted=!0,z.readable=!1,z.emit("end"),D.autoDestroy)){var Ee=z._writableState;(!Ee||Ee.autoDestroy&&Ee.finished)&&z.destroy()}}l(N,"xre"),e(N,"endReadableNT"),typeof Symbol=="function"&&(re.from=function(D,z){return M===void 0&&(M=SD()),M(re,D,z)});function I(D,z){for(var Ee=0,Oe=D.length;Ee<Oe;Ee++)if(D[Ee]===z)return Ee;return-1}l(I,"R$"),e(I,"indexOf")}),a4=Ge((o,i)=>{"use strict";i.exports=h;var f=ol().codes,p=f.ERR_METHOD_NOT_IMPLEMENTED,a=f.ERR_MULTIPLE_CALLBACK,n=f.ERR_TRANSFORM_ALREADY_TRANSFORMING,r=f.ERR_TRANSFORM_WITH_LENGTH_0,u=Zs();rl()(h,u);function g(y,w){var _=this._transformState;_.transforming=!1;var S=_.writecb;if(S===null)return this.emit("error",new a);_.writechunk=null,_.writecb=null,w!=null&&this.push(w),S(y);var T=this._readableState;T.reading=!1,(T.needReadable||T.length<T.highWaterMark)&&this._read(T.highWaterMark)}l(g,"Bre"),e(g,"afterTransform");function h(y){if(!(this instanceof h))return new h(y);u.call(this,y),this._transformState={afterTransform:g.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,y&&(typeof y.transform=="function"&&(this._transform=y.transform),typeof y.flush=="function"&&(this._flush=y.flush)),this.on("prefinish",d)}l(h,"xi"),e(h,"Transform");function d(){var y=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(w,_){m(y,w,_)}):m(this,null,null)}l(d,"Cre"),e(d,"prefinish"),h.prototype.push=function(y,w){return this._transformState.needTransform=!1,u.prototype.push.call(this,y,w)},h.prototype._transform=function(y,w,_){_(new p("_transform()"))},h.prototype._write=function(y,w,_){var S=this._transformState;if(S.writecb=_,S.writechunk=y,S.writeencoding=w,!S.transforming){var T=this._readableState;(S.needTransform||T.needReadable||T.length<T.highWaterMark)&&this._read(T.highWaterMark)}},h.prototype._read=function(y){var w=this._transformState;w.writechunk!==null&&!w.transforming?(w.transforming=!0,this._transform(w.writechunk,w.writeencoding,w.afterTransform)):w.needTransform=!0},h.prototype._destroy=function(y,w){u.prototype._destroy.call(this,y,function(_){w(_)})};function m(y,w,_){if(w)return y.emit("error",w);if(_!=null&&y.push(_),y._writableState.length)throw new r;if(y._transformState.transforming)throw new n;return y.push(null)}l(m,"F$"),e(m,"done")}),AD=Ge((o,i)=>{"use strict";i.exports=p;var f=a4();rl()(p,f);function p(a){if(!(this instanceof p))return new p(a);f.call(this,a)}l(p,"_u"),e(p,"PassThrough"),p.prototype._transform=function(a,n,r){r(null,a)}}),RD=Ge((o,i)=>{"use strict";var f;function p(_){var S=!1;return function(){S||(S=!0,_.apply(void 0,arguments))}}l(p,"Lre"),e(p,"once");var a=ol().codes,n=a.ERR_MISSING_ARGS,r=a.ERR_STREAM_DESTROYED;function u(_){if(_)throw _}l(u,"k$"),e(u,"noop");function g(_){return _.setHeader&&typeof _.abort=="function"}l(g,"$re"),e(g,"isRequest");function h(_,S,T,O){O=p(O);var E=!1;_.on("close",function(){E=!0}),f===void 0&&(f=B2()),f(_,{readable:S,writable:T},function(A){if(A)return O(A);E=!0,O()});var P=!1;return function(A){if(!E&&!P){if(P=!0,g(_))return _.abort();if(typeof _.destroy=="function")return _.destroy();O(A||new r("pipe"))}}}l(h,"Mre"),e(h,"destroyer");function d(_){_()}l(d,"B$"),e(d,"call");function m(_,S){return _.pipe(S)}l(m,"Ure"),e(m,"pipe");function y(_){return!_.length||typeof _[_.length-1]!="function"?u:_.pop()}l(y,"jre"),e(y,"popCallback");function w(){for(var _=arguments.length,S=new Array(_),T=0;T<_;T++)S[T]=arguments[T];var O=y(S);if(Array.isArray(S[0])&&(S=S[0]),S.length<2)throw new n("streams");var E,P=S.map(function(A,x){var U=x<S.length-1,M=x>0;return h(A,U,M,function(ee){E||(E=ee),ee&&P.forEach(d),!U&&(P.forEach(d),O(E))})});return S.reduce(m)}l(w,"Hre"),e(w,"pipeline"),i.exports=w}),OD=Ge((o,i)=>{o=i.exports=o4(),o.Stream=o,o.Readable=o,o.Writable=i4(),o.Duplex=Zs(),o.Transform=a4(),o.PassThrough=AD(),o.finished=B2(),o.pipeline=RD()});BE();typeof globalThis<"u"&&!globalThis.Buffer&&(globalThis.Buffer=Js);typeof window<"u"&&!window.Buffer&&(window.Buffer=Js);BE();function RE(o){let i=o.name||"untitled";return{kind:"file",name:i,async getFile(){let f=(await o.stat()).size;console.log("reading data into buffer of size"+f);let p=Js.alloc(f);await o.read(p,0,f,0);let a=new Uint8Array(p.buffer,p.byteOffset,p.byteLength);console.log("buffer read",a);let n=a;return new File([n],i||"untitled")},async createWritable(){return{async write(f){console.log("writing data to handle",o);let p;if(typeof f=="string")p=Js.from(f,"utf-8");else if(f instanceof Blob){let a=await f.arrayBuffer();p=new Uint8Array(a)}else if(ArrayBuffer.isView(f))p=new Uint8Array(f.buffer,f.byteOffset,f.byteLength);else throw console.log("data",f),new Error("Unsupported data type for write");await o.write(p),await o.sync(),console.log("write completed")},async close(){await o.close()}}}}}l(RE,"y1");e(RE,"fileHandleToFileSystemFileHandle");async function s4(o){let i=await o.getFile();return i.handle=o,i}l(s4,"i8");e(s4,"fileSystemFileHandleToFileWithHandle");async function kD(o){return{openFile:e(async i=>{let f=await o.promises.open(i,"w");return f.name=i,await s4(RE(f))},"openFile"),fileSave:e(async(i,f,p,a,n)=>{if(p)console.log("using existing handle",p);else{let u=window.prompt("Save as",f?.fileName??"untitled");if(console.log("result of prompt",u),!u)throw new Error("no file choosen");try{let g=await o.promises.open(`${u}`,"w");p=RE(g)}catch(g){throw console.error("Failed to open file in legitFs",g),new Error("Failed to open file in legitFs")}}let r=i instanceof Blob?i:await i;return await(await p.createWritable()).write(r),p},"fileSave")}}l(kD,"nne");e(kD,"getLegitFsAccess");function Gd(o){throw new Error("Node.js process "+o+" is not supported by JSPM core outside of Node.js")}l(Gd,"ny");e(Gd,"unimplemented");var vi=[],Ds=!1,ya,od=-1;function l4(){!Ds||!ya||(Ds=!1,ya.length?vi=ya.concat(vi):od=-1,vi.length&&x2())}l(l4,"o8");e(l4,"cleanUpNextTick");function x2(){if(!Ds){var o=setTimeout(l4,0);Ds=!0;for(var i=vi.length;i;){for(ya=vi,vi=[];++od<i;)ya&&ya[od].run();od=-1,i=vi.length}ya=null,Ds=!1,clearTimeout(o)}}l(x2,"g1");e(x2,"drainQueue");function f4(o){var i=new Array(arguments.length-1);if(arguments.length>1)for(var f=1;f<arguments.length;f++)i[f-1]=arguments[f];vi.push(new I2(o,i)),vi.length===1&&!Ds&&setTimeout(x2,0)}l(f4,"a8");e(f4,"nextTick");function I2(o,i){this.fun=o,this.array=i}l(I2,"w1");e(I2,"Item");I2.prototype.run=function(){this.fun.apply(null,this.array)};var TD="browser",FD="x64",BD="browser",xD={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},ID=["/usr/bin/node"],PD=[],jD="v16.8.0",CD={},LD=e(function(o,i){console.warn((i?i+": ":"")+o)},"emitWarning"),ND=e(function(o){Gd("binding")},"binding"),DD=e(function(o){return 0},"umask"),UD=e(function(){return"/"},"cwd"),MD=e(function(o){},"chdir"),$D={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};function Sr(){}l(Sr,"Vt");e(Sr,"noop");var WD=Sr,zD=[];function u4(o){Gd("_linkedBinding")}l(u4,"S8");e(u4,"_linkedBinding");var HD={},qD=!1,GD={};function c4(o){Gd("dlopen")}l(c4,"F8");e(c4,"dlopen");function h4(){return[]}l(h4,"x8");e(h4,"_getActiveRequests");function d4(){return[]}l(d4,"O8");e(d4,"_getActiveHandles");var VD=Sr,KD=Sr,P2=e(function(){return{}},"cpuUsage"),JD=P2,YD=P2,ZD=Sr,QD=Sr,XD=Sr,e5={};function p4(o,i){if(!o)throw new Error(i||"assertion error")}l(p4,"$8");e(p4,"assert");var t5={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},r5=Sr,n5=Sr;function g4(){return!1}l(g4,"H8");e(g4,"hasUncaughtExceptionCaptureCallback");var i5=Sr,o5=Sr,a5=Sr,s5=Sr,l5=Sr,f5=void 0,u5=void 0,c5=void 0,h5=Sr,d5=2,p5=1,g5="/bin/usr/node",y5=9229,m5="node",w5=[],b5=Sr,Ki={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0};Ki.now===void 0&&(Jm=Date.now(),Ki.timing&&Ki.timing.navigationStart&&(Jm=Ki.timing.navigationStart),Ki.now=()=>Date.now()-Jm);var Jm;function y4(){return Ki.now()/1e3}l(y4,"o6");e(y4,"uptime");var OE=1e9;function Ad(o){var i=Math.floor((Date.now()-Ki.now())*.001),f=Ki.now()*.001,p=Math.floor(f)+i,a=Math.floor(f%1*1e9);return o&&(p=p-o[0],a=a-o[1],a<0&&(p--,a+=OE)),[p,a]}l(Ad,"ry");e(Ad,"hrtime");Ad.bigint=function(o){var i=Ad(o);return typeof BigInt>"u"?i[0]*OE+i[1]:BigInt(i[0]*OE)+BigInt(i[1])};var v5=10,_5={},E5=0;function Ai(){return w4}l(Ai,"Ii");e(Ai,"on");var S5=Ai,A5=Ai,R5=Ai,O5=Ai,k5=Ai,T5=Sr,F5=Ai,B5=Ai;function m4(o){return[]}l(m4,"g6");e(m4,"listeners");var w4={version:jD,versions:CD,arch:FD,platform:BD,release:$D,_rawDebug:WD,moduleLoadList:zD,binding:ND,_linkedBinding:u4,_events:_5,_eventsCount:E5,_maxListeners:v5,on:Ai,addListener:S5,once:A5,off:R5,removeListener:O5,removeAllListeners:k5,emit:T5,prependListener:F5,prependOnceListener:B5,listeners:m4,domain:HD,_exiting:qD,config:GD,dlopen:c4,uptime:y4,_getActiveRequests:h4,_getActiveHandles:d4,reallyExit:VD,_kill:KD,cpuUsage:P2,resourceUsage:JD,memoryUsage:YD,kill:ZD,exit:QD,openStdin:XD,allowedNodeEnvironmentFlags:e5,assert:p4,features:t5,_fatalExceptions:r5,setUncaughtExceptionCaptureCallback:n5,hasUncaughtExceptionCaptureCallback:g4,emitWarning:LD,nextTick:f4,_tickCallback:i5,_debugProcess:o5,_debugEnd:a5,_startProfilerIdleNotifier:s5,_stopProfilerIdleNotifier:l5,stdout:f5,stdin:c5,stderr:u5,abort:h5,umask:DD,chdir:MD,cwd:UD,env:xD,title:TD,argv:ID,execArgv:PD,pid:d5,ppid:p5,execPath:g5,debugPort:y5,hrtime:Ad,argv0:m5,_preload_modules:w5,setSourceMapsEnabled:b5},Ym={},wI=!1;function b4(){if(wI)return Ym;wI=!0;var o=w4;function i(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}l(i,"t"),e(i,"assertPath");function f(n,r){for(var u="",g=0,h=-1,d=0,m,y=0;y<=n.length;++y){if(y<n.length)m=n.charCodeAt(y);else{if(m===47)break;m=47}if(m===47){if(!(h===y-1||d===1))if(h!==y-1&&d===2){if(u.length<2||g!==2||u.charCodeAt(u.length-1)!==46||u.charCodeAt(u.length-2)!==46){if(u.length>2){var w=u.lastIndexOf("/");if(w!==u.length-1){w===-1?(u="",g=0):(u=u.slice(0,w),g=u.length-1-u.lastIndexOf("/")),h=y,d=0;continue}}else if(u.length===2||u.length===1){u="",g=0,h=y,d=0;continue}}r&&(u.length>0?u+="/..":u="..",g=2)}else u.length>0?u+="/"+n.slice(h+1,y):u=n.slice(h+1,y),g=y-h-1;h=y,d=0}else m===46&&d!==-1?++d:d=-1}return u}l(f,"r"),e(f,"normalizeStringPosix");function p(n,r){var u=r.dir||r.root,g=r.base||(r.name||"")+(r.ext||"");return u?u===r.root?u+g:u+n+g:g}l(p,"n"),e(p,"_format");var a={resolve:e(function(){for(var n="",r=!1,u,g=arguments.length-1;g>=-1&&!r;g--){var h;g>=0?h=arguments[g]:(u===void 0&&(u=o.cwd()),h=u),i(h),h.length!==0&&(n=h+"/"+n,r=h.charCodeAt(0)===47)}return n=f(n,!r),r?n.length>0?"/"+n:"/":n.length>0?n:"."},"resolve2"),normalize:e(function(n){if(i(n),n.length===0)return".";var r=n.charCodeAt(0)===47,u=n.charCodeAt(n.length-1)===47;return n=f(n,!r),n.length===0&&!r&&(n="."),n.length>0&&u&&(n+="/"),r?"/"+n:n},"normalize2"),isAbsolute:e(function(n){return i(n),n.length>0&&n.charCodeAt(0)===47},"isAbsolute2"),join:e(function(){if(arguments.length===0)return".";for(var n,r=0;r<arguments.length;++r){var u=arguments[r];i(u),u.length>0&&(n===void 0?n=u:n+="/"+u)}return n===void 0?".":a.normalize(n)},"join2"),relative:e(function(n,r){if(i(n),i(r),n===r||(n=a.resolve(n),r=a.resolve(r),n===r))return"";for(var u=1;u<n.length&&n.charCodeAt(u)===47;++u);for(var g=n.length,h=g-u,d=1;d<r.length&&r.charCodeAt(d)===47;++d);for(var m=r.length,y=m-d,w=h<y?h:y,_=-1,S=0;S<=w;++S){if(S===w){if(y>w){if(r.charCodeAt(d+S)===47)return r.slice(d+S+1);if(S===0)return r.slice(d+S)}else h>w&&(n.charCodeAt(u+S)===47?_=S:S===0&&(_=0));break}var T=n.charCodeAt(u+S),O=r.charCodeAt(d+S);if(T!==O)break;T===47&&(_=S)}var E="";for(S=u+_+1;S<=g;++S)(S===g||n.charCodeAt(S)===47)&&(E.length===0?E+="..":E+="/..");return E.length>0?E+r.slice(d+_):(d+=_,r.charCodeAt(d)===47&&++d,r.slice(d))},"relative2"),_makeLong:e(function(n){return n},"_makeLong2"),dirname:e(function(n){if(i(n),n.length===0)return".";for(var r=n.charCodeAt(0),u=r===47,g=-1,h=!0,d=n.length-1;d>=1;--d)if(r=n.charCodeAt(d),r===47){if(!h){g=d;break}}else h=!1;return g===-1?u?"/":".":u&&g===1?"//":n.slice(0,g)},"dirname2"),basename:e(function(n,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');i(n);var u=0,g=-1,h=!0,d;if(r!==void 0&&r.length>0&&r.length<=n.length){if(r.length===n.length&&r===n)return"";var m=r.length-1,y=-1;for(d=n.length-1;d>=0;--d){var w=n.charCodeAt(d);if(w===47){if(!h){u=d+1;break}}else y===-1&&(h=!1,y=d+1),m>=0&&(w===r.charCodeAt(m)?--m===-1&&(g=d):(m=-1,g=y))}return u===g?g=y:g===-1&&(g=n.length),n.slice(u,g)}else{for(d=n.length-1;d>=0;--d)if(n.charCodeAt(d)===47){if(!h){u=d+1;break}}else g===-1&&(h=!1,g=d+1);return g===-1?"":n.slice(u,g)}},"basename2"),extname:e(function(n){i(n);for(var r=-1,u=0,g=-1,h=!0,d=0,m=n.length-1;m>=0;--m){var y=n.charCodeAt(m);if(y===47){if(!h){u=m+1;break}continue}g===-1&&(h=!1,g=m+1),y===46?r===-1?r=m:d!==1&&(d=1):r!==-1&&(d=-1)}return r===-1||g===-1||d===0||d===1&&r===g-1&&r===u+1?"":n.slice(r,g)},"extname2"),format:e(function(n){if(n===null||typeof n!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof n);return p("/",n)},"format2"),parse:e(function(n){i(n);var r={root:"",dir:"",base:"",ext:"",name:""};if(n.length===0)return r;var u=n.charCodeAt(0),g=u===47,h;g?(r.root="/",h=1):h=0;for(var d=-1,m=0,y=-1,w=!0,_=n.length-1,S=0;_>=h;--_){if(u=n.charCodeAt(_),u===47){if(!w){m=_+1;break}continue}y===-1&&(w=!1,y=_+1),u===46?d===-1?d=_:S!==1&&(S=1):d!==-1&&(S=-1)}return d===-1||y===-1||S===0||S===1&&d===y-1&&d===m+1?y!==-1&&(m===0&&g?r.base=r.name=n.slice(1,y):r.base=r.name=n.slice(m,y)):(m===0&&g?(r.name=n.slice(1,d),r.base=n.slice(1,y)):(r.name=n.slice(m,d),r.base=n.slice(m,y)),r.ext=n.slice(d,y)),m>0?r.dir=n.slice(0,m-1):g&&(r.dir="/"),r},"parse2"),sep:"/",delimiter:":",win32:null,posix:null};return a.posix=a,Ym=a,Ym}l(b4,"w6");e(b4,"dew");var Nr=b4(),lU=Nr._makeLong,bI=Nr.basename,fU=Nr.delimiter,Oa=Nr.dirname,uU=Nr.extname,cU=Nr.format,hU=Nr.isAbsolute,dU=Nr.join,pU=Nr.normalize,gU=Nr.parse,yU=Nr.posix,mU=Nr.relative,wU=Nr.resolve,bU=Nr.sep,vU=Nr.win32,Ms,v4=(Ms=class{constructor(i,f){vt(this,"entries",[]),vt(this,"currentIndex",0),vt(this,"closed",!1),vt(this,"compositFs"),vt(this,"dirPath"),vt(this,"initialized",!1),this.compositFs=i,this.dirPath=f}async initialize(){if(this.initialized)return;let i=new Set;for(let f of[...this.compositFs.subFilesystems].reverse()){let p=await f.readdir(this.dirPath);for(let a of p)i.add(a)}for(let f of Array.from(i)){let p=this.dirPath+"/"+f;await this.compositFs.hiddenFilesFileSystem?.responsible(p)||this.entries.push({name:f,path:p})}this.initialized=!0}async*[Symbol.asyncIterator](){for(await this.initialize();this.currentIndex<this.entries.length&&!this.closed;){let i=this.entries[this.currentIndex++];try{let f=await this.compositFs.stat(i.path);yield{name:i.name,isFile:e(()=>f.isFile(),"isFile"),isDirectory:e(()=>f.isDirectory(),"isDirectory"),isBlockDevice:e(()=>f.isBlockDevice(),"isBlockDevice"),isCharacterDevice:e(()=>f.isCharacterDevice(),"isCharacterDevice"),isSymbolicLink:e(()=>f.isSymbolicLink(),"isSymbolicLink"),isFIFO:e(()=>f.isFIFO(),"isFIFO"),isSocket:e(()=>f.isSocket(),"isSocket")}}catch(f){console.debug(`Failed to stat ${i.path}:`,f)}}}async read(){if(this.closed)throw new Error("Directory handle is closed");if(await this.initialize(),this.currentIndex>=this.entries.length)return null;let i=this.entries[this.currentIndex++];try{let f=await this.compositFs.stat(i.path);return{name:i.name,isFile:e(()=>f.isFile(),"isFile"),isDirectory:e(()=>f.isDirectory(),"isDirectory"),isBlockDevice:e(()=>f.isBlockDevice(),"isBlockDevice"),isCharacterDevice:e(()=>f.isCharacterDevice(),"isCharacterDevice"),isSymbolicLink:e(()=>f.isSymbolicLink(),"isSymbolicLink"),isFIFO:e(()=>f.isFIFO(),"isFIFO"),isSocket:e(()=>f.isSocket(),"isSocket")}}catch{return this.read()}}async close(){this.closed=!0,this.entries=[]}get path(){return this.dirPath}},l(Ms,"ay"),Ms);e(v4,"CompositeFsDir");var _4=v4,$s,E4=($s=class{constructor(i){vt(this,"delegate"),vt(this,"compositeFs"),vt(this,"_subFsFileDescriptor"),vt(this,"handleType","file"),vt(this,"_compositFsFileDescriptor",-1),this.delegate=i.fs,this._subFsFileDescriptor=i.subFsFileDescriptor,this._compositFsFileDescriptor=-1,this.compositeFs=i.compositeFs;let f=this._subFsFileDescriptor}get fsType(){return this.delegate.fileType()}get subFsFileDescriptor(){return this._subFsFileDescriptor}get fd(){return this._compositFsFileDescriptor}realize(i){if(this._compositFsFileDescriptor!==-1)throw new Error("was already realized");this._compositFsFileDescriptor=i}readableWebStream(i){throw new Error("Method not implemented.")}async appendFile(i,f){return await this.compositeFs.logOperationOnFileDescsriptor(this,"appendFile",{data:i,options:f}),await this.delegate.appendFile(this,i,f)}async chmod(i){return await this.compositeFs.logOperationOnFileDescsriptor(this,"chmod",{mode:i}),this.delegate.fchmod(this,i)}async chown(i,f){return await this.compositeFs.logOperationOnFileDescsriptor(this,"chown",{uid:i,gid:f}),this.delegate.fchown(this,i,f)}async close(){return await this.compositeFs.logOperationOnFileDescsriptor(this,"close",{}),this.compositeFs.close(this)}async datasync(){return await this.compositeFs.logOperationOnFileDescsriptor(this,"datasync",{}),this.delegate.dataSync(this)}async read(i,f,p,a){return await this.compositeFs.logOperationOnFileDescsriptor(this,"read",{targetBufferLength:i.length,offset:f,length:p,position:a}),await this.delegate.read(this,i,f,p,a)}async readv(i,f){return await this.compositeFs.logOperationOnFileDescsriptor(this,"readv",{buffers:i,position:f}),this.delegate.readv(this,i,f)}async stat(i){return await this.compositeFs.logOperationOnFileDescsriptor(this,"stat",{options:i}),this.delegate.fstat(this,i)}async truncate(i){return await this.compositeFs.logOperationOnFileDescsriptor(this,"truncate",{len:i}),this.delegate.ftruncate(this,i)}async utimes(i,f){return await this.compositeFs.logOperationOnFileDescsriptor(this,"utimes",{atime:i,mtime:f}),this.delegate.futimes(this,i,f)}async write(i,f,p,a){return await this.compositeFs.logOperationOnFileDescsriptor(this,"write",{buffer:i,offset:f,length:p,position:a}),this.delegate.write(this,i,f,p,a)}async writev(i,f){return await this.compositeFs.logOperationOnFileDescsriptor(this,"writev",{buffers:i,position:f}),this.delegate.writev(this,i,f)}async sync(){return await this.compositeFs.logOperationOnFileDescsriptor(this,"sync",{}),this.delegate.dataSync(this)}},l($s,"sy"),$s);e(E4,"CompositFsFileHandle");var Vd=E4,vI=Wt(Of(),1),Ws,S4=(Ws=class{constructor({name:i,parentFs:f,gitRoot:p}){vt(this,"compositFs"),vt(this,"gitRoot"),vt(this,"name"),this.name=i,this.compositFs=f,this.gitRoot=p}toStr(i){return typeof i=="string"?i:Buffer.isBuffer(i)?i.toString():i&&typeof i=="object"&&"fd"in i?`FileHandle(fd=${i.fd})`:String(i)}async open(i,f,p){throw new Error(`open not implemented for: ${this.toStr(i)}`)}async access(i,f){throw new Error(`access not implemented for: ${this.toStr(i)}`)}async stat(i,f){throw new Error(`lstat not implemented for: ${this.toStr(i)}`)}async lstat(i,f){throw new Error(`lstat not implemented for: ${this.toStr(i)}`)}async opendir(i,f){throw new Error(`opendir not implemented for: ${this.toStr(i)}`)}async link(i,f){throw new Error(`link not implemented for: ${this.toStr(i)}`)}async mkdir(i,f){throw new Error(`mkdir not implemented for: ${this.toStr(i)}`)}async readdir(i,f){throw new Error(`readdir not implemented for: ${this.toStr(i)}`)}async readlink(i,...f){throw new Error(`readlink not implemented for: ${this.toStr(i)}`)}async unlink(i){throw new Error(`unlink not implemented for: ${this.toStr(i)}`)}async rename(i,f){throw new Error(`rename not implemented for: ${this.toStr(i)}`)}async rmdir(i,...f){throw new Error(`rmdir not implemented for: ${this.toStr(i)}`)}async symlink(i,f,p){throw new Error(`symlink not implemented for: ${this.toStr(f)}`)}async lookup(i){throw new Error(`lookup not implemented for: ${this.toStr(i)}`)}resolvePath(i){throw new Error(`resolvePath not implemented for fd: ${i}`)}async close(i){this.compositFs.close(i)}async dataSync(i){throw new Error(`dataSync not implemented for: ${i.subFsFileDescriptor}`)}async read(i,f,p,a,n){throw new Error(`read not implemented for: ${i.subFsFileDescriptor}`)}async appendFile(i,f,p){throw new Error(`appendFile not implemented for: ${i.subFsFileDescriptor}`)}async fchmod(i,f){throw new Error(`fchmod not implemented for: ${i.subFsFileDescriptor}`)}async fchown(i,f,p){throw new Error(`fchown not implemented for: ${i.subFsFileDescriptor}`)}async ftruncate(i,f){throw new Error(`ftruncate not implemented for: ${i.subFsFileDescriptor}`)}async fstat(i,f){throw new Error(`fstat not implemented for: ${i.subFsFileDescriptor}`)}async futimes(i,f,p){throw new Error(`futimes not implemented for: ${i.subFsFileDescriptor}`)}async write(i,f,p,a,n){throw new Error(`write not implemented for: ${i.subFsFileDescriptor}`)}async writev(i,f,p){throw new Error(`writev not implemented for: ${i.subFsFileDescriptor}`)}async readv(i,f,p){throw new Error(`readv not implemented for: ${i.subFsFileDescriptor}`)}async readFile(i,f){throw new Error(`readFile not implemented for: ${this.toStr(i)}`)}async writeFile(i,f,p){throw new Error(`writeFile not implemented for: ${this.toStr(i)}`)}},l(Ws,"pw"),Ws);e(S4,"BaseCompositeSubFs");var If=S4,zs,A4=(zs=class extends If{constructor({name:i,parentFs:f,gitRoot:p}){if(super({name:i,parentFs:f,gitRoot:p}),vt(this,"openFh",new Map),vt(this,"memFs",(0,vI.createFsFromVolume)(new vI.Volume)),vt(this,"targetFs"),this.compositFs=f,this.gitRoot=p,this.compositFs.parentFs===void 0)throw new Error("PassThroughSubFs not allowed in root fs");this.targetFs=this.compositFs.parentFs}async responsible(i){return!0}fileType(){return 4}async open(i,f,p){let a=Oa(i),n=await this.targetFs.promises.open(i,f,p);return this.openFh.set(n.fd,n),new Vd({fs:this,compositeFs:this.compositFs,subFsFileDescriptor:n.fd,parentFsFileDescriptors:[n.fd]})}async access(i,f){return await this.targetFs.promises.access(i,f)}async stat(i,f){return this.targetFs.promises.stat(i,{bigint:!1})}async lstat(i,f){return this.targetFs.promises.lstat(i,{bigint:!1})}async opendir(i,f){return await this.targetFs.promises.opendir(i,f)}async link(i,f){return await this.targetFs.promises.link(i,f)}async mkdir(i,f){let p=typeof i=="string"?i:i.toString();return await this.targetFs.promises.mkdir(p,f)}async readdir(i,...f){return this.targetFs.promises.readdir(i,...f)}async readlink(i,...f){throw new Error("not implemented")}async unlink(i){return await this.targetFs.promises.unlink(i)}async rename(i,f){return await this.targetFs.promises.rename(i,f)}async rmdir(i,f){return await this.targetFs.promises.rmdir(i,f)}async symlink(i,f,p){return await this.targetFs.promises.symlink(i,f,p)}async lookup(i){throw new Error(`lookup is not implemented for: ${this.toStr(i)}`)}async close(i){let f=this.openFh.get(i.subFsFileDescriptor);f&&(await f.close(),this.openFh.delete(i.subFsFileDescriptor))}async dataSync(i){let f=this.openFh.get(i.subFsFileDescriptor);if(f)return await f.sync()}async read(i,f,p,a,n){let r=this.openFh.get(i.subFsFileDescriptor);if(r)return await r.read(f,p,a,n);throw new Error(`File handle not found: ${i.subFsFileDescriptor}`)}async fchmod(i,f){let p=this.openFh.get(i.subFsFileDescriptor);if(p)return await p.chmod(f)}async fchown(i,f,p){let a=this.openFh.get(i.subFsFileDescriptor);if(a)return await a.chown(f,p)}async write(i,f,p,a,n){let r=this.openFh.get(i.subFsFileDescriptor);if(r)return await r.write(f,p,a,n);throw new Error(`File handle not found: ${i.subFsFileDescriptor}`)}async ftruncate(i,f){let p=this.openFh.get(i.subFsFileDescriptor);if(p)return await p.truncate(f)}resolvePath(i){throw new Error(`resolvePath is not implemented: resolvePath(${i})`)}async fstat(i,f){let p=this.openFh.get(i.subFsFileDescriptor);if(p)return await p.stat(f);throw new Error(`File handle not found: ${i.subFsFileDescriptor}`)}async futimes(i,f,p){let a=this.openFh.get(i.subFsFileDescriptor);if(a)return await a.utimes(f,p)}async writev(i,f,p){let a=this.openFh.get(i.subFsFileDescriptor);if(a)return await a.writev(f,p??void 0);throw new Error(`File handle not found: ${i.subFsFileDescriptor}`)}async readv(i,f,p){let a=this.openFh.get(i.subFsFileDescriptor);if(a)return await a.readv(f,p??void 0);throw new Error(`File handle not found: ${i.subFsFileDescriptor}`)}async readFile(i,f){return typeof i=="string"||Buffer.isBuffer(i)?this.targetFs.readFile(i.toString(),f):super.readFile(i,f)}async writeFile(i,f,p){let a=typeof p=="object"&&p.flag?p.flag:"w",n=await this.targetFs.open(i,a);try{let r;if(typeof f=="string"){let u=typeof p=="object"&&p.encoding?p.encoding:"utf8";r=Buffer.from(f,u)}else Buffer.isBuffer(f)?r=f:r=Buffer.from(f);await n.write(r,0,r.length,0)}finally{await this.targetFs.close(n)}}},l(zs,"yw"),zs);e(A4,"PassThroughSubFs");var x5=A4,_I=Wt(Of(),1),Hs,R4=(Hs=class extends If{constructor({name:i,parentFs:f,gitRoot:p,passThroughFs:a}){super({name:i,parentFs:f,gitRoot:p}),vt(this,"openFh",new Map),vt(this,"memFs",(0,_I.createFsFromVolume)(new _I.Volume)),vt(this,"targetFs"),this.compositFs=f,this.gitRoot=p,this.targetFs=a}async responsible(i){return!0}fileType(){return 4}async open(i,f,p){let a=Oa(i),n=await this.targetFs.promises.open(i,f,p);return this.openFh.set(n.fd,n),new Vd({fs:this,compositeFs:this.compositFs,subFsFileDescriptor:n.fd,parentFsFileDescriptors:[]})}async access(i,f){return await this.targetFs.promises.access(i,f)}async stat(i,...f){return this.targetFs.promises.stat(i,{bigint:!1})}async lstat(i,...f){return this.targetFs.promises.lstat(i,{bigint:!1})}async opendir(i,f){let p=await this.targetFs.promises.opendir(i,f);return new _4(this.compositFs,i.toString())}async link(i,f){return await this.targetFs.promises.link(i,f)}async mkdir(i,f){await this.targetFs.promises.mkdir(i,f)}async readdir(i,...f){return this.targetFs.promises.readdir(i,...f)}async readlink(i,...f){throw new Error("not implemented")}async unlink(i){return await this.targetFs.promises.unlink(i)}async rename(i,f){return await this.targetFs.promises.rename(i,f)}async rmdir(i,f){return await this.targetFs.promises.rmdir(i,f)}async symlink(i,f,p){return await this.targetFs.promises.symlink(i,f,p)}async lookup(i){throw new Error(`lookup is not implemented for: ${this.toStr(i)}`)}async close(i){let f=this.openFh.get(i.subFsFileDescriptor);f&&(this.openFh.delete(i.subFsFileDescriptor),await f.close())}async dataSync(i){let f=this.openFh.get(i.subFsFileDescriptor);if(f)return await f.sync()}async read(i,f,p,a,n){let r=this.openFh.get(i.subFsFileDescriptor);if(r)return await r.read(f,p,a,n);throw new Error(`File handle not found: ${i.subFsFileDescriptor}`)}async fchmod(i,f){let p=this.openFh.get(i.subFsFileDescriptor);if(p)return await p.chmod(f)}async fchown(i,f,p){let a=this.openFh.get(i.subFsFileDescriptor);if(a)return await a.chown(f,p)}async write(i,f,p,a,n){let r=this.openFh.get(i.subFsFileDescriptor);if(r)return await r.write(f,p,a,n);throw new Error(`File handle not found: ${i.subFsFileDescriptor}`)}async ftruncate(i,f){let p=this.openFh.get(i.subFsFileDescriptor);if(p)return await p.truncate(f)}resolvePath(i){throw new Error(`resolvePath is not implemented: resolvePath(${i})`)}async fstat(i,f){let p=this.openFh.get(i.subFsFileDescriptor);if(p)return await p.stat(f);throw new Error(`File handle not found: ${i.subFsFileDescriptor}`)}async futimes(i,f,p){let a=this.openFh.get(i.subFsFileDescriptor);if(a)return await a.utimes(f,p)}async writev(i,f,p){let a=this.openFh.get(i.subFsFileDescriptor);if(a)return await a.writev(f,p??void 0);throw new Error(`File handle not found: ${i.subFsFileDescriptor}`)}async readv(i,f,p){let a=this.openFh.get(i.subFsFileDescriptor);if(a)return await a.readv(f,p??void 0);throw new Error(`File handle not found: ${i.subFsFileDescriptor}`)}async readFile(i,f){return this.targetFs.promises.readFile(i,f)}async writeFile(i,f,p){return this.targetFs.promises.writeFile(i,f,p)}},l(Hs,"mw"),Hs);e(R4,"PassThroughToAsyncFsSubFs");var I5=R4,qs,O4=(qs=class{constructor({name:i,parentFs:f,storageFs:p,gitRoot:a,defaultBranch:n="main"}){if(vt(this,"promises"),vt(this,"gitRoot"),vt(this,"ephemeralFilesFileSystem"),vt(this,"hiddenFilesFileSystem"),vt(this,"passThroughFileSystem"),vt(this,"subFilesystems",[]),vt(this,"parentFs"),vt(this,"name"),vt(this,"defaultBranch"),vt(this,"pathToFileDescriptors",new Map),vt(this,"openFileHandles",new Map),vt(this,"logOperation"),this.name=i,this.parentFs=f,this.gitRoot=a,this.defaultBranch=n,this.promises={access:this.access.bind(this),opendir:this.opendir.bind(this),mkdir:this.mkdir.bind(this),readdir:this.readdir.bind(this),open:this.open.bind(this),stat:this.stat.bind(this),lstat:this.lstat.bind(this),link:this.link.bind(this),readlink:this.readlink.bind(this),unlink:this.unlink.bind(this),rename:this.rename.bind(this),rmdir:this.rmdir.bind(this),symlink:this.symlink.bind(this),readFile:this.readFile.bind(this),writeFile:this.writeFile.bind(this),getFilehandle:this.getFilehandle.bind(this)},!f&&p){this.passThroughFileSystem=new I5({name:i+"-passthrough",passThroughFs:p,gitRoot:a,parentFs:this});return}if(!p&&f){this.passThroughFileSystem=new x5({name:i+"-passthrough",parentFs:this,gitRoot:a});return}throw new Error("invalid configuration")}getNextFileDescriptor(){let i=Array.from(this.openFileHandles.keys());return i.length===0?1:Math.max(...i)+1}setLoggger(i){this.logOperation=i}async logOperationOnFileDescsriptor(i,f,p){if(!this.logOperation)return;let a=[];for(let[n,r]of this.pathToFileDescriptors.entries())r.includes(i.fd)&&a.push(n);if(a.length!==0)return this.logOperation?.({fsName:i.delegate.name,fd:i,path:a[0],operation:f,operationArgs:p})}getFilehandle(i){return this.openFileHandles.get(i)}setEphemeralFilesSubFs(i){this.ephemeralFilesFileSystem=i}setHiddenFilesSubFs(i){this.hiddenFilesFileSystem=i}addSubFs(i){this.subFilesystems.push(i)}async getResponsibleFs(i){if(!i.toString().startsWith(this.gitRoot)&&this.gitRoot!=="./")throw new Error("tried to access a file ("+i+") outside of the legit folder: "+this.gitRoot);if(!this.hiddenFilesFileSystem)throw new Error(this.name+" intialize hidden fs first!");if(!this.ephemeralFilesFileSystem)throw new Error(this.name+" intialize ephemeral fs first!");if(await this.hiddenFilesFileSystem.responsible(i.toString()))return this.hiddenFilesFileSystem;if(await this.ephemeralFilesFileSystem.responsible(i.toString()))return this.ephemeralFilesFileSystem;for(let f of this.subFilesystems)if(await f.responsible(i.toString()))return f;return this.passThroughFileSystem}async access(i,f){let p=await this.getResponsibleFs(i);return await this.logOperation?.({fsName:p.name,path:i,operation:"access",operationArgs:{mode:f}}),p.access(i,f)}async opendir(i,f){await this.logOperation?.({fsName:this.name,path:i.toString(),operation:"opendir",operationArgs:{options:f}});let p=i.toString();if(!p.startsWith(this.gitRoot))throw new Error("tried to access a directory ("+p+") outside of the legit folder: "+this.gitRoot);return new _4(this,p)}async mkdir(i,f){let p=await this.getResponsibleFs(i);return await this.logOperation?.({fsName:p.name,path:i.toString(),operation:"mkdir",operationArgs:{options:f}}),p.mkdir(i,f)}async readdir(i,f){await this.logOperation?.({fsName:this.name,path:i.toString(),operation:"readdir",operationArgs:{options:f}});let p=new Set;for(let a of[...this.subFilesystems].reverse()){let n=await a.readdir(i,f);for(let r of n)await this.ephemeralFilesFileSystem?.responsible((i=="/"?"":i)+"/"+r)||p.add(r)}try{let a=await this.passThroughFileSystem.readdir(i,f);for(let n of a)await this.ephemeralFilesFileSystem?.responsible((i=="/"?"":i)+"/"+n)||p.add(n)}catch(a){if(a.code!=="ENOENT")throw new Error("error reading ephemeral fs: "+a)}try{let a=await this.ephemeralFilesFileSystem.readdir(i,f);for(let n of a)p.add(n)}catch(a){if(a.code!=="ENOENT")throw new Error("error reading ephemeral fs: "+a)}for(let a of p){let n=(i=="/"?"":i)+"/"+a;await this.hiddenFilesFileSystem.responsible(n)&&p.delete(a)}return Array.from(p)}async open(i,f,p){let a=await this.getResponsibleFs(i);await this.logOperation?.({fsName:a.name,path:i,operation:"open",operationArgs:{flags:f,mode:p}});let n=await a.open(i,f,p),r=this.getNextFileDescriptor();return n.realize(r),this.openFileHandles.set(r,n),this.pathToFileDescriptors.get(i)||this.pathToFileDescriptors.set(i,[]),this.pathToFileDescriptors.get(i).push(r),n}async close(i){try{await i.delegate.close(i)}catch(f){throw f}finally{for(let[f,p]of this.pathToFileDescriptors.entries()){let a=p.indexOf(i.fd);if(a!==-1){p.splice(a,1),p.length===0&&this.pathToFileDescriptors.delete(f);break}}this.openFileHandles.delete(i.fd)}}async stat(i,f){let p=i.toString(),a=await this.getResponsibleFs(i);return await this.logOperation?.({fsName:a.name,path:p,operation:"stat",operationArgs:{opts:f}}),a.stat(i)}async lstat(i,f){let p=await this.getResponsibleFs(i);return await this.logOperation?.({fsName:p.name,path:i.toString(),operation:"lstat",operationArgs:{opts:f}}),p.lstat(i,f)}async link(i,f){throw new Error("not implemented")}async readlink(i,f){throw new Error("not implemented")}async unlink(i){return(await this.getResponsibleFs(i)).unlink(i)}async rename(i,f){if(this.hiddenFilesFileSystem){if(await this.hiddenFilesFileSystem.responsible(bI(i.toString())))throw new Error("Renaming of hidden Files is not allowed "+i);if(await this.hiddenFilesFileSystem.responsible(bI(f.toString())))throw new Error("Renaming to hidden Files is not allowed "+f)}let p=await this.getResponsibleFs(i),a=await this.getResponsibleFs(f);if(p===a)return await this.logOperation?.({fsName:p.name,path:i.toString(),operation:"rename",operationArgs:{oldPath:i,newPath:f}}),p.rename(i,f);let n=await p.open(i.toString(),"r");try{let r=await p.fstat(n),u=Buffer.alloc(r.size);await p.read(n,u,0,r.size,0),await p.close(n),await a.writeFile(f.toString(),u,"utf8"),await p.unlink(i)}catch(r){try{await p.close(n)}catch{}throw r}}async rmdir(i,f){let p=await this.getResponsibleFs(i);return await this.logOperation?.({fsName:p.name,path:i.toString(),operation:"rmdir",operationArgs:{dirPath:i,options:f}}),p.rmdir(i,f)}async symlink(i,f,p){throw new Error("not implemented")}async readFile(i,f){await this.logOperation?.({fsName:this.name,path:i.toString(),operation:"readFile",operationArgs:{path:i,options:f}});let p=!0,a;if(typeof i=="number"){p=!1;let n=this.getFilehandle(i);if(!n)throw new Error("Invalid file descriptor");a=n}else if(typeof i=="string")a=await this.open(i,"r");else throw new Error("only filehandle and path are supported atm");try{let n=(await a.stat()).size;if(typeof n=="bigint"){if(n>BigInt(Number.MAX_SAFE_INTEGER))throw new Error("File too large to read into buffer");n=Number(n)}let r=Buffer.alloc(n),{bytesRead:u}=await a.read(r,0,n,0);if(f&&typeof f.encoding=="string")return r.slice(0,u).toString(f.encoding);if(typeof f=="string"){if(f==="utf8"||f==="utf-8")return r.slice(0,u).toString(f);throw new Error("Unsupported encoding: "+f)}return r.slice(0,u)}finally{a&&p&&await a.close()}}async writeFile(i,f,p){await this.logOperation?.({fsName:this.name,path:i.toString(),operation:"writeFile",operationArgs:{data:f,options:p}});let a=typeof i!="number",n,r,u,g="w";if(typeof p=="string"?r=p:p&&typeof p=="object"&&(r=p.encoding,u=p.mode,g=p.flag||"w"),typeof i=="number"){let h=this.getFilehandle(i);if(!h)throw new Error("Invalid file descriptor");n=h}else if(typeof i=="string")n=await this.open(i,g,u);else throw new Error("only filehandle and path are supported atm");try{let h;if(typeof f=="string")h=Buffer.from(f,r||"utf8");else if(f instanceof Buffer)h=f;else if(f instanceof Uint8Array)h=Buffer.from(f);else throw new Error("Invalid data type for writeFile");let d=0;for(;d<h.length;){let{bytesWritten:m}=await n.write(h,d,h.length-d,d);d+=m}}finally{n&&a&&await n.close()}}},l(qs,"gw"),qs);e(O4,"CompositeFs");var EI=O4,P5=Wt(rj(),1),Gs,k4=(Gs=class extends If{constructor({name:i,parentFs:f,gitRoot:p,hiddenFiles:a}){super({name:i,parentFs:f,gitRoot:p}),vt(this,"ig"),this.ig=(0,P5.default)(),this.ig.add(a)}async responsible(i){let f=i.replace(/\\/g,"/"),p=f.startsWith("./")?f.slice(2):f;return p=p.startsWith("/")?p.slice(1):p,p===""||p==="."?!1:this.ig.ignores(p)}fileType(){return 255}error(i){return new Error(`Access to hidden file is not allowed: ${this.toStr(i)}`)}async open(i,f,p){throw this.error(i)}async access(i){throw this.error(i)}async stat(i){throw this.error(i)}async lstat(i){throw this.error(i)}async opendir(i){throw this.error(i)}async link(i){throw this.error(i)}async mkdir(i){throw this.error(i)}async readdir(i){throw this.error(i)}async readlink(i){throw this.error(i)}async unlink(i){throw this.error(i)}async rename(i){throw this.error(i)}async rmdir(i){throw this.error(i)}async symlink(i,f){throw this.error(f)}async lookup(i){throw this.error(i)}resolvePath(i){throw new Error(`Access to hidden file is not allowed: resolvePath(${i})`)}async close(i){throw new Error("Access to hidden file is not allowed: close: "+i.subFsFileDescriptor)}async dataSync(i){throw new Error("Access to hidden file is not allowed: dataSync: "+i.subFsFileDescriptor)}async read(i,f,p,a,n){throw new Error("Access to hidden file is not allowed: readFileHandle: "+i.subFsFileDescriptor)}},l(Gs,"xw"),Gs);e(k4,"HiddenFileSubFs");var SI=k4,AI=Wt(Of(),1),j5=Wt(rj(),1),Vs,T4=(Vs=class extends If{constructor({name:i,parentFs:f,gitRoot:p,ephemeralPatterns:a}){super({name:i,parentFs:f,gitRoot:p}),vt(this,"openFh",new Map),vt(this,"memFs",(0,AI.createFsFromVolume)(new AI.Volume)),vt(this,"ig"),vt(this,"patterns"),this.compositFs=f,this.gitRoot=p,this.ig=(0,j5.default)(),this.ig.add(a),this.patterns=a}normalizePath(i){let f=typeof i=="string"?i:i.toString();return f.startsWith("/")?f:"/"+f}async responsible(i){let f=i.replace(/\\/g,"/"),p=f.startsWith("./")?f.slice(2):f;return p=p.startsWith("/")?p.slice(1):p,p===""||p==="."?!1:this.ig.ignores(p)}fileType(){return 5}async open(i,f,p){let a=this.normalizePath(i),n=Oa(a);n&&n!=="/"&&n!=="."&&await this.memFs.promises.mkdir(n,{recursive:!0});let r=await this.memFs.promises.open(a,f,p);return this.openFh.set(r.fd,r),new Vd({fs:this,compositeFs:this.compositFs,subFsFileDescriptor:r.fd,parentFsFileDescriptors:[r.fd]})}async access(i,f){let p=this.normalizePath(i);return await this.memFs.promises.access(p,f)}async stat(i,f){let p=this.normalizePath(i);return this.memFs.promises.stat(p,{bigint:!1})}async lstat(i,f){let p=this.normalizePath(i);return this.memFs.promises.lstat(p,{bigint:!1})}async opendir(i,f){let p=this.normalizePath(i);return await this.memFs.promises.opendir(p,f)}async link(i,f){let p=this.normalizePath(i),a=this.normalizePath(f);return await this.memFs.promises.link(p,a)}async mkdir(i,f){let p=this.normalizePath(i);if(!(typeof f=="object"&&f&&"recursive"in f&&f.recursive)){let a=Oa(p);if(a&&a!=="/"&&a!==".")try{await this.memFs.promises.stat(a)}catch{await this.memFs.promises.mkdir(a,{recursive:!0})}}await this.memFs.promises.mkdir(p,f)}async readdir(i,...f){let p=this.normalizePath(i),a=await this.memFs.promises.readdir(p,...f);return console.log("EPHEMERAL: READDIR: ",a),a}async readlink(i){throw new Error("readlink is not implemented for EphemeralFileSubFs")}async unlink(i){let f=this.normalizePath(i);return await this.memFs.promises.unlink(f)}async rename(i,f){let p=this.normalizePath(i),a=this.normalizePath(f);return await this.memFs.promises.rename(p,a)}async rmdir(i,f){let p=this.normalizePath(i);return await this.memFs.promises.rmdir(p,f)}async symlink(i,f,p){let a=this.normalizePath(i),n=this.normalizePath(f);return await this.memFs.promises.symlink(a,n,p)}async lookup(i){throw new Error(`lookup is not implemented for: ${this.toStr(i)}`)}async close(i){let f=this.openFh.get(i.subFsFileDescriptor);f&&(await f.close(),this.openFh.delete(i.subFsFileDescriptor))}async dataSync(i){let f=this.openFh.get(i.subFsFileDescriptor);if(f)return await f.datasync()}async read(i,f,p,a,n){let r=this.openFh.get(i.subFsFileDescriptor);if(r)return await r.read(f,p,a,n);throw new Error(`File handle not found: ${i.subFsFileDescriptor}`)}async fchmod(i,f){let p=this.openFh.get(i.subFsFileDescriptor);if(p)return await p.chmod(f)}async fchown(i,f,p){let a=this.openFh.get(i.subFsFileDescriptor);if(a)return await a.chown(f,p)}async write(i,f,p,a,n){let r=this.openFh.get(i.subFsFileDescriptor);if(r)return await r.write(f,p,a,n);throw new Error(`File handle not found: ${i.subFsFileDescriptor}`)}async ftruncate(i,f){let p=this.openFh.get(i.subFsFileDescriptor);if(p)return await p.truncate(f)}resolvePath(i){throw new Error(`resolvePath is not implemented: resolvePath(${i})`)}async fstat(i,f){let p=this.openFh.get(i.subFsFileDescriptor);if(p)return await p.stat(f);throw new Error(`File handle not found: ${i.subFsFileDescriptor}`)}async futimes(i,f,p){let a=this.openFh.get(i.subFsFileDescriptor);if(a)return await a.utimes(f,p)}async writev(i,f,p){let a=this.openFh.get(i.subFsFileDescriptor);if(a)return await a.writev(f,p??void 0);throw new Error(`File handle not found: ${i.subFsFileDescriptor}`)}async readv(i,f,p){let a=this.openFh.get(i.subFsFileDescriptor);if(a)return await a.readv(f,p??void 0);throw new Error(`File handle not found: ${i.subFsFileDescriptor}`)}async readFile(i,f){if(typeof i=="string"||Buffer.isBuffer(i)){let p=this.normalizePath(i);return this.memFs.promises.readFile(p,f)}return super.readFile(i,f)}async writeFile(i,f,p){let a=this.normalizePath(i),n=Oa(a);return n&&n!=="/"&&n!=="."&&await this.memFs.promises.mkdir(n,{recursive:!0}),this.memFs.promises.writeFile(a,f,p)}},l(Vs,"Ow"),Vs);e(T4,"EphemeralSubFs");var RI=T4,OI=Wt(pr(),1),kI=Wt(Of(),1),Zm=Wt(pr(),1),F4={type:"gitBranchesListVirtualFile",getStats:e(async({gitRoot:o,nodeFs:i})=>{let f=o+"/.git";try{return await i.stat(f)}catch{throw new Error(`ENOENT: no such file or directory, stat '${f}'`)}},"getStats"),getFile:e(async({gitRoot:o,nodeFs:i})=>{try{let f=(await Zm.default.listBranches({fs:i,dir:o})).filter(n=>n.indexOf("/")===-1),p=await Zm.default.currentBranch({fs:i,dir:o}),a=await Promise.all(f.map(async n=>{let r=await Zm.default.resolveRef({fs:i,dir:o,ref:n});return n}));return{type:"directory",content:a,mode:493,size:a}}catch(f){throw f}},"getFile"),rename:e(async o=>{throw new Error("not implemented")},"rename"),mkdir:e(async function(o){throw new Error("not implemented")},"mkdir")},Tt=Wt(pr(),1),In=Wt(pr(),1);async function Vi(o,i,f){try{return await In.default.resolveRef({fs:o,dir:i,ref:`refs/heads/${f}`})}catch{return}}l(Vi,"ci");e(Vi,"tryResolveRef");async function wi({dir:o,fs:i,treeOid:f,deletePathParts:p,addPathParts:a,addObj:n,addKeepIfEmpty:r,deleteKeepIfNotEmpty:u,keepFilename:g=".keep"}){let[h,...d]=a??[],[m,...y]=p??[],w=[];if(f){let{tree:_}=await In.default.readTree({fs:i,dir:o,oid:f});w=[..._]}if(h===m){let _=h;if(_===void 0)throw new Error("illegal arguement - called with out a path part");if(d.length===0)throw new Error("can not move into it self");if(y.length===0)throw new Error("can not move from it self");let S=w.findIndex(P=>P.path===_),T=(S!==-1?w[S]:void 0)?.oid,O=await wi({dir:o,fs:i,treeOid:T,addPathParts:d,deletePathParts:y,addObj:n,addKeepIfEmpty:r,deleteKeepIfNotEmpty:u});if(O===void 0)throw new Error("on the same path we expect an update - respectivly a newly created subTreeOid");let E=!1;if(O!==T){E=!0;let P={mode:"040000",path:_,oid:O,type:"tree"};S!==-1?w[S]=P:w.push(P)}if(f==null&&!E)throw new Error("Illegal state - if the currentOid is undefined - a new tree should have been created (an update should have happened)");if(E)return await In.default.writeTree({fs:i,dir:o,tree:w});if(f===void 0)throw new Error("currentOid should be set - since the sub tree didn't exist and ");return f}else{let _=!1,S;if(m){let T=w.findIndex(E=>E.path===m),O=T!==-1?w[T]:void 0;if(O===void 0)throw new Error("Element doesnt exist in tree");if(y.length>0){if(O&&O.type!=="tree")throw new Error("SubPart of the path for the obj to delete is not a tree");let E=await wi({dir:o,fs:i,treeOid:O.oid,addPathParts:void 0,deletePathParts:y,addObj:n,addKeepIfEmpty:r,deleteKeepIfNotEmpty:u});if(E===O.oid)throw new Error("in case of a delete we expect a different subtree oid");_=!0,E===void 0?w.splice(T,1):w[T]={mode:"040000",path:m,oid:E,type:"tree"}}else if(_=!0,w.splice(T,1),w.length===0&&r){let E=new Uint8Array(0),P=await In.default.writeBlob({fs:i,dir:o,blob:E});w.push({mode:"100644",oid:P,path:g,type:"blob"})}S=O}if(h){let T=w.findIndex(E=>E.path===h),O=T!==-1?w[T]:void 0;if(d.length>0){if(O&&O.type!=="tree")throw new Error("SubPart of the path for the obj to add is not a tree");let E=await wi({dir:o,fs:i,treeOid:O?.oid,addPathParts:d,deletePathParts:void 0,addObj:n,addKeepIfEmpty:r,deleteKeepIfNotEmpty:u});if(E===void 0)throw new Error("in case we add, we expect an update - respectivly a newly created subTreeOid");if(E!==O?.oid){_=!0;let P={mode:"040000",path:h,oid:E,type:"tree"};if(T!==-1)w[T]=P;else if(w.push(P),u&&w.length>1){let A=w.findIndex(x=>x.path===g);A!==-1&&w.splice(A,1)}}}else{if(_=!0,n){let E={mode:n.type==="tree"?"040000":"100644",path:h,oid:n.oid,type:n.type};if(T!==-1)w[T]=E;else{if(u&&w.length>0){let P=w.findIndex(A=>A.path===g);P!==-1&&w.splice(P,1)}w.push(E)}}if(r&&w.length===0){let E=new Uint8Array(0),P=await In.default.writeBlob({fs:i,dir:o,blob:E});w.push({mode:"100644",oid:P,path:g,type:"blob"})}}}if(w.length===0)return;if(_)return await In.default.writeTree({fs:i,dir:o,tree:w});if(f===void 0)throw new Error("currentOid should be set - since the sub tree didn't exist and ");return f}}l(wi,"ui");e(wi,"buildUpdatedTree");async function Us({filePath:o,gitRoot:i,nodeFs:f,commitSha:p,pathParams:a}){if(!a.filePath){let n=await In.default.readTree({fs:f,dir:i,oid:p});return{type:"tree",entries:n.tree.map(r=>r.path),oid:n.oid}}return(await In.default.walk({fs:f,dir:i,trees:[In.default.TREE({ref:p})],map:e(async(n,[r])=>{if(n===a.filePath&&r){let u=await r.type();if(u==="blob")return{type:"blob",oid:await r.oid()};if(u=="tree"){let g=await In.default.readTree({fs:f,dir:i,oid:await r.oid()});return{type:"tree",entries:g.tree.map(h=>h.path),oid:g.oid}}}},"map")})).find(n=>n!==void 0)}l(Us,"la");e(Us,"resolveGitObjAtPath");var ka,B4=(ka=class extends Error{constructor(i,f){super(i),vt(this,"code","ENOENT"),vt(this,"path"),this.name="ENOENTError",this.path=f,Object.setPrototypeOf(this,ka.prototype)}},l(ka,"Bd"),ka);e(B4,"ENOENTError");var kE=B4,j2={type:"gitBranchFileVirtualFile",getStats:e(async({gitRoot:o,nodeFs:i,filePath:f,cacheFs:p,pathParams:a})=>{if(a.branchName===void 0)throw new Error("branchName should be in pathParams");let n=await Vi(i,o,a.branchName);if(!n)throw new kE(`ENOENT: no such file or directory, stat '${f}'`,f);let r=await Us({filePath:f,gitRoot:o,nodeFs:i,commitSha:n,pathParams:a});if(!r)throw new kE(`ENOENT: no such file or directory, stat '${f}'`,f);let u=await Tt.default.readCommit({fs:i,dir:o,oid:n}),{commit:g}=u,h=await Tt.default.log({fs:i,dir:o,ref:n,filepath:a.filePath,depth:1}),d=g.committer.timestamp*1e3,m=h.length>0?h[0].commit.committer.timestamp*1e3:d;if(r.type==="tree")return{mode:420,size:0,isFile:e(()=>!0,"isFile"),isDirectory:e(()=>!0,"isDirectory"),isSymbolicLink:e(()=>!1,"isSymbolicLink"),isBlockDevice:e(()=>!1,"isBlockDevice"),isCharacterDevice:e(()=>!1,"isCharacterDevice"),isSocket:e(()=>!1,"isSocket"),isFIFO:e(()=>!1,"isFIFO"),isFileSync:e(()=>!0,"isFileSync"),isDirectorySync:e(()=>!1,"isDirectorySync"),dev:0,ino:0,nlink:1,uid:0,gid:0,rdev:0,blksize:4096,blocks:0,atimeMs:m,mtimeMs:m,ctimeMs:m,birthtimeMs:d,atime:new Date(m),mtime:new Date(m),ctime:new Date(m),birthtime:new Date(m)};{let{blob:y}=await Tt.default.readBlob({fs:i,dir:o,oid:r.oid});return{mode:420,size:y.length,isFile:e(()=>!0,"isFile"),isDirectory:e(()=>!1,"isDirectory"),isSymbolicLink:e(()=>!1,"isSymbolicLink"),isBlockDevice:e(()=>!1,"isBlockDevice"),isCharacterDevice:e(()=>!1,"isCharacterDevice"),isSocket:e(()=>!1,"isSocket"),isFIFO:e(()=>!1,"isFIFO"),isFileSync:e(()=>!0,"isFileSync"),isDirectorySync:e(()=>!1,"isDirectorySync"),dev:0,ino:0,nlink:1,uid:0,gid:0,rdev:0,blksize:4096,blocks:Math.ceil(y.length/4096),atimeMs:m,mtimeMs:m,ctimeMs:m,birthtimeMs:m,atime:new Date(m),mtime:new Date(m),ctime:new Date(m),birthtime:new Date(m)}}},"getStats"),getFile:e(async({filePath:o,gitRoot:i,nodeFs:f,cacheFs:p,pathParams:a})=>{if(a.branchName===void 0)throw new Error("branchName should be in pathParams");let n=[];try{let r=await Vi(f,i,a.branchName);if(!r){let g=await Tt.default.resolveRef({fs:f,dir:i,ref:"HEAD"});await Tt.default.branch({fs:f,dir:i,ref:a.branchName,object:g}),r=await Tt.default.resolveRef({fs:f,ref:`refs/heads/${a.branchName}`,dir:i})}let u=await Us({filePath:o,gitRoot:i,nodeFs:f,commitSha:r,pathParams:a});if(!u)return;if(u.type==="blob"){let{blob:g}=await Tt.default.readBlob({fs:f,dir:i,oid:u.oid});return{type:"file",content:Buffer.from(g),mode:420,size:g.length,oid:u.oid}}else{let g=[];try{let h=await p.promises.stat(o);if(h&&h.isDirectory()){let d=await p.promises.readdir(o,{withFileTypes:!1,encoding:"utf-8"});g.push(...d)}}catch{}return{type:"directory",content:Array.from(new Set([...g,...u.entries])),mode:493}}}catch{return}},"getFile"),unlink:e(async({filePath:o,gitRoot:i,nodeFs:f,cacheFs:p,pathParams:a,author:n})=>{if(!a.branchName)throw new Error("branchName should be in pathParams");if(!a.filePath)throw new Error("filePath should be in pathParams");let r=await Tt.default.resolveRef({fs:f,dir:i,ref:a.branchName}),u=await Tt.default.readTree({fs:f,dir:i,oid:r}),g=await wi({dir:i,fs:f,treeOid:u.oid,deletePathParts:a.filePath.split("/"),addPathParts:void 0,addObj:void 0,deleteKeepIfNotEmpty:!1,addKeepIfEmpty:!0,keepFilename:".keep"});if(g!==u.oid){let h=await Tt.default.commit({fs:f,dir:i,message:`Delete ${a.filePath}`,tree:g,noUpdateBranch:!0,parent:[r],author:n});await Tt.default.writeRef({fs:f,dir:i,ref:`refs/heads/${a.branchName}`,value:h,force:!0})}},"unlink"),writeFile:e(async({filePath:o,gitRoot:i,nodeFs:f,content:p,cacheFs:a,pathParams:n,author:r})=>{if(n.branchName===void 0)throw new Error("branchName should be in pathParams");if(n.filePath===void 0)throw new Error("filePath should be in pathParams");let u;typeof p=="string"?u=new TextEncoder().encode(p):u=new Uint8Array(p);let g=await Tt.default.writeBlob({fs:f,dir:i,blob:u}),h=await Vi(f,i,n.branchName);if(!h){let y=await Tt.default.resolveRef({fs:f,dir:i,ref:"HEAD"});await Tt.default.branch({fs:f,dir:i,ref:n.branchName,object:y}),h=await Tt.default.resolveRef({fs:f,dir:i,ref:`refs/heads/${n.branchName}`})}let d=await Tt.default.readTree({fs:f,dir:i,oid:h}),m=await wi({dir:i,fs:f,treeOid:d.oid,deletePathParts:void 0,addPathParts:n.filePath.split("/"),addObj:{type:"blob",oid:g},deleteKeepIfNotEmpty:!0,addKeepIfEmpty:!1,keepFilename:".keep"});if(m!==d.oid){let y=await Tt.default.commit({fs:f,dir:i,message:`\u{1F4BE} Change '${n.filePath}'`,tree:m,noUpdateBranch:!0,parent:[h],author:r});await Tt.default.writeRef({fs:f,dir:i,ref:`refs/heads/${n.branchName}`,value:y,force:!0})}},"writeFile"),rename:e(async function({filePath:o,newPath:i,gitRoot:f,nodeFs:p,pathParams:a,newPathParams:n,author:r}){if(a.branchName===void 0)throw new Error("branchName should be in pathParams");if(a.filePath===void 0)throw new Error("filePath should be in pathParams");if(n.branchName===void 0)throw new Error("branchName should be in newPathParams");if(n.filePath===void 0)throw new Error("filePath should be in newPathParams");let u=await Vi(p,f,a.branchName);if(!u)throw new Error("Invalid branch file path - source branch must exist");let g=await Vi(p,f,n.branchName);if(!g){let y=await Tt.default.resolveRef({fs:p,dir:f,ref:"HEAD"});await Tt.default.branch({fs:p,dir:f,ref:n.branchName,object:y}),g=await Tt.default.resolveRef({fs:p,dir:f,ref:`refs/heads/${n.branchName}`})}if(n.branchName!==a.branchName)throw new Error("cross branch move not implemented yet");let h=await Us({gitRoot:f,nodeFs:p,commitSha:u,filePath:o,pathParams:a});if(h===void 0)throw new Error("no obj at path exists");let d=await wi({dir:f,fs:p,deletePathParts:a.filePath.split("/"),addPathParts:n.filePath.split("/"),addObj:h,treeOid:g,addKeepIfEmpty:!0,deleteKeepIfNotEmpty:!0}),m=await Tt.default.readTree({fs:p,dir:f,oid:u});if(d!==m.oid){let y=await Tt.default.commit({fs:p,dir:f,message:`\u{1F500} Rename '${a.filePath}' to '${n.filePath}'`,tree:d,noUpdateBranch:!0,parent:[g],author:r});await Tt.default.writeRef({fs:p,dir:f,ref:`refs/heads/${n.branchName}`,value:y,force:!0})}},"rename"),mkdir:e(async function(o){if(o.pathParams.branchName===void 0)throw new Error("branchName should be in pathParams");if(o.pathParams.filePath===void 0)throw new Error("filePath should be in pathParams");try{throw await j2.getStats(o),new Error("Folder exists")}catch{}o.filePath.endsWith("/")&&(o.filePath=o.filePath.replace(/\/+$/,"")),o.pathParams&&typeof o.pathParams.filePath=="string"&&(o.pathParams.filePath=o.pathParams.filePath.replace(/\/+$/,""));let i=await Vi(o.nodeFs,o.gitRoot,o.pathParams.branchName);if(!i){let r=await Tt.default.resolveRef({fs:o.nodeFs,dir:o.gitRoot,ref:"HEAD"});await Tt.default.branch({fs:o.nodeFs,dir:o.gitRoot,ref:o.pathParams.branchName,object:r}),i=await Tt.default.resolveRef({fs:o.nodeFs,dir:o.gitRoot,ref:`refs/heads/${o.pathParams.branchName}`})}let f=await Tt.default.readTree({fs:o.nodeFs,dir:o.gitRoot,oid:i}),p=new Uint8Array(0),a=await Tt.default.writeBlob({fs:o.nodeFs,dir:o.gitRoot,blob:p}),n=await wi({dir:o.gitRoot,fs:o.nodeFs,treeOid:f.oid,deletePathParts:void 0,addPathParts:[...o.pathParams.filePath.split("/"),".keep"],addObj:{type:"blob",oid:a},deleteKeepIfNotEmpty:!0,addKeepIfEmpty:!0,keepFilename:".keep"});if(n!==f.oid){let r=await Tt.default.commit({fs:o.nodeFs,dir:o.gitRoot,message:`\u{1F4BE} Change '${o.pathParams.filePath}'`,tree:n,noUpdateBranch:!0,parent:[i],author:o.author});await Tt.default.writeRef({fs:o.nodeFs,dir:o.gitRoot,ref:`refs/heads/${o.pathParams.branchName}`,value:r,force:!0})}},"mkdir"),rmdir:e(async({filePath:o,gitRoot:i,nodeFs:f,cacheFs:p,pathParams:a,author:n})=>{if(!a.branchName)throw new Error("branchName should be in pathParams");if(!a.filePath)throw new Error("filePath should be in pathParams");let r=await Tt.default.resolveRef({fs:f,dir:i,ref:a.branchName}),u=await Tt.default.readTree({fs:f,dir:i,oid:r}),g=await wi({dir:i,fs:f,treeOid:u.oid,deletePathParts:a.filePath.split("/"),addPathParts:void 0,addObj:void 0,deleteKeepIfNotEmpty:!1,addKeepIfEmpty:!0,keepFilename:".keep"});if(g!==u.oid){let h=await Tt.default.commit({fs:f,dir:i,message:`Delete ${a.filePath}`,tree:g,noUpdateBranch:!0,parent:[r],author:n});await Tt.default.writeRef({fs:f,dir:i,ref:`refs/heads/${a.branchName}`,value:h,force:!0})}},"rmdir")},na=Wt(pr(),1),x4={type:"gitBranchHeadVirtualFile",getStats:e(async({gitRoot:o,nodeFs:i,pathParams:f})=>{if(f.branchName===void 0)throw new Error("branchName should be in pathParams");let p;try{p=await na.default.resolveRef({fs:i,dir:o,ref:f.branchName})}catch{p=await na.default.resolveRef({fs:i,dir:o,ref:`refs/heads/${f.branchName}`})}let a=await na.default.readCommit({fs:i,dir:o,oid:p}),{commit:n}=a,r=n.committer.timestamp*1e3;return{mode:420,size:40,isFile:e(()=>!0,"isFile"),isDirectory:e(()=>!1,"isDirectory"),isSymbolicLink:e(()=>!1,"isSymbolicLink"),isBlockDevice:e(()=>!1,"isBlockDevice"),isCharacterDevice:e(()=>!1,"isCharacterDevice"),isSocket:e(()=>!1,"isSocket"),isFIFO:e(()=>!1,"isFIFO"),isFileSync:e(()=>!0,"isFileSync"),isDirectorySync:e(()=>!1,"isDirectorySync"),dev:0,ino:0,nlink:1,uid:0,gid:0,rdev:0,blksize:4096,blocks:Math.ceil(40/4096),atimeMs:r,mtimeMs:r,ctimeMs:r,birthtimeMs:r,atime:new Date(r),mtime:new Date(r),ctime:new Date(r),birthtime:new Date(r)}},"getStats"),getFile:e(async({gitRoot:o,nodeFs:i,pathParams:f})=>{if(f.branchName===void 0)throw new Error("branchName should be in pathParams");try{let p;try{p=await na.default.resolveRef({fs:i,dir:o,ref:f.branchName})}catch{p=await na.default.resolveRef({fs:i,dir:o,ref:`refs/heads/${f.branchName}`})}return{type:"file",content:p+`
|
|
138
|
+
`,mode:420,size:p.length}}catch{return}},"getFile"),writeFile:e(async({filePath:o,gitRoot:i,nodeFs:f,content:p,cacheFs:a,pathParams:n})=>{if(console.log("gitBranchHeadVirtualFile writeFile called",{pathParams:n,content:p}),n.branchName===void 0)throw new Error("branchName should be in pathParams");let r=p.toString().trim();try{await na.default.readCommit({fs:f,dir:i,oid:r})}catch{throw new Error(`Commit ${r} does not exist in the repository`)}await na.default.writeRef({fs:f,dir:i,ref:"refs/heads/"+n.branchName,value:r,force:!0})},"writeFile"),rename(o){throw new Error("not implementsd")},mkdir:e(async function(o){throw new Error("not implemented")},"mkdir")},C5=Wt(pr(),1),L5={type:"gitBranchTipVirtualFile",getStats:e(async o=>{let i=o.gitRoot+"/.git";try{return await o.nodeFs.stat(i)}catch{throw new Error(`ENOENT: no such file or directory, stat '${i}'`)}},"getStats"),getFile:e(async({filePath:o,gitRoot:i,nodeFs:f,pathParams:p})=>{if(!p.branchName)throw new Error("branchName should be in pathParams");try{let a=await C5.default.resolveRef({fs:f,dir:i,ref:`refs/heads/${p.branchName}`});return{type:"file",content:a+`
|
|
139
|
+
`,mode:420,size:a.length+1}}catch{return}},"getFile"),rename(o){throw new Error("not implementsd")},mkdir:e(async function(o){throw new Error("not implemented")},"mkdir")},Qm=Wt(pr(),1),I4={type:"gitCommitFileVirtualFile",getStats:e(async({filePath:o,gitRoot:i,nodeFs:f,pathParams:p})=>{if(!p.sha_1_1_2)throw new Error("sha_1_1_2 should be in pathParams");if(!p.sha1_3__40)throw new Error("sha1_3__40 should be in pathParams");let a=p.sha_1_1_2+p.sha1_3__40,n=await Us({filePath:o,gitRoot:i,nodeFs:f,commitSha:a,pathParams:p});if(!n)throw new kE(`ENOENT: no such file or directory, stat '${o}'`,o);let r=await Qm.default.readCommit({fs:f,dir:i,oid:a}),{commit:u}=r,g=u.committer.timestamp*1e3;if(n.type==="tree")return{mode:420,size:0,isFile:e(()=>!0,"isFile"),isDirectory:e(()=>!0,"isDirectory"),isSymbolicLink:e(()=>!1,"isSymbolicLink"),isBlockDevice:e(()=>!1,"isBlockDevice"),isCharacterDevice:e(()=>!1,"isCharacterDevice"),isSocket:e(()=>!1,"isSocket"),isFIFO:e(()=>!1,"isFIFO"),isFileSync:e(()=>!0,"isFileSync"),isDirectorySync:e(()=>!1,"isDirectorySync"),dev:0,ino:0,nlink:1,uid:0,gid:0,rdev:0,blksize:4096,blocks:0,atimeMs:g,mtimeMs:g,ctimeMs:g,birthtimeMs:g,atime:new Date(g),mtime:new Date(g),ctime:new Date(g),birthtime:new Date(g)};{let{blob:h}=await Qm.default.readBlob({fs:f,dir:i,oid:n.oid});return{mode:420,size:h.length,isFile:e(()=>!0,"isFile"),isDirectory:e(()=>!1,"isDirectory"),isSymbolicLink:e(()=>!1,"isSymbolicLink"),isBlockDevice:e(()=>!1,"isBlockDevice"),isCharacterDevice:e(()=>!1,"isCharacterDevice"),isSocket:e(()=>!1,"isSocket"),isFIFO:e(()=>!1,"isFIFO"),isFileSync:e(()=>!0,"isFileSync"),isDirectorySync:e(()=>!1,"isDirectorySync"),dev:0,ino:0,nlink:1,uid:0,gid:0,rdev:0,blksize:4096,blocks:Math.ceil(h.length/4096),atimeMs:g,mtimeMs:g,ctimeMs:g,birthtimeMs:g,atime:new Date(g),mtime:new Date(g),ctime:new Date(g),birthtime:new Date(g)}}},"getStats"),getFile:e(async({filePath:o,gitRoot:i,nodeFs:f,pathParams:p})=>{if(!p.sha_1_1_2)throw new Error("sha_1_1_2 should be in pathParams");if(!p.sha1_3__40)throw new Error("sha1_3__40 should be in pathParams");let a=p.sha_1_1_2+p.sha1_3__40;try{let n=await Us({filePath:o,gitRoot:i,nodeFs:f,commitSha:a,pathParams:p});if(!n)return;if(n.type==="blob"){let{blob:r}=await Qm.default.readBlob({fs:f,dir:i,oid:n.oid});return{type:"file",content:Buffer.from(r),mode:420,size:r.length,oid:n.oid}}else return{type:"directory",content:Array.from(new Set([...n.entries.filter(r=>r!==".keep")])),mode:493}}catch{return}},"getFile"),rename(o){throw new Error("not implementsd")},mkdir:e(async function(o){throw new Error("not implemented")},"mkdir")},Xm=Wt(pr(),1);function P4(o,i,f){return o===0&&i===2&&f===0?"untracked":o===1&&i===0&&f===0?"deleted":o===1&&i===2&&f!==0?"modified":o===0&&i===2&&f===2?"added":"unknown"}l(P4,"nX");e(P4,"getFileStatus");var N5={type:"gitStatusVirtualFile",getStats:e(async o=>{let i=o.gitRoot+"/.git";try{return await o.nodeFs.stat(i)}catch{throw new Error(`ENOENT: no such file or directory, stat '${i}'`)}},"getStats"),getFile:e(async({gitRoot:o,nodeFs:i})=>{try{let f=await Xm.default.currentBranch({fs:i,dir:o})||"HEAD",p=await Xm.default.resolveRef({fs:i,dir:o,ref:"HEAD"}),a=(await Xm.default.statusMatrix({fs:i,dir:o})).filter(([,r,u,g])=>r!==u||u!==g).map(([r,u,g,h])=>({path:r,status:P4(u,g,h)})),n=JSON.stringify({branch:f,commit:p,clean:a.length===0,files:a},null,2);return{type:"file",content:n,mode:33188,size:Buffer.byteLength(n)}}catch(f){throw console.error(f),f}},"getFile"),rename(o){throw new Error("not implementsd")},mkdir:e(async function(o){throw new Error("not implemented")},"mkdir")},TE={type:"legitVirtualFile",getStats:e(async({gitRoot:o,nodeFs:i})=>{let f=o+"/.git";try{return await i.stat(f)}catch{throw new Error(`ENOENT: no such file or directory, stat '${f}'`)}},"getStats"),getFile:e(async({gitRoot:o,nodeFs:i})=>({type:"directory",content:[],mode:493,size:0}),"getFile"),rename(o){throw new Error("not implementsd")},mkdir:e(async function(o){throw new Error("not implemented")},"mkdir")},D5=[TE,N5,I4,F4,j2,x4,L5],Ks,j4=(Ks=class{constructor(i){this.routes=i,vt(this,"compiledRoutes");let f={},p=e((a,n)=>{if(typeof a.type=="string"){f[n]={handler:a,siblings:[]};let r=a}else{let r=[];for(let[u,g]of Object.entries(a))if(u==="."){if(f[n])throw new Error(`Conflict: multiple handlers for path '${n}', '.' and optional '[[parameter_name]]' defined?`);f[n]={handler:g,siblings:r}}else if(u.startsWith("[[")&&u.endsWith("]]")){if(f[n])throw new Error(`Conflict: multiple handlers for path '${n}', '.' and optional '[[parameter_name]]' defined?`);f[n]={handler:g,siblings:r},u.startsWith("[[...")?f[n?`${n}/${u}`:u]={handler:g,siblings:[]}:p(g,n?`${n}/${u}`:u)}else u.startsWith("[")&&u.endsWith("]")?u.startsWith("[...")?f[n?`${n}/${u}`:u]={handler:g,siblings:[]}:p(g,n?`${n}/${u}`:u):(r.push(u),p(g,n?`${n}/${u}`:u))}},"walk");for(let[a,n]of Object.entries(i))p(n,a);this.compiledRoutes=Object.entries(f).map(([a,n])=>{let r=[],u=a.split("/").map(g=>{if(g.startsWith("[[")&&g.endsWith("]]")){let h=g.slice(2,-2).replace(/^\.\.\./,"");return r.push(h),"(.*)"}if(g.startsWith("[")&&g.endsWith("]")){let h=g.slice(1,-1);return r.push(h),"([^/]+)"}return g.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}).join("/");return{regex:new RegExp(`^${u}$`),paramNames:r,staticSiblings:n.siblings,handler:n.handler}})}match(i){i.length>1&&i.endsWith("/")&&(i=i.replace(/\/+$/,""));for(let{regex:f,paramNames:p,handler:a,staticSiblings:n}of this.compiledRoutes){let r=i.match(f);if(!r)continue;let u={};for(let g=0;g<p.length;g++)u[p[g]]=decodeURIComponent(r[g+1]||"");return{handler:a,params:u,staticSiblings:n}}}},l(Ks,"Dv"),Ks);e(j4,"LegitPathRouter");var U5=j4,e0=Wt(pr(),1),TI={type:"gitCommitVirtualFolder",getStats:e(async o=>{let i=o.gitRoot+"/.git";try{return await o.nodeFs.stat(i)}catch{throw new Error(`ENOENT: no such file or directory, stat '${i}'`)}},"getStats"),getFile:e(async({filePath:o,gitRoot:i,nodeFs:f,pathParams:p})=>{let a=await e0.default.listBranches({fs:f,dir:i}),n=new Set,r=new Set;for(let h of a){let d=`refs/heads/${h}`;try{let m=await e0.default.resolveRef({fs:f,dir:i,ref:d});n.add(m)}catch{}}for(let h of n){let d=await e0.default.log({fs:f,dir:i,ref:h});for(let m of d)r.add(m.oid)}if(!p.sha_1_1_2){let h=new Set;for(let m of r)if(h.add(m.slice(0,2)),h.size>=256)break;let d=Array.from(h).sort();return{type:"directory",content:d,mode:493,size:d}}let u=new Set;for(let h of r)h.startsWith(p.sha_1_1_2)&&u.add(h.slice(2,40));let g=Array.from(u).sort();return{type:"directory",content:g,mode:493,size:g.length}},"getFile"),rename(o){throw new Error("not implementsd")},mkdir:e(async function(o){throw new Error("not implemented")},"mkdir")},Yr=Wt(pr(),1),M5=Wt(pr(),1),C4="-operation";async function sn(o,i,f){return(await M5.default.listBranches({fs:o,dir:i})).filter(p=>p.endsWith("__"+f+C4))[0]}l(sn,"ur");e(sn,"resolveOperationBranchName");var $5={type:"gitBranchOperationVirtualFile",getStats:e(async o=>{let{gitRoot:i,nodeFs:f,pathParams:p}=o,a;try{a=await Yr.default.resolveRef({fs:f,dir:i,ref:`refs/heads/${p.branchName}`})}catch{throw new Error(`Base Branch ${p.branchName} for operations does not exis`)}let n=await sn(f,i,p.branchName),r=!1;if(n)try{a=await Yr.default.resolveRef({fs:f,dir:i,ref:n}),r=!0}catch{try{a=await Yr.default.resolveRef({fs:f,dir:i,ref:`refs/heads/${n}`}),r=!0}catch{}}let u=await Yr.default.readCommit({fs:f,dir:i,oid:a}),{commit:g}=u,h=g.committer.timestamp*1e3;try{return{mode:420,size:40,atimeMs:h,mtimeMs:h,ctimeMs:h,birthtimeMs:h,atime:new Date(h),mtime:new Date(h),ctime:new Date(h),birthtime:new Date(h),isFile:e(()=>!0,"isFile"),isDirectory:e(()=>!1,"isDirectory"),isSymbolicLink:e(()=>!1,"isSymbolicLink"),isBlockDevice:e(()=>!1,"isBlockDevice"),isCharacterDevice:e(()=>!1,"isCharacterDevice"),isSocket:e(()=>!1,"isSocket"),isFIFO:e(()=>!1,"isFIFO"),isFileSync:e(()=>!0,"isFileSync"),isDirectorySync:e(()=>!1,"isDirectorySync"),dev:0,ino:0,nlink:1,uid:0,gid:0,rdev:0,blksize:4096,blocks:0}}catch{throw new Error("ENOENT: no such file or directory, stat operationHistory")}},"getStats"),getFile:e(async o=>{let{gitRoot:i,nodeFs:f,pathParams:p}=o,a=await sn(f,i,p.branchName),n,r=!1;return a?(n=await Yr.default.resolveRef({fs:f,dir:i,ref:`refs/heads/${a}`}),r=!0):n=await Yr.default.resolveRef({fs:f,dir:i,ref:`refs/heads/${p.branchName}`}),{type:"file",content:Buffer.from(n),mode:420,size:n.length}},"getFile"),writeFile:e(async({filePath:o,gitRoot:i,nodeFs:f,content:p,cacheFs:a,pathParams:n,author:r})=>{if(n.branchName===void 0)throw new Error("branchName should be in pathParams");let u;typeof p=="string"?u=new TextEncoder().encode(p):u=new Uint8Array(p);let g=await Yr.default.writeBlob({fs:f,dir:i,blob:u}),h=await Vi(f,i,n.branchName);if(!h)throw new Error("Invalid branch file path - branch doesn't exist");let d=await sn(f,i,n.branchName),m=!1;d||(d="legit/__"+n.branchName+C4,await Yr.default.branch({fs:f,dir:i,ref:d,object:h}),m=!0);let y=await Yr.default.resolveRef({fs:f,dir:i,ref:`refs/heads/${d}`}),w=await Yr.default.readTree({fs:f,dir:i,oid:h}),_;p instanceof ArrayBuffer?_=Buffer.from(p).toString("utf-8"):typeof p=="string"?_=p:p instanceof Uint8Array?_=Buffer.from(p).toString("utf-8"):_=String(p);let S=!1;if(!m){let O=await Yr.default.findMergeBase({fs:f,dir:i,oids:S?[y]:[y,h]});O.length===1&&O[0]===h&&(S=!0)}let T=await Yr.default.commit({fs:f,dir:i,message:_,tree:w.oid,noUpdateBranch:!0,author:r,parent:S?m?[h,h]:[y]:[y,h]});await Yr.default.writeRef({fs:f,dir:i,ref:`refs/heads/${d}`,value:T,force:!0})},"writeFile"),rename:e(async function({filePath:o,newPath:i,gitRoot:f,nodeFs:p,pathParams:a,newPathParams:n}){throw new Error("not implemented")},"rename"),mkdir:e(async function(o){throw new Error("not implemented")},"mkdir")},vs=Wt(pr(),1),L4={type:"gitBranchOperationsVirtualFile",getStats:e(async o=>{let{gitRoot:i,nodeFs:f,pathParams:p}=o;if(p.branchName===void 0)throw new Error("branchName should be in pathParams");let a=await sn(f,i,p.branchName),n,r=!1;if(a)try{n=await vs.default.resolveRef({fs:f,dir:i,ref:a}),r=!0}catch{try{n=await vs.default.resolveRef({fs:f,dir:i,ref:`refs/heads/${a}`}),r=!0}catch{throw new Error(`Base Branch ${p.branchName} for operations does not exis`)}}else try{n=await vs.default.resolveRef({fs:f,dir:i,ref:`refs/heads/${p.branchName}`})}catch{throw new Error(`Base Branch ${p.branchName} for operations does not exis`)}let u=await vs.default.readCommit({fs:f,dir:i,oid:n}),{commit:g}=u,h=g.committer.timestamp*1e3;try{return{mode:420,size:(r?await L4.getFile(o):void 0)?.content?.length??0,atimeMs:h,mtimeMs:h,ctimeMs:h,birthtimeMs:h,atime:new Date(h),mtime:new Date(h),ctime:new Date(h),birthtime:new Date(h),isFile:e(()=>!0,"isFile"),isDirectory:e(()=>!1,"isDirectory"),isSymbolicLink:e(()=>!1,"isSymbolicLink"),isBlockDevice:e(()=>!1,"isBlockDevice"),isCharacterDevice:e(()=>!1,"isCharacterDevice"),isSocket:e(()=>!1,"isSocket"),isFIFO:e(()=>!1,"isFIFO"),isFileSync:e(()=>!0,"isFileSync"),isDirectorySync:e(()=>!1,"isDirectorySync"),dev:0,ino:0,nlink:1,uid:0,gid:0,rdev:0,blksize:4096,blocks:0}}catch{throw new Error("ENOENT: no such file or directory, stat operationHistory")}},"getStats"),getFile:e(async o=>{let{gitRoot:i,nodeFs:f,pathParams:p}=o,a=await sn(f,i,p.branchName),n=[];if(a){let g=await vs.default.resolveRef({fs:f,dir:i,ref:`refs/heads/${a}`}),h=!1,d=g;for(;d&&!h;){let m=await vs.default.readCommit({fs:f,dir:i,oid:d});n.push({oid:m.oid,parentOids:m.commit.parent,message:m.commit.message,originBranchOid:"unset"}),d=m.commit.parent&&m.commit.parent.length>0?m.commit.parent[0]:null,m.commit.parent.length===2&&m.commit.parent[0]===m.commit.parent[1]&&(h=!0)}}let r;for(let g=n.length-1;g>=0;g--){let h=n[g];if(r===void 0){if(h.parentOids.length!==2&&h.parentOids[0]!==h.parentOids[1])throw new Error(`Operation commit ${h.oid} does not have two parents as expected`);r=h.parentOids[1]}h.parentOids.length===2&&(r=h.parentOids[1]),h.originBranchOid=r}let u=Buffer.from(JSON.stringify(n,null,2),"utf-8");return{type:"file",content:u,mode:420,size:u.length}},"getFile"),rename:e(async function(o){throw new Error("not implemented")},"rename"),mkdir:e(async function(o){throw new Error("not implemented")},"mkdir")},Bl=Wt(pr(),1),W5=new Set([" ","~","^",":","?","*","[","\\"]),z5=[/^\/|\/$/,/\/\//,/\.$/,/\.lock$/,/^@$/,/@\{/],N4="\u2002";function FE(o){let i=o.codePointAt(0);return!(i>=0&&i<=31||i===127||W5.has(o))}l(FE,"nB");e(FE,"isValidChar");function D4(o){let i="";for(let f of o)f===" "?i+=N4:FE(f)?i+=f:i+="%"+f.codePointAt(0);for(let f of z5)if(f.test(i))return Array.from(i).map(p=>FE(p)?p:"%"+p.codePointAt(0)).join("");return i}l(D4,"oB");e(D4,"encodeName");function U4(o){return o.replace(/%(\d+)/g,(i,f)=>String.fromCodePoint(parseInt(f,10))).replace(new RegExp(N4,"g")," ")}l(U4,"aB");e(U4,"decodeName");var H5={type:"getThreadName",getStats:e(async o=>{let{gitRoot:i,nodeFs:f,pathParams:p}=o,a;try{a=await Bl.default.resolveRef({fs:f,dir:i,ref:`refs/heads/${p.branchName}`})}catch{throw new Error(`Base Branch ${p.branchName} for operations does not exis`)}let n=await sn(f,i,p.branchName),r=!1;if(n)try{a=await Bl.default.resolveRef({fs:f,dir:i,ref:n}),r=!0}catch{try{a=await Bl.default.resolveRef({fs:f,dir:i,ref:`refs/heads/${n}`}),r=!0}catch{}}let u=await Bl.default.readCommit({fs:f,dir:i,oid:a}),{commit:g}=u,h=g.committer.timestamp*1e3;try{return{mode:420,size:40,atimeMs:h,mtimeMs:h,ctimeMs:h,birthtimeMs:h,atime:new Date(h),mtime:new Date(h),ctime:new Date(h),birthtime:new Date(h),isFile:e(()=>!0,"isFile"),isDirectory:e(()=>!1,"isDirectory"),isSymbolicLink:e(()=>!1,"isSymbolicLink"),isBlockDevice:e(()=>!1,"isBlockDevice"),isCharacterDevice:e(()=>!1,"isCharacterDevice"),isSocket:e(()=>!1,"isSocket"),isFIFO:e(()=>!1,"isFIFO"),isFileSync:e(()=>!0,"isFileSync"),isDirectorySync:e(()=>!1,"isDirectorySync"),dev:0,ino:0,nlink:1,uid:0,gid:0,rdev:0,blksize:4096,blocks:0}}catch{throw new Error("ENOENT: no such file or directory, stat operationHistory")}},"getStats"),getFile:e(async o=>{let{gitRoot:i,nodeFs:f,pathParams:p}=o,a=await sn(f,i,p.branchName),n;if(a){let r="legit/",u=`__${p.branchName}-operation`;return a.startsWith(r)&&a.endsWith(u)?n=a.slice(r.length,a.length-u.length):n=a,{type:"file",content:Buffer.from(U4(n)),mode:420,size:n.length}}return{type:"file",content:Buffer.from(""),mode:420,size:0}},"getFile"),writeFile:e(async({filePath:o,gitRoot:i,nodeFs:f,content:p,cacheFs:a,pathParams:n})=>{if(n.branchName===void 0)throw new Error("branchName should be in pathParams");let r=await sn(f,i,n.branchName);if(r){let u=`legit/${D4(p.toString())}__${n.branchName}-operation`;await Bl.default.renameBranch({fs:f,dir:i,oldref:r,ref:u}),r=u}},"writeFile"),rename:e(async function({filePath:o,newPath:i,gitRoot:f,nodeFs:p,pathParams:a,newPathParams:n}){throw new Error("not implemented")},"rename"),mkdir:e(async function(o){throw new Error("not implemented")},"mkdir")},xl=Wt(pr(),1),q5={type:"gitBranchHistory",getStats:e(async({gitRoot:o,nodeFs:i,pathParams:f})=>{if(f.branchName===void 0)throw new Error("branchName should be in pathParams");let p;try{p=await xl.default.resolveRef({fs:i,dir:o,ref:f.branchName})}catch{p=await xl.default.resolveRef({fs:i,dir:o,ref:`refs/heads/${f.branchName}`})}let a=await xl.default.readCommit({fs:i,dir:o,oid:p}),{commit:n}=a,r=n.committer.timestamp*1e3;return{mode:420,size:1e5,isFile:e(()=>!0,"isFile"),isDirectory:e(()=>!1,"isDirectory"),isSymbolicLink:e(()=>!1,"isSymbolicLink"),isBlockDevice:e(()=>!1,"isBlockDevice"),isCharacterDevice:e(()=>!1,"isCharacterDevice"),isSocket:e(()=>!1,"isSocket"),isFIFO:e(()=>!1,"isFIFO"),isFileSync:e(()=>!0,"isFileSync"),isDirectorySync:e(()=>!1,"isDirectorySync"),dev:0,ino:0,nlink:1,uid:0,gid:0,rdev:0,blksize:4096,blocks:Math.ceil(40/4096),atimeMs:r,mtimeMs:r,ctimeMs:r,birthtimeMs:r,atime:new Date(r),mtime:new Date(r),ctime:new Date(r),birthtime:new Date(r)}},"getStats"),getFile:e(async o=>{let{gitRoot:i,nodeFs:f,pathParams:p}=o,a=p.branchName,n=[];if(a){let u=await xl.default.resolveRef({fs:f,dir:i,ref:`refs/heads/${a}`}),g=!1,h=u;for(;h&&!g;){let d=await xl.default.readCommit({fs:f,dir:i,oid:h});n.push({oid:d.oid,...d.commit}),h=d.commit.parent[0]}}let r=Buffer.from(JSON.stringify(n,null,2),"utf-8");return{type:"file",content:r,mode:420,size:r.length}},"getFile"),rename:e(async o=>{throw new Error("not implemented")},"rename"),mkdir:e(async function(o){throw new Error("not implemented")},"mkdir")},oi=Wt(pr(),1),G5={type:"gitBranchOperationHeadVirtualFile",getStats:e(async({gitRoot:o,nodeFs:i,pathParams:f})=>{if(f.branchName===void 0)throw new Error("branchName should be in pathParams");let p=await sn(i,o,f.branchName);if(!p){let g=new Date(0);return{mode:420,size:0,isFile:e(()=>!0,"isFile"),isDirectory:e(()=>!1,"isDirectory"),isSymbolicLink:e(()=>!1,"isSymbolicLink"),isBlockDevice:e(()=>!1,"isBlockDevice"),isCharacterDevice:e(()=>!1,"isCharacterDevice"),isSocket:e(()=>!1,"isSocket"),isFIFO:e(()=>!1,"isFIFO"),isFileSync:e(()=>!0,"isFileSync"),isDirectorySync:e(()=>!1,"isDirectorySync"),dev:0,ino:0,nlink:1,uid:0,gid:0,rdev:0,blksize:4096,blocks:Math.ceil(40/4096),atimeMs:g.getTime(),mtimeMs:g.getTime(),ctimeMs:g.getTime(),birthtimeMs:g.getTime(),atime:g,mtime:g,ctime:g,birthtime:g}}let a;try{a=await oi.default.resolveRef({fs:i,dir:o,ref:p})}catch{a=await oi.default.resolveRef({fs:i,dir:o,ref:`refs/heads/${p}`})}let n=await oi.default.readCommit({fs:i,dir:o,oid:a}),{commit:r}=n,u=r.committer.timestamp*1e3;return{mode:420,size:40,isFile:e(()=>!0,"isFile"),isDirectory:e(()=>!1,"isDirectory"),isSymbolicLink:e(()=>!1,"isSymbolicLink"),isBlockDevice:e(()=>!1,"isBlockDevice"),isCharacterDevice:e(()=>!1,"isCharacterDevice"),isSocket:e(()=>!1,"isSocket"),isFIFO:e(()=>!1,"isFIFO"),isFileSync:e(()=>!0,"isFileSync"),isDirectorySync:e(()=>!1,"isDirectorySync"),dev:0,ino:0,nlink:1,uid:0,gid:0,rdev:0,blksize:4096,blocks:Math.ceil(40/4096),atimeMs:u,mtimeMs:u,ctimeMs:u,birthtimeMs:u,atime:new Date(u),mtime:new Date(u),ctime:new Date(u),birthtime:new Date(u)}},"getStats"),getFile:e(async({gitRoot:o,nodeFs:i,pathParams:f})=>{if(f.branchName===void 0)throw new Error("branchName should be in pathParams");let p=await sn(i,o,f.branchName);if(!p)return{type:"file",content:"",mode:420,size:0};try{let a;try{a=await oi.default.resolveRef({fs:i,dir:o,ref:p})}catch{a=await oi.default.resolveRef({fs:i,dir:o,ref:`refs/heads/${p}`})}return{type:"file",content:a+`
|
|
140
|
+
`,mode:420,size:a.length}}catch{return}},"getFile"),writeFile:e(async({filePath:o,gitRoot:i,nodeFs:f,content:p,cacheFs:a,pathParams:n})=>{if(n.branchName===void 0)throw new Error("branchName should be in pathParams");let r=await sn(f,i,n.branchName),u=await oi.default.resolveRef({fs:f,dir:i,ref:`refs/heads/${r}`});if(!r)throw new Error(`Operation branch name could not be resolved for branch ${n.branchName}`);let g=p.toString().trim(),h,d,m=!1;if(!u)throw new Error(`Operation branch ref could not be resolved for branch ${r}`);let y=u;for(;y&&!m;){let w=await oi.default.readCommit({fs:f,dir:i,oid:y});if(w.oid===g&&(h=w.oid),y=w.commit.parent&&w.commit.parent.length>0?w.commit.parent[0]:null,w.commit.parent.length===2){if(w.commit.parent[0]===w.commit.parent[1])m=!0;else if(h!==void 0){d=w.commit.parent[1];break}}}if(h===void 0)throw new Error(`Cant rollback to ${g} couldn't find newOperationBranchHead ${h}`);if(d===void 0)throw new Error(`Cant rollback to ${g} couldn't find newBranchHead ${d}`);await oi.default.writeRef({fs:f,dir:i,ref:"refs/heads/"+r,value:h,force:!0}),await oi.default.writeRef({fs:f,dir:i,ref:"refs/heads/"+n.branchName,value:d,force:!0})},"writeFile"),rename(o){throw new Error("not implementsd")},mkdir:e(async function(o){throw new Error("not implemented")},"mkdir")},Pn,ad=(Pn=class extends If{constructor({name:i,parentFs:f,gitStorageFs:p,gitRoot:a,virtualFiles:n=D5}){super({name:i,parentFs:f,gitRoot:a}),vt(this,"memFs"),vt(this,"openFh",{}),vt(this,"virtualFiles"),vt(this,"legitFileNames"),vt(this,"storageFs"),this.gitRoot=a,this.storageFs=p,this.memFs=(0,kI.createFsFromVolume)(new kI.Volume),this.virtualFiles=n,this.legitFileNames=["branches","commits"]}async getAuthor(){let i=await OI.default.getConfig({fs:this.storageFs,dir:this.gitRoot,path:"user.name"}),f=await OI.default.getConfig({fs:this.storageFs,dir:this.gitRoot,path:"user.email"}),p=Math.floor(Date.now()/1e3),a=new Date().getTimezoneOffset();return{name:i,email:f,date:p,timezoneOffset:a}}async responsible(i){return this.isLegitPath(i)}isLegitPath(i){return i.includes(`/${Pn.LEGIT_DIR}/`)||i.includes(`/${Pn.LEGIT_DIR}`)}getRouteHandler(i){let f=i.indexOf(`/${Pn.LEGIT_DIR}`);if(f===-1)throw new Error("Not a legit path");let p=i.slice(f+1);return Pn.pathRouter.match(p)}async open(i,f,p){let a=this.getRouteHandler(i);if(!a)throw new Error("Not a virtual legit file");if(a?.handler.writeFile===void 0&&(f.includes("w")||f.includes("a")))throw new Error(`Write operations not allowed for ${a?.handler.type}`);if(f.includes("x")&&a?.handler.type!=="gitBranchFileVirtualFile")throw new Error(`Exclusive operations not allowed for ${a?.handler.type}`);let n=await a.handler.getFile({cacheFs:this.memFs,filePath:i,gitRoot:this.gitRoot,nodeFs:this.storageFs,pathParams:a.params,author:await this.getAuthor()}),r=!1;for(let m of Object.values(this.openFh))m.path===i&&(r=!0);if((n||r)&&f.includes("x"))throw Object.assign(new Error(`EEXIST: file already exists, open '${i}'`),{code:"EEXIST",errno:-17,syscall:"open",path:i});if(!n&&!r&&!(f.includes("w")||f.includes("a")))throw Object.assign(new Error(`ENOENT: no such file or directory, open '${i}'`),{code:"ENOENT",errno:-2,syscall:"open",path:i});let u=Oa(i);if(await this.memFs.promises.mkdir(u,{recursive:!0}),n===void 0&&!f.includes("x")||n&&n.type==="file")try{let m=await this.memFs.promises.access(i)}catch{await this.memFs.promises.writeFile(i,"")}let g=await this.memFs.promises.open(i,f,p),h=g.fd,d=new Vd({fs:this,compositeFs:this.compositFs,subFsFileDescriptor:h,parentFsFileDescriptors:[]});return this.openFh[h]={path:i,mode:f,fh:g,openSha:n?.oid,readSha:void 0,unflushed:[]},(f.includes("x")||f.includes("w"))&&this.openFh[h].unflushed.push({length:0,start:0}),d}async mkdir(i,f){let p=i.toString(),a=this.getRouteHandler(p),n=f?{options:f}:{};try{await a?.handler.mkdir({cacheFs:this.memFs,filePath:i.toString(),nodeFs:this.storageFs,gitRoot:this.gitRoot,pathParams:a.params,...n,author:await this.getAuthor()});let r=typeof f=="object"?{...f,recursive:!0}:{recursive:!0};await this.memFs.promises.mkdir(i,r);let u=p.split("/"),g="";for(let h=1;h<=u.length;h++){g=u.slice(0,h).join("/");try{if((await this.memFs.promises.stat(g)).isDirectory()){let d=await this.memFs.promises.open(g,"r");this.openFh[d.fd]={path:g,mode:"r",fh:d,openSha:void 0,readSha:void 0,unflushed:[]}}}catch{}}}catch(r){throw r}}async access(i,f){await this.stat(i)}async futimes(i,f,p){let a=this.openFh[i.subFsFileDescriptor];if(!a)throw new Error("Invalid file handle");return await a.fh.utimes(f,p)}async fstat(i,f){let p=this.openFh[i.subFsFileDescriptor];if(!p)throw new Error("Invalid file handle");return this.stat(p.path,f)}async ftruncate(i,f){let p=this.openFh[i.subFsFileDescriptor];if(!p)throw new Error("Invalid file handle");return p.unflushed.push({length:0,start:0}),await p.fh.truncate(f)}async stat(i,f){let p=i.toString(),a=Object.values(this.openFh).find(r=>r.path===p&&r.unflushed.length>0);if(a&&a.unflushed.length>0)return await a.fh.stat(f);let n=this.getRouteHandler(p);if(!n)throw new Error(`ENOENT: no such file or directory, stat '${p}'`);return await n.handler.getStats({cacheFs:this.memFs,filePath:p,gitRoot:this.gitRoot,nodeFs:this.storageFs,pathParams:n.params,author:await this.getAuthor()})}async lstat(i,f){return this.stat(i,f)}async readdir(i,f){let p=i.toString();if(!this.isLegitPath(p))return[".legit"];let a=this.getRouteHandler(p);if(!a)throw new Error(`ENOENT: no such file or directory, scandir '${p}'`);let n=await a?.handler.getFile({cacheFs:this.memFs,filePath:p,gitRoot:this.gitRoot,nodeFs:this.storageFs,pathParams:a.params,author:await this.getAuthor()});if(n){if(n.type!=="directory")throw new Error("not a folder");let r=a?.staticSiblings??[],u=n.content;return u&&!Array.isArray(n.content)&&(u=JSON.parse(n.content)),Array.from(new Set([...u,...r])).sort((g,h)=>g.localeCompare(h,void 0,{numeric:!0,sensitivity:"base"}))}return[]}async read(i,f,p,a,n){let r=i.subFsFileDescriptor,u=this.openFh[r];if(!u)throw new Error("Invalid file handle");if(u.unflushed.length===0){let g=this.getRouteHandler(u.path),h=await g.handler.getFile({cacheFs:this.memFs,filePath:u.path,gitRoot:this.gitRoot,nodeFs:this.storageFs,pathParams:g?.params,author:await this.getAuthor()});if(!h?.content)throw new Error("couldnt access content");if(h.type!=="file")throw new Error("not a file");let d=typeof h.content=="string"?Buffer.from(h.content):h.content,m=typeof n=="number"?n:0,y=Math.min(m+a,d.length),w=Math.max(0,y-m);return d.copy(f,p,m,m+w),{bytesRead:w,buffer:f}}return await u.fh.read(f,p,a,n)}async write(i,f,p,a,n){let r=this.openFh[i.subFsFileDescriptor];if(!r)throw new Error("Invalid file handle");let u=r.mode;if(!u.includes("w")&&!u.includes("a")&&!u.includes("+"))throw Object.assign(new Error("EBADF: bad file descriptor, write"),{code:"EBADF",errno:-9,syscall:"write"});if(r.unflushed.length===0){let m=this.getRouteHandler(r.path),y=await m.handler.getFile({cacheFs:this.memFs,filePath:r.path,gitRoot:this.gitRoot,nodeFs:this.storageFs,pathParams:m.params,author:await this.getAuthor()});y&&y.oid&&(await this.memFs.promises.writeFile(r.path,y.content),r.readSha=y.oid)}let g=await r.fh.write(f,p,a,n),h=p??0,d=n??0;return r.unflushed.push({start:d,length:a||f.byteLength-h+d}),g}async close(i){let f=i.subFsFileDescriptor,p=this.openFh[f];if(!p)throw new Error("Invalid file handle");try{await this.dataSync(i),await p.fh.close()}finally{delete this.openFh[f]}}async dataSync(i){let f=i.subFsFileDescriptor,p=this.openFh[f];if(!p)throw new Error("Invalid file handle");if(p.unflushed.length>0){let a=this.getRouteHandler(p.path);if(a&&a.handler.writeFile){let n=await this.memFs.promises.readFile(p.path);await a.handler.writeFile({cacheFs:this.memFs,filePath:p.path,gitRoot:this.gitRoot,nodeFs:this.storageFs,content:n,pathParams:a.params,author:await this.getAuthor()})}p.unflushed=[]}}async readFile(i,f){let p=typeof i=="string"?i:Buffer.isBuffer(i)?i.toString():i.fd?`FileHandle(${i.fd})`:i.toString(),a=null;typeof f=="string"?a=f:f&&typeof f=="object"&&f.encoding&&(a=f.encoding);let n=await this.open(p,"r");try{let r=(await this.fstat(n)).size,u=Buffer.alloc(r);return await this.read(n,u,0,r,0),await this.close(n),a?u.toString(a):u}catch(r){try{await this.close(n)}catch{}throw r}}async writeFile(i,f,p){let a="w",n="utf8",r;typeof p=="string"?n=p:p&&typeof p=="object"&&(p.flag&&(a=String(p.flag)),p.encoding&&(n=p.encoding),p.mode&&(r=typeof p.mode=="string"?parseInt(p.mode,8):p.mode));let u=await this.open(i,a,r);try{let g;typeof f=="string"?g=Buffer.from(f,n):Buffer.isBuffer(f)?g=f:f instanceof Uint8Array?g=Buffer.from(f):ArrayBuffer.isView(f)?g=Buffer.from(f.buffer,f.byteOffset,f.byteLength):g=Buffer.from(f),await this.write(u,g,0,g.length,0)}finally{await this.close(u)}}async rename(i,f){let p=i.toString(),a=f.toString(),n=this.getRouteHandler(p),r=this.getRouteHandler(a);if(n?.handler.type==="gitBranchFileVirtualFile"&&r?.handler.type==="gitBranchFileVirtualFile"){let u=!0;try{await this.memFs.promises.access(a)}catch{u=!1}let g=!0;try{await this.stat(a)}catch{g=!1}let h=!0;try{await this.stat(p)}catch{h=!1}let d=!0;try{await this.memFs.promises.access(p)}catch{d=!1}if(d){let w=Oa(a);try{await this.memFs.promises.access(w)}catch{await this.memFs.promises.mkdir(w,{recursive:!0})}await this.memFs.promises.rename(i,f)}let m=this.getRouteHandler(p);if(!m)throw new Error("VF not found");let y=await m.handler.rename({cacheFs:this.memFs,filePath:p,gitRoot:this.gitRoot,nodeFs:this.storageFs,newPath:a,pathParams:m?.params??{},newPathParams:r?.params??{},author:await this.getAuthor()})}else throw new Error(`Unsupported rename operation from ${n?.handler.type} to ${r?.handler.type}`)}async fchmod(i,f){}async unlink(i){let f=i.toString(),p=this.getRouteHandler(f);if(p?.handler.unlink!==void 0)try{await p.handler.unlink({cacheFs:this.memFs,filePath:f,nodeFs:this.storageFs,gitRoot:this.gitRoot,pathParams:p.params,author:await this.getAuthor()})}catch(a){let n=!1;for(let[r,u]of Object.entries(this.openFh))u.path===f&&u.unflushed.length>0&&(n=!0);if(!n)throw a}finally{let a=!1;for(let[n,r]of Object.entries(this.openFh))r.path===f&&(a=!0,await r.fh.close(),delete this.openFh[Number(n)]);a&&await this.memFs.promises.unlink(f)}else throw new Error(`Cannot unlink ${p?.handler.type} files`)}async rmdir(i,...f){let p=i.toString(),a=this.getRouteHandler(p);if(a?.handler.rmdir!==void 0){await a.handler.rmdir({cacheFs:this.memFs,filePath:p,nodeFs:this.storageFs,gitRoot:this.gitRoot,pathParams:a.params,author:await this.getAuthor()});let n=!1;for(let[r,u]of Object.entries(this.openFh))u.path===p&&(n=!0,await u.fh.close(),delete this.openFh[Number(r)]);n&&await this.memFs.promises.rmdir(p,{recursive:!0})}else throw new Error(`Cannot rmdir
|
|
141
|
+
${a?.handler.type} directories`)}fileType(){return 10}},l(Pn,"hi"),Pn);e(ad,"GitSubFs"),vt(ad,"LEGIT_DIR",".legit"),vt(ad,"pathRouter",new U5({".legit":{".":TE,branches:{".":F4,"[branchName]":{".legit":{".":TE,operation:$5,head:x4,operationHead:G5,operationHistory:L4,threadName:H5,history:q5},"[[...filePath]]":j2}},commits:{".":TI,"[sha_1_1_2]":{".":TI,"[sha1_3__40]":{"[[...filePath]]":I4}}}}}));var V5=ad,Mr=Wt(pr(),1),K5=Wt(wD(),1);function M4(o){let i=[o];return{next(){return Promise.resolve({done:i.length===0,value:i.pop()})},return(){return i=[],{}},[Symbol.asyncIterator](){return this}}}l(M4,"Wre");e(M4,"fromValue");function $4(o){return o[Symbol.asyncIterator]?o[Symbol.asyncIterator]():o[Symbol.iterator]?o[Symbol.iterator]():o.next?o:M4(o)}l($4,"qre");e($4,"getIterator");async function C2(o,i){let f=$4(o);for(;;){let{value:p,done:a}=await f.next();if(p&&await i(p),a)break}f.return&&f.return()}l(C2,"U$");e(C2,"forAwait");function W4(o){let{PassThrough:i}=OD(),f=new i;return setTimeout(async()=>{await C2(o,p=>f.write(p)),f.end()},1),f}l(W4,"zre");e(W4,"asyncIteratorToStream");async function z4(o){let i=0,f=[];await C2(o,n=>{f.push(n),i+=n.byteLength});let p=new Uint8Array(i),a=0;for(let n of f)p.set(n,a),a+=n.byteLength;return p}l(z4,"Vre");e(z4,"collect");function H4(o){let i=Object.getOwnPropertyDescriptor(o,Symbol.asyncIterator);if(i&&i.enumerable)return o;let f=!1,p=[],a={};return o.on("data",n=>{p.push(n),a.resolve&&(a.resolve({value:p.shift(),done:!1}),a={})}),o.on("error",n=>{a.reject&&(a.reject(n),a={})}),o.on("end",()=>{f=!0,a.resolve&&(a.resolve({done:!0}),a={})}),{next(){return new Promise((n,r)=>{if(p.length===0&&f)return n({done:!0});if(p.length>0)return n({value:p.shift(),done:!1});p.length===0&&!f&&(a={resolve:n,reject:r})})},return(){o.removeAllListeners(),o.destroy&&o.destroy()},[Symbol.asyncIterator](){return this}}}l(H4,"Gre");e(H4,"fromNodeStream");async function q4({onProgress:o,url:i,method:f="GET",headers:p={},agent:a,body:n}){return n&&Array.isArray(n)?n=Buffer.from(await z4(n)):n&&(n=W4(n)),new Promise((r,u)=>{(0,K5.default)({url:i,method:f,headers:p,agent:a,body:n},(g,h)=>{if(g)return u(g);try{let d=H4(h);r({url:h.url,method:h.method,statusCode:h.statusCode,statusMessage:h.statusMessage,body:d,headers:h.headers})}catch(d){u(d)}})})}l(q4,"Yre");e(q4,"request");var J5={request:q4},t0=J5,Ni="legit",Y5=e(({fs:o,gitRepoPath:i,serverUrl:f="https://hub.legitcontrol.com",auth:p,anonymousBranch:a,authHeaderPrefix:n="Bearer "})=>{let r=!1;async function u(T){let O=await p.getMaxAccessTokenForBranch(T);if(!O)throw new Error(`No access token for branch ${T}`);await Mr.default.fetch({fs:o,http:t0,dir:i,singleBranch:!0,ref:`${T}`,remote:Ni,url:f,headers:{Authorization:`${n}${O}`}});let E=await Mr.default.resolveRef({fs:o,dir:i,ref:`${Ni}/${T}`});await Mr.default.writeRef({fs:o,dir:i,ref:`refs/heads/${T}`,value:E})}l(u,"f"),e(u,"loadBranch");let g=[];async function h(){let T=await p.getMaxAccessTokenForBranch("todo");await Mr.default.fetch({fs:o,http:t0,dir:i,remote:Ni,url:f,headers:{Authorization:`${n}${T}`}});let O=await Mr.default.listBranches({fs:o,dir:i});for(let E of O){if(E===a)continue;let P=`${Ni}/${E}`,A,x;try{A=await Mr.default.resolveRef({fs:o,dir:i,ref:E})}catch(U){console.log(`Could not resolve local ref ${E}:`,U)}try{x=await Mr.default.resolveRef({fs:o,dir:i,ref:P})}catch{x=void 0}if(A&&x){if(A!==x){let U=await Mr.default.findMergeBase({fs:o,dir:i,oids:[A,x]});if(U[0]!==A&&U[0]!==x){let M=await Mr.default.merge({fs:o,dir:i,ours:A,theirs:x,fastForwardOnly:!1,abortOnConflict:!1,author:{name:"Your Name",email:"your.email@example.com"},mergeDriver:e(async({branches:ee,contents:V,path:q})=>{let[G,re,ae]=V;return console.log(`Merging ${ee[0]} with ${ee[1]}...`),console.log("merged:"),console.log(V),{cleanMerge:!0,mergedText:ae===void 0?re:ae}},"mergeDriver")});await Mr.default.writeRef({fs:o,dir:i,ref:`refs/heads/${E}`,value:M.oid,force:!0})}U[0]===A?(console.log(`branch ${E} differs - remote ahaed, not behind`),await Mr.default.writeRef({fs:o,dir:i,ref:`refs/heads/${E}`,value:x,force:!0})):U[0]===x?(console.log(`branch ${E} differs - local ahead, not behind`),g.push(E)):(console.log(`branch ${E} differs - both changed`),g.push(E))}}else A&&!x&&g.push(E)}}l(h,"c"),e(h,"pull");async function d(T){if((await p.getUser()).type!=="local")for(let O of T){let E=await p.getMaxAccessTokenForBranch(O);await Mr.default.push({fs:o,http:t0,dir:i,remote:Ni,url:f,ref:O,headers:{Authorization:`Bearer ${E}`}})}}l(d,"d"),e(d,"push");let m=Promise.resolve();async function y(T){m=m.then(()=>d(T)),await m}l(y,"m"),e(y,"sequentialPush");async function w(){await Mr.default.getConfig({fs:o,dir:i,path:`remote.${Ni}.fetch`})||await Mr.default.setConfig({fs:o,dir:i,path:`remote.${Ni}.fetch`,value:`+refs/heads/*:refs/remotes/${Ni}/*`});try{await h();let T=[...new Set(g)].filter(O=>O.indexOf(a)===-1);await y(T),g=[]}catch(T){console.error("Error monitoring changes:",T)}finally{r&&setTimeout(w,1e3)}}l(w,"g"),e(w,"pullPushTick");function _(){r=!0,w()}l(_,"v"),e(_,"startSync");function S(){r=!1}return l(S,"_"),e(S,"stopSync"),{start:e(()=>{r||(_(),r=!0)},"start"),stop:e(()=>{S()},"stop"),isRunning:e(()=>r,"isRunning"),loadBranch:u,sequentialPush:y}},"createLegitSyncService"),Pr=Wt(pr(),1),FI=Wt(Of(),1),Z5=e((o,i)=>{let f={type:"local",id:"local",name:"Local User",email:"local@legitcontrol.com"};return{getUser:e(async()=>f,"getUser"),signInAnonymously:e(async()=>{f.type="anonymous",f.id=crypto.randomUUID(),f.email=`anonymous-sha1-${f.id}-@legitcontrol.com`},"signInAnonymously"),addAccessToken:e(async p=>{let a=await o.getUserTokens(f.id);a.accessTokens.push(p),await o.setUserTokens(f.id,a)},"addAccessToken"),getMaxAccessTokenForBranch:e(async p=>{let a=await o.getUserTokens(f.id);if(!(a.accessTokens===void 0||a.accessTokens.length===0))return a.accessTokens[0]},"getMaxAccessTokenForBranch")}},"createSessionManager"),BI=Wt(pr(),1);function G4(o){let i=JSON.stringify(o),f=new TextEncoder().encode(i),p="";return typeof btoa=="function"?p=btoa(String.fromCharCode(...f)):p=Buffer.from(f).toString("base64"),p.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}l(G4,"W$");e(G4,"encodeConfigJson");function V4(o){let i=o.replace(/-/g,"+").replace(/_/g,"/")+"===".slice((o.length+3)%4),f;typeof atob=="function"?f=atob(i):f=Buffer.from(i,"base64").toString("binary");let p=Uint8Array.from(f,n=>n.charCodeAt(0)),a=new TextDecoder().decode(p);return JSON.parse(a)}l(V4,"q$");e(V4,"decodeConfigJson");var xI="user.legit-tokens";function K4({storageFs:o,gitRoot:i}){return{getUserTokens:e(async f=>{let p=await BI.default.getConfig({fs:o,dir:i,path:xI});return p?V4(p):{accessTokens:[]}},"getUserTokens"),setUserTokens:e(async(f,p)=>await BI.default.setConfig({fs:o,dir:i,path:xI,value:G4(p)}),"setUserTokens")}}l(K4,"V$");e(K4,"createGitConfigTokenStore");async function L2(o){let i=new FI.Volume,f=(0,FI.createFsFromVolume)(i);return J4({...o,storageFs:o?.storageFs?o.storageFs:f,gitRoot:o?.gitRoot||"/"})}l(L2,"Yce");e(L2,"openLegitFsWithMemoryFs");async function J4({storageFs:o,gitRoot:i,anonymousBranch:f="anonymous",showKeepFiles:p=!1,initialAuthor:a={type:"local",id:"local",name:"Local User",email:"local@legitcontrol.com"},serverUrl:n="https://sync.legitcontrol.com",publicKey:r}){await o.promises.readdir(i+"/.git").then(()=>!0).catch(()=>!1)||(await Pr.default.init({fs:o,dir:"/",defaultBranch:f}),await o.promises.writeFile(i+"/.keep",""),await Pr.default.add({fs:o,dir:"/",filepath:".keep"}),await Pr.default.commit({fs:o,dir:"/",message:"Initial commit",author:{name:"Test",email:"test@example.com"}}),await Pr.default.setConfig({fs:o,dir:i,path:"init.defaultBranch",value:f})),await Pr.default.getConfig({fs:o,dir:i,path:"user.legit_user_id"})||await Pr.default.setConfig({fs:o,dir:i,path:"user.legit_user_id",value:a.name}),await Pr.default.getConfig({fs:o,dir:i,path:"user.name"})||await Pr.default.setConfig({fs:o,dir:i,path:"user.name",value:a.name}),await Pr.default.getConfig({fs:o,dir:i,path:"user.email"})||await Pr.default.setConfig({fs:o,dir:i,path:"user.email",value:a.email});let u=new EI({name:"root",parentFs:void 0,storageFs:o,gitRoot:i}),g=new RI({name:"root-ephemeral",parentFs:u,gitRoot:i,ephemeralPatterns:[]}),h=new SI({name:"root-hidden",parentFs:u,gitRoot:i,hiddenFiles:[]});u.setHiddenFilesSubFs(h),u.setEphemeralFilesSubFs(g);let d=new EI({name:"git",parentFs:u,storageFs:void 0,gitRoot:i,defaultBranch:f}),m=new V5({name:"git-subfs",parentFs:d,gitRoot:i,gitStorageFs:u}),y=p?[".git"]:[".git",".keep"],w=new SI({name:"git-hidden-subfs",parentFs:d,gitRoot:i,hiddenFiles:y}),_=new RI({name:"git-ephemeral-subfs",parentFs:d,gitRoot:i,ephemeralPatterns:["**/._*","**/.DS_Store","**/.AppleDouble/","**/.AppleDB","**/.AppleDesktop","**/.Spotlight-V100","**/.TemporaryItems","**/.Trashes","**/.fseventsd","**/.VolumeIcon.icns","**/.ql_disablethumbnails","**/.~lock.*","**/lu[0-9a-zA-Z]*.tmp","**/.metaentries.json.tmp","**/**.sb-**"]});d.addSubFs(m),d.setHiddenFilesSubFs(w),d.setEphemeralFilesSubFs(_);let S=K4({storageFs:o,gitRoot:i}),T=Z5(S,r),O=Y5({fs:o,gitRepoPath:i,serverUrl:n,auth:T,anonymousBranch:f}),E=Object.assign(d,{auth:T,sync:O,setLogger(P){u.setLoggger(P),d.setLoggger(P)},push:e(async P=>{},"push"),shareCurrentBranch:e(async()=>{if((await T.getUser()).type==="local")throw new Error("login first - for example anonymously using legitfs.auth.signInAnonymously()");let P=await E.getCurrentBranch();return P===f&&(P=(await T.getUser()).id,await Pr.default.renameBranch({fs:o,dir:i,oldref:f,ref:P})),await O.sequentialPush([P]),E.setCurrentBranch(P),P},"shareCurrentBranch"),setCurrentBranch:e(async P=>{(await Pr.default.listBranches({fs:o,dir:i})).includes(P)||await O?.loadBranch(P);let A=(await Pr.default.listBranches({fs:o,dir:i})).includes(P);if(console.log("branchExistsAfter",A),!A)throw new Error(`Branch ${P} does not exist`);await Pr.default.setConfig({fs:o,dir:i,path:"init.defaultBranch",value:P})},"setCurrentBranch"),getCurrentBranch:e(async()=>{let P=await Pr.default.getConfig({fs:o,dir:i,path:"init.defaultBranch"});if(!P)throw new Error("No current branch set");return P},"getCurrentBranch")});return E}l(J4,"Xre");e(J4,"openLegitFs");var _U=e(o=>async i=>{if(!i.path.includes(".legit/branches/")||(i.path.match(/\.legit/g)||[]).length>1)return;let[f,p]=i.path.split(".legit/branches/"),[a,...n]=p.split("/"),r=n.join("/"),u=f+".legit/branches/"+a+"/.legit/operation",g=JSON.stringify(i.operationArgs,(h,d)=>Buffer.isBuffer(d)?{__buffer__:d.toString("base64")}:d);await o.writeFile(u,`[${i.fsName}].${i.operation}(${i.fd?i.fd.fd+" - ":""}${i.path})
|
|
142
|
+
|
|
143
|
+
${g}
|
|
144
|
+
|
|
145
|
+
`)},"createFsOperationFileLogger");var eL=iu(N2(),1),X4=(0,Vr.createContext)({legitFs:null,loading:!0,head:null,rollback:l(async()=>{},"rollback")}),D2=l(()=>(0,Vr.useContext)(X4),"useLegitContext"),eU={gitRoot:"/"},tU=100,rU=l(({children:o,config:i=eU})=>{let[f,p]=(0,Vr.useState)(!0),[a,n]=(0,Vr.useState)(null),r=(0,Vr.useRef)(null),[u,g]=(0,Vr.useState)(),[h,d]=(0,Vr.useState)(null);(0,Vr.useEffect)(()=>{if(!f)return;l(async()=>{try{let w=await L2({gitRoot:i.gitRoot,serverUrl:i.serverUrl,publicKey:i.publicKey});i.publicKey&&(await w.auth.addAccessToken(i.publicKey),w.sync.start()),w&&n(w)}catch(w){g(w)}},"init")(),p(!1)},[]),(0,Vr.useEffect)(()=>{if(!a)return;window.legitFs=a;let y=setInterval(async()=>{let w=await a.getCurrentBranch();try{let _=await a.promises.readFile(`/.legit/branches/${w}/.legit/head`,"utf8");_!==r.current&&(r.current=_,d(_))}catch{}},tU);return()=>{clearInterval(y)}},[a]);let m=l(async y=>{if(!a){console.error("No legitFs instance available");return}try{let w=await a.getCurrentBranch();await a.promises.writeFile(`/.legit/branches/${w}/.legit/head`,y,"utf8")}catch(w){g(w)}},"rollback");return(0,eL.jsx)(X4.Provider,{value:{legitFs:a,loading:a===null,head:h,rollback:m,error:u},children:o})},"LegitProvider");var Ar=iu(Ay(),1);function nU(o,i){let{legitFs:f,error:p,head:a}=D2(),[n,r]=(0,Ar.useState)(null),[u,g]=(0,Ar.useState)([]),[h,d]=(0,Ar.useState)(!0),[m,y]=(0,Ar.useState)(),w=(0,Ar.useRef)(null),_=(0,Ar.useRef)(!1),S=(0,Ar.useRef)(!1);(0,Ar.useEffect)(()=>{if(!f)return;let E=!1;return l(async()=>{d(!0);try{let A=await f.getCurrentBranch(),x=`/.legit/branches/${A}${o}`,U=`/.legit/branches/${A}/.legit/history`,M=await f.promises.readFile(x,"utf8"),ee=await f.promises.readFile(U,"utf8").catch(()=>"");if(E)return;let V=[],q=ee;q&&(V=JSON.parse(q)),w.current===M&&(w.current=null),r(M),g(V),y(void 0)}catch(A){A?.code!=="ENOENT"?y(A):(r(null),g([]))}finally{E||d(!1)}},"load")(),()=>{E=!0}},[f,o,a]);let T=(0,Ar.useCallback)(async E=>{if(f)try{w.current=E;let P=await f.getCurrentBranch();await f.promises.writeFile(`/.legit/branches/${P}${o}`,E,"utf8"),r(E)}catch(P){throw w.current=null,y(P),P}},[f,o]);(0,Ar.useEffect)(()=>{_.current||S.current||!h&&n===null&&f&&i?.initialData&&(S.current=!0,_.current=!0,l(async()=>{try{await T(i.initialData)}catch(P){console.error("Failed to initialize file:",P),_.current=!1}finally{S.current=!1}},"initialize")())},[h,n,f,i?.initialData,T]);let O=(0,Ar.useCallback)(async E=>{if(!f)return"";try{let P=o.startsWith("/")?o.slice(1):o;return await f.promises.readFile(`/.legit/commits/${E.slice(0,2)}/${E.slice(2)}/${P}`,"utf8")}catch{return""}},[f,o]);return{data:n,setData:T,history:(0,Ar.useMemo)(()=>u,[u]),getPastState:O,loading:h,error:m??p,legitFs:f}}l(nU,"useLegitFile");export{rU as LegitProvider,D2 as useLegitContext,nU as useLegitFile};
|
|
146
|
+
/*! Bundled license information:
|
|
147
|
+
|
|
148
|
+
@jspm/core/nodelibs/browser/chunk-DtuTasat.js:
|
|
149
|
+
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
150
|
+
*/
|
|
151
|
+
/*! Bundled license information:
|
|
152
|
+
|
|
153
|
+
@jspm/core/nodelibs/browser/chunk-DtuTasat.js:
|
|
154
|
+
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
155
|
+
|
|
156
|
+
@jspm/core/nodelibs/browser/chunk-CcCWfKp1.js:
|
|
157
|
+
(*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
158
|
+
*/
|
|
159
|
+
/*! Bundled license information:
|
|
160
|
+
|
|
161
|
+
@jspm/core/nodelibs/browser/chunk-B738Er4n.js:
|
|
162
|
+
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
163
|
+
*/
|
|
164
|
+
/*! Bundled license information:
|
|
165
|
+
|
|
166
|
+
safe-buffer/index.js:
|
|
167
|
+
(*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
168
|
+
|
|
169
|
+
crc-32/crc32.js:
|
|
170
|
+
(*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com *)
|
|
171
|
+
|
|
172
|
+
simple-concat/index.js:
|
|
173
|
+
(*! simple-concat. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
174
|
+
|
|
175
|
+
simple-get/index.js:
|
|
176
|
+
(*! simple-get. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
177
|
+
*/
|
|
178
|
+
/*! Bundled license information:
|
|
179
|
+
|
|
180
|
+
react/cjs/react.production.js:
|
|
181
|
+
(**
|
|
182
|
+
* @license React
|
|
183
|
+
* react.production.js
|
|
184
|
+
*
|
|
185
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
186
|
+
*
|
|
187
|
+
* This source code is licensed under the MIT license found in the
|
|
188
|
+
* LICENSE file in the root directory of this source tree.
|
|
189
|
+
*)
|
|
190
|
+
|
|
191
|
+
react/cjs/react-jsx-runtime.production.js:
|
|
192
|
+
(**
|
|
193
|
+
* @license React
|
|
194
|
+
* react-jsx-runtime.production.js
|
|
195
|
+
*
|
|
196
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
197
|
+
*
|
|
198
|
+
* This source code is licensed under the MIT license found in the
|
|
199
|
+
* LICENSE file in the root directory of this source tree.
|
|
200
|
+
*)
|
|
201
|
+
*/
|