UNPKG

@cyntler/react-doc-viewer

Version:
10 lines 87.2 kB
"use strict";const R=require("./index-DKfiMfPV.cjs"),rn=require("./url-Dx0e8nNl.cjs");function nn(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const c=Object.getOwnPropertyDescriptor(n,i);c&&Object.defineProperty(e,i,c.get?c:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var qe={},gr={exports:{}},Rt={};(function(e){e.fetch=i(R.commonjsGlobal.fetch)&&i(R.commonjsGlobal.ReadableStream),e.writableStream=i(R.commonjsGlobal.WritableStream),e.abortController=i(R.commonjsGlobal.AbortController);var t;function r(){if(t!==void 0)return t;if(R.commonjsGlobal.XMLHttpRequest){t=new R.commonjsGlobal.XMLHttpRequest;try{t.open("GET",R.commonjsGlobal.XDomainRequest?"/":"https://example.com")}catch{t=null}}else t=null;return t}function n(c){var l=r();if(!l)return!1;try{return l.responseType=c,l.responseType===c}catch{}return!1}e.arraybuffer=e.fetch||n("arraybuffer"),e.msstream=!e.fetch&&n("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&n("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||(r()?i(r().overrideMimeType):!1);function i(c){return typeof c=="function"}t=null})(Rt);var gt={exports:{}};typeof Object.create=="function"?gt.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:gt.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}};var ue=gt.exports,We={},vt={exports:{}},Tt={exports:{}},_e=typeof Reflect=="object"?Reflect:null,Ut=_e&&typeof _e.apply=="function"?_e.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},Le;_e&&typeof _e.ownKeys=="function"?Le=_e.ownKeys:Object.getOwnPropertySymbols?Le=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Le=function(t){return Object.getOwnPropertyNames(t)};function on(e){console&&console.warn&&console.warn(e)}var vr=Number.isNaN||function(t){return t!==t};function x(){x.init.call(this)}Tt.exports=x;Tt.exports.once=un;x.EventEmitter=x;x.prototype._events=void 0;x.prototype._eventsCount=0;x.prototype._maxListeners=void 0;var kt=10;function Ge(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(x,"defaultMaxListeners",{enumerable:!0,get:function(){return kt},set:function(e){if(typeof e!="number"||e<0||vr(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");kt=e}});x.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};x.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||vr(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function br(e){return e._maxListeners===void 0?x.defaultMaxListeners:e._maxListeners}x.prototype.getMaxListeners=function(){return br(this)};x.prototype.emit=function(t){for(var r=[],n=1;n<arguments.length;n++)r.push(arguments[n]);var i=t==="error",c=this._events;if(c!==void 0)i=i&&c.error===void 0;else if(!i)return!1;if(i){var l;if(r.length>0&&(l=r[0]),l instanceof Error)throw l;var h=new Error("Unhandled error."+(l?" ("+l.message+")":""));throw h.context=l,h}var p=c[t];if(p===void 0)return!1;if(typeof p=="function")Ut(p,this,r);else for(var A=p.length,C=Er(p,A),n=0;n<A;++n)Ut(C[n],this,r);return!0};function mr(e,t,r,n){var i,c,l;if(Ge(r),c=e._events,c===void 0?(c=e._events=Object.create(null),e._eventsCount=0):(c.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),c=e._events),l=c[t]),l===void 0)l=c[t]=r,++e._eventsCount;else if(typeof l=="function"?l=c[t]=n?[r,l]:[l,r]:n?l.unshift(r):l.push(r),i=br(e),i>0&&l.length>i&&!l.warned){l.warned=!0;var h=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");h.name="MaxListenersExceededWarning",h.emitter=e,h.type=t,h.count=l.length,on(h)}return e}x.prototype.addListener=function(t,r){return mr(this,t,r,!1)};x.prototype.on=x.prototype.addListener;x.prototype.prependListener=function(t,r){return mr(this,t,r,!0)};function an(){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 _r(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=an.bind(n);return i.listener=r,n.wrapFn=i,i}x.prototype.once=function(t,r){return Ge(r),this.on(t,_r(this,t,r)),this};x.prototype.prependOnceListener=function(t,r){return Ge(r),this.prependListener(t,_r(this,t,r)),this};x.prototype.removeListener=function(t,r){var n,i,c,l,h;if(Ge(r),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(c=-1,l=n.length-1;l>=0;l--)if(n[l]===r||n[l].listener===r){h=n[l].listener,c=l;break}if(c<0)return this;c===0?n.shift():fn(n,c),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,h||r)}return this};x.prototype.off=x.prototype.removeListener;x.prototype.removeAllListeners=function(t){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var c=Object.keys(n),l;for(i=0;i<c.length;++i)l=c[i],l!=="removeListener"&&this.removeAllListeners(l);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=n[t],typeof r=="function")this.removeListener(t,r);else if(r!==void 0)for(i=r.length-1;i>=0;i--)this.removeListener(t,r[i]);return this};function wr(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?sn(i):Er(i,i.length)}x.prototype.listeners=function(t){return wr(this,t,!0)};x.prototype.rawListeners=function(t){return wr(this,t,!1)};x.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):Sr.call(e,t)};x.prototype.listenerCount=Sr;function Sr(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}x.prototype.eventNames=function(){return this._eventsCount>0?Le(this._events):[]};function Er(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function fn(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function sn(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function un(e,t){return new Promise(function(r,n){function i(l){e.removeListener(t,c),n(l)}function c(){typeof e.removeListener=="function"&&e.removeListener("error",i),r([].slice.call(arguments))}Ar(e,t,c,{once:!0}),t!=="error"&&ln(e,i,{once:!0})})}function ln(e,t,r){typeof e.on=="function"&&Ar(e,"error",t,r)}function Ar(e,t,r,n){if(typeof e.on=="function")n.once?e.once(t,r):e.on(t,r);else if(typeof e.addEventListener=="function")e.addEventListener(t,function i(c){n.once&&e.removeEventListener(t,i),r(c)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}var Rr=Tt.exports,Tr=Rr.EventEmitter;const xe=R.getAugmentedNamespace(R.dist);var Ot={},Or={},Pr=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var c=Object.getOwnPropertySymbols(t);if(c.length!==1||c[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(t,r);if(l.value!==i||l.enumerable!==!0)return!1}return!0},cn=Pr,Pt=function(){return cn()&&!!Symbol.toStringTag},dn=Error,pn=EvalError,hn=RangeError,yn=ReferenceError,jr=SyntaxError,He=TypeError,gn=URIError,qt=typeof Symbol<"u"&&Symbol,vn=Pr,bn=function(){return typeof qt!="function"||typeof Symbol!="function"||typeof qt("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:vn()},Ze={__proto__:null,foo:{}},mn=Object,_n=function(){return{__proto__:Ze}.foo===Ze.foo&&!(Ze instanceof mn)},wn="Function.prototype.bind called on incompatible ",Sn=Object.prototype.toString,En=Math.max,An="[object Function]",Wt=function(t,r){for(var n=[],i=0;i<t.length;i+=1)n[i]=t[i];for(var c=0;c<r.length;c+=1)n[c+t.length]=r[c];return n},Rn=function(t,r){for(var n=[],i=r,c=0;i<t.length;i+=1,c+=1)n[c]=t[i];return n},Tn=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r},On=function(t){var r=this;if(typeof r!="function"||Sn.apply(r)!==An)throw new TypeError(wn+r);for(var n=Rn(arguments,1),i,c=function(){if(this instanceof i){var C=r.apply(this,Wt(n,arguments));return Object(C)===C?C:this}return r.apply(t,Wt(n,arguments))},l=En(0,r.length-n.length),h=[],p=0;p<l;p++)h[p]="$"+p;if(i=Function("binder","return function ("+Tn(h,",")+"){ return binder.apply(this,arguments); }")(c),r.prototype){var A=function(){};A.prototype=r.prototype,i.prototype=new A,A.prototype=null}return i},Pn=On,jt=Function.prototype.bind||Pn,jn=Function.prototype.call,Mn=Object.prototype.hasOwnProperty,Ln=jt,Cn=Ln.call(jn,Mn),k,Nn=dn,In=pn,Dn=hn,Bn=yn,Se=jr,we=He,Fn=gn,Mr=Function,Qe=function(e){try{return Mr('"use strict"; return ('+e+").constructor;")()}catch{}},ce=Object.getOwnPropertyDescriptor;if(ce)try{ce({},"")}catch{ce=null}var et=function(){throw new we},$n=ce?function(){try{return arguments.callee,et}catch{try{return ce(arguments,"callee").get}catch{return et}}}():et,ge=bn(),Un=_n(),V=Object.getPrototypeOf||(Un?function(e){return e.__proto__}:null),be={},kn=typeof Uint8Array>"u"||!V?k:V(Uint8Array),de={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?k:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?k:ArrayBuffer,"%ArrayIteratorPrototype%":ge&&V?V([][Symbol.iterator]()):k,"%AsyncFromSyncIteratorPrototype%":k,"%AsyncFunction%":be,"%AsyncGenerator%":be,"%AsyncGeneratorFunction%":be,"%AsyncIteratorPrototype%":be,"%Atomics%":typeof Atomics>"u"?k:Atomics,"%BigInt%":typeof BigInt>"u"?k:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?k:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?k:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?k:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Nn,"%eval%":eval,"%EvalError%":In,"%Float32Array%":typeof Float32Array>"u"?k:Float32Array,"%Float64Array%":typeof Float64Array>"u"?k:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?k:FinalizationRegistry,"%Function%":Mr,"%GeneratorFunction%":be,"%Int8Array%":typeof Int8Array>"u"?k:Int8Array,"%Int16Array%":typeof Int16Array>"u"?k:Int16Array,"%Int32Array%":typeof Int32Array>"u"?k:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ge&&V?V(V([][Symbol.iterator]())):k,"%JSON%":typeof JSON=="object"?JSON:k,"%Map%":typeof Map>"u"?k:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ge||!V?k:V(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?k:Promise,"%Proxy%":typeof Proxy>"u"?k:Proxy,"%RangeError%":Dn,"%ReferenceError%":Bn,"%Reflect%":typeof Reflect>"u"?k:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?k:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ge||!V?k:V(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?k:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ge&&V?V(""[Symbol.iterator]()):k,"%Symbol%":ge?Symbol:k,"%SyntaxError%":Se,"%ThrowTypeError%":$n,"%TypedArray%":kn,"%TypeError%":we,"%Uint8Array%":typeof Uint8Array>"u"?k:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?k:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?k:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?k:Uint32Array,"%URIError%":Fn,"%WeakMap%":typeof WeakMap>"u"?k:WeakMap,"%WeakRef%":typeof WeakRef>"u"?k:WeakRef,"%WeakSet%":typeof WeakSet>"u"?k:WeakSet};if(V)try{null.error}catch(e){var qn=V(V(e));de["%Error.prototype%"]=qn}var Wn=function e(t){var r;if(t==="%AsyncFunction%")r=Qe("async function () {}");else if(t==="%GeneratorFunction%")r=Qe("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Qe("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&V&&(r=V(i.prototype))}return de[t]=r,r},Gt={__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"]},Te=jt,Fe=Cn,Gn=Te.call(Function.call,Array.prototype.concat),xn=Te.call(Function.apply,Array.prototype.splice),xt=Te.call(Function.call,String.prototype.replace),$e=Te.call(Function.call,String.prototype.slice),Hn=Te.call(Function.call,RegExp.prototype.exec),Vn=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,zn=/\\(\\)?/g,Kn=function(t){var r=$e(t,0,1),n=$e(t,-1);if(r==="%"&&n!=="%")throw new Se("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Se("invalid intrinsic syntax, expected opening `%`");var i=[];return xt(t,Vn,function(c,l,h,p){i[i.length]=h?xt(p,zn,"$1"):l||c}),i},Yn=function(t,r){var n=t,i;if(Fe(Gt,n)&&(i=Gt[n],n="%"+i[0]+"%"),Fe(de,n)){var c=de[n];if(c===be&&(c=Wn(n)),typeof c>"u"&&!r)throw new we("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:c}}throw new Se("intrinsic "+t+" does not exist!")},Oe=function(t,r){if(typeof t!="string"||t.length===0)throw new we("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new we('"allowMissing" argument must be a boolean');if(Hn(/^%?[^%]*%?$/,t)===null)throw new Se("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Kn(t),i=n.length>0?n[0]:"",c=Yn("%"+i+"%",r),l=c.name,h=c.value,p=!1,A=c.alias;A&&(i=A[0],xn(n,Gn([0,1],A)));for(var C=1,E=!0;C<n.length;C+=1){var I=n[C],q=$e(I,0,1),P=$e(I,-1);if((q==='"'||q==="'"||q==="`"||P==='"'||P==="'"||P==="`")&&q!==P)throw new Se("property names with quotes must have matching quotes");if((I==="constructor"||!E)&&(p=!0),i+="."+I,l="%"+i+"%",Fe(de,l))h=de[l];else if(h!=null){if(!(I in h)){if(!r)throw new we("base intrinsic for "+t+" exists, but the property is not available.");return}if(ce&&C+1>=n.length){var N=ce(h,I);E=!!N,E&&"get"in N&&!("originalValue"in N.get)?h=N.get:h=h[I]}else E=Fe(h,I),h=h[I];E&&!p&&(de[l]=h)}}return h},Lr={exports:{}},tt,Ht;function Mt(){if(Ht)return tt;Ht=1;var e=Oe,t=e("%Object.defineProperty%",!0)||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return tt=t,tt}var Jn=Oe,Ce=Jn("%Object.getOwnPropertyDescriptor%",!0);if(Ce)try{Ce([],"length")}catch{Ce=null}var Lt=Ce,Vt=Mt(),Xn=jr,ve=He,zt=Lt,Zn=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new ve("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new ve("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new ve("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new ve("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new ve("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new ve("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,h=arguments.length>6?arguments[6]:!1,p=!!zt&&zt(t,r);if(Vt)Vt(t,r,{configurable:l===null&&p?p.configurable:!l,enumerable:i===null&&p?p.enumerable:!i,value:n,writable:c===null&&p?p.writable:!c});else if(h||!i&&!c&&!l)t[r]=n;else throw new Xn("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},bt=Mt(),Cr=function(){return!!bt};Cr.hasArrayLengthDefineBug=function(){if(!bt)return null;try{return bt([],"length",{value:1}).length!==1}catch{return!0}};var Qn=Cr,ei=Oe,Kt=Zn,ti=Qn(),Yt=Lt,Jt=He,ri=ei("%Math.floor%"),ni=function(t,r){if(typeof t!="function")throw new Jt("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||ri(r)!==r)throw new Jt("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,c=!0;if("length"in t&&Yt){var l=Yt(t,"length");l&&!l.configurable&&(i=!1),l&&!l.writable&&(c=!1)}return(i||c||!n)&&(ti?Kt(t,"length",r,!0,!0):Kt(t,"length",r)),t};(function(e){var t=jt,r=Oe,n=ni,i=He,c=r("%Function.prototype.apply%"),l=r("%Function.prototype.call%"),h=r("%Reflect.apply%",!0)||t.call(l,c),p=Mt(),A=r("%Math.max%");e.exports=function(I){if(typeof I!="function")throw new i("a function is required");var q=h(t,l,arguments);return n(q,1+A(0,I.length-(arguments.length-1)),!0)};var C=function(){return h(t,c,arguments)};p?p(e.exports,"apply",{value:C}):e.exports.apply=C})(Lr);var Nr=Lr.exports,Ir=Oe,Dr=Nr,ii=Dr(Ir("String.prototype.indexOf")),Br=function(t,r){var n=Ir(t,!!r);return typeof n=="function"&&ii(t,".prototype.")>-1?Dr(n):n},oi=Pt(),ai=Br,mt=ai("Object.prototype.toString"),Ve=function(t){return oi&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:mt(t)==="[object Arguments]"},Fr=function(t){return Ve(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&mt(t)!=="[object Array]"&&mt(t.callee)==="[object Function]"},fi=function(){return Ve(arguments)}();Ve.isLegacyArguments=Fr;var si=fi?Ve:Fr,ui=Object.prototype.toString,li=Function.prototype.toString,ci=/^\s*(?:function)?\*/,$r=Pt(),rt=Object.getPrototypeOf,di=function(){if(!$r)return!1;try{return Function("return function*() {}")()}catch{}},nt,pi=function(t){if(typeof t!="function")return!1;if(ci.test(li.call(t)))return!0;if(!$r){var r=ui.call(t);return r==="[object GeneratorFunction]"}if(!rt)return!1;if(typeof nt>"u"){var n=di();nt=n?rt(n):!1}return rt(t)===nt},Ur=Function.prototype.toString,me=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,_t,Ne;if(typeof me=="function"&&typeof Object.defineProperty=="function")try{_t=Object.defineProperty({},"length",{get:function(){throw Ne}}),Ne={},me(function(){throw 42},null,_t)}catch(e){e!==Ne&&(me=null)}else me=null;var hi=/^\s*class\b/,wt=function(t){try{var r=Ur.call(t);return hi.test(r)}catch{return!1}},it=function(t){try{return wt(t)?!1:(Ur.call(t),!0)}catch{return!1}},Ie=Object.prototype.toString,yi="[object Object]",gi="[object Function]",vi="[object GeneratorFunction]",bi="[object HTMLAllCollection]",mi="[object HTML document.all class]",_i="[object HTMLCollection]",wi=typeof Symbol=="function"&&!!Symbol.toStringTag,Si=!(0 in[,]),St=function(){return!1};if(typeof document=="object"){var Ei=document.all;Ie.call(Ei)===Ie.call(document.all)&&(St=function(t){if((Si||!t)&&(typeof t>"u"||typeof t=="object"))try{var r=Ie.call(t);return(r===bi||r===mi||r===_i||r===yi)&&t("")==null}catch{}return!1})}var Ai=me?function(t){if(St(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{me(t,null,_t)}catch(r){if(r!==Ne)return!1}return!wt(t)&&it(t)}:function(t){if(St(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(wi)return it(t);if(wt(t))return!1;var r=Ie.call(t);return r!==gi&&r!==vi&&!/^\[object HTML/.test(r)?!1:it(t)},Ri=Ai,Ti=Object.prototype.toString,kr=Object.prototype.hasOwnProperty,Oi=function(t,r,n){for(var i=0,c=t.length;i<c;i++)kr.call(t,i)&&(n==null?r(t[i],i,t):r.call(n,t[i],i,t))},Pi=function(t,r,n){for(var i=0,c=t.length;i<c;i++)n==null?r(t.charAt(i),i,t):r.call(n,t.charAt(i),i,t)},ji=function(t,r,n){for(var i in t)kr.call(t,i)&&(n==null?r(t[i],i,t):r.call(n,t[i],i,t))},Mi=function(t,r,n){if(!Ri(r))throw new TypeError("iterator must be a function");var i;arguments.length>=3&&(i=n),Ti.call(t)==="[object Array]"?Oi(t,r,i):typeof t=="string"?Pi(t,r,i):ji(t,r,i)},Li=Mi,Ci=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],ot=Ci,Ni=typeof globalThis>"u"?R.commonjsGlobal:globalThis,Ii=function(){for(var t=[],r=0;r<ot.length;r++)typeof Ni[ot[r]]=="function"&&(t[t.length]=ot[r]);return t},Ue=Li,Di=Ii,Xt=Nr,Ct=Br,De=Lt,Bi=Ct("Object.prototype.toString"),qr=Pt(),Zt=typeof globalThis>"u"?R.commonjsGlobal:globalThis,Et=Di(),Nt=Ct("String.prototype.slice"),at=Object.getPrototypeOf,Fi=Ct("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n<t.length;n+=1)if(t[n]===r)return n;return-1},ke={__proto__:null};qr&&De&&at?Ue(Et,function(e){var t=new Zt[e];if(Symbol.toStringTag in t){var r=at(t),n=De(r,Symbol.toStringTag);if(!n){var i=at(r);n=De(i,Symbol.toStringTag)}ke["$"+e]=Xt(n.get)}}):Ue(Et,function(e){var t=new Zt[e],r=t.slice||t.set;r&&(ke["$"+e]=Xt(r))});var $i=function(t){var r=!1;return Ue(ke,function(n,i){if(!r)try{"$"+n(t)===i&&(r=Nt(i,1))}catch{}}),r},Ui=function(t){var r=!1;return Ue(ke,function(n,i){if(!r)try{n(t),r=Nt(i,1)}catch{}}),r},Wr=function(t){if(!t||typeof t!="object")return!1;if(!qr){var r=Nt(Bi(t),8,-1);return Fi(Et,r)>-1?r:r!=="Object"?!1:Ui(t)}return De?$i(t):null},ki=Wr,qi=function(t){return!!ki(t)};(function(e){var t=si,r=pi,n=Wr,i=qi;function c(v){return v.call.bind(v)}var l=typeof BigInt<"u",h=typeof Symbol<"u",p=c(Object.prototype.toString),A=c(Number.prototype.valueOf),C=c(String.prototype.valueOf),E=c(Boolean.prototype.valueOf);if(l)var I=c(BigInt.prototype.valueOf);if(h)var q=c(Symbol.prototype.valueOf);function P(v,Pe){if(typeof v!="object")return!1;try{return Pe(v),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=i;function N(v){return typeof Promise<"u"&&v instanceof Promise||v!==null&&typeof v=="object"&&typeof v.then=="function"&&typeof v.catch=="function"}e.isPromise=N;function M(v){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(v):i(v)||g(v)}e.isArrayBufferView=M;function u(v){return n(v)==="Uint8Array"}e.isUint8Array=u;function m(v){return n(v)==="Uint8ClampedArray"}e.isUint8ClampedArray=m;function S(v){return n(v)==="Uint16Array"}e.isUint16Array=S;function T(v){return n(v)==="Uint32Array"}e.isUint32Array=T;function j(v){return n(v)==="Int8Array"}e.isInt8Array=j;function F(v){return n(v)==="Int16Array"}e.isInt16Array=F;function W(v){return n(v)==="Int32Array"}e.isInt32Array=W;function $(v){return n(v)==="Float32Array"}e.isFloat32Array=$;function D(v){return n(v)==="Float64Array"}e.isFloat64Array=D;function z(v){return n(v)==="BigInt64Array"}e.isBigInt64Array=z;function J(v){return n(v)==="BigUint64Array"}e.isBigUint64Array=J;function X(v){return p(v)==="[object Map]"}X.working=typeof Map<"u"&&X(new Map);function ne(v){return typeof Map>"u"?!1:X.working?X(v):v instanceof Map}e.isMap=ne;function Z(v){return p(v)==="[object Set]"}Z.working=typeof Set<"u"&&Z(new Set);function ie(v){return typeof Set>"u"?!1:Z.working?Z(v):v instanceof Set}e.isSet=ie;function oe(v){return p(v)==="[object WeakMap]"}oe.working=typeof WeakMap<"u"&&oe(new WeakMap);function ee(v){return typeof WeakMap>"u"?!1:oe.working?oe(v):v instanceof WeakMap}e.isWeakMap=ee;function te(v){return p(v)==="[object WeakSet]"}te.working=typeof WeakSet<"u"&&te(new WeakSet);function K(v){return te(v)}e.isWeakSet=K;function re(v){return p(v)==="[object ArrayBuffer]"}re.working=typeof ArrayBuffer<"u"&&re(new ArrayBuffer);function fe(v){return typeof ArrayBuffer>"u"?!1:re.working?re(v):v instanceof ArrayBuffer}e.isArrayBuffer=fe;function d(v){return p(v)==="[object DataView]"}d.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&d(new DataView(new ArrayBuffer(1),0,1));function g(v){return typeof DataView>"u"?!1:d.working?d(v):v instanceof DataView}e.isDataView=g;var _=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function B(v){return p(v)==="[object SharedArrayBuffer]"}function s(v){return typeof _>"u"?!1:(typeof B.working>"u"&&(B.working=B(new _)),B.working?B(v):v instanceof _)}e.isSharedArrayBuffer=s;function f(v){return p(v)==="[object AsyncFunction]"}e.isAsyncFunction=f;function y(v){return p(v)==="[object Map Iterator]"}e.isMapIterator=y;function w(v){return p(v)==="[object Set Iterator]"}e.isSetIterator=w;function L(v){return p(v)==="[object Generator]"}e.isGeneratorObject=L;function o(v){return p(v)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=o;function a(v){return P(v,A)}e.isNumberObject=a;function b(v){return P(v,C)}e.isStringObject=b;function O(v){return P(v,E)}e.isBooleanObject=O;function H(v){return l&&P(v,I)}e.isBigIntObject=H;function U(v){return h&&P(v,q)}e.isSymbolObject=U;function G(v){return a(v)||b(v)||O(v)||H(v)||U(v)}e.isBoxedPrimitive=G;function se(v){return typeof Uint8Array<"u"&&(fe(v)||s(v))}e.isAnyArrayBuffer=se,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(v){Object.defineProperty(e,v,{enumerable:!1,value:function(){throw new Error(v+" is not supported in userland")}})})})(Or);var Wi=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"};(function(e){var t=Object.getOwnPropertyDescriptors||function(g){for(var _=Object.keys(g),B={},s=0;s<_.length;s++)B[_[s]]=Object.getOwnPropertyDescriptor(g,_[s]);return B},r=/%[sdj%]/g;e.format=function(d){if(!j(d)){for(var g=[],_=0;_<arguments.length;_++)g.push(l(arguments[_]));return g.join(" ")}for(var _=1,B=arguments,s=B.length,f=String(d).replace(r,function(w){if(w==="%%")return"%";if(_>=s)return w;switch(w){case"%s":return String(B[_++]);case"%d":return Number(B[_++]);case"%j":try{return JSON.stringify(B[_++])}catch{return"[Circular]"}default:return w}}),y=B[_];_<s;y=B[++_])m(y)||!D(y)?f+=" "+y:f+=" "+l(y);return f},e.deprecate=function(d,g){if(typeof R.process$1<"u"&&R.process$1.noDeprecation===!0)return d;if(typeof R.process$1>"u")return function(){return e.deprecate(d,g).apply(this,arguments)};var _=!1;function B(){if(!_){if(R.process$1.throwDeprecation)throw new Error(g);R.process$1.traceDeprecation?console.trace(g):console.error(g),_=!0}return d.apply(this,arguments)}return B};var n={},i=/^$/;if(R.process$1.env.NODE_DEBUG){var c=R.process$1.env.NODE_DEBUG;c=c.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),i=new RegExp("^"+c+"$","i")}e.debuglog=function(d){if(d=d.toUpperCase(),!n[d])if(i.test(d)){var g=R.process$1.pid;n[d]=function(){var _=e.format.apply(e,arguments);console.error("%s %d: %s",d,g,_)}}else n[d]=function(){};return n[d]};function l(d,g){var _={seen:[],stylize:p};return arguments.length>=3&&(_.depth=arguments[2]),arguments.length>=4&&(_.colors=arguments[3]),u(g)?_.showHidden=g:g&&e._extend(_,g),W(_.showHidden)&&(_.showHidden=!1),W(_.depth)&&(_.depth=2),W(_.colors)&&(_.colors=!1),W(_.customInspect)&&(_.customInspect=!0),_.colors&&(_.stylize=h),C(_,d,_.depth)}e.inspect=l,l.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]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function h(d,g){var _=l.styles[g];return _?"\x1B["+l.colors[_][0]+"m"+d+"\x1B["+l.colors[_][1]+"m":d}function p(d,g){return d}function A(d){var g={};return d.forEach(function(_,B){g[_]=!0}),g}function C(d,g,_){if(d.customInspect&&g&&X(g.inspect)&&g.inspect!==e.inspect&&!(g.constructor&&g.constructor.prototype===g)){var B=g.inspect(_,d);return j(B)||(B=C(d,B,_)),B}var s=E(d,g);if(s)return s;var f=Object.keys(g),y=A(f);if(d.showHidden&&(f=Object.getOwnPropertyNames(g)),J(g)&&(f.indexOf("message")>=0||f.indexOf("description")>=0))return I(g);if(f.length===0){if(X(g)){var w=g.name?": "+g.name:"";return d.stylize("[Function"+w+"]","special")}if($(g))return d.stylize(RegExp.prototype.toString.call(g),"regexp");if(z(g))return d.stylize(Date.prototype.toString.call(g),"date");if(J(g))return I(g)}var L="",o=!1,a=["{","}"];if(M(g)&&(o=!0,a=["[","]"]),X(g)){var b=g.name?": "+g.name:"";L=" [Function"+b+"]"}if($(g)&&(L=" "+RegExp.prototype.toString.call(g)),z(g)&&(L=" "+Date.prototype.toUTCString.call(g)),J(g)&&(L=" "+I(g)),f.length===0&&(!o||g.length==0))return a[0]+L+a[1];if(_<0)return $(g)?d.stylize(RegExp.prototype.toString.call(g),"regexp"):d.stylize("[Object]","special");d.seen.push(g);var O;return o?O=q(d,g,_,y,f):O=f.map(function(H){return P(d,g,_,y,H,o)}),d.seen.pop(),N(O,L,a)}function E(d,g){if(W(g))return d.stylize("undefined","undefined");if(j(g)){var _="'"+JSON.stringify(g).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return d.stylize(_,"string")}if(T(g))return d.stylize(""+g,"number");if(u(g))return d.stylize(""+g,"boolean");if(m(g))return d.stylize("null","null")}function I(d){return"["+Error.prototype.toString.call(d)+"]"}function q(d,g,_,B,s){for(var f=[],y=0,w=g.length;y<w;++y)te(g,String(y))?f.push(P(d,g,_,B,String(y),!0)):f.push("");return s.forEach(function(L){L.match(/^\d+$/)||f.push(P(d,g,_,B,L,!0))}),f}function P(d,g,_,B,s,f){var y,w,L;if(L=Object.getOwnPropertyDescriptor(g,s)||{value:g[s]},L.get?L.set?w=d.stylize("[Getter/Setter]","special"):w=d.stylize("[Getter]","special"):L.set&&(w=d.stylize("[Setter]","special")),te(B,s)||(y="["+s+"]"),w||(d.seen.indexOf(L.value)<0?(m(_)?w=C(d,L.value,null):w=C(d,L.value,_-1),w.indexOf(` `)>-1&&(f?w=w.split(` `).map(function(o){return" "+o}).join(` `).slice(2):w=` `+w.split(` `).map(function(o){return" "+o}).join(` `))):w=d.stylize("[Circular]","special")),W(y)){if(f&&s.match(/^\d+$/))return w;y=JSON.stringify(""+s),y.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(y=y.slice(1,-1),y=d.stylize(y,"name")):(y=y.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),y=d.stylize(y,"string"))}return y+": "+w}function N(d,g,_){var B=d.reduce(function(s,f){return f.indexOf(` `)>=0,s+f.replace(/\u001b\[\d\d?m/g,"").length+1},0);return B>60?_[0]+(g===""?"":g+` `)+" "+d.join(`, `)+" "+_[1]:_[0]+g+" "+d.join(", ")+" "+_[1]}e.types=Or;function M(d){return Array.isArray(d)}e.isArray=M;function u(d){return typeof d=="boolean"}e.isBoolean=u;function m(d){return d===null}e.isNull=m;function S(d){return d==null}e.isNullOrUndefined=S;function T(d){return typeof d=="number"}e.isNumber=T;function j(d){return typeof d=="string"}e.isString=j;function F(d){return typeof d=="symbol"}e.isSymbol=F;function W(d){return d===void 0}e.isUndefined=W;function $(d){return D(d)&&Z(d)==="[object RegExp]"}e.isRegExp=$,e.types.isRegExp=$;function D(d){return typeof d=="object"&&d!==null}e.isObject=D;function z(d){return D(d)&&Z(d)==="[object Date]"}e.isDate=z,e.types.isDate=z;function J(d){return D(d)&&(Z(d)==="[object Error]"||d instanceof Error)}e.isError=J,e.types.isNativeError=J;function X(d){return typeof d=="function"}e.isFunction=X;function ne(d){return d===null||typeof d=="boolean"||typeof d=="number"||typeof d=="string"||typeof d=="symbol"||typeof d>"u"}e.isPrimitive=ne,e.isBuffer=Wi;function Z(d){return Object.prototype.toString.call(d)}function ie(d){return d<10?"0"+d.toString(10):d.toString(10)}var oe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ee(){var d=new Date,g=[ie(d.getHours()),ie(d.getMinutes()),ie(d.getSeconds())].join(":");return[d.getDate(),oe[d.getMonth()],g].join(" ")}e.log=function(){console.log("%s - %s",ee(),e.format.apply(e,arguments))},e.inherits=ue,e._extend=function(d,g){if(!g||!D(g))return d;for(var _=Object.keys(g),B=_.length;B--;)d[_[B]]=g[_[B]];return d};function te(d,g){return Object.prototype.hasOwnProperty.call(d,g)}var K=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(g){if(typeof g!="function")throw new TypeError('The "original" argument must be of type Function');if(K&&g[K]){var _=g[K];if(typeof _!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(_,K,{value:_,enumerable:!1,writable:!1,configurable:!0}),_}function _(){for(var B,s,f=new Promise(function(L,o){B=L,s=o}),y=[],w=0;w<arguments.length;w++)y.push(arguments[w]);y.push(function(L,o){L?s(L):B(o)});try{g.apply(this,y)}catch(L){s(L)}return f}return Object.setPrototypeOf(_,Object.getPrototypeOf(g)),K&&Object.defineProperty(_,K,{value:_,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(_,t(g))},e.promisify.custom=K;function re(d,g){if(!d){var _=new Error("Promise was rejected with a falsy value");_.reason=d,d=_}return g(d)}function fe(d){if(typeof d!="function")throw new TypeError('The "original" argument must be of type Function');function g(){for(var _=[],B=0;B<arguments.length;B++)_.push(arguments[B]);var s=_.pop();if(typeof s!="function")throw new TypeError("The last argument must be of type Function");var f=this,y=function(){return s.apply(f,arguments)};d.apply(this,_).then(function(w){R.process$1.nextTick(y.bind(null,null,w))},function(w){R.process$1.nextTick(re.bind(null,w,y))})}return Object.setPrototypeOf(g,Object.getPrototypeOf(d)),Object.defineProperties(g,t(d)),g}e.callbackify=fe})(Ot);var ft,Qt;function Gi(){if(Qt)return ft;Qt=1;function e(P,N){var M=Object.keys(P);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(P);N&&(u=u.filter(function(m){return Object.getOwnPropertyDescriptor(P,m).enumerable})),M.push.apply(M,u)}return M}function t(P){for(var N=1;N<arguments.length;N++){var M=arguments[N]!=null?arguments[N]:{};N%2?e(Object(M),!0).forEach(function(u){r(P,u,M[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(M)):e(Object(M)).forEach(function(u){Object.defineProperty(P,u,Object.getOwnPropertyDescriptor(M,u))})}return P}function r(P,N,M){return N=l(N),N in P?Object.defineProperty(P,N,{value:M,enumerable:!0,configurable:!0,writable:!0}):P[N]=M,P}function n(P,N){if(!(P instanceof N))throw new TypeError("Cannot call a class as a function")}function i(P,N){for(var M=0;M<N.length;M++){var u=N[M];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(P,l(u.key),u)}}function c(P,N,M){return N&&i(P.prototype,N),Object.defineProperty(P,"prototype",{writable:!1}),P}function l(P){var N=h(P,"string");return typeof N=="symbol"?N:String(N)}function h(P,N){if(typeof P!="object"||P===null)return P;var M=P[Symbol.toPrimitive];if(M!==void 0){var u=M.call(P,N||"default");if(typeof u!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(N==="string"?String:Number)(P)}var p=xe,A=p.Buffer,C=Ot,E=C.inspect,I=E&&E.custom||"inspect";function q(P,N,M){A.prototype.copy.call(P,N,M)}return ft=function(){function P(){n(this,P),this.head=null,this.tail=null,this.length=0}return c(P,[{key:"push",value:function(M){var u={data:M,next:null};this.length>0?this.tail.next=u:this.head=u,this.tail=u,++this.length}},{key:"unshift",value:function(M){var u={data:M,next:this.head};this.length===0&&(this.tail=u),this.head=u,++this.length}},{key:"shift",value:function(){if(this.length!==0){var M=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,M}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(M){if(this.length===0)return"";for(var u=this.head,m=""+u.data;u=u.next;)m+=M+u.data;return m}},{key:"concat",value:function(M){if(this.length===0)return A.alloc(0);for(var u=A.allocUnsafe(M>>>0),m=this.head,S=0;m;)q(m.data,u,S),S+=m.data.length,m=m.next;return u}},{key:"consume",value:function(M,u){var m;return M<this.head.data.length?(m=this.head.data.slice(0,M),this.head.data=this.head.data.slice(M)):M===this.head.data.length?m=this.shift():m=u?this._getString(M):this._getBuffer(M),m}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(M){var u=this.head,m=1,S=u.data;for(M-=S.length;u=u.next;){var T=u.data,j=M>T.length?T.length:M;if(j===T.length?S+=T:S+=T.slice(0,M),M-=j,M===0){j===T.length?(++m,u.next?this.head=u.next:this.head=this.tail=null):(this.head=u,u.data=T.slice(j));break}++m}return this.length-=m,S}},{key:"_getBuffer",value:function(M){var u=A.allocUnsafe(M),m=this.head,S=1;for(m.data.copy(u),M-=m.data.length;m=m.next;){var T=m.data,j=M>T.length?T.length:M;if(T.copy(u,u.length-M,0,j),M-=j,M===0){j===T.length?(++S,m.next?this.head=m.next:this.head=this.tail=null):(this.head=m,m.data=T.slice(j));break}++S}return this.length-=S,u}},{key:I,value:function(M,u){return E(this,t(t({},u),{},{depth:0,customInspect:!1}))}}]),P}(),ft}function xi(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,R.process$1.nextTick(At,this,e)):R.process$1.nextTick(At,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(c){!t&&c?r._writableState?r._writableState.errorEmitted?R.process$1.nextTick(Be,r):(r._writableState.errorEmitted=!0,R.process$1.nextTick(er,r,c)):R.process$1.nextTick(er,r,c):t?(R.process$1.nextTick(Be,r),t(c)):R.process$1.nextTick(Be,r)}),this)}function er(e,t){At(e,t),Be(e)}function Be(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function Hi(){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 At(e,t){e.emit("error",t)}function Vi(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}var Gr={destroy:xi,undestroy:Hi,errorOrDestroy:Vi},pe={};function zi(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var xr={};function Q(e,t,r){r||(r=Error);function n(c,l,h){return typeof t=="string"?t:t(c,l,h)}var i=function(c){zi(l,c);function l(h,p,A){return c.call(this,n(h,p,A))||this}return l}(r);i.prototype.name=r.name,i.prototype.code=e,xr[e]=i}function tr(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(n){return String(n)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function Ki(e,t,r){return e.substr(0,t.length)===t}function Yi(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function Ji(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}Q("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);Q("ERR_INVALID_ARG_TYPE",function(e,t,r){var n;typeof t=="string"&&Ki(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(Yi(e," argument"))i="The ".concat(e," ").concat(n," ").concat(tr(t,"type"));else{var c=Ji(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(c," ").concat(n," ").concat(tr(t,"type"))}return i+=". Received type ".concat(typeof r),i},TypeError);Q("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Q("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});Q("ERR_STREAM_PREMATURE_CLOSE","Premature close");Q("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});Q("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Q("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Q("ERR_STREAM_WRITE_AFTER_END","write after end");Q("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Q("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);Q("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");pe.codes=xr;var Xi=pe.codes.ERR_INVALID_OPT_VALUE;function Zi(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function Qi(e,t,r,n){var i=Zi(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var c=n?r:"highWaterMark";throw new Xi(c,i)}return Math.floor(i)}return e.objectMode?16:16*1024}var Hr={getHighWaterMark:Qi},eo=to;function to(e,t){if(st("noDeprecation"))return e;var r=!1;function n(){if(!r){if(st("throwDeprecation"))throw new Error(t);st("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return n}function st(e){try{if(!R.commonjsGlobal.localStorage)return!1}catch{return!1}var t=R.commonjsGlobal.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}var ut,rr;function Vr(){if(rr)return ut;rr=1,ut=$;function e(s){var f=this;this.next=null,this.entry=null,this.finish=function(){B(f,s)}}var t;$.WritableState=F;var r={deprecate:eo},n=Tr,i=xe.Buffer,c=(typeof R.commonjsGlobal<"u"?R.commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function l(s){return i.from(s)}function h(s){return i.isBuffer(s)||s instanceof c}var p=Gr,A=Hr,C=A.getHighWaterMark,E=pe.codes,I=E.ERR_INVALID_ARG_TYPE,q=E.ERR_METHOD_NOT_IMPLEMENTED,P=E.ERR_MULTIPLE_CALLBACK,N=E.ERR_STREAM_CANNOT_PIPE,M=E.ERR_STREAM_DESTROYED,u=E.ERR_STREAM_NULL_VALUES,m=E.ERR_STREAM_WRITE_AFTER_END,S=E.ERR_UNKNOWN_ENCODING,T=p.errorOrDestroy;ue($,n);function j(){}function F(s,f,y){t=t||Ee(),s=s||{},typeof y!="boolean"&&(y=f instanceof t),this.objectMode=!!s.objectMode,y&&(this.objectMode=this.objectMode||!!s.writableObjectMode),this.highWaterMark=C(this,s,"writableHighWaterMark",y),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var w=s.decodeStrings===!1;this.decodeStrings=!w,this.defaultEncoding=s.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(L){oe(f,L)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=s.emitClose!==!1,this.autoDestroy=!!s.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}F.prototype.getBuffer=function(){for(var f=this.bufferedRequest,y=[];f;)y.push(f),f=f.next;return y},function(){try{Object.defineProperty(F.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var W;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(W=Function.prototype[Symbol.hasInstance],Object.defineProperty($,Symbol.hasInstance,{value:function(f){return W.call(this,f)?!0:this!==$?!1:f&&f._writableState instanceof F}})):W=function(f){return f instanceof this};function $(s){t=t||Ee();var f=this instanceof t;if(!f&&!W.call($,this))return new $(s);this._writableState=new F(s,this,f),this.writable=!0,s&&(typeof s.write=="function"&&(this._write=s.write),typeof s.writev=="function"&&(this._writev=s.writev),typeof s.destroy=="function"&&(this._destroy=s.destroy),typeof s.final=="function"&&(this._final=s.final)),n.call(this)}$.prototype.pipe=function(){T(this,new N)};function D(s,f){var y=new m;T(s,y),R.process$1.nextTick(f,y)}function z(s,f,y,w){var L;return y===null?L=new u:typeof y!="string"&&!f.objectMode&&(L=new I("chunk",["string","Buffer"],y)),L?(T(s,L),R.process$1.nextTick(w,L),!1):!0}$.prototype.write=function(s,f,y){var w=this._writableState,L=!1,o=!w.objectMode&&h(s);return o&&!i.isBuffer(s)&&(s=l(s)),typeof f=="function"&&(y=f,f=null),o?f="buffer":f||(f=w.defaultEncoding),typeof y!="function"&&(y=j),w.ending?D(this,y):(o||z(this,w,s,y))&&(w.pendingcb++,L=X(this,w,o,s,f,y)),L},$.prototype.cork=function(){this._writableState.corked++},$.prototype.uncork=function(){var s=this._writableState;s.corked&&(s.corked--,!s.writing&&!s.corked&&!s.bufferProcessing&&s.bufferedRequest&&K(this,s))},$.prototype.setDefaultEncoding=function(f){if(typeof f=="string"&&(f=f.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((f+"").toLowerCase())>-1))throw new S(f);return this._writableState.defaultEncoding=f,this},Object.defineProperty($.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function J(s,f,y){return!s.objectMode&&s.decodeStrings!==!1&&typeof f=="string"&&(f=i.from(f,y)),f}Object.defineProperty($.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function X(s,f,y,w,L,o){if(!y){var a=J(f,w,L);w!==a&&(y=!0,L="buffer",w=a)}var b=f.objectMode?1:w.length;f.length+=b;var O=f.length<f.highWaterMark;if(O||(f.needDrain=!0),f.writing||f.corked){var H=f.lastBufferedRequest;f.lastBufferedRequest={chunk:w,encoding:L,isBuf:y,callback:o,next:null},H?H.next=f.lastBufferedRequest:f.bufferedRequest=f.lastBufferedRequest,f.bufferedRequestCount+=1}else ne(s,f,!1,b,w,L,o);return O}function ne(s,f,y,w,L,o,a){f.writelen=w,f.writecb=a,f.writing=!0,f.sync=!0,f.destroyed?f.onwrite(new M("write")):y?s._writev(L,f.onwrite):s._write(L,o,f.onwrite),f.sync=!1}function Z(s,f,y,w,L){--f.pendingcb,y?(R.process$1.nextTick(L,w),R.process$1.nextTick(g,s,f),s._writableState.errorEmitted=!0,T(s,w)):(L(w),s._writableState.errorEmitted=!0,T(s,w),g(s,f))}function ie(s){s.writing=!1,s.writecb=null,s.length-=s.writelen,s.writelen=0}function oe(s,f){var y=s._writableState,w=y.sync,L=y.writecb;if(typeof L!="function")throw new P;if(ie(y),f)Z(s,y,w,f,L);else{var o=re(y)||s.destroyed;!o&&!y.corked&&!y.bufferProcessing&&y.bufferedRequest&&K(s,y),w?R.process$1.nextTick(ee,s,y,o,L):ee(s,y,o,L)}}function ee(s,f,y,w){y||te(s,f),f.pendingcb--,w(),g(s,f)}function te(s,f){f.length===0&&f.needDrain&&(f.needDrain=!1,s.emit("drain"))}function K(s,f){f.bufferProcessing=!0;var y=f.bufferedRequest;if(s._writev&&y&&y.next){var w=f.bufferedRequestCount,L=new Array(w),o=f.corkedRequestsFree;o.entry=y;for(var a=0,b=!0;y;)L[a]=y,y.isBuf||(b=!1),y=y.next,a+=1;L.allBuffers=b,ne(s,f,!0,f.length,L,"",o.finish),f.pendingcb++,f.lastBufferedRequest=null,o.next?(f.corkedRequestsFree=o.next,o.next=null):f.corkedRequestsFree