@opencloud-eu/web-client 2.2.0 → 2.4.0
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-43W1CNwK.cjs +6 -0
- package/dist/{index-CX217VSc.js → index-BEuG72fj.js} +2 -2
- package/dist/{index-DQ96P-uk.js → index-DcTD5HFk.js} +333 -324
- package/dist/{index-DUkXQ4_E.cjs → index-sA0pvHeb.cjs} +2 -2
- package/dist/web-client/graph/generated.cjs +1 -1
- package/dist/web-client/graph/generated.js +1 -1
- package/dist/web-client/ocs.cjs +12 -12
- package/dist/web-client/ocs.js +1814 -1806
- package/dist/web-client/webdav.cjs +1 -1
- package/dist/web-client/webdav.js +2 -2
- package/dist/web-client.cjs +1 -1
- package/dist/web-client.js +2 -2
- package/package.json +1 -1
- package/dist/index-re-e8Ljt.cjs +0 -6
package/dist/web-client/ocs.cjs
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
"use strict";var zi=Object.defineProperty;var Ji=(r,a,f)=>a in r?zi(r,a,{enumerable:!0,configurable:!0,writable:!0,value:f}):r[a]=f;var xe=(r,a,f)=>Ji(r,typeof a!="symbol"?a+"":a,f);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ee=require("../toString-hHr716Th.cjs"),te=require("../index-C6VnMvgz.cjs");var Qi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Zi=/^\w*$/;function ea(r,a){if(Ee.isArray(r))return!1;var f=typeof r;return f=="number"||f=="symbol"||f=="boolean"||r==null||Ee.isSymbol(r)?!0:Zi.test(r)||!Qi.test(r)||a!=null&&r in Object(a)}var ta="Expected a function";function Or(r,a){if(typeof r!="function"||a!=null&&typeof a!="function")throw new TypeError(ta);var f=function(){var u=arguments,v=a?a.apply(this,u):u[0],g=f.cache;if(g.has(v))return g.get(v);var A=r.apply(this,u);return f.cache=g.set(v,A)||g,A};return f.cache=new(Or.Cache||Ee.MapCache),f}Or.Cache=Ee.MapCache;var ra=500;function na(r){var a=Or(r,function(u){return f.size===ra&&f.clear(),u}),f=a.cache;return a}var ia=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,aa=/\\(\\)?/g,oa=na(function(r){var a=[];return r.charCodeAt(0)===46&&a.push(""),r.replace(ia,function(f,u,v,g){a.push(v?g.replace(aa,"$1"):u||f)}),a});function ua(r,a){return Ee.isArray(r)?r:ea(r,a)?[r]:oa(Ee.toString(r))}function sa(r){if(typeof r=="string"||Ee.isSymbol(r))return r;var a=r+"";return a=="0"&&1/r==-1/0?"-0":a}function fa(r,a){a=ua(a,r);for(var f=0,u=a.length;r!=null&&f<u;)r=r[sa(a[f++])];return f&&f==u?r:void 0}function la(r,a,f){var u=r==null?void 0:fa(r,a);return u===void 0?f:u}const mi=(r,a)=>{const f=new URL(r);f.pathname=[...f.pathname.split("/"),"cloud","capabilities"].filter(Boolean).join("/"),f.searchParams.append("format","json");const u=f.href;return{async getCapabilities(){const v=await a.get(u);return la(v,"data.ocs.data",{capabilities:null,version:null})}}};var rt={},Ke={exports:{}},Hr;function Br(){if(Hr)return Ke.exports;Hr=1;var r=typeof Reflect=="object"?Reflect:null,a=r&&typeof r.apply=="function"?r.apply:function(y,T,S){return Function.prototype.apply.call(y,T,S)},f;r&&typeof r.ownKeys=="function"?f=r.ownKeys:Object.getOwnPropertySymbols?f=function(y){return Object.getOwnPropertyNames(y).concat(Object.getOwnPropertySymbols(y))}:f=function(y){return Object.getOwnPropertyNames(y)};function u(o){console&&console.warn&&console.warn(o)}var v=Number.isNaN||function(y){return y!==y};function g(){g.init.call(this)}Ke.exports=g,Ke.exports.once=c,g.EventEmitter=g,g.prototype._events=void 0,g.prototype._eventsCount=0,g.prototype._maxListeners=void 0;var A=10;function E(o){if(typeof o!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof o)}Object.defineProperty(g,"defaultMaxListeners",{enumerable:!0,get:function(){return A},set:function(o){if(typeof o!="number"||o<0||v(o))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+o+".");A=o}}),g.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},g.prototype.setMaxListeners=function(y){if(typeof y!="number"||y<0||v(y))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+y+".");return this._maxListeners=y,this};function _(o){return o._maxListeners===void 0?g.defaultMaxListeners:o._maxListeners}g.prototype.getMaxListeners=function(){return _(this)},g.prototype.emit=function(y){for(var T=[],S=1;S<arguments.length;S++)T.push(arguments[S]);var F=y==="error",d=this._events;if(d!==void 0)F=F&&d.error===void 0;else if(!F)return!1;if(F){var K;if(T.length>0&&(K=T[0]),K instanceof Error)throw K;var X=new Error("Unhandled error."+(K?" ("+K.message+")":""));throw X.context=K,X}var x=d[y];if(x===void 0)return!1;if(typeof x=="function")a(x,this,T);else for(var ee=x.length,ne=q(x,ee),S=0;S<ee;++S)a(ne[S],this,T);return!0};function B(o,y,T,S){var F,d,K;if(E(T),d=o._events,d===void 0?(d=o._events=Object.create(null),o._eventsCount=0):(d.newListener!==void 0&&(o.emit("newListener",y,T.listener?T.listener:T),d=o._events),K=d[y]),K===void 0)K=d[y]=T,++o._eventsCount;else if(typeof K=="function"?K=d[y]=S?[T,K]:[K,T]:S?K.unshift(T):K.push(T),F=_(o),F>0&&K.length>F&&!K.warned){K.warned=!0;var X=new Error("Possible EventEmitter memory leak detected. "+K.length+" "+String(y)+" listeners added. Use emitter.setMaxListeners() to increase limit");X.name="MaxListenersExceededWarning",X.emitter=o,X.type=y,X.count=K.length,u(X)}return o}g.prototype.addListener=function(y,T){return B(this,y,T,!1)},g.prototype.on=g.prototype.addListener,g.prototype.prependListener=function(y,T){return B(this,y,T,!0)};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)}function N(o,y,T){var S={fired:!1,wrapFn:void 0,target:o,type:y,listener:T},F=C.bind(S);return F.listener=T,S.wrapFn=F,F}g.prototype.once=function(y,T){return E(T),this.on(y,N(this,y,T)),this},g.prototype.prependOnceListener=function(y,T){return E(T),this.prependListener(y,N(this,y,T)),this},g.prototype.removeListener=function(y,T){var S,F,d,K,X;if(E(T),F=this._events,F===void 0)return this;if(S=F[y],S===void 0)return this;if(S===T||S.listener===T)--this._eventsCount===0?this._events=Object.create(null):(delete F[y],F.removeListener&&this.emit("removeListener",y,S.listener||T));else if(typeof S!="function"){for(d=-1,K=S.length-1;K>=0;K--)if(S[K]===T||S[K].listener===T){X=S[K].listener,d=K;break}if(d<0)return this;d===0?S.shift():H(S,d),S.length===1&&(F[y]=S[0]),F.removeListener!==void 0&&this.emit("removeListener",y,X||T)}return this},g.prototype.off=g.prototype.removeListener,g.prototype.removeAllListeners=function(y){var T,S,F;if(S=this._events,S===void 0)return this;if(S.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):S[y]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete S[y]),this;if(arguments.length===0){var d=Object.keys(S),K;for(F=0;F<d.length;++F)K=d[F],K!=="removeListener"&&this.removeAllListeners(K);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(T=S[y],typeof T=="function")this.removeListener(y,T);else if(T!==void 0)for(F=T.length-1;F>=0;F--)this.removeListener(y,T[F]);return this};function P(o,y,T){var S=o._events;if(S===void 0)return[];var F=S[y];return F===void 0?[]:typeof F=="function"?T?[F.listener||F]:[F]:T?L(F):q(F,F.length)}g.prototype.listeners=function(y){return P(this,y,!0)},g.prototype.rawListeners=function(y){return P(this,y,!1)},g.listenerCount=function(o,y){return typeof o.listenerCount=="function"?o.listenerCount(y):V.call(o,y)},g.prototype.listenerCount=V;function V(o){var y=this._events;if(y!==void 0){var T=y[o];if(typeof T=="function")return 1;if(T!==void 0)return T.length}return 0}g.prototype.eventNames=function(){return this._eventsCount>0?f(this._events):[]};function q(o,y){for(var T=new Array(y),S=0;S<y;++S)T[S]=o[S];return T}function H(o,y){for(;y+1<o.length;y++)o[y]=o[y+1];o.pop()}function L(o){for(var y=new Array(o.length),T=0;T<y.length;++T)y[T]=o[T].listener||o[T];return y}function c(o,y){return new Promise(function(T,S){function F(K){o.removeListener(y,d),S(K)}function d(){typeof o.removeListener=="function"&&o.removeListener("error",F),T([].slice.call(arguments))}s(o,y,d,{once:!0}),y!=="error"&&m(o,F,{once:!0})})}function m(o,y,T){typeof o.on=="function"&&s(o,"error",y,T)}function s(o,y,T,S){if(typeof o.on=="function")S.once?o.once(y,T):o.on(y,T);else if(typeof o.addEventListener=="function")o.addEventListener(y,function F(d){S.once&&o.removeEventListener(y,F),T(d)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof o)}return Ke.exports}var $e={exports:{}},Gr;function Oe(){return Gr||(Gr=1,typeof Object.create=="function"?$e.exports=function(a,f){f&&(a.super_=f,a.prototype=Object.create(f.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}))}:$e.exports=function(a,f){if(f){a.super_=f;var u=function(){};u.prototype=f.prototype,a.prototype=new u,a.prototype.constructor=a}}),$e.exports}var nt,Kr;function Ei(){return Kr||(Kr=1,nt=Br().EventEmitter),nt}var it={},$r;function ze(){return $r||($r=1,function(r){Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var a={},f={};f.byteLength=C,f.toByteArray=P,f.fromByteArray=H;for(var u=[],v=[],g=typeof Uint8Array<"u"?Uint8Array:Array,A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",E=0,_=A.length;E<_;++E)u[E]=A[E],v[A.charCodeAt(E)]=E;v[45]=62,v[95]=63;function B(m){var s=m.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var o=m.indexOf("=");o===-1&&(o=s);var y=o===s?0:4-o%4;return[o,y]}function C(m){var s=B(m),o=s[0],y=s[1];return(o+y)*3/4-y}function N(m,s,o){return(s+o)*3/4-o}function P(m){var s,o=B(m),y=o[0],T=o[1],S=new g(N(m,y,T)),F=0,d=T>0?y-4:y,K;for(K=0;K<d;K+=4)s=v[m.charCodeAt(K)]<<18|v[m.charCodeAt(K+1)]<<12|v[m.charCodeAt(K+2)]<<6|v[m.charCodeAt(K+3)],S[F++]=s>>16&255,S[F++]=s>>8&255,S[F++]=s&255;return T===2&&(s=v[m.charCodeAt(K)]<<2|v[m.charCodeAt(K+1)]>>4,S[F++]=s&255),T===1&&(s=v[m.charCodeAt(K)]<<10|v[m.charCodeAt(K+1)]<<4|v[m.charCodeAt(K+2)]>>2,S[F++]=s>>8&255,S[F++]=s&255),S}function V(m){return u[m>>18&63]+u[m>>12&63]+u[m>>6&63]+u[m&63]}function q(m,s,o){for(var y,T=[],S=s;S<o;S+=3)y=(m[S]<<16&16711680)+(m[S+1]<<8&65280)+(m[S+2]&255),T.push(V(y));return T.join("")}function H(m){for(var s,o=m.length,y=o%3,T=[],S=16383,F=0,d=o-y;F<d;F+=S)T.push(q(m,F,F+S>d?d:F+S));return y===1?(s=m[o-1],T.push(u[s>>2]+u[s<<4&63]+"==")):y===2&&(s=(m[o-2]<<8)+m[o-1],T.push(u[s>>10]+u[s>>4&63]+u[s<<2&63]+"=")),T.join("")}var L={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */L.read=function(m,s,o,y,T){var S,F,d=T*8-y-1,K=(1<<d)-1,X=K>>1,x=-7,ee=o?T-1:0,ne=o?-1:1,ae=m[s+ee];for(ee+=ne,S=ae&(1<<-x)-1,ae>>=-x,x+=d;x>0;S=S*256+m[s+ee],ee+=ne,x-=8);for(F=S&(1<<-x)-1,S>>=-x,x+=y;x>0;F=F*256+m[s+ee],ee+=ne,x-=8);if(S===0)S=1-X;else{if(S===K)return F?NaN:(ae?-1:1)*(1/0);F=F+Math.pow(2,y),S=S-X}return(ae?-1:1)*F*Math.pow(2,S-y)},L.write=function(m,s,o,y,T,S){var F,d,K,X=S*8-T-1,x=(1<<X)-1,ee=x>>1,ne=T===23?Math.pow(2,-24)-Math.pow(2,-77):0,ae=y?0:S-1,ce=y?1:-1,Z=s<0||s===0&&1/s<0?1:0;for(s=Math.abs(s),isNaN(s)||s===1/0?(d=isNaN(s)?1:0,F=x):(F=Math.floor(Math.log(s)/Math.LN2),s*(K=Math.pow(2,-F))<1&&(F--,K*=2),F+ee>=1?s+=ne/K:s+=ne*Math.pow(2,1-ee),s*K>=2&&(F++,K/=2),F+ee>=x?(d=0,F=x):F+ee>=1?(d=(s*K-1)*Math.pow(2,T),F=F+ee):(d=s*Math.pow(2,ee-1)*Math.pow(2,T),F=0));T>=8;m[o+ae]=d&255,ae+=ce,d/=256,T-=8);for(F=F<<T|d,X+=T;X>0;m[o+ae]=F&255,ae+=ce,F/=256,X-=8);m[o+ae-ce]|=Z*128};/*!
|
|
1
|
+
"use strict";var oa=Object.defineProperty;var ua=(r,a,l)=>a in r?oa(r,a,{enumerable:!0,configurable:!0,writable:!0,value:l}):r[a]=l;var Ie=(r,a,l)=>ua(r,typeof a!="symbol"?a+"":a,l);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const me=require("../toString-hHr716Th.cjs"),te=require("../index-C6VnMvgz.cjs");var sa=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,fa=/^\w*$/;function la(r,a){if(me.isArray(r))return!1;var l=typeof r;return l=="number"||l=="symbol"||l=="boolean"||r==null||me.isSymbol(r)?!0:fa.test(r)||!sa.test(r)||a!=null&&r in Object(a)}var ca="Expected a function";function Dr(r,a){if(typeof r!="function"||a!=null&&typeof a!="function")throw new TypeError(ca);var l=function(){var u=arguments,w=a?a.apply(this,u):u[0],y=l.cache;if(y.has(w))return y.get(w);var A=r.apply(this,u);return l.cache=y.set(w,A)||y,A};return l.cache=new(Dr.Cache||me.MapCache),l}Dr.Cache=me.MapCache;var ha=500;function da(r){var a=Dr(r,function(u){return l.size===ha&&l.clear(),u}),l=a.cache;return a}var pa=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ya=/\\(\\)?/g,ga=da(function(r){var a=[];return r.charCodeAt(0)===46&&a.push(""),r.replace(pa,function(l,u,w,y){a.push(w?y.replace(ya,"$1"):u||l)}),a});function ba(r,a){return me.isArray(r)?r:la(r,a)?[r]:ga(me.toString(r))}function ma(r){if(typeof r=="string"||me.isSymbol(r))return r;var a=r+"";return a=="0"&&1/r==-1/0?"-0":a}function Ea(r,a){a=ba(a,r);for(var l=0,u=a.length;r!=null&&l<u;)r=r[ma(a[l++])];return l&&l==u?r:void 0}function va(r,a,l){var u=r==null?void 0:Ea(r,a);return u===void 0?l:u}const Ii=(r,a)=>{const l=new URL(r);l.pathname=[...l.pathname.split("/"),"cloud","capabilities"].filter(Boolean).join("/"),l.searchParams.append("format","json");const u=l.href;return{async getCapabilities(){const w=await a.get(u);return va(w,"data.ocs.data",{capabilities:null,version:null})}}};var st={},Ye={exports:{}},Yr;function Lr(){if(Yr)return Ye.exports;Yr=1;var r=typeof Reflect=="object"?Reflect:null,a=r&&typeof r.apply=="function"?r.apply:function(g,T,S){return Function.prototype.apply.call(g,T,S)},l;r&&typeof r.ownKeys=="function"?l=r.ownKeys:Object.getOwnPropertySymbols?l=function(g){return Object.getOwnPropertyNames(g).concat(Object.getOwnPropertySymbols(g))}:l=function(g){return Object.getOwnPropertyNames(g)};function u(o){console&&console.warn&&console.warn(o)}var w=Number.isNaN||function(g){return g!==g};function y(){y.init.call(this)}Ye.exports=y,Ye.exports.once=c,y.EventEmitter=y,y.prototype._events=void 0,y.prototype._eventsCount=0,y.prototype._maxListeners=void 0;var A=10;function E(o){if(typeof o!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof o)}Object.defineProperty(y,"defaultMaxListeners",{enumerable:!0,get:function(){return A},set:function(o){if(typeof o!="number"||o<0||w(o))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+o+".");A=o}}),y.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},y.prototype.setMaxListeners=function(g){if(typeof g!="number"||g<0||w(g))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+g+".");return this._maxListeners=g,this};function _(o){return o._maxListeners===void 0?y.defaultMaxListeners:o._maxListeners}y.prototype.getMaxListeners=function(){return _(this)},y.prototype.emit=function(g){for(var T=[],S=1;S<arguments.length;S++)T.push(arguments[S]);var F=g==="error",d=this._events;if(d!==void 0)F=F&&d.error===void 0;else if(!F)return!1;if(F){var K;if(T.length>0&&(K=T[0]),K instanceof Error)throw K;var X=new Error("Unhandled error."+(K?" ("+K.message+")":""));throw X.context=K,X}var x=d[g];if(x===void 0)return!1;if(typeof x=="function")a(x,this,T);else for(var ee=x.length,re=q(x,ee),S=0;S<ee;++S)a(re[S],this,T);return!0};function B(o,g,T,S){var F,d,K;if(E(T),d=o._events,d===void 0?(d=o._events=Object.create(null),o._eventsCount=0):(d.newListener!==void 0&&(o.emit("newListener",g,T.listener?T.listener:T),d=o._events),K=d[g]),K===void 0)K=d[g]=T,++o._eventsCount;else if(typeof K=="function"?K=d[g]=S?[T,K]:[K,T]:S?K.unshift(T):K.push(T),F=_(o),F>0&&K.length>F&&!K.warned){K.warned=!0;var X=new Error("Possible EventEmitter memory leak detected. "+K.length+" "+String(g)+" listeners added. Use emitter.setMaxListeners() to increase limit");X.name="MaxListenersExceededWarning",X.emitter=o,X.type=g,X.count=K.length,u(X)}return o}y.prototype.addListener=function(g,T){return B(this,g,T,!1)},y.prototype.on=y.prototype.addListener,y.prototype.prependListener=function(g,T){return B(this,g,T,!0)};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)}function N(o,g,T){var S={fired:!1,wrapFn:void 0,target:o,type:g,listener:T},F=C.bind(S);return F.listener=T,S.wrapFn=F,F}y.prototype.once=function(g,T){return E(T),this.on(g,N(this,g,T)),this},y.prototype.prependOnceListener=function(g,T){return E(T),this.prependListener(g,N(this,g,T)),this},y.prototype.removeListener=function(g,T){var S,F,d,K,X;if(E(T),F=this._events,F===void 0)return this;if(S=F[g],S===void 0)return this;if(S===T||S.listener===T)--this._eventsCount===0?this._events=Object.create(null):(delete F[g],F.removeListener&&this.emit("removeListener",g,S.listener||T));else if(typeof S!="function"){for(d=-1,K=S.length-1;K>=0;K--)if(S[K]===T||S[K].listener===T){X=S[K].listener,d=K;break}if(d<0)return this;d===0?S.shift():G(S,d),S.length===1&&(F[g]=S[0]),F.removeListener!==void 0&&this.emit("removeListener",g,X||T)}return this},y.prototype.off=y.prototype.removeListener,y.prototype.removeAllListeners=function(g){var T,S,F;if(S=this._events,S===void 0)return this;if(S.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):S[g]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete S[g]),this;if(arguments.length===0){var d=Object.keys(S),K;for(F=0;F<d.length;++F)K=d[F],K!=="removeListener"&&this.removeAllListeners(K);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(T=S[g],typeof T=="function")this.removeListener(g,T);else if(T!==void 0)for(F=T.length-1;F>=0;F--)this.removeListener(g,T[F]);return this};function P(o,g,T){var S=o._events;if(S===void 0)return[];var F=S[g];return F===void 0?[]:typeof F=="function"?T?[F.listener||F]:[F]:T?L(F):q(F,F.length)}y.prototype.listeners=function(g){return P(this,g,!0)},y.prototype.rawListeners=function(g){return P(this,g,!1)},y.listenerCount=function(o,g){return typeof o.listenerCount=="function"?o.listenerCount(g):V.call(o,g)},y.prototype.listenerCount=V;function V(o){var g=this._events;if(g!==void 0){var T=g[o];if(typeof T=="function")return 1;if(T!==void 0)return T.length}return 0}y.prototype.eventNames=function(){return this._eventsCount>0?l(this._events):[]};function q(o,g){for(var T=new Array(g),S=0;S<g;++S)T[S]=o[S];return T}function G(o,g){for(;g+1<o.length;g++)o[g]=o[g+1];o.pop()}function L(o){for(var g=new Array(o.length),T=0;T<g.length;++T)g[T]=o[T].listener||o[T];return g}function c(o,g){return new Promise(function(T,S){function F(K){o.removeListener(g,d),S(K)}function d(){typeof o.removeListener=="function"&&o.removeListener("error",F),T([].slice.call(arguments))}s(o,g,d,{once:!0}),g!=="error"&&m(o,F,{once:!0})})}function m(o,g,T){typeof o.on=="function"&&s(o,"error",g,T)}function s(o,g,T,S){if(typeof o.on=="function")S.once?o.once(g,T):o.on(g,T);else if(typeof o.addEventListener=="function")o.addEventListener(g,function F(d){S.once&&o.removeEventListener(g,F),T(d)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof o)}return Ye.exports}var Xe={exports:{}},Xr;function Be(){return Xr||(Xr=1,typeof Object.create=="function"?Xe.exports=function(a,l){l&&(a.super_=l,a.prototype=Object.create(l.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}))}:Xe.exports=function(a,l){if(l){a.super_=l;var u=function(){};u.prototype=l.prototype,a.prototype=new u,a.prototype.constructor=a}}),Xe.exports}var ft,zr;function Fi(){return zr||(zr=1,ft=Lr().EventEmitter),ft}var lt={},Jr;function rt(){return Jr||(Jr=1,function(r){Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var a={},l={};l.byteLength=C,l.toByteArray=P,l.fromByteArray=G;for(var u=[],w=[],y=typeof Uint8Array<"u"?Uint8Array:Array,A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",E=0,_=A.length;E<_;++E)u[E]=A[E],w[A.charCodeAt(E)]=E;w[45]=62,w[95]=63;function B(m){var s=m.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var o=m.indexOf("=");o===-1&&(o=s);var g=o===s?0:4-o%4;return[o,g]}function C(m){var s=B(m),o=s[0],g=s[1];return(o+g)*3/4-g}function N(m,s,o){return(s+o)*3/4-o}function P(m){var s,o=B(m),g=o[0],T=o[1],S=new y(N(m,g,T)),F=0,d=T>0?g-4:g,K;for(K=0;K<d;K+=4)s=w[m.charCodeAt(K)]<<18|w[m.charCodeAt(K+1)]<<12|w[m.charCodeAt(K+2)]<<6|w[m.charCodeAt(K+3)],S[F++]=s>>16&255,S[F++]=s>>8&255,S[F++]=s&255;return T===2&&(s=w[m.charCodeAt(K)]<<2|w[m.charCodeAt(K+1)]>>4,S[F++]=s&255),T===1&&(s=w[m.charCodeAt(K)]<<10|w[m.charCodeAt(K+1)]<<4|w[m.charCodeAt(K+2)]>>2,S[F++]=s>>8&255,S[F++]=s&255),S}function V(m){return u[m>>18&63]+u[m>>12&63]+u[m>>6&63]+u[m&63]}function q(m,s,o){for(var g,T=[],S=s;S<o;S+=3)g=(m[S]<<16&16711680)+(m[S+1]<<8&65280)+(m[S+2]&255),T.push(V(g));return T.join("")}function G(m){for(var s,o=m.length,g=o%3,T=[],S=16383,F=0,d=o-g;F<d;F+=S)T.push(q(m,F,F+S>d?d:F+S));return g===1?(s=m[o-1],T.push(u[s>>2]+u[s<<4&63]+"==")):g===2&&(s=(m[o-2]<<8)+m[o-1],T.push(u[s>>10]+u[s>>4&63]+u[s<<2&63]+"=")),T.join("")}var L={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */L.read=function(m,s,o,g,T){var S,F,d=T*8-g-1,K=(1<<d)-1,X=K>>1,x=-7,ee=o?T-1:0,re=o?-1:1,ie=m[s+ee];for(ee+=re,S=ie&(1<<-x)-1,ie>>=-x,x+=d;x>0;S=S*256+m[s+ee],ee+=re,x-=8);for(F=S&(1<<-x)-1,S>>=-x,x+=g;x>0;F=F*256+m[s+ee],ee+=re,x-=8);if(S===0)S=1-X;else{if(S===K)return F?NaN:(ie?-1:1)*(1/0);F=F+Math.pow(2,g),S=S-X}return(ie?-1:1)*F*Math.pow(2,S-g)},L.write=function(m,s,o,g,T,S){var F,d,K,X=S*8-T-1,x=(1<<X)-1,ee=x>>1,re=T===23?Math.pow(2,-24)-Math.pow(2,-77):0,ie=g?0:S-1,le=g?1:-1,Z=s<0||s===0&&1/s<0?1:0;for(s=Math.abs(s),isNaN(s)||s===1/0?(d=isNaN(s)?1:0,F=x):(F=Math.floor(Math.log(s)/Math.LN2),s*(K=Math.pow(2,-F))<1&&(F--,K*=2),F+ee>=1?s+=re/K:s+=re*Math.pow(2,1-ee),s*K>=2&&(F++,K/=2),F+ee>=x?(d=0,F=x):F+ee>=1?(d=(s*K-1)*Math.pow(2,T),F=F+ee):(d=s*Math.pow(2,ee-1)*Math.pow(2,T),F=0));T>=8;m[o+ie]=d&255,ie+=le,d/=256,T-=8);for(F=F<<T|d,X+=T;X>0;m[o+ie]=F&255,ie+=le,F/=256,X-=8);m[o+ie-le]|=Z*128};/*!
|
|
2
2
|
* The buffer module from node.js, for the browser.
|
|
3
3
|
*
|
|
4
4
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
5
5
|
* @license MIT
|
|
6
|
-
*/(function(m){const s=f,o=L,y=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;m.Buffer=x,m.SlowBuffer=j,m.INSPECT_MAX_BYTES=50;const T=2147483647;m.kMaxLength=T;const{Uint8Array:S,ArrayBuffer:F,SharedArrayBuffer:d}=globalThis;x.TYPED_ARRAY_SUPPORT=K(),!x.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 K(){try{const l=new S(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,S.prototype),Object.setPrototypeOf(l,e),l.foo()===42}catch{return!1}}Object.defineProperty(x.prototype,"parent",{enumerable:!0,get:function(){if(x.isBuffer(this))return this.buffer}}),Object.defineProperty(x.prototype,"offset",{enumerable:!0,get:function(){if(x.isBuffer(this))return this.byteOffset}});function X(l){if(l>T)throw new RangeError('The value "'+l+'" is invalid for option "size"');const e=new S(l);return Object.setPrototypeOf(e,x.prototype),e}function x(l,e,t){if(typeof l=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ce(l)}return ee(l,e,t)}x.poolSize=8192;function ee(l,e,t){if(typeof l=="string")return Z(l,e);if(F.isView(l))return ue(l);if(l==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof l);if(_e(l,F)||l&&_e(l.buffer,F)||typeof d<"u"&&(_e(l,d)||l&&_e(l.buffer,d)))return ge(l,e,t);if(typeof l=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const b=l.valueOf&&l.valueOf();if(b!=null&&b!==l)return x.from(b,e,t);const I=be(l);if(I)return I;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof l[Symbol.toPrimitive]=="function")return x.from(l[Symbol.toPrimitive]("string"),e,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof l)}x.from=function(l,e,t){return ee(l,e,t)},Object.setPrototypeOf(x.prototype,S.prototype),Object.setPrototypeOf(x,S);function ne(l){if(typeof l!="number")throw new TypeError('"size" argument must be of type number');if(l<0)throw new RangeError('The value "'+l+'" is invalid for option "size"')}function ae(l,e,t){return ne(l),l<=0?X(l):e!==void 0?typeof t=="string"?X(l).fill(e,t):X(l).fill(e):X(l)}x.alloc=function(l,e,t){return ae(l,e,t)};function ce(l){return ne(l),X(l<0?0:D(l)|0)}x.allocUnsafe=function(l){return ce(l)},x.allocUnsafeSlow=function(l){return ce(l)};function Z(l,e){if((typeof e!="string"||e==="")&&(e="utf8"),!x.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const t=$(l,e)|0;let b=X(t);const I=b.write(l,e);return I!==t&&(b=b.slice(0,I)),b}function he(l){const e=l.length<0?0:D(l.length)|0,t=X(e);for(let b=0;b<e;b+=1)t[b]=l[b]&255;return t}function ue(l){if(_e(l,S)){const e=new S(l);return ge(e.buffer,e.byteOffset,e.byteLength)}return he(l)}function ge(l,e,t){if(e<0||l.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(l.byteLength<e+(t||0))throw new RangeError('"length" is outside of buffer bounds');let b;return e===void 0&&t===void 0?b=new S(l):t===void 0?b=new S(l,e):b=new S(l,e,t),Object.setPrototypeOf(b,x.prototype),b}function be(l){if(x.isBuffer(l)){const e=D(l.length)|0,t=X(e);return t.length===0||l.copy(t,0,0,e),t}if(l.length!==void 0)return typeof l.length!="number"||tt(l.length)?X(0):he(l);if(l.type==="Buffer"&&Array.isArray(l.data))return he(l.data)}function D(l){if(l>=T)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+T.toString(16)+" bytes");return l|0}function j(l){return+l!=l&&(l=0),x.alloc(+l)}x.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==x.prototype},x.compare=function(e,t){if(_e(e,S)&&(e=x.from(e,e.offset,e.byteLength)),_e(t,S)&&(t=x.from(t,t.offset,t.byteLength)),!x.isBuffer(e)||!x.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let b=e.length,I=t.length;for(let M=0,G=Math.min(b,I);M<G;++M)if(e[M]!==t[M]){b=e[M],I=t[M];break}return b<I?-1:I<b?1:0},x.isEncoding=function(e){switch(String(e).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}},x.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return x.alloc(0);let b;if(t===void 0)for(t=0,b=0;b<e.length;++b)t+=e[b].length;const I=x.allocUnsafe(t);let M=0;for(b=0;b<e.length;++b){let G=e[b];if(_e(G,S))M+G.length>I.length?(x.isBuffer(G)||(G=x.from(G)),G.copy(I,M)):S.prototype.set.call(I,G,M);else if(x.isBuffer(G))G.copy(I,M);else throw new TypeError('"list" argument must be an Array of Buffers');M+=G.length}return I};function $(l,e){if(x.isBuffer(l))return l.length;if(F.isView(l)||_e(l,F))return l.byteLength;if(typeof l!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof l);const t=l.length,b=arguments.length>2&&arguments[2]===!0;if(!b&&t===0)return 0;let I=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return et(l).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return kr(l).length;default:if(I)return b?-1:et(l).length;e=(""+e).toLowerCase(),I=!0}}x.byteLength=$;function J(l,e,t){let b=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,e>>>=0,t<=e))return"";for(l||(l="utf8");;)switch(l){case"hex":return ve(this,e,t);case"utf8":case"utf-8":return Q(this,e,t);case"ascii":return fe(this,e,t);case"latin1":case"binary":return k(this,e,t);case"base64":return W(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return me(this,e,t);default:if(b)throw new TypeError("Unknown encoding: "+l);l=(l+"").toLowerCase(),b=!0}}x.prototype._isBuffer=!0;function O(l,e,t){const b=l[e];l[e]=l[t],l[t]=b}x.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)O(this,t,t+1);return this},x.prototype.swap32=function(){const e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)O(this,t,t+3),O(this,t+1,t+2);return this},x.prototype.swap64=function(){const e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)O(this,t,t+7),O(this,t+1,t+6),O(this,t+2,t+5),O(this,t+3,t+4);return this},x.prototype.toString=function(){const e=this.length;return e===0?"":arguments.length===0?Q(this,0,e):J.apply(this,arguments)},x.prototype.toLocaleString=x.prototype.toString,x.prototype.equals=function(e){if(!x.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:x.compare(this,e)===0},x.prototype.inspect=function(){let e="";const t=m.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},y&&(x.prototype[y]=x.prototype.inspect),x.prototype.compare=function(e,t,b,I,M){if(_e(e,S)&&(e=x.from(e,e.offset,e.byteLength)),!x.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),b===void 0&&(b=e?e.length:0),I===void 0&&(I=0),M===void 0&&(M=this.length),t<0||b>e.length||I<0||M>this.length)throw new RangeError("out of range index");if(I>=M&&t>=b)return 0;if(I>=M)return-1;if(t>=b)return 1;if(t>>>=0,b>>>=0,I>>>=0,M>>>=0,this===e)return 0;let G=M-I,ie=b-t;const pe=Math.min(G,ie),le=this.slice(I,M),ye=e.slice(t,b);for(let se=0;se<pe;++se)if(le[se]!==ye[se]){G=le[se],ie=ye[se];break}return G<ie?-1:ie<G?1:0};function i(l,e,t,b,I){if(l.length===0)return-1;if(typeof t=="string"?(b=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,tt(t)&&(t=I?0:l.length-1),t<0&&(t=l.length+t),t>=l.length){if(I)return-1;t=l.length-1}else if(t<0)if(I)t=0;else return-1;if(typeof e=="string"&&(e=x.from(e,b)),x.isBuffer(e))return e.length===0?-1:n(l,e,t,b,I);if(typeof e=="number")return e=e&255,typeof S.prototype.indexOf=="function"?I?S.prototype.indexOf.call(l,e,t):S.prototype.lastIndexOf.call(l,e,t):n(l,[e],t,b,I);throw new TypeError("val must be string, number or Buffer")}function n(l,e,t,b,I){let M=1,G=l.length,ie=e.length;if(b!==void 0&&(b=String(b).toLowerCase(),b==="ucs2"||b==="ucs-2"||b==="utf16le"||b==="utf-16le")){if(l.length<2||e.length<2)return-1;M=2,G/=2,ie/=2,t/=2}function pe(ye,se){return M===1?ye[se]:ye.readUInt16BE(se*M)}let le;if(I){let ye=-1;for(le=t;le<G;le++)if(pe(l,le)===pe(e,ye===-1?0:le-ye)){if(ye===-1&&(ye=le),le-ye+1===ie)return ye*M}else ye!==-1&&(le-=le-ye),ye=-1}else for(t+ie>G&&(t=G-ie),le=t;le>=0;le--){let ye=!0;for(let se=0;se<ie;se++)if(pe(l,le+se)!==pe(e,se)){ye=!1;break}if(ye)return le}return-1}x.prototype.includes=function(e,t,b){return this.indexOf(e,t,b)!==-1},x.prototype.indexOf=function(e,t,b){return i(this,e,t,b,!0)},x.prototype.lastIndexOf=function(e,t,b){return i(this,e,t,b,!1)};function R(l,e,t,b){t=Number(t)||0;const I=l.length-t;b?(b=Number(b),b>I&&(b=I)):b=I;const M=e.length;b>M/2&&(b=M/2);let G;for(G=0;G<b;++G){const ie=parseInt(e.substr(G*2,2),16);if(tt(ie))return G;l[t+G]=ie}return G}function w(l,e,t,b){return Ge(et(e,l.length-t),l,t,b)}function h(l,e,t,b){return Ge(Wi(e),l,t,b)}function p(l,e,t,b){return Ge(kr(e),l,t,b)}function U(l,e,t,b){return Ge(Vi(e,l.length-t),l,t,b)}x.prototype.write=function(e,t,b,I){if(t===void 0)I="utf8",b=this.length,t=0;else if(b===void 0&&typeof t=="string")I=t,b=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(b)?(b=b>>>0,I===void 0&&(I="utf8")):(I=b,b=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const M=this.length-t;if((b===void 0||b>M)&&(b=M),e.length>0&&(b<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");I||(I="utf8");let G=!1;for(;;)switch(I){case"hex":return R(this,e,t,b);case"utf8":case"utf-8":return w(this,e,t,b);case"ascii":case"latin1":case"binary":return h(this,e,t,b);case"base64":return p(this,e,t,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,e,t,b);default:if(G)throw new TypeError("Unknown encoding: "+I);I=(""+I).toLowerCase(),G=!0}},x.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function W(l,e,t){return e===0&&t===l.length?s.fromByteArray(l):s.fromByteArray(l.slice(e,t))}function Q(l,e,t){t=Math.min(l.length,t);const b=[];let I=e;for(;I<t;){const M=l[I];let G=null,ie=M>239?4:M>223?3:M>191?2:1;if(I+ie<=t){let pe,le,ye,se;switch(ie){case 1:M<128&&(G=M);break;case 2:pe=l[I+1],(pe&192)===128&&(se=(M&31)<<6|pe&63,se>127&&(G=se));break;case 3:pe=l[I+1],le=l[I+2],(pe&192)===128&&(le&192)===128&&(se=(M&15)<<12|(pe&63)<<6|le&63,se>2047&&(se<55296||se>57343)&&(G=se));break;case 4:pe=l[I+1],le=l[I+2],ye=l[I+3],(pe&192)===128&&(le&192)===128&&(ye&192)===128&&(se=(M&15)<<18|(pe&63)<<12|(le&63)<<6|ye&63,se>65535&&se<1114112&&(G=se))}}G===null?(G=65533,ie=1):G>65535&&(G-=65536,b.push(G>>>10&1023|55296),G=56320|G&1023),b.push(G),I+=ie}return z(b)}const Y=4096;function z(l){const e=l.length;if(e<=Y)return String.fromCharCode.apply(String,l);let t="",b=0;for(;b<e;)t+=String.fromCharCode.apply(String,l.slice(b,b+=Y));return t}function fe(l,e,t){let b="";t=Math.min(l.length,t);for(let I=e;I<t;++I)b+=String.fromCharCode(l[I]&127);return b}function k(l,e,t){let b="";t=Math.min(l.length,t);for(let I=e;I<t;++I)b+=String.fromCharCode(l[I]);return b}function ve(l,e,t){const b=l.length;(!e||e<0)&&(e=0),(!t||t<0||t>b)&&(t=b);let I="";for(let M=e;M<t;++M)I+=Yi[l[M]];return I}function me(l,e,t){const b=l.slice(e,t);let I="";for(let M=0;M<b.length-1;M+=2)I+=String.fromCharCode(b[M]+b[M+1]*256);return I}x.prototype.slice=function(e,t){const b=this.length;e=~~e,t=t===void 0?b:~~t,e<0?(e+=b,e<0&&(e=0)):e>b&&(e=b),t<0?(t+=b,t<0&&(t=0)):t>b&&(t=b),t<e&&(t=e);const I=this.subarray(e,t);return Object.setPrototypeOf(I,x.prototype),I};function oe(l,e,t){if(l%1!==0||l<0)throw new RangeError("offset is not uint");if(l+e>t)throw new RangeError("Trying to access beyond buffer length")}x.prototype.readUintLE=x.prototype.readUIntLE=function(e,t,b){e=e>>>0,t=t>>>0,b||oe(e,t,this.length);let I=this[e],M=1,G=0;for(;++G<t&&(M*=256);)I+=this[e+G]*M;return I},x.prototype.readUintBE=x.prototype.readUIntBE=function(e,t,b){e=e>>>0,t=t>>>0,b||oe(e,t,this.length);let I=this[e+--t],M=1;for(;t>0&&(M*=256);)I+=this[e+--t]*M;return I},x.prototype.readUint8=x.prototype.readUInt8=function(e,t){return e=e>>>0,t||oe(e,1,this.length),this[e]},x.prototype.readUint16LE=x.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||oe(e,2,this.length),this[e]|this[e+1]<<8},x.prototype.readUint16BE=x.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||oe(e,2,this.length),this[e]<<8|this[e+1]},x.prototype.readUint32LE=x.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||oe(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},x.prototype.readUint32BE=x.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||oe(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},x.prototype.readBigUInt64LE=Re(function(e){e=e>>>0,Pe(e,"offset");const t=this[e],b=this[e+7];(t===void 0||b===void 0)&&Me(e,this.length-8);const I=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,M=this[++e]+this[++e]*2**8+this[++e]*2**16+b*2**24;return BigInt(I)+(BigInt(M)<<BigInt(32))}),x.prototype.readBigUInt64BE=Re(function(e){e=e>>>0,Pe(e,"offset");const t=this[e],b=this[e+7];(t===void 0||b===void 0)&&Me(e,this.length-8);const I=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],M=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+b;return(BigInt(I)<<BigInt(32))+BigInt(M)}),x.prototype.readIntLE=function(e,t,b){e=e>>>0,t=t>>>0,b||oe(e,t,this.length);let I=this[e],M=1,G=0;for(;++G<t&&(M*=256);)I+=this[e+G]*M;return M*=128,I>=M&&(I-=Math.pow(2,8*t)),I},x.prototype.readIntBE=function(e,t,b){e=e>>>0,t=t>>>0,b||oe(e,t,this.length);let I=t,M=1,G=this[e+--I];for(;I>0&&(M*=256);)G+=this[e+--I]*M;return M*=128,G>=M&&(G-=Math.pow(2,8*t)),G},x.prototype.readInt8=function(e,t){return e=e>>>0,t||oe(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},x.prototype.readInt16LE=function(e,t){e=e>>>0,t||oe(e,2,this.length);const b=this[e]|this[e+1]<<8;return b&32768?b|4294901760:b},x.prototype.readInt16BE=function(e,t){e=e>>>0,t||oe(e,2,this.length);const b=this[e+1]|this[e]<<8;return b&32768?b|4294901760:b},x.prototype.readInt32LE=function(e,t){return e=e>>>0,t||oe(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},x.prototype.readInt32BE=function(e,t){return e=e>>>0,t||oe(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},x.prototype.readBigInt64LE=Re(function(e){e=e>>>0,Pe(e,"offset");const t=this[e],b=this[e+7];(t===void 0||b===void 0)&&Me(e,this.length-8);const I=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(b<<24);return(BigInt(I)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)}),x.prototype.readBigInt64BE=Re(function(e){e=e>>>0,Pe(e,"offset");const t=this[e],b=this[e+7];(t===void 0||b===void 0)&&Me(e,this.length-8);const I=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(I)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+b)}),x.prototype.readFloatLE=function(e,t){return e=e>>>0,t||oe(e,4,this.length),o.read(this,e,!0,23,4)},x.prototype.readFloatBE=function(e,t){return e=e>>>0,t||oe(e,4,this.length),o.read(this,e,!1,23,4)},x.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||oe(e,8,this.length),o.read(this,e,!0,52,8)},x.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||oe(e,8,this.length),o.read(this,e,!1,52,8)};function de(l,e,t,b,I,M){if(!x.isBuffer(l))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>I||e<M)throw new RangeError('"value" argument is out of bounds');if(t+b>l.length)throw new RangeError("Index out of range")}x.prototype.writeUintLE=x.prototype.writeUIntLE=function(e,t,b,I){if(e=+e,t=t>>>0,b=b>>>0,!I){const ie=Math.pow(2,8*b)-1;de(this,e,t,b,ie,0)}let M=1,G=0;for(this[t]=e&255;++G<b&&(M*=256);)this[t+G]=e/M&255;return t+b},x.prototype.writeUintBE=x.prototype.writeUIntBE=function(e,t,b,I){if(e=+e,t=t>>>0,b=b>>>0,!I){const ie=Math.pow(2,8*b)-1;de(this,e,t,b,ie,0)}let M=b-1,G=1;for(this[t+M]=e&255;--M>=0&&(G*=256);)this[t+M]=e/G&255;return t+b},x.prototype.writeUint8=x.prototype.writeUInt8=function(e,t,b){return e=+e,t=t>>>0,b||de(this,e,t,1,255,0),this[t]=e&255,t+1},x.prototype.writeUint16LE=x.prototype.writeUInt16LE=function(e,t,b){return e=+e,t=t>>>0,b||de(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},x.prototype.writeUint16BE=x.prototype.writeUInt16BE=function(e,t,b){return e=+e,t=t>>>0,b||de(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},x.prototype.writeUint32LE=x.prototype.writeUInt32LE=function(e,t,b){return e=+e,t=t>>>0,b||de(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},x.prototype.writeUint32BE=x.prototype.writeUInt32BE=function(e,t,b){return e=+e,t=t>>>0,b||de(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function we(l,e,t,b,I){qr(e,b,I,l,t,7);let M=Number(e&BigInt(4294967295));l[t++]=M,M=M>>8,l[t++]=M,M=M>>8,l[t++]=M,M=M>>8,l[t++]=M;let G=Number(e>>BigInt(32)&BigInt(4294967295));return l[t++]=G,G=G>>8,l[t++]=G,G=G>>8,l[t++]=G,G=G>>8,l[t++]=G,t}function Be(l,e,t,b,I){qr(e,b,I,l,t,7);let M=Number(e&BigInt(4294967295));l[t+7]=M,M=M>>8,l[t+6]=M,M=M>>8,l[t+5]=M,M=M>>8,l[t+4]=M;let G=Number(e>>BigInt(32)&BigInt(4294967295));return l[t+3]=G,G=G>>8,l[t+2]=G,G=G>>8,l[t+1]=G,G=G>>8,l[t]=G,t+8}x.prototype.writeBigUInt64LE=Re(function(e,t=0){return we(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),x.prototype.writeBigUInt64BE=Re(function(e,t=0){return Be(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),x.prototype.writeIntLE=function(e,t,b,I){if(e=+e,t=t>>>0,!I){const pe=Math.pow(2,8*b-1);de(this,e,t,b,pe-1,-pe)}let M=0,G=1,ie=0;for(this[t]=e&255;++M<b&&(G*=256);)e<0&&ie===0&&this[t+M-1]!==0&&(ie=1),this[t+M]=(e/G>>0)-ie&255;return t+b},x.prototype.writeIntBE=function(e,t,b,I){if(e=+e,t=t>>>0,!I){const pe=Math.pow(2,8*b-1);de(this,e,t,b,pe-1,-pe)}let M=b-1,G=1,ie=0;for(this[t+M]=e&255;--M>=0&&(G*=256);)e<0&&ie===0&&this[t+M+1]!==0&&(ie=1),this[t+M]=(e/G>>0)-ie&255;return t+b},x.prototype.writeInt8=function(e,t,b){return e=+e,t=t>>>0,b||de(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},x.prototype.writeInt16LE=function(e,t,b){return e=+e,t=t>>>0,b||de(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},x.prototype.writeInt16BE=function(e,t,b){return e=+e,t=t>>>0,b||de(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},x.prototype.writeInt32LE=function(e,t,b){return e=+e,t=t>>>0,b||de(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},x.prototype.writeInt32BE=function(e,t,b){return e=+e,t=t>>>0,b||de(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},x.prototype.writeBigInt64LE=Re(function(e,t=0){return we(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),x.prototype.writeBigInt64BE=Re(function(e,t=0){return Be(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Se(l,e,t,b,I,M){if(t+b>l.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Ae(l,e,t,b,I){return e=+e,t=t>>>0,I||Se(l,e,t,4),o.write(l,e,t,b,23,4),t+4}x.prototype.writeFloatLE=function(e,t,b){return Ae(this,e,t,!0,b)},x.prototype.writeFloatBE=function(e,t,b){return Ae(this,e,t,!1,b)};function Te(l,e,t,b,I){return e=+e,t=t>>>0,I||Se(l,e,t,8),o.write(l,e,t,b,52,8),t+8}x.prototype.writeDoubleLE=function(e,t,b){return Te(this,e,t,!0,b)},x.prototype.writeDoubleBE=function(e,t,b){return Te(this,e,t,!1,b)},x.prototype.copy=function(e,t,b,I){if(!x.isBuffer(e))throw new TypeError("argument should be a Buffer");if(b||(b=0),!I&&I!==0&&(I=this.length),t>=e.length&&(t=e.length),t||(t=0),I>0&&I<b&&(I=b),I===b||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(b<0||b>=this.length)throw new RangeError("Index out of range");if(I<0)throw new RangeError("sourceEnd out of bounds");I>this.length&&(I=this.length),e.length-t<I-b&&(I=e.length-t+b);const M=I-b;return this===e&&typeof S.prototype.copyWithin=="function"?this.copyWithin(t,b,I):S.prototype.set.call(e,this.subarray(b,I),t),M},x.prototype.fill=function(e,t,b,I){if(typeof e=="string"){if(typeof t=="string"?(I=t,t=0,b=this.length):typeof b=="string"&&(I=b,b=this.length),I!==void 0&&typeof I!="string")throw new TypeError("encoding must be a string");if(typeof I=="string"&&!x.isEncoding(I))throw new TypeError("Unknown encoding: "+I);if(e.length===1){const G=e.charCodeAt(0);(I==="utf8"&&G<128||I==="latin1")&&(e=G)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<b)throw new RangeError("Out of range index");if(b<=t)return this;t=t>>>0,b=b===void 0?this.length:b>>>0,e||(e=0);let M;if(typeof e=="number")for(M=t;M<b;++M)this[M]=e;else{const G=x.isBuffer(e)?e:x.from(e,I),ie=G.length;if(ie===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(M=0;M<b-t;++M)this[M+t]=G[M%ie]}return this};const Ne={};function Ze(l,e,t){Ne[l]=class extends t{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${l}]`,this.stack,delete this.name}get code(){return l}set code(I){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:I,writable:!0})}toString(){return`${this.name} [${l}]: ${this.message}`}}}Ze("ERR_BUFFER_OUT_OF_BOUNDS",function(l){return l?`${l} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Ze("ERR_INVALID_ARG_TYPE",function(l,e){return`The "${l}" argument must be of type number. Received type ${typeof e}`},TypeError),Ze("ERR_OUT_OF_RANGE",function(l,e,t){let b=`The value of "${l}" is out of range.`,I=t;return Number.isInteger(t)&&Math.abs(t)>2**32?I=jr(String(t)):typeof t=="bigint"&&(I=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(I=jr(I)),I+="n"),b+=` It must be ${e}. Received ${I}`,b},RangeError);function jr(l){let e="",t=l.length;const b=l[0]==="-"?1:0;for(;t>=b+4;t-=3)e=`_${l.slice(t-3,t)}${e}`;return`${l.slice(0,t)}${e}`}function Gi(l,e,t){Pe(e,"offset"),(l[e]===void 0||l[e+t]===void 0)&&Me(e,l.length-(t+1))}function qr(l,e,t,b,I,M){if(l>t||l<e){const G=typeof e=="bigint"?"n":"";let ie;throw e===0||e===BigInt(0)?ie=`>= 0${G} and < 2${G} ** ${(M+1)*8}${G}`:ie=`>= -(2${G} ** ${(M+1)*8-1}${G}) and < 2 ** ${(M+1)*8-1}${G}`,new Ne.ERR_OUT_OF_RANGE("value",ie,l)}Gi(b,I,M)}function Pe(l,e){if(typeof l!="number")throw new Ne.ERR_INVALID_ARG_TYPE(e,"number",l)}function Me(l,e,t){throw Math.floor(l)!==l?(Pe(l,t),new Ne.ERR_OUT_OF_RANGE("offset","an integer",l)):e<0?new Ne.ERR_BUFFER_OUT_OF_BOUNDS:new Ne.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${e}`,l)}const Ki=/[^+/0-9A-Za-z-_]/g;function $i(l){if(l=l.split("=")[0],l=l.trim().replace(Ki,""),l.length<2)return"";for(;l.length%4!==0;)l=l+"=";return l}function et(l,e){e=e||1/0;let t;const b=l.length;let I=null;const M=[];for(let G=0;G<b;++G){if(t=l.charCodeAt(G),t>55295&&t<57344){if(!I){if(t>56319){(e-=3)>-1&&M.push(239,191,189);continue}else if(G+1===b){(e-=3)>-1&&M.push(239,191,189);continue}I=t;continue}if(t<56320){(e-=3)>-1&&M.push(239,191,189),I=t;continue}t=(I-55296<<10|t-56320)+65536}else I&&(e-=3)>-1&&M.push(239,191,189);if(I=null,t<128){if((e-=1)<0)break;M.push(t)}else if(t<2048){if((e-=2)<0)break;M.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;M.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;M.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return M}function Wi(l){const e=[];for(let t=0;t<l.length;++t)e.push(l.charCodeAt(t)&255);return e}function Vi(l,e){let t,b,I;const M=[];for(let G=0;G<l.length&&!((e-=2)<0);++G)t=l.charCodeAt(G),b=t>>8,I=t%256,M.push(I),M.push(b);return M}function kr(l){return s.toByteArray($i(l))}function Ge(l,e,t,b){let I;for(I=0;I<b&&!(I+t>=e.length||I>=l.length);++I)e[I+t]=l[I];return I}function _e(l,e){return l instanceof e||l!=null&&l.constructor!=null&&l.constructor.name!=null&&l.constructor.name===e.name}function tt(l){return l!==l}const Yi=function(){const l="0123456789abcdef",e=new Array(256);for(let t=0;t<16;++t){const b=t*16;for(let I=0;I<16;++I)e[b+I]=l[t]+l[I]}return e}();function Re(l){return typeof BigInt>"u"?Xi:l}function Xi(){throw new Error("BigInt not supported")}})(a);const c=a.Buffer;r.Blob=a.Blob,r.BlobOptions=a.BlobOptions,r.Buffer=a.Buffer,r.File=a.File,r.FileOptions=a.FileOptions,r.INSPECT_MAX_BYTES=a.INSPECT_MAX_BYTES,r.SlowBuffer=a.SlowBuffer,r.TranscodeEncoding=a.TranscodeEncoding,r.atob=a.atob,r.btoa=a.btoa,r.constants=a.constants,r.default=c,r.isAscii=a.isAscii,r.isUtf8=a.isUtf8,r.kMaxLength=a.kMaxLength,r.kStringMaxLength=a.kStringMaxLength,r.resolveObjectURL=a.resolveObjectURL,r.transcode=a.transcode}(it)),it}var at={},ot={},ut,Wr;function vi(){return Wr||(Wr=1,ut=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var a={},f=Symbol("test"),u=Object(f);if(typeof f=="string"||Object.prototype.toString.call(f)!=="[object Symbol]"||Object.prototype.toString.call(u)!=="[object Symbol]")return!1;var v=42;a[f]=v;for(var g in a)return!1;if(typeof Object.keys=="function"&&Object.keys(a).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(a).length!==0)return!1;var A=Object.getOwnPropertySymbols(a);if(A.length!==1||A[0]!==f||!Object.prototype.propertyIsEnumerable.call(a,f))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var E=Object.getOwnPropertyDescriptor(a,f);if(E.value!==v||E.enumerable!==!0)return!1}return!0}),ut}var st,Vr;function Je(){if(Vr)return st;Vr=1;var r=vi();return st=function(){return r()&&!!Symbol.toStringTag},st}var ft,Yr;function wi(){return Yr||(Yr=1,ft=Object),ft}var lt,Xr;function ca(){return Xr||(Xr=1,lt=Error),lt}var ct,zr;function ha(){return zr||(zr=1,ct=EvalError),ct}var ht,Jr;function da(){return Jr||(Jr=1,ht=RangeError),ht}var dt,Qr;function pa(){return Qr||(Qr=1,dt=ReferenceError),dt}var pt,Zr;function _i(){return Zr||(Zr=1,pt=SyntaxError),pt}var yt,en;function qe(){return en||(en=1,yt=TypeError),yt}var gt,tn;function ya(){return tn||(tn=1,gt=URIError),gt}var bt,rn;function ga(){return rn||(rn=1,bt=Math.abs),bt}var mt,nn;function ba(){return nn||(nn=1,mt=Math.floor),mt}var Et,an;function ma(){return an||(an=1,Et=Math.max),Et}var vt,on;function Ea(){return on||(on=1,vt=Math.min),vt}var wt,un;function va(){return un||(un=1,wt=Math.pow),wt}var _t,sn;function wa(){return sn||(sn=1,_t=Math.round),_t}var At,fn;function _a(){return fn||(fn=1,At=Number.isNaN||function(a){return a!==a}),At}var Tt,ln;function Aa(){if(ln)return Tt;ln=1;var r=_a();return Tt=function(f){return r(f)||f===0?f:f<0?-1:1},Tt}var St,cn;function Ta(){return cn||(cn=1,St=Object.getOwnPropertyDescriptor),St}var Rt,hn;function De(){if(hn)return Rt;hn=1;var r=Ta();if(r)try{r([],"length")}catch{r=null}return Rt=r,Rt}var xt,dn;function Qe(){if(dn)return xt;dn=1;var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}return xt=r,xt}var It,pn;function Sa(){if(pn)return It;pn=1;var r=typeof Symbol<"u"&&Symbol,a=vi();return It=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:a()},It}var Ft,yn;function Ai(){return yn||(yn=1,Ft=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Ft}var Ot,gn;function Ti(){if(gn)return Ot;gn=1;var r=wi();return Ot=r.getPrototypeOf||null,Ot}var Bt,bn;function Ra(){if(bn)return Bt;bn=1;var r="Function.prototype.bind called on incompatible ",a=Object.prototype.toString,f=Math.max,u="[object Function]",v=function(_,B){for(var C=[],N=0;N<_.length;N+=1)C[N]=_[N];for(var P=0;P<B.length;P+=1)C[P+_.length]=B[P];return C},g=function(_,B){for(var C=[],N=B,P=0;N<_.length;N+=1,P+=1)C[P]=_[N];return C},A=function(E,_){for(var B="",C=0;C<E.length;C+=1)B+=E[C],C+1<E.length&&(B+=_);return B};return Bt=function(_){var B=this;if(typeof B!="function"||a.apply(B)!==u)throw new TypeError(r+B);for(var C=g(arguments,1),N,P=function(){if(this instanceof N){var c=B.apply(this,v(C,arguments));return Object(c)===c?c:this}return B.apply(_,v(C,arguments))},V=f(0,B.length-C.length),q=[],H=0;H<V;H++)q[H]="$"+H;if(N=Function("binder","return function ("+A(q,",")+"){ return binder.apply(this,arguments); }")(P),B.prototype){var L=function(){};L.prototype=B.prototype,N.prototype=new L,L.prototype=null}return N},Bt}var Nt,mn;function ke(){if(mn)return Nt;mn=1;var r=Ra();return Nt=Function.prototype.bind||r,Nt}var Pt,En;function Nr(){return En||(En=1,Pt=Function.prototype.call),Pt}var Ct,vn;function Pr(){return vn||(vn=1,Ct=Function.prototype.apply),Ct}var Dt,wn;function xa(){return wn||(wn=1,Dt=typeof Reflect<"u"&&Reflect&&Reflect.apply),Dt}var Lt,_n;function Si(){if(_n)return Lt;_n=1;var r=ke(),a=Pr(),f=Nr(),u=xa();return Lt=u||r.call(f,a),Lt}var Mt,An;function Cr(){if(An)return Mt;An=1;var r=ke(),a=qe(),f=Nr(),u=Si();return Mt=function(g){if(g.length<1||typeof g[0]!="function")throw new a("a function is required");return u(r,f,g)},Mt}var Ut,Tn;function Ia(){if(Tn)return Ut;Tn=1;var r=Cr(),a=De(),f;try{f=[].__proto__===Array.prototype}catch(A){if(!A||typeof A!="object"||!("code"in A)||A.code!=="ERR_PROTO_ACCESS")throw A}var u=!!f&&a&&a(Object.prototype,"__proto__"),v=Object,g=v.getPrototypeOf;return Ut=u&&typeof u.get=="function"?r([u.get]):typeof g=="function"?function(E){return g(E==null?E:v(E))}:!1,Ut}var jt,Sn;function Ri(){if(Sn)return jt;Sn=1;var r=Ai(),a=Ti(),f=Ia();return jt=r?function(v){return r(v)}:a?function(v){if(!v||typeof v!="object"&&typeof v!="function")throw new TypeError("getProto: not an object");return a(v)}:f?function(v){return f(v)}:null,jt}var qt,Rn;function xi(){if(Rn)return qt;Rn=1;var r=Function.prototype.call,a=Object.prototype.hasOwnProperty,f=ke();return qt=f.call(r,a),qt}var kt,xn;function Ii(){if(xn)return kt;xn=1;var r,a=wi(),f=ca(),u=ha(),v=da(),g=pa(),A=_i(),E=qe(),_=ya(),B=ga(),C=ba(),N=ma(),P=Ea(),V=va(),q=wa(),H=Aa(),L=Function,c=function(R){try{return L('"use strict"; return ('+R+").constructor;")()}catch{}},m=De(),s=Qe(),o=function(){throw new E},y=m?function(){try{return arguments.callee,o}catch{try{return m(arguments,"callee").get}catch{return o}}}():o,T=Sa()(),S=Ri(),F=Ti(),d=Ai(),K=Pr(),X=Nr(),x={},ee=typeof Uint8Array>"u"||!S?r:S(Uint8Array),ne={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":T&&S?S([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":x,"%AsyncGenerator%":x,"%AsyncGeneratorFunction%":x,"%AsyncIteratorPrototype%":x,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":f,"%eval%":eval,"%EvalError%":u,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":L,"%GeneratorFunction%":x,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":T&&S?S(S([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!T||!S?r:S(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":a,"%Object.getOwnPropertyDescriptor%":m,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":v,"%ReferenceError%":g,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!T||!S?r:S(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":T&&S?S(""[Symbol.iterator]()):r,"%Symbol%":T?Symbol:r,"%SyntaxError%":A,"%ThrowTypeError%":y,"%TypedArray%":ee,"%TypeError%":E,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":_,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":X,"%Function.prototype.apply%":K,"%Object.defineProperty%":s,"%Object.getPrototypeOf%":F,"%Math.abs%":B,"%Math.floor%":C,"%Math.max%":N,"%Math.min%":P,"%Math.pow%":V,"%Math.round%":q,"%Math.sign%":H,"%Reflect.getPrototypeOf%":d};if(S)try{null.error}catch(R){var ae=S(S(R));ne["%Error.prototype%"]=ae}var ce=function R(w){var h;if(w==="%AsyncFunction%")h=c("async function () {}");else if(w==="%GeneratorFunction%")h=c("function* () {}");else if(w==="%AsyncGeneratorFunction%")h=c("async function* () {}");else if(w==="%AsyncGenerator%"){var p=R("%AsyncGeneratorFunction%");p&&(h=p.prototype)}else if(w==="%AsyncIteratorPrototype%"){var U=R("%AsyncGenerator%");U&&S&&(h=S(U.prototype))}return ne[w]=h,h},Z={__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"]},he=ke(),ue=xi(),ge=he.call(X,Array.prototype.concat),be=he.call(K,Array.prototype.splice),D=he.call(X,String.prototype.replace),j=he.call(X,String.prototype.slice),$=he.call(X,RegExp.prototype.exec),J=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O=/\\(\\)?/g,i=function(w){var h=j(w,0,1),p=j(w,-1);if(h==="%"&&p!=="%")throw new A("invalid intrinsic syntax, expected closing `%`");if(p==="%"&&h!=="%")throw new A("invalid intrinsic syntax, expected opening `%`");var U=[];return D(w,J,function(W,Q,Y,z){U[U.length]=Y?D(z,O,"$1"):Q||W}),U},n=function(w,h){var p=w,U;if(ue(Z,p)&&(U=Z[p],p="%"+U[0]+"%"),ue(ne,p)){var W=ne[p];if(W===x&&(W=ce(p)),typeof W>"u"&&!h)throw new E("intrinsic "+w+" exists, but is not available. Please file an issue!");return{alias:U,name:p,value:W}}throw new A("intrinsic "+w+" does not exist!")};return kt=function(w,h){if(typeof w!="string"||w.length===0)throw new E("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof h!="boolean")throw new E('"allowMissing" argument must be a boolean');if($(/^%?[^%]*%?$/,w)===null)throw new A("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var p=i(w),U=p.length>0?p[0]:"",W=n("%"+U+"%",h),Q=W.name,Y=W.value,z=!1,fe=W.alias;fe&&(U=fe[0],be(p,ge([0,1],fe)));for(var k=1,ve=!0;k<p.length;k+=1){var me=p[k],oe=j(me,0,1),de=j(me,-1);if((oe==='"'||oe==="'"||oe==="`"||de==='"'||de==="'"||de==="`")&&oe!==de)throw new A("property names with quotes must have matching quotes");if((me==="constructor"||!ve)&&(z=!0),U+="."+me,Q="%"+U+"%",ue(ne,Q))Y=ne[Q];else if(Y!=null){if(!(me in Y)){if(!h)throw new E("base intrinsic for "+w+" exists, but the property is not available.");return}if(m&&k+1>=p.length){var we=m(Y,me);ve=!!we,ve&&"get"in we&&!("originalValue"in we.get)?Y=we.get:Y=Y[me]}else ve=ue(Y,me),Y=Y[me];ve&&!z&&(ne[Q]=Y)}}return Y},kt}var Ht,In;function He(){if(In)return Ht;In=1;var r=Ii(),a=Cr(),f=a([r("%String.prototype.indexOf%")]);return Ht=function(v,g){var A=r(v,!!g);return typeof A=="function"&&f(v,".prototype.")>-1?a([A]):A},Ht}var Gt,Fn;function Fa(){if(Fn)return Gt;Fn=1;var r=Je()(),a=He(),f=a("Object.prototype.toString"),u=function(E){return r&&E&&typeof E=="object"&&Symbol.toStringTag in E?!1:f(E)==="[object Arguments]"},v=function(E){return u(E)?!0:E!==null&&typeof E=="object"&&"length"in E&&typeof E.length=="number"&&E.length>=0&&f(E)!=="[object Array]"&&"callee"in E&&f(E.callee)==="[object Function]"},g=function(){return u(arguments)}();return u.isLegacyArguments=v,Gt=g?u:v,Gt}var Kt,On;function Oa(){if(On)return Kt;On=1;var r=He(),a=Je()(),f=xi(),u=De(),v;if(a){var g=r("RegExp.prototype.exec"),A={},E=function(){throw A},_={toString:E,valueOf:E};typeof Symbol.toPrimitive=="symbol"&&(_[Symbol.toPrimitive]=E),v=function(P){if(!P||typeof P!="object")return!1;var V=u(P,"lastIndex"),q=V&&f(V,"value");if(!q)return!1;try{g(P,_)}catch(H){return H===A}}}else{var B=r("Object.prototype.toString"),C="[object RegExp]";v=function(P){return!P||typeof P!="object"&&typeof P!="function"?!1:B(P)===C}}return Kt=v,Kt}var $t,Bn;function Ba(){if(Bn)return $t;Bn=1;var r=He(),a=Oa(),f=r("RegExp.prototype.exec"),u=qe();return $t=function(g){if(!a(g))throw new u("`regex` must be a RegExp");return function(E){return f(g,E)!==null}},$t}var Wt,Nn;function Na(){if(Nn)return Wt;Nn=1;var r=He(),a=Ba(),f=a(/^\s*(?:function)?\*/),u=Je()(),v=Ri(),g=r("Object.prototype.toString"),A=r("Function.prototype.toString"),E=function(){if(!u)return!1;try{return Function("return function*() {}")()}catch{}},_;return Wt=function(C){if(typeof C!="function")return!1;if(f(A(C)))return!0;if(!u){var N=g(C);return N==="[object GeneratorFunction]"}if(!v)return!1;if(typeof _>"u"){var P=E();_=P?v(P):!1}return v(C)===_},Wt}var Vt,Pn;function Pa(){if(Pn)return Vt;Pn=1;var r=Function.prototype.toString,a=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,f,u;if(typeof a=="function"&&typeof Object.defineProperty=="function")try{f=Object.defineProperty({},"length",{get:function(){throw u}}),u={},a(function(){throw 42},null,f)}catch(m){m!==u&&(a=null)}else a=null;var v=/^\s*class\b/,g=function(s){try{var o=r.call(s);return v.test(o)}catch{return!1}},A=function(s){try{return g(s)?!1:(r.call(s),!0)}catch{return!1}},E=Object.prototype.toString,_="[object Object]",B="[object Function]",C="[object GeneratorFunction]",N="[object HTMLAllCollection]",P="[object HTML document.all class]",V="[object HTMLCollection]",q=typeof Symbol=="function"&&!!Symbol.toStringTag,H=!(0 in[,]),L=function(){return!1};if(typeof document=="object"){var c=document.all;E.call(c)===E.call(document.all)&&(L=function(s){if((H||!s)&&(typeof s>"u"||typeof s=="object"))try{var o=E.call(s);return(o===N||o===P||o===V||o===_)&&s("")==null}catch{}return!1})}return Vt=a?function(s){if(L(s))return!0;if(!s||typeof s!="function"&&typeof s!="object")return!1;try{a(s,null,f)}catch(o){if(o!==u)return!1}return!g(s)&&A(s)}:function(s){if(L(s))return!0;if(!s||typeof s!="function"&&typeof s!="object")return!1;if(q)return A(s);if(g(s))return!1;var o=E.call(s);return o!==B&&o!==C&&!/^\[object HTML/.test(o)?!1:A(s)},Vt}var Yt,Cn;function Ca(){if(Cn)return Yt;Cn=1;var r=Pa(),a=Object.prototype.toString,f=Object.prototype.hasOwnProperty,u=function(_,B,C){for(var N=0,P=_.length;N<P;N++)f.call(_,N)&&(C==null?B(_[N],N,_):B.call(C,_[N],N,_))},v=function(_,B,C){for(var N=0,P=_.length;N<P;N++)C==null?B(_.charAt(N),N,_):B.call(C,_.charAt(N),N,_)},g=function(_,B,C){for(var N in _)f.call(_,N)&&(C==null?B(_[N],N,_):B.call(C,_[N],N,_))};function A(E){return a.call(E)==="[object Array]"}return Yt=function(_,B,C){if(!r(B))throw new TypeError("iterator must be a function");var N;arguments.length>=3&&(N=C),A(_)?u(_,B,N):typeof _=="string"?v(_,B,N):g(_,B,N)},Yt}var Xt,Dn;function Da(){return Dn||(Dn=1,Xt=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Xt}var zt,Ln;function La(){if(Ln)return zt;Ln=1;var r=Da(),a=typeof globalThis>"u"?Ee.commonjsGlobal:globalThis;return zt=function(){for(var u=[],v=0;v<r.length;v++)typeof a[r[v]]=="function"&&(u[u.length]=r[v]);return u},zt}var Jt={exports:{}},Qt,Mn;function Ma(){if(Mn)return Qt;Mn=1;var r=Qe(),a=_i(),f=qe(),u=De();return Qt=function(g,A,E){if(!g||typeof g!="object"&&typeof g!="function")throw new f("`obj` must be an object or a function`");if(typeof A!="string"&&typeof A!="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 _=arguments.length>3?arguments[3]:null,B=arguments.length>4?arguments[4]:null,C=arguments.length>5?arguments[5]:null,N=arguments.length>6?arguments[6]:!1,P=!!u&&u(g,A);if(r)r(g,A,{configurable:C===null&&P?P.configurable:!C,enumerable:_===null&&P?P.enumerable:!_,value:E,writable:B===null&&P?P.writable:!B});else if(N||!_&&!B&&!C)g[A]=E;else throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Qt}var Zt,Un;function Ua(){if(Un)return Zt;Un=1;var r=Qe(),a=function(){return!!r};return a.hasArrayLengthDefineBug=function(){if(!r)return null;try{return r([],"length",{value:1}).length!==1}catch{return!0}},Zt=a,Zt}var er,jn;function ja(){if(jn)return er;jn=1;var r=Ii(),a=Ma(),f=Ua()(),u=De(),v=qe(),g=r("%Math.floor%");return er=function(E,_){if(typeof E!="function")throw new v("`fn` is not a function");if(typeof _!="number"||_<0||_>4294967295||g(_)!==_)throw new v("`length` must be a positive 32-bit integer");var B=arguments.length>2&&!!arguments[2],C=!0,N=!0;if("length"in E&&u){var P=u(E,"length");P&&!P.configurable&&(C=!1),P&&!P.writable&&(N=!1)}return(C||N||!B)&&(f?a(E,"length",_,!0,!0):a(E,"length",_)),E},er}var tr,qn;function qa(){if(qn)return tr;qn=1;var r=ke(),a=Pr(),f=Si();return tr=function(){return f(r,a,arguments)},tr}var kn;function ka(){return kn||(kn=1,function(r){var a=ja(),f=Qe(),u=Cr(),v=qa();r.exports=function(A){var E=u(arguments),_=A.length-(arguments.length-1);return a(E,1+(_>0?_:0),!0)},f?f(r.exports,"apply",{value:v}):r.exports.apply=v}(Jt)),Jt.exports}var rr,Hn;function Fi(){if(Hn)return rr;Hn=1;var r=Ca(),a=La(),f=ka(),u=He(),v=De(),g=u("Object.prototype.toString"),A=Je()(),E=typeof globalThis>"u"?Ee.commonjsGlobal:globalThis,_=a(),B=u("String.prototype.slice"),C=Object.getPrototypeOf,N=u("Array.prototype.indexOf",!0)||function(L,c){for(var m=0;m<L.length;m+=1)if(L[m]===c)return m;return-1},P={__proto__:null};A&&v&&C?r(_,function(H){var L=new E[H];if(Symbol.toStringTag in L){var c=C(L),m=v(c,Symbol.toStringTag);if(!m){var s=C(c);m=v(s,Symbol.toStringTag)}P["$"+H]=f(m.get)}}):r(_,function(H){var L=new E[H],c=L.slice||L.set;c&&(P["$"+H]=f(c))});var V=function(L){var c=!1;return r(P,function(m,s){if(!c)try{"$"+m(L)===s&&(c=B(s,1))}catch{}}),c},q=function(L){var c=!1;return r(P,function(m,s){if(!c)try{m(L),c=B(s,1)}catch{}}),c};return rr=function(L){if(!L||typeof L!="object")return!1;if(!A){var c=B(g(L),8,-1);return N(_,c)>-1?c:c!=="Object"?!1:q(L)}return v?V(L):null},rr}var nr,Gn;function Ha(){if(Gn)return nr;Gn=1;var r=Fi();return nr=function(f){return!!r(f)},nr}var Kn;function Ga(){return Kn||(Kn=1,function(r){var a=Fa(),f=Na(),u=Fi(),v=Ha();function g(k){return k.call.bind(k)}var A=typeof BigInt<"u",E=typeof Symbol<"u",_=g(Object.prototype.toString),B=g(Number.prototype.valueOf),C=g(String.prototype.valueOf),N=g(Boolean.prototype.valueOf);if(A)var P=g(BigInt.prototype.valueOf);if(E)var V=g(Symbol.prototype.valueOf);function q(k,ve){if(typeof k!="object")return!1;try{return ve(k),!0}catch{return!1}}r.isArgumentsObject=a,r.isGeneratorFunction=f,r.isTypedArray=v;function H(k){return typeof Promise<"u"&&k instanceof Promise||k!==null&&typeof k=="object"&&typeof k.then=="function"&&typeof k.catch=="function"}r.isPromise=H;function L(k){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(k):v(k)||j(k)}r.isArrayBufferView=L;function c(k){return u(k)==="Uint8Array"}r.isUint8Array=c;function m(k){return u(k)==="Uint8ClampedArray"}r.isUint8ClampedArray=m;function s(k){return u(k)==="Uint16Array"}r.isUint16Array=s;function o(k){return u(k)==="Uint32Array"}r.isUint32Array=o;function y(k){return u(k)==="Int8Array"}r.isInt8Array=y;function T(k){return u(k)==="Int16Array"}r.isInt16Array=T;function S(k){return u(k)==="Int32Array"}r.isInt32Array=S;function F(k){return u(k)==="Float32Array"}r.isFloat32Array=F;function d(k){return u(k)==="Float64Array"}r.isFloat64Array=d;function K(k){return u(k)==="BigInt64Array"}r.isBigInt64Array=K;function X(k){return u(k)==="BigUint64Array"}r.isBigUint64Array=X;function x(k){return _(k)==="[object Map]"}x.working=typeof Map<"u"&&x(new Map);function ee(k){return typeof Map>"u"?!1:x.working?x(k):k instanceof Map}r.isMap=ee;function ne(k){return _(k)==="[object Set]"}ne.working=typeof Set<"u"&&ne(new Set);function ae(k){return typeof Set>"u"?!1:ne.working?ne(k):k instanceof Set}r.isSet=ae;function ce(k){return _(k)==="[object WeakMap]"}ce.working=typeof WeakMap<"u"&&ce(new WeakMap);function Z(k){return typeof WeakMap>"u"?!1:ce.working?ce(k):k instanceof WeakMap}r.isWeakMap=Z;function he(k){return _(k)==="[object WeakSet]"}he.working=typeof WeakSet<"u"&&he(new WeakSet);function ue(k){return he(k)}r.isWeakSet=ue;function ge(k){return _(k)==="[object ArrayBuffer]"}ge.working=typeof ArrayBuffer<"u"&&ge(new ArrayBuffer);function be(k){return typeof ArrayBuffer>"u"?!1:ge.working?ge(k):k instanceof ArrayBuffer}r.isArrayBuffer=be;function D(k){return _(k)==="[object DataView]"}D.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&D(new DataView(new ArrayBuffer(1),0,1));function j(k){return typeof DataView>"u"?!1:D.working?D(k):k instanceof DataView}r.isDataView=j;var $=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function J(k){return _(k)==="[object SharedArrayBuffer]"}function O(k){return typeof $>"u"?!1:(typeof J.working>"u"&&(J.working=J(new $)),J.working?J(k):k instanceof $)}r.isSharedArrayBuffer=O;function i(k){return _(k)==="[object AsyncFunction]"}r.isAsyncFunction=i;function n(k){return _(k)==="[object Map Iterator]"}r.isMapIterator=n;function R(k){return _(k)==="[object Set Iterator]"}r.isSetIterator=R;function w(k){return _(k)==="[object Generator]"}r.isGeneratorObject=w;function h(k){return _(k)==="[object WebAssembly.Module]"}r.isWebAssemblyCompiledModule=h;function p(k){return q(k,B)}r.isNumberObject=p;function U(k){return q(k,C)}r.isStringObject=U;function W(k){return q(k,N)}r.isBooleanObject=W;function Q(k){return A&&q(k,P)}r.isBigIntObject=Q;function Y(k){return E&&q(k,V)}r.isSymbolObject=Y;function z(k){return p(k)||U(k)||W(k)||Q(k)||Y(k)}r.isBoxedPrimitive=z;function fe(k){return typeof Uint8Array<"u"&&(be(k)||O(k))}r.isAnyArrayBuffer=fe,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(k){Object.defineProperty(r,k,{enumerable:!1,value:function(){throw new Error(k+" is not supported in userland")}})})}(ot)),ot}var ir,$n;function Ka(){return $n||($n=1,ir=function(a){return a&&typeof a=="object"&&typeof a.copy=="function"&&typeof a.fill=="function"&&typeof a.readUInt8=="function"}),ir}var Wn;function Oi(){return Wn||(Wn=1,function(r){var a=Object.getOwnPropertyDescriptors||function(j){for(var $=Object.keys(j),J={},O=0;O<$.length;O++)J[$[O]]=Object.getOwnPropertyDescriptor(j,$[O]);return J},f=/%[sdj%]/g;r.format=function(D){if(!y(D)){for(var j=[],$=0;$<arguments.length;$++)j.push(A(arguments[$]));return j.join(" ")}for(var $=1,J=arguments,O=J.length,i=String(D).replace(f,function(R){if(R==="%%")return"%";if($>=O)return R;switch(R){case"%s":return String(J[$++]);case"%d":return Number(J[$++]);case"%j":try{return JSON.stringify(J[$++])}catch{return"[Circular]"}default:return R}}),n=J[$];$<O;n=J[++$])m(n)||!d(n)?i+=" "+n:i+=" "+A(n);return i},r.deprecate=function(D,j){if(typeof te.process$1<"u"&&te.process$1.noDeprecation===!0)return D;if(typeof te.process$1>"u")return function(){return r.deprecate(D,j).apply(this,arguments)};var $=!1;function J(){if(!$){if(te.process$1.throwDeprecation)throw new Error(j);te.process$1.traceDeprecation?console.trace(j):console.error(j),$=!0}return D.apply(this,arguments)}return J};var u={},v=/^$/;if(te.process$1.env.NODE_DEBUG){var g=te.process$1.env.NODE_DEBUG;g=g.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),v=new RegExp("^"+g+"$","i")}r.debuglog=function(D){if(D=D.toUpperCase(),!u[D])if(v.test(D)){var j=te.process$1.pid;u[D]=function(){var $=r.format.apply(r,arguments);console.error("%s %d: %s",D,j,$)}}else u[D]=function(){};return u[D]};function A(D,j){var $={seen:[],stylize:_};return arguments.length>=3&&($.depth=arguments[2]),arguments.length>=4&&($.colors=arguments[3]),c(j)?$.showHidden=j:j&&r._extend($,j),S($.showHidden)&&($.showHidden=!1),S($.depth)&&($.depth=2),S($.colors)&&($.colors=!1),S($.customInspect)&&($.customInspect=!0),$.colors&&($.stylize=E),C($,D,$.depth)}r.inspect=A,A.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]},A.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function E(D,j){var $=A.styles[j];return $?"\x1B["+A.colors[$][0]+"m"+D+"\x1B["+A.colors[$][1]+"m":D}function _(D,j){return D}function B(D){var j={};return D.forEach(function($,J){j[$]=!0}),j}function C(D,j,$){if(D.customInspect&&j&&x(j.inspect)&&j.inspect!==r.inspect&&!(j.constructor&&j.constructor.prototype===j)){var J=j.inspect($,D);return y(J)||(J=C(D,J,$)),J}var O=N(D,j);if(O)return O;var i=Object.keys(j),n=B(i);if(D.showHidden&&(i=Object.getOwnPropertyNames(j)),X(j)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return P(j);if(i.length===0){if(x(j)){var R=j.name?": "+j.name:"";return D.stylize("[Function"+R+"]","special")}if(F(j))return D.stylize(RegExp.prototype.toString.call(j),"regexp");if(K(j))return D.stylize(Date.prototype.toString.call(j),"date");if(X(j))return P(j)}var w="",h=!1,p=["{","}"];if(L(j)&&(h=!0,p=["[","]"]),x(j)){var U=j.name?": "+j.name:"";w=" [Function"+U+"]"}if(F(j)&&(w=" "+RegExp.prototype.toString.call(j)),K(j)&&(w=" "+Date.prototype.toUTCString.call(j)),X(j)&&(w=" "+P(j)),i.length===0&&(!h||j.length==0))return p[0]+w+p[1];if($<0)return F(j)?D.stylize(RegExp.prototype.toString.call(j),"regexp"):D.stylize("[Object]","special");D.seen.push(j);var W;return h?W=V(D,j,$,n,i):W=i.map(function(Q){return q(D,j,$,n,Q,h)}),D.seen.pop(),H(W,w,p)}function N(D,j){if(S(j))return D.stylize("undefined","undefined");if(y(j)){var $="'"+JSON.stringify(j).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return D.stylize($,"string")}if(o(j))return D.stylize(""+j,"number");if(c(j))return D.stylize(""+j,"boolean");if(m(j))return D.stylize("null","null")}function P(D){return"["+Error.prototype.toString.call(D)+"]"}function V(D,j,$,J,O){for(var i=[],n=0,R=j.length;n<R;++n)he(j,String(n))?i.push(q(D,j,$,J,String(n),!0)):i.push("");return O.forEach(function(w){w.match(/^\d+$/)||i.push(q(D,j,$,J,w,!0))}),i}function q(D,j,$,J,O,i){var n,R,w;if(w=Object.getOwnPropertyDescriptor(j,O)||{value:j[O]},w.get?w.set?R=D.stylize("[Getter/Setter]","special"):R=D.stylize("[Getter]","special"):w.set&&(R=D.stylize("[Setter]","special")),he(J,O)||(n="["+O+"]"),R||(D.seen.indexOf(w.value)<0?(m($)?R=C(D,w.value,null):R=C(D,w.value,$-1),R.indexOf(`
|
|
6
|
+
*/(function(m){const s=l,o=L,g=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;m.Buffer=x,m.SlowBuffer=j,m.INSPECT_MAX_BYTES=50;const T=2147483647;m.kMaxLength=T;const{Uint8Array:S,ArrayBuffer:F,SharedArrayBuffer:d}=globalThis;x.TYPED_ARRAY_SUPPORT=K(),!x.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 K(){try{const f=new S(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,S.prototype),Object.setPrototypeOf(f,e),f.foo()===42}catch{return!1}}Object.defineProperty(x.prototype,"parent",{enumerable:!0,get:function(){if(x.isBuffer(this))return this.buffer}}),Object.defineProperty(x.prototype,"offset",{enumerable:!0,get:function(){if(x.isBuffer(this))return this.byteOffset}});function X(f){if(f>T)throw new RangeError('The value "'+f+'" is invalid for option "size"');const e=new S(f);return Object.setPrototypeOf(e,x.prototype),e}function x(f,e,t){if(typeof f=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return le(f)}return ee(f,e,t)}x.poolSize=8192;function ee(f,e,t){if(typeof f=="string")return Z(f,e);if(F.isView(f))return oe(f);if(f==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof f);if(_e(f,F)||f&&_e(f.buffer,F)||typeof d<"u"&&(_e(f,d)||f&&_e(f.buffer,d)))return ye(f,e,t);if(typeof f=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const b=f.valueOf&&f.valueOf();if(b!=null&&b!==f)return x.from(b,e,t);const I=ge(f);if(I)return I;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof f[Symbol.toPrimitive]=="function")return x.from(f[Symbol.toPrimitive]("string"),e,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof f)}x.from=function(f,e,t){return ee(f,e,t)},Object.setPrototypeOf(x.prototype,S.prototype),Object.setPrototypeOf(x,S);function re(f){if(typeof f!="number")throw new TypeError('"size" argument must be of type number');if(f<0)throw new RangeError('The value "'+f+'" is invalid for option "size"')}function ie(f,e,t){return re(f),f<=0?X(f):e!==void 0?typeof t=="string"?X(f).fill(e,t):X(f).fill(e):X(f)}x.alloc=function(f,e,t){return ie(f,e,t)};function le(f){return re(f),X(f<0?0:D(f)|0)}x.allocUnsafe=function(f){return le(f)},x.allocUnsafeSlow=function(f){return le(f)};function Z(f,e){if((typeof e!="string"||e==="")&&(e="utf8"),!x.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const t=$(f,e)|0;let b=X(t);const I=b.write(f,e);return I!==t&&(b=b.slice(0,I)),b}function ce(f){const e=f.length<0?0:D(f.length)|0,t=X(e);for(let b=0;b<e;b+=1)t[b]=f[b]&255;return t}function oe(f){if(_e(f,S)){const e=new S(f);return ye(e.buffer,e.byteOffset,e.byteLength)}return ce(f)}function ye(f,e,t){if(e<0||f.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(f.byteLength<e+(t||0))throw new RangeError('"length" is outside of buffer bounds');let b;return e===void 0&&t===void 0?b=new S(f):t===void 0?b=new S(f,e):b=new S(f,e,t),Object.setPrototypeOf(b,x.prototype),b}function ge(f){if(x.isBuffer(f)){const e=D(f.length)|0,t=X(e);return t.length===0||f.copy(t,0,0,e),t}if(f.length!==void 0)return typeof f.length!="number"||ut(f.length)?X(0):ce(f);if(f.type==="Buffer"&&Array.isArray(f.data))return ce(f.data)}function D(f){if(f>=T)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+T.toString(16)+" bytes");return f|0}function j(f){return+f!=f&&(f=0),x.alloc(+f)}x.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==x.prototype},x.compare=function(e,t){if(_e(e,S)&&(e=x.from(e,e.offset,e.byteLength)),_e(t,S)&&(t=x.from(t,t.offset,t.byteLength)),!x.isBuffer(e)||!x.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let b=e.length,I=t.length;for(let M=0,H=Math.min(b,I);M<H;++M)if(e[M]!==t[M]){b=e[M],I=t[M];break}return b<I?-1:I<b?1:0},x.isEncoding=function(e){switch(String(e).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}},x.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return x.alloc(0);let b;if(t===void 0)for(t=0,b=0;b<e.length;++b)t+=e[b].length;const I=x.allocUnsafe(t);let M=0;for(b=0;b<e.length;++b){let H=e[b];if(_e(H,S))M+H.length>I.length?(x.isBuffer(H)||(H=x.from(H)),H.copy(I,M)):S.prototype.set.call(I,H,M);else if(x.isBuffer(H))H.copy(I,M);else throw new TypeError('"list" argument must be an Array of Buffers');M+=H.length}return I};function $(f,e){if(x.isBuffer(f))return f.length;if(F.isView(f)||_e(f,F))return f.byteLength;if(typeof f!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof f);const t=f.length,b=arguments.length>2&&arguments[2]===!0;if(!b&&t===0)return 0;let I=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return ot(f).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Vr(f).length;default:if(I)return b?-1:ot(f).length;e=(""+e).toLowerCase(),I=!0}}x.byteLength=$;function J(f,e,t){let b=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,e>>>=0,t<=e))return"";for(f||(f="utf8");;)switch(f){case"hex":return ve(this,e,t);case"utf8":case"utf-8":return Q(this,e,t);case"ascii":return se(this,e,t);case"latin1":case"binary":return k(this,e,t);case"base64":return W(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return be(this,e,t);default:if(b)throw new TypeError("Unknown encoding: "+f);f=(f+"").toLowerCase(),b=!0}}x.prototype._isBuffer=!0;function O(f,e,t){const b=f[e];f[e]=f[t],f[t]=b}x.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)O(this,t,t+1);return this},x.prototype.swap32=function(){const e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)O(this,t,t+3),O(this,t+1,t+2);return this},x.prototype.swap64=function(){const e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)O(this,t,t+7),O(this,t+1,t+6),O(this,t+2,t+5),O(this,t+3,t+4);return this},x.prototype.toString=function(){const e=this.length;return e===0?"":arguments.length===0?Q(this,0,e):J.apply(this,arguments)},x.prototype.toLocaleString=x.prototype.toString,x.prototype.equals=function(e){if(!x.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:x.compare(this,e)===0},x.prototype.inspect=function(){let e="";const t=m.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},g&&(x.prototype[g]=x.prototype.inspect),x.prototype.compare=function(e,t,b,I,M){if(_e(e,S)&&(e=x.from(e,e.offset,e.byteLength)),!x.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),b===void 0&&(b=e?e.length:0),I===void 0&&(I=0),M===void 0&&(M=this.length),t<0||b>e.length||I<0||M>this.length)throw new RangeError("out of range index");if(I>=M&&t>=b)return 0;if(I>=M)return-1;if(t>=b)return 1;if(t>>>=0,b>>>=0,I>>>=0,M>>>=0,this===e)return 0;let H=M-I,ne=b-t;const de=Math.min(H,ne),fe=this.slice(I,M),pe=e.slice(t,b);for(let ue=0;ue<de;++ue)if(fe[ue]!==pe[ue]){H=fe[ue],ne=pe[ue];break}return H<ne?-1:ne<H?1:0};function i(f,e,t,b,I){if(f.length===0)return-1;if(typeof t=="string"?(b=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,ut(t)&&(t=I?0:f.length-1),t<0&&(t=f.length+t),t>=f.length){if(I)return-1;t=f.length-1}else if(t<0)if(I)t=0;else return-1;if(typeof e=="string"&&(e=x.from(e,b)),x.isBuffer(e))return e.length===0?-1:n(f,e,t,b,I);if(typeof e=="number")return e=e&255,typeof S.prototype.indexOf=="function"?I?S.prototype.indexOf.call(f,e,t):S.prototype.lastIndexOf.call(f,e,t):n(f,[e],t,b,I);throw new TypeError("val must be string, number or Buffer")}function n(f,e,t,b,I){let M=1,H=f.length,ne=e.length;if(b!==void 0&&(b=String(b).toLowerCase(),b==="ucs2"||b==="ucs-2"||b==="utf16le"||b==="utf-16le")){if(f.length<2||e.length<2)return-1;M=2,H/=2,ne/=2,t/=2}function de(pe,ue){return M===1?pe[ue]:pe.readUInt16BE(ue*M)}let fe;if(I){let pe=-1;for(fe=t;fe<H;fe++)if(de(f,fe)===de(e,pe===-1?0:fe-pe)){if(pe===-1&&(pe=fe),fe-pe+1===ne)return pe*M}else pe!==-1&&(fe-=fe-pe),pe=-1}else for(t+ne>H&&(t=H-ne),fe=t;fe>=0;fe--){let pe=!0;for(let ue=0;ue<ne;ue++)if(de(f,fe+ue)!==de(e,ue)){pe=!1;break}if(pe)return fe}return-1}x.prototype.includes=function(e,t,b){return this.indexOf(e,t,b)!==-1},x.prototype.indexOf=function(e,t,b){return i(this,e,t,b,!0)},x.prototype.lastIndexOf=function(e,t,b){return i(this,e,t,b,!1)};function R(f,e,t,b){t=Number(t)||0;const I=f.length-t;b?(b=Number(b),b>I&&(b=I)):b=I;const M=e.length;b>M/2&&(b=M/2);let H;for(H=0;H<b;++H){const ne=parseInt(e.substr(H*2,2),16);if(ut(ne))return H;f[t+H]=ne}return H}function v(f,e,t,b){return Ve(ot(e,f.length-t),f,t,b)}function h(f,e,t,b){return Ve(ra(e),f,t,b)}function p(f,e,t,b){return Ve(Vr(e),f,t,b)}function U(f,e,t,b){return Ve(na(e,f.length-t),f,t,b)}x.prototype.write=function(e,t,b,I){if(t===void 0)I="utf8",b=this.length,t=0;else if(b===void 0&&typeof t=="string")I=t,b=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(b)?(b=b>>>0,I===void 0&&(I="utf8")):(I=b,b=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const M=this.length-t;if((b===void 0||b>M)&&(b=M),e.length>0&&(b<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");I||(I="utf8");let H=!1;for(;;)switch(I){case"hex":return R(this,e,t,b);case"utf8":case"utf-8":return v(this,e,t,b);case"ascii":case"latin1":case"binary":return h(this,e,t,b);case"base64":return p(this,e,t,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,e,t,b);default:if(H)throw new TypeError("Unknown encoding: "+I);I=(""+I).toLowerCase(),H=!0}},x.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function W(f,e,t){return e===0&&t===f.length?s.fromByteArray(f):s.fromByteArray(f.slice(e,t))}function Q(f,e,t){t=Math.min(f.length,t);const b=[];let I=e;for(;I<t;){const M=f[I];let H=null,ne=M>239?4:M>223?3:M>191?2:1;if(I+ne<=t){let de,fe,pe,ue;switch(ne){case 1:M<128&&(H=M);break;case 2:de=f[I+1],(de&192)===128&&(ue=(M&31)<<6|de&63,ue>127&&(H=ue));break;case 3:de=f[I+1],fe=f[I+2],(de&192)===128&&(fe&192)===128&&(ue=(M&15)<<12|(de&63)<<6|fe&63,ue>2047&&(ue<55296||ue>57343)&&(H=ue));break;case 4:de=f[I+1],fe=f[I+2],pe=f[I+3],(de&192)===128&&(fe&192)===128&&(pe&192)===128&&(ue=(M&15)<<18|(de&63)<<12|(fe&63)<<6|pe&63,ue>65535&&ue<1114112&&(H=ue))}}H===null?(H=65533,ne=1):H>65535&&(H-=65536,b.push(H>>>10&1023|55296),H=56320|H&1023),b.push(H),I+=ne}return z(b)}const Y=4096;function z(f){const e=f.length;if(e<=Y)return String.fromCharCode.apply(String,f);let t="",b=0;for(;b<e;)t+=String.fromCharCode.apply(String,f.slice(b,b+=Y));return t}function se(f,e,t){let b="";t=Math.min(f.length,t);for(let I=e;I<t;++I)b+=String.fromCharCode(f[I]&127);return b}function k(f,e,t){let b="";t=Math.min(f.length,t);for(let I=e;I<t;++I)b+=String.fromCharCode(f[I]);return b}function ve(f,e,t){const b=f.length;(!e||e<0)&&(e=0),(!t||t<0||t>b)&&(t=b);let I="";for(let M=e;M<t;++M)I+=ia[f[M]];return I}function be(f,e,t){const b=f.slice(e,t);let I="";for(let M=0;M<b.length-1;M+=2)I+=String.fromCharCode(b[M]+b[M+1]*256);return I}x.prototype.slice=function(e,t){const b=this.length;e=~~e,t=t===void 0?b:~~t,e<0?(e+=b,e<0&&(e=0)):e>b&&(e=b),t<0?(t+=b,t<0&&(t=0)):t>b&&(t=b),t<e&&(t=e);const I=this.subarray(e,t);return Object.setPrototypeOf(I,x.prototype),I};function ae(f,e,t){if(f%1!==0||f<0)throw new RangeError("offset is not uint");if(f+e>t)throw new RangeError("Trying to access beyond buffer length")}x.prototype.readUintLE=x.prototype.readUIntLE=function(e,t,b){e=e>>>0,t=t>>>0,b||ae(e,t,this.length);let I=this[e],M=1,H=0;for(;++H<t&&(M*=256);)I+=this[e+H]*M;return I},x.prototype.readUintBE=x.prototype.readUIntBE=function(e,t,b){e=e>>>0,t=t>>>0,b||ae(e,t,this.length);let I=this[e+--t],M=1;for(;t>0&&(M*=256);)I+=this[e+--t]*M;return I},x.prototype.readUint8=x.prototype.readUInt8=function(e,t){return e=e>>>0,t||ae(e,1,this.length),this[e]},x.prototype.readUint16LE=x.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||ae(e,2,this.length),this[e]|this[e+1]<<8},x.prototype.readUint16BE=x.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||ae(e,2,this.length),this[e]<<8|this[e+1]},x.prototype.readUint32LE=x.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||ae(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},x.prototype.readUint32BE=x.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||ae(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},x.prototype.readBigUInt64LE=xe(function(e){e=e>>>0,Ce(e,"offset");const t=this[e],b=this[e+7];(t===void 0||b===void 0)&&qe(e,this.length-8);const I=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,M=this[++e]+this[++e]*2**8+this[++e]*2**16+b*2**24;return BigInt(I)+(BigInt(M)<<BigInt(32))}),x.prototype.readBigUInt64BE=xe(function(e){e=e>>>0,Ce(e,"offset");const t=this[e],b=this[e+7];(t===void 0||b===void 0)&&qe(e,this.length-8);const I=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],M=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+b;return(BigInt(I)<<BigInt(32))+BigInt(M)}),x.prototype.readIntLE=function(e,t,b){e=e>>>0,t=t>>>0,b||ae(e,t,this.length);let I=this[e],M=1,H=0;for(;++H<t&&(M*=256);)I+=this[e+H]*M;return M*=128,I>=M&&(I-=Math.pow(2,8*t)),I},x.prototype.readIntBE=function(e,t,b){e=e>>>0,t=t>>>0,b||ae(e,t,this.length);let I=t,M=1,H=this[e+--I];for(;I>0&&(M*=256);)H+=this[e+--I]*M;return M*=128,H>=M&&(H-=Math.pow(2,8*t)),H},x.prototype.readInt8=function(e,t){return e=e>>>0,t||ae(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},x.prototype.readInt16LE=function(e,t){e=e>>>0,t||ae(e,2,this.length);const b=this[e]|this[e+1]<<8;return b&32768?b|4294901760:b},x.prototype.readInt16BE=function(e,t){e=e>>>0,t||ae(e,2,this.length);const b=this[e+1]|this[e]<<8;return b&32768?b|4294901760:b},x.prototype.readInt32LE=function(e,t){return e=e>>>0,t||ae(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},x.prototype.readInt32BE=function(e,t){return e=e>>>0,t||ae(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},x.prototype.readBigInt64LE=xe(function(e){e=e>>>0,Ce(e,"offset");const t=this[e],b=this[e+7];(t===void 0||b===void 0)&&qe(e,this.length-8);const I=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(b<<24);return(BigInt(I)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)}),x.prototype.readBigInt64BE=xe(function(e){e=e>>>0,Ce(e,"offset");const t=this[e],b=this[e+7];(t===void 0||b===void 0)&&qe(e,this.length-8);const I=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(I)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+b)}),x.prototype.readFloatLE=function(e,t){return e=e>>>0,t||ae(e,4,this.length),o.read(this,e,!0,23,4)},x.prototype.readFloatBE=function(e,t){return e=e>>>0,t||ae(e,4,this.length),o.read(this,e,!1,23,4)},x.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||ae(e,8,this.length),o.read(this,e,!0,52,8)},x.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||ae(e,8,this.length),o.read(this,e,!1,52,8)};function he(f,e,t,b,I,M){if(!x.isBuffer(f))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>I||e<M)throw new RangeError('"value" argument is out of bounds');if(t+b>f.length)throw new RangeError("Index out of range")}x.prototype.writeUintLE=x.prototype.writeUIntLE=function(e,t,b,I){if(e=+e,t=t>>>0,b=b>>>0,!I){const ne=Math.pow(2,8*b)-1;he(this,e,t,b,ne,0)}let M=1,H=0;for(this[t]=e&255;++H<b&&(M*=256);)this[t+H]=e/M&255;return t+b},x.prototype.writeUintBE=x.prototype.writeUIntBE=function(e,t,b,I){if(e=+e,t=t>>>0,b=b>>>0,!I){const ne=Math.pow(2,8*b)-1;he(this,e,t,b,ne,0)}let M=b-1,H=1;for(this[t+M]=e&255;--M>=0&&(H*=256);)this[t+M]=e/H&255;return t+b},x.prototype.writeUint8=x.prototype.writeUInt8=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,1,255,0),this[t]=e&255,t+1},x.prototype.writeUint16LE=x.prototype.writeUInt16LE=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},x.prototype.writeUint16BE=x.prototype.writeUInt16BE=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},x.prototype.writeUint32LE=x.prototype.writeUInt32LE=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},x.prototype.writeUint32BE=x.prototype.writeUInt32BE=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function we(f,e,t,b,I){Wr(e,b,I,f,t,7);let M=Number(e&BigInt(4294967295));f[t++]=M,M=M>>8,f[t++]=M,M=M>>8,f[t++]=M,M=M>>8,f[t++]=M;let H=Number(e>>BigInt(32)&BigInt(4294967295));return f[t++]=H,H=H>>8,f[t++]=H,H=H>>8,f[t++]=H,H=H>>8,f[t++]=H,t}function Ne(f,e,t,b,I){Wr(e,b,I,f,t,7);let M=Number(e&BigInt(4294967295));f[t+7]=M,M=M>>8,f[t+6]=M,M=M>>8,f[t+5]=M,M=M>>8,f[t+4]=M;let H=Number(e>>BigInt(32)&BigInt(4294967295));return f[t+3]=H,H=H>>8,f[t+2]=H,H=H>>8,f[t+1]=H,H=H>>8,f[t]=H,t+8}x.prototype.writeBigUInt64LE=xe(function(e,t=0){return we(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),x.prototype.writeBigUInt64BE=xe(function(e,t=0){return Ne(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),x.prototype.writeIntLE=function(e,t,b,I){if(e=+e,t=t>>>0,!I){const de=Math.pow(2,8*b-1);he(this,e,t,b,de-1,-de)}let M=0,H=1,ne=0;for(this[t]=e&255;++M<b&&(H*=256);)e<0&&ne===0&&this[t+M-1]!==0&&(ne=1),this[t+M]=(e/H>>0)-ne&255;return t+b},x.prototype.writeIntBE=function(e,t,b,I){if(e=+e,t=t>>>0,!I){const de=Math.pow(2,8*b-1);he(this,e,t,b,de-1,-de)}let M=b-1,H=1,ne=0;for(this[t+M]=e&255;--M>=0&&(H*=256);)e<0&&ne===0&&this[t+M+1]!==0&&(ne=1),this[t+M]=(e/H>>0)-ne&255;return t+b},x.prototype.writeInt8=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},x.prototype.writeInt16LE=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},x.prototype.writeInt16BE=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},x.prototype.writeInt32LE=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},x.prototype.writeInt32BE=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},x.prototype.writeBigInt64LE=xe(function(e,t=0){return we(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),x.prototype.writeBigInt64BE=xe(function(e,t=0){return Ne(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Re(f,e,t,b,I,M){if(t+b>f.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Ae(f,e,t,b,I){return e=+e,t=t>>>0,I||Re(f,e,t,4),o.write(f,e,t,b,23,4),t+4}x.prototype.writeFloatLE=function(e,t,b){return Ae(this,e,t,!0,b)},x.prototype.writeFloatBE=function(e,t,b){return Ae(this,e,t,!1,b)};function Te(f,e,t,b,I){return e=+e,t=t>>>0,I||Re(f,e,t,8),o.write(f,e,t,b,52,8),t+8}x.prototype.writeDoubleLE=function(e,t,b){return Te(this,e,t,!0,b)},x.prototype.writeDoubleBE=function(e,t,b){return Te(this,e,t,!1,b)},x.prototype.copy=function(e,t,b,I){if(!x.isBuffer(e))throw new TypeError("argument should be a Buffer");if(b||(b=0),!I&&I!==0&&(I=this.length),t>=e.length&&(t=e.length),t||(t=0),I>0&&I<b&&(I=b),I===b||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(b<0||b>=this.length)throw new RangeError("Index out of range");if(I<0)throw new RangeError("sourceEnd out of bounds");I>this.length&&(I=this.length),e.length-t<I-b&&(I=e.length-t+b);const M=I-b;return this===e&&typeof S.prototype.copyWithin=="function"?this.copyWithin(t,b,I):S.prototype.set.call(e,this.subarray(b,I),t),M},x.prototype.fill=function(e,t,b,I){if(typeof e=="string"){if(typeof t=="string"?(I=t,t=0,b=this.length):typeof b=="string"&&(I=b,b=this.length),I!==void 0&&typeof I!="string")throw new TypeError("encoding must be a string");if(typeof I=="string"&&!x.isEncoding(I))throw new TypeError("Unknown encoding: "+I);if(e.length===1){const H=e.charCodeAt(0);(I==="utf8"&&H<128||I==="latin1")&&(e=H)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<b)throw new RangeError("Out of range index");if(b<=t)return this;t=t>>>0,b=b===void 0?this.length:b>>>0,e||(e=0);let M;if(typeof e=="number")for(M=t;M<b;++M)this[M]=e;else{const H=x.isBuffer(e)?e:x.from(e,I),ne=H.length;if(ne===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(M=0;M<b-t;++M)this[M+t]=H[M%ne]}return this};const Pe={};function at(f,e,t){Pe[f]=class extends t{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${f}]`,this.stack,delete this.name}get code(){return f}set code(I){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:I,writable:!0})}toString(){return`${this.name} [${f}]: ${this.message}`}}}at("ERR_BUFFER_OUT_OF_BOUNDS",function(f){return f?`${f} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),at("ERR_INVALID_ARG_TYPE",function(f,e){return`The "${f}" argument must be of type number. Received type ${typeof e}`},TypeError),at("ERR_OUT_OF_RANGE",function(f,e,t){let b=`The value of "${f}" is out of range.`,I=t;return Number.isInteger(t)&&Math.abs(t)>2**32?I=$r(String(t)):typeof t=="bigint"&&(I=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(I=$r(I)),I+="n"),b+=` It must be ${e}. Received ${I}`,b},RangeError);function $r(f){let e="",t=f.length;const b=f[0]==="-"?1:0;for(;t>=b+4;t-=3)e=`_${f.slice(t-3,t)}${e}`;return`${f.slice(0,t)}${e}`}function Zi(f,e,t){Ce(e,"offset"),(f[e]===void 0||f[e+t]===void 0)&&qe(e,f.length-(t+1))}function Wr(f,e,t,b,I,M){if(f>t||f<e){const H=typeof e=="bigint"?"n":"";let ne;throw e===0||e===BigInt(0)?ne=`>= 0${H} and < 2${H} ** ${(M+1)*8}${H}`:ne=`>= -(2${H} ** ${(M+1)*8-1}${H}) and < 2 ** ${(M+1)*8-1}${H}`,new Pe.ERR_OUT_OF_RANGE("value",ne,f)}Zi(b,I,M)}function Ce(f,e){if(typeof f!="number")throw new Pe.ERR_INVALID_ARG_TYPE(e,"number",f)}function qe(f,e,t){throw Math.floor(f)!==f?(Ce(f,t),new Pe.ERR_OUT_OF_RANGE("offset","an integer",f)):e<0?new Pe.ERR_BUFFER_OUT_OF_BOUNDS:new Pe.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${e}`,f)}const ea=/[^+/0-9A-Za-z-_]/g;function ta(f){if(f=f.split("=")[0],f=f.trim().replace(ea,""),f.length<2)return"";for(;f.length%4!==0;)f=f+"=";return f}function ot(f,e){e=e||1/0;let t;const b=f.length;let I=null;const M=[];for(let H=0;H<b;++H){if(t=f.charCodeAt(H),t>55295&&t<57344){if(!I){if(t>56319){(e-=3)>-1&&M.push(239,191,189);continue}else if(H+1===b){(e-=3)>-1&&M.push(239,191,189);continue}I=t;continue}if(t<56320){(e-=3)>-1&&M.push(239,191,189),I=t;continue}t=(I-55296<<10|t-56320)+65536}else I&&(e-=3)>-1&&M.push(239,191,189);if(I=null,t<128){if((e-=1)<0)break;M.push(t)}else if(t<2048){if((e-=2)<0)break;M.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;M.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;M.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return M}function ra(f){const e=[];for(let t=0;t<f.length;++t)e.push(f.charCodeAt(t)&255);return e}function na(f,e){let t,b,I;const M=[];for(let H=0;H<f.length&&!((e-=2)<0);++H)t=f.charCodeAt(H),b=t>>8,I=t%256,M.push(I),M.push(b);return M}function Vr(f){return s.toByteArray(ta(f))}function Ve(f,e,t,b){let I;for(I=0;I<b&&!(I+t>=e.length||I>=f.length);++I)e[I+t]=f[I];return I}function _e(f,e){return f instanceof e||f!=null&&f.constructor!=null&&f.constructor.name!=null&&f.constructor.name===e.name}function ut(f){return f!==f}const ia=function(){const f="0123456789abcdef",e=new Array(256);for(let t=0;t<16;++t){const b=t*16;for(let I=0;I<16;++I)e[b+I]=f[t]+f[I]}return e}();function xe(f){return typeof BigInt>"u"?aa:f}function aa(){throw new Error("BigInt not supported")}})(a);const c=a.Buffer;r.Blob=a.Blob,r.BlobOptions=a.BlobOptions,r.Buffer=a.Buffer,r.File=a.File,r.FileOptions=a.FileOptions,r.INSPECT_MAX_BYTES=a.INSPECT_MAX_BYTES,r.SlowBuffer=a.SlowBuffer,r.TranscodeEncoding=a.TranscodeEncoding,r.atob=a.atob,r.btoa=a.btoa,r.constants=a.constants,r.default=c,r.isAscii=a.isAscii,r.isUtf8=a.isUtf8,r.kMaxLength=a.kMaxLength,r.kStringMaxLength=a.kStringMaxLength,r.resolveObjectURL=a.resolveObjectURL,r.transcode=a.transcode}(lt)),lt}var ct={},ht={},dt,Qr;function Oi(){return Qr||(Qr=1,dt=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var a={},l=Symbol("test"),u=Object(l);if(typeof l=="string"||Object.prototype.toString.call(l)!=="[object Symbol]"||Object.prototype.toString.call(u)!=="[object Symbol]")return!1;var w=42;a[l]=w;for(var y in a)return!1;if(typeof Object.keys=="function"&&Object.keys(a).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(a).length!==0)return!1;var A=Object.getOwnPropertySymbols(a);if(A.length!==1||A[0]!==l||!Object.prototype.propertyIsEnumerable.call(a,l))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var E=Object.getOwnPropertyDescriptor(a,l);if(E.value!==w||E.enumerable!==!0)return!1}return!0}),dt}var pt,Zr;function nt(){if(Zr)return pt;Zr=1;var r=Oi();return pt=function(){return r()&&!!Symbol.toStringTag},pt}var yt,en;function Bi(){return en||(en=1,yt=Object),yt}var gt,tn;function wa(){return tn||(tn=1,gt=Error),gt}var bt,rn;function _a(){return rn||(rn=1,bt=EvalError),bt}var mt,nn;function Aa(){return nn||(nn=1,mt=RangeError),mt}var Et,an;function Ta(){return an||(an=1,Et=ReferenceError),Et}var vt,on;function Ni(){return on||(on=1,vt=SyntaxError),vt}var wt,un;function He(){return un||(un=1,wt=TypeError),wt}var _t,sn;function Sa(){return sn||(sn=1,_t=URIError),_t}var At,fn;function Ra(){return fn||(fn=1,At=Math.abs),At}var Tt,ln;function xa(){return ln||(ln=1,Tt=Math.floor),Tt}var St,cn;function Ia(){return cn||(cn=1,St=Math.max),St}var Rt,hn;function Fa(){return hn||(hn=1,Rt=Math.min),Rt}var xt,dn;function Oa(){return dn||(dn=1,xt=Math.pow),xt}var It,pn;function Ba(){return pn||(pn=1,It=Math.round),It}var Ft,yn;function Na(){return yn||(yn=1,Ft=Number.isNaN||function(a){return a!==a}),Ft}var Ot,gn;function Pa(){if(gn)return Ot;gn=1;var r=Na();return Ot=function(l){return r(l)||l===0?l:l<0?-1:1},Ot}var Bt,bn;function Ca(){return bn||(bn=1,Bt=Object.getOwnPropertyDescriptor),Bt}var Nt,mn;function Ue(){if(mn)return Nt;mn=1;var r=Ca();if(r)try{r([],"length")}catch{r=null}return Nt=r,Nt}var Pt,En;function it(){if(En)return Pt;En=1;var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}return Pt=r,Pt}var Ct,vn;function Da(){if(vn)return Ct;vn=1;var r=typeof Symbol<"u"&&Symbol,a=Oi();return Ct=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:a()},Ct}var Dt,wn;function Pi(){return wn||(wn=1,Dt=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Dt}var Lt,_n;function Ci(){if(_n)return Lt;_n=1;var r=Bi();return Lt=r.getPrototypeOf||null,Lt}var Mt,An;function La(){if(An)return Mt;An=1;var r="Function.prototype.bind called on incompatible ",a=Object.prototype.toString,l=Math.max,u="[object Function]",w=function(_,B){for(var C=[],N=0;N<_.length;N+=1)C[N]=_[N];for(var P=0;P<B.length;P+=1)C[P+_.length]=B[P];return C},y=function(_,B){for(var C=[],N=B,P=0;N<_.length;N+=1,P+=1)C[P]=_[N];return C},A=function(E,_){for(var B="",C=0;C<E.length;C+=1)B+=E[C],C+1<E.length&&(B+=_);return B};return Mt=function(_){var B=this;if(typeof B!="function"||a.apply(B)!==u)throw new TypeError(r+B);for(var C=y(arguments,1),N,P=function(){if(this instanceof N){var c=B.apply(this,w(C,arguments));return Object(c)===c?c:this}return B.apply(_,w(C,arguments))},V=l(0,B.length-C.length),q=[],G=0;G<V;G++)q[G]="$"+G;if(N=Function("binder","return function ("+A(q,",")+"){ return binder.apply(this,arguments); }")(P),B.prototype){var L=function(){};L.prototype=B.prototype,N.prototype=new L,L.prototype=null}return N},Mt}var Ut,Tn;function Ke(){if(Tn)return Ut;Tn=1;var r=La();return Ut=Function.prototype.bind||r,Ut}var jt,Sn;function Mr(){return Sn||(Sn=1,jt=Function.prototype.call),jt}var qt,Rn;function Ur(){return Rn||(Rn=1,qt=Function.prototype.apply),qt}var kt,xn;function Ma(){return xn||(xn=1,kt=typeof Reflect<"u"&&Reflect&&Reflect.apply),kt}var Gt,In;function Di(){if(In)return Gt;In=1;var r=Ke(),a=Ur(),l=Mr(),u=Ma();return Gt=u||r.call(l,a),Gt}var Ht,Fn;function jr(){if(Fn)return Ht;Fn=1;var r=Ke(),a=He(),l=Mr(),u=Di();return Ht=function(y){if(y.length<1||typeof y[0]!="function")throw new a("a function is required");return u(r,l,y)},Ht}var Kt,On;function Ua(){if(On)return Kt;On=1;var r=jr(),a=Ue(),l;try{l=[].__proto__===Array.prototype}catch(A){if(!A||typeof A!="object"||!("code"in A)||A.code!=="ERR_PROTO_ACCESS")throw A}var u=!!l&&a&&a(Object.prototype,"__proto__"),w=Object,y=w.getPrototypeOf;return Kt=u&&typeof u.get=="function"?r([u.get]):typeof y=="function"?function(E){return y(E==null?E:w(E))}:!1,Kt}var $t,Bn;function qr(){if(Bn)return $t;Bn=1;var r=Pi(),a=Ci(),l=Ua();return $t=r?function(w){return r(w)}:a?function(w){if(!w||typeof w!="object"&&typeof w!="function")throw new TypeError("getProto: not an object");return a(w)}:l?function(w){return l(w)}:null,$t}var Wt,Nn;function Li(){if(Nn)return Wt;Nn=1;var r=Function.prototype.call,a=Object.prototype.hasOwnProperty,l=Ke();return Wt=l.call(r,a),Wt}var Vt,Pn;function Mi(){if(Pn)return Vt;Pn=1;var r,a=Bi(),l=wa(),u=_a(),w=Aa(),y=Ta(),A=Ni(),E=He(),_=Sa(),B=Ra(),C=xa(),N=Ia(),P=Fa(),V=Oa(),q=Ba(),G=Pa(),L=Function,c=function(R){try{return L('"use strict"; return ('+R+").constructor;")()}catch{}},m=Ue(),s=it(),o=function(){throw new E},g=m?function(){try{return arguments.callee,o}catch{try{return m(arguments,"callee").get}catch{return o}}}():o,T=Da()(),S=qr(),F=Ci(),d=Pi(),K=Ur(),X=Mr(),x={},ee=typeof Uint8Array>"u"||!S?r:S(Uint8Array),re={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":T&&S?S([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":x,"%AsyncGenerator%":x,"%AsyncGeneratorFunction%":x,"%AsyncIteratorPrototype%":x,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":l,"%eval%":eval,"%EvalError%":u,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":L,"%GeneratorFunction%":x,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":T&&S?S(S([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!T||!S?r:S(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":a,"%Object.getOwnPropertyDescriptor%":m,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":w,"%ReferenceError%":y,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!T||!S?r:S(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":T&&S?S(""[Symbol.iterator]()):r,"%Symbol%":T?Symbol:r,"%SyntaxError%":A,"%ThrowTypeError%":g,"%TypedArray%":ee,"%TypeError%":E,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":_,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":X,"%Function.prototype.apply%":K,"%Object.defineProperty%":s,"%Object.getPrototypeOf%":F,"%Math.abs%":B,"%Math.floor%":C,"%Math.max%":N,"%Math.min%":P,"%Math.pow%":V,"%Math.round%":q,"%Math.sign%":G,"%Reflect.getPrototypeOf%":d};if(S)try{null.error}catch(R){var ie=S(S(R));re["%Error.prototype%"]=ie}var le=function R(v){var h;if(v==="%AsyncFunction%")h=c("async function () {}");else if(v==="%GeneratorFunction%")h=c("function* () {}");else if(v==="%AsyncGeneratorFunction%")h=c("async function* () {}");else if(v==="%AsyncGenerator%"){var p=R("%AsyncGeneratorFunction%");p&&(h=p.prototype)}else if(v==="%AsyncIteratorPrototype%"){var U=R("%AsyncGenerator%");U&&S&&(h=S(U.prototype))}return re[v]=h,h},Z={__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"]},ce=Ke(),oe=Li(),ye=ce.call(X,Array.prototype.concat),ge=ce.call(K,Array.prototype.splice),D=ce.call(X,String.prototype.replace),j=ce.call(X,String.prototype.slice),$=ce.call(X,RegExp.prototype.exec),J=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O=/\\(\\)?/g,i=function(v){var h=j(v,0,1),p=j(v,-1);if(h==="%"&&p!=="%")throw new A("invalid intrinsic syntax, expected closing `%`");if(p==="%"&&h!=="%")throw new A("invalid intrinsic syntax, expected opening `%`");var U=[];return D(v,J,function(W,Q,Y,z){U[U.length]=Y?D(z,O,"$1"):Q||W}),U},n=function(v,h){var p=v,U;if(oe(Z,p)&&(U=Z[p],p="%"+U[0]+"%"),oe(re,p)){var W=re[p];if(W===x&&(W=le(p)),typeof W>"u"&&!h)throw new E("intrinsic "+v+" exists, but is not available. Please file an issue!");return{alias:U,name:p,value:W}}throw new A("intrinsic "+v+" does not exist!")};return Vt=function(v,h){if(typeof v!="string"||v.length===0)throw new E("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof h!="boolean")throw new E('"allowMissing" argument must be a boolean');if($(/^%?[^%]*%?$/,v)===null)throw new A("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var p=i(v),U=p.length>0?p[0]:"",W=n("%"+U+"%",h),Q=W.name,Y=W.value,z=!1,se=W.alias;se&&(U=se[0],ge(p,ye([0,1],se)));for(var k=1,ve=!0;k<p.length;k+=1){var be=p[k],ae=j(be,0,1),he=j(be,-1);if((ae==='"'||ae==="'"||ae==="`"||he==='"'||he==="'"||he==="`")&&ae!==he)throw new A("property names with quotes must have matching quotes");if((be==="constructor"||!ve)&&(z=!0),U+="."+be,Q="%"+U+"%",oe(re,Q))Y=re[Q];else if(Y!=null){if(!(be in Y)){if(!h)throw new E("base intrinsic for "+v+" exists, but the property is not available.");return}if(m&&k+1>=p.length){var we=m(Y,be);ve=!!we,ve&&"get"in we&&!("originalValue"in we.get)?Y=we.get:Y=Y[be]}else ve=oe(Y,be),Y=Y[be];ve&&!z&&(re[Q]=Y)}}return Y},Vt}var Yt,Cn;function $e(){if(Cn)return Yt;Cn=1;var r=Mi(),a=jr(),l=a([r("%String.prototype.indexOf%")]);return Yt=function(w,y){var A=r(w,!!y);return typeof A=="function"&&l(w,".prototype.")>-1?a([A]):A},Yt}var Xt,Dn;function ja(){if(Dn)return Xt;Dn=1;var r=nt()(),a=$e(),l=a("Object.prototype.toString"),u=function(E){return r&&E&&typeof E=="object"&&Symbol.toStringTag in E?!1:l(E)==="[object Arguments]"},w=function(E){return u(E)?!0:E!==null&&typeof E=="object"&&"length"in E&&typeof E.length=="number"&&E.length>=0&&l(E)!=="[object Array]"&&"callee"in E&&l(E.callee)==="[object Function]"},y=function(){return u(arguments)}();return u.isLegacyArguments=w,Xt=y?u:w,Xt}var zt,Ln;function qa(){if(Ln)return zt;Ln=1;var r=$e(),a=nt()(),l=Li(),u=Ue(),w;if(a){var y=r("RegExp.prototype.exec"),A={},E=function(){throw A},_={toString:E,valueOf:E};typeof Symbol.toPrimitive=="symbol"&&(_[Symbol.toPrimitive]=E),w=function(P){if(!P||typeof P!="object")return!1;var V=u(P,"lastIndex"),q=V&&l(V,"value");if(!q)return!1;try{y(P,_)}catch(G){return G===A}}}else{var B=r("Object.prototype.toString"),C="[object RegExp]";w=function(P){return!P||typeof P!="object"&&typeof P!="function"?!1:B(P)===C}}return zt=w,zt}var Jt,Mn;function ka(){if(Mn)return Jt;Mn=1;var r=$e(),a=qa(),l=r("RegExp.prototype.exec"),u=He();return Jt=function(y){if(!a(y))throw new u("`regex` must be a RegExp");return function(E){return l(y,E)!==null}},Jt}var Qt,Un;function Ga(){if(Un)return Qt;Un=1;var r=$e(),a=ka(),l=a(/^\s*(?:function)?\*/),u=nt()(),w=qr(),y=r("Object.prototype.toString"),A=r("Function.prototype.toString"),E=function(){if(!u)return!1;try{return Function("return function*() {}")()}catch{}},_;return Qt=function(C){if(typeof C!="function")return!1;if(l(A(C)))return!0;if(!u){var N=y(C);return N==="[object GeneratorFunction]"}if(!w)return!1;if(typeof _>"u"){var P=E();_=P?w(P):!1}return w(C)===_},Qt}var Zt,jn;function Ha(){if(jn)return Zt;jn=1;var r=Function.prototype.toString,a=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,l,u;if(typeof a=="function"&&typeof Object.defineProperty=="function")try{l=Object.defineProperty({},"length",{get:function(){throw u}}),u={},a(function(){throw 42},null,l)}catch(m){m!==u&&(a=null)}else a=null;var w=/^\s*class\b/,y=function(s){try{var o=r.call(s);return w.test(o)}catch{return!1}},A=function(s){try{return y(s)?!1:(r.call(s),!0)}catch{return!1}},E=Object.prototype.toString,_="[object Object]",B="[object Function]",C="[object GeneratorFunction]",N="[object HTMLAllCollection]",P="[object HTML document.all class]",V="[object HTMLCollection]",q=typeof Symbol=="function"&&!!Symbol.toStringTag,G=!(0 in[,]),L=function(){return!1};if(typeof document=="object"){var c=document.all;E.call(c)===E.call(document.all)&&(L=function(s){if((G||!s)&&(typeof s>"u"||typeof s=="object"))try{var o=E.call(s);return(o===N||o===P||o===V||o===_)&&s("")==null}catch{}return!1})}return Zt=a?function(s){if(L(s))return!0;if(!s||typeof s!="function"&&typeof s!="object")return!1;try{a(s,null,l)}catch(o){if(o!==u)return!1}return!y(s)&&A(s)}:function(s){if(L(s))return!0;if(!s||typeof s!="function"&&typeof s!="object")return!1;if(q)return A(s);if(y(s))return!1;var o=E.call(s);return o!==B&&o!==C&&!/^\[object HTML/.test(o)?!1:A(s)},Zt}var er,qn;function Ka(){if(qn)return er;qn=1;var r=Ha(),a=Object.prototype.toString,l=Object.prototype.hasOwnProperty,u=function(_,B,C){for(var N=0,P=_.length;N<P;N++)l.call(_,N)&&(C==null?B(_[N],N,_):B.call(C,_[N],N,_))},w=function(_,B,C){for(var N=0,P=_.length;N<P;N++)C==null?B(_.charAt(N),N,_):B.call(C,_.charAt(N),N,_)},y=function(_,B,C){for(var N in _)l.call(_,N)&&(C==null?B(_[N],N,_):B.call(C,_[N],N,_))};function A(E){return a.call(E)==="[object Array]"}return er=function(_,B,C){if(!r(B))throw new TypeError("iterator must be a function");var N;arguments.length>=3&&(N=C),A(_)?u(_,B,N):typeof _=="string"?w(_,B,N):y(_,B,N)},er}var tr,kn;function $a(){return kn||(kn=1,tr=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),tr}var rr,Gn;function Wa(){if(Gn)return rr;Gn=1;var r=$a(),a=typeof globalThis>"u"?me.commonjsGlobal:globalThis;return rr=function(){for(var u=[],w=0;w<r.length;w++)typeof a[r[w]]=="function"&&(u[u.length]=r[w]);return u},rr}var nr={exports:{}},ir,Hn;function Va(){if(Hn)return ir;Hn=1;var r=it(),a=Ni(),l=He(),u=Ue();return ir=function(y,A,E){if(!y||typeof y!="object"&&typeof y!="function")throw new l("`obj` must be an object or a function`");if(typeof A!="string"&&typeof A!="symbol")throw new l("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new l("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new l("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new l("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new l("`loose`, if provided, must be a boolean");var _=arguments.length>3?arguments[3]:null,B=arguments.length>4?arguments[4]:null,C=arguments.length>5?arguments[5]:null,N=arguments.length>6?arguments[6]:!1,P=!!u&&u(y,A);if(r)r(y,A,{configurable:C===null&&P?P.configurable:!C,enumerable:_===null&&P?P.enumerable:!_,value:E,writable:B===null&&P?P.writable:!B});else if(N||!_&&!B&&!C)y[A]=E;else throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},ir}var ar,Kn;function Ya(){if(Kn)return ar;Kn=1;var r=it(),a=function(){return!!r};return a.hasArrayLengthDefineBug=function(){if(!r)return null;try{return r([],"length",{value:1}).length!==1}catch{return!0}},ar=a,ar}var or,$n;function Xa(){if($n)return or;$n=1;var r=Mi(),a=Va(),l=Ya()(),u=Ue(),w=He(),y=r("%Math.floor%");return or=function(E,_){if(typeof E!="function")throw new w("`fn` is not a function");if(typeof _!="number"||_<0||_>4294967295||y(_)!==_)throw new w("`length` must be a positive 32-bit integer");var B=arguments.length>2&&!!arguments[2],C=!0,N=!0;if("length"in E&&u){var P=u(E,"length");P&&!P.configurable&&(C=!1),P&&!P.writable&&(N=!1)}return(C||N||!B)&&(l?a(E,"length",_,!0,!0):a(E,"length",_)),E},or}var ur,Wn;function za(){if(Wn)return ur;Wn=1;var r=Ke(),a=Ur(),l=Di();return ur=function(){return l(r,a,arguments)},ur}var Vn;function Ja(){return Vn||(Vn=1,function(r){var a=Xa(),l=it(),u=jr(),w=za();r.exports=function(A){var E=u(arguments),_=A.length-(arguments.length-1);return a(E,1+(_>0?_:0),!0)},l?l(r.exports,"apply",{value:w}):r.exports.apply=w}(nr)),nr.exports}var sr,Yn;function Ui(){if(Yn)return sr;Yn=1;var r=Ka(),a=Wa(),l=Ja(),u=$e(),w=Ue(),y=qr(),A=u("Object.prototype.toString"),E=nt()(),_=typeof globalThis>"u"?me.commonjsGlobal:globalThis,B=a(),C=u("String.prototype.slice"),N=u("Array.prototype.indexOf",!0)||function(L,c){for(var m=0;m<L.length;m+=1)if(L[m]===c)return m;return-1},P={__proto__:null};E&&w&&y?r(B,function(G){var L=new _[G];if(Symbol.toStringTag in L&&y){var c=y(L),m=w(c,Symbol.toStringTag);if(!m&&c){var s=y(c);m=w(s,Symbol.toStringTag)}P["$"+G]=l(m.get)}}):r(B,function(G){var L=new _[G],c=L.slice||L.set;c&&(P["$"+G]=l(c))});var V=function(L){var c=!1;return r(P,function(m,s){if(!c)try{"$"+m(L)===s&&(c=C(s,1))}catch{}}),c},q=function(L){var c=!1;return r(P,function(m,s){if(!c)try{m(L),c=C(s,1)}catch{}}),c};return sr=function(L){if(!L||typeof L!="object")return!1;if(!E){var c=C(A(L),8,-1);return N(B,c)>-1?c:c!=="Object"?!1:q(L)}return w?V(L):null},sr}var fr,Xn;function Qa(){if(Xn)return fr;Xn=1;var r=Ui();return fr=function(l){return!!r(l)},fr}var zn;function Za(){return zn||(zn=1,function(r){var a=ja(),l=Ga(),u=Ui(),w=Qa();function y(k){return k.call.bind(k)}var A=typeof BigInt<"u",E=typeof Symbol<"u",_=y(Object.prototype.toString),B=y(Number.prototype.valueOf),C=y(String.prototype.valueOf),N=y(Boolean.prototype.valueOf);if(A)var P=y(BigInt.prototype.valueOf);if(E)var V=y(Symbol.prototype.valueOf);function q(k,ve){if(typeof k!="object")return!1;try{return ve(k),!0}catch{return!1}}r.isArgumentsObject=a,r.isGeneratorFunction=l,r.isTypedArray=w;function G(k){return typeof Promise<"u"&&k instanceof Promise||k!==null&&typeof k=="object"&&typeof k.then=="function"&&typeof k.catch=="function"}r.isPromise=G;function L(k){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(k):w(k)||j(k)}r.isArrayBufferView=L;function c(k){return u(k)==="Uint8Array"}r.isUint8Array=c;function m(k){return u(k)==="Uint8ClampedArray"}r.isUint8ClampedArray=m;function s(k){return u(k)==="Uint16Array"}r.isUint16Array=s;function o(k){return u(k)==="Uint32Array"}r.isUint32Array=o;function g(k){return u(k)==="Int8Array"}r.isInt8Array=g;function T(k){return u(k)==="Int16Array"}r.isInt16Array=T;function S(k){return u(k)==="Int32Array"}r.isInt32Array=S;function F(k){return u(k)==="Float32Array"}r.isFloat32Array=F;function d(k){return u(k)==="Float64Array"}r.isFloat64Array=d;function K(k){return u(k)==="BigInt64Array"}r.isBigInt64Array=K;function X(k){return u(k)==="BigUint64Array"}r.isBigUint64Array=X;function x(k){return _(k)==="[object Map]"}x.working=typeof Map<"u"&&x(new Map);function ee(k){return typeof Map>"u"?!1:x.working?x(k):k instanceof Map}r.isMap=ee;function re(k){return _(k)==="[object Set]"}re.working=typeof Set<"u"&&re(new Set);function ie(k){return typeof Set>"u"?!1:re.working?re(k):k instanceof Set}r.isSet=ie;function le(k){return _(k)==="[object WeakMap]"}le.working=typeof WeakMap<"u"&&le(new WeakMap);function Z(k){return typeof WeakMap>"u"?!1:le.working?le(k):k instanceof WeakMap}r.isWeakMap=Z;function ce(k){return _(k)==="[object WeakSet]"}ce.working=typeof WeakSet<"u"&&ce(new WeakSet);function oe(k){return ce(k)}r.isWeakSet=oe;function ye(k){return _(k)==="[object ArrayBuffer]"}ye.working=typeof ArrayBuffer<"u"&&ye(new ArrayBuffer);function ge(k){return typeof ArrayBuffer>"u"?!1:ye.working?ye(k):k instanceof ArrayBuffer}r.isArrayBuffer=ge;function D(k){return _(k)==="[object DataView]"}D.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&D(new DataView(new ArrayBuffer(1),0,1));function j(k){return typeof DataView>"u"?!1:D.working?D(k):k instanceof DataView}r.isDataView=j;var $=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function J(k){return _(k)==="[object SharedArrayBuffer]"}function O(k){return typeof $>"u"?!1:(typeof J.working>"u"&&(J.working=J(new $)),J.working?J(k):k instanceof $)}r.isSharedArrayBuffer=O;function i(k){return _(k)==="[object AsyncFunction]"}r.isAsyncFunction=i;function n(k){return _(k)==="[object Map Iterator]"}r.isMapIterator=n;function R(k){return _(k)==="[object Set Iterator]"}r.isSetIterator=R;function v(k){return _(k)==="[object Generator]"}r.isGeneratorObject=v;function h(k){return _(k)==="[object WebAssembly.Module]"}r.isWebAssemblyCompiledModule=h;function p(k){return q(k,B)}r.isNumberObject=p;function U(k){return q(k,C)}r.isStringObject=U;function W(k){return q(k,N)}r.isBooleanObject=W;function Q(k){return A&&q(k,P)}r.isBigIntObject=Q;function Y(k){return E&&q(k,V)}r.isSymbolObject=Y;function z(k){return p(k)||U(k)||W(k)||Q(k)||Y(k)}r.isBoxedPrimitive=z;function se(k){return typeof Uint8Array<"u"&&(ge(k)||O(k))}r.isAnyArrayBuffer=se,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(k){Object.defineProperty(r,k,{enumerable:!1,value:function(){throw new Error(k+" is not supported in userland")}})})}(ht)),ht}var lr,Jn;function eo(){return Jn||(Jn=1,lr=function(a){return a&&typeof a=="object"&&typeof a.copy=="function"&&typeof a.fill=="function"&&typeof a.readUInt8=="function"}),lr}var Qn;function ji(){return Qn||(Qn=1,function(r){var a=Object.getOwnPropertyDescriptors||function(j){for(var $=Object.keys(j),J={},O=0;O<$.length;O++)J[$[O]]=Object.getOwnPropertyDescriptor(j,$[O]);return J},l=/%[sdj%]/g;r.format=function(D){if(!g(D)){for(var j=[],$=0;$<arguments.length;$++)j.push(A(arguments[$]));return j.join(" ")}for(var $=1,J=arguments,O=J.length,i=String(D).replace(l,function(R){if(R==="%%")return"%";if($>=O)return R;switch(R){case"%s":return String(J[$++]);case"%d":return Number(J[$++]);case"%j":try{return JSON.stringify(J[$++])}catch{return"[Circular]"}default:return R}}),n=J[$];$<O;n=J[++$])m(n)||!d(n)?i+=" "+n:i+=" "+A(n);return i},r.deprecate=function(D,j){if(typeof te.process$1<"u"&&te.process$1.noDeprecation===!0)return D;if(typeof te.process$1>"u")return function(){return r.deprecate(D,j).apply(this,arguments)};var $=!1;function J(){if(!$){if(te.process$1.throwDeprecation)throw new Error(j);te.process$1.traceDeprecation?console.trace(j):console.error(j),$=!0}return D.apply(this,arguments)}return J};var u={},w=/^$/;if(te.process$1.env.NODE_DEBUG){var y=te.process$1.env.NODE_DEBUG;y=y.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),w=new RegExp("^"+y+"$","i")}r.debuglog=function(D){if(D=D.toUpperCase(),!u[D])if(w.test(D)){var j=te.process$1.pid;u[D]=function(){var $=r.format.apply(r,arguments);console.error("%s %d: %s",D,j,$)}}else u[D]=function(){};return u[D]};function A(D,j){var $={seen:[],stylize:_};return arguments.length>=3&&($.depth=arguments[2]),arguments.length>=4&&($.colors=arguments[3]),c(j)?$.showHidden=j:j&&r._extend($,j),S($.showHidden)&&($.showHidden=!1),S($.depth)&&($.depth=2),S($.colors)&&($.colors=!1),S($.customInspect)&&($.customInspect=!0),$.colors&&($.stylize=E),C($,D,$.depth)}r.inspect=A,A.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]},A.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function E(D,j){var $=A.styles[j];return $?"\x1B["+A.colors[$][0]+"m"+D+"\x1B["+A.colors[$][1]+"m":D}function _(D,j){return D}function B(D){var j={};return D.forEach(function($,J){j[$]=!0}),j}function C(D,j,$){if(D.customInspect&&j&&x(j.inspect)&&j.inspect!==r.inspect&&!(j.constructor&&j.constructor.prototype===j)){var J=j.inspect($,D);return g(J)||(J=C(D,J,$)),J}var O=N(D,j);if(O)return O;var i=Object.keys(j),n=B(i);if(D.showHidden&&(i=Object.getOwnPropertyNames(j)),X(j)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return P(j);if(i.length===0){if(x(j)){var R=j.name?": "+j.name:"";return D.stylize("[Function"+R+"]","special")}if(F(j))return D.stylize(RegExp.prototype.toString.call(j),"regexp");if(K(j))return D.stylize(Date.prototype.toString.call(j),"date");if(X(j))return P(j)}var v="",h=!1,p=["{","}"];if(L(j)&&(h=!0,p=["[","]"]),x(j)){var U=j.name?": "+j.name:"";v=" [Function"+U+"]"}if(F(j)&&(v=" "+RegExp.prototype.toString.call(j)),K(j)&&(v=" "+Date.prototype.toUTCString.call(j)),X(j)&&(v=" "+P(j)),i.length===0&&(!h||j.length==0))return p[0]+v+p[1];if($<0)return F(j)?D.stylize(RegExp.prototype.toString.call(j),"regexp"):D.stylize("[Object]","special");D.seen.push(j);var W;return h?W=V(D,j,$,n,i):W=i.map(function(Q){return q(D,j,$,n,Q,h)}),D.seen.pop(),G(W,v,p)}function N(D,j){if(S(j))return D.stylize("undefined","undefined");if(g(j)){var $="'"+JSON.stringify(j).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return D.stylize($,"string")}if(o(j))return D.stylize(""+j,"number");if(c(j))return D.stylize(""+j,"boolean");if(m(j))return D.stylize("null","null")}function P(D){return"["+Error.prototype.toString.call(D)+"]"}function V(D,j,$,J,O){for(var i=[],n=0,R=j.length;n<R;++n)ce(j,String(n))?i.push(q(D,j,$,J,String(n),!0)):i.push("");return O.forEach(function(v){v.match(/^\d+$/)||i.push(q(D,j,$,J,v,!0))}),i}function q(D,j,$,J,O,i){var n,R,v;if(v=Object.getOwnPropertyDescriptor(j,O)||{value:j[O]},v.get?v.set?R=D.stylize("[Getter/Setter]","special"):R=D.stylize("[Getter]","special"):v.set&&(R=D.stylize("[Setter]","special")),ce(J,O)||(n="["+O+"]"),R||(D.seen.indexOf(v.value)<0?(m($)?R=C(D,v.value,null):R=C(D,v.value,$-1),R.indexOf(`
|
|
7
7
|
`)>-1&&(i?R=R.split(`
|
|
8
8
|
`).map(function(h){return" "+h}).join(`
|
|
9
9
|
`).slice(2):R=`
|
|
10
10
|
`+R.split(`
|
|
11
11
|
`).map(function(h){return" "+h}).join(`
|
|
12
|
-
`))):R=D.stylize("[Circular]","special")),S(n)){if(i&&O.match(/^\d+$/))return R;n=JSON.stringify(""+O),n.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(n=n.slice(1,-1),n=D.stylize(n,"name")):(n=n.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),n=D.stylize(n,"string"))}return n+": "+R}function
|
|
12
|
+
`))):R=D.stylize("[Circular]","special")),S(n)){if(i&&O.match(/^\d+$/))return R;n=JSON.stringify(""+O),n.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(n=n.slice(1,-1),n=D.stylize(n,"name")):(n=n.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),n=D.stylize(n,"string"))}return n+": "+R}function G(D,j,$){var J=D.reduce(function(O,i){return i.indexOf(`
|
|
13
13
|
`)>=0,O+i.replace(/\u001b\[\d\d?m/g,"").length+1},0);return J>60?$[0]+(j===""?"":j+`
|
|
14
14
|
`)+" "+D.join(`,
|
|
15
|
-
`)+" "+$[1]:$[0]+j+" "+D.join(", ")+" "+$[1]}r.types=Ga();function L(D){return Array.isArray(D)}r.isArray=L;function c(D){return typeof D=="boolean"}r.isBoolean=c;function m(D){return D===null}r.isNull=m;function s(D){return D==null}r.isNullOrUndefined=s;function o(D){return typeof D=="number"}r.isNumber=o;function y(D){return typeof D=="string"}r.isString=y;function T(D){return typeof D=="symbol"}r.isSymbol=T;function S(D){return D===void 0}r.isUndefined=S;function F(D){return d(D)&&ne(D)==="[object RegExp]"}r.isRegExp=F,r.types.isRegExp=F;function d(D){return typeof D=="object"&&D!==null}r.isObject=d;function K(D){return d(D)&&ne(D)==="[object Date]"}r.isDate=K,r.types.isDate=K;function X(D){return d(D)&&(ne(D)==="[object Error]"||D instanceof Error)}r.isError=X,r.types.isNativeError=X;function x(D){return typeof D=="function"}r.isFunction=x;function ee(D){return D===null||typeof D=="boolean"||typeof D=="number"||typeof D=="string"||typeof D=="symbol"||typeof D>"u"}r.isPrimitive=ee,r.isBuffer=Ka();function ne(D){return Object.prototype.toString.call(D)}function ae(D){return D<10?"0"+D.toString(10):D.toString(10)}var ce=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Z(){var D=new Date,j=[ae(D.getHours()),ae(D.getMinutes()),ae(D.getSeconds())].join(":");return[D.getDate(),ce[D.getMonth()],j].join(" ")}r.log=function(){console.log("%s - %s",Z(),r.format.apply(r,arguments))},r.inherits=Oe(),r._extend=function(D,j){if(!j||!d(j))return D;for(var $=Object.keys(j),J=$.length;J--;)D[$[J]]=j[$[J]];return D};function he(D,j){return Object.prototype.hasOwnProperty.call(D,j)}var ue=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;r.promisify=function(j){if(typeof j!="function")throw new TypeError('The "original" argument must be of type Function');if(ue&&j[ue]){var $=j[ue];if(typeof $!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty($,ue,{value:$,enumerable:!1,writable:!1,configurable:!0}),$}function $(){for(var J,O,i=new Promise(function(w,h){J=w,O=h}),n=[],R=0;R<arguments.length;R++)n.push(arguments[R]);n.push(function(w,h){w?O(w):J(h)});try{j.apply(this,n)}catch(w){O(w)}return i}return Object.setPrototypeOf($,Object.getPrototypeOf(j)),ue&&Object.defineProperty($,ue,{value:$,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties($,a(j))},r.promisify.custom=ue;function ge(D,j){if(!D){var $=new Error("Promise was rejected with a falsy value");$.reason=D,D=$}return j(D)}function be(D){if(typeof D!="function")throw new TypeError('The "original" argument must be of type Function');function j(){for(var $=[],J=0;J<arguments.length;J++)$.push(arguments[J]);var O=$.pop();if(typeof O!="function")throw new TypeError("The last argument must be of type Function");var i=this,n=function(){return O.apply(i,arguments)};D.apply(this,$).then(function(R){te.process$1.nextTick(n.bind(null,null,R))},function(R){te.process$1.nextTick(ge.bind(null,R,n))})}return Object.setPrototypeOf(j,Object.getPrototypeOf(D)),Object.defineProperties(j,a(D)),j}r.callbackify=be}(at)),at}var ar,Vn;function $a(){if(Vn)return ar;Vn=1;function r(q,H){var L=Object.keys(q);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(q);H&&(c=c.filter(function(m){return Object.getOwnPropertyDescriptor(q,m).enumerable})),L.push.apply(L,c)}return L}function a(q){for(var H=1;H<arguments.length;H++){var L=arguments[H]!=null?arguments[H]:{};H%2?r(Object(L),!0).forEach(function(c){f(q,c,L[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(q,Object.getOwnPropertyDescriptors(L)):r(Object(L)).forEach(function(c){Object.defineProperty(q,c,Object.getOwnPropertyDescriptor(L,c))})}return q}function f(q,H,L){return H=A(H),H in q?Object.defineProperty(q,H,{value:L,enumerable:!0,configurable:!0,writable:!0}):q[H]=L,q}function u(q,H){if(!(q instanceof H))throw new TypeError("Cannot call a class as a function")}function v(q,H){for(var L=0;L<H.length;L++){var c=H[L];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(q,A(c.key),c)}}function g(q,H,L){return H&&v(q.prototype,H),Object.defineProperty(q,"prototype",{writable:!1}),q}function A(q){var H=E(q,"string");return typeof H=="symbol"?H:String(H)}function E(q,H){if(typeof q!="object"||q===null)return q;var L=q[Symbol.toPrimitive];if(L!==void 0){var c=L.call(q,H);if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(q)}var _=ze(),B=_.Buffer,C=Oi(),N=C.inspect,P=N&&N.custom||"inspect";function V(q,H,L){B.prototype.copy.call(q,H,L)}return ar=function(){function q(){u(this,q),this.head=null,this.tail=null,this.length=0}return g(q,[{key:"push",value:function(L){var c={data:L,next:null};this.length>0?this.tail.next=c:this.head=c,this.tail=c,++this.length}},{key:"unshift",value:function(L){var c={data:L,next:this.head};this.length===0&&(this.tail=c),this.head=c,++this.length}},{key:"shift",value:function(){if(this.length!==0){var L=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,L}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(L){if(this.length===0)return"";for(var c=this.head,m=""+c.data;c=c.next;)m+=L+c.data;return m}},{key:"concat",value:function(L){if(this.length===0)return B.alloc(0);for(var c=B.allocUnsafe(L>>>0),m=this.head,s=0;m;)V(m.data,c,s),s+=m.data.length,m=m.next;return c}},{key:"consume",value:function(L,c){var m;return L<this.head.data.length?(m=this.head.data.slice(0,L),this.head.data=this.head.data.slice(L)):L===this.head.data.length?m=this.shift():m=c?this._getString(L):this._getBuffer(L),m}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(L){var c=this.head,m=1,s=c.data;for(L-=s.length;c=c.next;){var o=c.data,y=L>o.length?o.length:L;if(y===o.length?s+=o:s+=o.slice(0,L),L-=y,L===0){y===o.length?(++m,c.next?this.head=c.next:this.head=this.tail=null):(this.head=c,c.data=o.slice(y));break}++m}return this.length-=m,s}},{key:"_getBuffer",value:function(L){var c=B.allocUnsafe(L),m=this.head,s=1;for(m.data.copy(c),L-=m.data.length;m=m.next;){var o=m.data,y=L>o.length?o.length:L;if(o.copy(c,c.length-L,0,y),L-=y,L===0){y===o.length?(++s,m.next?this.head=m.next:this.head=this.tail=null):(this.head=m,m.data=o.slice(y));break}++s}return this.length-=s,c}},{key:P,value:function(L,c){return N(this,a(a({},c),{},{depth:0,customInspect:!1}))}}]),q}(),ar}var or,Yn;function Bi(){if(Yn)return or;Yn=1;function r(A,E){var _=this,B=this._readableState&&this._readableState.destroyed,C=this._writableState&&this._writableState.destroyed;return B||C?(E?E(A):A&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,te.process$1.nextTick(v,this,A)):te.process$1.nextTick(v,this,A)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(A||null,function(N){!E&&N?_._writableState?_._writableState.errorEmitted?te.process$1.nextTick(f,_):(_._writableState.errorEmitted=!0,te.process$1.nextTick(a,_,N)):te.process$1.nextTick(a,_,N):E?(te.process$1.nextTick(f,_),E(N)):te.process$1.nextTick(f,_)}),this)}function a(A,E){v(A,E),f(A)}function f(A){A._writableState&&!A._writableState.emitClose||A._readableState&&!A._readableState.emitClose||A.emit("close")}function u(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function v(A,E){A.emit("error",E)}function g(A,E){var _=A._readableState,B=A._writableState;_&&_.autoDestroy||B&&B.autoDestroy?A.destroy(E):A.emit("error",E)}return or={destroy:r,undestroy:u,errorOrDestroy:g},or}var ur={},Xn;function Le(){if(Xn)return ur;Xn=1;function r(E,_){E.prototype=Object.create(_.prototype),E.prototype.constructor=E,E.__proto__=_}var a={};function f(E,_,B){B||(B=Error);function C(P,V,q){return typeof _=="string"?_:_(P,V,q)}var N=function(P){r(V,P);function V(q,H,L){return P.call(this,C(q,H,L))||this}return V}(B);N.prototype.name=B.name,N.prototype.code=E,a[E]=N}function u(E,_){if(Array.isArray(E)){var B=E.length;return E=E.map(function(C){return String(C)}),B>2?"one of ".concat(_," ").concat(E.slice(0,B-1).join(", "),", or ")+E[B-1]:B===2?"one of ".concat(_," ").concat(E[0]," or ").concat(E[1]):"of ".concat(_," ").concat(E[0])}else return"of ".concat(_," ").concat(String(E))}function v(E,_,B){return E.substr(0,_.length)===_}function g(E,_,B){return(B===void 0||B>E.length)&&(B=E.length),E.substring(B-_.length,B)===_}function A(E,_,B){return typeof B!="number"&&(B=0),B+_.length>E.length?!1:E.indexOf(_,B)!==-1}return f("ERR_INVALID_OPT_VALUE",function(E,_){return'The value "'+_+'" is invalid for option "'+E+'"'},TypeError),f("ERR_INVALID_ARG_TYPE",function(E,_,B){var C;typeof _=="string"&&v(_,"not ")?(C="must not be",_=_.replace(/^not /,"")):C="must be";var N;if(g(E," argument"))N="The ".concat(E," ").concat(C," ").concat(u(_,"type"));else{var P=A(E,".")?"property":"argument";N='The "'.concat(E,'" ').concat(P," ").concat(C," ").concat(u(_,"type"))}return N+=". Received type ".concat(typeof B),N},TypeError),f("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),f("ERR_METHOD_NOT_IMPLEMENTED",function(E){return"The "+E+" method is not implemented"}),f("ERR_STREAM_PREMATURE_CLOSE","Premature close"),f("ERR_STREAM_DESTROYED",function(E){return"Cannot call "+E+" after a stream was destroyed"}),f("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),f("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),f("ERR_STREAM_WRITE_AFTER_END","write after end"),f("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),f("ERR_UNKNOWN_ENCODING",function(E){return"Unknown encoding: "+E},TypeError),f("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),ur.codes=a,ur}var sr,zn;function Ni(){if(zn)return sr;zn=1;var r=Le().codes.ERR_INVALID_OPT_VALUE;function a(u,v,g){return u.highWaterMark!=null?u.highWaterMark:v?u[g]:null}function f(u,v,g,A){var E=a(v,A,g);if(E!=null){if(!(isFinite(E)&&Math.floor(E)===E)||E<0){var _=A?g:"highWaterMark";throw new r(_,E)}return Math.floor(E)}return u.objectMode?16:16*1024}return sr={getHighWaterMark:f},sr}var fr,Jn;function Wa(){if(Jn)return fr;Jn=1,fr=r;function r(f,u){if(a("noDeprecation"))return f;var v=!1;function g(){if(!v){if(a("throwDeprecation"))throw new Error(u);a("traceDeprecation")?console.trace(u):console.warn(u),v=!0}return f.apply(this,arguments)}return g}function a(f){try{if(!Ee.commonjsGlobal.localStorage)return!1}catch{return!1}var u=Ee.commonjsGlobal.localStorage[f];return u==null?!1:String(u).toLowerCase()==="true"}return fr}var lr,Qn;function Pi(){if(Qn)return lr;Qn=1,lr=F;function r(O){var i=this;this.next=null,this.entry=null,this.finish=function(){J(i,O)}}var a;F.WritableState=T;var f={deprecate:Wa()},u=Ei(),v=ze().Buffer,g=(typeof Ee.commonjsGlobal<"u"?Ee.commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function A(O){return v.from(O)}function E(O){return v.isBuffer(O)||O instanceof g}var _=Bi(),B=Ni(),C=B.getHighWaterMark,N=Le().codes,P=N.ERR_INVALID_ARG_TYPE,V=N.ERR_METHOD_NOT_IMPLEMENTED,q=N.ERR_MULTIPLE_CALLBACK,H=N.ERR_STREAM_CANNOT_PIPE,L=N.ERR_STREAM_DESTROYED,c=N.ERR_STREAM_NULL_VALUES,m=N.ERR_STREAM_WRITE_AFTER_END,s=N.ERR_UNKNOWN_ENCODING,o=_.errorOrDestroy;Oe()(F,u);function y(){}function T(O,i,n){a=a||Ce(),O=O||{},typeof n!="boolean"&&(n=i instanceof a),this.objectMode=!!O.objectMode,n&&(this.objectMode=this.objectMode||!!O.writableObjectMode),this.highWaterMark=C(this,O,"writableHighWaterMark",n),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var R=O.decodeStrings===!1;this.decodeStrings=!R,this.defaultEncoding=O.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(w){ce(i,w)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=O.emitClose!==!1,this.autoDestroy=!!O.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}T.prototype.getBuffer=function(){for(var i=this.bufferedRequest,n=[];i;)n.push(i),i=i.next;return n},function(){try{Object.defineProperty(T.prototype,"buffer",{get:f.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var S;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(S=Function.prototype[Symbol.hasInstance],Object.defineProperty(F,Symbol.hasInstance,{value:function(i){return S.call(this,i)?!0:this!==F?!1:i&&i._writableState instanceof T}})):S=function(i){return i instanceof this};function F(O){a=a||Ce();var i=this instanceof a;if(!i&&!S.call(F,this))return new F(O);this._writableState=new T(O,this,i),this.writable=!0,O&&(typeof O.write=="function"&&(this._write=O.write),typeof O.writev=="function"&&(this._writev=O.writev),typeof O.destroy=="function"&&(this._destroy=O.destroy),typeof O.final=="function"&&(this._final=O.final)),u.call(this)}F.prototype.pipe=function(){o(this,new H)};function d(O,i){var n=new m;o(O,n),te.process$1.nextTick(i,n)}function K(O,i,n,R){var w;return n===null?w=new c:typeof n!="string"&&!i.objectMode&&(w=new P("chunk",["string","Buffer"],n)),w?(o(O,w),te.process$1.nextTick(R,w),!1):!0}F.prototype.write=function(O,i,n){var R=this._writableState,w=!1,h=!R.objectMode&&E(O);return h&&!v.isBuffer(O)&&(O=A(O)),typeof i=="function"&&(n=i,i=null),h?i="buffer":i||(i=R.defaultEncoding),typeof n!="function"&&(n=y),R.ending?d(this,n):(h||K(this,R,O,n))&&(R.pendingcb++,w=x(this,R,h,O,i,n)),w},F.prototype.cork=function(){this._writableState.corked++},F.prototype.uncork=function(){var O=this._writableState;O.corked&&(O.corked--,!O.writing&&!O.corked&&!O.bufferProcessing&&O.bufferedRequest&&ue(this,O))},F.prototype.setDefaultEncoding=function(i){if(typeof i=="string"&&(i=i.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((i+"").toLowerCase())>-1))throw new s(i);return this._writableState.defaultEncoding=i,this},Object.defineProperty(F.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function X(O,i,n){return!O.objectMode&&O.decodeStrings!==!1&&typeof i=="string"&&(i=v.from(i,n)),i}Object.defineProperty(F.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function x(O,i,n,R,w,h){if(!n){var p=X(i,R,w);R!==p&&(n=!0,w="buffer",R=p)}var U=i.objectMode?1:R.length;i.length+=U;var W=i.length<i.highWaterMark;if(W||(i.needDrain=!0),i.writing||i.corked){var Q=i.lastBufferedRequest;i.lastBufferedRequest={chunk:R,encoding:w,isBuf:n,callback:h,next:null},Q?Q.next=i.lastBufferedRequest:i.bufferedRequest=i.lastBufferedRequest,i.bufferedRequestCount+=1}else ee(O,i,!1,U,R,w,h);return W}function ee(O,i,n,R,w,h,p){i.writelen=R,i.writecb=p,i.writing=!0,i.sync=!0,i.destroyed?i.onwrite(new L("write")):n?O._writev(w,i.onwrite):O._write(w,h,i.onwrite),i.sync=!1}function ne(O,i,n,R,w){--i.pendingcb,n?(te.process$1.nextTick(w,R),te.process$1.nextTick(j,O,i),O._writableState.errorEmitted=!0,o(O,R)):(w(R),O._writableState.errorEmitted=!0,o(O,R),j(O,i))}function ae(O){O.writing=!1,O.writecb=null,O.length-=O.writelen,O.writelen=0}function ce(O,i){var n=O._writableState,R=n.sync,w=n.writecb;if(typeof w!="function")throw new q;if(ae(n),i)ne(O,n,R,i,w);else{var h=ge(n)||O.destroyed;!h&&!n.corked&&!n.bufferProcessing&&n.bufferedRequest&&ue(O,n),R?te.process$1.nextTick(Z,O,n,h,w):Z(O,n,h,w)}}function Z(O,i,n,R){n||he(O,i),i.pendingcb--,R(),j(O,i)}function he(O,i){i.length===0&&i.needDrain&&(i.needDrain=!1,O.emit("drain"))}function ue(O,i){i.bufferProcessing=!0;var n=i.bufferedRequest;if(O._writev&&n&&n.next){var R=i.bufferedRequestCount,w=new Array(R),h=i.corkedRequestsFree;h.entry=n;for(var p=0,U=!0;n;)w[p]=n,n.isBuf||(U=!1),n=n.next,p+=1;w.allBuffers=U,ee(O,i,!0,i.length,w,"",h.finish),i.pendingcb++,i.lastBufferedRequest=null,h.next?(i.corkedRequestsFree=h.next,h.next=null):i.corkedRequestsFree=new r(i),i.bufferedRequestCount=0}else{for(;n;){var W=n.chunk,Q=n.encoding,Y=n.callback,z=i.objectMode?1:W.length;if(ee(O,i,!1,z,W,Q,Y),n=n.next,i.bufferedRequestCount--,i.writing)break}n===null&&(i.lastBufferedRequest=null)}i.bufferedRequest=n,i.bufferProcessing=!1}F.prototype._write=function(O,i,n){n(new V("_write()"))},F.prototype._writev=null,F.prototype.end=function(O,i,n){var R=this._writableState;return typeof O=="function"?(n=O,O=null,i=null):typeof i=="function"&&(n=i,i=null),O!=null&&this.write(O,i),R.corked&&(R.corked=1,this.uncork()),R.ending||$(this,R,n),this},Object.defineProperty(F.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function ge(O){return O.ending&&O.length===0&&O.bufferedRequest===null&&!O.finished&&!O.writing}function be(O,i){O._final(function(n){i.pendingcb--,n&&o(O,n),i.prefinished=!0,O.emit("prefinish"),j(O,i)})}function D(O,i){!i.prefinished&&!i.finalCalled&&(typeof O._final=="function"&&!i.destroyed?(i.pendingcb++,i.finalCalled=!0,te.process$1.nextTick(be,O,i)):(i.prefinished=!0,O.emit("prefinish")))}function j(O,i){var n=ge(i);if(n&&(D(O,i),i.pendingcb===0&&(i.finished=!0,O.emit("finish"),i.autoDestroy))){var R=O._readableState;(!R||R.autoDestroy&&R.endEmitted)&&O.destroy()}return n}function $(O,i,n){i.ending=!0,j(O,i),n&&(i.finished?te.process$1.nextTick(n):O.once("finish",n)),i.ended=!0,O.writable=!1}function J(O,i,n){var R=O.entry;for(O.entry=null;R;){var w=R.callback;i.pendingcb--,w(n),R=R.next}i.corkedRequestsFree.next=O}return Object.defineProperty(F.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(i){this._writableState&&(this._writableState.destroyed=i)}}),F.prototype.destroy=_.destroy,F.prototype._undestroy=_.undestroy,F.prototype._destroy=function(O,i){i(O)},lr}var cr,Zn;function Ce(){if(Zn)return cr;Zn=1;var r=Object.keys||function(B){var C=[];for(var N in B)C.push(N);return C};cr=A;var a=Ci(),f=Pi();Oe()(A,a);for(var u=r(f.prototype),v=0;v<u.length;v++){var g=u[v];A.prototype[g]||(A.prototype[g]=f.prototype[g])}function A(B){if(!(this instanceof A))return new A(B);a.call(this,B),f.call(this,B),this.allowHalfOpen=!0,B&&(B.readable===!1&&(this.readable=!1),B.writable===!1&&(this.writable=!1),B.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",E)))}Object.defineProperty(A.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(A.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(A.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function E(){this._writableState.ended||te.process$1.nextTick(_,this)}function _(B){B.end()}return Object.defineProperty(A.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(C){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=C,this._writableState.destroyed=C)}}),cr}var hr={},We={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var ei;function Va(){return ei||(ei=1,function(r,a){var f=ze(),u=f.Buffer;function v(A,E){for(var _ in A)E[_]=A[_]}u.from&&u.alloc&&u.allocUnsafe&&u.allocUnsafeSlow?r.exports=f:(v(f,a),a.Buffer=g);function g(A,E,_){return u(A,E,_)}g.prototype=Object.create(u.prototype),v(u,g),g.from=function(A,E,_){if(typeof A=="number")throw new TypeError("Argument must not be a number");return u(A,E,_)},g.alloc=function(A,E,_){if(typeof A!="number")throw new TypeError("Argument must be a number");var B=u(A);return E!==void 0?typeof _=="string"?B.fill(E,_):B.fill(E):B.fill(0),B},g.allocUnsafe=function(A){if(typeof A!="number")throw new TypeError("Argument must be a number");return u(A)},g.allocUnsafeSlow=function(A){if(typeof A!="number")throw new TypeError("Argument must be a number");return f.SlowBuffer(A)}}(We,We.exports)),We.exports}var ti;function Ir(){if(ti)return hr;ti=1;var r=Va().Buffer,a=r.isEncoding||function(c){switch(c=""+c,c&&c.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(c){if(!c)return"utf8";for(var m;;)switch(c){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 c;default:if(m)return;c=(""+c).toLowerCase(),m=!0}}function u(c){var m=f(c);if(typeof m!="string"&&(r.isEncoding===a||!a(c)))throw new Error("Unknown encoding: "+c);return m||c}hr.StringDecoder=v;function v(c){this.encoding=u(c);var m;switch(this.encoding){case"utf16le":this.text=N,this.end=P,m=4;break;case"utf8":this.fillLast=_,m=4;break;case"base64":this.text=V,this.end=q,m=3;break;default:this.write=H,this.end=L;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(m)}v.prototype.write=function(c){if(c.length===0)return"";var m,s;if(this.lastNeed){if(m=this.fillLast(c),m===void 0)return"";s=this.lastNeed,this.lastNeed=0}else s=0;return s<c.length?m?m+this.text(c,s):this.text(c,s):m||""},v.prototype.end=C,v.prototype.text=B,v.prototype.fillLast=function(c){if(this.lastNeed<=c.length)return c.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);c.copy(this.lastChar,this.lastTotal-this.lastNeed,0,c.length),this.lastNeed-=c.length};function g(c){return c<=127?0:c>>5===6?2:c>>4===14?3:c>>3===30?4:c>>6===2?-1:-2}function A(c,m,s){var o=m.length-1;if(o<s)return 0;var y=g(m[o]);return y>=0?(y>0&&(c.lastNeed=y-1),y):--o<s||y===-2?0:(y=g(m[o]),y>=0?(y>0&&(c.lastNeed=y-2),y):--o<s||y===-2?0:(y=g(m[o]),y>=0?(y>0&&(y===2?y=0:c.lastNeed=y-3),y):0))}function E(c,m,s){if((m[0]&192)!==128)return c.lastNeed=0,"�";if(c.lastNeed>1&&m.length>1){if((m[1]&192)!==128)return c.lastNeed=1,"�";if(c.lastNeed>2&&m.length>2&&(m[2]&192)!==128)return c.lastNeed=2,"�"}}function _(c){var m=this.lastTotal-this.lastNeed,s=E(this,c);if(s!==void 0)return s;if(this.lastNeed<=c.length)return c.copy(this.lastChar,m,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);c.copy(this.lastChar,m,0,c.length),this.lastNeed-=c.length}function B(c,m){var s=A(this,c,m);if(!this.lastNeed)return c.toString("utf8",m);this.lastTotal=s;var o=c.length-(s-this.lastNeed);return c.copy(this.lastChar,0,o),c.toString("utf8",m,o)}function C(c){var m=c&&c.length?this.write(c):"";return this.lastNeed?m+"�":m}function N(c,m){if((c.length-m)%2===0){var s=c.toString("utf16le",m);if(s){var o=s.charCodeAt(s.length-1);if(o>=55296&&o<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=c[c.length-2],this.lastChar[1]=c[c.length-1],s.slice(0,-1)}return s}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=c[c.length-1],c.toString("utf16le",m,c.length-1)}function P(c){var m=c&&c.length?this.write(c):"";if(this.lastNeed){var s=this.lastTotal-this.lastNeed;return m+this.lastChar.toString("utf16le",0,s)}return m}function V(c,m){var s=(c.length-m)%3;return s===0?c.toString("base64",m):(this.lastNeed=3-s,this.lastTotal=3,s===1?this.lastChar[0]=c[c.length-1]:(this.lastChar[0]=c[c.length-2],this.lastChar[1]=c[c.length-1]),c.toString("base64",m,c.length-s))}function q(c){var m=c&&c.length?this.write(c):"";return this.lastNeed?m+this.lastChar.toString("base64",0,3-this.lastNeed):m}function H(c){return c.toString(this.encoding)}function L(c){return c&&c.length?this.write(c):""}return hr}var dr,ri;function Dr(){if(ri)return dr;ri=1;var r=Le().codes.ERR_STREAM_PREMATURE_CLOSE;function a(g){var A=!1;return function(){if(!A){A=!0;for(var E=arguments.length,_=new Array(E),B=0;B<E;B++)_[B]=arguments[B];g.apply(this,_)}}}function f(){}function u(g){return g.setHeader&&typeof g.abort=="function"}function v(g,A,E){if(typeof A=="function")return v(g,null,A);A||(A={}),E=a(E||f);var _=A.readable||A.readable!==!1&&g.readable,B=A.writable||A.writable!==!1&&g.writable,C=function(){g.writable||P()},N=g._writableState&&g._writableState.finished,P=function(){B=!1,N=!0,_||E.call(g)},V=g._readableState&&g._readableState.endEmitted,q=function(){_=!1,V=!0,B||E.call(g)},H=function(s){E.call(g,s)},L=function(){var s;if(_&&!V)return(!g._readableState||!g._readableState.ended)&&(s=new r),E.call(g,s);if(B&&!N)return(!g._writableState||!g._writableState.ended)&&(s=new r),E.call(g,s)},c=function(){g.req.on("finish",P)};return u(g)?(g.on("complete",P),g.on("abort",L),g.req?c():g.on("request",c)):B&&!g._writableState&&(g.on("end",C),g.on("close",C)),g.on("end",q),g.on("finish",P),A.error!==!1&&g.on("error",H),g.on("close",L),function(){g.removeListener("complete",P),g.removeListener("abort",L),g.removeListener("request",c),g.req&&g.req.removeListener("finish",P),g.removeListener("end",C),g.removeListener("close",C),g.removeListener("finish",P),g.removeListener("end",q),g.removeListener("error",H),g.removeListener("close",L)}}return dr=v,dr}var pr,ni;function Ya(){if(ni)return pr;ni=1;var r;function a(s,o,y){return o=f(o),o in s?Object.defineProperty(s,o,{value:y,enumerable:!0,configurable:!0,writable:!0}):s[o]=y,s}function f(s){var o=u(s,"string");return typeof o=="symbol"?o:String(o)}function u(s,o){if(typeof s!="object"||s===null)return s;var y=s[Symbol.toPrimitive];if(y!==void 0){var T=y.call(s,o);if(typeof T!="object")return T;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(s)}var v=Dr(),g=Symbol("lastResolve"),A=Symbol("lastReject"),E=Symbol("error"),_=Symbol("ended"),B=Symbol("lastPromise"),C=Symbol("handlePromise"),N=Symbol("stream");function P(s,o){return{value:s,done:o}}function V(s){var o=s[g];if(o!==null){var y=s[N].read();y!==null&&(s[B]=null,s[g]=null,s[A]=null,o(P(y,!1)))}}function q(s){te.process$1.nextTick(V,s)}function H(s,o){return function(y,T){s.then(function(){if(o[_]){y(P(void 0,!0));return}o[C](y,T)},T)}}var L=Object.getPrototypeOf(function(){}),c=Object.setPrototypeOf((r={get stream(){return this[N]},next:function(){var o=this,y=this[E];if(y!==null)return Promise.reject(y);if(this[_])return Promise.resolve(P(void 0,!0));if(this[N].destroyed)return new Promise(function(d,K){te.process$1.nextTick(function(){o[E]?K(o[E]):d(P(void 0,!0))})});var T=this[B],S;if(T)S=new Promise(H(T,this));else{var F=this[N].read();if(F!==null)return Promise.resolve(P(F,!1));S=new Promise(this[C])}return this[B]=S,S}},a(r,Symbol.asyncIterator,function(){return this}),a(r,"return",function(){var o=this;return new Promise(function(y,T){o[N].destroy(null,function(S){if(S){T(S);return}y(P(void 0,!0))})})}),r),L),m=function(o){var y,T=Object.create(c,(y={},a(y,N,{value:o,writable:!0}),a(y,g,{value:null,writable:!0}),a(y,A,{value:null,writable:!0}),a(y,E,{value:null,writable:!0}),a(y,_,{value:o._readableState.endEmitted,writable:!0}),a(y,C,{value:function(F,d){var K=T[N].read();K?(T[B]=null,T[g]=null,T[A]=null,F(P(K,!1))):(T[g]=F,T[A]=d)},writable:!0}),y));return T[B]=null,v(o,function(S){if(S&&S.code!=="ERR_STREAM_PREMATURE_CLOSE"){var F=T[A];F!==null&&(T[B]=null,T[g]=null,T[A]=null,F(S)),T[E]=S;return}var d=T[g];d!==null&&(T[B]=null,T[g]=null,T[A]=null,d(P(void 0,!0))),T[_]=!0}),o.on("readable",q.bind(null,T)),T};return pr=m,pr}var yr,ii;function Xa(){return ii||(ii=1,yr=function(){throw new Error("Readable.from is not available in the browser")}),yr}var gr,ai;function Ci(){if(ai)return gr;ai=1,gr=d;var r;d.ReadableState=F,Br().EventEmitter;var a=function(p,U){return p.listeners(U).length},f=Ei(),u=ze().Buffer,v=(typeof Ee.commonjsGlobal<"u"?Ee.commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function g(h){return u.from(h)}function A(h){return u.isBuffer(h)||h instanceof v}var E=Oi(),_;E&&E.debuglog?_=E.debuglog("stream"):_=function(){};var B=$a(),C=Bi(),N=Ni(),P=N.getHighWaterMark,V=Le().codes,q=V.ERR_INVALID_ARG_TYPE,H=V.ERR_STREAM_PUSH_AFTER_EOF,L=V.ERR_METHOD_NOT_IMPLEMENTED,c=V.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,m,s,o;Oe()(d,f);var y=C.errorOrDestroy,T=["error","close","destroy","pause","resume"];function S(h,p,U){if(typeof h.prependListener=="function")return h.prependListener(p,U);!h._events||!h._events[p]?h.on(p,U):Array.isArray(h._events[p])?h._events[p].unshift(U):h._events[p]=[U,h._events[p]]}function F(h,p,U){r=r||Ce(),h=h||{},typeof U!="boolean"&&(U=p instanceof r),this.objectMode=!!h.objectMode,U&&(this.objectMode=this.objectMode||!!h.readableObjectMode),this.highWaterMark=P(this,h,"readableHighWaterMark",U),this.buffer=new B,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=h.emitClose!==!1,this.autoDestroy=!!h.autoDestroy,this.destroyed=!1,this.defaultEncoding=h.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,h.encoding&&(m||(m=Ir().StringDecoder),this.decoder=new m(h.encoding),this.encoding=h.encoding)}function d(h){if(r=r||Ce(),!(this instanceof d))return new d(h);var p=this instanceof r;this._readableState=new F(h,this,p),this.readable=!0,h&&(typeof h.read=="function"&&(this._read=h.read),typeof h.destroy=="function"&&(this._destroy=h.destroy)),f.call(this)}Object.defineProperty(d.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(p){this._readableState&&(this._readableState.destroyed=p)}}),d.prototype.destroy=C.destroy,d.prototype._undestroy=C.undestroy,d.prototype._destroy=function(h,p){p(h)},d.prototype.push=function(h,p){var U=this._readableState,W;return U.objectMode?W=!0:typeof h=="string"&&(p=p||U.defaultEncoding,p!==U.encoding&&(h=u.from(h,p),p=""),W=!0),K(this,h,p,!1,W)},d.prototype.unshift=function(h){return K(this,h,null,!0,!1)};function K(h,p,U,W,Q){_("readableAddChunk",p);var Y=h._readableState;if(p===null)Y.reading=!1,ce(h,Y);else{var z;if(Q||(z=x(Y,p)),z)y(h,z);else if(Y.objectMode||p&&p.length>0)if(typeof p!="string"&&!Y.objectMode&&Object.getPrototypeOf(p)!==u.prototype&&(p=g(p)),W)Y.endEmitted?y(h,new c):X(h,Y,p,!0);else if(Y.ended)y(h,new H);else{if(Y.destroyed)return!1;Y.reading=!1,Y.decoder&&!U?(p=Y.decoder.write(p),Y.objectMode||p.length!==0?X(h,Y,p,!1):ue(h,Y)):X(h,Y,p,!1)}else W||(Y.reading=!1,ue(h,Y))}return!Y.ended&&(Y.length<Y.highWaterMark||Y.length===0)}function X(h,p,U,W){p.flowing&&p.length===0&&!p.sync?(p.awaitDrain=0,h.emit("data",U)):(p.length+=p.objectMode?1:U.length,W?p.buffer.unshift(U):p.buffer.push(U),p.needReadable&&Z(h)),ue(h,p)}function x(h,p){var U;return!A(p)&&typeof p!="string"&&p!==void 0&&!h.objectMode&&(U=new q("chunk",["string","Buffer","Uint8Array"],p)),U}d.prototype.isPaused=function(){return this._readableState.flowing===!1},d.prototype.setEncoding=function(h){m||(m=Ir().StringDecoder);var p=new m(h);this._readableState.decoder=p,this._readableState.encoding=this._readableState.decoder.encoding;for(var U=this._readableState.buffer.head,W="";U!==null;)W+=p.write(U.data),U=U.next;return this._readableState.buffer.clear(),W!==""&&this._readableState.buffer.push(W),this._readableState.length=W.length,this};var ee=1073741824;function ne(h){return h>=ee?h=ee:(h--,h|=h>>>1,h|=h>>>2,h|=h>>>4,h|=h>>>8,h|=h>>>16,h++),h}function ae(h,p){return h<=0||p.length===0&&p.ended?0:p.objectMode?1:h!==h?p.flowing&&p.length?p.buffer.head.data.length:p.length:(h>p.highWaterMark&&(p.highWaterMark=ne(h)),h<=p.length?h:p.ended?p.length:(p.needReadable=!0,0))}d.prototype.read=function(h){_("read",h),h=parseInt(h,10);var p=this._readableState,U=h;if(h!==0&&(p.emittedReadable=!1),h===0&&p.needReadable&&((p.highWaterMark!==0?p.length>=p.highWaterMark:p.length>0)||p.ended))return _("read: emitReadable",p.length,p.ended),p.length===0&&p.ended?n(this):Z(this),null;if(h=ae(h,p),h===0&&p.ended)return p.length===0&&n(this),null;var W=p.needReadable;_("need readable",W),(p.length===0||p.length-h<p.highWaterMark)&&(W=!0,_("length less than watermark",W)),p.ended||p.reading?(W=!1,_("reading or ended",W)):W&&(_("do read"),p.reading=!0,p.sync=!0,p.length===0&&(p.needReadable=!0),this._read(p.highWaterMark),p.sync=!1,p.reading||(h=ae(U,p)));var Q;return h>0?Q=i(h,p):Q=null,Q===null?(p.needReadable=p.length<=p.highWaterMark,h=0):(p.length-=h,p.awaitDrain=0),p.length===0&&(p.ended||(p.needReadable=!0),U!==h&&p.ended&&n(this)),Q!==null&&this.emit("data",Q),Q};function ce(h,p){if(_("onEofChunk"),!p.ended){if(p.decoder){var U=p.decoder.end();U&&U.length&&(p.buffer.push(U),p.length+=p.objectMode?1:U.length)}p.ended=!0,p.sync?Z(h):(p.needReadable=!1,p.emittedReadable||(p.emittedReadable=!0,he(h)))}}function Z(h){var p=h._readableState;_("emitReadable",p.needReadable,p.emittedReadable),p.needReadable=!1,p.emittedReadable||(_("emitReadable",p.flowing),p.emittedReadable=!0,te.process$1.nextTick(he,h))}function he(h){var p=h._readableState;_("emitReadable_",p.destroyed,p.length,p.ended),!p.destroyed&&(p.length||p.ended)&&(h.emit("readable"),p.emittedReadable=!1),p.needReadable=!p.flowing&&!p.ended&&p.length<=p.highWaterMark,O(h)}function ue(h,p){p.readingMore||(p.readingMore=!0,te.process$1.nextTick(ge,h,p))}function ge(h,p){for(;!p.reading&&!p.ended&&(p.length<p.highWaterMark||p.flowing&&p.length===0);){var U=p.length;if(_("maybeReadMore read 0"),h.read(0),U===p.length)break}p.readingMore=!1}d.prototype._read=function(h){y(this,new L("_read()"))},d.prototype.pipe=function(h,p){var U=this,W=this._readableState;switch(W.pipesCount){case 0:W.pipes=h;break;case 1:W.pipes=[W.pipes,h];break;default:W.pipes.push(h);break}W.pipesCount+=1,_("pipe count=%d opts=%j",W.pipesCount,p);var Q=(!p||p.end!==!1)&&h!==te.process$1.stdout&&h!==te.process$1.stderr,Y=Q?fe:Se;W.endEmitted?te.process$1.nextTick(Y):U.once("end",Y),h.on("unpipe",z);function z(Ae,Te){_("onunpipe"),Ae===U&&Te&&Te.hasUnpiped===!1&&(Te.hasUnpiped=!0,me())}function fe(){_("onend"),h.end()}var k=be(U);h.on("drain",k);var ve=!1;function me(){_("cleanup"),h.removeListener("close",we),h.removeListener("finish",Be),h.removeListener("drain",k),h.removeListener("error",de),h.removeListener("unpipe",z),U.removeListener("end",fe),U.removeListener("end",Se),U.removeListener("data",oe),ve=!0,W.awaitDrain&&(!h._writableState||h._writableState.needDrain)&&k()}U.on("data",oe);function oe(Ae){_("ondata");var Te=h.write(Ae);_("dest.write",Te),Te===!1&&((W.pipesCount===1&&W.pipes===h||W.pipesCount>1&&w(W.pipes,h)!==-1)&&!ve&&(_("false write response, pause",W.awaitDrain),W.awaitDrain++),U.pause())}function de(Ae){_("onerror",Ae),Se(),h.removeListener("error",de),a(h,"error")===0&&y(h,Ae)}S(h,"error",de);function we(){h.removeListener("finish",Be),Se()}h.once("close",we);function Be(){_("onfinish"),h.removeListener("close",we),Se()}h.once("finish",Be);function Se(){_("unpipe"),U.unpipe(h)}return h.emit("pipe",U),W.flowing||(_("pipe resume"),U.resume()),h};function be(h){return function(){var U=h._readableState;_("pipeOnDrain",U.awaitDrain),U.awaitDrain&&U.awaitDrain--,U.awaitDrain===0&&a(h,"data")&&(U.flowing=!0,O(h))}}d.prototype.unpipe=function(h){var p=this._readableState,U={hasUnpiped:!1};if(p.pipesCount===0)return this;if(p.pipesCount===1)return h&&h!==p.pipes?this:(h||(h=p.pipes),p.pipes=null,p.pipesCount=0,p.flowing=!1,h&&h.emit("unpipe",this,U),this);if(!h){var W=p.pipes,Q=p.pipesCount;p.pipes=null,p.pipesCount=0,p.flowing=!1;for(var Y=0;Y<Q;Y++)W[Y].emit("unpipe",this,{hasUnpiped:!1});return this}var z=w(p.pipes,h);return z===-1?this:(p.pipes.splice(z,1),p.pipesCount-=1,p.pipesCount===1&&(p.pipes=p.pipes[0]),h.emit("unpipe",this,U),this)},d.prototype.on=function(h,p){var U=f.prototype.on.call(this,h,p),W=this._readableState;return h==="data"?(W.readableListening=this.listenerCount("readable")>0,W.flowing!==!1&&this.resume()):h==="readable"&&!W.endEmitted&&!W.readableListening&&(W.readableListening=W.needReadable=!0,W.flowing=!1,W.emittedReadable=!1,_("on readable",W.length,W.reading),W.length?Z(this):W.reading||te.process$1.nextTick(j,this)),U},d.prototype.addListener=d.prototype.on,d.prototype.removeListener=function(h,p){var U=f.prototype.removeListener.call(this,h,p);return h==="readable"&&te.process$1.nextTick(D,this),U},d.prototype.removeAllListeners=function(h){var p=f.prototype.removeAllListeners.apply(this,arguments);return(h==="readable"||h===void 0)&&te.process$1.nextTick(D,this),p};function D(h){var p=h._readableState;p.readableListening=h.listenerCount("readable")>0,p.resumeScheduled&&!p.paused?p.flowing=!0:h.listenerCount("data")>0&&h.resume()}function j(h){_("readable nexttick read 0"),h.read(0)}d.prototype.resume=function(){var h=this._readableState;return h.flowing||(_("resume"),h.flowing=!h.readableListening,$(this,h)),h.paused=!1,this};function $(h,p){p.resumeScheduled||(p.resumeScheduled=!0,te.process$1.nextTick(J,h,p))}function J(h,p){_("resume",p.reading),p.reading||h.read(0),p.resumeScheduled=!1,h.emit("resume"),O(h),p.flowing&&!p.reading&&h.read(0)}d.prototype.pause=function(){return _("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(_("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function O(h){var p=h._readableState;for(_("flow",p.flowing);p.flowing&&h.read()!==null;);}d.prototype.wrap=function(h){var p=this,U=this._readableState,W=!1;h.on("end",function(){if(_("wrapped end"),U.decoder&&!U.ended){var z=U.decoder.end();z&&z.length&&p.push(z)}p.push(null)}),h.on("data",function(z){if(_("wrapped data"),U.decoder&&(z=U.decoder.write(z)),!(U.objectMode&&z==null)&&!(!U.objectMode&&(!z||!z.length))){var fe=p.push(z);fe||(W=!0,h.pause())}});for(var Q in h)this[Q]===void 0&&typeof h[Q]=="function"&&(this[Q]=function(fe){return function(){return h[fe].apply(h,arguments)}}(Q));for(var Y=0;Y<T.length;Y++)h.on(T[Y],this.emit.bind(this,T[Y]));return this._read=function(z){_("wrapped _read",z),W&&(W=!1,h.resume())},this},typeof Symbol=="function"&&(d.prototype[Symbol.asyncIterator]=function(){return s===void 0&&(s=Ya()),s(this)}),Object.defineProperty(d.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(d.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(d.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(p){this._readableState&&(this._readableState.flowing=p)}}),d._fromList=i,Object.defineProperty(d.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function i(h,p){if(p.length===0)return null;var U;return p.objectMode?U=p.buffer.shift():!h||h>=p.length?(p.decoder?U=p.buffer.join(""):p.buffer.length===1?U=p.buffer.first():U=p.buffer.concat(p.length),p.buffer.clear()):U=p.buffer.consume(h,p.decoder),U}function n(h){var p=h._readableState;_("endReadable",p.endEmitted),p.endEmitted||(p.ended=!0,te.process$1.nextTick(R,p,h))}function R(h,p){if(_("endReadableNT",h.endEmitted,h.length),!h.endEmitted&&h.length===0&&(h.endEmitted=!0,p.readable=!1,p.emit("end"),h.autoDestroy)){var U=p._writableState;(!U||U.autoDestroy&&U.finished)&&p.destroy()}}typeof Symbol=="function"&&(d.from=function(h,p){return o===void 0&&(o=Xa()),o(d,h,p)});function w(h,p){for(var U=0,W=h.length;U<W;U++)if(h[U]===p)return U;return-1}return gr}var br,oi;function Di(){if(oi)return br;oi=1,br=E;var r=Le().codes,a=r.ERR_METHOD_NOT_IMPLEMENTED,f=r.ERR_MULTIPLE_CALLBACK,u=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,v=r.ERR_TRANSFORM_WITH_LENGTH_0,g=Ce();Oe()(E,g);function A(C,N){var P=this._transformState;P.transforming=!1;var V=P.writecb;if(V===null)return this.emit("error",new f);P.writechunk=null,P.writecb=null,N!=null&&this.push(N),V(C);var q=this._readableState;q.reading=!1,(q.needReadable||q.length<q.highWaterMark)&&this._read(q.highWaterMark)}function E(C){if(!(this instanceof E))return new E(C);g.call(this,C),this._transformState={afterTransform:A.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,C&&(typeof C.transform=="function"&&(this._transform=C.transform),typeof C.flush=="function"&&(this._flush=C.flush)),this.on("prefinish",_)}function _(){var C=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(N,P){B(C,N,P)}):B(this,null,null)}E.prototype.push=function(C,N){return this._transformState.needTransform=!1,g.prototype.push.call(this,C,N)},E.prototype._transform=function(C,N,P){P(new a("_transform()"))},E.prototype._write=function(C,N,P){var V=this._transformState;if(V.writecb=P,V.writechunk=C,V.writeencoding=N,!V.transforming){var q=this._readableState;(V.needTransform||q.needReadable||q.length<q.highWaterMark)&&this._read(q.highWaterMark)}},E.prototype._read=function(C){var N=this._transformState;N.writechunk!==null&&!N.transforming?(N.transforming=!0,this._transform(N.writechunk,N.writeencoding,N.afterTransform)):N.needTransform=!0},E.prototype._destroy=function(C,N){g.prototype._destroy.call(this,C,function(P){N(P)})};function B(C,N,P){if(N)return C.emit("error",N);if(P!=null&&C.push(P),C._writableState.length)throw new v;if(C._transformState.transforming)throw new u;return C.push(null)}return br}var mr,ui;function za(){if(ui)return mr;ui=1,mr=a;var r=Di();Oe()(a,r);function a(f){if(!(this instanceof a))return new a(f);r.call(this,f)}return a.prototype._transform=function(f,u,v){v(null,f)},mr}var Er,si;function Ja(){if(si)return Er;si=1;var r;function a(P){var V=!1;return function(){V||(V=!0,P.apply(void 0,arguments))}}var f=Le().codes,u=f.ERR_MISSING_ARGS,v=f.ERR_STREAM_DESTROYED;function g(P){if(P)throw P}function A(P){return P.setHeader&&typeof P.abort=="function"}function E(P,V,q,H){H=a(H);var L=!1;P.on("close",function(){L=!0}),r===void 0&&(r=Dr()),r(P,{readable:V,writable:q},function(m){if(m)return H(m);L=!0,H()});var c=!1;return function(m){if(!L&&!c){if(c=!0,A(P))return P.abort();if(typeof P.destroy=="function")return P.destroy();H(m||new v("pipe"))}}}function _(P){P()}function B(P,V){return P.pipe(V)}function C(P){return!P.length||typeof P[P.length-1]!="function"?g:P.pop()}function N(){for(var P=arguments.length,V=new Array(P),q=0;q<P;q++)V[q]=arguments[q];var H=C(V);if(Array.isArray(V[0])&&(V=V[0]),V.length<2)throw new u("streams");var L,c=V.map(function(m,s){var o=s<V.length-1,y=s>0;return E(m,o,y,function(T){L||(L=T),T&&c.forEach(_),!o&&(c.forEach(_),H(L))})});return V.reduce(B)}return Er=N,Er}var vr,fi;function Qa(){if(fi)return vr;fi=1,vr=f;var r=Br().EventEmitter,a=Oe();a(f,r),f.Readable=Ci(),f.Writable=Pi(),f.Duplex=Ce(),f.Transform=Di(),f.PassThrough=za(),f.finished=Dr(),f.pipeline=Ja(),f.Stream=f;function f(){r.call(this)}return f.prototype.pipe=function(u,v){var g=this;function A(V){u.writable&&u.write(V)===!1&&g.pause&&g.pause()}g.on("data",A);function E(){g.readable&&g.resume&&g.resume()}u.on("drain",E),!u._isStdio&&(!v||v.end!==!1)&&(g.on("end",B),g.on("close",C));var _=!1;function B(){_||(_=!0,u.end())}function C(){_||(_=!0,typeof u.destroy=="function"&&u.destroy())}function N(V){if(P(),r.listenerCount(this,"error")===0)throw V}g.on("error",N),u.on("error",N);function P(){g.removeListener("data",A),u.removeListener("drain",E),g.removeListener("end",B),g.removeListener("close",C),g.removeListener("error",N),u.removeListener("error",N),g.removeListener("end",P),g.removeListener("close",P),u.removeListener("close",P)}return g.on("end",P),g.on("close",P),u.on("close",P),u.emit("pipe",g),u},vr}var li;function Za(){return li||(li=1,function(r){(function(a){a.parser=function(i,n){return new u(i,n)},a.SAXParser=u,a.SAXStream=C,a.createStream=B,a.MAX_BUFFER_LENGTH=64*1024;var f=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];a.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function u(i,n){if(!(this instanceof u))return new u(i,n);var R=this;g(R),R.q=R.c="",R.bufferCheckPosition=a.MAX_BUFFER_LENGTH,R.opt=n||{},R.opt.lowercase=R.opt.lowercase||R.opt.lowercasetags,R.looseCase=R.opt.lowercase?"toLowerCase":"toUpperCase",R.tags=[],R.closed=R.closedRoot=R.sawRoot=!1,R.tag=R.error=null,R.strict=!!i,R.noscript=!!(i||R.opt.noscript),R.state=d.BEGIN,R.strictEntities=R.opt.strictEntities,R.ENTITIES=R.strictEntities?Object.create(a.XML_ENTITIES):Object.create(a.ENTITIES),R.attribList=[],R.opt.xmlns&&(R.ns=Object.create(H)),R.opt.unquotedAttributeValues===void 0&&(R.opt.unquotedAttributeValues=!i),R.trackPosition=R.opt.position!==!1,R.trackPosition&&(R.position=R.line=R.column=0),X(R,"onready")}Object.create||(Object.create=function(i){function n(){}n.prototype=i;var R=new n;return R}),Object.keys||(Object.keys=function(i){var n=[];for(var R in i)i.hasOwnProperty(R)&&n.push(R);return n});function v(i){for(var n=Math.max(a.MAX_BUFFER_LENGTH,10),R=0,w=0,h=f.length;w<h;w++){var p=i[f[w]].length;if(p>n)switch(f[w]){case"textNode":ee(i);break;case"cdata":x(i,"oncdata",i.cdata),i.cdata="";break;case"script":x(i,"onscript",i.script),i.script="";break;default:ae(i,"Max buffer length exceeded: "+f[w])}R=Math.max(R,p)}var U=a.MAX_BUFFER_LENGTH-R;i.bufferCheckPosition=U+i.position}function g(i){for(var n=0,R=f.length;n<R;n++)i[f[n]]=""}function A(i){ee(i),i.cdata!==""&&(x(i,"oncdata",i.cdata),i.cdata=""),i.script!==""&&(x(i,"onscript",i.script),i.script="")}u.prototype={end:function(){ce(this)},write:O,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){A(this)}};var E;try{E=Qa().Stream}catch{E=function(){}}E||(E=function(){});var _=a.EVENTS.filter(function(i){return i!=="error"&&i!=="end"});function B(i,n){return new C(i,n)}function C(i,n){if(!(this instanceof C))return new C(i,n);E.apply(this),this._parser=new u(i,n),this.writable=!0,this.readable=!0;var R=this;this._parser.onend=function(){R.emit("end")},this._parser.onerror=function(w){R.emit("error",w),R._parser.error=null},this._decoder=null,_.forEach(function(w){Object.defineProperty(R,"on"+w,{get:function(){return R._parser["on"+w]},set:function(h){if(!h)return R.removeAllListeners(w),R._parser["on"+w]=h,h;R.on(w,h)},enumerable:!0,configurable:!1})})}C.prototype=Object.create(E.prototype,{constructor:{value:C}}),C.prototype.write=function(i){if(typeof te.Buffer=="function"&&typeof te.Buffer.isBuffer=="function"&&te.Buffer.isBuffer(i)){if(!this._decoder){var n=Ir().StringDecoder;this._decoder=new n("utf8")}i=this._decoder.write(i)}return this._parser.write(i.toString()),this.emit("data",i),!0},C.prototype.end=function(i){return i&&i.length&&this.write(i),this._parser.end(),!0},C.prototype.on=function(i,n){var R=this;return!R._parser["on"+i]&&_.indexOf(i)!==-1&&(R._parser["on"+i]=function(){var w=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);w.splice(0,0,i),R.emit.apply(R,w)}),E.prototype.on.call(R,i,n)};var N="[CDATA[",P="DOCTYPE",V="http://www.w3.org/XML/1998/namespace",q="http://www.w3.org/2000/xmlns/",H={xml:V,xmlns:q},L=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,c=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,m=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,s=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function o(i){return i===" "||i===`
|
|
16
|
-
`||i==="\r"||i===" "}function
|
|
15
|
+
`)+" "+$[1]:$[0]+j+" "+D.join(", ")+" "+$[1]}r.types=Za();function L(D){return Array.isArray(D)}r.isArray=L;function c(D){return typeof D=="boolean"}r.isBoolean=c;function m(D){return D===null}r.isNull=m;function s(D){return D==null}r.isNullOrUndefined=s;function o(D){return typeof D=="number"}r.isNumber=o;function g(D){return typeof D=="string"}r.isString=g;function T(D){return typeof D=="symbol"}r.isSymbol=T;function S(D){return D===void 0}r.isUndefined=S;function F(D){return d(D)&&re(D)==="[object RegExp]"}r.isRegExp=F,r.types.isRegExp=F;function d(D){return typeof D=="object"&&D!==null}r.isObject=d;function K(D){return d(D)&&re(D)==="[object Date]"}r.isDate=K,r.types.isDate=K;function X(D){return d(D)&&(re(D)==="[object Error]"||D instanceof Error)}r.isError=X,r.types.isNativeError=X;function x(D){return typeof D=="function"}r.isFunction=x;function ee(D){return D===null||typeof D=="boolean"||typeof D=="number"||typeof D=="string"||typeof D=="symbol"||typeof D>"u"}r.isPrimitive=ee,r.isBuffer=eo();function re(D){return Object.prototype.toString.call(D)}function ie(D){return D<10?"0"+D.toString(10):D.toString(10)}var le=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Z(){var D=new Date,j=[ie(D.getHours()),ie(D.getMinutes()),ie(D.getSeconds())].join(":");return[D.getDate(),le[D.getMonth()],j].join(" ")}r.log=function(){console.log("%s - %s",Z(),r.format.apply(r,arguments))},r.inherits=Be(),r._extend=function(D,j){if(!j||!d(j))return D;for(var $=Object.keys(j),J=$.length;J--;)D[$[J]]=j[$[J]];return D};function ce(D,j){return Object.prototype.hasOwnProperty.call(D,j)}var oe=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;r.promisify=function(j){if(typeof j!="function")throw new TypeError('The "original" argument must be of type Function');if(oe&&j[oe]){var $=j[oe];if(typeof $!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty($,oe,{value:$,enumerable:!1,writable:!1,configurable:!0}),$}function $(){for(var J,O,i=new Promise(function(v,h){J=v,O=h}),n=[],R=0;R<arguments.length;R++)n.push(arguments[R]);n.push(function(v,h){v?O(v):J(h)});try{j.apply(this,n)}catch(v){O(v)}return i}return Object.setPrototypeOf($,Object.getPrototypeOf(j)),oe&&Object.defineProperty($,oe,{value:$,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties($,a(j))},r.promisify.custom=oe;function ye(D,j){if(!D){var $=new Error("Promise was rejected with a falsy value");$.reason=D,D=$}return j(D)}function ge(D){if(typeof D!="function")throw new TypeError('The "original" argument must be of type Function');function j(){for(var $=[],J=0;J<arguments.length;J++)$.push(arguments[J]);var O=$.pop();if(typeof O!="function")throw new TypeError("The last argument must be of type Function");var i=this,n=function(){return O.apply(i,arguments)};D.apply(this,$).then(function(R){te.process$1.nextTick(n.bind(null,null,R))},function(R){te.process$1.nextTick(ye.bind(null,R,n))})}return Object.setPrototypeOf(j,Object.getPrototypeOf(D)),Object.defineProperties(j,a(D)),j}r.callbackify=ge}(ct)),ct}var cr,Zn;function to(){if(Zn)return cr;Zn=1;function r(q,G){var L=Object.keys(q);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(q);G&&(c=c.filter(function(m){return Object.getOwnPropertyDescriptor(q,m).enumerable})),L.push.apply(L,c)}return L}function a(q){for(var G=1;G<arguments.length;G++){var L=arguments[G]!=null?arguments[G]:{};G%2?r(Object(L),!0).forEach(function(c){l(q,c,L[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(q,Object.getOwnPropertyDescriptors(L)):r(Object(L)).forEach(function(c){Object.defineProperty(q,c,Object.getOwnPropertyDescriptor(L,c))})}return q}function l(q,G,L){return G=A(G),G in q?Object.defineProperty(q,G,{value:L,enumerable:!0,configurable:!0,writable:!0}):q[G]=L,q}function u(q,G){if(!(q instanceof G))throw new TypeError("Cannot call a class as a function")}function w(q,G){for(var L=0;L<G.length;L++){var c=G[L];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(q,A(c.key),c)}}function y(q,G,L){return G&&w(q.prototype,G),Object.defineProperty(q,"prototype",{writable:!1}),q}function A(q){var G=E(q,"string");return typeof G=="symbol"?G:String(G)}function E(q,G){if(typeof q!="object"||q===null)return q;var L=q[Symbol.toPrimitive];if(L!==void 0){var c=L.call(q,G);if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(q)}var _=rt(),B=_.Buffer,C=ji(),N=C.inspect,P=N&&N.custom||"inspect";function V(q,G,L){B.prototype.copy.call(q,G,L)}return cr=function(){function q(){u(this,q),this.head=null,this.tail=null,this.length=0}return y(q,[{key:"push",value:function(L){var c={data:L,next:null};this.length>0?this.tail.next=c:this.head=c,this.tail=c,++this.length}},{key:"unshift",value:function(L){var c={data:L,next:this.head};this.length===0&&(this.tail=c),this.head=c,++this.length}},{key:"shift",value:function(){if(this.length!==0){var L=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,L}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(L){if(this.length===0)return"";for(var c=this.head,m=""+c.data;c=c.next;)m+=L+c.data;return m}},{key:"concat",value:function(L){if(this.length===0)return B.alloc(0);for(var c=B.allocUnsafe(L>>>0),m=this.head,s=0;m;)V(m.data,c,s),s+=m.data.length,m=m.next;return c}},{key:"consume",value:function(L,c){var m;return L<this.head.data.length?(m=this.head.data.slice(0,L),this.head.data=this.head.data.slice(L)):L===this.head.data.length?m=this.shift():m=c?this._getString(L):this._getBuffer(L),m}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(L){var c=this.head,m=1,s=c.data;for(L-=s.length;c=c.next;){var o=c.data,g=L>o.length?o.length:L;if(g===o.length?s+=o:s+=o.slice(0,L),L-=g,L===0){g===o.length?(++m,c.next?this.head=c.next:this.head=this.tail=null):(this.head=c,c.data=o.slice(g));break}++m}return this.length-=m,s}},{key:"_getBuffer",value:function(L){var c=B.allocUnsafe(L),m=this.head,s=1;for(m.data.copy(c),L-=m.data.length;m=m.next;){var o=m.data,g=L>o.length?o.length:L;if(o.copy(c,c.length-L,0,g),L-=g,L===0){g===o.length?(++s,m.next?this.head=m.next:this.head=this.tail=null):(this.head=m,m.data=o.slice(g));break}++s}return this.length-=s,c}},{key:P,value:function(L,c){return N(this,a(a({},c),{},{depth:0,customInspect:!1}))}}]),q}(),cr}var hr,ei;function qi(){if(ei)return hr;ei=1;function r(A,E){var _=this,B=this._readableState&&this._readableState.destroyed,C=this._writableState&&this._writableState.destroyed;return B||C?(E?E(A):A&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,te.process$1.nextTick(w,this,A)):te.process$1.nextTick(w,this,A)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(A||null,function(N){!E&&N?_._writableState?_._writableState.errorEmitted?te.process$1.nextTick(l,_):(_._writableState.errorEmitted=!0,te.process$1.nextTick(a,_,N)):te.process$1.nextTick(a,_,N):E?(te.process$1.nextTick(l,_),E(N)):te.process$1.nextTick(l,_)}),this)}function a(A,E){w(A,E),l(A)}function l(A){A._writableState&&!A._writableState.emitClose||A._readableState&&!A._readableState.emitClose||A.emit("close")}function u(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function w(A,E){A.emit("error",E)}function y(A,E){var _=A._readableState,B=A._writableState;_&&_.autoDestroy||B&&B.autoDestroy?A.destroy(E):A.emit("error",E)}return hr={destroy:r,undestroy:u,errorOrDestroy:y},hr}var dr={},ti;function je(){if(ti)return dr;ti=1;function r(E,_){E.prototype=Object.create(_.prototype),E.prototype.constructor=E,E.__proto__=_}var a={};function l(E,_,B){B||(B=Error);function C(P,V,q){return typeof _=="string"?_:_(P,V,q)}var N=function(P){r(V,P);function V(q,G,L){return P.call(this,C(q,G,L))||this}return V}(B);N.prototype.name=B.name,N.prototype.code=E,a[E]=N}function u(E,_){if(Array.isArray(E)){var B=E.length;return E=E.map(function(C){return String(C)}),B>2?"one of ".concat(_," ").concat(E.slice(0,B-1).join(", "),", or ")+E[B-1]:B===2?"one of ".concat(_," ").concat(E[0]," or ").concat(E[1]):"of ".concat(_," ").concat(E[0])}else return"of ".concat(_," ").concat(String(E))}function w(E,_,B){return E.substr(0,_.length)===_}function y(E,_,B){return(B===void 0||B>E.length)&&(B=E.length),E.substring(B-_.length,B)===_}function A(E,_,B){return typeof B!="number"&&(B=0),B+_.length>E.length?!1:E.indexOf(_,B)!==-1}return l("ERR_INVALID_OPT_VALUE",function(E,_){return'The value "'+_+'" is invalid for option "'+E+'"'},TypeError),l("ERR_INVALID_ARG_TYPE",function(E,_,B){var C;typeof _=="string"&&w(_,"not ")?(C="must not be",_=_.replace(/^not /,"")):C="must be";var N;if(y(E," argument"))N="The ".concat(E," ").concat(C," ").concat(u(_,"type"));else{var P=A(E,".")?"property":"argument";N='The "'.concat(E,'" ').concat(P," ").concat(C," ").concat(u(_,"type"))}return N+=". Received type ".concat(typeof B),N},TypeError),l("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),l("ERR_METHOD_NOT_IMPLEMENTED",function(E){return"The "+E+" method is not implemented"}),l("ERR_STREAM_PREMATURE_CLOSE","Premature close"),l("ERR_STREAM_DESTROYED",function(E){return"Cannot call "+E+" after a stream was destroyed"}),l("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),l("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),l("ERR_STREAM_WRITE_AFTER_END","write after end"),l("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),l("ERR_UNKNOWN_ENCODING",function(E){return"Unknown encoding: "+E},TypeError),l("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),dr.codes=a,dr}var pr,ri;function ki(){if(ri)return pr;ri=1;var r=je().codes.ERR_INVALID_OPT_VALUE;function a(u,w,y){return u.highWaterMark!=null?u.highWaterMark:w?u[y]:null}function l(u,w,y,A){var E=a(w,A,y);if(E!=null){if(!(isFinite(E)&&Math.floor(E)===E)||E<0){var _=A?y:"highWaterMark";throw new r(_,E)}return Math.floor(E)}return u.objectMode?16:16*1024}return pr={getHighWaterMark:l},pr}var yr,ni;function ro(){if(ni)return yr;ni=1,yr=r;function r(l,u){if(a("noDeprecation"))return l;var w=!1;function y(){if(!w){if(a("throwDeprecation"))throw new Error(u);a("traceDeprecation")?console.trace(u):console.warn(u),w=!0}return l.apply(this,arguments)}return y}function a(l){try{if(!me.commonjsGlobal.localStorage)return!1}catch{return!1}var u=me.commonjsGlobal.localStorage[l];return u==null?!1:String(u).toLowerCase()==="true"}return yr}var gr,ii;function Gi(){if(ii)return gr;ii=1,gr=F;function r(O){var i=this;this.next=null,this.entry=null,this.finish=function(){J(i,O)}}var a;F.WritableState=T;var l={deprecate:ro()},u=Fi(),w=rt().Buffer,y=(typeof me.commonjsGlobal<"u"?me.commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function A(O){return w.from(O)}function E(O){return w.isBuffer(O)||O instanceof y}var _=qi(),B=ki(),C=B.getHighWaterMark,N=je().codes,P=N.ERR_INVALID_ARG_TYPE,V=N.ERR_METHOD_NOT_IMPLEMENTED,q=N.ERR_MULTIPLE_CALLBACK,G=N.ERR_STREAM_CANNOT_PIPE,L=N.ERR_STREAM_DESTROYED,c=N.ERR_STREAM_NULL_VALUES,m=N.ERR_STREAM_WRITE_AFTER_END,s=N.ERR_UNKNOWN_ENCODING,o=_.errorOrDestroy;Be()(F,u);function g(){}function T(O,i,n){a=a||Me(),O=O||{},typeof n!="boolean"&&(n=i instanceof a),this.objectMode=!!O.objectMode,n&&(this.objectMode=this.objectMode||!!O.writableObjectMode),this.highWaterMark=C(this,O,"writableHighWaterMark",n),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var R=O.decodeStrings===!1;this.decodeStrings=!R,this.defaultEncoding=O.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(v){le(i,v)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=O.emitClose!==!1,this.autoDestroy=!!O.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}T.prototype.getBuffer=function(){for(var i=this.bufferedRequest,n=[];i;)n.push(i),i=i.next;return n},function(){try{Object.defineProperty(T.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var S;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(S=Function.prototype[Symbol.hasInstance],Object.defineProperty(F,Symbol.hasInstance,{value:function(i){return S.call(this,i)?!0:this!==F?!1:i&&i._writableState instanceof T}})):S=function(i){return i instanceof this};function F(O){a=a||Me();var i=this instanceof a;if(!i&&!S.call(F,this))return new F(O);this._writableState=new T(O,this,i),this.writable=!0,O&&(typeof O.write=="function"&&(this._write=O.write),typeof O.writev=="function"&&(this._writev=O.writev),typeof O.destroy=="function"&&(this._destroy=O.destroy),typeof O.final=="function"&&(this._final=O.final)),u.call(this)}F.prototype.pipe=function(){o(this,new G)};function d(O,i){var n=new m;o(O,n),te.process$1.nextTick(i,n)}function K(O,i,n,R){var v;return n===null?v=new c:typeof n!="string"&&!i.objectMode&&(v=new P("chunk",["string","Buffer"],n)),v?(o(O,v),te.process$1.nextTick(R,v),!1):!0}F.prototype.write=function(O,i,n){var R=this._writableState,v=!1,h=!R.objectMode&&E(O);return h&&!w.isBuffer(O)&&(O=A(O)),typeof i=="function"&&(n=i,i=null),h?i="buffer":i||(i=R.defaultEncoding),typeof n!="function"&&(n=g),R.ending?d(this,n):(h||K(this,R,O,n))&&(R.pendingcb++,v=x(this,R,h,O,i,n)),v},F.prototype.cork=function(){this._writableState.corked++},F.prototype.uncork=function(){var O=this._writableState;O.corked&&(O.corked--,!O.writing&&!O.corked&&!O.bufferProcessing&&O.bufferedRequest&&oe(this,O))},F.prototype.setDefaultEncoding=function(i){if(typeof i=="string"&&(i=i.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((i+"").toLowerCase())>-1))throw new s(i);return this._writableState.defaultEncoding=i,this},Object.defineProperty(F.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function X(O,i,n){return!O.objectMode&&O.decodeStrings!==!1&&typeof i=="string"&&(i=w.from(i,n)),i}Object.defineProperty(F.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function x(O,i,n,R,v,h){if(!n){var p=X(i,R,v);R!==p&&(n=!0,v="buffer",R=p)}var U=i.objectMode?1:R.length;i.length+=U;var W=i.length<i.highWaterMark;if(W||(i.needDrain=!0),i.writing||i.corked){var Q=i.lastBufferedRequest;i.lastBufferedRequest={chunk:R,encoding:v,isBuf:n,callback:h,next:null},Q?Q.next=i.lastBufferedRequest:i.bufferedRequest=i.lastBufferedRequest,i.bufferedRequestCount+=1}else ee(O,i,!1,U,R,v,h);return W}function ee(O,i,n,R,v,h,p){i.writelen=R,i.writecb=p,i.writing=!0,i.sync=!0,i.destroyed?i.onwrite(new L("write")):n?O._writev(v,i.onwrite):O._write(v,h,i.onwrite),i.sync=!1}function re(O,i,n,R,v){--i.pendingcb,n?(te.process$1.nextTick(v,R),te.process$1.nextTick(j,O,i),O._writableState.errorEmitted=!0,o(O,R)):(v(R),O._writableState.errorEmitted=!0,o(O,R),j(O,i))}function ie(O){O.writing=!1,O.writecb=null,O.length-=O.writelen,O.writelen=0}function le(O,i){var n=O._writableState,R=n.sync,v=n.writecb;if(typeof v!="function")throw new q;if(ie(n),i)re(O,n,R,i,v);else{var h=ye(n)||O.destroyed;!h&&!n.corked&&!n.bufferProcessing&&n.bufferedRequest&&oe(O,n),R?te.process$1.nextTick(Z,O,n,h,v):Z(O,n,h,v)}}function Z(O,i,n,R){n||ce(O,i),i.pendingcb--,R(),j(O,i)}function ce(O,i){i.length===0&&i.needDrain&&(i.needDrain=!1,O.emit("drain"))}function oe(O,i){i.bufferProcessing=!0;var n=i.bufferedRequest;if(O._writev&&n&&n.next){var R=i.bufferedRequestCount,v=new Array(R),h=i.corkedRequestsFree;h.entry=n;for(var p=0,U=!0;n;)v[p]=n,n.isBuf||(U=!1),n=n.next,p+=1;v.allBuffers=U,ee(O,i,!0,i.length,v,"",h.finish),i.pendingcb++,i.lastBufferedRequest=null,h.next?(i.corkedRequestsFree=h.next,h.next=null):i.corkedRequestsFree=new r(i),i.bufferedRequestCount=0}else{for(;n;){var W=n.chunk,Q=n.encoding,Y=n.callback,z=i.objectMode?1:W.length;if(ee(O,i,!1,z,W,Q,Y),n=n.next,i.bufferedRequestCount--,i.writing)break}n===null&&(i.lastBufferedRequest=null)}i.bufferedRequest=n,i.bufferProcessing=!1}F.prototype._write=function(O,i,n){n(new V("_write()"))},F.prototype._writev=null,F.prototype.end=function(O,i,n){var R=this._writableState;return typeof O=="function"?(n=O,O=null,i=null):typeof i=="function"&&(n=i,i=null),O!=null&&this.write(O,i),R.corked&&(R.corked=1,this.uncork()),R.ending||$(this,R,n),this},Object.defineProperty(F.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function ye(O){return O.ending&&O.length===0&&O.bufferedRequest===null&&!O.finished&&!O.writing}function ge(O,i){O._final(function(n){i.pendingcb--,n&&o(O,n),i.prefinished=!0,O.emit("prefinish"),j(O,i)})}function D(O,i){!i.prefinished&&!i.finalCalled&&(typeof O._final=="function"&&!i.destroyed?(i.pendingcb++,i.finalCalled=!0,te.process$1.nextTick(ge,O,i)):(i.prefinished=!0,O.emit("prefinish")))}function j(O,i){var n=ye(i);if(n&&(D(O,i),i.pendingcb===0&&(i.finished=!0,O.emit("finish"),i.autoDestroy))){var R=O._readableState;(!R||R.autoDestroy&&R.endEmitted)&&O.destroy()}return n}function $(O,i,n){i.ending=!0,j(O,i),n&&(i.finished?te.process$1.nextTick(n):O.once("finish",n)),i.ended=!0,O.writable=!1}function J(O,i,n){var R=O.entry;for(O.entry=null;R;){var v=R.callback;i.pendingcb--,v(n),R=R.next}i.corkedRequestsFree.next=O}return Object.defineProperty(F.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(i){this._writableState&&(this._writableState.destroyed=i)}}),F.prototype.destroy=_.destroy,F.prototype._undestroy=_.undestroy,F.prototype._destroy=function(O,i){i(O)},gr}var br,ai;function Me(){if(ai)return br;ai=1;var r=Object.keys||function(B){var C=[];for(var N in B)C.push(N);return C};br=A;var a=Hi(),l=Gi();Be()(A,a);for(var u=r(l.prototype),w=0;w<u.length;w++){var y=u[w];A.prototype[y]||(A.prototype[y]=l.prototype[y])}function A(B){if(!(this instanceof A))return new A(B);a.call(this,B),l.call(this,B),this.allowHalfOpen=!0,B&&(B.readable===!1&&(this.readable=!1),B.writable===!1&&(this.writable=!1),B.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",E)))}Object.defineProperty(A.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(A.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(A.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function E(){this._writableState.ended||te.process$1.nextTick(_,this)}function _(B){B.end()}return Object.defineProperty(A.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(C){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=C,this._writableState.destroyed=C)}}),br}var mr={},ze={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var oi;function no(){return oi||(oi=1,function(r,a){var l=rt(),u=l.Buffer;function w(A,E){for(var _ in A)E[_]=A[_]}u.from&&u.alloc&&u.allocUnsafe&&u.allocUnsafeSlow?r.exports=l:(w(l,a),a.Buffer=y);function y(A,E,_){return u(A,E,_)}y.prototype=Object.create(u.prototype),w(u,y),y.from=function(A,E,_){if(typeof A=="number")throw new TypeError("Argument must not be a number");return u(A,E,_)},y.alloc=function(A,E,_){if(typeof A!="number")throw new TypeError("Argument must be a number");var B=u(A);return E!==void 0?typeof _=="string"?B.fill(E,_):B.fill(E):B.fill(0),B},y.allocUnsafe=function(A){if(typeof A!="number")throw new TypeError("Argument must be a number");return u(A)},y.allocUnsafeSlow=function(A){if(typeof A!="number")throw new TypeError("Argument must be a number");return l.SlowBuffer(A)}}(ze,ze.exports)),ze.exports}var ui;function Cr(){if(ui)return mr;ui=1;var r=no().Buffer,a=r.isEncoding||function(c){switch(c=""+c,c&&c.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 l(c){if(!c)return"utf8";for(var m;;)switch(c){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 c;default:if(m)return;c=(""+c).toLowerCase(),m=!0}}function u(c){var m=l(c);if(typeof m!="string"&&(r.isEncoding===a||!a(c)))throw new Error("Unknown encoding: "+c);return m||c}mr.StringDecoder=w;function w(c){this.encoding=u(c);var m;switch(this.encoding){case"utf16le":this.text=N,this.end=P,m=4;break;case"utf8":this.fillLast=_,m=4;break;case"base64":this.text=V,this.end=q,m=3;break;default:this.write=G,this.end=L;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(m)}w.prototype.write=function(c){if(c.length===0)return"";var m,s;if(this.lastNeed){if(m=this.fillLast(c),m===void 0)return"";s=this.lastNeed,this.lastNeed=0}else s=0;return s<c.length?m?m+this.text(c,s):this.text(c,s):m||""},w.prototype.end=C,w.prototype.text=B,w.prototype.fillLast=function(c){if(this.lastNeed<=c.length)return c.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);c.copy(this.lastChar,this.lastTotal-this.lastNeed,0,c.length),this.lastNeed-=c.length};function y(c){return c<=127?0:c>>5===6?2:c>>4===14?3:c>>3===30?4:c>>6===2?-1:-2}function A(c,m,s){var o=m.length-1;if(o<s)return 0;var g=y(m[o]);return g>=0?(g>0&&(c.lastNeed=g-1),g):--o<s||g===-2?0:(g=y(m[o]),g>=0?(g>0&&(c.lastNeed=g-2),g):--o<s||g===-2?0:(g=y(m[o]),g>=0?(g>0&&(g===2?g=0:c.lastNeed=g-3),g):0))}function E(c,m,s){if((m[0]&192)!==128)return c.lastNeed=0,"�";if(c.lastNeed>1&&m.length>1){if((m[1]&192)!==128)return c.lastNeed=1,"�";if(c.lastNeed>2&&m.length>2&&(m[2]&192)!==128)return c.lastNeed=2,"�"}}function _(c){var m=this.lastTotal-this.lastNeed,s=E(this,c);if(s!==void 0)return s;if(this.lastNeed<=c.length)return c.copy(this.lastChar,m,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);c.copy(this.lastChar,m,0,c.length),this.lastNeed-=c.length}function B(c,m){var s=A(this,c,m);if(!this.lastNeed)return c.toString("utf8",m);this.lastTotal=s;var o=c.length-(s-this.lastNeed);return c.copy(this.lastChar,0,o),c.toString("utf8",m,o)}function C(c){var m=c&&c.length?this.write(c):"";return this.lastNeed?m+"�":m}function N(c,m){if((c.length-m)%2===0){var s=c.toString("utf16le",m);if(s){var o=s.charCodeAt(s.length-1);if(o>=55296&&o<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=c[c.length-2],this.lastChar[1]=c[c.length-1],s.slice(0,-1)}return s}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=c[c.length-1],c.toString("utf16le",m,c.length-1)}function P(c){var m=c&&c.length?this.write(c):"";if(this.lastNeed){var s=this.lastTotal-this.lastNeed;return m+this.lastChar.toString("utf16le",0,s)}return m}function V(c,m){var s=(c.length-m)%3;return s===0?c.toString("base64",m):(this.lastNeed=3-s,this.lastTotal=3,s===1?this.lastChar[0]=c[c.length-1]:(this.lastChar[0]=c[c.length-2],this.lastChar[1]=c[c.length-1]),c.toString("base64",m,c.length-s))}function q(c){var m=c&&c.length?this.write(c):"";return this.lastNeed?m+this.lastChar.toString("base64",0,3-this.lastNeed):m}function G(c){return c.toString(this.encoding)}function L(c){return c&&c.length?this.write(c):""}return mr}var Er,si;function kr(){if(si)return Er;si=1;var r=je().codes.ERR_STREAM_PREMATURE_CLOSE;function a(y){var A=!1;return function(){if(!A){A=!0;for(var E=arguments.length,_=new Array(E),B=0;B<E;B++)_[B]=arguments[B];y.apply(this,_)}}}function l(){}function u(y){return y.setHeader&&typeof y.abort=="function"}function w(y,A,E){if(typeof A=="function")return w(y,null,A);A||(A={}),E=a(E||l);var _=A.readable||A.readable!==!1&&y.readable,B=A.writable||A.writable!==!1&&y.writable,C=function(){y.writable||P()},N=y._writableState&&y._writableState.finished,P=function(){B=!1,N=!0,_||E.call(y)},V=y._readableState&&y._readableState.endEmitted,q=function(){_=!1,V=!0,B||E.call(y)},G=function(s){E.call(y,s)},L=function(){var s;if(_&&!V)return(!y._readableState||!y._readableState.ended)&&(s=new r),E.call(y,s);if(B&&!N)return(!y._writableState||!y._writableState.ended)&&(s=new r),E.call(y,s)},c=function(){y.req.on("finish",P)};return u(y)?(y.on("complete",P),y.on("abort",L),y.req?c():y.on("request",c)):B&&!y._writableState&&(y.on("end",C),y.on("close",C)),y.on("end",q),y.on("finish",P),A.error!==!1&&y.on("error",G),y.on("close",L),function(){y.removeListener("complete",P),y.removeListener("abort",L),y.removeListener("request",c),y.req&&y.req.removeListener("finish",P),y.removeListener("end",C),y.removeListener("close",C),y.removeListener("finish",P),y.removeListener("end",q),y.removeListener("error",G),y.removeListener("close",L)}}return Er=w,Er}var vr,fi;function io(){if(fi)return vr;fi=1;var r;function a(s,o,g){return o=l(o),o in s?Object.defineProperty(s,o,{value:g,enumerable:!0,configurable:!0,writable:!0}):s[o]=g,s}function l(s){var o=u(s,"string");return typeof o=="symbol"?o:String(o)}function u(s,o){if(typeof s!="object"||s===null)return s;var g=s[Symbol.toPrimitive];if(g!==void 0){var T=g.call(s,o);if(typeof T!="object")return T;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(s)}var w=kr(),y=Symbol("lastResolve"),A=Symbol("lastReject"),E=Symbol("error"),_=Symbol("ended"),B=Symbol("lastPromise"),C=Symbol("handlePromise"),N=Symbol("stream");function P(s,o){return{value:s,done:o}}function V(s){var o=s[y];if(o!==null){var g=s[N].read();g!==null&&(s[B]=null,s[y]=null,s[A]=null,o(P(g,!1)))}}function q(s){te.process$1.nextTick(V,s)}function G(s,o){return function(g,T){s.then(function(){if(o[_]){g(P(void 0,!0));return}o[C](g,T)},T)}}var L=Object.getPrototypeOf(function(){}),c=Object.setPrototypeOf((r={get stream(){return this[N]},next:function(){var o=this,g=this[E];if(g!==null)return Promise.reject(g);if(this[_])return Promise.resolve(P(void 0,!0));if(this[N].destroyed)return new Promise(function(d,K){te.process$1.nextTick(function(){o[E]?K(o[E]):d(P(void 0,!0))})});var T=this[B],S;if(T)S=new Promise(G(T,this));else{var F=this[N].read();if(F!==null)return Promise.resolve(P(F,!1));S=new Promise(this[C])}return this[B]=S,S}},a(r,Symbol.asyncIterator,function(){return this}),a(r,"return",function(){var o=this;return new Promise(function(g,T){o[N].destroy(null,function(S){if(S){T(S);return}g(P(void 0,!0))})})}),r),L),m=function(o){var g,T=Object.create(c,(g={},a(g,N,{value:o,writable:!0}),a(g,y,{value:null,writable:!0}),a(g,A,{value:null,writable:!0}),a(g,E,{value:null,writable:!0}),a(g,_,{value:o._readableState.endEmitted,writable:!0}),a(g,C,{value:function(F,d){var K=T[N].read();K?(T[B]=null,T[y]=null,T[A]=null,F(P(K,!1))):(T[y]=F,T[A]=d)},writable:!0}),g));return T[B]=null,w(o,function(S){if(S&&S.code!=="ERR_STREAM_PREMATURE_CLOSE"){var F=T[A];F!==null&&(T[B]=null,T[y]=null,T[A]=null,F(S)),T[E]=S;return}var d=T[y];d!==null&&(T[B]=null,T[y]=null,T[A]=null,d(P(void 0,!0))),T[_]=!0}),o.on("readable",q.bind(null,T)),T};return vr=m,vr}var wr,li;function ao(){return li||(li=1,wr=function(){throw new Error("Readable.from is not available in the browser")}),wr}var _r,ci;function Hi(){if(ci)return _r;ci=1,_r=d;var r;d.ReadableState=F,Lr().EventEmitter;var a=function(p,U){return p.listeners(U).length},l=Fi(),u=rt().Buffer,w=(typeof me.commonjsGlobal<"u"?me.commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function y(h){return u.from(h)}function A(h){return u.isBuffer(h)||h instanceof w}var E=ji(),_;E&&E.debuglog?_=E.debuglog("stream"):_=function(){};var B=to(),C=qi(),N=ki(),P=N.getHighWaterMark,V=je().codes,q=V.ERR_INVALID_ARG_TYPE,G=V.ERR_STREAM_PUSH_AFTER_EOF,L=V.ERR_METHOD_NOT_IMPLEMENTED,c=V.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,m,s,o;Be()(d,l);var g=C.errorOrDestroy,T=["error","close","destroy","pause","resume"];function S(h,p,U){if(typeof h.prependListener=="function")return h.prependListener(p,U);!h._events||!h._events[p]?h.on(p,U):Array.isArray(h._events[p])?h._events[p].unshift(U):h._events[p]=[U,h._events[p]]}function F(h,p,U){r=r||Me(),h=h||{},typeof U!="boolean"&&(U=p instanceof r),this.objectMode=!!h.objectMode,U&&(this.objectMode=this.objectMode||!!h.readableObjectMode),this.highWaterMark=P(this,h,"readableHighWaterMark",U),this.buffer=new B,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=h.emitClose!==!1,this.autoDestroy=!!h.autoDestroy,this.destroyed=!1,this.defaultEncoding=h.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,h.encoding&&(m||(m=Cr().StringDecoder),this.decoder=new m(h.encoding),this.encoding=h.encoding)}function d(h){if(r=r||Me(),!(this instanceof d))return new d(h);var p=this instanceof r;this._readableState=new F(h,this,p),this.readable=!0,h&&(typeof h.read=="function"&&(this._read=h.read),typeof h.destroy=="function"&&(this._destroy=h.destroy)),l.call(this)}Object.defineProperty(d.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(p){this._readableState&&(this._readableState.destroyed=p)}}),d.prototype.destroy=C.destroy,d.prototype._undestroy=C.undestroy,d.prototype._destroy=function(h,p){p(h)},d.prototype.push=function(h,p){var U=this._readableState,W;return U.objectMode?W=!0:typeof h=="string"&&(p=p||U.defaultEncoding,p!==U.encoding&&(h=u.from(h,p),p=""),W=!0),K(this,h,p,!1,W)},d.prototype.unshift=function(h){return K(this,h,null,!0,!1)};function K(h,p,U,W,Q){_("readableAddChunk",p);var Y=h._readableState;if(p===null)Y.reading=!1,le(h,Y);else{var z;if(Q||(z=x(Y,p)),z)g(h,z);else if(Y.objectMode||p&&p.length>0)if(typeof p!="string"&&!Y.objectMode&&Object.getPrototypeOf(p)!==u.prototype&&(p=y(p)),W)Y.endEmitted?g(h,new c):X(h,Y,p,!0);else if(Y.ended)g(h,new G);else{if(Y.destroyed)return!1;Y.reading=!1,Y.decoder&&!U?(p=Y.decoder.write(p),Y.objectMode||p.length!==0?X(h,Y,p,!1):oe(h,Y)):X(h,Y,p,!1)}else W||(Y.reading=!1,oe(h,Y))}return!Y.ended&&(Y.length<Y.highWaterMark||Y.length===0)}function X(h,p,U,W){p.flowing&&p.length===0&&!p.sync?(p.awaitDrain=0,h.emit("data",U)):(p.length+=p.objectMode?1:U.length,W?p.buffer.unshift(U):p.buffer.push(U),p.needReadable&&Z(h)),oe(h,p)}function x(h,p){var U;return!A(p)&&typeof p!="string"&&p!==void 0&&!h.objectMode&&(U=new q("chunk",["string","Buffer","Uint8Array"],p)),U}d.prototype.isPaused=function(){return this._readableState.flowing===!1},d.prototype.setEncoding=function(h){m||(m=Cr().StringDecoder);var p=new m(h);this._readableState.decoder=p,this._readableState.encoding=this._readableState.decoder.encoding;for(var U=this._readableState.buffer.head,W="";U!==null;)W+=p.write(U.data),U=U.next;return this._readableState.buffer.clear(),W!==""&&this._readableState.buffer.push(W),this._readableState.length=W.length,this};var ee=1073741824;function re(h){return h>=ee?h=ee:(h--,h|=h>>>1,h|=h>>>2,h|=h>>>4,h|=h>>>8,h|=h>>>16,h++),h}function ie(h,p){return h<=0||p.length===0&&p.ended?0:p.objectMode?1:h!==h?p.flowing&&p.length?p.buffer.head.data.length:p.length:(h>p.highWaterMark&&(p.highWaterMark=re(h)),h<=p.length?h:p.ended?p.length:(p.needReadable=!0,0))}d.prototype.read=function(h){_("read",h),h=parseInt(h,10);var p=this._readableState,U=h;if(h!==0&&(p.emittedReadable=!1),h===0&&p.needReadable&&((p.highWaterMark!==0?p.length>=p.highWaterMark:p.length>0)||p.ended))return _("read: emitReadable",p.length,p.ended),p.length===0&&p.ended?n(this):Z(this),null;if(h=ie(h,p),h===0&&p.ended)return p.length===0&&n(this),null;var W=p.needReadable;_("need readable",W),(p.length===0||p.length-h<p.highWaterMark)&&(W=!0,_("length less than watermark",W)),p.ended||p.reading?(W=!1,_("reading or ended",W)):W&&(_("do read"),p.reading=!0,p.sync=!0,p.length===0&&(p.needReadable=!0),this._read(p.highWaterMark),p.sync=!1,p.reading||(h=ie(U,p)));var Q;return h>0?Q=i(h,p):Q=null,Q===null?(p.needReadable=p.length<=p.highWaterMark,h=0):(p.length-=h,p.awaitDrain=0),p.length===0&&(p.ended||(p.needReadable=!0),U!==h&&p.ended&&n(this)),Q!==null&&this.emit("data",Q),Q};function le(h,p){if(_("onEofChunk"),!p.ended){if(p.decoder){var U=p.decoder.end();U&&U.length&&(p.buffer.push(U),p.length+=p.objectMode?1:U.length)}p.ended=!0,p.sync?Z(h):(p.needReadable=!1,p.emittedReadable||(p.emittedReadable=!0,ce(h)))}}function Z(h){var p=h._readableState;_("emitReadable",p.needReadable,p.emittedReadable),p.needReadable=!1,p.emittedReadable||(_("emitReadable",p.flowing),p.emittedReadable=!0,te.process$1.nextTick(ce,h))}function ce(h){var p=h._readableState;_("emitReadable_",p.destroyed,p.length,p.ended),!p.destroyed&&(p.length||p.ended)&&(h.emit("readable"),p.emittedReadable=!1),p.needReadable=!p.flowing&&!p.ended&&p.length<=p.highWaterMark,O(h)}function oe(h,p){p.readingMore||(p.readingMore=!0,te.process$1.nextTick(ye,h,p))}function ye(h,p){for(;!p.reading&&!p.ended&&(p.length<p.highWaterMark||p.flowing&&p.length===0);){var U=p.length;if(_("maybeReadMore read 0"),h.read(0),U===p.length)break}p.readingMore=!1}d.prototype._read=function(h){g(this,new L("_read()"))},d.prototype.pipe=function(h,p){var U=this,W=this._readableState;switch(W.pipesCount){case 0:W.pipes=h;break;case 1:W.pipes=[W.pipes,h];break;default:W.pipes.push(h);break}W.pipesCount+=1,_("pipe count=%d opts=%j",W.pipesCount,p);var Q=(!p||p.end!==!1)&&h!==te.process$1.stdout&&h!==te.process$1.stderr,Y=Q?se:Re;W.endEmitted?te.process$1.nextTick(Y):U.once("end",Y),h.on("unpipe",z);function z(Ae,Te){_("onunpipe"),Ae===U&&Te&&Te.hasUnpiped===!1&&(Te.hasUnpiped=!0,be())}function se(){_("onend"),h.end()}var k=ge(U);h.on("drain",k);var ve=!1;function be(){_("cleanup"),h.removeListener("close",we),h.removeListener("finish",Ne),h.removeListener("drain",k),h.removeListener("error",he),h.removeListener("unpipe",z),U.removeListener("end",se),U.removeListener("end",Re),U.removeListener("data",ae),ve=!0,W.awaitDrain&&(!h._writableState||h._writableState.needDrain)&&k()}U.on("data",ae);function ae(Ae){_("ondata");var Te=h.write(Ae);_("dest.write",Te),Te===!1&&((W.pipesCount===1&&W.pipes===h||W.pipesCount>1&&v(W.pipes,h)!==-1)&&!ve&&(_("false write response, pause",W.awaitDrain),W.awaitDrain++),U.pause())}function he(Ae){_("onerror",Ae),Re(),h.removeListener("error",he),a(h,"error")===0&&g(h,Ae)}S(h,"error",he);function we(){h.removeListener("finish",Ne),Re()}h.once("close",we);function Ne(){_("onfinish"),h.removeListener("close",we),Re()}h.once("finish",Ne);function Re(){_("unpipe"),U.unpipe(h)}return h.emit("pipe",U),W.flowing||(_("pipe resume"),U.resume()),h};function ge(h){return function(){var U=h._readableState;_("pipeOnDrain",U.awaitDrain),U.awaitDrain&&U.awaitDrain--,U.awaitDrain===0&&a(h,"data")&&(U.flowing=!0,O(h))}}d.prototype.unpipe=function(h){var p=this._readableState,U={hasUnpiped:!1};if(p.pipesCount===0)return this;if(p.pipesCount===1)return h&&h!==p.pipes?this:(h||(h=p.pipes),p.pipes=null,p.pipesCount=0,p.flowing=!1,h&&h.emit("unpipe",this,U),this);if(!h){var W=p.pipes,Q=p.pipesCount;p.pipes=null,p.pipesCount=0,p.flowing=!1;for(var Y=0;Y<Q;Y++)W[Y].emit("unpipe",this,{hasUnpiped:!1});return this}var z=v(p.pipes,h);return z===-1?this:(p.pipes.splice(z,1),p.pipesCount-=1,p.pipesCount===1&&(p.pipes=p.pipes[0]),h.emit("unpipe",this,U),this)},d.prototype.on=function(h,p){var U=l.prototype.on.call(this,h,p),W=this._readableState;return h==="data"?(W.readableListening=this.listenerCount("readable")>0,W.flowing!==!1&&this.resume()):h==="readable"&&!W.endEmitted&&!W.readableListening&&(W.readableListening=W.needReadable=!0,W.flowing=!1,W.emittedReadable=!1,_("on readable",W.length,W.reading),W.length?Z(this):W.reading||te.process$1.nextTick(j,this)),U},d.prototype.addListener=d.prototype.on,d.prototype.removeListener=function(h,p){var U=l.prototype.removeListener.call(this,h,p);return h==="readable"&&te.process$1.nextTick(D,this),U},d.prototype.removeAllListeners=function(h){var p=l.prototype.removeAllListeners.apply(this,arguments);return(h==="readable"||h===void 0)&&te.process$1.nextTick(D,this),p};function D(h){var p=h._readableState;p.readableListening=h.listenerCount("readable")>0,p.resumeScheduled&&!p.paused?p.flowing=!0:h.listenerCount("data")>0&&h.resume()}function j(h){_("readable nexttick read 0"),h.read(0)}d.prototype.resume=function(){var h=this._readableState;return h.flowing||(_("resume"),h.flowing=!h.readableListening,$(this,h)),h.paused=!1,this};function $(h,p){p.resumeScheduled||(p.resumeScheduled=!0,te.process$1.nextTick(J,h,p))}function J(h,p){_("resume",p.reading),p.reading||h.read(0),p.resumeScheduled=!1,h.emit("resume"),O(h),p.flowing&&!p.reading&&h.read(0)}d.prototype.pause=function(){return _("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(_("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function O(h){var p=h._readableState;for(_("flow",p.flowing);p.flowing&&h.read()!==null;);}d.prototype.wrap=function(h){var p=this,U=this._readableState,W=!1;h.on("end",function(){if(_("wrapped end"),U.decoder&&!U.ended){var z=U.decoder.end();z&&z.length&&p.push(z)}p.push(null)}),h.on("data",function(z){if(_("wrapped data"),U.decoder&&(z=U.decoder.write(z)),!(U.objectMode&&z==null)&&!(!U.objectMode&&(!z||!z.length))){var se=p.push(z);se||(W=!0,h.pause())}});for(var Q in h)this[Q]===void 0&&typeof h[Q]=="function"&&(this[Q]=function(se){return function(){return h[se].apply(h,arguments)}}(Q));for(var Y=0;Y<T.length;Y++)h.on(T[Y],this.emit.bind(this,T[Y]));return this._read=function(z){_("wrapped _read",z),W&&(W=!1,h.resume())},this},typeof Symbol=="function"&&(d.prototype[Symbol.asyncIterator]=function(){return s===void 0&&(s=io()),s(this)}),Object.defineProperty(d.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(d.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(d.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(p){this._readableState&&(this._readableState.flowing=p)}}),d._fromList=i,Object.defineProperty(d.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function i(h,p){if(p.length===0)return null;var U;return p.objectMode?U=p.buffer.shift():!h||h>=p.length?(p.decoder?U=p.buffer.join(""):p.buffer.length===1?U=p.buffer.first():U=p.buffer.concat(p.length),p.buffer.clear()):U=p.buffer.consume(h,p.decoder),U}function n(h){var p=h._readableState;_("endReadable",p.endEmitted),p.endEmitted||(p.ended=!0,te.process$1.nextTick(R,p,h))}function R(h,p){if(_("endReadableNT",h.endEmitted,h.length),!h.endEmitted&&h.length===0&&(h.endEmitted=!0,p.readable=!1,p.emit("end"),h.autoDestroy)){var U=p._writableState;(!U||U.autoDestroy&&U.finished)&&p.destroy()}}typeof Symbol=="function"&&(d.from=function(h,p){return o===void 0&&(o=ao()),o(d,h,p)});function v(h,p){for(var U=0,W=h.length;U<W;U++)if(h[U]===p)return U;return-1}return _r}var Ar,hi;function Ki(){if(hi)return Ar;hi=1,Ar=E;var r=je().codes,a=r.ERR_METHOD_NOT_IMPLEMENTED,l=r.ERR_MULTIPLE_CALLBACK,u=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,w=r.ERR_TRANSFORM_WITH_LENGTH_0,y=Me();Be()(E,y);function A(C,N){var P=this._transformState;P.transforming=!1;var V=P.writecb;if(V===null)return this.emit("error",new l);P.writechunk=null,P.writecb=null,N!=null&&this.push(N),V(C);var q=this._readableState;q.reading=!1,(q.needReadable||q.length<q.highWaterMark)&&this._read(q.highWaterMark)}function E(C){if(!(this instanceof E))return new E(C);y.call(this,C),this._transformState={afterTransform:A.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,C&&(typeof C.transform=="function"&&(this._transform=C.transform),typeof C.flush=="function"&&(this._flush=C.flush)),this.on("prefinish",_)}function _(){var C=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(N,P){B(C,N,P)}):B(this,null,null)}E.prototype.push=function(C,N){return this._transformState.needTransform=!1,y.prototype.push.call(this,C,N)},E.prototype._transform=function(C,N,P){P(new a("_transform()"))},E.prototype._write=function(C,N,P){var V=this._transformState;if(V.writecb=P,V.writechunk=C,V.writeencoding=N,!V.transforming){var q=this._readableState;(V.needTransform||q.needReadable||q.length<q.highWaterMark)&&this._read(q.highWaterMark)}},E.prototype._read=function(C){var N=this._transformState;N.writechunk!==null&&!N.transforming?(N.transforming=!0,this._transform(N.writechunk,N.writeencoding,N.afterTransform)):N.needTransform=!0},E.prototype._destroy=function(C,N){y.prototype._destroy.call(this,C,function(P){N(P)})};function B(C,N,P){if(N)return C.emit("error",N);if(P!=null&&C.push(P),C._writableState.length)throw new w;if(C._transformState.transforming)throw new u;return C.push(null)}return Ar}var Tr,di;function oo(){if(di)return Tr;di=1,Tr=a;var r=Ki();Be()(a,r);function a(l){if(!(this instanceof a))return new a(l);r.call(this,l)}return a.prototype._transform=function(l,u,w){w(null,l)},Tr}var Sr,pi;function uo(){if(pi)return Sr;pi=1;var r;function a(P){var V=!1;return function(){V||(V=!0,P.apply(void 0,arguments))}}var l=je().codes,u=l.ERR_MISSING_ARGS,w=l.ERR_STREAM_DESTROYED;function y(P){if(P)throw P}function A(P){return P.setHeader&&typeof P.abort=="function"}function E(P,V,q,G){G=a(G);var L=!1;P.on("close",function(){L=!0}),r===void 0&&(r=kr()),r(P,{readable:V,writable:q},function(m){if(m)return G(m);L=!0,G()});var c=!1;return function(m){if(!L&&!c){if(c=!0,A(P))return P.abort();if(typeof P.destroy=="function")return P.destroy();G(m||new w("pipe"))}}}function _(P){P()}function B(P,V){return P.pipe(V)}function C(P){return!P.length||typeof P[P.length-1]!="function"?y:P.pop()}function N(){for(var P=arguments.length,V=new Array(P),q=0;q<P;q++)V[q]=arguments[q];var G=C(V);if(Array.isArray(V[0])&&(V=V[0]),V.length<2)throw new u("streams");var L,c=V.map(function(m,s){var o=s<V.length-1,g=s>0;return E(m,o,g,function(T){L||(L=T),T&&c.forEach(_),!o&&(c.forEach(_),G(L))})});return V.reduce(B)}return Sr=N,Sr}var Rr,yi;function so(){if(yi)return Rr;yi=1,Rr=l;var r=Lr().EventEmitter,a=Be();a(l,r),l.Readable=Hi(),l.Writable=Gi(),l.Duplex=Me(),l.Transform=Ki(),l.PassThrough=oo(),l.finished=kr(),l.pipeline=uo(),l.Stream=l;function l(){r.call(this)}return l.prototype.pipe=function(u,w){var y=this;function A(V){u.writable&&u.write(V)===!1&&y.pause&&y.pause()}y.on("data",A);function E(){y.readable&&y.resume&&y.resume()}u.on("drain",E),!u._isStdio&&(!w||w.end!==!1)&&(y.on("end",B),y.on("close",C));var _=!1;function B(){_||(_=!0,u.end())}function C(){_||(_=!0,typeof u.destroy=="function"&&u.destroy())}function N(V){if(P(),r.listenerCount(this,"error")===0)throw V}y.on("error",N),u.on("error",N);function P(){y.removeListener("data",A),u.removeListener("drain",E),y.removeListener("end",B),y.removeListener("close",C),y.removeListener("error",N),u.removeListener("error",N),y.removeListener("end",P),y.removeListener("close",P),u.removeListener("close",P)}return y.on("end",P),y.on("close",P),u.on("close",P),u.emit("pipe",y),u},Rr}var gi;function fo(){return gi||(gi=1,function(r){(function(a){a.parser=function(i,n){return new u(i,n)},a.SAXParser=u,a.SAXStream=C,a.createStream=B,a.MAX_BUFFER_LENGTH=64*1024;var l=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];a.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function u(i,n){if(!(this instanceof u))return new u(i,n);var R=this;y(R),R.q=R.c="",R.bufferCheckPosition=a.MAX_BUFFER_LENGTH,R.opt=n||{},R.opt.lowercase=R.opt.lowercase||R.opt.lowercasetags,R.looseCase=R.opt.lowercase?"toLowerCase":"toUpperCase",R.tags=[],R.closed=R.closedRoot=R.sawRoot=!1,R.tag=R.error=null,R.strict=!!i,R.noscript=!!(i||R.opt.noscript),R.state=d.BEGIN,R.strictEntities=R.opt.strictEntities,R.ENTITIES=R.strictEntities?Object.create(a.XML_ENTITIES):Object.create(a.ENTITIES),R.attribList=[],R.opt.xmlns&&(R.ns=Object.create(G)),R.opt.unquotedAttributeValues===void 0&&(R.opt.unquotedAttributeValues=!i),R.trackPosition=R.opt.position!==!1,R.trackPosition&&(R.position=R.line=R.column=0),X(R,"onready")}Object.create||(Object.create=function(i){function n(){}n.prototype=i;var R=new n;return R}),Object.keys||(Object.keys=function(i){var n=[];for(var R in i)i.hasOwnProperty(R)&&n.push(R);return n});function w(i){for(var n=Math.max(a.MAX_BUFFER_LENGTH,10),R=0,v=0,h=l.length;v<h;v++){var p=i[l[v]].length;if(p>n)switch(l[v]){case"textNode":ee(i);break;case"cdata":x(i,"oncdata",i.cdata),i.cdata="";break;case"script":x(i,"onscript",i.script),i.script="";break;default:ie(i,"Max buffer length exceeded: "+l[v])}R=Math.max(R,p)}var U=a.MAX_BUFFER_LENGTH-R;i.bufferCheckPosition=U+i.position}function y(i){for(var n=0,R=l.length;n<R;n++)i[l[n]]=""}function A(i){ee(i),i.cdata!==""&&(x(i,"oncdata",i.cdata),i.cdata=""),i.script!==""&&(x(i,"onscript",i.script),i.script="")}u.prototype={end:function(){le(this)},write:O,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){A(this)}};var E;try{E=so().Stream}catch{E=function(){}}E||(E=function(){});var _=a.EVENTS.filter(function(i){return i!=="error"&&i!=="end"});function B(i,n){return new C(i,n)}function C(i,n){if(!(this instanceof C))return new C(i,n);E.apply(this),this._parser=new u(i,n),this.writable=!0,this.readable=!0;var R=this;this._parser.onend=function(){R.emit("end")},this._parser.onerror=function(v){R.emit("error",v),R._parser.error=null},this._decoder=null,_.forEach(function(v){Object.defineProperty(R,"on"+v,{get:function(){return R._parser["on"+v]},set:function(h){if(!h)return R.removeAllListeners(v),R._parser["on"+v]=h,h;R.on(v,h)},enumerable:!0,configurable:!1})})}C.prototype=Object.create(E.prototype,{constructor:{value:C}}),C.prototype.write=function(i){if(typeof te.Buffer=="function"&&typeof te.Buffer.isBuffer=="function"&&te.Buffer.isBuffer(i)){if(!this._decoder){var n=Cr().StringDecoder;this._decoder=new n("utf8")}i=this._decoder.write(i)}return this._parser.write(i.toString()),this.emit("data",i),!0},C.prototype.end=function(i){return i&&i.length&&this.write(i),this._parser.end(),!0},C.prototype.on=function(i,n){var R=this;return!R._parser["on"+i]&&_.indexOf(i)!==-1&&(R._parser["on"+i]=function(){var v=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);v.splice(0,0,i),R.emit.apply(R,v)}),E.prototype.on.call(R,i,n)};var N="[CDATA[",P="DOCTYPE",V="http://www.w3.org/XML/1998/namespace",q="http://www.w3.org/2000/xmlns/",G={xml:V,xmlns:q},L=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,c=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,m=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,s=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function o(i){return i===" "||i===`
|
|
16
|
+
`||i==="\r"||i===" "}function g(i){return i==='"'||i==="'"}function T(i){return i===">"||o(i)}function S(i,n){return i.test(n)}function F(i,n){return!S(i,n)}var d=0;a.STATE={BEGIN:d++,BEGIN_WHITESPACE:d++,TEXT:d++,TEXT_ENTITY:d++,OPEN_WAKA:d++,SGML_DECL:d++,SGML_DECL_QUOTED:d++,DOCTYPE:d++,DOCTYPE_QUOTED:d++,DOCTYPE_DTD:d++,DOCTYPE_DTD_QUOTED:d++,COMMENT_STARTING:d++,COMMENT:d++,COMMENT_ENDING:d++,COMMENT_ENDED:d++,CDATA:d++,CDATA_ENDING:d++,CDATA_ENDING_2:d++,PROC_INST:d++,PROC_INST_BODY:d++,PROC_INST_ENDING:d++,OPEN_TAG:d++,OPEN_TAG_SLASH:d++,ATTRIB:d++,ATTRIB_NAME:d++,ATTRIB_NAME_SAW_WHITE:d++,ATTRIB_VALUE:d++,ATTRIB_VALUE_QUOTED:d++,ATTRIB_VALUE_CLOSED:d++,ATTRIB_VALUE_UNQUOTED:d++,ATTRIB_VALUE_ENTITY_Q:d++,ATTRIB_VALUE_ENTITY_U:d++,CLOSE_TAG:d++,CLOSE_TAG_SAW_WHITE:d++,SCRIPT:d++,SCRIPT_ENDING:d++},a.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},a.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(a.ENTITIES).forEach(function(i){var n=a.ENTITIES[i],R=typeof n=="number"?String.fromCharCode(n):n;a.ENTITIES[i]=R});for(var K in a.STATE)a.STATE[a.STATE[K]]=K;d=a.STATE;function X(i,n,R){i[n]&&i[n](R)}function x(i,n,R){i.textNode&&ee(i),X(i,n,R)}function ee(i){i.textNode=re(i.opt,i.textNode),i.textNode&&X(i,"ontext",i.textNode),i.textNode=""}function re(i,n){return i.trim&&(n=n.trim()),i.normalize&&(n=n.replace(/\s+/g," ")),n}function ie(i,n){return ee(i),i.trackPosition&&(n+=`
|
|
17
17
|
Line: `+i.line+`
|
|
18
18
|
Column: `+i.column+`
|
|
19
|
-
Char: `+i.c),n=new Error(n),i.error=n,X(i,"onerror",n),i}function
|
|
20
|
-
Actual: `+i.attribValue);else if(
|
|
21
|
-
Actual: `+i.attribValue);else{var h=i.tag,p=i.tags[i.tags.length-1]||i;h.ns===p.ns&&(h.ns=Object.create(p.ns)),h.ns[
|
|
22
|
-
`?(n.line++,n.column=0):n.column++),n.state){case d.BEGIN:if(n.state=d.BEGIN_WHITESPACE,
|
|
23
|
-
`?(n.line++,n.column=0):n.column++);n.textNode+=i.substring(h,R-1)}w==="<"&&!(n.sawRoot&&n.closedRoot&&!n.strict)?(n.state=d.OPEN_WAKA,n.startTagPosition=n.position):(!o(w)&&(!n.sawRoot||n.closedRoot)&&Z(n,"Text data outside of root node."),w==="&"?n.state=d.TEXT_ENTITY:n.textNode+=w);continue;case d.SCRIPT:w==="<"?n.state=d.SCRIPT_ENDING:n.script+=w;continue;case d.SCRIPT_ENDING:w==="/"?n.state=d.CLOSE_TAG:(n.script+="<"+w,n.state=d.SCRIPT);continue;case d.OPEN_WAKA:if(w==="!")n.state=d.SGML_DECL,n.sgmlDecl="";else if(!o(w))if(S(L,w))n.state=d.OPEN_TAG,n.tagName=w;else if(w==="/")n.state=d.CLOSE_TAG,n.tagName="";else if(w==="?")n.state=d.PROC_INST,n.procInstName=n.procInstBody="";else{if(Z(n,"Unencoded <"),n.startTagPosition+1<n.position){var p=n.position-n.startTagPosition;w=new Array(p).join(" ")+w}n.textNode+="<"+w,n.state=d.TEXT}continue;case d.SGML_DECL:if(n.sgmlDecl+w==="--"){n.state=d.COMMENT,n.comment="",n.sgmlDecl="";continue}n.doctype&&n.doctype!==!0&&n.sgmlDecl?(n.state=d.DOCTYPE_DTD,n.doctype+="<!"+n.sgmlDecl+w,n.sgmlDecl=""):(n.sgmlDecl+w).toUpperCase()===N?(x(n,"onopencdata"),n.state=d.CDATA,n.sgmlDecl="",n.cdata=""):(n.sgmlDecl+w).toUpperCase()===P?(n.state=d.DOCTYPE,(n.doctype||n.sawRoot)&&Z(n,"Inappropriately located doctype declaration"),n.doctype="",n.sgmlDecl=""):w===">"?(x(n,"onsgmldeclaration",n.sgmlDecl),n.sgmlDecl="",n.state=d.TEXT):(y(w)&&(n.state=d.SGML_DECL_QUOTED),n.sgmlDecl+=w);continue;case d.SGML_DECL_QUOTED:w===n.q&&(n.state=d.SGML_DECL,n.q=""),n.sgmlDecl+=w;continue;case d.DOCTYPE:w===">"?(n.state=d.TEXT,x(n,"ondoctype",n.doctype),n.doctype=!0):(n.doctype+=w,w==="["?n.state=d.DOCTYPE_DTD:y(w)&&(n.state=d.DOCTYPE_QUOTED,n.q=w));continue;case d.DOCTYPE_QUOTED:n.doctype+=w,w===n.q&&(n.q="",n.state=d.DOCTYPE);continue;case d.DOCTYPE_DTD:w==="]"?(n.doctype+=w,n.state=d.DOCTYPE):w==="<"?(n.state=d.OPEN_WAKA,n.startTagPosition=n.position):y(w)?(n.doctype+=w,n.state=d.DOCTYPE_DTD_QUOTED,n.q=w):n.doctype+=w;continue;case d.DOCTYPE_DTD_QUOTED:n.doctype+=w,w===n.q&&(n.state=d.DOCTYPE_DTD,n.q="");continue;case d.COMMENT:w==="-"?n.state=d.COMMENT_ENDING:n.comment+=w;continue;case d.COMMENT_ENDING:w==="-"?(n.state=d.COMMENT_ENDED,n.comment=ne(n.opt,n.comment),n.comment&&x(n,"oncomment",n.comment),n.comment=""):(n.comment+="-"+w,n.state=d.COMMENT);continue;case d.COMMENT_ENDED:w!==">"?(Z(n,"Malformed comment"),n.comment+="--"+w,n.state=d.COMMENT):n.doctype&&n.doctype!==!0?n.state=d.DOCTYPE_DTD:n.state=d.TEXT;continue;case d.CDATA:w==="]"?n.state=d.CDATA_ENDING:n.cdata+=w;continue;case d.CDATA_ENDING:w==="]"?n.state=d.CDATA_ENDING_2:(n.cdata+="]"+w,n.state=d.CDATA);continue;case d.CDATA_ENDING_2:w===">"?(n.cdata&&x(n,"oncdata",n.cdata),x(n,"onclosecdata"),n.cdata="",n.state=d.TEXT):w==="]"?n.cdata+="]":(n.cdata+="]]"+w,n.state=d.CDATA);continue;case d.PROC_INST:w==="?"?n.state=d.PROC_INST_ENDING:o(w)?n.state=d.PROC_INST_BODY:n.procInstName+=w;continue;case d.PROC_INST_BODY:if(!n.procInstBody&&o(w))continue;w==="?"?n.state=d.PROC_INST_ENDING:n.procInstBody+=w;continue;case d.PROC_INST_ENDING:w===">"?(x(n,"onprocessinginstruction",{name:n.procInstName,body:n.procInstBody}),n.procInstName=n.procInstBody="",n.state=d.TEXT):(n.procInstBody+="?"+w,n.state=d.PROC_INST_BODY);continue;case d.OPEN_TAG:S(c,w)?n.tagName+=w:(he(n),w===">"?be(n):w==="/"?n.state=d.OPEN_TAG_SLASH:(o(w)||Z(n,"Invalid character in tag name"),n.state=d.ATTRIB));continue;case d.OPEN_TAG_SLASH:w===">"?(be(n,!0),D(n)):(Z(n,"Forward-slash in opening tag not followed by >"),n.state=d.ATTRIB);continue;case d.ATTRIB:if(o(w))continue;w===">"?be(n):w==="/"?n.state=d.OPEN_TAG_SLASH:S(L,w)?(n.attribName=w,n.attribValue="",n.state=d.ATTRIB_NAME):Z(n,"Invalid attribute name");continue;case d.ATTRIB_NAME:w==="="?n.state=d.ATTRIB_VALUE:w===">"?(Z(n,"Attribute without value"),n.attribValue=n.attribName,ge(n),be(n)):o(w)?n.state=d.ATTRIB_NAME_SAW_WHITE:S(c,w)?n.attribName+=w:Z(n,"Invalid attribute name");continue;case d.ATTRIB_NAME_SAW_WHITE:if(w==="=")n.state=d.ATTRIB_VALUE;else{if(o(w))continue;Z(n,"Attribute without value"),n.tag.attributes[n.attribName]="",n.attribValue="",x(n,"onattribute",{name:n.attribName,value:""}),n.attribName="",w===">"?be(n):S(L,w)?(n.attribName=w,n.state=d.ATTRIB_NAME):(Z(n,"Invalid attribute name"),n.state=d.ATTRIB)}continue;case d.ATTRIB_VALUE:if(o(w))continue;y(w)?(n.q=w,n.state=d.ATTRIB_VALUE_QUOTED):(n.opt.unquotedAttributeValues||ae(n,"Unquoted attribute value"),n.state=d.ATTRIB_VALUE_UNQUOTED,n.attribValue=w);continue;case d.ATTRIB_VALUE_QUOTED:if(w!==n.q){w==="&"?n.state=d.ATTRIB_VALUE_ENTITY_Q:n.attribValue+=w;continue}ge(n),n.q="",n.state=d.ATTRIB_VALUE_CLOSED;continue;case d.ATTRIB_VALUE_CLOSED:o(w)?n.state=d.ATTRIB:w===">"?be(n):w==="/"?n.state=d.OPEN_TAG_SLASH:S(L,w)?(Z(n,"No whitespace between attributes"),n.attribName=w,n.attribValue="",n.state=d.ATTRIB_NAME):Z(n,"Invalid attribute name");continue;case d.ATTRIB_VALUE_UNQUOTED:if(!T(w)){w==="&"?n.state=d.ATTRIB_VALUE_ENTITY_U:n.attribValue+=w;continue}ge(n),w===">"?be(n):n.state=d.ATTRIB;continue;case d.CLOSE_TAG:if(n.tagName)w===">"?D(n):S(c,w)?n.tagName+=w:n.script?(n.script+="</"+n.tagName,n.tagName="",n.state=d.SCRIPT):(o(w)||Z(n,"Invalid tagname in closing tag"),n.state=d.CLOSE_TAG_SAW_WHITE);else{if(o(w))continue;F(L,w)?n.script?(n.script+="</"+w,n.state=d.SCRIPT):Z(n,"Invalid tagname in closing tag."):n.tagName=w}continue;case d.CLOSE_TAG_SAW_WHITE:if(o(w))continue;w===">"?D(n):Z(n,"Invalid characters in closing tag");continue;case d.TEXT_ENTITY:case d.ATTRIB_VALUE_ENTITY_Q:case d.ATTRIB_VALUE_ENTITY_U:var U,W;switch(n.state){case d.TEXT_ENTITY:U=d.TEXT,W="textNode";break;case d.ATTRIB_VALUE_ENTITY_Q:U=d.ATTRIB_VALUE_QUOTED,W="attribValue";break;case d.ATTRIB_VALUE_ENTITY_U:U=d.ATTRIB_VALUE_UNQUOTED,W="attribValue";break}if(w===";"){var Q=j(n);n.opt.unparsedEntities&&!Object.values(a.XML_ENTITIES).includes(Q)?(n.entity="",n.state=U,n.write(Q)):(n[W]+=Q,n.entity="",n.state=U)}else S(n.entity.length?s:m,w)?n.entity+=w:(Z(n,"Invalid character in entity name"),n[W]+="&"+n.entity+w,n.entity="",n.state=U);continue;default:throw new Error(n,"Unknown state: "+n.state)}return n.position>=n.bufferCheckPosition&&v(n),n}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||function(){var i=String.fromCharCode,n=Math.floor,R=function(){var w=16384,h=[],p,U,W=-1,Q=arguments.length;if(!Q)return"";for(var Y="";++W<Q;){var z=Number(arguments[W]);if(!isFinite(z)||z<0||z>1114111||n(z)!==z)throw RangeError("Invalid code point: "+z);z<=65535?h.push(z):(z-=65536,p=(z>>10)+55296,U=z%1024+56320,h.push(p,U)),(W+1===Q||h.length>w)&&(Y+=i.apply(null,h),h.length=0)}return Y};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:R,configurable:!0,writable:!0}):String.fromCodePoint=R}()})(r)}(rt)),rt}var wr,ci;function Lr(){return ci||(ci=1,wr={isArray:function(r){return Array.isArray?Array.isArray(r):Object.prototype.toString.call(r)==="[object Array]"}}),wr}var _r,hi;function Mr(){if(hi)return _r;hi=1;var r=Lr().isArray;return _r={copyOptions:function(a){var f,u={};for(f in a)a.hasOwnProperty(f)&&(u[f]=a[f]);return u},ensureFlagExists:function(a,f){(!(a in f)||typeof f[a]!="boolean")&&(f[a]=!1)},ensureSpacesExists:function(a){(!("spaces"in a)||typeof a.spaces!="number"&&typeof a.spaces!="string")&&(a.spaces=0)},ensureAlwaysArrayExists:function(a){(!("alwaysArray"in a)||typeof a.alwaysArray!="boolean"&&!r(a.alwaysArray))&&(a.alwaysArray=!1)},ensureKeyExists:function(a,f){(!(a+"Key"in f)||typeof f[a+"Key"]!="string")&&(f[a+"Key"]=f.compact?"_"+a:a)},checkFnExists:function(a,f){return a+"Fn"in f}},_r}var Ar,di;function Li(){if(di)return Ar;di=1;var r=Za(),a=Mr(),f=Lr().isArray,u,v;function g(c){return u=a.copyOptions(c),a.ensureFlagExists("ignoreDeclaration",u),a.ensureFlagExists("ignoreInstruction",u),a.ensureFlagExists("ignoreAttributes",u),a.ensureFlagExists("ignoreText",u),a.ensureFlagExists("ignoreComment",u),a.ensureFlagExists("ignoreCdata",u),a.ensureFlagExists("ignoreDoctype",u),a.ensureFlagExists("compact",u),a.ensureFlagExists("alwaysChildren",u),a.ensureFlagExists("addParent",u),a.ensureFlagExists("trim",u),a.ensureFlagExists("nativeType",u),a.ensureFlagExists("nativeTypeAttributes",u),a.ensureFlagExists("sanitize",u),a.ensureFlagExists("instructionHasAttributes",u),a.ensureFlagExists("captureSpacesBetweenElements",u),a.ensureAlwaysArrayExists(u),a.ensureKeyExists("declaration",u),a.ensureKeyExists("instruction",u),a.ensureKeyExists("attributes",u),a.ensureKeyExists("text",u),a.ensureKeyExists("comment",u),a.ensureKeyExists("cdata",u),a.ensureKeyExists("doctype",u),a.ensureKeyExists("type",u),a.ensureKeyExists("name",u),a.ensureKeyExists("elements",u),a.ensureKeyExists("parent",u),a.checkFnExists("doctype",u),a.checkFnExists("instruction",u),a.checkFnExists("cdata",u),a.checkFnExists("comment",u),a.checkFnExists("text",u),a.checkFnExists("instructionName",u),a.checkFnExists("elementName",u),a.checkFnExists("attributeName",u),a.checkFnExists("attributeValue",u),a.checkFnExists("attributes",u),u}function A(c){var m=Number(c);if(!isNaN(m))return m;var s=c.toLowerCase();return s==="true"?!0:s==="false"?!1:c}function E(c,m){var s;if(u.compact){if(!v[u[c+"Key"]]&&(f(u.alwaysArray)?u.alwaysArray.indexOf(u[c+"Key"])!==-1:u.alwaysArray)&&(v[u[c+"Key"]]=[]),v[u[c+"Key"]]&&!f(v[u[c+"Key"]])&&(v[u[c+"Key"]]=[v[u[c+"Key"]]]),c+"Fn"in u&&typeof m=="string"&&(m=u[c+"Fn"](m,v)),c==="instruction"&&("instructionFn"in u||"instructionNameFn"in u)){for(s in m)if(m.hasOwnProperty(s))if("instructionFn"in u)m[s]=u.instructionFn(m[s],s,v);else{var o=m[s];delete m[s],m[u.instructionNameFn(s,o,v)]=o}}f(v[u[c+"Key"]])?v[u[c+"Key"]].push(m):v[u[c+"Key"]]=m}else{v[u.elementsKey]||(v[u.elementsKey]=[]);var y={};if(y[u.typeKey]=c,c==="instruction"){for(s in m)if(m.hasOwnProperty(s))break;y[u.nameKey]="instructionNameFn"in u?u.instructionNameFn(s,m,v):s,u.instructionHasAttributes?(y[u.attributesKey]=m[s][u.attributesKey],"instructionFn"in u&&(y[u.attributesKey]=u.instructionFn(y[u.attributesKey],s,v))):("instructionFn"in u&&(m[s]=u.instructionFn(m[s],s,v)),y[u.instructionKey]=m[s])}else c+"Fn"in u&&(m=u[c+"Fn"](m,v)),y[u[c+"Key"]]=m;u.addParent&&(y[u.parentKey]=v),v[u.elementsKey].push(y)}}function _(c){if("attributesFn"in u&&c&&(c=u.attributesFn(c,v)),(u.trim||"attributeValueFn"in u||"attributeNameFn"in u||u.nativeTypeAttributes)&&c){var m;for(m in c)if(c.hasOwnProperty(m)&&(u.trim&&(c[m]=c[m].trim()),u.nativeTypeAttributes&&(c[m]=A(c[m])),"attributeValueFn"in u&&(c[m]=u.attributeValueFn(c[m],m,v)),"attributeNameFn"in u)){var s=c[m];delete c[m],c[u.attributeNameFn(m,c[m],v)]=s}}return c}function B(c){var m={};if(c.body&&(c.name.toLowerCase()==="xml"||u.instructionHasAttributes)){for(var s=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,o;(o=s.exec(c.body))!==null;)m[o[1]]=o[2]||o[3]||o[4];m=_(m)}if(c.name.toLowerCase()==="xml"){if(u.ignoreDeclaration)return;v[u.declarationKey]={},Object.keys(m).length&&(v[u.declarationKey][u.attributesKey]=m),u.addParent&&(v[u.declarationKey][u.parentKey]=v)}else{if(u.ignoreInstruction)return;u.trim&&(c.body=c.body.trim());var y={};u.instructionHasAttributes&&Object.keys(m).length?(y[c.name]={},y[c.name][u.attributesKey]=m):y[c.name]=c.body,E("instruction",y)}}function C(c,m){var s;if(typeof c=="object"&&(m=c.attributes,c=c.name),m=_(m),"elementNameFn"in u&&(c=u.elementNameFn(c,v)),u.compact){if(s={},!u.ignoreAttributes&&m&&Object.keys(m).length){s[u.attributesKey]={};var o;for(o in m)m.hasOwnProperty(o)&&(s[u.attributesKey][o]=m[o])}!(c in v)&&(f(u.alwaysArray)?u.alwaysArray.indexOf(c)!==-1:u.alwaysArray)&&(v[c]=[]),v[c]&&!f(v[c])&&(v[c]=[v[c]]),f(v[c])?v[c].push(s):v[c]=s}else v[u.elementsKey]||(v[u.elementsKey]=[]),s={},s[u.typeKey]="element",s[u.nameKey]=c,!u.ignoreAttributes&&m&&Object.keys(m).length&&(s[u.attributesKey]=m),u.alwaysChildren&&(s[u.elementsKey]=[]),v[u.elementsKey].push(s);s[u.parentKey]=v,v=s}function N(c){u.ignoreText||!c.trim()&&!u.captureSpacesBetweenElements||(u.trim&&(c=c.trim()),u.nativeType&&(c=A(c)),u.sanitize&&(c=c.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),E("text",c))}function P(c){u.ignoreComment||(u.trim&&(c=c.trim()),E("comment",c))}function V(c){var m=v[u.parentKey];u.addParent||delete v[u.parentKey],v=m}function q(c){u.ignoreCdata||(u.trim&&(c=c.trim()),E("cdata",c))}function H(c){u.ignoreDoctype||(c=c.replace(/^ /,""),u.trim&&(c=c.trim()),E("doctype",c))}function L(c){c.note=c}return Ar=function(c,m){var s=r.parser(!0,{}),o={};if(v=o,u=g(m),s.opt={strictEntities:!0},s.onopentag=C,s.ontext=N,s.oncomment=P,s.onclosetag=V,s.onerror=L,s.oncdata=q,s.ondoctype=H,s.onprocessinginstruction=B,s.write(c).close(),o[u.elementsKey]){var y=o[u.elementsKey];delete o[u.elementsKey],o[u.elementsKey]=y,delete o.text}return o},Ar}var Tr,pi;function eo(){if(pi)return Tr;pi=1;var r=Mr(),a=Li();function f(u){var v=r.copyOptions(u);return r.ensureSpacesExists(v),v}return Tr=function(u,v){var g,A,E,_;return g=f(v),A=a(u,g),_="compact"in g&&g.compact?"_parent":"parent","addParent"in g&&g.addParent?E=JSON.stringify(A,function(B,C){return B===_?"_":C},g.spaces):E=JSON.stringify(A,null,g.spaces),E.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},Tr}var Sr,yi;function Mi(){if(yi)return Sr;yi=1;var r=Mr(),a=Lr().isArray,f,u;function v(s){var o=r.copyOptions(s);return r.ensureFlagExists("ignoreDeclaration",o),r.ensureFlagExists("ignoreInstruction",o),r.ensureFlagExists("ignoreAttributes",o),r.ensureFlagExists("ignoreText",o),r.ensureFlagExists("ignoreComment",o),r.ensureFlagExists("ignoreCdata",o),r.ensureFlagExists("ignoreDoctype",o),r.ensureFlagExists("compact",o),r.ensureFlagExists("indentText",o),r.ensureFlagExists("indentCdata",o),r.ensureFlagExists("indentAttributes",o),r.ensureFlagExists("indentInstruction",o),r.ensureFlagExists("fullTagEmptyElement",o),r.ensureFlagExists("noQuotesForNativeAttributes",o),r.ensureSpacesExists(o),typeof o.spaces=="number"&&(o.spaces=Array(o.spaces+1).join(" ")),r.ensureKeyExists("declaration",o),r.ensureKeyExists("instruction",o),r.ensureKeyExists("attributes",o),r.ensureKeyExists("text",o),r.ensureKeyExists("comment",o),r.ensureKeyExists("cdata",o),r.ensureKeyExists("doctype",o),r.ensureKeyExists("type",o),r.ensureKeyExists("name",o),r.ensureKeyExists("elements",o),r.checkFnExists("doctype",o),r.checkFnExists("instruction",o),r.checkFnExists("cdata",o),r.checkFnExists("comment",o),r.checkFnExists("text",o),r.checkFnExists("instructionName",o),r.checkFnExists("elementName",o),r.checkFnExists("attributeName",o),r.checkFnExists("attributeValue",o),r.checkFnExists("attributes",o),r.checkFnExists("fullTagEmptyElement",o),o}function g(s,o,y){return(!y&&s.spaces?`
|
|
24
|
-
`:"")+Array(o+1).join(s.spaces)}function A(s,o,
|
|
25
|
-
`+Array(y+1).join(o.spaces):""),T.push("</"+S+">")):T.push("/>"),T.join("")}function H(s,o,y,T){return s.reduce(function(S,F){var d=g(o,y,T&&!S);switch(F.type){case"element":return S+d+q(F,o,y);case"comment":return S+d+B(F[o.commentKey],o);case"doctype":return S+d+N(F[o.doctypeKey],o);case"cdata":return S+(o.indentCdata?d:"")+C(F[o.cdataKey],o);case"text":return S+(o.indentText?d:"")+P(F[o.textKey],o);case"instruction":var K={};return K[F[o.nameKey]]=F[o.attributesKey]?F:F[o.instructionKey],S+(o.indentInstruction?d:"")+_(K,o,y)}},"")}function L(s,o,y){var T;for(T in s)if(s.hasOwnProperty(T))switch(T){case o.parentKey:case o.attributesKey:break;case o.textKey:if(o.indentText||y)return!0;break;case o.cdataKey:if(o.indentCdata||y)return!0;break;case o.instructionKey:if(o.indentInstruction||y)return!0;break;case o.doctypeKey:case o.commentKey:return!0;default:return!0}return!1}function c(s,o,y,T,S){f=s,u=o;var F="elementNameFn"in y?y.elementNameFn(o,s):o;if(typeof s>"u"||s===null||s==="")return"fullTagEmptyElementFn"in y&&y.fullTagEmptyElementFn(o,s)||y.fullTagEmptyElement?"<"+F+"></"+F+">":"<"+F+"/>";var d=[];if(o){if(d.push("<"+F),typeof s!="object")return d.push(">"+P(s,y)+"</"+F+">"),d.join("");s[y.attributesKey]&&d.push(A(s[y.attributesKey],y,T));var K=L(s,y,!0)||s[y.attributesKey]&&s[y.attributesKey]["xml:space"]==="preserve";if(K||("fullTagEmptyElementFn"in y?K=y.fullTagEmptyElementFn(o,s):K=y.fullTagEmptyElement),K)d.push(">");else return d.push("/>"),d.join("")}return d.push(m(s,y,T+1,!1)),f=s,u=o,o&&d.push((S?g(y,T,!1):"")+"</"+F+">"),d.join("")}function m(s,o,y,T){var S,F,d,K=[];for(F in s)if(s.hasOwnProperty(F))for(d=a(s[F])?s[F]:[s[F]],S=0;S<d.length;++S){switch(F){case o.declarationKey:K.push(E(d[S],o,y));break;case o.instructionKey:K.push((o.indentInstruction?g(o,y,T):"")+_(d[S],o,y));break;case o.attributesKey:case o.parentKey:break;case o.textKey:K.push((o.indentText?g(o,y,T):"")+P(d[S],o));break;case o.cdataKey:K.push((o.indentCdata?g(o,y,T):"")+C(d[S],o));break;case o.doctypeKey:K.push(g(o,y,T)+N(d[S],o));break;case o.commentKey:K.push(g(o,y,T)+B(d[S],o));break;default:K.push(g(o,y,T)+c(d[S],F,o,y,L(d[S],o)))}T=T&&!K.length}return K.join("")}return Sr=function(s,o){o=v(o);var y=[];return f=s,u="_root_",o.compact?y.push(m(s,o,0,!0)):(s[o.declarationKey]&&y.push(E(s[o.declarationKey],o,0)),s[o.elementsKey]&&s[o.elementsKey].length&&y.push(H(s[o.elementsKey],o,0,!y.length))),y.join("")},Sr}var Rr,gi;function to(){if(gi)return Rr;gi=1;var r=Mi();return Rr=function(a,f){a instanceof te.Buffer&&(a=a.toString());var u=null;if(typeof a=="string")try{u=JSON.parse(a)}catch{throw new Error("The JSON structure is invalid")}else u=a;return r(u,f)},Rr}var xr,bi;function ro(){if(bi)return xr;bi=1;var r=Li(),a=eo(),f=Mi(),u=to();return xr={xml2js:r,xml2json:a,js2xml:f,json2xml:u},xr}var no=ro();const io=Ee.getDefaultExportFromCjs(no);function Ue(r){if(!Number.isSafeInteger(r)||r<0)throw new Error("positive integer expected, got "+r)}function ao(r){return r instanceof Uint8Array||ArrayBuffer.isView(r)&&r.constructor.name==="Uint8Array"}function Ur(r,...a){if(!ao(r))throw new Error("Uint8Array expected");if(a.length>0&&!a.includes(r.length))throw new Error("Uint8Array expected of length "+a+", got length="+r.length)}function Ui(r){if(typeof r!="function"||typeof r.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");Ue(r.outputLen),Ue(r.blockLen)}function Xe(r,a=!0){if(r.destroyed)throw new Error("Hash instance has been destroyed");if(a&&r.finished)throw new Error("Hash#digest() has already been called")}function oo(r,a){Ur(r);const f=a.outputLen;if(r.length<f)throw new Error("digestInto() expects output buffer of length at least "+f)}/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Ye(r){return new DataView(r.buffer,r.byteOffset,r.byteLength)}function uo(r){if(typeof r!="string")throw new Error("utf8ToBytes expected string, got "+typeof r);return new Uint8Array(new TextEncoder().encode(r))}function je(r){return typeof r=="string"&&(r=uo(r)),Ur(r),r}class ji{clone(){return this._cloneInto()}}function so(r,a){if(a!==void 0&&{}.toString.call(a)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(r,a)}function fo(r){const a=u=>r().update(je(u)).digest(),f=r();return a.outputLen=f.outputLen,a.blockLen=f.blockLen,a.create=()=>r(),a}class qi extends ji{constructor(a,f){super(),this.finished=!1,this.destroyed=!1,Ui(a);const u=je(f);if(this.iHash=a.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const v=this.blockLen,g=new Uint8Array(v);g.set(u.length>v?a.create().update(u).digest():u);for(let A=0;A<g.length;A++)g[A]^=54;this.iHash.update(g),this.oHash=a.create();for(let A=0;A<g.length;A++)g[A]^=106;this.oHash.update(g),g.fill(0)}update(a){return Xe(this),this.iHash.update(a),this}digestInto(a){Xe(this),Ur(a,this.outputLen),this.finished=!0,this.iHash.digestInto(a),this.oHash.update(a),this.oHash.digestInto(a),this.destroy()}digest(){const a=new Uint8Array(this.oHash.outputLen);return this.digestInto(a),a}_cloneInto(a){a||(a=Object.create(Object.getPrototypeOf(this),{}));const{oHash:f,iHash:u,finished:v,destroyed:g,blockLen:A,outputLen:E}=this;return a=a,a.finished=v,a.destroyed=g,a.blockLen=A,a.outputLen=E,a.oHash=f._cloneInto(a.oHash),a.iHash=u._cloneInto(a.iHash),a}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const ki=(r,a,f)=>new qi(r,a).update(f).digest();ki.create=(r,a)=>new qi(r,a);function lo(r,a,f,u){Ui(r);const v=so({dkLen:32,asyncTick:10},u),{c:g,dkLen:A,asyncTick:E}=v;if(Ue(g),Ue(A),Ue(E),g<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const _=je(a),B=je(f),C=new Uint8Array(A),N=ki.create(r,_),P=N._cloneInto().update(B);return{c:g,dkLen:A,asyncTick:E,DK:C,PRF:N,PRFSalt:P}}function co(r,a,f,u,v){return r.destroy(),a.destroy(),u&&u.destroy(),v.fill(0),f}function ho(r,a,f,u){const{c:v,dkLen:g,DK:A,PRF:E,PRFSalt:_}=lo(r,a,f,u);let B;const C=new Uint8Array(4),N=Ye(C),P=new Uint8Array(E.outputLen);for(let V=1,q=0;q<g;V++,q+=E.outputLen){const H=A.subarray(q,q+E.outputLen);N.setInt32(0,V,!1),(B=_._cloneInto(B)).update(C).digestInto(P),H.set(P.subarray(0,H.length));for(let L=1;L<v;L++){E._cloneInto(B).update(P).digestInto(P);for(let c=0;c<H.length;c++)H[c]^=P[c]}}return co(E,_,A,B,P)}function po(r,a,f,u){if(typeof r.setBigUint64=="function")return r.setBigUint64(a,f,u);const v=BigInt(32),g=BigInt(4294967295),A=Number(f>>v&g),E=Number(f&g),_=u?4:0,B=u?0:4;r.setUint32(a+_,A,u),r.setUint32(a+B,E,u)}class yo extends ji{constructor(a,f,u,v){super(),this.blockLen=a,this.outputLen=f,this.padOffset=u,this.isLE=v,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(a),this.view=Ye(this.buffer)}update(a){Xe(this);const{view:f,buffer:u,blockLen:v}=this;a=je(a);const g=a.length;for(let A=0;A<g;){const E=Math.min(v-this.pos,g-A);if(E===v){const _=Ye(a);for(;v<=g-A;A+=v)this.process(_,A);continue}u.set(a.subarray(A,A+E),this.pos),this.pos+=E,A+=E,this.pos===v&&(this.process(f,0),this.pos=0)}return this.length+=a.length,this.roundClean(),this}digestInto(a){Xe(this),oo(a,this),this.finished=!0;const{buffer:f,view:u,blockLen:v,isLE:g}=this;let{pos:A}=this;f[A++]=128,this.buffer.subarray(A).fill(0),this.padOffset>v-A&&(this.process(u,0),A=0);for(let N=A;N<v;N++)f[N]=0;po(u,v-8,BigInt(this.length*8),g),this.process(u,0);const E=Ye(a),_=this.outputLen;if(_%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const B=_/4,C=this.get();if(B>C.length)throw new Error("_sha2: outputLen bigger than state");for(let N=0;N<B;N++)E.setUint32(4*N,C[N],g)}digest(){const{buffer:a,outputLen:f}=this;this.digestInto(a);const u=a.slice(0,f);return this.destroy(),u}_cloneInto(a){a||(a=new this.constructor),a.set(...this.get());const{blockLen:f,buffer:u,length:v,finished:g,destroyed:A,pos:E}=this;return a.length=v,a.pos=E,a.finished=g,a.destroyed=A,v%f&&a.buffer.set(u),a}}const Ve=BigInt(2**32-1),Fr=BigInt(32);function Hi(r,a=!1){return a?{h:Number(r&Ve),l:Number(r>>Fr&Ve)}:{h:Number(r>>Fr&Ve)|0,l:Number(r&Ve)|0}}function go(r,a=!1){let f=new Uint32Array(r.length),u=new Uint32Array(r.length);for(let v=0;v<r.length;v++){const{h:g,l:A}=Hi(r[v],a);[f[v],u[v]]=[g,A]}return[f,u]}const bo=(r,a)=>BigInt(r>>>0)<<Fr|BigInt(a>>>0),mo=(r,a,f)=>r>>>f,Eo=(r,a,f)=>r<<32-f|a>>>f,vo=(r,a,f)=>r>>>f|a<<32-f,wo=(r,a,f)=>r<<32-f|a>>>f,_o=(r,a,f)=>r<<64-f|a>>>f-32,Ao=(r,a,f)=>r>>>f-32|a<<64-f,To=(r,a)=>a,So=(r,a)=>r,Ro=(r,a,f)=>r<<f|a>>>32-f,xo=(r,a,f)=>a<<f|r>>>32-f,Io=(r,a,f)=>a<<f-32|r>>>64-f,Fo=(r,a,f)=>r<<f-32|a>>>64-f;function Oo(r,a,f,u){const v=(a>>>0)+(u>>>0);return{h:r+f+(v/2**32|0)|0,l:v|0}}const Bo=(r,a,f)=>(r>>>0)+(a>>>0)+(f>>>0),No=(r,a,f,u)=>a+f+u+(r/2**32|0)|0,Po=(r,a,f,u)=>(r>>>0)+(a>>>0)+(f>>>0)+(u>>>0),Co=(r,a,f,u,v)=>a+f+u+v+(r/2**32|0)|0,Do=(r,a,f,u,v)=>(r>>>0)+(a>>>0)+(f>>>0)+(u>>>0)+(v>>>0),Lo=(r,a,f,u,v,g)=>a+f+u+v+g+(r/2**32|0)|0,re={fromBig:Hi,split:go,toBig:bo,shrSH:mo,shrSL:Eo,rotrSH:vo,rotrSL:wo,rotrBH:_o,rotrBL:Ao,rotr32H:To,rotr32L:So,rotlSH:Ro,rotlSL:xo,rotlBH:Io,rotlBL:Fo,add:Oo,add3L:Bo,add3H:No,add4L:Po,add4H:Co,add5H:Lo,add5L:Do},[Mo,Uo]=re.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(r=>BigInt(r))),Ie=new Uint32Array(80),Fe=new Uint32Array(80);class jo extends yo{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:a,Al:f,Bh:u,Bl:v,Ch:g,Cl:A,Dh:E,Dl:_,Eh:B,El:C,Fh:N,Fl:P,Gh:V,Gl:q,Hh:H,Hl:L}=this;return[a,f,u,v,g,A,E,_,B,C,N,P,V,q,H,L]}set(a,f,u,v,g,A,E,_,B,C,N,P,V,q,H,L){this.Ah=a|0,this.Al=f|0,this.Bh=u|0,this.Bl=v|0,this.Ch=g|0,this.Cl=A|0,this.Dh=E|0,this.Dl=_|0,this.Eh=B|0,this.El=C|0,this.Fh=N|0,this.Fl=P|0,this.Gh=V|0,this.Gl=q|0,this.Hh=H|0,this.Hl=L|0}process(a,f){for(let s=0;s<16;s++,f+=4)Ie[s]=a.getUint32(f),Fe[s]=a.getUint32(f+=4);for(let s=16;s<80;s++){const o=Ie[s-15]|0,y=Fe[s-15]|0,T=re.rotrSH(o,y,1)^re.rotrSH(o,y,8)^re.shrSH(o,y,7),S=re.rotrSL(o,y,1)^re.rotrSL(o,y,8)^re.shrSL(o,y,7),F=Ie[s-2]|0,d=Fe[s-2]|0,K=re.rotrSH(F,d,19)^re.rotrBH(F,d,61)^re.shrSH(F,d,6),X=re.rotrSL(F,d,19)^re.rotrBL(F,d,61)^re.shrSL(F,d,6),x=re.add4L(S,X,Fe[s-7],Fe[s-16]),ee=re.add4H(x,T,K,Ie[s-7],Ie[s-16]);Ie[s]=ee|0,Fe[s]=x|0}let{Ah:u,Al:v,Bh:g,Bl:A,Ch:E,Cl:_,Dh:B,Dl:C,Eh:N,El:P,Fh:V,Fl:q,Gh:H,Gl:L,Hh:c,Hl:m}=this;for(let s=0;s<80;s++){const o=re.rotrSH(N,P,14)^re.rotrSH(N,P,18)^re.rotrBH(N,P,41),y=re.rotrSL(N,P,14)^re.rotrSL(N,P,18)^re.rotrBL(N,P,41),T=N&V^~N&H,S=P&q^~P&L,F=re.add5L(m,y,S,Uo[s],Fe[s]),d=re.add5H(F,c,o,T,Mo[s],Ie[s]),K=F|0,X=re.rotrSH(u,v,28)^re.rotrBH(u,v,34)^re.rotrBH(u,v,39),x=re.rotrSL(u,v,28)^re.rotrBL(u,v,34)^re.rotrBL(u,v,39),ee=u&g^u&E^g&E,ne=v&A^v&_^A&_;c=H|0,m=L|0,H=V|0,L=q|0,V=N|0,q=P|0,{h:N,l:P}=re.add(B|0,C|0,d|0,K|0),B=E|0,C=_|0,E=g|0,_=A|0,g=u|0,A=v|0;const ae=re.add3L(K,x,ne);u=re.add3H(ae,d,X,ee),v=ae|0}({h:u,l:v}=re.add(this.Ah|0,this.Al|0,u|0,v|0)),{h:g,l:A}=re.add(this.Bh|0,this.Bl|0,g|0,A|0),{h:E,l:_}=re.add(this.Ch|0,this.Cl|0,E|0,_|0),{h:B,l:C}=re.add(this.Dh|0,this.Dl|0,B|0,C|0),{h:N,l:P}=re.add(this.Eh|0,this.El|0,N|0,P|0),{h:V,l:q}=re.add(this.Fh|0,this.Fl|0,V|0,q|0),{h:H,l:L}=re.add(this.Gh|0,this.Gl|0,H|0,L|0),{h:c,l:m}=re.add(this.Hh|0,this.Hl|0,c|0,m|0),this.set(u,v,g,A,E,_,B,C,N,P,V,q,H,L,c,m)}roundClean(){Ie.fill(0),Fe.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const qo=fo(()=>new jo),ko=(r,a,f,u)=>te.Buffer.from(ho(qo,r,a,{c:f,dkLen:u}));class Ho{constructor({axiosClient:a,baseURI:f}){xe(this,"axiosClient");xe(this,"baseURI");xe(this,"signingKey");xe(this,"ALGORITHM","sha512");xe(this,"TTL",1200);xe(this,"HASH_LENGTH",32);xe(this,"ITERATION_COUNT",1e4);this.axiosClient=a,this.baseURI=f}async signUrl(a,f){const u=new URL(a);u.searchParams.set("OC-Credential",f),u.searchParams.set("OC-Date",new Date().toISOString()),u.searchParams.set("OC-Expires",this.TTL.toString()),u.searchParams.set("OC-Verb","GET");const v=await this.createHashedKey(u.toString());return u.searchParams.set("OC-Algo",`PBKDF2/${this.ITERATION_COUNT}-SHA512`),u.searchParams.set("OC-Signature",v),u.toString()}async getSignKey(){if(this.signingKey)return this.signingKey;const a=await this.axiosClient.get(Ee.urlJoin(this.baseURI,"ocs/v1.php/cloud/user/signing-key"),{headers:{"Content-Type":"application/x-www-form-urlencoded"}}),f=io.xml2js(a.data,{compact:!0});return this.signingKey=f.ocs.data["signing-key"]._text,this.signingKey}async createHashedKey(a){const f=await this.getSignKey();return ko(a,f,this.ITERATION_COUNT,this.HASH_LENGTH,this.ALGORITHM).toString("hex")}}const Go=(r,a)=>{const f=new URL(r);f.pathname=[...f.pathname.split("/"),"ocs","v1.php"].filter(Boolean).join("/");const u=f.href,v=mi(u,a),g=new Ho({baseURI:r,axiosClient:a});return{getCapabilities:()=>v.getCapabilities(),signUrl:(A,E)=>g.signUrl(A,E)}};exports.GetCapabilitiesFactory=mi;exports.ocs=Go;
|
|
19
|
+
Char: `+i.c),n=new Error(n),i.error=n,X(i,"onerror",n),i}function le(i){return i.sawRoot&&!i.closedRoot&&Z(i,"Unclosed root tag"),i.state!==d.BEGIN&&i.state!==d.BEGIN_WHITESPACE&&i.state!==d.TEXT&&ie(i,"Unexpected end"),ee(i),i.c="",i.closed=!0,X(i,"onend"),u.call(i,i.strict,i.opt),i}function Z(i,n){if(typeof i!="object"||!(i instanceof u))throw new Error("bad call to strictFail");i.strict&&ie(i,n)}function ce(i){i.strict||(i.tagName=i.tagName[i.looseCase]());var n=i.tags[i.tags.length-1]||i,R=i.tag={name:i.tagName,attributes:{}};i.opt.xmlns&&(R.ns=n.ns),i.attribList.length=0,x(i,"onopentagstart",R)}function oe(i,n){var R=i.indexOf(":"),v=R<0?["",i]:i.split(":"),h=v[0],p=v[1];return n&&i==="xmlns"&&(h="xmlns",p=""),{prefix:h,local:p}}function ye(i){if(i.strict||(i.attribName=i.attribName[i.looseCase]()),i.attribList.indexOf(i.attribName)!==-1||i.tag.attributes.hasOwnProperty(i.attribName)){i.attribName=i.attribValue="";return}if(i.opt.xmlns){var n=oe(i.attribName,!0),R=n.prefix,v=n.local;if(R==="xmlns")if(v==="xml"&&i.attribValue!==V)Z(i,"xml: prefix must be bound to "+V+`
|
|
20
|
+
Actual: `+i.attribValue);else if(v==="xmlns"&&i.attribValue!==q)Z(i,"xmlns: prefix must be bound to "+q+`
|
|
21
|
+
Actual: `+i.attribValue);else{var h=i.tag,p=i.tags[i.tags.length-1]||i;h.ns===p.ns&&(h.ns=Object.create(p.ns)),h.ns[v]=i.attribValue}i.attribList.push([i.attribName,i.attribValue])}else i.tag.attributes[i.attribName]=i.attribValue,x(i,"onattribute",{name:i.attribName,value:i.attribValue});i.attribName=i.attribValue=""}function ge(i,n){if(i.opt.xmlns){var R=i.tag,v=oe(i.tagName);R.prefix=v.prefix,R.local=v.local,R.uri=R.ns[v.prefix]||"",R.prefix&&!R.uri&&(Z(i,"Unbound namespace prefix: "+JSON.stringify(i.tagName)),R.uri=v.prefix);var h=i.tags[i.tags.length-1]||i;R.ns&&h.ns!==R.ns&&Object.keys(R.ns).forEach(function(ae){x(i,"onopennamespace",{prefix:ae,uri:R.ns[ae]})});for(var p=0,U=i.attribList.length;p<U;p++){var W=i.attribList[p],Q=W[0],Y=W[1],z=oe(Q,!0),se=z.prefix,k=z.local,ve=se===""?"":R.ns[se]||"",be={name:Q,value:Y,prefix:se,local:k,uri:ve};se&&se!=="xmlns"&&!ve&&(Z(i,"Unbound namespace prefix: "+JSON.stringify(se)),be.uri=se),i.tag.attributes[Q]=be,x(i,"onattribute",be)}i.attribList.length=0}i.tag.isSelfClosing=!!n,i.sawRoot=!0,i.tags.push(i.tag),x(i,"onopentag",i.tag),n||(!i.noscript&&i.tagName.toLowerCase()==="script"?i.state=d.SCRIPT:i.state=d.TEXT,i.tag=null,i.tagName=""),i.attribName=i.attribValue="",i.attribList.length=0}function D(i){if(!i.tagName){Z(i,"Weird empty close tag."),i.textNode+="</>",i.state=d.TEXT;return}if(i.script){if(i.tagName!=="script"){i.script+="</"+i.tagName+">",i.tagName="",i.state=d.SCRIPT;return}x(i,"onscript",i.script),i.script=""}var n=i.tags.length,R=i.tagName;i.strict||(R=R[i.looseCase]());for(var v=R;n--;){var h=i.tags[n];if(h.name!==v)Z(i,"Unexpected close tag");else break}if(n<0){Z(i,"Unmatched closing tag: "+i.tagName),i.textNode+="</"+i.tagName+">",i.state=d.TEXT;return}i.tagName=R;for(var p=i.tags.length;p-- >n;){var U=i.tag=i.tags.pop();i.tagName=i.tag.name,x(i,"onclosetag",i.tagName);var W={};for(var Q in U.ns)W[Q]=U.ns[Q];var Y=i.tags[i.tags.length-1]||i;i.opt.xmlns&&U.ns!==Y.ns&&Object.keys(U.ns).forEach(function(z){var se=U.ns[z];x(i,"onclosenamespace",{prefix:z,uri:se})})}n===0&&(i.closedRoot=!0),i.tagName=i.attribValue=i.attribName="",i.attribList.length=0,i.state=d.TEXT}function j(i){var n=i.entity,R=n.toLowerCase(),v,h="";return i.ENTITIES[n]?i.ENTITIES[n]:i.ENTITIES[R]?i.ENTITIES[R]:(n=R,n.charAt(0)==="#"&&(n.charAt(1)==="x"?(n=n.slice(2),v=parseInt(n,16),h=v.toString(16)):(n=n.slice(1),v=parseInt(n,10),h=v.toString(10))),n=n.replace(/^0+/,""),isNaN(v)||h.toLowerCase()!==n?(Z(i,"Invalid character entity"),"&"+i.entity+";"):String.fromCodePoint(v))}function $(i,n){n==="<"?(i.state=d.OPEN_WAKA,i.startTagPosition=i.position):o(n)||(Z(i,"Non-whitespace before first tag."),i.textNode=n,i.state=d.TEXT)}function J(i,n){var R="";return n<i.length&&(R=i.charAt(n)),R}function O(i){var n=this;if(this.error)throw this.error;if(n.closed)return ie(n,"Cannot write after close. Assign an onready handler.");if(i===null)return le(n);typeof i=="object"&&(i=i.toString());for(var R=0,v="";v=J(i,R++),n.c=v,!!v;)switch(n.trackPosition&&(n.position++,v===`
|
|
22
|
+
`?(n.line++,n.column=0):n.column++),n.state){case d.BEGIN:if(n.state=d.BEGIN_WHITESPACE,v==="\uFEFF")continue;$(n,v);continue;case d.BEGIN_WHITESPACE:$(n,v);continue;case d.TEXT:if(n.sawRoot&&!n.closedRoot){for(var h=R-1;v&&v!=="<"&&v!=="&";)v=J(i,R++),v&&n.trackPosition&&(n.position++,v===`
|
|
23
|
+
`?(n.line++,n.column=0):n.column++);n.textNode+=i.substring(h,R-1)}v==="<"&&!(n.sawRoot&&n.closedRoot&&!n.strict)?(n.state=d.OPEN_WAKA,n.startTagPosition=n.position):(!o(v)&&(!n.sawRoot||n.closedRoot)&&Z(n,"Text data outside of root node."),v==="&"?n.state=d.TEXT_ENTITY:n.textNode+=v);continue;case d.SCRIPT:v==="<"?n.state=d.SCRIPT_ENDING:n.script+=v;continue;case d.SCRIPT_ENDING:v==="/"?n.state=d.CLOSE_TAG:(n.script+="<"+v,n.state=d.SCRIPT);continue;case d.OPEN_WAKA:if(v==="!")n.state=d.SGML_DECL,n.sgmlDecl="";else if(!o(v))if(S(L,v))n.state=d.OPEN_TAG,n.tagName=v;else if(v==="/")n.state=d.CLOSE_TAG,n.tagName="";else if(v==="?")n.state=d.PROC_INST,n.procInstName=n.procInstBody="";else{if(Z(n,"Unencoded <"),n.startTagPosition+1<n.position){var p=n.position-n.startTagPosition;v=new Array(p).join(" ")+v}n.textNode+="<"+v,n.state=d.TEXT}continue;case d.SGML_DECL:if(n.sgmlDecl+v==="--"){n.state=d.COMMENT,n.comment="",n.sgmlDecl="";continue}n.doctype&&n.doctype!==!0&&n.sgmlDecl?(n.state=d.DOCTYPE_DTD,n.doctype+="<!"+n.sgmlDecl+v,n.sgmlDecl=""):(n.sgmlDecl+v).toUpperCase()===N?(x(n,"onopencdata"),n.state=d.CDATA,n.sgmlDecl="",n.cdata=""):(n.sgmlDecl+v).toUpperCase()===P?(n.state=d.DOCTYPE,(n.doctype||n.sawRoot)&&Z(n,"Inappropriately located doctype declaration"),n.doctype="",n.sgmlDecl=""):v===">"?(x(n,"onsgmldeclaration",n.sgmlDecl),n.sgmlDecl="",n.state=d.TEXT):(g(v)&&(n.state=d.SGML_DECL_QUOTED),n.sgmlDecl+=v);continue;case d.SGML_DECL_QUOTED:v===n.q&&(n.state=d.SGML_DECL,n.q=""),n.sgmlDecl+=v;continue;case d.DOCTYPE:v===">"?(n.state=d.TEXT,x(n,"ondoctype",n.doctype),n.doctype=!0):(n.doctype+=v,v==="["?n.state=d.DOCTYPE_DTD:g(v)&&(n.state=d.DOCTYPE_QUOTED,n.q=v));continue;case d.DOCTYPE_QUOTED:n.doctype+=v,v===n.q&&(n.q="",n.state=d.DOCTYPE);continue;case d.DOCTYPE_DTD:v==="]"?(n.doctype+=v,n.state=d.DOCTYPE):v==="<"?(n.state=d.OPEN_WAKA,n.startTagPosition=n.position):g(v)?(n.doctype+=v,n.state=d.DOCTYPE_DTD_QUOTED,n.q=v):n.doctype+=v;continue;case d.DOCTYPE_DTD_QUOTED:n.doctype+=v,v===n.q&&(n.state=d.DOCTYPE_DTD,n.q="");continue;case d.COMMENT:v==="-"?n.state=d.COMMENT_ENDING:n.comment+=v;continue;case d.COMMENT_ENDING:v==="-"?(n.state=d.COMMENT_ENDED,n.comment=re(n.opt,n.comment),n.comment&&x(n,"oncomment",n.comment),n.comment=""):(n.comment+="-"+v,n.state=d.COMMENT);continue;case d.COMMENT_ENDED:v!==">"?(Z(n,"Malformed comment"),n.comment+="--"+v,n.state=d.COMMENT):n.doctype&&n.doctype!==!0?n.state=d.DOCTYPE_DTD:n.state=d.TEXT;continue;case d.CDATA:v==="]"?n.state=d.CDATA_ENDING:n.cdata+=v;continue;case d.CDATA_ENDING:v==="]"?n.state=d.CDATA_ENDING_2:(n.cdata+="]"+v,n.state=d.CDATA);continue;case d.CDATA_ENDING_2:v===">"?(n.cdata&&x(n,"oncdata",n.cdata),x(n,"onclosecdata"),n.cdata="",n.state=d.TEXT):v==="]"?n.cdata+="]":(n.cdata+="]]"+v,n.state=d.CDATA);continue;case d.PROC_INST:v==="?"?n.state=d.PROC_INST_ENDING:o(v)?n.state=d.PROC_INST_BODY:n.procInstName+=v;continue;case d.PROC_INST_BODY:if(!n.procInstBody&&o(v))continue;v==="?"?n.state=d.PROC_INST_ENDING:n.procInstBody+=v;continue;case d.PROC_INST_ENDING:v===">"?(x(n,"onprocessinginstruction",{name:n.procInstName,body:n.procInstBody}),n.procInstName=n.procInstBody="",n.state=d.TEXT):(n.procInstBody+="?"+v,n.state=d.PROC_INST_BODY);continue;case d.OPEN_TAG:S(c,v)?n.tagName+=v:(ce(n),v===">"?ge(n):v==="/"?n.state=d.OPEN_TAG_SLASH:(o(v)||Z(n,"Invalid character in tag name"),n.state=d.ATTRIB));continue;case d.OPEN_TAG_SLASH:v===">"?(ge(n,!0),D(n)):(Z(n,"Forward-slash in opening tag not followed by >"),n.state=d.ATTRIB);continue;case d.ATTRIB:if(o(v))continue;v===">"?ge(n):v==="/"?n.state=d.OPEN_TAG_SLASH:S(L,v)?(n.attribName=v,n.attribValue="",n.state=d.ATTRIB_NAME):Z(n,"Invalid attribute name");continue;case d.ATTRIB_NAME:v==="="?n.state=d.ATTRIB_VALUE:v===">"?(Z(n,"Attribute without value"),n.attribValue=n.attribName,ye(n),ge(n)):o(v)?n.state=d.ATTRIB_NAME_SAW_WHITE:S(c,v)?n.attribName+=v:Z(n,"Invalid attribute name");continue;case d.ATTRIB_NAME_SAW_WHITE:if(v==="=")n.state=d.ATTRIB_VALUE;else{if(o(v))continue;Z(n,"Attribute without value"),n.tag.attributes[n.attribName]="",n.attribValue="",x(n,"onattribute",{name:n.attribName,value:""}),n.attribName="",v===">"?ge(n):S(L,v)?(n.attribName=v,n.state=d.ATTRIB_NAME):(Z(n,"Invalid attribute name"),n.state=d.ATTRIB)}continue;case d.ATTRIB_VALUE:if(o(v))continue;g(v)?(n.q=v,n.state=d.ATTRIB_VALUE_QUOTED):(n.opt.unquotedAttributeValues||ie(n,"Unquoted attribute value"),n.state=d.ATTRIB_VALUE_UNQUOTED,n.attribValue=v);continue;case d.ATTRIB_VALUE_QUOTED:if(v!==n.q){v==="&"?n.state=d.ATTRIB_VALUE_ENTITY_Q:n.attribValue+=v;continue}ye(n),n.q="",n.state=d.ATTRIB_VALUE_CLOSED;continue;case d.ATTRIB_VALUE_CLOSED:o(v)?n.state=d.ATTRIB:v===">"?ge(n):v==="/"?n.state=d.OPEN_TAG_SLASH:S(L,v)?(Z(n,"No whitespace between attributes"),n.attribName=v,n.attribValue="",n.state=d.ATTRIB_NAME):Z(n,"Invalid attribute name");continue;case d.ATTRIB_VALUE_UNQUOTED:if(!T(v)){v==="&"?n.state=d.ATTRIB_VALUE_ENTITY_U:n.attribValue+=v;continue}ye(n),v===">"?ge(n):n.state=d.ATTRIB;continue;case d.CLOSE_TAG:if(n.tagName)v===">"?D(n):S(c,v)?n.tagName+=v:n.script?(n.script+="</"+n.tagName,n.tagName="",n.state=d.SCRIPT):(o(v)||Z(n,"Invalid tagname in closing tag"),n.state=d.CLOSE_TAG_SAW_WHITE);else{if(o(v))continue;F(L,v)?n.script?(n.script+="</"+v,n.state=d.SCRIPT):Z(n,"Invalid tagname in closing tag."):n.tagName=v}continue;case d.CLOSE_TAG_SAW_WHITE:if(o(v))continue;v===">"?D(n):Z(n,"Invalid characters in closing tag");continue;case d.TEXT_ENTITY:case d.ATTRIB_VALUE_ENTITY_Q:case d.ATTRIB_VALUE_ENTITY_U:var U,W;switch(n.state){case d.TEXT_ENTITY:U=d.TEXT,W="textNode";break;case d.ATTRIB_VALUE_ENTITY_Q:U=d.ATTRIB_VALUE_QUOTED,W="attribValue";break;case d.ATTRIB_VALUE_ENTITY_U:U=d.ATTRIB_VALUE_UNQUOTED,W="attribValue";break}if(v===";"){var Q=j(n);n.opt.unparsedEntities&&!Object.values(a.XML_ENTITIES).includes(Q)?(n.entity="",n.state=U,n.write(Q)):(n[W]+=Q,n.entity="",n.state=U)}else S(n.entity.length?s:m,v)?n.entity+=v:(Z(n,"Invalid character in entity name"),n[W]+="&"+n.entity+v,n.entity="",n.state=U);continue;default:throw new Error(n,"Unknown state: "+n.state)}return n.position>=n.bufferCheckPosition&&w(n),n}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||function(){var i=String.fromCharCode,n=Math.floor,R=function(){var v=16384,h=[],p,U,W=-1,Q=arguments.length;if(!Q)return"";for(var Y="";++W<Q;){var z=Number(arguments[W]);if(!isFinite(z)||z<0||z>1114111||n(z)!==z)throw RangeError("Invalid code point: "+z);z<=65535?h.push(z):(z-=65536,p=(z>>10)+55296,U=z%1024+56320,h.push(p,U)),(W+1===Q||h.length>v)&&(Y+=i.apply(null,h),h.length=0)}return Y};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:R,configurable:!0,writable:!0}):String.fromCodePoint=R}()})(r)}(st)),st}var xr,bi;function Gr(){return bi||(bi=1,xr={isArray:function(r){return Array.isArray?Array.isArray(r):Object.prototype.toString.call(r)==="[object Array]"}}),xr}var Ir,mi;function Hr(){if(mi)return Ir;mi=1;var r=Gr().isArray;return Ir={copyOptions:function(a){var l,u={};for(l in a)a.hasOwnProperty(l)&&(u[l]=a[l]);return u},ensureFlagExists:function(a,l){(!(a in l)||typeof l[a]!="boolean")&&(l[a]=!1)},ensureSpacesExists:function(a){(!("spaces"in a)||typeof a.spaces!="number"&&typeof a.spaces!="string")&&(a.spaces=0)},ensureAlwaysArrayExists:function(a){(!("alwaysArray"in a)||typeof a.alwaysArray!="boolean"&&!r(a.alwaysArray))&&(a.alwaysArray=!1)},ensureKeyExists:function(a,l){(!(a+"Key"in l)||typeof l[a+"Key"]!="string")&&(l[a+"Key"]=l.compact?"_"+a:a)},checkFnExists:function(a,l){return a+"Fn"in l}},Ir}var Fr,Ei;function $i(){if(Ei)return Fr;Ei=1;var r=fo(),a=Hr(),l=Gr().isArray,u,w;function y(c){return u=a.copyOptions(c),a.ensureFlagExists("ignoreDeclaration",u),a.ensureFlagExists("ignoreInstruction",u),a.ensureFlagExists("ignoreAttributes",u),a.ensureFlagExists("ignoreText",u),a.ensureFlagExists("ignoreComment",u),a.ensureFlagExists("ignoreCdata",u),a.ensureFlagExists("ignoreDoctype",u),a.ensureFlagExists("compact",u),a.ensureFlagExists("alwaysChildren",u),a.ensureFlagExists("addParent",u),a.ensureFlagExists("trim",u),a.ensureFlagExists("nativeType",u),a.ensureFlagExists("nativeTypeAttributes",u),a.ensureFlagExists("sanitize",u),a.ensureFlagExists("instructionHasAttributes",u),a.ensureFlagExists("captureSpacesBetweenElements",u),a.ensureAlwaysArrayExists(u),a.ensureKeyExists("declaration",u),a.ensureKeyExists("instruction",u),a.ensureKeyExists("attributes",u),a.ensureKeyExists("text",u),a.ensureKeyExists("comment",u),a.ensureKeyExists("cdata",u),a.ensureKeyExists("doctype",u),a.ensureKeyExists("type",u),a.ensureKeyExists("name",u),a.ensureKeyExists("elements",u),a.ensureKeyExists("parent",u),a.checkFnExists("doctype",u),a.checkFnExists("instruction",u),a.checkFnExists("cdata",u),a.checkFnExists("comment",u),a.checkFnExists("text",u),a.checkFnExists("instructionName",u),a.checkFnExists("elementName",u),a.checkFnExists("attributeName",u),a.checkFnExists("attributeValue",u),a.checkFnExists("attributes",u),u}function A(c){var m=Number(c);if(!isNaN(m))return m;var s=c.toLowerCase();return s==="true"?!0:s==="false"?!1:c}function E(c,m){var s;if(u.compact){if(!w[u[c+"Key"]]&&(l(u.alwaysArray)?u.alwaysArray.indexOf(u[c+"Key"])!==-1:u.alwaysArray)&&(w[u[c+"Key"]]=[]),w[u[c+"Key"]]&&!l(w[u[c+"Key"]])&&(w[u[c+"Key"]]=[w[u[c+"Key"]]]),c+"Fn"in u&&typeof m=="string"&&(m=u[c+"Fn"](m,w)),c==="instruction"&&("instructionFn"in u||"instructionNameFn"in u)){for(s in m)if(m.hasOwnProperty(s))if("instructionFn"in u)m[s]=u.instructionFn(m[s],s,w);else{var o=m[s];delete m[s],m[u.instructionNameFn(s,o,w)]=o}}l(w[u[c+"Key"]])?w[u[c+"Key"]].push(m):w[u[c+"Key"]]=m}else{w[u.elementsKey]||(w[u.elementsKey]=[]);var g={};if(g[u.typeKey]=c,c==="instruction"){for(s in m)if(m.hasOwnProperty(s))break;g[u.nameKey]="instructionNameFn"in u?u.instructionNameFn(s,m,w):s,u.instructionHasAttributes?(g[u.attributesKey]=m[s][u.attributesKey],"instructionFn"in u&&(g[u.attributesKey]=u.instructionFn(g[u.attributesKey],s,w))):("instructionFn"in u&&(m[s]=u.instructionFn(m[s],s,w)),g[u.instructionKey]=m[s])}else c+"Fn"in u&&(m=u[c+"Fn"](m,w)),g[u[c+"Key"]]=m;u.addParent&&(g[u.parentKey]=w),w[u.elementsKey].push(g)}}function _(c){if("attributesFn"in u&&c&&(c=u.attributesFn(c,w)),(u.trim||"attributeValueFn"in u||"attributeNameFn"in u||u.nativeTypeAttributes)&&c){var m;for(m in c)if(c.hasOwnProperty(m)&&(u.trim&&(c[m]=c[m].trim()),u.nativeTypeAttributes&&(c[m]=A(c[m])),"attributeValueFn"in u&&(c[m]=u.attributeValueFn(c[m],m,w)),"attributeNameFn"in u)){var s=c[m];delete c[m],c[u.attributeNameFn(m,c[m],w)]=s}}return c}function B(c){var m={};if(c.body&&(c.name.toLowerCase()==="xml"||u.instructionHasAttributes)){for(var s=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,o;(o=s.exec(c.body))!==null;)m[o[1]]=o[2]||o[3]||o[4];m=_(m)}if(c.name.toLowerCase()==="xml"){if(u.ignoreDeclaration)return;w[u.declarationKey]={},Object.keys(m).length&&(w[u.declarationKey][u.attributesKey]=m),u.addParent&&(w[u.declarationKey][u.parentKey]=w)}else{if(u.ignoreInstruction)return;u.trim&&(c.body=c.body.trim());var g={};u.instructionHasAttributes&&Object.keys(m).length?(g[c.name]={},g[c.name][u.attributesKey]=m):g[c.name]=c.body,E("instruction",g)}}function C(c,m){var s;if(typeof c=="object"&&(m=c.attributes,c=c.name),m=_(m),"elementNameFn"in u&&(c=u.elementNameFn(c,w)),u.compact){if(s={},!u.ignoreAttributes&&m&&Object.keys(m).length){s[u.attributesKey]={};var o;for(o in m)m.hasOwnProperty(o)&&(s[u.attributesKey][o]=m[o])}!(c in w)&&(l(u.alwaysArray)?u.alwaysArray.indexOf(c)!==-1:u.alwaysArray)&&(w[c]=[]),w[c]&&!l(w[c])&&(w[c]=[w[c]]),l(w[c])?w[c].push(s):w[c]=s}else w[u.elementsKey]||(w[u.elementsKey]=[]),s={},s[u.typeKey]="element",s[u.nameKey]=c,!u.ignoreAttributes&&m&&Object.keys(m).length&&(s[u.attributesKey]=m),u.alwaysChildren&&(s[u.elementsKey]=[]),w[u.elementsKey].push(s);s[u.parentKey]=w,w=s}function N(c){u.ignoreText||!c.trim()&&!u.captureSpacesBetweenElements||(u.trim&&(c=c.trim()),u.nativeType&&(c=A(c)),u.sanitize&&(c=c.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),E("text",c))}function P(c){u.ignoreComment||(u.trim&&(c=c.trim()),E("comment",c))}function V(c){var m=w[u.parentKey];u.addParent||delete w[u.parentKey],w=m}function q(c){u.ignoreCdata||(u.trim&&(c=c.trim()),E("cdata",c))}function G(c){u.ignoreDoctype||(c=c.replace(/^ /,""),u.trim&&(c=c.trim()),E("doctype",c))}function L(c){c.note=c}return Fr=function(c,m){var s=r.parser(!0,{}),o={};if(w=o,u=y(m),s.opt={strictEntities:!0},s.onopentag=C,s.ontext=N,s.oncomment=P,s.onclosetag=V,s.onerror=L,s.oncdata=q,s.ondoctype=G,s.onprocessinginstruction=B,s.write(c).close(),o[u.elementsKey]){var g=o[u.elementsKey];delete o[u.elementsKey],o[u.elementsKey]=g,delete o.text}return o},Fr}var Or,vi;function lo(){if(vi)return Or;vi=1;var r=Hr(),a=$i();function l(u){var w=r.copyOptions(u);return r.ensureSpacesExists(w),w}return Or=function(u,w){var y,A,E,_;return y=l(w),A=a(u,y),_="compact"in y&&y.compact?"_parent":"parent","addParent"in y&&y.addParent?E=JSON.stringify(A,function(B,C){return B===_?"_":C},y.spaces):E=JSON.stringify(A,null,y.spaces),E.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},Or}var Br,wi;function Wi(){if(wi)return Br;wi=1;var r=Hr(),a=Gr().isArray,l,u;function w(s){var o=r.copyOptions(s);return r.ensureFlagExists("ignoreDeclaration",o),r.ensureFlagExists("ignoreInstruction",o),r.ensureFlagExists("ignoreAttributes",o),r.ensureFlagExists("ignoreText",o),r.ensureFlagExists("ignoreComment",o),r.ensureFlagExists("ignoreCdata",o),r.ensureFlagExists("ignoreDoctype",o),r.ensureFlagExists("compact",o),r.ensureFlagExists("indentText",o),r.ensureFlagExists("indentCdata",o),r.ensureFlagExists("indentAttributes",o),r.ensureFlagExists("indentInstruction",o),r.ensureFlagExists("fullTagEmptyElement",o),r.ensureFlagExists("noQuotesForNativeAttributes",o),r.ensureSpacesExists(o),typeof o.spaces=="number"&&(o.spaces=Array(o.spaces+1).join(" ")),r.ensureKeyExists("declaration",o),r.ensureKeyExists("instruction",o),r.ensureKeyExists("attributes",o),r.ensureKeyExists("text",o),r.ensureKeyExists("comment",o),r.ensureKeyExists("cdata",o),r.ensureKeyExists("doctype",o),r.ensureKeyExists("type",o),r.ensureKeyExists("name",o),r.ensureKeyExists("elements",o),r.checkFnExists("doctype",o),r.checkFnExists("instruction",o),r.checkFnExists("cdata",o),r.checkFnExists("comment",o),r.checkFnExists("text",o),r.checkFnExists("instructionName",o),r.checkFnExists("elementName",o),r.checkFnExists("attributeName",o),r.checkFnExists("attributeValue",o),r.checkFnExists("attributes",o),r.checkFnExists("fullTagEmptyElement",o),o}function y(s,o,g){return(!g&&s.spaces?`
|
|
24
|
+
`:"")+Array(o+1).join(s.spaces)}function A(s,o,g){if(o.ignoreAttributes)return"";"attributesFn"in o&&(s=o.attributesFn(s,u,l));var T,S,F,d,K=[];for(T in s)s.hasOwnProperty(T)&&s[T]!==null&&s[T]!==void 0&&(d=o.noQuotesForNativeAttributes&&typeof s[T]!="string"?"":'"',S=""+s[T],S=S.replace(/"/g,"""),F="attributeNameFn"in o?o.attributeNameFn(T,S,u,l):T,K.push(o.spaces&&o.indentAttributes?y(o,g+1,!1):" "),K.push(F+"="+d+("attributeValueFn"in o?o.attributeValueFn(S,T,u,l):S)+d));return s&&Object.keys(s).length&&o.spaces&&o.indentAttributes&&K.push(y(o,g,!1)),K.join("")}function E(s,o,g){return l=s,u="xml",o.ignoreDeclaration?"":"<?xml"+A(s[o.attributesKey],o,g)+"?>"}function _(s,o,g){if(o.ignoreInstruction)return"";var T;for(T in s)if(s.hasOwnProperty(T))break;var S="instructionNameFn"in o?o.instructionNameFn(T,s[T],u,l):T;if(typeof s[T]=="object")return l=s,u=S,"<?"+S+A(s[T][o.attributesKey],o,g)+"?>";var F=s[T]?s[T]:"";return"instructionFn"in o&&(F=o.instructionFn(F,T,u,l)),"<?"+S+(F?" "+F:"")+"?>"}function B(s,o){return o.ignoreComment?"":"<!--"+("commentFn"in o?o.commentFn(s,u,l):s)+"-->"}function C(s,o){return o.ignoreCdata?"":"<![CDATA["+("cdataFn"in o?o.cdataFn(s,u,l):s.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function N(s,o){return o.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in o?o.doctypeFn(s,u,l):s)+">"}function P(s,o){return o.ignoreText?"":(s=""+s,s=s.replace(/&/g,"&"),s=s.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"textFn"in o?o.textFn(s,u,l):s)}function V(s,o){var g;if(s.elements&&s.elements.length)for(g=0;g<s.elements.length;++g)switch(s.elements[g][o.typeKey]){case"text":if(o.indentText)return!0;break;case"cdata":if(o.indentCdata)return!0;break;case"instruction":if(o.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}function q(s,o,g){l=s,u=s.name;var T=[],S="elementNameFn"in o?o.elementNameFn(s.name,s):s.name;T.push("<"+S),s[o.attributesKey]&&T.push(A(s[o.attributesKey],o,g));var F=s[o.elementsKey]&&s[o.elementsKey].length||s[o.attributesKey]&&s[o.attributesKey]["xml:space"]==="preserve";return F||("fullTagEmptyElementFn"in o?F=o.fullTagEmptyElementFn(s.name,s):F=o.fullTagEmptyElement),F?(T.push(">"),s[o.elementsKey]&&s[o.elementsKey].length&&(T.push(G(s[o.elementsKey],o,g+1)),l=s,u=s.name),T.push(o.spaces&&V(s,o)?`
|
|
25
|
+
`+Array(g+1).join(o.spaces):""),T.push("</"+S+">")):T.push("/>"),T.join("")}function G(s,o,g,T){return s.reduce(function(S,F){var d=y(o,g,T&&!S);switch(F.type){case"element":return S+d+q(F,o,g);case"comment":return S+d+B(F[o.commentKey],o);case"doctype":return S+d+N(F[o.doctypeKey],o);case"cdata":return S+(o.indentCdata?d:"")+C(F[o.cdataKey],o);case"text":return S+(o.indentText?d:"")+P(F[o.textKey],o);case"instruction":var K={};return K[F[o.nameKey]]=F[o.attributesKey]?F:F[o.instructionKey],S+(o.indentInstruction?d:"")+_(K,o,g)}},"")}function L(s,o,g){var T;for(T in s)if(s.hasOwnProperty(T))switch(T){case o.parentKey:case o.attributesKey:break;case o.textKey:if(o.indentText||g)return!0;break;case o.cdataKey:if(o.indentCdata||g)return!0;break;case o.instructionKey:if(o.indentInstruction||g)return!0;break;case o.doctypeKey:case o.commentKey:return!0;default:return!0}return!1}function c(s,o,g,T,S){l=s,u=o;var F="elementNameFn"in g?g.elementNameFn(o,s):o;if(typeof s>"u"||s===null||s==="")return"fullTagEmptyElementFn"in g&&g.fullTagEmptyElementFn(o,s)||g.fullTagEmptyElement?"<"+F+"></"+F+">":"<"+F+"/>";var d=[];if(o){if(d.push("<"+F),typeof s!="object")return d.push(">"+P(s,g)+"</"+F+">"),d.join("");s[g.attributesKey]&&d.push(A(s[g.attributesKey],g,T));var K=L(s,g,!0)||s[g.attributesKey]&&s[g.attributesKey]["xml:space"]==="preserve";if(K||("fullTagEmptyElementFn"in g?K=g.fullTagEmptyElementFn(o,s):K=g.fullTagEmptyElement),K)d.push(">");else return d.push("/>"),d.join("")}return d.push(m(s,g,T+1,!1)),l=s,u=o,o&&d.push((S?y(g,T,!1):"")+"</"+F+">"),d.join("")}function m(s,o,g,T){var S,F,d,K=[];for(F in s)if(s.hasOwnProperty(F))for(d=a(s[F])?s[F]:[s[F]],S=0;S<d.length;++S){switch(F){case o.declarationKey:K.push(E(d[S],o,g));break;case o.instructionKey:K.push((o.indentInstruction?y(o,g,T):"")+_(d[S],o,g));break;case o.attributesKey:case o.parentKey:break;case o.textKey:K.push((o.indentText?y(o,g,T):"")+P(d[S],o));break;case o.cdataKey:K.push((o.indentCdata?y(o,g,T):"")+C(d[S],o));break;case o.doctypeKey:K.push(y(o,g,T)+N(d[S],o));break;case o.commentKey:K.push(y(o,g,T)+B(d[S],o));break;default:K.push(y(o,g,T)+c(d[S],F,o,g,L(d[S],o)))}T=T&&!K.length}return K.join("")}return Br=function(s,o){o=w(o);var g=[];return l=s,u="_root_",o.compact?g.push(m(s,o,0,!0)):(s[o.declarationKey]&&g.push(E(s[o.declarationKey],o,0)),s[o.elementsKey]&&s[o.elementsKey].length&&g.push(G(s[o.elementsKey],o,0,!g.length))),g.join("")},Br}var Nr,_i;function co(){if(_i)return Nr;_i=1;var r=Wi();return Nr=function(a,l){a instanceof te.Buffer&&(a=a.toString());var u=null;if(typeof a=="string")try{u=JSON.parse(a)}catch{throw new Error("The JSON structure is invalid")}else u=a;return r(u,l)},Nr}var Pr,Ai;function ho(){if(Ai)return Pr;Ai=1;var r=$i(),a=lo(),l=Wi(),u=co();return Pr={xml2js:r,xml2json:a,js2xml:l,json2xml:u},Pr}var po=ho();const yo=me.getDefaultExportFromCjs(po);/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function go(r){return r instanceof Uint8Array||ArrayBuffer.isView(r)&&r.constructor.name==="Uint8Array"}function ke(r){if(!Number.isSafeInteger(r)||r<0)throw new Error("positive integer expected, got "+r)}function We(r,...a){if(!go(r))throw new Error("Uint8Array expected");if(a.length>0&&!a.includes(r.length))throw new Error("Uint8Array expected of length "+a+", got length="+r.length)}function Vi(r){if(typeof r!="function"||typeof r.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");ke(r.outputLen),ke(r.blockLen)}function tt(r,a=!0){if(r.destroyed)throw new Error("Hash instance has been destroyed");if(a&&r.finished)throw new Error("Hash#digest() has already been called")}function bo(r,a){We(r);const l=a.outputLen;if(r.length<l)throw new Error("digestInto() expects output buffer of length at least "+l)}function Ge(...r){for(let a=0;a<r.length;a++)r[a].fill(0)}function et(r){return new DataView(r.buffer,r.byteOffset,r.byteLength)}function Yi(r){if(typeof r!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(r))}function Kr(r){return typeof r=="string"&&(r=Yi(r)),We(r),r}function Ti(r){return typeof r=="string"&&(r=Yi(r)),We(r),r}function mo(r,a){if(a!==void 0&&{}.toString.call(a)!=="[object Object]")throw new Error("options should be object or undefined");return Object.assign(r,a)}class Xi{}function Eo(r){const a=u=>r().update(Kr(u)).digest(),l=r();return a.outputLen=l.outputLen,a.blockLen=l.blockLen,a.create=()=>r(),a}class zi extends Xi{constructor(a,l){super(),this.finished=!1,this.destroyed=!1,Vi(a);const u=Kr(l);if(this.iHash=a.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const w=this.blockLen,y=new Uint8Array(w);y.set(u.length>w?a.create().update(u).digest():u);for(let A=0;A<y.length;A++)y[A]^=54;this.iHash.update(y),this.oHash=a.create();for(let A=0;A<y.length;A++)y[A]^=106;this.oHash.update(y),Ge(y)}update(a){return tt(this),this.iHash.update(a),this}digestInto(a){tt(this),We(a,this.outputLen),this.finished=!0,this.iHash.digestInto(a),this.oHash.update(a),this.oHash.digestInto(a),this.destroy()}digest(){const a=new Uint8Array(this.oHash.outputLen);return this.digestInto(a),a}_cloneInto(a){a||(a=Object.create(Object.getPrototypeOf(this),{}));const{oHash:l,iHash:u,finished:w,destroyed:y,blockLen:A,outputLen:E}=this;return a=a,a.finished=w,a.destroyed=y,a.blockLen=A,a.outputLen=E,a.oHash=l._cloneInto(a.oHash),a.iHash=u._cloneInto(a.iHash),a}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const Ji=(r,a,l)=>new zi(r,a).update(l).digest();Ji.create=(r,a)=>new zi(r,a);function vo(r,a,l,u){Vi(r);const w=mo({dkLen:32,asyncTick:10},u),{c:y,dkLen:A,asyncTick:E}=w;if(ke(y),ke(A),ke(E),y<1)throw new Error("iterations (c) should be >= 1");const _=Ti(a),B=Ti(l),C=new Uint8Array(A),N=Ji.create(r,_),P=N._cloneInto().update(B);return{c:y,dkLen:A,asyncTick:E,DK:C,PRF:N,PRFSalt:P}}function wo(r,a,l,u,w){return r.destroy(),a.destroy(),u&&u.destroy(),Ge(w),l}function _o(r,a,l,u){const{c:w,dkLen:y,DK:A,PRF:E,PRFSalt:_}=vo(r,a,l,u);let B;const C=new Uint8Array(4),N=et(C),P=new Uint8Array(E.outputLen);for(let V=1,q=0;q<y;V++,q+=E.outputLen){const G=A.subarray(q,q+E.outputLen);N.setInt32(0,V,!1),(B=_._cloneInto(B)).update(C).digestInto(P),G.set(P.subarray(0,G.length));for(let L=1;L<w;L++){E._cloneInto(B).update(P).digestInto(P);for(let c=0;c<G.length;c++)G[c]^=P[c]}}return wo(E,_,A,B,P)}function Ao(r,a,l,u){if(typeof r.setBigUint64=="function")return r.setBigUint64(a,l,u);const w=BigInt(32),y=BigInt(4294967295),A=Number(l>>w&y),E=Number(l&y),_=u?4:0,B=u?0:4;r.setUint32(a+_,A,u),r.setUint32(a+B,E,u)}class To extends Xi{constructor(a,l,u,w){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=a,this.outputLen=l,this.padOffset=u,this.isLE=w,this.buffer=new Uint8Array(a),this.view=et(this.buffer)}update(a){tt(this),a=Kr(a),We(a);const{view:l,buffer:u,blockLen:w}=this,y=a.length;for(let A=0;A<y;){const E=Math.min(w-this.pos,y-A);if(E===w){const _=et(a);for(;w<=y-A;A+=w)this.process(_,A);continue}u.set(a.subarray(A,A+E),this.pos),this.pos+=E,A+=E,this.pos===w&&(this.process(l,0),this.pos=0)}return this.length+=a.length,this.roundClean(),this}digestInto(a){tt(this),bo(a,this),this.finished=!0;const{buffer:l,view:u,blockLen:w,isLE:y}=this;let{pos:A}=this;l[A++]=128,Ge(this.buffer.subarray(A)),this.padOffset>w-A&&(this.process(u,0),A=0);for(let N=A;N<w;N++)l[N]=0;Ao(u,w-8,BigInt(this.length*8),y),this.process(u,0);const E=et(a),_=this.outputLen;if(_%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const B=_/4,C=this.get();if(B>C.length)throw new Error("_sha2: outputLen bigger than state");for(let N=0;N<B;N++)E.setUint32(4*N,C[N],y)}digest(){const{buffer:a,outputLen:l}=this;this.digestInto(a);const u=a.slice(0,l);return this.destroy(),u}_cloneInto(a){a||(a=new this.constructor),a.set(...this.get());const{blockLen:l,buffer:u,length:w,finished:y,destroyed:A,pos:E}=this;return a.destroyed=A,a.finished=y,a.length=w,a.pos=E,w%l&&a.buffer.set(u),a}clone(){return this._cloneInto()}}const Ee=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),Je=BigInt(2**32-1),Si=BigInt(32);function So(r,a=!1){return a?{h:Number(r&Je),l:Number(r>>Si&Je)}:{h:Number(r>>Si&Je)|0,l:Number(r&Je)|0}}function Ro(r,a=!1){const l=r.length;let u=new Uint32Array(l),w=new Uint32Array(l);for(let y=0;y<l;y++){const{h:A,l:E}=So(r[y],a);[u[y],w[y]]=[A,E]}return[u,w]}const Ri=(r,a,l)=>r>>>l,xi=(r,a,l)=>r<<32-l|a>>>l,De=(r,a,l)=>r>>>l|a<<32-l,Le=(r,a,l)=>r<<32-l|a>>>l,Qe=(r,a,l)=>r<<64-l|a>>>l-32,Ze=(r,a,l)=>r>>>l-32|a<<64-l;function Se(r,a,l,u){const w=(a>>>0)+(u>>>0);return{h:r+l+(w/2**32|0)|0,l:w|0}}const xo=(r,a,l)=>(r>>>0)+(a>>>0)+(l>>>0),Io=(r,a,l,u)=>a+l+u+(r/2**32|0)|0,Fo=(r,a,l,u)=>(r>>>0)+(a>>>0)+(l>>>0)+(u>>>0),Oo=(r,a,l,u,w)=>a+l+u+w+(r/2**32|0)|0,Bo=(r,a,l,u,w)=>(r>>>0)+(a>>>0)+(l>>>0)+(u>>>0)+(w>>>0),No=(r,a,l,u,w,y)=>a+l+u+w+y+(r/2**32|0)|0,Qi=Ro(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(r=>BigInt(r))),Po=Qi[0],Co=Qi[1],Fe=new Uint32Array(80),Oe=new Uint32Array(80);class Do extends To{constructor(a=64){super(128,a,16,!1),this.Ah=Ee[0]|0,this.Al=Ee[1]|0,this.Bh=Ee[2]|0,this.Bl=Ee[3]|0,this.Ch=Ee[4]|0,this.Cl=Ee[5]|0,this.Dh=Ee[6]|0,this.Dl=Ee[7]|0,this.Eh=Ee[8]|0,this.El=Ee[9]|0,this.Fh=Ee[10]|0,this.Fl=Ee[11]|0,this.Gh=Ee[12]|0,this.Gl=Ee[13]|0,this.Hh=Ee[14]|0,this.Hl=Ee[15]|0}get(){const{Ah:a,Al:l,Bh:u,Bl:w,Ch:y,Cl:A,Dh:E,Dl:_,Eh:B,El:C,Fh:N,Fl:P,Gh:V,Gl:q,Hh:G,Hl:L}=this;return[a,l,u,w,y,A,E,_,B,C,N,P,V,q,G,L]}set(a,l,u,w,y,A,E,_,B,C,N,P,V,q,G,L){this.Ah=a|0,this.Al=l|0,this.Bh=u|0,this.Bl=w|0,this.Ch=y|0,this.Cl=A|0,this.Dh=E|0,this.Dl=_|0,this.Eh=B|0,this.El=C|0,this.Fh=N|0,this.Fl=P|0,this.Gh=V|0,this.Gl=q|0,this.Hh=G|0,this.Hl=L|0}process(a,l){for(let s=0;s<16;s++,l+=4)Fe[s]=a.getUint32(l),Oe[s]=a.getUint32(l+=4);for(let s=16;s<80;s++){const o=Fe[s-15]|0,g=Oe[s-15]|0,T=De(o,g,1)^De(o,g,8)^Ri(o,g,7),S=Le(o,g,1)^Le(o,g,8)^xi(o,g,7),F=Fe[s-2]|0,d=Oe[s-2]|0,K=De(F,d,19)^Qe(F,d,61)^Ri(F,d,6),X=Le(F,d,19)^Ze(F,d,61)^xi(F,d,6),x=Fo(S,X,Oe[s-7],Oe[s-16]),ee=Oo(x,T,K,Fe[s-7],Fe[s-16]);Fe[s]=ee|0,Oe[s]=x|0}let{Ah:u,Al:w,Bh:y,Bl:A,Ch:E,Cl:_,Dh:B,Dl:C,Eh:N,El:P,Fh:V,Fl:q,Gh:G,Gl:L,Hh:c,Hl:m}=this;for(let s=0;s<80;s++){const o=De(N,P,14)^De(N,P,18)^Qe(N,P,41),g=Le(N,P,14)^Le(N,P,18)^Ze(N,P,41),T=N&V^~N&G,S=P&q^~P&L,F=Bo(m,g,S,Co[s],Oe[s]),d=No(F,c,o,T,Po[s],Fe[s]),K=F|0,X=De(u,w,28)^Qe(u,w,34)^Qe(u,w,39),x=Le(u,w,28)^Ze(u,w,34)^Ze(u,w,39),ee=u&y^u&E^y&E,re=w&A^w&_^A&_;c=G|0,m=L|0,G=V|0,L=q|0,V=N|0,q=P|0,{h:N,l:P}=Se(B|0,C|0,d|0,K|0),B=E|0,C=_|0,E=y|0,_=A|0,y=u|0,A=w|0;const ie=xo(K,x,re);u=Io(ie,d,X,ee),w=ie|0}({h:u,l:w}=Se(this.Ah|0,this.Al|0,u|0,w|0)),{h:y,l:A}=Se(this.Bh|0,this.Bl|0,y|0,A|0),{h:E,l:_}=Se(this.Ch|0,this.Cl|0,E|0,_|0),{h:B,l:C}=Se(this.Dh|0,this.Dl|0,B|0,C|0),{h:N,l:P}=Se(this.Eh|0,this.El|0,N|0,P|0),{h:V,l:q}=Se(this.Fh|0,this.Fl|0,V|0,q|0),{h:G,l:L}=Se(this.Gh|0,this.Gl|0,G|0,L|0),{h:c,l:m}=Se(this.Hh|0,this.Hl|0,c|0,m|0),this.set(u,w,y,A,E,_,B,C,N,P,V,q,G,L,c,m)}roundClean(){Ge(Fe,Oe)}destroy(){Ge(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const Lo=Eo(()=>new Do),Mo=Lo,Uo=(r,a,l,u)=>te.Buffer.from(_o(Mo,r,a,{c:l,dkLen:u}));class jo{constructor({axiosClient:a,baseURI:l}){Ie(this,"axiosClient");Ie(this,"baseURI");Ie(this,"signingKey");Ie(this,"ALGORITHM","sha512");Ie(this,"TTL",1200);Ie(this,"HASH_LENGTH",32);Ie(this,"ITERATION_COUNT",1e4);this.axiosClient=a,this.baseURI=l}async signUrl(a,l){const u=new URL(a);u.searchParams.set("OC-Credential",l),u.searchParams.set("OC-Date",new Date().toISOString()),u.searchParams.set("OC-Expires",this.TTL.toString()),u.searchParams.set("OC-Verb","GET");const w=await this.createHashedKey(u.toString());return u.searchParams.set("OC-Algo",`PBKDF2/${this.ITERATION_COUNT}-SHA512`),u.searchParams.set("OC-Signature",w),u.toString()}async getSignKey(){if(this.signingKey)return this.signingKey;const a=await this.axiosClient.get(me.urlJoin(this.baseURI,"ocs/v1.php/cloud/user/signing-key"),{headers:{"Content-Type":"application/x-www-form-urlencoded"}}),l=yo.xml2js(a.data,{compact:!0});return this.signingKey=l.ocs.data["signing-key"]._text,this.signingKey}async createHashedKey(a){const l=await this.getSignKey();return Uo(a,l,this.ITERATION_COUNT,this.HASH_LENGTH,this.ALGORITHM).toString("hex")}}const qo=(r,a)=>{const l=new URL(r);l.pathname=[...l.pathname.split("/"),"ocs","v1.php"].filter(Boolean).join("/");const u=l.href,w=Ii(u,a),y=new jo({baseURI:r,axiosClient:a});return{getCapabilities:()=>w.getCapabilities(),signUrl:(A,E)=>y.signUrl(A,E)}};exports.GetCapabilitiesFactory=Ii;exports.ocs=qo;
|