@sheeptester/htmlifier
Version:
Packages a Scratch project in an HTML file with no optimisations.
1 lines • 7.32 MB
JavaScript
import fetch from"node-fetch";import Blob from"fetch-blob";class FileReader{addEventListener(_,callback){this.callback=callback}async readAsDataURL(blob){this.result=`data:${blob.type};base64,${Buffer.from(await blob.arrayBuffer()).toString("base64")}`,this.callback()}}var e3,t6,n3,r14="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:global,o9=e3={};function i(){throw Error("setTimeout has not been defined")}function u2(){throw Error("clearTimeout has not been defined")}function c2(e1){if(t6===setTimeout)return setTimeout(e1,0);if((t6===i||!t6)&&setTimeout)return t6=setTimeout,setTimeout(e1,0);try{return t6(e1,0)}catch(n1){try{return t6.call(null,e1,0)}catch(n2){return t6.call(this||r14,e1,0)}}}!function(){try{t6="function"==typeof setTimeout?setTimeout:i}catch(e1){t6=i}try{n3="function"==typeof clearTimeout?clearTimeout:u2}catch(e1){n3=u2}}();var l2,s2=[],f9=!1,a18=-1;function h4(){f9&&l2&&(f9=!1,l2.length?s2=l2.concat(s2):a18=-1,s2.length&&d4())}function d4(){if(!f9){var e1=c2(h4);f9=!0;for(var t1=s2.length;t1;){for(l2=s2,s2=[];++a18<t1;)l2&&l2[a18].run();a18=-1,t1=s2.length}l2=null,f9=!1,function(e2){if(n3===clearTimeout)return clearTimeout(e2);if((n3===u2||!n3)&&clearTimeout)return n3=clearTimeout,clearTimeout(e2);try{n3(e2)}catch(t2){try{return n3.call(null,e2)}catch(t3){return n3.call(this||r14,e2)}}}(e1)}}function m(e2,t2){(this||r14).fun=e2,(this||r14).array=t2}function p2(){}o9.nextTick=function(e2){var t2=Array(arguments.length-1);if(arguments.length>1)for(var n1=1;n1<arguments.length;n1++)t2[n1-1]=arguments[n1];s2.push(new m(e2,t2)),1!==s2.length||f9||c2(d4)},m.prototype.run=function(){(this||r14).fun.apply(null,(this||r14).array)},o9.title="browser",o9.browser=!0,o9.env={},o9.argv=[],o9.version="",o9.versions={},o9.on=p2,o9.addListener=p2,o9.once=p2,o9.off=p2,o9.removeListener=p2,o9.removeAllListeners=p2,o9.emit=p2,o9.prependListener=p2,o9.prependOnceListener=p2,o9.listeners=function(e2){return[]},o9.binding=function(e2){throw Error("process.binding is not supported")},o9.cwd=function(){return"/"},o9.chdir=function(e2){throw Error("process.chdir is not supported")},o9.umask=function(){return 0};var T2=e3,t2="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,e2=Object.prototype.toString,o1=function(o2){return!(t2&&o2&&"object"==typeof o2&&Symbol.toStringTag in o2)&&"[object Arguments]"===e2.call(o2)},n1=function(t3){return!!o1(t3)||null!==t3&&"object"==typeof t3&&"number"==typeof t3.length&&t3.length>=0&&"[object Array]"!==e2.call(t3)&&"[object Function]"===e2.call(t3.callee)},r1=function(){return o1(arguments)}();o1.isLegacyArguments=n1;var l1=r1?o1:n1,t$1=Object.prototype.toString,o$12=Function.prototype.toString,n$12=/^\s*(?:function)?\*/,e$1="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,r$1=Object.getPrototypeOf,c1=function(){if(!e$1)return!1;try{return Function("return function*() {}")()}catch(t3){}}(),u1=c1?r$1(c1):{},t$2="function"==typeof Object.create?function(t3,e3){e3&&(t3.super_=e3,t3.prototype=Object.create(e3.prototype,{constructor:{value:t3,enumerable:!1,writable:!0,configurable:!0}}))}:function(t3,e3){if(e3){t3.super_=e3;var o2=function(){};o2.prototype=e3.prototype,t3.prototype=new o2,t3.prototype.constructor=t3}},i$11=function(e3){return e3&&"object"==typeof e3&&"function"==typeof e3.copy&&"function"==typeof e3.fill&&"function"==typeof e3.readUInt8},o$2={},u$11=i$11,f1=l1,a1=function(c2){return"function"==typeof c2&&(!!n$12.test(o$12.call(c2))||(e$1?r$1(c2)===u1:"[object GeneratorFunction]"===t$1.call(c2)))};function c$11(e3){return e3.call.bind(e3)}var s1="undefined"!=typeof BigInt,p1="undefined"!=typeof Symbol,y1=p1&&void 0!==Symbol.toStringTag,l$1="undefined"!=typeof Uint8Array,d1="undefined"!=typeof ArrayBuffer;if(l$1&&y1)var g3=Object.getPrototypeOf(Uint8Array.prototype),b4=c$11(Object.getOwnPropertyDescriptor(g3,Symbol.toStringTag).get);var m1=c$11(Object.prototype.toString),h1=c$11(Number.prototype.valueOf),j=c$11(String.prototype.valueOf),A=c$11(Boolean.prototype.valueOf);if(s1)var w=c$11(BigInt.prototype.valueOf);if(p1)var v1=c$11(Symbol.prototype.valueOf);function O1(e3,t3){if("object"!=typeof e3)return!1;try{return t3(e3),!0}catch(e4){return!1}}function S1(e3){return l$1&&y1?void 0!==b4(e3):B3(e3)||k(e3)||E(e3)||D1(e3)||U3(e3)||P3(e3)||x3(e3)||I1(e3)||M(e3)||z1(e3)||F1(e3)}function B3(e3){return l$1&&y1?"Uint8Array"===b4(e3):"[object Uint8Array]"===m1(e3)||u$11(e3)&&void 0!==e3.buffer}function k(e3){return l$1&&y1?"Uint8ClampedArray"===b4(e3):"[object Uint8ClampedArray]"===m1(e3)}function E(e3){return l$1&&y1?"Uint16Array"===b4(e3):"[object Uint16Array]"===m1(e3)}function D1(e3){return l$1&&y1?"Uint32Array"===b4(e3):"[object Uint32Array]"===m1(e3)}function U3(e3){return l$1&&y1?"Int8Array"===b4(e3):"[object Int8Array]"===m1(e3)}function P3(e3){return l$1&&y1?"Int16Array"===b4(e3):"[object Int16Array]"===m1(e3)}function x3(e3){return l$1&&y1?"Int32Array"===b4(e3):"[object Int32Array]"===m1(e3)}function I1(e3){return l$1&&y1?"Float32Array"===b4(e3):"[object Float32Array]"===m1(e3)}function M(e3){return l$1&&y1?"Float64Array"===b4(e3):"[object Float64Array]"===m1(e3)}function z1(e3){return l$1&&y1?"BigInt64Array"===b4(e3):"[object BigInt64Array]"===m1(e3)}function F1(e3){return l$1&&y1?"BigUint64Array"===b4(e3):"[object BigUint64Array]"===m1(e3)}function T1(e3){return"[object Map]"===m1(e3)}function N1(e3){return"[object Set]"===m1(e3)}function W2(e3){return"[object WeakMap]"===m1(e3)}function $2(e3){return"[object WeakSet]"===m1(e3)}function C3(e3){return"[object ArrayBuffer]"===m1(e3)}function V(e3){return"undefined"!=typeof ArrayBuffer&&(C3.working?C3(e3):e3 instanceof ArrayBuffer)}function G2(e3){return"[object DataView]"===m1(e3)}function R1(e3){return"undefined"!=typeof DataView&&(G2.working?G2(e3):e3 instanceof DataView)}function J1(e3){return"[object SharedArrayBuffer]"===m1(e3)}function _1(e3){return"undefined"!=typeof SharedArrayBuffer&&(J1.working?J1(e3):e3 instanceof SharedArrayBuffer)}function H(e3){return O1(e3,h1)}function Z1(e3){return O1(e3,j)}function q2(e3){return O1(e3,A)}function K(e3){return s1&&O1(e3,w)}function L1(e3){return p1&&O1(e3,v1)}o$2.isArgumentsObject=f1,o$2.isGeneratorFunction=a1,o$2.isPromise=function(e3){return"undefined"!=typeof Promise&&e3 instanceof Promise||null!==e3&&"object"==typeof e3&&"function"==typeof e3.then&&"function"==typeof e3.catch},o$2.isArrayBufferView=function(e3){return d1&&ArrayBuffer.isView?ArrayBuffer.isView(e3):S1(e3)||R1(e3)},o$2.isTypedArray=S1,o$2.isUint8Array=B3,o$2.isUint8ClampedArray=k,o$2.isUint16Array=E,o$2.isUint32Array=D1,o$2.isInt8Array=U3,o$2.isInt16Array=P3,o$2.isInt32Array=x3,o$2.isFloat32Array=I1,o$2.isFloat64Array=M,o$2.isBigInt64Array=z1,o$2.isBigUint64Array=F1,T1.working="undefined"!=typeof Map&&T1(new Map),o$2.isMap=function(e3){return"undefined"!=typeof Map&&(T1.working?T1(e3):e3 instanceof Map)},N1.working="undefined"!=typeof Set&&N1(new Set),o$2.isSet=function(e3){return"undefined"!=typeof Set&&(N1.working?N1(e3):e3 instanceof Set)},W2.working="undefined"!=typeof WeakMap&&W2(new WeakMap),o$2.isWeakMap=function(e3){return"undefined"!=typeof WeakMap&&(W2.working?W2(e3):e3 instanceof WeakMap)},$2.working="undefined"!=typeof WeakSet&&$2(new WeakSet),o$2.isWeakSet=function(e3){return $2(e3)},C3.working="undefined"!=typeof ArrayBuffer&&C3(new ArrayBuffer),o$2.isArrayBuffer=V,G2.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&G2(new DataView(new ArrayBuffer(1),0,1)),o$2.isDataView=R1,J1.working="undefined"!=typeof SharedArrayBuffer&&J1(new SharedArrayBuffer),o$2.isSharedArrayBuffer=_1,o$2.isAsyncFunction=function(e3){return"[object AsyncFunction]"===m1(e3)},o$2.isMapIterator=function(e3){return"[object Map Iterator]"===m1(e3)},o$2.isSetIterator=function(e3){return"[object Set Iterator]"===m1(e3)},o$2.isGeneratorObject=function(e3){return"[object Generator]"===m1(e3)},o$2.isWebAssemblyCompiledModule=function(e3){return"[object WebAssembly.Module]"===m1(e3)},o$2.isNumberObject=H,o$2.isStringObject=Z1,o$2.isBooleanObject=q2,o$2.isBigIntObject=K,o$2.isSymbolObject=L1,o$2.isBoxedPrimitive=function(e3){return H(e3)||Z1(e3)||q2(e3)||K(e3)||L1(e3)},o$2.isAnyArrayBuffer=function(e3){return l$1&&(V(e3)||_1(e3))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e3){Object.defineProperty(o$2,e3,{enumerable:!1,value:function(){throw Error(e3+" is not supported in userland")}})}));var Q="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:global,X={},Y1=T2,ee1=Object.getOwnPropertyDescriptors||function(e3){for(var t3=Object.keys(e3),r2={},n2=0;n2<t3.length;n2++)r2[t3[n2]]=Object.getOwnPropertyDescriptor(e3,t3[n2]);return r2},te=/%[sdj%]/g;X.format=function(e3){if(!ge(e3)){for(var t3=[],r2=0;r2<arguments.length;r2++)t3.push(oe(arguments[r2]));return t3.join(" ")}r2=1;for(var n2=arguments,i2=n2.length,o3=(e3+"").replace(te,(function(e4){if("%%"===e4)return"%";if(r2>=i2)return e4;switch(e4){case"%s":return n2[r2++]+"";case"%d":return Number(n2[r2++]);case"%j":try{return JSON.stringify(n2[r2++])}catch(e5){return"[Circular]"}default:return e4}})),u2=n2[r2];r2<i2;u2=n2[++r2])le(u2)||!he(u2)?o3+=" "+u2:o3+=" "+oe(u2);return o3},X.deprecate=function(e3,t4){if(void 0!==Y1&&!0===Y1.noDeprecation)return e3;if(void 0===Y1)return function(){return X.deprecate(e3,t4).apply(this||Q,arguments)};var r3=!1;return function(){if(!r3){if(Y1.throwDeprecation)throw Error(t4);Y1.traceDeprecation?console.trace(t4):console.error(t4),r3=!0}return e3.apply(this||Q,arguments)}};var re={},ne=/^$/;if(Y1.env.NODE_DEBUG){var ie=Y1.env.NODE_DEBUG;ie=ie.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),ne=RegExp("^"+ie+"$","i")}function oe(e3,t4){var r3={seen:[],stylize:fe};return arguments.length>=3&&(r3.depth=arguments[2]),arguments.length>=4&&(r3.colors=arguments[3]),ye(t4)?r3.showHidden=t4:t4&&X._extend(r3,t4),be(r3.showHidden)&&(r3.showHidden=!1),be(r3.depth)&&(r3.depth=2),be(r3.colors)&&(r3.colors=!1),be(r3.customInspect)&&(r3.customInspect=!0),r3.colors&&(r3.stylize=ue),ae(r3,e3,r3.depth)}function ue(e3,t4){var r3=oe.styles[t4];return r3?"["+oe.colors[r3][0]+"m"+e3+"["+oe.colors[r3][1]+"m":e3}function fe(e3,t4){return e3}function ae(e3,t4,r3){if(e3.customInspect&&t4&&we(t4.inspect)&&t4.inspect!==X.inspect&&(!t4.constructor||t4.constructor.prototype!==t4)){var n2=t4.inspect(r3,e3);return ge(n2)||(n2=ae(e3,n2,r3)),n2}var i2=function(e4,t5){if(be(t5))return e4.stylize("undefined","undefined");if(ge(t5)){var r4="'"+JSON.stringify(t5).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e4.stylize(r4,"string")}return de(t5)?e4.stylize(""+t5,"number"):ye(t5)?e4.stylize(""+t5,"boolean"):le(t5)?e4.stylize("null","null"):void 0}(e3,t4);if(i2)return i2;var o3=Object.keys(t4),u2=function(e4){var t5={};return e4.forEach((function(e5,r5){t5[e5]=!0})),t5}(o3);if(e3.showHidden&&(o3=Object.getOwnPropertyNames(t4)),Ae(t4)&&(o3.indexOf("message")>=0||o3.indexOf("description")>=0))return ce(t4);if(0===o3.length){if(we(t4)){var f2=t4.name?": "+t4.name:"";return e3.stylize("[Function"+f2+"]","special")}if(me(t4))return e3.stylize(RegExp.prototype.toString.call(t4),"regexp");if(je(t4))return e3.stylize(Date.prototype.toString.call(t4),"date");if(Ae(t4))return ce(t4)}var a2,c2="",s2=!1,p2=["{","}"];return pe(t4)&&(s2=!0,p2=["[","]"]),we(t4)&&(c2=" [Function"+(t4.name?": "+t4.name:"")+"]"),me(t4)&&(c2=" "+RegExp.prototype.toString.call(t4)),je(t4)&&(c2=" "+Date.prototype.toUTCString.call(t4)),Ae(t4)&&(c2=" "+ce(t4)),0!==o3.length||s2&&0!=t4.length?r3<0?me(t4)?e3.stylize(RegExp.prototype.toString.call(t4),"regexp"):e3.stylize("[Object]","special"):(e3.seen.push(t4),a2=s2?function(e4,t5,r5,n3,i3){for(var o4=[],u3=0,f3=t5.length;u3<f3;++u3)ke(t5,u3+"")?o4.push(se(e4,t5,r5,n3,u3+"",!0)):o4.push("");return i3.forEach((function(i4){i4.match(/^\d+$/)||o4.push(se(e4,t5,r5,n3,i4,!0))})),o4}(e3,t4,r3,u2,o3):o3.map((function(n3){return se(e3,t4,r3,u2,n3,s2)})),e3.seen.pop(),function(e4,t5,r5){return e4.reduce((function(e5,t6){return t6.indexOf("\n")>=0&&0,e5+t6.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?r5[0]+(""===t5?"":t5+"\n ")+" "+e4.join(",\n ")+" "+r5[1]:r5[0]+t5+" "+e4.join(", ")+" "+r5[1]}(a2,c2,p2)):p2[0]+c2+p2[1]}function ce(e3){return"["+Error.prototype.toString.call(e3)+"]"}function se(e3,t4,r3,n3,i2,o3){var u2,f3,a2;if((a2=Object.getOwnPropertyDescriptor(t4,i2)||{value:t4[i2]}).get?f3=a2.set?e3.stylize("[Getter/Setter]","special"):e3.stylize("[Getter]","special"):a2.set&&(f3=e3.stylize("[Setter]","special")),ke(n3,i2)||(u2="["+i2+"]"),f3||(e3.seen.indexOf(a2.value)<0?(f3=le(r3)?ae(e3,a2.value,null):ae(e3,a2.value,r3-1)).indexOf("\n")>-1&&(f3=o3?f3.split("\n").map((function(e4){return" "+e4})).join("\n").substr(2):"\n"+f3.split("\n").map((function(e4){return" "+e4})).join("\n")):f3=e3.stylize("[Circular]","special")),be(u2)){if(o3&&i2.match(/^\d+$/))return f3;(u2=JSON.stringify(""+i2)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(u2=u2.substr(1,u2.length-2),u2=e3.stylize(u2,"name")):(u2=u2.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),u2=e3.stylize(u2,"string"))}return u2+": "+f3}function pe(e3){return Array.isArray(e3)}function ye(e3){return"boolean"==typeof e3}function le(e3){return null===e3}function de(e3){return"number"==typeof e3}function ge(e3){return"string"==typeof e3}function be(e3){return void 0===e3}function me(e3){return he(e3)&&"[object RegExp]"===ve(e3)}function he(e3){return"object"==typeof e3&&null!==e3}function je(e3){return he(e3)&&"[object Date]"===ve(e3)}function Ae(e3){return he(e3)&&("[object Error]"===ve(e3)||e3 instanceof Error)}function we(e3){return"function"==typeof e3}function ve(e3){return Object.prototype.toString.call(e3)}function Oe(e3){return e3<10?"0"+e3.toString(10):e3.toString(10)}X.debuglog=function(e3){if(e3=e3.toUpperCase(),!re[e3])if(ne.test(e3)){var t4=Y1.pid;re[e3]=function(){var r3=X.format.apply(X,arguments);console.error("%s %d: %s",e3,t4,r3)}}else re[e3]=function(){};return re[e3]},X.inspect=oe,oe.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]},oe.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},X.types=o$2,X.isArray=pe,X.isBoolean=ye,X.isNull=le,X.isNullOrUndefined=function(e3){return null==e3},X.isNumber=de,X.isString=ge,X.isSymbol=function(e3){return"symbol"==typeof e3},X.isUndefined=be,X.isRegExp=me,X.types.isRegExp=me,X.isObject=he,X.isDate=je,X.types.isDate=je,X.isError=Ae,X.types.isNativeError=Ae,X.isFunction=we,X.isPrimitive=function(e3){return null===e3||"boolean"==typeof e3||"number"==typeof e3||"string"==typeof e3||"symbol"==typeof e3||void 0===e3},X.isBuffer=i$11;var Se=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Be(){var e3=new Date,t5=[Oe(e3.getHours()),Oe(e3.getMinutes()),Oe(e3.getSeconds())].join(":");return[e3.getDate(),Se[e3.getMonth()],t5].join(" ")}function ke(e3,t5){return Object.prototype.hasOwnProperty.call(e3,t5)}X.log=function(){console.log("%s - %s",Be(),X.format.apply(X,arguments))},X.inherits=t$2,X._extend=function(e3,t5){if(!t5||!he(t5))return e3;for(var r3=Object.keys(t5),n3=r3.length;n3--;)e3[r3[n3]]=t5[r3[n3]];return e3};var Ee="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function De(e3,t5){if(!e3){var r3=Error("Promise was rejected with a falsy value");r3.reason=e3,e3=r3}return t5(e3)}X.promisify=function(e3){if("function"!=typeof e3)throw new TypeError('The "original" argument must be of type Function');if(Ee&&e3[Ee]){var t5;if("function"!=typeof(t5=e3[Ee]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t5,Ee,{value:t5,enumerable:!1,writable:!1,configurable:!0}),t5}function t5(){for(var t6,r5,n3=new Promise((function(e4,n4){t6=e4,r5=n4})),i2=[],o3=0;o3<arguments.length;o3++)i2.push(arguments[o3]);i2.push((function(e4,n4){e4?r5(e4):t6(n4)}));try{e3.apply(this||Q,i2)}catch(e4){r5(e4)}return n3}return Object.setPrototypeOf(t5,Object.getPrototypeOf(e3)),Ee&&Object.defineProperty(t5,Ee,{value:t5,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t5,ee1(e3))},X.promisify.custom=Ee,X.callbackify=function(e3){if("function"!=typeof e3)throw new TypeError('The "original" argument must be of type Function');function t6(){for(var t7=[],r5=0;r5<arguments.length;r5++)t7.push(arguments[r5]);var n3=t7.pop();if("function"!=typeof n3)throw new TypeError("The last argument must be of type Function");var i2=this||Q,o3=function(){return n3.apply(i2,arguments)};e3.apply(this||Q,t7).then((function(e4){Y1.nextTick(o3.bind(null,null,e4))}),(function(e4){Y1.nextTick(De.bind(null,e4,o3))}))}return Object.setPrototypeOf(t6,Object.getPrototypeOf(e3)),Object.defineProperties(t6,ee1(e3)),t6};for(var r5={byteLength:function(r6){var t6=u3(r6),e3=t6[0],n3=t6[1];return 3*(e3+n3)/4-n3},toByteArray:function(r6){var t6,o3,a2=u3(r6),h2=a2[0],c2=a2[1],d2=new n4(function(r7,t7,e3){return 3*(t7+e3)/4-e3}(0,h2,c2)),f3=0,A1=c2>0?h2-4:h2;for(o3=0;o3<A1;o3+=4)t6=e4[r6.charCodeAt(o3)]<<18|e4[r6.charCodeAt(o3+1)]<<12|e4[r6.charCodeAt(o3+2)]<<6|e4[r6.charCodeAt(o3+3)],d2[f3++]=t6>>16&255,d2[f3++]=t6>>8&255,d2[f3++]=255&t6;return 2===c2&&(t6=e4[r6.charCodeAt(o3)]<<2|e4[r6.charCodeAt(o3+1)]>>4,d2[f3++]=255&t6),1===c2&&(t6=e4[r6.charCodeAt(o3)]<<10|e4[r6.charCodeAt(o3+1)]<<4|e4[r6.charCodeAt(o3+2)]>>2,d2[f3++]=t6>>8&255,d2[f3++]=255&t6),d2},fromByteArray:function(r6){for(var e4,n4=r6.length,o3=n4%3,a2=[],h2=0,u3=n4-o3;h2<u3;h2+=16383)a2.push(c3(r6,h2,h2+16383>u3?u3:h2+16383));return 1===o3?(e4=r6[n4-1],a2.push(t7[e4>>2]+t7[e4<<4&63]+"==")):2===o3&&(e4=(r6[n4-2]<<8)+r6[n4-1],a2.push(t7[e4>>10]+t7[e4>>4&63]+t7[e4<<2&63]+"=")),a2.join("")}},t7=[],e4=[],n4="undefined"!=typeof Uint8Array?Uint8Array:Array,o3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a2=0;a2<64;++a2)t7[a2]=o3[a2],e4[o3.charCodeAt(a2)]=a2;function u3(r6){var t8=r6.length;if(t8%4>0)throw Error("Invalid string. Length must be a multiple of 4");var e5=r6.indexOf("=");return-1===e5&&(e5=t8),[e5,e5===t8?0:4-e5%4]}function c3(r6,e5,n5){for(var o4,a3,h3=[],u4=e5;u4<n5;u4+=3)o4=(r6[u4]<<16&16711680)+(r6[u4+1]<<8&65280)+(255&r6[u4+2]),h3.push(t7[(a3=o4)>>18&63]+t7[a3>>12&63]+t7[a3>>6&63]+t7[63&a3]);return h3.join("")}e4[45]=62,e4[95]=63;var e$11={},n$11=r5,i2={read:function(a3,t8,o4,r6,h3){var M1,f3,p2=8*h3-r6-1,w1=(1<<p2)-1,e5=w1>>1,i2=-7,N1=o4?h3-1:0,n5=o4?-1:1,u4=a3[t8+N1];for(N1+=n5,M1=u4&(1<<-i2)-1,u4>>=-i2,i2+=p2;i2>0;M1=256*M1+a3[t8+N1],N1+=n5,i2-=8);for(f3=M1&(1<<-i2)-1,M1>>=-i2,i2+=r6;i2>0;f3=256*f3+a3[t8+N1],N1+=n5,i2-=8);if(0===M1)M1=1-e5;else{if(M1===w1)return f3?NaN:1/0*(u4?-1:1);f3+=Math.pow(2,r6),M1-=e5}return(u4?-1:1)*f3*Math.pow(2,M1-r6)},write:function(a3,t8,o4,r6,h3,M1){var f3,p2,w1,e5=8*M1-h3-1,i2=(1<<e5)-1,N1=i2>>1,n5=23===h3?5.960464477539062e-8:0,u4=r6?0:M1-1,l2=r6?1:-1,s2=t8<0||0===t8&&1/t8<0?1:0;for(isNaN(t8=Math.abs(t8))||t8===1/0?(p2=isNaN(t8)?1:0,f3=i2):(t8*(w1=Math.pow(2,-(f3=Math.floor(Math.log(t8)/Math.LN2))))<1&&(f3--,w1*=2),(t8+=f3+N1>=1?n5/w1:n5*Math.pow(2,1-N1))*w1>=2&&(f3++,w1/=2),f3+N1>=i2?(p2=0,f3=i2):f3+N1>=1?(p2=(t8*w1-1)*Math.pow(2,h3),f3+=N1):(p2=t8*Math.pow(2,N1-1)*Math.pow(2,h3),f3=0));h3>=8;a3[o4+u4]=255&p2,u4+=l2,p2/=256,h3-=8);for(f3=f3<<h3|p2,e5+=h3;e5>0;a3[o4+u4]=255&f3,u4+=l2,f3/=256,e5-=8);a3[o4+u4-l2]|=128*s2}},o$11="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function f3(t8){if(t8>2147483647)throw new RangeError('The value "'+t8+'" is invalid for option "size"');var r6=new Uint8Array(t8);return Object.setPrototypeOf(r6,u$12.prototype),r6}function u$12(t8,r6,e5){if("number"==typeof t8){if("string"==typeof r6)throw new TypeError('The "string" argument must be of type string. Received type number');return a$2(t8)}return s3(t8,r6,e5)}function s3(t8,r6,e5){if("string"==typeof t8)return function(t9,r7){if("string"==typeof r7&&""!==r7||(r7="utf8"),!u$12.isEncoding(r7))throw new TypeError("Unknown encoding: "+r7);var e6=0|y2(t9,r7),n5=f3(e6),i3=n5.write(t9,r7);return i3!==e6&&(n5=n5.slice(0,i3)),n5}(t8,r6);if(ArrayBuffer.isView(t8))return p3(t8);if(null==t8)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t8);if(F2(t8,ArrayBuffer)||t8&&F2(t8.buffer,ArrayBuffer))return c$12(t8,r6,e5);if("undefined"!=typeof SharedArrayBuffer&&(F2(t8,SharedArrayBuffer)||t8&&F2(t8.buffer,SharedArrayBuffer)))return c$12(t8,r6,e5);if("number"==typeof t8)throw new TypeError('The "value" argument must not be of type number. Received type number');var n5=t8.valueOf&&t8.valueOf();if(null!=n5&&n5!==t8)return u$12.from(n5,r6,e5);var i3=function(t9){if(u$12.isBuffer(t9)){var r7=0|l3(t9.length),e6=f3(r7);return 0===e6.length||t9.copy(e6,0,0,r7),e6}return void 0!==t9.length?"number"!=typeof t9.length||N2(t9.length)?f3(0):p3(t9):"Buffer"===t9.type&&Array.isArray(t9.data)?p3(t9.data):void 0}(t8);if(i3)return i3;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t8[Symbol.toPrimitive])return u$12.from(t8[Symbol.toPrimitive]("string"),r6,e5);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t8)}function h$1(t8){if("number"!=typeof t8)throw new TypeError('"size" argument must be of type number');if(t8<0)throw new RangeError('The value "'+t8+'" is invalid for option "size"')}function a$2(t8){return h$1(t8),f3(t8<0?0:0|l3(t8))}function p3(t8){for(var r6=t8.length<0?0:0|l3(t8.length),e5=f3(r6),n5=0;n5<r6;n5+=1)e5[n5]=255&t8[n5];return e5}function c$12(t8,r6,e5){if(r6<0||t8.byteLength<r6)throw new RangeError('"offset" is outside of buffer bounds');if(t8.byteLength<r6+(e5||0))throw new RangeError('"length" is outside of buffer bounds');var n5;return n5=void 0===r6&&void 0===e5?new Uint8Array(t8):void 0===e5?new Uint8Array(t8,r6):new Uint8Array(t8,r6,e5),Object.setPrototypeOf(n5,u$12.prototype),n5}function l3(t8){if(t8>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t8}function y2(t8,r6){if(u$12.isBuffer(t8))return t8.length;if(ArrayBuffer.isView(t8)||F2(t8,ArrayBuffer))return t8.byteLength;if("string"!=typeof t8)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t8);var e5=t8.length,n5=arguments.length>2&&!0===arguments[2];if(!n5&&0===e5)return 0;for(var i3=!1;;)switch(r6){case"ascii":case"latin1":case"binary":return e5;case"utf8":case"utf-8":return _2(t8).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e5;case"hex":return e5>>>1;case"base64":return z2(t8).length;default:if(i3)return n5?-1:_2(t8).length;r6=(""+r6).toLowerCase(),i3=!0}}function g1(t8,r6,e5){var n5=!1;if((void 0===r6||r6<0)&&(r6=0),r6>this.length)return"";if((void 0===e5||e5>this.length)&&(e5=this.length),e5<=0)return"";if((e5>>>=0)<=(r6>>>=0))return"";for(t8||(t8="utf8");;)switch(t8){case"hex":return O2(this,r6,e5);case"utf8":case"utf-8":return I2(this,r6,e5);case"ascii":return S2(this,r6,e5);case"latin1":case"binary":return R2(this,r6,e5);case"base64":return T3(this,r6,e5);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L2(this,r6,e5);default:if(n5)throw new TypeError("Unknown encoding: "+t8);t8=(t8+"").toLowerCase(),n5=!0}}function w1(t8,r6,e5){var n5=t8[r6];t8[r6]=t8[e5],t8[e5]=n5}function d2(t8,r6,e5,n5,i3){if(0===t8.length)return-1;if("string"==typeof e5?(n5=e5,e5=0):e5>2147483647?e5=2147483647:e5<-2147483648&&(e5=-2147483648),N2(e5=+e5)&&(e5=i3?0:t8.length-1),e5<0&&(e5=t8.length+e5),e5>=t8.length){if(i3)return-1;e5=t8.length-1}else if(e5<0){if(!i3)return-1;e5=0}if("string"==typeof r6&&(r6=u$12.from(r6,n5)),u$12.isBuffer(r6))return 0===r6.length?-1:v2(t8,r6,e5,n5,i3);if("number"==typeof r6)return r6&=255,"function"==typeof Uint8Array.prototype.indexOf?i3?Uint8Array.prototype.indexOf.call(t8,r6,e5):Uint8Array.prototype.lastIndexOf.call(t8,r6,e5):v2(t8,[r6],e5,n5,i3);throw new TypeError("val must be string, number or Buffer")}function v2(t8,r6,e5,n5,i3){var o4,f4=1,u4=t8.length,s4=r6.length;if(void 0!==n5&&("ucs2"===(n5=(n5+"").toLowerCase())||"ucs-2"===n5||"utf16le"===n5||"utf-16le"===n5)){if(t8.length<2||r6.length<2)return-1;f4=2,u4/=2,s4/=2,e5/=2}function h3(t9,r8){return 1===f4?t9[r8]:t9.readUInt16BE(r8*f4)}if(i3){var a3=-1;for(o4=e5;o4<u4;o4++)if(h3(t8,o4)===h3(r6,-1===a3?0:o4-a3)){if(-1===a3&&(a3=o4),o4-a3+1===s4)return a3*f4}else-1!==a3&&(o4-=o4-a3),a3=-1}else for(e5+s4>u4&&(e5=u4-s4),o4=e5;o4>=0;o4--){for(var p4=!0,c4=0;c4<s4;c4++)if(h3(t8,o4+c4)!==h3(r6,c4)){p4=!1;break}if(p4)return o4}return-1}function b1(t8,r6,e5,n5){e5=Number(e5)||0;var i3=t8.length-e5;n5?(n5=Number(n5))>i3&&(n5=i3):n5=i3;var o4=r6.length;n5>o4/2&&(n5=o4/2);for(var f4=0;f4<n5;++f4){var u4=parseInt(r6.substr(2*f4,2),16);if(N2(u4))return f4;t8[e5+f4]=u4}return f4}function m2(t8,r6,e5,n5){return D2(_2(r6,t8.length-e5),t8,e5,n5)}function E1(t8,r6,e5,n5){return D2(function(t9){for(var r8=[],e7=0;e7<t9.length;++e7)r8.push(255&t9.charCodeAt(e7));return r8}(r6),t8,e5,n5)}function B1(t8,r6,e5,n5){return E1(t8,r6,e5,n5)}function A1(t8,r6,e5,n5){return D2(z2(r6),t8,e5,n5)}function U1(t8,r6,e5,n5){return D2(function(t9,r8){for(var e7,n6,i3,o4=[],f4=0;f4<t9.length&&!((r8-=2)<0);++f4)n6=(e7=t9.charCodeAt(f4))>>8,i3=e7%256,o4.push(i3),o4.push(n6);return o4}(r6,t8.length-e5),t8,e5,n5)}function T3(t8,r6,e5){return 0===r6&&e5===t8.length?n$11.fromByteArray(t8):n$11.fromByteArray(t8.slice(r6,e5))}function I2(t8,r6,e5){e5=Math.min(t8.length,e5);for(var n5=[],i3=r6;i3<e5;){var o4,f4,u5,s4,h3=t8[i3],a4=null,p5=h3>239?4:h3>223?3:h3>191?2:1;if(i3+p5<=e5)switch(p5){case 1:h3<128&&(a4=h3);break;case 2:128==(192&(o4=t8[i3+1]))&&(s4=(31&h3)<<6|63&o4)>127&&(a4=s4);break;case 3:o4=t8[i3+1],f4=t8[i3+2],128==(192&o4)&&128==(192&f4)&&(s4=(15&h3)<<12|(63&o4)<<6|63&f4)>2047&&(s4<55296||s4>57343)&&(a4=s4);break;case 4:o4=t8[i3+1],f4=t8[i3+2],u5=t8[i3+3],128==(192&o4)&&128==(192&f4)&&128==(192&u5)&&(s4=(15&h3)<<18|(63&o4)<<12|(63&f4)<<6|63&u5)>65535&&s4<1114112&&(a4=s4)}null===a4?(a4=65533,p5=1):a4>65535&&(a4-=65536,n5.push(a4>>>10&1023|55296),a4=56320|1023&a4),n5.push(a4),i3+=p5}return function(t9){var r8=t9.length;if(r8<=4096)return String.fromCharCode.apply(String,t9);for(var e7="",n6=0;n6<r8;)e7+=String.fromCharCode.apply(String,t9.slice(n6,n6+=4096));return e7}(n5)}function S2(t8,r6,e5){var n5="";e5=Math.min(t8.length,e5);for(var i3=r6;i3<e5;++i3)n5+=String.fromCharCode(127&t8[i3]);return n5}function R2(t8,r6,e5){var n5="";e5=Math.min(t8.length,e5);for(var i3=r6;i3<e5;++i3)n5+=String.fromCharCode(t8[i3]);return n5}function O2(t8,r6,e5){var n5=t8.length;(!r6||r6<0)&&(r6=0),(!e5||e5<0||e5>n5)&&(e5=n5);for(var i3="",o6=r6;o6<e5;++o6)i3+=Y2[t8[o6]];return i3}function L2(t8,r6,e5){for(var n5=t8.slice(r6,e5),i3="",o6=0;o6<n5.length;o6+=2)i3+=String.fromCharCode(n5[o6]+256*n5[o6+1]);return i3}function x1(t8,r6,e5){if(t8%1!=0||t8<0)throw new RangeError("offset is not uint");if(t8+r6>e5)throw new RangeError("Trying to access beyond buffer length")}function C1(t8,r6,e5,n5,i3,o6){if(!u$12.isBuffer(t8))throw new TypeError('"buffer" argument must be a Buffer instance');if(r6>i3||r6<o6)throw new RangeError('"value" argument is out of bounds');if(e5+n5>t8.length)throw new RangeError("Index out of range")}function P1(t8,r6,e5,n5,i3,o6){if(e5+n5>t8.length)throw new RangeError("Index out of range");if(e5<0)throw new RangeError("Index out of range")}function k1(t8,r6,e5,n5,o6){return r6=+r6,e5>>>=0,o6||P1(t8,0,e5,4),i2.write(t8,r6,e5,n5,23,4),e5+4}function M1(t8,r6,e5,n5,o6){return r6=+r6,e5>>>=0,o6||P1(t8,0,e5,8),i2.write(t8,r6,e5,n5,52,8),e5+8}e$11.Buffer=u$12,e$11.SlowBuffer=function(t8){return+t8!=t8&&(t8=0),u$12.alloc(+t8)},e$11.INSPECT_MAX_BYTES=50,e$11.kMaxLength=2147483647,u$12.TYPED_ARRAY_SUPPORT=function(){try{var t8=new Uint8Array(1),r6={foo:function(){return 42}};return Object.setPrototypeOf(r6,Uint8Array.prototype),Object.setPrototypeOf(t8,r6),42===t8.foo()}catch(t9){return!1}}(),u$12.TYPED_ARRAY_SUPPORT||void 0===console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u$12.prototype,"parent",{enumerable:!0,get:function(){if(u$12.isBuffer(this))return this.buffer}}),Object.defineProperty(u$12.prototype,"offset",{enumerable:!0,get:function(){if(u$12.isBuffer(this))return this.byteOffset}}),u$12.poolSize=8192,u$12.from=function(t8,r6,e5){return s3(t8,r6,e5)},Object.setPrototypeOf(u$12.prototype,Uint8Array.prototype),Object.setPrototypeOf(u$12,Uint8Array),u$12.alloc=function(t8,r6,e5){return function(t9,r8,e7){return h$1(t9),t9<=0?f3(t9):void 0!==r8?"string"==typeof e7?f3(t9).fill(r8,e7):f3(t9).fill(r8):f3(t9)}(t8,r6,e5)},u$12.allocUnsafe=function(t8){return a$2(t8)},u$12.allocUnsafeSlow=function(t8){return a$2(t8)},u$12.isBuffer=function(t8){return null!=t8&&!0===t8._isBuffer&&t8!==u$12.prototype},u$12.compare=function(t8,r6){if(F2(t8,Uint8Array)&&(t8=u$12.from(t8,t8.offset,t8.byteLength)),F2(r6,Uint8Array)&&(r6=u$12.from(r6,r6.offset,r6.byteLength)),!u$12.isBuffer(t8)||!u$12.isBuffer(r6))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t8===r6)return 0;for(var e5=t8.length,n5=r6.length,i3=0,o5=Math.min(e5,n5);i3<o5;++i3)if(t8[i3]!==r6[i3]){e5=t8[i3],n5=r6[i3];break}return e5<n5?-1:n5<e5?1:0},u$12.isEncoding=function(t8){switch((t8+"").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}},u$12.concat=function(t8,r6){if(!Array.isArray(t8))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t8.length)return u$12.alloc(0);var e5;if(void 0===r6)for(r6=0,e5=0;e5<t8.length;++e5)r6+=t8[e5].length;var n5=u$12.allocUnsafe(r6),i3=0;for(e5=0;e5<t8.length;++e5){var o5=t8[e5];if(F2(o5,Uint8Array)&&(o5=u$12.from(o5)),!u$12.isBuffer(o5))throw new TypeError('"list" argument must be an Array of Buffers');o5.copy(n5,i3),i3+=o5.length}return n5},u$12.byteLength=y2,u$12.prototype._isBuffer=!0,u$12.prototype.swap16=function(){var t8=this.length;if(t8%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r6=0;r6<t8;r6+=2)w1(this,r6,r6+1);return this},u$12.prototype.swap32=function(){var t8=this.length;if(t8%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r6=0;r6<t8;r6+=4)w1(this,r6,r6+3),w1(this,r6+1,r6+2);return this},u$12.prototype.swap64=function(){var t8=this.length;if(t8%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r6=0;r6<t8;r6+=8)w1(this,r6,r6+7),w1(this,r6+1,r6+6),w1(this,r6+2,r6+5),w1(this,r6+3,r6+4);return this},u$12.prototype.toString=function(){var t8=this.length;return 0===t8?"":0===arguments.length?I2(this,0,t8):g1.apply(this,arguments)},u$12.prototype.toLocaleString=u$12.prototype.toString,u$12.prototype.equals=function(t8){if(!u$12.isBuffer(t8))throw new TypeError("Argument must be a Buffer");return this===t8||0===u$12.compare(this,t8)},u$12.prototype.inspect=function(){var t8="",r6=e$11.INSPECT_MAX_BYTES;return t8=this.toString("hex",0,r6).replace(/(.{2})/g,"$1 ").trim(),this.length>r6&&(t8+=" ... "),"<Buffer "+t8+">"},o$11&&(u$12.prototype[o$11]=u$12.prototype.inspect),u$12.prototype.compare=function(t8,r6,e5,n5,i3){if(F2(t8,Uint8Array)&&(t8=u$12.from(t8,t8.offset,t8.byteLength)),!u$12.isBuffer(t8))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t8);if(void 0===r6&&(r6=0),void 0===e5&&(e5=t8?t8.length:0),void 0===n5&&(n5=0),void 0===i3&&(i3=this.length),r6<0||e5>t8.length||n5<0||i3>this.length)throw new RangeError("out of range index");if(n5>=i3&&r6>=e5)return 0;if(n5>=i3)return-1;if(r6>=e5)return 1;if(this===t8)return 0;for(var o6=(i3>>>=0)-(n5>>>=0),f5=(e5>>>=0)-(r6>>>=0),s5=Math.min(o6,f5),h4=this.slice(n5,i3),a5=t8.slice(r6,e5),p6=0;p6<s5;++p6)if(h4[p6]!==a5[p6]){o6=h4[p6],f5=a5[p6];break}return o6<f5?-1:f5<o6?1:0},u$12.prototype.includes=function(t8,r6,e5){return-1!==this.indexOf(t8,r6,e5)},u$12.prototype.indexOf=function(t8,r6,e5){return d2(this,t8,r6,e5,!0)},u$12.prototype.lastIndexOf=function(t8,r6,e5){return d2(this,t8,r6,e5,!1)},u$12.prototype.write=function(t8,r6,e5,n5){if(void 0===r6)n5="utf8",e5=this.length,r6=0;else if(void 0===e5&&"string"==typeof r6)n5=r6,e5=this.length,r6=0;else{if(!isFinite(r6))throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");r6>>>=0,isFinite(e5)?(e5>>>=0,void 0===n5&&(n5="utf8")):(n5=e5,e5=void 0)}var i3=this.length-r6;if((void 0===e5||e5>i3)&&(e5=i3),t8.length>0&&(e5<0||r6<0)||r6>this.length)throw new RangeError("Attempt to write outside buffer bounds");n5||(n5="utf8");for(var o6=!1;;)switch(n5){case"hex":return b1(this,t8,r6,e5);case"utf8":case"utf-8":return m2(this,t8,r6,e5);case"ascii":return E1(this,t8,r6,e5);case"latin1":case"binary":return B1(this,t8,r6,e5);case"base64":return A1(this,t8,r6,e5);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U1(this,t8,r6,e5);default:if(o6)throw new TypeError("Unknown encoding: "+n5);n5=(""+n5).toLowerCase(),o6=!0}},u$12.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},u$12.prototype.slice=function(t8,r6){var e5=this.length;(t8=~~t8)<0?(t8+=e5)<0&&(t8=0):t8>e5&&(t8=e5),(r6=void 0===r6?e5:~~r6)<0?(r6+=e5)<0&&(r6=0):r6>e5&&(r6=e5),r6<t8&&(r6=t8);var n5=this.subarray(t8,r6);return Object.setPrototypeOf(n5,u$12.prototype),n5},u$12.prototype.readUIntLE=function(t8,r6,e5){t8>>>=0,r6>>>=0,e5||x1(t8,r6,this.length);for(var n5=this[t8],i3=1,o6=0;++o6<r6&&(i3*=256);)n5+=this[t8+o6]*i3;return n5},u$12.prototype.readUIntBE=function(t8,r6,e5){t8>>>=0,r6>>>=0,e5||x1(t8,r6,this.length);for(var n5=this[t8+--r6],i3=1;r6>0&&(i3*=256);)n5+=this[t8+--r6]*i3;return n5},u$12.prototype.readUInt8=function(t8,r6){return t8>>>=0,r6||x1(t8,1,this.length),this[t8]},u$12.prototype.readUInt16LE=function(t8,r6){return t8>>>=0,r6||x1(t8,2,this.length),this[t8]|this[t8+1]<<8},u$12.prototype.readUInt16BE=function(t8,r6){return t8>>>=0,r6||x1(t8,2,this.length),this[t8]<<8|this[t8+1]},u$12.prototype.readUInt32LE=function(t8,r6){return t8>>>=0,r6||x1(t8,4,this.length),(this[t8]|this[t8+1]<<8|this[t8+2]<<16)+16777216*this[t8+3]},u$12.prototype.readUInt32BE=function(t8,r6){return t8>>>=0,r6||x1(t8,4,this.length),16777216*this[t8]+(this[t8+1]<<16|this[t8+2]<<8|this[t8+3])},u$12.prototype.readIntLE=function(t8,r6,e5){t8>>>=0,r6>>>=0,e5||x1(t8,r6,this.length);for(var n5=this[t8],i3=1,o6=0;++o6<r6&&(i3*=256);)n5+=this[t8+o6]*i3;return n5>=(i3*=128)&&(n5-=Math.pow(2,8*r6)),n5},u$12.prototype.readIntBE=function(t8,r6,e5){t8>>>=0,r6>>>=0,e5||x1(t8,r6,this.length);for(var n5=r6,i3=1,o6=this[t8+--n5];n5>0&&(i3*=256);)o6+=this[t8+--n5]*i3;return o6>=(i3*=128)&&(o6-=Math.pow(2,8*r6)),o6},u$12.prototype.readInt8=function(t8,r6){return t8>>>=0,r6||x1(t8,1,this.length),128&this[t8]?-1*(255-this[t8]+1):this[t8]},u$12.prototype.readInt16LE=function(t8,r6){t8>>>=0,r6||x1(t8,2,this.length);var e5=this[t8]|this[t8+1]<<8;return 32768&e5?4294901760|e5:e5},u$12.prototype.readInt16BE=function(t8,r6){t8>>>=0,r6||x1(t8,2,this.length);var e5=this[t8+1]|this[t8]<<8;return 32768&e5?4294901760|e5:e5},u$12.prototype.readInt32LE=function(t8,r6){return t8>>>=0,r6||x1(t8,4,this.length),this[t8]|this[t8+1]<<8|this[t8+2]<<16|this[t8+3]<<24},u$12.prototype.readInt32BE=function(t8,r6){return t8>>>=0,r6||x1(t8,4,this.length),this[t8]<<24|this[t8+1]<<16|this[t8+2]<<8|this[t8+3]},u$12.prototype.readFloatLE=function(t8,r6){return t8>>>=0,r6||x1(t8,4,this.length),i2.read(this,t8,!0,23,4)},u$12.prototype.readFloatBE=function(t8,r6){return t8>>>=0,r6||x1(t8,4,this.length),i2.read(this,t8,!1,23,4)},u$12.prototype.readDoubleLE=function(t8,r6){return t8>>>=0,r6||x1(t8,8,this.length),i2.read(this,t8,!0,52,8)},u$12.prototype.readDoubleBE=function(t8,r6){return t8>>>=0,r6||x1(t8,8,this.length),i2.read(this,t8,!1,52,8)},u$12.prototype.writeUIntLE=function(t8,r6,e5,n5){t8=+t8,r6>>>=0,e5>>>=0,n5||C1(this,t8,r6,e5,Math.pow(2,8*e5)-1,0);var i3=1,o6=0;for(this[r6]=255&t8;++o6<e5&&(i3*=256);)this[r6+o6]=t8/i3&255;return r6+e5},u$12.prototype.writeUIntBE=function(t8,r6,e5,n5){t8=+t8,r6>>>=0,e5>>>=0,n5||C1(this,t8,r6,e5,Math.pow(2,8*e5)-1,0);var i3=e5-1,o6=1;for(this[r6+i3]=255&t8;--i3>=0&&(o6*=256);)this[r6+i3]=t8/o6&255;return r6+e5},u$12.prototype.writeUInt8=function(t8,r6,e5){return t8=+t8,r6>>>=0,e5||C1(this,t8,r6,1,255,0),this[r6]=255&t8,r6+1},u$12.prototype.writeUInt16LE=function(t8,r6,e5){return t8=+t8,r6>>>=0,e5||C1(this,t8,r6,2,65535,0),this[r6]=255&t8,this[r6+1]=t8>>>8,r6+2},u$12.prototype.writeUInt16BE=function(t8,r6,e5){return t8=+t8,r6>>>=0,e5||C1(this,t8,r6,2,65535,0),this[r6]=t8>>>8,this[r6+1]=255&t8,r6+2},u$12.prototype.writeUInt32LE=function(t8,r6,e5){return t8=+t8,r6>>>=0,e5||C1(this,t8,r6,4,4294967295,0),this[r6+3]=t8>>>24,this[r6+2]=t8>>>16,this[r6+1]=t8>>>8,this[r6]=255&t8,r6+4},u$12.prototype.writeUInt32BE=function(t8,r6,e5){return t8=+t8,r6>>>=0,e5||C1(this,t8,r6,4,4294967295,0),this[r6]=t8>>>24,this[r6+1]=t8>>>16,this[r6+2]=t8>>>8,this[r6+3]=255&t8,r6+4},u$12.prototype.writeIntLE=function(t8,r6,e5,n5){if(t8=+t8,r6>>>=0,!n5){var i3=Math.pow(2,8*e5-1);C1(this,t8,r6,e5,i3-1,-i3)}var o6=0,f5=1,u6=0;for(this[r6]=255&t8;++o6<e5&&(f5*=256);)t8<0&&0===u6&&0!==this[r6+o6-1]&&(u6=1),this[r6+o6]=(t8/f5>>0)-u6&255;return r6+e5},u$12.prototype.writeIntBE=function(t8,r6,e5,n5){if(t8=+t8,r6>>>=0,!n5){var i4=Math.pow(2,8*e5-1);C1(this,t8,r6,e5,i4-1,-i4)}var o6=e5-1,f5=1,u6=0;for(this[r6+o6]=255&t8;--o6>=0&&(f5*=256);)t8<0&&0===u6&&0!==this[r6+o6+1]&&(u6=1),this[r6+o6]=(t8/f5>>0)-u6&255;return r6+e5},u$12.prototype.writeInt8=function(t8,r6,e5){return t8=+t8,r6>>>=0,e5||C1(this,t8,r6,1,127,-128),t8<0&&(t8=255+t8+1),this[r6]=255&t8,r6+1},u$12.prototype.writeInt16LE=function(t8,r6,e5){return t8=+t8,r6>>>=0,e5||C1(this,t8,r6,2,32767,-32768),this[r6]=255&t8,this[r6+1]=t8>>>8,r6+2},u$12.prototype.writeInt16BE=function(t8,r6,e5){return t8=+t8,r6>>>=0,e5||C1(this,t8,r6,2,32767,-32768),this[r6]=t8>>>8,this[r6+1]=255&t8,r6+2},u$12.prototype.writeInt32LE=function(t8,r6,e5){return t8=+t8,r6>>>=0,e5||C1(this,t8,r6,4,2147483647,-2147483648),this[r6]=255&t8,this[r6+1]=t8>>>8,this[r6+2]=t8>>>16,this[r6+3]=t8>>>24,r6+4},u$12.prototype.writeInt32BE=function(t8,r6,e5){return t8=+t8,r6>>>=0,e5||C1(this,t8,r6,4,2147483647,-2147483648),t8<0&&(t8=4294967295+t8+1),this[r6]=t8>>>24,this[r6+1]=t8>>>16,this[r6+2]=t8>>>8,this[r6+3]=255&t8,r6+4},u$12.prototype.writeFloatLE=function(t8,r6,e5){return k1(this,t8,r6,!0,e5)},u$12.prototype.writeFloatBE=function(t8,r6,e5){return k1(this,t8,r6,!1,e5)},u$12.prototype.writeDoubleLE=function(t8,r6,e5){return M1(this,t8,r6,!0,e5)},u$12.prototype.writeDoubleBE=function(t8,r6,e5){return M1(this,t8,r6,!1,e5)},u$12.prototype.copy=function(t8,r6,e5,n5){if(!u$12.isBuffer(t8))throw new TypeError("argument should be a Buffer");if(e5||(e5=0),n5||0===n5||(n5=this.length),r6>=t8.length&&(r6=t8.length),r6||(r6=0),n5>0&&n5<e5&&(n5=e5),n5===e5)return 0;if(0===t8.length||0===this.length)return 0;if(r6<0)throw new RangeError("targetStart out of bounds");if(e5<0||e5>=this.length)throw new RangeError("Index out of range");if(n5<0)throw new RangeError("sourceEnd out of bounds");n5>this.length&&(n5=this.length),t8.length-r6<n5-e5&&(n5=t8.length-r6+e5);var i5=n5-e5;if(this===t8&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(r6,e5,n5);else if(this===t8&&e5<r6&&r6<n5)for(var o6=i5-1;o6>=0;--o6)t8[o6+r6]=this[o6+e5];else Uint8Array.prototype.set.call(t8,this.subarray(e5,n5),r6);return i5},u$12.prototype.fill=function(t8,r6,e5,n5){if("string"==typeof t8){if("string"==typeof r6?(n5=r6,r6=0,e5=this.length):"string"==typeof e5&&(n5=e5,e5=this.length),void 0!==n5&&"string"!=typeof n5)throw new TypeError("encoding must be a string");if("string"==typeof n5&&!u$12.isEncoding(n5))throw new TypeError("Unknown encoding: "+n5);if(1===t8.length){var i5=t8.charCodeAt(0);("utf8"===n5&&i5<128||"latin1"===n5)&&(t8=i5)}}else"number"==typeof t8?t8&=255:"boolean"==typeof t8&&(t8=Number(t8));if(r6<0||this.length<r6||this.length<e5)throw new RangeError("Out of range index");if(e5<=r6)return this;var o6;if(r6>>>=0,e5=void 0===e5?this.length:e5>>>0,t8||(t8=0),"number"==typeof t8)for(o6=r6;o6<e5;++o6)this[o6]=t8;else{var f5=u$12.isBuffer(t8)?t8:u$12.from(t8,n5),s5=f5.length;if(0===s5)throw new TypeError('The value "'+t8+'" is invalid for argument "value"');for(o6=0;o6<e5-r6;++o6)this[o6+r6]=f5[o6%s5]}return this};var j1=/[^+/0-9A-Za-z-_]/g;function _2(t8,r6){var e5;r6=r6||1/0;for(var n5=t8.length,i6=null,o6=[],f6=0;f6<n5;++f6){if((e5=t8.charCodeAt(f6))>55295&&e5<57344){if(!i6){if(e5>56319){(r6-=3)>-1&&o6.push(239,191,189);continue}if(f6+1===n5){(r6-=3)>-1&&o6.push(239,191,189);continue}i6=e5;continue}if(e5<56320){(r6-=3)>-1&&o6.push(239,191,189),i6=e5;continue}e5=65536+(i6-55296<<10|e5-56320)}else i6&&(r6-=3)>-1&&o6.push(239,191,189);if(i6=null,e5<128){if((r6-=1)<0)break;o6.push(e5)}else if(e5<2048){if((r6-=2)<0)break;o6.push(e5>>6|192,63&e5|128)}else if(e5<65536){if((r6-=3)<0)break;o6.push(e5>>12|224,e5>>6&63|128,63&e5|128)}else{if(!(e5<1114112))throw Error("Invalid code point");if((r6-=4)<0)break;o6.push(e5>>18|240,e5>>12&63|128,e5>>6&63|128,63&e5|128)}}return o6}function z2(t8){return n$11.toByteArray(function(t9){if((t9=(t9=t9.split("=")[0]).trim().replace(j1,"")).length<2)return"";for(;t9.length%4!=0;)t9+="=";return t9}(t8))}function D2(t8,r6,e5,n5){for(var i6=0;i6<n5&&!(i6+e5>=r6.length||i6>=t8.length);++i6)r6[i6+e5]=t8[i6];return i6}function F2(t8,r6){return t8 instanceof r6||null!=t8&&null!=t8.constructor&&null!=t8.constructor.name&&t8.constructor.name===r6.name}function N2(t8){return t8!=t8}var Y2=function(){for(var t8=Array(256),r6=0;r6<16;++r6)for(var e5=16*r6,n5=0;n5<16;++n5)t8[e5+n5]="0123456789abcdef"[r6]+"0123456789abcdef"[n5];return t8}(),e5={},n5=e$11,o6=n5.Buffer;function t8(r6,e7){for(var n6 in r6)e7[n6]=r6[n6]}function f6(r6,e7,n6){return o6(r6,e7,n6)}o6.from&&o6.alloc&&o6.allocUnsafe&&o6.allocUnsafeSlow?e5=n5:(t8(n5,e5),e5.Buffer=f6),f6.prototype=Object.create(o6.prototype),t8(o6,f6),f6.from=function(r6,e7,n6){if("number"==typeof r6)throw new TypeError("Argument must not be a number");return o6(r6,e7,n6)},f6.alloc=function(r6,e7,n6){if("number"!=typeof r6)throw new TypeError("Argument must be a number");var t9=o6(r6);return void 0!==e7?"string"==typeof n6?t9.fill(e7,n6):t9.fill(e7):t9.fill(0),t9},f6.allocUnsafe=function(r6){if("number"!=typeof r6)throw new TypeError("Argument must be a number");return o6(r6)},f6.allocUnsafeSlow=function(r6){if("number"!=typeof r6)throw new TypeError("Argument must be a number");return n5.SlowBuffer(r6)};var e$12={},s6=e5.Buffer,i6=s6.isEncoding||function(t9){switch((t9=""+t9)&&t9.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 a5(t9){var e7;switch(this.encoding=function(t10){var e8=function(t11){if(!t11)return"utf8";for(var e9;;)switch(t11){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 t11;default:if(e9)return;t11=(""+t11).toLowerCase(),e9=!0}}(t10);if("string"!=typeof e8&&(s6.isEncoding===i6||!i6(t10)))throw Error("Unknown encoding: "+t10);return e8||t10}(t9),this.encoding){case"utf16le":this.text=h5,this.end=l4,e7=4;break;case"utf8":this.fillLast=n$13,e7=4;break;case"base64":this.text=u$13,this.end=o$13,e7=3;break;default:return this.write=f$1,void(this.end=c5)}this.lastNeed=0,this.lastTotal=0,this.lastChar=s6.allocUnsafe(e7)}function r6(t9){return t9<=127?0:t9>>5==6?2:t9>>4==14?3:t9>>3==30?4:t9>>6==2?-1:-2}function n$13(t9){var e7=this.lastTotal-this.lastNeed,s7=function(t10,e8,s8){if(128!=(192&e8[0]))return t10.lastNeed=0,"�";if(t10.lastNeed>1&&e8.length>1){if(128!=(192&e8[1]))return t10.lastNeed=1,"�";if(t10.lastNeed>2&&e8.length>2&&128!=(192&e8[2]))return t10.lastNeed=2,"�"}}(this,t9);return void 0!==s7?s7:this.lastNeed<=t9.length?(t9.copy(this.lastChar,e7,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t9.copy(this.lastChar,e7,0,t9.length),void(this.lastNeed-=t9.length))}function h5(t9,e7){if((t9.length-e7)%2==0){var s7=t9.toString("utf16le",e7);if(s7){var i7=s7.charCodeAt(s7.length-1);if(i7>=55296&&i7<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t9[t9.length-2],this.lastChar[1]=t9[t9.length-1],s7.slice(0,-1)}return s7}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t9[t9.length-1],t9.toString("utf16le",e7,t9.length-1)}function l4(t9){var e7=t9&&t9.length?this.write(t9):"";if(this.lastNeed){var s8=this.lastTotal-this.lastNeed;return e7+this.lastChar.toString("utf16le",0,s8)}return e7}function u$13(t9,e7){var s9=(t9.length-e7)%3;return 0===s9?t9.toString("base64",e7):(this.lastNeed=3-s9,this.lastTotal=3,1===s9?this.lastChar[0]=t9[t9.length-1]:(this.lastChar[0]=t9[t9.length-2],this.lastChar[1]=t9[t9.length-1]),t9.toString("base64",e7,t9.length-s9))}function o$13(t9){var e7=t9&&t9.length?this.write(t9):"";return this.lastNeed?e7+this.lastChar.toString("base64",0,3-this.lastNeed):e7}function f$1(t9){return t9.toString(this.encoding)}function c5(t9){return t9&&t9.length?this.write(t9):""}e$12.StringDecoder=a5,a5.prototype.write=function(t9){if(0===t9.length)return"";var e7,s9;if(this.lastNeed){if(void 0===(e7=this.fillLast(t9)))return"";s9=this.lastNeed,this.lastNeed=0}else s9=0;return s9<t9.length?e7?e7+this.text(t9,s9):this.text(t9,s9):e7||""},a5.prototype.end=function(t9){var e7=t9&&t9.length?this.write(t9):"";return this.lastNeed?e7+"�":e7},a5.prototype.text=function(t9,e7){var s9=function(t10,e8,s10){var i8=e8.length-1;if(i8<s10)return 0;var a6=r6(e8[i8]);return a6>=0?(a6>0&&(t10.lastNeed=a6-1),a6):--i8<s10||-2===a6?0:(a6=r6(e8[i8]))>=0?(a6>0&&(t10.lastNeed=a6-2),a6):--i8<s10||-2===a6?0:(a6=r6(e8[i8]))>=0?(a6>0&&(2===a6?a6=0:t10.lastNeed=a6-3),a6):0}(this,t9,e7);if(!this.lastNeed)return t9.toString("utf8",e7);this.lastTotal=s9;var i8=t9.length-(s9-this.lastNeed);return t9.copy(this.lastChar,0,i8),t9.toString("utf8",e7,i8)},a5.prototype.fillLast=function(t9){if(this.lastNeed<=t9.length)return t9.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t9.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t9.length),this.lastNeed-=t9.length};var e7,t9,n6="object"==typeof Reflect?Reflect:null,r8=n6&&"function"==typeof n6.apply?n6.apply:function(e8,t10,n7){return Function.prototype.apply.call(e8,t10,n7)};t9=n6&&"function"==typeof n6.ownKeys?n6.ownKeys:Object.getOwnPropertySymbols?function(e8){return Object.getOwnPropertyNames(e8).concat(Object.getOwnPropertySymbols(e8))}:function(e8){return Object.getOwnPropertyNames(e8)};var i8=Number.isNaN||function(e8){return e8!=e8};function o7(){o7.init.call(this)}e7=o7,o7.EventEmitter=o7,o7.prototype._events=void 0,o7.prototype._eventsCount=0,o7.prototype._maxListeners=void 0;var s9=10;function u7(e8){if("function"!=typeof e8)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e8)}function f7(e8){return void 0===e8._maxListeners?o7.defaultMaxListeners:e8._maxListeners}function v3(e8,t10,n7,r9){var i9,o8,s10;if(u7(n7),void 0===(o8=e8._events)?(o8=e8._events=Object.create(null),e8._eventsCount=0):(void 0!==o8.newListener&&(e8.emit("newListener",t10,n7.listener?n7.listener:n7),o8=e8._events),s10=o8[t10]),void 0===s10)s10=o8[t10]=n7,++e8._eventsCount;else if("function"==typeof s10?s10=o8[t10]=r9?[n7,s10]:[s10,n7]:r9?s10.unshift(n7):s10.push(n7),(i9=f7(e8))>0&&s10.length>i9&&!s10.warned){s10.warned=!0;var a6=Error("Possible EventEmitter memory leak detected. "+s10.length+" "+t10+" listeners added. Use emitter.setMaxListeners() to increase limit");a6.name="MaxListenersExceededWarning",a6.emitter=e8,a6.type=t10,a6.count=s10.length,console&&console.warn&&console.warn(a6)}return e8}function a7(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function l5(e8,t10,n7){var r9={fired:!1,wrapFn:void 0,target:e8,type:t10,listener:n7},i9=a7.bind(r9);return i9.listener=n7,r9.wrapFn=i9,i9}function h6(e8,t10,n7){var r9=e8._events;if(void 0===r9)return[];var i9=r9[t10];return void 0===i9?[]:"function"==typeof i9?n7?[i9.listener||i9]:[i9]:n7?function(e9){for(var t11=Array(e9.length),n8=0;n8<t11.length;++n8)t11[n8]=e9[n8].listener||e9[n8];return t11}(i9):c6(i9,i9.length)}function p6(e8){var t10=this._events;if(void 0!==t10){var n7=t10[e8];if("function"==typeof n7)return 1;if(void 0!==n7)return n7.length}return 0}function c6(e8,t10){for(var n8=Array(t10),r9=0;r9<t10;++r9)n8[r9]=e8[r9];return n8}Object.defineProperty(o7,"defaultMaxListeners",{enumerable:!0,get:function(){return s9},set:function(e8){if("number"!=typeof e8||e8<0||i8(e8))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e8+".");s9=e8}}),o7.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o7.prototype.setMaxListeners=function(e8){if("number"!=typeof e8||e8<0||i8(e8))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e8+".");return this._maxListeners=e8,this},o7.prototype