utilitas 2000.3.55 → 2000.3.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/utilitas.lite.mjs +1 -1
- package/dist/utilitas.lite.mjs.map +1 -1
- package/lib/alan.mjs +30 -28
- package/lib/manifest.mjs +1 -1
- package/package.json +1 -1
package/dist/utilitas.lite.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! For license information please see utilitas.lite.mjs.LICENSE.txt */
|
|
2
|
-
(()=>{var e,t,n={41:(e,t,n)=>{"use strict";var r=n(655),i=n(8068),o=n(9675),a=n(5795);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],f=!!a&&a(e,t);if(r)r(e,t,{configurable:null===u&&f?f.configurable:!u,enumerable:null===s&&f?f.enumerable:!s,value:n,writable:null===c&&f?f.writable:!c});else{if(!l&&(s||c||u))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},76:e=>{"use strict";e.exports=Function.prototype.call},186:(e,t,n)=>{e.exports=o;var r=n(9816),i=n(5622);function o(e){if(!(this instanceof o))return new o(e);r.call(this,e)}i.inherits=n(6698),i.inherits(o,r),o.prototype._transform=function(e,t,n){n(null,e)}},196:function(e,t,n){var r;!function(){"use strict";void 0===(r=function(){var e=function(e){throw e},t=function(){},n={storeName:"Store",storePrefix:"IDBWrapper-",dbVersion:1,keyPath:"id",autoIncrement:!0,onStoreReady:function(){},onError:e,indexes:[],implementationPreference:["indexedDB","webkitIndexedDB","mozIndexedDB","shimIndexedDB"]},r=function(e,t){for(var r in void 0===t&&"function"==typeof e&&(t=e),"[object Object]"!=Object.prototype.toString.call(e)&&(e={}),n)this[r]=void 0!==e[r]?e[r]:n[r];this.dbName=this.storePrefix+this.storeName,this.dbVersion=parseInt(this.dbVersion,10)||1,t&&(this.onStoreReady=t);var i="object"==typeof window?window:self,o=this.implementationPreference.filter(function(e){return e in i});this.implementation=o[0],this.idb=i[this.implementation],this.keyRange=i.IDBKeyRange||i.webkitIDBKeyRange||i.mozIDBKeyRange,this.consts={READ_ONLY:"readonly",READ_WRITE:"readwrite",VERSION_CHANGE:"versionchange",NEXT:"next",NEXT_NO_DUPLICATE:"nextunique",PREV:"prev",PREV_NO_DUPLICATE:"prevunique"},this.openDB()},i={constructor:r,version:"1.7.2",db:null,dbName:null,dbVersion:null,store:null,storeName:null,storePrefix:null,keyPath:null,autoIncrement:null,indexes:null,implementationPreference:null,implementation:"",onStoreReady:null,onError:null,_insertIdCount:0,openDB:function(){var e=this.idb.open(this.dbName,this.dbVersion),t=!1;e.onerror=function(e){if(function(e){return"error"in e.target?"VersionError"==e.target.error.name:"errorCode"in e.target&&12==e.target.errorCode}(e))this.onError(new Error("The version number provided is lower than the existing one."));else{var t;if(e.target.error)t=e.target.error;else{var n="IndexedDB unknown error occurred when opening DB "+this.dbName+" version "+this.dbVersion;"errorCode"in e.target&&(n+=" with error code "+e.target.errorCode),t=new Error(n)}this.onError(t)}}.bind(this),e.onsuccess=function(e){if(!t)if(this.db)this.onStoreReady();else if(this.db=e.target.result,"string"!=typeof this.db.version)if(this.db.objectStoreNames.contains(this.storeName)){var n=this.db.transaction([this.storeName],this.consts.READ_ONLY);this.store=n.objectStore(this.storeName);var r=Array.prototype.slice.call(this.getIndexList());this.indexes.forEach(function(e){var n=e.name;if(!n)return t=!0,void this.onError(new Error("Cannot create index: No index name given."));if(this.normalizeIndexData(e),this.hasIndex(n)){var i=this.store.index(n);this.indexComplies(i,e)||(t=!0,this.onError(new Error('Cannot modify index "'+n+'" for current version. Please bump version number to '+(this.dbVersion+1)+"."))),r.splice(r.indexOf(n),1)}else t=!0,this.onError(new Error('Cannot create new index "'+n+'" for current version. Please bump version number to '+(this.dbVersion+1)+"."))},this),r.length&&(t=!0,this.onError(new Error('Cannot delete index(es) "'+r.toString()+'" for current version. Please bump version number to '+(this.dbVersion+1)+"."))),t||this.onStoreReady()}else this.onError(new Error("Object store couldn't be created."));else this.onError(new Error("The IndexedDB implementation in this browser is outdated. Please upgrade your browser."))}.bind(this),e.onupgradeneeded=function(e){if(this.db=e.target.result,this.db.objectStoreNames.contains(this.storeName))this.store=e.target.transaction.objectStore(this.storeName);else{var n={autoIncrement:this.autoIncrement};null!==this.keyPath&&(n.keyPath=this.keyPath),this.store=this.db.createObjectStore(this.storeName,n)}var r=Array.prototype.slice.call(this.getIndexList());this.indexes.forEach(function(e){var n=e.name;if(n||(t=!0,this.onError(new Error("Cannot create index: No index name given."))),this.normalizeIndexData(e),this.hasIndex(n)){var i=this.store.index(n);this.indexComplies(i,e)||(this.store.deleteIndex(n),this.store.createIndex(n,e.keyPath,{unique:e.unique,multiEntry:e.multiEntry})),r.splice(r.indexOf(n),1)}else this.store.createIndex(n,e.keyPath,{unique:e.unique,multiEntry:e.multiEntry})},this),r.length&&r.forEach(function(e){this.store.deleteIndex(e)},this)}.bind(this)},deleteDatabase:function(e,t){if(this.idb.deleteDatabase){this.db.close();var n=this.idb.deleteDatabase(this.dbName);n.onsuccess=e,n.onerror=t}else t(new Error("Browser does not support IndexedDB deleteDatabase!"))},put:function(n,r,i,o){null!==this.keyPath&&(o=i,i=r,r=n),o||(o=e),i||(i=t);var a,s=!1,c=null,u=this.db.transaction([this.storeName],this.consts.READ_WRITE);return u.oncomplete=function(){(s?i:o)(c)},u.onabort=o,u.onerror=o,null!==this.keyPath?(this._addIdPropertyIfNeeded(r),a=u.objectStore(this.storeName).put(r)):a=u.objectStore(this.storeName).put(r,n),a.onsuccess=function(e){s=!0,c=e.target.result},a.onerror=o,u},get:function(n,r,i){i||(i=e),r||(r=t);var o=!1,a=null,s=this.db.transaction([this.storeName],this.consts.READ_ONLY);s.oncomplete=function(){(o?r:i)(a)},s.onabort=i,s.onerror=i;var c=s.objectStore(this.storeName).get(n);return c.onsuccess=function(e){o=!0,a=e.target.result},c.onerror=i,s},remove:function(n,r,i){i||(i=e),r||(r=t);var o=!1,a=null,s=this.db.transaction([this.storeName],this.consts.READ_WRITE);s.oncomplete=function(){(o?r:i)(a)},s.onabort=i,s.onerror=i;var c=s.objectStore(this.storeName).delete(n);return c.onsuccess=function(e){o=!0,a=e.target.result},c.onerror=i,s},batch:function(n,r,i){if(i||(i=e),r||(r=t),"[object Array]"!=Object.prototype.toString.call(n))i(new Error("dataArray argument must be of type Array."));else if(0===n.length)return r(!0);var o=n.length,a=!1,s=!1,c=this.db.transaction([this.storeName],this.consts.READ_WRITE);c.oncomplete=function(){(s?r:i)(s)},c.onabort=i,c.onerror=i;var u=function(){0!==--o||a||(a=!0,s=!0)};return n.forEach(function(e){var t=e.type,n=e.key,r=e.value,o=function(e){c.abort(),a||(a=!0,i(e,t,n))};if("remove"==t){var s=c.objectStore(this.storeName).delete(n);s.onsuccess=u,s.onerror=o}else if("put"==t){var l;null!==this.keyPath?(this._addIdPropertyIfNeeded(r),l=c.objectStore(this.storeName).put(r)):l=c.objectStore(this.storeName).put(r,n),l.onsuccess=u,l.onerror=o}},this),c},putBatch:function(e,t,n){var r=e.map(function(e){return{type:"put",value:e}});return this.batch(r,t,n)},upsertBatch:function(n,r,i,o){"function"==typeof r&&(o=i=r,r={}),o||(o=e),i||(i=t),r||(r={}),"[object Array]"!=Object.prototype.toString.call(n)&&o(new Error("dataArray argument must be of type Array."));var a=r.keyField||this.keyPath,s=n.length,c=!1,u=!1,l=0,f=this.db.transaction([this.storeName],this.consts.READ_WRITE);f.oncomplete=function(){u?i(n):o(!1)},f.onabort=o,f.onerror=o;var h=function(e){n[l++][a]=e.target.result,0!==--s||c||(c=!0,u=!0)};return n.forEach(function(e){var t,n=e.key;null!==this.keyPath?(this._addIdPropertyIfNeeded(e),t=f.objectStore(this.storeName).put(e)):t=f.objectStore(this.storeName).put(e,n),t.onsuccess=h,t.onerror=function(e){f.abort(),c||(c=!0,o(e))}},this),f},removeBatch:function(e,t,n){var r=e.map(function(e){return{type:"remove",key:e}});return this.batch(r,t,n)},getBatch:function(n,r,i,o){if(i||(i=e),r||(r=t),o||(o="sparse"),"[object Array]"!=Object.prototype.toString.call(n))i(new Error("keyArray argument must be of type Array."));else if(0===n.length)return r([]);var a=[],s=n.length,c=!1,u=null,l=this.db.transaction([this.storeName],this.consts.READ_ONLY);l.oncomplete=function(){(c?r:i)(u)},l.onabort=i,l.onerror=i;var f=function(e){e.target.result||"dense"==o?a.push(e.target.result):"sparse"==o&&a.length++,0===--s&&(c=!0,u=a)};return n.forEach(function(e){var t=l.objectStore(this.storeName).get(e);t.onsuccess=f,t.onerror=function(e){u=e,i(e),l.abort()}},this),l},getAll:function(n,r){r||(r=e),n||(n=t);var i=this.db.transaction([this.storeName],this.consts.READ_ONLY),o=i.objectStore(this.storeName);return o.getAll?this._getAllNative(i,o,n,r):this._getAllCursor(i,o,n,r),i},_getAllNative:function(e,t,n,r){var i=!1,o=null;e.oncomplete=function(){(i?n:r)(o)},e.onabort=r,e.onerror=r;var a=t.getAll();a.onsuccess=function(e){i=!0,o=e.target.result},a.onerror=r},_getAllCursor:function(e,t,n,r){var i=[],o=!1,a=null;e.oncomplete=function(){(o?n:r)(a)},e.onabort=r,e.onerror=r;var s=t.openCursor();s.onsuccess=function(e){var t=e.target.result;t?(i.push(t.value),t.continue()):(o=!0,a=i)},s.onError=r},clear:function(n,r){r||(r=e),n||(n=t);var i=!1,o=null,a=this.db.transaction([this.storeName],this.consts.READ_WRITE);a.oncomplete=function(){(i?n:r)(o)},a.onabort=r,a.onerror=r;var s=a.objectStore(this.storeName).clear();return s.onsuccess=function(e){i=!0,o=e.target.result},s.onerror=r,a},_addIdPropertyIfNeeded:function(e){void 0===e[this.keyPath]&&(e[this.keyPath]=this._insertIdCount+++Date.now())},getIndexList:function(){return this.store.indexNames},hasIndex:function(e){return this.store.indexNames.contains(e)},normalizeIndexData:function(e){e.keyPath=e.keyPath||e.name,e.unique=!!e.unique,e.multiEntry=!!e.multiEntry},indexComplies:function(e,t){return["keyPath","unique","multiEntry"].every(function(n){if("multiEntry"==n&&void 0===e[n]&&!1===t[n])return!0;if("keyPath"==n&&"[object Array]"==Object.prototype.toString.call(t[n])){var r=t.keyPath,i=e.keyPath;if("string"==typeof i)return r.toString()==i;if("function"!=typeof i.contains&&"function"!=typeof i.indexOf)return!1;if(i.length!==r.length)return!1;for(var o=0,a=r.length;o<a;o++)if(!(i.contains&&i.contains(r[o])||i.indexOf(-1!==r[o])))return!1;return!0}return t[n]==e[n]})},iterate:function(t,n){var r="desc"==(n=a({index:null,order:"ASC",autoContinue:!0,filterDuplicates:!1,keyRange:null,writeAccess:!1,onEnd:null,onError:e,limit:1/0,offset:0,allowItemRejection:!1},n||{})).order.toLowerCase()?"PREV":"NEXT";n.filterDuplicates&&(r+="_NO_DUPLICATE");var i=!1,o=this.db.transaction([this.storeName],this.consts[n.writeAccess?"READ_WRITE":"READ_ONLY"]),s=o.objectStore(this.storeName);n.index&&(s=s.index(n.index));var c=0;o.oncomplete=function(){i?n.onEnd?n.onEnd():t(null):n.onError(null)},o.onabort=n.onError,o.onerror=n.onError;var u=s.openCursor(n.keyRange,this.consts[r]);return u.onerror=n.onError,u.onsuccess=function(e){var r=e.target.result;if(r)if(n.offset)r.advance(n.offset),n.offset=0;else{var a=t(r.value,r,o);n.allowItemRejection&&!1===a||c++,n.autoContinue&&(c+n.offset<n.limit?r.continue():i=!0)}else i=!0},o},query:function(e,t){var n=[],r=0;return(t=t||{}).autoContinue=!0,t.writeAccess=!1,t.allowItemRejection=!!t.filter,t.onEnd=function(){e(n,r)},this.iterate(function(e){r++;var i=!t.filter||t.filter(e);return!1!==i&&n.push(e),i},t)},count:function(t,n){var r=(n=a({index:null,keyRange:null},n||{})).onError||e,i=!1,o=null,s=this.db.transaction([this.storeName],this.consts.READ_ONLY);s.oncomplete=function(){(i?t:r)(o)},s.onabort=r,s.onerror=r;var c=s.objectStore(this.storeName);n.index&&(c=c.index(n.index));var u=c.count(n.keyRange);return u.onsuccess=function(e){i=!0,o=e.target.result},u.onError=r,s},makeKeyRange:function(e){var t,n=void 0!==e.lower,r=void 0!==e.upper;switch(!0){case void 0!==e.only:t=this.keyRange.only(e.only);break;case n&&r:t=this.keyRange.bound(e.lower,e.upper,e.excludeLower,e.excludeUpper);break;case n:t=this.keyRange.lowerBound(e.lower,e.excludeLower);break;case r:t=this.keyRange.upperBound(e.upper,e.excludeUpper);break;default:throw new Error('Cannot create KeyRange. Provide one or both of "lower" or "upper" value, or an "only" value.')}return t}},o={};function a(e,t){var n,r;for(n in t)(r=t[n])!==o[n]&&r!==e[n]&&(e[n]=r);return e}return r.prototype=i,r.version=i.version,r}.call(t,n,t,e))||(e.exports=r)}()},251:(e,t)=>{t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,c=(1<<s)-1,u=c>>1,l=-7,f=n?i-1:0,h=n?-1:1,p=e[t+f];for(f+=h,o=p&(1<<-l)-1,p>>=-l,l+=s;l>0;o=256*o+e[t+f],f+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=h,l-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=u}return(p?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,c,u=8*o-i-1,l=(1<<u)-1,f=l>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,d=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+f>=1?h/c:h*Math.pow(2,1-f))*c>=2&&(a++,c/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*c-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=d,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[n+p]=255&a,p+=d,a/=256,u-=8);e[n+p-d]|=128*g}},345:(e,t,n)=>{e.exports=n(7007).EventEmitter},414:e=>{"use strict";e.exports=Math.round},453:(e,t,n)=>{"use strict";var r,i=n(9612),o=n(9383),a=n(1237),s=n(9290),c=n(9538),u=n(8068),l=n(9675),f=n(5345),h=n(1514),p=n(8968),d=n(6188),g=n(8002),m=n(5880),y=n(414),b=n(3093),v=Function,w=function(e){try{return v('"use strict"; return ('+e+").constructor;")()}catch(e){}},_=n(5795),E=n(655),k=function(){throw new l},x=_?function(){try{return k}catch(e){try{return _(arguments,"callee").get}catch(e){return k}}}():k,S=n(4039)(),O=n(3628),A=n(1064),R=n(8648),j=n(1002),T=n(76),I={},M="undefined"!=typeof Uint8Array&&O?O(Uint8Array):r,L={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":S&&O?O([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?r:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":I,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":S&&O?O(O([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&S&&O?O((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":_,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":s,"%ReferenceError%":c,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&S&&O?O((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":S&&O?O(""[Symbol.iterator]()):r,"%Symbol%":S?Symbol:r,"%SyntaxError%":u,"%ThrowTypeError%":x,"%TypedArray%":M,"%TypeError%":l,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":f,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet,"%Function.prototype.call%":T,"%Function.prototype.apply%":j,"%Object.defineProperty%":E,"%Object.getPrototypeOf%":A,"%Math.abs%":h,"%Math.floor%":p,"%Math.max%":d,"%Math.min%":g,"%Math.pow%":m,"%Math.round%":y,"%Math.sign%":b,"%Reflect.getPrototypeOf%":R};if(O)try{null.error}catch(e){var B=O(O(e));L["%Error.prototype%"]=B}var C=function e(t){var n;if("%AsyncFunction%"===t)n=w("async function () {}");else if("%GeneratorFunction%"===t)n=w("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=w("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&O&&(n=O(i.prototype))}return L[t]=n,n},N={__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"]},P=n(6743),D=n(9957),F=P.call(T,Array.prototype.concat),U=P.call(j,Array.prototype.splice),z=P.call(T,String.prototype.replace),W=P.call(T,String.prototype.slice),q=P.call(T,RegExp.prototype.exec),$=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Z=/\\(\\)?/g,H=function(e,t){var n,r=e;if(D(N,r)&&(r="%"+(n=N[r])[0]+"%"),D(L,r)){var i=L[r];if(i===I&&(i=C(r)),void 0===i&&!t)throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new u("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===q(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=W(e,0,1),n=W(e,-1);if("%"===t&&"%"!==n)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new u("invalid intrinsic syntax, expected opening `%`");var r=[];return z(e,$,function(e,t,n,i){r[r.length]=n?z(i,Z,"$1"):t||e}),r}(e),r=n.length>0?n[0]:"",i=H("%"+r+"%",t),o=i.name,a=i.value,s=!1,c=i.alias;c&&(r=c[0],U(n,F([0,1],c)));for(var f=1,h=!0;f<n.length;f+=1){var p=n[f],d=W(p,0,1),g=W(p,-1);if(('"'===d||"'"===d||"`"===d||'"'===g||"'"===g||"`"===g)&&d!==g)throw new u("property names with quotes must have matching quotes");if("constructor"!==p&&h||(s=!0),D(L,o="%"+(r+="."+p)+"%"))a=L[o];else if(null!=a){if(!(p in a)){if(!t)throw new l("base intrinsic for "+e+" exists, but the property is not available.");return}if(_&&f+1>=n.length){var m=_(a,p);a=(h=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:a[p]}else h=D(a,p),a=a[p];h&&!s&&(L[o]=a)}}return a}},487:(e,t,n)=>{"use strict";var r=n(6897),i=n(655),o=n(3126),a=n(2205);e.exports=function(e){var t=o(arguments),n=e.length-(arguments.length-1);return r(t,1+(n>0?n:0),!0)},i?i(e.exports,"apply",{value:a}):e.exports.apply=a},507:(e,t,n)=>{"use strict";var r=n(453),i=n(6556),o=n(8859),a=n(9675),s=r("%Map%",!0),c=i("Map.prototype.get",!0),u=i("Map.prototype.set",!0),l=i("Map.prototype.has",!0),f=i("Map.prototype.delete",!0),h=i("Map.prototype.size",!0);e.exports=!!s&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a("Side channel does not contain "+o(e))},delete:function(t){if(e){var n=f(e,t);return 0===h(e)&&(e=void 0),n}return!1},get:function(t){if(e)return c(e,t)},has:function(t){return!!e&&l(e,t)},set:function(t,n){e||(e=new s),u(e,t,n)}};return t}},519:(e,t,n)=>{var r=e.exports.all=[{errno:-2,code:"ENOENT",description:"no such file or directory"},{errno:-1,code:"UNKNOWN",description:"unknown error"},{errno:0,code:"OK",description:"success"},{errno:1,code:"EOF",description:"end of file"},{errno:2,code:"EADDRINFO",description:"getaddrinfo error"},{errno:3,code:"EACCES",description:"permission denied"},{errno:4,code:"EAGAIN",description:"resource temporarily unavailable"},{errno:5,code:"EADDRINUSE",description:"address already in use"},{errno:6,code:"EADDRNOTAVAIL",description:"address not available"},{errno:7,code:"EAFNOSUPPORT",description:"address family not supported"},{errno:8,code:"EALREADY",description:"connection already in progress"},{errno:9,code:"EBADF",description:"bad file descriptor"},{errno:10,code:"EBUSY",description:"resource busy or locked"},{errno:11,code:"ECONNABORTED",description:"software caused connection abort"},{errno:12,code:"ECONNREFUSED",description:"connection refused"},{errno:13,code:"ECONNRESET",description:"connection reset by peer"},{errno:14,code:"EDESTADDRREQ",description:"destination address required"},{errno:15,code:"EFAULT",description:"bad address in system call argument"},{errno:16,code:"EHOSTUNREACH",description:"host is unreachable"},{errno:17,code:"EINTR",description:"interrupted system call"},{errno:18,code:"EINVAL",description:"invalid argument"},{errno:19,code:"EISCONN",description:"socket is already connected"},{errno:20,code:"EMFILE",description:"too many open files"},{errno:21,code:"EMSGSIZE",description:"message too long"},{errno:22,code:"ENETDOWN",description:"network is down"},{errno:23,code:"ENETUNREACH",description:"network is unreachable"},{errno:24,code:"ENFILE",description:"file table overflow"},{errno:25,code:"ENOBUFS",description:"no buffer space available"},{errno:26,code:"ENOMEM",description:"not enough memory"},{errno:27,code:"ENOTDIR",description:"not a directory"},{errno:28,code:"EISDIR",description:"illegal operation on a directory"},{errno:29,code:"ENONET",description:"machine is not on the network"},{errno:31,code:"ENOTCONN",description:"socket is not connected"},{errno:32,code:"ENOTSOCK",description:"socket operation on non-socket"},{errno:33,code:"ENOTSUP",description:"operation not supported on socket"},{errno:34,code:"ENOENT",description:"no such file or directory"},{errno:35,code:"ENOSYS",description:"function not implemented"},{errno:36,code:"EPIPE",description:"broken pipe"},{errno:37,code:"EPROTO",description:"protocol error"},{errno:38,code:"EPROTONOSUPPORT",description:"protocol not supported"},{errno:39,code:"EPROTOTYPE",description:"protocol wrong type for socket"},{errno:40,code:"ETIMEDOUT",description:"connection timed out"},{errno:41,code:"ECHARSET",description:"invalid Unicode character"},{errno:42,code:"EAIFAMNOSUPPORT",description:"address family for hostname not supported"},{errno:44,code:"EAISERVICE",description:"servname not supported for ai_socktype"},{errno:45,code:"EAISOCKTYPE",description:"ai_socktype not supported"},{errno:46,code:"ESHUTDOWN",description:"cannot send after transport endpoint shutdown"},{errno:47,code:"EEXIST",description:"file already exists"},{errno:48,code:"ESRCH",description:"no such process"},{errno:49,code:"ENAMETOOLONG",description:"name too long"},{errno:50,code:"EPERM",description:"operation not permitted"},{errno:51,code:"ELOOP",description:"too many symbolic links encountered"},{errno:52,code:"EXDEV",description:"cross-device link not permitted"},{errno:53,code:"ENOTEMPTY",description:"directory not empty"},{errno:54,code:"ENOSPC",description:"no space left on device"},{errno:55,code:"EIO",description:"i/o error"},{errno:56,code:"EROFS",description:"read-only file system"},{errno:57,code:"ENODEV",description:"no such device"},{errno:58,code:"ESPIPE",description:"invalid seek"},{errno:59,code:"ECANCELED",description:"operation canceled"}];e.exports.errno={},e.exports.code={},r.forEach(function(t){e.exports.errno[t.errno]=t,e.exports.code[t.code]=t}),e.exports.custom=n(2796)(e.exports),e.exports.create=e.exports.custom.createError},537:(e,t,n)=>{var r=n(5606),i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},o=/%[sdj%]/g;t.format=function(e){if(!v(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(u(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,a=String(e).replace(o,function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),s=r[n];n<i;s=r[++n])y(s)||!E(s)?a+=" "+s:a+=" "+u(s);return a},t.deprecate=function(e,n){if(void 0!==r&&!0===r.noDeprecation)return e;if(void 0===r)return function(){return t.deprecate(e,n).apply(this,arguments)};var i=!1;return function(){if(!i){if(r.throwDeprecation)throw new Error(n);r.traceDeprecation?console.trace(n):console.error(n),i=!0}return e.apply(this,arguments)}};var a={},s=/^$/;if(r.env.NODE_DEBUG){var c=r.env.NODE_DEBUG;c=c.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+c+"$","i")}function u(e,n){var r={seen:[],stylize:f};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),m(n)?r.showHidden=n:n&&t._extend(r,n),w(r.showHidden)&&(r.showHidden=!1),w(r.depth)&&(r.depth=2),w(r.colors)&&(r.colors=!1),w(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=l),h(r,e,r.depth)}function l(e,t){var n=u.styles[t];return n?"["+u.colors[n][0]+"m"+e+"["+u.colors[n][1]+"m":e}function f(e,t){return e}function h(e,n,r){if(e.customInspect&&n&&S(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return v(i)||(i=h(e,i,r)),i}var o=function(e,t){if(w(t))return e.stylize("undefined","undefined");if(v(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return b(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):y(t)?e.stylize("null","null"):void 0}(e,n);if(o)return o;var a=Object.keys(n),s=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),x(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return p(n);if(0===a.length){if(S(n)){var c=n.name?": "+n.name:"";return e.stylize("[Function"+c+"]","special")}if(_(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(k(n))return e.stylize(Date.prototype.toString.call(n),"date");if(x(n))return p(n)}var u,l="",f=!1,E=["{","}"];return g(n)&&(f=!0,E=["[","]"]),S(n)&&(l=" [Function"+(n.name?": "+n.name:"")+"]"),_(n)&&(l=" "+RegExp.prototype.toString.call(n)),k(n)&&(l=" "+Date.prototype.toUTCString.call(n)),x(n)&&(l=" "+p(n)),0!==a.length||f&&0!=n.length?r<0?_(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),u=f?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a<s;++a)j(t,String(a))?o.push(d(e,t,n,r,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(d(e,t,n,r,i,!0))}),o}(e,n,r,s,a):a.map(function(t){return d(e,n,r,s,t,f)}),e.seen.pop(),function(e,t,n){return e.reduce(function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(u,l,E)):E[0]+l+E[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,r,i,o){var a,s,c;if((c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),j(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(c.value)<0?(s=y(n)?h(e,c.value,null):h(e,c.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").slice(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),w(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function g(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function y(e){return null===e}function b(e){return"number"==typeof e}function v(e){return"string"==typeof e}function w(e){return void 0===e}function _(e){return E(e)&&"[object RegExp]"===O(e)}function E(e){return"object"==typeof e&&null!==e}function k(e){return E(e)&&"[object Date]"===O(e)}function x(e){return E(e)&&("[object Error]"===O(e)||e instanceof Error)}function S(e){return"function"==typeof e}function O(e){return Object.prototype.toString.call(e)}function A(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!a[e])if(s.test(e)){var n=r.pid;a[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else a[e]=function(){};return a[e]},t.inspect=u,u.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]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(9032),t.isArray=g,t.isBoolean=m,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=b,t.isString=v,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=w,t.isRegExp=_,t.types.isRegExp=_,t.isObject=E,t.isDate=k,t.types.isDate=k,t.isError=x,t.types.isNativeError=x,t.isFunction=S,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(1135);var R=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function j(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(n=[A((e=new Date).getHours()),A(e.getMinutes()),A(e.getSeconds())].join(":"),[e.getDate(),R[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(6698),t._extend=function(e,t){if(!t||!E(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var T="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function I(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(T&&e[T]){var t;if("function"!=typeof(t=e[T]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,T,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise(function(e,r){t=e,n=r}),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push(function(e,r){e?n(e):t(r)});try{e.apply(this,i)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),T&&Object.defineProperty(t,T,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,i(e))},t.promisify.custom=T,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var i=t.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var o=this,a=function(){return i.apply(o,arguments)};e.apply(this,t).then(function(e){r.nextTick(a.bind(null,null,e))},function(e){r.nextTick(I.bind(null,e,a))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,i(e)),t}},554:(e,t,n)=>{var r=n(8287).Buffer,i=r.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},o=t.I=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!i(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=s;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=c;break;default:return void(this.write=a)}this.charBuffer=new r(6),this.charReceived=0,this.charLength=0};function a(e){return e.toString(this.encoding)}function s(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function c(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}o.prototype.write=function(e){for(var t="";this.charLength;){var n=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived<this.charLength)return"";if(e=e.slice(n,e.length),!((r=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&r<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var r,i=e.length;if(this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),i=(t+=e.toString(this.encoding,0,i)).length-1,(r=t.charCodeAt(i))>=55296&&r<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},o.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},o.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,r=this.charBuffer,i=this.encoding;t+=r.slice(0,n).toString(i)}return t}},564:()=>{},592:(e,t,n)=>{"use strict";var r=n(655),i=function(){return!!r};i.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},626:(e,t,n)=>{var r=n(5606);e.exports=u;var i=n(8287).Buffer;u.WritableState=c;var o=n(5622);o.inherits=n(6698);var a=n(8310);function s(e,t,n){this.chunk=e,this.encoding=t,this.callback=n}function c(e,t){var n=(e=e||{}).highWaterMark;this.highWaterMark=n||0===n?n:16384,this.objectMode=!!e.objectMode,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var i=!1===e.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,i=n.sync,o=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,i,o){n?r.nextTick(function(){o(i)}):o(i),e._writableState.errorEmitted=!0,e.emit("error",i)}(e,0,i,t,o);else{var a=h(0,n);a||n.bufferProcessing||!n.buffer.length||function(e,t){t.bufferProcessing=!0;for(var n=0;n<t.buffer.length;n++){var r=t.buffer[n],i=r.chunk,o=r.encoding,a=r.callback;if(l(e,t,t.objectMode?1:i.length,i,o,a),t.writing){n++;break}}t.bufferProcessing=!1,n<t.buffer.length?t.buffer=t.buffer.slice(n):t.buffer.length=0}(e,n),i?r.nextTick(function(){f(e,n,a,o)}):f(e,n,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.buffer=[],this.errorEmitted=!1}function u(e){var t=n(5240);if(!(this instanceof u||this instanceof t))return new u(e);this._writableState=new c(e,this),this.writable=!0,a.call(this)}function l(e,t,n,r,i,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,e._write(r,i,t.onwrite),t.sync=!1}function f(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),r(),n&&p(e,t)}function h(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function p(e,t){var n=h(0,t);return n&&(t.finished=!0,e.emit("finish")),n}o.inherits(u,a),u.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},u.prototype.write=function(e,t,n){var o=this._writableState,a=!1;return"function"==typeof t&&(n=t,t=null),i.isBuffer(e)?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=function(){}),o.ended?function(e,t,n){var i=new Error("write after end");e.emit("error",i),r.nextTick(function(){n(i)})}(this,0,n):function(e,t,n,o){var a=!0;if(!i.isBuffer(n)&&"string"!=typeof n&&null!=n&&!t.objectMode){var s=new TypeError("Invalid non-string/buffer chunk");e.emit("error",s),r.nextTick(function(){o(s)}),a=!1}return a}(this,o,e,n)&&(a=function(e,t,n,r,o){n=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=new i(t,n)),t}(t,n,r),i.isBuffer(n)&&(r="buffer");var a=t.objectMode?1:n.length;t.length+=a;var c=t.length<t.highWaterMark;return c||(t.needDrain=!0),t.writing?t.buffer.push(new s(n,r,o)):l(e,t,a,n,r,o),c}(this,o,e,t,n)),a},u.prototype._write=function(e,t,n){n(new Error("not implemented"))},u.prototype.end=function(e,t,n){var i=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),i.ending||i.finished||function(e,t,n){t.ending=!0,p(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n)),t.ended=!0}(this,i,n)}},655:e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},717:()=>{},736:(e,t,n)=>{e.exports=function(e){function t(e){let n,i,o,a=null;function s(...e){if(!s.enabled)return;const r=s,i=Number(new Date),o=i-(n||i);r.diff=o,r.prev=n,r.curr=i,n=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,i)=>{if("%%"===n)return"%";a++;const o=t.formatters[i];if("function"==typeof o){const t=e[a];n=o.call(r,t),e.splice(a,1),a--}return n}),t.formatArgs.call(r,e),(r.log||t.log).apply(r,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=r,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function i(e,t){let n=0,r=0,i=-1,o=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||"*"===t[r]))"*"===t[r]?(i=r,o=n,r++):(n++,r++);else{if(-1===i)return!1;r=i+1,o++,n=o}for(;r<t.length&&"*"===t[r];)r++;return r===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of n)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const n of t.skips)if(i(e,n))return!1;for(const n of t.names)if(i(e,n))return!0;return!1},t.humanize=n(6585),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},765:e=>{function t(e){return Promise.resolve().then(()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}t.keys=()=>[],t.resolve=t,t.id=765,e.exports=t},920:(e,t,n)=>{"use strict";var r=n(9675),i=n(8859),o=n(4803),a=n(507),s=n(2271)||a||o;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r("Side channel does not contain "+i(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||(e=s()),e.set(t,n)}};return t}},993:()=>{},1002:e=>{"use strict";e.exports=Function.prototype.apply},1064:(e,t,n)=>{"use strict";var r=n(9612);e.exports=r.getPrototypeOf||null},1068:(e,t,n)=>{var r=n(5606),i=n(8310).Stream,o=n(537).inherits,a=n(3493),s=n(4829),c=n.g.setImmediate||r.nextTick,u=n(2350).getOptions,l={type:"put"};function f(e,t){if(!(this instanceof f))return new f(e,t);i.call(this),this._options=a(l,u(t,e)),this._db=t,this._buffer=[],this._status="init",this._end=!1,this.writable=!0,this.readable=!1;var n=this,r=function(){n.writable&&(n._status="ready",n.emit("ready"),n._process())};t.isOpen()?c(r):t.once("ready",r)}o(f,i),f.prototype.write=function(e){return!(!this.writable||(this._buffer.push(e),"init"!=this._status&&this._processDelayed(),this._options.maxBufferLength&&this._buffer.length>this._options.maxBufferLength&&(this._writeBlock=!0,1)))},f.prototype.end=function(e){var t=this;e&&this.write(e),c(function(){t._end=!0,t._process()})},f.prototype.destroy=function(){this.writable=!1,this.end()},f.prototype.destroySoon=function(){this.end()},f.prototype.add=function(e){if(e.props)return e.props.Directory?e.pipe(this._db.writeStream(this._options)):(e.props.File||e.File||"File"==e.type)&&this._write(e),!0},f.prototype._processDelayed=function(){var e=this;c(function(){e._process()})},f.prototype._process=function(){var e,t=this;if("ready"==t._status||!t.writable)return t._buffer.length&&t.writable?(t._status="writing",e=t._buffer,t._buffer=[],t._db.batch(e.map(function(e){return{type:e.type||t._options.type,key:e.key,value:e.value,keyEncoding:e.keyEncoding||t._options.keyEncoding,valueEncoding:e.valueEncoding||e.encoding||t._options.valueEncoding}}),function(e){if(t.writable){if("closed"!=t._status&&(t._status="ready"),e)return t.writable=!1,t.emit("error",e);t._process()}}),void(t._writeBlock&&(t._writeBlock=!1,t.emit("drain")))):void(t._end&&"closed"!=t._status&&(t._status="closed",t.writable=!1,t.emit("close")));t._buffer.length&&"closed"!=t._status&&t._processDelayed()},f.prototype._write=function(e){var t=e.path||e.props.path,n=this;t&&e.pipe(s(function(e,r){if(e)return n.writable=!1,n.emit("error",e);n._options.fstreamRoot&&t.indexOf(n._options.fstreamRoot)>-1&&(t=t.substr(n._options.fstreamRoot.length+1)),n.write({key:t,value:r.slice(0)})}))},f.prototype.toString=function(){return"LevelUP.WriteStream"},e.exports=f},1093:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},1097:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},1135:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},1189:(e,t,n)=>{"use strict";var r=Array.prototype.slice,i=n(1093),o=Object.keys,a=o?function(e){return o(e)}:n(8875),s=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return i(e)?s(r.call(e)):s(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},1218:(e,t,n)=>{var r=n(7007);e.exports=function(){var e={},t=new r.EventEmitter;return t.watch=function(t,n){return e[t]||(e[t]=new r.EventEmitter,e[t].setMaxListeners(0)),n&&e[t].on("change",n),e[t]},t.watcher=function(e,n){var i=new r.EventEmitter,o=function(){i.emit("change","change",e)};return t.watch(e,o),n&&i.on("change",n),i.close=function(){t.unwatch(e,o)},i},t.unwatch=function(t,n){e[t]&&(n?e[t].removeListener("change",n):e[t].removeAllListeners("change"),e[t].listeners("change").length||delete e[t])},t.change=function(n){e[n]&&e[n].emit("change"),t.emit("change",n)},t.cb=function(e,n){return function(r,i){e&&t.change(e),n&&n(r,i)}},t}},1237:e=>{"use strict";e.exports=EvalError},1333:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var r in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},1421:(e,t,n)=>{var r=n(537),i=n(1831).No,o=n(4602);function a(e,t){t||(t={}),this.options=t,i.call(this,e),this._order=t.reverse?"DESC":"ASC",this._limit=t.limit,this._count=0,this._done=!1;var n=o.lowerBound(t),r=o.upperBound(t);try{this._keyRange=n||r?this.db.makeKeyRange({lower:n,upper:r,excludeLower:o.lowerBoundExclusive(t),excludeUpper:o.upperBoundExclusive(t)}):null}catch(e){this._keyRangeError=!0}this.callback=null}e.exports=a,r.inherits(a,i),a.prototype.createIterator=function(){var e=this;e.iterator=e.db.iterate(function(){e.onItem.apply(e,arguments)},{keyRange:e._keyRange,autoContinue:!1,order:e._order,onError:function(e){console.log("horrible error",e)}})},a.prototype.onItem=function(e,t,n){if(!t&&this.callback)return this.callback(),void(this.callback=!1);var r=!0;this._limit&&this._limit>0&&this._count++>=this._limit&&(r=!1),r&&this.callback(!1,t.key,t.value),t&&t.continue()},a.prototype._next=function(e){return e?this._keyRangeError?e():(this._started||(this.createIterator(),this._started=!0),void(this.callback=e)):new Error("next() requires a callback argument")}},1438:(e,t,n)=>{var r=n(5606);e.exports=f;var i=n(2880),o=n(8287).Buffer;f.ReadableState=l;var a=n(7007).EventEmitter;a.listenerCount||(a.listenerCount=function(e,t){return e.listeners(t).length});var s,c=n(8310),u=n(5622);function l(e,t){var r=(e=e||{}).highWaterMark;this.highWaterMark=r||0===r?r:16384,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=!1,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.calledRead=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!e.objectMode,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=n(5641).I),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function f(e){if(!(this instanceof f))return new f(e);this._readableState=new l(e,this),this.readable=!0,c.call(this)}function h(e,t,n,i,a){var s=function(e,t){var n=null;return o.isBuffer(t)||"string"==typeof t||null==t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(t,n);if(s)e.emit("error",s);else if(null==n)t.reading=!1,t.ended||function(e,t){if(t.decoder&&!t.ended){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.length>0?g(e):_(e)}(e,t);else if(t.objectMode||n&&n.length>0)if(t.ended&&!a){var c=new Error("stream.push() after EOF");e.emit("error",c)}else t.endEmitted&&a?(c=new Error("stream.unshift() after end event"),e.emit("error",c)):(!t.decoder||a||i||(n=t.decoder.write(n)),t.length+=t.objectMode?1:n.length,a?t.buffer.unshift(n):(t.reading=!1,t.buffer.push(n)),t.needReadable&&g(e),function(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(function(){!function(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}(e,t)}))}(e,t));else a||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}u.inherits=n(6698),u.inherits(f,c),f.prototype.push=function(e,t){var n=this._readableState;return"string"!=typeof e||n.objectMode||(t=t||n.defaultEncoding)!==n.encoding&&(e=new o(e,t),t=""),h(this,n,e,t,!1)},f.prototype.unshift=function(e){return h(this,this._readableState,e,"",!0)},f.prototype.setEncoding=function(e){s||(s=n(5641).I),this._readableState.decoder=new s(e),this._readableState.encoding=e};var p=8388608;function d(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:null===e||isNaN(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:e<=0?0:(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>=p)e=p;else{e--;for(var t=1;t<32;t<<=1)e|=e>>t;e++}return e}(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function g(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,t.sync?r.nextTick(function(){m(e)}):m(e))}function m(e){e.emit("readable")}function y(e){var t,n=e._readableState;function r(e,r,i){!1===e.write(t)&&n.awaitDrain++}for(n.awaitDrain=0;n.pipesCount&&null!==(t=e.read());)if(1===n.pipesCount?r(n.pipes):E(n.pipes,r),e.emit("data",t),n.awaitDrain>0)return;if(0===n.pipesCount)return n.flowing=!1,void(a.listenerCount(e,"data")>0&&v(e));n.ranOut=!0}function b(){this._readableState.ranOut&&(this._readableState.ranOut=!1,y(this))}function v(e,t){if(e._readableState.flowing)throw new Error("Cannot switch to old mode now.");var n=t||!1,i=!1;e.readable=!0,e.pipe=c.prototype.pipe,e.on=e.addListener=c.prototype.on,e.on("readable",function(){var t;for(i=!0;!n&&null!==(t=e.read());)e.emit("data",t);null===t&&(i=!1,e._readableState.needReadable=!0)}),e.pause=function(){n=!0,this.emit("pause")},e.resume=function(){n=!1,i?r.nextTick(function(){e.emit("readable")}):this.read(0),this.emit("resume")},e.emit("readable")}function w(e,t){var n,r=t.buffer,i=t.length,a=!!t.decoder,s=!!t.objectMode;if(0===r.length)return null;if(0===i)n=null;else if(s)n=r.shift();else if(!e||e>=i)n=a?r.join(""):o.concat(r,i),r.length=0;else if(e<r[0].length)n=(f=r[0]).slice(0,e),r[0]=f.slice(e);else if(e===r[0].length)n=r.shift();else{n=a?"":new o(e);for(var c=0,u=0,l=r.length;u<l&&c<e;u++){var f=r[0],h=Math.min(e-c,f.length);a?n+=f.slice(0,h):f.copy(n,c,0,h),h<f.length?r[0]=f.slice(h):r.shift(),c+=h}}return n}function _(e){var t=e._readableState;if(t.length>0)throw new Error("endReadable called on non-empty stream");!t.endEmitted&&t.calledRead&&(t.ended=!0,r.nextTick(function(){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}))}function E(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n)}f.prototype.read=function(e){var t=this._readableState;t.calledRead=!0;var n,r=e;if(("number"!=typeof e||e>0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return g(this),null;if(0===(e=d(e,t))&&t.ended)return n=null,t.length>0&&t.decoder&&(n=w(e,t),t.length-=n.length),0===t.length&&_(this),n;var i=t.needReadable;return t.length-e<=t.highWaterMark&&(i=!0),(t.ended||t.reading)&&(i=!1),i&&(t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1),i&&!t.reading&&(e=d(r,t)),null===(n=e>0?w(e,t):null)&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),t.ended&&!t.endEmitted&&0===t.length&&_(this),n},f.prototype._read=function(e){this.emit("error",new Error("not implemented"))},f.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1;var s=t&&!1===t.end||e===r.stdout||e===r.stderr?f:u;function c(e){e===n&&f()}function u(){e.end()}o.endEmitted?r.nextTick(s):n.once("end",s),e.on("unpipe",c);var l=function(e){return function(){var t=e._readableState;t.awaitDrain--,0===t.awaitDrain&&y(e)}}(n);function f(){e.removeListener("close",p),e.removeListener("finish",d),e.removeListener("drain",l),e.removeListener("error",h),e.removeListener("unpipe",c),n.removeListener("end",u),n.removeListener("end",f),e._writableState&&!e._writableState.needDrain||l()}function h(t){g(),e.removeListener("error",h),0===a.listenerCount(e,"error")&&e.emit("error",t)}function p(){e.removeListener("finish",d),g()}function d(){e.removeListener("close",p),g()}function g(){n.unpipe(e)}return e.on("drain",l),e._events&&e._events.error?i(e._events.error)?e._events.error.unshift(h):e._events.error=[h,e._events.error]:e.on("error",h),e.once("close",p),e.once("finish",d),e.emit("pipe",n),o.flowing||(this.on("readable",b),o.flowing=!0,r.nextTick(function(){y(n)})),e},f.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,this.removeListener("readable",b),t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,this.removeListener("readable",b),t.flowing=!1;for(var i=0;i<r;i++)n[i].emit("unpipe",this);return this}return-1===(i=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}(t.pipes,e))||(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},f.prototype.on=function(e,t){var n=c.prototype.on.call(this,e,t);if("data"!==e||this._readableState.flowing||v(this),"readable"===e&&this.readable){var r=this._readableState;r.readableListening||(r.readableListening=!0,r.emittedReadable=!1,r.needReadable=!0,r.reading?r.length&&g(this):this.read(0))}return n},f.prototype.addListener=f.prototype.on,f.prototype.resume=function(){v(this),this.read(0),this.emit("resume")},f.prototype.pause=function(){v(this,!0),this.emit("pause")},f.prototype.wrap=function(e){var t=this._readableState,n=!1,r=this;for(var i in e.on("end",function(){if(t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)}),e.on("data",function(i){t.decoder&&(i=t.decoder.write(i)),t.objectMode&&null==i||(t.objectMode||i&&i.length)&&(r.push(i)||(n=!0,e.pause()))}),e)"function"==typeof e[i]&&void 0===this[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return E(["error","close","destroy","pause","resume"],function(t){e.on(t,r.emit.bind(r,t))}),r._read=function(t){n&&(n=!1,e.resume())},r},f._fromList=w},1445:(e,t,n)=>{var r=n(5606);e.exports=u;var i=n(8287).Buffer;u.WritableState=c;var o=n(5622);o.inherits=n(6698);var a=n(8310);function s(e,t,n){this.chunk=e,this.encoding=t,this.callback=n}function c(e,t){var n=(e=e||{}).highWaterMark;this.highWaterMark=n||0===n?n:16384,this.objectMode=!!e.objectMode,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var i=!1===e.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,i=n.sync,o=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,i,o){n?r.nextTick(function(){o(i)}):o(i),e._writableState.errorEmitted=!0,e.emit("error",i)}(e,0,i,t,o);else{var a=h(0,n);a||n.bufferProcessing||!n.buffer.length||function(e,t){t.bufferProcessing=!0;for(var n=0;n<t.buffer.length;n++){var r=t.buffer[n],i=r.chunk,o=r.encoding,a=r.callback;if(l(e,t,t.objectMode?1:i.length,i,o,a),t.writing){n++;break}}t.bufferProcessing=!1,n<t.buffer.length?t.buffer=t.buffer.slice(n):t.buffer.length=0}(e,n),i?r.nextTick(function(){f(e,n,a,o)}):f(e,n,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.buffer=[],this.errorEmitted=!1}function u(e){var t=n(1511);if(!(this instanceof u||this instanceof t))return new u(e);this._writableState=new c(e,this),this.writable=!0,a.call(this)}function l(e,t,n,r,i,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,e._write(r,i,t.onwrite),t.sync=!1}function f(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),r(),n&&p(e,t)}function h(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function p(e,t){var n=h(0,t);return n&&(t.finished=!0,e.emit("finish")),n}o.inherits(u,a),u.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},u.prototype.write=function(e,t,n){var o=this._writableState,a=!1;return"function"==typeof t&&(n=t,t=null),i.isBuffer(e)?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=function(){}),o.ended?function(e,t,n){var i=new Error("write after end");e.emit("error",i),r.nextTick(function(){n(i)})}(this,0,n):function(e,t,n,o){var a=!0;if(!i.isBuffer(n)&&"string"!=typeof n&&null!=n&&!t.objectMode){var s=new TypeError("Invalid non-string/buffer chunk");e.emit("error",s),r.nextTick(function(){o(s)}),a=!1}return a}(this,o,e,n)&&(a=function(e,t,n,r,o){n=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=new i(t,n)),t}(t,n,r),i.isBuffer(n)&&(r="buffer");var a=t.objectMode?1:n.length;t.length+=a;var c=t.length<t.highWaterMark;return c||(t.needDrain=!0),t.writing?t.buffer.push(new s(n,r,o)):l(e,t,a,n,r,o),c}(this,o,e,t,n)),a},u.prototype._write=function(e,t,n){n(new Error("not implemented"))},u.prototype.end=function(e,t,n){var i=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),i.ending||i.finished||function(e,t,n){t.ending=!0,p(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n)),t.ended=!0}(this,i,n)}},1447:(e,t,n)=>{"use strict";var r=n(9805),i=n(3269),o=n(4823),a=n(7293),s=n(1998),c=-2,u=12,l=30;function f(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function h(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function p(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(852),t.distcode=t.distdyn=new r.Buf32(592),t.sane=1,t.back=-1,0):c}function d(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,p(e)):c}function g(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?c:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,d(e))):c}function m(e,t){var n,r;return e?(r=new h,e.state=r,r.window=null,0!==(n=g(e,t))&&(e.state=null),n):c}var y,b,v=!0;function w(e){if(v){var t;for(y=new r.Buf32(512),b=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(1,e.lens,0,288,y,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,b,0,e.work,{bits:5}),v=!1}e.lencode=y,e.lenbits=9,e.distcode=b,e.distbits=5}function _(e,t,n,i){var o,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new r.Buf8(a.wsize)),i>=a.wsize?(r.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>i&&(o=i),r.arraySet(a.window,t,n-i,o,a.wnext),(i-=o)?(r.arraySet(a.window,t,n-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}t.inflateReset=d,t.inflateReset2=g,t.inflateResetKeep=p,t.inflateInit=function(e){return m(e,15)},t.inflateInit2=m,t.inflate=function(e,t){var n,h,p,d,g,m,y,b,v,E,k,x,S,O,A,R,j,T,I,M,L,B,C,N,P=0,D=new r.Buf8(4),F=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return c;(n=e.state).mode===u&&(n.mode=13),g=e.next_out,p=e.output,y=e.avail_out,d=e.next_in,h=e.input,m=e.avail_in,b=n.hold,v=n.bits,E=m,k=y,B=0;e:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;v<16;){if(0===m)break e;m--,b+=h[d++]<<v,v+=8}if(2&n.wrap&&35615===b){n.check=0,D[0]=255&b,D[1]=b>>>8&255,n.check=o(n.check,D,2,0),b=0,v=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&b)<<8)+(b>>8))%31){e.msg="incorrect header check",n.mode=l;break}if(8!=(15&b)){e.msg="unknown compression method",n.mode=l;break}if(v-=4,L=8+(15&(b>>>=4)),0===n.wbits)n.wbits=L;else if(L>n.wbits){e.msg="invalid window size",n.mode=l;break}n.dmax=1<<L,e.adler=n.check=1,n.mode=512&b?10:u,b=0,v=0;break;case 2:for(;v<16;){if(0===m)break e;m--,b+=h[d++]<<v,v+=8}if(n.flags=b,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=l;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=l;break}n.head&&(n.head.text=b>>8&1),512&n.flags&&(D[0]=255&b,D[1]=b>>>8&255,n.check=o(n.check,D,2,0)),b=0,v=0,n.mode=3;case 3:for(;v<32;){if(0===m)break e;m--,b+=h[d++]<<v,v+=8}n.head&&(n.head.time=b),512&n.flags&&(D[0]=255&b,D[1]=b>>>8&255,D[2]=b>>>16&255,D[3]=b>>>24&255,n.check=o(n.check,D,4,0)),b=0,v=0,n.mode=4;case 4:for(;v<16;){if(0===m)break e;m--,b+=h[d++]<<v,v+=8}n.head&&(n.head.xflags=255&b,n.head.os=b>>8),512&n.flags&&(D[0]=255&b,D[1]=b>>>8&255,n.check=o(n.check,D,2,0)),b=0,v=0,n.mode=5;case 5:if(1024&n.flags){for(;v<16;){if(0===m)break e;m--,b+=h[d++]<<v,v+=8}n.length=b,n.head&&(n.head.extra_len=b),512&n.flags&&(D[0]=255&b,D[1]=b>>>8&255,n.check=o(n.check,D,2,0)),b=0,v=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((x=n.length)>m&&(x=m),x&&(n.head&&(L=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,h,d,x,L)),512&n.flags&&(n.check=o(n.check,h,x,d)),m-=x,d+=x,n.length-=x),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===m)break e;x=0;do{L=h[d+x++],n.head&&L&&n.length<65536&&(n.head.name+=String.fromCharCode(L))}while(L&&x<m);if(512&n.flags&&(n.check=o(n.check,h,x,d)),m-=x,d+=x,L)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===m)break e;x=0;do{L=h[d+x++],n.head&&L&&n.length<65536&&(n.head.comment+=String.fromCharCode(L))}while(L&&x<m);if(512&n.flags&&(n.check=o(n.check,h,x,d)),m-=x,d+=x,L)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;v<16;){if(0===m)break e;m--,b+=h[d++]<<v,v+=8}if(b!==(65535&n.check)){e.msg="header crc mismatch",n.mode=l;break}b=0,v=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=u;break;case 10:for(;v<32;){if(0===m)break e;m--,b+=h[d++]<<v,v+=8}e.adler=n.check=f(b),b=0,v=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=g,e.avail_out=y,e.next_in=d,e.avail_in=m,n.hold=b,n.bits=v,2;e.adler=n.check=1,n.mode=u;case u:if(5===t||6===t)break e;case 13:if(n.last){b>>>=7&v,v-=7&v,n.mode=27;break}for(;v<3;){if(0===m)break e;m--,b+=h[d++]<<v,v+=8}switch(n.last=1&b,v-=1,3&(b>>>=1)){case 0:n.mode=14;break;case 1:if(w(n),n.mode=20,6===t){b>>>=2,v-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=l}b>>>=2,v-=2;break;case 14:for(b>>>=7&v,v-=7&v;v<32;){if(0===m)break e;m--,b+=h[d++]<<v,v+=8}if((65535&b)!=(b>>>16^65535)){e.msg="invalid stored block lengths",n.mode=l;break}if(n.length=65535&b,b=0,v=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(x=n.length){if(x>m&&(x=m),x>y&&(x=y),0===x)break e;r.arraySet(p,h,d,x,g),m-=x,d+=x,y-=x,g+=x,n.length-=x;break}n.mode=u;break;case 17:for(;v<14;){if(0===m)break e;m--,b+=h[d++]<<v,v+=8}if(n.nlen=257+(31&b),b>>>=5,v-=5,n.ndist=1+(31&b),b>>>=5,v-=5,n.ncode=4+(15&b),b>>>=4,v-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=l;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;v<3;){if(0===m)break e;m--,b+=h[d++]<<v,v+=8}n.lens[F[n.have++]]=7&b,b>>>=3,v-=3}for(;n.have<19;)n.lens[F[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,C={bits:n.lenbits},B=s(0,n.lens,0,19,n.lencode,0,n.work,C),n.lenbits=C.bits,B){e.msg="invalid code lengths set",n.mode=l;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;R=(P=n.lencode[b&(1<<n.lenbits)-1])>>>16&255,j=65535&P,!((A=P>>>24)<=v);){if(0===m)break e;m--,b+=h[d++]<<v,v+=8}if(j<16)b>>>=A,v-=A,n.lens[n.have++]=j;else{if(16===j){for(N=A+2;v<N;){if(0===m)break e;m--,b+=h[d++]<<v,v+=8}if(b>>>=A,v-=A,0===n.have){e.msg="invalid bit length repeat",n.mode=l;break}L=n.lens[n.have-1],x=3+(3&b),b>>>=2,v-=2}else if(17===j){for(N=A+3;v<N;){if(0===m)break e;m--,b+=h[d++]<<v,v+=8}v-=A,L=0,x=3+(7&(b>>>=A)),b>>>=3,v-=3}else{for(N=A+7;v<N;){if(0===m)break e;m--,b+=h[d++]<<v,v+=8}v-=A,L=0,x=11+(127&(b>>>=A)),b>>>=7,v-=7}if(n.have+x>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=l;break}for(;x--;)n.lens[n.have++]=L}}if(n.mode===l)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=l;break}if(n.lenbits=9,C={bits:n.lenbits},B=s(1,n.lens,0,n.nlen,n.lencode,0,n.work,C),n.lenbits=C.bits,B){e.msg="invalid literal/lengths set",n.mode=l;break}if(n.distbits=6,n.distcode=n.distdyn,C={bits:n.distbits},B=s(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,C),n.distbits=C.bits,B){e.msg="invalid distances set",n.mode=l;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(m>=6&&y>=258){e.next_out=g,e.avail_out=y,e.next_in=d,e.avail_in=m,n.hold=b,n.bits=v,a(e,k),g=e.next_out,p=e.output,y=e.avail_out,d=e.next_in,h=e.input,m=e.avail_in,b=n.hold,v=n.bits,n.mode===u&&(n.back=-1);break}for(n.back=0;R=(P=n.lencode[b&(1<<n.lenbits)-1])>>>16&255,j=65535&P,!((A=P>>>24)<=v);){if(0===m)break e;m--,b+=h[d++]<<v,v+=8}if(R&&!(240&R)){for(T=A,I=R,M=j;R=(P=n.lencode[M+((b&(1<<T+I)-1)>>T)])>>>16&255,j=65535&P,!(T+(A=P>>>24)<=v);){if(0===m)break e;m--,b+=h[d++]<<v,v+=8}b>>>=T,v-=T,n.back+=T}if(b>>>=A,v-=A,n.back+=A,n.length=j,0===R){n.mode=26;break}if(32&R){n.back=-1,n.mode=u;break}if(64&R){e.msg="invalid literal/length code",n.mode=l;break}n.extra=15&R,n.mode=22;case 22:if(n.extra){for(N=n.extra;v<N;){if(0===m)break e;m--,b+=h[d++]<<v,v+=8}n.length+=b&(1<<n.extra)-1,b>>>=n.extra,v-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;R=(P=n.distcode[b&(1<<n.distbits)-1])>>>16&255,j=65535&P,!((A=P>>>24)<=v);){if(0===m)break e;m--,b+=h[d++]<<v,v+=8}if(!(240&R)){for(T=A,I=R,M=j;R=(P=n.distcode[M+((b&(1<<T+I)-1)>>T)])>>>16&255,j=65535&P,!(T+(A=P>>>24)<=v);){if(0===m)break e;m--,b+=h[d++]<<v,v+=8}b>>>=T,v-=T,n.back+=T}if(b>>>=A,v-=A,n.back+=A,64&R){e.msg="invalid distance code",n.mode=l;break}n.offset=j,n.extra=15&R,n.mode=24;case 24:if(n.extra){for(N=n.extra;v<N;){if(0===m)break e;m--,b+=h[d++]<<v,v+=8}n.offset+=b&(1<<n.extra)-1,b>>>=n.extra,v-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=l;break}n.mode=25;case 25:if(0===y)break e;if(x=k-y,n.offset>x){if((x=n.offset-x)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=l;break}x>n.wnext?(x-=n.wnext,S=n.wsize-x):S=n.wnext-x,x>n.length&&(x=n.length),O=n.window}else O=p,S=g-n.offset,x=n.length;x>y&&(x=y),y-=x,n.length-=x;do{p[g++]=O[S++]}while(--x);0===n.length&&(n.mode=21);break;case 26:if(0===y)break e;p[g++]=n.length,y--,n.mode=21;break;case 27:if(n.wrap){for(;v<32;){if(0===m)break e;m--,b|=h[d++]<<v,v+=8}if(k-=y,e.total_out+=k,n.total+=k,k&&(e.adler=n.check=n.flags?o(n.check,p,k,g-k):i(n.check,p,k,g-k)),k=y,(n.flags?b:f(b))!==n.check){e.msg="incorrect data check",n.mode=l;break}b=0,v=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;v<32;){if(0===m)break e;m--,b+=h[d++]<<v,v+=8}if(b!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=l;break}b=0,v=0}n.mode=29;case 29:B=1;break e;case l:B=-3;break e;case 31:return-4;default:return c}return e.next_out=g,e.avail_out=y,e.next_in=d,e.avail_in=m,n.hold=b,n.bits=v,(n.wsize||k!==e.avail_out&&n.mode<l&&(n.mode<27||4!==t))&&_(e,e.output,e.next_out,k-e.avail_out)?(n.mode=31,-4):(E-=e.avail_in,k-=e.avail_out,e.total_in+=E,e.total_out+=k,n.total+=k,n.wrap&&k&&(e.adler=n.check=n.flags?o(n.check,p,k,e.next_out-k):i(n.check,p,k,e.next_out-k)),e.data_type=n.bits+(n.last?64:0)+(n.mode===u?128:0)+(20===n.mode||15===n.mode?256:0),(0===E&&0===k||4===t)&&0===B&&(B=-5),B)},t.inflateEnd=function(e){if(!e||!e.state)return c;var t=e.state;return t.window&&(t.window=null),e.state=null,0},t.inflateGetHeader=function(e,t){var n;return e&&e.state&&2&(n=e.state).wrap?(n.head=t,t.done=!1,0):c},t.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?c:11===n.mode&&i(1,t,r,0)!==n.check?-3:_(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,0):c},t.inflateInfo="pako inflate (from Nodeca project)"},1511:(e,t,n)=>{var r=n(5606);e.exports=c;var i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t},o=n(5622);o.inherits=n(6698);var a=n(7349),s=n(1445);function c(e){if(!(this instanceof c))return new c(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",u)}function u(){this.allowHalfOpen||this._writableState.ended||r.nextTick(this.end.bind(this))}o.inherits(c,a),function(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n])}(i(s.prototype),function(e){c.prototype[e]||(c.prototype[e]=s.prototype[e])})},1514:e=>{"use strict";e.exports=Math.abs},1534:()=>{},1643:(e,t,n)=>{e.exports=o;var r=n(3497),i=n(5622);function o(e){if(!(this instanceof o))return new o(e);r.call(this,e)}i.inherits=n(6698),i.inherits(o,r),o.prototype._transform=function(e,t,n){n(null,e)}},1657:(e,t,n)=>{"use strict";e.exports=a;var r=n(4935),i=Object.create(n(5622));function o(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function a(e){if(!(this instanceof a))return new a(e);r.call(this,e),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",s)}function s(){var e=this;"function"==typeof this._flush?this._flush(function(t,n){c(e,t,n)}):c(this,null,null)}function c(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=n(6698),i.inherits(a,r),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},a.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,function(e){t(e),n.emit("close")})}},1779:(e,t,n)=>{"use strict";var r=n(8287).Buffer;function i(e){return Object.prototype.toString.call(e)}function o(e,t,n,o){var a=[],s=[],c=void 0!==r;return void 0===t&&(t=!0),void 0===n&&(n=1/0),function e(n,u){if(null===n)return null;if(0==u)return n;var l,f,h,p,d;if("object"!=typeof n)return n;if(d=n,Array.isArray(d)||"object"==typeof d&&"[object Array]"===i(d))l=[];else if("object"==typeof(p=n)&&"[object RegExp]"===i(p))l=new RegExp(n.source,function(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}(n)),n.lastIndex&&(l.lastIndex=n.lastIndex);else if("object"==typeof(h=n)&&"[object Date]"===i(h))l=new Date(n.getTime());else{if(c&&r.isBuffer(n))return l=new r(n.length),n.copy(l),l;void 0===o?(f=Object.getPrototypeOf(n),l=Object.create(f)):(l=Object.create(o),f=o)}if(t){var g=a.indexOf(n);if(-1!=g)return s[g];a.push(n),s.push(l)}for(var m in n){var y;f&&(y=Object.getOwnPropertyDescriptor(f,m)),y&&null==y.set||(l[m]=e(n[m],u-1))}return l}(e,n)}e.exports=o,o.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t}},1831:(e,t,n)=>{var r=n(5606),i=n(8287).Buffer,o=n(3409),a=n(4427),s=n(2768);function c(e){if(!arguments.length||void 0===e)throw new Error("constructor requires at least a location argument");if("string"!=typeof e)throw new Error("constructor requires a location string argument");this.location=e}c.prototype.open=function(e,t){if("function"==typeof e&&(t=e),"function"!=typeof t)throw new Error("open() requires a callback argument");if("object"!=typeof e&&(e={}),"function"==typeof this._open)return this._open(e,t);r.nextTick(t)},c.prototype.close=function(e){if("function"!=typeof e)throw new Error("close() requires a callback argument");if("function"==typeof this._close)return this._close(e);r.nextTick(e)},c.prototype.get=function(e,t,n){var i;if("function"==typeof t&&(n=t),"function"!=typeof n)throw new Error("get() requires a callback argument");return(i=this._checkKeyValue(e,"key",this._isBuffer))?n(i):(this._isBuffer(e)||(e=String(e)),"object"!=typeof t&&(t={}),"function"==typeof this._get?this._get(e,t,n):void r.nextTick(function(){n(new Error("NotFound"))}))},c.prototype.put=function(e,t,n,i){var o;if("function"==typeof n&&(i=n),"function"!=typeof i)throw new Error("put() requires a callback argument");return(o=this._checkKeyValue(e,"key",this._isBuffer))||(o=this._checkKeyValue(t,"value",this._isBuffer))?i(o):(this._isBuffer(e)||(e=String(e)),this._isBuffer(t)||r.browser||(t=String(t)),"object"!=typeof n&&(n={}),"function"==typeof this._put?this._put(e,t,n,i):void r.nextTick(i))},c.prototype.del=function(e,t,n){var i;if("function"==typeof t&&(n=t),"function"!=typeof n)throw new Error("del() requires a callback argument");return(i=this._checkKeyValue(e,"key",this._isBuffer))?n(i):(this._isBuffer(e)||(e=String(e)),"object"!=typeof t&&(t={}),"function"==typeof this._del?this._del(e,t,n):void r.nextTick(n))},c.prototype.batch=function(e,t,n){if(!arguments.length)return this._chainedBatch();if("function"==typeof t&&(n=t),"function"!=typeof n)throw new Error("batch(array) requires a callback argument");if(!Array.isArray(e))return n(new Error("batch(array) requires an array argument"));"object"!=typeof t&&(t={});for(var i,o,a=0,s=e.length;a<s;a++)if("object"==typeof(i=e[a])){if(o=this._checkKeyValue(i.type,"type",this._isBuffer))return n(o);if(o=this._checkKeyValue(i.key,"key",this._isBuffer))return n(o);if("put"==i.type&&(o=this._checkKeyValue(i.value,"value",this._isBuffer)))return n(o)}if("function"==typeof this._batch)return this._batch(e,t,n);r.nextTick(n)},c.prototype.approximateSize=function(e,t,n){if(null==e||null==t||"function"==typeof e||"function"==typeof t)throw new Error("approximateSize() requires valid `start`, `end` and `callback` arguments");if("function"!=typeof n)throw new Error("approximateSize() requires a callback argument");if(this._isBuffer(e)||(e=String(e)),this._isBuffer(t)||(t=String(t)),"function"==typeof this._approximateSize)return this._approximateSize(e,t,n);r.nextTick(function(){n(null,0)})},c.prototype._setupIteratorOptions=function(e){var t=this;return e=o(e),["start","end","gt","gte","lt","lte"].forEach(function(n){e[n]&&t._isBuffer(e[n])&&0===e[n].length&&delete e[n]}),e.reverse=!!e.reverse,e.reverse&&e.lt&&(e.start=e.lt),e.reverse&&e.lte&&(e.start=e.lte),!e.reverse&&e.gt&&(e.start=e.gt),!e.reverse&&e.gte&&(e.start=e.gte),(e.reverse&&e.lt&&!e.lte||!e.reverse&&e.gt&&!e.gte)&&(e.exclusiveStart=!0),e},c.prototype.iterator=function(e){return"object"!=typeof e&&(e={}),e=this._setupIteratorOptions(e),"function"==typeof this._iterator?this._iterator(e):new a(this)},c.prototype._chainedBatch=function(){return new s(this)},c.prototype._isBuffer=function(e){return i.isBuffer(e)},c.prototype._checkKeyValue=function(e,t){if(null==e)return new Error(t+" cannot be `null` or `undefined`");if(this._isBuffer(e)){if(0===e.length)return new Error(t+" cannot be an empty Buffer")}else if(""===String(e))return new Error(t+" cannot be an empty String")},e.exports.Z$=c,e.exports.No=a},1891:(e,t,n)=>{var r=n(5606),i=n(8287).Buffer,o=n(4837),a=n(5584),s=n(7432),c=n(4123),u=n(3519),l=n(6788),f=n(8571),h=n(5363),p=n(1218),d=function(e,t,n){r.nextTick(function(){e(t,n)})},g=function(){};e.exports=function(e,t){var n={};e=a(e);var m=s(e.sublevel("blobs"),t),y=h(e.sublevel("stats")),b=e.sublevel("links"),v=p(),w=[],_=Date.now();n.mkdir=function(e,t,r){if("function"==typeof t)return n.mkdir(e,null,t);t||(t=l(777)),r||(r=g),y.follow(e,function(e,n,i){return e&&"ENOENT"!==e.code?r(e):n?r(f.EEXIST(i)):void y.put(i,{type:"directory",mode:t,size:4096},v.cb(i,r))})},n.rmdir=function(e,t){t||(t=g),y.follow(e,function(e,r,i){if(e)return t(e);n.readdir(i,function(e,n){return e?t(e):n.length?t(f.ENOTEMPTY(i)):void y.del(i,v.cb(i,t))})})},n.readdir=function(e,t){y.follow(e,function(e,n,r){return e?t(e):n?n.isDirectory()?void y.list(r,t):t(f.ENOTDIR(r)):t(f.ENOENT(r))})};var E=function(e,t,n){t(e,function(e,t,r){if(e)return n(e);if(!t.isFile())return n(null,t);var i=t&&t.blob||r;m.size(i,function(e,r){if(e)return n(e);t.size=r,n(null,t)})})};n.stat=function(e,t){E(e,y.follow,t)},n.lstat=function(e,t){E(e,y.get,t)},n.exists=function(e,t){y.follow(e,function(e){t(!e)})};var k=function(e,t,n,r){r||(r=g),t(e,function(e,t,i){if(e)return r(e);y.update(i,{mode:n},v.cb(i,r))})};n.chmod=function(e,t,n){k(e,y.follow,t,n)},n.lchmod=function(e,t,n){k(e,y.get,t,n)};var x=function(e,t,n,r,i){i||(i=g),t(e,function(e,t,o){if(e)return i(e);y.update(o,{uid:n,gid:r},v.cb(o,i))})};return n.chown=function(e,t,n,r){x(e,y.follow,t,n,r)},n.lchown=function(e,t,n,r){x(e,y.get,t,n,r)},n.utimes=function(e,t,n,r){r||(r=g),y.follow(e,function(e,i,o){if(e)return r(e);var a={};t&&(a.atime=t),n&&(a.mtime=n),y.update(o,a,v.cb(o,r))})},n.rename=function(e,t,r){r||(r=g),y.follow(e,function(e,i,o){if(e)return r(e);var a=function(){r=v.cb(t,v.cb(o,r)),y.put(t,i,function(e){if(e)return r(e);y.del(o,r)})};y.follow(t,function(e,t,s){return e&&"ENOENT"!==e.code?r(e):t?i.isDirectory()!==t.isDirectory()?r(f.EISDIR(o)):void(t.isDirectory()?n.readdir(s,function(e,t){return e?r(e):t.length?r(f.ENOTEMPTY(o)):void a()}):a()):a()})})},n.realpath=function(e,t,r){if("function"==typeof t)return n.realpath(e,null,t);y.follow(e,function(e,t,n){if(e)return r(e);r(null,n)})},n.writeFile=function(e,t,r,o){if("function"==typeof r)return n.writeFile(e,t,null,r);"string"==typeof r&&(r={encoding:r}),r||(r={}),o||(o=g),i.isBuffer(t)||(t=new i(t,r.encoding||"utf-8"));var a=r.flags||"w";r.append="w"!==a[0],y.follow(e,function(e,n,i){if(e&&"ENOENT"!==e.code)return o(e);if(n&&n.isDirectory())return o(f.EISDIR(i));if(n&&"x"===a[1])return o(f.EEXIST(i));var s=n&&n.blob||i;y.writable(i,function(e){if(e)return o(e);m.write(s,t,r,function(e){if(e)return o(e);y.put(i,{ctime:n&&n.ctime,mtime:new Date,mode:r.mode||l(666),type:"file"},v.cb(i,o))})})})},n.appendFile=function(e,t,r,i){if("function"==typeof r)return n.appendFile(e,t,null,r);"string"==typeof r&&(r={encoding:r}),r||(r={}),r.flags="a",n.writeFile(e,t,r,i)},n.unlink=function(e,t){t||(t=g),y.get(e,function(e,n,r){if(e)return t(e);if(n.isDirectory())return t(f.EISDIR(r));var i=function(e){c(b,{start:e+"ÿ",end:e+"ÿÿ"},function(n){if(n)return m.remove(e,t);t()})};y.del(r,v.cb(r,function(e){return e?t(e):n.link?(o=n.link.slice(0,n.link.indexOf("ÿ")),void b.del(n.link,function(e){if(e)return t(e);i(o)})):void b.del(r+"ÿ",function(e){if(e)return t(e);i(r)});var o}))})},n.readFile=function(e,t,r){if("function"==typeof t)return n.readFile(e,null,t);"string"==typeof t&&(t={encoding:t}),t||(t={}),t.encoding,t.flag,y.follow(e,function(e,n,i){if(e)return r(e);if(n.isDirectory())return r(f.EISDIR(i));var o=n&&n.blob||i;m.read(o,function(e,n){if(e)return r(e);r(null,t.encoding?n.toString(t.encoding):n)})})},n.createReadStream=function(e,t){t||(t={});var n=!1,i=o.readable(function(o){y.follow(e,function(e,a,s){if(e)return o(e);if(a.isDirectory())return o(f.EISDIR(s));var c=a&&a.blob||s,u=m.createReadStream(c,t);i.emit("open"),u.on("end",function(){r.nextTick(function(){n||i.emit("close")})}),o(null,u)})});return i.on("close",function(){n=!0}),i},n.createWriteStream=function(e,t){t||(t={});var n=t.flags||"w",r=!1,i=t.mode||l(666);t.append="a"===n[0];var a=o.writable(function(o){y.follow(e,function(e,s,c){if(e&&"ENOENT"!==e.code)return o(e);if(s&&s.isDirectory())return o(f.EISDIR(c));if(s&&"x"===n[1])return o(f.EEXIST(c));var u=s&&s.blob||c;y.writable(u,function(e){if(e)return o(e);var n={ctime:s?s.ctime:new Date,mtime:new Date,mode:i,type:"file"};y.put(c,n,function(e){if(e)return o(e);var i=m.createWriteStream(u,t);a.emit("open"),i.on("finish",function(){n.mtime=new Date,y.put(c,n,function(){v.change(c),r||a.emit("close")})}),o(null,i)})})})});return a.on("close",function(){r=!0}),a},n.truncate=function(e,t,n){y.follow(e,function(e,r,o){if(e)return n(e);var a=r&&r.blob||o;m.size(a,function(e,r){if(e)return n(e);y.writable(o,function(e){if(e)return n(e);if(n=u(v.cb(o,n)),!t)return m.remove(a,n);var s=m.createWriteStream(a,{start:r<t?t-1:t});s.on("error",n),s.on("finish",n),r<t&&s.write(new i([0])),s.end()})})})},n.watchFile=function(e,t,r){return"function"==typeof t?n.watchFile(e,null,t):v.watch(y.normalize(e),r)},n.unwatchFile=function(e,t){v.unwatch(y.normalize(e),t)},n.watch=function(e,t,r){return"function"==typeof t?n.watch(e,null,t):v.watcher(y.normalize(e),r)},n.notify=function(e){v.on("change",e)},n.open=function(e,t,r,i){if("function"==typeof r)return n.open(e,t,null,r);y.follow(e,function(e,n,o){if(e&&"ENOENT"!==e.code)return i(e);var a=t[0],s="+"===t[1]||"+"===t[2],c=n&&n.blob||o,u={key:o,blob:c,mode:r||l(666),readable:"r"===a||("w"===a||"a"===a)&&s,writable:"w"===a||"a"===a||"r"===a&&s,append:"a"===a};return"r"===a&&e?i(e):"x"===t[1]&&n?i(f.EEXIST(o)):n&&n.isDirectory()?i(f.EISDIR(o)):void m.size(c,function(e,t){if(e)return i(e);u.append&&(u.writePos=t),y.writable(o,function(e){if(e)return i(e);var t=function(e){if(e)return i(e);var t=w.indexOf(null);-1===t&&(t=10+w.push(w.length+10)-1),u.fd=t,w[t]=u,v.change(o),i(null,u.fd)},r=function(e){return e?i(e):n?t():void y.put(c,{ctime:n&&n.ctime,type:"file"},t)};if(!u.append&&u.writable)return m.remove(c,r);r()})})})},n.close=function(e,t){var n=w[e];if(!n)return d(t,f.EBADF());w[e]=null,d(v.cb(n.key,t))},n.write=function(e,t,n,r,i,o){var a=w[e];if(o||(o=g),!a||!a.writable)return d(o,f.EBADF());null===i&&(i=a.writePos||0);var s=t.slice(n,n+r);a.writePos=i+s.length,m.write(a.blob,s,{start:i,append:!0},function(e){if(e)return o(e);o(null,r,t)})},n.read=function(e,t,r,i,o,a){var s=w[e];if(a||(a=g),!s||!s.readable)return d(a,f.EBADF());null===o&&(o=n.readPos||0),m.read(s.blob,{start:o,end:o+i-1},function(e,s){if(e)return a(e);var c=s.slice(0,i);c.copy(t,r),n.readPos=o+c.length,a(null,c.length,t)})},n.fsync=function(e,t){var n=w[e];if(t||(t=g),!n||!n.writable)return d(t,f.EBADF());d(t)},n.ftruncate=function(e,t,r){var i=w[e];if(r||(r=g),!i)return d(r,f.EBADF());n.truncate(i.blob,t,r)},n.fchown=function(e,t,r,i){var o=w[e];if(i||(i=g),!o)return d(i,f.EBADF());n.chown(o.key,t,r,i)},n.fchmod=function(e,t,r){var i=w[e];if(r||(r=g),!i)return d(r,f.EBADF());n.chmod(i.key,t,r)},n.futimes=function(e,t,r,i){var o=w[e];if(i||(i=g),!o)return d(i,f.EBADF());n.utimes(o.key,t,r,i)},n.fstat=function(e,t){var r=w[e];if(!r)return d(t,f.EBADF());n.stat(r.key,t)},n.symlink=function(e,t,n){n||(n=g),y.follow(e,function(e,r,i){if(e)return n(e);y.get(t,function(e,r){return e&&"ENOENT"!==e.code?n(e):r?n(f.EEXIST(t)):void y.put(t,{type:"symlink",target:i,mode:l(777)},n)})})},n.readlink=function(e,t){y.get(e,function(n,r){return n?t(n):r.target?void t(null,r.target):t(f.EINVAL(e))})},n.link=function(e,t,n){n||(n=g),y.follow(e,function(e,r,i){return e?n(e):r.isFile()?void y.get(t,function(e,o){if(e&&"ENOENT"!==e.code)return n(e);if(o)return n(f.EEXIST(t));var a=i+"ÿ"+ ++_;b.put(i+"ÿ",i,function(e){if(e)return n(e);b.put(a,i,function(e){if(e)return n(e);y.put(t,{type:"file",link:a,blob:i,mode:r.mode},n)})})}):n(f.EINVAL(i))})},n}},1963:(e,t,n)=>{var r=n(5606),i=n(8310);(t=e.exports=n(7349)).Stream=i,t.Readable=t,t.Writable=n(1445),t.Duplex=n(1511),t.Transform=n(3497),t.PassThrough=n(1643),r.browser||"disable"!==r.env.READABLE_STREAM||(e.exports=n(8310))},1998:(e,t,n)=>{"use strict";var r=n(9805),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(e,t,n,c,u,l,f,h){var p,d,g,m,y,b,v,w,_,E=h.bits,k=0,x=0,S=0,O=0,A=0,R=0,j=0,T=0,I=0,M=0,L=null,B=0,C=new r.Buf16(16),N=new r.Buf16(16),P=null,D=0;for(k=0;k<=15;k++)C[k]=0;for(x=0;x<c;x++)C[t[n+x]]++;for(A=E,O=15;O>=1&&0===C[O];O--);if(A>O&&(A=O),0===O)return u[l++]=20971520,u[l++]=20971520,h.bits=1,0;for(S=1;S<O&&0===C[S];S++);for(A<S&&(A=S),T=1,k=1;k<=15;k++)if(T<<=1,(T-=C[k])<0)return-1;if(T>0&&(0===e||1!==O))return-1;for(N[1]=0,k=1;k<15;k++)N[k+1]=N[k]+C[k];for(x=0;x<c;x++)0!==t[n+x]&&(f[N[t[n+x]]++]=x);if(0===e?(L=P=f,b=19):1===e?(L=i,B-=257,P=o,D-=257,b=256):(L=a,P=s,b=-1),M=0,x=0,k=S,y=l,R=A,j=0,g=-1,m=(I=1<<A)-1,1===e&&I>852||2===e&&I>592)return 1;for(;;){v=k-j,f[x]<b?(w=0,_=f[x]):f[x]>b?(w=P[D+f[x]],_=L[B+f[x]]):(w=96,_=0),p=1<<k-j,S=d=1<<R;do{u[y+(M>>j)+(d-=p)]=v<<24|w<<16|_}while(0!==d);for(p=1<<k-1;M&p;)p>>=1;if(0!==p?(M&=p-1,M+=p):M=0,x++,0===--C[k]){if(k===O)break;k=t[n+f[x]]}if(k>A&&(M&m)!==g){for(0===j&&(j=A),y+=S,T=1<<(R=k-j);R+j<O&&!((T-=C[R+j])<=0);)R++,T<<=1;if(I+=1<<R,1===e&&I>852||2===e&&I>592)return 1;u[g=M&m]=A<<24|R<<16|y-l}}return 0!==M&&(u[y+M]=k-j<<24|64<<16),h.bits=A,0}},2175:(e,t,n)=>{var r=n(8287).Buffer;e.exports=function(e){return r.isBuffer(e)||/\[object (.+Array|Array.+)\]/.test(Object.prototype.toString.call(e))}},2205:(e,t,n)=>{"use strict";var r=n(6743),i=n(1002),o=n(3144);e.exports=function(){return o(r,i,arguments)}},2271:(e,t,n)=>{"use strict";var r=n(453),i=n(6556),o=n(8859),a=n(507),s=n(9675),c=r("%WeakMap%",!0),u=i("WeakMap.prototype.get",!0),l=i("WeakMap.prototype.set",!0),f=i("WeakMap.prototype.has",!0),h=i("WeakMap.prototype.delete",!0);e.exports=c?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new s("Side channel does not contain "+o(e))},delete:function(n){if(c&&n&&("object"==typeof n||"function"==typeof n)){if(e)return h(e,n)}else if(a&&t)return t.delete(n);return!1},get:function(n){return c&&n&&("object"==typeof n||"function"==typeof n)&&e?u(e,n):t&&t.get(n)},has:function(n){return c&&n&&("object"==typeof n||"function"==typeof n)&&e?f(e,n):!!t&&t.has(n)},set:function(n,r){c&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new c),l(e,n,r)):a&&(t||(t=a()),t.set(n,r))}};return n}:a},2299:(e,t,n)=>{"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var a=void 0!==/a/g.flags,s=function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t},c=function(e){var t=[];return e.forEach(function(e,n){return t.push([n,e])}),t},u=Object.is?Object.is:n(7653),l=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},f=Number.isNaN?Number.isNaN:n(4133);function h(e){return e.call.bind(e)}var p=h(Object.prototype.hasOwnProperty),d=h(Object.prototype.propertyIsEnumerable),g=h(Object.prototype.toString),m=n(537).types,y=m.isAnyArrayBuffer,b=m.isArrayBufferView,v=m.isDate,w=m.isMap,_=m.isRegExp,E=m.isSet,k=m.isNativeError,x=m.isBoxedPrimitive,S=m.isNumberObject,O=m.isStringObject,A=m.isBooleanObject,R=m.isBigIntObject,j=m.isSymbolObject,T=m.isFloat32Array,I=m.isFloat64Array;function M(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var n=e.charCodeAt(t);if(n<48||n>57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function L(e){return Object.keys(e).filter(M).concat(l(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function B(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0}function C(e,t,n,r){if(e===t)return 0!==e||!n||u(e,t);if(n){if("object"!==o(e))return"number"==typeof e&&f(e)&&f(t);if("object"!==o(t)||null===e||null===t)return!1;if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==o(e))return(null===t||"object"!==o(t))&&e==t;if(null===t||"object"!==o(t))return!1}var i,s,c,l,h=g(e);if(h!==g(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var p=L(e),d=L(t);return p.length===d.length&&P(e,t,n,r,1,p)}if("[object Object]"===h&&(!w(e)&&w(t)||!E(e)&&E(t)))return!1;if(v(e)){if(!v(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(_(e)){if(!_(t)||(c=e,l=t,!(a?c.source===l.source&&c.flags===l.flags:RegExp.prototype.toString.call(c)===RegExp.prototype.toString.call(l))))return!1}else if(k(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(b(e)){if(n||!T(e)&&!I(e)){if(!function(e,t){return e.byteLength===t.byteLength&&0===B(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}(e,t))return!1}else if(!function(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=0;n<e.byteLength;n++)if(e[n]!==t[n])return!1;return!0}(e,t))return!1;var m=L(e),M=L(t);return m.length===M.length&&P(e,t,n,r,0,m)}if(E(e))return!(!E(t)||e.size!==t.size)&&P(e,t,n,r,2);if(w(e))return!(!w(t)||e.size!==t.size)&&P(e,t,n,r,3);if(y(e)){if(s=t,(i=e).byteLength!==s.byteLength||0!==B(new Uint8Array(i),new Uint8Array(s)))return!1}else if(x(e)&&!function(e,t){return S(e)?S(t)&&u(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):O(e)?O(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):A(e)?A(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):R(e)?R(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):j(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}(e,t))return!1}return P(e,t,n,r,0)}function N(e,t){return t.filter(function(t){return d(e,t)})}function P(e,t,n,i,a,u){if(5===arguments.length){u=Object.keys(e);var f=Object.keys(t);if(u.length!==f.length)return!1}for(var h=0;h<u.length;h++)if(!p(t,u[h]))return!1;if(n&&5===arguments.length){var g=l(e);if(0!==g.length){var m=0;for(h=0;h<g.length;h++){var y=g[h];if(d(e,y)){if(!d(t,y))return!1;u.push(y),m++}else if(d(t,y))return!1}var b=l(t);if(g.length!==b.length&&N(t,b).length!==m)return!1}else{var v=l(t);if(0!==v.length&&0!==N(t,v).length)return!1}}if(0===u.length&&(0===a||1===a&&0===e.length||0===e.size))return!0;if(void 0===i)i={val1:new Map,val2:new Map,position:0};else{var w=i.val1.get(e);if(void 0!==w){var _=i.val2.get(t);if(void 0!==_)return w===_}i.position++}i.val1.set(e,i.position),i.val2.set(t,i.position);var E=function(e,t,n,i,a,u){var l=0;if(2===u){if(!function(e,t,n,r){for(var i=null,a=s(e),c=0;c<a.length;c++){var u=a[c];if("object"===o(u)&&null!==u)null===i&&(i=new Set),i.add(u);else if(!t.has(u)){if(n)return!1;if(!U(e,t,u))return!1;null===i&&(i=new Set),i.add(u)}}if(null!==i){for(var l=s(t),f=0;f<l.length;f++){var h=l[f];if("object"===o(h)&&null!==h){if(!D(i,h,n,r))return!1}else if(!n&&!e.has(h)&&!D(i,h,n,r))return!1}return 0===i.size}return!0}(e,t,n,a))return!1}else if(3===u){if(!function(e,t,n,i){for(var a=null,s=c(e),u=0;u<s.length;u++){var l=r(s[u],2),f=l[0],h=l[1];if("object"===o(f)&&null!==f)null===a&&(a=new Set),a.add(f);else{var p=t.get(f);if(void 0===p&&!t.has(f)||!C(h,p,n,i)){if(n)return!1;if(!z(e,t,f,h,i))return!1;null===a&&(a=new Set),a.add(f)}}}if(null!==a){for(var d=c(t),g=0;g<d.length;g++){var m=r(d[g],2),y=m[0],b=m[1];if("object"===o(y)&&null!==y){if(!W(a,e,y,b,n,i))return!1}else if(!(n||e.has(y)&&C(e.get(y),b,!1,i)||W(a,e,y,b,!1,i)))return!1}return 0===a.size}return!0}(e,t,n,a))return!1}else if(1===u)for(;l<e.length;l++){if(!p(e,l)){if(p(t,l))return!1;for(var f=Object.keys(e);l<f.length;l++){var h=f[l];if(!p(t,h)||!C(e[h],t[h],n,a))return!1}return f.length===Object.keys(t).length}if(!p(t,l)||!C(e[l],t[l],n,a))return!1}for(l=0;l<i.length;l++){var d=i[l];if(!C(e[d],t[d],n,a))return!1}return!0}(e,t,n,u,i,a);return i.val1.delete(e),i.val2.delete(t),E}function D(e,t,n,r){for(var i=s(e),o=0;o<i.length;o++){var a=i[o];if(C(t,a,n,r))return e.delete(a),!0}return!1}function F(e){switch(o(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(f(e))return!1}return!0}function U(e,t,n){var r=F(n);return null!=r?r:t.has(r)&&!e.has(r)}function z(e,t,n,r,i){var o=F(n);if(null!=o)return o;var a=t.get(o);return!(void 0===a&&!t.has(o)||!C(r,a,!1,i))&&!e.has(o)&&C(r,a,!1,i)}function W(e,t,n,r,i,o){for(var a=s(e),c=0;c<a.length;c++){var u=a[c];if(C(n,u,i,o)&&C(r,t.get(u),i,o))return e.delete(u),!0}return!1}e.exports={isDeepEqual:function(e,t){return C(e,t,!1)},isDeepStrictEqual:function(e,t){return C(e,t,!0)}}},2350:(e,t,n)=>{var r,i,o=n(8287).Buffer,a=n(5606),s=n(3493),c=n(7805).LevelUPError,u=["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le"],l={createIfMissing:!0,errorIfExists:!1,keyEncoding:"utf8",valueEncoding:"utf8",compression:!0},f=function(){function e(e){return null==e||o.isBuffer(e)}var t={};return t.utf8=t["utf-8"]={encode:function(t){return e(t)?t:String(t)},decode:function(e){return e},buffer:!1,type:"utf8"},t.json={encode:JSON.stringify,decode:JSON.parse,buffer:!1,type:"json"},u.forEach(function(n){t[n]||(t[n]={encode:function(t){return e(t)?t:new o(t,n)},decode:function(e){return a.browser?e.toString(n):e},buffer:!0,type:n})}),t}(),h=(i={},u.forEach(function(e){i[e]={valueEncoding:e}}),i);function p(e,t){var n=t&&t.keyEncoding||e.keyEncoding||"utf8";return f[n]||n}function d(e,t){var n=t&&(t.valueEncoding||t.encoding)||e.valueEncoding||e.encoding||"utf8";return f[n]||n}e.exports={defaultOptions:l,copy:function(e,t,n){e.readStream().pipe(t.writeStream()).on("close",n||function(){}).on("error",n||function(e){throw e})},getOptions:function(e,t){var n="string"==typeof t;return!n&&t&&t.encoding&&!t.valueEncoding&&(t.valueEncoding=t.encoding),s(e&&e.options||{},n?h[t]||h[l.valueEncoding]:t)},getLevelDOWN:function(){if(r)return r;var e,t=n(9435).rh.j9,i="Could not locate LevelDOWN, try `npm install leveldown`";try{e=n(6789).version}catch(e){throw new c(i)}if(!n(1534).satisfies(e,t))throw new c("Installed version of LevelDOWN ("+e+") does not match required version ("+t+")");try{return r=n(564)}catch(e){throw new c(i)}},dispatchError:function(e,t,n){return"function"==typeof n?n(t):e.emit("error",t)},encodeKey:function(e,t,n){return p(t,n).encode(e)},encodeValue:function(e,t,n){return d(t,n).encode(e)},isValueAsBuffer:function(e,t){return d(e,t).buffer},isKeyAsBuffer:function(e,t){return p(e,t).buffer},decodeValue:function(e,t){return d(t).decode(e)},decodeKey:function(e,t){return p(t).decode(e)}}},2464:(e,t,n)=>{"use strict";var r=n(8452),i=n(6642);e.exports=function(){var e=i();return r(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},2545:(e,t,n)=>{e.exports=a;var r=n(7295),i=n(5622);function o(e,t){this.afterTransform=function(e,n){return function(e,t,n){var r=e._transformState;r.transforming=!1;var o=r.writecb;if(!o)return e.emit("error",new Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,i.isNullOrUndefined(n)||e.push(n),o&&o(t);var a=e._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&e._read(a.highWaterMark)}(t,e,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function a(e){if(!(this instanceof a))return new a(e);r.call(this,e),this._transformState=new o(e,this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,this.once("prefinish",function(){i.isFunction(this._flush)?this._flush(function(e){s(t,e)}):s(t)})}function s(e,t){if(t)return e.emit("error",t);var n=e._writableState,r=e._transformState;if(n.length)throw new Error("calling transform done when ws.length != 0");if(r.transforming)throw new Error("calling transform done when still transforming");return e.push(null)}i.inherits=n(6698),i.inherits(a,r),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,n){throw new Error("not implemented")},a.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;i.isNull(t.writechunk)||!t.writecb||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))}},2581:e=>{var t=function(e){return e?"string"==typeof e?new Date(e):e:new Date},n=function(e){this.uid=e.uid||0,this.gid=e.gid||0,this.mode=e.mode||0,this.size=e.size||0,this.mtime=t(e.mtime),this.atime=t(e.atime),this.ctime=t(e.ctime),this.type=e.type,this.target=e.target,this.link=e.link,this.blob=e.blob};n.prototype.isDirectory=function(){return"directory"===this.type},n.prototype.isFile=function(){return"file"===this.type},n.prototype.isBlockDevice=function(){return!1},n.prototype.isCharacterDevice=function(){return!1},n.prototype.isSymbolicLink=function(){return"symlink"===this.type},n.prototype.isFIFO=function(){return!1},n.prototype.isSocket=function(){return!1},e.exports=function(e){return new n(e)}},2602:(e,t,n)=>{e.exports=n(7684)},2634:()=>{},2642:(e,t,n)=>{"use strict";var r=n(7720),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},s=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},c=function(e,t,n){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},u=function(e,t,n,o){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,u=n.depth>0&&/(\[[^[\]]*])/.exec(a),l=u?a.slice(0,u.index):a,f=[];if(l){if(!n.plainObjects&&i.call(Object.prototype,l)&&!n.allowPrototypes)return;f.push(l)}for(var h=0;n.depth>0&&null!==(u=s.exec(a))&&h<n.depth;){if(h+=1,!n.plainObjects&&i.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;f.push(u[1])}if(u){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");f.push("["+a.slice(u.index)+"]")}return function(e,t,n,i){var o=0;if(e.length>0&&"[]"===e[e.length-1]){var a=e.slice(0,-1).join("");o=Array.isArray(t)&&t[a]?t[a].length:0}for(var s=i?t:c(t,n,o),u=e.length-1;u>=0;--u){var l,f=e[u];if("[]"===f&&n.parseArrays)l=n.allowEmptyArrays&&(""===s||n.strictNullHandling&&null===s)?[]:r.combine([],s);else{l=n.plainObjects?{__proto__:null}:{};var h="["===f.charAt(0)&&"]"===f.charAt(f.length-1)?f.slice(1,-1):f,p=n.decodeDotInKeys?h.replace(/%2E/g,"."):h,d=parseInt(p,10);n.parseArrays||""!==p?!isNaN(d)&&f!==p&&String(d)===p&&d>=0&&n.parseArrays&&d<=n.arrayLimit?(l=[])[d]=s:"__proto__"!==p&&(l[p]=s):l={0:s}}s=l}return s}(f,t,n,o)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?a.charset:e.charset,n=void 0===e.duplicates?a.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:a.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}}(t);if(""===e||null==e)return n.plainObjects?{__proto__:null}:{};for(var l="string"==typeof e?function(e,t){var n={__proto__:null},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;u=u.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var l=t.parameterLimit===1/0?void 0:t.parameterLimit,f=u.split(t.delimiter,t.throwOnLimitExceeded?l+1:l);if(t.throwOnLimitExceeded&&f.length>l)throw new RangeError("Parameter limit exceeded. Only "+l+" parameter"+(1===l?"":"s")+" allowed.");var h,p=-1,d=t.charset;if(t.charsetSentinel)for(h=0;h<f.length;++h)0===f[h].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[h]?d="utf-8":"utf8=%26%2310003%3B"===f[h]&&(d="iso-8859-1"),p=h,h=f.length);for(h=0;h<f.length;++h)if(h!==p){var g,m,y=f[h],b=y.indexOf("]="),v=-1===b?y.indexOf("="):b+1;-1===v?(g=t.decoder(y,a.decoder,d,"key"),m=t.strictNullHandling?null:""):(g=t.decoder(y.slice(0,v),a.decoder,d,"key"),m=r.maybeMap(c(y.slice(v+1),t,o(n[g])?n[g].length:0),function(e){return t.decoder(e,a.decoder,d,"value")})),m&&t.interpretNumericEntities&&"iso-8859-1"===d&&(m=s(String(m))),y.indexOf("[]=")>-1&&(m=o(m)?[m]:m);var w=i.call(n,g);w&&"combine"===t.duplicates?n[g]=r.combine(n[g],m):w&&"last"!==t.duplicates||(n[g]=m)}return n}(e,n):e,f=n.plainObjects?{__proto__:null}:{},h=Object.keys(l),p=0;p<h.length;++p){var d=h[p],g=u(d,l[d],n,"string"==typeof e);f=r.merge(f,g,n)}return!0===n.allowSparse?f:r.compact(f)}},2682:(e,t,n)=>{"use strict";var r=n(9600),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var a,s;arguments.length>=3&&(a=n),s=e,"[object Array]"===i.call(s)?function(e,t,n){for(var r=0,i=e.length;r<i;r++)o.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,a):"string"==typeof e?function(e,t,n){for(var r=0,i=e.length;r<i;r++)null==n?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)}(e,t,a):function(e,t,n){for(var r in e)o.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,a)}},2726:(e,t,n)=>{"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){o(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function o(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}var c=n(8287).Buffer,u=n(5340).inspect,l=u&&u.custom||"inspect";function f(e,t,n){c.prototype.copy.call(e,t,n)}e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,n;return t=e,(n=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return c.alloc(0);for(var t=c.allocUnsafe(e>>>0),n=this.head,r=0;n;)f(n.data,t,r),r+=n.data.length,n=n.next;return t}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?r+=i:r+=i.slice(0,e),0===(e-=o)){o===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=c.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0===(e-=o)){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,t}},{key:l,value:function(e,t){return u(this,i(i({},t),{},{depth:0,customInspect:!1}))}}])&&a(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},2746:(e,t,n)=>{var r=n(8287).Buffer,i=Object.prototype.toString,o=void 0!==r&&"function"==typeof r.alloc&&"function"==typeof r.allocUnsafe&&"function"==typeof r.from;e.exports=function(e,t,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return a=e,"ArrayBuffer"===i.call(a).slice(8,-1)?function(e,t,n){t>>>=0;var i=e.byteLength-t;if(i<0)throw new RangeError("'offset' is out of bounds");if(void 0===n)n=i;else if((n>>>=0)>i)throw new RangeError("'length' is out of bounds");return o?r.from(e.slice(t,t+n)):new r(new Uint8Array(e.slice(t,t+n)))}(e,t,n):"string"==typeof e?function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!r.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return o?r.from(e,t):new r(e,t)}(e,t):o?r.from(e):new r(e);var a}},2768:(e,t,n)=>{var r=n(5606);function i(e){this._db=e,this._operations=[],this._written=!1}i.prototype._checkWritten=function(){if(this._written)throw new Error("write() already called on this batch")},i.prototype.put=function(e,t){this._checkWritten();var n=this._db._checkKeyValue(e,"key",this._db._isBuffer);if(n)throw n;if(n=this._db._checkKeyValue(t,"value",this._db._isBuffer))throw n;return this._db._isBuffer(e)||(e=String(e)),this._db._isBuffer(t)||(t=String(t)),"function"==typeof this._put?this._put(e,t):this._operations.push({type:"put",key:e,value:t}),this},i.prototype.del=function(e){this._checkWritten();var t=this._db._checkKeyValue(e,"key",this._db._isBuffer);if(t)throw t;return this._db._isBuffer(e)||(e=String(e)),"function"==typeof this._del?this._del(e):this._operations.push({type:"del",key:e}),this},i.prototype.clear=function(){return this._checkWritten(),this._operations=[],"function"==typeof this._clear&&this._clear(),this},i.prototype.write=function(e,t){if(this._checkWritten(),"function"==typeof e&&(t=e),"function"!=typeof t)throw new Error("write() requires a callback argument");return"object"!=typeof e&&(e={}),this._written=!0,"function"==typeof this._write?this._write(t):"function"==typeof this._db._batch?this._db._batch(this._operations,e,t):void r.nextTick(t)},e.exports=i},2795:e=>{e.exports=function(e){var t=e.reverse,n=e.end,r=e.start,i=[r,n];return null!=r&&null!=n&&i.sort(),t&&(i=i.reverse()),e.start=i[0],e.end=i[1],e}},2796:(e,t,n)=>{var r=n(9723);function i(e,t,n){t&&"string"!=typeof t&&(t=t.message||t.name),r(this,{type:e,name:e,cause:"string"!=typeof t?t:n,message:t},"ewr")}function o(e,t){Error.call(this),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),i.call(this,"CustomError",e,t)}o.prototype=new Error,e.exports=function(e){var t=function(t,n){return function(e,t,n){var r=function(n,o){i.call(this,t,n,o),"FilesystemError"==t&&(this.code=this.cause.code,this.path=this.cause.path,this.errno=this.cause.errno,this.message=(e.errno[this.cause.errno]?e.errno[this.cause.errno].description:this.cause.message)+(this.cause.path?" ["+this.cause.path+"]":"")),Error.call(this),Error.captureStackTrace&&Error.captureStackTrace(this,r)};return r.prototype=n?new n:new o,r}(e,t,n)};return{CustomError:o,FilesystemError:t("FilesystemError"),createError:t}}},2861:(e,t,n)=>{var r=n(8287),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},2880:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},2951:(e,t,n)=>{e.exports=n(5405)},2955:(e,t,n)=>{"use strict";var r,i=n(5606);function o(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=n(6238),s=Symbol("lastResolve"),c=Symbol("lastReject"),u=Symbol("error"),l=Symbol("ended"),f=Symbol("lastPromise"),h=Symbol("handlePromise"),p=Symbol("stream");function d(e,t){return{value:e,done:t}}function g(e){var t=e[s];if(null!==t){var n=e[p].read();null!==n&&(e[f]=null,e[s]=null,e[c]=null,t(d(n,!1)))}}function m(e){i.nextTick(g,e)}var y=Object.getPrototypeOf(function(){}),b=Object.setPrototypeOf((o(r={get stream(){return this[p]},next:function(){var e=this,t=this[u];if(null!==t)return Promise.reject(t);if(this[l])return Promise.resolve(d(void 0,!0));if(this[p].destroyed)return new Promise(function(t,n){i.nextTick(function(){e[u]?n(e[u]):t(d(void 0,!0))})});var n,r=this[f];if(r)n=new Promise(function(e,t){return function(n,r){e.then(function(){t[l]?n(d(void 0,!0)):t[h](n,r)},r)}}(r,this));else{var o=this[p].read();if(null!==o)return Promise.resolve(d(o,!1));n=new Promise(this[h])}return this[f]=n,n}},Symbol.asyncIterator,function(){return this}),o(r,"return",function(){var e=this;return new Promise(function(t,n){e[p].destroy(null,function(e){e?n(e):t(d(void 0,!0))})})}),r),y);e.exports=function(e){var t,n=Object.create(b,(o(t={},p,{value:e,writable:!0}),o(t,s,{value:null,writable:!0}),o(t,c,{value:null,writable:!0}),o(t,u,{value:null,writable:!0}),o(t,l,{value:e._readableState.endEmitted,writable:!0}),o(t,h,{value:function(e,t){var r=n[p].read();r?(n[f]=null,n[s]=null,n[c]=null,e(d(r,!1))):(n[s]=e,n[c]=t)},writable:!0}),t));return n[f]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[c];return null!==t&&(n[f]=null,n[s]=null,n[c]=null,t(e)),void(n[u]=e)}var r=n[s];null!==r&&(n[f]=null,n[s]=null,n[c]=null,r(d(void 0,!0))),n[l]=!0}),e.on("readable",m.bind(null,n)),n}},2963:(e,t,n)=>{var r=n(8287).Buffer;e.exports=f;var i=n(196),o=n(1831).Z$,a=n(537),s=n(1421),c=n(2175),u=n(3476),l=n(4527);function f(e){if(!(this instanceof f))return new f(e);if(!e)throw new Error("constructor requires at least a location argument");this.IDBOptions={},this.location=e}a.inherits(f,o),f.prototype._open=function(e,t){var n=this,r={storeName:this.location,autoIncrement:!1,keyPath:null,onStoreReady:function(){t&&t(null,n.idb)},onError:function(e){t&&t(e)}};u(r,e),this.IDBOptions=r,this.idb=new i(r)},f.prototype._get=function(e,t,n){this.idb.get(e,function(i){if(void 0===i)return n(new Error("NotFound"));var o=!0;return!1===t.asBuffer&&(o=!1),t.raw&&(o=!1),o&&(i=i instanceof Uint8Array?l(i):new r(String(i))),n(null,i,e)},n)},f.prototype._del=function(e,t,n){this.idb.remove(e,n,n)},f.prototype._put=function(e,t,n,i){t instanceof ArrayBuffer&&(t=l(new Uint8Array(t)));var o=this.convertEncoding(e,t,n);r.isBuffer(o.value)&&("function"==typeof t.toArrayBuffer?o.value=new Uint8Array(t.toArrayBuffer()):o.value=new Uint8Array(t)),this.idb.put(o.key,o.value,function(){i()},i)},f.prototype.convertEncoding=function(e,t,n){if(n.raw)return{key:e,value:t};if(t){var r=t.toString();"NaN"===r&&(t="NaN")}var i=n.valueEncoding,o={key:e,value:t};return!t||i&&"binary"===i||"object"!=typeof o.value&&(o.value=r),o},f.prototype.iterator=function(e){return"object"!=typeof e&&(e={}),new s(this.idb,e)},f.prototype._batch=function(e,t,n){var r,i,o,a,s=[];if(0===e.length)return setTimeout(n,0);for(r=0;r<e.length;r++){o={},a=e[r],s[r]=o;var c=this.convertEncoding(a.key,a.value,t);for(i in a.key=c.key,a.value=c.value,a)"type"===i&&"del"==a[i]?o[i]="remove":o[i]=a[i]}return this.idb.batch(s,function(){n()},n)},f.prototype._close=function(e){this.idb.db.close(),e()},f.prototype._approximateSize=function(e,t,n){var r=new Error("Not implemented");if(n)return n(r);throw r},f.prototype._isBuffer=function(e){return r.isBuffer(e)},f.destroy=function(e,t){if("object"==typeof e)var n=e.IDBOptions.storePrefix||"IDBWrapper-",r=e.location;else n="IDBWrapper-",r=e;var i=indexedDB.deleteDatabase(n+r);i.onsuccess=function(){t()},i.onerror=function(e){t(e)}},f.prototype._checkKeyValue=function(e,t){return null==e||null==e?new Error(t+" cannot be `null` or `undefined`"):c(e)&&0===e.byteLength?new Error(t+" cannot be an empty ArrayBuffer"):""===String(e)?new Error(t+" cannot be an empty String"):0===e.length?new Error(t+" cannot be an empty Array"):void 0}},2980:(e,t)=>{var n=t.range=function(e){return null==e?{}:"string"==typeof n?{min:n,max:n+"ÿ"}:e},r=(t.prefix=function(e,n,r){var i={};return r=r||"ÿ",(e=t.range(e))instanceof RegExp||"function"==typeof e?(i.min=n,i.max=n+r,i.inner=function(t){var r=t.substring(n.length);return e.test?e.test(r):e(r)}):"object"==typeof e&&(i.min=n+(e.min||e.start||""),i.max=n+(e.max||e.end||r||"~"),i.reverse=!!e.reverse),i},t.checker=function(e){return e||(e={}),"string"==typeof e?function(t){return 0==t.indexOf(e)}:e instanceof RegExp?function(t){return e.test(t)}:"object"==typeof e?function(t){var n=e.min||e.start,r=e.max||e.end;return t=String(t),(!n||t>=n)&&(!r||t<=r)&&(!e.inner||(e.inner.test?e.inner.test(t):e.inner(t)))}:"function"==typeof e?e:void 0});t.satisfies=function(e,t){return r(t)(e)}},3003:e=>{"use strict";e.exports=function(e){return e!=e}},3005:(e,t,n)=>{"use strict";var r=n(5386).Buffer,i=n(993);function o(e,t,n){e.copy(t,n)}e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);for(var t=r.allocUnsafe(e>>>0),n=this.head,i=0;n;)o(n.data,t,i),i+=n.data.length,n=n.next;return t},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},3050:(e,t,n)=>{(t=e.exports=n(4053)).Stream=t,t.Readable=t,t.Writable=n(5509),t.Duplex=n(4935),t.Transform=n(1657),t.PassThrough=n(4507)},3093:(e,t,n)=>{"use strict";var r=n(4459);e.exports=function(e){return r(e)||0===e?e:e<0?-1:1}},3126:(e,t,n)=>{"use strict";var r=n(6743),i=n(9675),o=n(76),a=n(3144);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new i("a function is required");return a(r,o,e)}},3141:(e,t,n)=>{"use strict";var r=n(2861).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=l,this.end=f,t=3;break;default:return this.write=h,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function l(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.I=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=a(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||-2===i?0:(i=a(t[r]))>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||-2===i?0:(i=a(t[r]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},3144:(e,t,n)=>{"use strict";var r=n(6743),i=n(1002),o=n(76),a=n(7119);e.exports=a||r.call(o,i)},3152:e=>{function t(e,t,n,r){var i={type:e,key:t,value:n,options:r};return r&&r.prefix&&(i.prefix=r.prefix,delete r.prefix),this._operations.push(i),this}function n(e){this._operations=[],this._sdb=e,this.put=t.bind(this,"put"),this.del=t.bind(this,"del")}var r=n.prototype;r.clear=function(){this._operations=[]},r.write=function(e){this._sdb.batch(this._operations,e)},e.exports=n},3225:(e,t,n)=>{"use strict";var r=n(5606);void 0===r||!r.version||0===r.version.indexOf("v0.")||0===r.version.indexOf("v1.")&&0!==r.version.indexOf("v1.8.")?e.exports={nextTick:function(e,t,n,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return r.nextTick(e);case 2:return r.nextTick(function(){e.call(null,t)});case 3:return r.nextTick(function(){e.call(null,t,n)});case 4:return r.nextTick(function(){e.call(null,t,n,i)});default:for(o=new Array(s-1),a=0;a<o.length;)o[a++]=arguments[a];return r.nextTick(function(){e.apply(null,o)})}}}:e.exports=r},3238:(e,t,n)=>{var r=n(5606),i=n(8310);(t=e.exports=n(5140)).Stream=i,t.Readable=t,t.Writable=n(7684),t.Duplex=n(8166),t.Transform=n(5778),t.PassThrough=n(5824),r.browser||"disable"!==r.env.READABLE_STREAM||(e.exports=n(8310))},3269:e=>{"use strict";e.exports=function(e,t,n,r){for(var i=65535&e,o=e>>>16&65535,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+t[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16}},3324:(e,t,n)=>{var r=n(2350),i=n(7805).WriteError,o=r.getOptions,a=r.dispatchError;function s(e){this._levelup=e,this.batch=e.db.batch(),this.ops=[]}s.prototype.put=function(e,t,n){n=o(this._levelup,n);var a=r.encodeKey(e,n),s=r.encodeValue(t,n);try{this.batch.put(a,s)}catch(e){throw new i(e)}return this.ops.push({type:"put",key:a,value:s}),this},s.prototype.del=function(e,t){t=o(this._levelup,t);var n=r.encodeKey(e,t);try{this.batch.del(n)}catch(e){throw new i(e)}return this.ops.push({type:"del",key:n}),this},s.prototype.clear=function(){try{this.batch.clear()}catch(e){throw new i(e)}return this.ops=[],this},s.prototype.write=function(e){var t=this._levelup,n=this.ops;try{this.batch.write(function(r){if(r)return a(t,new i(r),e);t.emit("batch",n),e&&e()})}catch(e){throw new i(e)}},e.exports=s},3364:function(e){var t;t=function(){var e="function"==typeof Object.defineProperty?function(e,t,n){return Object.defineProperty(e,t,n),e}:function(e,t,n){return e[t]=n.value,e};return function(t,n,r,i){var o;if(i=function(e,t){var n="object"==typeof t,r=!n&&"string"==typeof t,i=function(e){return n?!!t[e]:!!r&&t.indexOf(e[0])>-1};return{enumerable:i("enumerable"),configurable:i("configurable"),writable:i("writable"),value:e}}(r,i),"object"==typeof n){for(o in n)Object.hasOwnProperty.call(n,o)&&(i.value=n[o],e(t,o,i));return t}return e(t,n,i)}},e.exports?e.exports=t():this.prr=t()},3409:e=>{e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}},3428:e=>{var t={};e.exports=t;var n={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(n).forEach(function(e){var r=n[e],i=t[e]=[];i.open="["+r[0]+"m",i.close="["+r[1]+"m"})},3476:(e,t,n)=>{var r=n(9731),i=n(7237);e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];if(i(n))for(var o=r(n),a=0;a<o.length;a++){var s=o[a];e[s]=n[s]}}return e}},3493:e=>{e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}},3497:(e,t,n)=>{e.exports=a;var r=n(1511),i=n(5622);function o(e,t){this.afterTransform=function(e,n){return function(e,t,n){var r=e._transformState;r.transforming=!1;var i=r.writecb;if(!i)return e.emit("error",new Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,null!=n&&e.push(n),i&&i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}(t,e,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function a(e){if(!(this instanceof a))return new a(e);r.call(this,e),this._transformState=new o(e,this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,this.once("finish",function(){"function"==typeof this._flush?this._flush(function(e){s(t,e)}):s(t)})}function s(e,t){if(t)return e.emit("error",t);var n=e._writableState,r=(e._readableState,e._transformState);if(n.length)throw new Error("calling transform done when ws.length != 0");if(r.transforming)throw new Error("calling transform done when still transforming");return e.push(null)}i.inherits=n(6698),i.inherits(a,r),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,n){throw new Error("not implemented")},a.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0}},3519:(e,t,n)=>{var r=n(6587);function i(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function o(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},n=e.name||"Function wrapped with `once`";return t.onceError=n+" shouldn't be called more than once",t.called=!1,t}e.exports=r(i),e.exports.strict=r(o),i.proto=i(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return o(this)},configurable:!0})})},3600:(e,t,n)=>{"use strict";e.exports=i;var r=n(4610);function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}n(6698)(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},3626:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},3628:(e,t,n)=>{"use strict";var r=n(8648),i=n(1064),o=n(7176);e.exports=r?function(e){return r(e)}:i?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return i(e)}:o?function(e){return o(e)}:null},3665:(e,t,n)=>{"use strict";var r=n(9805);function i(e){for(var t=e.length;--t>=0;)e[t]=0}var o=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],a=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],c=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],u=new Array(576);i(u);var l=new Array(60);i(l);var f=new Array(512);i(f);var h=new Array(256);i(h);var p=new Array(29);i(p);var d,g,m,y=new Array(30);function b(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function v(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function w(e){return e<256?f[e]:f[256+(e>>>7)]}function _(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function E(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,_(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function k(e,t,n){E(e,n[2*t],n[2*t+1])}function x(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function S(e,t,n){var r,i,o=new Array(16),a=0;for(r=1;r<=15;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=x(o[s]++,s))}}function O(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function A(e){e.bi_valid>8?_(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function R(e,t,n,r){var i=2*t,o=2*n;return e[i]<e[o]||e[i]===e[o]&&r[t]<=r[n]}function j(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&R(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!R(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function T(e,t,n){var r,i,s,c,u=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*u]<<8|e.pending_buf[e.d_buf+2*u+1],i=e.pending_buf[e.l_buf+u],u++,0===r?k(e,i,t):(k(e,(s=h[i])+256+1,t),0!==(c=o[s])&&E(e,i-=p[s],c),k(e,s=w(--r),n),0!==(c=a[s])&&E(e,r-=y[s],c))}while(u<e.last_lit);k(e,256,t)}function I(e,t){var n,r,i,o=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,c=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<c;n++)0!==o[2*n]?(e.heap[++e.heap_len]=u=n,e.depth[n]=0):o[2*n+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=a[2*i+1]);for(t.max_code=u,n=e.heap_len>>1;n>=1;n--)j(e,o,n);i=c;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],j(e,o,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,o[2*i]=o[2*n]+o[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,o[2*n+1]=o[2*r+1]=i,e.heap[1]=i++,j(e,o,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,o,a,s,c=t.dyn_tree,u=t.max_code,l=t.stat_desc.static_tree,f=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,d=t.stat_desc.max_length,g=0;for(o=0;o<=15;o++)e.bl_count[o]=0;for(c[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)(o=c[2*c[2*(r=e.heap[n])+1]+1]+1)>d&&(o=d,g++),c[2*r+1]=o,r>u||(e.bl_count[o]++,a=0,r>=p&&(a=h[r-p]),s=c[2*r],e.opt_len+=s*(o+a),f&&(e.static_len+=s*(l[2*r+1]+a)));if(0!==g){do{for(o=d-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[d]--,g-=2}while(g>0);for(o=d;0!==o;o--)for(r=e.bl_count[o];0!==r;)(i=e.heap[--n])>u||(c[2*i+1]!==o&&(e.opt_len+=(o-c[2*i+1])*c[2*i],c[2*i+1]=o),r--)}}(e,t),S(o,u,e.bl_count)}function M(e,t,n){var r,i,o=-1,a=t[1],s=0,c=7,u=4;for(0===a&&(c=138,u=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=t[2*(r+1)+1],++s<c&&i===a||(s<u?e.bl_tree[2*i]+=s:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,s=0,o=i,0===a?(c=138,u=3):i===a?(c=6,u=3):(c=7,u=4))}function L(e,t,n){var r,i,o=-1,a=t[1],s=0,c=7,u=4;for(0===a&&(c=138,u=3),r=0;r<=n;r++)if(i=a,a=t[2*(r+1)+1],!(++s<c&&i===a)){if(s<u)do{k(e,i,e.bl_tree)}while(0!==--s);else 0!==i?(i!==o&&(k(e,i,e.bl_tree),s--),k(e,16,e.bl_tree),E(e,s-3,2)):s<=10?(k(e,17,e.bl_tree),E(e,s-3,3)):(k(e,18,e.bl_tree),E(e,s-11,7));s=0,o=i,0===a?(c=138,u=3):i===a?(c=6,u=3):(c=7,u=4)}}i(y);var B=!1;function C(e,t,n,i){E(e,0+(i?1:0),3),function(e,t,n){A(e),_(e,n),_(e,~n),r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n)}t._tr_init=function(e){B||(function(){var e,t,n,r,i,c=new Array(16);for(n=0,r=0;r<28;r++)for(p[r]=n,e=0;e<1<<o[r];e++)h[n++]=r;for(h[n-1]=r,i=0,r=0;r<16;r++)for(y[r]=i,e=0;e<1<<a[r];e++)f[i++]=r;for(i>>=7;r<30;r++)for(y[r]=i<<7,e=0;e<1<<a[r]-7;e++)f[256+i++]=r;for(t=0;t<=15;t++)c[t]=0;for(e=0;e<=143;)u[2*e+1]=8,e++,c[8]++;for(;e<=255;)u[2*e+1]=9,e++,c[9]++;for(;e<=279;)u[2*e+1]=7,e++,c[7]++;for(;e<=287;)u[2*e+1]=8,e++,c[8]++;for(S(u,287,c),e=0;e<30;e++)l[2*e+1]=5,l[2*e]=x(e,5);d=new b(u,o,257,286,15),g=new b(l,a,0,30,15),m=new b(new Array(0),s,0,19,7)}(),B=!0),e.l_desc=new v(e.dyn_ltree,d),e.d_desc=new v(e.dyn_dtree,g),e.bl_desc=new v(e.bl_tree,m),e.bi_buf=0,e.bi_valid=0,O(e)},t._tr_stored_block=C,t._tr_flush_block=function(e,t,n,r){var i,o,a=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),I(e,e.l_desc),I(e,e.d_desc),a=function(e){var t;for(M(e,e.dyn_ltree,e.l_desc.max_code),M(e,e.dyn_dtree,e.d_desc.max_code),I(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*c[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(o=e.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==t?C(e,t,n,r):4===e.strategy||o===i?(E(e,2+(r?1:0),3),T(e,u,l)):(E(e,4+(r?1:0),3),function(e,t,n,r){var i;for(E(e,t-257,5),E(e,n-1,5),E(e,r-4,4),i=0;i<r;i++)E(e,e.bl_tree[2*c[i]+1],3);L(e,e.dyn_ltree,t-1),L(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),T(e,e.dyn_ltree,e.dyn_dtree)),O(e),r&&A(e)},t._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(h[n]+256+1)]++,e.dyn_dtree[2*w(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){E(e,2,3),k(e,256,u),function(e){16===e.bi_valid?(_(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},3685:(e,t,n)=>{var r=n(5346),i=n(7330);e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];if(i(n))for(var o=r(n),a=0;a<o.length;a++){var s=o[a];e[s]=n[s]}}return e}},3819:e=>{var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},3918:(e,t,n)=>{"use strict";var r=n(5606);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=s(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var t=function(e){if("object"!==g(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===g(t)?t:String(t)}function c(e,t){if(t&&("object"===g(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return u(e)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){var t="function"==typeof Map?new Map:void 0;return l=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return f(e,arguments,d(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),p(r,e)},l(e)}function f(e,t,n){return f=h()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&p(i,n.prototype),i},f.apply(null,arguments)}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}var m=n(537).inspect,y=n(9597).codes.ERR_INVALID_ARG_TYPE;function b(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}var v="",w="",_="",E="",k={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function x(e){var t=Object.keys(e),n=Object.create(Object.getPrototypeOf(e));return t.forEach(function(t){n[t]=e[t]}),Object.defineProperty(n,"message",{value:e.message}),n}function S(e){return m(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var O=function(e,t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(O,e);var n,i,s,l,f=(n=O,i=h(),function(){var e,t=d(n);if(i){var r=d(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return c(this,e)});function O(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,O),"object"!==g(e)||null===e)throw new y("options","Object",e);var n=e.message,i=e.operator,o=e.stackStartFn,a=e.actual,s=e.expected,l=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=n)t=f.call(this,String(n));else if(r.stderr&&r.stderr.isTTY&&(r.stderr&&r.stderr.getColorDepth&&1!==r.stderr.getColorDepth()?(v="[34m",w="[32m",E="[39m",_="[31m"):(v="",w="",E="",_="")),"object"===g(a)&&null!==a&&"object"===g(s)&&null!==s&&"stack"in a&&a instanceof Error&&"stack"in s&&s instanceof Error&&(a=x(a),s=x(s)),"deepStrictEqual"===i||"strictEqual"===i)t=f.call(this,function(e,t,n){var i="",o="",a=0,s="",c=!1,u=S(e),l=u.split("\n"),f=S(t).split("\n"),h=0,p="";if("strictEqual"===n&&"object"===g(e)&&"object"===g(t)&&null!==e&&null!==t&&(n="strictEqualObject"),1===l.length&&1===f.length&&l[0]!==f[0]){var d=l[0].length+f[0].length;if(d<=10){if(!("object"===g(e)&&null!==e||"object"===g(t)&&null!==t||0===e&&0===t))return"".concat(k[n],"\n\n")+"".concat(l[0]," !== ").concat(f[0],"\n")}else if("strictEqualObject"!==n&&d<(r.stderr&&r.stderr.isTTY?r.stderr.columns:80)){for(;l[0][h]===f[0][h];)h++;h>2&&(p="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var n=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,n-e.length)}(" ",h),"^"),h=0)}}for(var m=l[l.length-1],y=f[f.length-1];m===y&&(h++<2?s="\n ".concat(m).concat(s):i=m,l.pop(),f.pop(),0!==l.length&&0!==f.length);)m=l[l.length-1],y=f[f.length-1];var x=Math.max(l.length,f.length);if(0===x){var O=u.split("\n");if(O.length>30)for(O[26]="".concat(v,"...").concat(E);O.length>27;)O.pop();return"".concat(k.notIdentical,"\n\n").concat(O.join("\n"),"\n")}h>3&&(s="\n".concat(v,"...").concat(E).concat(s),c=!0),""!==i&&(s="\n ".concat(i).concat(s),i="");var A=0,R=k[n]+"\n".concat(w,"+ actual").concat(E," ").concat(_,"- expected").concat(E),j=" ".concat(v,"...").concat(E," Lines skipped");for(h=0;h<x;h++){var T=h-a;if(l.length<h+1)T>1&&h>2&&(T>4?(o+="\n".concat(v,"...").concat(E),c=!0):T>3&&(o+="\n ".concat(f[h-2]),A++),o+="\n ".concat(f[h-1]),A++),a=h,i+="\n".concat(_,"-").concat(E," ").concat(f[h]),A++;else if(f.length<h+1)T>1&&h>2&&(T>4?(o+="\n".concat(v,"...").concat(E),c=!0):T>3&&(o+="\n ".concat(l[h-2]),A++),o+="\n ".concat(l[h-1]),A++),a=h,o+="\n".concat(w,"+").concat(E," ").concat(l[h]),A++;else{var I=f[h],M=l[h],L=M!==I&&(!b(M,",")||M.slice(0,-1)!==I);L&&b(I,",")&&I.slice(0,-1)===M&&(L=!1,M+=","),L?(T>1&&h>2&&(T>4?(o+="\n".concat(v,"...").concat(E),c=!0):T>3&&(o+="\n ".concat(l[h-2]),A++),o+="\n ".concat(l[h-1]),A++),a=h,o+="\n".concat(w,"+").concat(E," ").concat(M),i+="\n".concat(_,"-").concat(E," ").concat(I),A+=2):(o+=i,i="",1!==T&&0!==h||(o+="\n ".concat(M),A++))}if(A>20&&h<x-2)return"".concat(R).concat(j,"\n").concat(o,"\n").concat(v,"...").concat(E).concat(i,"\n")+"".concat(v,"...").concat(E)}return"".concat(R).concat(c?j:"","\n").concat(o).concat(i).concat(s).concat(p)}(a,s,i));else if("notDeepStrictEqual"===i||"notStrictEqual"===i){var h=k[i],p=S(a).split("\n");if("notStrictEqual"===i&&"object"===g(a)&&null!==a&&(h=k.notStrictEqualObject),p.length>30)for(p[26]="".concat(v,"...").concat(E);p.length>27;)p.pop();t=1===p.length?f.call(this,"".concat(h," ").concat(p[0])):f.call(this,"".concat(h,"\n\n").concat(p.join("\n"),"\n"))}else{var d=S(a),m="",A=k[i];"notDeepEqual"===i||"notEqual"===i?(d="".concat(k[i],"\n\n").concat(d)).length>1024&&(d="".concat(d.slice(0,1021),"...")):(m="".concat(S(s)),d.length>512&&(d="".concat(d.slice(0,509),"...")),m.length>512&&(m="".concat(m.slice(0,509),"...")),"deepEqual"===i||"equal"===i?d="".concat(A,"\n\n").concat(d,"\n\nshould equal\n\n"):m=" ".concat(i," ").concat(m)),t=f.call(this,"".concat(d).concat(m))}return Error.stackTraceLimit=l,t.generatedMessage=!n,Object.defineProperty(u(t),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),t.code="ERR_ASSERTION",t.actual=a,t.expected=s,t.operator=i,Error.captureStackTrace&&Error.captureStackTrace(u(t),o),t.stack,t.name="AssertionError",c(t)}return s=O,(l=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(e,t){return m(this,o(o({},t),{},{customInspect:!1,depth:0}))}}])&&a(s.prototype,l),Object.defineProperty(s,"prototype",{writable:!1}),O}(l(Error),m.custom);e.exports=O},4035:(e,t,n)=>{"use strict";var r,i=n(6556),o=n(9092)(),a=n(9957),s=n(5795);if(o){var c=i("RegExp.prototype.exec"),u={},l=function(){throw u},f={toString:l,valueOf:l};"symbol"==typeof Symbol.toPrimitive&&(f[Symbol.toPrimitive]=l),r=function(e){if(!e||"object"!=typeof e)return!1;var t=s(e,"lastIndex");if(!t||!a(t,"value"))return!1;try{c(e,f)}catch(e){return e===u}}}else{var h=i("Object.prototype.toString");r=function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===h(e)}}e.exports=r},4039:(e,t,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(1333);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&i()}},4053:(e,t,n)=>{"use strict";var r=n(5606),i=n(3225);e.exports=v;var o,a=n(1097);v.ReadableState=b,n(7007).EventEmitter;var s=function(e,t){return e.listeners(t).length},c=n(8010),u=n(5386).Buffer,l=(void 0!==n.g?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},f=Object.create(n(5622));f.inherits=n(6698);var h=n(4385),p=void 0;p=h&&h.debuglog?h.debuglog("stream"):function(){};var d,g=n(3005),m=n(7353);f.inherits(v,c);var y=["error","close","destroy","pause","resume"];function b(e,t){e=e||{};var r=t instanceof(o=o||n(4935));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(d||(d=n(7650).I),this.decoder=new d(e.encoding),this.encoding=e.encoding)}function v(e){if(o=o||n(4935),!(this instanceof v))return new v(e);this._readableState=new b(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),c.call(this)}function w(e,t,n,r,i){var o,a=e._readableState;return null===t?(a.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,x(e)}}(e,a)):(i||(o=function(e,t){var n,r;return r=t,u.isBuffer(r)||r instanceof l||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),r?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):_(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?_(e,a,t,!1):O(e,a)):_(e,a,t,!1))):r||(a.reading=!1)),function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(a)}function _(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&x(e)),O(e,t)}Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),v.prototype.destroy=m.destroy,v.prototype._undestroy=m.undestroy,v.prototype._destroy=function(e,t){this.push(null),t(e)},v.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=u.from(e,t),t=""),n=!0),w(this,e,t,!1,n)},v.prototype.unshift=function(e){return w(this,e,null,!0,!1)},v.prototype.isPaused=function(){return!1===this._readableState.flowing},v.prototype.setEncoding=function(e){return d||(d=n(7650).I),this._readableState.decoder=new d(e),this._readableState.encoding=e,this};var E=8388608;function k(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=E?e=E:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function x(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(p("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(S,e):S(e))}function S(e){p("emit readable"),e.emit("readable"),T(e)}function O(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(A,e,t))}function A(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(p("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function R(e){p("readable nexttick read 0"),e.read(0)}function j(e,t){t.reading||(p("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),T(e),t.flowing&&!t.reading&&e.read(0)}function T(e){var t=e._readableState;for(p("flow",t.flowing);t.flowing&&null!==e.read(););}function I(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;return e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;for(e-=i.length;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=u.allocUnsafe(e),r=t.head,i=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),0===(e-=a)){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}(e,t),r}(e,t.buffer,t.decoder),n);var n}function M(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(L,t,e))}function L(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function B(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}v.prototype.read=function(e){p("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return p("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?M(this):x(this),null;if(0===(e=k(e,t))&&t.ended)return 0===t.length&&M(this),null;var r,i=t.needReadable;return p("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&p("length less than watermark",i=!0),t.ended||t.reading?p("reading or ended",i=!1):i&&(p("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=k(n,t))),null===(r=e>0?I(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&M(this)),null!==r&&this.emit("data",r),r},v.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},v.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,p("pipe count=%d opts=%j",o.pipesCount,t);var c=t&&!1===t.end||e===r.stdout||e===r.stderr?b:u;function u(){p("onend"),e.end()}o.endEmitted?i.nextTick(c):n.once("end",c),e.on("unpipe",function t(r,i){p("onunpipe"),r===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,p("cleanup"),e.removeListener("close",m),e.removeListener("finish",y),e.removeListener("drain",l),e.removeListener("error",g),e.removeListener("unpipe",t),n.removeListener("end",u),n.removeListener("end",b),n.removeListener("data",d),f=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||l())});var l=function(e){return function(){var t=e._readableState;p("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,T(e))}}(n);e.on("drain",l);var f=!1,h=!1;function d(t){p("ondata"),h=!1,!1!==e.write(t)||h||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==B(o.pipes,e))&&!f&&(p("false write response, pause",o.awaitDrain),o.awaitDrain++,h=!0),n.pause())}function g(t){p("onerror",t),b(),e.removeListener("error",g),0===s(e,"error")&&e.emit("error",t)}function m(){e.removeListener("finish",y),b()}function y(){p("onfinish"),e.removeListener("close",m),b()}function b(){p("unpipe"),n.unpipe(e)}return n.on("data",d),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",g),e.once("close",m),e.once("finish",y),e.emit("pipe",n),o.flowing||(p("pipe resume"),n.resume()),e},v.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=B(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},v.prototype.on=function(e,t){var n=c.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&x(this):i.nextTick(R,this))}return n},v.prototype.addListener=v.prototype.on,v.prototype.resume=function(){var e=this._readableState;return e.flowing||(p("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(j,e,t))}(this,e)),this},v.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this},v.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",function(){if(p("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){p("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<y.length;o++)e.on(y[o],this.emit.bind(this,y[o]));return this._read=function(t){p("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(v.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),v._fromList=I},4123:(e,t,n)=>{var r=n(2795);function i(e,t,n){var r,i,o;t.limit=t.reverse?2:1,r=e.createReadStream(t),i=function(e,r){if(t.reverse&&r&&t.start&&r.key.toString()>t.start)return!1;"error"==e?n(r):"end"==e?n(new Error("range not found"),null,null):n(null,r.key,r.value)},o=[],["data","error","end"].forEach(function(e){function t(t){!1!==i(e,t)&&o.forEach(function(e){e()})}r.on(e,t),o.push(function(){r.removeListener(e,t)})})}(t=e.exports=i).first=function(e,t,n){return n||(n=t,t={}),t.reverse=!1,i(e,r(t),n)},t.last=function(e,t,n){return n||(n=t,t={}),t.start,t.reverse=!0,i(e,r(t),function(r,o,a){if(r){var s=t.start;t.start=null,i(e,t,function(e,i,o){if(!i)return n(r,null,null);var a=i.toString();a<=s&&(!t.end||a>=t.end)?n(e,i,o):n(r,null,null)})}else n(r,o,a)})}},4133:(e,t,n)=>{"use strict";var r=n(487),i=n(8452),o=n(3003),a=n(6642),s=n(2464),c=r(a(),Number);i(c,{getPolyfill:a,implementation:o,shim:s}),e.exports=c},4148:(e,t,n)=>{"use strict";var r=n(5606);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e){var t=function(e){if("object"!==i(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===i(t)?t:String(t)}var c,u,l=n(9597).codes,f=l.ERR_AMBIGUOUS_ARGUMENT,h=l.ERR_INVALID_ARG_TYPE,p=l.ERR_INVALID_ARG_VALUE,d=l.ERR_INVALID_RETURN_VALUE,g=l.ERR_MISSING_ARGS,m=n(3918),y=n(537).inspect,b=n(537).types,v=b.isPromise,w=b.isRegExp,_=n(9133)(),E=n(9394)(),k=n(8075)("RegExp.prototype.test");function x(){var e=n(2299);c=e.isDeepEqual,u=e.isDeepStrictEqual}new Map;var S=!1,O=e.exports=T,A={};function R(e){if(e.message instanceof Error)throw e.message;throw new m(e)}function j(e,t,n,r){if(!n){var i=!1;if(0===t)i=!0,r="No value argument passed to `assert.ok()`";else if(r instanceof Error)throw r;var o=new m({actual:n,expected:!0,message:r,operator:"==",stackStartFn:e});throw o.generatedMessage=i,o}}function T(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];j.apply(void 0,[T,t.length].concat(t))}O.fail=function e(t,n,i,o,a){var s,c=arguments.length;if(0===c?s="Failed":1===c?(i=t,t=void 0):(!1===S&&(S=!0,(r.emitWarning?r.emitWarning:console.warn.bind(console))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===c&&(o="!=")),i instanceof Error)throw i;var u={actual:t,expected:n,operator:void 0===o?"fail":o,stackStartFn:a||e};void 0!==i&&(u.message=i);var l=new m(u);throw s&&(l.message=s,l.generatedMessage=!0),l},O.AssertionError=m,O.ok=T,O.equal=function e(t,n,r){if(arguments.length<2)throw new g("actual","expected");t!=n&&R({actual:t,expected:n,message:r,operator:"==",stackStartFn:e})},O.notEqual=function e(t,n,r){if(arguments.length<2)throw new g("actual","expected");t==n&&R({actual:t,expected:n,message:r,operator:"!=",stackStartFn:e})},O.deepEqual=function e(t,n,r){if(arguments.length<2)throw new g("actual","expected");void 0===c&&x(),c(t,n)||R({actual:t,expected:n,message:r,operator:"deepEqual",stackStartFn:e})},O.notDeepEqual=function e(t,n,r){if(arguments.length<2)throw new g("actual","expected");void 0===c&&x(),c(t,n)&&R({actual:t,expected:n,message:r,operator:"notDeepEqual",stackStartFn:e})},O.deepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new g("actual","expected");void 0===c&&x(),u(t,n)||R({actual:t,expected:n,message:r,operator:"deepStrictEqual",stackStartFn:e})},O.notDeepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new g("actual","expected");void 0===c&&x(),u(t,n)&&R({actual:t,expected:n,message:r,operator:"notDeepStrictEqual",stackStartFn:e})},O.strictEqual=function e(t,n,r){if(arguments.length<2)throw new g("actual","expected");E(t,n)||R({actual:t,expected:n,message:r,operator:"strictEqual",stackStartFn:e})},O.notStrictEqual=function e(t,n,r){if(arguments.length<2)throw new g("actual","expected");E(t,n)&&R({actual:t,expected:n,message:r,operator:"notStrictEqual",stackStartFn:e})};var I=a(function e(t,n,r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n.forEach(function(e){e in t&&(void 0!==r&&"string"==typeof r[e]&&w(t[e])&&k(t[e],r[e])?i[e]=r[e]:i[e]=t[e])})});function M(e,t,n,r){if("function"!=typeof t){if(w(t))return k(t,e);if(2===arguments.length)throw new h("expected",["Function","RegExp"],t);if("object"!==i(e)||null===e){var o=new m({actual:e,expected:t,message:n,operator:"deepStrictEqual",stackStartFn:r});throw o.operator=r.name,o}var a=Object.keys(t);if(t instanceof Error)a.push("name","message");else if(0===a.length)throw new p("error",t,"may not be an empty object");return void 0===c&&x(),a.forEach(function(i){"string"==typeof e[i]&&w(t[i])&&k(t[i],e[i])||function(e,t,n,r,i,o){if(!(n in e)||!u(e[n],t[n])){if(!r){var a=new I(e,i),s=new I(t,i,e),c=new m({actual:a,expected:s,operator:"deepStrictEqual",stackStartFn:o});throw c.actual=e,c.expected=t,c.operator=o.name,c}R({actual:e,expected:t,message:r,operator:o.name,stackStartFn:o})}}(e,t,i,n,a,r)}),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function L(e){if("function"!=typeof e)throw new h("fn","Function",e);try{e()}catch(e){return e}return A}function B(e){return v(e)||null!==e&&"object"===i(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function C(e){return Promise.resolve().then(function(){var t;if("function"==typeof e){if(!B(t=e()))throw new d("instance of Promise","promiseFn",t)}else{if(!B(e))throw new h("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then(function(){return t}).then(function(){return A}).catch(function(e){return e})})}function N(e,t,n,r){if("string"==typeof n){if(4===arguments.length)throw new h("error",["Object","Error","Function","RegExp"],n);if("object"===i(t)&&null!==t){if(t.message===n)throw new f("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===n)throw new f("error/message",'The error "'.concat(t,'" is identical to the message.'));r=n,n=void 0}else if(null!=n&&"object"!==i(n)&&"function"!=typeof n)throw new h("error",["Object","Error","Function","RegExp"],n);if(t===A){var o="";n&&n.name&&(o+=" (".concat(n.name,")")),o+=r?": ".concat(r):".";var a="rejects"===e.name?"rejection":"exception";R({actual:void 0,expected:n,operator:e.name,message:"Missing expected ".concat(a).concat(o),stackStartFn:e})}if(n&&!M(t,n,r,e))throw t}function P(e,t,n,r){if(t!==A){if("string"==typeof n&&(r=n,n=void 0),!n||M(t,n)){var i=r?": ".concat(r):".",o="doesNotReject"===e.name?"rejection":"exception";R({actual:t,expected:n,operator:e.name,message:"Got unwanted ".concat(o).concat(i,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function D(e,t,n,r,o){if(!w(t))throw new h("regexp","RegExp",t);var a="match"===o;if("string"!=typeof e||k(t,e)!==a){if(n instanceof Error)throw n;var s=!n;n=n||("string"!=typeof e?'The "string" argument must be of type string. Received type '+"".concat(i(e)," (").concat(y(e),")"):(a?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(y(t),". Input:\n\n").concat(y(e),"\n"));var c=new m({actual:e,expected:t,message:n,operator:o,stackStartFn:r});throw c.generatedMessage=s,c}}function F(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];j.apply(void 0,[F,t.length].concat(t))}O.throws=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];N.apply(void 0,[e,L(t)].concat(r))},O.rejects=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return C(t).then(function(t){return N.apply(void 0,[e,t].concat(r))})},O.doesNotThrow=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];P.apply(void 0,[e,L(t)].concat(r))},O.doesNotReject=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return C(t).then(function(t){return P.apply(void 0,[e,t].concat(r))})},O.ifError=function e(t){if(null!=t){var n="ifError got unwanted exception: ";"object"===i(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?n+=t.constructor.name:n+=t.message:n+=y(t);var r=new m({actual:t,expected:null,operator:"ifError",message:n,stackStartFn:e}),o=t.stack;if("string"==typeof o){var a=o.split("\n");a.shift();for(var s=r.stack.split("\n"),c=0;c<a.length;c++){var u=s.indexOf(a[c]);if(-1!==u){s=s.slice(0,u);break}}r.stack="".concat(s.join("\n"),"\n").concat(a.join("\n"))}throw r}},O.match=function e(t,n,r){D(t,n,r,e,"match")},O.doesNotMatch=function e(t,n,r){D(t,n,r,e,"doesNotMatch")},O.strict=_(F,O,{equal:O.strictEqual,deepEqual:O.deepStrictEqual,notEqual:O.notStrictEqual,notDeepEqual:O.notDeepStrictEqual}),O.strict.strict=O.strict},4233:e=>{"use strict";const t=function*(){}.constructor;e.exports=()=>t},4385:()=>{},4427:(e,t,n)=>{var r=n(5606);function i(e){this.db=e,this._ended=!1,this._nexting=!1}i.prototype.next=function(e){var t=this;if("function"!=typeof e)throw new Error("next() requires a callback argument");return t._ended?e(new Error("cannot call next() after end()")):t._nexting?e(new Error("cannot call next() before previous next() has completed")):(t._nexting=!0,"function"==typeof t._next?t._next(function(){t._nexting=!1,e.apply(null,arguments)}):void r.nextTick(function(){t._nexting=!1,e()}))},i.prototype.end=function(e){if("function"!=typeof e)throw new Error("end() requires a callback argument");return this._ended?e(new Error("end() already called on iterator")):(this._ended=!0,"function"==typeof this._end?this._end(e):void r.nextTick(e))},e.exports=i},4442:e=>{"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},4459:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!=e}},4507:(e,t,n)=>{"use strict";e.exports=o;var r=n(1657),i=Object.create(n(5622));function o(e){if(!(this instanceof o))return new o(e);r.call(this,e)}i.inherits=n(6698),i.inherits(o,r),o.prototype._transform=function(e,t,n){n(null,e)}},4527:(e,t,n)=>{var r=n(8287).Buffer;e.exports=function(e){return"function"==typeof r._augment&&r.TYPED_ARRAY_SUPPORT?r._augment(e):new r(e)}},4602:(e,t,n)=>{var r=n(8287).Buffer;function i(e){return void 0!==e&&""!==e}function o(e,t){return Object.hasOwnProperty.call(e,t)}function a(e,t){return Object.hasOwnProperty.call(e,t)&&t}t.compare=function(e,t){if(r.isBuffer(e)){for(var n=Math.min(e.length,t.length),i=0;i<n;i++){var o=e[i]-t[i];if(o)return o}return e.length-t.length}return e<t?-1:e>t?1:0};var s=t.lowerBoundKey=function(e){return a(e,"gt")||a(e,"gte")||a(e,"min")||(e.reverse?a(e,"end"):a(e,"start"))||void 0},c=t.lowerBound=function(e,t){var n=s(e);return n?e[n]:t},u=t.lowerBoundInclusive=function(e){return!o(e,"gt")},l=t.upperBoundInclusive=function(e){return!o(e,"lt")},f=t.lowerBoundExclusive=function(e){return!u(e)},h=t.upperBoundExclusive=function(e){return!l(e)},p=t.upperBoundKey=function(e){return a(e,"lt")||a(e,"lte")||a(e,"max")||(e.reverse?a(e,"start"):a(e,"end"))||void 0},d=t.upperBound=function(e,t){var n=p(e);return n?e[n]:t};function g(e){return e}t.start=function(e,t){return e.reverse?d(e,t):c(e,t)},t.end=function(e,t){return e.reverse?c(e,t):d(e,t)},t.startInclusive=function(e){return e.reverse?l(e):u(e)},t.endInclusive=function(e){return e.reverse?u(e):l(e)},t.toLtgt=function(e,n,r,i,a){n=n||{},r=r||g;var s=arguments.length>3,c=t.lowerBoundKey(e),u=t.upperBoundKey(e);return c?"gt"===c?n.gt=r(e.gt,!1):n.gte=r(e[c],!1):s&&(n.gte=r(i,!1)),u?"lt"===u?n.lt=r(e.lt,!0):n.lte=r(e[u],!0):s&&(n.lte=r(a,!0)),null!=e.reverse&&(n.reverse=!!e.reverse),o(n,"max")&&delete n.max,o(n,"min")&&delete n.min,o(n,"start")&&delete n.start,o(n,"end")&&delete n.end,n},t.contains=function(e,n,r){r=r||t.compare;var o=c(e);if(i(o)&&((a=r(n,o))<0||0===a&&f(e)))return!1;var a,s=d(e);return!i(s)||!((a=r(n,s))>0||0===a&&h(e))},t.filter=function(e,n){return function(r){return t.contains(e,r,n)}}},4610:(e,t,n)=>{"use strict";e.exports=l;var r=n(6048).F,i=r.ERR_METHOD_NOT_IMPLEMENTED,o=r.ERR_MULTIPLE_CALLBACK,a=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,c=n(5382);function u(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function l(e){if(!(this instanceof l))return new l(e);c.call(this,e),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush(function(t,n){h(e,t,n)})}function h(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}n(6698)(l,c),l.prototype.push=function(e,t){return this._transformState.needTransform=!1,c.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,n){n(new i("_transform()"))},l.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},l.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},l.prototype._destroy=function(e,t){c.prototype._destroy.call(this,e,function(e){t(e)})}},4643:(e,t,n)=>{function r(e){try{if(!n.g.localStorage)return!1}catch(e){return!1}var t=n.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}},4674:e=>{"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},4675:(e,t,n)=>{var r=n(5606);(t=e.exports=n(5821)).Stream=n(8310),t.Readable=t,t.Writable=n(5405),t.Duplex=n(7295),t.Transform=n(2545),t.PassThrough=n(5683),r.browser||"disable"!==r.env.READABLE_STREAM||(e.exports=n(8310))},4765:e=>{"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC3986";e.exports={default:r,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:r}},4803:(e,t,n)=>{"use strict";var r=n(8859),i=n(9675),o=function(e,t,n){for(var r,i=e;null!=(r=i.next);i=r)if(r.key===t)return i.next=r.next,n||(r.next=e.next,e.next=r),r};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new i("Side channel does not contain "+r(e))},delete:function(t){var n=e&&e.next,r=function(e,t){if(e)return o(e,t,!0)}(e,t);return r&&n&&n===r&&(e=void 0),!!r},get:function(t){return function(e,t){if(e){var n=o(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!o(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var r=o(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t}},4823:e=>{"use strict";var t=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();e.exports=function(e,n,r,i){var o=t,a=i+r;e^=-1;for(var s=i;s<a;s++)e=e>>>8^o[255&(e^n[s])];return-1^e}},4829:(e,t,n)=>{var r=n(8287).Buffer,i=n(8320).Duplex;function o(e){if(!(this instanceof o))return new o(e);if(this._bufs=[],this.length=0,"function"==typeof e){this._callback=e;var t=function(e){this._callback&&(this._callback(e),this._callback=null)}.bind(this);this.on("pipe",function(e){e.on("error",t)}),this.on("unpipe",function(e){e.removeListener("error",t)})}else r.isBuffer(e)?this.append(e):Array.isArray(e)&&e.forEach(function(e){r.isBuffer(e)&&this.append(e)}.bind(this));i.call(this)}n(537).inherits(o,i),o.prototype._offset=function(e){for(var t,n=0,r=0;r<this._bufs.length;r++){if(e<(t=n+this._bufs[r].length))return[r,e-n];n=t}},o.prototype.append=function(e){return this._bufs.push(r.isBuffer(e)?e:new r(e)),this.length+=e.length,this},o.prototype._write=function(e,t,n){this.append(e),n&&n()},o.prototype._read=function(e){if(!this.length)return this.push(null);e=Math.min(e,this.length),this.push(this.slice(0,e)),this.consume(e)},o.prototype.end=function(e){i.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null)},o.prototype.get=function(e){return this.slice(e,e+1)[0]},o.prototype.slice=function(e,t){return this.copy(null,0,e,t)},o.prototype.copy=function(e,t,n,i){if(("number"!=typeof n||n<0)&&(n=0),("number"!=typeof i||i>this.length)&&(i=this.length),n>=this.length)return e||new r(0);if(i<=0)return e||new r(0);var o,a,s=!!e,c=this._offset(n),u=i-n,l=u,f=s&&t||0,h=c[1];if(0===n&&i==this.length){if(!s)return r.concat(this._bufs);for(a=0;a<this._bufs.length;a++)this._bufs[a].copy(e,f),f+=this._bufs[a].length;return e}if(l<=this._bufs[c[0]].length-h)return s?this._bufs[c[0]].copy(e,t,h,h+l):this._bufs[c[0]].slice(h,h+l);for(s||(e=new r(u)),a=c[0];a<this._bufs.length;a++){if(!(l>(o=this._bufs[a].length-h))){this._bufs[a].copy(e,f,h,h+l);break}this._bufs[a].copy(e,f,h),f+=o,l-=o,h&&(h=0)}return e},o.prototype.toString=function(e,t,n){return this.slice(t,n).toString(e)},o.prototype.consume=function(e){for(;this._bufs.length;){if(!(e>this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},o.prototype.duplicate=function(){for(var e=0,t=new o;e<this._bufs.length;e++)t.append(this._bufs[e]);return t},o.prototype.destroy=function(){this._bufs.length=0,this.length=0,this.push(null)},function(){var e={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1};for(var t in e)(function(t){o.prototype[t]=function(n){return this.slice(n,n+e[t])[t](0)}})(t)}(),e.exports=o},4837:(e,t,n)=>{var r=n(8287).Buffer,i=n(5606),o=n(2602),a=n(3238),s=n(8688),c=new r(0),u=function(){},l=function(e){return"function"==typeof e?e:function(t){t(null,e)}},f=function(e,t){var n=!1,r=!1;return e._read=function(){n=!0},e.destroy=function(){r=!0},t(function(t,o){if(t)return e.emit("error",t);var a=function(){for(var t;null!==(t=o.read());)n=!1,e.push(t)};if(o.on("readable",function(){n&&a()}),o.on("end",function(){a(),e.push(null)}),o.on("error",function(t){e.emit("error",t)}),o.on("close",function(){a(),i.nextTick(function(){e.emit("close")})}),e._read=function(){n=!0,a()},e.destroy=function(){r||(r=!0,o.destroy&&o.destroy())},r)return r=!1,void e.destroy();n&&a()}),e},h=function(e,t){var n=u,r=!1;return e._write=function(e,t,r){n=r},e.destroy=function(){r=!0},e.write(c),t(function(t,i){if(t)return e.emit("error",t);i.on("close",function(){e.emit("close")}),i.on("error",function(t){e.emit("error",t)}),e._write=function(e,t,n){if(e===c)return n();i.write(e,t,n)};var o=e.emit;if(i.on("finish",function(){o.call(e,"finish")}),e.destroy=function(){r||(r=!0,i.destroy&&i.destroy())},e.emit=function(t){if("finish"!==t)return o.apply(e,arguments);i.end()},r)return r=!1,void e.destroy();n()}),e};t.readable=function(e,n){return 1===arguments.length?t.readable(null,e):(e||(e={}),f(new a(e),l(n)))},t.writable=function(e,n){return 1===arguments.length?t.writable(null,e):(e||(e={}),h(new o(e),l(n)))},t.duplex=function(e,n,r){if(2===arguments.length)return t.duplex(null,e,n);e||(e={});var i=new s(e);return h(i,l(n)),f(i,l(r)),i}},4935:(e,t,n)=>{"use strict";var r=n(3225),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=f;var o=Object.create(n(5622));o.inherits=n(6698);var a=n(4053),s=n(5509);o.inherits(f,a);for(var c=i(s.prototype),u=0;u<c.length;u++){var l=c[u];f.prototype[l]||(f.prototype[l]=s.prototype[l])}function f(e){if(!(this instanceof f))return new f(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",h)}function h(){this.allowHalfOpen||this._writableState.ended||r.nextTick(p,this)}function p(e){e.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),f.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},5019:(e,t,n)=>{var r=n(8287).Buffer,i=r.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},o=t.I=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!i(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=s;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=c;break;default:return void(this.write=a)}this.charBuffer=new r(6),this.charReceived=0,this.charLength=0};function a(e){return e.toString(this.encoding)}function s(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function c(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}o.prototype.write=function(e){for(var t="";this.charLength;){var n=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived<this.charLength)return"";if(e=e.slice(n,e.length),!((r=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&r<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var r,i=e.length;if(this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),i=(t+=e.toString(this.encoding,0,i)).length-1,(r=t.charCodeAt(i))>=55296&&r<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},o.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},o.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,r=this.charBuffer,i=this.encoding;t+=r.slice(0,n).toString(i)}return t}},5140:(e,t,n)=>{var r=n(5606);e.exports=f;var i=n(3626),o=n(8287).Buffer;f.ReadableState=l;var a=n(7007).EventEmitter;a.listenerCount||(a.listenerCount=function(e,t){return e.listeners(t).length});var s,c=n(8310),u=n(5622);function l(e,t){var r=(e=e||{}).highWaterMark;this.highWaterMark=r||0===r?r:16384,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=!1,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.calledRead=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!e.objectMode,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=n(5019).I),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function f(e){if(!(this instanceof f))return new f(e);this._readableState=new l(e,this),this.readable=!0,c.call(this)}function h(e,t,n,i,a){var s=function(e,t){var n=null;return o.isBuffer(t)||"string"==typeof t||null==t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(t,n);if(s)e.emit("error",s);else if(null==n)t.reading=!1,t.ended||function(e,t){if(t.decoder&&!t.ended){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.length>0?g(e):_(e)}(e,t);else if(t.objectMode||n&&n.length>0)if(t.ended&&!a){var c=new Error("stream.push() after EOF");e.emit("error",c)}else t.endEmitted&&a?(c=new Error("stream.unshift() after end event"),e.emit("error",c)):(!t.decoder||a||i||(n=t.decoder.write(n)),t.length+=t.objectMode?1:n.length,a?t.buffer.unshift(n):(t.reading=!1,t.buffer.push(n)),t.needReadable&&g(e),function(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(function(){!function(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}(e,t)}))}(e,t));else a||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}u.inherits=n(6698),u.inherits(f,c),f.prototype.push=function(e,t){var n=this._readableState;return"string"!=typeof e||n.objectMode||(t=t||n.defaultEncoding)!==n.encoding&&(e=new o(e,t),t=""),h(this,n,e,t,!1)},f.prototype.unshift=function(e){return h(this,this._readableState,e,"",!0)},f.prototype.setEncoding=function(e){s||(s=n(5019).I),this._readableState.decoder=new s(e),this._readableState.encoding=e};var p=8388608;function d(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:null===e||isNaN(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:e<=0?0:(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>=p)e=p;else{e--;for(var t=1;t<32;t<<=1)e|=e>>t;e++}return e}(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function g(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,t.sync?r.nextTick(function(){m(e)}):m(e))}function m(e){e.emit("readable")}function y(e){var t,n=e._readableState;function r(e,r,i){!1===e.write(t)&&n.awaitDrain++}for(n.awaitDrain=0;n.pipesCount&&null!==(t=e.read());)if(1===n.pipesCount?r(n.pipes):E(n.pipes,r),e.emit("data",t),n.awaitDrain>0)return;if(0===n.pipesCount)return n.flowing=!1,void(a.listenerCount(e,"data")>0&&v(e));n.ranOut=!0}function b(){this._readableState.ranOut&&(this._readableState.ranOut=!1,y(this))}function v(e,t){if(e._readableState.flowing)throw new Error("Cannot switch to old mode now.");var n=t||!1,i=!1;e.readable=!0,e.pipe=c.prototype.pipe,e.on=e.addListener=c.prototype.on,e.on("readable",function(){var t;for(i=!0;!n&&null!==(t=e.read());)e.emit("data",t);null===t&&(i=!1,e._readableState.needReadable=!0)}),e.pause=function(){n=!0,this.emit("pause")},e.resume=function(){n=!1,i?r.nextTick(function(){e.emit("readable")}):this.read(0),this.emit("resume")},e.emit("readable")}function w(e,t){var n,r=t.buffer,i=t.length,a=!!t.decoder,s=!!t.objectMode;if(0===r.length)return null;if(0===i)n=null;else if(s)n=r.shift();else if(!e||e>=i)n=a?r.join(""):o.concat(r,i),r.length=0;else if(e<r[0].length)n=(f=r[0]).slice(0,e),r[0]=f.slice(e);else if(e===r[0].length)n=r.shift();else{n=a?"":new o(e);for(var c=0,u=0,l=r.length;u<l&&c<e;u++){var f=r[0],h=Math.min(e-c,f.length);a?n+=f.slice(0,h):f.copy(n,c,0,h),h<f.length?r[0]=f.slice(h):r.shift(),c+=h}}return n}function _(e){var t=e._readableState;if(t.length>0)throw new Error("endReadable called on non-empty stream");!t.endEmitted&&t.calledRead&&(t.ended=!0,r.nextTick(function(){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}))}function E(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n)}f.prototype.read=function(e){var t=this._readableState;t.calledRead=!0;var n,r=e;if(("number"!=typeof e||e>0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return g(this),null;if(0===(e=d(e,t))&&t.ended)return n=null,t.length>0&&t.decoder&&(n=w(e,t),t.length-=n.length),0===t.length&&_(this),n;var i=t.needReadable;return t.length-e<=t.highWaterMark&&(i=!0),(t.ended||t.reading)&&(i=!1),i&&(t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1),i&&!t.reading&&(e=d(r,t)),null===(n=e>0?w(e,t):null)&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),t.ended&&!t.endEmitted&&0===t.length&&_(this),n},f.prototype._read=function(e){this.emit("error",new Error("not implemented"))},f.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1;var s=t&&!1===t.end||e===r.stdout||e===r.stderr?f:u;function c(e){e===n&&f()}function u(){e.end()}o.endEmitted?r.nextTick(s):n.once("end",s),e.on("unpipe",c);var l=function(e){return function(){var t=e._readableState;t.awaitDrain--,0===t.awaitDrain&&y(e)}}(n);function f(){e.removeListener("close",p),e.removeListener("finish",d),e.removeListener("drain",l),e.removeListener("error",h),e.removeListener("unpipe",c),n.removeListener("end",u),n.removeListener("end",f),e._writableState&&!e._writableState.needDrain||l()}function h(t){g(),e.removeListener("error",h),0===a.listenerCount(e,"error")&&e.emit("error",t)}function p(){e.removeListener("finish",d),g()}function d(){e.removeListener("close",p),g()}function g(){n.unpipe(e)}return e.on("drain",l),e._events&&e._events.error?i(e._events.error)?e._events.error.unshift(h):e._events.error=[h,e._events.error]:e.on("error",h),e.once("close",p),e.once("finish",d),e.emit("pipe",n),o.flowing||(this.on("readable",b),o.flowing=!0,r.nextTick(function(){y(n)})),e},f.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,this.removeListener("readable",b),t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,this.removeListener("readable",b),t.flowing=!1;for(var i=0;i<r;i++)n[i].emit("unpipe",this);return this}return-1===(i=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}(t.pipes,e))||(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},f.prototype.on=function(e,t){var n=c.prototype.on.call(this,e,t);if("data"!==e||this._readableState.flowing||v(this),"readable"===e&&this.readable){var r=this._readableState;r.readableListening||(r.readableListening=!0,r.emittedReadable=!1,r.needReadable=!0,r.reading?r.length&&g(this):this.read(0))}return n},f.prototype.addListener=f.prototype.on,f.prototype.resume=function(){v(this),this.read(0),this.emit("resume")},f.prototype.pause=function(){v(this,!0),this.emit("pause")},f.prototype.wrap=function(e){var t=this._readableState,n=!1,r=this;for(var i in e.on("end",function(){if(t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)}),e.on("data",function(i){t.decoder&&(i=t.decoder.write(i)),t.objectMode&&null==i||(t.objectMode||i&&i.length)&&(r.push(i)||(n=!0,e.pause()))}),e)"function"==typeof e[i]&&void 0===this[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return E(["error","close","destroy","pause","resume"],function(t){e.on(t,r.emit.bind(r,t))}),r._read=function(t){n&&(n=!1,e.resume())},r},f._fromList=w},5157:e=>{e.exports=function(){throw new Error("Readable.from is not available in the browser")}},5240:(e,t,n)=>{var r=n(5606);e.exports=c;var i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t},o=n(5622);o.inherits=n(6698);var a=n(1438),s=n(626);function c(e){if(!(this instanceof c))return new c(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",u)}function u(){this.allowHalfOpen||this._writableState.ended||r.nextTick(this.end.bind(this))}o.inherits(c,a),function(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n])}(i(s.prototype),function(e){c.prototype[e]||(c.prototype[e]=s.prototype[e])})},5291:(e,t,n)=>{"use strict";var r=n(6048).F.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,n,i){var o=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,i,n);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new r(i?n:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},5340:()=>{},5345:e=>{"use strict";e.exports=URIError},5346:(e,t,n)=>{e.exports=Object.keys||n(7589)},5363:(e,t,n)=>{var r=n(5606),i=n(7975),o=n(3519),a=n(7520),s=n(6788),c=n(2581),u=n(7970),l=n(8571),f=c({type:"directory",mode:s(777),size:4096}),h=function(e){return e="/"===e[0]?e:"/"+e,"/"===(e=i.normalize(e))?e:"/"===e[e.length-1]?e.slice(0,-1):e},p=function(e){var t=e.split("/").length.toString(36);return"0000000000".slice(t.length)+t+e};e.exports=function(e){var t={};return t.normalize=h,t.get=function(t,n){if("/"===(t=h(t)))return r.nextTick(n.bind(null,null,f,"/"));e.get(p(t),{valueEncoding:"json"},function(e,r){return e&&e.notFound?n(l.ENOENT(t),null,t):e?n(e,null,t):void n(null,c(r),t)})},t.writable=function(e,n){if("/"===(e=h(e)))return r.nextTick(n.bind(null,l.EPERM(e)));t.follow(i.dirname(e),function(t,r){return t?n(t):r.isDirectory()?void n(null,e):n(l.ENOTDIR(e))})},t.list=function(t,n){t=h(t);var r=p("/"===t?t:t+"/"),i=e.createKeyStream({start:r,end:r+"ÿ"});n=o(n),i.on("error",n),i.pipe(a({encoding:"object"},function(e){e=e.map(function(e){return e.split("/").pop()}),n(null,e)}))},t.follow=function(e,n){!function(e,n){var r="/",o=e.split("/").slice(1),a=function(){t.get(i.join(r,o.shift()),function(t,i,s){return t?n(t,i,e):(r=i.target||s,o.length?void a():n(null,i,s))})};a()}(h(e),function e(r,i,o){return r?n(r,null,o):i.target?t.get(i.target,e):void n(null,c(i),o)})},t.update=function(e,n,r){t.get(e,function(e,i,o){return e?r(e):"/"===o?r(l.EPERM(o)):void t.put(o,u(i,n),r)})},t.put=function(n,r,i){t.writable(n,function(t,n){if(t)return i(t);e.put(p(n),c(r),{valueEncoding:"json"},i)})},t.del=function(t,n){if("/"===(t=h(t)))return r.nextTick(n.bind(null,l.EPERM(t)));e.del(p(t),n)},t}},5373:(e,t,n)=>{"use strict";var r=n(8636),i=n(2642),o=n(4765);e.exports={formats:o,parse:i,stringify:r}},5382:(e,t,n)=>{"use strict";var r=n(5606),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=l;var o=n(5412),a=n(6708);n(6698)(l,o);for(var s=i(a.prototype),c=0;c<s.length;c++){var u=s[c];l.prototype[u]||(l.prototype[u]=a.prototype[u])}function l(e){if(!(this instanceof l))return new l(e);o.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||r.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},5386:(e,t,n)=>{var r=n(8287),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},5405:(e,t,n)=>{var r=n(5606);e.exports=u;var i=n(8287).Buffer;u.WritableState=c;var o=n(5622);o.inherits=n(6698);var a=n(8310);function s(e,t,n){this.chunk=e,this.encoding=t,this.callback=n}function c(e,t){var i=n(7295),o=(e=e||{}).highWaterMark,a=e.objectMode?16:16384;this.highWaterMark=o||0===o?o:a,this.objectMode=!!e.objectMode,t instanceof i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,i=n.sync,o=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,i,o){n?r.nextTick(function(){t.pendingcb--,o(i)}):(t.pendingcb--,o(i)),e._writableState.errorEmitted=!0,e.emit("error",i)}(e,n,i,t,o);else{var a=p(0,n);a||n.corked||n.bufferProcessing||!n.buffer.length||h(e,n),i?r.nextTick(function(){f(e,n,a,o)}):f(e,n,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.buffer=[],this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1}function u(e){var t=n(7295);if(!(this instanceof u||this instanceof t))return new u(e);this._writableState=new c(e,this),this.writable=!0,a.call(this)}function l(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function f(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),g(e,t)}function h(e,t){if(t.bufferProcessing=!0,e._writev&&t.buffer.length>1){for(var n=[],r=0;r<t.buffer.length;r++)n.push(t.buffer[r].callback);t.pendingcb++,l(e,t,!0,t.length,t.buffer,"",function(e){for(var r=0;r<n.length;r++)t.pendingcb--,n[r](e)}),t.buffer=[]}else{for(r=0;r<t.buffer.length;r++){var i=t.buffer[r],o=i.chunk,a=i.encoding,s=i.callback,c=t.objectMode?1:o.length;if(l(e,t,!1,c,o,a,s),t.writing){r++;break}}r<t.buffer.length?t.buffer=t.buffer.slice(r):t.buffer.length=0}t.bufferProcessing=!1}function p(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function d(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function g(e,t){var n=p(0,t);return n&&(0===t.pendingcb?(d(e,t),t.finished=!0,e.emit("finish")):d(e,t)),n}o.inherits(u,a),u.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},u.prototype.write=function(e,t,n){var a=this._writableState,c=!1;return o.isFunction(t)&&(n=t,t=null),o.isBuffer(e)?t="buffer":t||(t=a.defaultEncoding),o.isFunction(n)||(n=function(){}),a.ended?function(e,t,n){var i=new Error("write after end");e.emit("error",i),r.nextTick(function(){n(i)})}(this,0,n):function(e,t,n,i){var a=!0;if(!(o.isBuffer(n)||o.isString(n)||o.isNullOrUndefined(n)||t.objectMode)){var s=new TypeError("Invalid non-string/buffer chunk");e.emit("error",s),r.nextTick(function(){i(s)}),a=!1}return a}(this,a,e,n)&&(a.pendingcb++,c=function(e,t,n,r,a){n=function(e,t,n){return!e.objectMode&&!1!==e.decodeStrings&&o.isString(t)&&(t=new i(t,n)),t}(t,n,r),o.isBuffer(n)&&(r="buffer");var c=t.objectMode?1:n.length;t.length+=c;var u=t.length<t.highWaterMark;return u||(t.needDrain=!0),t.writing||t.corked?t.buffer.push(new s(n,r,a)):l(e,t,!1,c,n,r,a),u}(this,a,e,t,n)),c},u.prototype.cork=function(){this._writableState.corked++},u.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.buffer.length||h(this,e))},u.prototype._write=function(e,t,n){n(new Error("not implemented"))},u.prototype._writev=null,u.prototype.end=function(e,t,n){var i=this._writableState;o.isFunction(e)?(n=e,e=null,t=null):o.isFunction(t)&&(n=t,t=null),o.isNullOrUndefined(e)||this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||function(e,t,n){t.ending=!0,g(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n)),t.ended=!0}(this,i,n)}},5412:(e,t,n)=>{"use strict";var r,i=n(5606);e.exports=S,S.ReadableState=x,n(7007).EventEmitter;var o,a=function(e,t){return e.listeners(t).length},s=n(345),c=n(8287).Buffer,u=(void 0!==n.g?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},l=n(9838);o=l&&l.debuglog?l.debuglog("stream"):function(){};var f,h,p,d=n(2726),g=n(5896),m=n(5291).getHighWaterMark,y=n(6048).F,b=y.ERR_INVALID_ARG_TYPE,v=y.ERR_STREAM_PUSH_AFTER_EOF,w=y.ERR_METHOD_NOT_IMPLEMENTED,_=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(6698)(S,s);var E=g.errorOrDestroy,k=["error","close","destroy","pause","resume"];function x(e,t,i){r=r||n(5382),e=e||{},"boolean"!=typeof i&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=m(this,e,"readableHighWaterMark",i),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f||(f=n(3141).I),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function S(e){if(r=r||n(5382),!(this instanceof S))return new S(e);var t=this instanceof r;this._readableState=new x(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function O(e,t,n,r,i){o("readableAddChunk",t);var a,s=e._readableState;if(null===t)s.reading=!1,function(e,t){if(o("onEofChunk"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?T(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,I(e)))}}(e,s);else if(i||(a=function(e,t){var n,r;return r=t,c.isBuffer(r)||r instanceof u||"string"==typeof t||void 0===t||e.objectMode||(n=new b("chunk",["string","Buffer","Uint8Array"],t)),n}(s,t)),a)E(e,a);else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),r)s.endEmitted?E(e,new _):A(e,s,t,!0);else if(s.ended)E(e,new v);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!n?(t=s.decoder.write(t),s.objectMode||0!==t.length?A(e,s,t,!1):M(e,s)):A(e,s,t,!1)}else r||(s.reading=!1,M(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function A(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&T(e)),M(e,t)}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),S.prototype.destroy=g.destroy,S.prototype._undestroy=g.undestroy,S.prototype._destroy=function(e,t){t(e)},S.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=c.from(e,t),t=""),n=!0),O(this,e,t,!1,n)},S.prototype.unshift=function(e){return O(this,e,null,!0,!1)},S.prototype.isPaused=function(){return!1===this._readableState.flowing},S.prototype.setEncoding=function(e){f||(f=n(3141).I);var t=new f(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var R=1073741824;function j(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=R?e=R:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function T(e){var t=e._readableState;o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(I,e))}function I(e){var t=e._readableState;o("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,P(e)}function M(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(L,e,t))}function L(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var n=t.length;if(o("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function B(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function C(e){o("readable nexttick read 0"),e.read(0)}function N(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),P(e),t.flowing&&!t.reading&&e.read(0)}function P(e){var t=e._readableState;for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function D(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function F(e){var t=e._readableState;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(U,t,e))}function U(e,t){if(o("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function z(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}S.prototype.read=function(e){o("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return o("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?F(this):T(this),null;if(0===(e=j(e,t))&&t.ended)return 0===t.length&&F(this),null;var r,i=t.needReadable;return o("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&o("length less than watermark",i=!0),t.ended||t.reading?o("reading or ended",i=!1):i&&(o("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=j(n,t))),null===(r=e>0?D(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&F(this)),null!==r&&this.emit("data",r),r},S.prototype._read=function(e){E(this,new w("_read()"))},S.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,o("pipe count=%d opts=%j",r.pipesCount,t);var s=t&&!1===t.end||e===i.stdout||e===i.stderr?g:c;function c(){o("onend"),e.end()}r.endEmitted?i.nextTick(s):n.once("end",s),e.on("unpipe",function t(i,a){o("onunpipe"),i===n&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,o("cleanup"),e.removeListener("close",p),e.removeListener("finish",d),e.removeListener("drain",u),e.removeListener("error",h),e.removeListener("unpipe",t),n.removeListener("end",c),n.removeListener("end",g),n.removeListener("data",f),l=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||u())});var u=function(e){return function(){var t=e._readableState;o("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,P(e))}}(n);e.on("drain",u);var l=!1;function f(t){o("ondata");var i=e.write(t);o("dest.write",i),!1===i&&((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==z(r.pipes,e))&&!l&&(o("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function h(t){o("onerror",t),g(),e.removeListener("error",h),0===a(e,"error")&&E(e,t)}function p(){e.removeListener("finish",d),g()}function d(){o("onfinish"),e.removeListener("close",p),g()}function g(){o("unpipe"),n.unpipe(e)}return n.on("data",f),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",h),e.once("close",p),e.once("finish",d),e.emit("pipe",n),r.flowing||(o("pipe resume"),n.resume()),e},S.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=z(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},S.prototype.on=function(e,t){var n=s.prototype.on.call(this,e,t),r=this._readableState;return"data"===e?(r.readableListening=this.listenerCount("readable")>0,!1!==r.flowing&&this.resume()):"readable"===e&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,o("on readable",r.length,r.reading),r.length?T(this):r.reading||i.nextTick(C,this))),n},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(e,t){var n=s.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(B,this),n},S.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||i.nextTick(B,this),t},S.prototype.resume=function(){var e=this._readableState;return e.flowing||(o("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(N,e,t))}(this,e)),e.paused=!1,this},S.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",function(){if(o("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){o("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<k.length;a++)e.on(k[a],this.emit.bind(this,k[a]));return this._read=function(t){o("wrapped _read",t),r&&(r=!1,e.resume())},this},"function"==typeof Symbol&&(S.prototype[Symbol.asyncIterator]=function(){return void 0===h&&(h=n(2955)),h(this)}),Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),S._fromList=D,Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(S.from=function(e,t){return void 0===p&&(p=n(5157)),p(S,e,t)})},5509:(e,t,n)=>{"use strict";var r=n(5606),i=n(3225);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t){var n=e.entry;for(e.entry=null;n;){var r=n.callback;t.pendingcb--,r(undefined),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=y;var a,s=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?setImmediate:i.nextTick;y.WritableState=m;var c=Object.create(n(5622));c.inherits=n(6698);var u,l={deprecate:n(4643)},f=n(8010),h=n(5386).Buffer,p=(void 0!==n.g?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},d=n(7353);function g(){}function m(e,t){a=a||n(4935),e=e||{};var r=t instanceof a;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var c=e.highWaterMark,u=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=c||0===c?c:r&&(u||0===u)?u:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=!1===e.decodeStrings;this.decodeStrings=!f,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,o=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,o){--t.pendingcb,n?(i.nextTick(o,r),i.nextTick(k,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(o(r),e._writableState.errorEmitted=!0,e.emit("error",r),k(e,t))}(e,n,r,t,o);else{var a=_(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||w(e,n),r?s(v,e,n,a,o):v(e,n,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function y(e){if(a=a||n(4935),!(u.call(y,this)||this instanceof a))return new y(e);this._writableState=new m(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),f.call(this)}function b(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function v(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),k(e,t)}function w(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),a=t.corkedRequestsFree;a.entry=n;for(var s=0,c=!0;n;)i[s]=n,n.isBuf||(c=!1),n=n.next,s+=1;i.allBuffers=c,b(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,l=n.encoding,f=n.callback;if(b(e,t,!1,t.objectMode?1:u.length,u,l,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function _(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function E(e,t){e._final(function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),k(e,t)})}function k(e,t){var n=_(t);return n&&(function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,i.nextTick(E,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}c.inherits(y,f),m.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(m.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(u=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(e){return!!u.call(this,e)||this===y&&e&&e._writableState instanceof m}})):u=function(e){return e instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(e,t,n){var r,o=this._writableState,a=!1,s=!o.objectMode&&(r=e,h.isBuffer(r)||r instanceof p);return s&&!h.isBuffer(e)&&(e=function(e){return h.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=g),o.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),i.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var o=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),i.nextTick(r,a),o=!1),o}(this,o,e,n))&&(o.pendingcb++,a=function(e,t,n,r,i,o){if(!n){var a=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=h.from(t,n)),t}(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else b(e,t,!1,s,r,i,o);return c}(this,o,s,e,t,n)),a},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||w(this,e))},y.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,k(e,t),n&&(t.finished?i.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),y.prototype.destroy=d.destroy,y.prototype._undestroy=d.undestroy,y.prototype._destroy=function(e,t){this.end(),t(e)}},5584:(e,t,n)=>{var r=n(5606),i=(n(7007).EventEmitter,r.nextTick,n(8662)),o=n(3152),a=n(7212),s=n(5687);e.exports=function(e,t){function n(){}n.prototype=e;var r=new n;if(r.sublevel)return r;var c=(t=t||{}).sep=t.sep||"ÿ";function u(e){return function(t){return(t=a(t=t||{})).reverse?t.start=t.start||c:t.end=t.end||c,e.call(r,t)}}r._options=t,s(r),r.sublevels={},r.sublevel=function(e,t){return r.sublevels[e]?r.sublevels[e]:new i(r,e,t||this._options)},r.methods={},r.prefix=function(e){return""+(e||"")},r.pre=function(e,t){return t||(t=e,e={max:c}),r.hooks.pre(e,t)},r.post=function(e,t){return t||(t=e,e={max:c}),r.hooks.post(e,t)},r.readStream=r.createReadStream=u(r.createReadStream),r.keyStream=r.createKeyStream=u(r.createKeyStream),r.valuesStream=r.createValueStream=u(r.createValueStream);var l=r.batch;return r.batch=function(e,t,n){if(!Array.isArray(e))return new o(r);e.forEach(function(e){e.prefix&&("function"==typeof e.prefix.prefix?e.key=e.prefix.prefix(e.key):"string"==typeof e.prefix&&(e.key=e.prefix+e.key))}),l.call(r,e,t,n)},r}},5606:e=>{var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var s,c=[],u=!1,l=-1;function f(){u&&s&&(u=!1,s.length?c=s.concat(c):l=-1,c.length&&h())}function h(){if(!u){var e=a(f);u=!0;for(var t=c.length;t;){for(s=c,c=[];++l<t;)s&&s[l].run();l=-1,t=c.length}s=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function d(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new p(e,t)),1!==c.length||u||a(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=d,r.addListener=d,r.once=d,r.off=d,r.removeListener=d,r.removeAllListeners=d,r.emit=d,r.prependListener=d,r.prependOnceListener=d,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},5622:(e,t,n)=>{function r(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===r(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===r(e)},t.isError=function(e){return"[object Error]"===r(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(8287).Buffer.isBuffer},5641:(e,t,n)=>{var r=n(8287).Buffer,i=r.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},o=t.I=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!i(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=s;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=c;break;default:return void(this.write=a)}this.charBuffer=new r(6),this.charReceived=0,this.charLength=0};function a(e){return e.toString(this.encoding)}function s(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function c(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}o.prototype.write=function(e){for(var t="";this.charLength;){var n=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived<this.charLength)return"";if(e=e.slice(n,e.length),!((r=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&r<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var r,i=e.length;if(this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),i=(t+=e.toString(this.encoding,0,i)).length-1,(r=t.charCodeAt(i))>=55296&&r<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},o.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},o.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,r=this.charBuffer,i=this.encoding;t+=r.slice(0,n).toString(i)}return t}},5680:(e,t,n)=>{"use strict";var r=n(5767);e.exports=function(e){return!!r(e)}},5683:(e,t,n)=>{e.exports=o;var r=n(2545),i=n(5622);function o(e){if(!(this instanceof o))return new o(e);r.call(this,e)}i.inherits=n(6698),i.inherits(o,r),o.prototype._transform=function(e,t,n){n(null,e)}},5687:(e,t,n)=>{var r=n(2980);e.exports=function(e){if(!e.hooks){var t=[],n=[];e.hooks={post:function(e,n){n||(n=e,e="");var i={test:r.checker(e),hook:n};return t.push(i),c(t,i)},pre:function(e,t){t||(t=e,e="");var i={test:r.checker(e),hook:t,safe:!1!==e.safe};return n.push(i),c(n,i)},posthooks:t,prehooks:n},e.on("put",function(e,t){u({type:"put",key:e,value:t})}),e.on("del",function(e,t){u({type:"del",key:e,value:t})}),e.on("batch",function(e){e.forEach(u)});var i=e.put,o=e.del,a=e.batch;e.put=function(e,t,n,r){return l(!1,[{key:e,value:t,type:"put"}],n,r)},e.del=function(e,t,n){return l(!1,[{key:e,type:"del"}],t,n)},e.batch=function(e,t,n){return l(!0,e,t,n)}}function s(e){return e&&("string"==typeof e?e:"string"==typeof e.prefix?e.prefix:"function"==typeof e.prefix?e.prefix():"")}function c(e,t){return function(){var n=e.indexOf(t);return!!~n&&(e.splice(n,1),!0)}}function u(e){e&&e.type&&t.forEach(function(t){t.test(e.key)&&t.hook(e)})}function l(t,r,c,u){try{r.forEach(function e(t,i){n.forEach(function(n){if(n.test(String(t.key))){var o={add:function(t,o){if(void 0===t)return this;if(!1===t)return delete r[i];var a=s(t.prefix)||s(o)||n.prefix||"";if(a&&(t.prefix=a),t.key=a+t.key,n.safe&&n.test(String(t.key)))throw new Error("prehook cannot insert into own range");var c=t.keyEncoding||function(e){if(e&&e._getKeyEncoding)return e._getKeyEncoding(e)}(t.prefix),u=t.valueEncoding||function(e){if(e&&e._getValueEncoding)return e._getValueEncoding(e)}(t.prefix);return c&&(t.keyEncoding=c),u&&(t.valueEncoding=u),r.push(t),e(t,r.length-1),this},put:function(e,t){return"object"==typeof e&&(e.type="put"),this.add(e,t)},del:function(e,t){return"object"==typeof e&&(e.type="del"),this.add(e,t)},veto:function(){return this.add(!1)}};n.hook.call(o,t,o.add,r)}})})}catch(e){return(u||c)(e)}if(1==(r=r.filter(function(e){return e&&e.type})).length&&!t){var l=r[0];return"put"==l.type?i.call(e,l.key,l.value,c,u):o.call(e,l.key,c,u)}return a.call(e,r,c,u)}}},5767:(e,t,n)=>{"use strict";var r=n(2682),i=n(9209),o=n(487),a=n(6556),s=n(5795),c=n(3628),u=a("Object.prototype.toString"),l=n(9092)(),f="undefined"==typeof globalThis?n.g:globalThis,h=i(),p=a("String.prototype.slice"),d=a("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},g={__proto__:null};r(h,l&&s&&c?function(e){var t=new f[e];if(Symbol.toStringTag in t&&c){var n=c(t),r=s(n,Symbol.toStringTag);if(!r&&n){var i=c(n);r=s(i,Symbol.toStringTag)}g["$"+e]=o(r.get)}}:function(e){var t=new f[e],n=t.slice||t.set;n&&(g["$"+e]=o(n))}),e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!l){var t=p(u(e),8,-1);return d(h,t)>-1?t:"Object"===t&&function(e){var t=!1;return r(g,function(n,r){if(!t)try{n(e),t=p(r,1)}catch(e){}}),t}(e)}return s?function(e){var t=!1;return r(g,function(n,r){if(!t)try{"$"+n(e)===r&&(t=p(r,1))}catch(e){}}),t}(e):null}},5778:(e,t,n)=>{e.exports=a;var r=n(8166),i=n(5622);function o(e,t){this.afterTransform=function(e,n){return function(e,t,n){var r=e._transformState;r.transforming=!1;var i=r.writecb;if(!i)return e.emit("error",new Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,null!=n&&e.push(n),i&&i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}(t,e,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function a(e){if(!(this instanceof a))return new a(e);r.call(this,e),this._transformState=new o(e,this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,this.once("finish",function(){"function"==typeof this._flush?this._flush(function(e){s(t,e)}):s(t)})}function s(e,t){if(t)return e.emit("error",t);var n=e._writableState,r=(e._readableState,e._transformState);if(n.length)throw new Error("calling transform done when ws.length != 0");if(r.transforming)throw new Error("calling transform done when still transforming");return e.push(null)}i.inherits=n(6698),i.inherits(a,r),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,n){throw new Error("not implemented")},a.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0}},5795:(e,t,n)=>{"use strict";var r=n(6549);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},5821:(e,t,n)=>{var r=n(5606);e.exports=h;var i=n(9278),o=n(8287).Buffer;h.ReadableState=f;var a=n(7007).EventEmitter;a.listenerCount||(a.listenerCount=function(e,t){return e.listeners(t).length});var s,c=n(8310),u=n(5622);u.inherits=n(6698);var l=n(717);function f(e,t){var r=n(7295),i=(e=e||{}).highWaterMark,o=e.objectMode?16:16384;this.highWaterMark=i||0===i?i:o,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!e.objectMode,t instanceof r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=n(554).I),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function h(e){if(n(7295),!(this instanceof h))return new h(e);this._readableState=new f(e,this),this.readable=!0,c.call(this)}function p(e,t,n,i,o){var a=function(e,t){var n=null;return u.isBuffer(t)||u.isString(t)||u.isNullOrUndefined(t)||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(t,n);if(a)e.emit("error",a);else if(u.isNullOrUndefined(n))t.reading=!1,t.ended||function(e,t){if(t.decoder&&!t.ended){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,m(e)}(e,t);else if(t.objectMode||n&&n.length>0)if(t.ended&&!o){var s=new Error("stream.push() after EOF");e.emit("error",s)}else t.endEmitted&&o?(s=new Error("stream.unshift() after end event"),e.emit("error",s)):(!t.decoder||o||i||(n=t.decoder.write(n)),o||(t.reading=!1),t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,o?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&m(e)),function(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(function(){!function(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(l("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}(e,t)}))}(e,t));else o||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}l=l&&l.debuglog?l.debuglog("stream"):function(){},u.inherits(h,c),h.prototype.push=function(e,t){var n=this._readableState;return u.isString(e)&&!n.objectMode&&(t=t||n.defaultEncoding)!==n.encoding&&(e=new o(e,t),t=""),p(this,n,e,t,!1)},h.prototype.unshift=function(e){return p(this,this._readableState,e,"",!0)},h.prototype.setEncoding=function(e){return s||(s=n(554).I),this._readableState.decoder=new s(e),this._readableState.encoding=e,this};var d=8388608;function g(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:isNaN(e)||u.isNull(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:e<=0?0:(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>=d)e=d;else{e--;for(var t=1;t<32;t<<=1)e|=e>>t;e++}return e}(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function m(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(l("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?r.nextTick(function(){y(e)}):y(e))}function y(e){l("emit readable"),e.emit("readable"),b(e)}function b(e){var t=e._readableState;if(l("flow",t.flowing),t.flowing)do{var n=e.read()}while(null!==n&&t.flowing)}function v(e,t){var n,r=t.buffer,i=t.length,a=!!t.decoder,s=!!t.objectMode;if(0===r.length)return null;if(0===i)n=null;else if(s)n=r.shift();else if(!e||e>=i)n=a?r.join(""):o.concat(r,i),r.length=0;else if(e<r[0].length)n=(f=r[0]).slice(0,e),r[0]=f.slice(e);else if(e===r[0].length)n=r.shift();else{n=a?"":new o(e);for(var c=0,u=0,l=r.length;u<l&&c<e;u++){var f=r[0],h=Math.min(e-c,f.length);a?n+=f.slice(0,h):f.copy(n,c,0,h),h<f.length?r[0]=f.slice(h):r.shift(),c+=h}}return n}function w(e){var t=e._readableState;if(t.length>0)throw new Error("endReadable called on non-empty stream");t.endEmitted||(t.ended=!0,r.nextTick(function(){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}))}h.prototype.read=function(e){l("read",e);var t=this._readableState,n=e;if((!u.isNumber(e)||e>0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return l("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?w(this):m(this),null;if(0===(e=g(e,t))&&t.ended)return 0===t.length&&w(this),null;var r,i=t.needReadable;return l("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&l("length less than watermark",i=!0),(t.ended||t.reading)&&l("reading or ended",i=!1),i&&(l("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1),i&&!t.reading&&(e=g(n,t)),r=e>0?v(e,t):null,u.isNull(r)&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),n!==e&&t.ended&&0===t.length&&w(this),u.isNull(r)||this.emit("data",r),r},h.prototype._read=function(e){this.emit("error",new Error("not implemented"))},h.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,l("pipe count=%d opts=%j",o.pipesCount,t);var s=t&&!1===t.end||e===r.stdout||e===r.stderr?h:u;function c(e){l("onunpipe"),e===n&&h()}function u(){l("onend"),e.end()}o.endEmitted?r.nextTick(s):n.once("end",s),e.on("unpipe",c);var f=function(e){return function(){var t=e._readableState;l("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a.listenerCount(e,"data")&&(t.flowing=!0,b(e))}}(n);function h(){l("cleanup"),e.removeListener("close",g),e.removeListener("finish",m),e.removeListener("drain",f),e.removeListener("error",d),e.removeListener("unpipe",c),n.removeListener("end",u),n.removeListener("end",h),n.removeListener("data",p),!o.awaitDrain||e._writableState&&!e._writableState.needDrain||f()}function p(t){l("ondata"),!1===e.write(t)&&(l("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,n.pause())}function d(t){l("onerror",t),y(),e.removeListener("error",d),0===a.listenerCount(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",m),y()}function m(){l("onfinish"),e.removeListener("close",g),y()}function y(){l("unpipe"),n.unpipe(e)}return e.on("drain",f),n.on("data",p),e._events&&e._events.error?i(e._events.error)?e._events.error.unshift(d):e._events.error=[d,e._events.error]:e.on("error",d),e.once("close",g),e.once("finish",m),e.emit("pipe",n),o.flowing||(l("pipe resume"),n.resume()),e},h.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<r;i++)n[i].emit("unpipe",this);return this}return-1===(i=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}(t.pipes,e))||(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},h.prototype.on=function(e,t){var n=c.prototype.on.call(this,e,t);if("data"===e&&!1!==this._readableState.flowing&&this.resume(),"readable"===e&&this.readable){var i=this._readableState;if(!i.readableListening)if(i.readableListening=!0,i.emittedReadable=!1,i.needReadable=!0,i.reading)i.length&&m(this);else{var o=this;r.nextTick(function(){l("readable nexttick read 0"),o.read(0)})}}return n},h.prototype.addListener=h.prototype.on,h.prototype.resume=function(){var e=this._readableState;return e.flowing||(l("resume"),e.flowing=!0,e.reading||(l("resume read 0"),this.read(0)),function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(function(){!function(e,t){t.resumeScheduled=!1,e.emit("resume"),b(e),t.flowing&&!t.reading&&e.read(0)}(e,t)}))}(this,e)),this},h.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this},h.prototype.wrap=function(e){var t=this._readableState,n=!1,r=this;for(var i in e.on("end",function(){if(l("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)}),e.on("data",function(i){l("wrapped data"),t.decoder&&(i=t.decoder.write(i)),i&&(t.objectMode||i.length)&&(r.push(i)||(n=!0,e.pause()))}),e)u.isFunction(e[i])&&u.isUndefined(this[i])&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return function(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n])}(["error","close","destroy","pause","resume"],function(t){e.on(t,r.emit.bind(r,t))}),r._read=function(t){l("wrapped _read",t),n&&(n=!1,e.resume())},r},h._fromList=v},5824:(e,t,n)=>{e.exports=o;var r=n(5778),i=n(5622);function o(e){if(!(this instanceof o))return new o(e);r.call(this,e)}i.inherits=n(6698),i.inherits(o,r),o.prototype._transform=function(e,t,n){n(null,e)}},5880:e=>{"use strict";e.exports=Math.pow},5896:(e,t,n)=>{"use strict";var r=n(5606);function i(e,t){a(e,t),o(e)}function o(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function a(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,s=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return s||c?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(a,this,e)):r.nextTick(a,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?n._writableState?n._writableState.errorEmitted?r.nextTick(o,n):(n._writableState.errorEmitted=!0,r.nextTick(i,n,e)):r.nextTick(i,n,e):t?(r.nextTick(o,n),t(e)):r.nextTick(o,n)}),this)},undestroy:function(){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)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}}},5974:(e,t,n)=>{"use strict";var r=n(8287).Buffer,i=n(5606),o=n(4148),a=n(4442),s=n(8411),c=n(1447),u=n(9681);for(var l in u)t[l]=u[l];function f(e){if("number"!=typeof e||e<t.DEFLATE||e>t.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=e,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}t.NONE=0,t.DEFLATE=1,t.INFLATE=2,t.GZIP=3,t.GUNZIP=4,t.DEFLATERAW=5,t.INFLATERAW=6,t.UNZIP=7,f.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,o(this.init_done,"close before init"),o(this.mode<=t.UNZIP),this.mode===t.DEFLATE||this.mode===t.GZIP||this.mode===t.DEFLATERAW?s.deflateEnd(this.strm):this.mode!==t.INFLATE&&this.mode!==t.GUNZIP&&this.mode!==t.INFLATERAW&&this.mode!==t.UNZIP||c.inflateEnd(this.strm),this.mode=t.NONE,this.dictionary=null)},f.prototype.write=function(e,t,n,r,i,o,a){return this._write(!0,e,t,n,r,i,o,a)},f.prototype.writeSync=function(e,t,n,r,i,o,a){return this._write(!1,e,t,n,r,i,o,a)},f.prototype._write=function(e,n,a,s,c,u,l,f){if(o.equal(arguments.length,8),o(this.init_done,"write before init"),o(this.mode!==t.NONE,"already finalized"),o.equal(!1,this.write_in_progress,"write already in progress"),o.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,o.equal(!1,void 0===n,"must provide flush value"),this.write_in_progress=!0,n!==t.Z_NO_FLUSH&&n!==t.Z_PARTIAL_FLUSH&&n!==t.Z_SYNC_FLUSH&&n!==t.Z_FULL_FLUSH&&n!==t.Z_FINISH&&n!==t.Z_BLOCK)throw new Error("Invalid flush value");if(null==a&&(a=r.alloc(0),c=0,s=0),this.strm.avail_in=c,this.strm.input=a,this.strm.next_in=s,this.strm.avail_out=f,this.strm.output=u,this.strm.next_out=l,this.flush=n,!e)return this._process(),this._checkError()?this._afterSync():void 0;var h=this;return i.nextTick(function(){h._process(),h._after()}),this},f.prototype._afterSync=function(){var e=this.strm.avail_out,t=this.strm.avail_in;return this.write_in_progress=!1,[t,e]},f.prototype._process=function(){var e=null;switch(this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=s.deflate(this.strm,this.flush);break;case t.UNZIP:switch(this.strm.avail_in>0&&(e=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===e)break;if(31!==this.strm.input[e]){this.mode=t.INFLATE;break}if(this.gzip_id_bytes_read=1,e++,1===this.strm.avail_in)break;case 1:if(null===e)break;139===this.strm.input[e]?(this.gzip_id_bytes_read=2,this.mode=t.GUNZIP):this.mode=t.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:for(this.err=c.inflate(this.strm,this.flush),this.err===t.Z_NEED_DICT&&this.dictionary&&(this.err=c.inflateSetDictionary(this.strm,this.dictionary),this.err===t.Z_OK?this.err=c.inflate(this.strm,this.flush):this.err===t.Z_DATA_ERROR&&(this.err=t.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===t.GUNZIP&&this.err===t.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=c.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},f.prototype._checkError=function(){switch(this.err){case t.Z_OK:case t.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===t.Z_FINISH)return this._error("unexpected end of file"),!1;break;case t.Z_STREAM_END:break;case t.Z_NEED_DICT:return null==this.dictionary?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},f.prototype._after=function(){if(this._checkError()){var e=this.strm.avail_out,t=this.strm.avail_in;this.write_in_progress=!1,this.callback(t,e),this.pending_close&&this.close()}},f.prototype._error=function(e){this.strm.msg&&(e=this.strm.msg),this.onerror(e,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},f.prototype.init=function(e,n,r,i,a){o(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),o(e>=8&&e<=15,"invalid windowBits"),o(n>=-1&&n<=9,"invalid compression level"),o(r>=1&&r<=9,"invalid memlevel"),o(i===t.Z_FILTERED||i===t.Z_HUFFMAN_ONLY||i===t.Z_RLE||i===t.Z_FIXED||i===t.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(n,e,r,i,a),this._setDictionary()},f.prototype.params=function(){throw new Error("deflateParams Not supported")},f.prototype.reset=function(){this._reset(),this._setDictionary()},f.prototype._init=function(e,n,r,i,o){switch(this.level=e,this.windowBits=n,this.memLevel=r,this.strategy=i,this.flush=t.Z_NO_FLUSH,this.err=t.Z_OK,this.mode!==t.GZIP&&this.mode!==t.GUNZIP||(this.windowBits+=16),this.mode===t.UNZIP&&(this.windowBits+=32),this.mode!==t.DEFLATERAW&&this.mode!==t.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new a,this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=s.deflateInit2(this.strm,this.level,t.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:case t.UNZIP:this.err=c.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==t.Z_OK&&this._error("Init error"),this.dictionary=o,this.write_in_progress=!1,this.init_done=!0},f.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:this.err=s.deflateSetDictionary(this.strm,this.dictionary)}this.err!==t.Z_OK&&this._error("Failed to set dictionary")}},f.prototype._reset=function(){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:case t.GZIP:this.err=s.deflateReset(this.strm);break;case t.INFLATE:case t.INFLATERAW:case t.GUNZIP:this.err=c.inflateReset(this.strm)}this.err!==t.Z_OK&&this._error("Failed to reset stream")},t.Zlib=f},6048:e=>{"use strict";var t={};function n(e,n,r){r||(r=Error);var i=function(e){var t,r;function i(t,r,i){return e.call(this,function(e,t,r){return"string"==typeof n?n:n(e,t,r)}(t,r,i))||this}return r=e,(t=i).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,i}(r);i.prototype.name=r.name,i.prototype.code=e,t[e]=i}function r(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(e){return String(e)}),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}n("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(e,t,n){var i,o,a,s,c;if("string"==typeof t&&(o="not ",t.substr(0,4)===o)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-9,n)===t}(e," argument"))a="The ".concat(e," ").concat(i," ").concat(r(t,"type"));else{var u=("number"!=typeof c&&(c=0),c+1>(s=e).length||-1===s.indexOf(".",c)?"argument":"property");a='The "'.concat(e,'" ').concat(u," ").concat(i," ").concat(r(t,"type"))}return a+". Received type ".concat(typeof n)},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.F=t},6060:()=>{},6188:e=>{"use strict";e.exports=Math.max},6238:(e,t,n)=>{"use strict";var r=n(6048).F.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,n,o){if("function"==typeof n)return e(t,null,n);n||(n={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r)}}}(o||i);var a=n.readable||!1!==n.readable&&t.readable,s=n.writable||!1!==n.writable&&t.writable,c=function(){t.writable||l()},u=t._writableState&&t._writableState.finished,l=function(){s=!1,u=!0,a||o.call(t)},f=t._readableState&&t._readableState.endEmitted,h=function(){a=!1,f=!0,s||o.call(t)},p=function(e){o.call(t,e)},d=function(){var e;return a&&!f?(t._readableState&&t._readableState.ended||(e=new r),o.call(t,e)):s&&!u?(t._writableState&&t._writableState.ended||(e=new r),o.call(t,e)):void 0},g=function(){t.req.on("finish",l)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",l),t.on("abort",d),t.req?g():t.on("request",g)):s&&!t._writableState&&(t.on("end",c),t.on("close",c)),t.on("end",h),t.on("finish",l),!1!==n.error&&t.on("error",p),t.on("close",d),function(){t.removeListener("complete",l),t.removeListener("abort",d),t.removeListener("request",g),t.req&&t.req.removeListener("finish",l),t.removeListener("end",c),t.removeListener("close",c),t.removeListener("finish",l),t.removeListener("end",h),t.removeListener("error",p),t.removeListener("close",d)}}},6503:e=>{e.exports=function(e){return null!==e&&("object"==typeof e||"function"==typeof e)}},6549:e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},6556:(e,t,n)=>{"use strict";var r=n(453),i=n(3126),o=i([r("%String.prototype.indexOf%")]);e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?i([n]):n}},6576:(e,t,n)=>{"use strict";var r=n(9394),i=n(8452);e.exports=function(){var e=r();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},6578:e=>{"use strict";e.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},6585:e=>{var t=1e3,n=60*t,r=60*n,i=24*r,o=7*i;function a(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,s){s=s||{};var c,u,l=typeof e;if("string"===l&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(a){var s=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return s*o;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*r;case"minutes":case"minute":case"mins":case"min":case"m":return s*n;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(e);if("number"===l&&isFinite(e))return s.long?(c=e,(u=Math.abs(c))>=i?a(c,u,i,"day"):u>=r?a(c,u,r,"hour"):u>=n?a(c,u,n,"minute"):u>=t?a(c,u,t,"second"):c+" ms"):function(e){var o=Math.abs(e);return o>=i?Math.round(e/i)+"d":o>=r?Math.round(e/r)+"h":o>=n?Math.round(e/n)+"m":o>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},6587:e=>{e.exports=function e(t,n){if(t&&n)return e(t)(n);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(e){r[e]=t[e]}),r;function r(){for(var e=new Array(arguments.length),n=0;n<e.length;n++)e[n]=arguments[n];var r=t.apply(this,e),i=e[e.length-1];return"function"==typeof r&&r!==i&&Object.keys(i).forEach(function(e){r[e]=i[e]}),r}}},6642:(e,t,n)=>{"use strict";var r=n(3003);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}},6698:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},6708:(e,t,n)=>{"use strict";var r,i=n(5606);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t){var n=e.entry;for(e.entry=null;n;){var r=n.callback;t.pendingcb--,r(undefined),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=S,S.WritableState=x;var a,s={deprecate:n(4643)},c=n(345),u=n(8287).Buffer,l=(void 0!==n.g?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},f=n(5896),h=n(5291).getHighWaterMark,p=n(6048).F,d=p.ERR_INVALID_ARG_TYPE,g=p.ERR_METHOD_NOT_IMPLEMENTED,m=p.ERR_MULTIPLE_CALLBACK,y=p.ERR_STREAM_CANNOT_PIPE,b=p.ERR_STREAM_DESTROYED,v=p.ERR_STREAM_NULL_VALUES,w=p.ERR_STREAM_WRITE_AFTER_END,_=p.ERR_UNKNOWN_ENCODING,E=f.errorOrDestroy;function k(){}function x(e,t,a){r=r||n(5382),e=e||{},"boolean"!=typeof a&&(a=t instanceof r),this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=h(this,e,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,o=n.writecb;if("function"!=typeof o)throw new m;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,o){--t.pendingcb,n?(i.nextTick(o,r),i.nextTick(I,e,t),e._writableState.errorEmitted=!0,E(e,r)):(o(r),e._writableState.errorEmitted=!0,E(e,r),I(e,t))}(e,n,r,t,o);else{var a=j(n)||e.destroyed;a||n.corked||n.bufferProcessing||!n.bufferedRequest||R(e,n),r?i.nextTick(A,e,n,a,o):A(e,n,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function S(e){var t=this instanceof(r=r||n(5382));if(!t&&!a.call(S,this))return new S(e);this._writableState=new x(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),c.call(this)}function O(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new b("write")):n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function A(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),I(e,t)}function R(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),a=t.corkedRequestsFree;a.entry=n;for(var s=0,c=!0;n;)i[s]=n,n.isBuf||(c=!1),n=n.next,s+=1;i.allBuffers=c,O(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,l=n.encoding,f=n.callback;if(O(e,t,!1,t.objectMode?1:u.length,u,l,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function j(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function T(e,t){e._final(function(n){t.pendingcb--,n&&E(e,n),t.prefinished=!0,e.emit("prefinish"),I(e,t)})}function I(e,t){var n=j(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,i.nextTick(T,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}n(6698)(S,c),x.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(x.prototype,"buffer",{get:s.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(a=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(e){return!!a.call(this,e)||this===S&&e&&e._writableState instanceof x}})):a=function(e){return e instanceof this},S.prototype.pipe=function(){E(this,new y)},S.prototype.write=function(e,t,n){var r,o=this._writableState,a=!1,s=!o.objectMode&&(r=e,u.isBuffer(r)||r instanceof l);return s&&!u.isBuffer(e)&&(e=function(e){return u.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=k),o.ending?function(e,t){var n=new w;E(e,n),i.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var o;return null===n?o=new v:"string"==typeof n||t.objectMode||(o=new d("chunk",["string","Buffer"],n)),!o||(E(e,o),i.nextTick(r,o),!1)}(this,o,e,n))&&(o.pendingcb++,a=function(e,t,n,r,i,o){if(!n){var a=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=u.from(t,n)),t}(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else O(e,t,!1,s,r,i,o);return c}(this,o,s,e,t,n)),a},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||R(this,e))},S.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new _(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(e,t,n){n(new g("_write()"))},S.prototype._writev=null,S.prototype.end=function(e,t,n){var r=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,I(e,t),n&&(t.finished?i.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,r,n),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),S.prototype.destroy=f.destroy,S.prototype._undestroy=f.undestroy,S.prototype._destroy=function(e,t){t(e)}},6743:(e,t,n)=>{"use strict";var r=n(9353);e.exports=Function.prototype.bind||r},6745:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},6788:e=>{e.exports=function(e,t){return parseInt(e.toString(),t||8)}},6789:()=>{},6841:(e,t,n)=>{var r=n(5606),i=n(8287).Buffer,o=n(537),a=n(1831).Z$;function s(e){a.call(this,"string"==typeof e?e:""),this._db=void 0,this._operations=[]}o.inherits(s,a),s.prototype.setDb=function(e){this._db=e,this._operations.forEach(function(t){e[t.method].apply(e,t.args)})},s.prototype._open=function(e,t){return r.nextTick(t)},s.prototype._operation=function(e,t){if(this._db)return this._db[e].apply(this._db,t);this._operations.push({method:e,args:t})},"put get del batch approximateSize".split(" ").forEach(function(e){s.prototype["_"+e]=function(){this._operation(e,arguments)}}),s.prototype._isBuffer=function(e){return i.isBuffer(e)},s.prototype._iterator=function(){throw new TypeError("not implemented")},e.exports=s},6889:()=>{},6897:(e,t,n)=>{"use strict";var r=n(453),i=n(41),o=n(592)(),a=n(5795),s=n(9675),c=r("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||c(t)!==t)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,u=!0;if("length"in e&&a){var l=a(e,"length");l&&!l.configurable&&(r=!1),l&&!l.writable&&(u=!1)}return(r||u||!n)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},7007:e=>{"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise(function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}g(e,t,o,{once:!0}),"error"!==t&&function(e,t){"function"==typeof e.on&&g(e,"error",t,{once:!0})}(e,i)})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function u(e,t,n,r){var i,o,a,u;if(s(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=c(e))>0&&a.length>i&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,u=l,console&&console.warn&&console.warn(u)}return e}function l(){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 f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=l.bind(r);return i.listener=n,r.wrapFn=i,i}function h(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):d(i,i.length)}function p(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function d(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function g(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function i(o){r.once&&e.removeEventListener(t,i),n(o)})}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.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},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return c(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)r(c,this,t);else{var u=c.length,l=d(c,u);for(n=0;n<u;++n)r(l[n],this,t)}return!0},o.prototype.addListener=function(e,t){return u(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return u(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,f(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,f(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,a;if(s(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return h(this,e,!0)},o.prototype.rawListeners=function(e){return h(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},7119:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},7176:(e,t,n)=>{"use strict";var r,i=n(3126),o=n(5795);try{r=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!r&&o&&o(Object.prototype,"__proto__"),s=Object,c=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?i([a.get]):"function"==typeof c&&function(e){return c(null==e?e:s(e))}},7212:(e,t,n)=>{var r=n(1779);e.exports=function(e){var t=(e=r(e)).reverse,n=e.max||e.end,i=e.min||e.start,o=[i,n];return null!=i&&null!=n&&o.sort(),t&&(o=o.reverse()),e.start=o[0],e.end=o[1],delete e.min,delete e.max,e}},7237:e=>{e.exports=function(e){return null!==e&&("object"==typeof e||"function"==typeof e)}},7244:(e,t,n)=>{"use strict";var r=n(9092)(),i=n(6556)("Object.prototype.toString"),o=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},a=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"length"in e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"callee"in e&&"[object Function]"===i(e.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=a,e.exports=s?o:a},7274:(e,t,n)=>{!function(){"use strict";var t,r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=n(7969),a=n(3819),s=!{toString:null}.propertyIsEnumerable("toString"),c=function(){}.propertyIsEnumerable("prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];t=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===i.call(e),l=a(e),f=[];if(!t&&!n&&!l)throw new TypeError("Object.keys called on a non-object");if(l)o(e,function(e){f.push(e)});else{var h,p=c&&n;for(h in e)p&&"prototype"===h||!r.call(e,h)||f.push(h)}if(s){var d=e.constructor,g=d&&d.prototype===e;o(u,function(t){g&&"constructor"===t||!r.call(e,t)||f.push(t)})}return f},e.exports=t}()},7293:e=>{"use strict";e.exports=function(e,t){var n,r,i,o,a,s,c,u,l,f,h,p,d,g,m,y,b,v,w,_,E,k,x,S,O;n=e.state,r=e.next_in,S=e.input,i=r+(e.avail_in-5),o=e.next_out,O=e.output,a=o-(t-e.avail_out),s=o+(e.avail_out-257),c=n.dmax,u=n.wsize,l=n.whave,f=n.wnext,h=n.window,p=n.hold,d=n.bits,g=n.lencode,m=n.distcode,y=(1<<n.lenbits)-1,b=(1<<n.distbits)-1;e:do{d<15&&(p+=S[r++]<<d,d+=8,p+=S[r++]<<d,d+=8),v=g[p&y];t:for(;;){if(p>>>=w=v>>>24,d-=w,0==(w=v>>>16&255))O[o++]=65535&v;else{if(!(16&w)){if(64&w){if(32&w){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}v=g[(65535&v)+(p&(1<<w)-1)];continue t}for(_=65535&v,(w&=15)&&(d<w&&(p+=S[r++]<<d,d+=8),_+=p&(1<<w)-1,p>>>=w,d-=w),d<15&&(p+=S[r++]<<d,d+=8,p+=S[r++]<<d,d+=8),v=m[p&b];;){if(p>>>=w=v>>>24,d-=w,16&(w=v>>>16&255)){if(E=65535&v,d<(w&=15)&&(p+=S[r++]<<d,(d+=8)<w&&(p+=S[r++]<<d,d+=8)),(E+=p&(1<<w)-1)>c){e.msg="invalid distance too far back",n.mode=30;break e}if(p>>>=w,d-=w,E>(w=o-a)){if((w=E-w)>l&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(k=0,x=h,0===f){if(k+=u-w,w<_){_-=w;do{O[o++]=h[k++]}while(--w);k=o-E,x=O}}else if(f<w){if(k+=u+f-w,(w-=f)<_){_-=w;do{O[o++]=h[k++]}while(--w);if(k=0,f<_){_-=w=f;do{O[o++]=h[k++]}while(--w);k=o-E,x=O}}}else if(k+=f-w,w<_){_-=w;do{O[o++]=h[k++]}while(--w);k=o-E,x=O}for(;_>2;)O[o++]=x[k++],O[o++]=x[k++],O[o++]=x[k++],_-=3;_&&(O[o++]=x[k++],_>1&&(O[o++]=x[k++]))}else{k=o-E;do{O[o++]=O[k++],O[o++]=O[k++],O[o++]=O[k++],_-=3}while(_>2);_&&(O[o++]=O[k++],_>1&&(O[o++]=O[k++]))}break}if(64&w){e.msg="invalid distance code",n.mode=30;break e}v=m[(65535&v)+(p&(1<<w)-1)]}}break}}while(r<i&&o<s);r-=_=d>>3,p&=(1<<(d-=_<<3))-1,e.next_in=r,e.next_out=o,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=o<s?s-o+257:257-(o-s),n.hold=p,n.bits=d}},7295:(e,t,n)=>{var r=n(5606);e.exports=c;var i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t},o=n(5622);o.inherits=n(6698);var a=n(5821),s=n(5405);function c(e){if(!(this instanceof c))return new c(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",u)}function u(){this.allowHalfOpen||this._writableState.ended||r.nextTick(this.end.bind(this))}o.inherits(c,a),function(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n])}(i(s.prototype),function(e){c.prototype[e]||(c.prototype[e]=s.prototype[e])})},7330:e=>{e.exports=function(e){return null!==e&&("object"==typeof e||"function"==typeof e)}},7349:(e,t,n)=>{var r=n(5606);e.exports=f;var i=n(6745),o=n(8287).Buffer;f.ReadableState=l;var a=n(7007).EventEmitter;a.listenerCount||(a.listenerCount=function(e,t){return e.listeners(t).length});var s,c=n(8310),u=n(5622);function l(e,t){var r=(e=e||{}).highWaterMark;this.highWaterMark=r||0===r?r:16384,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=!1,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.calledRead=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!e.objectMode,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=n(9234).I),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function f(e){if(!(this instanceof f))return new f(e);this._readableState=new l(e,this),this.readable=!0,c.call(this)}function h(e,t,n,i,a){var s=function(e,t){var n=null;return o.isBuffer(t)||"string"==typeof t||null==t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(t,n);if(s)e.emit("error",s);else if(null==n)t.reading=!1,t.ended||function(e,t){if(t.decoder&&!t.ended){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.length>0?g(e):_(e)}(e,t);else if(t.objectMode||n&&n.length>0)if(t.ended&&!a){var c=new Error("stream.push() after EOF");e.emit("error",c)}else t.endEmitted&&a?(c=new Error("stream.unshift() after end event"),e.emit("error",c)):(!t.decoder||a||i||(n=t.decoder.write(n)),t.length+=t.objectMode?1:n.length,a?t.buffer.unshift(n):(t.reading=!1,t.buffer.push(n)),t.needReadable&&g(e),function(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(function(){!function(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}(e,t)}))}(e,t));else a||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}u.inherits=n(6698),u.inherits(f,c),f.prototype.push=function(e,t){var n=this._readableState;return"string"!=typeof e||n.objectMode||(t=t||n.defaultEncoding)!==n.encoding&&(e=new o(e,t),t=""),h(this,n,e,t,!1)},f.prototype.unshift=function(e){return h(this,this._readableState,e,"",!0)},f.prototype.setEncoding=function(e){s||(s=n(9234).I),this._readableState.decoder=new s(e),this._readableState.encoding=e};var p=8388608;function d(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:null===e||isNaN(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:e<=0?0:(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>=p)e=p;else{e--;for(var t=1;t<32;t<<=1)e|=e>>t;e++}return e}(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function g(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,t.sync?r.nextTick(function(){m(e)}):m(e))}function m(e){e.emit("readable")}function y(e){var t,n=e._readableState;function r(e,r,i){!1===e.write(t)&&n.awaitDrain++}for(n.awaitDrain=0;n.pipesCount&&null!==(t=e.read());)if(1===n.pipesCount?r(n.pipes):E(n.pipes,r),e.emit("data",t),n.awaitDrain>0)return;if(0===n.pipesCount)return n.flowing=!1,void(a.listenerCount(e,"data")>0&&v(e));n.ranOut=!0}function b(){this._readableState.ranOut&&(this._readableState.ranOut=!1,y(this))}function v(e,t){if(e._readableState.flowing)throw new Error("Cannot switch to old mode now.");var n=t||!1,i=!1;e.readable=!0,e.pipe=c.prototype.pipe,e.on=e.addListener=c.prototype.on,e.on("readable",function(){var t;for(i=!0;!n&&null!==(t=e.read());)e.emit("data",t);null===t&&(i=!1,e._readableState.needReadable=!0)}),e.pause=function(){n=!0,this.emit("pause")},e.resume=function(){n=!1,i?r.nextTick(function(){e.emit("readable")}):this.read(0),this.emit("resume")},e.emit("readable")}function w(e,t){var n,r=t.buffer,i=t.length,a=!!t.decoder,s=!!t.objectMode;if(0===r.length)return null;if(0===i)n=null;else if(s)n=r.shift();else if(!e||e>=i)n=a?r.join(""):o.concat(r,i),r.length=0;else if(e<r[0].length)n=(f=r[0]).slice(0,e),r[0]=f.slice(e);else if(e===r[0].length)n=r.shift();else{n=a?"":new o(e);for(var c=0,u=0,l=r.length;u<l&&c<e;u++){var f=r[0],h=Math.min(e-c,f.length);a?n+=f.slice(0,h):f.copy(n,c,0,h),h<f.length?r[0]=f.slice(h):r.shift(),c+=h}}return n}function _(e){var t=e._readableState;if(t.length>0)throw new Error("endReadable called on non-empty stream");!t.endEmitted&&t.calledRead&&(t.ended=!0,r.nextTick(function(){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}))}function E(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n)}f.prototype.read=function(e){var t=this._readableState;t.calledRead=!0;var n,r=e;if(("number"!=typeof e||e>0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return g(this),null;if(0===(e=d(e,t))&&t.ended)return n=null,t.length>0&&t.decoder&&(n=w(e,t),t.length-=n.length),0===t.length&&_(this),n;var i=t.needReadable;return t.length-e<=t.highWaterMark&&(i=!0),(t.ended||t.reading)&&(i=!1),i&&(t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1),i&&!t.reading&&(e=d(r,t)),null===(n=e>0?w(e,t):null)&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),t.ended&&!t.endEmitted&&0===t.length&&_(this),n},f.prototype._read=function(e){this.emit("error",new Error("not implemented"))},f.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1;var s=t&&!1===t.end||e===r.stdout||e===r.stderr?f:u;function c(e){e===n&&f()}function u(){e.end()}o.endEmitted?r.nextTick(s):n.once("end",s),e.on("unpipe",c);var l=function(e){return function(){var t=e._readableState;t.awaitDrain--,0===t.awaitDrain&&y(e)}}(n);function f(){e.removeListener("close",p),e.removeListener("finish",d),e.removeListener("drain",l),e.removeListener("error",h),e.removeListener("unpipe",c),n.removeListener("end",u),n.removeListener("end",f),e._writableState&&!e._writableState.needDrain||l()}function h(t){g(),e.removeListener("error",h),0===a.listenerCount(e,"error")&&e.emit("error",t)}function p(){e.removeListener("finish",d),g()}function d(){e.removeListener("close",p),g()}function g(){n.unpipe(e)}return e.on("drain",l),e._events&&e._events.error?i(e._events.error)?e._events.error.unshift(h):e._events.error=[h,e._events.error]:e.on("error",h),e.once("close",p),e.once("finish",d),e.emit("pipe",n),o.flowing||(this.on("readable",b),o.flowing=!0,r.nextTick(function(){y(n)})),e},f.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,this.removeListener("readable",b),t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,this.removeListener("readable",b),t.flowing=!1;for(var i=0;i<r;i++)n[i].emit("unpipe",this);return this}return-1===(i=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}(t.pipes,e))||(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},f.prototype.on=function(e,t){var n=c.prototype.on.call(this,e,t);if("data"!==e||this._readableState.flowing||v(this),"readable"===e&&this.readable){var r=this._readableState;r.readableListening||(r.readableListening=!0,r.emittedReadable=!1,r.needReadable=!0,r.reading?r.length&&g(this):this.read(0))}return n},f.prototype.addListener=f.prototype.on,f.prototype.resume=function(){v(this),this.read(0),this.emit("resume")},f.prototype.pause=function(){v(this,!0),this.emit("pause")},f.prototype.wrap=function(e){var t=this._readableState,n=!1,r=this;for(var i in e.on("end",function(){if(t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)}),e.on("data",function(i){t.decoder&&(i=t.decoder.write(i)),t.objectMode&&null==i||(t.objectMode||i&&i.length)&&(r.push(i)||(n=!0,e.pause()))}),e)"function"==typeof e[i]&&void 0===this[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return E(["error","close","destroy","pause","resume"],function(t){e.on(t,r.emit.bind(r,t))}),r._read=function(t){n&&(n=!1,e.resume())},r},f._fromList=w},7353:(e,t,n)=>{"use strict";var r=n(3225);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(i,this,e)):r.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?n._writableState?n._writableState.errorEmitted||(n._writableState.errorEmitted=!0,r.nextTick(i,n,e)):r.nextTick(i,n,e):t&&t(e)}),this)},undestroy:function(){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)}}},7432:(e,t,n)=>{var r=n(8287).Buffer,i=n(5606),o=n(2951),a=n(4675),s=n(4123),c=n(537),u=n(3519),l=new r(0),f={encode:function(e){return"string"==typeof e?e=new r(e):e},decode:function(e){return r.isBuffer(e)?e:new r(e)},buffer:!0,type:"raw"},h=function(){},p=function(e){return e=e.toString(16),"00000000".slice(0,-e.length)+e};e.exports=function(e,t){t||(t={});var n={},d=t.blockSize||65536,g=t.batch||100,m=new r(d);e.put("\0","ignore",h);var y={},b=function(e,t){if(!(this instanceof b))return new b(e,t);t||(t={}),this.name=e,this.blocks=[],this.batch=[],this.bytesWritten=0,this.truncate=!t.append,this.append=t.append,this._shouldInitAppend=this.append&&void 0===t.start,this._destroyed=!1,this._init(t.start||0),o.call(this)};c.inherits(b,o),b.prototype._init=function(e){this.blockIndex=e/d|0,this.blockOffset=e-this.blockIndex*d,this.blockLength=this.blockOffset},b.prototype._flush=function(t){if(!this.batch.length)return t();var n=this.batch[this.batch.length-1].key,r=this.batch;if(this.batch=[],!this.truncate)return e.batch(r,t);this.truncate=!1,this._truncate(r,n,t)},b.prototype._truncate=function(t,n,r){r=u(r);var i=[],o=e.createKeyStream({start:n,end:this.name+"ÿÿ"});o.on("error",r),o.on("data",function(e){i.push({type:"del",key:e})}),o.on("end",function(){i.push.apply(i,t),e.batch(i,r)})},b.prototype._writeBlock=function(t){var n=1===this.blocks.length?this.blocks[0]:r.concat(this.blocks,this.blockLength-this.blockOffset),i=this.blockIndex,o=this.blockOffset,a=this;this.blockOffset=0,this.blockLength=0,this.blockIndex++,this.blocks=[];var s=this.name+"ÿ"+p(i),c=function(e,t,n){return e.length&&a.batch.push({type:"put",key:s,value:e,valueEncoding:f}),!t&&a.batch.length<g?n():a._flush(n)};return!o&&n.length===d||!o&&!this.append?c(n,!1,t):void function(t,n,i,o,a){var s=function(){--y[t].locks||delete y[t]},c=function(e){if(e.locks++,!e.block&&!n)return e.block=i,void a(null,e.block,s);var t,c,u;e.block||(e.block=new r(d)),e.block.length<n+i.length&&(e.block=(t=e.block,c=n+i.length,u=new r(c),t.copy(u),u)),i.copy(e.block,n),!o&&n+i.length<e.block.length&&(e.block=e.block.slice(0,n+i.length)),a(null,e.block,s)};if(y[t])return c(y[t]);e.get(t,{valueEncoding:f},function(e,n){if(e&&!e.notFound)return a(e);y[t]||(y[t]={locks:0,block:n}),c(y[t])})}(s,o,n,this.append,function(e,n,r){if(e)return t(e);c(n,!0,function(e){r(),t(e)})})},b.prototype._initAppend=function(e,t,r){var i=this;this._shouldInitAppend=!1,n.size(this.name,function(n,o){if(n)return r(n);i._init(o),i._write(e,t,r)})},b.prototype._write=function(e,t,n){if(!e.length||this._destroyed)return n();if(this._shouldInitAppend)return this._initAppend(e,t,n);var r,i=this,o=d-this.blockLength,a=function(e){return e?n(e):r?i._write(r,t,n):void n()};if(e.length>o&&(r=e.slice(o),e=e.slice(0,o)),this.bytesWritten+=e.length,this.blockLength+=e.length,this.blocks.push(e),e.length<o)return a();this._writeBlock(a)},b.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,i.nextTick(this.emit.bind(this,"close")))},b.prototype.end=function(e){var t=this,n=arguments;e&&"function"!=typeof e&&(this.write(e),e=l),this.write(l,function(){t._writeBlock(function(e){if(e)return t.emit("error",e);t._flush(function(e){if(e)return t.emit("error",e);o.prototype.end.apply(t,n)})})})};var v=function(t,n){n||(n={});var r=this,i=n.start||0,o=i/d|0,s=i-o*d,c=t+"ÿ"+p(o);this.name=t,this._missing=("number"==typeof n.end?n.end:1/0)-i+1,this._paused=!1,this._destroyed=!1,this._reader=e.createReadStream({start:c,end:t+"ÿÿ",valueEncoding:f});var u=function(e){return c=t+"ÿ"+p(++o),!(!r._missing||(!s||(e=e.slice(s),s=0,e.length))&&(e.length>r._missing&&(e=e.slice(0,r._missing)),r._missing-=e.length,r._pause(!r.push(e)),!r._missing))};this._reader.on("data",function(e){for(;e.key>c;)if(!u(m))return;u(e.value)}),this._reader.on("error",function(e){r.emit("error",e)}),this._reader.on("end",function(){r.push(null)}),a.call(this)};return c.inherits(v,a),v.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._reader.destroy(),i.nextTick(this.emit.bind(this,"close")))},v.prototype._pause=function(e){this._paused!==e&&(this._paused=e,this._paused?this._reader.pause():this._reader.resume())},v.prototype._read=function(){this._pause(!1)},n.remove=function(t,n){n=u(n||h);var r=[],i=e.createKeyStream({start:t+"ÿ",end:t+"ÿÿ"});i.on("error",n),i.on("data",function(e){r.push({type:"del",key:e})}),i.on("end",function(){e.batch(r,n)})},n.size=function(t,n){s.last(e,{start:t+"ÿ",end:t+"ÿÿ",valueEncoding:f},function(e,r,i){return e&&"range not found"===e.message?n(null,0):e?n(e):r.slice(0,t.length+1)!==t+"ÿ"?n(null,0):void n(null,parseInt(r.toString().slice(t.length+1),16)*d+i.length)})},n.write=function(e,t,r,i){if("function"==typeof r)return n.write(e,t,null,r);r||(r={}),i||(i=h);var o=n.createWriteStream(e,r);o.on("error",i),o.on("finish",function(){i()}),o.write(t),o.end()},n.read=function(e,t,i){if("function"==typeof t)return n.read(e,null,t);t||(t={});var o=n.createReadStream(e,t),a=[];o.on("error",i),o.on("data",function(e){a.push(e)}),o.on("end",function(){i(null,1===a.length?a[0]:r.concat(a))})},n.createReadStream=function(e,t){return new v(e,t)},n.createWriteStream=function(e,t){return new b(e,t)},n}},7520:(e,t,n)=>{var r=n(8287).Buffer,i=n(3050).Writable,o=n(6698),a=n(2746);if("undefined"==typeof Uint8Array)var s=n(9656).SE;else s=Uint8Array;function c(e,t){if(!(this instanceof c))return new c(e,t);"function"==typeof e&&(t=e,e={}),e||(e={});var n=e.encoding,r=!1;n?"u8"!==(n=String(n).toLowerCase())&&"uint8"!==n||(n="uint8array"):r=!0,i.call(this,{objectMode:!0}),this.encoding=n,this.shouldInferEncoding=r,t&&this.on("finish",function(){t(this.getBody())}),this.body=[]}function u(e){return"string"==typeof e||(t=e,/Array\]$/.test(Object.prototype.toString.call(t)))||e&&"function"==typeof e.subarray;var t}e.exports=c,o(c,i),c.prototype._write=function(e,t,n){this.body.push(e),n()},c.prototype.inferEncoding=function(e){var t=void 0===e?this.body[0]:e;return r.isBuffer(t)?"buffer":"undefined"!=typeof Uint8Array&&t instanceof Uint8Array?"uint8array":Array.isArray(t)?"array":"string"==typeof t?"string":"[object Object]"===Object.prototype.toString.call(t)?"object":"buffer"},c.prototype.getBody=function(){return this.encoding||0!==this.body.length?(this.shouldInferEncoding&&(this.encoding=this.inferEncoding()),"array"===this.encoding?function(e){for(var t=[],n=0;n<e.length;n++)t.push.apply(t,e[n]);return t}(this.body):"string"===this.encoding?function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];"string"==typeof i||r.isBuffer(i)?t.push(i):u(i)?t.push(a(i)):t.push(a(String(i)))}return t=r.isBuffer(e[0])?(t=r.concat(t)).toString("utf8"):t.join("")}(this.body):"buffer"===this.encoding?function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];r.isBuffer(i)?t.push(i):u(i)?t.push(a(i)):t.push(a(String(i)))}return r.concat(t)}(this.body):"uint8array"===this.encoding?function(e){for(var t=0,n=0;n<e.length;n++)"string"==typeof e[n]&&(e[n]=a(e[n])),t+=e[n].length;for(var r=new s(t),i=(n=0,0);n<e.length;n++)for(var o=e[n],c=0;c<o.length;c++)r[i++]=o[c];return r}(this.body):this.body):[]},Array.isArray},7526:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,o=s(e),a=o[0],c=o[1],u=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,c)),l=0,f=c>0?a-4:a;for(n=0;n<f;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[l++]=t>>16&255,u[l++]=t>>8&255,u[l++]=255&t;return 2===c&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[l++]=255&t),1===c&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=16383,s=0,c=r-i;s<c;s+=a)o.push(u(e,s,s+a>c?c:s+a));return 1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=o[a],r[o.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function u(e,t,n){for(var r,i=[],o=t;o<n;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(c(r));return i.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},7589:(e,t,n)=>{!function(){"use strict";var t,r=Object.prototype.hasOwnProperty,i=n(9661),o=n(7593),a=!{toString:null}.propertyIsEnumerable("toString"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];t=function(e){if(!i.object(e)&&!i.array(e))throw new TypeError("Object.keys called on a non-object");var t,n=[];for(t in e)r.call(e,t)&&n.push(t);return a&&o(s,function(t){r.call(e,t)&&n.push(t)}),n},e.exports=t}()},7593:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString;e.exports=function(e,r,i){if("[object Function]"!==n.call(r))throw new TypeError("iterator must be a function");var o=e.length;if(o===+o)for(var a=0;a<o;a++)r.call(i,e[a],a,e);else for(var s in e)t.call(e,s)&&r.call(i,e[s],s,e)}},7650:(e,t,n)=>{"use strict";var r=n(5386).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=l,this.end=f,t=3;break;default:return this.write=h,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function l(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.I=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=a(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||-2===i?0:(i=a(t[r]))>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||-2===i?0:(i=a(t[r]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},7653:(e,t,n)=>{"use strict";var r=n(8452),i=n(487),o=n(9211),a=n(9394),s=n(6576),c=i(a(),Object);r(c,{getPolyfill:a,implementation:o,shim:s}),e.exports=c},7684:(e,t,n)=>{var r=n(5606);e.exports=u;var i=n(8287).Buffer;u.WritableState=c;var o=n(5622);o.inherits=n(6698);var a=n(8310);function s(e,t,n){this.chunk=e,this.encoding=t,this.callback=n}function c(e,t){var n=(e=e||{}).highWaterMark;this.highWaterMark=n||0===n?n:16384,this.objectMode=!!e.objectMode,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var i=!1===e.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,i=n.sync,o=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,i,o){n?r.nextTick(function(){o(i)}):o(i),e._writableState.errorEmitted=!0,e.emit("error",i)}(e,0,i,t,o);else{var a=h(0,n);a||n.bufferProcessing||!n.buffer.length||function(e,t){t.bufferProcessing=!0;for(var n=0;n<t.buffer.length;n++){var r=t.buffer[n],i=r.chunk,o=r.encoding,a=r.callback;if(l(e,t,t.objectMode?1:i.length,i,o,a),t.writing){n++;break}}t.bufferProcessing=!1,n<t.buffer.length?t.buffer=t.buffer.slice(n):t.buffer.length=0}(e,n),i?r.nextTick(function(){f(e,n,a,o)}):f(e,n,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.buffer=[],this.errorEmitted=!1}function u(e){var t=n(8166);if(!(this instanceof u||this instanceof t))return new u(e);this._writableState=new c(e,this),this.writable=!0,a.call(this)}function l(e,t,n,r,i,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,e._write(r,i,t.onwrite),t.sync=!1}function f(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),r(),n&&p(e,t)}function h(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function p(e,t){var n=h(0,t);return n&&(t.finished=!0,e.emit("finish")),n}o.inherits(u,a),u.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},u.prototype.write=function(e,t,n){var o=this._writableState,a=!1;return"function"==typeof t&&(n=t,t=null),i.isBuffer(e)?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=function(){}),o.ended?function(e,t,n){var i=new Error("write after end");e.emit("error",i),r.nextTick(function(){n(i)})}(this,0,n):function(e,t,n,o){var a=!0;if(!i.isBuffer(n)&&"string"!=typeof n&&null!=n&&!t.objectMode){var s=new TypeError("Invalid non-string/buffer chunk");e.emit("error",s),r.nextTick(function(){o(s)}),a=!1}return a}(this,o,e,n)&&(a=function(e,t,n,r,o){n=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=new i(t,n)),t}(t,n,r),i.isBuffer(n)&&(r="buffer");var a=t.objectMode?1:n.length;t.length+=a;var c=t.length<t.highWaterMark;return c||(t.needDrain=!0),t.writing?t.buffer.push(new s(n,r,o)):l(e,t,a,n,r,o),c}(this,o,e,t,n)),a},u.prototype._write=function(e,t,n){n(new Error("not implemented"))},u.prototype.end=function(e,t,n){var i=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),i.ending||i.finished||function(e,t,n){t.ending=!0,p(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n)),t.ended=!0}(this,i,n)}},7713:(e,t,n)=>{var r=n(2963),i=n(9043),o=n(1891),a=i("level-filesystem",{db:r});e.exports=o(a)},7720:(e,t,n)=>{"use strict";var r=n(4765),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n},c=1024;e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],s=Object.keys(a),c=0;c<s.length;++c){var u=s[c],l=a[u];"object"==typeof l&&null!==l&&-1===n.indexOf(l)&&(t.push({obj:a,prop:u}),n.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,i,o){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var u="",l=0;l<s.length;l+=c){for(var f=s.length>=c?s.slice(l,l+c):s,h=[],p=0;p<f.length;++p){var d=f.charCodeAt(p);45===d||46===d||95===d||126===d||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||o===r.RFC1738&&(40===d||41===d)?h[h.length]=f.charAt(p):d<128?h[h.length]=a[d]:d<2048?h[h.length]=a[192|d>>6]+a[128|63&d]:d<55296||d>=57344?h[h.length]=a[224|d>>12]+a[128|d>>6&63]+a[128|63&d]:(p+=1,d=65536+((1023&d)<<10|1023&f.charCodeAt(p)),h[h.length]=a[240|d>>18]+a[128|d>>12&63]+a[128|d>>6&63]+a[128|63&d])}u+=h.join("")}return u},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n&&"function"!=typeof n){if(o(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return o(t)&&!o(n)&&(a=s(t,r)),o(t)&&o(n)?(n.forEach(function(n,o){if(i.call(t,o)){var a=t[o];a&&"object"==typeof a&&n&&"object"==typeof n?t[o]=e(a,n,r):t.push(n)}else t[o]=n}),t):Object.keys(n).reduce(function(t,o){var a=n[o];return i.call(t,o)?t[o]=e(t[o],a,r):t[o]=a,t},a)}}},7758:(e,t,n)=>{"use strict";var r,i=n(6048).F,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function c(e){e()}function u(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var l,f=function(e){return e.length?"function"!=typeof e[e.length-1]?s:e.pop():s}(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new o("streams");var h=t.map(function(e,i){var o=i<t.length-1;return function(e,t,i,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var s=!1;e.on("close",function(){s=!0}),void 0===r&&(r=n(6238)),r(e,{readable:t,writable:i},function(e){if(e)return o(e);s=!0,o()});var c=!1;return function(t){if(!s&&!c)return c=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void o(t||new a("pipe"))}}(e,o,i>0,function(e){l||(l=e),e&&h.forEach(c),o||(h.forEach(c),f(l))})});return t.reduce(u)}},7805:(e,t,n)=>{var r=n(519).create,i=r("LevelUPError"),o=r("NotFoundError",i);o.prototype.notFound=!0,o.prototype.status=404,e.exports={LevelUPError:i,InitializationError:r("InitializationError",i),OpenError:r("OpenError",i),ReadError:r("ReadError",i),WriteError:r("WriteError",i),NotFoundError:o,EncodingError:r("EncodingError",i)}},7833:(e,t,n)=>{var r=n(5606);t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))}),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(736)(t);const{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},7969:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString;e.exports=function(e,r){if(!function(e){var t="function"==typeof e&&!(e instanceof RegExp)||"[object Function]"===n.call(e);return t||"undefined"==typeof window||(t=e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt),t}(r))throw new TypeError("iterator must be a function");var i,o,a="string"==typeof e,s=e.length,c=arguments.length>2?arguments[2]:null;if(s===+s)for(i=0;i<s;i++)null===c?r(a?e.charAt(i):e[i],i,e):r.call(c,a?e.charAt(i):e[i],i,e);else for(o in e)t.call(e,o)&&(null===c?r(e[o],o,e):r.call(c,e[o],o,e))}},7970:(e,t,n)=>{var r=n(6503);e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];if(r(n))for(var i in n)n.hasOwnProperty(i)&&(e[i]=n[i])}return e}},7975:(e,t,n)=>{"use strict";var r=n(5606);function i(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function o(e,t){for(var n,r="",i=0,o=-1,a=0,s=0;s<=e.length;++s){if(s<e.length)n=e.charCodeAt(s);else{if(47===n)break;n=47}if(47===n){if(o===s-1||1===a);else if(o!==s-1&&2===a){if(r.length<2||2!==i||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var c=r.lastIndexOf("/");if(c!==r.length-1){-1===c?(r="",i=0):i=(r=r.slice(0,c)).length-1-r.lastIndexOf("/"),o=s,a=0;continue}}else if(2===r.length||1===r.length){r="",i=0,o=s,a=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(o+1,s):r=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===n&&-1!==a?++a:a=-1}return r}var a={resolve:function(){for(var e,t="",n=!1,a=arguments.length-1;a>=-1&&!n;a--){var s;a>=0?s=arguments[a]:(void 0===e&&(e=r.cwd()),s=e),i(s),0!==s.length&&(t=s+"/"+t,n=47===s.charCodeAt(0))}return t=o(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(i(e),0===e.length)return".";var t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0!==(e=o(e,!t)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return i(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var n=arguments[t];i(n),n.length>0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":a.normalize(e)},relative:function(e,t){if(i(e),i(t),e===t)return"";if((e=a.resolve(e))===(t=a.resolve(t)))return"";for(var n=1;n<e.length&&47===e.charCodeAt(n);++n);for(var r=e.length,o=r-n,s=1;s<t.length&&47===t.charCodeAt(s);++s);for(var c=t.length-s,u=o<c?o:c,l=-1,f=0;f<=u;++f){if(f===u){if(c>u){if(47===t.charCodeAt(s+f))return t.slice(s+f+1);if(0===f)return t.slice(s+f)}else o>u&&(47===e.charCodeAt(n+f)?l=f:0===f&&(l=0));break}var h=e.charCodeAt(n+f);if(h!==t.charCodeAt(s+f))break;47===h&&(l=f)}var p="";for(f=n+l+1;f<=r;++f)f!==r&&47!==e.charCodeAt(f)||(0===p.length?p+="..":p+="/..");return p.length>0?p+t.slice(s+l):(s+=l,47===t.charCodeAt(s)&&++s,t.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(i(e),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,o=!0,a=e.length-1;a>=1;--a)if(47===(t=e.charCodeAt(a))){if(!o){r=a;break}}else o=!1;return-1===r?n?"/":".":n&&1===r?"//":e.slice(0,r)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');i(e);var n,r=0,o=-1,a=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,c=-1;for(n=e.length-1;n>=0;--n){var u=e.charCodeAt(n);if(47===u){if(!a){r=n+1;break}}else-1===c&&(a=!1,c=n+1),s>=0&&(u===t.charCodeAt(s)?-1===--s&&(o=n):(s=-1,o=c))}return r===o?o=c:-1===o&&(o=e.length),e.slice(r,o)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!a){r=n+1;break}}else-1===o&&(a=!1,o=n+1);return-1===o?"":e.slice(r,o)},extname:function(e){i(e);for(var t=-1,n=0,r=-1,o=!0,a=0,s=e.length-1;s>=0;--s){var c=e.charCodeAt(s);if(47!==c)-1===r&&(o=!1,r=s+1),46===c?-1===t?t=s:1!==a&&(a=1):-1!==t&&(a=-1);else if(!o){n=s+1;break}}return-1===t||-1===r||0===a||1===a&&t===r-1&&t===n+1?"":e.slice(t,r)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+"/"+r:r}(0,e)},parse:function(e){i(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,r=e.charCodeAt(0),o=47===r;o?(t.root="/",n=1):n=0;for(var a=-1,s=0,c=-1,u=!0,l=e.length-1,f=0;l>=n;--l)if(47!==(r=e.charCodeAt(l)))-1===c&&(u=!1,c=l+1),46===r?-1===a?a=l:1!==f&&(f=1):-1!==a&&(f=-1);else if(!u){s=l+1;break}return-1===a||-1===c||0===f||1===f&&a===c-1&&a===s+1?-1!==c&&(t.base=t.name=0===s&&o?e.slice(1,c):e.slice(s,c)):(0===s&&o?(t.name=e.slice(1,a),t.base=e.slice(1,c)):(t.name=e.slice(s,a),t.base=e.slice(s,c)),t.ext=e.slice(a,c)),s>0?t.dir=e.slice(0,s-1):o&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};a.posix=a,e.exports=a},8002:e=>{"use strict";e.exports=Math.min},8010:(e,t,n)=>{e.exports=n(7007).EventEmitter},8068:e=>{"use strict";e.exports=SyntaxError},8075:(e,t,n)=>{"use strict";var r=n(453),i=n(487),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?i(n):n}},8166:(e,t,n)=>{var r=n(5606);e.exports=c;var i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t},o=n(5622);o.inherits=n(6698);var a=n(5140),s=n(7684);function c(e){if(!(this instanceof c))return new c(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",u)}function u(){this.allowHalfOpen||this._writableState.ended||r.nextTick(this.end.bind(this))}o.inherits(c,a),function(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n])}(i(s.prototype),function(e){c.prototype[e]||(c.prototype[e]=s.prototype[e])})},8184:(e,t,n)=>{"use strict";var r=n(6556),i=n(9721)(/^\s*(?:function)?\*/),o=n(9092)(),a=n(3628),s=r("Object.prototype.toString"),c=r("Function.prototype.toString"),u=n(4233);e.exports=function(e){if("function"!=typeof e)return!1;if(i(c(e)))return!0;if(!o)return"[object GeneratorFunction]"===s(e);if(!a)return!1;var t=u();return t&&a(e)===t.prototype}},8221:()=>{},8287:(e,t,n)=>{"use strict";const r=n(7526),i=n(251),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=c,t.SlowBuffer=function(e){return+e!=e&&(e=0),c.alloc(+e)},t.INSPECT_MAX_BYTES=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return f(e)}return u(e,t,n)}function u(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|g(e,t);let r=s(n);const i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(K(e,Uint8Array)){const t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return h(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(K(e,ArrayBuffer)||e&&K(e.buffer,ArrayBuffer))return p(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(K(e,SharedArrayBuffer)||e&&K(e.buffer,SharedArrayBuffer)))return p(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return c.from(r,t,n);const i=function(e){if(c.isBuffer(e)){const t=0|d(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||Y(e.length)?s(0):h(e):"Buffer"===e.type&&Array.isArray(e.data)?h(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function f(e){return l(e),s(e<0?0:0|d(e))}function h(e){const t=e.length<0?0:0|d(e.length),n=s(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function p(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,c.prototype),r}function d(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function g(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||K(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(e).length;default:if(i)return r?-1:H(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,n);case"utf8":case"utf-8":return O(this,t,n);case"ascii":return R(this,t,n);case"latin1":case"binary":return j(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function b(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Y(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,i){let o,a=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let r=-1;for(o=n;o<s;o++)if(u(e,o)===u(t,-1===r?0:o-r)){if(-1===r&&(r=o),o-r+1===c)return r*a}else-1!==r&&(o-=o-r),r=-1}else for(n+c>s&&(n=s-c),o=n;o>=0;o--){let n=!0;for(let r=0;r<c;r++)if(u(e,o+r)!==u(t,r)){n=!1;break}if(n)return o}return-1}function w(e,t,n,r){n=Number(n)||0;const i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;const o=t.length;let a;for(r>o/2&&(r=o/2),a=0;a<r;++a){const r=parseInt(t.substr(2*a,2),16);if(Y(r))return a;e[n+a]=r}return a}function _(e,t,n,r){return G(H(t,e.length-n),e,n,r)}function E(e,t,n,r){return G(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function k(e,t,n,r){return G(V(t),e,n,r)}function x(e,t,n,r){return G(function(e,t){let n,r,i;const o=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function O(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i<n;){const t=e[i];let o=null,a=t>239?4:t>223?3:t>191?2:1;if(i+a<=n){let n,r,s,c;switch(a){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128==(192&n)&&(c=(31&t)<<6|63&n,c>127&&(o=c));break;case 3:n=e[i+1],r=e[i+2],128==(192&n)&&128==(192&r)&&(c=(15&t)<<12|(63&n)<<6|63&r,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],128==(192&n)&&128==(192&r)&&128==(192&s)&&(c=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,c>65535&&c<1114112&&(o=c))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}return function(e){const t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=A));return n}(r)}t.kMaxLength=a,c.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),c.TYPED_ARRAY_SUPPORT||"undefined"==typeof 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(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,n){return u(e,t,n)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,n){return function(e,t,n){return l(e),e<=0?s(e):void 0!==t?"string"==typeof n?s(e).fill(t,n):s(e).fill(t):s(e)}(e,t,n)},c.allocUnsafe=function(e){return f(e)},c.allocUnsafeSlow=function(e){return f(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(K(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),K(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=c.allocUnsafe(t);let i=0;for(n=0;n<e.length;++n){let t=e[n];if(K(t,Uint8Array))i+t.length>r.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},c.byteLength=g,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)y(this,t,t+1);return this},c.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},c.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},c.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?O(this,0,e):m.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){let e="";const n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(c.prototype[o]=c.prototype.inspect),c.prototype.compare=function(e,t,n,r,i){if(K(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const s=Math.min(o,a),u=this.slice(r,i),l=e.slice(t,n);for(let e=0;e<s;++e)if(u[e]!==l[e]){o=u[e],a=l[e];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return b(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return b(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":case"latin1":case"binary":return E(this,e,t,n);case"base64":return k(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const A=4096;function R(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function j(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function T(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i="";for(let r=t;r<n;++r)i+=J[e[r]];return i}function I(e,t,n){const r=e.slice(t,n);let i="";for(let e=0;e<r.length-1;e+=2)i+=String.fromCharCode(r[e]+256*r[e+1]);return i}function M(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,n,r,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function B(e,t,n,r,i){W(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function C(e,t,n,r,i){W(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function N(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function P(e,t,n,r,o){return t=+t,n>>>=0,o||N(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function D(e,t,n,r,o){return t=+t,n>>>=0,o||N(e,0,n,8),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,c.prototype),r},c.prototype.readUintLE=c.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||M(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return r},c.prototype.readUintBE=c.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||M(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||M(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||M(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||M(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||M(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||M(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=X(function(e){q(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||$(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))}),c.prototype.readBigUInt64BE=X(function(e){q(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||$(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)}),c.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||M(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||M(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||M(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||M(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){e>>>=0,t||M(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||M(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||M(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=X(function(e){q(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||$(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)}),c.prototype.readBigInt64BE=X(function(e){q(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||$(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)}),c.prototype.readFloatLE=function(e,t){return e>>>=0,t||M(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||M(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||M(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||M(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||L(this,e,t,n,Math.pow(2,8*n)-1,0);let i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||L(this,e,t,n,Math.pow(2,8*n)-1,0);let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=X(function(e,t=0){return B(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=X(function(e,t=0){return C(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);L(this,e,t,n,r-1,-r)}let i=0,o=1,a=0;for(this[t]=255&e;++i<n&&(o*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/o|0)-a&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);L(this,e,t,n,r-1,-r)}let i=n-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o|0)-a&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=X(function(e,t=0){return B(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=X(function(e,t=0){return C(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeFloatLE=function(e,t,n){return P(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return P(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return D(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return D(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const i=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{const o=c.isBuffer(e)?e:c.from(e,r),a=o.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=o[i%a]}return this};const F={};function U(e,t,n){F[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function z(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function W(e,t,n,r,i,o){if(e>n||e<t){const r="bigint"==typeof t?"n":"";let i;throw i=o>3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new F.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){q(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||$(t,e.length-(n+1))}(r,i,o)}function q(e,t){if("number"!=typeof e)throw new F.ERR_INVALID_ARG_TYPE(t,"number",e)}function $(e,t,n){if(Math.floor(e)!==e)throw q(e,n),new F.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new F.ERR_BUFFER_OUT_OF_BOUNDS;throw new F.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}U("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),U("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),U("ERR_OUT_OF_RANGE",function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=z(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=z(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r},RangeError);const Z=/[^+/0-9A-Za-z-_]/g;function H(e,t){let n;t=t||1/0;const r=e.length;let i=null;const o=[];for(let a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function V(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(Z,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function G(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function K(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!=e}const J=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function X(e){return"undefined"==typeof BigInt?Q:e}function Q(){throw new Error("BigInt not supported")}},8310:(e,t,n)=>{e.exports=i;var r=n(7007).EventEmitter;function i(){r.call(this)}n(6698)(i,r),i.Readable=n(5412),i.Writable=n(6708),i.Duplex=n(5382),i.Transform=n(4610),i.PassThrough=n(3600),i.finished=n(6238),i.pipeline=n(7758),i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",c));var a=!1;function s(){a||(a=!0,e.end())}function c(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(l(),0===r.listenerCount(this,"error"))throw e}function l(){n.removeListener("data",i),e.removeListener("drain",o),n.removeListener("end",s),n.removeListener("close",c),n.removeListener("error",u),e.removeListener("error",u),n.removeListener("end",l),n.removeListener("close",l),e.removeListener("close",l)}return n.on("error",u),e.on("error",u),n.on("end",l),n.on("close",l),e.on("close",l),e.emit("pipe",n),e}},8320:(e,t,n)=>{var r=n(5606),i=n(8310);(t=e.exports=n(1438)).Stream=i,t.Readable=t,t.Writable=n(626),t.Duplex=n(5240),t.Transform=n(9816),t.PassThrough=n(186),r.browser||"disable"!==r.env.READABLE_STREAM||(e.exports=n(8310))},8403:(e,t,n)=>{"use strict";var r=n(1189),i=n(1333)(),o=n(6556),a=n(9612),s=o("Array.prototype.push"),c=o("Object.prototype.propertyIsEnumerable"),u=i?a.getOwnPropertySymbols:null;e.exports=function(e,t){if(null==e)throw new TypeError("target must be an object");var n=a(e);if(1===arguments.length)return n;for(var o=1;o<arguments.length;++o){var l=a(arguments[o]),f=r(l),h=i&&(a.getOwnPropertySymbols||u);if(h)for(var p=h(l),d=0;d<p.length;++d){var g=p[d];c(l,g)&&s(f,g)}for(var m=0;m<f.length;++m){var y=f[m];if(c(l,y)){var b=l[y];n[y]=b}}}return n}},8411:(e,t,n)=>{"use strict";var r,i=n(9805),o=n(3665),a=n(3269),s=n(4823),c=n(4674),u=-2,l=258,f=262,h=103,p=113,d=666;function g(e,t){return e.msg=c[t],t}function m(e){return(e<<1)-(e>4?9:0)}function y(e){for(var t=e.length;--t>=0;)e[t]=0}function b(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function v(e,t){o._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,b(e.strm)}function w(e,t){e.pending_buf[e.pending++]=t}function _(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function E(e,t,n,r){var o=e.avail_in;return o>r&&(o=r),0===o?0:(e.avail_in-=o,i.arraySet(t,e.input,e.next_in,o,n),1===e.state.wrap?e.adler=a(e.adler,t,o,n):2===e.state.wrap&&(e.adler=s(e.adler,t,o,n)),e.next_in+=o,e.total_in+=o,o)}function k(e,t){var n,r,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-f?e.strstart-(e.w_size-f):0,u=e.window,h=e.w_mask,p=e.prev,d=e.strstart+l,g=u[o+a-1],m=u[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(n=t)+a]===m&&u[n+a-1]===g&&u[n]===u[o]&&u[++n]===u[o+1]){o+=2,n++;do{}while(u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&o<d);if(r=l-(d-o),o=d-l,r>a){if(e.match_start=t,a=r,r>=s)break;g=u[o+a-1],m=u[o+a]}}}while((t=p[t&h])>c&&0!==--i);return a<=e.lookahead?a:e.lookahead}function x(e){var t,n,r,o,a,s=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=s+(s-f)){i.arraySet(e.window,e.window,s,s,0),e.match_start-=s,e.strstart-=s,e.block_start-=s,t=n=e.hash_size;do{r=e.head[--t],e.head[t]=r>=s?r-s:0}while(--n);t=n=s;do{r=e.prev[--t],e.prev[t]=r>=s?r-s:0}while(--n);o+=s}if(0===e.strm.avail_in)break;if(n=E(e.strm,e.window,e.strstart+e.lookahead,o),e.lookahead+=n,e.lookahead+e.insert>=3)for(a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+3-1])&e.hash_mask,e.prev[a&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=a,a++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<f&&0!==e.strm.avail_in)}function S(e,t){for(var n,r;;){if(e.lookahead<f){if(x(e),e.lookahead<f&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-f&&(e.match_length=k(e,n)),e.match_length>=3)if(r=o._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!==--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}function O(e,t){for(var n,r,i;;){if(e.lookahead<f){if(x(e),e.lookahead<f&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-f&&(e.match_length=k(e,n),e.match_length<=5&&(1===e.strategy||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,r=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!==--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(v(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=o._tr_tally(e,0,e.window[e.strstart-1]))&&v(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=o._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}function A(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function R(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),y(this.dyn_ltree),y(this.dyn_dtree),y(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),y(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),y(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function j(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:p,e.adler=2===t.wrap?0:1,t.last_flush=0,o._tr_init(t),0):g(e,u)}function T(e){var t,n=j(e);return 0===n&&((t=e.state).window_size=2*t.w_size,y(t.head),t.max_lazy_match=r[t.level].max_lazy,t.good_match=r[t.level].good_length,t.nice_match=r[t.level].nice_length,t.max_chain_length=r[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),n}function I(e,t,n,r,o,a){if(!e)return u;var s=1;if(-1===t&&(t=6),r<0?(s=0,r=-r):r>15&&(s=2,r-=16),o<1||o>9||8!==n||r<8||r>15||t<0||t>9||a<0||a>4)return g(e,u);8===r&&(r=9);var c=new R;return e.state=c,c.strm=e,c.wrap=s,c.gzhead=null,c.w_bits=r,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=o+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+3-1)/3),c.window=new i.Buf8(2*c.w_size),c.head=new i.Buf16(c.hash_size),c.prev=new i.Buf16(c.w_size),c.lit_bufsize=1<<o+6,c.pending_buf_size=4*c.lit_bufsize,c.pending_buf=new i.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=t,c.strategy=a,c.method=n,T(e)}r=[new A(0,0,0,0,function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(x(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,v(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-f&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(v(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(v(e,!1),e.strm.avail_out),1)}),new A(4,4,8,4,S),new A(4,5,16,8,S),new A(4,6,32,32,S),new A(4,4,16,16,O),new A(8,16,32,32,O),new A(8,16,128,128,O),new A(8,32,128,256,O),new A(32,128,258,1024,O),new A(32,258,258,4096,O)],t.deflateInit=function(e,t){return I(e,t,8,15,8,0)},t.deflateInit2=I,t.deflateReset=T,t.deflateResetKeep=j,t.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?u:(e.state.gzhead=t,0):u},t.deflate=function(e,t){var n,i,a,c;if(!e||!e.state||t>5||t<0)return e?g(e,u):u;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||i.status===d&&4!==t)return g(e,0===e.avail_out?-5:u);if(i.strm=e,n=i.last_flush,i.last_flush=t,42===i.status)if(2===i.wrap)e.adler=0,w(i,31),w(i,139),w(i,8),i.gzhead?(w(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),w(i,255&i.gzhead.time),w(i,i.gzhead.time>>8&255),w(i,i.gzhead.time>>16&255),w(i,i.gzhead.time>>24&255),w(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),w(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(w(i,255&i.gzhead.extra.length),w(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(w(i,0),w(i,0),w(i,0),w(i,0),w(i,0),w(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),w(i,3),i.status=p);else{var f=8+(i.w_bits-8<<4)<<8;f|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(f|=32),f+=31-f%31,i.status=p,_(i,f),0!==i.strstart&&(_(i,e.adler>>>16),_(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),b(e),a=i.pending,i.pending!==i.pending_buf_size));)w(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),b(e),a=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,w(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===c&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),b(e),a=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,w(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===c&&(i.status=h)}else i.status=h;if(i.status===h&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&b(e),i.pending+2<=i.pending_buf_size&&(w(i,255&e.adler),w(i,e.adler>>8&255),e.adler=0,i.status=p)):i.status=p),0!==i.pending){if(b(e),0===e.avail_out)return i.last_flush=-1,0}else if(0===e.avail_in&&m(t)<=m(n)&&4!==t)return g(e,-5);if(i.status===d&&0!==e.avail_in)return g(e,-5);if(0!==e.avail_in||0!==i.lookahead||0!==t&&i.status!==d){var E=2===i.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(x(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var n,r,i,a,s=e.window;;){if(e.lookahead<=l){if(x(e),e.lookahead<=l&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){a=e.strstart+l;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<a);e.match_length=l-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=o._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}(i,t):r[i.level].func(i,t);if(3!==E&&4!==E||(i.status=d),1===E||3===E)return 0===e.avail_out&&(i.last_flush=-1),0;if(2===E&&(1===t?o._tr_align(i):5!==t&&(o._tr_stored_block(i,0,0,!1),3===t&&(y(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),b(e),0===e.avail_out))return i.last_flush=-1,0}return 4!==t?0:i.wrap<=0?1:(2===i.wrap?(w(i,255&e.adler),w(i,e.adler>>8&255),w(i,e.adler>>16&255),w(i,e.adler>>24&255),w(i,255&e.total_in),w(i,e.total_in>>8&255),w(i,e.total_in>>16&255),w(i,e.total_in>>24&255)):(_(i,e.adler>>>16),_(i,65535&e.adler)),b(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?0:1)},t.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&t!==h&&t!==p&&t!==d?g(e,u):(e.state=null,t===p?g(e,-3):0):u},t.deflateSetDictionary=function(e,t){var n,r,o,s,c,l,f,h,p=t.length;if(!e||!e.state)return u;if(2===(s=(n=e.state).wrap)||1===s&&42!==n.status||n.lookahead)return u;for(1===s&&(e.adler=a(e.adler,t,p,0)),n.wrap=0,p>=n.w_size&&(0===s&&(y(n.head),n.strstart=0,n.block_start=0,n.insert=0),h=new i.Buf8(n.w_size),i.arraySet(h,t,p-n.w_size,n.w_size,0),t=h,p=n.w_size),c=e.avail_in,l=e.next_in,f=e.input,e.avail_in=p,e.next_in=0,e.input=t,x(n);n.lookahead>=3;){r=n.strstart,o=n.lookahead-2;do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+3-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--o);n.strstart=r,n.lookahead=2,x(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,e.next_in=l,e.input=f,e.avail_in=c,n.wrap=s,0},t.deflateInfo="pako deflate (from Nodeca project)"},8452:(e,t,n)=>{"use strict";var r=n(1189),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=n(41),c=n(592)(),u=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!=typeof(i=r)||"[object Function]"!==o.call(i)||!r())return;var i;c?s(e,t,n,!0):s(e,t,n)},l=function(e,t){var n=arguments.length>2?arguments[2]:{},o=r(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s<o.length;s+=1)u(e,o[s],t[o[s]],n[o[s]])};l.supportsDescriptors=!!c,e.exports=l},8531:(e,t,n)=>{var r=n(1963).Readable,i=n(537).inherits,o=n(3493),a=n(7805).EncodingError,s=n(2350),c={keys:!0,values:!0},u=function(e,t){return{key:s.decodeKey(e,this._options),value:s.decodeValue(t,this._options)}},l=function(e){return s.decodeKey(e,this._options)},f=function(e,t){return s.decodeValue(t,this._options)},h=function(){return null};function p(e,t,n){if(!(this instanceof p))return new p(e,t,n);r.call(this,{objectMode:!0,highWaterMark:e.highWaterMark}),this._db=t,e=this._options=o(c,e),this._keyEncoding=e.keyEncoding||e.encoding,this._valueEncoding=e.valueEncoding||e.encoding,void 0!==this._options.start&&(this._options.start=s.encodeKey(this._options.start,this._options)),void 0!==this._options.end&&(this._options.end=s.encodeKey(this._options.end,this._options)),"number"!=typeof this._options.limit&&(this._options.limit=-1),this._options.keyAsBuffer=s.isKeyAsBuffer(this._options),this._options.valueAsBuffer=s.isValueAsBuffer(this._options),this._makeData=this._options.keys&&this._options.values?u:this._options.keys?l:this._options.values?f:h;var i=this;this._db.isOpen()?this._iterator=n(this._options):this._db.once("ready",function(){i._destroyed||(i._iterator=n(i._options))})}i(p,r),p.prototype._read=function e(){var t=this;if(!t._db.isOpen())return t._db.once("ready",function(){e.call(t)});t._destroyed||t._iterator.next(function(e,n,r){if(e||void 0===n&&void 0===r)return e||t._destroyed||t.push(null),t._cleanup(e);try{r=t._makeData(n,r)}catch(e){return t._cleanup(new a(e))}t._destroyed||t.push(r)})},p.prototype._cleanup=function(e){if(!this._destroyed){this._destroyed=!0;var t=this;e&&t.emit("error",e),t._iterator?t._iterator.end(function(){t._iterator=null,t.emit("close")}):t.emit("close")}},p.prototype.destroy=function(){this._cleanup()},p.prototype.toString=function(){return"LevelUP.ReadStream"},e.exports=p},8559:(e,t,n)=>{"use strict";var r=n(5606),i=n(8287).Buffer,o=n(8310).Transform,a=n(5974),s=n(537),c=n(4148).ok,u=n(8287).kMaxLength,l="Cannot create final Buffer. It would be larger than 0x"+u.toString(16)+" bytes";a.Z_MIN_WINDOWBITS=8,a.Z_MAX_WINDOWBITS=15,a.Z_DEFAULT_WINDOWBITS=15,a.Z_MIN_CHUNK=64,a.Z_MAX_CHUNK=1/0,a.Z_DEFAULT_CHUNK=16384,a.Z_MIN_MEMLEVEL=1,a.Z_MAX_MEMLEVEL=9,a.Z_DEFAULT_MEMLEVEL=8,a.Z_MIN_LEVEL=-1,a.Z_MAX_LEVEL=9,a.Z_DEFAULT_LEVEL=a.Z_DEFAULT_COMPRESSION;for(var f=Object.keys(a),h=0;h<f.length;h++){var p=f[h];p.match(/^Z/)&&Object.defineProperty(t,p,{enumerable:!0,value:a[p],writable:!1})}for(var d={Z_OK:a.Z_OK,Z_STREAM_END:a.Z_STREAM_END,Z_NEED_DICT:a.Z_NEED_DICT,Z_ERRNO:a.Z_ERRNO,Z_STREAM_ERROR:a.Z_STREAM_ERROR,Z_DATA_ERROR:a.Z_DATA_ERROR,Z_MEM_ERROR:a.Z_MEM_ERROR,Z_BUF_ERROR:a.Z_BUF_ERROR,Z_VERSION_ERROR:a.Z_VERSION_ERROR},g=Object.keys(d),m=0;m<g.length;m++){var y=g[m];d[d[y]]=y}function b(e,t,n){var r=[],o=0;function a(){for(var t;null!==(t=e.read());)r.push(t),o+=t.length;e.once("readable",a)}function s(){var t,a=null;o>=u?a=new RangeError(l):t=i.concat(r,o),r=[],e.close(),n(a,t)}e.on("error",function(t){e.removeListener("end",s),e.removeListener("readable",a),n(t)}),e.on("end",s),e.end(t),a()}function v(e,t){if("string"==typeof t&&(t=i.from(t)),!i.isBuffer(t))throw new TypeError("Not a string or buffer");var n=e._finishFlushFlag;return e._processChunk(t,n)}function w(e){if(!(this instanceof w))return new w(e);R.call(this,e,a.DEFLATE)}function _(e){if(!(this instanceof _))return new _(e);R.call(this,e,a.INFLATE)}function E(e){if(!(this instanceof E))return new E(e);R.call(this,e,a.GZIP)}function k(e){if(!(this instanceof k))return new k(e);R.call(this,e,a.GUNZIP)}function x(e){if(!(this instanceof x))return new x(e);R.call(this,e,a.DEFLATERAW)}function S(e){if(!(this instanceof S))return new S(e);R.call(this,e,a.INFLATERAW)}function O(e){if(!(this instanceof O))return new O(e);R.call(this,e,a.UNZIP)}function A(e){return e===a.Z_NO_FLUSH||e===a.Z_PARTIAL_FLUSH||e===a.Z_SYNC_FLUSH||e===a.Z_FULL_FLUSH||e===a.Z_FINISH||e===a.Z_BLOCK}function R(e,n){var r=this;if(this._opts=e=e||{},this._chunkSize=e.chunkSize||t.Z_DEFAULT_CHUNK,o.call(this,e),e.flush&&!A(e.flush))throw new Error("Invalid flush flag: "+e.flush);if(e.finishFlush&&!A(e.finishFlush))throw new Error("Invalid flush flag: "+e.finishFlush);if(this._flushFlag=e.flush||a.Z_NO_FLUSH,this._finishFlushFlag=void 0!==e.finishFlush?e.finishFlush:a.Z_FINISH,e.chunkSize&&(e.chunkSize<t.Z_MIN_CHUNK||e.chunkSize>t.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBits<t.Z_MIN_WINDOWBITS||e.windowBits>t.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.level<t.Z_MIN_LEVEL||e.level>t.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevel<t.Z_MIN_MEMLEVEL||e.memLevel>t.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=t.Z_FILTERED&&e.strategy!=t.Z_HUFFMAN_ONLY&&e.strategy!=t.Z_RLE&&e.strategy!=t.Z_FIXED&&e.strategy!=t.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!i.isBuffer(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new a.Zlib(n);var s=this;this._hadError=!1,this._handle.onerror=function(e,n){j(s),s._hadError=!0;var r=new Error(e);r.errno=n,r.code=t.codes[n],s.emit("error",r)};var c=t.Z_DEFAULT_COMPRESSION;"number"==typeof e.level&&(c=e.level);var u=t.Z_DEFAULT_STRATEGY;"number"==typeof e.strategy&&(u=e.strategy),this._handle.init(e.windowBits||t.Z_DEFAULT_WINDOWBITS,c,e.memLevel||t.Z_DEFAULT_MEMLEVEL,u,e.dictionary),this._buffer=i.allocUnsafe(this._chunkSize),this._offset=0,this._level=c,this._strategy=u,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!r._handle},configurable:!0,enumerable:!0})}function j(e,t){t&&r.nextTick(t),e._handle&&(e._handle.close(),e._handle=null)}function T(e){e.emit("close")}Object.defineProperty(t,"codes",{enumerable:!0,value:Object.freeze(d),writable:!1}),t.Deflate=w,t.Inflate=_,t.Gzip=E,t.Gunzip=k,t.DeflateRaw=x,t.InflateRaw=S,t.Unzip=O,t.createDeflate=function(e){return new w(e)},t.createInflate=function(e){return new _(e)},t.createDeflateRaw=function(e){return new x(e)},t.createInflateRaw=function(e){return new S(e)},t.createGzip=function(e){return new E(e)},t.createGunzip=function(e){return new k(e)},t.createUnzip=function(e){return new O(e)},t.deflate=function(e,t,n){return"function"==typeof t&&(n=t,t={}),b(new w(t),e,n)},t.deflateSync=function(e,t){return v(new w(t),e)},t.gzip=function(e,t,n){return"function"==typeof t&&(n=t,t={}),b(new E(t),e,n)},t.gzipSync=function(e,t){return v(new E(t),e)},t.deflateRaw=function(e,t,n){return"function"==typeof t&&(n=t,t={}),b(new x(t),e,n)},t.deflateRawSync=function(e,t){return v(new x(t),e)},t.unzip=function(e,t,n){return"function"==typeof t&&(n=t,t={}),b(new O(t),e,n)},t.unzipSync=function(e,t){return v(new O(t),e)},t.inflate=function(e,t,n){return"function"==typeof t&&(n=t,t={}),b(new _(t),e,n)},t.inflateSync=function(e,t){return v(new _(t),e)},t.gunzip=function(e,t,n){return"function"==typeof t&&(n=t,t={}),b(new k(t),e,n)},t.gunzipSync=function(e,t){return v(new k(t),e)},t.inflateRaw=function(e,t,n){return"function"==typeof t&&(n=t,t={}),b(new S(t),e,n)},t.inflateRawSync=function(e,t){return v(new S(t),e)},s.inherits(R,o),R.prototype.params=function(e,n,i){if(e<t.Z_MIN_LEVEL||e>t.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+e);if(n!=t.Z_FILTERED&&n!=t.Z_HUFFMAN_ONLY&&n!=t.Z_RLE&&n!=t.Z_FIXED&&n!=t.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+n);if(this._level!==e||this._strategy!==n){var o=this;this.flush(a.Z_SYNC_FLUSH,function(){c(o._handle,"zlib binding closed"),o._handle.params(e,n),o._hadError||(o._level=e,o._strategy=n,i&&i())})}else r.nextTick(i)},R.prototype.reset=function(){return c(this._handle,"zlib binding closed"),this._handle.reset()},R.prototype._flush=function(e){this._transform(i.alloc(0),"",e)},R.prototype.flush=function(e,t){var n=this,o=this._writableState;("function"==typeof e||void 0===e&&!t)&&(t=e,e=a.Z_FULL_FLUSH),o.ended?t&&r.nextTick(t):o.ending?t&&this.once("end",t):o.needDrain?t&&this.once("drain",function(){return n.flush(e,t)}):(this._flushFlag=e,this.write(i.alloc(0),"",t))},R.prototype.close=function(e){j(this,e),r.nextTick(T,this)},R.prototype._transform=function(e,t,n){var r,o=this._writableState,s=(o.ending||o.ended)&&(!e||o.length===e.length);return null===e||i.isBuffer(e)?this._handle?(s?r=this._finishFlushFlag:(r=this._flushFlag,e.length>=o.length&&(this._flushFlag=this._opts.flush||a.Z_NO_FLUSH)),void this._processChunk(e,r,n)):n(new Error("zlib binding closed")):n(new Error("invalid input"))},R.prototype._processChunk=function(e,t,n){var r=e&&e.length,o=this._chunkSize-this._offset,a=0,s=this,f="function"==typeof n;if(!f){var h,p=[],d=0;this.on("error",function(e){h=e}),c(this._handle,"zlib binding closed");do{var g=this._handle.writeSync(t,e,a,r,this._buffer,this._offset,o)}while(!this._hadError&&b(g[0],g[1]));if(this._hadError)throw h;if(d>=u)throw j(this),new RangeError(l);var m=i.concat(p,d);return j(this),m}c(this._handle,"zlib binding closed");var y=this._handle.write(t,e,a,r,this._buffer,this._offset,o);function b(u,l){if(this&&(this.buffer=null,this.callback=null),!s._hadError){var h=o-l;if(c(h>=0,"have should not go down"),h>0){var g=s._buffer.slice(s._offset,s._offset+h);s._offset+=h,f?s.push(g):(p.push(g),d+=g.length)}if((0===l||s._offset>=s._chunkSize)&&(o=s._chunkSize,s._offset=0,s._buffer=i.allocUnsafe(s._chunkSize)),0===l){if(a+=r-u,r=u,!f)return!0;var m=s._handle.write(t,e,a,r,s._buffer,s._offset,s._chunkSize);return m.callback=b,void(m.buffer=e)}if(!f)return!1;n()}}y.buffer=e,y.callback=b},s.inherits(w,R),s.inherits(_,R),s.inherits(E,R),s.inherits(k,R),s.inherits(x,R),s.inherits(S,R),s.inherits(O,R)},8571:(e,t,n)=>{var r=n(519);Object.keys(r.code).forEach(function(e){var n=r.code[e];t[e]=function(t){var r=new Error(e+", "+n.description+(t?" '"+t+"'":""));return r.errno=n.errno,r.code=e,r.path=t,r}})},8636:(e,t,n)=>{"use strict";var r=n(920),i=n(7720),o=n(4765),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,u=Array.prototype.push,l=function(e,t){u.apply(e,c(t)?t:[t])},f=Date.prototype.toISOString,h=o.default,p={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:i.encode,encodeValuesOnly:!1,filter:void 0,format:h,formatter:o.formatters[h],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},d={},g=function e(t,n,o,a,s,u,f,h,g,m,y,b,v,w,_,E,k,x){for(var S,O=t,A=x,R=0,j=!1;void 0!==(A=A.get(d))&&!j;){var T=A.get(t);if(R+=1,void 0!==T){if(T===R)throw new RangeError("Cyclic object value");j=!0}void 0===A.get(d)&&(R=0)}if("function"==typeof m?O=m(n,O):O instanceof Date?O=v(O):"comma"===o&&c(O)&&(O=i.maybeMap(O,function(e){return e instanceof Date?v(e):e})),null===O){if(u)return g&&!E?g(n,p.encoder,k,"key",w):n;O=""}if("string"==typeof(S=O)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||i.isBuffer(O))return g?[_(E?n:g(n,p.encoder,k,"key",w))+"="+_(g(O,p.encoder,k,"value",w))]:[_(n)+"="+_(String(O))];var I,M=[];if(void 0===O)return M;if("comma"===o&&c(O))E&&g&&(O=i.maybeMap(O,g)),I=[{value:O.length>0?O.join(",")||null:void 0}];else if(c(m))I=m;else{var L=Object.keys(O);I=y?L.sort(y):L}var B=h?String(n).replace(/\./g,"%2E"):String(n),C=a&&c(O)&&1===O.length?B+"[]":B;if(s&&c(O)&&0===O.length)return C+"[]";for(var N=0;N<I.length;++N){var P=I[N],D="object"==typeof P&&P&&void 0!==P.value?P.value:O[P];if(!f||null!==D){var F=b&&h?String(P).replace(/\./g,"%2E"):String(P),U=c(O)?"function"==typeof o?o(C,F):C:C+(b?"."+F:"["+F+"]");x.set(t,R);var z=r();z.set(d,x),l(M,e(D,U,o,a,s,u,f,h,"comma"===o&&E&&c(O)?null:g,m,y,b,v,w,_,E,k,z))}}return M};e.exports=function(e,t){var n,i=e,u=function(e){if(!e)return p;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==e.format){if(!a.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r,i=o.formatters[n],u=p.filter;if(("function"==typeof e.filter||c(e.filter))&&(u=e.filter),r=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":p.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var l=void 0===e.allowDots?!0===e.encodeDotInKeys||p.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:l,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:p.allowEmptyArrays,arrayFormat:r,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:p.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:p.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:u,format:n,formatter:i,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"==typeof u.filter?i=(0,u.filter)("",i):c(u.filter)&&(n=u.filter);var f=[];if("object"!=typeof i||null===i)return"";var h=s[u.arrayFormat],d="comma"===h&&u.commaRoundTrip;n||(n=Object.keys(i)),u.sort&&n.sort(u.sort);for(var m=r(),y=0;y<n.length;++y){var b=n[y],v=i[b];u.skipNulls&&null===v||l(f,g(v,b,h,d,u.allowEmptyArrays,u.strictNullHandling,u.skipNulls,u.encodeDotInKeys,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.format,u.formatter,u.encodeValuesOnly,u.charset,m))}var w=f.join(u.delimiter),_=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),w.length>0?_+w:""}},8648:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},8662:(e,t,n)=>{var r=n(7007).EventEmitter,i=n(537).inherits,o=n(2980),a=n(7212),s=n(3685),c=n(3152);function u(e,t,n){if("string"==typeof n&&(console.error("db.sublevel(name, seperator<string>) is depreciated"),console.error("use db.sublevel(name, {sep: separator})) if you must"),n={sep:n}),!(this instanceof u))return new u(e,t,n);if(!e)throw new Error("must provide db");if(!t)throw new Error("must provide prefix");(n=n||{}).sep=n.sep||"ÿ",this._parent=e,this._options=n,this.options=n,this._prefix=t,this._root=f(this),e.sublevels[t]=this,this.sublevels={},this.methods={};var r=this;this.hooks={pre:function(){return r.pre.apply(r,arguments)},post:function(){return r.post.apply(r,arguments)}}}i(u,r);var l=u.prototype;function f(e){return e._parent?f(e._parent):e}l._key=function(e){var t=this._options.sep;return t+this._prefix+t+e},l._getOptsAndCb=function(e,t){return"function"==typeof e&&(t=e,e={}),{opts:s(e,this._options),cb:t}},l.sublevel=function(e,t){return this.sublevels[e]?this.sublevels[e]:new u(this,e,t||this._options)},l.put=function(e,t,n,r){var i=this._getOptsAndCb(n,r);this._root.put(this.prefix(e),t,i.opts,i.cb)},l.get=function(e,t,n){var r=this._getOptsAndCb(t,n);this._root.get(this.prefix(e),r.opts,r.cb)},l.del=function(e,t,n){var r=this._getOptsAndCb(t,n);this._root.del(this.prefix(e),r.opts,r.cb)},l.batch=function(e,t,n){if(!Array.isArray(e))return new c(this);var r=this,i=this._getOptsAndCb(t,n);e.forEach(function(e){"string"==typeof e.prefix?e.key=e.prefix+e.key:e.key=(e.prefix||r).prefix(e.key),e.prefix&&(e.prefix=null)}),this._root.batch(e,i.opts,i.cb)},l._getKeyEncoding=function(){return this.options.keyEncoding?this.options.keyEncoding:this._parent&&this._parent._getKeyEncoding?this._parent._getKeyEncoding():void 0},l._getValueEncoding=function(){return this.options.valueEncoding?this.options.valueEncoding:this._parent&&this._parent._getValueEncoding?this._parent._getValueEncoding():void 0},l.prefix=function(e){var t=this._options.sep;return this._parent.prefix()+t+this._prefix+t+(e||"")},l.keyStream=l.createKeyStream=function(e){return(e=e||{}).keys=!0,e.values=!1,this.createReadStream(e)},l.valueStream=l.createValueStream=function(e){return(e=e||{}).keys=!1,e.values=!0,e.keys=!1,this.createReadStream(e)},l.readStream=l.createReadStream=function(e){e=e||{};var t=f(this),n=this.prefix(),r=o.prefix(e,n);!function(e,t){["valueEncoding","encoding","keyEncoding","reverse","values","keys","limit","fillCache"].forEach(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})}(r,s(e,this._options));var i=t.createReadStream(r);if(!1===r.values){var a;if(a=i.read)i.read=function(e){var t=a.call(this,e);return t&&(t=t.substring(n.length)),t};else{var c=i.emit;i.emit=function(e,t){"data"===e?c.call(this,"data",t.substring(n.length)):c.call(this,e,t)}}return i}return!1===r.keys||((a=i.read)?i.read=function(e){var t=a.call(this,e);return t&&(t.key=t.key.substring(n.length)),t}:i.on("data",function(e){e.key=e.key.substring(n.length)})),i},l.writeStream=l.createWriteStream=function(){var e=f(this),t=this.prefix(),n=e.createWriteStream.apply(e,arguments),r=n.write,i=this._options.encoding,o=this._options.valueEncoding,a=this._options.keyEncoding,s=!i&&!o&&!a;return n.write=s?function(e){return e.key=t+e.key,r.call(n,e)}:function(e){return e.key=t+e.key,i&&void 0===e.encoding&&(e.encoding=i),o&&void 0===e.valueEncoding&&(e.valueEncoding=o),a&&void 0===e.keyEncoding&&(e.keyEncoding=a),r.call(n,e)},n},l.approximateSize=function(){var e=f(db);return e.approximateSize.apply(e,arguments)},l.pre=function(e,t){t||(t=e,e=null),e=o.prefix(e,this.prefix(),this._options.sep);var n=f(this._parent),r=this.prefix();return n.hooks.pre(a(e),function(e,n,i){t({key:e.key.substring(r.length),value:e.value,type:e.type},function(e,t){n(e,e.prefix?t:t||r)},i)})},l.post=function(e,t){t||(t=e,e=null);var n=f(this._parent),r=this.prefix();return e=o.prefix(e,r,this._options.sep),n.hooks.post(a(e),function(e){t({key:e.key.substring(r.length),value:e.value,type:e.type})})},e.exports=u},8688:(e,t,n)=>{e.exports=n(8166)},8835:(e,t,n)=>{"use strict";var r=n(9655);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var o=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(c),l=["%","/","?",";","#"].concat(u),f=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,d={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=n(5373);i.prototype.parse=function(e,t,n){if("string"!=typeof e)throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),a=-1!==i&&i<e.indexOf("#")?"?":"#",c=e.split(a);c[0]=c[0].replace(/\\/g,"/");var b=e=c.join(a);if(b=b.trim(),!n&&1===e.split("#").length){var v=s.exec(b);if(v)return this.path=b,this.href=b,this.pathname=v[1],v[2]?(this.search=v[2],this.query=t?y.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var w=o.exec(b);if(w){var _=(w=w[0]).toLowerCase();this.protocol=_,b=b.substr(w.length)}if(n||w||b.match(/^\/\/[^@/]+@[^@/]+/)){var E="//"===b.substr(0,2);!E||w&&g[w]||(b=b.substr(2),this.slashes=!0)}if(!g[w]&&(E||w&&!m[w])){for(var k,x,S=-1,O=0;O<f.length;O++)-1!==(A=b.indexOf(f[O]))&&(-1===S||A<S)&&(S=A);for(-1!==(x=-1===S?b.lastIndexOf("@"):b.lastIndexOf("@",S))&&(k=b.slice(0,x),b=b.slice(x+1),this.auth=decodeURIComponent(k)),S=-1,O=0;O<l.length;O++){var A;-1!==(A=b.indexOf(l[O]))&&(-1===S||A<S)&&(S=A)}-1===S&&(S=b.length),this.host=b.slice(0,S),b=b.slice(S),this.parseHost(),this.hostname=this.hostname||"";var R="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!R)for(var j=this.hostname.split(/\./),T=(O=0,j.length);O<T;O++){var I=j[O];if(I&&!I.match(h)){for(var M="",L=0,B=I.length;L<B;L++)I.charCodeAt(L)>127?M+="x":M+=I[L];if(!M.match(h)){var C=j.slice(0,O),N=j.slice(O+1),P=I.match(p);P&&(C.push(P[1]),N.unshift(P[2])),N.length&&(b="/"+N.join(".")+b),this.hostname=C.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),R||(this.hostname=r.toASCII(this.hostname));var D=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+D,this.href+=this.host,R&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!d[_])for(O=0,T=u.length;O<T;O++){var U=u[O];if(-1!==b.indexOf(U)){var z=encodeURIComponent(U);z===U&&(z=escape(U)),b=b.split(U).join(z)}}var W=b.indexOf("#");-1!==W&&(this.hash=b.substr(W),b=b.slice(0,W));var q=b.indexOf("?");if(-1!==q?(this.search=b.substr(q),this.query=b.substr(q+1),t&&(this.query=y.parse(this.query)),b=b.slice(0,q)):t&&(this.search="",this.query={}),b&&(this.pathname=b),m[_]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){D=this.pathname||"";var $=this.search||"";this.path=D+$}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&"object"==typeof this.query&&Object.keys(this.query).length&&(o=y.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var a=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||m[t])&&!1!==i?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),r&&"#"!==r.charAt(0)&&(r="#"+r),a&&"?"!==a.charAt(0)&&(a="?"+a),t+i+(n=n.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(a=a.replace("#","%23"))+r},i.prototype.resolve=function(e){return this.resolveObject(function(e,t,n){if(e&&"object"==typeof e&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if("string"==typeof e){var t=new i;t.parse(e,!1,!0),e=t}for(var n=new i,r=Object.keys(this),o=0;o<r.length;o++){var a=r[o];n[a]=this[a]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),c=0;c<s.length;c++){var u=s[c];"protocol"!==u&&(n[u]=e[u])}return m[n.protocol]&&n.hostname&&!n.pathname&&(n.pathname="/",n.path=n.pathname),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!m[e.protocol]){for(var l=Object.keys(e),f=0;f<l.length;f++){var h=l[f];n[h]=e[h]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||g[e.protocol])n.pathname=e.pathname;else{for(var p=(e.pathname||"").split("/");p.length&&!(e.host=p.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),n.pathname=p.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var d=n.pathname||"",y=n.search||"";n.path=d+y}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var b=n.pathname&&"/"===n.pathname.charAt(0),v=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=v||b||n.host&&e.pathname,_=w,E=n.pathname&&n.pathname.split("/")||[],k=(p=e.pathname&&e.pathname.split("/")||[],n.protocol&&!m[n.protocol]);if(k&&(n.hostname="",n.port=null,n.host&&(""===E[0]?E[0]=n.host:E.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),w=w&&(""===p[0]||""===E[0])),v)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,E=p;else if(p.length)E||(E=[]),E.pop(),E=E.concat(p),n.search=e.search,n.query=e.query;else if(null!=e.search)return k&&(n.host=E.shift(),n.hostname=n.host,(R=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=R.shift(),n.hostname=R.shift(),n.host=n.hostname)),n.search=e.search,n.query=e.query,null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!E.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var x=E.slice(-1)[0],S=(n.host||e.host||E.length>1)&&("."===x||".."===x)||""===x,O=0,A=E.length;A>=0;A--)"."===(x=E[A])?E.splice(A,1):".."===x?(E.splice(A,1),O++):O&&(E.splice(A,1),O--);if(!w&&!_)for(;O--;O)E.unshift("..");!w||""===E[0]||E[0]&&"/"===E[0].charAt(0)||E.unshift(""),S&&"/"!==E.join("/").substr(-1)&&E.push("");var R,j=""===E[0]||E[0]&&"/"===E[0].charAt(0);return k&&(n.hostname=j?"":E.length?E.shift():"",n.host=n.hostname,(R=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=R.shift(),n.hostname=R.shift(),n.host=n.hostname)),(w=w||n.host&&E.length)&&!j&&E.unshift(""),E.length>0?n.pathname=E.join("/"):(n.pathname=null,n.path=null),null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=a.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},t.m9=e=>new URL("",e).pathname},8859:(e,t,n)=>{var r="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"==typeof i.get?i.get:null,a=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=s&&c&&"function"==typeof c.get?c.get:null,l=s&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,h="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,g=Object.prototype.toString,m=Function.prototype.toString,y=String.prototype.match,b=String.prototype.slice,v=String.prototype.replace,w=String.prototype.toUpperCase,_=String.prototype.toLowerCase,E=RegExp.prototype.test,k=Array.prototype.concat,x=Array.prototype.join,S=Array.prototype.slice,O=Math.floor,A="function"==typeof BigInt?BigInt.prototype.valueOf:null,R=Object.getOwnPropertySymbols,j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,T="function"==typeof Symbol&&"object"==typeof Symbol.iterator,I="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,M=Object.prototype.propertyIsEnumerable,L=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function B(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||E.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-O(-e):O(e);if(r!==e){var i=String(r),o=b.call(t,i.length+1);return v.call(i,n,"$&_")+"."+v.call(v.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,n,"$&_")}var C=n(2634),N=C.custom,P=Z(N)?N:null,D={__proto__:null,double:'"',single:"'"},F={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function U(e,t,n){var r=n.quoteStyle||t,i=D[r];return i+e+i}function z(e){return v.call(String(e),/"/g,""")}function W(e){return!I||!("object"==typeof e&&(I in e||void 0!==e[I]))}function q(e){return"[object Array]"===G(e)&&W(e)}function $(e){return"[object RegExp]"===G(e)&&W(e)}function Z(e){if(T)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!j)return!1;try{return j.call(e),!0}catch(e){}return!1}e.exports=function e(t,r,i,s){var c=r||{};if(V(c,"quoteStyle")&&!V(D,c.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(V(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var g=!V(c,"customInspect")||c.customInspect;if("boolean"!=typeof g&&"symbol"!==g)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(V(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(V(c,"numericSeparator")&&"boolean"!=typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=c.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return Y(t,c);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var E=String(t);return w?B(t,E):E}if("bigint"==typeof t){var O=String(t)+"n";return w?B(t,O):O}var R=void 0===c.depth?5:c.depth;if(void 0===i&&(i=0),i>=R&&R>0&&"object"==typeof t)return q(t)?"[Array]":"[Object]";var N,F=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=x.call(Array(e.indent+1)," ")}return{base:n,prev:x.call(Array(t+1),n)}}(c,i);if(void 0===s)s=[];else if(K(s,t)>=0)return"[Circular]";function H(t,n,r){if(n&&(s=S.call(s)).push(n),r){var o={depth:c.depth};return V(c,"quoteStyle")&&(o.quoteStyle=c.quoteStyle),e(t,o,i+1,s)}return e(t,c,i+1,s)}if("function"==typeof t&&!$(t)){var J=function(e){if(e.name)return e.name;var t=y.call(m.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),re=ne(t,H);return"[Function"+(J?": "+J:" (anonymous)")+"]"+(re.length>0?" { "+x.call(re,", ")+" }":"")}if(Z(t)){var ie=T?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):j.call(t);return"object"!=typeof t||T?ie:X(ie)}if((N=t)&&"object"==typeof N&&("undefined"!=typeof HTMLElement&&N instanceof HTMLElement||"string"==typeof N.nodeName&&"function"==typeof N.getAttribute)){for(var oe="<"+_.call(String(t.nodeName)),ae=t.attributes||[],se=0;se<ae.length;se++)oe+=" "+ae[se].name+"="+U(z(ae[se].value),"double",c);return oe+=">",t.childNodes&&t.childNodes.length&&(oe+="..."),oe+"</"+_.call(String(t.nodeName))+">"}if(q(t)){if(0===t.length)return"[]";var ce=ne(t,H);return F&&!function(e){for(var t=0;t<e.length;t++)if(K(e[t],"\n")>=0)return!1;return!0}(ce)?"["+te(ce,F)+"]":"[ "+x.call(ce,", ")+" ]"}if(function(e){return"[object Error]"===G(e)&&W(e)}(t)){var ue=ne(t,H);return"cause"in Error.prototype||!("cause"in t)||M.call(t,"cause")?0===ue.length?"["+String(t)+"]":"{ ["+String(t)+"] "+x.call(ue,", ")+" }":"{ ["+String(t)+"] "+x.call(k.call("[cause]: "+H(t.cause),ue),", ")+" }"}if("object"==typeof t&&g){if(P&&"function"==typeof t[P]&&C)return C(t,{depth:R-i});if("symbol"!==g&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var le=[];return a&&a.call(t,function(e,n){le.push(H(n,t,!0)+" => "+H(e,t))}),ee("Map",o.call(t),le,F)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{o.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var fe=[];return l&&l.call(t,function(e){fe.push(H(e,t))}),ee("Set",u.call(t),fe,F)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{h.call(e,h)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Q("WeakMap");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{h.call(e,h);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Q("WeakSet");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{return p.call(e),!0}catch(e){}return!1}(t))return Q("WeakRef");if(function(e){return"[object Number]"===G(e)&&W(e)}(t))return X(H(Number(t)));if(function(e){if(!e||"object"!=typeof e||!A)return!1;try{return A.call(e),!0}catch(e){}return!1}(t))return X(H(A.call(t)));if(function(e){return"[object Boolean]"===G(e)&&W(e)}(t))return X(d.call(t));if(function(e){return"[object String]"===G(e)&&W(e)}(t))return X(H(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==n.g&&t===n.g)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===G(e)&&W(e)}(t)&&!$(t)){var he=ne(t,H),pe=L?L(t)===Object.prototype:t instanceof Object||t.constructor===Object,de=t instanceof Object?"":"null prototype",ge=!pe&&I&&Object(t)===t&&I in t?b.call(G(t),8,-1):de?"Object":"",me=(pe||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(ge||de?"["+x.call(k.call([],ge||[],de||[]),": ")+"] ":"");return 0===he.length?me+"{}":F?me+"{"+te(he,F)+"}":me+"{ "+x.call(he,", ")+" }"}return String(t)};var H=Object.prototype.hasOwnProperty||function(e){return e in this};function V(e,t){return H.call(e,t)}function G(e){return g.call(e)}function K(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function Y(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return Y(b.call(e,0,t.maxStringLength),t)+r}var i=F[t.quoteStyle||"single"];return i.lastIndex=0,U(v.call(v.call(e,i,"\\$1"),/[\x00-\x1f]/g,J),"single",t)}function J(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function X(e){return"Object("+e+")"}function Q(e){return e+" { ? }"}function ee(e,t,n,r){return e+" ("+t+") {"+(r?te(n,r):x.call(n,", "))+"}"}function te(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+x.call(e,","+n)+"\n"+t.prev}function ne(e,t){var n=q(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=V(e,i)?t(e[i],e):""}var o,a="function"==typeof R?R(e):[];if(T){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var c in e)V(e,c)&&(n&&String(Number(c))===c&&c<e.length||T&&o["$"+c]instanceof Symbol||(E.call(/[^\w$]/,c)?r.push(t(c,e)+": "+t(e[c],e)):r.push(c+": "+t(e[c],e))));if("function"==typeof R)for(var u=0;u<a.length;u++)M.call(e,a[u])&&r.push("["+t(a[u])+"]: "+t(e[a[u]],e));return r}},8875:(e,t,n)=>{"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=n(1093),s=Object.prototype.propertyIsEnumerable,c=!s.call({toString:null},"toString"),u=s.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t=e.constructor;return t&&t.prototype===e},h={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!h["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{f(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===o.call(e),r=a(e),s=t&&"[object String]"===o.call(e),h=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var d=u&&n;if(s&&e.length>0&&!i.call(e,0))for(var g=0;g<e.length;++g)h.push(String(g));if(r&&e.length>0)for(var m=0;m<e.length;++m)h.push(String(m));else for(var y in e)d&&"prototype"===y||!i.call(e,y)||h.push(String(y));if(c)for(var b=function(e){if("undefined"==typeof window||!p)return f(e);try{return f(e)}catch(e){return!1}}(e),v=0;v<l.length;++v)b&&"constructor"===l[v]||!i.call(e,l[v])||h.push(l[v]);return h}}e.exports=r},8968:e=>{"use strict";e.exports=Math.floor},9032:(e,t,n)=>{"use strict";var r=n(7244),i=n(8184),o=n(5767),a=n(5680);function s(e){return e.call.bind(e)}var c="undefined"!=typeof BigInt,u="undefined"!=typeof Symbol,l=s(Object.prototype.toString),f=s(Number.prototype.valueOf),h=s(String.prototype.valueOf),p=s(Boolean.prototype.valueOf);if(c)var d=s(BigInt.prototype.valueOf);if(u)var g=s(Symbol.prototype.valueOf);function m(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function y(e){return"[object Map]"===l(e)}function b(e){return"[object Set]"===l(e)}function v(e){return"[object WeakMap]"===l(e)}function w(e){return"[object WeakSet]"===l(e)}function _(e){return"[object ArrayBuffer]"===l(e)}function E(e){return"undefined"!=typeof ArrayBuffer&&(_.working?_(e):e instanceof ArrayBuffer)}function k(e){return"[object DataView]"===l(e)}function x(e){return"undefined"!=typeof DataView&&(k.working?k(e):e instanceof DataView)}t.isArgumentsObject=r,t.isGeneratorFunction=i,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||x(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},y.working="undefined"!=typeof Map&&y(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(y.working?y(e):e instanceof Map)},b.working="undefined"!=typeof Set&&b(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(b.working?b(e):e instanceof Set)},v.working="undefined"!=typeof WeakMap&&v(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(v.working?v(e):e instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),t.isWeakSet=function(e){return w(e)},_.working="undefined"!=typeof ArrayBuffer&&_(new ArrayBuffer),t.isArrayBuffer=E,k.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&k(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=x;var S="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function O(e){return"[object SharedArrayBuffer]"===l(e)}function A(e){return void 0!==S&&(void 0===O.working&&(O.working=O(new S)),O.working?O(e):e instanceof S)}function R(e){return m(e,f)}function j(e){return m(e,h)}function T(e){return m(e,p)}function I(e){return c&&m(e,d)}function M(e){return u&&m(e,g)}t.isSharedArrayBuffer=A,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===l(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===l(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===l(e)},t.isGeneratorObject=function(e){return"[object Generator]"===l(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===l(e)},t.isNumberObject=R,t.isStringObject=j,t.isBooleanObject=T,t.isBigIntObject=I,t.isSymbolObject=M,t.isBoxedPrimitive=function(e){return R(e)||j(e)||T(e)||I(e)||M(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(E(e)||A(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})},9043:(e,t,n)=>{var r=n(5606),i=n(7007).EventEmitter,o=n(537).inherits,a=n(3493),s=n(3364),c=n(6841),u=n(7805).WriteError,l=n(7805).ReadError,f=n(7805).NotFoundError,h=n(7805).OpenError,p=n(7805).EncodingError,d=n(7805).InitializationError,g=n(8531),m=n(1068),y=n(2350),b=n(3324),v=y.getOptions,w=y.defaultOptions,_=y.getLevelDOWN,E=y.dispatchError;function k(e,t){return"function"==typeof e?e:t}function x(e,t,n){if(!(this instanceof x))return new x(e,t,n);var o;if(i.call(this),this.setMaxListeners(1/0),"function"==typeof e?((t="object"==typeof t?t:{}).db=e,e=null):"object"==typeof e&&"function"==typeof e.db&&(t=e,e=null),"function"==typeof t&&(n=t,t={}),(!t||"function"!=typeof t.db)&&"string"!=typeof e){if(o=new d("Must provide a location for the database"),n)return r.nextTick(function(){n(o)});throw o}t=v(this,t),this.options=a(w,t),this._status="new",s(this,"location",e,"e"),this.open(n)}function S(e){return function(t,n){_()[e](t,n||function(){})}}o(x,i),x.prototype.open=function(e){var t,n,i=this;return this.isOpen()?(e&&r.nextTick(function(){e(null,i)}),this):this._isOpening()?e&&this.once("open",function(){e(null,i)}):(this.emit("opening"),this._status="opening",this.db=new c(this.location),t=this.options.db||_(),void(n=t(this.location)).open(this.options,function(t){if(t)return E(i,new h(t),e);i.db.setDb(n),i.db=n,i._status="open",e&&e(null,i),i.emit("open"),i.emit("ready")}))},x.prototype.close=function(e){var t=this;if(this.isOpen())this._status="closing",this.db.close(function(){t._status="closed",t.emit("closed"),e&&e.apply(null,arguments)}),this.emit("closing"),this.db=null;else{if("closed"==this._status&&e)return r.nextTick(e);"closing"==this._status&&e?this.once("closed",e):this._isOpening()&&this.once("open",function(){t.close(e)})}},x.prototype.isOpen=function(){return"open"==this._status},x.prototype._isOpening=function(){return"opening"==this._status},x.prototype.isClosed=function(){return/^clos/.test(this._status)},x.prototype.get=function(e,t,n){var r,i=this;return"function"!=typeof(n=k(t,n))?E(this,new l("get() requires key and callback arguments")):this._isOpening()||this.isOpen()?(t=y.getOptions(this,t),r=y.encodeKey(e,t),t.asBuffer=y.isValueAsBuffer(t),void this.db.get(r,t,function(r,o){if(r)return r=/notfound/i.test(r)?new f("Key not found in database ["+e+"]",r):new l(r),E(i,r,n);if(n){try{o=y.decodeValue(o,t)}catch(e){return n(new p(e))}n(null,o)}})):E(this,new l("Database is not open"),n)},x.prototype.put=function(e,t,n,r){var i,o,a=this;return r=k(n,r),null==e||null==t?E(this,new u("put() requires key and value arguments"),r):this._isOpening()||this.isOpen()?(n=v(this,n),i=y.encodeKey(e,n),o=y.encodeValue(t,n),void this.db.put(i,o,n,function(n){if(n)return E(a,new u(n),r);a.emit("put",e,t),r&&r()})):E(this,new u("Database is not open"),r)},x.prototype.del=function(e,t,n){var r,i=this;return n=k(t,n),null==e?E(this,new u("del() requires a key argument"),n):this._isOpening()||this.isOpen()?(t=v(this,t),r=y.encodeKey(e,t),void this.db.del(r,t,function(t){if(t)return E(i,new u(t),n);i.emit("del",e),n&&n()})):E(this,new u("Database is not open"),n)},x.prototype.batch=function(e,t,n){var r,i,o,a=this;return arguments.length?(n=k(t,n),Array.isArray(e)?this._isOpening()||this.isOpen()?(t=v(this,t),r=t.keyEncoding,i=t.valueEncoding,o=e.map(function(e){if(void 0===e.type||void 0===e.key)return{};var n,o=e.keyEncoding||r,a=e.valueEncoding||e.encoding||i;return"utf8"!=o&&"binary"!=o||"utf8"!=a&&"binary"!=a?(n={type:e.type,key:y.encodeKey(e.key,t,e)},void 0!==e.value&&(n.value=y.encodeValue(e.value,t,e)),n):e}),void this.db.batch(o,t,function(t){if(t)return E(a,new u(t),n);a.emit("batch",e),n&&n()})):E(this,new u("Database is not open"),n):E(this,new u("batch() requires an array argument"),n)):new b(this)},x.prototype.approximateSize=function(e,t,n){var r,i,o=this;return null==e||null==t||"function"!=typeof n?E(this,new l("approximateSize() requires start, end and callback arguments"),n):(r=y.encodeKey(e,this.options),i=y.encodeKey(t,this.options),this._isOpening()||this.isOpen()?void this.db.approximateSize(r,i,function(e,t){if(e)return E(o,new h(e),n);n&&n(null,t)}):E(this,new u("Database is not open"),n))},x.prototype.readStream=x.prototype.createReadStream=function(e){var t=this;return e=a(this.options,e),new g(e,this,function(e){return t.db.iterator(e)})},x.prototype.keyStream=x.prototype.createKeyStream=function(e){return this.createReadStream(a(e,{keys:!0,values:!1}))},x.prototype.valueStream=x.prototype.createValueStream=function(e){return this.createReadStream(a(e,{keys:!1,values:!0}))},x.prototype.writeStream=x.prototype.createWriteStream=function(e){return new m(a(e),this)},x.prototype.toString=function(){return"LevelUP"},e.exports=x,e.exports.copy=y.copy,e.exports.destroy=S("destroy"),e.exports.repair=S("repair")},9092:(e,t,n)=>{"use strict";var r=n(1333);e.exports=function(){return r()&&!!Symbol.toStringTag}},9133:(e,t,n)=>{"use strict";var r=n(8403);e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),n={},r=0;r<t.length;++r)n[t[r]]=t[r];var i=Object.assign({},n),o="";for(var a in i)o+=a;return e!==o}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return"y"===e[1]}return!1}()?r:Object.assign:r}},9209:(e,t,n)=>{"use strict";var r=n(6578),i="undefined"==typeof globalThis?n.g:globalThis;e.exports=function(){for(var e=[],t=0;t<r.length;t++)"function"==typeof i[r[t]]&&(e[e.length]=r[t]);return e}},9211:e=>{"use strict";var t=function(e){return e!=e};e.exports=function(e,n){return 0===e&&0===n?1/e==1/n:e===n||!(!t(e)||!t(n))}},9234:(e,t,n)=>{var r=n(8287).Buffer,i=r.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},o=t.I=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!i(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=s;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=c;break;default:return void(this.write=a)}this.charBuffer=new r(6),this.charReceived=0,this.charLength=0};function a(e){return e.toString(this.encoding)}function s(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function c(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}o.prototype.write=function(e){for(var t="";this.charLength;){var n=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived<this.charLength)return"";if(e=e.slice(n,e.length),!((r=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&r<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var r,i=e.length;if(this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),i=(t+=e.toString(this.encoding,0,i)).length-1,(r=t.charCodeAt(i))>=55296&&r<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},o.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},o.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,r=this.charBuffer,i=this.encoding;t+=r.slice(0,n).toString(i)}return t}},9278:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},9290:e=>{"use strict";e.exports=RangeError},9353:e=>{"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n};e.exports=function(e){var i=this;if("function"!=typeof i||"[object Function]"!==t.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var o,a=function(e){for(var t=[],n=1,r=0;n<e.length;n+=1,r+=1)t[r]=e[n];return t}(arguments),s=n(0,i.length-a.length),c=[],u=0;u<s;u++)c[u]="$"+u;if(o=Function("binder","return function ("+function(e){for(var t="",n=0;n<e.length;n+=1)t+=e[n],n+1<e.length&&(t+=",");return t}(c)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof o){var t=i.apply(this,r(a,arguments));return Object(t)===t?t:this}return i.apply(e,r(a,arguments))}),i.prototype){var l=function(){};l.prototype=i.prototype,o.prototype=new l,l.prototype=null}return o}},9383:e=>{"use strict";e.exports=Error},9394:(e,t,n)=>{"use strict";var r=n(9211);e.exports=function(){return"function"==typeof Object.is?Object.is:r}},9435:e=>{"use strict";e.exports=JSON.parse('{"rh":{"j9":"~0.10.0"}}')},9538:e=>{"use strict";e.exports=ReferenceError},9597:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}var a,s,c={};function u(e,t,n){n||(n=Error);var a=function(n){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(l,n);var a,s,c,u=(s=l,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=o(s);if(c){var n=o(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function l(n,r,i){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),o=u.call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,r,i)),o.code=e,o}return a=l,Object.defineProperty(a,"prototype",{writable:!1}),a}(n);c[e]=a}function l(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(e){return String(e)}),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}u("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),u("ERR_INVALID_ARG_TYPE",function(e,t,i){var o,s,c,u,f;if(void 0===a&&(a=n(4148)),a("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(s="not ",t.substr(0,4)===s)?(o="must not be",t=t.replace(/^not /,"")):o="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-9,n)===t}(e," argument"))c="The ".concat(e," ").concat(o," ").concat(l(t,"type"));else{var h=("number"!=typeof f&&(f=0),f+1>(u=e).length||-1===u.indexOf(".",f)?"argument":"property");c='The "'.concat(e,'" ').concat(h," ").concat(o," ").concat(l(t,"type"))}return c+". Received type ".concat(r(i))},TypeError),u("ERR_INVALID_ARG_VALUE",function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===s&&(s=n(537));var i=s.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(i)},TypeError,RangeError),u("ERR_INVALID_RETURN_VALUE",function(e,t,n){var i;return i=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(r(n)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")},TypeError),u("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];void 0===a&&(a=n(4148)),a(t.length>0,"At least one arg needs to be specified");var i="The ",o=t.length;switch(t=t.map(function(e){return'"'.concat(e,'"')}),o){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,o-1).join(", "),i+=", and ".concat(t[o-1]," arguments")}return"".concat(i," must be specified")},TypeError),e.exports.codes=c},9600:e=>{"use strict";var t,n,r=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},i(function(){throw 42},null,t)}catch(e){e!==n&&(i=null)}else i=null;var o=/^\s*class\b/,a=function(e){try{var t=r.call(e);return o.test(t)}catch(e){return!1}},s=function(e){try{return!a(e)&&(r.call(e),!0)}catch(e){return!1}},c=Object.prototype.toString,u="function"==typeof Symbol&&!!Symbol.toStringTag,l=!(0 in[,]),f=function(){return!1};if("object"==typeof document){var h=document.all;c.call(h)===c.call(document.all)&&(f=function(e){if((l||!e)&&(void 0===e||"object"==typeof e))try{var t=c.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=i?function(e){if(f(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{i(e,null,t)}catch(e){if(e!==n)return!1}return!a(e)&&s(e)}:function(e){if(f(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(u)return s(e);if(a(e))return!1;var t=c.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)}},9612:e=>{"use strict";e.exports=Object},9655:function(e,t,n){var r;e=n.nmd(e),function(){t&&t.nodeType,e&&e.nodeType;var i="object"==typeof n.g&&n.g;i.global!==i&&i.window!==i&&i.self;var o,a=2147483647,s=36,c=/^xn--/,u=/[^\x20-\x7E]/,l=/[\x2E\u3002\uFF0E\uFF61]/g,f={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},h=Math.floor,p=String.fromCharCode;function d(e){throw new RangeError(f[e])}function g(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function m(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+g((e=e.replace(l,".")).split("."),t).join(".")}function y(e){for(var t,n,r=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function b(e){return g(e,function(e){var t="";return e>65535&&(t+=p((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+p(e)}).join("")}function v(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:s}function w(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function _(e,t,n){var r=0;for(e=n?h(e/700):e>>1,e+=h(e/t);e>455;r+=s)e=h(e/35);return h(r+36*e/(e+38))}function E(e){var t,n,r,i,o,c,u,l,f,p,g=[],m=e.length,y=0,w=128,E=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&d("not-basic"),g.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<m;){for(o=y,c=1,u=s;i>=m&&d("invalid-input"),((l=v(e.charCodeAt(i++)))>=s||l>h((a-y)/c))&&d("overflow"),y+=l*c,!(l<(f=u<=E?1:u>=E+26?26:u-E));u+=s)c>h(a/(p=s-f))&&d("overflow"),c*=p;E=_(y-o,t=g.length+1,0==o),h(y/t)>a-w&&d("overflow"),w+=h(y/t),y%=t,g.splice(y++,0,w)}return b(g)}function k(e){var t,n,r,i,o,c,u,l,f,g,m,b,v,E,k,x=[];for(b=(e=y(e)).length,t=128,n=0,o=72,c=0;c<b;++c)(m=e[c])<128&&x.push(p(m));for(r=i=x.length,i&&x.push("-");r<b;){for(u=a,c=0;c<b;++c)(m=e[c])>=t&&m<u&&(u=m);for(u-t>h((a-n)/(v=r+1))&&d("overflow"),n+=(u-t)*v,t=u,c=0;c<b;++c)if((m=e[c])<t&&++n>a&&d("overflow"),m==t){for(l=n,f=s;!(l<(g=f<=o?1:f>=o+26?26:f-o));f+=s)k=l-g,E=s-g,x.push(p(w(g+k%E,0))),l=h(k/E);x.push(p(w(l,0))),o=_(n,v,r==i),n=0,++r}++n,++t}return x.join("")}o={version:"1.4.1",ucs2:{decode:y,encode:b},decode:E,encode:k,toASCII:function(e){return m(e,function(e){return u.test(e)?"xn--"+k(e):e})},toUnicode:function(e){return m(e,function(e){return c.test(e)?E(e.slice(4).toLowerCase()):e})}},void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)}()},9656:(e,t)=>{var n,r,i,o=void 0,a=(n=Object.prototype.toString,r=Object.prototype.hasOwnProperty,{Class:function(e){return n.call(e).replace(/^\[object *|\]$/g,"")},HasProperty:function(e,t){return t in e},HasOwnProperty:function(e,t){return r.call(e,t)},IsCallable:function(e){return"function"==typeof e},ToInt32:function(e){return 0|e},ToUint32:function(e){return e>>>0}}),s=Math.LN2,c=Math.abs,u=Math.floor,l=Math.log,f=Math.min,h=Math.pow,p=Math.round;function d(e){if(g&&i){var t,n=g(e);for(t=0;t<n.length;t+=1)i(e,n[t],{value:e[n[t]],writable:!1,enumerable:!1,configurable:!1})}}i=Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()?Object.defineProperty:function(e,t,n){if(!e===Object(e))throw new TypeError("Object.defineProperty called on non-object");return a.HasProperty(n,"get")&&Object.prototype.__defineGetter__&&Object.prototype.__defineGetter__.call(e,t,n.get),a.HasProperty(n,"set")&&Object.prototype.__defineSetter__&&Object.prototype.__defineSetter__.call(e,t,n.set),a.HasProperty(n,"value")&&(e[t]=n.value),e};var g=Object.getOwnPropertyNames||function(e){if(e!==Object(e))throw new TypeError("Object.getOwnPropertyNames called on non-object");var t,n=[];for(t in e)a.HasOwnProperty(e,t)&&n.push(t);return n};function m(e,t){var n=32-t;return e<<n>>n}function y(e,t){var n=32-t;return e<<n>>>n}function b(e){return[255&e]}function v(e){return m(e[0],8)}function w(e){return[255&e]}function _(e){return y(e[0],8)}function E(e){return[(e=p(Number(e)))<0?0:e>255?255:255&e]}function k(e){return[e>>8&255,255&e]}function x(e){return m(e[0]<<8|e[1],16)}function S(e){return[e>>8&255,255&e]}function O(e){return y(e[0]<<8|e[1],16)}function A(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}function R(e){return m(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function j(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}function T(e){return y(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function I(e,t,n){var r,i,o,a,p,d,g,m=(1<<t-1)-1;function y(e){var t=u(e),n=e-t;return n<.5?t:n>.5||t%2?t+1:t}for(e!=e?(i=(1<<t)-1,o=h(2,n-1),r=0):e===1/0||e===-1/0?(i=(1<<t)-1,o=0,r=e<0?1:0):0===e?(i=0,o=0,r=1/e==-1/0?1:0):(r=e<0,(e=c(e))>=h(2,1-m)?(i=f(u(l(e)/s),1023),(o=y(e/h(2,i)*h(2,n)))/h(2,n)>=2&&(i+=1,o=1),i>m?(i=(1<<t)-1,o=0):(i+=m,o-=h(2,n))):(i=0,o=y(e/h(2,1-m-n)))),p=[],a=n;a;a-=1)p.push(o%2?1:0),o=u(o/2);for(a=t;a;a-=1)p.push(i%2?1:0),i=u(i/2);for(p.push(r?1:0),p.reverse(),d=p.join(""),g=[];d.length;)g.push(parseInt(d.substring(0,8),2)),d=d.substring(8);return g}function M(e,t,n){var r,i,o,a,s,c,u,l,f=[];for(r=e.length;r;r-=1)for(o=e[r-1],i=8;i;i-=1)f.push(o%2?1:0),o>>=1;return f.reverse(),a=f.join(""),s=(1<<t-1)-1,c=parseInt(a.substring(0,1),2)?-1:1,u=parseInt(a.substring(1,1+t),2),l=parseInt(a.substring(1+t),2),u===(1<<t)-1?0!==l?NaN:c*(1/0):u>0?c*h(2,u-s)*(1+l/h(2,n)):0!==l?c*h(2,-(s-1))*(l/h(2,n)):c<0?-0:0}function L(e){return M(e,11,52)}function B(e){return I(e,11,52)}function C(e){return M(e,8,23)}function N(e){return I(e,8,23)}!function(){var e=function(e){if((e=a.ToInt32(e))<0)throw new RangeError("ArrayBuffer size is not a small enough positive integer");var t;for(this.byteLength=e,this._bytes=[],this._bytes.length=e,t=0;t<this.byteLength;t+=1)this._bytes[t]=0;d(this)};t.Az=t.Az||e;var n=function(){};function r(t,r,s){var c;return c=function(t,n,r){var o,s,u,l;if(arguments.length&&"number"!=typeof arguments[0])if("object"==typeof arguments[0]&&arguments[0].constructor===c)for(o=arguments[0],this.length=o.length,this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new e(this.byteLength),this.byteOffset=0,u=0;u<this.length;u+=1)this._setter(u,o._getter(u));else if("object"!=typeof arguments[0]||arguments[0]instanceof e||"ArrayBuffer"===a.Class(arguments[0])){if("object"!=typeof arguments[0]||!(arguments[0]instanceof e||"ArrayBuffer"===a.Class(arguments[0])))throw new TypeError("Unexpected argument type(s)");if(this.buffer=t,this.byteOffset=a.ToUint32(n),this.byteOffset>this.buffer.byteLength)throw new RangeError("byteOffset out of range");if(this.byteOffset%this.BYTES_PER_ELEMENT)throw new RangeError("ArrayBuffer length minus the byteOffset is not a multiple of the element size.");if(arguments.length<3){if(this.byteLength=this.buffer.byteLength-this.byteOffset,this.byteLength%this.BYTES_PER_ELEMENT)throw new RangeError("length of buffer minus byteOffset not a multiple of the element size");this.length=this.byteLength/this.BYTES_PER_ELEMENT}else this.length=a.ToUint32(r),this.byteLength=this.length*this.BYTES_PER_ELEMENT;if(this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer")}else for(s=arguments[0],this.length=a.ToUint32(s.length),this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new e(this.byteLength),this.byteOffset=0,u=0;u<this.length;u+=1)l=s[u],this._setter(u,Number(l));else{if(this.length=a.ToInt32(arguments[0]),r<0)throw new RangeError("ArrayBufferView size is not a small enough positive integer");this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new e(this.byteLength),this.byteOffset=0}this.constructor=c,d(this),function(e){if(i){if(e.length>1e5)throw new RangeError("Array too large for polyfill");var t;for(t=0;t<e.length;t+=1)n(t)}function n(t){i(e,t,{get:function(){return e._getter(t)},set:function(n){e._setter(t,n)},enumerable:!0,configurable:!1})}}(this)},c.prototype=new n,c.prototype.BYTES_PER_ELEMENT=t,c.prototype._pack=r,c.prototype._unpack=s,c.BYTES_PER_ELEMENT=t,c.prototype._getter=function(e){if(arguments.length<1)throw new SyntaxError("Not enough arguments");if((e=a.ToUint32(e))>=this.length)return o;var t,n,r=[];for(t=0,n=this.byteOffset+e*this.BYTES_PER_ELEMENT;t<this.BYTES_PER_ELEMENT;t+=1,n+=1)r.push(this.buffer._bytes[n]);return this._unpack(r)},c.prototype.get=c.prototype._getter,c.prototype._setter=function(e,t){if(arguments.length<2)throw new SyntaxError("Not enough arguments");if((e=a.ToUint32(e))>=this.length)return o;var n,r,i=this._pack(t);for(n=0,r=this.byteOffset+e*this.BYTES_PER_ELEMENT;n<this.BYTES_PER_ELEMENT;n+=1,r+=1)this.buffer._bytes[r]=i[n]},c.prototype.set=function(e,t){if(arguments.length<1)throw new SyntaxError("Not enough arguments");var n,r,i,o,s,c,u,l,f,h;if("object"==typeof arguments[0]&&arguments[0].constructor===this.constructor){if(n=arguments[0],(i=a.ToUint32(arguments[1]))+n.length>this.length)throw new RangeError("Offset plus length of array is out of range");if(l=this.byteOffset+i*this.BYTES_PER_ELEMENT,f=n.length*this.BYTES_PER_ELEMENT,n.buffer===this.buffer){for(h=[],s=0,c=n.byteOffset;s<f;s+=1,c+=1)h[s]=n.buffer._bytes[c];for(s=0,u=l;s<f;s+=1,u+=1)this.buffer._bytes[u]=h[s]}else for(s=0,c=n.byteOffset,u=l;s<f;s+=1,c+=1,u+=1)this.buffer._bytes[u]=n.buffer._bytes[c]}else{if("object"!=typeof arguments[0]||void 0===arguments[0].length)throw new TypeError("Unexpected argument type(s)");if(r=arguments[0],o=a.ToUint32(r.length),(i=a.ToUint32(arguments[1]))+o>this.length)throw new RangeError("Offset plus length of array is out of range");for(s=0;s<o;s+=1)c=r[s],this._setter(i+s,Number(c))}},c.prototype.subarray=function(e,t){function n(e,t,n){return e<t?t:e>n?n:e}e=a.ToInt32(e),t=a.ToInt32(t),arguments.length<1&&(e=0),arguments.length<2&&(t=this.length),e<0&&(e=this.length+e),t<0&&(t=this.length+t),e=n(e,0,this.length);var r=(t=n(t,0,this.length))-e;return r<0&&(r=0),new this.constructor(this.buffer,this.byteOffset+e*this.BYTES_PER_ELEMENT,r)},c}var s=r(1,b,v),c=r(1,w,_),u=r(1,E,_),l=r(2,k,x),f=r(2,S,O),h=r(4,A,R),p=r(4,j,T),g=r(4,N,C),m=r(8,B,L);t.fo=t.fo||s,t.SE=t.SE||c,t.ER=t.ER||u,t.ss=t.ss||l,t.hR=t.hR||f,t.GM=t.GM||h,t.bt=t.bt||p,t.l6=t.l6||g,t.aQ=t.aQ||m}(),function(){function e(e,t){return a.IsCallable(e.get)?e.get(t):e[t]}var n,r=(n=new t.hR([4660]),18===e(new t.SE(n.buffer),0)),i=function(e,n,r){if(0===arguments.length)e=new t.Az(0);else if(!(e instanceof t.Az||"ArrayBuffer"===a.Class(e)))throw new TypeError("TypeError");if(this.buffer=e||new t.Az(0),this.byteOffset=a.ToUint32(n),this.byteOffset>this.buffer.byteLength)throw new RangeError("byteOffset out of range");if(this.byteLength=arguments.length<3?this.buffer.byteLength-this.byteOffset:a.ToUint32(r),this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer");d(this)};function o(n){return function(i,o){if((i=a.ToUint32(i))+n.BYTES_PER_ELEMENT>this.byteLength)throw new RangeError("Array index out of range");i+=this.byteOffset;var s,c=new t.SE(this.buffer,i,n.BYTES_PER_ELEMENT),u=[];for(s=0;s<n.BYTES_PER_ELEMENT;s+=1)u.push(e(c,s));return Boolean(o)===Boolean(r)&&u.reverse(),e(new n(new t.SE(u).buffer),0)}}function s(n){return function(i,o,s){if((i=a.ToUint32(i))+n.BYTES_PER_ELEMENT>this.byteLength)throw new RangeError("Array index out of range");var c,u=new n([o]),l=new t.SE(u.buffer),f=[];for(c=0;c<n.BYTES_PER_ELEMENT;c+=1)f.push(e(l,c));Boolean(s)===Boolean(r)&&f.reverse(),new t.SE(this.buffer,i,n.BYTES_PER_ELEMENT).set(f)}}i.prototype.getUint8=o(t.SE),i.prototype.getInt8=o(t.fo),i.prototype.getUint16=o(t.hR),i.prototype.getInt16=o(t.ss),i.prototype.getUint32=o(t.bt),i.prototype.getInt32=o(t.GM),i.prototype.getFloat32=o(t.l6),i.prototype.getFloat64=o(t.aQ),i.prototype.setUint8=s(t.SE),i.prototype.setInt8=s(t.fo),i.prototype.setUint16=s(t.hR),i.prototype.setInt16=s(t.ss),i.prototype.setUint32=s(t.bt),i.prototype.setInt32=s(t.GM),i.prototype.setFloat32=s(t.l6),i.prototype.setFloat64=s(t.aQ),t.U$=t.U$||i}()},9661:e=>{var t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=function(e){return e!=e},o={boolean:1,number:1,string:1,undefined:1},a=e.exports={};a.a=a.type=function(e,t){return typeof e===t},a.defined=function(e){return void 0!==e},a.empty=function(e){var t,i=r.call(e);if("[object Array]"===i||"[object Arguments]"===i)return 0===e.length;if("[object Object]"===i){for(t in e)if(n.call(e,t))return!1;return!0}return"[object String]"===i&&""===e},a.equal=function(e,t){var n,i=r.call(e);if(i!==r.call(t))return!1;if("[object Object]"===i){for(n in e)if(!a.equal(e[n],t[n]))return!1;return!0}if("[object Array]"===i){if((n=e.length)!==t.length)return!1;for(;--n;)if(!a.equal(e[n],t[n]))return!1;return!0}return"[object Function]"===i?e.prototype===t.prototype:"[object Date]"===i?e.getTime()===t.getTime():e===t},a.hosted=function(e,t){var n=typeof t[e];return"object"===n?!!t[e]:!o[n]},a.instance=a.instanceof=function(e,t){return e instanceof t},a.null=function(e){return null===e},a.undefined=function(e){return void 0===e},a.arguments=function(e){var t="[object Arguments]"===r.call(e),n=!a.array(e)&&a.arraylike(e)&&a.object(e)&&a.fn(e.callee);return t||n},a.array=function(e){return"[object Array]"===r.call(e)},a.arguments.empty=function(e){return a.arguments(e)&&0===e.length},a.array.empty=function(e){return a.array(e)&&0===e.length},a.arraylike=function(e){return!!e&&!a.boolean(e)&&n.call(e,"length")&&isFinite(e.length)&&a.number(e.length)&&e.length>=0},a.boolean=function(e){return"[object Boolean]"===r.call(e)},a.false=function(e){return a.boolean(e)&&(!1===e||!1===e.valueOf())},a.true=function(e){return a.boolean(e)&&(!0===e||!0===e.valueOf())},a.date=function(e){return"[object Date]"===r.call(e)},a.element=function(e){return void 0!==e&&"undefined"!=typeof HTMLElement&&e instanceof HTMLElement&&1===e.nodeType},a.error=function(e){return"[object Error]"===r.call(e)},a.fn=a.function=function(e){return"undefined"!=typeof window&&e===window.alert||"[object Function]"===r.call(e)},a.number=function(e){return"[object Number]"===r.call(e)},a.infinite=function(e){return e===1/0||e===-1/0},a.decimal=function(e){return a.number(e)&&!i(e)&&!a.infinite(e)&&e%1!=0},a.divisibleBy=function(e,t){var n=a.infinite(e),r=a.infinite(t),o=a.number(e)&&!i(e)&&a.number(t)&&!i(t)&&0!==t;return n||r||o&&e%t===0},a.int=function(e){return a.number(e)&&!i(e)&&e%1==0},a.maximum=function(e,t){if(i(e))throw new TypeError("NaN is not a valid value");if(!a.arraylike(t))throw new TypeError("second argument must be array-like");for(var n=t.length;--n>=0;)if(e<t[n])return!1;return!0},a.minimum=function(e,t){if(i(e))throw new TypeError("NaN is not a valid value");if(!a.arraylike(t))throw new TypeError("second argument must be array-like");for(var n=t.length;--n>=0;)if(e>t[n])return!1;return!0},a.nan=function(e){return!a.number(e)||e!=e},a.even=function(e){return a.infinite(e)||a.number(e)&&e==e&&e%2==0},a.odd=function(e){return a.infinite(e)||a.number(e)&&e==e&&e%2!=0},a.ge=function(e,t){if(i(e)||i(t))throw new TypeError("NaN is not a valid value");return!a.infinite(e)&&!a.infinite(t)&&e>=t},a.gt=function(e,t){if(i(e)||i(t))throw new TypeError("NaN is not a valid value");return!a.infinite(e)&&!a.infinite(t)&&e>t},a.le=function(e,t){if(i(e)||i(t))throw new TypeError("NaN is not a valid value");return!a.infinite(e)&&!a.infinite(t)&&e<=t},a.lt=function(e,t){if(i(e)||i(t))throw new TypeError("NaN is not a valid value");return!a.infinite(e)&&!a.infinite(t)&&e<t},a.within=function(e,t,n){if(i(e)||i(t)||i(n))throw new TypeError("NaN is not a valid value");if(!a.number(e)||!a.number(t)||!a.number(n))throw new TypeError("all arguments must be numbers");return a.infinite(e)||a.infinite(t)||a.infinite(n)||e>=t&&e<=n},a.object=function(e){return e&&"[object Object]"===r.call(e)},a.hash=function(e){return a.object(e)&&e.constructor===Object&&!e.nodeType&&!e.setInterval},a.regexp=function(e){return"[object RegExp]"===r.call(e)},a.string=function(e){return"[object String]"===r.call(e)}},9675:e=>{"use strict";e.exports=TypeError},9681:e=>{"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},9721:(e,t,n)=>{"use strict";var r=n(6556),i=n(4035),o=r("RegExp.prototype.exec"),a=n(9675);e.exports=function(e){if(!i(e))throw new a("`regex` must be a RegExp");return function(t){return null!==o(e,t)}}},9723:function(e){var t;t=function(){var e="function"==typeof Object.defineProperty?function(e,t,n){return Object.defineProperty(e,t,n),e}:function(e,t,n){return e[t]=n.value,e};return function(t,n,r,i){var o;if(i=function(e,t){var n="object"==typeof t,r=!n&&"string"==typeof t,i=function(e){return n?!!t[e]:!!r&&t.indexOf(e[0])>-1};return{enumerable:i("enumerable"),configurable:i("configurable"),writable:i("writable"),value:e}}(r,i),"object"==typeof n){for(o in n)Object.hasOwnProperty.call(n,o)&&(i.value=n[o],e(t,o,i));return t}return e(t,n,i)}},e.exports?e.exports=t():this.prr=t()},9731:(e,t,n)=>{e.exports=Object.keys||n(7274)},9805:(e,t)=>{"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var i in n)r(n,i)&&(e[i]=n[i])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){var t,n,r,i,o,a;for(r=0,t=0,n=e.length;t<n;t++)r+=e[t].length;for(a=new Uint8Array(r),i=0,t=0,n=e.length;t<n;t++)o=e[t],a.set(o,i),i+=o.length;return a}},o={arraySet:function(e,t,n,r,i){for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){return[].concat.apply([],e)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,i)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,o))},t.setTyped(n)},9816:(e,t,n)=>{e.exports=a;var r=n(5240),i=n(5622);function o(e,t){this.afterTransform=function(e,n){return function(e,t,n){var r=e._transformState;r.transforming=!1;var i=r.writecb;if(!i)return e.emit("error",new Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,null!=n&&e.push(n),i&&i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}(t,e,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function a(e){if(!(this instanceof a))return new a(e);r.call(this,e),this._transformState=new o(e,this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,this.once("finish",function(){"function"==typeof this._flush?this._flush(function(e){s(t,e)}):s(t)})}function s(e,t){if(t)return e.emit("error",t);var n=e._writableState,r=(e._readableState,e._transformState);if(n.length)throw new Error("calling transform done when ws.length != 0");if(r.transforming)throw new Error("calling transform done when still transforming");return e.push(null)}i.inherits=n(6698),i.inherits(a,r),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,n){throw new Error("not implemented")},a.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0}},9838:()=>{},9957:(e,t,n)=>{"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=n(6743);e.exports=o.call(r,i)}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var o=r[e]={id:e,loaded:!1,exports:{}};return n[e].call(o.exports,o,o.exports,i),o.loaded=!0,o.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var o=Object.create(null);i.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;("object"==typeof s||"function"==typeof s)&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach(e=>a[e]=()=>n[e]);return a.default=()=>n,i.d(o,a),o},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";var e={};i.r(e),i.d(e,{MAX:()=>l,NIL:()=>f,parse:()=>d,stringify:()=>y,v1:()=>k,v1ToV6:()=>x,v3:()=>P,v4:()=>F,v5:()=>$,v6:()=>Z,v6ToV1:()=>H,v7:()=>K,validate:()=>p,version:()=>Y});var t={};i.r(t),i.d(t,{__:()=>Qe,analyzeModule:()=>pn,arrayEqual:()=>Ot,assembleApiUrl:()=>ze,assembleBuffer:()=>it,assembleUrl:()=>bt,assertArray:()=>Mt,assertBuffer:()=>Nt,assertDate:()=>It,assertEmail:()=>At,assertFunction:()=>Ct,assertModule:()=>Bt,assertObject:()=>Lt,assertSet:()=>Tt,assertUrl:()=>jt,assertUuid:()=>Rt,asyncTimeout:()=>wt,base64Decode:()=>Ie,base64Encode:()=>Te,base64Pack:()=>Be,base64Unpack:()=>Ce,basename:()=>Ye,byteToHexString:()=>xt,call:()=>fe,checkChance:()=>Je,checkInterval:()=>nn,clarify:()=>Ve,clone:()=>tt,convertBase:()=>Re,convertFrom16to10:()=>je,countKeys:()=>gn,deepCleanBigInt:()=>rt,distill:()=>nt,ensureArray:()=>at,ensureDate:()=>lt,ensureInt:()=>st,ensureLines:()=>$e,ensureString:()=>ut,escapeHtml:()=>cn,exclude:()=>mn,extError:()=>ve,extract:()=>kt,fileURLToPath:()=>te.m9,fullLengthLog:()=>Kt,getDateByUnixTimestamp:()=>ge,getFuncParams:()=>hn,getItemFromStringOrArray:()=>dt,getKeyByValue:()=>Pt,getRandomIndexInArray:()=>ht,getRandomInt:()=>ye,getRandomItemInArray:()=>pt,getShortestInArray:()=>St,getTimeIcon:()=>wn,getType:()=>gt,getUnixTimestampByDate:()=>me,hexDecode:()=>Le,hexEncode:()=>Me,humanReadableBoolean:()=>Ht,ignoreErrFunc:()=>rn,inBrowser:()=>yn,insensitiveCompare:()=>Wt,insensitiveHas:()=>qt,is:()=>ke,isAscii:()=>sn,isModule:()=>Se,isNull:()=>Oe,isSet:()=>Ae,isUndefined:()=>xe,lastItem:()=>He,lineSplit:()=>Yt,locate:()=>Ft,log:()=>Dt,makeStringByLength:()=>$t,mapKeys:()=>ot,mask:()=>ln,matchVersion:()=>Gt,mergeAtoB:()=>zt,need:()=>dn,newError:()=>we,once:()=>fn,parseJson:()=>Et,parseVersion:()=>Vt,prettyJson:()=>vt,purgeEmoji:()=>un,randomArray:()=>be,range:()=>tn,renderBox:()=>en,renderCode:()=>Jt,renderObject:()=>Xt,renderText:()=>Qt,resolve:()=>Ue,reverseKeyValues:()=>_n,rotate:()=>Zt,shiftTime:()=>qe,split:()=>an,splitArgs:()=>vn,supportAnsiColor:()=>bn,throwError:()=>_e,timeout:()=>Pe,toExponential:()=>Ne,toString:()=>ct,trim:()=>De,tryUntil:()=>on,uniqueArray:()=>Ee,uptime:()=>ft,verifyEmail:()=>yt,verifyPhone:()=>Fe,verifyUrl:()=>mt,verifyUuid:()=>p,voidFunc:()=>Ze,which:()=>Ut});var n={};i.r(n),i.d(n,{_NEED:()=>yr,aesCreateIv:()=>Ir,aesCreateKey:()=>Tr,aesDecrypt:()=>Br,aesEncrypt:()=>Lr,defaultAlgorithm:()=>br,defaultEncryption:()=>vr,digestObject:()=>Rr,getGoogleAuthByCredentials:()=>Cr,getGoogleAuthTokenByAuth:()=>Nr,getSortedQueryString:()=>xr,hash:()=>Sr,hashFile:()=>Or,hexToBigInt:()=>jr,md5:()=>_r,random:()=>gr.randomBytes,randomString:()=>Ar,sha256:()=>Sr,sha256File:()=>Or,uniqueString:()=>wr});var r={};i.r(r),i.d(r,{BASE64:()=>Kr,BUFFER:()=>Yr,DATAURL:()=>ii,FILE:()=>Jr,MIME_AAC:()=>ki,MIME_AVI:()=>mi,MIME_BINARY:()=>ci,MIME_FLAC:()=>xi,MIME_FLV:()=>vi,MIME_GIF:()=>wi,MIME_JPEG:()=>fi,MIME_JSON:()=>ui,MIME_M4A:()=>Ai,MIME_MOV:()=>hi,MIME_MP3:()=>Si,MIME_MP4:()=>di,MIME_MPEG:()=>pi,MIME_MPEGA:()=>Oi,MIME_MPEGPS:()=>bi,MIME_MPG:()=>gi,MIME_MPGA:()=>Ri,MIME_OGG:()=>Ci,MIME_OPUS:()=>ji,MIME_PCM:()=>Ti,MIME_PCM16:()=>Bi,MIME_PDF:()=>Ei,MIME_PNG:()=>li,MIME_TEXT:()=>si,MIME_TGPP:()=>Li,MIME_WAV:()=>Ii,MIME_WEBM:()=>Mi,MIME_WEBP:()=>_i,MIME_WMV:()=>yi,STREAM:()=>Xr,_NEED:()=>Fr,analyzeFile:()=>fo,assertPath:()=>Yi,blobToBuffer:()=>co,convert:()=>uo,decodeBase64DataURL:()=>ro,deleteFileOnCloud:()=>Eo,deleteOnCloud:()=>ko,downloadFileFromCloud:()=>bo,downloadFromCloud:()=>vo,encodeBase64DataURL:()=>no,exists:()=>oo,existsOnCloud:()=>wo,formatDataURL:()=>Vr,getConfig:()=>Qi,getConfigFilename:()=>Xi,getGcUrlByBucket:()=>zr,getIdByGs:()=>Wr,getMime:()=>lo,getTempPath:()=>Gi,handleError:()=>Zi,init:()=>mo,isTextFile:()=>Ji,legalFilename:()=>io,lsOnCloud:()=>_o,mapFilename:()=>qr,mergeFile:()=>po,readFile:()=>Wi,readJson:()=>Vi,sanitizeFilename:()=>Hr,setConfig:()=>eo,sliceFile:()=>ho,touchPath:()=>to,tryRm:()=>go,unzip:()=>so,uploadToCloud:()=>yo,writeFile:()=>qi,writeJson:()=>$i,writeTempFile:()=>Ki,zip:()=>ao});var o={};i.r(o),i.d(o,{bigIntToUuid:()=>Fo,compactUuid:()=>Po,create:()=>qo,default:()=>Vo,expandUuid:()=>zo,fakeUuid:()=>Uo,getRfcUrlNamespaceUuid:()=>$o,getTimestampFromUuid:()=>Wo,getUuidForCurrentHost:()=>Ho,rotateUuid:()=>Zo,uuidRegTxt:()=>No,uuidToBigInt:()=>Do});var a={};i.r(a),i.d(a,{bulk:()=>Ys,default:()=>Xs,end:()=>Js,list:()=>qs,load:()=>Ks,loop:()=>Gs});var s={};i.r(s),i.d(s,{_NEED:()=>Qs,checkSay:()=>cc,checkWhisper:()=>uc,stt:()=>dc,sttWhisper:()=>hc,tts:()=>pc,ttsSay:()=>lc});var c=i(8221),u=i.t(c,2);const l="ffffffff-ffff-ffff-ffff-ffffffffffff",f="00000000-0000-0000-0000-000000000000",h=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i,p=function(e){return"string"==typeof e&&h.test(e)},d=function(e){if(!p(e))throw TypeError("Invalid UUID");let t;return Uint8Array.of((t=parseInt(e.slice(0,8),16))>>>24,t>>>16&255,t>>>8&255,255&t,(t=parseInt(e.slice(9,13),16))>>>8,255&t,(t=parseInt(e.slice(14,18),16))>>>8,255&t,(t=parseInt(e.slice(19,23),16))>>>8,255&t,(t=parseInt(e.slice(24,36),16))/1099511627776&255,t/4294967296&255,t>>>24&255,t>>>16&255,t>>>8&255,255&t)},g=[];for(let e=0;e<256;++e)g.push((e+256).toString(16).slice(1));function m(e,t=0){return(g[e[t+0]]+g[e[t+1]]+g[e[t+2]]+g[e[t+3]]+"-"+g[e[t+4]]+g[e[t+5]]+"-"+g[e[t+6]]+g[e[t+7]]+"-"+g[e[t+8]]+g[e[t+9]]+"-"+g[e[t+10]]+g[e[t+11]]+g[e[t+12]]+g[e[t+13]]+g[e[t+14]]+g[e[t+15]]).toLowerCase()}const y=function(e,t=0){const n=m(e,t);if(!p(n))throw TypeError("Stringified UUID is invalid");return n};let b;const v=new Uint8Array(16);function w(){if(!b){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");b=crypto.getRandomValues.bind(crypto)}return b(v)}const _={};function E(e,t,n,r,i,o,a=0){if(e.length<16)throw new Error("Random bytes length must be >= 16");if(o){if(a<0||a+16>o.length)throw new RangeError(`UUID byte range ${a}:${a+15} is out of buffer bounds`)}else o=new Uint8Array(16),a=0;t??=Date.now(),n??=0,r??=16383&(e[8]<<8|e[9]),i??=e.slice(10,16);const s=(1e4*(268435455&(t+=122192928e5))+n)%4294967296;o[a++]=s>>>24&255,o[a++]=s>>>16&255,o[a++]=s>>>8&255,o[a++]=255&s;const c=t/4294967296*1e4&268435455;o[a++]=c>>>8&255,o[a++]=255&c,o[a++]=c>>>24&15|16,o[a++]=c>>>16&255,o[a++]=r>>>8|128,o[a++]=255&r;for(let e=0;e<6;++e)o[a++]=i[e];return o}const k=function(e,t,n){let r;const i=e?._v6??!1;if(e){const t=Object.keys(e);1===t.length&&"_v6"===t[0]&&(e=void 0)}if(e)r=E(e.random??e.rng?.()??w(),e.msecs,e.nsecs,e.clockseq,e.node,t,n);else{const e=Date.now(),o=w();!function(e,t,n){e.msecs??=-1/0,e.nsecs??=0,t===e.msecs?(e.nsecs++,e.nsecs>=1e4&&(e.node=void 0,e.nsecs=0)):t>e.msecs?e.nsecs=0:t<e.msecs&&(e.node=void 0),e.node||(e.node=n.slice(10,16),e.node[0]|=1,e.clockseq=16383&(n[8]<<8|n[9])),e.msecs=t}(_,e,o),r=E(o,_.msecs,_.nsecs,i?void 0:_.clockseq,i?void 0:_.node,t,n)}return t??m(r)};function x(e){const t=function(e){return Uint8Array.of((15&e[6])<<4|e[7]>>4&15,(15&e[7])<<4|(240&e[4])>>4,(15&e[4])<<4|(240&e[5])>>4,(15&e[5])<<4|(240&e[0])>>4,(15&e[0])<<4|(240&e[1])>>4,(15&e[1])<<4|(240&e[2])>>4,96|15&e[2],e[3],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}("string"==typeof e?d(e):e);return"string"==typeof e?m(t):t}function S(e){return 14+(e+64>>>9<<4)+1}function O(e,t){const n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function A(e,t,n,r,i,o){return O((a=O(O(t,e),O(r,o)))<<(s=i)|a>>>32-s,n);var a,s}function R(e,t,n,r,i,o,a){return A(t&n|~t&r,e,t,i,o,a)}function j(e,t,n,r,i,o,a){return A(t&r|n&~r,e,t,i,o,a)}function T(e,t,n,r,i,o,a){return A(t^n^r,e,t,i,o,a)}function I(e,t,n,r,i,o,a){return A(n^(t|~r),e,t,i,o,a)}const M=function(e){return function(e){const t=new Uint8Array(4*e.length);for(let n=0;n<4*e.length;n++)t[n]=e[n>>2]>>>n%4*8&255;return t}(function(e,t){const n=new Uint32Array(S(t)).fill(0);n.set(e),n[t>>5]|=128<<t%32,n[n.length-1]=t,e=n;let r=1732584193,i=-271733879,o=-1732584194,a=271733878;for(let t=0;t<e.length;t+=16){const n=r,s=i,c=o,u=a;r=R(r,i,o,a,e[t],7,-680876936),a=R(a,r,i,o,e[t+1],12,-389564586),o=R(o,a,r,i,e[t+2],17,606105819),i=R(i,o,a,r,e[t+3],22,-1044525330),r=R(r,i,o,a,e[t+4],7,-176418897),a=R(a,r,i,o,e[t+5],12,1200080426),o=R(o,a,r,i,e[t+6],17,-1473231341),i=R(i,o,a,r,e[t+7],22,-45705983),r=R(r,i,o,a,e[t+8],7,1770035416),a=R(a,r,i,o,e[t+9],12,-1958414417),o=R(o,a,r,i,e[t+10],17,-42063),i=R(i,o,a,r,e[t+11],22,-1990404162),r=R(r,i,o,a,e[t+12],7,1804603682),a=R(a,r,i,o,e[t+13],12,-40341101),o=R(o,a,r,i,e[t+14],17,-1502002290),i=R(i,o,a,r,e[t+15],22,1236535329),r=j(r,i,o,a,e[t+1],5,-165796510),a=j(a,r,i,o,e[t+6],9,-1069501632),o=j(o,a,r,i,e[t+11],14,643717713),i=j(i,o,a,r,e[t],20,-373897302),r=j(r,i,o,a,e[t+5],5,-701558691),a=j(a,r,i,o,e[t+10],9,38016083),o=j(o,a,r,i,e[t+15],14,-660478335),i=j(i,o,a,r,e[t+4],20,-405537848),r=j(r,i,o,a,e[t+9],5,568446438),a=j(a,r,i,o,e[t+14],9,-1019803690),o=j(o,a,r,i,e[t+3],14,-187363961),i=j(i,o,a,r,e[t+8],20,1163531501),r=j(r,i,o,a,e[t+13],5,-1444681467),a=j(a,r,i,o,e[t+2],9,-51403784),o=j(o,a,r,i,e[t+7],14,1735328473),i=j(i,o,a,r,e[t+12],20,-1926607734),r=T(r,i,o,a,e[t+5],4,-378558),a=T(a,r,i,o,e[t+8],11,-2022574463),o=T(o,a,r,i,e[t+11],16,1839030562),i=T(i,o,a,r,e[t+14],23,-35309556),r=T(r,i,o,a,e[t+1],4,-1530992060),a=T(a,r,i,o,e[t+4],11,1272893353),o=T(o,a,r,i,e[t+7],16,-155497632),i=T(i,o,a,r,e[t+10],23,-1094730640),r=T(r,i,o,a,e[t+13],4,681279174),a=T(a,r,i,o,e[t],11,-358537222),o=T(o,a,r,i,e[t+3],16,-722521979),i=T(i,o,a,r,e[t+6],23,76029189),r=T(r,i,o,a,e[t+9],4,-640364487),a=T(a,r,i,o,e[t+12],11,-421815835),o=T(o,a,r,i,e[t+15],16,530742520),i=T(i,o,a,r,e[t+2],23,-995338651),r=I(r,i,o,a,e[t],6,-198630844),a=I(a,r,i,o,e[t+7],10,1126891415),o=I(o,a,r,i,e[t+14],15,-1416354905),i=I(i,o,a,r,e[t+5],21,-57434055),r=I(r,i,o,a,e[t+12],6,1700485571),a=I(a,r,i,o,e[t+3],10,-1894986606),o=I(o,a,r,i,e[t+10],15,-1051523),i=I(i,o,a,r,e[t+1],21,-2054922799),r=I(r,i,o,a,e[t+8],6,1873313359),a=I(a,r,i,o,e[t+15],10,-30611744),o=I(o,a,r,i,e[t+6],15,-1560198380),i=I(i,o,a,r,e[t+13],21,1309151649),r=I(r,i,o,a,e[t+4],6,-145523070),a=I(a,r,i,o,e[t+11],10,-1120210379),o=I(o,a,r,i,e[t+2],15,718787259),i=I(i,o,a,r,e[t+9],21,-343485551),r=O(r,n),i=O(i,s),o=O(o,c),a=O(a,u)}return Uint32Array.of(r,i,o,a)}(function(e){if(0===e.length)return new Uint32Array;const t=new Uint32Array(S(8*e.length)).fill(0);for(let n=0;n<e.length;n++)t[n>>2]|=(255&e[n])<<n%4*8;return t}(e),8*e.length))},L="6ba7b810-9dad-11d1-80b4-00c04fd430c8",B="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function C(e,t,n,r,i,o){const a="string"==typeof n?function(e){e=unescape(encodeURIComponent(e));const t=new Uint8Array(e.length);for(let n=0;n<e.length;++n)t[n]=e.charCodeAt(n);return t}(n):n,s="string"==typeof r?d(r):r;if("string"==typeof r&&(r=d(r)),16!==r?.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+a.length);if(c.set(s),c.set(a,s.length),c=t(c),c[6]=15&c[6]|e,c[8]=63&c[8]|128,i){o=o||0;for(let e=0;e<16;++e)i[o+e]=c[e];return i}return m(c)}function N(e,t,n,r){return C(48,M,e,t,n,r)}N.DNS=L,N.URL=B;const P=N,D={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},F=function(e,t,n){return!D.randomUUID||t||e?function(e,t,n){const r=(e=e||{}).random??e.rng?.()??w();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return m(r)}(e,t,n):D.randomUUID()};function U(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function z(e,t){return e<<t|e>>>32-t}const W=function(e){const t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520],r=new Uint8Array(e.length+1);r.set(e),r[e.length]=128;const i=(e=r).length/4+2,o=Math.ceil(i/16),a=new Array(o);for(let t=0;t<o;++t){const n=new Uint32Array(16);for(let r=0;r<16;++r)n[r]=e[64*t+4*r]<<24|e[64*t+4*r+1]<<16|e[64*t+4*r+2]<<8|e[64*t+4*r+3];a[t]=n}a[o-1][14]=8*(e.length-1)/Math.pow(2,32),a[o-1][14]=Math.floor(a[o-1][14]),a[o-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<o;++e){const r=new Uint32Array(80);for(let t=0;t<16;++t)r[t]=a[e][t];for(let e=16;e<80;++e)r[e]=z(r[e-3]^r[e-8]^r[e-14]^r[e-16],1);let i=n[0],o=n[1],s=n[2],c=n[3],u=n[4];for(let e=0;e<80;++e){const n=Math.floor(e/20),a=z(i,5)+U(n,o,s,c)+u+t[n]+r[e]>>>0;u=c,c=s,s=z(o,30)>>>0,o=i,i=a}n[0]=n[0]+i>>>0,n[1]=n[1]+o>>>0,n[2]=n[2]+s>>>0,n[3]=n[3]+c>>>0,n[4]=n[4]+u>>>0}return Uint8Array.of(n[0]>>24,n[0]>>16,n[0]>>8,n[0],n[1]>>24,n[1]>>16,n[1]>>8,n[1],n[2]>>24,n[2]>>16,n[2]>>8,n[2],n[3]>>24,n[3]>>16,n[3]>>8,n[3],n[4]>>24,n[4]>>16,n[4]>>8,n[4])};function q(e,t,n,r){return C(80,W,e,t,n,r)}q.DNS=L,q.URL=B;const $=q,Z=function(e,t,n){e??={},n??=0;let r=k({...e,_v6:!0},new Uint8Array(16));if(r=x(r),t){for(let e=0;e<16;e++)t[n+e]=r[e];return t}return m(r)};function H(e){const t=(n="string"==typeof e?d(e):e,Uint8Array.of((15&n[3])<<4|n[4]>>4&15,(15&n[4])<<4|(240&n[5])>>4,(15&n[5])<<4|15&n[6],n[7],(15&n[1])<<4|(240&n[2])>>4,(15&n[2])<<4|(240&n[3])>>4,16|(240&n[0])>>4,(15&n[0])<<4|(240&n[1])>>4,n[8],n[9],n[10],n[11],n[12],n[13],n[14],n[15]));var n;return"string"==typeof e?m(t):t}const V={};function G(e,t,n,r,i=0){if(e.length<16)throw new Error("Random bytes length must be >= 16");if(r){if(i<0||i+16>r.length)throw new RangeError(`UUID byte range ${i}:${i+15} is out of buffer bounds`)}else r=new Uint8Array(16),i=0;return t??=Date.now(),n??=127*e[6]<<24|e[7]<<16|e[8]<<8|e[9],r[i++]=t/1099511627776&255,r[i++]=t/4294967296&255,r[i++]=t/16777216&255,r[i++]=t/65536&255,r[i++]=t/256&255,r[i++]=255&t,r[i++]=112|n>>>28&15,r[i++]=n>>>20&255,r[i++]=128|n>>>14&63,r[i++]=n>>>6&255,r[i++]=n<<2&255|3&e[10],r[i++]=e[11],r[i++]=e[12],r[i++]=e[13],r[i++]=e[14],r[i++]=e[15],r}const K=function(e,t,n){let r;if(e)r=G(e.random??e.rng?.()??w(),e.msecs,e.seq,t,n);else{const e=Date.now(),i=w();!function(e,t,n){e.msecs??=-1/0,e.seq??=0,t>e.msecs?(e.seq=n[6]<<23|n[7]<<16|n[8]<<8|n[9],e.msecs=t):(e.seq=e.seq+1|0,0===e.seq&&e.msecs++)}(V,e,i),r=G(i,V.msecs,V.seq,t,n)}return t??m(r)},Y=function(e){if(!p(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)};var J=i(4148),X=i(8287);Object.values=Object.values||(e=>Object.keys(e).map(t=>e[t])),RegExp.escape=RegExp.escape||(e=>String(e).replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),BigInt.prototype.toJSON=BigInt.prototype.toJSON||function(){return this.toString()};const Q=J||((e,t)=>{if(!e)throw Error.isError(t)?t:new Error(t)});if(!globalThis.assert){globalThis.assert=(e,t,n,r)=>{try{return Q(e,t)}catch(e){throw((e,t=500,n={})=>Object.assign(e,{status:t},n))(e,n,r)}};for(let e in Q||{})assert[e]=Q[e]}globalThis.Buffer=globalThis.Buffer||X.Buffer;const ee=(e,t)=>t?.constructor===e;[ArrayBuffer,BigInt,Boolean,Error,Number,Object,Set,String,Uint8Array].map(e=>{const t=`is${e.name}`;e[t]=e[t]||(t=>ee(e,t))}),Date.isDate=Date.isDate||((e,t)=>!(!ee(Date,e)||t&&"invalid date"===e.toTimeString().toLowerCase())),Function.isFunction=Function.isFunction||(e=>{return["Function","AsyncFunction"].includes(void 0===(t=e)?"Undefined":Object.prototype.toString.call(t).replace(/^\[[^\ ]*\ (.*)\]$/,"$1"));var t}),globalThis.print=globalThis.print||console.log;var te=i(8835),ne=i(7975),re=i(537);const ie=JSON.parse('{"single":{"topLeft":"┌","top":"─","topRight":"┐","right":"│","bottomRight":"┘","bottom":"─","bottomLeft":"└","left":"│"},"double":{"topLeft":"╔","top":"═","topRight":"╗","right":"║","bottomRight":"╝","bottom":"═","bottomLeft":"╚","left":"║"},"round":{"topLeft":"╭","top":"─","topRight":"╮","right":"│","bottomRight":"╯","bottom":"─","bottomLeft":"╰","left":"│"},"bold":{"topLeft":"┏","top":"━","topRight":"┓","right":"┃","bottomRight":"┛","bottom":"━","bottomLeft":"┗","left":"┃"},"singleDouble":{"topLeft":"╓","top":"─","topRight":"╖","right":"║","bottomRight":"╜","bottom":"─","bottomLeft":"╙","left":"║"},"doubleSingle":{"topLeft":"╒","top":"═","topRight":"╕","right":"│","bottomRight":"╛","bottom":"═","bottomLeft":"╘","left":"│"},"classic":{"topLeft":"+","top":"-","topRight":"+","right":"|","bottomRight":"+","bottom":"-","bottomLeft":"+","left":"|"},"arrow":{"topLeft":"↘","top":"↓","topRight":"↙","right":"←","bottomRight":"↖","bottom":"↑","bottomLeft":"↗","left":"→"}}');var oe=i.t(ie),ae=i(3428);const se={strip:(e,t)=>ut(e,t).replace(/\x1B\[\d+m/g,"")};for(let e in ae)se[e]=(t,n)=>{const[r,i]=bn()?[ae[e].open,ae[e].close]:["",""];return`${r}${ut(t,n)}${i}`};const ce=se;var ue=i(8287).Buffer,le=i(5606);const fe=(e,...t)=>(0,re.promisify)(Array.isArray(e)?e[0].bind(e[1]):e)(...t),he="Invalid time.",[pe,de]=["Chrome","Edge"],ge=e=>new Date(1e3*~~e),me=e=>Math.round(e.getTime()/1e3),ye=e=>Math.floor(Math.random()*Math.floor(e)),be=e=>e.sort(()=>.5-Math.random()),ve=(e,t,n={})=>Object.assign(e,{status:t},n),we=(e,t,n)=>ve(new Error(e),t,n),_e=(e,t,n)=>{throw we(e,t,n)},Ee=e=>[...new Set(at(e))],ke=(e,t)=>gt(t)===e,xe=e=>ke("Undefined",e),Se=e=>ke("Module",e),Oe=e=>ke("Null",e),Ae=(e,t)=>!(xe(e)||t&&Oe(e)),Re=(e,t,n)=>parseInt(e||0,t).toString(n),je=e=>parseInt(Re(e,16,10)),Te=(e,t)=>We(e,t,"base64"),Ie=(e,t)=>_t(e,t,"base64"),Me=(e,t)=>We(e,t,"hex"),Le=(e,t)=>_t(e,t,"hex"),Be=e=>Te(JSON.stringify(e)),Ce=e=>JSON.parse(Ie(e)),Ne=(e,t)=>Number.parseFloat(e).toExponential(t),Pe=e=>new Promise(t=>(e?setTimeout:setImmediate)(t,e)),De=(e,t)=>ut(e,{trim:!0,...t||{}}),Fe=e=>/^\+?[0-9]{4,}$/.test(e),Ue=async e=>e instanceof Promise?await e:e,ze=(e,t,n)=>bt(`${e}/${t}`,n),We=(e,t,n)=>(t?e:ue.from(e)).toString(n),qe=(e,t)=>new Date((t??new Date).getTime()+e),$e=(e,t)=>Array.isArray(e)?e:Yt(e,t),Ze=()=>{},He=e=>e.slice(-1)[0],Ve=e=>e.toLowerCase().split(/[^a-zA-Z0-9]+/).filter(e=>e),Ge={},Ke=e=>String(e||et),Ye=e=>(0,ne.basename)(Ke(e)).replace(/\.[^\.]*$/,"").trim(),Je=e=>Math.random()<1/(~~e||100),Xe={"00:00":"🕛","00:30":"🕧","01:00":"🕐","01:30":"🕜","02:00":"🕑","02:30":"🕝","03:00":"🕒","03:30":"🕞","04:00":"🕓","04:30":"🕟","05:00":"🕔","05:30":"🕠","06:00":"🕕","06:30":"🕡","07:00":"🕖","07:30":"🕢","08:00":"🕗","08:30":"🕣","09:00":"🕘","09:30":"🕤","10:00":"🕙","10:30":"🕥","11:00":"🕚","11:30":"🕦","00:00":"🕛"},Qe=(e,t)=>{assert(e,"Invalid URL.",500);const n=(0,te.m9)(e),r=(0,ne.dirname)(n);return(t=String(t??""))?(0,ne.join)(r,t):{__filename:n,__dirname:r}},{__filename:et}=Qe("file:///home/runner/work/utilitas/utilitas/lib/utilitas.mjs"),tt=e=>{let t=e;switch(gt(e)){case"Object":t={};for(let n in e)t[n]=tt(e[n]);break;case"Array":t=[],e.map(e=>{t.push(tt(e))})}return t},nt=(e,t)=>{let[n,r]=[e,null];switch(gt(e)){case"Object":n={};for(let i in e)Ae(r=nt(e[i],t),t)&&(n[i]=r);n=Object.keys(n).length?n:void 0;break;case"Array":n=[],e.map(e=>{Ae(e=nt(e,t),t)&&n.push(e)}),n=n.length?n:void 0}return n},rt=(e,t=String)=>{let n=e;switch(gt(e)){case"Object":n={};for(let r in e)n[r]=rt(e[r],t);break;case"Array":n=[],e.map(e=>{n.push(rt(e,t))});break;case"BigInt":n=t(e)}return n},it=e=>{let t=e;switch(gt(e)){case"Object":if("Buffer"===e.type&&Array.isArray(e.data))t=ue.from(e.data);else if("DataURL"===e.type&&String.isString(e.data))t=ro(e.data)?.buffer;else{t={};for(let n in e)t[n]=it(e[n])}break;case"Array":t=[],e.map(e=>{t.push(it(e))})}return t},ot=(e,t,n,r)=>{let[i,o]=[e,t];switch(Object.isObject(t)&&(o=e=>t[e]),Ct(o),gt(e)){case"Object":i={};for(let t in e){const a=o(t,e[t],r||[]);assert(!n||a,`Error maping key: '${t}'.`,400),i[a||t]=ot(e[t],o,n,[...r||[],t])}break;case"Array":i=[],e.map((e,t)=>{i.push(ot(e,o,n,[...r||[],t]))})}return i},at=e=>Ae(e,!0)?Array.isArray(e)||Set.isSet(e)?[...e]:[e]:[],st=(e,t)=>{t=t||{};let n=parseInt(e);return n=isNaN(n)?0:n,n=Ae(t.min,!0)&&n<t.min?t.min:n,n=Ae(t.max,!0)&&n>t.max?t.max:n,t.pad>0?String(n).padStart(t.pad,"0"):n},ct=(e,t)=>Object.isObject(e)?JSON.stringify(e):Date.isDate(e)?e.toISOString():Error.isError(e)?t?.trace?e.stack:e.message:String(e??""),ut=(e,t)=>{if(e=ct(e,t),t?.case)switch(ct(t?.case).trim().toUpperCase()){case"UP":e=e.toUpperCase();break;case"LOW":e=e.toLowerCase();break;case"CAP":e=`${e.charAt(0).toUpperCase()}${e.slice(1)}`;break;case"CAMEL":e=Ve(e).map((e,t)=>t?`${e.charAt(0).toUpperCase()}${e.slice(1)}`:e).join("");break;case"SNAKE":e=Ve(e).join("_"),assert(e,"String can not convert to snake case.",500);break;default:_e(`Invalid case option: '${t?.case}'.`,500)}return t?.trim&&(e=e.trim()),t?.compact&&(e=e.replace(/\s+/g," ").trim()),t?.limit&&(e=e.trim())&&e.length>t.limit&&(e=`${e.slice(0,t.limit).trim()}...`),e},lt=(e,t)=>(e&&It(e=new Date(e),t?.message),!e&&t?.required?_e(he,400):e?t?.asTimestamp?e.getTime():t?.asUnixtime?me(e):e:null),ft=()=>{let e=`${wn(new Date)} ${(new Date).toTimeString().split(" ")[0].split(":").slice(0,2).join(":")} up`,t=le.uptime();const n=Math.floor(t/86400);t-=3600*n*24;let r=Math.floor(t/3600);t-=3600*r,r=r.toString().padStart(2,"0");let i=Math.floor(t/60);return i=i.toString().padStart(2,"0"),t=Math.floor(t%60).toString().padStart(2,"0"),n>0&&(e+=` ${n} day${n>1?"s":""},`),`${e} ${r}:${i}:${t}`},ht=(e,t)=>{const n=~~t?.count,r=be([...e.keys()]).slice(0,n||1);return n?r:r[0]},pt=(e,t)=>{const n=~~t?.count,r=be(ht(e,{count:n||1}).sort((e,t)=>t-e).map(n=>t?.splice?e.splice(n,1)[0]:e[n]));return n?r:r[0]},dt=e=>Array.isArray(e)?pt(e):e,gt=e=>void 0===e?"Undefined":Object.prototype.toString.call(e).replace(/^\[[^\ ]*\ (.*)\]$/,"$1"),mt=e=>{const t=String(e??"").replace(/^magnet:/,"magnet:localhost");return t.length<2083&&new RegExp("^(?:(http://|https://|ftp://|chrome://|mailto:|magnet:))(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i").test(t)},yt=e=>/^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$/.test(e),bt=(e,t)=>{let n=[];for(let e in t||[])at(t[e]).map(t=>{n.push(`${e}=${encodeURIComponent(t)}`)});return`${e}${n.length?`?${n.join("&")}`:""}`},vt=(e,t)=>{let n=JSON.stringify(e,t?.replacer??null,~~t?.space||2);return t?.code?n=Jt(n,{...t||{},md:t?.md&&"json"}):t?.log&&console.log(n),n},wt=async(e,t,n)=>{let r=null,i=Promise.race([e,new Promise((e,i)=>{r=setTimeout(()=>{i(new Error(n||"Timed out."))},t)})]);const o=await i;try{clearTimeout(r)}catch(n){}return o},_t=(e,t,n)=>{const r=ue.from(e,n);return t?r:r.toString("utf8")},Et=(e,t,n)=>{try{return JSON.parse(e,n?.reviver||((e,t)=>t&&"Buffer"===t.type&&Array.isArray(t.data)?ue.from(t.data):t))}catch(e){return Ae(t)?t:{}}},kt=(...e)=>{let t=null;return e.map((e,n)=>t=n?t?.[e]??null:e),t},xt=e=>Array.from(e,e=>("0"+(255&e).toString(16)).slice(-2)).join(""),St=e=>{let[t,n]=[0,-1];for(let r in e)(-1===n||n>e[r].length)&&(t=r,n=e[r].length);return t},Ot=(e,t)=>!(!Array.isArray(e)||!Array.isArray(t))&&(e.sort(),t.sort(),e.join(",")===t.join(",")),At=(e,t,n,r)=>assert(yt(e),t||"Invalid email.",n||400,r),Rt=(e,t,n,r)=>assert(p(e),t||"Invalid UUID.",n||400,r),jt=(e,t,n,r)=>assert(mt(e),t||"Invalid URL.",n||400,r),Tt=(e,t,n,r)=>assert(Ae(e),t||"Undefined value.",n||400,r),It=(e,t,n,r)=>assert(Date.isDate(e,!0),t||he,n||400,r),Mt=(e,t,n,r)=>assert(Array.isObject(e),t||"Invalid Array.",n||400,r),Lt=(e,t,n,r)=>assert(Object.isObject(e),t||"Invalid Object.",n||400,r),Bt=(e,t,n,r)=>assert(Se(e),t||"Invalid Module.",n||400,r),Ct=(e,t,n,r)=>assert(Function.isFunction(e),t||"Invalid Function.",n||400,r),Nt=(e,t,n,r)=>assert(ue.isBuffer(e)||ArrayBuffer.isArrayBuffer(e),t||"Invalid Buffer.",n||400,r),Pt=(e,t)=>{for(let n in e||{})if(t===e[n])return n},Dt=(e,t,n)=>{const r=Error.isError(e);e=Object.isObject(e)?JSON.stringify(e):e;const i=n?.keepName?Ke(t):Ye(t).toUpperCase(),o=n?.time?` ${(Date.isDate(n.time,!0)?n.time:new Date).toISOString()}`:"",a=["["+ce.red(i)+ce.yellow(o)+"]"+(r?"":` ${e}`)];return r&&a.push(e),n?.return?a[0]:console.info.apply(null,a)},Ft=async e=>(await Yi(e,"F","R"),globalThis._manifest=e),Ut=async e=>{if(!Object.isObject(e=e||globalThis._manifest)){if(e=(e=e||"file:///home/runner/work/utilitas/utilitas/lib/utilitas.mjs").startsWith("file://")?(0,te.m9)(e):e,!e?.endsWith?.(".json")){e=["/",...e.split(ne.sep).slice(1)];const t=[];for(let n of e){t.push(n);const r=(0,ne.join)(...t,"package.json");try{await Yi(r,"F","R"),e=r;break}catch(e){}}}e=await Vi(e)}return e.name=e.name||"",e.versionNormalized=Vt(e.version=e.version||""),e.title=`${e.name}${e.version?" v"+e.version:""}`,e.userAgent=`${e.name}${e.version?`/${e.version}`:""}`,e},zt=(e,t,n)=>{e=e||{},t=t||{};for(let r in e)xe(e[r])?n?.mergeUndefined&&delete t[r]:t[r]=e[r];return t},Wt=(e,t,n)=>{n={case:"UP",...n||{}};let[r,i]=[e,t].map(e=>(e=De(e,n),n.w&&(e=e.replace(/[^\w]*/gi,"")),e));return r===i},qt=(e,t,n)=>at(e).some(e=>Wt(e,t,n)),$t=(e,t)=>{e=String(e??"")[0]??"",t=parseInt(t)||0;let n="";for(;e&&t&&n.length<t;)n+=e;return n},Zt=(e,t,n)=>{let r=!1;switch(gt(e)){case"String":e=ut(e,n).split(""),r=!0;break;case"Array":break;default:_e("The object can only be a string or array.",400)}return t=~~t-e.length*Math.floor(~~t/e.length),e.push.apply(e,e.splice(0,t)),r?e.join(""):e},Ht=e=>["✓","1","10-4","AYE","COOL","DO","ENABLE","ENABLED","ENGAGE","ENGAGED","GOOD","GREAT","JA","OK","OKEY","ON","RIGHT","RIGHTO","ROGER","SURE","TRUE","YEP","YEPPERS","YES","YUP","YUPPERS","好","对","對","开","开启","是","開","開啟","🔊","🐵"].includes(ut(e,{case:"UP"})),Vt=e=>{e=ut(e,{case:"UP"});const[t,n,r]=[{version:[[/^[^\.\d]*([\.\d]+).*$/i,"$1"]],build:[[/^[^\.\d]*[\.\d]+.*\-([0-9a-z]*).*/i,"$1"],[/^[^\.\d]*[\.\d]+.*\(([0-9a-z]*)\).*/i,"$1"]],channel:["INTERNAL","DEV","ALPHA","TESTING","STAGING","BETA","PRODUCTION","STABLE"]},{normalized:0},5];for(let r in t){let i="";for(let n in t[r]){const[o,a]=Array.isArray(t[r][n])?[t[r][n][0],t[r][n][1]]:[new RegExp(`^.*(${t[r][n]}).*$`,"i"),"$1"];if(o.test(e)){i=e.replace(o,a);break}}n[r]=i}if(n.version){const e=n.version.split(".");for(;e.length<r;)e.push(0);for(;e.length;)n.normalized+=Math.pow(10,5*(r-e.length))*e.pop()}return n},Gt=(e,t)=>{const[n,r]=[Vt(e),Vt(t)];return n.normalized>=r.normalized},Kt=(e,t)=>{t=t||{},e=String(e??"");const n=st(t.maxLength)||le.stdout.columns,r=t.padding??"=";if(e.length+4>n){const t=$t(r,n);console.log(`${t} \n${e} \n${t} `)}else{e=e?` ${e} `:"";const t=Math.floor((n-e.length)/2),i=n-t-e.length;console.log(`${$t(r,t)}${e}${$t(r,i)}`)}return{string:e,maxLength:n}},Yt=(e,t)=>{const n=ut(e,t);return n.length?n.split(t?.separator||/\r\n|\n\r|\r|\n/):[]},Jt=(e,t)=>{let n=t?.initLine??1;const r=$e(e),i=String(r.length).length,o=t?.separator??"|",a=r.map(e=>`${String(n++).padStart(i,"0")} ${o} ${ut(e).replace("```","\\`\\`\\`")}`),s=(t?.md?`\`\`\`${!0===t?.md?"":t?.md}\n`:"")+(t?.asArray?a:a.join("\n"))+(t?.md?"\n```":"");return t?.log&&console.log(s),s},Xt=(e,t)=>{Lt(e,"Invalid object");const[n,r]=[Object.keys(e),t?.separator??":"];let i=0;n.map(e=>i=Math.max(i,e.length));const o=n.map(n=>`${n.padEnd(i," ")} ${r} ${(t?.render||ut)(e[n],{...t||{},key:n})}`);return t?.asArray?o:o.join("\n")},Qt=(e,t)=>{const[n,r,i]=[$e(e),[],[]];return n.map(e=>{const n=/^```/.test(e);if(n&&!r.length){t?.noCode||i.push(e);const n=e.replace(/^```/,"").trim();r.push(n?`> ${n}`:"")}else if(n&&r.length){if(!t?.noCode){const n=t?.extraCodeBlock&&r[0].length;n||r.shift(),i.push(Jt(r,{...t||{},initLine:n?0:1}),e)}r.length=0}else r.length?r.push(e):(t?.noLink&&(e=e.replace(/\[([^\]]+)\]\(([^)]+)\)/g,"").trim()),i.push(e))}),t?.asArray?i:i.join("\n")},en=(e,t)=>{const[n,r,i,o,a]=[10,80,2048,[],ie[t?.style||"round"]];let[s,c]=[~~t?.width,t?.title||""];assert(e.length,"Content must not be empty."),assert(a,`Style must be one of ${Object.keys(ie).join(", ")}.`),assert(!s||s>=n&&s<=i,`Width must be between ${n} and ${i}.`);const u=(s||(s=r))-2,l=u-2,f=e=>`${e.slice(0,l-3)}...`,h=e=>o.push([a.left,e.padEnd(l," "),a.right].join(" "));c.length>l&&(c=f(c)),c.length&&(c=` ${c} `),o.push(a.topLeft+c+a.top.repeat(u-c.length)+a.topRight),c.length&&h(""),$e(e).map(e=>{for(e=e||" ";e.length;)h(t?.noWrap?f(e):e.slice(0,l)),e=t?.noWrap?"":e.slice(l)}),h(""),o.push(a.bottomLeft+a.bottom.repeat(u)+a.bottomRight);const p=t?.asArray?o:o.join("\n");return t?.log&&console.log(p),p},tn=(e,t,n)=>{(n=n||{}).base=st(n.base,{min:0}),n.step=st(n.step,{min:1}),[e,t]=[st(e),st(t)];const[r,i]=[e<=t?1:-1,[]];for(let o=e;r>0?o<=t:o>=t;o+=n.step*r)(!n.noBoundary||o!==e&&o!==t)&&i.push(n.base+o);return i},nn=(e,t)=>!((Math.round(Date.now()/1e3)+st(t))%st(e)),rn=async(e,t)=>{const n=async()=>{try{return await e(...t?.args||[])}catch(e){Function.isFunction(t?.log)?t.log(e):t?.log&&console.error(e)}};return t?.await?(await Pe(t.await),await n()):t?.wait?setTimeout(n,t.wait):await n()},on=async(e,t)=>{t={interval:1e3,maxTry:1/0,log:!1,error:"Operation failed.",verify:async(e,t)=>!e,...t||{}};let[n,r,i,o]=[0,null,null,null];do{try{assert(await t.verify(i=null,r=await e()),t.error)}catch(e){(i=e)&&(o=i?.message||i)&&(Function.isFunction(t?.log)?await t.log(o):console.log(o)),await Pe(t.interval)}}while(++n<t.maxTry&&i);if(i)throw i;return r},an=(e,t)=>De(e,t).split(t?.separator??/[,|;\ \t\n]+/).map(e=>e.trim()).filter(e=>e.length),sn=e=>{if(String.isString(e))for(let t=0;t<e.length;t++)if(e.charCodeAt(t)>127)return!1;return!0},cn=e=>e.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'"),un=(e,t)=>ct(e).replace(/(?!\d)(?!\*)[\p{Emoji_Modifier}\p{Emoji_Component}\p{Extended_Pictographic}]/gu,t??""),ln=(e,t)=>(t=t||{},e=ut(e),t.kepp=(t.kepp=~~t.kepp||1)>=e.length?e.length-1:t.kepp,e.replace(/.{1}/g,t.replace||"*").replace(new RegExp(`^.{${t.kepp}}`),e.substr(0,t.kepp))),fn=(e,t)=>{let n;return function(){return e&&(n=e.apply(t||this,arguments),e=null),n}},hn=e=>{const t=e.toString().replace(/(\/\/.*$)|(\/\*[\s\S]*?\*\/)|(\s*=[^,\)]*(('(?:\\'|[^'\r\n])*')|("(?:\\"|[^"\r\n])*"))|(\s*=[^,\)]*))/gm,"");return(t.slice(t.indexOf("(")+1,t.indexOf(")")).match(/([^\s,]+)/g)||[]).filter(e=>!/\:|\'|\"|\{|\}|^\d+$/gi.test(e))},pn=e=>{Bt(e);const[t,n]=[Object.getOwnPropertyNames(e).filter(t=>!(e?._NO_RENDER||[]).includes(t)),{}];return t.sort(),t.map(t=>n[t]={type:gt(e[t]),...Function.isFunction(e[t])?{params:hn(e[t])}:{value:ut(e[t])}}),n},dn=async(e,t)=>(assert(e,`Module \`${e}\` is required.`,500),Ge[e]||(Ge[e]=await i(765)(e)),!t?.raw&&Ge[e].default?Ge[e].default:Ge[e]),gn=e=>Array.isArray(e)?e.length:Object.isObject(e)?Object.keys(e).length:0,mn=(e,t)=>{const n={};return Object.keys(e).filter(e=>!t.includes(e)).map(t=>n[t]=e[t]),n},yn=()=>{const e=["Firefox",[de,"Edg"],pe,["MSIE","Trident"],"Safari"].map(at);try{for(let t of e)for(let e of t)if(navigator.userAgent.includes(e))return t[0];return"object"==typeof window}catch(e){}return!1},bn=()=>{try{if(le.stdout.isTTY&&"dumb"!==le.env.TERM)return"Node.js"}catch(e){}const e=yn();return!![pe,de].includes(e)&&e},vn=e=>((e||"").match(/"[^"]+"|'[^']+'|\S+/g)||[]).map(e=>e.replace(/^['"]|['"]$/g,"")),wn=e=>{It(e,null,null,{strict:!0});const[t,n]=[e.getHours(),e.getMinutes()],[r,i]=[60*(t>=12?t-12:t)+n,[]];for(const e in Xe){const[t,n]=e.split(":").map(e=>parseInt(e));i.push([Math.abs(r-(60*t+n)),e,t,n])}return i.sort((e,t)=>e[0]-t[0]),Xe[i[0][1]]},_n=e=>Object.fromEntries(Object.entries(e).map(e=>e.reverse()));i(251);const En={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},kn={};for(const[e,t]of Object.entries(En))kn[t]=Number.parseInt(e);function xn(e){return new DataView(e.buffer,e.byteOffset)}const Sn={len:1,get:(e,t)=>xn(e).getUint8(t),put:(e,t,n)=>(xn(e).setUint8(t,n),t+1)},On={len:2,get:(e,t)=>xn(e).getUint16(t,!0),put:(e,t,n)=>(xn(e).setUint16(t,n,!0),t+2)},An={len:2,get:(e,t)=>xn(e).getUint16(t),put:(e,t,n)=>(xn(e).setUint16(t,n),t+2)},Rn={len:4,get:(e,t)=>xn(e).getUint32(t,!0),put:(e,t,n)=>(xn(e).setUint32(t,n,!0),t+4)},jn={len:4,get:(e,t)=>xn(e).getUint32(t),put:(e,t,n)=>(xn(e).setUint32(t,n),t+4)},Tn={len:4,get:(e,t)=>xn(e).getInt32(t),put:(e,t,n)=>(xn(e).setInt32(t,n),t+4)},In={len:8,get:(e,t)=>xn(e).getBigUint64(t,!0),put:(e,t,n)=>(xn(e).setBigUint64(t,n,!0),t+8)};class Mn{constructor(e,t){this.len=e,this.encoding=t}get(e,t=0){return function(e,t="utf-8"){switch(t.toLowerCase()){case"utf-8":case"utf8":return void 0!==globalThis.TextDecoder?new globalThis.TextDecoder("utf-8").decode(e):function(e){let t="",n=0;for(;n<e.length;){const r=e[n++];if(r<128)t+=String.fromCharCode(r);else if(r<224){const i=63&e[n++];t+=String.fromCharCode((31&r)<<6|i)}else if(r<240){const i=63&e[n++],o=63&e[n++];t+=String.fromCharCode((15&r)<<12|i<<6|o)}else{let i=(7&r)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++];i-=65536,t+=String.fromCharCode(55296+(i>>10&1023),56320+(1023&i))}}return t}(e);case"utf-16le":return function(e){let t="";for(let n=0;n<e.length;n+=2)t+=String.fromCharCode(e[n]|e[n+1]<<8);return t}(e);case"ascii":return function(e){return String.fromCharCode(...e.map(e=>127&e))}(e);case"latin1":case"iso-8859-1":return function(e){return String.fromCharCode(...e)}(e);case"windows-1252":return function(e){let t="";for(const n of e)t+=n>=128&&n<=159&&En[n]?En[n]:String.fromCharCode(n);return t}(e);default:throw new RangeError(`Encoding '${t}' not supported`)}}(e.subarray(t,t+this.len),this.encoding)}}class Ln extends Error{constructor(){super("End-Of-Stream"),this.name="EndOfStreamError"}}class Bn extends Error{constructor(e="The operation was aborted"){super(e),this.name="AbortError"}}class Cn{constructor(){this.endOfStream=!1,this.interrupted=!1,this.peekQueue=[]}async peek(e,t=!1){const n=await this.read(e,t);return this.peekQueue.push(e.subarray(0,n)),n}async read(e,t=!1){if(0===e.length)return 0;let n=this.readFromPeekBuffer(e);if(this.endOfStream||(n+=await this.readRemainderFromStream(e.subarray(n),t)),0===n&&!t)throw new Ln;return n}readFromPeekBuffer(e){let t=e.length,n=0;for(;this.peekQueue.length>0&&t>0;){const r=this.peekQueue.pop();if(!r)throw new Error("peekData should be defined");const i=Math.min(r.length,t);e.set(r.subarray(0,i),n),n+=i,t-=i,i<r.length&&this.peekQueue.push(r.subarray(i))}return n}async readRemainderFromStream(e,t){let n=0;for(;n<e.length&&!this.endOfStream;){if(this.interrupted)throw new Bn;const r=await this.readFromStream(e.subarray(n),t);if(0===r)break;n+=r}if(!t&&n<e.length)throw new Ln;return n}}class Nn extends Cn{constructor(e){super(),this.reader=e}async abort(){return this.close()}async close(){this.reader.releaseLock()}}class Pn extends Nn{async readFromStream(e,t){if(0===e.length)return 0;const n=await this.reader.read(new Uint8Array(e.length),{min:t?void 0:e.length});return n.done&&(this.endOfStream=n.done),n.value?(e.set(n.value),n.value.length):0}}class Dn extends Cn{constructor(e){super(),this.reader=e,this.buffer=null}writeChunk(e,t){const n=Math.min(t.length,e.length);return e.set(t.subarray(0,n)),n<t.length?this.buffer=t.subarray(n):this.buffer=null,n}async readFromStream(e,t){if(0===e.length)return 0;let n=0;for(this.buffer&&(n+=this.writeChunk(e,this.buffer));n<e.length&&!this.endOfStream;){const t=await this.reader.read();if(t.done){this.endOfStream=!0;break}t.value&&(n+=this.writeChunk(e.subarray(n),t.value))}if(!t&&0===n&&this.endOfStream)throw new Ln;return n}abort(){return this.interrupted=!0,this.reader.cancel()}async close(){await this.abort(),this.reader.releaseLock()}}class Fn{constructor(e){this.numBuffer=new Uint8Array(8),this.position=0,this.onClose=e?.onClose,e?.abortSignal&&e.abortSignal.addEventListener("abort",()=>{this.abort()})}async readToken(e,t=this.position){const n=new Uint8Array(e.len);if(await this.readBuffer(n,{position:t})<e.len)throw new Ln;return e.get(n,0)}async peekToken(e,t=this.position){const n=new Uint8Array(e.len);if(await this.peekBuffer(n,{position:t})<e.len)throw new Ln;return e.get(n,0)}async readNumber(e){if(await this.readBuffer(this.numBuffer,{length:e.len})<e.len)throw new Ln;return e.get(this.numBuffer,0)}async peekNumber(e){if(await this.peekBuffer(this.numBuffer,{length:e.len})<e.len)throw new Ln;return e.get(this.numBuffer,0)}async ignore(e){if(void 0!==this.fileInfo.size){const t=this.fileInfo.size-this.position;if(e>t)return this.position+=t,t}return this.position+=e,e}async close(){await this.abort(),await(this.onClose?.())}normalizeOptions(e,t){if(!this.supportsRandomAccess()&&t&&void 0!==t.position&&t.position<this.position)throw new Error("`options.position` must be equal or greater than `tokenizer.position`");return{mayBeLess:!1,offset:0,length:e.length,position:this.position,...t}}abort(){return Promise.resolve()}}class Un extends Fn{constructor(e,t){super(t),this.streamReader=e,this.fileInfo=t?.fileInfo??{}}async readBuffer(e,t){const n=this.normalizeOptions(e,t),r=n.position-this.position;if(r>0)return await this.ignore(r),this.readBuffer(e,t);if(r<0)throw new Error("`options.position` must be equal or greater than `tokenizer.position`");if(0===n.length)return 0;const i=await this.streamReader.read(e.subarray(0,n.length),n.mayBeLess);if(this.position+=i,(!t||!t.mayBeLess)&&i<n.length)throw new Ln;return i}async peekBuffer(e,t){const n=this.normalizeOptions(e,t);let r=0;if(n.position){const t=n.position-this.position;if(t>0){const i=new Uint8Array(n.length+t);return r=await this.peekBuffer(i,{mayBeLess:n.mayBeLess}),e.set(i.subarray(t)),r-t}if(t<0)throw new Error("Cannot peek from a negative offset in a stream")}if(n.length>0){try{r=await this.streamReader.peek(e.subarray(0,n.length),n.mayBeLess)}catch(e){if(t?.mayBeLess&&e instanceof Ln)return 0;throw e}if(!n.mayBeLess&&r<n.length)throw new Ln}return r}async ignore(e){const t=Math.min(256e3,e),n=new Uint8Array(t);let r=0;for(;r<e;){const i=e-r,o=await this.readBuffer(n,{length:Math.min(t,i)});if(o<0)return o;r+=o}return r}abort(){return this.streamReader.abort()}async close(){return this.streamReader.close()}supportsRandomAccess(){return!1}}class zn extends Fn{constructor(e,t){super(t),this.uint8Array=e,this.fileInfo={...t?.fileInfo??{},size:e.length}}async readBuffer(e,t){t?.position&&(this.position=t.position);const n=await this.peekBuffer(e,t);return this.position+=n,n}async peekBuffer(e,t){const n=this.normalizeOptions(e,t),r=Math.min(this.uint8Array.length-n.position,n.length);if(!n.mayBeLess&&r<n.length)throw new Ln;return e.set(this.uint8Array.subarray(n.position,n.position+r)),r}close(){return super.close()}supportsRandomAccess(){return!0}setPosition(e){this.position=e}}class Wn extends Fn{constructor(e,t){super(t),this.blob=e,this.fileInfo={...t?.fileInfo??{},size:e.size,mimeType:e.type}}async readBuffer(e,t){t?.position&&(this.position=t.position);const n=await this.peekBuffer(e,t);return this.position+=n,n}async peekBuffer(e,t){const n=this.normalizeOptions(e,t),r=Math.min(this.blob.size-n.position,n.length);if(!n.mayBeLess&&r<n.length)throw new Ln;const i=await this.blob.slice(n.position,n.position+r).arrayBuffer();return e.set(new Uint8Array(i)),r}close(){return super.close()}supportsRandomAccess(){return!0}setPosition(e){this.position=e}}var qn=i(7833);const $n=67324752,Zn=33639248,Hn={get:e=>({signature:Rn.get(e,0),compressedSize:Rn.get(e,8),uncompressedSize:Rn.get(e,12)}),len:16},Vn={get(e){const t=On.get(e,6);return{signature:Rn.get(e,0),minVersion:On.get(e,4),dataDescriptor:!!(8&t),compressedMethod:On.get(e,8),compressedSize:Rn.get(e,18),uncompressedSize:Rn.get(e,22),filenameLength:On.get(e,26),extraFieldLength:On.get(e,28),filename:null}},len:30},Gn={get:e=>({signature:Rn.get(e,0),nrOfThisDisk:On.get(e,4),nrOfThisDiskWithTheStart:On.get(e,6),nrOfEntriesOnThisDisk:On.get(e,8),nrOfEntriesOfSize:On.get(e,10),sizeOfCd:Rn.get(e,12),offsetOfStartOfCd:Rn.get(e,16),zipFileCommentLength:On.get(e,20)}),len:22},Kn={get(e){const t=On.get(e,8);return{signature:Rn.get(e,0),minVersion:On.get(e,6),dataDescriptor:!!(8&t),compressedMethod:On.get(e,10),compressedSize:Rn.get(e,20),uncompressedSize:Rn.get(e,24),filenameLength:On.get(e,28),extraFieldLength:On.get(e,30),fileCommentLength:On.get(e,32),relativeOffsetOfLocalHeader:Rn.get(e,42),filename:null}},len:46};function Yn(e){const t=new Uint8Array(Rn.len);return Rn.put(t,0,e),t}const Jn=qn("tokenizer:inflate"),Xn=262144,Qn=Yn(134695760),er=Yn(101010256);class tr{constructor(e){this.tokenizer=e,this.syncBuffer=new Uint8Array(Xn)}async isZip(){return await this.peekSignature()===$n}peekSignature(){return this.tokenizer.peekToken(Rn)}async findEndOfCentralDirectoryLocator(){const e=this.tokenizer,t=Math.min(16384,e.fileInfo.size),n=this.syncBuffer.subarray(0,t);await this.tokenizer.readBuffer(n,{position:e.fileInfo.size-t});for(let r=n.length-4;r>=0;r--)if(n[r]===er[0]&&n[r+1]===er[1]&&n[r+2]===er[2]&&n[r+3]===er[3])return e.fileInfo.size-t+r;return-1}async readCentralDirectory(){if(!this.tokenizer.supportsRandomAccess())return void Jn("Cannot reading central-directory without random-read support");Jn("Reading central-directory...");const e=this.tokenizer.position,t=await this.findEndOfCentralDirectoryLocator();if(t>0){Jn("Central-directory 32-bit signature found");const n=await this.tokenizer.readToken(Gn,t),r=[];this.tokenizer.setPosition(n.offsetOfStartOfCd);for(let e=0;e<n.nrOfEntriesOfSize;++e){const t=await this.tokenizer.readToken(Kn);if(t.signature!==Zn)throw new Error("Expected Central-File-Header signature");t.filename=await this.tokenizer.readToken(new Mn(t.filenameLength,"utf-8")),await this.tokenizer.ignore(t.extraFieldLength),await this.tokenizer.ignore(t.fileCommentLength),r.push(t),Jn(`Add central-directory file-entry: n=${e+1}/${r.length}: filename=${r[e].filename}`)}return this.tokenizer.setPosition(e),r}this.tokenizer.setPosition(e)}async unzip(e){const t=await this.readCentralDirectory();if(t)return this.iterateOverCentralDirectory(t,e);let n=!1;do{const t=await this.readLocalFileHeader();if(!t)break;const r=e(t);let i;if(n=!!r.stop,await this.tokenizer.ignore(t.extraFieldLength),t.dataDescriptor&&0===t.compressedSize){const e=[];let n=Xn;Jn("Compressed-file-size unknown, scanning for next data-descriptor-signature....");let i=-1;for(;i<0&&n===Xn;){n=await this.tokenizer.peekBuffer(this.syncBuffer,{mayBeLess:!0}),i=nr(this.syncBuffer.subarray(0,n),Qn);const t=i>=0?i:n;if(r.handler){const n=new Uint8Array(t);await this.tokenizer.readBuffer(n),e.push(n)}else await this.tokenizer.ignore(t)}Jn(`Found data-descriptor-signature at pos=${this.tokenizer.position}`),r.handler&&await this.inflate(t,rr(e),r.handler)}else r.handler?(Jn(`Reading compressed-file-data: ${t.compressedSize} bytes`),i=new Uint8Array(t.compressedSize),await this.tokenizer.readBuffer(i),await this.inflate(t,i,r.handler)):(Jn(`Ignoring compressed-file-data: ${t.compressedSize} bytes`),await this.tokenizer.ignore(t.compressedSize));if(Jn(`Reading data-descriptor at pos=${this.tokenizer.position}`),t.dataDescriptor&&134695760!==(await this.tokenizer.readToken(Hn)).signature)throw new Error("Expected data-descriptor-signature at position "+(this.tokenizer.position-Hn.len))}while(!n)}async iterateOverCentralDirectory(e,t){for(const n of e){const e=t(n);if(e.handler){this.tokenizer.setPosition(n.relativeOffsetOfLocalHeader);const t=await this.readLocalFileHeader();if(t){await this.tokenizer.ignore(t.extraFieldLength);const r=new Uint8Array(n.compressedSize);await this.tokenizer.readBuffer(r),await this.inflate(t,r,e.handler)}}if(e.stop)break}}async inflate(e,t,n){if(0===e.compressedMethod)return n(t);if(8!==e.compressedMethod)throw new Error(`Unsupported ZIP compression method: ${e.compressedMethod}`);return Jn(`Decompress filename=${e.filename}, compressed-size=${t.length}`),n(await tr.decompressDeflateRaw(t))}static async decompressDeflateRaw(e){const t=new ReadableStream({start(t){t.enqueue(e),t.close()}}),n=new DecompressionStream("deflate-raw"),r=t.pipeThrough(n);try{const e=new Response(r),t=await e.arrayBuffer();return new Uint8Array(t)}catch(e){const t=e instanceof Error?`Failed to deflate ZIP entry: ${e.message}`:"Unknown decompression error in ZIP entry";throw new TypeError(t)}}async readLocalFileHeader(){const e=await this.tokenizer.peekToken(Rn);if(e===$n){const e=await this.tokenizer.readToken(Vn);return e.filename=await this.tokenizer.readToken(new Mn(e.filenameLength,"utf-8")),e}if(e===Zn)return!1;if(3759263696===e)throw new Error("Encrypted ZIP");throw new Error("Unexpected signature")}}function nr(e,t){const n=e.length,r=t.length;if(r>n)return-1;for(let i=0;i<=n-r;i++){let n=!0;for(let o=0;o<r;o++)if(e[i+o]!==t[o]){n=!1;break}if(n)return i}return-1}function rr(e){const t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}class ir{constructor(e){this.tokenizer=e}inflate(){const e=this.tokenizer;return new ReadableStream({async pull(t){const n=new Uint8Array(1024),r=await e.readBuffer(n,{mayBeLess:!0});0!==r?t.enqueue(n.subarray(0,r)):t.close()}}).pipeThrough(new DecompressionStream("gzip"))}}function or(e){const{byteLength:t}=e;return 6===t?e.getUint16(0)*2**32+e.getUint32(2):5===t?e.getUint8(0)*2**32+e.getUint32(1):4===t?e.getUint32(0):3===t?65536*e.getUint8(0)+e.getUint16(1):2===t?e.getUint16(0):1===t?e.getUint8(0):void 0}Object.prototype.toString,new globalThis.TextDecoder("utf8"),new globalThis.TextEncoder,Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));const ar={get:(e,t)=>127&e[t+3]|e[t+2]<<7|e[t+1]<<14|e[t]<<21,len:4},sr=4100;async function cr(e,t){return new fr(t).fromBuffer(e)}function ur(e){switch(e=e.toLowerCase()){case"application/epub+zip":return{ext:"epub",mime:e};case"application/vnd.oasis.opendocument.text":return{ext:"odt",mime:e};case"application/vnd.oasis.opendocument.text-template":return{ext:"ott",mime:e};case"application/vnd.oasis.opendocument.spreadsheet":return{ext:"ods",mime:e};case"application/vnd.oasis.opendocument.spreadsheet-template":return{ext:"ots",mime:e};case"application/vnd.oasis.opendocument.presentation":return{ext:"odp",mime:e};case"application/vnd.oasis.opendocument.presentation-template":return{ext:"otp",mime:e};case"application/vnd.oasis.opendocument.graphics":return{ext:"odg",mime:e};case"application/vnd.oasis.opendocument.graphics-template":return{ext:"otg",mime:e};case"application/vnd.openxmlformats-officedocument.presentationml.slideshow":return{ext:"ppsx",mime:e};case"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":return{ext:"xlsx",mime:e};case"application/vnd.ms-excel.sheet.macroenabled":return{ext:"xlsm",mime:"application/vnd.ms-excel.sheet.macroenabled.12"};case"application/vnd.openxmlformats-officedocument.spreadsheetml.template":return{ext:"xltx",mime:e};case"application/vnd.ms-excel.template.macroenabled":return{ext:"xltm",mime:"application/vnd.ms-excel.template.macroenabled.12"};case"application/vnd.ms-powerpoint.slideshow.macroenabled":return{ext:"ppsm",mime:"application/vnd.ms-powerpoint.slideshow.macroenabled.12"};case"application/vnd.openxmlformats-officedocument.wordprocessingml.document":return{ext:"docx",mime:e};case"application/vnd.ms-word.document.macroenabled":return{ext:"docm",mime:"application/vnd.ms-word.document.macroenabled.12"};case"application/vnd.openxmlformats-officedocument.wordprocessingml.template":return{ext:"dotx",mime:e};case"application/vnd.ms-word.template.macroenabledtemplate":return{ext:"dotm",mime:"application/vnd.ms-word.template.macroenabled.12"};case"application/vnd.openxmlformats-officedocument.presentationml.template":return{ext:"potx",mime:e};case"application/vnd.ms-powerpoint.template.macroenabled":return{ext:"potm",mime:"application/vnd.ms-powerpoint.template.macroenabled.12"};case"application/vnd.openxmlformats-officedocument.presentationml.presentation":return{ext:"pptx",mime:e};case"application/vnd.ms-powerpoint.presentation.macroenabled":return{ext:"pptm",mime:"application/vnd.ms-powerpoint.presentation.macroenabled.12"};case"application/vnd.ms-visio.drawing":return{ext:"vsdx",mime:"application/vnd.visio"};case"application/vnd.ms-package.3dmanufacturing-3dmodel+xml":return{ext:"3mf",mime:"model/3mf"}}}function lr(e,t,n){n={offset:0,...n};for(const[r,i]of t.entries())if(n.mask){if(i!==(n.mask[r]&e[r+n.offset]))return!1}else if(i!==e[r+n.offset])return!1;return!0}class fr{constructor(e){this.options={mpegOffsetTolerance:0,...e},this.detectors=[...e?.customDetectors??[],{id:"core",detect:this.detectConfident},{id:"core.imprecise",detect:this.detectImprecise}],this.tokenizerOptions={abortSignal:e?.signal}}async fromTokenizer(e){const t=e.position;for(const n of this.detectors){const r=await n.detect(e);if(r)return r;if(t!==e.position)return}}async fromBuffer(e){if(!(e instanceof Uint8Array||e instanceof ArrayBuffer))throw new TypeError(`Expected the \`input\` argument to be of type \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof e}\``);const t=e instanceof Uint8Array?e:new Uint8Array(e);var n,r;if(t?.length>1)return this.fromTokenizer((n=t,r=this.tokenizerOptions,new zn(n,r)))}async fromBlob(e){const t=function(e,t){return new Wn(e,t)}(e,this.tokenizerOptions);try{return await this.fromTokenizer(t)}finally{await t.close()}}async fromStream(e){const t=function(e,t){const n=function(e){try{const t=e.getReader({mode:"byob"});return t instanceof ReadableStreamDefaultReader?new Dn(t):new Pn(t)}catch(t){if(t instanceof TypeError)return new Dn(e.getReader());throw t}}(e),r=t??{},i=r.onClose;return r.onClose=async()=>{if(await n.close(),i)return i()},new Un(n,r)}(e,this.tokenizerOptions);try{return await this.fromTokenizer(t)}finally{await t.close()}}async toDetectionStream(e,t){const{sampleSize:n=sr}=t;let r,i;const o=e.getReader({mode:"byob"});try{const{value:e,done:t}=await o.read(new Uint8Array(n));if(i=e,!t&&e)try{r=await this.fromBuffer(e.subarray(0,n))}catch(e){if(!(e instanceof Ln))throw e;r=void 0}i=e}finally{o.releaseLock()}const a=new TransformStream({async start(e){e.enqueue(i)},transform(e,t){t.enqueue(e)}}),s=e.pipeThrough(a);return s.fileType=r,s}check(e,t){return lr(this.buffer,e,t)}checkString(e,t){return this.check(function(e,t){if("utf-16le"===t){const t=[];for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t.push(255&r,r>>8&255)}return t}if("utf-16be"===t){const t=[];for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t.push(r>>8&255,255&r)}return t}return[...e].map(e=>e.charCodeAt(0))}(e,t?.encoding),t)}detectConfident=async e=>{if(this.buffer=new Uint8Array(sr),void 0===e.fileInfo.size&&(e.fileInfo.size=Number.MAX_SAFE_INTEGER),this.tokenizer=e,await e.peekBuffer(this.buffer,{length:32,mayBeLess:!0}),this.check([66,77]))return{ext:"bmp",mime:"image/bmp"};if(this.check([11,119]))return{ext:"ac3",mime:"audio/vnd.dolby.dd-raw"};if(this.check([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(this.check([77,90]))return{ext:"exe",mime:"application/x-msdownload"};if(this.check([37,33]))return await e.peekBuffer(this.buffer,{length:24,mayBeLess:!0}),this.checkString("PS-Adobe-",{offset:2})&&this.checkString(" EPSF-",{offset:14})?{ext:"eps",mime:"application/eps"}:{ext:"ps",mime:"application/postscript"};if(this.check([31,160])||this.check([31,157]))return{ext:"Z",mime:"application/x-compress"};if(this.check([199,113]))return{ext:"cpio",mime:"application/x-cpio"};if(this.check([96,234]))return{ext:"arj",mime:"application/x-arj"};if(this.check([239,187,191]))return this.tokenizer.ignore(3),this.detectConfident(e);if(this.check([71,73,70]))return{ext:"gif",mime:"image/gif"};if(this.check([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(this.check([31,139,8])){const t=new ir(e).inflate();let n=!0;try{let r;try{r=await this.fromStream(t)}catch{n=!1}if(r&&"tar"===r.ext)return{ext:"tar.gz",mime:"application/gzip"}}finally{n&&await t.cancel()}return{ext:"gz",mime:"application/gzip"}}if(this.check([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(this.checkString("ID3")){await e.ignore(6);const i=await e.readToken(ar);return e.position+i>e.fileInfo.size?{ext:"mp3",mime:"audio/mpeg"}:(await e.ignore(i),this.fromTokenizer(e))}if(this.checkString("MP+"))return{ext:"mpc",mime:"audio/x-musepack"};if((67===this.buffer[0]||70===this.buffer[0])&&this.check([87,83],{offset:1}))return{ext:"swf",mime:"application/x-shockwave-flash"};if(this.check([255,216,255]))return this.check([247],{offset:3})?{ext:"jls",mime:"image/jls"}:{ext:"jpg",mime:"image/jpeg"};if(this.check([79,98,106,1]))return{ext:"avro",mime:"application/avro"};if(this.checkString("FLIF"))return{ext:"flif",mime:"image/flif"};if(this.checkString("8BPS"))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(this.checkString("MPCK"))return{ext:"mpc",mime:"audio/x-musepack"};if(this.checkString("FORM"))return{ext:"aif",mime:"audio/aiff"};if(this.checkString("icns",{offset:0}))return{ext:"icns",mime:"image/icns"};if(this.check([80,75,3,4])){let o;return await new tr(e).unzip(e=>{switch(e.filename){case"META-INF/mozilla.rsa":return o={ext:"xpi",mime:"application/x-xpinstall"},{stop:!0};case"META-INF/MANIFEST.MF":return o={ext:"jar",mime:"application/java-archive"},{stop:!0};case"mimetype":return{async handler(e){const t=new TextDecoder("utf-8").decode(e).trim();o=ur(t)},stop:!0};case"[Content_Types].xml":return{async handler(e){let t=new TextDecoder("utf-8").decode(e);const n=t.indexOf('.main+xml"');if(-1===n){const e="application/vnd.ms-package.3dmanufacturing-3dmodel+xml";t.includes(`ContentType="${e}"`)&&(o=ur(e))}else{t=t.slice(0,Math.max(0,n));const e=t.lastIndexOf('"'),r=t.slice(Math.max(0,e+1));o=ur(r)}},stop:!0};default:return/classes\d*\.dex/.test(e.filename)?(o={ext:"apk",mime:"application/vnd.android.package-archive"},{stop:!0}):{}}}).catch(e=>{if(!(e instanceof Ln))throw e}),o??{ext:"zip",mime:"application/zip"}}if(this.checkString("OggS")){await e.ignore(28);const a=new Uint8Array(8);return await e.readBuffer(a),lr(a,[79,112,117,115,72,101,97,100])?{ext:"opus",mime:"audio/ogg; codecs=opus"}:lr(a,[128,116,104,101,111,114,97])?{ext:"ogv",mime:"video/ogg"}:lr(a,[1,118,105,100,101,111,0])?{ext:"ogm",mime:"video/ogg"}:lr(a,[127,70,76,65,67])?{ext:"oga",mime:"audio/ogg"}:lr(a,[83,112,101,101,120,32,32])?{ext:"spx",mime:"audio/ogg"}:lr(a,[1,118,111,114,98,105,115])?{ext:"ogg",mime:"audio/ogg"}:{ext:"ogx",mime:"application/ogg"}}if(this.check([80,75])&&(3===this.buffer[2]||5===this.buffer[2]||7===this.buffer[2])&&(4===this.buffer[3]||6===this.buffer[3]||8===this.buffer[3]))return{ext:"zip",mime:"application/zip"};if(this.checkString("MThd"))return{ext:"mid",mime:"audio/midi"};if(this.checkString("wOFF")&&(this.check([0,1,0,0],{offset:4})||this.checkString("OTTO",{offset:4})))return{ext:"woff",mime:"font/woff"};if(this.checkString("wOF2")&&(this.check([0,1,0,0],{offset:4})||this.checkString("OTTO",{offset:4})))return{ext:"woff2",mime:"font/woff2"};if(this.check([212,195,178,161])||this.check([161,178,195,212]))return{ext:"pcap",mime:"application/vnd.tcpdump.pcap"};if(this.checkString("DSD "))return{ext:"dsf",mime:"audio/x-dsf"};if(this.checkString("LZIP"))return{ext:"lz",mime:"application/x-lzip"};if(this.checkString("fLaC"))return{ext:"flac",mime:"audio/flac"};if(this.check([66,80,71,251]))return{ext:"bpg",mime:"image/bpg"};if(this.checkString("wvpk"))return{ext:"wv",mime:"audio/wavpack"};if(this.checkString("%PDF"))return{ext:"pdf",mime:"application/pdf"};if(this.check([0,97,115,109]))return{ext:"wasm",mime:"application/wasm"};if(this.check([73,73])){const s=await this.readTiffHeader(!1);if(s)return s}if(this.check([77,77])){const c=await this.readTiffHeader(!0);if(c)return c}if(this.checkString("MAC "))return{ext:"ape",mime:"audio/ape"};if(this.check([26,69,223,163])){async function u(){const t=await e.peekNumber(Sn);let n=128,r=0;for(;0===(t&n)&&0!==n;)++r,n>>=1;const i=new Uint8Array(r+1);return await e.readBuffer(i),i}async function l(){const e=await u(),t=await u();t[0]^=128>>t.length-1;const n=Math.min(6,t.length),r=new DataView(e.buffer),i=new DataView(t.buffer,t.length-n,n);return{id:or(r),len:or(i)}}async function f(t){for(;t>0;){const n=await l();if(17026===n.id)return(await e.readToken(new Mn(n.len))).replaceAll(/\00.*$/g,"");await e.ignore(n.len),--t}}const h=await l();switch(await f(h.len)){case"webm":return{ext:"webm",mime:"video/webm"};case"matroska":return{ext:"mkv",mime:"video/matroska"};default:return}}if(this.checkString("SQLi"))return{ext:"sqlite",mime:"application/x-sqlite3"};if(this.check([78,69,83,26]))return{ext:"nes",mime:"application/x-nintendo-nes-rom"};if(this.checkString("Cr24"))return{ext:"crx",mime:"application/x-google-chrome-extension"};if(this.checkString("MSCF")||this.checkString("ISc("))return{ext:"cab",mime:"application/vnd.ms-cab-compressed"};if(this.check([237,171,238,219]))return{ext:"rpm",mime:"application/x-rpm"};if(this.check([197,208,211,198]))return{ext:"eps",mime:"application/eps"};if(this.check([40,181,47,253]))return{ext:"zst",mime:"application/zstd"};if(this.check([127,69,76,70]))return{ext:"elf",mime:"application/x-elf"};if(this.check([33,66,68,78]))return{ext:"pst",mime:"application/vnd.ms-outlook"};if(this.checkString("PAR1")||this.checkString("PARE"))return{ext:"parquet",mime:"application/vnd.apache.parquet"};if(this.checkString("ttcf"))return{ext:"ttc",mime:"font/collection"};if(this.check([207,250,237,254]))return{ext:"macho",mime:"application/x-mach-binary"};if(this.check([4,34,77,24]))return{ext:"lz4",mime:"application/x-lz4"};if(this.checkString("regf"))return{ext:"dat",mime:"application/x-ft-windows-registry-hive"};if(this.check([79,84,84,79,0]))return{ext:"otf",mime:"font/otf"};if(this.checkString("#!AMR"))return{ext:"amr",mime:"audio/amr"};if(this.checkString("{\\rtf"))return{ext:"rtf",mime:"application/rtf"};if(this.check([70,76,86,1]))return{ext:"flv",mime:"video/x-flv"};if(this.checkString("IMPM"))return{ext:"it",mime:"audio/x-it"};if(this.checkString("-lh0-",{offset:2})||this.checkString("-lh1-",{offset:2})||this.checkString("-lh2-",{offset:2})||this.checkString("-lh3-",{offset:2})||this.checkString("-lh4-",{offset:2})||this.checkString("-lh5-",{offset:2})||this.checkString("-lh6-",{offset:2})||this.checkString("-lh7-",{offset:2})||this.checkString("-lzs-",{offset:2})||this.checkString("-lz4-",{offset:2})||this.checkString("-lz5-",{offset:2})||this.checkString("-lhd-",{offset:2}))return{ext:"lzh",mime:"application/x-lzh-compressed"};if(this.check([0,0,1,186])){if(this.check([33],{offset:4,mask:[241]}))return{ext:"mpg",mime:"video/MP1S"};if(this.check([68],{offset:4,mask:[196]}))return{ext:"mpg",mime:"video/MP2P"}}if(this.checkString("ITSF"))return{ext:"chm",mime:"application/vnd.ms-htmlhelp"};if(this.check([202,254,186,190]))return{ext:"class",mime:"application/java-vm"};if(this.checkString(".RMF"))return{ext:"rm",mime:"application/vnd.rn-realmedia"};if(this.checkString("DRACO"))return{ext:"drc",mime:"application/vnd.google.draco"};if(this.check([253,55,122,88,90,0]))return{ext:"xz",mime:"application/x-xz"};if(this.checkString("<?xml "))return{ext:"xml",mime:"application/xml"};if(this.check([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(this.check([82,97,114,33,26,7])&&(0===this.buffer[6]||1===this.buffer[6]))return{ext:"rar",mime:"application/x-rar-compressed"};if(this.checkString("solid "))return{ext:"stl",mime:"model/stl"};if(this.checkString("AC")){const p=new Mn(4,"latin1").get(this.buffer,2);if(p.match("^d*")&&p>=1e3&&p<=1050)return{ext:"dwg",mime:"image/vnd.dwg"}}if(this.checkString("070707"))return{ext:"cpio",mime:"application/x-cpio"};if(this.checkString("BLENDER"))return{ext:"blend",mime:"application/x-blender"};if(this.checkString("!<arch>"))return await e.ignore(8),"debian-binary"===await e.readToken(new Mn(13,"ascii"))?{ext:"deb",mime:"application/x-deb"}:{ext:"ar",mime:"application/x-unix-archive"};if(this.checkString("WEBVTT")&&["\n","\r","\t"," ","\0"].some(e=>this.checkString(e,{offset:6})))return{ext:"vtt",mime:"text/vtt"};if(this.check([137,80,78,71,13,10,26,10])){async function d(){return{length:await e.readToken(Tn),type:await e.readToken(new Mn(4,"latin1"))}}await e.ignore(8);do{const g=await d();if(g.length<0)return;switch(g.type){case"IDAT":return{ext:"png",mime:"image/png"};case"acTL":return{ext:"apng",mime:"image/apng"};default:await e.ignore(g.length+4)}}while(e.position+8<e.fileInfo.size);return{ext:"png",mime:"image/png"}}if(this.check([65,82,82,79,87,49,0,0]))return{ext:"arrow",mime:"application/vnd.apache.arrow.file"};if(this.check([103,108,84,70,2,0,0,0]))return{ext:"glb",mime:"model/gltf-binary"};if(this.check([102,114,101,101],{offset:4})||this.check([109,100,97,116],{offset:4})||this.check([109,111,111,118],{offset:4})||this.check([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(this.check([73,73,82,79,8,0,0,0,24]))return{ext:"orf",mime:"image/x-olympus-orf"};if(this.checkString("gimp xcf "))return{ext:"xcf",mime:"image/x-xcf"};if(this.checkString("ftyp",{offset:4})&&96&this.buffer[8]){const m=new Mn(4,"latin1").get(this.buffer,8).replace("\0"," ").trim();switch(m){case"avif":case"avis":return{ext:"avif",mime:"image/avif"};case"mif1":return{ext:"heic",mime:"image/heif"};case"msf1":return{ext:"heic",mime:"image/heif-sequence"};case"heic":case"heix":return{ext:"heic",mime:"image/heic"};case"hevc":case"hevx":return{ext:"heic",mime:"image/heic-sequence"};case"qt":return{ext:"mov",mime:"video/quicktime"};case"M4V":case"M4VH":case"M4VP":return{ext:"m4v",mime:"video/x-m4v"};case"M4P":return{ext:"m4p",mime:"video/mp4"};case"M4B":return{ext:"m4b",mime:"audio/mp4"};case"M4A":return{ext:"m4a",mime:"audio/x-m4a"};case"F4V":return{ext:"f4v",mime:"video/mp4"};case"F4P":return{ext:"f4p",mime:"video/mp4"};case"F4A":return{ext:"f4a",mime:"audio/mp4"};case"F4B":return{ext:"f4b",mime:"audio/mp4"};case"crx":return{ext:"cr3",mime:"image/x-canon-cr3"};default:return m.startsWith("3g")?m.startsWith("3g2")?{ext:"3g2",mime:"video/3gpp2"}:{ext:"3gp",mime:"video/3gpp"}:{ext:"mp4",mime:"video/mp4"}}}if(this.checkString("REGEDIT4\r\n"))return{ext:"reg",mime:"application/x-ms-regedit"};if(this.check([82,73,70,70])){if(this.checkString("WEBP",{offset:8}))return{ext:"webp",mime:"image/webp"};if(this.check([65,86,73],{offset:8}))return{ext:"avi",mime:"video/vnd.avi"};if(this.check([87,65,86,69],{offset:8}))return{ext:"wav",mime:"audio/wav"};if(this.check([81,76,67,77],{offset:8}))return{ext:"qcp",mime:"audio/qcelp"}}if(this.check([73,73,85,0,24,0,0,0,136,231,116,216]))return{ext:"rw2",mime:"image/x-panasonic-rw2"};if(this.check([48,38,178,117,142,102,207,17,166,217])){async function y(){const t=new Uint8Array(16);return await e.readBuffer(t),{id:t,size:Number(await e.readToken(In))}}for(await e.ignore(30);e.position+24<e.fileInfo.size;){const b=await y();let v=b.size-24;if(lr(b.id,[145,7,220,183,183,169,207,17,142,230,0,192,12,32,83,101])){const w=new Uint8Array(16);if(v-=await e.readBuffer(w),lr(w,[64,158,105,248,77,91,207,17,168,253,0,128,95,92,68,43]))return{ext:"asf",mime:"audio/x-ms-asf"};if(lr(w,[192,239,25,188,77,91,207,17,168,253,0,128,95,92,68,43]))return{ext:"asf",mime:"video/x-ms-asf"};break}await e.ignore(v)}return{ext:"asf",mime:"application/vnd.ms-asf"}}if(this.check([171,75,84,88,32,49,49,187,13,10,26,10]))return{ext:"ktx",mime:"image/ktx"};if((this.check([126,16,4])||this.check([126,24,4]))&&this.check([48,77,73,69],{offset:4}))return{ext:"mie",mime:"application/x-mie"};if(this.check([39,10,0,0,0,0,0,0,0,0,0,0],{offset:2}))return{ext:"shp",mime:"application/x-esri-shape"};if(this.check([255,79,255,81]))return{ext:"j2c",mime:"image/j2c"};if(this.check([0,0,0,12,106,80,32,32,13,10,135,10]))switch(await e.ignore(20),await e.readToken(new Mn(4,"ascii"))){case"jp2 ":return{ext:"jp2",mime:"image/jp2"};case"jpx ":return{ext:"jpx",mime:"image/jpx"};case"jpm ":return{ext:"jpm",mime:"image/jpm"};case"mjp2":return{ext:"mj2",mime:"image/mj2"};default:return}if(this.check([255,10])||this.check([0,0,0,12,74,88,76,32,13,10,135,10]))return{ext:"jxl",mime:"image/jxl"};if(this.check([254,255]))return this.checkString("<?xml ",{offset:2,encoding:"utf-16be"})?{ext:"xml",mime:"application/xml"}:void 0;if(this.check([208,207,17,224,161,177,26,225]))return{ext:"cfb",mime:"application/x-cfb"};if(await e.peekBuffer(this.buffer,{length:Math.min(256,e.fileInfo.size),mayBeLess:!0}),this.check([97,99,115,112],{offset:36}))return{ext:"icc",mime:"application/vnd.iccprofile"};if(this.checkString("**ACE",{offset:7})&&this.checkString("**",{offset:12}))return{ext:"ace",mime:"application/x-ace-compressed"};if(this.checkString("BEGIN:")){if(this.checkString("VCARD",{offset:6}))return{ext:"vcf",mime:"text/vcard"};if(this.checkString("VCALENDAR",{offset:6}))return{ext:"ics",mime:"text/calendar"}}if(this.checkString("FUJIFILMCCD-RAW"))return{ext:"raf",mime:"image/x-fujifilm-raf"};if(this.checkString("Extended Module:"))return{ext:"xm",mime:"audio/x-xm"};if(this.checkString("Creative Voice File"))return{ext:"voc",mime:"audio/x-voc"};if(this.check([4,0,0,0])&&this.buffer.length>=16){const _=new DataView(this.buffer.buffer).getUint32(12,!0);if(_>12&&this.buffer.length>=_+16)try{const E=(new TextDecoder).decode(this.buffer.subarray(16,_+16));if(JSON.parse(E).files)return{ext:"asar",mime:"application/x-asar"}}catch{}}if(this.check([6,14,43,52,2,5,1,1,13,1,2,1,1,2]))return{ext:"mxf",mime:"application/mxf"};if(this.checkString("SCRM",{offset:44}))return{ext:"s3m",mime:"audio/x-s3m"};if(this.check([71])&&this.check([71],{offset:188}))return{ext:"mts",mime:"video/mp2t"};if(this.check([71],{offset:4})&&this.check([71],{offset:196}))return{ext:"mts",mime:"video/mp2t"};if(this.check([66,79,79,75,77,79,66,73],{offset:60}))return{ext:"mobi",mime:"application/x-mobipocket-ebook"};if(this.check([68,73,67,77],{offset:128}))return{ext:"dcm",mime:"application/dicom"};if(this.check([76,0,0,0,1,20,2,0,0,0,0,0,192,0,0,0,0,0,0,70]))return{ext:"lnk",mime:"application/x.ms.shortcut"};if(this.check([98,111,111,107,0,0,0,0,109,97,114,107,0,0,0,0]))return{ext:"alias",mime:"application/x.apple.alias"};if(this.checkString("Kaydara FBX Binary \0"))return{ext:"fbx",mime:"application/x.autodesk.fbx"};if(this.check([76,80],{offset:34})&&(this.check([0,0,1],{offset:8})||this.check([1,0,2],{offset:8})||this.check([2,0,2],{offset:8})))return{ext:"eot",mime:"application/vnd.ms-fontobject"};if(this.check([6,6,237,245,216,29,70,229,189,49,239,231,254,116,183,29]))return{ext:"indd",mime:"application/x-indesign"};if(await e.peekBuffer(this.buffer,{length:Math.min(512,e.fileInfo.size),mayBeLess:!0}),this.checkString("ustar",{offset:257})&&(this.checkString("\0",{offset:262})||this.checkString(" ",{offset:262}))||this.check([0,0,0,0,0,0],{offset:257})&&function(e,t=0){const n=Number.parseInt(new Mn(6).get(e,148).replace(/\0.*$/,"").trim(),8);if(Number.isNaN(n))return!1;let r=256;for(let n=t;n<t+148;n++)r+=e[n];for(let n=t+156;n<t+512;n++)r+=e[n];return n===r}(this.buffer))return{ext:"tar",mime:"application/x-tar"};if(this.check([255,254])){const k="utf-16le";return this.checkString("<?xml ",{offset:2,encoding:k})?{ext:"xml",mime:"application/xml"}:this.check([255,14],{offset:2})&&this.checkString("SketchUp Model",{offset:4,encoding:k})?{ext:"skp",mime:"application/vnd.sketchup.skp"}:this.checkString("Windows Registry Editor Version 5.00\r\n",{offset:2,encoding:k})?{ext:"reg",mime:"application/x-ms-regedit"}:void 0}return this.checkString("-----BEGIN PGP MESSAGE-----")?{ext:"pgp",mime:"application/pgp-encrypted"}:void 0};detectImprecise=async e=>{if(this.buffer=new Uint8Array(sr),await e.peekBuffer(this.buffer,{length:Math.min(8,e.fileInfo.size),mayBeLess:!0}),this.check([0,0,1,186])||this.check([0,0,1,179]))return{ext:"mpg",mime:"video/mpeg"};if(this.check([0,1,0,0,0]))return{ext:"ttf",mime:"font/ttf"};if(this.check([0,0,1,0]))return{ext:"ico",mime:"image/x-icon"};if(this.check([0,0,2,0]))return{ext:"cur",mime:"image/x-icon"};if(await e.peekBuffer(this.buffer,{length:Math.min(2+this.options.mpegOffsetTolerance,e.fileInfo.size),mayBeLess:!0}),this.buffer.length>=2+this.options.mpegOffsetTolerance)for(let e=0;e<=this.options.mpegOffsetTolerance;++e){const t=this.scanMpeg(e);if(t)return t}};async readTiffTag(e){const t=await this.tokenizer.readToken(e?An:On);switch(this.tokenizer.ignore(10),t){case 50341:return{ext:"arw",mime:"image/x-sony-arw"};case 50706:return{ext:"dng",mime:"image/x-adobe-dng"}}}async readTiffIFD(e){const t=await this.tokenizer.readToken(e?An:On);for(let n=0;n<t;++n){const t=await this.readTiffTag(e);if(t)return t}}async readTiffHeader(e){const t=(e?An:On).get(this.buffer,2),n=(e?jn:Rn).get(this.buffer,4);if(42===t){if(n>=6){if(this.checkString("CR",{offset:8}))return{ext:"cr2",mime:"image/x-canon-cr2"};if(n>=8){const t=(e?An:On).get(this.buffer,8),n=(e?An:On).get(this.buffer,10);if(28===t&&254===n||31===t&&11===n)return{ext:"nef",mime:"image/x-nikon-nef"}}}return await this.tokenizer.ignore(n),await this.readTiffIFD(e)??{ext:"tif",mime:"image/tiff"}}if(43===t)return{ext:"tif",mime:"image/tiff"}}scanMpeg(e){if(this.check([255,224],{offset:e,mask:[255,224]})){if(this.check([16],{offset:e+1,mask:[22]}))return this.check([8],{offset:e+1,mask:[8]}),{ext:"aac",mime:"audio/aac"};if(this.check([2],{offset:e+1,mask:[6]}))return{ext:"mp3",mime:"audio/mpeg"};if(this.check([4],{offset:e+1,mask:[6]}))return{ext:"mp2",mime:"audio/mpeg"};if(this.check([6],{offset:e+1,mask:[6]}))return{ext:"mp1",mime:"audio/mpeg"}}}}new Set(["jpg","png","apng","gif","webp","flif","xcf","cr2","cr3","orf","arw","dng","nef","rw2","raf","tif","bmp","icns","jxr","psd","indd","zip","tar","rar","gz","bz2","7z","dmg","mp4","mid","mkv","webm","mov","avi","mpg","mp2","mp3","m4a","oga","ogg","ogv","opus","flac","wav","spx","amr","pdf","epub","elf","macho","exe","swf","rtf","wasm","woff","woff2","eot","ttf","otf","ttc","ico","flv","ps","xz","sqlite","nes","crx","xpi","cab","deb","ar","rpm","Z","lz","cfb","mxf","mts","blend","bpg","docx","pptx","xlsx","3gp","3g2","j2c","jp2","jpm","jpx","mj2","aif","qcp","odt","ods","odp","xml","mobi","heic","cur","ktx","ape","wv","dcm","ics","glb","pcap","dsf","lnk","alias","voc","ac3","m4v","m4p","m4b","f4v","f4p","f4b","f4a","mie","asf","ogm","ogx","mpc","arrow","shp","aac","mp1","it","s3m","xm","skp","avif","eps","lzh","pgp","asar","stl","chm","3mf","zst","jxl","vcf","jls","pst","dwg","parquet","class","arj","cpio","ace","avro","icc","fbx","vsdx","vtt","apk","drc","lz4","potx","xltx","dotx","xltm","ott","ots","otp","odg","otg","xlsm","docm","dotm","potm","pptm","jar","rm","ppsm","ppsx","tar.gz","reg","dat"]),new Set(["image/jpeg","image/png","image/gif","image/webp","image/flif","image/x-xcf","image/x-canon-cr2","image/x-canon-cr3","image/tiff","image/bmp","image/vnd.ms-photo","image/vnd.adobe.photoshop","application/x-indesign","application/epub+zip","application/x-xpinstall","application/vnd.ms-powerpoint.slideshow.macroenabled.12","application/vnd.oasis.opendocument.text","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.presentation","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/zip","application/x-tar","application/x-rar-compressed","application/gzip","application/x-bzip2","application/x-7z-compressed","application/x-apple-diskimage","application/vnd.apache.arrow.file","video/mp4","audio/midi","video/matroska","video/webm","video/quicktime","video/vnd.avi","audio/wav","audio/qcelp","audio/x-ms-asf","video/x-ms-asf","application/vnd.ms-asf","video/mpeg","video/3gpp","audio/mpeg","audio/mp4","video/ogg","audio/ogg","audio/ogg; codecs=opus","application/ogg","audio/flac","audio/ape","audio/wavpack","audio/amr","application/pdf","application/x-elf","application/x-mach-binary","application/x-msdownload","application/x-shockwave-flash","application/rtf","application/wasm","font/woff","font/woff2","application/vnd.ms-fontobject","font/ttf","font/otf","font/collection","image/x-icon","video/x-flv","application/postscript","application/eps","application/x-xz","application/x-sqlite3","application/x-nintendo-nes-rom","application/x-google-chrome-extension","application/vnd.ms-cab-compressed","application/x-deb","application/x-unix-archive","application/x-rpm","application/x-compress","application/x-lzip","application/x-cfb","application/x-mie","application/mxf","video/mp2t","application/x-blender","image/bpg","image/j2c","image/jp2","image/jpx","image/jpm","image/mj2","audio/aiff","application/xml","application/x-mobipocket-ebook","image/heif","image/heif-sequence","image/heic","image/heic-sequence","image/icns","image/ktx","application/dicom","audio/x-musepack","text/calendar","text/vcard","text/vtt","model/gltf-binary","application/vnd.tcpdump.pcap","audio/x-dsf","application/x.ms.shortcut","application/x.apple.alias","audio/x-voc","audio/vnd.dolby.dd-raw","audio/x-m4a","image/apng","image/x-olympus-orf","image/x-sony-arw","image/x-adobe-dng","image/x-nikon-nef","image/x-panasonic-rw2","image/x-fujifilm-raf","video/x-m4v","video/3gpp2","application/x-esri-shape","audio/aac","audio/x-it","audio/x-s3m","audio/x-xm","video/MP1S","video/MP2P","application/vnd.sketchup.skp","image/avif","application/x-lzh-compressed","application/pgp-encrypted","application/x-asar","model/stl","application/vnd.ms-htmlhelp","model/3mf","image/jxl","application/zstd","image/jls","application/vnd.ms-outlook","image/vnd.dwg","application/vnd.apache.parquet","application/java-vm","application/x-arj","application/x-cpio","application/x-ace-compressed","application/avro","application/vnd.iccprofile","application/x.autodesk.fbx","application/vnd.visio","application/vnd.android.package-archive","application/vnd.google.draco","application/x-lz4","application/vnd.openxmlformats-officedocument.presentationml.template","application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/vnd.ms-excel.template.macroenabled.12","application/vnd.oasis.opendocument.text-template","application/vnd.oasis.opendocument.spreadsheet-template","application/vnd.oasis.opendocument.presentation-template","application/vnd.oasis.opendocument.graphics","application/vnd.oasis.opendocument.graphics-template","application/vnd.ms-excel.sheet.macroenabled.12","application/vnd.ms-word.document.macroenabled.12","application/vnd.ms-word.template.macroenabled.12","application/vnd.ms-powerpoint.template.macroenabled.12","application/vnd.ms-powerpoint.presentation.macroenabled.12","application/java-archive","application/vnd.rn-realmedia","application/x-ms-regedit","application/x-ft-windows-registry-hive"]);var hr=i(7713),pr=i(6889),dr=i(8559),gr=i(6060),mr=i(8287).Buffer;const yr=["google-gax"],br="sha256",vr="aes-256-gcm",wr=e=>Sr(ut(e||(0,pr.networkInterfaces)())),_r=e=>Sr(e,"md5"),Er=(e,t)=>e&&String.isString(e)?e:Te(t,1),kr=e=>e?mr.isBuffer(e)?e:Ie(e,1):null,xr=e=>{const t=new URLSearchParams;return Object.keys(e).sort().map(n=>t.append(n,ut(e[n]))),t.toString()},Sr=(e,t=br)=>(0,gr.createHash)(t).update(e).digest("hex"),Or=(e,t=br)=>new Promise(n=>{const r=(0,gr.createHash)(t);(0,hr.createReadStream)(e).on("data",e=>r.update(e)).on("end",()=>n(r.digest("hex")))}),Ar=(e=128,t="HEX")=>{let n=Math.ceil(~~e/2);return n=n>0?n:1,(0,gr.randomBytes)(n).toString(t).substring(0,e)},Rr=(e,t)=>Sr(xr(e),t),jr=e=>(e=`0x${ut(e||"0").replace(/^0x/gi,"")}`,BigInt(e,16).toString(10)),Tr=e=>{const t=kr(e?.key)||(0,gr.randomBytes)((e?.length||256)/8);return{buffer:t,base64:Er(e?.key,t)}},Ir=e=>{const t=kr(e?.iv)||(0,gr.randomBytes)(16);return{buffer:t,base64:Er(e?.iv,t)}},Mr=e=>{const t=kr(e?.authTag);return{buffer:t,base64:Er(e?.authTag,t)}},Lr=(e,t)=>{assert(e,"Invalid input.",400),e=mr.isBuffer(e)?e:mr.from(e);const[n,r]=[Tr,Ir].map(e=>e(t)),i=(0,gr.createCipheriv)(vr,n.buffer,r.buffer),o=ut(t?.expected||"BASE64",{case:"UP"});let a=mr.concat([i.update(e),i.final()]);switch(o){case"":case"BASE64":a=Te(a);break;case"BUFFER":break;case"HEX":a=Me(a);break;default:throwError("Unsupported output type.",400)}return{key:n.base64,iv:r.base64,encrypted:a,encryption:vr,authTag:Te(i.getAuthTag(),!0)}},Br=(e,t)=>{assert(e,"Invalid input.",400),e=mr.isBuffer(e)?e:Ie(e,!0);const[n,r,i]=[Tr,Ir,Mr].map(e=>e(t)),o=(0,gr.createDecipheriv)(vr,n.buffer,r.buffer),a=ut(t?.expected||"TEXT",{case:"UP"});o.setAuthTag(i.buffer);let s=mr.concat([o.update(e),o.final()]);switch(a){case"":case"TEXT":s=s.toString();break;case"BASE64":s=Te(s);break;case"BUFFER":break;case"HEX":s=Me(s);break;default:throwError("Unsupported output type.",400)}return s},Cr=async e=>{const{GoogleAuth:t}=await dn("google-gax");return new t({keyFilename:e,scopes:["https://www.googleapis.com/auth/cloud-platform"]}).getClient()},Nr=async e=>{const t=await e.getAccessToken(),n=t?.token||null;return assert(n,"Failed to get Google API token."),n};var Pr=i(8287).Buffer,Dr=i(5606);const Fr=["file-type","mime-types","@google-cloud/storage"],Ur={cacheControl:"public, max-age=31536000"},zr=e=>`https://storage.cloud.google.com/${e}`,Wr=e=>e.replace(/^gs:\/\/[^/]*\/(.*)$/,"$1"),qr=e=>(0,ne.join)(e.substr(0,2),e.substr(2,2)),[$r,Zr]=[dr.deflate,dr.unzip].map(re.promisify),Hr=(e,t)=>e.replace(/[\/?<>\\:*|"]/g,t||"_").trim(),Vr=(e,t)=>`data:${e};${Kr.toLowerCase()},${t}`,[Gr,Kr,Yr,Jr,Xr,Qr,ei,ti,ni,ri,ii,oi,ai,si,ci,ui,li,fi,hi,pi,di,gi,mi,yi,bi,vi,wi,_i,Ei,ki,xi,Si,Oi,Ai,Ri,ji,Ti,Ii,Mi,Li,Bi,Ci]=["NULL","BASE64","BUFFER","FILE","STREAM","TEXT","JSON","utf8","binary","BLOB","DATAURL","0644","0755","text/plain","application/octet-stream","application/json","image/png","image/jpeg","video/mov","video/mpeg","video/mp4","video/mpg","video/avi","video/wmv","video/mpegps","video/x-flv","image/gif","image/webp","application/pdf","audio/aac","audio/flac","audio/mp3","audio/mpeg","audio/m4a","audio/mpga","audio/opus","audio/pcm","audio/wav","audio/webm","video/3gpp","audio/x-wav","audio/ogg"],[Ni,Pi,Di]=[{encoding:Kr},{encoding:ni},{encoding:Gr}];let[Fi,Ui,zi]=[null,null,null];const Wi=async(e,t)=>await hr.promises.readFile(e,[Gr,Yr].includes(ut(t?.encoding,{case:"UP"}))?null:t?.encoding||ti),qi=async(e,t,n)=>await hr.promises.writeFile(e,t,n?.encoding||ti),$i=async(e,t,n)=>await qi(e,Hi(t,n),n),Zi=(e,t)=>{if(t?.throw)throw e;t?.log&&console.log(e)},Hi=(e,t)=>JSON.stringify(e||{},t?.replacer||null,t?.space||4),Vi=async(e,t)=>{let n={};try{n=JSON.parse(await Wi(e,t))}catch(e){Zi(e,t)}return n},Gi=e=>(0,ne.join)((0,pr.tmpdir)(),e?.sub||"",e?.seed?Sr(e.seed):""),Ki=async(e,t)=>{let{filename:n,encoding:r,mode:i,prefix:o,suffix:a,hashName:s}=t||{};n=(o||"")+(n?s?Sr(n):n:F())+(a?`.${a}`:""),"JSON"===String(r).toUpperCase()&&(e=Hi(e,t),r=null);const c=Gi({sub:n});return await qi(c,e,{encoding:r||ti}),await hr.promises.chmod(c,i||oi),c},Yi=async(e,t,n,r,i,o)=>{var[i,a,s,c,u]=[i||500,"Path is not",e=>u=r||e];try{c=await hr.promises.stat(e)}catch(e){_e(r||e.message,i,o)}switch(String(t||"").toUpperCase()){case"*":case"":break;case"F":c.isFile()||s(`${a} a file: '${e}'.`);break;case"D":c.isDirectory()||s(`${a} a directory: '${e}'.`);break;default:s(`Unsupported path type: '${t}'.`)}assert(!u,u,i,o);try{switch(String(n||"").toUpperCase()){case"*":case"":break;case"R":await hr.promises.access(e,hr.constants.R_OK);break;case"W":await hr.promises.access(e,hr.constants.R_OK|hr.constants.W_OK);break;default:s(`Unsupported access mode: '${n}'.`)}}catch(e){s(e.message)}return assert(!u,u,i,o),c},Ji=async(e,t)=>{const n=t?.length??1e3;let r;if(Pr.isBuffer(e))r=e.subarray(0,n);else{const t=await hr.promises.promises.open(e,"r");r=Pr.alloc(n),await t.read(r,0,n,0),await t.close()}for(let e=0;e<r.length;e++)if(0===r[e])return!1;return!0},Xi=async e=>{const t=(e=e||{}).config||(0,ne.join)((0,pr.homedir)(),`.${(await Ut(e.pack)).name}.json`);return assert(t,"Error getting config filename.",500),t},Qi=async e=>{const t=await Xi(e);return{filename:t,config:await Vi(t)}},eo=async(e,t)=>{e=e||{},assert(Object.keys(e).length,"Empty config.",400);let[n,r]=[null,{}];if(t?.overwrite)n=await Xi(t);else{const{filename:e,config:i}=await Qi(t);n=e,r=i}return await $i(n,zt(e,r,{mergeUndefined:!0}),t),{filename:n,config:r}},to=async(e,t)=>(await hr.promises.mkdir(e,{recursive:!0}),await hr.promises.chmod(e,t?.permissions||ai),await hr.promises.stat(e)),no=async(e,t)=>(e=((e=De(e))===ci?"":e)||kt(await cr(t),"mime")||ci,assert(e,"MIME type is required.",400),assert(Pr.isBuffer(t),"Data buffer is required.",400),Vr(e,Te(t,!0))),ro=e=>{const t=e.split(","),n=t[0].match(/:(.*?);/)[1],r=atob(t[1]),i=new ArrayBuffer(r.length),o=new Uint8Array(i);for(let e=0;e<r.length;e++)o[e]=r.charCodeAt(e);return{mime:n,buffer:Pr.from(i)}},io=e=>(assert(e=ut(e).replace(/(\W+)/gi,"-").replace(/^-*|-*$/g,"").trim(),"Invalid filename.",400),e),oo=async e=>{assert(e=ut(e),"Path is required.",400);try{return await hr.promises.stat(e)}catch(e){return null}},ao=async(e,t)=>(assert(e,"Invalid input.",400),await uo(await $r(Pr.isBuffer(e)?e:Pr.from(e),t),t)),so=async(e,t)=>(assert(e,"Invalid input.",400),await uo(await Zr(Pr.isBuffer(e)?e:Ie(e,!0),t),t)),co=async e=>{const t=new FileReader;return new Promise((n,r)=>{t.onload=()=>n(Pr.from(t.result)),t.onerror=r,t.readAsArrayBuffer(e)})},uo=async(e,t)=>{assert(e,t?.errorMessage||"Invalid input.",400);let n={},[r,i]=[Pr.isBuffer(e)||ArrayBuffer.isArrayBuffer(e)||Uint8Array.isUint8Array(e)?Yr:t?.input,t?.expected||Yr].map(e=>ut(e,{case:"UP"})),[o,a,s,c]=[null,null,null,i];switch(r){case Jr:o=e;break;case Qr:e=Pr.from(e),s=si,r=Yr;break;case ri:e=await co(e),r=Yr;break;case ii:const t=ro(e);e=t.buffer,s=t.mime,r=Yr}switch(s||(s=(await lo(e,e))?.mime||ci),i){case Xr:c=Jr;break;case ii:case Qr:case ei:c=Yr}if(o&&(a=await Yi(e,"F","R")),r!==c)switch(`${r}-${c}`){case`${Kr}-${Yr}`:e=Ie(e,!0);break;case`${Kr}-${Jr}`:e=Ie(e,!0);case`${Yr}-${Jr}`:e=await(async(e,t)=>{const n=t?.encoding||ni;if(t?.file)return await qi(t?.file,e,n),t?.file;const{extension:r}=await lo(e,t?.filename);return await Ki(e,{filename:t?.filename,encoding:n,suffix:t?.suffix||r})})(e,t);break;case`${Yr}-${Kr}`:e=Te(e,!0);break;case`${Jr}-${Yr}`:e=await Wi(e,Di);break;case`${Jr}-${Kr}`:e=await Wi(e,Ni);break;default:_e("Invalid input or expected format.",400)}switch(i){case Xr:n.content=(0,hr.createReadStream)(e);break;case Qr:n.content=e.toString();break;case ei:n.content=JSON.parse(e.toString());break;case ii:n.content=await no(t?.mime||s,e);break;default:n.content=e}return o&&c!==Jr&&t?.cleanup&&await go(o,t),t?.withCleanupFunc&&(n.cleanup=async t=>{i===Xr&&await rn(n.content?.destroy),c===Jr&&(t?.force||!o)&&await go(e,t)}),t?.meta&&(n={...n,mime:s,meta:a}),1===Object.keys(n).length?n.content:n},lo=async(e,t)=>{const n=await rn(()=>dn("mime-types")),r=e&&Pr.isBuffer(e)&&kt(await cr(e),"mime")||t&&String.isString(t)&&n?.lookup?.(t)||ci;return{mime:r,extension:n?.extension?.(r)||"bin"}},fo=async(e,t)=>{const{meta:n,content:r}=await uo(e,{meta:1,...t||{}}),i=t?.hashAlgorithm||br,o=Sr(r,i),a=t?.filename||(n?(0,ne.basename)(e):null)||Sr,{mime:s}=await lo(r,a);return{content:r,extname:(0,ne.extname)(a).replace(/^\.|\.$/g,""),filename:a,hashAlgorithm:i,hash:o,mime:s,size:r.length}},ho=async(e,t)=>{const[n,r,i,o]=[{...await fo(e,t),compressed:null},t?.sliceSize||144e4,[],t?.hashAlgorithm||br];for(t?.zip&&(n.content=await ao(n.content,t),n.compressed="gzip");r*i.length<n.content.length;){const e=r*i.length;i.push(n.content.slice(e,e+r))}return delete n.content,assert(i.length,"Empty slices.",400),{...n,slices:i.map((e,t)=>({content:e,hash:Sr(e,o)}))}},po=async(e,t)=>{assert(e?.slices?.length,"Invalid slices.",400);const[n,r]=[e?.hashAlgorithm||br,[]];for(let i in e?.slices){const o=await uo(e.slices[i]?.content,{...t||{},expected:Yr});e.slices[i]?.hash&&assert(e.slices[i].hash===Sr(o,n),`Invalid hash for slice ${i}.`,400),r.push(o)}let i=Pr.concat(r);switch(ut(e?.compressed,{case:"UP"})){case"":break;case"GZIP":i=await so(i,t);break;default:_e("Unsupported compression.",400)}return e?.hash&&assert(e.hash===Sr(i,n),"Invalid file hash.",400),await uo(i,{...t||{},input:Yr})},go=async(e,t)=>await rn(async()=>{await Yi(e,"F","W"),await hr.promises.unlink(e)},t),mo=async e=>{if(e)if("GOOGLE"===ut(e?.provider,{case:"UP"})){assert(e?.credentials,"Google Cloud credentials are required.",400),assert(Ui=e?.bucket,"Google Cloud Storage bucket is required.",400),zi=e?.url||zr(Ui),1===~~Dr.env.FORKED&&Dt(`GOOGLE CLOUD STORAGE: ${zi}`,"file:///home/runner/work/utilitas/utilitas/lib/storage.mjs");const{Storage:t}=await dn("@google-cloud/storage",{raw:!0});Fi=new t(e).bucket(Ui)}else _e("Invalid cloud storage provider.",500);return assert(Fi,"Cloud storage has not been initialized.",501),{client:Fi,bucket:Ui,url:zi}},yo=async(e,t)=>{assert(Fi,"Cloud storage has not been initialized.",500);const{content:n,cleanup:r}=await uo(e,{input:t?.input,suffix:t?.suffix,...t||{},expected:Jr,withCleanupFunc:!0,errorMessage:"Invalid file."}),i=await Fi.upload(n,{gzip:!1,destination:t?.destination||(0,ne.join)(...t?.prefix?[t.prefix]:[],(0,ne.basename)(n)),metadata:Ur,...t||{}});await r();const o=t?.raw?i:i[0].metadata;var a;return!t?.raw&&o&&(o.gs=(a=o?.id,`gs://${a}`.replace(/[\/][^\/]*$/,""))),o},bo=async(e,t)=>{assert(Fi,"Cloud storage has not been initialized.",500);const n=await Fi.file(e).download(t);return t?.raw?n:await uo(n[0],{...t||{},input:Yr})},vo=async(e,t)=>{assert(e,"Path is required.",400);const n=e.endsWith("/"),r=n?await _o(e,{name:!0}):[e],i=await Promise.all(r.map(e=>bo(e,t)));if(!n)return i[0];const o={};for(let e in r)o[r[e]]=i[e];return o},wo=async(e,t)=>{assert(Fi,"Cloud storage has not been initialized.",500);const n=await Fi.file(e).exists();return t?.raw?n:n[0]?{}:null},_o=async(e,t)=>{assert(Fi,"Cloud storage has not been initialized.",500);let n=await Fi.getFiles({prefix:e,...t||{}});return t?.raw||(n=(n[0]||[]).map(e=>e.metadata),t?.name&&(n=n.map(e=>e.name))),n},Eo=async(e,t)=>{assert(Fi,"Cloud storage has not been initialized.",500);const n=await Fi.file(e).delete(t);return t?.raw?n:n[0].toJSON()},ko=async(e,t)=>{assert(e,"Path is required.",400);const n=e.endsWith("/"),r=n?await _o(e,{name:!0}):[e],i=await Promise.all(r.map(e=>Eo(e,t)));if(!n)return i[0];const o={};for(let e in r)o[r[e]]=i[e];return o};let[xo,So]=[null,null];var Oo=i(5606),Ao=i(8287).Buffer;const Ro=Oo.env.TMPDIR?(0,ne.join)(Oo.env.TMPDIR,"shot"):null,jo=e=>e.toString("utf8"),[To,Io,Mo]=["TEXT","JSON","PARSED"],Lo={redirect:"follow",follow:3,timeout:1e4,headers:{"user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Safari/605.1.15"}},Bo=async(e,t)=>{const n=await uo(e,{input:To,expected:To,...t||{}}),r=await Promise.all([dn("jsdom"),dn("@mozilla/readability")]),[i,o]=[r[0].JSDOM,r[1].Readability],a=new i(n)?.window?.document;assert(a,"Failed to parse HTML.",500);const s=new o(a).parse();if(assert(s,"Failed to distill HTML.",500),!t?.raw){s.textContent=s.textContent.trim().split("\n").map(e=>e.trim());for(let e=s.textContent.length-1;e>=0;e--)e<s.textContent.length-1&&""===s.textContent[e]&&""===s.textContent[e+1]&&s.textContent.splice(e,1);s.textContent=s.textContent.join("\n")}return{byline:s.byline,data:{},html:s.html,lang:s.lang,provider:s.siteName,text:s.textContent,thumbnail:null,title:s.title,type:"WEBPAGE"}},Co={name:"utilitas",description:"Just another common utility for JavaScript.",version:"2000.3.55",private:!1,homepage:"https://github.com/Leask/utilitas",main:"index.mjs",type:"module",engines:{node:">=20.x"},author:"Leask Wong <i@leaskh.com>",license:"MIT",repository:{type:"git",url:"https://github.com/Leask/utilitas.git"},overrides:{xlsx:"https://cdn.sheetjs.com/xlsx-0.20.1/xlsx-0.20.1.tgz"},dependencies:{"file-type":"^21.1.1",mathjs:"^15.1.0",uuid:"^13.0.0"},devDependencies:{"@ffmpeg-installer/ffmpeg":"^1.1.0","@ffprobe-installer/ffprobe":"^2.1.2","@google-cloud/discoveryengine":"^2.5.2","@google-cloud/storage":"^7.18.0","@google/genai":"^1.31.0","@mozilla/readability":"github:mozilla/readability","@sentry/node":"^10.29.0","@sentry/profiling-node":"^10.29.0","acme-client":"^5.4.0","browserify-fs":"^1.0.0",buffer:"^6.0.3","fast-geoip":"^1.1.88","fluent-ffmpeg":"^2.1.3","form-data":"^4.0.5","google-gax":"^5.0.6",ioredis:"^5.8.2","js-tiktoken":"^1.0.21",jsdom:"^27.2.0","lorem-ipsum":"^2.0.8","mailgun.js":"^12.4.0",mailparser:"^3.9.0",mime:"^4.1.0",mysql2:"^3.15.3","node-mailjet":"^6.0.11","node-polyfill-webpack-plugin":"^4.1.0","office-text-extractor":"^3.0.3",openai:"^6.10.0","pdf-lib":"^1.17.1","pdfjs-dist":"^5.4.449",pg:"^8.16.3",pgvector:"^0.2.1",ping:"^1.0.0",process:"^0.11.10",puppeteer:"^24.32.0",say:"^0.16.0",telegraf:"^4.16.3",telesignsdk:"^3.0.4","tesseract.js":"^6.0.1",twilio:"^5.10.7",url:"github:Leask/node-url","webpack-cli":"^6.0.1","whisper-node":"^1.1.1",wrangler:"^4.53.0",xlsx:"https://cdn.sheetjs.com/xlsx-0.20.1/xlsx-0.20.1.tgz","youtube-transcript":"^1.2.1"}},No="[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",Po=e=>e.replace(/\-/gi,""),Do=e=>jr(Po(e)),Fo=e=>zo(BigInt(e).toString(16).padStart(32,"0")),Uo=e=>zo(_r(e??Ar())),zo=e=>e.replace(/^(.{8})(.{4})(.{4})(.{4})(.{12})$/,"$1-$2-$3-$4-$5"),Wo=e=>e?Number((BigInt(String(e).replace(/^.*(.{8})-(.{4})-.(.{3})-.{4}-.{12}.*$/,"0x$3$2$1"))-122192928000000000n)/10000n):0,qo=e=>{(e=Object.assign({file:"file:///home/runner/work/utilitas/utilitas/lib/uoid.mjs",id:F()},e||{})).type=e.type||Ye(e.file),1===(e.security=~~e.security)&&(e.security=128);let t=e.id;return e.security&&(t+=`-${Ar(e.security-t.length-1)}`),`${e.type.toUpperCase()}|${t}`},$o=e=>(jt(e=e||Co.homepage),$(e,$.URL)),Zo=(e,t,n)=>(e=Zt(e,t,{case:"UP",...n||{}}),assert(e,"Invalid reference.",400),$(e,$o(n?.url))),Ho=e=>$(`info:id/${encodeURIComponent(ut(e||wr()))}`,$.URL),Vo=qo;i(8287).Buffer;const Go=async e=>{const t=await dn("fluent-ffmpeg");return t.setFfmpegPath((await dn("@ffmpeg-installer/ffmpeg")).path),t.setFfprobePath((await dn("@ffprobe-installer/ffprobe")).path),new t(e)},Ko=async(e,t)=>{assert(e,"Invalid audio input.",400);const{content:n,cleanup:r}=await uo(e,{...t||{},expected:Jr,withCleanupFunc:!0}),i=await Go(n),o=t?.output||Gi({sub:t?.suffix?`${Sr(JSON.stringify({content:n,options:t}))}.${t.suffix}`:null});return t?.frequency&&i.audioFrequency(t.frequency),t?.channels&&i.audioChannels(t.channels),t?.codec&&i.audioCodec(t?.codec),await new Promise((e,t)=>{i.on("error",t),i.on("end",e),i.save(o)}),t?.input===Jr||await r(),await uo(o,{expected:Yr,cleanup:!0,...t||{},input:Jr})};i(8287).Buffer;const[Yo,Jo,Xo,Qo,ea,ta,na,ra,ia,oa,aa,sa,ca,ua,la,fa,ha,pa,da,ga,ma,ya,ba,va,wa,_a,Ea,ka,xa,Sa,Oa,Aa,Ra,ja,Ta,Ia,Ma,La,Ba,Ca,Na,Pa,Da,Fa,Ua,za,Wa,qa,$a,Za,Ha,Va,Ga,Ka,Ya,Ja,Xa,Qa,es,ts,ns,rs,is,os,as,ss,cs,us,ls,fs,hs,ps,ds,gs,ms]=["OpenAI","Google","Ollama","nova","deepseek-3.2-speciale","```","claude-opus-4.5","audio","wav","OPENAI_VOICE","medium","think","<think>","</think>","<tools>","</tools>","tools","text","OK","function","gpt-5.2","gpt-5.1-codex","gpt-5-image","gemma3:27b","Anthropic",33177600,[],30,{log:!0},"Alan","user",{role:"system"},"assistant","model","json_object",1.1,"Prompt is required.",4194304,e=>1024*e,e=>1e3*e,e=>1048576*e,e=>60*e,e=>3600*e,e=>1073741824*e,e=>e.replace(/[\.\s]*$/,""),e=>e.replace(/^[\.\s]*/,""),"gemini-3-pro-image-preview","image","Jina","jina-deepsearch-v1","SiliconFlow","deepseek-ai/DeepSeek-V3.2-exp",589824,"https://openrouter.ai/api/v1","OpenRouter","openrouter/auto","tool","openai","google","anthropic",":online","gemini-3-pro-preview","gemini-2.5-flash-preview-09-2025","imagen-4.0-ultra-generate-001","veo-3.1-generate-preview","imagen-4.0-upscale-preview","Error generating content.","gemini-2.5-flash-preview-tts","gemini-2.5-pro-tts","wav","gpt-4o-mini-tts","gpt-4o-transcribe","Invalid audio data.","ogg","..."],[ys,bs,vs]=[e=>({type:e}),e=>({messages:e}),e=>({text:e})],[ws,_s,Es]=["code_interpreter","retrieval",ga].map(ys),ks=(new Map,{source:es,icon:"♊️",json:!0,audioCostTokens:1e6,imageCostTokens:~~(_a/Ga*258),maxAudioLength:Da(8.4),maxAudioPerPrompt:1,maxFileSize:Na(20),maxImagePerPrompt:3e3,maxImageSize:1/0,maxUrlSize:Fa(2),maxVideoLength:Pa(45),maxVideoPerPrompt:10,vision:!0,hearing:!0,tools:!0,reasoning:!0,supportedMimeTypes:[li,fi,hi,pi,di,gi,mi,yi,bi,vi,Ei,ki,xi,Si,Oi,Ai,Ri,ji,Ti,Ii,Mi,Li,Ci],defaultProvider:Ya}),xs={source:Qa,icon:"⚛️",contextWindow:Ca(400),maxOutputTokens:Ba(128),imageCostTokens:~~(La/Ga*140+70),maxFileSize:Na(50),maxImageSize:La,json:!0,tools:!0,vision:!0,hearing:!0,reasoning:!0,supportedMimeTypes:[li,fi,wi,_i,Ei,Ii],defaultProvider:Ya},Ss={icon:"🐬",contextWindow:Ca(163.8),maxOutputTokens:Ba(65.5),json:!0,tools:!0,reasoning:!0},Os={[is]:{...ks,contextWindow:Na(1),maxOutputTokens:Ba(64),fast:!0,json:!1},[ma]:{...xs,fast:!0},[rs]:{...ks,contextWindow:Na(1),maxOutputTokens:Ba(64)},[Wa]:{...ks,icon:"🍌",label:"Nano Banana Pro",contextWindow:Ba(64),maxOutputTokens:Ba(32),image:!0,tools:!1},[os]:{source:es,maxInputTokens:480,image:!0,defaultProvider:Jo},[as]:{source:es,maxInputTokens:1024,imageCostTokens:0,maxImagePerPrompt:1,maxImageSize:1/0,vision:!0,video:!0,supportedMimeTypes:[li,fi],defaultProvider:Jo},[ba]:{...xs,icon:"🎨",label:"gpt-image-1",image:!0},[ya]:{...xs},[na]:{source:ts,icon:"✳️",contextWindow:Ca(200),maxOutputTokens:Ca(64),documentCostTokens:3e4,maxDocumentFile:Na(32),maxDocumentPages:100,imageCostTokens:~~(_a/750),maxImagePerPrompt:100,maxFileSize:Na(5),maxImageSize:4e6,json:!0,reasoning:!0,tools:!0,vision:!0,supportedMimeTypes:[si,li,fi,wi,_i,Ei],defaultProvider:Ya},[us]:{source:es,maxInputTokens:Ca(32),audio:!0,fast:!0,hidden:!0,defaultProvider:Jo},[ls]:{source:es,maxInputTokens:Ca(32),audio:!0,hidden:!0,defaultProvider:Jo},[hs]:{source:Qa,maxInputTokens:Ca(2),audio:!0,fast:!0,hidden:!0,defaultProvider:Yo},[ps]:{source:Qa,maxInputTokens:0,hearing:!0,fast:!0,hidden:!0,defaultProvider:Yo},[Za]:{icon:"✴️",contextWindow:1/0,maxInputTokens:1/0,maxOutputTokens:1/0,imageCostTokens:0,maxImageSize:1/0,supportedMimeTypes:[li,fi,si,_i,Ei],reasoning:!0,json:!0,vision:!0,deepsearch:!0,defaultProvider:$a},[ea]:Ss,[Va]:{...Ss,defaultProvider:Ha},[va]:{icon:"❇️",contextWindow:Ca(128),maxOutputTokens:Ba(8),imageCostTokens:256,maxImageSize:802816,supportedMimeTypes:[li,fi,wi],fast:!0,json:!0,vision:!0,defaultProvider:Xo}};let As=0;for(const e in Os)Os[e].name=e,Os[e].supportedMimeTypes=Os[e].supportedMimeTypes||[],Os[e].maxOutputTokens=Os[e].maxOutputTokens||Math.ceil(.4*Os[e].contextWindow),Os[e].maxInputTokens=Os[e].maxInputTokens||Os[e].contextWindow-Os[e].maxOutputTokens,As=As?Math.max(As,Os[e].imageCostTokens||0):Os[e].imageCostTokens;Math.min(100/75,Math.min(100/60,1.25)),Math.max(3.5,4);const[Rs,js,Ts,Is,Ms,Ls,Bs,Cs,Ns,Ps,Ds,Fs]=["OPENAI","GOOGLE","OPENROUTER","JINA","global","default_ranking_config","text-embedding-3-small","text-embedding-3-large","gemini-embedding-001","jina-embeddings-v4","semantic-ranker-default@latest","jina-reranker-m0"],Us={},zs=e=>1e3*(isNaN(e=Number(e))?0:e),Ws=e=>Us[e]&&(Us[e].lock=0),qs=()=>Us;let $s=null;const Zs=(e,t,n)=>{n=Object.assign({time:!0},n||{}),(!t||!Us[t]||!Us[t].silent||n.force||e instanceof Error)&&Dt(e,Ye("file:///home/runner/work/utilitas/utilitas/lib/event.mjs")+(t?` > ${t}`:""),n)},Hs=(e,t,n)=>Us[e].lock+n>t?Us[e].lock:!(Us[e].lock=t),Vs=async()=>{const e=Date.now();for(let t in Us)if(Us[t].lastRun+Us[t].interval<e){Us[t].lastRun=e;try{if(Hs(t,e,Us[t].timeout)){Zs("Locked, skipped.",t);continue}Zs("Emit...",t),await Us[t].function()}catch(e){Zs(e,t)}Zs("Done.",t),Ws(t)}},Gs=async(e,t,n,r,i,o)=>($s=$s||Zs("Initialized.")||setInterval(Vs,1e3),Zs("Scheduled.",i=i||Vo({type:"EVENT"}),{force:!0}),Us[i]={function:e,interval:zs(t),timeout:zs(n),delay:r,lastRun:Date.now()+zs(r-t),lock:0,silent:!!o?.silent,end:o?.end},$s),Ks=async(e,t)=>(assert(e&&e.func,"Event function is required.",500),await Gs(e.func,e.interval,e.tout,e.delay,e.name,t)),Ys=async(e,t)=>{t=t||{},Zs(`SERVICES: ${e}`);const[n,r]=[((0,hr.readdirSync)(e)||[]).filter(e=>/\.mjs$/i.test(e)&&!e.startsWith(".")),[]];for(let o of n){const n={...await i(765)((0,ne.join)(e,o))};n.run&&(n.name=n.name||o.replace(/^(.*)\.mjs$/i,"$1"),r.push(Ks(n,t)))}return await Promise.all(r)},Js=async e=>{if(e&&(delete Us[e],Object.keys(Us).length))return;clearInterval($s),$s=null;const t=Date.now();for(let e in Us){if(Us[e].end)try{await Us[e].end()}catch(e){}for(;Hs(e,t,Us[e].timeout);)Zs("Waiting...",e),await Pe(1e3);Zs("End.",e)}Zs("Terminated.")},Xs=Gs,Qs=["whisper-node"],[ec,tc,nc,rc,ic,oc]=["FILE","ogg","SPEAKER",!0,"base","Invalid audio data."],ac=["tiny","tiny-q5_1","tiny-q8_0","tiny.en","tiny.en-q5_1","tiny.en-q8_0",ic,"base-q5_1","base-q8_0","base.en","base.en-q5_1","base.en-q8_0","small","small-q5_1","small-q8_0","small.en","small.en-q5_1","small.en-q8_0","small.en-tdrz","medium","medium-q5_0","medium-q8_0","medium.en","medium.en-q5_0","medium.en-q8_0","large-v1","large-v2","large-v2-q5_0","large-v2-q8_0","large-v3","large-v3-q5_0","large-v3-turbo","large-v3-turbo-q5_0","large-v3-turbo-q8_0"],sc=async(e,t)=>(e=t?.model||ic,(await(async(e,t)=>{assert(e,"URL is required.",400),(t=t||{}).encode=ut(t.encode,{case:"UP"});const n=yn()?null:Sr(e),r=n?t.cache?.tmp||Ro:null,i=r?(0,ne.join)(r,qr(n)):null,[o,a]=i?["meta","content"].map(e=>(0,ne.join)(i,`${n}.${e}`)):[];if(t?.fuzzy&&await oo(o)&&await oo(a))return{cache:{meta:o,content:a}};const s=t?.refresh||!i?null:await Vi(o),c=t?.refresh||!i?null:await rn(()=>hr.promises.readFile(a)),u=s?.responseHeaders&&c?{"cache-control":"max-age=0","if-modified-since":s.responseHeaders["last-modified"]||"","if-none-match":s.responseHeaders.etag||""}:{};let[l,f,h]=[null,null,{}];const p={...Lo,headers:{...Lo.headers,...u},...t.fetch||{}};if(t.timeout){const e=new AbortController;p.signal=e.signal,l=setTimeout(()=>e.abort(),t.timeout)}try{f=await fetch(e,p)}catch(e){_e(e.message.includes("aborted")?"Timed out.":e.message,500)}l&&clearTimeout(l),304===f.status&&(f.arrayBuffer=async()=>c);const[d,g]=[f.headers.get("content-type"),Ao.from(await f.arrayBuffer())];if(f.headers?.raw)h=f.headers.raw();else for(const[e,t]of f.headers.entries())h[e]=t;const m=await rn(async()=>{kt(await cr(g),"mime")})||d,y=g.length;let b;if(!t?.fuzzy)switch(t.encode){case"BUFFER":b=g;break;case"BASE64":b=g.toString(t.encode);break;case"BASE64_DATA_URL":b=await no(m,g);break;case Io:b=Et(jo(g),null);break;case Mo:b=await Bo(jo(g));break;default:assert(!t.encode,"Invalid encoding.",400);case"TEXT":b=jo(g)}return i&&!c&&y&&200===f.status&&await rn(async()=>({touch:await to(i),content:await hr.promises.writeFile(a,g),meta:await $i(o,{url:e,requestHeaders:u,responseHeaders:h})})),{statusCode:f.status,statusText:f.statusText,length:y,mimeType:m,content:b,headers:h,response:f,cache:f.status>=200&&f.status<400?{meta:o,content:a}:null}})((e=>(assert(ac.includes(e),"Invalid Whisper model.",400),`https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-${e}.bin`))(e),{fuzzy:!0}))?.cache?.content),cc=async()=>{const e=!!await rn(async()=>"darwin"===(await Promise.all([dn("node:os"),dn("say"),Go()]))[0].platform());return assert(e,"Say API is not available.",500),e},uc=async()=>{const e=!!await rn(()=>Promise.all([dn("whisper-node"),Go()]));return assert(e,"Whisper API is not available.",500),e},lc=async(e,t)=>{const n=await dn("say");assert(e,"Text is required.",400);let[r,i,o]=[null,null,[e,t?.voice||"Samantha",t?.speed||1]];return t?.expected===nc?r="speak":(r="export",i=Gi({sub:`${Sr(JSON.stringify(o))}.wav`}),o.push(i)),await fe([n[r],n],...o),i&&!t?.raw&&(i=await((e,t)=>Ko(e,{channels:1,codec:"libopus",frequency:48e3,suffix:"ogg",...t||{}}))(i,{frequency:16e3,cleanup:rc,input:ec,suffix:tc,...t||{}})),i},fc=async e=>(assert(e,"Text is required.",400),speechSynthesis.speak(new SpeechSynthesisUtterance(e))),hc=async(e,t)=>{const n=(await dn("whisper-node")).whisper,r=await((e,t)=>Ko(e,{channels:1,codec:"pcm_s16le",frequency:16e3,suffix:"wav",...t||{}}))(e,{input:t?.input,expected:ec,errorMessage:oc}),i=await sc(t?.model,t),o=await n(r,{modelPath:i,...t||{},whisperOptions:{...t?.whisperOptions||{}}});return assert(o,"Failed to recognize speech.",500),t?.raw?o:o.map(e=>e.speech).join("").trim()},pc=async(e,t)=>{let n;return yn()?n=fc:await cc()?n=lc:_e("Text-to-Speech engine is not available.",500),await n(e,t)},dc=async(e,t)=>{let n;return await uc()?n=hc:_e("Speech-to-Text engine is not available.",500),await n(e,t)};yn()&&!globalThis.utilitas&&(globalThis.utilitas={boxes:oe,color:ce,encryption:n,event:a,manifest:Co,math:u,speech:s,storage:r,uoid:o,utilitas:t,uuid:e},(async()=>{Dt(`(${Co.homepage}) is ready!`,`${(await Ut(Co)).title}.*`)})())})()})();
|
|
2
|
+
(()=>{var e,t,n={41:(e,t,n)=>{"use strict";var r=n(655),i=n(8068),o=n(9675),a=n(5795);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],f=!!a&&a(e,t);if(r)r(e,t,{configurable:null===u&&f?f.configurable:!u,enumerable:null===s&&f?f.enumerable:!s,value:n,writable:null===c&&f?f.writable:!c});else{if(!l&&(s||c||u))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},76:e=>{"use strict";e.exports=Function.prototype.call},186:(e,t,n)=>{e.exports=o;var r=n(9816),i=n(5622);function o(e){if(!(this instanceof o))return new o(e);r.call(this,e)}i.inherits=n(6698),i.inherits(o,r),o.prototype._transform=function(e,t,n){n(null,e)}},196:function(e,t,n){var r;!function(){"use strict";void 0===(r=function(){var e=function(e){throw e},t=function(){},n={storeName:"Store",storePrefix:"IDBWrapper-",dbVersion:1,keyPath:"id",autoIncrement:!0,onStoreReady:function(){},onError:e,indexes:[],implementationPreference:["indexedDB","webkitIndexedDB","mozIndexedDB","shimIndexedDB"]},r=function(e,t){for(var r in void 0===t&&"function"==typeof e&&(t=e),"[object Object]"!=Object.prototype.toString.call(e)&&(e={}),n)this[r]=void 0!==e[r]?e[r]:n[r];this.dbName=this.storePrefix+this.storeName,this.dbVersion=parseInt(this.dbVersion,10)||1,t&&(this.onStoreReady=t);var i="object"==typeof window?window:self,o=this.implementationPreference.filter(function(e){return e in i});this.implementation=o[0],this.idb=i[this.implementation],this.keyRange=i.IDBKeyRange||i.webkitIDBKeyRange||i.mozIDBKeyRange,this.consts={READ_ONLY:"readonly",READ_WRITE:"readwrite",VERSION_CHANGE:"versionchange",NEXT:"next",NEXT_NO_DUPLICATE:"nextunique",PREV:"prev",PREV_NO_DUPLICATE:"prevunique"},this.openDB()},i={constructor:r,version:"1.7.2",db:null,dbName:null,dbVersion:null,store:null,storeName:null,storePrefix:null,keyPath:null,autoIncrement:null,indexes:null,implementationPreference:null,implementation:"",onStoreReady:null,onError:null,_insertIdCount:0,openDB:function(){var e=this.idb.open(this.dbName,this.dbVersion),t=!1;e.onerror=function(e){if(function(e){return"error"in e.target?"VersionError"==e.target.error.name:"errorCode"in e.target&&12==e.target.errorCode}(e))this.onError(new Error("The version number provided is lower than the existing one."));else{var t;if(e.target.error)t=e.target.error;else{var n="IndexedDB unknown error occurred when opening DB "+this.dbName+" version "+this.dbVersion;"errorCode"in e.target&&(n+=" with error code "+e.target.errorCode),t=new Error(n)}this.onError(t)}}.bind(this),e.onsuccess=function(e){if(!t)if(this.db)this.onStoreReady();else if(this.db=e.target.result,"string"!=typeof this.db.version)if(this.db.objectStoreNames.contains(this.storeName)){var n=this.db.transaction([this.storeName],this.consts.READ_ONLY);this.store=n.objectStore(this.storeName);var r=Array.prototype.slice.call(this.getIndexList());this.indexes.forEach(function(e){var n=e.name;if(!n)return t=!0,void this.onError(new Error("Cannot create index: No index name given."));if(this.normalizeIndexData(e),this.hasIndex(n)){var i=this.store.index(n);this.indexComplies(i,e)||(t=!0,this.onError(new Error('Cannot modify index "'+n+'" for current version. Please bump version number to '+(this.dbVersion+1)+"."))),r.splice(r.indexOf(n),1)}else t=!0,this.onError(new Error('Cannot create new index "'+n+'" for current version. Please bump version number to '+(this.dbVersion+1)+"."))},this),r.length&&(t=!0,this.onError(new Error('Cannot delete index(es) "'+r.toString()+'" for current version. Please bump version number to '+(this.dbVersion+1)+"."))),t||this.onStoreReady()}else this.onError(new Error("Object store couldn't be created."));else this.onError(new Error("The IndexedDB implementation in this browser is outdated. Please upgrade your browser."))}.bind(this),e.onupgradeneeded=function(e){if(this.db=e.target.result,this.db.objectStoreNames.contains(this.storeName))this.store=e.target.transaction.objectStore(this.storeName);else{var n={autoIncrement:this.autoIncrement};null!==this.keyPath&&(n.keyPath=this.keyPath),this.store=this.db.createObjectStore(this.storeName,n)}var r=Array.prototype.slice.call(this.getIndexList());this.indexes.forEach(function(e){var n=e.name;if(n||(t=!0,this.onError(new Error("Cannot create index: No index name given."))),this.normalizeIndexData(e),this.hasIndex(n)){var i=this.store.index(n);this.indexComplies(i,e)||(this.store.deleteIndex(n),this.store.createIndex(n,e.keyPath,{unique:e.unique,multiEntry:e.multiEntry})),r.splice(r.indexOf(n),1)}else this.store.createIndex(n,e.keyPath,{unique:e.unique,multiEntry:e.multiEntry})},this),r.length&&r.forEach(function(e){this.store.deleteIndex(e)},this)}.bind(this)},deleteDatabase:function(e,t){if(this.idb.deleteDatabase){this.db.close();var n=this.idb.deleteDatabase(this.dbName);n.onsuccess=e,n.onerror=t}else t(new Error("Browser does not support IndexedDB deleteDatabase!"))},put:function(n,r,i,o){null!==this.keyPath&&(o=i,i=r,r=n),o||(o=e),i||(i=t);var a,s=!1,c=null,u=this.db.transaction([this.storeName],this.consts.READ_WRITE);return u.oncomplete=function(){(s?i:o)(c)},u.onabort=o,u.onerror=o,null!==this.keyPath?(this._addIdPropertyIfNeeded(r),a=u.objectStore(this.storeName).put(r)):a=u.objectStore(this.storeName).put(r,n),a.onsuccess=function(e){s=!0,c=e.target.result},a.onerror=o,u},get:function(n,r,i){i||(i=e),r||(r=t);var o=!1,a=null,s=this.db.transaction([this.storeName],this.consts.READ_ONLY);s.oncomplete=function(){(o?r:i)(a)},s.onabort=i,s.onerror=i;var c=s.objectStore(this.storeName).get(n);return c.onsuccess=function(e){o=!0,a=e.target.result},c.onerror=i,s},remove:function(n,r,i){i||(i=e),r||(r=t);var o=!1,a=null,s=this.db.transaction([this.storeName],this.consts.READ_WRITE);s.oncomplete=function(){(o?r:i)(a)},s.onabort=i,s.onerror=i;var c=s.objectStore(this.storeName).delete(n);return c.onsuccess=function(e){o=!0,a=e.target.result},c.onerror=i,s},batch:function(n,r,i){if(i||(i=e),r||(r=t),"[object Array]"!=Object.prototype.toString.call(n))i(new Error("dataArray argument must be of type Array."));else if(0===n.length)return r(!0);var o=n.length,a=!1,s=!1,c=this.db.transaction([this.storeName],this.consts.READ_WRITE);c.oncomplete=function(){(s?r:i)(s)},c.onabort=i,c.onerror=i;var u=function(){0!==--o||a||(a=!0,s=!0)};return n.forEach(function(e){var t=e.type,n=e.key,r=e.value,o=function(e){c.abort(),a||(a=!0,i(e,t,n))};if("remove"==t){var s=c.objectStore(this.storeName).delete(n);s.onsuccess=u,s.onerror=o}else if("put"==t){var l;null!==this.keyPath?(this._addIdPropertyIfNeeded(r),l=c.objectStore(this.storeName).put(r)):l=c.objectStore(this.storeName).put(r,n),l.onsuccess=u,l.onerror=o}},this),c},putBatch:function(e,t,n){var r=e.map(function(e){return{type:"put",value:e}});return this.batch(r,t,n)},upsertBatch:function(n,r,i,o){"function"==typeof r&&(o=i=r,r={}),o||(o=e),i||(i=t),r||(r={}),"[object Array]"!=Object.prototype.toString.call(n)&&o(new Error("dataArray argument must be of type Array."));var a=r.keyField||this.keyPath,s=n.length,c=!1,u=!1,l=0,f=this.db.transaction([this.storeName],this.consts.READ_WRITE);f.oncomplete=function(){u?i(n):o(!1)},f.onabort=o,f.onerror=o;var h=function(e){n[l++][a]=e.target.result,0!==--s||c||(c=!0,u=!0)};return n.forEach(function(e){var t,n=e.key;null!==this.keyPath?(this._addIdPropertyIfNeeded(e),t=f.objectStore(this.storeName).put(e)):t=f.objectStore(this.storeName).put(e,n),t.onsuccess=h,t.onerror=function(e){f.abort(),c||(c=!0,o(e))}},this),f},removeBatch:function(e,t,n){var r=e.map(function(e){return{type:"remove",key:e}});return this.batch(r,t,n)},getBatch:function(n,r,i,o){if(i||(i=e),r||(r=t),o||(o="sparse"),"[object Array]"!=Object.prototype.toString.call(n))i(new Error("keyArray argument must be of type Array."));else if(0===n.length)return r([]);var a=[],s=n.length,c=!1,u=null,l=this.db.transaction([this.storeName],this.consts.READ_ONLY);l.oncomplete=function(){(c?r:i)(u)},l.onabort=i,l.onerror=i;var f=function(e){e.target.result||"dense"==o?a.push(e.target.result):"sparse"==o&&a.length++,0===--s&&(c=!0,u=a)};return n.forEach(function(e){var t=l.objectStore(this.storeName).get(e);t.onsuccess=f,t.onerror=function(e){u=e,i(e),l.abort()}},this),l},getAll:function(n,r){r||(r=e),n||(n=t);var i=this.db.transaction([this.storeName],this.consts.READ_ONLY),o=i.objectStore(this.storeName);return o.getAll?this._getAllNative(i,o,n,r):this._getAllCursor(i,o,n,r),i},_getAllNative:function(e,t,n,r){var i=!1,o=null;e.oncomplete=function(){(i?n:r)(o)},e.onabort=r,e.onerror=r;var a=t.getAll();a.onsuccess=function(e){i=!0,o=e.target.result},a.onerror=r},_getAllCursor:function(e,t,n,r){var i=[],o=!1,a=null;e.oncomplete=function(){(o?n:r)(a)},e.onabort=r,e.onerror=r;var s=t.openCursor();s.onsuccess=function(e){var t=e.target.result;t?(i.push(t.value),t.continue()):(o=!0,a=i)},s.onError=r},clear:function(n,r){r||(r=e),n||(n=t);var i=!1,o=null,a=this.db.transaction([this.storeName],this.consts.READ_WRITE);a.oncomplete=function(){(i?n:r)(o)},a.onabort=r,a.onerror=r;var s=a.objectStore(this.storeName).clear();return s.onsuccess=function(e){i=!0,o=e.target.result},s.onerror=r,a},_addIdPropertyIfNeeded:function(e){void 0===e[this.keyPath]&&(e[this.keyPath]=this._insertIdCount+++Date.now())},getIndexList:function(){return this.store.indexNames},hasIndex:function(e){return this.store.indexNames.contains(e)},normalizeIndexData:function(e){e.keyPath=e.keyPath||e.name,e.unique=!!e.unique,e.multiEntry=!!e.multiEntry},indexComplies:function(e,t){return["keyPath","unique","multiEntry"].every(function(n){if("multiEntry"==n&&void 0===e[n]&&!1===t[n])return!0;if("keyPath"==n&&"[object Array]"==Object.prototype.toString.call(t[n])){var r=t.keyPath,i=e.keyPath;if("string"==typeof i)return r.toString()==i;if("function"!=typeof i.contains&&"function"!=typeof i.indexOf)return!1;if(i.length!==r.length)return!1;for(var o=0,a=r.length;o<a;o++)if(!(i.contains&&i.contains(r[o])||i.indexOf(-1!==r[o])))return!1;return!0}return t[n]==e[n]})},iterate:function(t,n){var r="desc"==(n=a({index:null,order:"ASC",autoContinue:!0,filterDuplicates:!1,keyRange:null,writeAccess:!1,onEnd:null,onError:e,limit:1/0,offset:0,allowItemRejection:!1},n||{})).order.toLowerCase()?"PREV":"NEXT";n.filterDuplicates&&(r+="_NO_DUPLICATE");var i=!1,o=this.db.transaction([this.storeName],this.consts[n.writeAccess?"READ_WRITE":"READ_ONLY"]),s=o.objectStore(this.storeName);n.index&&(s=s.index(n.index));var c=0;o.oncomplete=function(){i?n.onEnd?n.onEnd():t(null):n.onError(null)},o.onabort=n.onError,o.onerror=n.onError;var u=s.openCursor(n.keyRange,this.consts[r]);return u.onerror=n.onError,u.onsuccess=function(e){var r=e.target.result;if(r)if(n.offset)r.advance(n.offset),n.offset=0;else{var a=t(r.value,r,o);n.allowItemRejection&&!1===a||c++,n.autoContinue&&(c+n.offset<n.limit?r.continue():i=!0)}else i=!0},o},query:function(e,t){var n=[],r=0;return(t=t||{}).autoContinue=!0,t.writeAccess=!1,t.allowItemRejection=!!t.filter,t.onEnd=function(){e(n,r)},this.iterate(function(e){r++;var i=!t.filter||t.filter(e);return!1!==i&&n.push(e),i},t)},count:function(t,n){var r=(n=a({index:null,keyRange:null},n||{})).onError||e,i=!1,o=null,s=this.db.transaction([this.storeName],this.consts.READ_ONLY);s.oncomplete=function(){(i?t:r)(o)},s.onabort=r,s.onerror=r;var c=s.objectStore(this.storeName);n.index&&(c=c.index(n.index));var u=c.count(n.keyRange);return u.onsuccess=function(e){i=!0,o=e.target.result},u.onError=r,s},makeKeyRange:function(e){var t,n=void 0!==e.lower,r=void 0!==e.upper;switch(!0){case void 0!==e.only:t=this.keyRange.only(e.only);break;case n&&r:t=this.keyRange.bound(e.lower,e.upper,e.excludeLower,e.excludeUpper);break;case n:t=this.keyRange.lowerBound(e.lower,e.excludeLower);break;case r:t=this.keyRange.upperBound(e.upper,e.excludeUpper);break;default:throw new Error('Cannot create KeyRange. Provide one or both of "lower" or "upper" value, or an "only" value.')}return t}},o={};function a(e,t){var n,r;for(n in t)(r=t[n])!==o[n]&&r!==e[n]&&(e[n]=r);return e}return r.prototype=i,r.version=i.version,r}.call(t,n,t,e))||(e.exports=r)}()},251:(e,t)=>{t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,c=(1<<s)-1,u=c>>1,l=-7,f=n?i-1:0,h=n?-1:1,p=e[t+f];for(f+=h,o=p&(1<<-l)-1,p>>=-l,l+=s;l>0;o=256*o+e[t+f],f+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=h,l-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=u}return(p?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,c,u=8*o-i-1,l=(1<<u)-1,f=l>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,d=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+f>=1?h/c:h*Math.pow(2,1-f))*c>=2&&(a++,c/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*c-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=d,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[n+p]=255&a,p+=d,a/=256,u-=8);e[n+p-d]|=128*g}},345:(e,t,n)=>{e.exports=n(7007).EventEmitter},414:e=>{"use strict";e.exports=Math.round},453:(e,t,n)=>{"use strict";var r,i=n(9612),o=n(9383),a=n(1237),s=n(9290),c=n(9538),u=n(8068),l=n(9675),f=n(5345),h=n(1514),p=n(8968),d=n(6188),g=n(8002),m=n(5880),y=n(414),b=n(3093),v=Function,w=function(e){try{return v('"use strict"; return ('+e+").constructor;")()}catch(e){}},_=n(5795),E=n(655),k=function(){throw new l},x=_?function(){try{return k}catch(e){try{return _(arguments,"callee").get}catch(e){return k}}}():k,S=n(4039)(),O=n(3628),A=n(1064),R=n(8648),j=n(1002),T=n(76),I={},M="undefined"!=typeof Uint8Array&&O?O(Uint8Array):r,L={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":S&&O?O([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?r:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":I,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":S&&O?O(O([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&S&&O?O((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":_,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":s,"%ReferenceError%":c,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&S&&O?O((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":S&&O?O(""[Symbol.iterator]()):r,"%Symbol%":S?Symbol:r,"%SyntaxError%":u,"%ThrowTypeError%":x,"%TypedArray%":M,"%TypeError%":l,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":f,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet,"%Function.prototype.call%":T,"%Function.prototype.apply%":j,"%Object.defineProperty%":E,"%Object.getPrototypeOf%":A,"%Math.abs%":h,"%Math.floor%":p,"%Math.max%":d,"%Math.min%":g,"%Math.pow%":m,"%Math.round%":y,"%Math.sign%":b,"%Reflect.getPrototypeOf%":R};if(O)try{null.error}catch(e){var B=O(O(e));L["%Error.prototype%"]=B}var C=function e(t){var n;if("%AsyncFunction%"===t)n=w("async function () {}");else if("%GeneratorFunction%"===t)n=w("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=w("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&O&&(n=O(i.prototype))}return L[t]=n,n},N={__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"]},P=n(6743),D=n(9957),F=P.call(T,Array.prototype.concat),U=P.call(j,Array.prototype.splice),z=P.call(T,String.prototype.replace),W=P.call(T,String.prototype.slice),q=P.call(T,RegExp.prototype.exec),$=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Z=/\\(\\)?/g,H=function(e,t){var n,r=e;if(D(N,r)&&(r="%"+(n=N[r])[0]+"%"),D(L,r)){var i=L[r];if(i===I&&(i=C(r)),void 0===i&&!t)throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new u("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===q(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=W(e,0,1),n=W(e,-1);if("%"===t&&"%"!==n)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new u("invalid intrinsic syntax, expected opening `%`");var r=[];return z(e,$,function(e,t,n,i){r[r.length]=n?z(i,Z,"$1"):t||e}),r}(e),r=n.length>0?n[0]:"",i=H("%"+r+"%",t),o=i.name,a=i.value,s=!1,c=i.alias;c&&(r=c[0],U(n,F([0,1],c)));for(var f=1,h=!0;f<n.length;f+=1){var p=n[f],d=W(p,0,1),g=W(p,-1);if(('"'===d||"'"===d||"`"===d||'"'===g||"'"===g||"`"===g)&&d!==g)throw new u("property names with quotes must have matching quotes");if("constructor"!==p&&h||(s=!0),D(L,o="%"+(r+="."+p)+"%"))a=L[o];else if(null!=a){if(!(p in a)){if(!t)throw new l("base intrinsic for "+e+" exists, but the property is not available.");return}if(_&&f+1>=n.length){var m=_(a,p);a=(h=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:a[p]}else h=D(a,p),a=a[p];h&&!s&&(L[o]=a)}}return a}},487:(e,t,n)=>{"use strict";var r=n(6897),i=n(655),o=n(3126),a=n(2205);e.exports=function(e){var t=o(arguments),n=e.length-(arguments.length-1);return r(t,1+(n>0?n:0),!0)},i?i(e.exports,"apply",{value:a}):e.exports.apply=a},507:(e,t,n)=>{"use strict";var r=n(453),i=n(6556),o=n(8859),a=n(9675),s=r("%Map%",!0),c=i("Map.prototype.get",!0),u=i("Map.prototype.set",!0),l=i("Map.prototype.has",!0),f=i("Map.prototype.delete",!0),h=i("Map.prototype.size",!0);e.exports=!!s&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a("Side channel does not contain "+o(e))},delete:function(t){if(e){var n=f(e,t);return 0===h(e)&&(e=void 0),n}return!1},get:function(t){if(e)return c(e,t)},has:function(t){return!!e&&l(e,t)},set:function(t,n){e||(e=new s),u(e,t,n)}};return t}},519:(e,t,n)=>{var r=e.exports.all=[{errno:-2,code:"ENOENT",description:"no such file or directory"},{errno:-1,code:"UNKNOWN",description:"unknown error"},{errno:0,code:"OK",description:"success"},{errno:1,code:"EOF",description:"end of file"},{errno:2,code:"EADDRINFO",description:"getaddrinfo error"},{errno:3,code:"EACCES",description:"permission denied"},{errno:4,code:"EAGAIN",description:"resource temporarily unavailable"},{errno:5,code:"EADDRINUSE",description:"address already in use"},{errno:6,code:"EADDRNOTAVAIL",description:"address not available"},{errno:7,code:"EAFNOSUPPORT",description:"address family not supported"},{errno:8,code:"EALREADY",description:"connection already in progress"},{errno:9,code:"EBADF",description:"bad file descriptor"},{errno:10,code:"EBUSY",description:"resource busy or locked"},{errno:11,code:"ECONNABORTED",description:"software caused connection abort"},{errno:12,code:"ECONNREFUSED",description:"connection refused"},{errno:13,code:"ECONNRESET",description:"connection reset by peer"},{errno:14,code:"EDESTADDRREQ",description:"destination address required"},{errno:15,code:"EFAULT",description:"bad address in system call argument"},{errno:16,code:"EHOSTUNREACH",description:"host is unreachable"},{errno:17,code:"EINTR",description:"interrupted system call"},{errno:18,code:"EINVAL",description:"invalid argument"},{errno:19,code:"EISCONN",description:"socket is already connected"},{errno:20,code:"EMFILE",description:"too many open files"},{errno:21,code:"EMSGSIZE",description:"message too long"},{errno:22,code:"ENETDOWN",description:"network is down"},{errno:23,code:"ENETUNREACH",description:"network is unreachable"},{errno:24,code:"ENFILE",description:"file table overflow"},{errno:25,code:"ENOBUFS",description:"no buffer space available"},{errno:26,code:"ENOMEM",description:"not enough memory"},{errno:27,code:"ENOTDIR",description:"not a directory"},{errno:28,code:"EISDIR",description:"illegal operation on a directory"},{errno:29,code:"ENONET",description:"machine is not on the network"},{errno:31,code:"ENOTCONN",description:"socket is not connected"},{errno:32,code:"ENOTSOCK",description:"socket operation on non-socket"},{errno:33,code:"ENOTSUP",description:"operation not supported on socket"},{errno:34,code:"ENOENT",description:"no such file or directory"},{errno:35,code:"ENOSYS",description:"function not implemented"},{errno:36,code:"EPIPE",description:"broken pipe"},{errno:37,code:"EPROTO",description:"protocol error"},{errno:38,code:"EPROTONOSUPPORT",description:"protocol not supported"},{errno:39,code:"EPROTOTYPE",description:"protocol wrong type for socket"},{errno:40,code:"ETIMEDOUT",description:"connection timed out"},{errno:41,code:"ECHARSET",description:"invalid Unicode character"},{errno:42,code:"EAIFAMNOSUPPORT",description:"address family for hostname not supported"},{errno:44,code:"EAISERVICE",description:"servname not supported for ai_socktype"},{errno:45,code:"EAISOCKTYPE",description:"ai_socktype not supported"},{errno:46,code:"ESHUTDOWN",description:"cannot send after transport endpoint shutdown"},{errno:47,code:"EEXIST",description:"file already exists"},{errno:48,code:"ESRCH",description:"no such process"},{errno:49,code:"ENAMETOOLONG",description:"name too long"},{errno:50,code:"EPERM",description:"operation not permitted"},{errno:51,code:"ELOOP",description:"too many symbolic links encountered"},{errno:52,code:"EXDEV",description:"cross-device link not permitted"},{errno:53,code:"ENOTEMPTY",description:"directory not empty"},{errno:54,code:"ENOSPC",description:"no space left on device"},{errno:55,code:"EIO",description:"i/o error"},{errno:56,code:"EROFS",description:"read-only file system"},{errno:57,code:"ENODEV",description:"no such device"},{errno:58,code:"ESPIPE",description:"invalid seek"},{errno:59,code:"ECANCELED",description:"operation canceled"}];e.exports.errno={},e.exports.code={},r.forEach(function(t){e.exports.errno[t.errno]=t,e.exports.code[t.code]=t}),e.exports.custom=n(2796)(e.exports),e.exports.create=e.exports.custom.createError},537:(e,t,n)=>{var r=n(5606),i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},o=/%[sdj%]/g;t.format=function(e){if(!v(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(u(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,a=String(e).replace(o,function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),s=r[n];n<i;s=r[++n])y(s)||!E(s)?a+=" "+s:a+=" "+u(s);return a},t.deprecate=function(e,n){if(void 0!==r&&!0===r.noDeprecation)return e;if(void 0===r)return function(){return t.deprecate(e,n).apply(this,arguments)};var i=!1;return function(){if(!i){if(r.throwDeprecation)throw new Error(n);r.traceDeprecation?console.trace(n):console.error(n),i=!0}return e.apply(this,arguments)}};var a={},s=/^$/;if(r.env.NODE_DEBUG){var c=r.env.NODE_DEBUG;c=c.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+c+"$","i")}function u(e,n){var r={seen:[],stylize:f};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),m(n)?r.showHidden=n:n&&t._extend(r,n),w(r.showHidden)&&(r.showHidden=!1),w(r.depth)&&(r.depth=2),w(r.colors)&&(r.colors=!1),w(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=l),h(r,e,r.depth)}function l(e,t){var n=u.styles[t];return n?"["+u.colors[n][0]+"m"+e+"["+u.colors[n][1]+"m":e}function f(e,t){return e}function h(e,n,r){if(e.customInspect&&n&&S(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return v(i)||(i=h(e,i,r)),i}var o=function(e,t){if(w(t))return e.stylize("undefined","undefined");if(v(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return b(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):y(t)?e.stylize("null","null"):void 0}(e,n);if(o)return o;var a=Object.keys(n),s=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),x(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return p(n);if(0===a.length){if(S(n)){var c=n.name?": "+n.name:"";return e.stylize("[Function"+c+"]","special")}if(_(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(k(n))return e.stylize(Date.prototype.toString.call(n),"date");if(x(n))return p(n)}var u,l="",f=!1,E=["{","}"];return g(n)&&(f=!0,E=["[","]"]),S(n)&&(l=" [Function"+(n.name?": "+n.name:"")+"]"),_(n)&&(l=" "+RegExp.prototype.toString.call(n)),k(n)&&(l=" "+Date.prototype.toUTCString.call(n)),x(n)&&(l=" "+p(n)),0!==a.length||f&&0!=n.length?r<0?_(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),u=f?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a<s;++a)j(t,String(a))?o.push(d(e,t,n,r,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(d(e,t,n,r,i,!0))}),o}(e,n,r,s,a):a.map(function(t){return d(e,n,r,s,t,f)}),e.seen.pop(),function(e,t,n){return e.reduce(function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(u,l,E)):E[0]+l+E[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,r,i,o){var a,s,c;if((c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),j(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(c.value)<0?(s=y(n)?h(e,c.value,null):h(e,c.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").slice(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),w(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function g(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function y(e){return null===e}function b(e){return"number"==typeof e}function v(e){return"string"==typeof e}function w(e){return void 0===e}function _(e){return E(e)&&"[object RegExp]"===O(e)}function E(e){return"object"==typeof e&&null!==e}function k(e){return E(e)&&"[object Date]"===O(e)}function x(e){return E(e)&&("[object Error]"===O(e)||e instanceof Error)}function S(e){return"function"==typeof e}function O(e){return Object.prototype.toString.call(e)}function A(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!a[e])if(s.test(e)){var n=r.pid;a[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else a[e]=function(){};return a[e]},t.inspect=u,u.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]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(9032),t.isArray=g,t.isBoolean=m,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=b,t.isString=v,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=w,t.isRegExp=_,t.types.isRegExp=_,t.isObject=E,t.isDate=k,t.types.isDate=k,t.isError=x,t.types.isNativeError=x,t.isFunction=S,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(1135);var R=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function j(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(n=[A((e=new Date).getHours()),A(e.getMinutes()),A(e.getSeconds())].join(":"),[e.getDate(),R[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(6698),t._extend=function(e,t){if(!t||!E(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var T="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function I(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(T&&e[T]){var t;if("function"!=typeof(t=e[T]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,T,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise(function(e,r){t=e,n=r}),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push(function(e,r){e?n(e):t(r)});try{e.apply(this,i)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),T&&Object.defineProperty(t,T,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,i(e))},t.promisify.custom=T,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var i=t.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var o=this,a=function(){return i.apply(o,arguments)};e.apply(this,t).then(function(e){r.nextTick(a.bind(null,null,e))},function(e){r.nextTick(I.bind(null,e,a))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,i(e)),t}},554:(e,t,n)=>{var r=n(8287).Buffer,i=r.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},o=t.I=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!i(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=s;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=c;break;default:return void(this.write=a)}this.charBuffer=new r(6),this.charReceived=0,this.charLength=0};function a(e){return e.toString(this.encoding)}function s(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function c(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}o.prototype.write=function(e){for(var t="";this.charLength;){var n=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived<this.charLength)return"";if(e=e.slice(n,e.length),!((r=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&r<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var r,i=e.length;if(this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),i=(t+=e.toString(this.encoding,0,i)).length-1,(r=t.charCodeAt(i))>=55296&&r<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},o.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},o.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,r=this.charBuffer,i=this.encoding;t+=r.slice(0,n).toString(i)}return t}},564:()=>{},592:(e,t,n)=>{"use strict";var r=n(655),i=function(){return!!r};i.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},626:(e,t,n)=>{var r=n(5606);e.exports=u;var i=n(8287).Buffer;u.WritableState=c;var o=n(5622);o.inherits=n(6698);var a=n(8310);function s(e,t,n){this.chunk=e,this.encoding=t,this.callback=n}function c(e,t){var n=(e=e||{}).highWaterMark;this.highWaterMark=n||0===n?n:16384,this.objectMode=!!e.objectMode,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var i=!1===e.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,i=n.sync,o=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,i,o){n?r.nextTick(function(){o(i)}):o(i),e._writableState.errorEmitted=!0,e.emit("error",i)}(e,0,i,t,o);else{var a=h(0,n);a||n.bufferProcessing||!n.buffer.length||function(e,t){t.bufferProcessing=!0;for(var n=0;n<t.buffer.length;n++){var r=t.buffer[n],i=r.chunk,o=r.encoding,a=r.callback;if(l(e,t,t.objectMode?1:i.length,i,o,a),t.writing){n++;break}}t.bufferProcessing=!1,n<t.buffer.length?t.buffer=t.buffer.slice(n):t.buffer.length=0}(e,n),i?r.nextTick(function(){f(e,n,a,o)}):f(e,n,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.buffer=[],this.errorEmitted=!1}function u(e){var t=n(5240);if(!(this instanceof u||this instanceof t))return new u(e);this._writableState=new c(e,this),this.writable=!0,a.call(this)}function l(e,t,n,r,i,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,e._write(r,i,t.onwrite),t.sync=!1}function f(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),r(),n&&p(e,t)}function h(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function p(e,t){var n=h(0,t);return n&&(t.finished=!0,e.emit("finish")),n}o.inherits(u,a),u.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},u.prototype.write=function(e,t,n){var o=this._writableState,a=!1;return"function"==typeof t&&(n=t,t=null),i.isBuffer(e)?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=function(){}),o.ended?function(e,t,n){var i=new Error("write after end");e.emit("error",i),r.nextTick(function(){n(i)})}(this,0,n):function(e,t,n,o){var a=!0;if(!i.isBuffer(n)&&"string"!=typeof n&&null!=n&&!t.objectMode){var s=new TypeError("Invalid non-string/buffer chunk");e.emit("error",s),r.nextTick(function(){o(s)}),a=!1}return a}(this,o,e,n)&&(a=function(e,t,n,r,o){n=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=new i(t,n)),t}(t,n,r),i.isBuffer(n)&&(r="buffer");var a=t.objectMode?1:n.length;t.length+=a;var c=t.length<t.highWaterMark;return c||(t.needDrain=!0),t.writing?t.buffer.push(new s(n,r,o)):l(e,t,a,n,r,o),c}(this,o,e,t,n)),a},u.prototype._write=function(e,t,n){n(new Error("not implemented"))},u.prototype.end=function(e,t,n){var i=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),i.ending||i.finished||function(e,t,n){t.ending=!0,p(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n)),t.ended=!0}(this,i,n)}},655:e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},717:()=>{},736:(e,t,n)=>{e.exports=function(e){function t(e){let n,i,o,a=null;function s(...e){if(!s.enabled)return;const r=s,i=Number(new Date),o=i-(n||i);r.diff=o,r.prev=n,r.curr=i,n=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,i)=>{if("%%"===n)return"%";a++;const o=t.formatters[i];if("function"==typeof o){const t=e[a];n=o.call(r,t),e.splice(a,1),a--}return n}),t.formatArgs.call(r,e),(r.log||t.log).apply(r,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=r,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function i(e,t){let n=0,r=0,i=-1,o=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||"*"===t[r]))"*"===t[r]?(i=r,o=n,r++):(n++,r++);else{if(-1===i)return!1;r=i+1,o++,n=o}for(;r<t.length&&"*"===t[r];)r++;return r===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of n)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const n of t.skips)if(i(e,n))return!1;for(const n of t.names)if(i(e,n))return!0;return!1},t.humanize=n(6585),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},765:e=>{function t(e){return Promise.resolve().then(()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}t.keys=()=>[],t.resolve=t,t.id=765,e.exports=t},920:(e,t,n)=>{"use strict";var r=n(9675),i=n(8859),o=n(4803),a=n(507),s=n(2271)||a||o;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r("Side channel does not contain "+i(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||(e=s()),e.set(t,n)}};return t}},993:()=>{},1002:e=>{"use strict";e.exports=Function.prototype.apply},1064:(e,t,n)=>{"use strict";var r=n(9612);e.exports=r.getPrototypeOf||null},1068:(e,t,n)=>{var r=n(5606),i=n(8310).Stream,o=n(537).inherits,a=n(3493),s=n(4829),c=n.g.setImmediate||r.nextTick,u=n(2350).getOptions,l={type:"put"};function f(e,t){if(!(this instanceof f))return new f(e,t);i.call(this),this._options=a(l,u(t,e)),this._db=t,this._buffer=[],this._status="init",this._end=!1,this.writable=!0,this.readable=!1;var n=this,r=function(){n.writable&&(n._status="ready",n.emit("ready"),n._process())};t.isOpen()?c(r):t.once("ready",r)}o(f,i),f.prototype.write=function(e){return!(!this.writable||(this._buffer.push(e),"init"!=this._status&&this._processDelayed(),this._options.maxBufferLength&&this._buffer.length>this._options.maxBufferLength&&(this._writeBlock=!0,1)))},f.prototype.end=function(e){var t=this;e&&this.write(e),c(function(){t._end=!0,t._process()})},f.prototype.destroy=function(){this.writable=!1,this.end()},f.prototype.destroySoon=function(){this.end()},f.prototype.add=function(e){if(e.props)return e.props.Directory?e.pipe(this._db.writeStream(this._options)):(e.props.File||e.File||"File"==e.type)&&this._write(e),!0},f.prototype._processDelayed=function(){var e=this;c(function(){e._process()})},f.prototype._process=function(){var e,t=this;if("ready"==t._status||!t.writable)return t._buffer.length&&t.writable?(t._status="writing",e=t._buffer,t._buffer=[],t._db.batch(e.map(function(e){return{type:e.type||t._options.type,key:e.key,value:e.value,keyEncoding:e.keyEncoding||t._options.keyEncoding,valueEncoding:e.valueEncoding||e.encoding||t._options.valueEncoding}}),function(e){if(t.writable){if("closed"!=t._status&&(t._status="ready"),e)return t.writable=!1,t.emit("error",e);t._process()}}),void(t._writeBlock&&(t._writeBlock=!1,t.emit("drain")))):void(t._end&&"closed"!=t._status&&(t._status="closed",t.writable=!1,t.emit("close")));t._buffer.length&&"closed"!=t._status&&t._processDelayed()},f.prototype._write=function(e){var t=e.path||e.props.path,n=this;t&&e.pipe(s(function(e,r){if(e)return n.writable=!1,n.emit("error",e);n._options.fstreamRoot&&t.indexOf(n._options.fstreamRoot)>-1&&(t=t.substr(n._options.fstreamRoot.length+1)),n.write({key:t,value:r.slice(0)})}))},f.prototype.toString=function(){return"LevelUP.WriteStream"},e.exports=f},1093:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},1097:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},1135:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},1189:(e,t,n)=>{"use strict";var r=Array.prototype.slice,i=n(1093),o=Object.keys,a=o?function(e){return o(e)}:n(8875),s=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return i(e)?s(r.call(e)):s(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},1218:(e,t,n)=>{var r=n(7007);e.exports=function(){var e={},t=new r.EventEmitter;return t.watch=function(t,n){return e[t]||(e[t]=new r.EventEmitter,e[t].setMaxListeners(0)),n&&e[t].on("change",n),e[t]},t.watcher=function(e,n){var i=new r.EventEmitter,o=function(){i.emit("change","change",e)};return t.watch(e,o),n&&i.on("change",n),i.close=function(){t.unwatch(e,o)},i},t.unwatch=function(t,n){e[t]&&(n?e[t].removeListener("change",n):e[t].removeAllListeners("change"),e[t].listeners("change").length||delete e[t])},t.change=function(n){e[n]&&e[n].emit("change"),t.emit("change",n)},t.cb=function(e,n){return function(r,i){e&&t.change(e),n&&n(r,i)}},t}},1237:e=>{"use strict";e.exports=EvalError},1333:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var r in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},1421:(e,t,n)=>{var r=n(537),i=n(1831).No,o=n(4602);function a(e,t){t||(t={}),this.options=t,i.call(this,e),this._order=t.reverse?"DESC":"ASC",this._limit=t.limit,this._count=0,this._done=!1;var n=o.lowerBound(t),r=o.upperBound(t);try{this._keyRange=n||r?this.db.makeKeyRange({lower:n,upper:r,excludeLower:o.lowerBoundExclusive(t),excludeUpper:o.upperBoundExclusive(t)}):null}catch(e){this._keyRangeError=!0}this.callback=null}e.exports=a,r.inherits(a,i),a.prototype.createIterator=function(){var e=this;e.iterator=e.db.iterate(function(){e.onItem.apply(e,arguments)},{keyRange:e._keyRange,autoContinue:!1,order:e._order,onError:function(e){console.log("horrible error",e)}})},a.prototype.onItem=function(e,t,n){if(!t&&this.callback)return this.callback(),void(this.callback=!1);var r=!0;this._limit&&this._limit>0&&this._count++>=this._limit&&(r=!1),r&&this.callback(!1,t.key,t.value),t&&t.continue()},a.prototype._next=function(e){return e?this._keyRangeError?e():(this._started||(this.createIterator(),this._started=!0),void(this.callback=e)):new Error("next() requires a callback argument")}},1438:(e,t,n)=>{var r=n(5606);e.exports=f;var i=n(2880),o=n(8287).Buffer;f.ReadableState=l;var a=n(7007).EventEmitter;a.listenerCount||(a.listenerCount=function(e,t){return e.listeners(t).length});var s,c=n(8310),u=n(5622);function l(e,t){var r=(e=e||{}).highWaterMark;this.highWaterMark=r||0===r?r:16384,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=!1,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.calledRead=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!e.objectMode,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=n(5641).I),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function f(e){if(!(this instanceof f))return new f(e);this._readableState=new l(e,this),this.readable=!0,c.call(this)}function h(e,t,n,i,a){var s=function(e,t){var n=null;return o.isBuffer(t)||"string"==typeof t||null==t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(t,n);if(s)e.emit("error",s);else if(null==n)t.reading=!1,t.ended||function(e,t){if(t.decoder&&!t.ended){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.length>0?g(e):_(e)}(e,t);else if(t.objectMode||n&&n.length>0)if(t.ended&&!a){var c=new Error("stream.push() after EOF");e.emit("error",c)}else t.endEmitted&&a?(c=new Error("stream.unshift() after end event"),e.emit("error",c)):(!t.decoder||a||i||(n=t.decoder.write(n)),t.length+=t.objectMode?1:n.length,a?t.buffer.unshift(n):(t.reading=!1,t.buffer.push(n)),t.needReadable&&g(e),function(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(function(){!function(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}(e,t)}))}(e,t));else a||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}u.inherits=n(6698),u.inherits(f,c),f.prototype.push=function(e,t){var n=this._readableState;return"string"!=typeof e||n.objectMode||(t=t||n.defaultEncoding)!==n.encoding&&(e=new o(e,t),t=""),h(this,n,e,t,!1)},f.prototype.unshift=function(e){return h(this,this._readableState,e,"",!0)},f.prototype.setEncoding=function(e){s||(s=n(5641).I),this._readableState.decoder=new s(e),this._readableState.encoding=e};var p=8388608;function d(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:null===e||isNaN(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:e<=0?0:(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>=p)e=p;else{e--;for(var t=1;t<32;t<<=1)e|=e>>t;e++}return e}(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function g(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,t.sync?r.nextTick(function(){m(e)}):m(e))}function m(e){e.emit("readable")}function y(e){var t,n=e._readableState;function r(e,r,i){!1===e.write(t)&&n.awaitDrain++}for(n.awaitDrain=0;n.pipesCount&&null!==(t=e.read());)if(1===n.pipesCount?r(n.pipes):E(n.pipes,r),e.emit("data",t),n.awaitDrain>0)return;if(0===n.pipesCount)return n.flowing=!1,void(a.listenerCount(e,"data")>0&&v(e));n.ranOut=!0}function b(){this._readableState.ranOut&&(this._readableState.ranOut=!1,y(this))}function v(e,t){if(e._readableState.flowing)throw new Error("Cannot switch to old mode now.");var n=t||!1,i=!1;e.readable=!0,e.pipe=c.prototype.pipe,e.on=e.addListener=c.prototype.on,e.on("readable",function(){var t;for(i=!0;!n&&null!==(t=e.read());)e.emit("data",t);null===t&&(i=!1,e._readableState.needReadable=!0)}),e.pause=function(){n=!0,this.emit("pause")},e.resume=function(){n=!1,i?r.nextTick(function(){e.emit("readable")}):this.read(0),this.emit("resume")},e.emit("readable")}function w(e,t){var n,r=t.buffer,i=t.length,a=!!t.decoder,s=!!t.objectMode;if(0===r.length)return null;if(0===i)n=null;else if(s)n=r.shift();else if(!e||e>=i)n=a?r.join(""):o.concat(r,i),r.length=0;else if(e<r[0].length)n=(f=r[0]).slice(0,e),r[0]=f.slice(e);else if(e===r[0].length)n=r.shift();else{n=a?"":new o(e);for(var c=0,u=0,l=r.length;u<l&&c<e;u++){var f=r[0],h=Math.min(e-c,f.length);a?n+=f.slice(0,h):f.copy(n,c,0,h),h<f.length?r[0]=f.slice(h):r.shift(),c+=h}}return n}function _(e){var t=e._readableState;if(t.length>0)throw new Error("endReadable called on non-empty stream");!t.endEmitted&&t.calledRead&&(t.ended=!0,r.nextTick(function(){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}))}function E(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n)}f.prototype.read=function(e){var t=this._readableState;t.calledRead=!0;var n,r=e;if(("number"!=typeof e||e>0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return g(this),null;if(0===(e=d(e,t))&&t.ended)return n=null,t.length>0&&t.decoder&&(n=w(e,t),t.length-=n.length),0===t.length&&_(this),n;var i=t.needReadable;return t.length-e<=t.highWaterMark&&(i=!0),(t.ended||t.reading)&&(i=!1),i&&(t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1),i&&!t.reading&&(e=d(r,t)),null===(n=e>0?w(e,t):null)&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),t.ended&&!t.endEmitted&&0===t.length&&_(this),n},f.prototype._read=function(e){this.emit("error",new Error("not implemented"))},f.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1;var s=t&&!1===t.end||e===r.stdout||e===r.stderr?f:u;function c(e){e===n&&f()}function u(){e.end()}o.endEmitted?r.nextTick(s):n.once("end",s),e.on("unpipe",c);var l=function(e){return function(){var t=e._readableState;t.awaitDrain--,0===t.awaitDrain&&y(e)}}(n);function f(){e.removeListener("close",p),e.removeListener("finish",d),e.removeListener("drain",l),e.removeListener("error",h),e.removeListener("unpipe",c),n.removeListener("end",u),n.removeListener("end",f),e._writableState&&!e._writableState.needDrain||l()}function h(t){g(),e.removeListener("error",h),0===a.listenerCount(e,"error")&&e.emit("error",t)}function p(){e.removeListener("finish",d),g()}function d(){e.removeListener("close",p),g()}function g(){n.unpipe(e)}return e.on("drain",l),e._events&&e._events.error?i(e._events.error)?e._events.error.unshift(h):e._events.error=[h,e._events.error]:e.on("error",h),e.once("close",p),e.once("finish",d),e.emit("pipe",n),o.flowing||(this.on("readable",b),o.flowing=!0,r.nextTick(function(){y(n)})),e},f.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,this.removeListener("readable",b),t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,this.removeListener("readable",b),t.flowing=!1;for(var i=0;i<r;i++)n[i].emit("unpipe",this);return this}return-1===(i=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}(t.pipes,e))||(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},f.prototype.on=function(e,t){var n=c.prototype.on.call(this,e,t);if("data"!==e||this._readableState.flowing||v(this),"readable"===e&&this.readable){var r=this._readableState;r.readableListening||(r.readableListening=!0,r.emittedReadable=!1,r.needReadable=!0,r.reading?r.length&&g(this):this.read(0))}return n},f.prototype.addListener=f.prototype.on,f.prototype.resume=function(){v(this),this.read(0),this.emit("resume")},f.prototype.pause=function(){v(this,!0),this.emit("pause")},f.prototype.wrap=function(e){var t=this._readableState,n=!1,r=this;for(var i in e.on("end",function(){if(t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)}),e.on("data",function(i){t.decoder&&(i=t.decoder.write(i)),t.objectMode&&null==i||(t.objectMode||i&&i.length)&&(r.push(i)||(n=!0,e.pause()))}),e)"function"==typeof e[i]&&void 0===this[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return E(["error","close","destroy","pause","resume"],function(t){e.on(t,r.emit.bind(r,t))}),r._read=function(t){n&&(n=!1,e.resume())},r},f._fromList=w},1445:(e,t,n)=>{var r=n(5606);e.exports=u;var i=n(8287).Buffer;u.WritableState=c;var o=n(5622);o.inherits=n(6698);var a=n(8310);function s(e,t,n){this.chunk=e,this.encoding=t,this.callback=n}function c(e,t){var n=(e=e||{}).highWaterMark;this.highWaterMark=n||0===n?n:16384,this.objectMode=!!e.objectMode,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var i=!1===e.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,i=n.sync,o=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,i,o){n?r.nextTick(function(){o(i)}):o(i),e._writableState.errorEmitted=!0,e.emit("error",i)}(e,0,i,t,o);else{var a=h(0,n);a||n.bufferProcessing||!n.buffer.length||function(e,t){t.bufferProcessing=!0;for(var n=0;n<t.buffer.length;n++){var r=t.buffer[n],i=r.chunk,o=r.encoding,a=r.callback;if(l(e,t,t.objectMode?1:i.length,i,o,a),t.writing){n++;break}}t.bufferProcessing=!1,n<t.buffer.length?t.buffer=t.buffer.slice(n):t.buffer.length=0}(e,n),i?r.nextTick(function(){f(e,n,a,o)}):f(e,n,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.buffer=[],this.errorEmitted=!1}function u(e){var t=n(1511);if(!(this instanceof u||this instanceof t))return new u(e);this._writableState=new c(e,this),this.writable=!0,a.call(this)}function l(e,t,n,r,i,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,e._write(r,i,t.onwrite),t.sync=!1}function f(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),r(),n&&p(e,t)}function h(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function p(e,t){var n=h(0,t);return n&&(t.finished=!0,e.emit("finish")),n}o.inherits(u,a),u.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},u.prototype.write=function(e,t,n){var o=this._writableState,a=!1;return"function"==typeof t&&(n=t,t=null),i.isBuffer(e)?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=function(){}),o.ended?function(e,t,n){var i=new Error("write after end");e.emit("error",i),r.nextTick(function(){n(i)})}(this,0,n):function(e,t,n,o){var a=!0;if(!i.isBuffer(n)&&"string"!=typeof n&&null!=n&&!t.objectMode){var s=new TypeError("Invalid non-string/buffer chunk");e.emit("error",s),r.nextTick(function(){o(s)}),a=!1}return a}(this,o,e,n)&&(a=function(e,t,n,r,o){n=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=new i(t,n)),t}(t,n,r),i.isBuffer(n)&&(r="buffer");var a=t.objectMode?1:n.length;t.length+=a;var c=t.length<t.highWaterMark;return c||(t.needDrain=!0),t.writing?t.buffer.push(new s(n,r,o)):l(e,t,a,n,r,o),c}(this,o,e,t,n)),a},u.prototype._write=function(e,t,n){n(new Error("not implemented"))},u.prototype.end=function(e,t,n){var i=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),i.ending||i.finished||function(e,t,n){t.ending=!0,p(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n)),t.ended=!0}(this,i,n)}},1447:(e,t,n)=>{"use strict";var r=n(9805),i=n(3269),o=n(4823),a=n(7293),s=n(1998),c=-2,u=12,l=30;function f(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function h(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function p(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(852),t.distcode=t.distdyn=new r.Buf32(592),t.sane=1,t.back=-1,0):c}function d(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,p(e)):c}function g(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?c:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,d(e))):c}function m(e,t){var n,r;return e?(r=new h,e.state=r,r.window=null,0!==(n=g(e,t))&&(e.state=null),n):c}var y,b,v=!0;function w(e){if(v){var t;for(y=new r.Buf32(512),b=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(1,e.lens,0,288,y,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,b,0,e.work,{bits:5}),v=!1}e.lencode=y,e.lenbits=9,e.distcode=b,e.distbits=5}function _(e,t,n,i){var o,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new r.Buf8(a.wsize)),i>=a.wsize?(r.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>i&&(o=i),r.arraySet(a.window,t,n-i,o,a.wnext),(i-=o)?(r.arraySet(a.window,t,n-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}t.inflateReset=d,t.inflateReset2=g,t.inflateResetKeep=p,t.inflateInit=function(e){return m(e,15)},t.inflateInit2=m,t.inflate=function(e,t){var n,h,p,d,g,m,y,b,v,E,k,x,S,O,A,R,j,T,I,M,L,B,C,N,P=0,D=new r.Buf8(4),F=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return c;(n=e.state).mode===u&&(n.mode=13),g=e.next_out,p=e.output,y=e.avail_out,d=e.next_in,h=e.input,m=e.avail_in,b=n.hold,v=n.bits,E=m,k=y,B=0;e:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;v<16;){if(0===m)break e;m--,b+=h[d++]<<v,v+=8}if(2&n.wrap&&35615===b){n.check=0,D[0]=255&b,D[1]=b>>>8&255,n.check=o(n.check,D,2,0),b=0,v=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&b)<<8)+(b>>8))%31){e.msg="incorrect header check",n.mode=l;break}if(8!=(15&b)){e.msg="unknown compression method",n.mode=l;break}if(v-=4,L=8+(15&(b>>>=4)),0===n.wbits)n.wbits=L;else if(L>n.wbits){e.msg="invalid window size",n.mode=l;break}n.dmax=1<<L,e.adler=n.check=1,n.mode=512&b?10:u,b=0,v=0;break;case 2:for(;v<16;){if(0===m)break e;m--,b+=h[d++]<<v,v+=8}if(n.flags=b,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=l;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=l;break}n.head&&(n.head.text=b>>8&1),512&n.flags&&(D[0]=255&b,D[1]=b>>>8&255,n.check=o(n.check,D,2,0)),b=0,v=0,n.mode=3;case 3:for(;v<32;){if(0===m)break e;m--,b+=h[d++]<<v,v+=8}n.head&&(n.head.time=b),512&n.flags&&(D[0]=255&b,D[1]=b>>>8&255,D[2]=b>>>16&255,D[3]=b>>>24&255,n.check=o(n.check,D,4,0)),b=0,v=0,n.mode=4;case 4:for(;v<16;){if(0===m)break e;m--,b+=h[d++]<<v,v+=8}n.head&&(n.head.xflags=255&b,n.head.os=b>>8),512&n.flags&&(D[0]=255&b,D[1]=b>>>8&255,n.check=o(n.check,D,2,0)),b=0,v=0,n.mode=5;case 5:if(1024&n.flags){for(;v<16;){if(0===m)break e;m--,b+=h[d++]<<v,v+=8}n.length=b,n.head&&(n.head.extra_len=b),512&n.flags&&(D[0]=255&b,D[1]=b>>>8&255,n.check=o(n.check,D,2,0)),b=0,v=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((x=n.length)>m&&(x=m),x&&(n.head&&(L=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,h,d,x,L)),512&n.flags&&(n.check=o(n.check,h,x,d)),m-=x,d+=x,n.length-=x),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===m)break e;x=0;do{L=h[d+x++],n.head&&L&&n.length<65536&&(n.head.name+=String.fromCharCode(L))}while(L&&x<m);if(512&n.flags&&(n.check=o(n.check,h,x,d)),m-=x,d+=x,L)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===m)break e;x=0;do{L=h[d+x++],n.head&&L&&n.length<65536&&(n.head.comment+=String.fromCharCode(L))}while(L&&x<m);if(512&n.flags&&(n.check=o(n.check,h,x,d)),m-=x,d+=x,L)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;v<16;){if(0===m)break e;m--,b+=h[d++]<<v,v+=8}if(b!==(65535&n.check)){e.msg="header crc mismatch",n.mode=l;break}b=0,v=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=u;break;case 10:for(;v<32;){if(0===m)break e;m--,b+=h[d++]<<v,v+=8}e.adler=n.check=f(b),b=0,v=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=g,e.avail_out=y,e.next_in=d,e.avail_in=m,n.hold=b,n.bits=v,2;e.adler=n.check=1,n.mode=u;case u:if(5===t||6===t)break e;case 13:if(n.last){b>>>=7&v,v-=7&v,n.mode=27;break}for(;v<3;){if(0===m)break e;m--,b+=h[d++]<<v,v+=8}switch(n.last=1&b,v-=1,3&(b>>>=1)){case 0:n.mode=14;break;case 1:if(w(n),n.mode=20,6===t){b>>>=2,v-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=l}b>>>=2,v-=2;break;case 14:for(b>>>=7&v,v-=7&v;v<32;){if(0===m)break e;m--,b+=h[d++]<<v,v+=8}if((65535&b)!=(b>>>16^65535)){e.msg="invalid stored block lengths",n.mode=l;break}if(n.length=65535&b,b=0,v=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(x=n.length){if(x>m&&(x=m),x>y&&(x=y),0===x)break e;r.arraySet(p,h,d,x,g),m-=x,d+=x,y-=x,g+=x,n.length-=x;break}n.mode=u;break;case 17:for(;v<14;){if(0===m)break e;m--,b+=h[d++]<<v,v+=8}if(n.nlen=257+(31&b),b>>>=5,v-=5,n.ndist=1+(31&b),b>>>=5,v-=5,n.ncode=4+(15&b),b>>>=4,v-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=l;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;v<3;){if(0===m)break e;m--,b+=h[d++]<<v,v+=8}n.lens[F[n.have++]]=7&b,b>>>=3,v-=3}for(;n.have<19;)n.lens[F[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,C={bits:n.lenbits},B=s(0,n.lens,0,19,n.lencode,0,n.work,C),n.lenbits=C.bits,B){e.msg="invalid code lengths set",n.mode=l;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;R=(P=n.lencode[b&(1<<n.lenbits)-1])>>>16&255,j=65535&P,!((A=P>>>24)<=v);){if(0===m)break e;m--,b+=h[d++]<<v,v+=8}if(j<16)b>>>=A,v-=A,n.lens[n.have++]=j;else{if(16===j){for(N=A+2;v<N;){if(0===m)break e;m--,b+=h[d++]<<v,v+=8}if(b>>>=A,v-=A,0===n.have){e.msg="invalid bit length repeat",n.mode=l;break}L=n.lens[n.have-1],x=3+(3&b),b>>>=2,v-=2}else if(17===j){for(N=A+3;v<N;){if(0===m)break e;m--,b+=h[d++]<<v,v+=8}v-=A,L=0,x=3+(7&(b>>>=A)),b>>>=3,v-=3}else{for(N=A+7;v<N;){if(0===m)break e;m--,b+=h[d++]<<v,v+=8}v-=A,L=0,x=11+(127&(b>>>=A)),b>>>=7,v-=7}if(n.have+x>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=l;break}for(;x--;)n.lens[n.have++]=L}}if(n.mode===l)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=l;break}if(n.lenbits=9,C={bits:n.lenbits},B=s(1,n.lens,0,n.nlen,n.lencode,0,n.work,C),n.lenbits=C.bits,B){e.msg="invalid literal/lengths set",n.mode=l;break}if(n.distbits=6,n.distcode=n.distdyn,C={bits:n.distbits},B=s(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,C),n.distbits=C.bits,B){e.msg="invalid distances set",n.mode=l;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(m>=6&&y>=258){e.next_out=g,e.avail_out=y,e.next_in=d,e.avail_in=m,n.hold=b,n.bits=v,a(e,k),g=e.next_out,p=e.output,y=e.avail_out,d=e.next_in,h=e.input,m=e.avail_in,b=n.hold,v=n.bits,n.mode===u&&(n.back=-1);break}for(n.back=0;R=(P=n.lencode[b&(1<<n.lenbits)-1])>>>16&255,j=65535&P,!((A=P>>>24)<=v);){if(0===m)break e;m--,b+=h[d++]<<v,v+=8}if(R&&!(240&R)){for(T=A,I=R,M=j;R=(P=n.lencode[M+((b&(1<<T+I)-1)>>T)])>>>16&255,j=65535&P,!(T+(A=P>>>24)<=v);){if(0===m)break e;m--,b+=h[d++]<<v,v+=8}b>>>=T,v-=T,n.back+=T}if(b>>>=A,v-=A,n.back+=A,n.length=j,0===R){n.mode=26;break}if(32&R){n.back=-1,n.mode=u;break}if(64&R){e.msg="invalid literal/length code",n.mode=l;break}n.extra=15&R,n.mode=22;case 22:if(n.extra){for(N=n.extra;v<N;){if(0===m)break e;m--,b+=h[d++]<<v,v+=8}n.length+=b&(1<<n.extra)-1,b>>>=n.extra,v-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;R=(P=n.distcode[b&(1<<n.distbits)-1])>>>16&255,j=65535&P,!((A=P>>>24)<=v);){if(0===m)break e;m--,b+=h[d++]<<v,v+=8}if(!(240&R)){for(T=A,I=R,M=j;R=(P=n.distcode[M+((b&(1<<T+I)-1)>>T)])>>>16&255,j=65535&P,!(T+(A=P>>>24)<=v);){if(0===m)break e;m--,b+=h[d++]<<v,v+=8}b>>>=T,v-=T,n.back+=T}if(b>>>=A,v-=A,n.back+=A,64&R){e.msg="invalid distance code",n.mode=l;break}n.offset=j,n.extra=15&R,n.mode=24;case 24:if(n.extra){for(N=n.extra;v<N;){if(0===m)break e;m--,b+=h[d++]<<v,v+=8}n.offset+=b&(1<<n.extra)-1,b>>>=n.extra,v-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=l;break}n.mode=25;case 25:if(0===y)break e;if(x=k-y,n.offset>x){if((x=n.offset-x)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=l;break}x>n.wnext?(x-=n.wnext,S=n.wsize-x):S=n.wnext-x,x>n.length&&(x=n.length),O=n.window}else O=p,S=g-n.offset,x=n.length;x>y&&(x=y),y-=x,n.length-=x;do{p[g++]=O[S++]}while(--x);0===n.length&&(n.mode=21);break;case 26:if(0===y)break e;p[g++]=n.length,y--,n.mode=21;break;case 27:if(n.wrap){for(;v<32;){if(0===m)break e;m--,b|=h[d++]<<v,v+=8}if(k-=y,e.total_out+=k,n.total+=k,k&&(e.adler=n.check=n.flags?o(n.check,p,k,g-k):i(n.check,p,k,g-k)),k=y,(n.flags?b:f(b))!==n.check){e.msg="incorrect data check",n.mode=l;break}b=0,v=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;v<32;){if(0===m)break e;m--,b+=h[d++]<<v,v+=8}if(b!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=l;break}b=0,v=0}n.mode=29;case 29:B=1;break e;case l:B=-3;break e;case 31:return-4;default:return c}return e.next_out=g,e.avail_out=y,e.next_in=d,e.avail_in=m,n.hold=b,n.bits=v,(n.wsize||k!==e.avail_out&&n.mode<l&&(n.mode<27||4!==t))&&_(e,e.output,e.next_out,k-e.avail_out)?(n.mode=31,-4):(E-=e.avail_in,k-=e.avail_out,e.total_in+=E,e.total_out+=k,n.total+=k,n.wrap&&k&&(e.adler=n.check=n.flags?o(n.check,p,k,e.next_out-k):i(n.check,p,k,e.next_out-k)),e.data_type=n.bits+(n.last?64:0)+(n.mode===u?128:0)+(20===n.mode||15===n.mode?256:0),(0===E&&0===k||4===t)&&0===B&&(B=-5),B)},t.inflateEnd=function(e){if(!e||!e.state)return c;var t=e.state;return t.window&&(t.window=null),e.state=null,0},t.inflateGetHeader=function(e,t){var n;return e&&e.state&&2&(n=e.state).wrap?(n.head=t,t.done=!1,0):c},t.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?c:11===n.mode&&i(1,t,r,0)!==n.check?-3:_(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,0):c},t.inflateInfo="pako inflate (from Nodeca project)"},1511:(e,t,n)=>{var r=n(5606);e.exports=c;var i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t},o=n(5622);o.inherits=n(6698);var a=n(7349),s=n(1445);function c(e){if(!(this instanceof c))return new c(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",u)}function u(){this.allowHalfOpen||this._writableState.ended||r.nextTick(this.end.bind(this))}o.inherits(c,a),function(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n])}(i(s.prototype),function(e){c.prototype[e]||(c.prototype[e]=s.prototype[e])})},1514:e=>{"use strict";e.exports=Math.abs},1534:()=>{},1643:(e,t,n)=>{e.exports=o;var r=n(3497),i=n(5622);function o(e){if(!(this instanceof o))return new o(e);r.call(this,e)}i.inherits=n(6698),i.inherits(o,r),o.prototype._transform=function(e,t,n){n(null,e)}},1657:(e,t,n)=>{"use strict";e.exports=a;var r=n(4935),i=Object.create(n(5622));function o(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function a(e){if(!(this instanceof a))return new a(e);r.call(this,e),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",s)}function s(){var e=this;"function"==typeof this._flush?this._flush(function(t,n){c(e,t,n)}):c(this,null,null)}function c(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=n(6698),i.inherits(a,r),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},a.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,function(e){t(e),n.emit("close")})}},1779:(e,t,n)=>{"use strict";var r=n(8287).Buffer;function i(e){return Object.prototype.toString.call(e)}function o(e,t,n,o){var a=[],s=[],c=void 0!==r;return void 0===t&&(t=!0),void 0===n&&(n=1/0),function e(n,u){if(null===n)return null;if(0==u)return n;var l,f,h,p,d;if("object"!=typeof n)return n;if(d=n,Array.isArray(d)||"object"==typeof d&&"[object Array]"===i(d))l=[];else if("object"==typeof(p=n)&&"[object RegExp]"===i(p))l=new RegExp(n.source,function(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}(n)),n.lastIndex&&(l.lastIndex=n.lastIndex);else if("object"==typeof(h=n)&&"[object Date]"===i(h))l=new Date(n.getTime());else{if(c&&r.isBuffer(n))return l=new r(n.length),n.copy(l),l;void 0===o?(f=Object.getPrototypeOf(n),l=Object.create(f)):(l=Object.create(o),f=o)}if(t){var g=a.indexOf(n);if(-1!=g)return s[g];a.push(n),s.push(l)}for(var m in n){var y;f&&(y=Object.getOwnPropertyDescriptor(f,m)),y&&null==y.set||(l[m]=e(n[m],u-1))}return l}(e,n)}e.exports=o,o.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t}},1831:(e,t,n)=>{var r=n(5606),i=n(8287).Buffer,o=n(3409),a=n(4427),s=n(2768);function c(e){if(!arguments.length||void 0===e)throw new Error("constructor requires at least a location argument");if("string"!=typeof e)throw new Error("constructor requires a location string argument");this.location=e}c.prototype.open=function(e,t){if("function"==typeof e&&(t=e),"function"!=typeof t)throw new Error("open() requires a callback argument");if("object"!=typeof e&&(e={}),"function"==typeof this._open)return this._open(e,t);r.nextTick(t)},c.prototype.close=function(e){if("function"!=typeof e)throw new Error("close() requires a callback argument");if("function"==typeof this._close)return this._close(e);r.nextTick(e)},c.prototype.get=function(e,t,n){var i;if("function"==typeof t&&(n=t),"function"!=typeof n)throw new Error("get() requires a callback argument");return(i=this._checkKeyValue(e,"key",this._isBuffer))?n(i):(this._isBuffer(e)||(e=String(e)),"object"!=typeof t&&(t={}),"function"==typeof this._get?this._get(e,t,n):void r.nextTick(function(){n(new Error("NotFound"))}))},c.prototype.put=function(e,t,n,i){var o;if("function"==typeof n&&(i=n),"function"!=typeof i)throw new Error("put() requires a callback argument");return(o=this._checkKeyValue(e,"key",this._isBuffer))||(o=this._checkKeyValue(t,"value",this._isBuffer))?i(o):(this._isBuffer(e)||(e=String(e)),this._isBuffer(t)||r.browser||(t=String(t)),"object"!=typeof n&&(n={}),"function"==typeof this._put?this._put(e,t,n,i):void r.nextTick(i))},c.prototype.del=function(e,t,n){var i;if("function"==typeof t&&(n=t),"function"!=typeof n)throw new Error("del() requires a callback argument");return(i=this._checkKeyValue(e,"key",this._isBuffer))?n(i):(this._isBuffer(e)||(e=String(e)),"object"!=typeof t&&(t={}),"function"==typeof this._del?this._del(e,t,n):void r.nextTick(n))},c.prototype.batch=function(e,t,n){if(!arguments.length)return this._chainedBatch();if("function"==typeof t&&(n=t),"function"!=typeof n)throw new Error("batch(array) requires a callback argument");if(!Array.isArray(e))return n(new Error("batch(array) requires an array argument"));"object"!=typeof t&&(t={});for(var i,o,a=0,s=e.length;a<s;a++)if("object"==typeof(i=e[a])){if(o=this._checkKeyValue(i.type,"type",this._isBuffer))return n(o);if(o=this._checkKeyValue(i.key,"key",this._isBuffer))return n(o);if("put"==i.type&&(o=this._checkKeyValue(i.value,"value",this._isBuffer)))return n(o)}if("function"==typeof this._batch)return this._batch(e,t,n);r.nextTick(n)},c.prototype.approximateSize=function(e,t,n){if(null==e||null==t||"function"==typeof e||"function"==typeof t)throw new Error("approximateSize() requires valid `start`, `end` and `callback` arguments");if("function"!=typeof n)throw new Error("approximateSize() requires a callback argument");if(this._isBuffer(e)||(e=String(e)),this._isBuffer(t)||(t=String(t)),"function"==typeof this._approximateSize)return this._approximateSize(e,t,n);r.nextTick(function(){n(null,0)})},c.prototype._setupIteratorOptions=function(e){var t=this;return e=o(e),["start","end","gt","gte","lt","lte"].forEach(function(n){e[n]&&t._isBuffer(e[n])&&0===e[n].length&&delete e[n]}),e.reverse=!!e.reverse,e.reverse&&e.lt&&(e.start=e.lt),e.reverse&&e.lte&&(e.start=e.lte),!e.reverse&&e.gt&&(e.start=e.gt),!e.reverse&&e.gte&&(e.start=e.gte),(e.reverse&&e.lt&&!e.lte||!e.reverse&&e.gt&&!e.gte)&&(e.exclusiveStart=!0),e},c.prototype.iterator=function(e){return"object"!=typeof e&&(e={}),e=this._setupIteratorOptions(e),"function"==typeof this._iterator?this._iterator(e):new a(this)},c.prototype._chainedBatch=function(){return new s(this)},c.prototype._isBuffer=function(e){return i.isBuffer(e)},c.prototype._checkKeyValue=function(e,t){if(null==e)return new Error(t+" cannot be `null` or `undefined`");if(this._isBuffer(e)){if(0===e.length)return new Error(t+" cannot be an empty Buffer")}else if(""===String(e))return new Error(t+" cannot be an empty String")},e.exports.Z$=c,e.exports.No=a},1891:(e,t,n)=>{var r=n(5606),i=n(8287).Buffer,o=n(4837),a=n(5584),s=n(7432),c=n(4123),u=n(3519),l=n(6788),f=n(8571),h=n(5363),p=n(1218),d=function(e,t,n){r.nextTick(function(){e(t,n)})},g=function(){};e.exports=function(e,t){var n={};e=a(e);var m=s(e.sublevel("blobs"),t),y=h(e.sublevel("stats")),b=e.sublevel("links"),v=p(),w=[],_=Date.now();n.mkdir=function(e,t,r){if("function"==typeof t)return n.mkdir(e,null,t);t||(t=l(777)),r||(r=g),y.follow(e,function(e,n,i){return e&&"ENOENT"!==e.code?r(e):n?r(f.EEXIST(i)):void y.put(i,{type:"directory",mode:t,size:4096},v.cb(i,r))})},n.rmdir=function(e,t){t||(t=g),y.follow(e,function(e,r,i){if(e)return t(e);n.readdir(i,function(e,n){return e?t(e):n.length?t(f.ENOTEMPTY(i)):void y.del(i,v.cb(i,t))})})},n.readdir=function(e,t){y.follow(e,function(e,n,r){return e?t(e):n?n.isDirectory()?void y.list(r,t):t(f.ENOTDIR(r)):t(f.ENOENT(r))})};var E=function(e,t,n){t(e,function(e,t,r){if(e)return n(e);if(!t.isFile())return n(null,t);var i=t&&t.blob||r;m.size(i,function(e,r){if(e)return n(e);t.size=r,n(null,t)})})};n.stat=function(e,t){E(e,y.follow,t)},n.lstat=function(e,t){E(e,y.get,t)},n.exists=function(e,t){y.follow(e,function(e){t(!e)})};var k=function(e,t,n,r){r||(r=g),t(e,function(e,t,i){if(e)return r(e);y.update(i,{mode:n},v.cb(i,r))})};n.chmod=function(e,t,n){k(e,y.follow,t,n)},n.lchmod=function(e,t,n){k(e,y.get,t,n)};var x=function(e,t,n,r,i){i||(i=g),t(e,function(e,t,o){if(e)return i(e);y.update(o,{uid:n,gid:r},v.cb(o,i))})};return n.chown=function(e,t,n,r){x(e,y.follow,t,n,r)},n.lchown=function(e,t,n,r){x(e,y.get,t,n,r)},n.utimes=function(e,t,n,r){r||(r=g),y.follow(e,function(e,i,o){if(e)return r(e);var a={};t&&(a.atime=t),n&&(a.mtime=n),y.update(o,a,v.cb(o,r))})},n.rename=function(e,t,r){r||(r=g),y.follow(e,function(e,i,o){if(e)return r(e);var a=function(){r=v.cb(t,v.cb(o,r)),y.put(t,i,function(e){if(e)return r(e);y.del(o,r)})};y.follow(t,function(e,t,s){return e&&"ENOENT"!==e.code?r(e):t?i.isDirectory()!==t.isDirectory()?r(f.EISDIR(o)):void(t.isDirectory()?n.readdir(s,function(e,t){return e?r(e):t.length?r(f.ENOTEMPTY(o)):void a()}):a()):a()})})},n.realpath=function(e,t,r){if("function"==typeof t)return n.realpath(e,null,t);y.follow(e,function(e,t,n){if(e)return r(e);r(null,n)})},n.writeFile=function(e,t,r,o){if("function"==typeof r)return n.writeFile(e,t,null,r);"string"==typeof r&&(r={encoding:r}),r||(r={}),o||(o=g),i.isBuffer(t)||(t=new i(t,r.encoding||"utf-8"));var a=r.flags||"w";r.append="w"!==a[0],y.follow(e,function(e,n,i){if(e&&"ENOENT"!==e.code)return o(e);if(n&&n.isDirectory())return o(f.EISDIR(i));if(n&&"x"===a[1])return o(f.EEXIST(i));var s=n&&n.blob||i;y.writable(i,function(e){if(e)return o(e);m.write(s,t,r,function(e){if(e)return o(e);y.put(i,{ctime:n&&n.ctime,mtime:new Date,mode:r.mode||l(666),type:"file"},v.cb(i,o))})})})},n.appendFile=function(e,t,r,i){if("function"==typeof r)return n.appendFile(e,t,null,r);"string"==typeof r&&(r={encoding:r}),r||(r={}),r.flags="a",n.writeFile(e,t,r,i)},n.unlink=function(e,t){t||(t=g),y.get(e,function(e,n,r){if(e)return t(e);if(n.isDirectory())return t(f.EISDIR(r));var i=function(e){c(b,{start:e+"ÿ",end:e+"ÿÿ"},function(n){if(n)return m.remove(e,t);t()})};y.del(r,v.cb(r,function(e){return e?t(e):n.link?(o=n.link.slice(0,n.link.indexOf("ÿ")),void b.del(n.link,function(e){if(e)return t(e);i(o)})):void b.del(r+"ÿ",function(e){if(e)return t(e);i(r)});var o}))})},n.readFile=function(e,t,r){if("function"==typeof t)return n.readFile(e,null,t);"string"==typeof t&&(t={encoding:t}),t||(t={}),t.encoding,t.flag,y.follow(e,function(e,n,i){if(e)return r(e);if(n.isDirectory())return r(f.EISDIR(i));var o=n&&n.blob||i;m.read(o,function(e,n){if(e)return r(e);r(null,t.encoding?n.toString(t.encoding):n)})})},n.createReadStream=function(e,t){t||(t={});var n=!1,i=o.readable(function(o){y.follow(e,function(e,a,s){if(e)return o(e);if(a.isDirectory())return o(f.EISDIR(s));var c=a&&a.blob||s,u=m.createReadStream(c,t);i.emit("open"),u.on("end",function(){r.nextTick(function(){n||i.emit("close")})}),o(null,u)})});return i.on("close",function(){n=!0}),i},n.createWriteStream=function(e,t){t||(t={});var n=t.flags||"w",r=!1,i=t.mode||l(666);t.append="a"===n[0];var a=o.writable(function(o){y.follow(e,function(e,s,c){if(e&&"ENOENT"!==e.code)return o(e);if(s&&s.isDirectory())return o(f.EISDIR(c));if(s&&"x"===n[1])return o(f.EEXIST(c));var u=s&&s.blob||c;y.writable(u,function(e){if(e)return o(e);var n={ctime:s?s.ctime:new Date,mtime:new Date,mode:i,type:"file"};y.put(c,n,function(e){if(e)return o(e);var i=m.createWriteStream(u,t);a.emit("open"),i.on("finish",function(){n.mtime=new Date,y.put(c,n,function(){v.change(c),r||a.emit("close")})}),o(null,i)})})})});return a.on("close",function(){r=!0}),a},n.truncate=function(e,t,n){y.follow(e,function(e,r,o){if(e)return n(e);var a=r&&r.blob||o;m.size(a,function(e,r){if(e)return n(e);y.writable(o,function(e){if(e)return n(e);if(n=u(v.cb(o,n)),!t)return m.remove(a,n);var s=m.createWriteStream(a,{start:r<t?t-1:t});s.on("error",n),s.on("finish",n),r<t&&s.write(new i([0])),s.end()})})})},n.watchFile=function(e,t,r){return"function"==typeof t?n.watchFile(e,null,t):v.watch(y.normalize(e),r)},n.unwatchFile=function(e,t){v.unwatch(y.normalize(e),t)},n.watch=function(e,t,r){return"function"==typeof t?n.watch(e,null,t):v.watcher(y.normalize(e),r)},n.notify=function(e){v.on("change",e)},n.open=function(e,t,r,i){if("function"==typeof r)return n.open(e,t,null,r);y.follow(e,function(e,n,o){if(e&&"ENOENT"!==e.code)return i(e);var a=t[0],s="+"===t[1]||"+"===t[2],c=n&&n.blob||o,u={key:o,blob:c,mode:r||l(666),readable:"r"===a||("w"===a||"a"===a)&&s,writable:"w"===a||"a"===a||"r"===a&&s,append:"a"===a};return"r"===a&&e?i(e):"x"===t[1]&&n?i(f.EEXIST(o)):n&&n.isDirectory()?i(f.EISDIR(o)):void m.size(c,function(e,t){if(e)return i(e);u.append&&(u.writePos=t),y.writable(o,function(e){if(e)return i(e);var t=function(e){if(e)return i(e);var t=w.indexOf(null);-1===t&&(t=10+w.push(w.length+10)-1),u.fd=t,w[t]=u,v.change(o),i(null,u.fd)},r=function(e){return e?i(e):n?t():void y.put(c,{ctime:n&&n.ctime,type:"file"},t)};if(!u.append&&u.writable)return m.remove(c,r);r()})})})},n.close=function(e,t){var n=w[e];if(!n)return d(t,f.EBADF());w[e]=null,d(v.cb(n.key,t))},n.write=function(e,t,n,r,i,o){var a=w[e];if(o||(o=g),!a||!a.writable)return d(o,f.EBADF());null===i&&(i=a.writePos||0);var s=t.slice(n,n+r);a.writePos=i+s.length,m.write(a.blob,s,{start:i,append:!0},function(e){if(e)return o(e);o(null,r,t)})},n.read=function(e,t,r,i,o,a){var s=w[e];if(a||(a=g),!s||!s.readable)return d(a,f.EBADF());null===o&&(o=n.readPos||0),m.read(s.blob,{start:o,end:o+i-1},function(e,s){if(e)return a(e);var c=s.slice(0,i);c.copy(t,r),n.readPos=o+c.length,a(null,c.length,t)})},n.fsync=function(e,t){var n=w[e];if(t||(t=g),!n||!n.writable)return d(t,f.EBADF());d(t)},n.ftruncate=function(e,t,r){var i=w[e];if(r||(r=g),!i)return d(r,f.EBADF());n.truncate(i.blob,t,r)},n.fchown=function(e,t,r,i){var o=w[e];if(i||(i=g),!o)return d(i,f.EBADF());n.chown(o.key,t,r,i)},n.fchmod=function(e,t,r){var i=w[e];if(r||(r=g),!i)return d(r,f.EBADF());n.chmod(i.key,t,r)},n.futimes=function(e,t,r,i){var o=w[e];if(i||(i=g),!o)return d(i,f.EBADF());n.utimes(o.key,t,r,i)},n.fstat=function(e,t){var r=w[e];if(!r)return d(t,f.EBADF());n.stat(r.key,t)},n.symlink=function(e,t,n){n||(n=g),y.follow(e,function(e,r,i){if(e)return n(e);y.get(t,function(e,r){return e&&"ENOENT"!==e.code?n(e):r?n(f.EEXIST(t)):void y.put(t,{type:"symlink",target:i,mode:l(777)},n)})})},n.readlink=function(e,t){y.get(e,function(n,r){return n?t(n):r.target?void t(null,r.target):t(f.EINVAL(e))})},n.link=function(e,t,n){n||(n=g),y.follow(e,function(e,r,i){return e?n(e):r.isFile()?void y.get(t,function(e,o){if(e&&"ENOENT"!==e.code)return n(e);if(o)return n(f.EEXIST(t));var a=i+"ÿ"+ ++_;b.put(i+"ÿ",i,function(e){if(e)return n(e);b.put(a,i,function(e){if(e)return n(e);y.put(t,{type:"file",link:a,blob:i,mode:r.mode},n)})})}):n(f.EINVAL(i))})},n}},1963:(e,t,n)=>{var r=n(5606),i=n(8310);(t=e.exports=n(7349)).Stream=i,t.Readable=t,t.Writable=n(1445),t.Duplex=n(1511),t.Transform=n(3497),t.PassThrough=n(1643),r.browser||"disable"!==r.env.READABLE_STREAM||(e.exports=n(8310))},1998:(e,t,n)=>{"use strict";var r=n(9805),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(e,t,n,c,u,l,f,h){var p,d,g,m,y,b,v,w,_,E=h.bits,k=0,x=0,S=0,O=0,A=0,R=0,j=0,T=0,I=0,M=0,L=null,B=0,C=new r.Buf16(16),N=new r.Buf16(16),P=null,D=0;for(k=0;k<=15;k++)C[k]=0;for(x=0;x<c;x++)C[t[n+x]]++;for(A=E,O=15;O>=1&&0===C[O];O--);if(A>O&&(A=O),0===O)return u[l++]=20971520,u[l++]=20971520,h.bits=1,0;for(S=1;S<O&&0===C[S];S++);for(A<S&&(A=S),T=1,k=1;k<=15;k++)if(T<<=1,(T-=C[k])<0)return-1;if(T>0&&(0===e||1!==O))return-1;for(N[1]=0,k=1;k<15;k++)N[k+1]=N[k]+C[k];for(x=0;x<c;x++)0!==t[n+x]&&(f[N[t[n+x]]++]=x);if(0===e?(L=P=f,b=19):1===e?(L=i,B-=257,P=o,D-=257,b=256):(L=a,P=s,b=-1),M=0,x=0,k=S,y=l,R=A,j=0,g=-1,m=(I=1<<A)-1,1===e&&I>852||2===e&&I>592)return 1;for(;;){v=k-j,f[x]<b?(w=0,_=f[x]):f[x]>b?(w=P[D+f[x]],_=L[B+f[x]]):(w=96,_=0),p=1<<k-j,S=d=1<<R;do{u[y+(M>>j)+(d-=p)]=v<<24|w<<16|_}while(0!==d);for(p=1<<k-1;M&p;)p>>=1;if(0!==p?(M&=p-1,M+=p):M=0,x++,0===--C[k]){if(k===O)break;k=t[n+f[x]]}if(k>A&&(M&m)!==g){for(0===j&&(j=A),y+=S,T=1<<(R=k-j);R+j<O&&!((T-=C[R+j])<=0);)R++,T<<=1;if(I+=1<<R,1===e&&I>852||2===e&&I>592)return 1;u[g=M&m]=A<<24|R<<16|y-l}}return 0!==M&&(u[y+M]=k-j<<24|64<<16),h.bits=A,0}},2175:(e,t,n)=>{var r=n(8287).Buffer;e.exports=function(e){return r.isBuffer(e)||/\[object (.+Array|Array.+)\]/.test(Object.prototype.toString.call(e))}},2205:(e,t,n)=>{"use strict";var r=n(6743),i=n(1002),o=n(3144);e.exports=function(){return o(r,i,arguments)}},2271:(e,t,n)=>{"use strict";var r=n(453),i=n(6556),o=n(8859),a=n(507),s=n(9675),c=r("%WeakMap%",!0),u=i("WeakMap.prototype.get",!0),l=i("WeakMap.prototype.set",!0),f=i("WeakMap.prototype.has",!0),h=i("WeakMap.prototype.delete",!0);e.exports=c?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new s("Side channel does not contain "+o(e))},delete:function(n){if(c&&n&&("object"==typeof n||"function"==typeof n)){if(e)return h(e,n)}else if(a&&t)return t.delete(n);return!1},get:function(n){return c&&n&&("object"==typeof n||"function"==typeof n)&&e?u(e,n):t&&t.get(n)},has:function(n){return c&&n&&("object"==typeof n||"function"==typeof n)&&e?f(e,n):!!t&&t.has(n)},set:function(n,r){c&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new c),l(e,n,r)):a&&(t||(t=a()),t.set(n,r))}};return n}:a},2299:(e,t,n)=>{"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var a=void 0!==/a/g.flags,s=function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t},c=function(e){var t=[];return e.forEach(function(e,n){return t.push([n,e])}),t},u=Object.is?Object.is:n(7653),l=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},f=Number.isNaN?Number.isNaN:n(4133);function h(e){return e.call.bind(e)}var p=h(Object.prototype.hasOwnProperty),d=h(Object.prototype.propertyIsEnumerable),g=h(Object.prototype.toString),m=n(537).types,y=m.isAnyArrayBuffer,b=m.isArrayBufferView,v=m.isDate,w=m.isMap,_=m.isRegExp,E=m.isSet,k=m.isNativeError,x=m.isBoxedPrimitive,S=m.isNumberObject,O=m.isStringObject,A=m.isBooleanObject,R=m.isBigIntObject,j=m.isSymbolObject,T=m.isFloat32Array,I=m.isFloat64Array;function M(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var n=e.charCodeAt(t);if(n<48||n>57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function L(e){return Object.keys(e).filter(M).concat(l(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function B(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0}function C(e,t,n,r){if(e===t)return 0!==e||!n||u(e,t);if(n){if("object"!==o(e))return"number"==typeof e&&f(e)&&f(t);if("object"!==o(t)||null===e||null===t)return!1;if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==o(e))return(null===t||"object"!==o(t))&&e==t;if(null===t||"object"!==o(t))return!1}var i,s,c,l,h=g(e);if(h!==g(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var p=L(e),d=L(t);return p.length===d.length&&P(e,t,n,r,1,p)}if("[object Object]"===h&&(!w(e)&&w(t)||!E(e)&&E(t)))return!1;if(v(e)){if(!v(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(_(e)){if(!_(t)||(c=e,l=t,!(a?c.source===l.source&&c.flags===l.flags:RegExp.prototype.toString.call(c)===RegExp.prototype.toString.call(l))))return!1}else if(k(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(b(e)){if(n||!T(e)&&!I(e)){if(!function(e,t){return e.byteLength===t.byteLength&&0===B(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}(e,t))return!1}else if(!function(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=0;n<e.byteLength;n++)if(e[n]!==t[n])return!1;return!0}(e,t))return!1;var m=L(e),M=L(t);return m.length===M.length&&P(e,t,n,r,0,m)}if(E(e))return!(!E(t)||e.size!==t.size)&&P(e,t,n,r,2);if(w(e))return!(!w(t)||e.size!==t.size)&&P(e,t,n,r,3);if(y(e)){if(s=t,(i=e).byteLength!==s.byteLength||0!==B(new Uint8Array(i),new Uint8Array(s)))return!1}else if(x(e)&&!function(e,t){return S(e)?S(t)&&u(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):O(e)?O(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):A(e)?A(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):R(e)?R(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):j(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}(e,t))return!1}return P(e,t,n,r,0)}function N(e,t){return t.filter(function(t){return d(e,t)})}function P(e,t,n,i,a,u){if(5===arguments.length){u=Object.keys(e);var f=Object.keys(t);if(u.length!==f.length)return!1}for(var h=0;h<u.length;h++)if(!p(t,u[h]))return!1;if(n&&5===arguments.length){var g=l(e);if(0!==g.length){var m=0;for(h=0;h<g.length;h++){var y=g[h];if(d(e,y)){if(!d(t,y))return!1;u.push(y),m++}else if(d(t,y))return!1}var b=l(t);if(g.length!==b.length&&N(t,b).length!==m)return!1}else{var v=l(t);if(0!==v.length&&0!==N(t,v).length)return!1}}if(0===u.length&&(0===a||1===a&&0===e.length||0===e.size))return!0;if(void 0===i)i={val1:new Map,val2:new Map,position:0};else{var w=i.val1.get(e);if(void 0!==w){var _=i.val2.get(t);if(void 0!==_)return w===_}i.position++}i.val1.set(e,i.position),i.val2.set(t,i.position);var E=function(e,t,n,i,a,u){var l=0;if(2===u){if(!function(e,t,n,r){for(var i=null,a=s(e),c=0;c<a.length;c++){var u=a[c];if("object"===o(u)&&null!==u)null===i&&(i=new Set),i.add(u);else if(!t.has(u)){if(n)return!1;if(!U(e,t,u))return!1;null===i&&(i=new Set),i.add(u)}}if(null!==i){for(var l=s(t),f=0;f<l.length;f++){var h=l[f];if("object"===o(h)&&null!==h){if(!D(i,h,n,r))return!1}else if(!n&&!e.has(h)&&!D(i,h,n,r))return!1}return 0===i.size}return!0}(e,t,n,a))return!1}else if(3===u){if(!function(e,t,n,i){for(var a=null,s=c(e),u=0;u<s.length;u++){var l=r(s[u],2),f=l[0],h=l[1];if("object"===o(f)&&null!==f)null===a&&(a=new Set),a.add(f);else{var p=t.get(f);if(void 0===p&&!t.has(f)||!C(h,p,n,i)){if(n)return!1;if(!z(e,t,f,h,i))return!1;null===a&&(a=new Set),a.add(f)}}}if(null!==a){for(var d=c(t),g=0;g<d.length;g++){var m=r(d[g],2),y=m[0],b=m[1];if("object"===o(y)&&null!==y){if(!W(a,e,y,b,n,i))return!1}else if(!(n||e.has(y)&&C(e.get(y),b,!1,i)||W(a,e,y,b,!1,i)))return!1}return 0===a.size}return!0}(e,t,n,a))return!1}else if(1===u)for(;l<e.length;l++){if(!p(e,l)){if(p(t,l))return!1;for(var f=Object.keys(e);l<f.length;l++){var h=f[l];if(!p(t,h)||!C(e[h],t[h],n,a))return!1}return f.length===Object.keys(t).length}if(!p(t,l)||!C(e[l],t[l],n,a))return!1}for(l=0;l<i.length;l++){var d=i[l];if(!C(e[d],t[d],n,a))return!1}return!0}(e,t,n,u,i,a);return i.val1.delete(e),i.val2.delete(t),E}function D(e,t,n,r){for(var i=s(e),o=0;o<i.length;o++){var a=i[o];if(C(t,a,n,r))return e.delete(a),!0}return!1}function F(e){switch(o(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(f(e))return!1}return!0}function U(e,t,n){var r=F(n);return null!=r?r:t.has(r)&&!e.has(r)}function z(e,t,n,r,i){var o=F(n);if(null!=o)return o;var a=t.get(o);return!(void 0===a&&!t.has(o)||!C(r,a,!1,i))&&!e.has(o)&&C(r,a,!1,i)}function W(e,t,n,r,i,o){for(var a=s(e),c=0;c<a.length;c++){var u=a[c];if(C(n,u,i,o)&&C(r,t.get(u),i,o))return e.delete(u),!0}return!1}e.exports={isDeepEqual:function(e,t){return C(e,t,!1)},isDeepStrictEqual:function(e,t){return C(e,t,!0)}}},2350:(e,t,n)=>{var r,i,o=n(8287).Buffer,a=n(5606),s=n(3493),c=n(7805).LevelUPError,u=["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le"],l={createIfMissing:!0,errorIfExists:!1,keyEncoding:"utf8",valueEncoding:"utf8",compression:!0},f=function(){function e(e){return null==e||o.isBuffer(e)}var t={};return t.utf8=t["utf-8"]={encode:function(t){return e(t)?t:String(t)},decode:function(e){return e},buffer:!1,type:"utf8"},t.json={encode:JSON.stringify,decode:JSON.parse,buffer:!1,type:"json"},u.forEach(function(n){t[n]||(t[n]={encode:function(t){return e(t)?t:new o(t,n)},decode:function(e){return a.browser?e.toString(n):e},buffer:!0,type:n})}),t}(),h=(i={},u.forEach(function(e){i[e]={valueEncoding:e}}),i);function p(e,t){var n=t&&t.keyEncoding||e.keyEncoding||"utf8";return f[n]||n}function d(e,t){var n=t&&(t.valueEncoding||t.encoding)||e.valueEncoding||e.encoding||"utf8";return f[n]||n}e.exports={defaultOptions:l,copy:function(e,t,n){e.readStream().pipe(t.writeStream()).on("close",n||function(){}).on("error",n||function(e){throw e})},getOptions:function(e,t){var n="string"==typeof t;return!n&&t&&t.encoding&&!t.valueEncoding&&(t.valueEncoding=t.encoding),s(e&&e.options||{},n?h[t]||h[l.valueEncoding]:t)},getLevelDOWN:function(){if(r)return r;var e,t=n(9435).rh.j9,i="Could not locate LevelDOWN, try `npm install leveldown`";try{e=n(6789).version}catch(e){throw new c(i)}if(!n(1534).satisfies(e,t))throw new c("Installed version of LevelDOWN ("+e+") does not match required version ("+t+")");try{return r=n(564)}catch(e){throw new c(i)}},dispatchError:function(e,t,n){return"function"==typeof n?n(t):e.emit("error",t)},encodeKey:function(e,t,n){return p(t,n).encode(e)},encodeValue:function(e,t,n){return d(t,n).encode(e)},isValueAsBuffer:function(e,t){return d(e,t).buffer},isKeyAsBuffer:function(e,t){return p(e,t).buffer},decodeValue:function(e,t){return d(t).decode(e)},decodeKey:function(e,t){return p(t).decode(e)}}},2464:(e,t,n)=>{"use strict";var r=n(8452),i=n(6642);e.exports=function(){var e=i();return r(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},2545:(e,t,n)=>{e.exports=a;var r=n(7295),i=n(5622);function o(e,t){this.afterTransform=function(e,n){return function(e,t,n){var r=e._transformState;r.transforming=!1;var o=r.writecb;if(!o)return e.emit("error",new Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,i.isNullOrUndefined(n)||e.push(n),o&&o(t);var a=e._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&e._read(a.highWaterMark)}(t,e,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function a(e){if(!(this instanceof a))return new a(e);r.call(this,e),this._transformState=new o(e,this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,this.once("prefinish",function(){i.isFunction(this._flush)?this._flush(function(e){s(t,e)}):s(t)})}function s(e,t){if(t)return e.emit("error",t);var n=e._writableState,r=e._transformState;if(n.length)throw new Error("calling transform done when ws.length != 0");if(r.transforming)throw new Error("calling transform done when still transforming");return e.push(null)}i.inherits=n(6698),i.inherits(a,r),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,n){throw new Error("not implemented")},a.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;i.isNull(t.writechunk)||!t.writecb||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))}},2581:e=>{var t=function(e){return e?"string"==typeof e?new Date(e):e:new Date},n=function(e){this.uid=e.uid||0,this.gid=e.gid||0,this.mode=e.mode||0,this.size=e.size||0,this.mtime=t(e.mtime),this.atime=t(e.atime),this.ctime=t(e.ctime),this.type=e.type,this.target=e.target,this.link=e.link,this.blob=e.blob};n.prototype.isDirectory=function(){return"directory"===this.type},n.prototype.isFile=function(){return"file"===this.type},n.prototype.isBlockDevice=function(){return!1},n.prototype.isCharacterDevice=function(){return!1},n.prototype.isSymbolicLink=function(){return"symlink"===this.type},n.prototype.isFIFO=function(){return!1},n.prototype.isSocket=function(){return!1},e.exports=function(e){return new n(e)}},2602:(e,t,n)=>{e.exports=n(7684)},2634:()=>{},2642:(e,t,n)=>{"use strict";var r=n(7720),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},s=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},c=function(e,t,n){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},u=function(e,t,n,o){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,u=n.depth>0&&/(\[[^[\]]*])/.exec(a),l=u?a.slice(0,u.index):a,f=[];if(l){if(!n.plainObjects&&i.call(Object.prototype,l)&&!n.allowPrototypes)return;f.push(l)}for(var h=0;n.depth>0&&null!==(u=s.exec(a))&&h<n.depth;){if(h+=1,!n.plainObjects&&i.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;f.push(u[1])}if(u){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");f.push("["+a.slice(u.index)+"]")}return function(e,t,n,i){var o=0;if(e.length>0&&"[]"===e[e.length-1]){var a=e.slice(0,-1).join("");o=Array.isArray(t)&&t[a]?t[a].length:0}for(var s=i?t:c(t,n,o),u=e.length-1;u>=0;--u){var l,f=e[u];if("[]"===f&&n.parseArrays)l=n.allowEmptyArrays&&(""===s||n.strictNullHandling&&null===s)?[]:r.combine([],s);else{l=n.plainObjects?{__proto__:null}:{};var h="["===f.charAt(0)&&"]"===f.charAt(f.length-1)?f.slice(1,-1):f,p=n.decodeDotInKeys?h.replace(/%2E/g,"."):h,d=parseInt(p,10);n.parseArrays||""!==p?!isNaN(d)&&f!==p&&String(d)===p&&d>=0&&n.parseArrays&&d<=n.arrayLimit?(l=[])[d]=s:"__proto__"!==p&&(l[p]=s):l={0:s}}s=l}return s}(f,t,n,o)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?a.charset:e.charset,n=void 0===e.duplicates?a.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:a.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}}(t);if(""===e||null==e)return n.plainObjects?{__proto__:null}:{};for(var l="string"==typeof e?function(e,t){var n={__proto__:null},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;u=u.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var l=t.parameterLimit===1/0?void 0:t.parameterLimit,f=u.split(t.delimiter,t.throwOnLimitExceeded?l+1:l);if(t.throwOnLimitExceeded&&f.length>l)throw new RangeError("Parameter limit exceeded. Only "+l+" parameter"+(1===l?"":"s")+" allowed.");var h,p=-1,d=t.charset;if(t.charsetSentinel)for(h=0;h<f.length;++h)0===f[h].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[h]?d="utf-8":"utf8=%26%2310003%3B"===f[h]&&(d="iso-8859-1"),p=h,h=f.length);for(h=0;h<f.length;++h)if(h!==p){var g,m,y=f[h],b=y.indexOf("]="),v=-1===b?y.indexOf("="):b+1;-1===v?(g=t.decoder(y,a.decoder,d,"key"),m=t.strictNullHandling?null:""):(g=t.decoder(y.slice(0,v),a.decoder,d,"key"),m=r.maybeMap(c(y.slice(v+1),t,o(n[g])?n[g].length:0),function(e){return t.decoder(e,a.decoder,d,"value")})),m&&t.interpretNumericEntities&&"iso-8859-1"===d&&(m=s(String(m))),y.indexOf("[]=")>-1&&(m=o(m)?[m]:m);var w=i.call(n,g);w&&"combine"===t.duplicates?n[g]=r.combine(n[g],m):w&&"last"!==t.duplicates||(n[g]=m)}return n}(e,n):e,f=n.plainObjects?{__proto__:null}:{},h=Object.keys(l),p=0;p<h.length;++p){var d=h[p],g=u(d,l[d],n,"string"==typeof e);f=r.merge(f,g,n)}return!0===n.allowSparse?f:r.compact(f)}},2682:(e,t,n)=>{"use strict";var r=n(9600),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var a,s;arguments.length>=3&&(a=n),s=e,"[object Array]"===i.call(s)?function(e,t,n){for(var r=0,i=e.length;r<i;r++)o.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,a):"string"==typeof e?function(e,t,n){for(var r=0,i=e.length;r<i;r++)null==n?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)}(e,t,a):function(e,t,n){for(var r in e)o.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,a)}},2726:(e,t,n)=>{"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){o(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function o(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}var c=n(8287).Buffer,u=n(5340).inspect,l=u&&u.custom||"inspect";function f(e,t,n){c.prototype.copy.call(e,t,n)}e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,n;return t=e,(n=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return c.alloc(0);for(var t=c.allocUnsafe(e>>>0),n=this.head,r=0;n;)f(n.data,t,r),r+=n.data.length,n=n.next;return t}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?r+=i:r+=i.slice(0,e),0===(e-=o)){o===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=c.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0===(e-=o)){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,t}},{key:l,value:function(e,t){return u(this,i(i({},t),{},{depth:0,customInspect:!1}))}}])&&a(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},2746:(e,t,n)=>{var r=n(8287).Buffer,i=Object.prototype.toString,o=void 0!==r&&"function"==typeof r.alloc&&"function"==typeof r.allocUnsafe&&"function"==typeof r.from;e.exports=function(e,t,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return a=e,"ArrayBuffer"===i.call(a).slice(8,-1)?function(e,t,n){t>>>=0;var i=e.byteLength-t;if(i<0)throw new RangeError("'offset' is out of bounds");if(void 0===n)n=i;else if((n>>>=0)>i)throw new RangeError("'length' is out of bounds");return o?r.from(e.slice(t,t+n)):new r(new Uint8Array(e.slice(t,t+n)))}(e,t,n):"string"==typeof e?function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!r.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return o?r.from(e,t):new r(e,t)}(e,t):o?r.from(e):new r(e);var a}},2768:(e,t,n)=>{var r=n(5606);function i(e){this._db=e,this._operations=[],this._written=!1}i.prototype._checkWritten=function(){if(this._written)throw new Error("write() already called on this batch")},i.prototype.put=function(e,t){this._checkWritten();var n=this._db._checkKeyValue(e,"key",this._db._isBuffer);if(n)throw n;if(n=this._db._checkKeyValue(t,"value",this._db._isBuffer))throw n;return this._db._isBuffer(e)||(e=String(e)),this._db._isBuffer(t)||(t=String(t)),"function"==typeof this._put?this._put(e,t):this._operations.push({type:"put",key:e,value:t}),this},i.prototype.del=function(e){this._checkWritten();var t=this._db._checkKeyValue(e,"key",this._db._isBuffer);if(t)throw t;return this._db._isBuffer(e)||(e=String(e)),"function"==typeof this._del?this._del(e):this._operations.push({type:"del",key:e}),this},i.prototype.clear=function(){return this._checkWritten(),this._operations=[],"function"==typeof this._clear&&this._clear(),this},i.prototype.write=function(e,t){if(this._checkWritten(),"function"==typeof e&&(t=e),"function"!=typeof t)throw new Error("write() requires a callback argument");return"object"!=typeof e&&(e={}),this._written=!0,"function"==typeof this._write?this._write(t):"function"==typeof this._db._batch?this._db._batch(this._operations,e,t):void r.nextTick(t)},e.exports=i},2795:e=>{e.exports=function(e){var t=e.reverse,n=e.end,r=e.start,i=[r,n];return null!=r&&null!=n&&i.sort(),t&&(i=i.reverse()),e.start=i[0],e.end=i[1],e}},2796:(e,t,n)=>{var r=n(9723);function i(e,t,n){t&&"string"!=typeof t&&(t=t.message||t.name),r(this,{type:e,name:e,cause:"string"!=typeof t?t:n,message:t},"ewr")}function o(e,t){Error.call(this),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),i.call(this,"CustomError",e,t)}o.prototype=new Error,e.exports=function(e){var t=function(t,n){return function(e,t,n){var r=function(n,o){i.call(this,t,n,o),"FilesystemError"==t&&(this.code=this.cause.code,this.path=this.cause.path,this.errno=this.cause.errno,this.message=(e.errno[this.cause.errno]?e.errno[this.cause.errno].description:this.cause.message)+(this.cause.path?" ["+this.cause.path+"]":"")),Error.call(this),Error.captureStackTrace&&Error.captureStackTrace(this,r)};return r.prototype=n?new n:new o,r}(e,t,n)};return{CustomError:o,FilesystemError:t("FilesystemError"),createError:t}}},2861:(e,t,n)=>{var r=n(8287),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},2880:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},2951:(e,t,n)=>{e.exports=n(5405)},2955:(e,t,n)=>{"use strict";var r,i=n(5606);function o(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=n(6238),s=Symbol("lastResolve"),c=Symbol("lastReject"),u=Symbol("error"),l=Symbol("ended"),f=Symbol("lastPromise"),h=Symbol("handlePromise"),p=Symbol("stream");function d(e,t){return{value:e,done:t}}function g(e){var t=e[s];if(null!==t){var n=e[p].read();null!==n&&(e[f]=null,e[s]=null,e[c]=null,t(d(n,!1)))}}function m(e){i.nextTick(g,e)}var y=Object.getPrototypeOf(function(){}),b=Object.setPrototypeOf((o(r={get stream(){return this[p]},next:function(){var e=this,t=this[u];if(null!==t)return Promise.reject(t);if(this[l])return Promise.resolve(d(void 0,!0));if(this[p].destroyed)return new Promise(function(t,n){i.nextTick(function(){e[u]?n(e[u]):t(d(void 0,!0))})});var n,r=this[f];if(r)n=new Promise(function(e,t){return function(n,r){e.then(function(){t[l]?n(d(void 0,!0)):t[h](n,r)},r)}}(r,this));else{var o=this[p].read();if(null!==o)return Promise.resolve(d(o,!1));n=new Promise(this[h])}return this[f]=n,n}},Symbol.asyncIterator,function(){return this}),o(r,"return",function(){var e=this;return new Promise(function(t,n){e[p].destroy(null,function(e){e?n(e):t(d(void 0,!0))})})}),r),y);e.exports=function(e){var t,n=Object.create(b,(o(t={},p,{value:e,writable:!0}),o(t,s,{value:null,writable:!0}),o(t,c,{value:null,writable:!0}),o(t,u,{value:null,writable:!0}),o(t,l,{value:e._readableState.endEmitted,writable:!0}),o(t,h,{value:function(e,t){var r=n[p].read();r?(n[f]=null,n[s]=null,n[c]=null,e(d(r,!1))):(n[s]=e,n[c]=t)},writable:!0}),t));return n[f]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[c];return null!==t&&(n[f]=null,n[s]=null,n[c]=null,t(e)),void(n[u]=e)}var r=n[s];null!==r&&(n[f]=null,n[s]=null,n[c]=null,r(d(void 0,!0))),n[l]=!0}),e.on("readable",m.bind(null,n)),n}},2963:(e,t,n)=>{var r=n(8287).Buffer;e.exports=f;var i=n(196),o=n(1831).Z$,a=n(537),s=n(1421),c=n(2175),u=n(3476),l=n(4527);function f(e){if(!(this instanceof f))return new f(e);if(!e)throw new Error("constructor requires at least a location argument");this.IDBOptions={},this.location=e}a.inherits(f,o),f.prototype._open=function(e,t){var n=this,r={storeName:this.location,autoIncrement:!1,keyPath:null,onStoreReady:function(){t&&t(null,n.idb)},onError:function(e){t&&t(e)}};u(r,e),this.IDBOptions=r,this.idb=new i(r)},f.prototype._get=function(e,t,n){this.idb.get(e,function(i){if(void 0===i)return n(new Error("NotFound"));var o=!0;return!1===t.asBuffer&&(o=!1),t.raw&&(o=!1),o&&(i=i instanceof Uint8Array?l(i):new r(String(i))),n(null,i,e)},n)},f.prototype._del=function(e,t,n){this.idb.remove(e,n,n)},f.prototype._put=function(e,t,n,i){t instanceof ArrayBuffer&&(t=l(new Uint8Array(t)));var o=this.convertEncoding(e,t,n);r.isBuffer(o.value)&&("function"==typeof t.toArrayBuffer?o.value=new Uint8Array(t.toArrayBuffer()):o.value=new Uint8Array(t)),this.idb.put(o.key,o.value,function(){i()},i)},f.prototype.convertEncoding=function(e,t,n){if(n.raw)return{key:e,value:t};if(t){var r=t.toString();"NaN"===r&&(t="NaN")}var i=n.valueEncoding,o={key:e,value:t};return!t||i&&"binary"===i||"object"!=typeof o.value&&(o.value=r),o},f.prototype.iterator=function(e){return"object"!=typeof e&&(e={}),new s(this.idb,e)},f.prototype._batch=function(e,t,n){var r,i,o,a,s=[];if(0===e.length)return setTimeout(n,0);for(r=0;r<e.length;r++){o={},a=e[r],s[r]=o;var c=this.convertEncoding(a.key,a.value,t);for(i in a.key=c.key,a.value=c.value,a)"type"===i&&"del"==a[i]?o[i]="remove":o[i]=a[i]}return this.idb.batch(s,function(){n()},n)},f.prototype._close=function(e){this.idb.db.close(),e()},f.prototype._approximateSize=function(e,t,n){var r=new Error("Not implemented");if(n)return n(r);throw r},f.prototype._isBuffer=function(e){return r.isBuffer(e)},f.destroy=function(e,t){if("object"==typeof e)var n=e.IDBOptions.storePrefix||"IDBWrapper-",r=e.location;else n="IDBWrapper-",r=e;var i=indexedDB.deleteDatabase(n+r);i.onsuccess=function(){t()},i.onerror=function(e){t(e)}},f.prototype._checkKeyValue=function(e,t){return null==e||null==e?new Error(t+" cannot be `null` or `undefined`"):c(e)&&0===e.byteLength?new Error(t+" cannot be an empty ArrayBuffer"):""===String(e)?new Error(t+" cannot be an empty String"):0===e.length?new Error(t+" cannot be an empty Array"):void 0}},2980:(e,t)=>{var n=t.range=function(e){return null==e?{}:"string"==typeof n?{min:n,max:n+"ÿ"}:e},r=(t.prefix=function(e,n,r){var i={};return r=r||"ÿ",(e=t.range(e))instanceof RegExp||"function"==typeof e?(i.min=n,i.max=n+r,i.inner=function(t){var r=t.substring(n.length);return e.test?e.test(r):e(r)}):"object"==typeof e&&(i.min=n+(e.min||e.start||""),i.max=n+(e.max||e.end||r||"~"),i.reverse=!!e.reverse),i},t.checker=function(e){return e||(e={}),"string"==typeof e?function(t){return 0==t.indexOf(e)}:e instanceof RegExp?function(t){return e.test(t)}:"object"==typeof e?function(t){var n=e.min||e.start,r=e.max||e.end;return t=String(t),(!n||t>=n)&&(!r||t<=r)&&(!e.inner||(e.inner.test?e.inner.test(t):e.inner(t)))}:"function"==typeof e?e:void 0});t.satisfies=function(e,t){return r(t)(e)}},3003:e=>{"use strict";e.exports=function(e){return e!=e}},3005:(e,t,n)=>{"use strict";var r=n(5386).Buffer,i=n(993);function o(e,t,n){e.copy(t,n)}e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);for(var t=r.allocUnsafe(e>>>0),n=this.head,i=0;n;)o(n.data,t,i),i+=n.data.length,n=n.next;return t},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},3050:(e,t,n)=>{(t=e.exports=n(4053)).Stream=t,t.Readable=t,t.Writable=n(5509),t.Duplex=n(4935),t.Transform=n(1657),t.PassThrough=n(4507)},3093:(e,t,n)=>{"use strict";var r=n(4459);e.exports=function(e){return r(e)||0===e?e:e<0?-1:1}},3126:(e,t,n)=>{"use strict";var r=n(6743),i=n(9675),o=n(76),a=n(3144);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new i("a function is required");return a(r,o,e)}},3141:(e,t,n)=>{"use strict";var r=n(2861).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=l,this.end=f,t=3;break;default:return this.write=h,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function l(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.I=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=a(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||-2===i?0:(i=a(t[r]))>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||-2===i?0:(i=a(t[r]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},3144:(e,t,n)=>{"use strict";var r=n(6743),i=n(1002),o=n(76),a=n(7119);e.exports=a||r.call(o,i)},3152:e=>{function t(e,t,n,r){var i={type:e,key:t,value:n,options:r};return r&&r.prefix&&(i.prefix=r.prefix,delete r.prefix),this._operations.push(i),this}function n(e){this._operations=[],this._sdb=e,this.put=t.bind(this,"put"),this.del=t.bind(this,"del")}var r=n.prototype;r.clear=function(){this._operations=[]},r.write=function(e){this._sdb.batch(this._operations,e)},e.exports=n},3225:(e,t,n)=>{"use strict";var r=n(5606);void 0===r||!r.version||0===r.version.indexOf("v0.")||0===r.version.indexOf("v1.")&&0!==r.version.indexOf("v1.8.")?e.exports={nextTick:function(e,t,n,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return r.nextTick(e);case 2:return r.nextTick(function(){e.call(null,t)});case 3:return r.nextTick(function(){e.call(null,t,n)});case 4:return r.nextTick(function(){e.call(null,t,n,i)});default:for(o=new Array(s-1),a=0;a<o.length;)o[a++]=arguments[a];return r.nextTick(function(){e.apply(null,o)})}}}:e.exports=r},3238:(e,t,n)=>{var r=n(5606),i=n(8310);(t=e.exports=n(5140)).Stream=i,t.Readable=t,t.Writable=n(7684),t.Duplex=n(8166),t.Transform=n(5778),t.PassThrough=n(5824),r.browser||"disable"!==r.env.READABLE_STREAM||(e.exports=n(8310))},3269:e=>{"use strict";e.exports=function(e,t,n,r){for(var i=65535&e,o=e>>>16&65535,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+t[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16}},3324:(e,t,n)=>{var r=n(2350),i=n(7805).WriteError,o=r.getOptions,a=r.dispatchError;function s(e){this._levelup=e,this.batch=e.db.batch(),this.ops=[]}s.prototype.put=function(e,t,n){n=o(this._levelup,n);var a=r.encodeKey(e,n),s=r.encodeValue(t,n);try{this.batch.put(a,s)}catch(e){throw new i(e)}return this.ops.push({type:"put",key:a,value:s}),this},s.prototype.del=function(e,t){t=o(this._levelup,t);var n=r.encodeKey(e,t);try{this.batch.del(n)}catch(e){throw new i(e)}return this.ops.push({type:"del",key:n}),this},s.prototype.clear=function(){try{this.batch.clear()}catch(e){throw new i(e)}return this.ops=[],this},s.prototype.write=function(e){var t=this._levelup,n=this.ops;try{this.batch.write(function(r){if(r)return a(t,new i(r),e);t.emit("batch",n),e&&e()})}catch(e){throw new i(e)}},e.exports=s},3364:function(e){var t;t=function(){var e="function"==typeof Object.defineProperty?function(e,t,n){return Object.defineProperty(e,t,n),e}:function(e,t,n){return e[t]=n.value,e};return function(t,n,r,i){var o;if(i=function(e,t){var n="object"==typeof t,r=!n&&"string"==typeof t,i=function(e){return n?!!t[e]:!!r&&t.indexOf(e[0])>-1};return{enumerable:i("enumerable"),configurable:i("configurable"),writable:i("writable"),value:e}}(r,i),"object"==typeof n){for(o in n)Object.hasOwnProperty.call(n,o)&&(i.value=n[o],e(t,o,i));return t}return e(t,n,i)}},e.exports?e.exports=t():this.prr=t()},3409:e=>{e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}},3428:e=>{var t={};e.exports=t;var n={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(n).forEach(function(e){var r=n[e],i=t[e]=[];i.open="["+r[0]+"m",i.close="["+r[1]+"m"})},3476:(e,t,n)=>{var r=n(9731),i=n(7237);e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];if(i(n))for(var o=r(n),a=0;a<o.length;a++){var s=o[a];e[s]=n[s]}}return e}},3493:e=>{e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}},3497:(e,t,n)=>{e.exports=a;var r=n(1511),i=n(5622);function o(e,t){this.afterTransform=function(e,n){return function(e,t,n){var r=e._transformState;r.transforming=!1;var i=r.writecb;if(!i)return e.emit("error",new Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,null!=n&&e.push(n),i&&i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}(t,e,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function a(e){if(!(this instanceof a))return new a(e);r.call(this,e),this._transformState=new o(e,this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,this.once("finish",function(){"function"==typeof this._flush?this._flush(function(e){s(t,e)}):s(t)})}function s(e,t){if(t)return e.emit("error",t);var n=e._writableState,r=(e._readableState,e._transformState);if(n.length)throw new Error("calling transform done when ws.length != 0");if(r.transforming)throw new Error("calling transform done when still transforming");return e.push(null)}i.inherits=n(6698),i.inherits(a,r),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,n){throw new Error("not implemented")},a.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0}},3519:(e,t,n)=>{var r=n(6587);function i(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function o(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},n=e.name||"Function wrapped with `once`";return t.onceError=n+" shouldn't be called more than once",t.called=!1,t}e.exports=r(i),e.exports.strict=r(o),i.proto=i(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return o(this)},configurable:!0})})},3600:(e,t,n)=>{"use strict";e.exports=i;var r=n(4610);function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}n(6698)(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},3626:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},3628:(e,t,n)=>{"use strict";var r=n(8648),i=n(1064),o=n(7176);e.exports=r?function(e){return r(e)}:i?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return i(e)}:o?function(e){return o(e)}:null},3665:(e,t,n)=>{"use strict";var r=n(9805);function i(e){for(var t=e.length;--t>=0;)e[t]=0}var o=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],a=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],c=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],u=new Array(576);i(u);var l=new Array(60);i(l);var f=new Array(512);i(f);var h=new Array(256);i(h);var p=new Array(29);i(p);var d,g,m,y=new Array(30);function b(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function v(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function w(e){return e<256?f[e]:f[256+(e>>>7)]}function _(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function E(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,_(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function k(e,t,n){E(e,n[2*t],n[2*t+1])}function x(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function S(e,t,n){var r,i,o=new Array(16),a=0;for(r=1;r<=15;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=x(o[s]++,s))}}function O(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function A(e){e.bi_valid>8?_(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function R(e,t,n,r){var i=2*t,o=2*n;return e[i]<e[o]||e[i]===e[o]&&r[t]<=r[n]}function j(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&R(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!R(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function T(e,t,n){var r,i,s,c,u=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*u]<<8|e.pending_buf[e.d_buf+2*u+1],i=e.pending_buf[e.l_buf+u],u++,0===r?k(e,i,t):(k(e,(s=h[i])+256+1,t),0!==(c=o[s])&&E(e,i-=p[s],c),k(e,s=w(--r),n),0!==(c=a[s])&&E(e,r-=y[s],c))}while(u<e.last_lit);k(e,256,t)}function I(e,t){var n,r,i,o=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,c=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<c;n++)0!==o[2*n]?(e.heap[++e.heap_len]=u=n,e.depth[n]=0):o[2*n+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=a[2*i+1]);for(t.max_code=u,n=e.heap_len>>1;n>=1;n--)j(e,o,n);i=c;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],j(e,o,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,o[2*i]=o[2*n]+o[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,o[2*n+1]=o[2*r+1]=i,e.heap[1]=i++,j(e,o,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,o,a,s,c=t.dyn_tree,u=t.max_code,l=t.stat_desc.static_tree,f=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,d=t.stat_desc.max_length,g=0;for(o=0;o<=15;o++)e.bl_count[o]=0;for(c[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)(o=c[2*c[2*(r=e.heap[n])+1]+1]+1)>d&&(o=d,g++),c[2*r+1]=o,r>u||(e.bl_count[o]++,a=0,r>=p&&(a=h[r-p]),s=c[2*r],e.opt_len+=s*(o+a),f&&(e.static_len+=s*(l[2*r+1]+a)));if(0!==g){do{for(o=d-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[d]--,g-=2}while(g>0);for(o=d;0!==o;o--)for(r=e.bl_count[o];0!==r;)(i=e.heap[--n])>u||(c[2*i+1]!==o&&(e.opt_len+=(o-c[2*i+1])*c[2*i],c[2*i+1]=o),r--)}}(e,t),S(o,u,e.bl_count)}function M(e,t,n){var r,i,o=-1,a=t[1],s=0,c=7,u=4;for(0===a&&(c=138,u=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=t[2*(r+1)+1],++s<c&&i===a||(s<u?e.bl_tree[2*i]+=s:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,s=0,o=i,0===a?(c=138,u=3):i===a?(c=6,u=3):(c=7,u=4))}function L(e,t,n){var r,i,o=-1,a=t[1],s=0,c=7,u=4;for(0===a&&(c=138,u=3),r=0;r<=n;r++)if(i=a,a=t[2*(r+1)+1],!(++s<c&&i===a)){if(s<u)do{k(e,i,e.bl_tree)}while(0!==--s);else 0!==i?(i!==o&&(k(e,i,e.bl_tree),s--),k(e,16,e.bl_tree),E(e,s-3,2)):s<=10?(k(e,17,e.bl_tree),E(e,s-3,3)):(k(e,18,e.bl_tree),E(e,s-11,7));s=0,o=i,0===a?(c=138,u=3):i===a?(c=6,u=3):(c=7,u=4)}}i(y);var B=!1;function C(e,t,n,i){E(e,0+(i?1:0),3),function(e,t,n){A(e),_(e,n),_(e,~n),r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n)}t._tr_init=function(e){B||(function(){var e,t,n,r,i,c=new Array(16);for(n=0,r=0;r<28;r++)for(p[r]=n,e=0;e<1<<o[r];e++)h[n++]=r;for(h[n-1]=r,i=0,r=0;r<16;r++)for(y[r]=i,e=0;e<1<<a[r];e++)f[i++]=r;for(i>>=7;r<30;r++)for(y[r]=i<<7,e=0;e<1<<a[r]-7;e++)f[256+i++]=r;for(t=0;t<=15;t++)c[t]=0;for(e=0;e<=143;)u[2*e+1]=8,e++,c[8]++;for(;e<=255;)u[2*e+1]=9,e++,c[9]++;for(;e<=279;)u[2*e+1]=7,e++,c[7]++;for(;e<=287;)u[2*e+1]=8,e++,c[8]++;for(S(u,287,c),e=0;e<30;e++)l[2*e+1]=5,l[2*e]=x(e,5);d=new b(u,o,257,286,15),g=new b(l,a,0,30,15),m=new b(new Array(0),s,0,19,7)}(),B=!0),e.l_desc=new v(e.dyn_ltree,d),e.d_desc=new v(e.dyn_dtree,g),e.bl_desc=new v(e.bl_tree,m),e.bi_buf=0,e.bi_valid=0,O(e)},t._tr_stored_block=C,t._tr_flush_block=function(e,t,n,r){var i,o,a=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),I(e,e.l_desc),I(e,e.d_desc),a=function(e){var t;for(M(e,e.dyn_ltree,e.l_desc.max_code),M(e,e.dyn_dtree,e.d_desc.max_code),I(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*c[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(o=e.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==t?C(e,t,n,r):4===e.strategy||o===i?(E(e,2+(r?1:0),3),T(e,u,l)):(E(e,4+(r?1:0),3),function(e,t,n,r){var i;for(E(e,t-257,5),E(e,n-1,5),E(e,r-4,4),i=0;i<r;i++)E(e,e.bl_tree[2*c[i]+1],3);L(e,e.dyn_ltree,t-1),L(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),T(e,e.dyn_ltree,e.dyn_dtree)),O(e),r&&A(e)},t._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(h[n]+256+1)]++,e.dyn_dtree[2*w(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){E(e,2,3),k(e,256,u),function(e){16===e.bi_valid?(_(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},3685:(e,t,n)=>{var r=n(5346),i=n(7330);e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];if(i(n))for(var o=r(n),a=0;a<o.length;a++){var s=o[a];e[s]=n[s]}}return e}},3819:e=>{var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},3918:(e,t,n)=>{"use strict";var r=n(5606);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=s(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var t=function(e){if("object"!==g(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===g(t)?t:String(t)}function c(e,t){if(t&&("object"===g(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return u(e)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){var t="function"==typeof Map?new Map:void 0;return l=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return f(e,arguments,d(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),p(r,e)},l(e)}function f(e,t,n){return f=h()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&p(i,n.prototype),i},f.apply(null,arguments)}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}var m=n(537).inspect,y=n(9597).codes.ERR_INVALID_ARG_TYPE;function b(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}var v="",w="",_="",E="",k={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function x(e){var t=Object.keys(e),n=Object.create(Object.getPrototypeOf(e));return t.forEach(function(t){n[t]=e[t]}),Object.defineProperty(n,"message",{value:e.message}),n}function S(e){return m(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var O=function(e,t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(O,e);var n,i,s,l,f=(n=O,i=h(),function(){var e,t=d(n);if(i){var r=d(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return c(this,e)});function O(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,O),"object"!==g(e)||null===e)throw new y("options","Object",e);var n=e.message,i=e.operator,o=e.stackStartFn,a=e.actual,s=e.expected,l=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=n)t=f.call(this,String(n));else if(r.stderr&&r.stderr.isTTY&&(r.stderr&&r.stderr.getColorDepth&&1!==r.stderr.getColorDepth()?(v="[34m",w="[32m",E="[39m",_="[31m"):(v="",w="",E="",_="")),"object"===g(a)&&null!==a&&"object"===g(s)&&null!==s&&"stack"in a&&a instanceof Error&&"stack"in s&&s instanceof Error&&(a=x(a),s=x(s)),"deepStrictEqual"===i||"strictEqual"===i)t=f.call(this,function(e,t,n){var i="",o="",a=0,s="",c=!1,u=S(e),l=u.split("\n"),f=S(t).split("\n"),h=0,p="";if("strictEqual"===n&&"object"===g(e)&&"object"===g(t)&&null!==e&&null!==t&&(n="strictEqualObject"),1===l.length&&1===f.length&&l[0]!==f[0]){var d=l[0].length+f[0].length;if(d<=10){if(!("object"===g(e)&&null!==e||"object"===g(t)&&null!==t||0===e&&0===t))return"".concat(k[n],"\n\n")+"".concat(l[0]," !== ").concat(f[0],"\n")}else if("strictEqualObject"!==n&&d<(r.stderr&&r.stderr.isTTY?r.stderr.columns:80)){for(;l[0][h]===f[0][h];)h++;h>2&&(p="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var n=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,n-e.length)}(" ",h),"^"),h=0)}}for(var m=l[l.length-1],y=f[f.length-1];m===y&&(h++<2?s="\n ".concat(m).concat(s):i=m,l.pop(),f.pop(),0!==l.length&&0!==f.length);)m=l[l.length-1],y=f[f.length-1];var x=Math.max(l.length,f.length);if(0===x){var O=u.split("\n");if(O.length>30)for(O[26]="".concat(v,"...").concat(E);O.length>27;)O.pop();return"".concat(k.notIdentical,"\n\n").concat(O.join("\n"),"\n")}h>3&&(s="\n".concat(v,"...").concat(E).concat(s),c=!0),""!==i&&(s="\n ".concat(i).concat(s),i="");var A=0,R=k[n]+"\n".concat(w,"+ actual").concat(E," ").concat(_,"- expected").concat(E),j=" ".concat(v,"...").concat(E," Lines skipped");for(h=0;h<x;h++){var T=h-a;if(l.length<h+1)T>1&&h>2&&(T>4?(o+="\n".concat(v,"...").concat(E),c=!0):T>3&&(o+="\n ".concat(f[h-2]),A++),o+="\n ".concat(f[h-1]),A++),a=h,i+="\n".concat(_,"-").concat(E," ").concat(f[h]),A++;else if(f.length<h+1)T>1&&h>2&&(T>4?(o+="\n".concat(v,"...").concat(E),c=!0):T>3&&(o+="\n ".concat(l[h-2]),A++),o+="\n ".concat(l[h-1]),A++),a=h,o+="\n".concat(w,"+").concat(E," ").concat(l[h]),A++;else{var I=f[h],M=l[h],L=M!==I&&(!b(M,",")||M.slice(0,-1)!==I);L&&b(I,",")&&I.slice(0,-1)===M&&(L=!1,M+=","),L?(T>1&&h>2&&(T>4?(o+="\n".concat(v,"...").concat(E),c=!0):T>3&&(o+="\n ".concat(l[h-2]),A++),o+="\n ".concat(l[h-1]),A++),a=h,o+="\n".concat(w,"+").concat(E," ").concat(M),i+="\n".concat(_,"-").concat(E," ").concat(I),A+=2):(o+=i,i="",1!==T&&0!==h||(o+="\n ".concat(M),A++))}if(A>20&&h<x-2)return"".concat(R).concat(j,"\n").concat(o,"\n").concat(v,"...").concat(E).concat(i,"\n")+"".concat(v,"...").concat(E)}return"".concat(R).concat(c?j:"","\n").concat(o).concat(i).concat(s).concat(p)}(a,s,i));else if("notDeepStrictEqual"===i||"notStrictEqual"===i){var h=k[i],p=S(a).split("\n");if("notStrictEqual"===i&&"object"===g(a)&&null!==a&&(h=k.notStrictEqualObject),p.length>30)for(p[26]="".concat(v,"...").concat(E);p.length>27;)p.pop();t=1===p.length?f.call(this,"".concat(h," ").concat(p[0])):f.call(this,"".concat(h,"\n\n").concat(p.join("\n"),"\n"))}else{var d=S(a),m="",A=k[i];"notDeepEqual"===i||"notEqual"===i?(d="".concat(k[i],"\n\n").concat(d)).length>1024&&(d="".concat(d.slice(0,1021),"...")):(m="".concat(S(s)),d.length>512&&(d="".concat(d.slice(0,509),"...")),m.length>512&&(m="".concat(m.slice(0,509),"...")),"deepEqual"===i||"equal"===i?d="".concat(A,"\n\n").concat(d,"\n\nshould equal\n\n"):m=" ".concat(i," ").concat(m)),t=f.call(this,"".concat(d).concat(m))}return Error.stackTraceLimit=l,t.generatedMessage=!n,Object.defineProperty(u(t),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),t.code="ERR_ASSERTION",t.actual=a,t.expected=s,t.operator=i,Error.captureStackTrace&&Error.captureStackTrace(u(t),o),t.stack,t.name="AssertionError",c(t)}return s=O,(l=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(e,t){return m(this,o(o({},t),{},{customInspect:!1,depth:0}))}}])&&a(s.prototype,l),Object.defineProperty(s,"prototype",{writable:!1}),O}(l(Error),m.custom);e.exports=O},4035:(e,t,n)=>{"use strict";var r,i=n(6556),o=n(9092)(),a=n(9957),s=n(5795);if(o){var c=i("RegExp.prototype.exec"),u={},l=function(){throw u},f={toString:l,valueOf:l};"symbol"==typeof Symbol.toPrimitive&&(f[Symbol.toPrimitive]=l),r=function(e){if(!e||"object"!=typeof e)return!1;var t=s(e,"lastIndex");if(!t||!a(t,"value"))return!1;try{c(e,f)}catch(e){return e===u}}}else{var h=i("Object.prototype.toString");r=function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===h(e)}}e.exports=r},4039:(e,t,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(1333);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&i()}},4053:(e,t,n)=>{"use strict";var r=n(5606),i=n(3225);e.exports=v;var o,a=n(1097);v.ReadableState=b,n(7007).EventEmitter;var s=function(e,t){return e.listeners(t).length},c=n(8010),u=n(5386).Buffer,l=(void 0!==n.g?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},f=Object.create(n(5622));f.inherits=n(6698);var h=n(4385),p=void 0;p=h&&h.debuglog?h.debuglog("stream"):function(){};var d,g=n(3005),m=n(7353);f.inherits(v,c);var y=["error","close","destroy","pause","resume"];function b(e,t){e=e||{};var r=t instanceof(o=o||n(4935));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(d||(d=n(7650).I),this.decoder=new d(e.encoding),this.encoding=e.encoding)}function v(e){if(o=o||n(4935),!(this instanceof v))return new v(e);this._readableState=new b(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),c.call(this)}function w(e,t,n,r,i){var o,a=e._readableState;return null===t?(a.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,x(e)}}(e,a)):(i||(o=function(e,t){var n,r;return r=t,u.isBuffer(r)||r instanceof l||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),r?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):_(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?_(e,a,t,!1):O(e,a)):_(e,a,t,!1))):r||(a.reading=!1)),function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(a)}function _(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&x(e)),O(e,t)}Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),v.prototype.destroy=m.destroy,v.prototype._undestroy=m.undestroy,v.prototype._destroy=function(e,t){this.push(null),t(e)},v.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=u.from(e,t),t=""),n=!0),w(this,e,t,!1,n)},v.prototype.unshift=function(e){return w(this,e,null,!0,!1)},v.prototype.isPaused=function(){return!1===this._readableState.flowing},v.prototype.setEncoding=function(e){return d||(d=n(7650).I),this._readableState.decoder=new d(e),this._readableState.encoding=e,this};var E=8388608;function k(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=E?e=E:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function x(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(p("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(S,e):S(e))}function S(e){p("emit readable"),e.emit("readable"),T(e)}function O(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(A,e,t))}function A(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(p("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function R(e){p("readable nexttick read 0"),e.read(0)}function j(e,t){t.reading||(p("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),T(e),t.flowing&&!t.reading&&e.read(0)}function T(e){var t=e._readableState;for(p("flow",t.flowing);t.flowing&&null!==e.read(););}function I(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;return e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;for(e-=i.length;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=u.allocUnsafe(e),r=t.head,i=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),0===(e-=a)){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}(e,t),r}(e,t.buffer,t.decoder),n);var n}function M(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(L,t,e))}function L(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function B(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}v.prototype.read=function(e){p("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return p("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?M(this):x(this),null;if(0===(e=k(e,t))&&t.ended)return 0===t.length&&M(this),null;var r,i=t.needReadable;return p("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&p("length less than watermark",i=!0),t.ended||t.reading?p("reading or ended",i=!1):i&&(p("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=k(n,t))),null===(r=e>0?I(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&M(this)),null!==r&&this.emit("data",r),r},v.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},v.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,p("pipe count=%d opts=%j",o.pipesCount,t);var c=t&&!1===t.end||e===r.stdout||e===r.stderr?b:u;function u(){p("onend"),e.end()}o.endEmitted?i.nextTick(c):n.once("end",c),e.on("unpipe",function t(r,i){p("onunpipe"),r===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,p("cleanup"),e.removeListener("close",m),e.removeListener("finish",y),e.removeListener("drain",l),e.removeListener("error",g),e.removeListener("unpipe",t),n.removeListener("end",u),n.removeListener("end",b),n.removeListener("data",d),f=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||l())});var l=function(e){return function(){var t=e._readableState;p("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,T(e))}}(n);e.on("drain",l);var f=!1,h=!1;function d(t){p("ondata"),h=!1,!1!==e.write(t)||h||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==B(o.pipes,e))&&!f&&(p("false write response, pause",o.awaitDrain),o.awaitDrain++,h=!0),n.pause())}function g(t){p("onerror",t),b(),e.removeListener("error",g),0===s(e,"error")&&e.emit("error",t)}function m(){e.removeListener("finish",y),b()}function y(){p("onfinish"),e.removeListener("close",m),b()}function b(){p("unpipe"),n.unpipe(e)}return n.on("data",d),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",g),e.once("close",m),e.once("finish",y),e.emit("pipe",n),o.flowing||(p("pipe resume"),n.resume()),e},v.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=B(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},v.prototype.on=function(e,t){var n=c.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&x(this):i.nextTick(R,this))}return n},v.prototype.addListener=v.prototype.on,v.prototype.resume=function(){var e=this._readableState;return e.flowing||(p("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(j,e,t))}(this,e)),this},v.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this},v.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",function(){if(p("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){p("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<y.length;o++)e.on(y[o],this.emit.bind(this,y[o]));return this._read=function(t){p("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(v.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),v._fromList=I},4123:(e,t,n)=>{var r=n(2795);function i(e,t,n){var r,i,o;t.limit=t.reverse?2:1,r=e.createReadStream(t),i=function(e,r){if(t.reverse&&r&&t.start&&r.key.toString()>t.start)return!1;"error"==e?n(r):"end"==e?n(new Error("range not found"),null,null):n(null,r.key,r.value)},o=[],["data","error","end"].forEach(function(e){function t(t){!1!==i(e,t)&&o.forEach(function(e){e()})}r.on(e,t),o.push(function(){r.removeListener(e,t)})})}(t=e.exports=i).first=function(e,t,n){return n||(n=t,t={}),t.reverse=!1,i(e,r(t),n)},t.last=function(e,t,n){return n||(n=t,t={}),t.start,t.reverse=!0,i(e,r(t),function(r,o,a){if(r){var s=t.start;t.start=null,i(e,t,function(e,i,o){if(!i)return n(r,null,null);var a=i.toString();a<=s&&(!t.end||a>=t.end)?n(e,i,o):n(r,null,null)})}else n(r,o,a)})}},4133:(e,t,n)=>{"use strict";var r=n(487),i=n(8452),o=n(3003),a=n(6642),s=n(2464),c=r(a(),Number);i(c,{getPolyfill:a,implementation:o,shim:s}),e.exports=c},4148:(e,t,n)=>{"use strict";var r=n(5606);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e){var t=function(e){if("object"!==i(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===i(t)?t:String(t)}var c,u,l=n(9597).codes,f=l.ERR_AMBIGUOUS_ARGUMENT,h=l.ERR_INVALID_ARG_TYPE,p=l.ERR_INVALID_ARG_VALUE,d=l.ERR_INVALID_RETURN_VALUE,g=l.ERR_MISSING_ARGS,m=n(3918),y=n(537).inspect,b=n(537).types,v=b.isPromise,w=b.isRegExp,_=n(9133)(),E=n(9394)(),k=n(8075)("RegExp.prototype.test");function x(){var e=n(2299);c=e.isDeepEqual,u=e.isDeepStrictEqual}new Map;var S=!1,O=e.exports=T,A={};function R(e){if(e.message instanceof Error)throw e.message;throw new m(e)}function j(e,t,n,r){if(!n){var i=!1;if(0===t)i=!0,r="No value argument passed to `assert.ok()`";else if(r instanceof Error)throw r;var o=new m({actual:n,expected:!0,message:r,operator:"==",stackStartFn:e});throw o.generatedMessage=i,o}}function T(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];j.apply(void 0,[T,t.length].concat(t))}O.fail=function e(t,n,i,o,a){var s,c=arguments.length;if(0===c?s="Failed":1===c?(i=t,t=void 0):(!1===S&&(S=!0,(r.emitWarning?r.emitWarning:console.warn.bind(console))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===c&&(o="!=")),i instanceof Error)throw i;var u={actual:t,expected:n,operator:void 0===o?"fail":o,stackStartFn:a||e};void 0!==i&&(u.message=i);var l=new m(u);throw s&&(l.message=s,l.generatedMessage=!0),l},O.AssertionError=m,O.ok=T,O.equal=function e(t,n,r){if(arguments.length<2)throw new g("actual","expected");t!=n&&R({actual:t,expected:n,message:r,operator:"==",stackStartFn:e})},O.notEqual=function e(t,n,r){if(arguments.length<2)throw new g("actual","expected");t==n&&R({actual:t,expected:n,message:r,operator:"!=",stackStartFn:e})},O.deepEqual=function e(t,n,r){if(arguments.length<2)throw new g("actual","expected");void 0===c&&x(),c(t,n)||R({actual:t,expected:n,message:r,operator:"deepEqual",stackStartFn:e})},O.notDeepEqual=function e(t,n,r){if(arguments.length<2)throw new g("actual","expected");void 0===c&&x(),c(t,n)&&R({actual:t,expected:n,message:r,operator:"notDeepEqual",stackStartFn:e})},O.deepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new g("actual","expected");void 0===c&&x(),u(t,n)||R({actual:t,expected:n,message:r,operator:"deepStrictEqual",stackStartFn:e})},O.notDeepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new g("actual","expected");void 0===c&&x(),u(t,n)&&R({actual:t,expected:n,message:r,operator:"notDeepStrictEqual",stackStartFn:e})},O.strictEqual=function e(t,n,r){if(arguments.length<2)throw new g("actual","expected");E(t,n)||R({actual:t,expected:n,message:r,operator:"strictEqual",stackStartFn:e})},O.notStrictEqual=function e(t,n,r){if(arguments.length<2)throw new g("actual","expected");E(t,n)&&R({actual:t,expected:n,message:r,operator:"notStrictEqual",stackStartFn:e})};var I=a(function e(t,n,r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n.forEach(function(e){e in t&&(void 0!==r&&"string"==typeof r[e]&&w(t[e])&&k(t[e],r[e])?i[e]=r[e]:i[e]=t[e])})});function M(e,t,n,r){if("function"!=typeof t){if(w(t))return k(t,e);if(2===arguments.length)throw new h("expected",["Function","RegExp"],t);if("object"!==i(e)||null===e){var o=new m({actual:e,expected:t,message:n,operator:"deepStrictEqual",stackStartFn:r});throw o.operator=r.name,o}var a=Object.keys(t);if(t instanceof Error)a.push("name","message");else if(0===a.length)throw new p("error",t,"may not be an empty object");return void 0===c&&x(),a.forEach(function(i){"string"==typeof e[i]&&w(t[i])&&k(t[i],e[i])||function(e,t,n,r,i,o){if(!(n in e)||!u(e[n],t[n])){if(!r){var a=new I(e,i),s=new I(t,i,e),c=new m({actual:a,expected:s,operator:"deepStrictEqual",stackStartFn:o});throw c.actual=e,c.expected=t,c.operator=o.name,c}R({actual:e,expected:t,message:r,operator:o.name,stackStartFn:o})}}(e,t,i,n,a,r)}),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function L(e){if("function"!=typeof e)throw new h("fn","Function",e);try{e()}catch(e){return e}return A}function B(e){return v(e)||null!==e&&"object"===i(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function C(e){return Promise.resolve().then(function(){var t;if("function"==typeof e){if(!B(t=e()))throw new d("instance of Promise","promiseFn",t)}else{if(!B(e))throw new h("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then(function(){return t}).then(function(){return A}).catch(function(e){return e})})}function N(e,t,n,r){if("string"==typeof n){if(4===arguments.length)throw new h("error",["Object","Error","Function","RegExp"],n);if("object"===i(t)&&null!==t){if(t.message===n)throw new f("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===n)throw new f("error/message",'The error "'.concat(t,'" is identical to the message.'));r=n,n=void 0}else if(null!=n&&"object"!==i(n)&&"function"!=typeof n)throw new h("error",["Object","Error","Function","RegExp"],n);if(t===A){var o="";n&&n.name&&(o+=" (".concat(n.name,")")),o+=r?": ".concat(r):".";var a="rejects"===e.name?"rejection":"exception";R({actual:void 0,expected:n,operator:e.name,message:"Missing expected ".concat(a).concat(o),stackStartFn:e})}if(n&&!M(t,n,r,e))throw t}function P(e,t,n,r){if(t!==A){if("string"==typeof n&&(r=n,n=void 0),!n||M(t,n)){var i=r?": ".concat(r):".",o="doesNotReject"===e.name?"rejection":"exception";R({actual:t,expected:n,operator:e.name,message:"Got unwanted ".concat(o).concat(i,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function D(e,t,n,r,o){if(!w(t))throw new h("regexp","RegExp",t);var a="match"===o;if("string"!=typeof e||k(t,e)!==a){if(n instanceof Error)throw n;var s=!n;n=n||("string"!=typeof e?'The "string" argument must be of type string. Received type '+"".concat(i(e)," (").concat(y(e),")"):(a?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(y(t),". Input:\n\n").concat(y(e),"\n"));var c=new m({actual:e,expected:t,message:n,operator:o,stackStartFn:r});throw c.generatedMessage=s,c}}function F(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];j.apply(void 0,[F,t.length].concat(t))}O.throws=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];N.apply(void 0,[e,L(t)].concat(r))},O.rejects=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return C(t).then(function(t){return N.apply(void 0,[e,t].concat(r))})},O.doesNotThrow=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];P.apply(void 0,[e,L(t)].concat(r))},O.doesNotReject=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return C(t).then(function(t){return P.apply(void 0,[e,t].concat(r))})},O.ifError=function e(t){if(null!=t){var n="ifError got unwanted exception: ";"object"===i(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?n+=t.constructor.name:n+=t.message:n+=y(t);var r=new m({actual:t,expected:null,operator:"ifError",message:n,stackStartFn:e}),o=t.stack;if("string"==typeof o){var a=o.split("\n");a.shift();for(var s=r.stack.split("\n"),c=0;c<a.length;c++){var u=s.indexOf(a[c]);if(-1!==u){s=s.slice(0,u);break}}r.stack="".concat(s.join("\n"),"\n").concat(a.join("\n"))}throw r}},O.match=function e(t,n,r){D(t,n,r,e,"match")},O.doesNotMatch=function e(t,n,r){D(t,n,r,e,"doesNotMatch")},O.strict=_(F,O,{equal:O.strictEqual,deepEqual:O.deepStrictEqual,notEqual:O.notStrictEqual,notDeepEqual:O.notDeepStrictEqual}),O.strict.strict=O.strict},4233:e=>{"use strict";const t=function*(){}.constructor;e.exports=()=>t},4385:()=>{},4427:(e,t,n)=>{var r=n(5606);function i(e){this.db=e,this._ended=!1,this._nexting=!1}i.prototype.next=function(e){var t=this;if("function"!=typeof e)throw new Error("next() requires a callback argument");return t._ended?e(new Error("cannot call next() after end()")):t._nexting?e(new Error("cannot call next() before previous next() has completed")):(t._nexting=!0,"function"==typeof t._next?t._next(function(){t._nexting=!1,e.apply(null,arguments)}):void r.nextTick(function(){t._nexting=!1,e()}))},i.prototype.end=function(e){if("function"!=typeof e)throw new Error("end() requires a callback argument");return this._ended?e(new Error("end() already called on iterator")):(this._ended=!0,"function"==typeof this._end?this._end(e):void r.nextTick(e))},e.exports=i},4442:e=>{"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},4459:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!=e}},4507:(e,t,n)=>{"use strict";e.exports=o;var r=n(1657),i=Object.create(n(5622));function o(e){if(!(this instanceof o))return new o(e);r.call(this,e)}i.inherits=n(6698),i.inherits(o,r),o.prototype._transform=function(e,t,n){n(null,e)}},4527:(e,t,n)=>{var r=n(8287).Buffer;e.exports=function(e){return"function"==typeof r._augment&&r.TYPED_ARRAY_SUPPORT?r._augment(e):new r(e)}},4602:(e,t,n)=>{var r=n(8287).Buffer;function i(e){return void 0!==e&&""!==e}function o(e,t){return Object.hasOwnProperty.call(e,t)}function a(e,t){return Object.hasOwnProperty.call(e,t)&&t}t.compare=function(e,t){if(r.isBuffer(e)){for(var n=Math.min(e.length,t.length),i=0;i<n;i++){var o=e[i]-t[i];if(o)return o}return e.length-t.length}return e<t?-1:e>t?1:0};var s=t.lowerBoundKey=function(e){return a(e,"gt")||a(e,"gte")||a(e,"min")||(e.reverse?a(e,"end"):a(e,"start"))||void 0},c=t.lowerBound=function(e,t){var n=s(e);return n?e[n]:t},u=t.lowerBoundInclusive=function(e){return!o(e,"gt")},l=t.upperBoundInclusive=function(e){return!o(e,"lt")},f=t.lowerBoundExclusive=function(e){return!u(e)},h=t.upperBoundExclusive=function(e){return!l(e)},p=t.upperBoundKey=function(e){return a(e,"lt")||a(e,"lte")||a(e,"max")||(e.reverse?a(e,"start"):a(e,"end"))||void 0},d=t.upperBound=function(e,t){var n=p(e);return n?e[n]:t};function g(e){return e}t.start=function(e,t){return e.reverse?d(e,t):c(e,t)},t.end=function(e,t){return e.reverse?c(e,t):d(e,t)},t.startInclusive=function(e){return e.reverse?l(e):u(e)},t.endInclusive=function(e){return e.reverse?u(e):l(e)},t.toLtgt=function(e,n,r,i,a){n=n||{},r=r||g;var s=arguments.length>3,c=t.lowerBoundKey(e),u=t.upperBoundKey(e);return c?"gt"===c?n.gt=r(e.gt,!1):n.gte=r(e[c],!1):s&&(n.gte=r(i,!1)),u?"lt"===u?n.lt=r(e.lt,!0):n.lte=r(e[u],!0):s&&(n.lte=r(a,!0)),null!=e.reverse&&(n.reverse=!!e.reverse),o(n,"max")&&delete n.max,o(n,"min")&&delete n.min,o(n,"start")&&delete n.start,o(n,"end")&&delete n.end,n},t.contains=function(e,n,r){r=r||t.compare;var o=c(e);if(i(o)&&((a=r(n,o))<0||0===a&&f(e)))return!1;var a,s=d(e);return!i(s)||!((a=r(n,s))>0||0===a&&h(e))},t.filter=function(e,n){return function(r){return t.contains(e,r,n)}}},4610:(e,t,n)=>{"use strict";e.exports=l;var r=n(6048).F,i=r.ERR_METHOD_NOT_IMPLEMENTED,o=r.ERR_MULTIPLE_CALLBACK,a=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,c=n(5382);function u(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function l(e){if(!(this instanceof l))return new l(e);c.call(this,e),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush(function(t,n){h(e,t,n)})}function h(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}n(6698)(l,c),l.prototype.push=function(e,t){return this._transformState.needTransform=!1,c.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,n){n(new i("_transform()"))},l.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},l.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},l.prototype._destroy=function(e,t){c.prototype._destroy.call(this,e,function(e){t(e)})}},4643:(e,t,n)=>{function r(e){try{if(!n.g.localStorage)return!1}catch(e){return!1}var t=n.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}},4674:e=>{"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},4675:(e,t,n)=>{var r=n(5606);(t=e.exports=n(5821)).Stream=n(8310),t.Readable=t,t.Writable=n(5405),t.Duplex=n(7295),t.Transform=n(2545),t.PassThrough=n(5683),r.browser||"disable"!==r.env.READABLE_STREAM||(e.exports=n(8310))},4765:e=>{"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC3986";e.exports={default:r,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:r}},4803:(e,t,n)=>{"use strict";var r=n(8859),i=n(9675),o=function(e,t,n){for(var r,i=e;null!=(r=i.next);i=r)if(r.key===t)return i.next=r.next,n||(r.next=e.next,e.next=r),r};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new i("Side channel does not contain "+r(e))},delete:function(t){var n=e&&e.next,r=function(e,t){if(e)return o(e,t,!0)}(e,t);return r&&n&&n===r&&(e=void 0),!!r},get:function(t){return function(e,t){if(e){var n=o(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!o(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var r=o(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t}},4823:e=>{"use strict";var t=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();e.exports=function(e,n,r,i){var o=t,a=i+r;e^=-1;for(var s=i;s<a;s++)e=e>>>8^o[255&(e^n[s])];return-1^e}},4829:(e,t,n)=>{var r=n(8287).Buffer,i=n(8320).Duplex;function o(e){if(!(this instanceof o))return new o(e);if(this._bufs=[],this.length=0,"function"==typeof e){this._callback=e;var t=function(e){this._callback&&(this._callback(e),this._callback=null)}.bind(this);this.on("pipe",function(e){e.on("error",t)}),this.on("unpipe",function(e){e.removeListener("error",t)})}else r.isBuffer(e)?this.append(e):Array.isArray(e)&&e.forEach(function(e){r.isBuffer(e)&&this.append(e)}.bind(this));i.call(this)}n(537).inherits(o,i),o.prototype._offset=function(e){for(var t,n=0,r=0;r<this._bufs.length;r++){if(e<(t=n+this._bufs[r].length))return[r,e-n];n=t}},o.prototype.append=function(e){return this._bufs.push(r.isBuffer(e)?e:new r(e)),this.length+=e.length,this},o.prototype._write=function(e,t,n){this.append(e),n&&n()},o.prototype._read=function(e){if(!this.length)return this.push(null);e=Math.min(e,this.length),this.push(this.slice(0,e)),this.consume(e)},o.prototype.end=function(e){i.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null)},o.prototype.get=function(e){return this.slice(e,e+1)[0]},o.prototype.slice=function(e,t){return this.copy(null,0,e,t)},o.prototype.copy=function(e,t,n,i){if(("number"!=typeof n||n<0)&&(n=0),("number"!=typeof i||i>this.length)&&(i=this.length),n>=this.length)return e||new r(0);if(i<=0)return e||new r(0);var o,a,s=!!e,c=this._offset(n),u=i-n,l=u,f=s&&t||0,h=c[1];if(0===n&&i==this.length){if(!s)return r.concat(this._bufs);for(a=0;a<this._bufs.length;a++)this._bufs[a].copy(e,f),f+=this._bufs[a].length;return e}if(l<=this._bufs[c[0]].length-h)return s?this._bufs[c[0]].copy(e,t,h,h+l):this._bufs[c[0]].slice(h,h+l);for(s||(e=new r(u)),a=c[0];a<this._bufs.length;a++){if(!(l>(o=this._bufs[a].length-h))){this._bufs[a].copy(e,f,h,h+l);break}this._bufs[a].copy(e,f,h),f+=o,l-=o,h&&(h=0)}return e},o.prototype.toString=function(e,t,n){return this.slice(t,n).toString(e)},o.prototype.consume=function(e){for(;this._bufs.length;){if(!(e>this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},o.prototype.duplicate=function(){for(var e=0,t=new o;e<this._bufs.length;e++)t.append(this._bufs[e]);return t},o.prototype.destroy=function(){this._bufs.length=0,this.length=0,this.push(null)},function(){var e={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1};for(var t in e)(function(t){o.prototype[t]=function(n){return this.slice(n,n+e[t])[t](0)}})(t)}(),e.exports=o},4837:(e,t,n)=>{var r=n(8287).Buffer,i=n(5606),o=n(2602),a=n(3238),s=n(8688),c=new r(0),u=function(){},l=function(e){return"function"==typeof e?e:function(t){t(null,e)}},f=function(e,t){var n=!1,r=!1;return e._read=function(){n=!0},e.destroy=function(){r=!0},t(function(t,o){if(t)return e.emit("error",t);var a=function(){for(var t;null!==(t=o.read());)n=!1,e.push(t)};if(o.on("readable",function(){n&&a()}),o.on("end",function(){a(),e.push(null)}),o.on("error",function(t){e.emit("error",t)}),o.on("close",function(){a(),i.nextTick(function(){e.emit("close")})}),e._read=function(){n=!0,a()},e.destroy=function(){r||(r=!0,o.destroy&&o.destroy())},r)return r=!1,void e.destroy();n&&a()}),e},h=function(e,t){var n=u,r=!1;return e._write=function(e,t,r){n=r},e.destroy=function(){r=!0},e.write(c),t(function(t,i){if(t)return e.emit("error",t);i.on("close",function(){e.emit("close")}),i.on("error",function(t){e.emit("error",t)}),e._write=function(e,t,n){if(e===c)return n();i.write(e,t,n)};var o=e.emit;if(i.on("finish",function(){o.call(e,"finish")}),e.destroy=function(){r||(r=!0,i.destroy&&i.destroy())},e.emit=function(t){if("finish"!==t)return o.apply(e,arguments);i.end()},r)return r=!1,void e.destroy();n()}),e};t.readable=function(e,n){return 1===arguments.length?t.readable(null,e):(e||(e={}),f(new a(e),l(n)))},t.writable=function(e,n){return 1===arguments.length?t.writable(null,e):(e||(e={}),h(new o(e),l(n)))},t.duplex=function(e,n,r){if(2===arguments.length)return t.duplex(null,e,n);e||(e={});var i=new s(e);return h(i,l(n)),f(i,l(r)),i}},4935:(e,t,n)=>{"use strict";var r=n(3225),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=f;var o=Object.create(n(5622));o.inherits=n(6698);var a=n(4053),s=n(5509);o.inherits(f,a);for(var c=i(s.prototype),u=0;u<c.length;u++){var l=c[u];f.prototype[l]||(f.prototype[l]=s.prototype[l])}function f(e){if(!(this instanceof f))return new f(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",h)}function h(){this.allowHalfOpen||this._writableState.ended||r.nextTick(p,this)}function p(e){e.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),f.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},5019:(e,t,n)=>{var r=n(8287).Buffer,i=r.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},o=t.I=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!i(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=s;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=c;break;default:return void(this.write=a)}this.charBuffer=new r(6),this.charReceived=0,this.charLength=0};function a(e){return e.toString(this.encoding)}function s(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function c(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}o.prototype.write=function(e){for(var t="";this.charLength;){var n=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived<this.charLength)return"";if(e=e.slice(n,e.length),!((r=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&r<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var r,i=e.length;if(this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),i=(t+=e.toString(this.encoding,0,i)).length-1,(r=t.charCodeAt(i))>=55296&&r<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},o.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},o.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,r=this.charBuffer,i=this.encoding;t+=r.slice(0,n).toString(i)}return t}},5140:(e,t,n)=>{var r=n(5606);e.exports=f;var i=n(3626),o=n(8287).Buffer;f.ReadableState=l;var a=n(7007).EventEmitter;a.listenerCount||(a.listenerCount=function(e,t){return e.listeners(t).length});var s,c=n(8310),u=n(5622);function l(e,t){var r=(e=e||{}).highWaterMark;this.highWaterMark=r||0===r?r:16384,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=!1,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.calledRead=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!e.objectMode,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=n(5019).I),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function f(e){if(!(this instanceof f))return new f(e);this._readableState=new l(e,this),this.readable=!0,c.call(this)}function h(e,t,n,i,a){var s=function(e,t){var n=null;return o.isBuffer(t)||"string"==typeof t||null==t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(t,n);if(s)e.emit("error",s);else if(null==n)t.reading=!1,t.ended||function(e,t){if(t.decoder&&!t.ended){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.length>0?g(e):_(e)}(e,t);else if(t.objectMode||n&&n.length>0)if(t.ended&&!a){var c=new Error("stream.push() after EOF");e.emit("error",c)}else t.endEmitted&&a?(c=new Error("stream.unshift() after end event"),e.emit("error",c)):(!t.decoder||a||i||(n=t.decoder.write(n)),t.length+=t.objectMode?1:n.length,a?t.buffer.unshift(n):(t.reading=!1,t.buffer.push(n)),t.needReadable&&g(e),function(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(function(){!function(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}(e,t)}))}(e,t));else a||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}u.inherits=n(6698),u.inherits(f,c),f.prototype.push=function(e,t){var n=this._readableState;return"string"!=typeof e||n.objectMode||(t=t||n.defaultEncoding)!==n.encoding&&(e=new o(e,t),t=""),h(this,n,e,t,!1)},f.prototype.unshift=function(e){return h(this,this._readableState,e,"",!0)},f.prototype.setEncoding=function(e){s||(s=n(5019).I),this._readableState.decoder=new s(e),this._readableState.encoding=e};var p=8388608;function d(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:null===e||isNaN(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:e<=0?0:(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>=p)e=p;else{e--;for(var t=1;t<32;t<<=1)e|=e>>t;e++}return e}(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function g(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,t.sync?r.nextTick(function(){m(e)}):m(e))}function m(e){e.emit("readable")}function y(e){var t,n=e._readableState;function r(e,r,i){!1===e.write(t)&&n.awaitDrain++}for(n.awaitDrain=0;n.pipesCount&&null!==(t=e.read());)if(1===n.pipesCount?r(n.pipes):E(n.pipes,r),e.emit("data",t),n.awaitDrain>0)return;if(0===n.pipesCount)return n.flowing=!1,void(a.listenerCount(e,"data")>0&&v(e));n.ranOut=!0}function b(){this._readableState.ranOut&&(this._readableState.ranOut=!1,y(this))}function v(e,t){if(e._readableState.flowing)throw new Error("Cannot switch to old mode now.");var n=t||!1,i=!1;e.readable=!0,e.pipe=c.prototype.pipe,e.on=e.addListener=c.prototype.on,e.on("readable",function(){var t;for(i=!0;!n&&null!==(t=e.read());)e.emit("data",t);null===t&&(i=!1,e._readableState.needReadable=!0)}),e.pause=function(){n=!0,this.emit("pause")},e.resume=function(){n=!1,i?r.nextTick(function(){e.emit("readable")}):this.read(0),this.emit("resume")},e.emit("readable")}function w(e,t){var n,r=t.buffer,i=t.length,a=!!t.decoder,s=!!t.objectMode;if(0===r.length)return null;if(0===i)n=null;else if(s)n=r.shift();else if(!e||e>=i)n=a?r.join(""):o.concat(r,i),r.length=0;else if(e<r[0].length)n=(f=r[0]).slice(0,e),r[0]=f.slice(e);else if(e===r[0].length)n=r.shift();else{n=a?"":new o(e);for(var c=0,u=0,l=r.length;u<l&&c<e;u++){var f=r[0],h=Math.min(e-c,f.length);a?n+=f.slice(0,h):f.copy(n,c,0,h),h<f.length?r[0]=f.slice(h):r.shift(),c+=h}}return n}function _(e){var t=e._readableState;if(t.length>0)throw new Error("endReadable called on non-empty stream");!t.endEmitted&&t.calledRead&&(t.ended=!0,r.nextTick(function(){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}))}function E(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n)}f.prototype.read=function(e){var t=this._readableState;t.calledRead=!0;var n,r=e;if(("number"!=typeof e||e>0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return g(this),null;if(0===(e=d(e,t))&&t.ended)return n=null,t.length>0&&t.decoder&&(n=w(e,t),t.length-=n.length),0===t.length&&_(this),n;var i=t.needReadable;return t.length-e<=t.highWaterMark&&(i=!0),(t.ended||t.reading)&&(i=!1),i&&(t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1),i&&!t.reading&&(e=d(r,t)),null===(n=e>0?w(e,t):null)&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),t.ended&&!t.endEmitted&&0===t.length&&_(this),n},f.prototype._read=function(e){this.emit("error",new Error("not implemented"))},f.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1;var s=t&&!1===t.end||e===r.stdout||e===r.stderr?f:u;function c(e){e===n&&f()}function u(){e.end()}o.endEmitted?r.nextTick(s):n.once("end",s),e.on("unpipe",c);var l=function(e){return function(){var t=e._readableState;t.awaitDrain--,0===t.awaitDrain&&y(e)}}(n);function f(){e.removeListener("close",p),e.removeListener("finish",d),e.removeListener("drain",l),e.removeListener("error",h),e.removeListener("unpipe",c),n.removeListener("end",u),n.removeListener("end",f),e._writableState&&!e._writableState.needDrain||l()}function h(t){g(),e.removeListener("error",h),0===a.listenerCount(e,"error")&&e.emit("error",t)}function p(){e.removeListener("finish",d),g()}function d(){e.removeListener("close",p),g()}function g(){n.unpipe(e)}return e.on("drain",l),e._events&&e._events.error?i(e._events.error)?e._events.error.unshift(h):e._events.error=[h,e._events.error]:e.on("error",h),e.once("close",p),e.once("finish",d),e.emit("pipe",n),o.flowing||(this.on("readable",b),o.flowing=!0,r.nextTick(function(){y(n)})),e},f.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,this.removeListener("readable",b),t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,this.removeListener("readable",b),t.flowing=!1;for(var i=0;i<r;i++)n[i].emit("unpipe",this);return this}return-1===(i=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}(t.pipes,e))||(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},f.prototype.on=function(e,t){var n=c.prototype.on.call(this,e,t);if("data"!==e||this._readableState.flowing||v(this),"readable"===e&&this.readable){var r=this._readableState;r.readableListening||(r.readableListening=!0,r.emittedReadable=!1,r.needReadable=!0,r.reading?r.length&&g(this):this.read(0))}return n},f.prototype.addListener=f.prototype.on,f.prototype.resume=function(){v(this),this.read(0),this.emit("resume")},f.prototype.pause=function(){v(this,!0),this.emit("pause")},f.prototype.wrap=function(e){var t=this._readableState,n=!1,r=this;for(var i in e.on("end",function(){if(t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)}),e.on("data",function(i){t.decoder&&(i=t.decoder.write(i)),t.objectMode&&null==i||(t.objectMode||i&&i.length)&&(r.push(i)||(n=!0,e.pause()))}),e)"function"==typeof e[i]&&void 0===this[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return E(["error","close","destroy","pause","resume"],function(t){e.on(t,r.emit.bind(r,t))}),r._read=function(t){n&&(n=!1,e.resume())},r},f._fromList=w},5157:e=>{e.exports=function(){throw new Error("Readable.from is not available in the browser")}},5240:(e,t,n)=>{var r=n(5606);e.exports=c;var i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t},o=n(5622);o.inherits=n(6698);var a=n(1438),s=n(626);function c(e){if(!(this instanceof c))return new c(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",u)}function u(){this.allowHalfOpen||this._writableState.ended||r.nextTick(this.end.bind(this))}o.inherits(c,a),function(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n])}(i(s.prototype),function(e){c.prototype[e]||(c.prototype[e]=s.prototype[e])})},5291:(e,t,n)=>{"use strict";var r=n(6048).F.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,n,i){var o=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,i,n);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new r(i?n:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},5340:()=>{},5345:e=>{"use strict";e.exports=URIError},5346:(e,t,n)=>{e.exports=Object.keys||n(7589)},5363:(e,t,n)=>{var r=n(5606),i=n(7975),o=n(3519),a=n(7520),s=n(6788),c=n(2581),u=n(7970),l=n(8571),f=c({type:"directory",mode:s(777),size:4096}),h=function(e){return e="/"===e[0]?e:"/"+e,"/"===(e=i.normalize(e))?e:"/"===e[e.length-1]?e.slice(0,-1):e},p=function(e){var t=e.split("/").length.toString(36);return"0000000000".slice(t.length)+t+e};e.exports=function(e){var t={};return t.normalize=h,t.get=function(t,n){if("/"===(t=h(t)))return r.nextTick(n.bind(null,null,f,"/"));e.get(p(t),{valueEncoding:"json"},function(e,r){return e&&e.notFound?n(l.ENOENT(t),null,t):e?n(e,null,t):void n(null,c(r),t)})},t.writable=function(e,n){if("/"===(e=h(e)))return r.nextTick(n.bind(null,l.EPERM(e)));t.follow(i.dirname(e),function(t,r){return t?n(t):r.isDirectory()?void n(null,e):n(l.ENOTDIR(e))})},t.list=function(t,n){t=h(t);var r=p("/"===t?t:t+"/"),i=e.createKeyStream({start:r,end:r+"ÿ"});n=o(n),i.on("error",n),i.pipe(a({encoding:"object"},function(e){e=e.map(function(e){return e.split("/").pop()}),n(null,e)}))},t.follow=function(e,n){!function(e,n){var r="/",o=e.split("/").slice(1),a=function(){t.get(i.join(r,o.shift()),function(t,i,s){return t?n(t,i,e):(r=i.target||s,o.length?void a():n(null,i,s))})};a()}(h(e),function e(r,i,o){return r?n(r,null,o):i.target?t.get(i.target,e):void n(null,c(i),o)})},t.update=function(e,n,r){t.get(e,function(e,i,o){return e?r(e):"/"===o?r(l.EPERM(o)):void t.put(o,u(i,n),r)})},t.put=function(n,r,i){t.writable(n,function(t,n){if(t)return i(t);e.put(p(n),c(r),{valueEncoding:"json"},i)})},t.del=function(t,n){if("/"===(t=h(t)))return r.nextTick(n.bind(null,l.EPERM(t)));e.del(p(t),n)},t}},5373:(e,t,n)=>{"use strict";var r=n(8636),i=n(2642),o=n(4765);e.exports={formats:o,parse:i,stringify:r}},5382:(e,t,n)=>{"use strict";var r=n(5606),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=l;var o=n(5412),a=n(6708);n(6698)(l,o);for(var s=i(a.prototype),c=0;c<s.length;c++){var u=s[c];l.prototype[u]||(l.prototype[u]=a.prototype[u])}function l(e){if(!(this instanceof l))return new l(e);o.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||r.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},5386:(e,t,n)=>{var r=n(8287),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},5405:(e,t,n)=>{var r=n(5606);e.exports=u;var i=n(8287).Buffer;u.WritableState=c;var o=n(5622);o.inherits=n(6698);var a=n(8310);function s(e,t,n){this.chunk=e,this.encoding=t,this.callback=n}function c(e,t){var i=n(7295),o=(e=e||{}).highWaterMark,a=e.objectMode?16:16384;this.highWaterMark=o||0===o?o:a,this.objectMode=!!e.objectMode,t instanceof i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,i=n.sync,o=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,i,o){n?r.nextTick(function(){t.pendingcb--,o(i)}):(t.pendingcb--,o(i)),e._writableState.errorEmitted=!0,e.emit("error",i)}(e,n,i,t,o);else{var a=p(0,n);a||n.corked||n.bufferProcessing||!n.buffer.length||h(e,n),i?r.nextTick(function(){f(e,n,a,o)}):f(e,n,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.buffer=[],this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1}function u(e){var t=n(7295);if(!(this instanceof u||this instanceof t))return new u(e);this._writableState=new c(e,this),this.writable=!0,a.call(this)}function l(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function f(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),g(e,t)}function h(e,t){if(t.bufferProcessing=!0,e._writev&&t.buffer.length>1){for(var n=[],r=0;r<t.buffer.length;r++)n.push(t.buffer[r].callback);t.pendingcb++,l(e,t,!0,t.length,t.buffer,"",function(e){for(var r=0;r<n.length;r++)t.pendingcb--,n[r](e)}),t.buffer=[]}else{for(r=0;r<t.buffer.length;r++){var i=t.buffer[r],o=i.chunk,a=i.encoding,s=i.callback,c=t.objectMode?1:o.length;if(l(e,t,!1,c,o,a,s),t.writing){r++;break}}r<t.buffer.length?t.buffer=t.buffer.slice(r):t.buffer.length=0}t.bufferProcessing=!1}function p(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function d(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function g(e,t){var n=p(0,t);return n&&(0===t.pendingcb?(d(e,t),t.finished=!0,e.emit("finish")):d(e,t)),n}o.inherits(u,a),u.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},u.prototype.write=function(e,t,n){var a=this._writableState,c=!1;return o.isFunction(t)&&(n=t,t=null),o.isBuffer(e)?t="buffer":t||(t=a.defaultEncoding),o.isFunction(n)||(n=function(){}),a.ended?function(e,t,n){var i=new Error("write after end");e.emit("error",i),r.nextTick(function(){n(i)})}(this,0,n):function(e,t,n,i){var a=!0;if(!(o.isBuffer(n)||o.isString(n)||o.isNullOrUndefined(n)||t.objectMode)){var s=new TypeError("Invalid non-string/buffer chunk");e.emit("error",s),r.nextTick(function(){i(s)}),a=!1}return a}(this,a,e,n)&&(a.pendingcb++,c=function(e,t,n,r,a){n=function(e,t,n){return!e.objectMode&&!1!==e.decodeStrings&&o.isString(t)&&(t=new i(t,n)),t}(t,n,r),o.isBuffer(n)&&(r="buffer");var c=t.objectMode?1:n.length;t.length+=c;var u=t.length<t.highWaterMark;return u||(t.needDrain=!0),t.writing||t.corked?t.buffer.push(new s(n,r,a)):l(e,t,!1,c,n,r,a),u}(this,a,e,t,n)),c},u.prototype.cork=function(){this._writableState.corked++},u.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.buffer.length||h(this,e))},u.prototype._write=function(e,t,n){n(new Error("not implemented"))},u.prototype._writev=null,u.prototype.end=function(e,t,n){var i=this._writableState;o.isFunction(e)?(n=e,e=null,t=null):o.isFunction(t)&&(n=t,t=null),o.isNullOrUndefined(e)||this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||function(e,t,n){t.ending=!0,g(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n)),t.ended=!0}(this,i,n)}},5412:(e,t,n)=>{"use strict";var r,i=n(5606);e.exports=S,S.ReadableState=x,n(7007).EventEmitter;var o,a=function(e,t){return e.listeners(t).length},s=n(345),c=n(8287).Buffer,u=(void 0!==n.g?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},l=n(9838);o=l&&l.debuglog?l.debuglog("stream"):function(){};var f,h,p,d=n(2726),g=n(5896),m=n(5291).getHighWaterMark,y=n(6048).F,b=y.ERR_INVALID_ARG_TYPE,v=y.ERR_STREAM_PUSH_AFTER_EOF,w=y.ERR_METHOD_NOT_IMPLEMENTED,_=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(6698)(S,s);var E=g.errorOrDestroy,k=["error","close","destroy","pause","resume"];function x(e,t,i){r=r||n(5382),e=e||{},"boolean"!=typeof i&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=m(this,e,"readableHighWaterMark",i),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f||(f=n(3141).I),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function S(e){if(r=r||n(5382),!(this instanceof S))return new S(e);var t=this instanceof r;this._readableState=new x(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function O(e,t,n,r,i){o("readableAddChunk",t);var a,s=e._readableState;if(null===t)s.reading=!1,function(e,t){if(o("onEofChunk"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?T(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,I(e)))}}(e,s);else if(i||(a=function(e,t){var n,r;return r=t,c.isBuffer(r)||r instanceof u||"string"==typeof t||void 0===t||e.objectMode||(n=new b("chunk",["string","Buffer","Uint8Array"],t)),n}(s,t)),a)E(e,a);else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),r)s.endEmitted?E(e,new _):A(e,s,t,!0);else if(s.ended)E(e,new v);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!n?(t=s.decoder.write(t),s.objectMode||0!==t.length?A(e,s,t,!1):M(e,s)):A(e,s,t,!1)}else r||(s.reading=!1,M(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function A(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&T(e)),M(e,t)}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),S.prototype.destroy=g.destroy,S.prototype._undestroy=g.undestroy,S.prototype._destroy=function(e,t){t(e)},S.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=c.from(e,t),t=""),n=!0),O(this,e,t,!1,n)},S.prototype.unshift=function(e){return O(this,e,null,!0,!1)},S.prototype.isPaused=function(){return!1===this._readableState.flowing},S.prototype.setEncoding=function(e){f||(f=n(3141).I);var t=new f(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var R=1073741824;function j(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=R?e=R:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function T(e){var t=e._readableState;o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(I,e))}function I(e){var t=e._readableState;o("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,P(e)}function M(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(L,e,t))}function L(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var n=t.length;if(o("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function B(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function C(e){o("readable nexttick read 0"),e.read(0)}function N(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),P(e),t.flowing&&!t.reading&&e.read(0)}function P(e){var t=e._readableState;for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function D(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function F(e){var t=e._readableState;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(U,t,e))}function U(e,t){if(o("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function z(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}S.prototype.read=function(e){o("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return o("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?F(this):T(this),null;if(0===(e=j(e,t))&&t.ended)return 0===t.length&&F(this),null;var r,i=t.needReadable;return o("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&o("length less than watermark",i=!0),t.ended||t.reading?o("reading or ended",i=!1):i&&(o("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=j(n,t))),null===(r=e>0?D(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&F(this)),null!==r&&this.emit("data",r),r},S.prototype._read=function(e){E(this,new w("_read()"))},S.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,o("pipe count=%d opts=%j",r.pipesCount,t);var s=t&&!1===t.end||e===i.stdout||e===i.stderr?g:c;function c(){o("onend"),e.end()}r.endEmitted?i.nextTick(s):n.once("end",s),e.on("unpipe",function t(i,a){o("onunpipe"),i===n&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,o("cleanup"),e.removeListener("close",p),e.removeListener("finish",d),e.removeListener("drain",u),e.removeListener("error",h),e.removeListener("unpipe",t),n.removeListener("end",c),n.removeListener("end",g),n.removeListener("data",f),l=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||u())});var u=function(e){return function(){var t=e._readableState;o("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,P(e))}}(n);e.on("drain",u);var l=!1;function f(t){o("ondata");var i=e.write(t);o("dest.write",i),!1===i&&((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==z(r.pipes,e))&&!l&&(o("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function h(t){o("onerror",t),g(),e.removeListener("error",h),0===a(e,"error")&&E(e,t)}function p(){e.removeListener("finish",d),g()}function d(){o("onfinish"),e.removeListener("close",p),g()}function g(){o("unpipe"),n.unpipe(e)}return n.on("data",f),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",h),e.once("close",p),e.once("finish",d),e.emit("pipe",n),r.flowing||(o("pipe resume"),n.resume()),e},S.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=z(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},S.prototype.on=function(e,t){var n=s.prototype.on.call(this,e,t),r=this._readableState;return"data"===e?(r.readableListening=this.listenerCount("readable")>0,!1!==r.flowing&&this.resume()):"readable"===e&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,o("on readable",r.length,r.reading),r.length?T(this):r.reading||i.nextTick(C,this))),n},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(e,t){var n=s.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(B,this),n},S.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||i.nextTick(B,this),t},S.prototype.resume=function(){var e=this._readableState;return e.flowing||(o("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(N,e,t))}(this,e)),e.paused=!1,this},S.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",function(){if(o("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){o("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<k.length;a++)e.on(k[a],this.emit.bind(this,k[a]));return this._read=function(t){o("wrapped _read",t),r&&(r=!1,e.resume())},this},"function"==typeof Symbol&&(S.prototype[Symbol.asyncIterator]=function(){return void 0===h&&(h=n(2955)),h(this)}),Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),S._fromList=D,Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(S.from=function(e,t){return void 0===p&&(p=n(5157)),p(S,e,t)})},5509:(e,t,n)=>{"use strict";var r=n(5606),i=n(3225);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t){var n=e.entry;for(e.entry=null;n;){var r=n.callback;t.pendingcb--,r(undefined),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=y;var a,s=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?setImmediate:i.nextTick;y.WritableState=m;var c=Object.create(n(5622));c.inherits=n(6698);var u,l={deprecate:n(4643)},f=n(8010),h=n(5386).Buffer,p=(void 0!==n.g?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},d=n(7353);function g(){}function m(e,t){a=a||n(4935),e=e||{};var r=t instanceof a;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var c=e.highWaterMark,u=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=c||0===c?c:r&&(u||0===u)?u:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=!1===e.decodeStrings;this.decodeStrings=!f,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,o=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,o){--t.pendingcb,n?(i.nextTick(o,r),i.nextTick(k,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(o(r),e._writableState.errorEmitted=!0,e.emit("error",r),k(e,t))}(e,n,r,t,o);else{var a=_(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||w(e,n),r?s(v,e,n,a,o):v(e,n,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function y(e){if(a=a||n(4935),!(u.call(y,this)||this instanceof a))return new y(e);this._writableState=new m(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),f.call(this)}function b(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function v(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),k(e,t)}function w(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),a=t.corkedRequestsFree;a.entry=n;for(var s=0,c=!0;n;)i[s]=n,n.isBuf||(c=!1),n=n.next,s+=1;i.allBuffers=c,b(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,l=n.encoding,f=n.callback;if(b(e,t,!1,t.objectMode?1:u.length,u,l,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function _(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function E(e,t){e._final(function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),k(e,t)})}function k(e,t){var n=_(t);return n&&(function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,i.nextTick(E,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}c.inherits(y,f),m.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(m.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(u=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(e){return!!u.call(this,e)||this===y&&e&&e._writableState instanceof m}})):u=function(e){return e instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(e,t,n){var r,o=this._writableState,a=!1,s=!o.objectMode&&(r=e,h.isBuffer(r)||r instanceof p);return s&&!h.isBuffer(e)&&(e=function(e){return h.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=g),o.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),i.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var o=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),i.nextTick(r,a),o=!1),o}(this,o,e,n))&&(o.pendingcb++,a=function(e,t,n,r,i,o){if(!n){var a=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=h.from(t,n)),t}(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else b(e,t,!1,s,r,i,o);return c}(this,o,s,e,t,n)),a},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||w(this,e))},y.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,k(e,t),n&&(t.finished?i.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),y.prototype.destroy=d.destroy,y.prototype._undestroy=d.undestroy,y.prototype._destroy=function(e,t){this.end(),t(e)}},5584:(e,t,n)=>{var r=n(5606),i=(n(7007).EventEmitter,r.nextTick,n(8662)),o=n(3152),a=n(7212),s=n(5687);e.exports=function(e,t){function n(){}n.prototype=e;var r=new n;if(r.sublevel)return r;var c=(t=t||{}).sep=t.sep||"ÿ";function u(e){return function(t){return(t=a(t=t||{})).reverse?t.start=t.start||c:t.end=t.end||c,e.call(r,t)}}r._options=t,s(r),r.sublevels={},r.sublevel=function(e,t){return r.sublevels[e]?r.sublevels[e]:new i(r,e,t||this._options)},r.methods={},r.prefix=function(e){return""+(e||"")},r.pre=function(e,t){return t||(t=e,e={max:c}),r.hooks.pre(e,t)},r.post=function(e,t){return t||(t=e,e={max:c}),r.hooks.post(e,t)},r.readStream=r.createReadStream=u(r.createReadStream),r.keyStream=r.createKeyStream=u(r.createKeyStream),r.valuesStream=r.createValueStream=u(r.createValueStream);var l=r.batch;return r.batch=function(e,t,n){if(!Array.isArray(e))return new o(r);e.forEach(function(e){e.prefix&&("function"==typeof e.prefix.prefix?e.key=e.prefix.prefix(e.key):"string"==typeof e.prefix&&(e.key=e.prefix+e.key))}),l.call(r,e,t,n)},r}},5606:e=>{var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var s,c=[],u=!1,l=-1;function f(){u&&s&&(u=!1,s.length?c=s.concat(c):l=-1,c.length&&h())}function h(){if(!u){var e=a(f);u=!0;for(var t=c.length;t;){for(s=c,c=[];++l<t;)s&&s[l].run();l=-1,t=c.length}s=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function d(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new p(e,t)),1!==c.length||u||a(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=d,r.addListener=d,r.once=d,r.off=d,r.removeListener=d,r.removeAllListeners=d,r.emit=d,r.prependListener=d,r.prependOnceListener=d,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},5622:(e,t,n)=>{function r(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===r(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===r(e)},t.isError=function(e){return"[object Error]"===r(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(8287).Buffer.isBuffer},5641:(e,t,n)=>{var r=n(8287).Buffer,i=r.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},o=t.I=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!i(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=s;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=c;break;default:return void(this.write=a)}this.charBuffer=new r(6),this.charReceived=0,this.charLength=0};function a(e){return e.toString(this.encoding)}function s(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function c(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}o.prototype.write=function(e){for(var t="";this.charLength;){var n=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived<this.charLength)return"";if(e=e.slice(n,e.length),!((r=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&r<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var r,i=e.length;if(this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),i=(t+=e.toString(this.encoding,0,i)).length-1,(r=t.charCodeAt(i))>=55296&&r<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},o.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},o.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,r=this.charBuffer,i=this.encoding;t+=r.slice(0,n).toString(i)}return t}},5680:(e,t,n)=>{"use strict";var r=n(5767);e.exports=function(e){return!!r(e)}},5683:(e,t,n)=>{e.exports=o;var r=n(2545),i=n(5622);function o(e){if(!(this instanceof o))return new o(e);r.call(this,e)}i.inherits=n(6698),i.inherits(o,r),o.prototype._transform=function(e,t,n){n(null,e)}},5687:(e,t,n)=>{var r=n(2980);e.exports=function(e){if(!e.hooks){var t=[],n=[];e.hooks={post:function(e,n){n||(n=e,e="");var i={test:r.checker(e),hook:n};return t.push(i),c(t,i)},pre:function(e,t){t||(t=e,e="");var i={test:r.checker(e),hook:t,safe:!1!==e.safe};return n.push(i),c(n,i)},posthooks:t,prehooks:n},e.on("put",function(e,t){u({type:"put",key:e,value:t})}),e.on("del",function(e,t){u({type:"del",key:e,value:t})}),e.on("batch",function(e){e.forEach(u)});var i=e.put,o=e.del,a=e.batch;e.put=function(e,t,n,r){return l(!1,[{key:e,value:t,type:"put"}],n,r)},e.del=function(e,t,n){return l(!1,[{key:e,type:"del"}],t,n)},e.batch=function(e,t,n){return l(!0,e,t,n)}}function s(e){return e&&("string"==typeof e?e:"string"==typeof e.prefix?e.prefix:"function"==typeof e.prefix?e.prefix():"")}function c(e,t){return function(){var n=e.indexOf(t);return!!~n&&(e.splice(n,1),!0)}}function u(e){e&&e.type&&t.forEach(function(t){t.test(e.key)&&t.hook(e)})}function l(t,r,c,u){try{r.forEach(function e(t,i){n.forEach(function(n){if(n.test(String(t.key))){var o={add:function(t,o){if(void 0===t)return this;if(!1===t)return delete r[i];var a=s(t.prefix)||s(o)||n.prefix||"";if(a&&(t.prefix=a),t.key=a+t.key,n.safe&&n.test(String(t.key)))throw new Error("prehook cannot insert into own range");var c=t.keyEncoding||function(e){if(e&&e._getKeyEncoding)return e._getKeyEncoding(e)}(t.prefix),u=t.valueEncoding||function(e){if(e&&e._getValueEncoding)return e._getValueEncoding(e)}(t.prefix);return c&&(t.keyEncoding=c),u&&(t.valueEncoding=u),r.push(t),e(t,r.length-1),this},put:function(e,t){return"object"==typeof e&&(e.type="put"),this.add(e,t)},del:function(e,t){return"object"==typeof e&&(e.type="del"),this.add(e,t)},veto:function(){return this.add(!1)}};n.hook.call(o,t,o.add,r)}})})}catch(e){return(u||c)(e)}if(1==(r=r.filter(function(e){return e&&e.type})).length&&!t){var l=r[0];return"put"==l.type?i.call(e,l.key,l.value,c,u):o.call(e,l.key,c,u)}return a.call(e,r,c,u)}}},5767:(e,t,n)=>{"use strict";var r=n(2682),i=n(9209),o=n(487),a=n(6556),s=n(5795),c=n(3628),u=a("Object.prototype.toString"),l=n(9092)(),f="undefined"==typeof globalThis?n.g:globalThis,h=i(),p=a("String.prototype.slice"),d=a("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},g={__proto__:null};r(h,l&&s&&c?function(e){var t=new f[e];if(Symbol.toStringTag in t&&c){var n=c(t),r=s(n,Symbol.toStringTag);if(!r&&n){var i=c(n);r=s(i,Symbol.toStringTag)}g["$"+e]=o(r.get)}}:function(e){var t=new f[e],n=t.slice||t.set;n&&(g["$"+e]=o(n))}),e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!l){var t=p(u(e),8,-1);return d(h,t)>-1?t:"Object"===t&&function(e){var t=!1;return r(g,function(n,r){if(!t)try{n(e),t=p(r,1)}catch(e){}}),t}(e)}return s?function(e){var t=!1;return r(g,function(n,r){if(!t)try{"$"+n(e)===r&&(t=p(r,1))}catch(e){}}),t}(e):null}},5778:(e,t,n)=>{e.exports=a;var r=n(8166),i=n(5622);function o(e,t){this.afterTransform=function(e,n){return function(e,t,n){var r=e._transformState;r.transforming=!1;var i=r.writecb;if(!i)return e.emit("error",new Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,null!=n&&e.push(n),i&&i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}(t,e,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function a(e){if(!(this instanceof a))return new a(e);r.call(this,e),this._transformState=new o(e,this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,this.once("finish",function(){"function"==typeof this._flush?this._flush(function(e){s(t,e)}):s(t)})}function s(e,t){if(t)return e.emit("error",t);var n=e._writableState,r=(e._readableState,e._transformState);if(n.length)throw new Error("calling transform done when ws.length != 0");if(r.transforming)throw new Error("calling transform done when still transforming");return e.push(null)}i.inherits=n(6698),i.inherits(a,r),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,n){throw new Error("not implemented")},a.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0}},5795:(e,t,n)=>{"use strict";var r=n(6549);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},5821:(e,t,n)=>{var r=n(5606);e.exports=h;var i=n(9278),o=n(8287).Buffer;h.ReadableState=f;var a=n(7007).EventEmitter;a.listenerCount||(a.listenerCount=function(e,t){return e.listeners(t).length});var s,c=n(8310),u=n(5622);u.inherits=n(6698);var l=n(717);function f(e,t){var r=n(7295),i=(e=e||{}).highWaterMark,o=e.objectMode?16:16384;this.highWaterMark=i||0===i?i:o,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!e.objectMode,t instanceof r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=n(554).I),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function h(e){if(n(7295),!(this instanceof h))return new h(e);this._readableState=new f(e,this),this.readable=!0,c.call(this)}function p(e,t,n,i,o){var a=function(e,t){var n=null;return u.isBuffer(t)||u.isString(t)||u.isNullOrUndefined(t)||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(t,n);if(a)e.emit("error",a);else if(u.isNullOrUndefined(n))t.reading=!1,t.ended||function(e,t){if(t.decoder&&!t.ended){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,m(e)}(e,t);else if(t.objectMode||n&&n.length>0)if(t.ended&&!o){var s=new Error("stream.push() after EOF");e.emit("error",s)}else t.endEmitted&&o?(s=new Error("stream.unshift() after end event"),e.emit("error",s)):(!t.decoder||o||i||(n=t.decoder.write(n)),o||(t.reading=!1),t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,o?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&m(e)),function(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(function(){!function(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(l("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}(e,t)}))}(e,t));else o||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}l=l&&l.debuglog?l.debuglog("stream"):function(){},u.inherits(h,c),h.prototype.push=function(e,t){var n=this._readableState;return u.isString(e)&&!n.objectMode&&(t=t||n.defaultEncoding)!==n.encoding&&(e=new o(e,t),t=""),p(this,n,e,t,!1)},h.prototype.unshift=function(e){return p(this,this._readableState,e,"",!0)},h.prototype.setEncoding=function(e){return s||(s=n(554).I),this._readableState.decoder=new s(e),this._readableState.encoding=e,this};var d=8388608;function g(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:isNaN(e)||u.isNull(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:e<=0?0:(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>=d)e=d;else{e--;for(var t=1;t<32;t<<=1)e|=e>>t;e++}return e}(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function m(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(l("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?r.nextTick(function(){y(e)}):y(e))}function y(e){l("emit readable"),e.emit("readable"),b(e)}function b(e){var t=e._readableState;if(l("flow",t.flowing),t.flowing)do{var n=e.read()}while(null!==n&&t.flowing)}function v(e,t){var n,r=t.buffer,i=t.length,a=!!t.decoder,s=!!t.objectMode;if(0===r.length)return null;if(0===i)n=null;else if(s)n=r.shift();else if(!e||e>=i)n=a?r.join(""):o.concat(r,i),r.length=0;else if(e<r[0].length)n=(f=r[0]).slice(0,e),r[0]=f.slice(e);else if(e===r[0].length)n=r.shift();else{n=a?"":new o(e);for(var c=0,u=0,l=r.length;u<l&&c<e;u++){var f=r[0],h=Math.min(e-c,f.length);a?n+=f.slice(0,h):f.copy(n,c,0,h),h<f.length?r[0]=f.slice(h):r.shift(),c+=h}}return n}function w(e){var t=e._readableState;if(t.length>0)throw new Error("endReadable called on non-empty stream");t.endEmitted||(t.ended=!0,r.nextTick(function(){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}))}h.prototype.read=function(e){l("read",e);var t=this._readableState,n=e;if((!u.isNumber(e)||e>0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return l("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?w(this):m(this),null;if(0===(e=g(e,t))&&t.ended)return 0===t.length&&w(this),null;var r,i=t.needReadable;return l("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&l("length less than watermark",i=!0),(t.ended||t.reading)&&l("reading or ended",i=!1),i&&(l("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1),i&&!t.reading&&(e=g(n,t)),r=e>0?v(e,t):null,u.isNull(r)&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),n!==e&&t.ended&&0===t.length&&w(this),u.isNull(r)||this.emit("data",r),r},h.prototype._read=function(e){this.emit("error",new Error("not implemented"))},h.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,l("pipe count=%d opts=%j",o.pipesCount,t);var s=t&&!1===t.end||e===r.stdout||e===r.stderr?h:u;function c(e){l("onunpipe"),e===n&&h()}function u(){l("onend"),e.end()}o.endEmitted?r.nextTick(s):n.once("end",s),e.on("unpipe",c);var f=function(e){return function(){var t=e._readableState;l("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a.listenerCount(e,"data")&&(t.flowing=!0,b(e))}}(n);function h(){l("cleanup"),e.removeListener("close",g),e.removeListener("finish",m),e.removeListener("drain",f),e.removeListener("error",d),e.removeListener("unpipe",c),n.removeListener("end",u),n.removeListener("end",h),n.removeListener("data",p),!o.awaitDrain||e._writableState&&!e._writableState.needDrain||f()}function p(t){l("ondata"),!1===e.write(t)&&(l("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,n.pause())}function d(t){l("onerror",t),y(),e.removeListener("error",d),0===a.listenerCount(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",m),y()}function m(){l("onfinish"),e.removeListener("close",g),y()}function y(){l("unpipe"),n.unpipe(e)}return e.on("drain",f),n.on("data",p),e._events&&e._events.error?i(e._events.error)?e._events.error.unshift(d):e._events.error=[d,e._events.error]:e.on("error",d),e.once("close",g),e.once("finish",m),e.emit("pipe",n),o.flowing||(l("pipe resume"),n.resume()),e},h.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<r;i++)n[i].emit("unpipe",this);return this}return-1===(i=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}(t.pipes,e))||(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},h.prototype.on=function(e,t){var n=c.prototype.on.call(this,e,t);if("data"===e&&!1!==this._readableState.flowing&&this.resume(),"readable"===e&&this.readable){var i=this._readableState;if(!i.readableListening)if(i.readableListening=!0,i.emittedReadable=!1,i.needReadable=!0,i.reading)i.length&&m(this);else{var o=this;r.nextTick(function(){l("readable nexttick read 0"),o.read(0)})}}return n},h.prototype.addListener=h.prototype.on,h.prototype.resume=function(){var e=this._readableState;return e.flowing||(l("resume"),e.flowing=!0,e.reading||(l("resume read 0"),this.read(0)),function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(function(){!function(e,t){t.resumeScheduled=!1,e.emit("resume"),b(e),t.flowing&&!t.reading&&e.read(0)}(e,t)}))}(this,e)),this},h.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this},h.prototype.wrap=function(e){var t=this._readableState,n=!1,r=this;for(var i in e.on("end",function(){if(l("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)}),e.on("data",function(i){l("wrapped data"),t.decoder&&(i=t.decoder.write(i)),i&&(t.objectMode||i.length)&&(r.push(i)||(n=!0,e.pause()))}),e)u.isFunction(e[i])&&u.isUndefined(this[i])&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return function(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n])}(["error","close","destroy","pause","resume"],function(t){e.on(t,r.emit.bind(r,t))}),r._read=function(t){l("wrapped _read",t),n&&(n=!1,e.resume())},r},h._fromList=v},5824:(e,t,n)=>{e.exports=o;var r=n(5778),i=n(5622);function o(e){if(!(this instanceof o))return new o(e);r.call(this,e)}i.inherits=n(6698),i.inherits(o,r),o.prototype._transform=function(e,t,n){n(null,e)}},5880:e=>{"use strict";e.exports=Math.pow},5896:(e,t,n)=>{"use strict";var r=n(5606);function i(e,t){a(e,t),o(e)}function o(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function a(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,s=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return s||c?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(a,this,e)):r.nextTick(a,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?n._writableState?n._writableState.errorEmitted?r.nextTick(o,n):(n._writableState.errorEmitted=!0,r.nextTick(i,n,e)):r.nextTick(i,n,e):t?(r.nextTick(o,n),t(e)):r.nextTick(o,n)}),this)},undestroy:function(){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)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}}},5974:(e,t,n)=>{"use strict";var r=n(8287).Buffer,i=n(5606),o=n(4148),a=n(4442),s=n(8411),c=n(1447),u=n(9681);for(var l in u)t[l]=u[l];function f(e){if("number"!=typeof e||e<t.DEFLATE||e>t.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=e,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}t.NONE=0,t.DEFLATE=1,t.INFLATE=2,t.GZIP=3,t.GUNZIP=4,t.DEFLATERAW=5,t.INFLATERAW=6,t.UNZIP=7,f.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,o(this.init_done,"close before init"),o(this.mode<=t.UNZIP),this.mode===t.DEFLATE||this.mode===t.GZIP||this.mode===t.DEFLATERAW?s.deflateEnd(this.strm):this.mode!==t.INFLATE&&this.mode!==t.GUNZIP&&this.mode!==t.INFLATERAW&&this.mode!==t.UNZIP||c.inflateEnd(this.strm),this.mode=t.NONE,this.dictionary=null)},f.prototype.write=function(e,t,n,r,i,o,a){return this._write(!0,e,t,n,r,i,o,a)},f.prototype.writeSync=function(e,t,n,r,i,o,a){return this._write(!1,e,t,n,r,i,o,a)},f.prototype._write=function(e,n,a,s,c,u,l,f){if(o.equal(arguments.length,8),o(this.init_done,"write before init"),o(this.mode!==t.NONE,"already finalized"),o.equal(!1,this.write_in_progress,"write already in progress"),o.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,o.equal(!1,void 0===n,"must provide flush value"),this.write_in_progress=!0,n!==t.Z_NO_FLUSH&&n!==t.Z_PARTIAL_FLUSH&&n!==t.Z_SYNC_FLUSH&&n!==t.Z_FULL_FLUSH&&n!==t.Z_FINISH&&n!==t.Z_BLOCK)throw new Error("Invalid flush value");if(null==a&&(a=r.alloc(0),c=0,s=0),this.strm.avail_in=c,this.strm.input=a,this.strm.next_in=s,this.strm.avail_out=f,this.strm.output=u,this.strm.next_out=l,this.flush=n,!e)return this._process(),this._checkError()?this._afterSync():void 0;var h=this;return i.nextTick(function(){h._process(),h._after()}),this},f.prototype._afterSync=function(){var e=this.strm.avail_out,t=this.strm.avail_in;return this.write_in_progress=!1,[t,e]},f.prototype._process=function(){var e=null;switch(this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=s.deflate(this.strm,this.flush);break;case t.UNZIP:switch(this.strm.avail_in>0&&(e=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===e)break;if(31!==this.strm.input[e]){this.mode=t.INFLATE;break}if(this.gzip_id_bytes_read=1,e++,1===this.strm.avail_in)break;case 1:if(null===e)break;139===this.strm.input[e]?(this.gzip_id_bytes_read=2,this.mode=t.GUNZIP):this.mode=t.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:for(this.err=c.inflate(this.strm,this.flush),this.err===t.Z_NEED_DICT&&this.dictionary&&(this.err=c.inflateSetDictionary(this.strm,this.dictionary),this.err===t.Z_OK?this.err=c.inflate(this.strm,this.flush):this.err===t.Z_DATA_ERROR&&(this.err=t.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===t.GUNZIP&&this.err===t.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=c.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},f.prototype._checkError=function(){switch(this.err){case t.Z_OK:case t.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===t.Z_FINISH)return this._error("unexpected end of file"),!1;break;case t.Z_STREAM_END:break;case t.Z_NEED_DICT:return null==this.dictionary?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},f.prototype._after=function(){if(this._checkError()){var e=this.strm.avail_out,t=this.strm.avail_in;this.write_in_progress=!1,this.callback(t,e),this.pending_close&&this.close()}},f.prototype._error=function(e){this.strm.msg&&(e=this.strm.msg),this.onerror(e,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},f.prototype.init=function(e,n,r,i,a){o(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),o(e>=8&&e<=15,"invalid windowBits"),o(n>=-1&&n<=9,"invalid compression level"),o(r>=1&&r<=9,"invalid memlevel"),o(i===t.Z_FILTERED||i===t.Z_HUFFMAN_ONLY||i===t.Z_RLE||i===t.Z_FIXED||i===t.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(n,e,r,i,a),this._setDictionary()},f.prototype.params=function(){throw new Error("deflateParams Not supported")},f.prototype.reset=function(){this._reset(),this._setDictionary()},f.prototype._init=function(e,n,r,i,o){switch(this.level=e,this.windowBits=n,this.memLevel=r,this.strategy=i,this.flush=t.Z_NO_FLUSH,this.err=t.Z_OK,this.mode!==t.GZIP&&this.mode!==t.GUNZIP||(this.windowBits+=16),this.mode===t.UNZIP&&(this.windowBits+=32),this.mode!==t.DEFLATERAW&&this.mode!==t.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new a,this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=s.deflateInit2(this.strm,this.level,t.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:case t.UNZIP:this.err=c.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==t.Z_OK&&this._error("Init error"),this.dictionary=o,this.write_in_progress=!1,this.init_done=!0},f.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:this.err=s.deflateSetDictionary(this.strm,this.dictionary)}this.err!==t.Z_OK&&this._error("Failed to set dictionary")}},f.prototype._reset=function(){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:case t.GZIP:this.err=s.deflateReset(this.strm);break;case t.INFLATE:case t.INFLATERAW:case t.GUNZIP:this.err=c.inflateReset(this.strm)}this.err!==t.Z_OK&&this._error("Failed to reset stream")},t.Zlib=f},6048:e=>{"use strict";var t={};function n(e,n,r){r||(r=Error);var i=function(e){var t,r;function i(t,r,i){return e.call(this,function(e,t,r){return"string"==typeof n?n:n(e,t,r)}(t,r,i))||this}return r=e,(t=i).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,i}(r);i.prototype.name=r.name,i.prototype.code=e,t[e]=i}function r(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(e){return String(e)}),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}n("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(e,t,n){var i,o,a,s,c;if("string"==typeof t&&(o="not ",t.substr(0,4)===o)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-9,n)===t}(e," argument"))a="The ".concat(e," ").concat(i," ").concat(r(t,"type"));else{var u=("number"!=typeof c&&(c=0),c+1>(s=e).length||-1===s.indexOf(".",c)?"argument":"property");a='The "'.concat(e,'" ').concat(u," ").concat(i," ").concat(r(t,"type"))}return a+". Received type ".concat(typeof n)},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.F=t},6060:()=>{},6188:e=>{"use strict";e.exports=Math.max},6238:(e,t,n)=>{"use strict";var r=n(6048).F.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,n,o){if("function"==typeof n)return e(t,null,n);n||(n={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r)}}}(o||i);var a=n.readable||!1!==n.readable&&t.readable,s=n.writable||!1!==n.writable&&t.writable,c=function(){t.writable||l()},u=t._writableState&&t._writableState.finished,l=function(){s=!1,u=!0,a||o.call(t)},f=t._readableState&&t._readableState.endEmitted,h=function(){a=!1,f=!0,s||o.call(t)},p=function(e){o.call(t,e)},d=function(){var e;return a&&!f?(t._readableState&&t._readableState.ended||(e=new r),o.call(t,e)):s&&!u?(t._writableState&&t._writableState.ended||(e=new r),o.call(t,e)):void 0},g=function(){t.req.on("finish",l)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",l),t.on("abort",d),t.req?g():t.on("request",g)):s&&!t._writableState&&(t.on("end",c),t.on("close",c)),t.on("end",h),t.on("finish",l),!1!==n.error&&t.on("error",p),t.on("close",d),function(){t.removeListener("complete",l),t.removeListener("abort",d),t.removeListener("request",g),t.req&&t.req.removeListener("finish",l),t.removeListener("end",c),t.removeListener("close",c),t.removeListener("finish",l),t.removeListener("end",h),t.removeListener("error",p),t.removeListener("close",d)}}},6503:e=>{e.exports=function(e){return null!==e&&("object"==typeof e||"function"==typeof e)}},6549:e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},6556:(e,t,n)=>{"use strict";var r=n(453),i=n(3126),o=i([r("%String.prototype.indexOf%")]);e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?i([n]):n}},6576:(e,t,n)=>{"use strict";var r=n(9394),i=n(8452);e.exports=function(){var e=r();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},6578:e=>{"use strict";e.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},6585:e=>{var t=1e3,n=60*t,r=60*n,i=24*r,o=7*i;function a(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,s){s=s||{};var c,u,l=typeof e;if("string"===l&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(a){var s=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return s*o;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*r;case"minutes":case"minute":case"mins":case"min":case"m":return s*n;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(e);if("number"===l&&isFinite(e))return s.long?(c=e,(u=Math.abs(c))>=i?a(c,u,i,"day"):u>=r?a(c,u,r,"hour"):u>=n?a(c,u,n,"minute"):u>=t?a(c,u,t,"second"):c+" ms"):function(e){var o=Math.abs(e);return o>=i?Math.round(e/i)+"d":o>=r?Math.round(e/r)+"h":o>=n?Math.round(e/n)+"m":o>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},6587:e=>{e.exports=function e(t,n){if(t&&n)return e(t)(n);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(e){r[e]=t[e]}),r;function r(){for(var e=new Array(arguments.length),n=0;n<e.length;n++)e[n]=arguments[n];var r=t.apply(this,e),i=e[e.length-1];return"function"==typeof r&&r!==i&&Object.keys(i).forEach(function(e){r[e]=i[e]}),r}}},6642:(e,t,n)=>{"use strict";var r=n(3003);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}},6698:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},6708:(e,t,n)=>{"use strict";var r,i=n(5606);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t){var n=e.entry;for(e.entry=null;n;){var r=n.callback;t.pendingcb--,r(undefined),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=S,S.WritableState=x;var a,s={deprecate:n(4643)},c=n(345),u=n(8287).Buffer,l=(void 0!==n.g?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},f=n(5896),h=n(5291).getHighWaterMark,p=n(6048).F,d=p.ERR_INVALID_ARG_TYPE,g=p.ERR_METHOD_NOT_IMPLEMENTED,m=p.ERR_MULTIPLE_CALLBACK,y=p.ERR_STREAM_CANNOT_PIPE,b=p.ERR_STREAM_DESTROYED,v=p.ERR_STREAM_NULL_VALUES,w=p.ERR_STREAM_WRITE_AFTER_END,_=p.ERR_UNKNOWN_ENCODING,E=f.errorOrDestroy;function k(){}function x(e,t,a){r=r||n(5382),e=e||{},"boolean"!=typeof a&&(a=t instanceof r),this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=h(this,e,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,o=n.writecb;if("function"!=typeof o)throw new m;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,o){--t.pendingcb,n?(i.nextTick(o,r),i.nextTick(I,e,t),e._writableState.errorEmitted=!0,E(e,r)):(o(r),e._writableState.errorEmitted=!0,E(e,r),I(e,t))}(e,n,r,t,o);else{var a=j(n)||e.destroyed;a||n.corked||n.bufferProcessing||!n.bufferedRequest||R(e,n),r?i.nextTick(A,e,n,a,o):A(e,n,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function S(e){var t=this instanceof(r=r||n(5382));if(!t&&!a.call(S,this))return new S(e);this._writableState=new x(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),c.call(this)}function O(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new b("write")):n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function A(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),I(e,t)}function R(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),a=t.corkedRequestsFree;a.entry=n;for(var s=0,c=!0;n;)i[s]=n,n.isBuf||(c=!1),n=n.next,s+=1;i.allBuffers=c,O(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,l=n.encoding,f=n.callback;if(O(e,t,!1,t.objectMode?1:u.length,u,l,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function j(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function T(e,t){e._final(function(n){t.pendingcb--,n&&E(e,n),t.prefinished=!0,e.emit("prefinish"),I(e,t)})}function I(e,t){var n=j(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,i.nextTick(T,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}n(6698)(S,c),x.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(x.prototype,"buffer",{get:s.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(a=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(e){return!!a.call(this,e)||this===S&&e&&e._writableState instanceof x}})):a=function(e){return e instanceof this},S.prototype.pipe=function(){E(this,new y)},S.prototype.write=function(e,t,n){var r,o=this._writableState,a=!1,s=!o.objectMode&&(r=e,u.isBuffer(r)||r instanceof l);return s&&!u.isBuffer(e)&&(e=function(e){return u.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=k),o.ending?function(e,t){var n=new w;E(e,n),i.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var o;return null===n?o=new v:"string"==typeof n||t.objectMode||(o=new d("chunk",["string","Buffer"],n)),!o||(E(e,o),i.nextTick(r,o),!1)}(this,o,e,n))&&(o.pendingcb++,a=function(e,t,n,r,i,o){if(!n){var a=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=u.from(t,n)),t}(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else O(e,t,!1,s,r,i,o);return c}(this,o,s,e,t,n)),a},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||R(this,e))},S.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new _(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(e,t,n){n(new g("_write()"))},S.prototype._writev=null,S.prototype.end=function(e,t,n){var r=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,I(e,t),n&&(t.finished?i.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,r,n),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),S.prototype.destroy=f.destroy,S.prototype._undestroy=f.undestroy,S.prototype._destroy=function(e,t){t(e)}},6743:(e,t,n)=>{"use strict";var r=n(9353);e.exports=Function.prototype.bind||r},6745:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},6788:e=>{e.exports=function(e,t){return parseInt(e.toString(),t||8)}},6789:()=>{},6841:(e,t,n)=>{var r=n(5606),i=n(8287).Buffer,o=n(537),a=n(1831).Z$;function s(e){a.call(this,"string"==typeof e?e:""),this._db=void 0,this._operations=[]}o.inherits(s,a),s.prototype.setDb=function(e){this._db=e,this._operations.forEach(function(t){e[t.method].apply(e,t.args)})},s.prototype._open=function(e,t){return r.nextTick(t)},s.prototype._operation=function(e,t){if(this._db)return this._db[e].apply(this._db,t);this._operations.push({method:e,args:t})},"put get del batch approximateSize".split(" ").forEach(function(e){s.prototype["_"+e]=function(){this._operation(e,arguments)}}),s.prototype._isBuffer=function(e){return i.isBuffer(e)},s.prototype._iterator=function(){throw new TypeError("not implemented")},e.exports=s},6889:()=>{},6897:(e,t,n)=>{"use strict";var r=n(453),i=n(41),o=n(592)(),a=n(5795),s=n(9675),c=r("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||c(t)!==t)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,u=!0;if("length"in e&&a){var l=a(e,"length");l&&!l.configurable&&(r=!1),l&&!l.writable&&(u=!1)}return(r||u||!n)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},7007:e=>{"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise(function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}g(e,t,o,{once:!0}),"error"!==t&&function(e,t){"function"==typeof e.on&&g(e,"error",t,{once:!0})}(e,i)})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function u(e,t,n,r){var i,o,a,u;if(s(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=c(e))>0&&a.length>i&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,u=l,console&&console.warn&&console.warn(u)}return e}function l(){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 f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=l.bind(r);return i.listener=n,r.wrapFn=i,i}function h(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):d(i,i.length)}function p(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function d(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function g(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function i(o){r.once&&e.removeEventListener(t,i),n(o)})}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.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},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return c(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)r(c,this,t);else{var u=c.length,l=d(c,u);for(n=0;n<u;++n)r(l[n],this,t)}return!0},o.prototype.addListener=function(e,t){return u(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return u(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,f(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,f(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,a;if(s(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return h(this,e,!0)},o.prototype.rawListeners=function(e){return h(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},7119:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},7176:(e,t,n)=>{"use strict";var r,i=n(3126),o=n(5795);try{r=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!r&&o&&o(Object.prototype,"__proto__"),s=Object,c=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?i([a.get]):"function"==typeof c&&function(e){return c(null==e?e:s(e))}},7212:(e,t,n)=>{var r=n(1779);e.exports=function(e){var t=(e=r(e)).reverse,n=e.max||e.end,i=e.min||e.start,o=[i,n];return null!=i&&null!=n&&o.sort(),t&&(o=o.reverse()),e.start=o[0],e.end=o[1],delete e.min,delete e.max,e}},7237:e=>{e.exports=function(e){return null!==e&&("object"==typeof e||"function"==typeof e)}},7244:(e,t,n)=>{"use strict";var r=n(9092)(),i=n(6556)("Object.prototype.toString"),o=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},a=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"length"in e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"callee"in e&&"[object Function]"===i(e.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=a,e.exports=s?o:a},7274:(e,t,n)=>{!function(){"use strict";var t,r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=n(7969),a=n(3819),s=!{toString:null}.propertyIsEnumerable("toString"),c=function(){}.propertyIsEnumerable("prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];t=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===i.call(e),l=a(e),f=[];if(!t&&!n&&!l)throw new TypeError("Object.keys called on a non-object");if(l)o(e,function(e){f.push(e)});else{var h,p=c&&n;for(h in e)p&&"prototype"===h||!r.call(e,h)||f.push(h)}if(s){var d=e.constructor,g=d&&d.prototype===e;o(u,function(t){g&&"constructor"===t||!r.call(e,t)||f.push(t)})}return f},e.exports=t}()},7293:e=>{"use strict";e.exports=function(e,t){var n,r,i,o,a,s,c,u,l,f,h,p,d,g,m,y,b,v,w,_,E,k,x,S,O;n=e.state,r=e.next_in,S=e.input,i=r+(e.avail_in-5),o=e.next_out,O=e.output,a=o-(t-e.avail_out),s=o+(e.avail_out-257),c=n.dmax,u=n.wsize,l=n.whave,f=n.wnext,h=n.window,p=n.hold,d=n.bits,g=n.lencode,m=n.distcode,y=(1<<n.lenbits)-1,b=(1<<n.distbits)-1;e:do{d<15&&(p+=S[r++]<<d,d+=8,p+=S[r++]<<d,d+=8),v=g[p&y];t:for(;;){if(p>>>=w=v>>>24,d-=w,0==(w=v>>>16&255))O[o++]=65535&v;else{if(!(16&w)){if(64&w){if(32&w){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}v=g[(65535&v)+(p&(1<<w)-1)];continue t}for(_=65535&v,(w&=15)&&(d<w&&(p+=S[r++]<<d,d+=8),_+=p&(1<<w)-1,p>>>=w,d-=w),d<15&&(p+=S[r++]<<d,d+=8,p+=S[r++]<<d,d+=8),v=m[p&b];;){if(p>>>=w=v>>>24,d-=w,16&(w=v>>>16&255)){if(E=65535&v,d<(w&=15)&&(p+=S[r++]<<d,(d+=8)<w&&(p+=S[r++]<<d,d+=8)),(E+=p&(1<<w)-1)>c){e.msg="invalid distance too far back",n.mode=30;break e}if(p>>>=w,d-=w,E>(w=o-a)){if((w=E-w)>l&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(k=0,x=h,0===f){if(k+=u-w,w<_){_-=w;do{O[o++]=h[k++]}while(--w);k=o-E,x=O}}else if(f<w){if(k+=u+f-w,(w-=f)<_){_-=w;do{O[o++]=h[k++]}while(--w);if(k=0,f<_){_-=w=f;do{O[o++]=h[k++]}while(--w);k=o-E,x=O}}}else if(k+=f-w,w<_){_-=w;do{O[o++]=h[k++]}while(--w);k=o-E,x=O}for(;_>2;)O[o++]=x[k++],O[o++]=x[k++],O[o++]=x[k++],_-=3;_&&(O[o++]=x[k++],_>1&&(O[o++]=x[k++]))}else{k=o-E;do{O[o++]=O[k++],O[o++]=O[k++],O[o++]=O[k++],_-=3}while(_>2);_&&(O[o++]=O[k++],_>1&&(O[o++]=O[k++]))}break}if(64&w){e.msg="invalid distance code",n.mode=30;break e}v=m[(65535&v)+(p&(1<<w)-1)]}}break}}while(r<i&&o<s);r-=_=d>>3,p&=(1<<(d-=_<<3))-1,e.next_in=r,e.next_out=o,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=o<s?s-o+257:257-(o-s),n.hold=p,n.bits=d}},7295:(e,t,n)=>{var r=n(5606);e.exports=c;var i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t},o=n(5622);o.inherits=n(6698);var a=n(5821),s=n(5405);function c(e){if(!(this instanceof c))return new c(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",u)}function u(){this.allowHalfOpen||this._writableState.ended||r.nextTick(this.end.bind(this))}o.inherits(c,a),function(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n])}(i(s.prototype),function(e){c.prototype[e]||(c.prototype[e]=s.prototype[e])})},7330:e=>{e.exports=function(e){return null!==e&&("object"==typeof e||"function"==typeof e)}},7349:(e,t,n)=>{var r=n(5606);e.exports=f;var i=n(6745),o=n(8287).Buffer;f.ReadableState=l;var a=n(7007).EventEmitter;a.listenerCount||(a.listenerCount=function(e,t){return e.listeners(t).length});var s,c=n(8310),u=n(5622);function l(e,t){var r=(e=e||{}).highWaterMark;this.highWaterMark=r||0===r?r:16384,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=!1,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.calledRead=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!e.objectMode,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=n(9234).I),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function f(e){if(!(this instanceof f))return new f(e);this._readableState=new l(e,this),this.readable=!0,c.call(this)}function h(e,t,n,i,a){var s=function(e,t){var n=null;return o.isBuffer(t)||"string"==typeof t||null==t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(t,n);if(s)e.emit("error",s);else if(null==n)t.reading=!1,t.ended||function(e,t){if(t.decoder&&!t.ended){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.length>0?g(e):_(e)}(e,t);else if(t.objectMode||n&&n.length>0)if(t.ended&&!a){var c=new Error("stream.push() after EOF");e.emit("error",c)}else t.endEmitted&&a?(c=new Error("stream.unshift() after end event"),e.emit("error",c)):(!t.decoder||a||i||(n=t.decoder.write(n)),t.length+=t.objectMode?1:n.length,a?t.buffer.unshift(n):(t.reading=!1,t.buffer.push(n)),t.needReadable&&g(e),function(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(function(){!function(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}(e,t)}))}(e,t));else a||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}u.inherits=n(6698),u.inherits(f,c),f.prototype.push=function(e,t){var n=this._readableState;return"string"!=typeof e||n.objectMode||(t=t||n.defaultEncoding)!==n.encoding&&(e=new o(e,t),t=""),h(this,n,e,t,!1)},f.prototype.unshift=function(e){return h(this,this._readableState,e,"",!0)},f.prototype.setEncoding=function(e){s||(s=n(9234).I),this._readableState.decoder=new s(e),this._readableState.encoding=e};var p=8388608;function d(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:null===e||isNaN(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:e<=0?0:(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>=p)e=p;else{e--;for(var t=1;t<32;t<<=1)e|=e>>t;e++}return e}(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function g(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,t.sync?r.nextTick(function(){m(e)}):m(e))}function m(e){e.emit("readable")}function y(e){var t,n=e._readableState;function r(e,r,i){!1===e.write(t)&&n.awaitDrain++}for(n.awaitDrain=0;n.pipesCount&&null!==(t=e.read());)if(1===n.pipesCount?r(n.pipes):E(n.pipes,r),e.emit("data",t),n.awaitDrain>0)return;if(0===n.pipesCount)return n.flowing=!1,void(a.listenerCount(e,"data")>0&&v(e));n.ranOut=!0}function b(){this._readableState.ranOut&&(this._readableState.ranOut=!1,y(this))}function v(e,t){if(e._readableState.flowing)throw new Error("Cannot switch to old mode now.");var n=t||!1,i=!1;e.readable=!0,e.pipe=c.prototype.pipe,e.on=e.addListener=c.prototype.on,e.on("readable",function(){var t;for(i=!0;!n&&null!==(t=e.read());)e.emit("data",t);null===t&&(i=!1,e._readableState.needReadable=!0)}),e.pause=function(){n=!0,this.emit("pause")},e.resume=function(){n=!1,i?r.nextTick(function(){e.emit("readable")}):this.read(0),this.emit("resume")},e.emit("readable")}function w(e,t){var n,r=t.buffer,i=t.length,a=!!t.decoder,s=!!t.objectMode;if(0===r.length)return null;if(0===i)n=null;else if(s)n=r.shift();else if(!e||e>=i)n=a?r.join(""):o.concat(r,i),r.length=0;else if(e<r[0].length)n=(f=r[0]).slice(0,e),r[0]=f.slice(e);else if(e===r[0].length)n=r.shift();else{n=a?"":new o(e);for(var c=0,u=0,l=r.length;u<l&&c<e;u++){var f=r[0],h=Math.min(e-c,f.length);a?n+=f.slice(0,h):f.copy(n,c,0,h),h<f.length?r[0]=f.slice(h):r.shift(),c+=h}}return n}function _(e){var t=e._readableState;if(t.length>0)throw new Error("endReadable called on non-empty stream");!t.endEmitted&&t.calledRead&&(t.ended=!0,r.nextTick(function(){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}))}function E(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n)}f.prototype.read=function(e){var t=this._readableState;t.calledRead=!0;var n,r=e;if(("number"!=typeof e||e>0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return g(this),null;if(0===(e=d(e,t))&&t.ended)return n=null,t.length>0&&t.decoder&&(n=w(e,t),t.length-=n.length),0===t.length&&_(this),n;var i=t.needReadable;return t.length-e<=t.highWaterMark&&(i=!0),(t.ended||t.reading)&&(i=!1),i&&(t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1),i&&!t.reading&&(e=d(r,t)),null===(n=e>0?w(e,t):null)&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),t.ended&&!t.endEmitted&&0===t.length&&_(this),n},f.prototype._read=function(e){this.emit("error",new Error("not implemented"))},f.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1;var s=t&&!1===t.end||e===r.stdout||e===r.stderr?f:u;function c(e){e===n&&f()}function u(){e.end()}o.endEmitted?r.nextTick(s):n.once("end",s),e.on("unpipe",c);var l=function(e){return function(){var t=e._readableState;t.awaitDrain--,0===t.awaitDrain&&y(e)}}(n);function f(){e.removeListener("close",p),e.removeListener("finish",d),e.removeListener("drain",l),e.removeListener("error",h),e.removeListener("unpipe",c),n.removeListener("end",u),n.removeListener("end",f),e._writableState&&!e._writableState.needDrain||l()}function h(t){g(),e.removeListener("error",h),0===a.listenerCount(e,"error")&&e.emit("error",t)}function p(){e.removeListener("finish",d),g()}function d(){e.removeListener("close",p),g()}function g(){n.unpipe(e)}return e.on("drain",l),e._events&&e._events.error?i(e._events.error)?e._events.error.unshift(h):e._events.error=[h,e._events.error]:e.on("error",h),e.once("close",p),e.once("finish",d),e.emit("pipe",n),o.flowing||(this.on("readable",b),o.flowing=!0,r.nextTick(function(){y(n)})),e},f.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,this.removeListener("readable",b),t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,this.removeListener("readable",b),t.flowing=!1;for(var i=0;i<r;i++)n[i].emit("unpipe",this);return this}return-1===(i=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}(t.pipes,e))||(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},f.prototype.on=function(e,t){var n=c.prototype.on.call(this,e,t);if("data"!==e||this._readableState.flowing||v(this),"readable"===e&&this.readable){var r=this._readableState;r.readableListening||(r.readableListening=!0,r.emittedReadable=!1,r.needReadable=!0,r.reading?r.length&&g(this):this.read(0))}return n},f.prototype.addListener=f.prototype.on,f.prototype.resume=function(){v(this),this.read(0),this.emit("resume")},f.prototype.pause=function(){v(this,!0),this.emit("pause")},f.prototype.wrap=function(e){var t=this._readableState,n=!1,r=this;for(var i in e.on("end",function(){if(t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)}),e.on("data",function(i){t.decoder&&(i=t.decoder.write(i)),t.objectMode&&null==i||(t.objectMode||i&&i.length)&&(r.push(i)||(n=!0,e.pause()))}),e)"function"==typeof e[i]&&void 0===this[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return E(["error","close","destroy","pause","resume"],function(t){e.on(t,r.emit.bind(r,t))}),r._read=function(t){n&&(n=!1,e.resume())},r},f._fromList=w},7353:(e,t,n)=>{"use strict";var r=n(3225);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(i,this,e)):r.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?n._writableState?n._writableState.errorEmitted||(n._writableState.errorEmitted=!0,r.nextTick(i,n,e)):r.nextTick(i,n,e):t&&t(e)}),this)},undestroy:function(){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)}}},7432:(e,t,n)=>{var r=n(8287).Buffer,i=n(5606),o=n(2951),a=n(4675),s=n(4123),c=n(537),u=n(3519),l=new r(0),f={encode:function(e){return"string"==typeof e?e=new r(e):e},decode:function(e){return r.isBuffer(e)?e:new r(e)},buffer:!0,type:"raw"},h=function(){},p=function(e){return e=e.toString(16),"00000000".slice(0,-e.length)+e};e.exports=function(e,t){t||(t={});var n={},d=t.blockSize||65536,g=t.batch||100,m=new r(d);e.put("\0","ignore",h);var y={},b=function(e,t){if(!(this instanceof b))return new b(e,t);t||(t={}),this.name=e,this.blocks=[],this.batch=[],this.bytesWritten=0,this.truncate=!t.append,this.append=t.append,this._shouldInitAppend=this.append&&void 0===t.start,this._destroyed=!1,this._init(t.start||0),o.call(this)};c.inherits(b,o),b.prototype._init=function(e){this.blockIndex=e/d|0,this.blockOffset=e-this.blockIndex*d,this.blockLength=this.blockOffset},b.prototype._flush=function(t){if(!this.batch.length)return t();var n=this.batch[this.batch.length-1].key,r=this.batch;if(this.batch=[],!this.truncate)return e.batch(r,t);this.truncate=!1,this._truncate(r,n,t)},b.prototype._truncate=function(t,n,r){r=u(r);var i=[],o=e.createKeyStream({start:n,end:this.name+"ÿÿ"});o.on("error",r),o.on("data",function(e){i.push({type:"del",key:e})}),o.on("end",function(){i.push.apply(i,t),e.batch(i,r)})},b.prototype._writeBlock=function(t){var n=1===this.blocks.length?this.blocks[0]:r.concat(this.blocks,this.blockLength-this.blockOffset),i=this.blockIndex,o=this.blockOffset,a=this;this.blockOffset=0,this.blockLength=0,this.blockIndex++,this.blocks=[];var s=this.name+"ÿ"+p(i),c=function(e,t,n){return e.length&&a.batch.push({type:"put",key:s,value:e,valueEncoding:f}),!t&&a.batch.length<g?n():a._flush(n)};return!o&&n.length===d||!o&&!this.append?c(n,!1,t):void function(t,n,i,o,a){var s=function(){--y[t].locks||delete y[t]},c=function(e){if(e.locks++,!e.block&&!n)return e.block=i,void a(null,e.block,s);var t,c,u;e.block||(e.block=new r(d)),e.block.length<n+i.length&&(e.block=(t=e.block,c=n+i.length,u=new r(c),t.copy(u),u)),i.copy(e.block,n),!o&&n+i.length<e.block.length&&(e.block=e.block.slice(0,n+i.length)),a(null,e.block,s)};if(y[t])return c(y[t]);e.get(t,{valueEncoding:f},function(e,n){if(e&&!e.notFound)return a(e);y[t]||(y[t]={locks:0,block:n}),c(y[t])})}(s,o,n,this.append,function(e,n,r){if(e)return t(e);c(n,!0,function(e){r(),t(e)})})},b.prototype._initAppend=function(e,t,r){var i=this;this._shouldInitAppend=!1,n.size(this.name,function(n,o){if(n)return r(n);i._init(o),i._write(e,t,r)})},b.prototype._write=function(e,t,n){if(!e.length||this._destroyed)return n();if(this._shouldInitAppend)return this._initAppend(e,t,n);var r,i=this,o=d-this.blockLength,a=function(e){return e?n(e):r?i._write(r,t,n):void n()};if(e.length>o&&(r=e.slice(o),e=e.slice(0,o)),this.bytesWritten+=e.length,this.blockLength+=e.length,this.blocks.push(e),e.length<o)return a();this._writeBlock(a)},b.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,i.nextTick(this.emit.bind(this,"close")))},b.prototype.end=function(e){var t=this,n=arguments;e&&"function"!=typeof e&&(this.write(e),e=l),this.write(l,function(){t._writeBlock(function(e){if(e)return t.emit("error",e);t._flush(function(e){if(e)return t.emit("error",e);o.prototype.end.apply(t,n)})})})};var v=function(t,n){n||(n={});var r=this,i=n.start||0,o=i/d|0,s=i-o*d,c=t+"ÿ"+p(o);this.name=t,this._missing=("number"==typeof n.end?n.end:1/0)-i+1,this._paused=!1,this._destroyed=!1,this._reader=e.createReadStream({start:c,end:t+"ÿÿ",valueEncoding:f});var u=function(e){return c=t+"ÿ"+p(++o),!(!r._missing||(!s||(e=e.slice(s),s=0,e.length))&&(e.length>r._missing&&(e=e.slice(0,r._missing)),r._missing-=e.length,r._pause(!r.push(e)),!r._missing))};this._reader.on("data",function(e){for(;e.key>c;)if(!u(m))return;u(e.value)}),this._reader.on("error",function(e){r.emit("error",e)}),this._reader.on("end",function(){r.push(null)}),a.call(this)};return c.inherits(v,a),v.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._reader.destroy(),i.nextTick(this.emit.bind(this,"close")))},v.prototype._pause=function(e){this._paused!==e&&(this._paused=e,this._paused?this._reader.pause():this._reader.resume())},v.prototype._read=function(){this._pause(!1)},n.remove=function(t,n){n=u(n||h);var r=[],i=e.createKeyStream({start:t+"ÿ",end:t+"ÿÿ"});i.on("error",n),i.on("data",function(e){r.push({type:"del",key:e})}),i.on("end",function(){e.batch(r,n)})},n.size=function(t,n){s.last(e,{start:t+"ÿ",end:t+"ÿÿ",valueEncoding:f},function(e,r,i){return e&&"range not found"===e.message?n(null,0):e?n(e):r.slice(0,t.length+1)!==t+"ÿ"?n(null,0):void n(null,parseInt(r.toString().slice(t.length+1),16)*d+i.length)})},n.write=function(e,t,r,i){if("function"==typeof r)return n.write(e,t,null,r);r||(r={}),i||(i=h);var o=n.createWriteStream(e,r);o.on("error",i),o.on("finish",function(){i()}),o.write(t),o.end()},n.read=function(e,t,i){if("function"==typeof t)return n.read(e,null,t);t||(t={});var o=n.createReadStream(e,t),a=[];o.on("error",i),o.on("data",function(e){a.push(e)}),o.on("end",function(){i(null,1===a.length?a[0]:r.concat(a))})},n.createReadStream=function(e,t){return new v(e,t)},n.createWriteStream=function(e,t){return new b(e,t)},n}},7520:(e,t,n)=>{var r=n(8287).Buffer,i=n(3050).Writable,o=n(6698),a=n(2746);if("undefined"==typeof Uint8Array)var s=n(9656).SE;else s=Uint8Array;function c(e,t){if(!(this instanceof c))return new c(e,t);"function"==typeof e&&(t=e,e={}),e||(e={});var n=e.encoding,r=!1;n?"u8"!==(n=String(n).toLowerCase())&&"uint8"!==n||(n="uint8array"):r=!0,i.call(this,{objectMode:!0}),this.encoding=n,this.shouldInferEncoding=r,t&&this.on("finish",function(){t(this.getBody())}),this.body=[]}function u(e){return"string"==typeof e||(t=e,/Array\]$/.test(Object.prototype.toString.call(t)))||e&&"function"==typeof e.subarray;var t}e.exports=c,o(c,i),c.prototype._write=function(e,t,n){this.body.push(e),n()},c.prototype.inferEncoding=function(e){var t=void 0===e?this.body[0]:e;return r.isBuffer(t)?"buffer":"undefined"!=typeof Uint8Array&&t instanceof Uint8Array?"uint8array":Array.isArray(t)?"array":"string"==typeof t?"string":"[object Object]"===Object.prototype.toString.call(t)?"object":"buffer"},c.prototype.getBody=function(){return this.encoding||0!==this.body.length?(this.shouldInferEncoding&&(this.encoding=this.inferEncoding()),"array"===this.encoding?function(e){for(var t=[],n=0;n<e.length;n++)t.push.apply(t,e[n]);return t}(this.body):"string"===this.encoding?function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];"string"==typeof i||r.isBuffer(i)?t.push(i):u(i)?t.push(a(i)):t.push(a(String(i)))}return t=r.isBuffer(e[0])?(t=r.concat(t)).toString("utf8"):t.join("")}(this.body):"buffer"===this.encoding?function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];r.isBuffer(i)?t.push(i):u(i)?t.push(a(i)):t.push(a(String(i)))}return r.concat(t)}(this.body):"uint8array"===this.encoding?function(e){for(var t=0,n=0;n<e.length;n++)"string"==typeof e[n]&&(e[n]=a(e[n])),t+=e[n].length;for(var r=new s(t),i=(n=0,0);n<e.length;n++)for(var o=e[n],c=0;c<o.length;c++)r[i++]=o[c];return r}(this.body):this.body):[]},Array.isArray},7526:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,o=s(e),a=o[0],c=o[1],u=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,c)),l=0,f=c>0?a-4:a;for(n=0;n<f;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[l++]=t>>16&255,u[l++]=t>>8&255,u[l++]=255&t;return 2===c&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[l++]=255&t),1===c&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=16383,s=0,c=r-i;s<c;s+=a)o.push(u(e,s,s+a>c?c:s+a));return 1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=o[a],r[o.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function u(e,t,n){for(var r,i=[],o=t;o<n;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(c(r));return i.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},7589:(e,t,n)=>{!function(){"use strict";var t,r=Object.prototype.hasOwnProperty,i=n(9661),o=n(7593),a=!{toString:null}.propertyIsEnumerable("toString"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];t=function(e){if(!i.object(e)&&!i.array(e))throw new TypeError("Object.keys called on a non-object");var t,n=[];for(t in e)r.call(e,t)&&n.push(t);return a&&o(s,function(t){r.call(e,t)&&n.push(t)}),n},e.exports=t}()},7593:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString;e.exports=function(e,r,i){if("[object Function]"!==n.call(r))throw new TypeError("iterator must be a function");var o=e.length;if(o===+o)for(var a=0;a<o;a++)r.call(i,e[a],a,e);else for(var s in e)t.call(e,s)&&r.call(i,e[s],s,e)}},7650:(e,t,n)=>{"use strict";var r=n(5386).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=l,this.end=f,t=3;break;default:return this.write=h,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function l(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.I=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=a(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||-2===i?0:(i=a(t[r]))>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||-2===i?0:(i=a(t[r]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},7653:(e,t,n)=>{"use strict";var r=n(8452),i=n(487),o=n(9211),a=n(9394),s=n(6576),c=i(a(),Object);r(c,{getPolyfill:a,implementation:o,shim:s}),e.exports=c},7684:(e,t,n)=>{var r=n(5606);e.exports=u;var i=n(8287).Buffer;u.WritableState=c;var o=n(5622);o.inherits=n(6698);var a=n(8310);function s(e,t,n){this.chunk=e,this.encoding=t,this.callback=n}function c(e,t){var n=(e=e||{}).highWaterMark;this.highWaterMark=n||0===n?n:16384,this.objectMode=!!e.objectMode,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var i=!1===e.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,i=n.sync,o=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,i,o){n?r.nextTick(function(){o(i)}):o(i),e._writableState.errorEmitted=!0,e.emit("error",i)}(e,0,i,t,o);else{var a=h(0,n);a||n.bufferProcessing||!n.buffer.length||function(e,t){t.bufferProcessing=!0;for(var n=0;n<t.buffer.length;n++){var r=t.buffer[n],i=r.chunk,o=r.encoding,a=r.callback;if(l(e,t,t.objectMode?1:i.length,i,o,a),t.writing){n++;break}}t.bufferProcessing=!1,n<t.buffer.length?t.buffer=t.buffer.slice(n):t.buffer.length=0}(e,n),i?r.nextTick(function(){f(e,n,a,o)}):f(e,n,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.buffer=[],this.errorEmitted=!1}function u(e){var t=n(8166);if(!(this instanceof u||this instanceof t))return new u(e);this._writableState=new c(e,this),this.writable=!0,a.call(this)}function l(e,t,n,r,i,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,e._write(r,i,t.onwrite),t.sync=!1}function f(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),r(),n&&p(e,t)}function h(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function p(e,t){var n=h(0,t);return n&&(t.finished=!0,e.emit("finish")),n}o.inherits(u,a),u.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},u.prototype.write=function(e,t,n){var o=this._writableState,a=!1;return"function"==typeof t&&(n=t,t=null),i.isBuffer(e)?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=function(){}),o.ended?function(e,t,n){var i=new Error("write after end");e.emit("error",i),r.nextTick(function(){n(i)})}(this,0,n):function(e,t,n,o){var a=!0;if(!i.isBuffer(n)&&"string"!=typeof n&&null!=n&&!t.objectMode){var s=new TypeError("Invalid non-string/buffer chunk");e.emit("error",s),r.nextTick(function(){o(s)}),a=!1}return a}(this,o,e,n)&&(a=function(e,t,n,r,o){n=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=new i(t,n)),t}(t,n,r),i.isBuffer(n)&&(r="buffer");var a=t.objectMode?1:n.length;t.length+=a;var c=t.length<t.highWaterMark;return c||(t.needDrain=!0),t.writing?t.buffer.push(new s(n,r,o)):l(e,t,a,n,r,o),c}(this,o,e,t,n)),a},u.prototype._write=function(e,t,n){n(new Error("not implemented"))},u.prototype.end=function(e,t,n){var i=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),i.ending||i.finished||function(e,t,n){t.ending=!0,p(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n)),t.ended=!0}(this,i,n)}},7713:(e,t,n)=>{var r=n(2963),i=n(9043),o=n(1891),a=i("level-filesystem",{db:r});e.exports=o(a)},7720:(e,t,n)=>{"use strict";var r=n(4765),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n},c=1024;e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],s=Object.keys(a),c=0;c<s.length;++c){var u=s[c],l=a[u];"object"==typeof l&&null!==l&&-1===n.indexOf(l)&&(t.push({obj:a,prop:u}),n.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,i,o){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var u="",l=0;l<s.length;l+=c){for(var f=s.length>=c?s.slice(l,l+c):s,h=[],p=0;p<f.length;++p){var d=f.charCodeAt(p);45===d||46===d||95===d||126===d||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||o===r.RFC1738&&(40===d||41===d)?h[h.length]=f.charAt(p):d<128?h[h.length]=a[d]:d<2048?h[h.length]=a[192|d>>6]+a[128|63&d]:d<55296||d>=57344?h[h.length]=a[224|d>>12]+a[128|d>>6&63]+a[128|63&d]:(p+=1,d=65536+((1023&d)<<10|1023&f.charCodeAt(p)),h[h.length]=a[240|d>>18]+a[128|d>>12&63]+a[128|d>>6&63]+a[128|63&d])}u+=h.join("")}return u},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n&&"function"!=typeof n){if(o(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return o(t)&&!o(n)&&(a=s(t,r)),o(t)&&o(n)?(n.forEach(function(n,o){if(i.call(t,o)){var a=t[o];a&&"object"==typeof a&&n&&"object"==typeof n?t[o]=e(a,n,r):t.push(n)}else t[o]=n}),t):Object.keys(n).reduce(function(t,o){var a=n[o];return i.call(t,o)?t[o]=e(t[o],a,r):t[o]=a,t},a)}}},7758:(e,t,n)=>{"use strict";var r,i=n(6048).F,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function c(e){e()}function u(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var l,f=function(e){return e.length?"function"!=typeof e[e.length-1]?s:e.pop():s}(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new o("streams");var h=t.map(function(e,i){var o=i<t.length-1;return function(e,t,i,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var s=!1;e.on("close",function(){s=!0}),void 0===r&&(r=n(6238)),r(e,{readable:t,writable:i},function(e){if(e)return o(e);s=!0,o()});var c=!1;return function(t){if(!s&&!c)return c=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void o(t||new a("pipe"))}}(e,o,i>0,function(e){l||(l=e),e&&h.forEach(c),o||(h.forEach(c),f(l))})});return t.reduce(u)}},7805:(e,t,n)=>{var r=n(519).create,i=r("LevelUPError"),o=r("NotFoundError",i);o.prototype.notFound=!0,o.prototype.status=404,e.exports={LevelUPError:i,InitializationError:r("InitializationError",i),OpenError:r("OpenError",i),ReadError:r("ReadError",i),WriteError:r("WriteError",i),NotFoundError:o,EncodingError:r("EncodingError",i)}},7833:(e,t,n)=>{var r=n(5606);t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))}),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(736)(t);const{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},7969:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString;e.exports=function(e,r){if(!function(e){var t="function"==typeof e&&!(e instanceof RegExp)||"[object Function]"===n.call(e);return t||"undefined"==typeof window||(t=e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt),t}(r))throw new TypeError("iterator must be a function");var i,o,a="string"==typeof e,s=e.length,c=arguments.length>2?arguments[2]:null;if(s===+s)for(i=0;i<s;i++)null===c?r(a?e.charAt(i):e[i],i,e):r.call(c,a?e.charAt(i):e[i],i,e);else for(o in e)t.call(e,o)&&(null===c?r(e[o],o,e):r.call(c,e[o],o,e))}},7970:(e,t,n)=>{var r=n(6503);e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];if(r(n))for(var i in n)n.hasOwnProperty(i)&&(e[i]=n[i])}return e}},7975:(e,t,n)=>{"use strict";var r=n(5606);function i(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function o(e,t){for(var n,r="",i=0,o=-1,a=0,s=0;s<=e.length;++s){if(s<e.length)n=e.charCodeAt(s);else{if(47===n)break;n=47}if(47===n){if(o===s-1||1===a);else if(o!==s-1&&2===a){if(r.length<2||2!==i||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var c=r.lastIndexOf("/");if(c!==r.length-1){-1===c?(r="",i=0):i=(r=r.slice(0,c)).length-1-r.lastIndexOf("/"),o=s,a=0;continue}}else if(2===r.length||1===r.length){r="",i=0,o=s,a=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(o+1,s):r=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===n&&-1!==a?++a:a=-1}return r}var a={resolve:function(){for(var e,t="",n=!1,a=arguments.length-1;a>=-1&&!n;a--){var s;a>=0?s=arguments[a]:(void 0===e&&(e=r.cwd()),s=e),i(s),0!==s.length&&(t=s+"/"+t,n=47===s.charCodeAt(0))}return t=o(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(i(e),0===e.length)return".";var t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0!==(e=o(e,!t)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return i(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var n=arguments[t];i(n),n.length>0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":a.normalize(e)},relative:function(e,t){if(i(e),i(t),e===t)return"";if((e=a.resolve(e))===(t=a.resolve(t)))return"";for(var n=1;n<e.length&&47===e.charCodeAt(n);++n);for(var r=e.length,o=r-n,s=1;s<t.length&&47===t.charCodeAt(s);++s);for(var c=t.length-s,u=o<c?o:c,l=-1,f=0;f<=u;++f){if(f===u){if(c>u){if(47===t.charCodeAt(s+f))return t.slice(s+f+1);if(0===f)return t.slice(s+f)}else o>u&&(47===e.charCodeAt(n+f)?l=f:0===f&&(l=0));break}var h=e.charCodeAt(n+f);if(h!==t.charCodeAt(s+f))break;47===h&&(l=f)}var p="";for(f=n+l+1;f<=r;++f)f!==r&&47!==e.charCodeAt(f)||(0===p.length?p+="..":p+="/..");return p.length>0?p+t.slice(s+l):(s+=l,47===t.charCodeAt(s)&&++s,t.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(i(e),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,o=!0,a=e.length-1;a>=1;--a)if(47===(t=e.charCodeAt(a))){if(!o){r=a;break}}else o=!1;return-1===r?n?"/":".":n&&1===r?"//":e.slice(0,r)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');i(e);var n,r=0,o=-1,a=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,c=-1;for(n=e.length-1;n>=0;--n){var u=e.charCodeAt(n);if(47===u){if(!a){r=n+1;break}}else-1===c&&(a=!1,c=n+1),s>=0&&(u===t.charCodeAt(s)?-1===--s&&(o=n):(s=-1,o=c))}return r===o?o=c:-1===o&&(o=e.length),e.slice(r,o)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!a){r=n+1;break}}else-1===o&&(a=!1,o=n+1);return-1===o?"":e.slice(r,o)},extname:function(e){i(e);for(var t=-1,n=0,r=-1,o=!0,a=0,s=e.length-1;s>=0;--s){var c=e.charCodeAt(s);if(47!==c)-1===r&&(o=!1,r=s+1),46===c?-1===t?t=s:1!==a&&(a=1):-1!==t&&(a=-1);else if(!o){n=s+1;break}}return-1===t||-1===r||0===a||1===a&&t===r-1&&t===n+1?"":e.slice(t,r)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+"/"+r:r}(0,e)},parse:function(e){i(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,r=e.charCodeAt(0),o=47===r;o?(t.root="/",n=1):n=0;for(var a=-1,s=0,c=-1,u=!0,l=e.length-1,f=0;l>=n;--l)if(47!==(r=e.charCodeAt(l)))-1===c&&(u=!1,c=l+1),46===r?-1===a?a=l:1!==f&&(f=1):-1!==a&&(f=-1);else if(!u){s=l+1;break}return-1===a||-1===c||0===f||1===f&&a===c-1&&a===s+1?-1!==c&&(t.base=t.name=0===s&&o?e.slice(1,c):e.slice(s,c)):(0===s&&o?(t.name=e.slice(1,a),t.base=e.slice(1,c)):(t.name=e.slice(s,a),t.base=e.slice(s,c)),t.ext=e.slice(a,c)),s>0?t.dir=e.slice(0,s-1):o&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};a.posix=a,e.exports=a},8002:e=>{"use strict";e.exports=Math.min},8010:(e,t,n)=>{e.exports=n(7007).EventEmitter},8068:e=>{"use strict";e.exports=SyntaxError},8075:(e,t,n)=>{"use strict";var r=n(453),i=n(487),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?i(n):n}},8166:(e,t,n)=>{var r=n(5606);e.exports=c;var i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t},o=n(5622);o.inherits=n(6698);var a=n(5140),s=n(7684);function c(e){if(!(this instanceof c))return new c(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",u)}function u(){this.allowHalfOpen||this._writableState.ended||r.nextTick(this.end.bind(this))}o.inherits(c,a),function(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n])}(i(s.prototype),function(e){c.prototype[e]||(c.prototype[e]=s.prototype[e])})},8184:(e,t,n)=>{"use strict";var r=n(6556),i=n(9721)(/^\s*(?:function)?\*/),o=n(9092)(),a=n(3628),s=r("Object.prototype.toString"),c=r("Function.prototype.toString"),u=n(4233);e.exports=function(e){if("function"!=typeof e)return!1;if(i(c(e)))return!0;if(!o)return"[object GeneratorFunction]"===s(e);if(!a)return!1;var t=u();return t&&a(e)===t.prototype}},8221:()=>{},8287:(e,t,n)=>{"use strict";const r=n(7526),i=n(251),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=c,t.SlowBuffer=function(e){return+e!=e&&(e=0),c.alloc(+e)},t.INSPECT_MAX_BYTES=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return f(e)}return u(e,t,n)}function u(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|g(e,t);let r=s(n);const i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(K(e,Uint8Array)){const t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return h(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(K(e,ArrayBuffer)||e&&K(e.buffer,ArrayBuffer))return p(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(K(e,SharedArrayBuffer)||e&&K(e.buffer,SharedArrayBuffer)))return p(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return c.from(r,t,n);const i=function(e){if(c.isBuffer(e)){const t=0|d(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||Y(e.length)?s(0):h(e):"Buffer"===e.type&&Array.isArray(e.data)?h(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function f(e){return l(e),s(e<0?0:0|d(e))}function h(e){const t=e.length<0?0:0|d(e.length),n=s(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function p(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,c.prototype),r}function d(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function g(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||K(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(e).length;default:if(i)return r?-1:H(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,n);case"utf8":case"utf-8":return O(this,t,n);case"ascii":return R(this,t,n);case"latin1":case"binary":return j(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function b(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Y(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,i){let o,a=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let r=-1;for(o=n;o<s;o++)if(u(e,o)===u(t,-1===r?0:o-r)){if(-1===r&&(r=o),o-r+1===c)return r*a}else-1!==r&&(o-=o-r),r=-1}else for(n+c>s&&(n=s-c),o=n;o>=0;o--){let n=!0;for(let r=0;r<c;r++)if(u(e,o+r)!==u(t,r)){n=!1;break}if(n)return o}return-1}function w(e,t,n,r){n=Number(n)||0;const i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;const o=t.length;let a;for(r>o/2&&(r=o/2),a=0;a<r;++a){const r=parseInt(t.substr(2*a,2),16);if(Y(r))return a;e[n+a]=r}return a}function _(e,t,n,r){return G(H(t,e.length-n),e,n,r)}function E(e,t,n,r){return G(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function k(e,t,n,r){return G(V(t),e,n,r)}function x(e,t,n,r){return G(function(e,t){let n,r,i;const o=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function O(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i<n;){const t=e[i];let o=null,a=t>239?4:t>223?3:t>191?2:1;if(i+a<=n){let n,r,s,c;switch(a){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128==(192&n)&&(c=(31&t)<<6|63&n,c>127&&(o=c));break;case 3:n=e[i+1],r=e[i+2],128==(192&n)&&128==(192&r)&&(c=(15&t)<<12|(63&n)<<6|63&r,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],128==(192&n)&&128==(192&r)&&128==(192&s)&&(c=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,c>65535&&c<1114112&&(o=c))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}return function(e){const t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=A));return n}(r)}t.kMaxLength=a,c.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),c.TYPED_ARRAY_SUPPORT||"undefined"==typeof 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(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,n){return u(e,t,n)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,n){return function(e,t,n){return l(e),e<=0?s(e):void 0!==t?"string"==typeof n?s(e).fill(t,n):s(e).fill(t):s(e)}(e,t,n)},c.allocUnsafe=function(e){return f(e)},c.allocUnsafeSlow=function(e){return f(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(K(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),K(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=c.allocUnsafe(t);let i=0;for(n=0;n<e.length;++n){let t=e[n];if(K(t,Uint8Array))i+t.length>r.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},c.byteLength=g,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)y(this,t,t+1);return this},c.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},c.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},c.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?O(this,0,e):m.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){let e="";const n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(c.prototype[o]=c.prototype.inspect),c.prototype.compare=function(e,t,n,r,i){if(K(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const s=Math.min(o,a),u=this.slice(r,i),l=e.slice(t,n);for(let e=0;e<s;++e)if(u[e]!==l[e]){o=u[e],a=l[e];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return b(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return b(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":case"latin1":case"binary":return E(this,e,t,n);case"base64":return k(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const A=4096;function R(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function j(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function T(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i="";for(let r=t;r<n;++r)i+=J[e[r]];return i}function I(e,t,n){const r=e.slice(t,n);let i="";for(let e=0;e<r.length-1;e+=2)i+=String.fromCharCode(r[e]+256*r[e+1]);return i}function M(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,n,r,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function B(e,t,n,r,i){W(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function C(e,t,n,r,i){W(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function N(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function P(e,t,n,r,o){return t=+t,n>>>=0,o||N(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function D(e,t,n,r,o){return t=+t,n>>>=0,o||N(e,0,n,8),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,c.prototype),r},c.prototype.readUintLE=c.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||M(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return r},c.prototype.readUintBE=c.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||M(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||M(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||M(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||M(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||M(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||M(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=X(function(e){q(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||$(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))}),c.prototype.readBigUInt64BE=X(function(e){q(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||$(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)}),c.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||M(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||M(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||M(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||M(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){e>>>=0,t||M(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||M(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||M(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=X(function(e){q(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||$(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)}),c.prototype.readBigInt64BE=X(function(e){q(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||$(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)}),c.prototype.readFloatLE=function(e,t){return e>>>=0,t||M(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||M(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||M(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||M(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||L(this,e,t,n,Math.pow(2,8*n)-1,0);let i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||L(this,e,t,n,Math.pow(2,8*n)-1,0);let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=X(function(e,t=0){return B(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=X(function(e,t=0){return C(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);L(this,e,t,n,r-1,-r)}let i=0,o=1,a=0;for(this[t]=255&e;++i<n&&(o*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/o|0)-a&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);L(this,e,t,n,r-1,-r)}let i=n-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o|0)-a&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=X(function(e,t=0){return B(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=X(function(e,t=0){return C(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeFloatLE=function(e,t,n){return P(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return P(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return D(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return D(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const i=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{const o=c.isBuffer(e)?e:c.from(e,r),a=o.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=o[i%a]}return this};const F={};function U(e,t,n){F[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function z(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function W(e,t,n,r,i,o){if(e>n||e<t){const r="bigint"==typeof t?"n":"";let i;throw i=o>3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new F.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){q(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||$(t,e.length-(n+1))}(r,i,o)}function q(e,t){if("number"!=typeof e)throw new F.ERR_INVALID_ARG_TYPE(t,"number",e)}function $(e,t,n){if(Math.floor(e)!==e)throw q(e,n),new F.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new F.ERR_BUFFER_OUT_OF_BOUNDS;throw new F.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}U("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),U("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),U("ERR_OUT_OF_RANGE",function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=z(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=z(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r},RangeError);const Z=/[^+/0-9A-Za-z-_]/g;function H(e,t){let n;t=t||1/0;const r=e.length;let i=null;const o=[];for(let a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function V(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(Z,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function G(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function K(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!=e}const J=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function X(e){return"undefined"==typeof BigInt?Q:e}function Q(){throw new Error("BigInt not supported")}},8310:(e,t,n)=>{e.exports=i;var r=n(7007).EventEmitter;function i(){r.call(this)}n(6698)(i,r),i.Readable=n(5412),i.Writable=n(6708),i.Duplex=n(5382),i.Transform=n(4610),i.PassThrough=n(3600),i.finished=n(6238),i.pipeline=n(7758),i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",c));var a=!1;function s(){a||(a=!0,e.end())}function c(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(l(),0===r.listenerCount(this,"error"))throw e}function l(){n.removeListener("data",i),e.removeListener("drain",o),n.removeListener("end",s),n.removeListener("close",c),n.removeListener("error",u),e.removeListener("error",u),n.removeListener("end",l),n.removeListener("close",l),e.removeListener("close",l)}return n.on("error",u),e.on("error",u),n.on("end",l),n.on("close",l),e.on("close",l),e.emit("pipe",n),e}},8320:(e,t,n)=>{var r=n(5606),i=n(8310);(t=e.exports=n(1438)).Stream=i,t.Readable=t,t.Writable=n(626),t.Duplex=n(5240),t.Transform=n(9816),t.PassThrough=n(186),r.browser||"disable"!==r.env.READABLE_STREAM||(e.exports=n(8310))},8403:(e,t,n)=>{"use strict";var r=n(1189),i=n(1333)(),o=n(6556),a=n(9612),s=o("Array.prototype.push"),c=o("Object.prototype.propertyIsEnumerable"),u=i?a.getOwnPropertySymbols:null;e.exports=function(e,t){if(null==e)throw new TypeError("target must be an object");var n=a(e);if(1===arguments.length)return n;for(var o=1;o<arguments.length;++o){var l=a(arguments[o]),f=r(l),h=i&&(a.getOwnPropertySymbols||u);if(h)for(var p=h(l),d=0;d<p.length;++d){var g=p[d];c(l,g)&&s(f,g)}for(var m=0;m<f.length;++m){var y=f[m];if(c(l,y)){var b=l[y];n[y]=b}}}return n}},8411:(e,t,n)=>{"use strict";var r,i=n(9805),o=n(3665),a=n(3269),s=n(4823),c=n(4674),u=-2,l=258,f=262,h=103,p=113,d=666;function g(e,t){return e.msg=c[t],t}function m(e){return(e<<1)-(e>4?9:0)}function y(e){for(var t=e.length;--t>=0;)e[t]=0}function b(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function v(e,t){o._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,b(e.strm)}function w(e,t){e.pending_buf[e.pending++]=t}function _(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function E(e,t,n,r){var o=e.avail_in;return o>r&&(o=r),0===o?0:(e.avail_in-=o,i.arraySet(t,e.input,e.next_in,o,n),1===e.state.wrap?e.adler=a(e.adler,t,o,n):2===e.state.wrap&&(e.adler=s(e.adler,t,o,n)),e.next_in+=o,e.total_in+=o,o)}function k(e,t){var n,r,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-f?e.strstart-(e.w_size-f):0,u=e.window,h=e.w_mask,p=e.prev,d=e.strstart+l,g=u[o+a-1],m=u[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(n=t)+a]===m&&u[n+a-1]===g&&u[n]===u[o]&&u[++n]===u[o+1]){o+=2,n++;do{}while(u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&o<d);if(r=l-(d-o),o=d-l,r>a){if(e.match_start=t,a=r,r>=s)break;g=u[o+a-1],m=u[o+a]}}}while((t=p[t&h])>c&&0!==--i);return a<=e.lookahead?a:e.lookahead}function x(e){var t,n,r,o,a,s=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=s+(s-f)){i.arraySet(e.window,e.window,s,s,0),e.match_start-=s,e.strstart-=s,e.block_start-=s,t=n=e.hash_size;do{r=e.head[--t],e.head[t]=r>=s?r-s:0}while(--n);t=n=s;do{r=e.prev[--t],e.prev[t]=r>=s?r-s:0}while(--n);o+=s}if(0===e.strm.avail_in)break;if(n=E(e.strm,e.window,e.strstart+e.lookahead,o),e.lookahead+=n,e.lookahead+e.insert>=3)for(a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+3-1])&e.hash_mask,e.prev[a&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=a,a++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<f&&0!==e.strm.avail_in)}function S(e,t){for(var n,r;;){if(e.lookahead<f){if(x(e),e.lookahead<f&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-f&&(e.match_length=k(e,n)),e.match_length>=3)if(r=o._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!==--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}function O(e,t){for(var n,r,i;;){if(e.lookahead<f){if(x(e),e.lookahead<f&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-f&&(e.match_length=k(e,n),e.match_length<=5&&(1===e.strategy||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,r=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!==--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(v(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=o._tr_tally(e,0,e.window[e.strstart-1]))&&v(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=o._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}function A(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function R(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),y(this.dyn_ltree),y(this.dyn_dtree),y(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),y(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),y(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function j(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:p,e.adler=2===t.wrap?0:1,t.last_flush=0,o._tr_init(t),0):g(e,u)}function T(e){var t,n=j(e);return 0===n&&((t=e.state).window_size=2*t.w_size,y(t.head),t.max_lazy_match=r[t.level].max_lazy,t.good_match=r[t.level].good_length,t.nice_match=r[t.level].nice_length,t.max_chain_length=r[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),n}function I(e,t,n,r,o,a){if(!e)return u;var s=1;if(-1===t&&(t=6),r<0?(s=0,r=-r):r>15&&(s=2,r-=16),o<1||o>9||8!==n||r<8||r>15||t<0||t>9||a<0||a>4)return g(e,u);8===r&&(r=9);var c=new R;return e.state=c,c.strm=e,c.wrap=s,c.gzhead=null,c.w_bits=r,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=o+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+3-1)/3),c.window=new i.Buf8(2*c.w_size),c.head=new i.Buf16(c.hash_size),c.prev=new i.Buf16(c.w_size),c.lit_bufsize=1<<o+6,c.pending_buf_size=4*c.lit_bufsize,c.pending_buf=new i.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=t,c.strategy=a,c.method=n,T(e)}r=[new A(0,0,0,0,function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(x(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,v(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-f&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(v(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(v(e,!1),e.strm.avail_out),1)}),new A(4,4,8,4,S),new A(4,5,16,8,S),new A(4,6,32,32,S),new A(4,4,16,16,O),new A(8,16,32,32,O),new A(8,16,128,128,O),new A(8,32,128,256,O),new A(32,128,258,1024,O),new A(32,258,258,4096,O)],t.deflateInit=function(e,t){return I(e,t,8,15,8,0)},t.deflateInit2=I,t.deflateReset=T,t.deflateResetKeep=j,t.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?u:(e.state.gzhead=t,0):u},t.deflate=function(e,t){var n,i,a,c;if(!e||!e.state||t>5||t<0)return e?g(e,u):u;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||i.status===d&&4!==t)return g(e,0===e.avail_out?-5:u);if(i.strm=e,n=i.last_flush,i.last_flush=t,42===i.status)if(2===i.wrap)e.adler=0,w(i,31),w(i,139),w(i,8),i.gzhead?(w(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),w(i,255&i.gzhead.time),w(i,i.gzhead.time>>8&255),w(i,i.gzhead.time>>16&255),w(i,i.gzhead.time>>24&255),w(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),w(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(w(i,255&i.gzhead.extra.length),w(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(w(i,0),w(i,0),w(i,0),w(i,0),w(i,0),w(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),w(i,3),i.status=p);else{var f=8+(i.w_bits-8<<4)<<8;f|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(f|=32),f+=31-f%31,i.status=p,_(i,f),0!==i.strstart&&(_(i,e.adler>>>16),_(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),b(e),a=i.pending,i.pending!==i.pending_buf_size));)w(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),b(e),a=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,w(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===c&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),b(e),a=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,w(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===c&&(i.status=h)}else i.status=h;if(i.status===h&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&b(e),i.pending+2<=i.pending_buf_size&&(w(i,255&e.adler),w(i,e.adler>>8&255),e.adler=0,i.status=p)):i.status=p),0!==i.pending){if(b(e),0===e.avail_out)return i.last_flush=-1,0}else if(0===e.avail_in&&m(t)<=m(n)&&4!==t)return g(e,-5);if(i.status===d&&0!==e.avail_in)return g(e,-5);if(0!==e.avail_in||0!==i.lookahead||0!==t&&i.status!==d){var E=2===i.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(x(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var n,r,i,a,s=e.window;;){if(e.lookahead<=l){if(x(e),e.lookahead<=l&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){a=e.strstart+l;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<a);e.match_length=l-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=o._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}(i,t):r[i.level].func(i,t);if(3!==E&&4!==E||(i.status=d),1===E||3===E)return 0===e.avail_out&&(i.last_flush=-1),0;if(2===E&&(1===t?o._tr_align(i):5!==t&&(o._tr_stored_block(i,0,0,!1),3===t&&(y(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),b(e),0===e.avail_out))return i.last_flush=-1,0}return 4!==t?0:i.wrap<=0?1:(2===i.wrap?(w(i,255&e.adler),w(i,e.adler>>8&255),w(i,e.adler>>16&255),w(i,e.adler>>24&255),w(i,255&e.total_in),w(i,e.total_in>>8&255),w(i,e.total_in>>16&255),w(i,e.total_in>>24&255)):(_(i,e.adler>>>16),_(i,65535&e.adler)),b(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?0:1)},t.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&t!==h&&t!==p&&t!==d?g(e,u):(e.state=null,t===p?g(e,-3):0):u},t.deflateSetDictionary=function(e,t){var n,r,o,s,c,l,f,h,p=t.length;if(!e||!e.state)return u;if(2===(s=(n=e.state).wrap)||1===s&&42!==n.status||n.lookahead)return u;for(1===s&&(e.adler=a(e.adler,t,p,0)),n.wrap=0,p>=n.w_size&&(0===s&&(y(n.head),n.strstart=0,n.block_start=0,n.insert=0),h=new i.Buf8(n.w_size),i.arraySet(h,t,p-n.w_size,n.w_size,0),t=h,p=n.w_size),c=e.avail_in,l=e.next_in,f=e.input,e.avail_in=p,e.next_in=0,e.input=t,x(n);n.lookahead>=3;){r=n.strstart,o=n.lookahead-2;do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+3-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--o);n.strstart=r,n.lookahead=2,x(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,e.next_in=l,e.input=f,e.avail_in=c,n.wrap=s,0},t.deflateInfo="pako deflate (from Nodeca project)"},8452:(e,t,n)=>{"use strict";var r=n(1189),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=n(41),c=n(592)(),u=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!=typeof(i=r)||"[object Function]"!==o.call(i)||!r())return;var i;c?s(e,t,n,!0):s(e,t,n)},l=function(e,t){var n=arguments.length>2?arguments[2]:{},o=r(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s<o.length;s+=1)u(e,o[s],t[o[s]],n[o[s]])};l.supportsDescriptors=!!c,e.exports=l},8531:(e,t,n)=>{var r=n(1963).Readable,i=n(537).inherits,o=n(3493),a=n(7805).EncodingError,s=n(2350),c={keys:!0,values:!0},u=function(e,t){return{key:s.decodeKey(e,this._options),value:s.decodeValue(t,this._options)}},l=function(e){return s.decodeKey(e,this._options)},f=function(e,t){return s.decodeValue(t,this._options)},h=function(){return null};function p(e,t,n){if(!(this instanceof p))return new p(e,t,n);r.call(this,{objectMode:!0,highWaterMark:e.highWaterMark}),this._db=t,e=this._options=o(c,e),this._keyEncoding=e.keyEncoding||e.encoding,this._valueEncoding=e.valueEncoding||e.encoding,void 0!==this._options.start&&(this._options.start=s.encodeKey(this._options.start,this._options)),void 0!==this._options.end&&(this._options.end=s.encodeKey(this._options.end,this._options)),"number"!=typeof this._options.limit&&(this._options.limit=-1),this._options.keyAsBuffer=s.isKeyAsBuffer(this._options),this._options.valueAsBuffer=s.isValueAsBuffer(this._options),this._makeData=this._options.keys&&this._options.values?u:this._options.keys?l:this._options.values?f:h;var i=this;this._db.isOpen()?this._iterator=n(this._options):this._db.once("ready",function(){i._destroyed||(i._iterator=n(i._options))})}i(p,r),p.prototype._read=function e(){var t=this;if(!t._db.isOpen())return t._db.once("ready",function(){e.call(t)});t._destroyed||t._iterator.next(function(e,n,r){if(e||void 0===n&&void 0===r)return e||t._destroyed||t.push(null),t._cleanup(e);try{r=t._makeData(n,r)}catch(e){return t._cleanup(new a(e))}t._destroyed||t.push(r)})},p.prototype._cleanup=function(e){if(!this._destroyed){this._destroyed=!0;var t=this;e&&t.emit("error",e),t._iterator?t._iterator.end(function(){t._iterator=null,t.emit("close")}):t.emit("close")}},p.prototype.destroy=function(){this._cleanup()},p.prototype.toString=function(){return"LevelUP.ReadStream"},e.exports=p},8559:(e,t,n)=>{"use strict";var r=n(5606),i=n(8287).Buffer,o=n(8310).Transform,a=n(5974),s=n(537),c=n(4148).ok,u=n(8287).kMaxLength,l="Cannot create final Buffer. It would be larger than 0x"+u.toString(16)+" bytes";a.Z_MIN_WINDOWBITS=8,a.Z_MAX_WINDOWBITS=15,a.Z_DEFAULT_WINDOWBITS=15,a.Z_MIN_CHUNK=64,a.Z_MAX_CHUNK=1/0,a.Z_DEFAULT_CHUNK=16384,a.Z_MIN_MEMLEVEL=1,a.Z_MAX_MEMLEVEL=9,a.Z_DEFAULT_MEMLEVEL=8,a.Z_MIN_LEVEL=-1,a.Z_MAX_LEVEL=9,a.Z_DEFAULT_LEVEL=a.Z_DEFAULT_COMPRESSION;for(var f=Object.keys(a),h=0;h<f.length;h++){var p=f[h];p.match(/^Z/)&&Object.defineProperty(t,p,{enumerable:!0,value:a[p],writable:!1})}for(var d={Z_OK:a.Z_OK,Z_STREAM_END:a.Z_STREAM_END,Z_NEED_DICT:a.Z_NEED_DICT,Z_ERRNO:a.Z_ERRNO,Z_STREAM_ERROR:a.Z_STREAM_ERROR,Z_DATA_ERROR:a.Z_DATA_ERROR,Z_MEM_ERROR:a.Z_MEM_ERROR,Z_BUF_ERROR:a.Z_BUF_ERROR,Z_VERSION_ERROR:a.Z_VERSION_ERROR},g=Object.keys(d),m=0;m<g.length;m++){var y=g[m];d[d[y]]=y}function b(e,t,n){var r=[],o=0;function a(){for(var t;null!==(t=e.read());)r.push(t),o+=t.length;e.once("readable",a)}function s(){var t,a=null;o>=u?a=new RangeError(l):t=i.concat(r,o),r=[],e.close(),n(a,t)}e.on("error",function(t){e.removeListener("end",s),e.removeListener("readable",a),n(t)}),e.on("end",s),e.end(t),a()}function v(e,t){if("string"==typeof t&&(t=i.from(t)),!i.isBuffer(t))throw new TypeError("Not a string or buffer");var n=e._finishFlushFlag;return e._processChunk(t,n)}function w(e){if(!(this instanceof w))return new w(e);R.call(this,e,a.DEFLATE)}function _(e){if(!(this instanceof _))return new _(e);R.call(this,e,a.INFLATE)}function E(e){if(!(this instanceof E))return new E(e);R.call(this,e,a.GZIP)}function k(e){if(!(this instanceof k))return new k(e);R.call(this,e,a.GUNZIP)}function x(e){if(!(this instanceof x))return new x(e);R.call(this,e,a.DEFLATERAW)}function S(e){if(!(this instanceof S))return new S(e);R.call(this,e,a.INFLATERAW)}function O(e){if(!(this instanceof O))return new O(e);R.call(this,e,a.UNZIP)}function A(e){return e===a.Z_NO_FLUSH||e===a.Z_PARTIAL_FLUSH||e===a.Z_SYNC_FLUSH||e===a.Z_FULL_FLUSH||e===a.Z_FINISH||e===a.Z_BLOCK}function R(e,n){var r=this;if(this._opts=e=e||{},this._chunkSize=e.chunkSize||t.Z_DEFAULT_CHUNK,o.call(this,e),e.flush&&!A(e.flush))throw new Error("Invalid flush flag: "+e.flush);if(e.finishFlush&&!A(e.finishFlush))throw new Error("Invalid flush flag: "+e.finishFlush);if(this._flushFlag=e.flush||a.Z_NO_FLUSH,this._finishFlushFlag=void 0!==e.finishFlush?e.finishFlush:a.Z_FINISH,e.chunkSize&&(e.chunkSize<t.Z_MIN_CHUNK||e.chunkSize>t.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBits<t.Z_MIN_WINDOWBITS||e.windowBits>t.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.level<t.Z_MIN_LEVEL||e.level>t.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevel<t.Z_MIN_MEMLEVEL||e.memLevel>t.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=t.Z_FILTERED&&e.strategy!=t.Z_HUFFMAN_ONLY&&e.strategy!=t.Z_RLE&&e.strategy!=t.Z_FIXED&&e.strategy!=t.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!i.isBuffer(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new a.Zlib(n);var s=this;this._hadError=!1,this._handle.onerror=function(e,n){j(s),s._hadError=!0;var r=new Error(e);r.errno=n,r.code=t.codes[n],s.emit("error",r)};var c=t.Z_DEFAULT_COMPRESSION;"number"==typeof e.level&&(c=e.level);var u=t.Z_DEFAULT_STRATEGY;"number"==typeof e.strategy&&(u=e.strategy),this._handle.init(e.windowBits||t.Z_DEFAULT_WINDOWBITS,c,e.memLevel||t.Z_DEFAULT_MEMLEVEL,u,e.dictionary),this._buffer=i.allocUnsafe(this._chunkSize),this._offset=0,this._level=c,this._strategy=u,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!r._handle},configurable:!0,enumerable:!0})}function j(e,t){t&&r.nextTick(t),e._handle&&(e._handle.close(),e._handle=null)}function T(e){e.emit("close")}Object.defineProperty(t,"codes",{enumerable:!0,value:Object.freeze(d),writable:!1}),t.Deflate=w,t.Inflate=_,t.Gzip=E,t.Gunzip=k,t.DeflateRaw=x,t.InflateRaw=S,t.Unzip=O,t.createDeflate=function(e){return new w(e)},t.createInflate=function(e){return new _(e)},t.createDeflateRaw=function(e){return new x(e)},t.createInflateRaw=function(e){return new S(e)},t.createGzip=function(e){return new E(e)},t.createGunzip=function(e){return new k(e)},t.createUnzip=function(e){return new O(e)},t.deflate=function(e,t,n){return"function"==typeof t&&(n=t,t={}),b(new w(t),e,n)},t.deflateSync=function(e,t){return v(new w(t),e)},t.gzip=function(e,t,n){return"function"==typeof t&&(n=t,t={}),b(new E(t),e,n)},t.gzipSync=function(e,t){return v(new E(t),e)},t.deflateRaw=function(e,t,n){return"function"==typeof t&&(n=t,t={}),b(new x(t),e,n)},t.deflateRawSync=function(e,t){return v(new x(t),e)},t.unzip=function(e,t,n){return"function"==typeof t&&(n=t,t={}),b(new O(t),e,n)},t.unzipSync=function(e,t){return v(new O(t),e)},t.inflate=function(e,t,n){return"function"==typeof t&&(n=t,t={}),b(new _(t),e,n)},t.inflateSync=function(e,t){return v(new _(t),e)},t.gunzip=function(e,t,n){return"function"==typeof t&&(n=t,t={}),b(new k(t),e,n)},t.gunzipSync=function(e,t){return v(new k(t),e)},t.inflateRaw=function(e,t,n){return"function"==typeof t&&(n=t,t={}),b(new S(t),e,n)},t.inflateRawSync=function(e,t){return v(new S(t),e)},s.inherits(R,o),R.prototype.params=function(e,n,i){if(e<t.Z_MIN_LEVEL||e>t.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+e);if(n!=t.Z_FILTERED&&n!=t.Z_HUFFMAN_ONLY&&n!=t.Z_RLE&&n!=t.Z_FIXED&&n!=t.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+n);if(this._level!==e||this._strategy!==n){var o=this;this.flush(a.Z_SYNC_FLUSH,function(){c(o._handle,"zlib binding closed"),o._handle.params(e,n),o._hadError||(o._level=e,o._strategy=n,i&&i())})}else r.nextTick(i)},R.prototype.reset=function(){return c(this._handle,"zlib binding closed"),this._handle.reset()},R.prototype._flush=function(e){this._transform(i.alloc(0),"",e)},R.prototype.flush=function(e,t){var n=this,o=this._writableState;("function"==typeof e||void 0===e&&!t)&&(t=e,e=a.Z_FULL_FLUSH),o.ended?t&&r.nextTick(t):o.ending?t&&this.once("end",t):o.needDrain?t&&this.once("drain",function(){return n.flush(e,t)}):(this._flushFlag=e,this.write(i.alloc(0),"",t))},R.prototype.close=function(e){j(this,e),r.nextTick(T,this)},R.prototype._transform=function(e,t,n){var r,o=this._writableState,s=(o.ending||o.ended)&&(!e||o.length===e.length);return null===e||i.isBuffer(e)?this._handle?(s?r=this._finishFlushFlag:(r=this._flushFlag,e.length>=o.length&&(this._flushFlag=this._opts.flush||a.Z_NO_FLUSH)),void this._processChunk(e,r,n)):n(new Error("zlib binding closed")):n(new Error("invalid input"))},R.prototype._processChunk=function(e,t,n){var r=e&&e.length,o=this._chunkSize-this._offset,a=0,s=this,f="function"==typeof n;if(!f){var h,p=[],d=0;this.on("error",function(e){h=e}),c(this._handle,"zlib binding closed");do{var g=this._handle.writeSync(t,e,a,r,this._buffer,this._offset,o)}while(!this._hadError&&b(g[0],g[1]));if(this._hadError)throw h;if(d>=u)throw j(this),new RangeError(l);var m=i.concat(p,d);return j(this),m}c(this._handle,"zlib binding closed");var y=this._handle.write(t,e,a,r,this._buffer,this._offset,o);function b(u,l){if(this&&(this.buffer=null,this.callback=null),!s._hadError){var h=o-l;if(c(h>=0,"have should not go down"),h>0){var g=s._buffer.slice(s._offset,s._offset+h);s._offset+=h,f?s.push(g):(p.push(g),d+=g.length)}if((0===l||s._offset>=s._chunkSize)&&(o=s._chunkSize,s._offset=0,s._buffer=i.allocUnsafe(s._chunkSize)),0===l){if(a+=r-u,r=u,!f)return!0;var m=s._handle.write(t,e,a,r,s._buffer,s._offset,s._chunkSize);return m.callback=b,void(m.buffer=e)}if(!f)return!1;n()}}y.buffer=e,y.callback=b},s.inherits(w,R),s.inherits(_,R),s.inherits(E,R),s.inherits(k,R),s.inherits(x,R),s.inherits(S,R),s.inherits(O,R)},8571:(e,t,n)=>{var r=n(519);Object.keys(r.code).forEach(function(e){var n=r.code[e];t[e]=function(t){var r=new Error(e+", "+n.description+(t?" '"+t+"'":""));return r.errno=n.errno,r.code=e,r.path=t,r}})},8636:(e,t,n)=>{"use strict";var r=n(920),i=n(7720),o=n(4765),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,u=Array.prototype.push,l=function(e,t){u.apply(e,c(t)?t:[t])},f=Date.prototype.toISOString,h=o.default,p={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:i.encode,encodeValuesOnly:!1,filter:void 0,format:h,formatter:o.formatters[h],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},d={},g=function e(t,n,o,a,s,u,f,h,g,m,y,b,v,w,_,E,k,x){for(var S,O=t,A=x,R=0,j=!1;void 0!==(A=A.get(d))&&!j;){var T=A.get(t);if(R+=1,void 0!==T){if(T===R)throw new RangeError("Cyclic object value");j=!0}void 0===A.get(d)&&(R=0)}if("function"==typeof m?O=m(n,O):O instanceof Date?O=v(O):"comma"===o&&c(O)&&(O=i.maybeMap(O,function(e){return e instanceof Date?v(e):e})),null===O){if(u)return g&&!E?g(n,p.encoder,k,"key",w):n;O=""}if("string"==typeof(S=O)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||i.isBuffer(O))return g?[_(E?n:g(n,p.encoder,k,"key",w))+"="+_(g(O,p.encoder,k,"value",w))]:[_(n)+"="+_(String(O))];var I,M=[];if(void 0===O)return M;if("comma"===o&&c(O))E&&g&&(O=i.maybeMap(O,g)),I=[{value:O.length>0?O.join(",")||null:void 0}];else if(c(m))I=m;else{var L=Object.keys(O);I=y?L.sort(y):L}var B=h?String(n).replace(/\./g,"%2E"):String(n),C=a&&c(O)&&1===O.length?B+"[]":B;if(s&&c(O)&&0===O.length)return C+"[]";for(var N=0;N<I.length;++N){var P=I[N],D="object"==typeof P&&P&&void 0!==P.value?P.value:O[P];if(!f||null!==D){var F=b&&h?String(P).replace(/\./g,"%2E"):String(P),U=c(O)?"function"==typeof o?o(C,F):C:C+(b?"."+F:"["+F+"]");x.set(t,R);var z=r();z.set(d,x),l(M,e(D,U,o,a,s,u,f,h,"comma"===o&&E&&c(O)?null:g,m,y,b,v,w,_,E,k,z))}}return M};e.exports=function(e,t){var n,i=e,u=function(e){if(!e)return p;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==e.format){if(!a.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r,i=o.formatters[n],u=p.filter;if(("function"==typeof e.filter||c(e.filter))&&(u=e.filter),r=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":p.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var l=void 0===e.allowDots?!0===e.encodeDotInKeys||p.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:l,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:p.allowEmptyArrays,arrayFormat:r,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:p.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:p.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:u,format:n,formatter:i,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"==typeof u.filter?i=(0,u.filter)("",i):c(u.filter)&&(n=u.filter);var f=[];if("object"!=typeof i||null===i)return"";var h=s[u.arrayFormat],d="comma"===h&&u.commaRoundTrip;n||(n=Object.keys(i)),u.sort&&n.sort(u.sort);for(var m=r(),y=0;y<n.length;++y){var b=n[y],v=i[b];u.skipNulls&&null===v||l(f,g(v,b,h,d,u.allowEmptyArrays,u.strictNullHandling,u.skipNulls,u.encodeDotInKeys,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.format,u.formatter,u.encodeValuesOnly,u.charset,m))}var w=f.join(u.delimiter),_=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),w.length>0?_+w:""}},8648:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},8662:(e,t,n)=>{var r=n(7007).EventEmitter,i=n(537).inherits,o=n(2980),a=n(7212),s=n(3685),c=n(3152);function u(e,t,n){if("string"==typeof n&&(console.error("db.sublevel(name, seperator<string>) is depreciated"),console.error("use db.sublevel(name, {sep: separator})) if you must"),n={sep:n}),!(this instanceof u))return new u(e,t,n);if(!e)throw new Error("must provide db");if(!t)throw new Error("must provide prefix");(n=n||{}).sep=n.sep||"ÿ",this._parent=e,this._options=n,this.options=n,this._prefix=t,this._root=f(this),e.sublevels[t]=this,this.sublevels={},this.methods={};var r=this;this.hooks={pre:function(){return r.pre.apply(r,arguments)},post:function(){return r.post.apply(r,arguments)}}}i(u,r);var l=u.prototype;function f(e){return e._parent?f(e._parent):e}l._key=function(e){var t=this._options.sep;return t+this._prefix+t+e},l._getOptsAndCb=function(e,t){return"function"==typeof e&&(t=e,e={}),{opts:s(e,this._options),cb:t}},l.sublevel=function(e,t){return this.sublevels[e]?this.sublevels[e]:new u(this,e,t||this._options)},l.put=function(e,t,n,r){var i=this._getOptsAndCb(n,r);this._root.put(this.prefix(e),t,i.opts,i.cb)},l.get=function(e,t,n){var r=this._getOptsAndCb(t,n);this._root.get(this.prefix(e),r.opts,r.cb)},l.del=function(e,t,n){var r=this._getOptsAndCb(t,n);this._root.del(this.prefix(e),r.opts,r.cb)},l.batch=function(e,t,n){if(!Array.isArray(e))return new c(this);var r=this,i=this._getOptsAndCb(t,n);e.forEach(function(e){"string"==typeof e.prefix?e.key=e.prefix+e.key:e.key=(e.prefix||r).prefix(e.key),e.prefix&&(e.prefix=null)}),this._root.batch(e,i.opts,i.cb)},l._getKeyEncoding=function(){return this.options.keyEncoding?this.options.keyEncoding:this._parent&&this._parent._getKeyEncoding?this._parent._getKeyEncoding():void 0},l._getValueEncoding=function(){return this.options.valueEncoding?this.options.valueEncoding:this._parent&&this._parent._getValueEncoding?this._parent._getValueEncoding():void 0},l.prefix=function(e){var t=this._options.sep;return this._parent.prefix()+t+this._prefix+t+(e||"")},l.keyStream=l.createKeyStream=function(e){return(e=e||{}).keys=!0,e.values=!1,this.createReadStream(e)},l.valueStream=l.createValueStream=function(e){return(e=e||{}).keys=!1,e.values=!0,e.keys=!1,this.createReadStream(e)},l.readStream=l.createReadStream=function(e){e=e||{};var t=f(this),n=this.prefix(),r=o.prefix(e,n);!function(e,t){["valueEncoding","encoding","keyEncoding","reverse","values","keys","limit","fillCache"].forEach(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})}(r,s(e,this._options));var i=t.createReadStream(r);if(!1===r.values){var a;if(a=i.read)i.read=function(e){var t=a.call(this,e);return t&&(t=t.substring(n.length)),t};else{var c=i.emit;i.emit=function(e,t){"data"===e?c.call(this,"data",t.substring(n.length)):c.call(this,e,t)}}return i}return!1===r.keys||((a=i.read)?i.read=function(e){var t=a.call(this,e);return t&&(t.key=t.key.substring(n.length)),t}:i.on("data",function(e){e.key=e.key.substring(n.length)})),i},l.writeStream=l.createWriteStream=function(){var e=f(this),t=this.prefix(),n=e.createWriteStream.apply(e,arguments),r=n.write,i=this._options.encoding,o=this._options.valueEncoding,a=this._options.keyEncoding,s=!i&&!o&&!a;return n.write=s?function(e){return e.key=t+e.key,r.call(n,e)}:function(e){return e.key=t+e.key,i&&void 0===e.encoding&&(e.encoding=i),o&&void 0===e.valueEncoding&&(e.valueEncoding=o),a&&void 0===e.keyEncoding&&(e.keyEncoding=a),r.call(n,e)},n},l.approximateSize=function(){var e=f(db);return e.approximateSize.apply(e,arguments)},l.pre=function(e,t){t||(t=e,e=null),e=o.prefix(e,this.prefix(),this._options.sep);var n=f(this._parent),r=this.prefix();return n.hooks.pre(a(e),function(e,n,i){t({key:e.key.substring(r.length),value:e.value,type:e.type},function(e,t){n(e,e.prefix?t:t||r)},i)})},l.post=function(e,t){t||(t=e,e=null);var n=f(this._parent),r=this.prefix();return e=o.prefix(e,r,this._options.sep),n.hooks.post(a(e),function(e){t({key:e.key.substring(r.length),value:e.value,type:e.type})})},e.exports=u},8688:(e,t,n)=>{e.exports=n(8166)},8835:(e,t,n)=>{"use strict";var r=n(9655);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var o=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(c),l=["%","/","?",";","#"].concat(u),f=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,d={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=n(5373);i.prototype.parse=function(e,t,n){if("string"!=typeof e)throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),a=-1!==i&&i<e.indexOf("#")?"?":"#",c=e.split(a);c[0]=c[0].replace(/\\/g,"/");var b=e=c.join(a);if(b=b.trim(),!n&&1===e.split("#").length){var v=s.exec(b);if(v)return this.path=b,this.href=b,this.pathname=v[1],v[2]?(this.search=v[2],this.query=t?y.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var w=o.exec(b);if(w){var _=(w=w[0]).toLowerCase();this.protocol=_,b=b.substr(w.length)}if(n||w||b.match(/^\/\/[^@/]+@[^@/]+/)){var E="//"===b.substr(0,2);!E||w&&g[w]||(b=b.substr(2),this.slashes=!0)}if(!g[w]&&(E||w&&!m[w])){for(var k,x,S=-1,O=0;O<f.length;O++)-1!==(A=b.indexOf(f[O]))&&(-1===S||A<S)&&(S=A);for(-1!==(x=-1===S?b.lastIndexOf("@"):b.lastIndexOf("@",S))&&(k=b.slice(0,x),b=b.slice(x+1),this.auth=decodeURIComponent(k)),S=-1,O=0;O<l.length;O++){var A;-1!==(A=b.indexOf(l[O]))&&(-1===S||A<S)&&(S=A)}-1===S&&(S=b.length),this.host=b.slice(0,S),b=b.slice(S),this.parseHost(),this.hostname=this.hostname||"";var R="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!R)for(var j=this.hostname.split(/\./),T=(O=0,j.length);O<T;O++){var I=j[O];if(I&&!I.match(h)){for(var M="",L=0,B=I.length;L<B;L++)I.charCodeAt(L)>127?M+="x":M+=I[L];if(!M.match(h)){var C=j.slice(0,O),N=j.slice(O+1),P=I.match(p);P&&(C.push(P[1]),N.unshift(P[2])),N.length&&(b="/"+N.join(".")+b),this.hostname=C.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),R||(this.hostname=r.toASCII(this.hostname));var D=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+D,this.href+=this.host,R&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!d[_])for(O=0,T=u.length;O<T;O++){var U=u[O];if(-1!==b.indexOf(U)){var z=encodeURIComponent(U);z===U&&(z=escape(U)),b=b.split(U).join(z)}}var W=b.indexOf("#");-1!==W&&(this.hash=b.substr(W),b=b.slice(0,W));var q=b.indexOf("?");if(-1!==q?(this.search=b.substr(q),this.query=b.substr(q+1),t&&(this.query=y.parse(this.query)),b=b.slice(0,q)):t&&(this.search="",this.query={}),b&&(this.pathname=b),m[_]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){D=this.pathname||"";var $=this.search||"";this.path=D+$}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&"object"==typeof this.query&&Object.keys(this.query).length&&(o=y.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var a=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||m[t])&&!1!==i?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),r&&"#"!==r.charAt(0)&&(r="#"+r),a&&"?"!==a.charAt(0)&&(a="?"+a),t+i+(n=n.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(a=a.replace("#","%23"))+r},i.prototype.resolve=function(e){return this.resolveObject(function(e,t,n){if(e&&"object"==typeof e&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if("string"==typeof e){var t=new i;t.parse(e,!1,!0),e=t}for(var n=new i,r=Object.keys(this),o=0;o<r.length;o++){var a=r[o];n[a]=this[a]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),c=0;c<s.length;c++){var u=s[c];"protocol"!==u&&(n[u]=e[u])}return m[n.protocol]&&n.hostname&&!n.pathname&&(n.pathname="/",n.path=n.pathname),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!m[e.protocol]){for(var l=Object.keys(e),f=0;f<l.length;f++){var h=l[f];n[h]=e[h]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||g[e.protocol])n.pathname=e.pathname;else{for(var p=(e.pathname||"").split("/");p.length&&!(e.host=p.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),n.pathname=p.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var d=n.pathname||"",y=n.search||"";n.path=d+y}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var b=n.pathname&&"/"===n.pathname.charAt(0),v=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=v||b||n.host&&e.pathname,_=w,E=n.pathname&&n.pathname.split("/")||[],k=(p=e.pathname&&e.pathname.split("/")||[],n.protocol&&!m[n.protocol]);if(k&&(n.hostname="",n.port=null,n.host&&(""===E[0]?E[0]=n.host:E.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),w=w&&(""===p[0]||""===E[0])),v)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,E=p;else if(p.length)E||(E=[]),E.pop(),E=E.concat(p),n.search=e.search,n.query=e.query;else if(null!=e.search)return k&&(n.host=E.shift(),n.hostname=n.host,(R=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=R.shift(),n.hostname=R.shift(),n.host=n.hostname)),n.search=e.search,n.query=e.query,null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!E.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var x=E.slice(-1)[0],S=(n.host||e.host||E.length>1)&&("."===x||".."===x)||""===x,O=0,A=E.length;A>=0;A--)"."===(x=E[A])?E.splice(A,1):".."===x?(E.splice(A,1),O++):O&&(E.splice(A,1),O--);if(!w&&!_)for(;O--;O)E.unshift("..");!w||""===E[0]||E[0]&&"/"===E[0].charAt(0)||E.unshift(""),S&&"/"!==E.join("/").substr(-1)&&E.push("");var R,j=""===E[0]||E[0]&&"/"===E[0].charAt(0);return k&&(n.hostname=j?"":E.length?E.shift():"",n.host=n.hostname,(R=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=R.shift(),n.hostname=R.shift(),n.host=n.hostname)),(w=w||n.host&&E.length)&&!j&&E.unshift(""),E.length>0?n.pathname=E.join("/"):(n.pathname=null,n.path=null),null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=a.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},t.m9=e=>new URL("",e).pathname},8859:(e,t,n)=>{var r="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"==typeof i.get?i.get:null,a=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=s&&c&&"function"==typeof c.get?c.get:null,l=s&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,h="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,g=Object.prototype.toString,m=Function.prototype.toString,y=String.prototype.match,b=String.prototype.slice,v=String.prototype.replace,w=String.prototype.toUpperCase,_=String.prototype.toLowerCase,E=RegExp.prototype.test,k=Array.prototype.concat,x=Array.prototype.join,S=Array.prototype.slice,O=Math.floor,A="function"==typeof BigInt?BigInt.prototype.valueOf:null,R=Object.getOwnPropertySymbols,j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,T="function"==typeof Symbol&&"object"==typeof Symbol.iterator,I="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,M=Object.prototype.propertyIsEnumerable,L=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function B(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||E.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-O(-e):O(e);if(r!==e){var i=String(r),o=b.call(t,i.length+1);return v.call(i,n,"$&_")+"."+v.call(v.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,n,"$&_")}var C=n(2634),N=C.custom,P=Z(N)?N:null,D={__proto__:null,double:'"',single:"'"},F={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function U(e,t,n){var r=n.quoteStyle||t,i=D[r];return i+e+i}function z(e){return v.call(String(e),/"/g,""")}function W(e){return!I||!("object"==typeof e&&(I in e||void 0!==e[I]))}function q(e){return"[object Array]"===G(e)&&W(e)}function $(e){return"[object RegExp]"===G(e)&&W(e)}function Z(e){if(T)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!j)return!1;try{return j.call(e),!0}catch(e){}return!1}e.exports=function e(t,r,i,s){var c=r||{};if(V(c,"quoteStyle")&&!V(D,c.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(V(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var g=!V(c,"customInspect")||c.customInspect;if("boolean"!=typeof g&&"symbol"!==g)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(V(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(V(c,"numericSeparator")&&"boolean"!=typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=c.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return Y(t,c);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var E=String(t);return w?B(t,E):E}if("bigint"==typeof t){var O=String(t)+"n";return w?B(t,O):O}var R=void 0===c.depth?5:c.depth;if(void 0===i&&(i=0),i>=R&&R>0&&"object"==typeof t)return q(t)?"[Array]":"[Object]";var N,F=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=x.call(Array(e.indent+1)," ")}return{base:n,prev:x.call(Array(t+1),n)}}(c,i);if(void 0===s)s=[];else if(K(s,t)>=0)return"[Circular]";function H(t,n,r){if(n&&(s=S.call(s)).push(n),r){var o={depth:c.depth};return V(c,"quoteStyle")&&(o.quoteStyle=c.quoteStyle),e(t,o,i+1,s)}return e(t,c,i+1,s)}if("function"==typeof t&&!$(t)){var J=function(e){if(e.name)return e.name;var t=y.call(m.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),re=ne(t,H);return"[Function"+(J?": "+J:" (anonymous)")+"]"+(re.length>0?" { "+x.call(re,", ")+" }":"")}if(Z(t)){var ie=T?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):j.call(t);return"object"!=typeof t||T?ie:X(ie)}if((N=t)&&"object"==typeof N&&("undefined"!=typeof HTMLElement&&N instanceof HTMLElement||"string"==typeof N.nodeName&&"function"==typeof N.getAttribute)){for(var oe="<"+_.call(String(t.nodeName)),ae=t.attributes||[],se=0;se<ae.length;se++)oe+=" "+ae[se].name+"="+U(z(ae[se].value),"double",c);return oe+=">",t.childNodes&&t.childNodes.length&&(oe+="..."),oe+"</"+_.call(String(t.nodeName))+">"}if(q(t)){if(0===t.length)return"[]";var ce=ne(t,H);return F&&!function(e){for(var t=0;t<e.length;t++)if(K(e[t],"\n")>=0)return!1;return!0}(ce)?"["+te(ce,F)+"]":"[ "+x.call(ce,", ")+" ]"}if(function(e){return"[object Error]"===G(e)&&W(e)}(t)){var ue=ne(t,H);return"cause"in Error.prototype||!("cause"in t)||M.call(t,"cause")?0===ue.length?"["+String(t)+"]":"{ ["+String(t)+"] "+x.call(ue,", ")+" }":"{ ["+String(t)+"] "+x.call(k.call("[cause]: "+H(t.cause),ue),", ")+" }"}if("object"==typeof t&&g){if(P&&"function"==typeof t[P]&&C)return C(t,{depth:R-i});if("symbol"!==g&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var le=[];return a&&a.call(t,function(e,n){le.push(H(n,t,!0)+" => "+H(e,t))}),ee("Map",o.call(t),le,F)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{o.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var fe=[];return l&&l.call(t,function(e){fe.push(H(e,t))}),ee("Set",u.call(t),fe,F)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{h.call(e,h)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Q("WeakMap");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{h.call(e,h);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Q("WeakSet");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{return p.call(e),!0}catch(e){}return!1}(t))return Q("WeakRef");if(function(e){return"[object Number]"===G(e)&&W(e)}(t))return X(H(Number(t)));if(function(e){if(!e||"object"!=typeof e||!A)return!1;try{return A.call(e),!0}catch(e){}return!1}(t))return X(H(A.call(t)));if(function(e){return"[object Boolean]"===G(e)&&W(e)}(t))return X(d.call(t));if(function(e){return"[object String]"===G(e)&&W(e)}(t))return X(H(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==n.g&&t===n.g)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===G(e)&&W(e)}(t)&&!$(t)){var he=ne(t,H),pe=L?L(t)===Object.prototype:t instanceof Object||t.constructor===Object,de=t instanceof Object?"":"null prototype",ge=!pe&&I&&Object(t)===t&&I in t?b.call(G(t),8,-1):de?"Object":"",me=(pe||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(ge||de?"["+x.call(k.call([],ge||[],de||[]),": ")+"] ":"");return 0===he.length?me+"{}":F?me+"{"+te(he,F)+"}":me+"{ "+x.call(he,", ")+" }"}return String(t)};var H=Object.prototype.hasOwnProperty||function(e){return e in this};function V(e,t){return H.call(e,t)}function G(e){return g.call(e)}function K(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function Y(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return Y(b.call(e,0,t.maxStringLength),t)+r}var i=F[t.quoteStyle||"single"];return i.lastIndex=0,U(v.call(v.call(e,i,"\\$1"),/[\x00-\x1f]/g,J),"single",t)}function J(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function X(e){return"Object("+e+")"}function Q(e){return e+" { ? }"}function ee(e,t,n,r){return e+" ("+t+") {"+(r?te(n,r):x.call(n,", "))+"}"}function te(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+x.call(e,","+n)+"\n"+t.prev}function ne(e,t){var n=q(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=V(e,i)?t(e[i],e):""}var o,a="function"==typeof R?R(e):[];if(T){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var c in e)V(e,c)&&(n&&String(Number(c))===c&&c<e.length||T&&o["$"+c]instanceof Symbol||(E.call(/[^\w$]/,c)?r.push(t(c,e)+": "+t(e[c],e)):r.push(c+": "+t(e[c],e))));if("function"==typeof R)for(var u=0;u<a.length;u++)M.call(e,a[u])&&r.push("["+t(a[u])+"]: "+t(e[a[u]],e));return r}},8875:(e,t,n)=>{"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=n(1093),s=Object.prototype.propertyIsEnumerable,c=!s.call({toString:null},"toString"),u=s.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t=e.constructor;return t&&t.prototype===e},h={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!h["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{f(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===o.call(e),r=a(e),s=t&&"[object String]"===o.call(e),h=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var d=u&&n;if(s&&e.length>0&&!i.call(e,0))for(var g=0;g<e.length;++g)h.push(String(g));if(r&&e.length>0)for(var m=0;m<e.length;++m)h.push(String(m));else for(var y in e)d&&"prototype"===y||!i.call(e,y)||h.push(String(y));if(c)for(var b=function(e){if("undefined"==typeof window||!p)return f(e);try{return f(e)}catch(e){return!1}}(e),v=0;v<l.length;++v)b&&"constructor"===l[v]||!i.call(e,l[v])||h.push(l[v]);return h}}e.exports=r},8968:e=>{"use strict";e.exports=Math.floor},9032:(e,t,n)=>{"use strict";var r=n(7244),i=n(8184),o=n(5767),a=n(5680);function s(e){return e.call.bind(e)}var c="undefined"!=typeof BigInt,u="undefined"!=typeof Symbol,l=s(Object.prototype.toString),f=s(Number.prototype.valueOf),h=s(String.prototype.valueOf),p=s(Boolean.prototype.valueOf);if(c)var d=s(BigInt.prototype.valueOf);if(u)var g=s(Symbol.prototype.valueOf);function m(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function y(e){return"[object Map]"===l(e)}function b(e){return"[object Set]"===l(e)}function v(e){return"[object WeakMap]"===l(e)}function w(e){return"[object WeakSet]"===l(e)}function _(e){return"[object ArrayBuffer]"===l(e)}function E(e){return"undefined"!=typeof ArrayBuffer&&(_.working?_(e):e instanceof ArrayBuffer)}function k(e){return"[object DataView]"===l(e)}function x(e){return"undefined"!=typeof DataView&&(k.working?k(e):e instanceof DataView)}t.isArgumentsObject=r,t.isGeneratorFunction=i,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||x(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},y.working="undefined"!=typeof Map&&y(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(y.working?y(e):e instanceof Map)},b.working="undefined"!=typeof Set&&b(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(b.working?b(e):e instanceof Set)},v.working="undefined"!=typeof WeakMap&&v(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(v.working?v(e):e instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),t.isWeakSet=function(e){return w(e)},_.working="undefined"!=typeof ArrayBuffer&&_(new ArrayBuffer),t.isArrayBuffer=E,k.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&k(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=x;var S="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function O(e){return"[object SharedArrayBuffer]"===l(e)}function A(e){return void 0!==S&&(void 0===O.working&&(O.working=O(new S)),O.working?O(e):e instanceof S)}function R(e){return m(e,f)}function j(e){return m(e,h)}function T(e){return m(e,p)}function I(e){return c&&m(e,d)}function M(e){return u&&m(e,g)}t.isSharedArrayBuffer=A,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===l(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===l(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===l(e)},t.isGeneratorObject=function(e){return"[object Generator]"===l(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===l(e)},t.isNumberObject=R,t.isStringObject=j,t.isBooleanObject=T,t.isBigIntObject=I,t.isSymbolObject=M,t.isBoxedPrimitive=function(e){return R(e)||j(e)||T(e)||I(e)||M(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(E(e)||A(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})},9043:(e,t,n)=>{var r=n(5606),i=n(7007).EventEmitter,o=n(537).inherits,a=n(3493),s=n(3364),c=n(6841),u=n(7805).WriteError,l=n(7805).ReadError,f=n(7805).NotFoundError,h=n(7805).OpenError,p=n(7805).EncodingError,d=n(7805).InitializationError,g=n(8531),m=n(1068),y=n(2350),b=n(3324),v=y.getOptions,w=y.defaultOptions,_=y.getLevelDOWN,E=y.dispatchError;function k(e,t){return"function"==typeof e?e:t}function x(e,t,n){if(!(this instanceof x))return new x(e,t,n);var o;if(i.call(this),this.setMaxListeners(1/0),"function"==typeof e?((t="object"==typeof t?t:{}).db=e,e=null):"object"==typeof e&&"function"==typeof e.db&&(t=e,e=null),"function"==typeof t&&(n=t,t={}),(!t||"function"!=typeof t.db)&&"string"!=typeof e){if(o=new d("Must provide a location for the database"),n)return r.nextTick(function(){n(o)});throw o}t=v(this,t),this.options=a(w,t),this._status="new",s(this,"location",e,"e"),this.open(n)}function S(e){return function(t,n){_()[e](t,n||function(){})}}o(x,i),x.prototype.open=function(e){var t,n,i=this;return this.isOpen()?(e&&r.nextTick(function(){e(null,i)}),this):this._isOpening()?e&&this.once("open",function(){e(null,i)}):(this.emit("opening"),this._status="opening",this.db=new c(this.location),t=this.options.db||_(),void(n=t(this.location)).open(this.options,function(t){if(t)return E(i,new h(t),e);i.db.setDb(n),i.db=n,i._status="open",e&&e(null,i),i.emit("open"),i.emit("ready")}))},x.prototype.close=function(e){var t=this;if(this.isOpen())this._status="closing",this.db.close(function(){t._status="closed",t.emit("closed"),e&&e.apply(null,arguments)}),this.emit("closing"),this.db=null;else{if("closed"==this._status&&e)return r.nextTick(e);"closing"==this._status&&e?this.once("closed",e):this._isOpening()&&this.once("open",function(){t.close(e)})}},x.prototype.isOpen=function(){return"open"==this._status},x.prototype._isOpening=function(){return"opening"==this._status},x.prototype.isClosed=function(){return/^clos/.test(this._status)},x.prototype.get=function(e,t,n){var r,i=this;return"function"!=typeof(n=k(t,n))?E(this,new l("get() requires key and callback arguments")):this._isOpening()||this.isOpen()?(t=y.getOptions(this,t),r=y.encodeKey(e,t),t.asBuffer=y.isValueAsBuffer(t),void this.db.get(r,t,function(r,o){if(r)return r=/notfound/i.test(r)?new f("Key not found in database ["+e+"]",r):new l(r),E(i,r,n);if(n){try{o=y.decodeValue(o,t)}catch(e){return n(new p(e))}n(null,o)}})):E(this,new l("Database is not open"),n)},x.prototype.put=function(e,t,n,r){var i,o,a=this;return r=k(n,r),null==e||null==t?E(this,new u("put() requires key and value arguments"),r):this._isOpening()||this.isOpen()?(n=v(this,n),i=y.encodeKey(e,n),o=y.encodeValue(t,n),void this.db.put(i,o,n,function(n){if(n)return E(a,new u(n),r);a.emit("put",e,t),r&&r()})):E(this,new u("Database is not open"),r)},x.prototype.del=function(e,t,n){var r,i=this;return n=k(t,n),null==e?E(this,new u("del() requires a key argument"),n):this._isOpening()||this.isOpen()?(t=v(this,t),r=y.encodeKey(e,t),void this.db.del(r,t,function(t){if(t)return E(i,new u(t),n);i.emit("del",e),n&&n()})):E(this,new u("Database is not open"),n)},x.prototype.batch=function(e,t,n){var r,i,o,a=this;return arguments.length?(n=k(t,n),Array.isArray(e)?this._isOpening()||this.isOpen()?(t=v(this,t),r=t.keyEncoding,i=t.valueEncoding,o=e.map(function(e){if(void 0===e.type||void 0===e.key)return{};var n,o=e.keyEncoding||r,a=e.valueEncoding||e.encoding||i;return"utf8"!=o&&"binary"!=o||"utf8"!=a&&"binary"!=a?(n={type:e.type,key:y.encodeKey(e.key,t,e)},void 0!==e.value&&(n.value=y.encodeValue(e.value,t,e)),n):e}),void this.db.batch(o,t,function(t){if(t)return E(a,new u(t),n);a.emit("batch",e),n&&n()})):E(this,new u("Database is not open"),n):E(this,new u("batch() requires an array argument"),n)):new b(this)},x.prototype.approximateSize=function(e,t,n){var r,i,o=this;return null==e||null==t||"function"!=typeof n?E(this,new l("approximateSize() requires start, end and callback arguments"),n):(r=y.encodeKey(e,this.options),i=y.encodeKey(t,this.options),this._isOpening()||this.isOpen()?void this.db.approximateSize(r,i,function(e,t){if(e)return E(o,new h(e),n);n&&n(null,t)}):E(this,new u("Database is not open"),n))},x.prototype.readStream=x.prototype.createReadStream=function(e){var t=this;return e=a(this.options,e),new g(e,this,function(e){return t.db.iterator(e)})},x.prototype.keyStream=x.prototype.createKeyStream=function(e){return this.createReadStream(a(e,{keys:!0,values:!1}))},x.prototype.valueStream=x.prototype.createValueStream=function(e){return this.createReadStream(a(e,{keys:!1,values:!0}))},x.prototype.writeStream=x.prototype.createWriteStream=function(e){return new m(a(e),this)},x.prototype.toString=function(){return"LevelUP"},e.exports=x,e.exports.copy=y.copy,e.exports.destroy=S("destroy"),e.exports.repair=S("repair")},9092:(e,t,n)=>{"use strict";var r=n(1333);e.exports=function(){return r()&&!!Symbol.toStringTag}},9133:(e,t,n)=>{"use strict";var r=n(8403);e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),n={},r=0;r<t.length;++r)n[t[r]]=t[r];var i=Object.assign({},n),o="";for(var a in i)o+=a;return e!==o}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return"y"===e[1]}return!1}()?r:Object.assign:r}},9209:(e,t,n)=>{"use strict";var r=n(6578),i="undefined"==typeof globalThis?n.g:globalThis;e.exports=function(){for(var e=[],t=0;t<r.length;t++)"function"==typeof i[r[t]]&&(e[e.length]=r[t]);return e}},9211:e=>{"use strict";var t=function(e){return e!=e};e.exports=function(e,n){return 0===e&&0===n?1/e==1/n:e===n||!(!t(e)||!t(n))}},9234:(e,t,n)=>{var r=n(8287).Buffer,i=r.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},o=t.I=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!i(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=s;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=c;break;default:return void(this.write=a)}this.charBuffer=new r(6),this.charReceived=0,this.charLength=0};function a(e){return e.toString(this.encoding)}function s(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function c(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}o.prototype.write=function(e){for(var t="";this.charLength;){var n=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived<this.charLength)return"";if(e=e.slice(n,e.length),!((r=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&r<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var r,i=e.length;if(this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),i=(t+=e.toString(this.encoding,0,i)).length-1,(r=t.charCodeAt(i))>=55296&&r<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},o.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},o.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,r=this.charBuffer,i=this.encoding;t+=r.slice(0,n).toString(i)}return t}},9278:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},9290:e=>{"use strict";e.exports=RangeError},9353:e=>{"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n};e.exports=function(e){var i=this;if("function"!=typeof i||"[object Function]"!==t.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var o,a=function(e){for(var t=[],n=1,r=0;n<e.length;n+=1,r+=1)t[r]=e[n];return t}(arguments),s=n(0,i.length-a.length),c=[],u=0;u<s;u++)c[u]="$"+u;if(o=Function("binder","return function ("+function(e){for(var t="",n=0;n<e.length;n+=1)t+=e[n],n+1<e.length&&(t+=",");return t}(c)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof o){var t=i.apply(this,r(a,arguments));return Object(t)===t?t:this}return i.apply(e,r(a,arguments))}),i.prototype){var l=function(){};l.prototype=i.prototype,o.prototype=new l,l.prototype=null}return o}},9383:e=>{"use strict";e.exports=Error},9394:(e,t,n)=>{"use strict";var r=n(9211);e.exports=function(){return"function"==typeof Object.is?Object.is:r}},9435:e=>{"use strict";e.exports=JSON.parse('{"rh":{"j9":"~0.10.0"}}')},9538:e=>{"use strict";e.exports=ReferenceError},9597:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}var a,s,c={};function u(e,t,n){n||(n=Error);var a=function(n){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(l,n);var a,s,c,u=(s=l,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=o(s);if(c){var n=o(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function l(n,r,i){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),o=u.call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,r,i)),o.code=e,o}return a=l,Object.defineProperty(a,"prototype",{writable:!1}),a}(n);c[e]=a}function l(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(e){return String(e)}),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}u("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),u("ERR_INVALID_ARG_TYPE",function(e,t,i){var o,s,c,u,f;if(void 0===a&&(a=n(4148)),a("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(s="not ",t.substr(0,4)===s)?(o="must not be",t=t.replace(/^not /,"")):o="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-9,n)===t}(e," argument"))c="The ".concat(e," ").concat(o," ").concat(l(t,"type"));else{var h=("number"!=typeof f&&(f=0),f+1>(u=e).length||-1===u.indexOf(".",f)?"argument":"property");c='The "'.concat(e,'" ').concat(h," ").concat(o," ").concat(l(t,"type"))}return c+". Received type ".concat(r(i))},TypeError),u("ERR_INVALID_ARG_VALUE",function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===s&&(s=n(537));var i=s.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(i)},TypeError,RangeError),u("ERR_INVALID_RETURN_VALUE",function(e,t,n){var i;return i=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(r(n)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")},TypeError),u("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];void 0===a&&(a=n(4148)),a(t.length>0,"At least one arg needs to be specified");var i="The ",o=t.length;switch(t=t.map(function(e){return'"'.concat(e,'"')}),o){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,o-1).join(", "),i+=", and ".concat(t[o-1]," arguments")}return"".concat(i," must be specified")},TypeError),e.exports.codes=c},9600:e=>{"use strict";var t,n,r=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},i(function(){throw 42},null,t)}catch(e){e!==n&&(i=null)}else i=null;var o=/^\s*class\b/,a=function(e){try{var t=r.call(e);return o.test(t)}catch(e){return!1}},s=function(e){try{return!a(e)&&(r.call(e),!0)}catch(e){return!1}},c=Object.prototype.toString,u="function"==typeof Symbol&&!!Symbol.toStringTag,l=!(0 in[,]),f=function(){return!1};if("object"==typeof document){var h=document.all;c.call(h)===c.call(document.all)&&(f=function(e){if((l||!e)&&(void 0===e||"object"==typeof e))try{var t=c.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=i?function(e){if(f(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{i(e,null,t)}catch(e){if(e!==n)return!1}return!a(e)&&s(e)}:function(e){if(f(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(u)return s(e);if(a(e))return!1;var t=c.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)}},9612:e=>{"use strict";e.exports=Object},9655:function(e,t,n){var r;e=n.nmd(e),function(){t&&t.nodeType,e&&e.nodeType;var i="object"==typeof n.g&&n.g;i.global!==i&&i.window!==i&&i.self;var o,a=2147483647,s=36,c=/^xn--/,u=/[^\x20-\x7E]/,l=/[\x2E\u3002\uFF0E\uFF61]/g,f={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},h=Math.floor,p=String.fromCharCode;function d(e){throw new RangeError(f[e])}function g(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function m(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+g((e=e.replace(l,".")).split("."),t).join(".")}function y(e){for(var t,n,r=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function b(e){return g(e,function(e){var t="";return e>65535&&(t+=p((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+p(e)}).join("")}function v(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:s}function w(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function _(e,t,n){var r=0;for(e=n?h(e/700):e>>1,e+=h(e/t);e>455;r+=s)e=h(e/35);return h(r+36*e/(e+38))}function E(e){var t,n,r,i,o,c,u,l,f,p,g=[],m=e.length,y=0,w=128,E=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&d("not-basic"),g.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<m;){for(o=y,c=1,u=s;i>=m&&d("invalid-input"),((l=v(e.charCodeAt(i++)))>=s||l>h((a-y)/c))&&d("overflow"),y+=l*c,!(l<(f=u<=E?1:u>=E+26?26:u-E));u+=s)c>h(a/(p=s-f))&&d("overflow"),c*=p;E=_(y-o,t=g.length+1,0==o),h(y/t)>a-w&&d("overflow"),w+=h(y/t),y%=t,g.splice(y++,0,w)}return b(g)}function k(e){var t,n,r,i,o,c,u,l,f,g,m,b,v,E,k,x=[];for(b=(e=y(e)).length,t=128,n=0,o=72,c=0;c<b;++c)(m=e[c])<128&&x.push(p(m));for(r=i=x.length,i&&x.push("-");r<b;){for(u=a,c=0;c<b;++c)(m=e[c])>=t&&m<u&&(u=m);for(u-t>h((a-n)/(v=r+1))&&d("overflow"),n+=(u-t)*v,t=u,c=0;c<b;++c)if((m=e[c])<t&&++n>a&&d("overflow"),m==t){for(l=n,f=s;!(l<(g=f<=o?1:f>=o+26?26:f-o));f+=s)k=l-g,E=s-g,x.push(p(w(g+k%E,0))),l=h(k/E);x.push(p(w(l,0))),o=_(n,v,r==i),n=0,++r}++n,++t}return x.join("")}o={version:"1.4.1",ucs2:{decode:y,encode:b},decode:E,encode:k,toASCII:function(e){return m(e,function(e){return u.test(e)?"xn--"+k(e):e})},toUnicode:function(e){return m(e,function(e){return c.test(e)?E(e.slice(4).toLowerCase()):e})}},void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)}()},9656:(e,t)=>{var n,r,i,o=void 0,a=(n=Object.prototype.toString,r=Object.prototype.hasOwnProperty,{Class:function(e){return n.call(e).replace(/^\[object *|\]$/g,"")},HasProperty:function(e,t){return t in e},HasOwnProperty:function(e,t){return r.call(e,t)},IsCallable:function(e){return"function"==typeof e},ToInt32:function(e){return 0|e},ToUint32:function(e){return e>>>0}}),s=Math.LN2,c=Math.abs,u=Math.floor,l=Math.log,f=Math.min,h=Math.pow,p=Math.round;function d(e){if(g&&i){var t,n=g(e);for(t=0;t<n.length;t+=1)i(e,n[t],{value:e[n[t]],writable:!1,enumerable:!1,configurable:!1})}}i=Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()?Object.defineProperty:function(e,t,n){if(!e===Object(e))throw new TypeError("Object.defineProperty called on non-object");return a.HasProperty(n,"get")&&Object.prototype.__defineGetter__&&Object.prototype.__defineGetter__.call(e,t,n.get),a.HasProperty(n,"set")&&Object.prototype.__defineSetter__&&Object.prototype.__defineSetter__.call(e,t,n.set),a.HasProperty(n,"value")&&(e[t]=n.value),e};var g=Object.getOwnPropertyNames||function(e){if(e!==Object(e))throw new TypeError("Object.getOwnPropertyNames called on non-object");var t,n=[];for(t in e)a.HasOwnProperty(e,t)&&n.push(t);return n};function m(e,t){var n=32-t;return e<<n>>n}function y(e,t){var n=32-t;return e<<n>>>n}function b(e){return[255&e]}function v(e){return m(e[0],8)}function w(e){return[255&e]}function _(e){return y(e[0],8)}function E(e){return[(e=p(Number(e)))<0?0:e>255?255:255&e]}function k(e){return[e>>8&255,255&e]}function x(e){return m(e[0]<<8|e[1],16)}function S(e){return[e>>8&255,255&e]}function O(e){return y(e[0]<<8|e[1],16)}function A(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}function R(e){return m(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function j(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}function T(e){return y(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function I(e,t,n){var r,i,o,a,p,d,g,m=(1<<t-1)-1;function y(e){var t=u(e),n=e-t;return n<.5?t:n>.5||t%2?t+1:t}for(e!=e?(i=(1<<t)-1,o=h(2,n-1),r=0):e===1/0||e===-1/0?(i=(1<<t)-1,o=0,r=e<0?1:0):0===e?(i=0,o=0,r=1/e==-1/0?1:0):(r=e<0,(e=c(e))>=h(2,1-m)?(i=f(u(l(e)/s),1023),(o=y(e/h(2,i)*h(2,n)))/h(2,n)>=2&&(i+=1,o=1),i>m?(i=(1<<t)-1,o=0):(i+=m,o-=h(2,n))):(i=0,o=y(e/h(2,1-m-n)))),p=[],a=n;a;a-=1)p.push(o%2?1:0),o=u(o/2);for(a=t;a;a-=1)p.push(i%2?1:0),i=u(i/2);for(p.push(r?1:0),p.reverse(),d=p.join(""),g=[];d.length;)g.push(parseInt(d.substring(0,8),2)),d=d.substring(8);return g}function M(e,t,n){var r,i,o,a,s,c,u,l,f=[];for(r=e.length;r;r-=1)for(o=e[r-1],i=8;i;i-=1)f.push(o%2?1:0),o>>=1;return f.reverse(),a=f.join(""),s=(1<<t-1)-1,c=parseInt(a.substring(0,1),2)?-1:1,u=parseInt(a.substring(1,1+t),2),l=parseInt(a.substring(1+t),2),u===(1<<t)-1?0!==l?NaN:c*(1/0):u>0?c*h(2,u-s)*(1+l/h(2,n)):0!==l?c*h(2,-(s-1))*(l/h(2,n)):c<0?-0:0}function L(e){return M(e,11,52)}function B(e){return I(e,11,52)}function C(e){return M(e,8,23)}function N(e){return I(e,8,23)}!function(){var e=function(e){if((e=a.ToInt32(e))<0)throw new RangeError("ArrayBuffer size is not a small enough positive integer");var t;for(this.byteLength=e,this._bytes=[],this._bytes.length=e,t=0;t<this.byteLength;t+=1)this._bytes[t]=0;d(this)};t.Az=t.Az||e;var n=function(){};function r(t,r,s){var c;return c=function(t,n,r){var o,s,u,l;if(arguments.length&&"number"!=typeof arguments[0])if("object"==typeof arguments[0]&&arguments[0].constructor===c)for(o=arguments[0],this.length=o.length,this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new e(this.byteLength),this.byteOffset=0,u=0;u<this.length;u+=1)this._setter(u,o._getter(u));else if("object"!=typeof arguments[0]||arguments[0]instanceof e||"ArrayBuffer"===a.Class(arguments[0])){if("object"!=typeof arguments[0]||!(arguments[0]instanceof e||"ArrayBuffer"===a.Class(arguments[0])))throw new TypeError("Unexpected argument type(s)");if(this.buffer=t,this.byteOffset=a.ToUint32(n),this.byteOffset>this.buffer.byteLength)throw new RangeError("byteOffset out of range");if(this.byteOffset%this.BYTES_PER_ELEMENT)throw new RangeError("ArrayBuffer length minus the byteOffset is not a multiple of the element size.");if(arguments.length<3){if(this.byteLength=this.buffer.byteLength-this.byteOffset,this.byteLength%this.BYTES_PER_ELEMENT)throw new RangeError("length of buffer minus byteOffset not a multiple of the element size");this.length=this.byteLength/this.BYTES_PER_ELEMENT}else this.length=a.ToUint32(r),this.byteLength=this.length*this.BYTES_PER_ELEMENT;if(this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer")}else for(s=arguments[0],this.length=a.ToUint32(s.length),this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new e(this.byteLength),this.byteOffset=0,u=0;u<this.length;u+=1)l=s[u],this._setter(u,Number(l));else{if(this.length=a.ToInt32(arguments[0]),r<0)throw new RangeError("ArrayBufferView size is not a small enough positive integer");this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new e(this.byteLength),this.byteOffset=0}this.constructor=c,d(this),function(e){if(i){if(e.length>1e5)throw new RangeError("Array too large for polyfill");var t;for(t=0;t<e.length;t+=1)n(t)}function n(t){i(e,t,{get:function(){return e._getter(t)},set:function(n){e._setter(t,n)},enumerable:!0,configurable:!1})}}(this)},c.prototype=new n,c.prototype.BYTES_PER_ELEMENT=t,c.prototype._pack=r,c.prototype._unpack=s,c.BYTES_PER_ELEMENT=t,c.prototype._getter=function(e){if(arguments.length<1)throw new SyntaxError("Not enough arguments");if((e=a.ToUint32(e))>=this.length)return o;var t,n,r=[];for(t=0,n=this.byteOffset+e*this.BYTES_PER_ELEMENT;t<this.BYTES_PER_ELEMENT;t+=1,n+=1)r.push(this.buffer._bytes[n]);return this._unpack(r)},c.prototype.get=c.prototype._getter,c.prototype._setter=function(e,t){if(arguments.length<2)throw new SyntaxError("Not enough arguments");if((e=a.ToUint32(e))>=this.length)return o;var n,r,i=this._pack(t);for(n=0,r=this.byteOffset+e*this.BYTES_PER_ELEMENT;n<this.BYTES_PER_ELEMENT;n+=1,r+=1)this.buffer._bytes[r]=i[n]},c.prototype.set=function(e,t){if(arguments.length<1)throw new SyntaxError("Not enough arguments");var n,r,i,o,s,c,u,l,f,h;if("object"==typeof arguments[0]&&arguments[0].constructor===this.constructor){if(n=arguments[0],(i=a.ToUint32(arguments[1]))+n.length>this.length)throw new RangeError("Offset plus length of array is out of range");if(l=this.byteOffset+i*this.BYTES_PER_ELEMENT,f=n.length*this.BYTES_PER_ELEMENT,n.buffer===this.buffer){for(h=[],s=0,c=n.byteOffset;s<f;s+=1,c+=1)h[s]=n.buffer._bytes[c];for(s=0,u=l;s<f;s+=1,u+=1)this.buffer._bytes[u]=h[s]}else for(s=0,c=n.byteOffset,u=l;s<f;s+=1,c+=1,u+=1)this.buffer._bytes[u]=n.buffer._bytes[c]}else{if("object"!=typeof arguments[0]||void 0===arguments[0].length)throw new TypeError("Unexpected argument type(s)");if(r=arguments[0],o=a.ToUint32(r.length),(i=a.ToUint32(arguments[1]))+o>this.length)throw new RangeError("Offset plus length of array is out of range");for(s=0;s<o;s+=1)c=r[s],this._setter(i+s,Number(c))}},c.prototype.subarray=function(e,t){function n(e,t,n){return e<t?t:e>n?n:e}e=a.ToInt32(e),t=a.ToInt32(t),arguments.length<1&&(e=0),arguments.length<2&&(t=this.length),e<0&&(e=this.length+e),t<0&&(t=this.length+t),e=n(e,0,this.length);var r=(t=n(t,0,this.length))-e;return r<0&&(r=0),new this.constructor(this.buffer,this.byteOffset+e*this.BYTES_PER_ELEMENT,r)},c}var s=r(1,b,v),c=r(1,w,_),u=r(1,E,_),l=r(2,k,x),f=r(2,S,O),h=r(4,A,R),p=r(4,j,T),g=r(4,N,C),m=r(8,B,L);t.fo=t.fo||s,t.SE=t.SE||c,t.ER=t.ER||u,t.ss=t.ss||l,t.hR=t.hR||f,t.GM=t.GM||h,t.bt=t.bt||p,t.l6=t.l6||g,t.aQ=t.aQ||m}(),function(){function e(e,t){return a.IsCallable(e.get)?e.get(t):e[t]}var n,r=(n=new t.hR([4660]),18===e(new t.SE(n.buffer),0)),i=function(e,n,r){if(0===arguments.length)e=new t.Az(0);else if(!(e instanceof t.Az||"ArrayBuffer"===a.Class(e)))throw new TypeError("TypeError");if(this.buffer=e||new t.Az(0),this.byteOffset=a.ToUint32(n),this.byteOffset>this.buffer.byteLength)throw new RangeError("byteOffset out of range");if(this.byteLength=arguments.length<3?this.buffer.byteLength-this.byteOffset:a.ToUint32(r),this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer");d(this)};function o(n){return function(i,o){if((i=a.ToUint32(i))+n.BYTES_PER_ELEMENT>this.byteLength)throw new RangeError("Array index out of range");i+=this.byteOffset;var s,c=new t.SE(this.buffer,i,n.BYTES_PER_ELEMENT),u=[];for(s=0;s<n.BYTES_PER_ELEMENT;s+=1)u.push(e(c,s));return Boolean(o)===Boolean(r)&&u.reverse(),e(new n(new t.SE(u).buffer),0)}}function s(n){return function(i,o,s){if((i=a.ToUint32(i))+n.BYTES_PER_ELEMENT>this.byteLength)throw new RangeError("Array index out of range");var c,u=new n([o]),l=new t.SE(u.buffer),f=[];for(c=0;c<n.BYTES_PER_ELEMENT;c+=1)f.push(e(l,c));Boolean(s)===Boolean(r)&&f.reverse(),new t.SE(this.buffer,i,n.BYTES_PER_ELEMENT).set(f)}}i.prototype.getUint8=o(t.SE),i.prototype.getInt8=o(t.fo),i.prototype.getUint16=o(t.hR),i.prototype.getInt16=o(t.ss),i.prototype.getUint32=o(t.bt),i.prototype.getInt32=o(t.GM),i.prototype.getFloat32=o(t.l6),i.prototype.getFloat64=o(t.aQ),i.prototype.setUint8=s(t.SE),i.prototype.setInt8=s(t.fo),i.prototype.setUint16=s(t.hR),i.prototype.setInt16=s(t.ss),i.prototype.setUint32=s(t.bt),i.prototype.setInt32=s(t.GM),i.prototype.setFloat32=s(t.l6),i.prototype.setFloat64=s(t.aQ),t.U$=t.U$||i}()},9661:e=>{var t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=function(e){return e!=e},o={boolean:1,number:1,string:1,undefined:1},a=e.exports={};a.a=a.type=function(e,t){return typeof e===t},a.defined=function(e){return void 0!==e},a.empty=function(e){var t,i=r.call(e);if("[object Array]"===i||"[object Arguments]"===i)return 0===e.length;if("[object Object]"===i){for(t in e)if(n.call(e,t))return!1;return!0}return"[object String]"===i&&""===e},a.equal=function(e,t){var n,i=r.call(e);if(i!==r.call(t))return!1;if("[object Object]"===i){for(n in e)if(!a.equal(e[n],t[n]))return!1;return!0}if("[object Array]"===i){if((n=e.length)!==t.length)return!1;for(;--n;)if(!a.equal(e[n],t[n]))return!1;return!0}return"[object Function]"===i?e.prototype===t.prototype:"[object Date]"===i?e.getTime()===t.getTime():e===t},a.hosted=function(e,t){var n=typeof t[e];return"object"===n?!!t[e]:!o[n]},a.instance=a.instanceof=function(e,t){return e instanceof t},a.null=function(e){return null===e},a.undefined=function(e){return void 0===e},a.arguments=function(e){var t="[object Arguments]"===r.call(e),n=!a.array(e)&&a.arraylike(e)&&a.object(e)&&a.fn(e.callee);return t||n},a.array=function(e){return"[object Array]"===r.call(e)},a.arguments.empty=function(e){return a.arguments(e)&&0===e.length},a.array.empty=function(e){return a.array(e)&&0===e.length},a.arraylike=function(e){return!!e&&!a.boolean(e)&&n.call(e,"length")&&isFinite(e.length)&&a.number(e.length)&&e.length>=0},a.boolean=function(e){return"[object Boolean]"===r.call(e)},a.false=function(e){return a.boolean(e)&&(!1===e||!1===e.valueOf())},a.true=function(e){return a.boolean(e)&&(!0===e||!0===e.valueOf())},a.date=function(e){return"[object Date]"===r.call(e)},a.element=function(e){return void 0!==e&&"undefined"!=typeof HTMLElement&&e instanceof HTMLElement&&1===e.nodeType},a.error=function(e){return"[object Error]"===r.call(e)},a.fn=a.function=function(e){return"undefined"!=typeof window&&e===window.alert||"[object Function]"===r.call(e)},a.number=function(e){return"[object Number]"===r.call(e)},a.infinite=function(e){return e===1/0||e===-1/0},a.decimal=function(e){return a.number(e)&&!i(e)&&!a.infinite(e)&&e%1!=0},a.divisibleBy=function(e,t){var n=a.infinite(e),r=a.infinite(t),o=a.number(e)&&!i(e)&&a.number(t)&&!i(t)&&0!==t;return n||r||o&&e%t===0},a.int=function(e){return a.number(e)&&!i(e)&&e%1==0},a.maximum=function(e,t){if(i(e))throw new TypeError("NaN is not a valid value");if(!a.arraylike(t))throw new TypeError("second argument must be array-like");for(var n=t.length;--n>=0;)if(e<t[n])return!1;return!0},a.minimum=function(e,t){if(i(e))throw new TypeError("NaN is not a valid value");if(!a.arraylike(t))throw new TypeError("second argument must be array-like");for(var n=t.length;--n>=0;)if(e>t[n])return!1;return!0},a.nan=function(e){return!a.number(e)||e!=e},a.even=function(e){return a.infinite(e)||a.number(e)&&e==e&&e%2==0},a.odd=function(e){return a.infinite(e)||a.number(e)&&e==e&&e%2!=0},a.ge=function(e,t){if(i(e)||i(t))throw new TypeError("NaN is not a valid value");return!a.infinite(e)&&!a.infinite(t)&&e>=t},a.gt=function(e,t){if(i(e)||i(t))throw new TypeError("NaN is not a valid value");return!a.infinite(e)&&!a.infinite(t)&&e>t},a.le=function(e,t){if(i(e)||i(t))throw new TypeError("NaN is not a valid value");return!a.infinite(e)&&!a.infinite(t)&&e<=t},a.lt=function(e,t){if(i(e)||i(t))throw new TypeError("NaN is not a valid value");return!a.infinite(e)&&!a.infinite(t)&&e<t},a.within=function(e,t,n){if(i(e)||i(t)||i(n))throw new TypeError("NaN is not a valid value");if(!a.number(e)||!a.number(t)||!a.number(n))throw new TypeError("all arguments must be numbers");return a.infinite(e)||a.infinite(t)||a.infinite(n)||e>=t&&e<=n},a.object=function(e){return e&&"[object Object]"===r.call(e)},a.hash=function(e){return a.object(e)&&e.constructor===Object&&!e.nodeType&&!e.setInterval},a.regexp=function(e){return"[object RegExp]"===r.call(e)},a.string=function(e){return"[object String]"===r.call(e)}},9675:e=>{"use strict";e.exports=TypeError},9681:e=>{"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},9721:(e,t,n)=>{"use strict";var r=n(6556),i=n(4035),o=r("RegExp.prototype.exec"),a=n(9675);e.exports=function(e){if(!i(e))throw new a("`regex` must be a RegExp");return function(t){return null!==o(e,t)}}},9723:function(e){var t;t=function(){var e="function"==typeof Object.defineProperty?function(e,t,n){return Object.defineProperty(e,t,n),e}:function(e,t,n){return e[t]=n.value,e};return function(t,n,r,i){var o;if(i=function(e,t){var n="object"==typeof t,r=!n&&"string"==typeof t,i=function(e){return n?!!t[e]:!!r&&t.indexOf(e[0])>-1};return{enumerable:i("enumerable"),configurable:i("configurable"),writable:i("writable"),value:e}}(r,i),"object"==typeof n){for(o in n)Object.hasOwnProperty.call(n,o)&&(i.value=n[o],e(t,o,i));return t}return e(t,n,i)}},e.exports?e.exports=t():this.prr=t()},9731:(e,t,n)=>{e.exports=Object.keys||n(7274)},9805:(e,t)=>{"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var i in n)r(n,i)&&(e[i]=n[i])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){var t,n,r,i,o,a;for(r=0,t=0,n=e.length;t<n;t++)r+=e[t].length;for(a=new Uint8Array(r),i=0,t=0,n=e.length;t<n;t++)o=e[t],a.set(o,i),i+=o.length;return a}},o={arraySet:function(e,t,n,r,i){for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){return[].concat.apply([],e)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,i)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,o))},t.setTyped(n)},9816:(e,t,n)=>{e.exports=a;var r=n(5240),i=n(5622);function o(e,t){this.afterTransform=function(e,n){return function(e,t,n){var r=e._transformState;r.transforming=!1;var i=r.writecb;if(!i)return e.emit("error",new Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,null!=n&&e.push(n),i&&i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}(t,e,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function a(e){if(!(this instanceof a))return new a(e);r.call(this,e),this._transformState=new o(e,this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,this.once("finish",function(){"function"==typeof this._flush?this._flush(function(e){s(t,e)}):s(t)})}function s(e,t){if(t)return e.emit("error",t);var n=e._writableState,r=(e._readableState,e._transformState);if(n.length)throw new Error("calling transform done when ws.length != 0");if(r.transforming)throw new Error("calling transform done when still transforming");return e.push(null)}i.inherits=n(6698),i.inherits(a,r),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,n){throw new Error("not implemented")},a.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0}},9838:()=>{},9957:(e,t,n)=>{"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=n(6743);e.exports=o.call(r,i)}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var o=r[e]={id:e,loaded:!1,exports:{}};return n[e].call(o.exports,o,o.exports,i),o.loaded=!0,o.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var o=Object.create(null);i.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;("object"==typeof s||"function"==typeof s)&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach(e=>a[e]=()=>n[e]);return a.default=()=>n,i.d(o,a),o},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";var e={};i.r(e),i.d(e,{MAX:()=>l,NIL:()=>f,parse:()=>d,stringify:()=>y,v1:()=>k,v1ToV6:()=>x,v3:()=>P,v4:()=>F,v5:()=>$,v6:()=>Z,v6ToV1:()=>H,v7:()=>K,validate:()=>p,version:()=>Y});var t={};i.r(t),i.d(t,{__:()=>Qe,analyzeModule:()=>pn,arrayEqual:()=>Ot,assembleApiUrl:()=>ze,assembleBuffer:()=>it,assembleUrl:()=>bt,assertArray:()=>Mt,assertBuffer:()=>Nt,assertDate:()=>It,assertEmail:()=>At,assertFunction:()=>Ct,assertModule:()=>Bt,assertObject:()=>Lt,assertSet:()=>Tt,assertUrl:()=>jt,assertUuid:()=>Rt,asyncTimeout:()=>wt,base64Decode:()=>Ie,base64Encode:()=>Te,base64Pack:()=>Be,base64Unpack:()=>Ce,basename:()=>Ye,byteToHexString:()=>xt,call:()=>fe,checkChance:()=>Je,checkInterval:()=>nn,clarify:()=>Ve,clone:()=>tt,convertBase:()=>Re,convertFrom16to10:()=>je,countKeys:()=>gn,deepCleanBigInt:()=>rt,distill:()=>nt,ensureArray:()=>at,ensureDate:()=>lt,ensureInt:()=>st,ensureLines:()=>$e,ensureString:()=>ut,escapeHtml:()=>cn,exclude:()=>mn,extError:()=>ve,extract:()=>kt,fileURLToPath:()=>te.m9,fullLengthLog:()=>Kt,getDateByUnixTimestamp:()=>ge,getFuncParams:()=>hn,getItemFromStringOrArray:()=>dt,getKeyByValue:()=>Pt,getRandomIndexInArray:()=>ht,getRandomInt:()=>ye,getRandomItemInArray:()=>pt,getShortestInArray:()=>St,getTimeIcon:()=>wn,getType:()=>gt,getUnixTimestampByDate:()=>me,hexDecode:()=>Le,hexEncode:()=>Me,humanReadableBoolean:()=>Ht,ignoreErrFunc:()=>rn,inBrowser:()=>yn,insensitiveCompare:()=>Wt,insensitiveHas:()=>qt,is:()=>ke,isAscii:()=>sn,isModule:()=>Se,isNull:()=>Oe,isSet:()=>Ae,isUndefined:()=>xe,lastItem:()=>He,lineSplit:()=>Yt,locate:()=>Ft,log:()=>Dt,makeStringByLength:()=>$t,mapKeys:()=>ot,mask:()=>ln,matchVersion:()=>Gt,mergeAtoB:()=>zt,need:()=>dn,newError:()=>we,once:()=>fn,parseJson:()=>Et,parseVersion:()=>Vt,prettyJson:()=>vt,purgeEmoji:()=>un,randomArray:()=>be,range:()=>tn,renderBox:()=>en,renderCode:()=>Jt,renderObject:()=>Xt,renderText:()=>Qt,resolve:()=>Ue,reverseKeyValues:()=>_n,rotate:()=>Zt,shiftTime:()=>qe,split:()=>an,splitArgs:()=>vn,supportAnsiColor:()=>bn,throwError:()=>_e,timeout:()=>Pe,toExponential:()=>Ne,toString:()=>ct,trim:()=>De,tryUntil:()=>on,uniqueArray:()=>Ee,uptime:()=>ft,verifyEmail:()=>yt,verifyPhone:()=>Fe,verifyUrl:()=>mt,verifyUuid:()=>p,voidFunc:()=>Ze,which:()=>Ut});var n={};i.r(n),i.d(n,{_NEED:()=>yr,aesCreateIv:()=>Ir,aesCreateKey:()=>Tr,aesDecrypt:()=>Br,aesEncrypt:()=>Lr,defaultAlgorithm:()=>br,defaultEncryption:()=>vr,digestObject:()=>Rr,getGoogleAuthByCredentials:()=>Cr,getGoogleAuthTokenByAuth:()=>Nr,getSortedQueryString:()=>xr,hash:()=>Sr,hashFile:()=>Or,hexToBigInt:()=>jr,md5:()=>_r,random:()=>gr.randomBytes,randomString:()=>Ar,sha256:()=>Sr,sha256File:()=>Or,uniqueString:()=>wr});var r={};i.r(r),i.d(r,{BASE64:()=>Kr,BUFFER:()=>Yr,DATAURL:()=>ii,FILE:()=>Jr,MIME_AAC:()=>ki,MIME_AVI:()=>mi,MIME_BINARY:()=>ci,MIME_FLAC:()=>xi,MIME_FLV:()=>vi,MIME_GIF:()=>wi,MIME_JPEG:()=>fi,MIME_JSON:()=>ui,MIME_M4A:()=>Ai,MIME_MOV:()=>hi,MIME_MP3:()=>Si,MIME_MP4:()=>di,MIME_MPEG:()=>pi,MIME_MPEGA:()=>Oi,MIME_MPEGPS:()=>bi,MIME_MPG:()=>gi,MIME_MPGA:()=>Ri,MIME_OGG:()=>Ci,MIME_OPUS:()=>ji,MIME_PCM:()=>Ti,MIME_PCM16:()=>Bi,MIME_PDF:()=>Ei,MIME_PNG:()=>li,MIME_TEXT:()=>si,MIME_TGPP:()=>Li,MIME_WAV:()=>Ii,MIME_WEBM:()=>Mi,MIME_WEBP:()=>_i,MIME_WMV:()=>yi,STREAM:()=>Xr,_NEED:()=>Fr,analyzeFile:()=>fo,assertPath:()=>Yi,blobToBuffer:()=>co,convert:()=>uo,decodeBase64DataURL:()=>ro,deleteFileOnCloud:()=>Eo,deleteOnCloud:()=>ko,downloadFileFromCloud:()=>bo,downloadFromCloud:()=>vo,encodeBase64DataURL:()=>no,exists:()=>oo,existsOnCloud:()=>wo,formatDataURL:()=>Vr,getConfig:()=>Qi,getConfigFilename:()=>Xi,getGcUrlByBucket:()=>zr,getIdByGs:()=>Wr,getMime:()=>lo,getTempPath:()=>Gi,handleError:()=>Zi,init:()=>mo,isTextFile:()=>Ji,legalFilename:()=>io,lsOnCloud:()=>_o,mapFilename:()=>qr,mergeFile:()=>po,readFile:()=>Wi,readJson:()=>Vi,sanitizeFilename:()=>Hr,setConfig:()=>eo,sliceFile:()=>ho,touchPath:()=>to,tryRm:()=>go,unzip:()=>so,uploadToCloud:()=>yo,writeFile:()=>qi,writeJson:()=>$i,writeTempFile:()=>Ki,zip:()=>ao});var o={};i.r(o),i.d(o,{bigIntToUuid:()=>Fo,compactUuid:()=>Po,create:()=>qo,default:()=>Vo,expandUuid:()=>zo,fakeUuid:()=>Uo,getRfcUrlNamespaceUuid:()=>$o,getTimestampFromUuid:()=>Wo,getUuidForCurrentHost:()=>Ho,rotateUuid:()=>Zo,uuidRegTxt:()=>No,uuidToBigInt:()=>Do});var a={};i.r(a),i.d(a,{bulk:()=>Ks,default:()=>Js,end:()=>Ys,list:()=>Ws,load:()=>Gs,loop:()=>Vs});var s={};i.r(s),i.d(s,{_NEED:()=>Xs,checkSay:()=>sc,checkWhisper:()=>cc,stt:()=>pc,sttWhisper:()=>fc,tts:()=>hc,ttsSay:()=>uc});var c=i(8221),u=i.t(c,2);const l="ffffffff-ffff-ffff-ffff-ffffffffffff",f="00000000-0000-0000-0000-000000000000",h=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i,p=function(e){return"string"==typeof e&&h.test(e)},d=function(e){if(!p(e))throw TypeError("Invalid UUID");let t;return Uint8Array.of((t=parseInt(e.slice(0,8),16))>>>24,t>>>16&255,t>>>8&255,255&t,(t=parseInt(e.slice(9,13),16))>>>8,255&t,(t=parseInt(e.slice(14,18),16))>>>8,255&t,(t=parseInt(e.slice(19,23),16))>>>8,255&t,(t=parseInt(e.slice(24,36),16))/1099511627776&255,t/4294967296&255,t>>>24&255,t>>>16&255,t>>>8&255,255&t)},g=[];for(let e=0;e<256;++e)g.push((e+256).toString(16).slice(1));function m(e,t=0){return(g[e[t+0]]+g[e[t+1]]+g[e[t+2]]+g[e[t+3]]+"-"+g[e[t+4]]+g[e[t+5]]+"-"+g[e[t+6]]+g[e[t+7]]+"-"+g[e[t+8]]+g[e[t+9]]+"-"+g[e[t+10]]+g[e[t+11]]+g[e[t+12]]+g[e[t+13]]+g[e[t+14]]+g[e[t+15]]).toLowerCase()}const y=function(e,t=0){const n=m(e,t);if(!p(n))throw TypeError("Stringified UUID is invalid");return n};let b;const v=new Uint8Array(16);function w(){if(!b){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");b=crypto.getRandomValues.bind(crypto)}return b(v)}const _={};function E(e,t,n,r,i,o,a=0){if(e.length<16)throw new Error("Random bytes length must be >= 16");if(o){if(a<0||a+16>o.length)throw new RangeError(`UUID byte range ${a}:${a+15} is out of buffer bounds`)}else o=new Uint8Array(16),a=0;t??=Date.now(),n??=0,r??=16383&(e[8]<<8|e[9]),i??=e.slice(10,16);const s=(1e4*(268435455&(t+=122192928e5))+n)%4294967296;o[a++]=s>>>24&255,o[a++]=s>>>16&255,o[a++]=s>>>8&255,o[a++]=255&s;const c=t/4294967296*1e4&268435455;o[a++]=c>>>8&255,o[a++]=255&c,o[a++]=c>>>24&15|16,o[a++]=c>>>16&255,o[a++]=r>>>8|128,o[a++]=255&r;for(let e=0;e<6;++e)o[a++]=i[e];return o}const k=function(e,t,n){let r;const i=e?._v6??!1;if(e){const t=Object.keys(e);1===t.length&&"_v6"===t[0]&&(e=void 0)}if(e)r=E(e.random??e.rng?.()??w(),e.msecs,e.nsecs,e.clockseq,e.node,t,n);else{const e=Date.now(),o=w();!function(e,t,n){e.msecs??=-1/0,e.nsecs??=0,t===e.msecs?(e.nsecs++,e.nsecs>=1e4&&(e.node=void 0,e.nsecs=0)):t>e.msecs?e.nsecs=0:t<e.msecs&&(e.node=void 0),e.node||(e.node=n.slice(10,16),e.node[0]|=1,e.clockseq=16383&(n[8]<<8|n[9])),e.msecs=t}(_,e,o),r=E(o,_.msecs,_.nsecs,i?void 0:_.clockseq,i?void 0:_.node,t,n)}return t??m(r)};function x(e){const t=function(e){return Uint8Array.of((15&e[6])<<4|e[7]>>4&15,(15&e[7])<<4|(240&e[4])>>4,(15&e[4])<<4|(240&e[5])>>4,(15&e[5])<<4|(240&e[0])>>4,(15&e[0])<<4|(240&e[1])>>4,(15&e[1])<<4|(240&e[2])>>4,96|15&e[2],e[3],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}("string"==typeof e?d(e):e);return"string"==typeof e?m(t):t}function S(e){return 14+(e+64>>>9<<4)+1}function O(e,t){const n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function A(e,t,n,r,i,o){return O((a=O(O(t,e),O(r,o)))<<(s=i)|a>>>32-s,n);var a,s}function R(e,t,n,r,i,o,a){return A(t&n|~t&r,e,t,i,o,a)}function j(e,t,n,r,i,o,a){return A(t&r|n&~r,e,t,i,o,a)}function T(e,t,n,r,i,o,a){return A(t^n^r,e,t,i,o,a)}function I(e,t,n,r,i,o,a){return A(n^(t|~r),e,t,i,o,a)}const M=function(e){return function(e){const t=new Uint8Array(4*e.length);for(let n=0;n<4*e.length;n++)t[n]=e[n>>2]>>>n%4*8&255;return t}(function(e,t){const n=new Uint32Array(S(t)).fill(0);n.set(e),n[t>>5]|=128<<t%32,n[n.length-1]=t,e=n;let r=1732584193,i=-271733879,o=-1732584194,a=271733878;for(let t=0;t<e.length;t+=16){const n=r,s=i,c=o,u=a;r=R(r,i,o,a,e[t],7,-680876936),a=R(a,r,i,o,e[t+1],12,-389564586),o=R(o,a,r,i,e[t+2],17,606105819),i=R(i,o,a,r,e[t+3],22,-1044525330),r=R(r,i,o,a,e[t+4],7,-176418897),a=R(a,r,i,o,e[t+5],12,1200080426),o=R(o,a,r,i,e[t+6],17,-1473231341),i=R(i,o,a,r,e[t+7],22,-45705983),r=R(r,i,o,a,e[t+8],7,1770035416),a=R(a,r,i,o,e[t+9],12,-1958414417),o=R(o,a,r,i,e[t+10],17,-42063),i=R(i,o,a,r,e[t+11],22,-1990404162),r=R(r,i,o,a,e[t+12],7,1804603682),a=R(a,r,i,o,e[t+13],12,-40341101),o=R(o,a,r,i,e[t+14],17,-1502002290),i=R(i,o,a,r,e[t+15],22,1236535329),r=j(r,i,o,a,e[t+1],5,-165796510),a=j(a,r,i,o,e[t+6],9,-1069501632),o=j(o,a,r,i,e[t+11],14,643717713),i=j(i,o,a,r,e[t],20,-373897302),r=j(r,i,o,a,e[t+5],5,-701558691),a=j(a,r,i,o,e[t+10],9,38016083),o=j(o,a,r,i,e[t+15],14,-660478335),i=j(i,o,a,r,e[t+4],20,-405537848),r=j(r,i,o,a,e[t+9],5,568446438),a=j(a,r,i,o,e[t+14],9,-1019803690),o=j(o,a,r,i,e[t+3],14,-187363961),i=j(i,o,a,r,e[t+8],20,1163531501),r=j(r,i,o,a,e[t+13],5,-1444681467),a=j(a,r,i,o,e[t+2],9,-51403784),o=j(o,a,r,i,e[t+7],14,1735328473),i=j(i,o,a,r,e[t+12],20,-1926607734),r=T(r,i,o,a,e[t+5],4,-378558),a=T(a,r,i,o,e[t+8],11,-2022574463),o=T(o,a,r,i,e[t+11],16,1839030562),i=T(i,o,a,r,e[t+14],23,-35309556),r=T(r,i,o,a,e[t+1],4,-1530992060),a=T(a,r,i,o,e[t+4],11,1272893353),o=T(o,a,r,i,e[t+7],16,-155497632),i=T(i,o,a,r,e[t+10],23,-1094730640),r=T(r,i,o,a,e[t+13],4,681279174),a=T(a,r,i,o,e[t],11,-358537222),o=T(o,a,r,i,e[t+3],16,-722521979),i=T(i,o,a,r,e[t+6],23,76029189),r=T(r,i,o,a,e[t+9],4,-640364487),a=T(a,r,i,o,e[t+12],11,-421815835),o=T(o,a,r,i,e[t+15],16,530742520),i=T(i,o,a,r,e[t+2],23,-995338651),r=I(r,i,o,a,e[t],6,-198630844),a=I(a,r,i,o,e[t+7],10,1126891415),o=I(o,a,r,i,e[t+14],15,-1416354905),i=I(i,o,a,r,e[t+5],21,-57434055),r=I(r,i,o,a,e[t+12],6,1700485571),a=I(a,r,i,o,e[t+3],10,-1894986606),o=I(o,a,r,i,e[t+10],15,-1051523),i=I(i,o,a,r,e[t+1],21,-2054922799),r=I(r,i,o,a,e[t+8],6,1873313359),a=I(a,r,i,o,e[t+15],10,-30611744),o=I(o,a,r,i,e[t+6],15,-1560198380),i=I(i,o,a,r,e[t+13],21,1309151649),r=I(r,i,o,a,e[t+4],6,-145523070),a=I(a,r,i,o,e[t+11],10,-1120210379),o=I(o,a,r,i,e[t+2],15,718787259),i=I(i,o,a,r,e[t+9],21,-343485551),r=O(r,n),i=O(i,s),o=O(o,c),a=O(a,u)}return Uint32Array.of(r,i,o,a)}(function(e){if(0===e.length)return new Uint32Array;const t=new Uint32Array(S(8*e.length)).fill(0);for(let n=0;n<e.length;n++)t[n>>2]|=(255&e[n])<<n%4*8;return t}(e),8*e.length))},L="6ba7b810-9dad-11d1-80b4-00c04fd430c8",B="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function C(e,t,n,r,i,o){const a="string"==typeof n?function(e){e=unescape(encodeURIComponent(e));const t=new Uint8Array(e.length);for(let n=0;n<e.length;++n)t[n]=e.charCodeAt(n);return t}(n):n,s="string"==typeof r?d(r):r;if("string"==typeof r&&(r=d(r)),16!==r?.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+a.length);if(c.set(s),c.set(a,s.length),c=t(c),c[6]=15&c[6]|e,c[8]=63&c[8]|128,i){o=o||0;for(let e=0;e<16;++e)i[o+e]=c[e];return i}return m(c)}function N(e,t,n,r){return C(48,M,e,t,n,r)}N.DNS=L,N.URL=B;const P=N,D={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},F=function(e,t,n){return!D.randomUUID||t||e?function(e,t,n){const r=(e=e||{}).random??e.rng?.()??w();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return m(r)}(e,t,n):D.randomUUID()};function U(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function z(e,t){return e<<t|e>>>32-t}const W=function(e){const t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520],r=new Uint8Array(e.length+1);r.set(e),r[e.length]=128;const i=(e=r).length/4+2,o=Math.ceil(i/16),a=new Array(o);for(let t=0;t<o;++t){const n=new Uint32Array(16);for(let r=0;r<16;++r)n[r]=e[64*t+4*r]<<24|e[64*t+4*r+1]<<16|e[64*t+4*r+2]<<8|e[64*t+4*r+3];a[t]=n}a[o-1][14]=8*(e.length-1)/Math.pow(2,32),a[o-1][14]=Math.floor(a[o-1][14]),a[o-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<o;++e){const r=new Uint32Array(80);for(let t=0;t<16;++t)r[t]=a[e][t];for(let e=16;e<80;++e)r[e]=z(r[e-3]^r[e-8]^r[e-14]^r[e-16],1);let i=n[0],o=n[1],s=n[2],c=n[3],u=n[4];for(let e=0;e<80;++e){const n=Math.floor(e/20),a=z(i,5)+U(n,o,s,c)+u+t[n]+r[e]>>>0;u=c,c=s,s=z(o,30)>>>0,o=i,i=a}n[0]=n[0]+i>>>0,n[1]=n[1]+o>>>0,n[2]=n[2]+s>>>0,n[3]=n[3]+c>>>0,n[4]=n[4]+u>>>0}return Uint8Array.of(n[0]>>24,n[0]>>16,n[0]>>8,n[0],n[1]>>24,n[1]>>16,n[1]>>8,n[1],n[2]>>24,n[2]>>16,n[2]>>8,n[2],n[3]>>24,n[3]>>16,n[3]>>8,n[3],n[4]>>24,n[4]>>16,n[4]>>8,n[4])};function q(e,t,n,r){return C(80,W,e,t,n,r)}q.DNS=L,q.URL=B;const $=q,Z=function(e,t,n){e??={},n??=0;let r=k({...e,_v6:!0},new Uint8Array(16));if(r=x(r),t){for(let e=0;e<16;e++)t[n+e]=r[e];return t}return m(r)};function H(e){const t=(n="string"==typeof e?d(e):e,Uint8Array.of((15&n[3])<<4|n[4]>>4&15,(15&n[4])<<4|(240&n[5])>>4,(15&n[5])<<4|15&n[6],n[7],(15&n[1])<<4|(240&n[2])>>4,(15&n[2])<<4|(240&n[3])>>4,16|(240&n[0])>>4,(15&n[0])<<4|(240&n[1])>>4,n[8],n[9],n[10],n[11],n[12],n[13],n[14],n[15]));var n;return"string"==typeof e?m(t):t}const V={};function G(e,t,n,r,i=0){if(e.length<16)throw new Error("Random bytes length must be >= 16");if(r){if(i<0||i+16>r.length)throw new RangeError(`UUID byte range ${i}:${i+15} is out of buffer bounds`)}else r=new Uint8Array(16),i=0;return t??=Date.now(),n??=127*e[6]<<24|e[7]<<16|e[8]<<8|e[9],r[i++]=t/1099511627776&255,r[i++]=t/4294967296&255,r[i++]=t/16777216&255,r[i++]=t/65536&255,r[i++]=t/256&255,r[i++]=255&t,r[i++]=112|n>>>28&15,r[i++]=n>>>20&255,r[i++]=128|n>>>14&63,r[i++]=n>>>6&255,r[i++]=n<<2&255|3&e[10],r[i++]=e[11],r[i++]=e[12],r[i++]=e[13],r[i++]=e[14],r[i++]=e[15],r}const K=function(e,t,n){let r;if(e)r=G(e.random??e.rng?.()??w(),e.msecs,e.seq,t,n);else{const e=Date.now(),i=w();!function(e,t,n){e.msecs??=-1/0,e.seq??=0,t>e.msecs?(e.seq=n[6]<<23|n[7]<<16|n[8]<<8|n[9],e.msecs=t):(e.seq=e.seq+1|0,0===e.seq&&e.msecs++)}(V,e,i),r=G(i,V.msecs,V.seq,t,n)}return t??m(r)},Y=function(e){if(!p(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)};var J=i(4148),X=i(8287);Object.values=Object.values||(e=>Object.keys(e).map(t=>e[t])),RegExp.escape=RegExp.escape||(e=>String(e).replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),BigInt.prototype.toJSON=BigInt.prototype.toJSON||function(){return this.toString()};const Q=J||((e,t)=>{if(!e)throw Error.isError(t)?t:new Error(t)});if(!globalThis.assert){globalThis.assert=(e,t,n,r)=>{try{return Q(e,t)}catch(e){throw((e,t=500,n={})=>Object.assign(e,{status:t},n))(e,n,r)}};for(let e in Q||{})assert[e]=Q[e]}globalThis.Buffer=globalThis.Buffer||X.Buffer;const ee=(e,t)=>t?.constructor===e;[ArrayBuffer,BigInt,Boolean,Error,Number,Object,Set,String,Uint8Array].map(e=>{const t=`is${e.name}`;e[t]=e[t]||(t=>ee(e,t))}),Date.isDate=Date.isDate||((e,t)=>!(!ee(Date,e)||t&&"invalid date"===e.toTimeString().toLowerCase())),Function.isFunction=Function.isFunction||(e=>{return["Function","AsyncFunction"].includes(void 0===(t=e)?"Undefined":Object.prototype.toString.call(t).replace(/^\[[^\ ]*\ (.*)\]$/,"$1"));var t}),globalThis.print=globalThis.print||console.log;var te=i(8835),ne=i(7975),re=i(537);const ie=JSON.parse('{"single":{"topLeft":"┌","top":"─","topRight":"┐","right":"│","bottomRight":"┘","bottom":"─","bottomLeft":"└","left":"│"},"double":{"topLeft":"╔","top":"═","topRight":"╗","right":"║","bottomRight":"╝","bottom":"═","bottomLeft":"╚","left":"║"},"round":{"topLeft":"╭","top":"─","topRight":"╮","right":"│","bottomRight":"╯","bottom":"─","bottomLeft":"╰","left":"│"},"bold":{"topLeft":"┏","top":"━","topRight":"┓","right":"┃","bottomRight":"┛","bottom":"━","bottomLeft":"┗","left":"┃"},"singleDouble":{"topLeft":"╓","top":"─","topRight":"╖","right":"║","bottomRight":"╜","bottom":"─","bottomLeft":"╙","left":"║"},"doubleSingle":{"topLeft":"╒","top":"═","topRight":"╕","right":"│","bottomRight":"╛","bottom":"═","bottomLeft":"╘","left":"│"},"classic":{"topLeft":"+","top":"-","topRight":"+","right":"|","bottomRight":"+","bottom":"-","bottomLeft":"+","left":"|"},"arrow":{"topLeft":"↘","top":"↓","topRight":"↙","right":"←","bottomRight":"↖","bottom":"↑","bottomLeft":"↗","left":"→"}}');var oe=i.t(ie),ae=i(3428);const se={strip:(e,t)=>ut(e,t).replace(/\x1B\[\d+m/g,"")};for(let e in ae)se[e]=(t,n)=>{const[r,i]=bn()?[ae[e].open,ae[e].close]:["",""];return`${r}${ut(t,n)}${i}`};const ce=se;var ue=i(8287).Buffer,le=i(5606);const fe=(e,...t)=>(0,re.promisify)(Array.isArray(e)?e[0].bind(e[1]):e)(...t),he="Invalid time.",[pe,de]=["Chrome","Edge"],ge=e=>new Date(1e3*~~e),me=e=>Math.round(e.getTime()/1e3),ye=e=>Math.floor(Math.random()*Math.floor(e)),be=e=>e.sort(()=>.5-Math.random()),ve=(e,t,n={})=>Object.assign(e,{status:t},n),we=(e,t,n)=>ve(new Error(e),t,n),_e=(e,t,n)=>{throw we(e,t,n)},Ee=e=>[...new Set(at(e))],ke=(e,t)=>gt(t)===e,xe=e=>ke("Undefined",e),Se=e=>ke("Module",e),Oe=e=>ke("Null",e),Ae=(e,t)=>!(xe(e)||t&&Oe(e)),Re=(e,t,n)=>parseInt(e||0,t).toString(n),je=e=>parseInt(Re(e,16,10)),Te=(e,t)=>We(e,t,"base64"),Ie=(e,t)=>_t(e,t,"base64"),Me=(e,t)=>We(e,t,"hex"),Le=(e,t)=>_t(e,t,"hex"),Be=e=>Te(JSON.stringify(e)),Ce=e=>JSON.parse(Ie(e)),Ne=(e,t)=>Number.parseFloat(e).toExponential(t),Pe=e=>new Promise(t=>(e?setTimeout:setImmediate)(t,e)),De=(e,t)=>ut(e,{trim:!0,...t||{}}),Fe=e=>/^\+?[0-9]{4,}$/.test(e),Ue=async e=>e instanceof Promise?await e:e,ze=(e,t,n)=>bt(`${e}/${t}`,n),We=(e,t,n)=>(t?e:ue.from(e)).toString(n),qe=(e,t)=>new Date((t??new Date).getTime()+e),$e=(e,t)=>Array.isArray(e)?e:Yt(e,t),Ze=()=>{},He=e=>e.slice(-1)[0],Ve=e=>e.toLowerCase().split(/[^a-zA-Z0-9]+/).filter(e=>e),Ge={},Ke=e=>String(e||et),Ye=e=>(0,ne.basename)(Ke(e)).replace(/\.[^\.]*$/,"").trim(),Je=e=>Math.random()<1/(~~e||100),Xe={"00:00":"🕛","00:30":"🕧","01:00":"🕐","01:30":"🕜","02:00":"🕑","02:30":"🕝","03:00":"🕒","03:30":"🕞","04:00":"🕓","04:30":"🕟","05:00":"🕔","05:30":"🕠","06:00":"🕕","06:30":"🕡","07:00":"🕖","07:30":"🕢","08:00":"🕗","08:30":"🕣","09:00":"🕘","09:30":"🕤","10:00":"🕙","10:30":"🕥","11:00":"🕚","11:30":"🕦","00:00":"🕛"},Qe=(e,t)=>{assert(e,"Invalid URL.",500);const n=(0,te.m9)(e),r=(0,ne.dirname)(n);return(t=String(t??""))?(0,ne.join)(r,t):{__filename:n,__dirname:r}},{__filename:et}=Qe("file:///home/runner/work/utilitas/utilitas/lib/utilitas.mjs"),tt=e=>{let t=e;switch(gt(e)){case"Object":t={};for(let n in e)t[n]=tt(e[n]);break;case"Array":t=[],e.map(e=>{t.push(tt(e))})}return t},nt=(e,t)=>{let[n,r]=[e,null];switch(gt(e)){case"Object":n={};for(let i in e)Ae(r=nt(e[i],t),t)&&(n[i]=r);n=Object.keys(n).length?n:void 0;break;case"Array":n=[],e.map(e=>{Ae(e=nt(e,t),t)&&n.push(e)}),n=n.length?n:void 0}return n},rt=(e,t=String)=>{let n=e;switch(gt(e)){case"Object":n={};for(let r in e)n[r]=rt(e[r],t);break;case"Array":n=[],e.map(e=>{n.push(rt(e,t))});break;case"BigInt":n=t(e)}return n},it=e=>{let t=e;switch(gt(e)){case"Object":if("Buffer"===e.type&&Array.isArray(e.data))t=ue.from(e.data);else if("DataURL"===e.type&&String.isString(e.data))t=ro(e.data)?.buffer;else{t={};for(let n in e)t[n]=it(e[n])}break;case"Array":t=[],e.map(e=>{t.push(it(e))})}return t},ot=(e,t,n,r)=>{let[i,o]=[e,t];switch(Object.isObject(t)&&(o=e=>t[e]),Ct(o),gt(e)){case"Object":i={};for(let t in e){const a=o(t,e[t],r||[]);assert(!n||a,`Error maping key: '${t}'.`,400),i[a||t]=ot(e[t],o,n,[...r||[],t])}break;case"Array":i=[],e.map((e,t)=>{i.push(ot(e,o,n,[...r||[],t]))})}return i},at=e=>Ae(e,!0)?Array.isArray(e)||Set.isSet(e)?[...e]:[e]:[],st=(e,t)=>{t=t||{};let n=parseInt(e);return n=isNaN(n)?0:n,n=Ae(t.min,!0)&&n<t.min?t.min:n,n=Ae(t.max,!0)&&n>t.max?t.max:n,t.pad>0?String(n).padStart(t.pad,"0"):n},ct=(e,t)=>Object.isObject(e)?JSON.stringify(e):Date.isDate(e)?e.toISOString():Error.isError(e)?t?.trace?e.stack:e.message:String(e??""),ut=(e,t)=>{if(e=ct(e,t),t?.case)switch(ct(t?.case).trim().toUpperCase()){case"UP":e=e.toUpperCase();break;case"LOW":e=e.toLowerCase();break;case"CAP":e=`${e.charAt(0).toUpperCase()}${e.slice(1)}`;break;case"CAMEL":e=Ve(e).map((e,t)=>t?`${e.charAt(0).toUpperCase()}${e.slice(1)}`:e).join("");break;case"SNAKE":e=Ve(e).join("_"),assert(e,"String can not convert to snake case.",500);break;default:_e(`Invalid case option: '${t?.case}'.`,500)}return t?.trim&&(e=e.trim()),t?.compact&&(e=e.replace(/\s+/g," ").trim()),t?.limit&&(e=e.trim())&&e.length>t.limit&&(e=`${e.slice(0,t.limit).trim()}...`),e},lt=(e,t)=>(e&&It(e=new Date(e),t?.message),!e&&t?.required?_e(he,400):e?t?.asTimestamp?e.getTime():t?.asUnixtime?me(e):e:null),ft=()=>{let e=`${wn(new Date)} ${(new Date).toTimeString().split(" ")[0].split(":").slice(0,2).join(":")} up`,t=le.uptime();const n=Math.floor(t/86400);t-=3600*n*24;let r=Math.floor(t/3600);t-=3600*r,r=r.toString().padStart(2,"0");let i=Math.floor(t/60);return i=i.toString().padStart(2,"0"),t=Math.floor(t%60).toString().padStart(2,"0"),n>0&&(e+=` ${n} day${n>1?"s":""},`),`${e} ${r}:${i}:${t}`},ht=(e,t)=>{const n=~~t?.count,r=be([...e.keys()]).slice(0,n||1);return n?r:r[0]},pt=(e,t)=>{const n=~~t?.count,r=be(ht(e,{count:n||1}).sort((e,t)=>t-e).map(n=>t?.splice?e.splice(n,1)[0]:e[n]));return n?r:r[0]},dt=e=>Array.isArray(e)?pt(e):e,gt=e=>void 0===e?"Undefined":Object.prototype.toString.call(e).replace(/^\[[^\ ]*\ (.*)\]$/,"$1"),mt=e=>{const t=String(e??"").replace(/^magnet:/,"magnet:localhost");return t.length<2083&&new RegExp("^(?:(http://|https://|ftp://|chrome://|mailto:|magnet:))(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i").test(t)},yt=e=>/^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$/.test(e),bt=(e,t)=>{let n=[];for(let e in t||[])at(t[e]).map(t=>{n.push(`${e}=${encodeURIComponent(t)}`)});return`${e}${n.length?`?${n.join("&")}`:""}`},vt=(e,t)=>{let n=JSON.stringify(e,t?.replacer??null,~~t?.space||2);return t?.code?n=Jt(n,{...t||{},md:t?.md&&"json"}):t?.log&&console.log(n),n},wt=async(e,t,n)=>{let r=null,i=Promise.race([e,new Promise((e,i)=>{r=setTimeout(()=>{i(new Error(n||"Timed out."))},t)})]);const o=await i;try{clearTimeout(r)}catch(n){}return o},_t=(e,t,n)=>{const r=ue.from(e,n);return t?r:r.toString("utf8")},Et=(e,t,n)=>{try{return JSON.parse(e,n?.reviver||((e,t)=>t&&"Buffer"===t.type&&Array.isArray(t.data)?ue.from(t.data):t))}catch(e){return Ae(t)?t:{}}},kt=(...e)=>{let t=null;return e.map((e,n)=>t=n?t?.[e]??null:e),t},xt=e=>Array.from(e,e=>("0"+(255&e).toString(16)).slice(-2)).join(""),St=e=>{let[t,n]=[0,-1];for(let r in e)(-1===n||n>e[r].length)&&(t=r,n=e[r].length);return t},Ot=(e,t)=>!(!Array.isArray(e)||!Array.isArray(t))&&(e.sort(),t.sort(),e.join(",")===t.join(",")),At=(e,t,n,r)=>assert(yt(e),t||"Invalid email.",n||400,r),Rt=(e,t,n,r)=>assert(p(e),t||"Invalid UUID.",n||400,r),jt=(e,t,n,r)=>assert(mt(e),t||"Invalid URL.",n||400,r),Tt=(e,t,n,r)=>assert(Ae(e),t||"Undefined value.",n||400,r),It=(e,t,n,r)=>assert(Date.isDate(e,!0),t||he,n||400,r),Mt=(e,t,n,r)=>assert(Array.isObject(e),t||"Invalid Array.",n||400,r),Lt=(e,t,n,r)=>assert(Object.isObject(e),t||"Invalid Object.",n||400,r),Bt=(e,t,n,r)=>assert(Se(e),t||"Invalid Module.",n||400,r),Ct=(e,t,n,r)=>assert(Function.isFunction(e),t||"Invalid Function.",n||400,r),Nt=(e,t,n,r)=>assert(ue.isBuffer(e)||ArrayBuffer.isArrayBuffer(e),t||"Invalid Buffer.",n||400,r),Pt=(e,t)=>{for(let n in e||{})if(t===e[n])return n},Dt=(e,t,n)=>{const r=Error.isError(e);e=Object.isObject(e)?JSON.stringify(e):e;const i=n?.keepName?Ke(t):Ye(t).toUpperCase(),o=n?.time?` ${(Date.isDate(n.time,!0)?n.time:new Date).toISOString()}`:"",a=["["+ce.red(i)+ce.yellow(o)+"]"+(r?"":` ${e}`)];return r&&a.push(e),n?.return?a[0]:console.info.apply(null,a)},Ft=async e=>(await Yi(e,"F","R"),globalThis._manifest=e),Ut=async e=>{if(!Object.isObject(e=e||globalThis._manifest)){if(e=(e=e||"file:///home/runner/work/utilitas/utilitas/lib/utilitas.mjs").startsWith("file://")?(0,te.m9)(e):e,!e?.endsWith?.(".json")){e=["/",...e.split(ne.sep).slice(1)];const t=[];for(let n of e){t.push(n);const r=(0,ne.join)(...t,"package.json");try{await Yi(r,"F","R"),e=r;break}catch(e){}}}e=await Vi(e)}return e.name=e.name||"",e.versionNormalized=Vt(e.version=e.version||""),e.title=`${e.name}${e.version?" v"+e.version:""}`,e.userAgent=`${e.name}${e.version?`/${e.version}`:""}`,e},zt=(e,t,n)=>{e=e||{},t=t||{};for(let r in e)xe(e[r])?n?.mergeUndefined&&delete t[r]:t[r]=e[r];return t},Wt=(e,t,n)=>{n={case:"UP",...n||{}};let[r,i]=[e,t].map(e=>(e=De(e,n),n.w&&(e=e.replace(/[^\w]*/gi,"")),e));return r===i},qt=(e,t,n)=>at(e).some(e=>Wt(e,t,n)),$t=(e,t)=>{e=String(e??"")[0]??"",t=parseInt(t)||0;let n="";for(;e&&t&&n.length<t;)n+=e;return n},Zt=(e,t,n)=>{let r=!1;switch(gt(e)){case"String":e=ut(e,n).split(""),r=!0;break;case"Array":break;default:_e("The object can only be a string or array.",400)}return t=~~t-e.length*Math.floor(~~t/e.length),e.push.apply(e,e.splice(0,t)),r?e.join(""):e},Ht=e=>["✓","1","10-4","AYE","COOL","DO","ENABLE","ENABLED","ENGAGE","ENGAGED","GOOD","GREAT","JA","OK","OKEY","ON","RIGHT","RIGHTO","ROGER","SURE","TRUE","YEP","YEPPERS","YES","YUP","YUPPERS","好","对","對","开","开启","是","開","開啟","🔊","🐵"].includes(ut(e,{case:"UP"})),Vt=e=>{e=ut(e,{case:"UP"});const[t,n,r]=[{version:[[/^[^\.\d]*([\.\d]+).*$/i,"$1"]],build:[[/^[^\.\d]*[\.\d]+.*\-([0-9a-z]*).*/i,"$1"],[/^[^\.\d]*[\.\d]+.*\(([0-9a-z]*)\).*/i,"$1"]],channel:["INTERNAL","DEV","ALPHA","TESTING","STAGING","BETA","PRODUCTION","STABLE"]},{normalized:0},5];for(let r in t){let i="";for(let n in t[r]){const[o,a]=Array.isArray(t[r][n])?[t[r][n][0],t[r][n][1]]:[new RegExp(`^.*(${t[r][n]}).*$`,"i"),"$1"];if(o.test(e)){i=e.replace(o,a);break}}n[r]=i}if(n.version){const e=n.version.split(".");for(;e.length<r;)e.push(0);for(;e.length;)n.normalized+=Math.pow(10,5*(r-e.length))*e.pop()}return n},Gt=(e,t)=>{const[n,r]=[Vt(e),Vt(t)];return n.normalized>=r.normalized},Kt=(e,t)=>{t=t||{},e=String(e??"");const n=st(t.maxLength)||le.stdout.columns,r=t.padding??"=";if(e.length+4>n){const t=$t(r,n);console.log(`${t} \n${e} \n${t} `)}else{e=e?` ${e} `:"";const t=Math.floor((n-e.length)/2),i=n-t-e.length;console.log(`${$t(r,t)}${e}${$t(r,i)}`)}return{string:e,maxLength:n}},Yt=(e,t)=>{const n=ut(e,t);return n.length?n.split(t?.separator||/\r\n|\n\r|\r|\n/):[]},Jt=(e,t)=>{let n=t?.initLine??1;const r=$e(e),i=String(r.length).length,o=t?.separator??"|",a=r.map(e=>`${String(n++).padStart(i,"0")} ${o} ${ut(e).replace("```","\\`\\`\\`")}`),s=(t?.md?`\`\`\`${!0===t?.md?"":t?.md}\n`:"")+(t?.asArray?a:a.join("\n"))+(t?.md?"\n```":"");return t?.log&&console.log(s),s},Xt=(e,t)=>{Lt(e,"Invalid object");const[n,r]=[Object.keys(e),t?.separator??":"];let i=0;n.map(e=>i=Math.max(i,e.length));const o=n.map(n=>`${n.padEnd(i," ")} ${r} ${(t?.render||ut)(e[n],{...t||{},key:n})}`);return t?.asArray?o:o.join("\n")},Qt=(e,t)=>{const[n,r,i]=[$e(e),[],[]];return n.map(e=>{const n=/^```/.test(e);if(n&&!r.length){t?.noCode||i.push(e);const n=e.replace(/^```/,"").trim();r.push(n?`> ${n}`:"")}else if(n&&r.length){if(!t?.noCode){const n=t?.extraCodeBlock&&r[0].length;n||r.shift(),i.push(Jt(r,{...t||{},initLine:n?0:1}),e)}r.length=0}else r.length?r.push(e):(t?.noLink&&(e=e.replace(/\[([^\]]+)\]\(([^)]+)\)/g,"").trim()),i.push(e))}),t?.asArray?i:i.join("\n")},en=(e,t)=>{const[n,r,i,o,a]=[10,80,2048,[],ie[t?.style||"round"]];let[s,c]=[~~t?.width,t?.title||""];assert(e.length,"Content must not be empty."),assert(a,`Style must be one of ${Object.keys(ie).join(", ")}.`),assert(!s||s>=n&&s<=i,`Width must be between ${n} and ${i}.`);const u=(s||(s=r))-2,l=u-2,f=e=>`${e.slice(0,l-3)}...`,h=e=>o.push([a.left,e.padEnd(l," "),a.right].join(" "));c.length>l&&(c=f(c)),c.length&&(c=` ${c} `),o.push(a.topLeft+c+a.top.repeat(u-c.length)+a.topRight),c.length&&h(""),$e(e).map(e=>{for(e=e||" ";e.length;)h(t?.noWrap?f(e):e.slice(0,l)),e=t?.noWrap?"":e.slice(l)}),h(""),o.push(a.bottomLeft+a.bottom.repeat(u)+a.bottomRight);const p=t?.asArray?o:o.join("\n");return t?.log&&console.log(p),p},tn=(e,t,n)=>{(n=n||{}).base=st(n.base,{min:0}),n.step=st(n.step,{min:1}),[e,t]=[st(e),st(t)];const[r,i]=[e<=t?1:-1,[]];for(let o=e;r>0?o<=t:o>=t;o+=n.step*r)(!n.noBoundary||o!==e&&o!==t)&&i.push(n.base+o);return i},nn=(e,t)=>!((Math.round(Date.now()/1e3)+st(t))%st(e)),rn=async(e,t)=>{const n=async()=>{try{return await e(...t?.args||[])}catch(e){Function.isFunction(t?.log)?t.log(e):t?.log&&console.error(e)}};return t?.await?(await Pe(t.await),await n()):t?.wait?setTimeout(n,t.wait):await n()},on=async(e,t)=>{t={interval:1e3,maxTry:1/0,log:!1,error:"Operation failed.",verify:async(e,t)=>!e,...t||{}};let[n,r,i,o]=[0,null,null,null];do{try{assert(await t.verify(i=null,r=await e()),t.error)}catch(e){(i=e)&&(o=i?.message||i)&&(Function.isFunction(t?.log)?await t.log(o):console.log(o)),await Pe(t.interval)}}while(++n<t.maxTry&&i);if(i)throw i;return r},an=(e,t)=>De(e,t).split(t?.separator??/[,|;\ \t\n]+/).map(e=>e.trim()).filter(e=>e.length),sn=e=>{if(String.isString(e))for(let t=0;t<e.length;t++)if(e.charCodeAt(t)>127)return!1;return!0},cn=e=>e.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'"),un=(e,t)=>ct(e).replace(/(?!\d)(?!\*)[\p{Emoji_Modifier}\p{Emoji_Component}\p{Extended_Pictographic}]/gu,t??""),ln=(e,t)=>(t=t||{},e=ut(e),t.kepp=(t.kepp=~~t.kepp||1)>=e.length?e.length-1:t.kepp,e.replace(/.{1}/g,t.replace||"*").replace(new RegExp(`^.{${t.kepp}}`),e.substr(0,t.kepp))),fn=(e,t)=>{let n;return function(){return e&&(n=e.apply(t||this,arguments),e=null),n}},hn=e=>{const t=e.toString().replace(/(\/\/.*$)|(\/\*[\s\S]*?\*\/)|(\s*=[^,\)]*(('(?:\\'|[^'\r\n])*')|("(?:\\"|[^"\r\n])*"))|(\s*=[^,\)]*))/gm,"");return(t.slice(t.indexOf("(")+1,t.indexOf(")")).match(/([^\s,]+)/g)||[]).filter(e=>!/\:|\'|\"|\{|\}|^\d+$/gi.test(e))},pn=e=>{Bt(e);const[t,n]=[Object.getOwnPropertyNames(e).filter(t=>!(e?._NO_RENDER||[]).includes(t)),{}];return t.sort(),t.map(t=>n[t]={type:gt(e[t]),...Function.isFunction(e[t])?{params:hn(e[t])}:{value:ut(e[t])}}),n},dn=async(e,t)=>(assert(e,`Module \`${e}\` is required.`,500),Ge[e]||(Ge[e]=await i(765)(e)),!t?.raw&&Ge[e].default?Ge[e].default:Ge[e]),gn=e=>Array.isArray(e)?e.length:Object.isObject(e)?Object.keys(e).length:0,mn=(e,t)=>{const n={};return Object.keys(e).filter(e=>!t.includes(e)).map(t=>n[t]=e[t]),n},yn=()=>{const e=["Firefox",[de,"Edg"],pe,["MSIE","Trident"],"Safari"].map(at);try{for(let t of e)for(let e of t)if(navigator.userAgent.includes(e))return t[0];return"object"==typeof window}catch(e){}return!1},bn=()=>{try{if(le.stdout.isTTY&&"dumb"!==le.env.TERM)return"Node.js"}catch(e){}const e=yn();return!![pe,de].includes(e)&&e},vn=e=>((e||"").match(/"[^"]+"|'[^']+'|\S+/g)||[]).map(e=>e.replace(/^['"]|['"]$/g,"")),wn=e=>{It(e,null,null,{strict:!0});const[t,n]=[e.getHours(),e.getMinutes()],[r,i]=[60*(t>=12?t-12:t)+n,[]];for(const e in Xe){const[t,n]=e.split(":").map(e=>parseInt(e));i.push([Math.abs(r-(60*t+n)),e,t,n])}return i.sort((e,t)=>e[0]-t[0]),Xe[i[0][1]]},_n=e=>Object.fromEntries(Object.entries(e).map(e=>e.reverse()));i(251);const En={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},kn={};for(const[e,t]of Object.entries(En))kn[t]=Number.parseInt(e);function xn(e){return new DataView(e.buffer,e.byteOffset)}const Sn={len:1,get:(e,t)=>xn(e).getUint8(t),put:(e,t,n)=>(xn(e).setUint8(t,n),t+1)},On={len:2,get:(e,t)=>xn(e).getUint16(t,!0),put:(e,t,n)=>(xn(e).setUint16(t,n,!0),t+2)},An={len:2,get:(e,t)=>xn(e).getUint16(t),put:(e,t,n)=>(xn(e).setUint16(t,n),t+2)},Rn={len:4,get:(e,t)=>xn(e).getUint32(t,!0),put:(e,t,n)=>(xn(e).setUint32(t,n,!0),t+4)},jn={len:4,get:(e,t)=>xn(e).getUint32(t),put:(e,t,n)=>(xn(e).setUint32(t,n),t+4)},Tn={len:4,get:(e,t)=>xn(e).getInt32(t),put:(e,t,n)=>(xn(e).setInt32(t,n),t+4)},In={len:8,get:(e,t)=>xn(e).getBigUint64(t,!0),put:(e,t,n)=>(xn(e).setBigUint64(t,n,!0),t+8)};class Mn{constructor(e,t){this.len=e,this.encoding=t}get(e,t=0){return function(e,t="utf-8"){switch(t.toLowerCase()){case"utf-8":case"utf8":return void 0!==globalThis.TextDecoder?new globalThis.TextDecoder("utf-8").decode(e):function(e){let t="",n=0;for(;n<e.length;){const r=e[n++];if(r<128)t+=String.fromCharCode(r);else if(r<224){const i=63&e[n++];t+=String.fromCharCode((31&r)<<6|i)}else if(r<240){const i=63&e[n++],o=63&e[n++];t+=String.fromCharCode((15&r)<<12|i<<6|o)}else{let i=(7&r)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++];i-=65536,t+=String.fromCharCode(55296+(i>>10&1023),56320+(1023&i))}}return t}(e);case"utf-16le":return function(e){let t="";for(let n=0;n<e.length;n+=2)t+=String.fromCharCode(e[n]|e[n+1]<<8);return t}(e);case"ascii":return function(e){return String.fromCharCode(...e.map(e=>127&e))}(e);case"latin1":case"iso-8859-1":return function(e){return String.fromCharCode(...e)}(e);case"windows-1252":return function(e){let t="";for(const n of e)t+=n>=128&&n<=159&&En[n]?En[n]:String.fromCharCode(n);return t}(e);default:throw new RangeError(`Encoding '${t}' not supported`)}}(e.subarray(t,t+this.len),this.encoding)}}class Ln extends Error{constructor(){super("End-Of-Stream"),this.name="EndOfStreamError"}}class Bn extends Error{constructor(e="The operation was aborted"){super(e),this.name="AbortError"}}class Cn{constructor(){this.endOfStream=!1,this.interrupted=!1,this.peekQueue=[]}async peek(e,t=!1){const n=await this.read(e,t);return this.peekQueue.push(e.subarray(0,n)),n}async read(e,t=!1){if(0===e.length)return 0;let n=this.readFromPeekBuffer(e);if(this.endOfStream||(n+=await this.readRemainderFromStream(e.subarray(n),t)),0===n&&!t)throw new Ln;return n}readFromPeekBuffer(e){let t=e.length,n=0;for(;this.peekQueue.length>0&&t>0;){const r=this.peekQueue.pop();if(!r)throw new Error("peekData should be defined");const i=Math.min(r.length,t);e.set(r.subarray(0,i),n),n+=i,t-=i,i<r.length&&this.peekQueue.push(r.subarray(i))}return n}async readRemainderFromStream(e,t){let n=0;for(;n<e.length&&!this.endOfStream;){if(this.interrupted)throw new Bn;const r=await this.readFromStream(e.subarray(n),t);if(0===r)break;n+=r}if(!t&&n<e.length)throw new Ln;return n}}class Nn extends Cn{constructor(e){super(),this.reader=e}async abort(){return this.close()}async close(){this.reader.releaseLock()}}class Pn extends Nn{async readFromStream(e,t){if(0===e.length)return 0;const n=await this.reader.read(new Uint8Array(e.length),{min:t?void 0:e.length});return n.done&&(this.endOfStream=n.done),n.value?(e.set(n.value),n.value.length):0}}class Dn extends Cn{constructor(e){super(),this.reader=e,this.buffer=null}writeChunk(e,t){const n=Math.min(t.length,e.length);return e.set(t.subarray(0,n)),n<t.length?this.buffer=t.subarray(n):this.buffer=null,n}async readFromStream(e,t){if(0===e.length)return 0;let n=0;for(this.buffer&&(n+=this.writeChunk(e,this.buffer));n<e.length&&!this.endOfStream;){const t=await this.reader.read();if(t.done){this.endOfStream=!0;break}t.value&&(n+=this.writeChunk(e.subarray(n),t.value))}if(!t&&0===n&&this.endOfStream)throw new Ln;return n}abort(){return this.interrupted=!0,this.reader.cancel()}async close(){await this.abort(),this.reader.releaseLock()}}class Fn{constructor(e){this.numBuffer=new Uint8Array(8),this.position=0,this.onClose=e?.onClose,e?.abortSignal&&e.abortSignal.addEventListener("abort",()=>{this.abort()})}async readToken(e,t=this.position){const n=new Uint8Array(e.len);if(await this.readBuffer(n,{position:t})<e.len)throw new Ln;return e.get(n,0)}async peekToken(e,t=this.position){const n=new Uint8Array(e.len);if(await this.peekBuffer(n,{position:t})<e.len)throw new Ln;return e.get(n,0)}async readNumber(e){if(await this.readBuffer(this.numBuffer,{length:e.len})<e.len)throw new Ln;return e.get(this.numBuffer,0)}async peekNumber(e){if(await this.peekBuffer(this.numBuffer,{length:e.len})<e.len)throw new Ln;return e.get(this.numBuffer,0)}async ignore(e){if(void 0!==this.fileInfo.size){const t=this.fileInfo.size-this.position;if(e>t)return this.position+=t,t}return this.position+=e,e}async close(){await this.abort(),await(this.onClose?.())}normalizeOptions(e,t){if(!this.supportsRandomAccess()&&t&&void 0!==t.position&&t.position<this.position)throw new Error("`options.position` must be equal or greater than `tokenizer.position`");return{mayBeLess:!1,offset:0,length:e.length,position:this.position,...t}}abort(){return Promise.resolve()}}class Un extends Fn{constructor(e,t){super(t),this.streamReader=e,this.fileInfo=t?.fileInfo??{}}async readBuffer(e,t){const n=this.normalizeOptions(e,t),r=n.position-this.position;if(r>0)return await this.ignore(r),this.readBuffer(e,t);if(r<0)throw new Error("`options.position` must be equal or greater than `tokenizer.position`");if(0===n.length)return 0;const i=await this.streamReader.read(e.subarray(0,n.length),n.mayBeLess);if(this.position+=i,(!t||!t.mayBeLess)&&i<n.length)throw new Ln;return i}async peekBuffer(e,t){const n=this.normalizeOptions(e,t);let r=0;if(n.position){const t=n.position-this.position;if(t>0){const i=new Uint8Array(n.length+t);return r=await this.peekBuffer(i,{mayBeLess:n.mayBeLess}),e.set(i.subarray(t)),r-t}if(t<0)throw new Error("Cannot peek from a negative offset in a stream")}if(n.length>0){try{r=await this.streamReader.peek(e.subarray(0,n.length),n.mayBeLess)}catch(e){if(t?.mayBeLess&&e instanceof Ln)return 0;throw e}if(!n.mayBeLess&&r<n.length)throw new Ln}return r}async ignore(e){const t=Math.min(256e3,e),n=new Uint8Array(t);let r=0;for(;r<e;){const i=e-r,o=await this.readBuffer(n,{length:Math.min(t,i)});if(o<0)return o;r+=o}return r}abort(){return this.streamReader.abort()}async close(){return this.streamReader.close()}supportsRandomAccess(){return!1}}class zn extends Fn{constructor(e,t){super(t),this.uint8Array=e,this.fileInfo={...t?.fileInfo??{},size:e.length}}async readBuffer(e,t){t?.position&&(this.position=t.position);const n=await this.peekBuffer(e,t);return this.position+=n,n}async peekBuffer(e,t){const n=this.normalizeOptions(e,t),r=Math.min(this.uint8Array.length-n.position,n.length);if(!n.mayBeLess&&r<n.length)throw new Ln;return e.set(this.uint8Array.subarray(n.position,n.position+r)),r}close(){return super.close()}supportsRandomAccess(){return!0}setPosition(e){this.position=e}}class Wn extends Fn{constructor(e,t){super(t),this.blob=e,this.fileInfo={...t?.fileInfo??{},size:e.size,mimeType:e.type}}async readBuffer(e,t){t?.position&&(this.position=t.position);const n=await this.peekBuffer(e,t);return this.position+=n,n}async peekBuffer(e,t){const n=this.normalizeOptions(e,t),r=Math.min(this.blob.size-n.position,n.length);if(!n.mayBeLess&&r<n.length)throw new Ln;const i=await this.blob.slice(n.position,n.position+r).arrayBuffer();return e.set(new Uint8Array(i)),r}close(){return super.close()}supportsRandomAccess(){return!0}setPosition(e){this.position=e}}var qn=i(7833);const $n=67324752,Zn=33639248,Hn={get:e=>({signature:Rn.get(e,0),compressedSize:Rn.get(e,8),uncompressedSize:Rn.get(e,12)}),len:16},Vn={get(e){const t=On.get(e,6);return{signature:Rn.get(e,0),minVersion:On.get(e,4),dataDescriptor:!!(8&t),compressedMethod:On.get(e,8),compressedSize:Rn.get(e,18),uncompressedSize:Rn.get(e,22),filenameLength:On.get(e,26),extraFieldLength:On.get(e,28),filename:null}},len:30},Gn={get:e=>({signature:Rn.get(e,0),nrOfThisDisk:On.get(e,4),nrOfThisDiskWithTheStart:On.get(e,6),nrOfEntriesOnThisDisk:On.get(e,8),nrOfEntriesOfSize:On.get(e,10),sizeOfCd:Rn.get(e,12),offsetOfStartOfCd:Rn.get(e,16),zipFileCommentLength:On.get(e,20)}),len:22},Kn={get(e){const t=On.get(e,8);return{signature:Rn.get(e,0),minVersion:On.get(e,6),dataDescriptor:!!(8&t),compressedMethod:On.get(e,10),compressedSize:Rn.get(e,20),uncompressedSize:Rn.get(e,24),filenameLength:On.get(e,28),extraFieldLength:On.get(e,30),fileCommentLength:On.get(e,32),relativeOffsetOfLocalHeader:Rn.get(e,42),filename:null}},len:46};function Yn(e){const t=new Uint8Array(Rn.len);return Rn.put(t,0,e),t}const Jn=qn("tokenizer:inflate"),Xn=262144,Qn=Yn(134695760),er=Yn(101010256);class tr{constructor(e){this.tokenizer=e,this.syncBuffer=new Uint8Array(Xn)}async isZip(){return await this.peekSignature()===$n}peekSignature(){return this.tokenizer.peekToken(Rn)}async findEndOfCentralDirectoryLocator(){const e=this.tokenizer,t=Math.min(16384,e.fileInfo.size),n=this.syncBuffer.subarray(0,t);await this.tokenizer.readBuffer(n,{position:e.fileInfo.size-t});for(let r=n.length-4;r>=0;r--)if(n[r]===er[0]&&n[r+1]===er[1]&&n[r+2]===er[2]&&n[r+3]===er[3])return e.fileInfo.size-t+r;return-1}async readCentralDirectory(){if(!this.tokenizer.supportsRandomAccess())return void Jn("Cannot reading central-directory without random-read support");Jn("Reading central-directory...");const e=this.tokenizer.position,t=await this.findEndOfCentralDirectoryLocator();if(t>0){Jn("Central-directory 32-bit signature found");const n=await this.tokenizer.readToken(Gn,t),r=[];this.tokenizer.setPosition(n.offsetOfStartOfCd);for(let e=0;e<n.nrOfEntriesOfSize;++e){const t=await this.tokenizer.readToken(Kn);if(t.signature!==Zn)throw new Error("Expected Central-File-Header signature");t.filename=await this.tokenizer.readToken(new Mn(t.filenameLength,"utf-8")),await this.tokenizer.ignore(t.extraFieldLength),await this.tokenizer.ignore(t.fileCommentLength),r.push(t),Jn(`Add central-directory file-entry: n=${e+1}/${r.length}: filename=${r[e].filename}`)}return this.tokenizer.setPosition(e),r}this.tokenizer.setPosition(e)}async unzip(e){const t=await this.readCentralDirectory();if(t)return this.iterateOverCentralDirectory(t,e);let n=!1;do{const t=await this.readLocalFileHeader();if(!t)break;const r=e(t);let i;if(n=!!r.stop,await this.tokenizer.ignore(t.extraFieldLength),t.dataDescriptor&&0===t.compressedSize){const e=[];let n=Xn;Jn("Compressed-file-size unknown, scanning for next data-descriptor-signature....");let i=-1;for(;i<0&&n===Xn;){n=await this.tokenizer.peekBuffer(this.syncBuffer,{mayBeLess:!0}),i=nr(this.syncBuffer.subarray(0,n),Qn);const t=i>=0?i:n;if(r.handler){const n=new Uint8Array(t);await this.tokenizer.readBuffer(n),e.push(n)}else await this.tokenizer.ignore(t)}Jn(`Found data-descriptor-signature at pos=${this.tokenizer.position}`),r.handler&&await this.inflate(t,rr(e),r.handler)}else r.handler?(Jn(`Reading compressed-file-data: ${t.compressedSize} bytes`),i=new Uint8Array(t.compressedSize),await this.tokenizer.readBuffer(i),await this.inflate(t,i,r.handler)):(Jn(`Ignoring compressed-file-data: ${t.compressedSize} bytes`),await this.tokenizer.ignore(t.compressedSize));if(Jn(`Reading data-descriptor at pos=${this.tokenizer.position}`),t.dataDescriptor&&134695760!==(await this.tokenizer.readToken(Hn)).signature)throw new Error("Expected data-descriptor-signature at position "+(this.tokenizer.position-Hn.len))}while(!n)}async iterateOverCentralDirectory(e,t){for(const n of e){const e=t(n);if(e.handler){this.tokenizer.setPosition(n.relativeOffsetOfLocalHeader);const t=await this.readLocalFileHeader();if(t){await this.tokenizer.ignore(t.extraFieldLength);const r=new Uint8Array(n.compressedSize);await this.tokenizer.readBuffer(r),await this.inflate(t,r,e.handler)}}if(e.stop)break}}async inflate(e,t,n){if(0===e.compressedMethod)return n(t);if(8!==e.compressedMethod)throw new Error(`Unsupported ZIP compression method: ${e.compressedMethod}`);return Jn(`Decompress filename=${e.filename}, compressed-size=${t.length}`),n(await tr.decompressDeflateRaw(t))}static async decompressDeflateRaw(e){const t=new ReadableStream({start(t){t.enqueue(e),t.close()}}),n=new DecompressionStream("deflate-raw"),r=t.pipeThrough(n);try{const e=new Response(r),t=await e.arrayBuffer();return new Uint8Array(t)}catch(e){const t=e instanceof Error?`Failed to deflate ZIP entry: ${e.message}`:"Unknown decompression error in ZIP entry";throw new TypeError(t)}}async readLocalFileHeader(){const e=await this.tokenizer.peekToken(Rn);if(e===$n){const e=await this.tokenizer.readToken(Vn);return e.filename=await this.tokenizer.readToken(new Mn(e.filenameLength,"utf-8")),e}if(e===Zn)return!1;if(3759263696===e)throw new Error("Encrypted ZIP");throw new Error("Unexpected signature")}}function nr(e,t){const n=e.length,r=t.length;if(r>n)return-1;for(let i=0;i<=n-r;i++){let n=!0;for(let o=0;o<r;o++)if(e[i+o]!==t[o]){n=!1;break}if(n)return i}return-1}function rr(e){const t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}class ir{constructor(e){this.tokenizer=e}inflate(){const e=this.tokenizer;return new ReadableStream({async pull(t){const n=new Uint8Array(1024),r=await e.readBuffer(n,{mayBeLess:!0});0!==r?t.enqueue(n.subarray(0,r)):t.close()}}).pipeThrough(new DecompressionStream("gzip"))}}function or(e){const{byteLength:t}=e;return 6===t?e.getUint16(0)*2**32+e.getUint32(2):5===t?e.getUint8(0)*2**32+e.getUint32(1):4===t?e.getUint32(0):3===t?65536*e.getUint8(0)+e.getUint16(1):2===t?e.getUint16(0):1===t?e.getUint8(0):void 0}Object.prototype.toString,new globalThis.TextDecoder("utf8"),new globalThis.TextEncoder,Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));const ar={get:(e,t)=>127&e[t+3]|e[t+2]<<7|e[t+1]<<14|e[t]<<21,len:4},sr=4100;async function cr(e,t){return new fr(t).fromBuffer(e)}function ur(e){switch(e=e.toLowerCase()){case"application/epub+zip":return{ext:"epub",mime:e};case"application/vnd.oasis.opendocument.text":return{ext:"odt",mime:e};case"application/vnd.oasis.opendocument.text-template":return{ext:"ott",mime:e};case"application/vnd.oasis.opendocument.spreadsheet":return{ext:"ods",mime:e};case"application/vnd.oasis.opendocument.spreadsheet-template":return{ext:"ots",mime:e};case"application/vnd.oasis.opendocument.presentation":return{ext:"odp",mime:e};case"application/vnd.oasis.opendocument.presentation-template":return{ext:"otp",mime:e};case"application/vnd.oasis.opendocument.graphics":return{ext:"odg",mime:e};case"application/vnd.oasis.opendocument.graphics-template":return{ext:"otg",mime:e};case"application/vnd.openxmlformats-officedocument.presentationml.slideshow":return{ext:"ppsx",mime:e};case"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":return{ext:"xlsx",mime:e};case"application/vnd.ms-excel.sheet.macroenabled":return{ext:"xlsm",mime:"application/vnd.ms-excel.sheet.macroenabled.12"};case"application/vnd.openxmlformats-officedocument.spreadsheetml.template":return{ext:"xltx",mime:e};case"application/vnd.ms-excel.template.macroenabled":return{ext:"xltm",mime:"application/vnd.ms-excel.template.macroenabled.12"};case"application/vnd.ms-powerpoint.slideshow.macroenabled":return{ext:"ppsm",mime:"application/vnd.ms-powerpoint.slideshow.macroenabled.12"};case"application/vnd.openxmlformats-officedocument.wordprocessingml.document":return{ext:"docx",mime:e};case"application/vnd.ms-word.document.macroenabled":return{ext:"docm",mime:"application/vnd.ms-word.document.macroenabled.12"};case"application/vnd.openxmlformats-officedocument.wordprocessingml.template":return{ext:"dotx",mime:e};case"application/vnd.ms-word.template.macroenabledtemplate":return{ext:"dotm",mime:"application/vnd.ms-word.template.macroenabled.12"};case"application/vnd.openxmlformats-officedocument.presentationml.template":return{ext:"potx",mime:e};case"application/vnd.ms-powerpoint.template.macroenabled":return{ext:"potm",mime:"application/vnd.ms-powerpoint.template.macroenabled.12"};case"application/vnd.openxmlformats-officedocument.presentationml.presentation":return{ext:"pptx",mime:e};case"application/vnd.ms-powerpoint.presentation.macroenabled":return{ext:"pptm",mime:"application/vnd.ms-powerpoint.presentation.macroenabled.12"};case"application/vnd.ms-visio.drawing":return{ext:"vsdx",mime:"application/vnd.visio"};case"application/vnd.ms-package.3dmanufacturing-3dmodel+xml":return{ext:"3mf",mime:"model/3mf"}}}function lr(e,t,n){n={offset:0,...n};for(const[r,i]of t.entries())if(n.mask){if(i!==(n.mask[r]&e[r+n.offset]))return!1}else if(i!==e[r+n.offset])return!1;return!0}class fr{constructor(e){this.options={mpegOffsetTolerance:0,...e},this.detectors=[...e?.customDetectors??[],{id:"core",detect:this.detectConfident},{id:"core.imprecise",detect:this.detectImprecise}],this.tokenizerOptions={abortSignal:e?.signal}}async fromTokenizer(e){const t=e.position;for(const n of this.detectors){const r=await n.detect(e);if(r)return r;if(t!==e.position)return}}async fromBuffer(e){if(!(e instanceof Uint8Array||e instanceof ArrayBuffer))throw new TypeError(`Expected the \`input\` argument to be of type \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof e}\``);const t=e instanceof Uint8Array?e:new Uint8Array(e);var n,r;if(t?.length>1)return this.fromTokenizer((n=t,r=this.tokenizerOptions,new zn(n,r)))}async fromBlob(e){const t=function(e,t){return new Wn(e,t)}(e,this.tokenizerOptions);try{return await this.fromTokenizer(t)}finally{await t.close()}}async fromStream(e){const t=function(e,t){const n=function(e){try{const t=e.getReader({mode:"byob"});return t instanceof ReadableStreamDefaultReader?new Dn(t):new Pn(t)}catch(t){if(t instanceof TypeError)return new Dn(e.getReader());throw t}}(e),r=t??{},i=r.onClose;return r.onClose=async()=>{if(await n.close(),i)return i()},new Un(n,r)}(e,this.tokenizerOptions);try{return await this.fromTokenizer(t)}finally{await t.close()}}async toDetectionStream(e,t){const{sampleSize:n=sr}=t;let r,i;const o=e.getReader({mode:"byob"});try{const{value:e,done:t}=await o.read(new Uint8Array(n));if(i=e,!t&&e)try{r=await this.fromBuffer(e.subarray(0,n))}catch(e){if(!(e instanceof Ln))throw e;r=void 0}i=e}finally{o.releaseLock()}const a=new TransformStream({async start(e){e.enqueue(i)},transform(e,t){t.enqueue(e)}}),s=e.pipeThrough(a);return s.fileType=r,s}check(e,t){return lr(this.buffer,e,t)}checkString(e,t){return this.check(function(e,t){if("utf-16le"===t){const t=[];for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t.push(255&r,r>>8&255)}return t}if("utf-16be"===t){const t=[];for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t.push(r>>8&255,255&r)}return t}return[...e].map(e=>e.charCodeAt(0))}(e,t?.encoding),t)}detectConfident=async e=>{if(this.buffer=new Uint8Array(sr),void 0===e.fileInfo.size&&(e.fileInfo.size=Number.MAX_SAFE_INTEGER),this.tokenizer=e,await e.peekBuffer(this.buffer,{length:32,mayBeLess:!0}),this.check([66,77]))return{ext:"bmp",mime:"image/bmp"};if(this.check([11,119]))return{ext:"ac3",mime:"audio/vnd.dolby.dd-raw"};if(this.check([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(this.check([77,90]))return{ext:"exe",mime:"application/x-msdownload"};if(this.check([37,33]))return await e.peekBuffer(this.buffer,{length:24,mayBeLess:!0}),this.checkString("PS-Adobe-",{offset:2})&&this.checkString(" EPSF-",{offset:14})?{ext:"eps",mime:"application/eps"}:{ext:"ps",mime:"application/postscript"};if(this.check([31,160])||this.check([31,157]))return{ext:"Z",mime:"application/x-compress"};if(this.check([199,113]))return{ext:"cpio",mime:"application/x-cpio"};if(this.check([96,234]))return{ext:"arj",mime:"application/x-arj"};if(this.check([239,187,191]))return this.tokenizer.ignore(3),this.detectConfident(e);if(this.check([71,73,70]))return{ext:"gif",mime:"image/gif"};if(this.check([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(this.check([31,139,8])){const t=new ir(e).inflate();let n=!0;try{let r;try{r=await this.fromStream(t)}catch{n=!1}if(r&&"tar"===r.ext)return{ext:"tar.gz",mime:"application/gzip"}}finally{n&&await t.cancel()}return{ext:"gz",mime:"application/gzip"}}if(this.check([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(this.checkString("ID3")){await e.ignore(6);const i=await e.readToken(ar);return e.position+i>e.fileInfo.size?{ext:"mp3",mime:"audio/mpeg"}:(await e.ignore(i),this.fromTokenizer(e))}if(this.checkString("MP+"))return{ext:"mpc",mime:"audio/x-musepack"};if((67===this.buffer[0]||70===this.buffer[0])&&this.check([87,83],{offset:1}))return{ext:"swf",mime:"application/x-shockwave-flash"};if(this.check([255,216,255]))return this.check([247],{offset:3})?{ext:"jls",mime:"image/jls"}:{ext:"jpg",mime:"image/jpeg"};if(this.check([79,98,106,1]))return{ext:"avro",mime:"application/avro"};if(this.checkString("FLIF"))return{ext:"flif",mime:"image/flif"};if(this.checkString("8BPS"))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(this.checkString("MPCK"))return{ext:"mpc",mime:"audio/x-musepack"};if(this.checkString("FORM"))return{ext:"aif",mime:"audio/aiff"};if(this.checkString("icns",{offset:0}))return{ext:"icns",mime:"image/icns"};if(this.check([80,75,3,4])){let o;return await new tr(e).unzip(e=>{switch(e.filename){case"META-INF/mozilla.rsa":return o={ext:"xpi",mime:"application/x-xpinstall"},{stop:!0};case"META-INF/MANIFEST.MF":return o={ext:"jar",mime:"application/java-archive"},{stop:!0};case"mimetype":return{async handler(e){const t=new TextDecoder("utf-8").decode(e).trim();o=ur(t)},stop:!0};case"[Content_Types].xml":return{async handler(e){let t=new TextDecoder("utf-8").decode(e);const n=t.indexOf('.main+xml"');if(-1===n){const e="application/vnd.ms-package.3dmanufacturing-3dmodel+xml";t.includes(`ContentType="${e}"`)&&(o=ur(e))}else{t=t.slice(0,Math.max(0,n));const e=t.lastIndexOf('"'),r=t.slice(Math.max(0,e+1));o=ur(r)}},stop:!0};default:return/classes\d*\.dex/.test(e.filename)?(o={ext:"apk",mime:"application/vnd.android.package-archive"},{stop:!0}):{}}}).catch(e=>{if(!(e instanceof Ln))throw e}),o??{ext:"zip",mime:"application/zip"}}if(this.checkString("OggS")){await e.ignore(28);const a=new Uint8Array(8);return await e.readBuffer(a),lr(a,[79,112,117,115,72,101,97,100])?{ext:"opus",mime:"audio/ogg; codecs=opus"}:lr(a,[128,116,104,101,111,114,97])?{ext:"ogv",mime:"video/ogg"}:lr(a,[1,118,105,100,101,111,0])?{ext:"ogm",mime:"video/ogg"}:lr(a,[127,70,76,65,67])?{ext:"oga",mime:"audio/ogg"}:lr(a,[83,112,101,101,120,32,32])?{ext:"spx",mime:"audio/ogg"}:lr(a,[1,118,111,114,98,105,115])?{ext:"ogg",mime:"audio/ogg"}:{ext:"ogx",mime:"application/ogg"}}if(this.check([80,75])&&(3===this.buffer[2]||5===this.buffer[2]||7===this.buffer[2])&&(4===this.buffer[3]||6===this.buffer[3]||8===this.buffer[3]))return{ext:"zip",mime:"application/zip"};if(this.checkString("MThd"))return{ext:"mid",mime:"audio/midi"};if(this.checkString("wOFF")&&(this.check([0,1,0,0],{offset:4})||this.checkString("OTTO",{offset:4})))return{ext:"woff",mime:"font/woff"};if(this.checkString("wOF2")&&(this.check([0,1,0,0],{offset:4})||this.checkString("OTTO",{offset:4})))return{ext:"woff2",mime:"font/woff2"};if(this.check([212,195,178,161])||this.check([161,178,195,212]))return{ext:"pcap",mime:"application/vnd.tcpdump.pcap"};if(this.checkString("DSD "))return{ext:"dsf",mime:"audio/x-dsf"};if(this.checkString("LZIP"))return{ext:"lz",mime:"application/x-lzip"};if(this.checkString("fLaC"))return{ext:"flac",mime:"audio/flac"};if(this.check([66,80,71,251]))return{ext:"bpg",mime:"image/bpg"};if(this.checkString("wvpk"))return{ext:"wv",mime:"audio/wavpack"};if(this.checkString("%PDF"))return{ext:"pdf",mime:"application/pdf"};if(this.check([0,97,115,109]))return{ext:"wasm",mime:"application/wasm"};if(this.check([73,73])){const s=await this.readTiffHeader(!1);if(s)return s}if(this.check([77,77])){const c=await this.readTiffHeader(!0);if(c)return c}if(this.checkString("MAC "))return{ext:"ape",mime:"audio/ape"};if(this.check([26,69,223,163])){async function u(){const t=await e.peekNumber(Sn);let n=128,r=0;for(;0===(t&n)&&0!==n;)++r,n>>=1;const i=new Uint8Array(r+1);return await e.readBuffer(i),i}async function l(){const e=await u(),t=await u();t[0]^=128>>t.length-1;const n=Math.min(6,t.length),r=new DataView(e.buffer),i=new DataView(t.buffer,t.length-n,n);return{id:or(r),len:or(i)}}async function f(t){for(;t>0;){const n=await l();if(17026===n.id)return(await e.readToken(new Mn(n.len))).replaceAll(/\00.*$/g,"");await e.ignore(n.len),--t}}const h=await l();switch(await f(h.len)){case"webm":return{ext:"webm",mime:"video/webm"};case"matroska":return{ext:"mkv",mime:"video/matroska"};default:return}}if(this.checkString("SQLi"))return{ext:"sqlite",mime:"application/x-sqlite3"};if(this.check([78,69,83,26]))return{ext:"nes",mime:"application/x-nintendo-nes-rom"};if(this.checkString("Cr24"))return{ext:"crx",mime:"application/x-google-chrome-extension"};if(this.checkString("MSCF")||this.checkString("ISc("))return{ext:"cab",mime:"application/vnd.ms-cab-compressed"};if(this.check([237,171,238,219]))return{ext:"rpm",mime:"application/x-rpm"};if(this.check([197,208,211,198]))return{ext:"eps",mime:"application/eps"};if(this.check([40,181,47,253]))return{ext:"zst",mime:"application/zstd"};if(this.check([127,69,76,70]))return{ext:"elf",mime:"application/x-elf"};if(this.check([33,66,68,78]))return{ext:"pst",mime:"application/vnd.ms-outlook"};if(this.checkString("PAR1")||this.checkString("PARE"))return{ext:"parquet",mime:"application/vnd.apache.parquet"};if(this.checkString("ttcf"))return{ext:"ttc",mime:"font/collection"};if(this.check([207,250,237,254]))return{ext:"macho",mime:"application/x-mach-binary"};if(this.check([4,34,77,24]))return{ext:"lz4",mime:"application/x-lz4"};if(this.checkString("regf"))return{ext:"dat",mime:"application/x-ft-windows-registry-hive"};if(this.check([79,84,84,79,0]))return{ext:"otf",mime:"font/otf"};if(this.checkString("#!AMR"))return{ext:"amr",mime:"audio/amr"};if(this.checkString("{\\rtf"))return{ext:"rtf",mime:"application/rtf"};if(this.check([70,76,86,1]))return{ext:"flv",mime:"video/x-flv"};if(this.checkString("IMPM"))return{ext:"it",mime:"audio/x-it"};if(this.checkString("-lh0-",{offset:2})||this.checkString("-lh1-",{offset:2})||this.checkString("-lh2-",{offset:2})||this.checkString("-lh3-",{offset:2})||this.checkString("-lh4-",{offset:2})||this.checkString("-lh5-",{offset:2})||this.checkString("-lh6-",{offset:2})||this.checkString("-lh7-",{offset:2})||this.checkString("-lzs-",{offset:2})||this.checkString("-lz4-",{offset:2})||this.checkString("-lz5-",{offset:2})||this.checkString("-lhd-",{offset:2}))return{ext:"lzh",mime:"application/x-lzh-compressed"};if(this.check([0,0,1,186])){if(this.check([33],{offset:4,mask:[241]}))return{ext:"mpg",mime:"video/MP1S"};if(this.check([68],{offset:4,mask:[196]}))return{ext:"mpg",mime:"video/MP2P"}}if(this.checkString("ITSF"))return{ext:"chm",mime:"application/vnd.ms-htmlhelp"};if(this.check([202,254,186,190]))return{ext:"class",mime:"application/java-vm"};if(this.checkString(".RMF"))return{ext:"rm",mime:"application/vnd.rn-realmedia"};if(this.checkString("DRACO"))return{ext:"drc",mime:"application/vnd.google.draco"};if(this.check([253,55,122,88,90,0]))return{ext:"xz",mime:"application/x-xz"};if(this.checkString("<?xml "))return{ext:"xml",mime:"application/xml"};if(this.check([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(this.check([82,97,114,33,26,7])&&(0===this.buffer[6]||1===this.buffer[6]))return{ext:"rar",mime:"application/x-rar-compressed"};if(this.checkString("solid "))return{ext:"stl",mime:"model/stl"};if(this.checkString("AC")){const p=new Mn(4,"latin1").get(this.buffer,2);if(p.match("^d*")&&p>=1e3&&p<=1050)return{ext:"dwg",mime:"image/vnd.dwg"}}if(this.checkString("070707"))return{ext:"cpio",mime:"application/x-cpio"};if(this.checkString("BLENDER"))return{ext:"blend",mime:"application/x-blender"};if(this.checkString("!<arch>"))return await e.ignore(8),"debian-binary"===await e.readToken(new Mn(13,"ascii"))?{ext:"deb",mime:"application/x-deb"}:{ext:"ar",mime:"application/x-unix-archive"};if(this.checkString("WEBVTT")&&["\n","\r","\t"," ","\0"].some(e=>this.checkString(e,{offset:6})))return{ext:"vtt",mime:"text/vtt"};if(this.check([137,80,78,71,13,10,26,10])){async function d(){return{length:await e.readToken(Tn),type:await e.readToken(new Mn(4,"latin1"))}}await e.ignore(8);do{const g=await d();if(g.length<0)return;switch(g.type){case"IDAT":return{ext:"png",mime:"image/png"};case"acTL":return{ext:"apng",mime:"image/apng"};default:await e.ignore(g.length+4)}}while(e.position+8<e.fileInfo.size);return{ext:"png",mime:"image/png"}}if(this.check([65,82,82,79,87,49,0,0]))return{ext:"arrow",mime:"application/vnd.apache.arrow.file"};if(this.check([103,108,84,70,2,0,0,0]))return{ext:"glb",mime:"model/gltf-binary"};if(this.check([102,114,101,101],{offset:4})||this.check([109,100,97,116],{offset:4})||this.check([109,111,111,118],{offset:4})||this.check([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(this.check([73,73,82,79,8,0,0,0,24]))return{ext:"orf",mime:"image/x-olympus-orf"};if(this.checkString("gimp xcf "))return{ext:"xcf",mime:"image/x-xcf"};if(this.checkString("ftyp",{offset:4})&&96&this.buffer[8]){const m=new Mn(4,"latin1").get(this.buffer,8).replace("\0"," ").trim();switch(m){case"avif":case"avis":return{ext:"avif",mime:"image/avif"};case"mif1":return{ext:"heic",mime:"image/heif"};case"msf1":return{ext:"heic",mime:"image/heif-sequence"};case"heic":case"heix":return{ext:"heic",mime:"image/heic"};case"hevc":case"hevx":return{ext:"heic",mime:"image/heic-sequence"};case"qt":return{ext:"mov",mime:"video/quicktime"};case"M4V":case"M4VH":case"M4VP":return{ext:"m4v",mime:"video/x-m4v"};case"M4P":return{ext:"m4p",mime:"video/mp4"};case"M4B":return{ext:"m4b",mime:"audio/mp4"};case"M4A":return{ext:"m4a",mime:"audio/x-m4a"};case"F4V":return{ext:"f4v",mime:"video/mp4"};case"F4P":return{ext:"f4p",mime:"video/mp4"};case"F4A":return{ext:"f4a",mime:"audio/mp4"};case"F4B":return{ext:"f4b",mime:"audio/mp4"};case"crx":return{ext:"cr3",mime:"image/x-canon-cr3"};default:return m.startsWith("3g")?m.startsWith("3g2")?{ext:"3g2",mime:"video/3gpp2"}:{ext:"3gp",mime:"video/3gpp"}:{ext:"mp4",mime:"video/mp4"}}}if(this.checkString("REGEDIT4\r\n"))return{ext:"reg",mime:"application/x-ms-regedit"};if(this.check([82,73,70,70])){if(this.checkString("WEBP",{offset:8}))return{ext:"webp",mime:"image/webp"};if(this.check([65,86,73],{offset:8}))return{ext:"avi",mime:"video/vnd.avi"};if(this.check([87,65,86,69],{offset:8}))return{ext:"wav",mime:"audio/wav"};if(this.check([81,76,67,77],{offset:8}))return{ext:"qcp",mime:"audio/qcelp"}}if(this.check([73,73,85,0,24,0,0,0,136,231,116,216]))return{ext:"rw2",mime:"image/x-panasonic-rw2"};if(this.check([48,38,178,117,142,102,207,17,166,217])){async function y(){const t=new Uint8Array(16);return await e.readBuffer(t),{id:t,size:Number(await e.readToken(In))}}for(await e.ignore(30);e.position+24<e.fileInfo.size;){const b=await y();let v=b.size-24;if(lr(b.id,[145,7,220,183,183,169,207,17,142,230,0,192,12,32,83,101])){const w=new Uint8Array(16);if(v-=await e.readBuffer(w),lr(w,[64,158,105,248,77,91,207,17,168,253,0,128,95,92,68,43]))return{ext:"asf",mime:"audio/x-ms-asf"};if(lr(w,[192,239,25,188,77,91,207,17,168,253,0,128,95,92,68,43]))return{ext:"asf",mime:"video/x-ms-asf"};break}await e.ignore(v)}return{ext:"asf",mime:"application/vnd.ms-asf"}}if(this.check([171,75,84,88,32,49,49,187,13,10,26,10]))return{ext:"ktx",mime:"image/ktx"};if((this.check([126,16,4])||this.check([126,24,4]))&&this.check([48,77,73,69],{offset:4}))return{ext:"mie",mime:"application/x-mie"};if(this.check([39,10,0,0,0,0,0,0,0,0,0,0],{offset:2}))return{ext:"shp",mime:"application/x-esri-shape"};if(this.check([255,79,255,81]))return{ext:"j2c",mime:"image/j2c"};if(this.check([0,0,0,12,106,80,32,32,13,10,135,10]))switch(await e.ignore(20),await e.readToken(new Mn(4,"ascii"))){case"jp2 ":return{ext:"jp2",mime:"image/jp2"};case"jpx ":return{ext:"jpx",mime:"image/jpx"};case"jpm ":return{ext:"jpm",mime:"image/jpm"};case"mjp2":return{ext:"mj2",mime:"image/mj2"};default:return}if(this.check([255,10])||this.check([0,0,0,12,74,88,76,32,13,10,135,10]))return{ext:"jxl",mime:"image/jxl"};if(this.check([254,255]))return this.checkString("<?xml ",{offset:2,encoding:"utf-16be"})?{ext:"xml",mime:"application/xml"}:void 0;if(this.check([208,207,17,224,161,177,26,225]))return{ext:"cfb",mime:"application/x-cfb"};if(await e.peekBuffer(this.buffer,{length:Math.min(256,e.fileInfo.size),mayBeLess:!0}),this.check([97,99,115,112],{offset:36}))return{ext:"icc",mime:"application/vnd.iccprofile"};if(this.checkString("**ACE",{offset:7})&&this.checkString("**",{offset:12}))return{ext:"ace",mime:"application/x-ace-compressed"};if(this.checkString("BEGIN:")){if(this.checkString("VCARD",{offset:6}))return{ext:"vcf",mime:"text/vcard"};if(this.checkString("VCALENDAR",{offset:6}))return{ext:"ics",mime:"text/calendar"}}if(this.checkString("FUJIFILMCCD-RAW"))return{ext:"raf",mime:"image/x-fujifilm-raf"};if(this.checkString("Extended Module:"))return{ext:"xm",mime:"audio/x-xm"};if(this.checkString("Creative Voice File"))return{ext:"voc",mime:"audio/x-voc"};if(this.check([4,0,0,0])&&this.buffer.length>=16){const _=new DataView(this.buffer.buffer).getUint32(12,!0);if(_>12&&this.buffer.length>=_+16)try{const E=(new TextDecoder).decode(this.buffer.subarray(16,_+16));if(JSON.parse(E).files)return{ext:"asar",mime:"application/x-asar"}}catch{}}if(this.check([6,14,43,52,2,5,1,1,13,1,2,1,1,2]))return{ext:"mxf",mime:"application/mxf"};if(this.checkString("SCRM",{offset:44}))return{ext:"s3m",mime:"audio/x-s3m"};if(this.check([71])&&this.check([71],{offset:188}))return{ext:"mts",mime:"video/mp2t"};if(this.check([71],{offset:4})&&this.check([71],{offset:196}))return{ext:"mts",mime:"video/mp2t"};if(this.check([66,79,79,75,77,79,66,73],{offset:60}))return{ext:"mobi",mime:"application/x-mobipocket-ebook"};if(this.check([68,73,67,77],{offset:128}))return{ext:"dcm",mime:"application/dicom"};if(this.check([76,0,0,0,1,20,2,0,0,0,0,0,192,0,0,0,0,0,0,70]))return{ext:"lnk",mime:"application/x.ms.shortcut"};if(this.check([98,111,111,107,0,0,0,0,109,97,114,107,0,0,0,0]))return{ext:"alias",mime:"application/x.apple.alias"};if(this.checkString("Kaydara FBX Binary \0"))return{ext:"fbx",mime:"application/x.autodesk.fbx"};if(this.check([76,80],{offset:34})&&(this.check([0,0,1],{offset:8})||this.check([1,0,2],{offset:8})||this.check([2,0,2],{offset:8})))return{ext:"eot",mime:"application/vnd.ms-fontobject"};if(this.check([6,6,237,245,216,29,70,229,189,49,239,231,254,116,183,29]))return{ext:"indd",mime:"application/x-indesign"};if(await e.peekBuffer(this.buffer,{length:Math.min(512,e.fileInfo.size),mayBeLess:!0}),this.checkString("ustar",{offset:257})&&(this.checkString("\0",{offset:262})||this.checkString(" ",{offset:262}))||this.check([0,0,0,0,0,0],{offset:257})&&function(e,t=0){const n=Number.parseInt(new Mn(6).get(e,148).replace(/\0.*$/,"").trim(),8);if(Number.isNaN(n))return!1;let r=256;for(let n=t;n<t+148;n++)r+=e[n];for(let n=t+156;n<t+512;n++)r+=e[n];return n===r}(this.buffer))return{ext:"tar",mime:"application/x-tar"};if(this.check([255,254])){const k="utf-16le";return this.checkString("<?xml ",{offset:2,encoding:k})?{ext:"xml",mime:"application/xml"}:this.check([255,14],{offset:2})&&this.checkString("SketchUp Model",{offset:4,encoding:k})?{ext:"skp",mime:"application/vnd.sketchup.skp"}:this.checkString("Windows Registry Editor Version 5.00\r\n",{offset:2,encoding:k})?{ext:"reg",mime:"application/x-ms-regedit"}:void 0}return this.checkString("-----BEGIN PGP MESSAGE-----")?{ext:"pgp",mime:"application/pgp-encrypted"}:void 0};detectImprecise=async e=>{if(this.buffer=new Uint8Array(sr),await e.peekBuffer(this.buffer,{length:Math.min(8,e.fileInfo.size),mayBeLess:!0}),this.check([0,0,1,186])||this.check([0,0,1,179]))return{ext:"mpg",mime:"video/mpeg"};if(this.check([0,1,0,0,0]))return{ext:"ttf",mime:"font/ttf"};if(this.check([0,0,1,0]))return{ext:"ico",mime:"image/x-icon"};if(this.check([0,0,2,0]))return{ext:"cur",mime:"image/x-icon"};if(await e.peekBuffer(this.buffer,{length:Math.min(2+this.options.mpegOffsetTolerance,e.fileInfo.size),mayBeLess:!0}),this.buffer.length>=2+this.options.mpegOffsetTolerance)for(let e=0;e<=this.options.mpegOffsetTolerance;++e){const t=this.scanMpeg(e);if(t)return t}};async readTiffTag(e){const t=await this.tokenizer.readToken(e?An:On);switch(this.tokenizer.ignore(10),t){case 50341:return{ext:"arw",mime:"image/x-sony-arw"};case 50706:return{ext:"dng",mime:"image/x-adobe-dng"}}}async readTiffIFD(e){const t=await this.tokenizer.readToken(e?An:On);for(let n=0;n<t;++n){const t=await this.readTiffTag(e);if(t)return t}}async readTiffHeader(e){const t=(e?An:On).get(this.buffer,2),n=(e?jn:Rn).get(this.buffer,4);if(42===t){if(n>=6){if(this.checkString("CR",{offset:8}))return{ext:"cr2",mime:"image/x-canon-cr2"};if(n>=8){const t=(e?An:On).get(this.buffer,8),n=(e?An:On).get(this.buffer,10);if(28===t&&254===n||31===t&&11===n)return{ext:"nef",mime:"image/x-nikon-nef"}}}return await this.tokenizer.ignore(n),await this.readTiffIFD(e)??{ext:"tif",mime:"image/tiff"}}if(43===t)return{ext:"tif",mime:"image/tiff"}}scanMpeg(e){if(this.check([255,224],{offset:e,mask:[255,224]})){if(this.check([16],{offset:e+1,mask:[22]}))return this.check([8],{offset:e+1,mask:[8]}),{ext:"aac",mime:"audio/aac"};if(this.check([2],{offset:e+1,mask:[6]}))return{ext:"mp3",mime:"audio/mpeg"};if(this.check([4],{offset:e+1,mask:[6]}))return{ext:"mp2",mime:"audio/mpeg"};if(this.check([6],{offset:e+1,mask:[6]}))return{ext:"mp1",mime:"audio/mpeg"}}}}new Set(["jpg","png","apng","gif","webp","flif","xcf","cr2","cr3","orf","arw","dng","nef","rw2","raf","tif","bmp","icns","jxr","psd","indd","zip","tar","rar","gz","bz2","7z","dmg","mp4","mid","mkv","webm","mov","avi","mpg","mp2","mp3","m4a","oga","ogg","ogv","opus","flac","wav","spx","amr","pdf","epub","elf","macho","exe","swf","rtf","wasm","woff","woff2","eot","ttf","otf","ttc","ico","flv","ps","xz","sqlite","nes","crx","xpi","cab","deb","ar","rpm","Z","lz","cfb","mxf","mts","blend","bpg","docx","pptx","xlsx","3gp","3g2","j2c","jp2","jpm","jpx","mj2","aif","qcp","odt","ods","odp","xml","mobi","heic","cur","ktx","ape","wv","dcm","ics","glb","pcap","dsf","lnk","alias","voc","ac3","m4v","m4p","m4b","f4v","f4p","f4b","f4a","mie","asf","ogm","ogx","mpc","arrow","shp","aac","mp1","it","s3m","xm","skp","avif","eps","lzh","pgp","asar","stl","chm","3mf","zst","jxl","vcf","jls","pst","dwg","parquet","class","arj","cpio","ace","avro","icc","fbx","vsdx","vtt","apk","drc","lz4","potx","xltx","dotx","xltm","ott","ots","otp","odg","otg","xlsm","docm","dotm","potm","pptm","jar","rm","ppsm","ppsx","tar.gz","reg","dat"]),new Set(["image/jpeg","image/png","image/gif","image/webp","image/flif","image/x-xcf","image/x-canon-cr2","image/x-canon-cr3","image/tiff","image/bmp","image/vnd.ms-photo","image/vnd.adobe.photoshop","application/x-indesign","application/epub+zip","application/x-xpinstall","application/vnd.ms-powerpoint.slideshow.macroenabled.12","application/vnd.oasis.opendocument.text","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.presentation","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/zip","application/x-tar","application/x-rar-compressed","application/gzip","application/x-bzip2","application/x-7z-compressed","application/x-apple-diskimage","application/vnd.apache.arrow.file","video/mp4","audio/midi","video/matroska","video/webm","video/quicktime","video/vnd.avi","audio/wav","audio/qcelp","audio/x-ms-asf","video/x-ms-asf","application/vnd.ms-asf","video/mpeg","video/3gpp","audio/mpeg","audio/mp4","video/ogg","audio/ogg","audio/ogg; codecs=opus","application/ogg","audio/flac","audio/ape","audio/wavpack","audio/amr","application/pdf","application/x-elf","application/x-mach-binary","application/x-msdownload","application/x-shockwave-flash","application/rtf","application/wasm","font/woff","font/woff2","application/vnd.ms-fontobject","font/ttf","font/otf","font/collection","image/x-icon","video/x-flv","application/postscript","application/eps","application/x-xz","application/x-sqlite3","application/x-nintendo-nes-rom","application/x-google-chrome-extension","application/vnd.ms-cab-compressed","application/x-deb","application/x-unix-archive","application/x-rpm","application/x-compress","application/x-lzip","application/x-cfb","application/x-mie","application/mxf","video/mp2t","application/x-blender","image/bpg","image/j2c","image/jp2","image/jpx","image/jpm","image/mj2","audio/aiff","application/xml","application/x-mobipocket-ebook","image/heif","image/heif-sequence","image/heic","image/heic-sequence","image/icns","image/ktx","application/dicom","audio/x-musepack","text/calendar","text/vcard","text/vtt","model/gltf-binary","application/vnd.tcpdump.pcap","audio/x-dsf","application/x.ms.shortcut","application/x.apple.alias","audio/x-voc","audio/vnd.dolby.dd-raw","audio/x-m4a","image/apng","image/x-olympus-orf","image/x-sony-arw","image/x-adobe-dng","image/x-nikon-nef","image/x-panasonic-rw2","image/x-fujifilm-raf","video/x-m4v","video/3gpp2","application/x-esri-shape","audio/aac","audio/x-it","audio/x-s3m","audio/x-xm","video/MP1S","video/MP2P","application/vnd.sketchup.skp","image/avif","application/x-lzh-compressed","application/pgp-encrypted","application/x-asar","model/stl","application/vnd.ms-htmlhelp","model/3mf","image/jxl","application/zstd","image/jls","application/vnd.ms-outlook","image/vnd.dwg","application/vnd.apache.parquet","application/java-vm","application/x-arj","application/x-cpio","application/x-ace-compressed","application/avro","application/vnd.iccprofile","application/x.autodesk.fbx","application/vnd.visio","application/vnd.android.package-archive","application/vnd.google.draco","application/x-lz4","application/vnd.openxmlformats-officedocument.presentationml.template","application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/vnd.ms-excel.template.macroenabled.12","application/vnd.oasis.opendocument.text-template","application/vnd.oasis.opendocument.spreadsheet-template","application/vnd.oasis.opendocument.presentation-template","application/vnd.oasis.opendocument.graphics","application/vnd.oasis.opendocument.graphics-template","application/vnd.ms-excel.sheet.macroenabled.12","application/vnd.ms-word.document.macroenabled.12","application/vnd.ms-word.template.macroenabled.12","application/vnd.ms-powerpoint.template.macroenabled.12","application/vnd.ms-powerpoint.presentation.macroenabled.12","application/java-archive","application/vnd.rn-realmedia","application/x-ms-regedit","application/x-ft-windows-registry-hive"]);var hr=i(7713),pr=i(6889),dr=i(8559),gr=i(6060),mr=i(8287).Buffer;const yr=["google-gax"],br="sha256",vr="aes-256-gcm",wr=e=>Sr(ut(e||(0,pr.networkInterfaces)())),_r=e=>Sr(e,"md5"),Er=(e,t)=>e&&String.isString(e)?e:Te(t,1),kr=e=>e?mr.isBuffer(e)?e:Ie(e,1):null,xr=e=>{const t=new URLSearchParams;return Object.keys(e).sort().map(n=>t.append(n,ut(e[n]))),t.toString()},Sr=(e,t=br)=>(0,gr.createHash)(t).update(e).digest("hex"),Or=(e,t=br)=>new Promise(n=>{const r=(0,gr.createHash)(t);(0,hr.createReadStream)(e).on("data",e=>r.update(e)).on("end",()=>n(r.digest("hex")))}),Ar=(e=128,t="HEX")=>{let n=Math.ceil(~~e/2);return n=n>0?n:1,(0,gr.randomBytes)(n).toString(t).substring(0,e)},Rr=(e,t)=>Sr(xr(e),t),jr=e=>(e=`0x${ut(e||"0").replace(/^0x/gi,"")}`,BigInt(e,16).toString(10)),Tr=e=>{const t=kr(e?.key)||(0,gr.randomBytes)((e?.length||256)/8);return{buffer:t,base64:Er(e?.key,t)}},Ir=e=>{const t=kr(e?.iv)||(0,gr.randomBytes)(16);return{buffer:t,base64:Er(e?.iv,t)}},Mr=e=>{const t=kr(e?.authTag);return{buffer:t,base64:Er(e?.authTag,t)}},Lr=(e,t)=>{assert(e,"Invalid input.",400),e=mr.isBuffer(e)?e:mr.from(e);const[n,r]=[Tr,Ir].map(e=>e(t)),i=(0,gr.createCipheriv)(vr,n.buffer,r.buffer),o=ut(t?.expected||"BASE64",{case:"UP"});let a=mr.concat([i.update(e),i.final()]);switch(o){case"":case"BASE64":a=Te(a);break;case"BUFFER":break;case"HEX":a=Me(a);break;default:throwError("Unsupported output type.",400)}return{key:n.base64,iv:r.base64,encrypted:a,encryption:vr,authTag:Te(i.getAuthTag(),!0)}},Br=(e,t)=>{assert(e,"Invalid input.",400),e=mr.isBuffer(e)?e:Ie(e,!0);const[n,r,i]=[Tr,Ir,Mr].map(e=>e(t)),o=(0,gr.createDecipheriv)(vr,n.buffer,r.buffer),a=ut(t?.expected||"TEXT",{case:"UP"});o.setAuthTag(i.buffer);let s=mr.concat([o.update(e),o.final()]);switch(a){case"":case"TEXT":s=s.toString();break;case"BASE64":s=Te(s);break;case"BUFFER":break;case"HEX":s=Me(s);break;default:throwError("Unsupported output type.",400)}return s},Cr=async e=>{const{GoogleAuth:t}=await dn("google-gax");return new t({keyFilename:e,scopes:["https://www.googleapis.com/auth/cloud-platform"]}).getClient()},Nr=async e=>{const t=await e.getAccessToken(),n=t?.token||null;return assert(n,"Failed to get Google API token."),n};var Pr=i(8287).Buffer,Dr=i(5606);const Fr=["file-type","mime-types","@google-cloud/storage"],Ur={cacheControl:"public, max-age=31536000"},zr=e=>`https://storage.cloud.google.com/${e}`,Wr=e=>e.replace(/^gs:\/\/[^/]*\/(.*)$/,"$1"),qr=e=>(0,ne.join)(e.substr(0,2),e.substr(2,2)),[$r,Zr]=[dr.deflate,dr.unzip].map(re.promisify),Hr=(e,t)=>e.replace(/[\/?<>\\:*|"]/g,t||"_").trim(),Vr=(e,t)=>`data:${e};${Kr.toLowerCase()},${t}`,[Gr,Kr,Yr,Jr,Xr,Qr,ei,ti,ni,ri,ii,oi,ai,si,ci,ui,li,fi,hi,pi,di,gi,mi,yi,bi,vi,wi,_i,Ei,ki,xi,Si,Oi,Ai,Ri,ji,Ti,Ii,Mi,Li,Bi,Ci]=["NULL","BASE64","BUFFER","FILE","STREAM","TEXT","JSON","utf8","binary","BLOB","DATAURL","0644","0755","text/plain","application/octet-stream","application/json","image/png","image/jpeg","video/mov","video/mpeg","video/mp4","video/mpg","video/avi","video/wmv","video/mpegps","video/x-flv","image/gif","image/webp","application/pdf","audio/aac","audio/flac","audio/mp3","audio/mpeg","audio/m4a","audio/mpga","audio/opus","audio/pcm","audio/wav","audio/webm","video/3gpp","audio/x-wav","audio/ogg"],[Ni,Pi,Di]=[{encoding:Kr},{encoding:ni},{encoding:Gr}];let[Fi,Ui,zi]=[null,null,null];const Wi=async(e,t)=>await hr.promises.readFile(e,[Gr,Yr].includes(ut(t?.encoding,{case:"UP"}))?null:t?.encoding||ti),qi=async(e,t,n)=>await hr.promises.writeFile(e,t,n?.encoding||ti),$i=async(e,t,n)=>await qi(e,Hi(t,n),n),Zi=(e,t)=>{if(t?.throw)throw e;t?.log&&console.log(e)},Hi=(e,t)=>JSON.stringify(e||{},t?.replacer||null,t?.space||4),Vi=async(e,t)=>{let n={};try{n=JSON.parse(await Wi(e,t))}catch(e){Zi(e,t)}return n},Gi=e=>(0,ne.join)((0,pr.tmpdir)(),e?.sub||"",e?.seed?Sr(e.seed):""),Ki=async(e,t)=>{let{filename:n,encoding:r,mode:i,prefix:o,suffix:a,hashName:s}=t||{};n=(o||"")+(n?s?Sr(n):n:F())+(a?`.${a}`:""),"JSON"===String(r).toUpperCase()&&(e=Hi(e,t),r=null);const c=Gi({sub:n});return await qi(c,e,{encoding:r||ti}),await hr.promises.chmod(c,i||oi),c},Yi=async(e,t,n,r,i,o)=>{var[i,a,s,c,u]=[i||500,"Path is not",e=>u=r||e];try{c=await hr.promises.stat(e)}catch(e){_e(r||e.message,i,o)}switch(String(t||"").toUpperCase()){case"*":case"":break;case"F":c.isFile()||s(`${a} a file: '${e}'.`);break;case"D":c.isDirectory()||s(`${a} a directory: '${e}'.`);break;default:s(`Unsupported path type: '${t}'.`)}assert(!u,u,i,o);try{switch(String(n||"").toUpperCase()){case"*":case"":break;case"R":await hr.promises.access(e,hr.constants.R_OK);break;case"W":await hr.promises.access(e,hr.constants.R_OK|hr.constants.W_OK);break;default:s(`Unsupported access mode: '${n}'.`)}}catch(e){s(e.message)}return assert(!u,u,i,o),c},Ji=async(e,t)=>{const n=t?.length??1e3;let r;if(Pr.isBuffer(e))r=e.subarray(0,n);else{const t=await hr.promises.promises.open(e,"r");r=Pr.alloc(n),await t.read(r,0,n,0),await t.close()}for(let e=0;e<r.length;e++)if(0===r[e])return!1;return!0},Xi=async e=>{const t=(e=e||{}).config||(0,ne.join)((0,pr.homedir)(),`.${(await Ut(e.pack)).name}.json`);return assert(t,"Error getting config filename.",500),t},Qi=async e=>{const t=await Xi(e);return{filename:t,config:await Vi(t)}},eo=async(e,t)=>{e=e||{},assert(Object.keys(e).length,"Empty config.",400);let[n,r]=[null,{}];if(t?.overwrite)n=await Xi(t);else{const{filename:e,config:i}=await Qi(t);n=e,r=i}return await $i(n,zt(e,r,{mergeUndefined:!0}),t),{filename:n,config:r}},to=async(e,t)=>(await hr.promises.mkdir(e,{recursive:!0}),await hr.promises.chmod(e,t?.permissions||ai),await hr.promises.stat(e)),no=async(e,t)=>(e=((e=De(e))===ci?"":e)||kt(await cr(t),"mime")||ci,assert(e,"MIME type is required.",400),assert(Pr.isBuffer(t),"Data buffer is required.",400),Vr(e,Te(t,!0))),ro=e=>{const t=e.split(","),n=t[0].match(/:(.*?);/)[1],r=atob(t[1]),i=new ArrayBuffer(r.length),o=new Uint8Array(i);for(let e=0;e<r.length;e++)o[e]=r.charCodeAt(e);return{mime:n,buffer:Pr.from(i)}},io=e=>(assert(e=ut(e).replace(/(\W+)/gi,"-").replace(/^-*|-*$/g,"").trim(),"Invalid filename.",400),e),oo=async e=>{assert(e=ut(e),"Path is required.",400);try{return await hr.promises.stat(e)}catch(e){return null}},ao=async(e,t)=>(assert(e,"Invalid input.",400),await uo(await $r(Pr.isBuffer(e)?e:Pr.from(e),t),t)),so=async(e,t)=>(assert(e,"Invalid input.",400),await uo(await Zr(Pr.isBuffer(e)?e:Ie(e,!0),t),t)),co=async e=>{const t=new FileReader;return new Promise((n,r)=>{t.onload=()=>n(Pr.from(t.result)),t.onerror=r,t.readAsArrayBuffer(e)})},uo=async(e,t)=>{assert(e,t?.errorMessage||"Invalid input.",400);let n={},[r,i]=[Pr.isBuffer(e)||ArrayBuffer.isArrayBuffer(e)||Uint8Array.isUint8Array(e)?Yr:t?.input,t?.expected||Yr].map(e=>ut(e,{case:"UP"})),[o,a,s,c]=[null,null,null,i];switch(r){case Jr:o=e;break;case Qr:e=Pr.from(e),s=si,r=Yr;break;case ri:e=await co(e),r=Yr;break;case ii:const t=ro(e);e=t.buffer,s=t.mime,r=Yr}switch(s||(s=(await lo(e,e))?.mime||ci),i){case Xr:c=Jr;break;case ii:case Qr:case ei:c=Yr}if(o&&(a=await Yi(e,"F","R")),r!==c)switch(`${r}-${c}`){case`${Kr}-${Yr}`:e=Ie(e,!0);break;case`${Kr}-${Jr}`:e=Ie(e,!0);case`${Yr}-${Jr}`:e=await(async(e,t)=>{const n=t?.encoding||ni;if(t?.file)return await qi(t?.file,e,n),t?.file;const{extension:r}=await lo(e,t?.filename);return await Ki(e,{filename:t?.filename,encoding:n,suffix:t?.suffix||r})})(e,t);break;case`${Yr}-${Kr}`:e=Te(e,!0);break;case`${Jr}-${Yr}`:e=await Wi(e,Di);break;case`${Jr}-${Kr}`:e=await Wi(e,Ni);break;default:_e("Invalid input or expected format.",400)}switch(i){case Xr:n.content=(0,hr.createReadStream)(e);break;case Qr:n.content=e.toString();break;case ei:n.content=JSON.parse(e.toString());break;case ii:n.content=await no(t?.mime||s,e);break;default:n.content=e}return o&&c!==Jr&&t?.cleanup&&await go(o,t),t?.withCleanupFunc&&(n.cleanup=async t=>{i===Xr&&await rn(n.content?.destroy),c===Jr&&(t?.force||!o)&&await go(e,t)}),t?.meta&&(n={...n,mime:s,meta:a}),1===Object.keys(n).length?n.content:n},lo=async(e,t)=>{const n=await rn(()=>dn("mime-types")),r=e&&Pr.isBuffer(e)&&kt(await cr(e),"mime")||t&&String.isString(t)&&n?.lookup?.(t)||ci;return{mime:r,extension:n?.extension?.(r)||"bin"}},fo=async(e,t)=>{const{meta:n,content:r}=await uo(e,{meta:1,...t||{}}),i=t?.hashAlgorithm||br,o=Sr(r,i),a=t?.filename||(n?(0,ne.basename)(e):null)||Sr,{mime:s}=await lo(r,a);return{content:r,extname:(0,ne.extname)(a).replace(/^\.|\.$/g,""),filename:a,hashAlgorithm:i,hash:o,mime:s,size:r.length}},ho=async(e,t)=>{const[n,r,i,o]=[{...await fo(e,t),compressed:null},t?.sliceSize||144e4,[],t?.hashAlgorithm||br];for(t?.zip&&(n.content=await ao(n.content,t),n.compressed="gzip");r*i.length<n.content.length;){const e=r*i.length;i.push(n.content.slice(e,e+r))}return delete n.content,assert(i.length,"Empty slices.",400),{...n,slices:i.map((e,t)=>({content:e,hash:Sr(e,o)}))}},po=async(e,t)=>{assert(e?.slices?.length,"Invalid slices.",400);const[n,r]=[e?.hashAlgorithm||br,[]];for(let i in e?.slices){const o=await uo(e.slices[i]?.content,{...t||{},expected:Yr});e.slices[i]?.hash&&assert(e.slices[i].hash===Sr(o,n),`Invalid hash for slice ${i}.`,400),r.push(o)}let i=Pr.concat(r);switch(ut(e?.compressed,{case:"UP"})){case"":break;case"GZIP":i=await so(i,t);break;default:_e("Unsupported compression.",400)}return e?.hash&&assert(e.hash===Sr(i,n),"Invalid file hash.",400),await uo(i,{...t||{},input:Yr})},go=async(e,t)=>await rn(async()=>{await Yi(e,"F","W"),await hr.promises.unlink(e)},t),mo=async e=>{if(e)if("GOOGLE"===ut(e?.provider,{case:"UP"})){assert(e?.credentials,"Google Cloud credentials are required.",400),assert(Ui=e?.bucket,"Google Cloud Storage bucket is required.",400),zi=e?.url||zr(Ui),1===~~Dr.env.FORKED&&Dt(`GOOGLE CLOUD STORAGE: ${zi}`,"file:///home/runner/work/utilitas/utilitas/lib/storage.mjs");const{Storage:t}=await dn("@google-cloud/storage",{raw:!0});Fi=new t(e).bucket(Ui)}else _e("Invalid cloud storage provider.",500);return assert(Fi,"Cloud storage has not been initialized.",501),{client:Fi,bucket:Ui,url:zi}},yo=async(e,t)=>{assert(Fi,"Cloud storage has not been initialized.",500);const{content:n,cleanup:r}=await uo(e,{input:t?.input,suffix:t?.suffix,...t||{},expected:Jr,withCleanupFunc:!0,errorMessage:"Invalid file."}),i=await Fi.upload(n,{gzip:!1,destination:t?.destination||(0,ne.join)(...t?.prefix?[t.prefix]:[],(0,ne.basename)(n)),metadata:Ur,...t||{}});await r();const o=t?.raw?i:i[0].metadata;var a;return!t?.raw&&o&&(o.gs=(a=o?.id,`gs://${a}`.replace(/[\/][^\/]*$/,""))),o},bo=async(e,t)=>{assert(Fi,"Cloud storage has not been initialized.",500);const n=await Fi.file(e).download(t);return t?.raw?n:await uo(n[0],{...t||{},input:Yr})},vo=async(e,t)=>{assert(e,"Path is required.",400);const n=e.endsWith("/"),r=n?await _o(e,{name:!0}):[e],i=await Promise.all(r.map(e=>bo(e,t)));if(!n)return i[0];const o={};for(let e in r)o[r[e]]=i[e];return o},wo=async(e,t)=>{assert(Fi,"Cloud storage has not been initialized.",500);const n=await Fi.file(e).exists();return t?.raw?n:n[0]?{}:null},_o=async(e,t)=>{assert(Fi,"Cloud storage has not been initialized.",500);let n=await Fi.getFiles({prefix:e,...t||{}});return t?.raw||(n=(n[0]||[]).map(e=>e.metadata),t?.name&&(n=n.map(e=>e.name))),n},Eo=async(e,t)=>{assert(Fi,"Cloud storage has not been initialized.",500);const n=await Fi.file(e).delete(t);return t?.raw?n:n[0].toJSON()},ko=async(e,t)=>{assert(e,"Path is required.",400);const n=e.endsWith("/"),r=n?await _o(e,{name:!0}):[e],i=await Promise.all(r.map(e=>Eo(e,t)));if(!n)return i[0];const o={};for(let e in r)o[r[e]]=i[e];return o};let[xo,So]=[null,null];var Oo=i(5606),Ao=i(8287).Buffer;const Ro=Oo.env.TMPDIR?(0,ne.join)(Oo.env.TMPDIR,"shot"):null,jo=e=>e.toString("utf8"),[To,Io,Mo]=["TEXT","JSON","PARSED"],Lo={redirect:"follow",follow:3,timeout:1e4,headers:{"user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Safari/605.1.15"}},Bo=async(e,t)=>{const n=await uo(e,{input:To,expected:To,...t||{}}),r=await Promise.all([dn("jsdom"),dn("@mozilla/readability")]),[i,o]=[r[0].JSDOM,r[1].Readability],a=new i(n)?.window?.document;assert(a,"Failed to parse HTML.",500);const s=new o(a).parse();if(assert(s,"Failed to distill HTML.",500),!t?.raw){s.textContent=s.textContent.trim().split("\n").map(e=>e.trim());for(let e=s.textContent.length-1;e>=0;e--)e<s.textContent.length-1&&""===s.textContent[e]&&""===s.textContent[e+1]&&s.textContent.splice(e,1);s.textContent=s.textContent.join("\n")}return{byline:s.byline,data:{},html:s.html,lang:s.lang,provider:s.siteName,text:s.textContent,thumbnail:null,title:s.title,type:"WEBPAGE"}},Co={name:"utilitas",description:"Just another common utility for JavaScript.",version:"2000.3.56",private:!1,homepage:"https://github.com/Leask/utilitas",main:"index.mjs",type:"module",engines:{node:">=20.x"},author:"Leask Wong <i@leaskh.com>",license:"MIT",repository:{type:"git",url:"https://github.com/Leask/utilitas.git"},overrides:{xlsx:"https://cdn.sheetjs.com/xlsx-0.20.1/xlsx-0.20.1.tgz"},dependencies:{"file-type":"^21.1.1",mathjs:"^15.1.0",uuid:"^13.0.0"},devDependencies:{"@ffmpeg-installer/ffmpeg":"^1.1.0","@ffprobe-installer/ffprobe":"^2.1.2","@google-cloud/discoveryengine":"^2.5.2","@google-cloud/storage":"^7.18.0","@google/genai":"^1.31.0","@mozilla/readability":"github:mozilla/readability","@sentry/node":"^10.29.0","@sentry/profiling-node":"^10.29.0","acme-client":"^5.4.0","browserify-fs":"^1.0.0",buffer:"^6.0.3","fast-geoip":"^1.1.88","fluent-ffmpeg":"^2.1.3","form-data":"^4.0.5","google-gax":"^5.0.6",ioredis:"^5.8.2","js-tiktoken":"^1.0.21",jsdom:"^27.2.0","lorem-ipsum":"^2.0.8","mailgun.js":"^12.4.0",mailparser:"^3.9.0",mime:"^4.1.0",mysql2:"^3.15.3","node-mailjet":"^6.0.11","node-polyfill-webpack-plugin":"^4.1.0","office-text-extractor":"^3.0.3",openai:"^6.10.0","pdf-lib":"^1.17.1","pdfjs-dist":"^5.4.449",pg:"^8.16.3",pgvector:"^0.2.1",ping:"^1.0.0",process:"^0.11.10",puppeteer:"^24.32.0",say:"^0.16.0",telegraf:"^4.16.3",telesignsdk:"^3.0.4","tesseract.js":"^6.0.1",twilio:"^5.10.7",url:"github:Leask/node-url","webpack-cli":"^6.0.1","whisper-node":"^1.1.1",wrangler:"^4.53.0",xlsx:"https://cdn.sheetjs.com/xlsx-0.20.1/xlsx-0.20.1.tgz","youtube-transcript":"^1.2.1"}},No="[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",Po=e=>e.replace(/\-/gi,""),Do=e=>jr(Po(e)),Fo=e=>zo(BigInt(e).toString(16).padStart(32,"0")),Uo=e=>zo(_r(e??Ar())),zo=e=>e.replace(/^(.{8})(.{4})(.{4})(.{4})(.{12})$/,"$1-$2-$3-$4-$5"),Wo=e=>e?Number((BigInt(String(e).replace(/^.*(.{8})-(.{4})-.(.{3})-.{4}-.{12}.*$/,"0x$3$2$1"))-122192928000000000n)/10000n):0,qo=e=>{(e=Object.assign({file:"file:///home/runner/work/utilitas/utilitas/lib/uoid.mjs",id:F()},e||{})).type=e.type||Ye(e.file),1===(e.security=~~e.security)&&(e.security=128);let t=e.id;return e.security&&(t+=`-${Ar(e.security-t.length-1)}`),`${e.type.toUpperCase()}|${t}`},$o=e=>(jt(e=e||Co.homepage),$(e,$.URL)),Zo=(e,t,n)=>(e=Zt(e,t,{case:"UP",...n||{}}),assert(e,"Invalid reference.",400),$(e,$o(n?.url))),Ho=e=>$(`info:id/${encodeURIComponent(ut(e||wr()))}`,$.URL),Vo=qo;i(8287).Buffer;const Go=async e=>{const t=await dn("fluent-ffmpeg");return t.setFfmpegPath((await dn("@ffmpeg-installer/ffmpeg")).path),t.setFfprobePath((await dn("@ffprobe-installer/ffprobe")).path),new t(e)},Ko=async(e,t)=>{assert(e,"Invalid audio input.",400);const{content:n,cleanup:r}=await uo(e,{...t||{},expected:Jr,withCleanupFunc:!0}),i=await Go(n),o=t?.output||Gi({sub:t?.suffix?`${Sr(JSON.stringify({content:n,options:t}))}.${t.suffix}`:null});return t?.frequency&&i.audioFrequency(t.frequency),t?.channels&&i.audioChannels(t.channels),t?.codec&&i.audioCodec(t?.codec),await new Promise((e,t)=>{i.on("error",t),i.on("end",e),i.save(o)}),t?.input===Jr||await r(),await uo(o,{expected:Yr,cleanup:!0,...t||{},input:Jr})};i(8287).Buffer;const[Yo,Jo,Xo,Qo,ea,ta,na,ra,ia,oa,aa,sa,ca,ua,la,fa,ha,pa,da,ga,ma,ya,ba,va,wa,_a,Ea,ka,xa,Sa,Oa,Aa,Ra,ja,Ta,Ia,Ma,La,Ba,Ca,Na,Pa,Da,Fa,Ua,za,Wa,qa,$a,Za,Ha,Va,Ga,Ka,Ya,Ja,Xa,Qa,es,ts,ns,rs,is,os,as,ss,cs,us,ls,fs,hs,ps,ds,gs]=["OpenAI","Google","Ollama","nova","deepseek-3.2-speciale","```","claude-opus-4.5","audio","wav","OPENAI_VOICE","medium","think","<think>","</think>","<tools>","</tools>","tools","text","OK","function","gpt-5.2","gpt-5.1-codex","gpt-5-image","gemma3:27b","Anthropic",33177600,[],30,{log:!0},"Alan","user",{role:"system"},"assistant","model","json_object",1.1,"Prompt is required.",4194304,e=>1e3*e,e=>1e6*e,e=>60*e,e=>3600*e,e=>1e9*e,e=>e.replace(/[\.\s]*$/,""),e=>e.replace(/^[\.\s]*/,""),"gemini-3-pro-image-preview","image","Jina","jina-deepsearch-v1","SiliconFlow","deepseek-ai/DeepSeek-V3.2-exp",589824,"https://openrouter.ai/api/v1","OpenRouter","openrouter/auto","tool","openai","google","anthropic",":online","gemini-3-pro-preview","gemini-2.5-flash-preview-09-2025","imagen-4.0-ultra-generate-001","veo-3.1-generate-preview","imagen-4.0-upscale-preview","Error generating content.","gemini-2.5-flash-preview-tts","gemini-2.5-pro-tts","wav","gpt-4o-mini-tts","gpt-4o-transcribe","Invalid audio data.","ogg","..."],[ms,ys,bs]=[e=>({type:e}),e=>({messages:e}),e=>({text:e})],[vs,ws,_s]=["code_interpreter","retrieval",ga].map(ms),Es=(new Map,{source:Qa,icon:"♊️",json:!0,audioCostTokens:1e6,imageCostTokens:~~(_a/Va*258),maxAudioLength:Pa(8.4),maxAudioPerPrompt:1,maxFileSize:Ca(20),maxImagePerPrompt:3e3,maxImageSize:1/0,maxUrlSize:Da(2),maxVideoLength:Na(45),maxVideoPerPrompt:10,vision:!0,hearing:!0,tools:!0,reasoning:!0,supportedMimeTypes:[li,fi,hi,pi,di,gi,mi,yi,bi,vi,Ei,ki,xi,Si,Oi,Ai,Ri,ji,Ti,Ii,Mi,Li,Ci],defaultProvider:Ka}),ks={source:Xa,icon:"⚛️",contextWindow:Ba(400),maxOutputTokens:Ba(128),imageCostTokens:~~(La/Va*140+70),maxFileSize:Ca(50),maxImageSize:La,json:!0,tools:!0,vision:!0,hearing:!0,reasoning:!0,supportedMimeTypes:[li,fi,wi,_i,Ei,Ii],defaultProvider:Ka},xs={icon:"🐬",contextWindow:Ba(163.8),maxOutputTokens:Ba(65.5),json:!0,tools:!0,reasoning:!0},Ss={[rs]:{...Es,contextWindow:Ca(1),maxOutputTokens:Ba(64),fast:!0,json:!1},[ma]:{...ks,fast:!0},[ns]:{...Es,contextWindow:Ca(1),maxOutputTokens:Ba(64)},[za]:{...Es,icon:"🍌",label:"Nano Banana Pro",contextWindow:Ba(64),maxOutputTokens:Ba(32),image:!0,tools:!1},[is]:{source:Qa,maxInputTokens:480,image:!0,defaultProvider:Jo},[os]:{source:Qa,maxInputTokens:1024,imageCostTokens:0,maxImagePerPrompt:1,maxImageSize:1/0,vision:!0,video:!0,supportedMimeTypes:[li,fi],defaultProvider:Jo},[ba]:{...ks,icon:"🎨",label:"gpt-image-1",image:!0},[ya]:{...ks},[na]:{source:es,icon:"✳️",contextWindow:Ba(200),maxOutputTokens:Ba(64),documentCostTokens:3e4,maxDocumentFile:Ca(32),maxDocumentPages:100,imageCostTokens:~~(_a/750),maxImagePerPrompt:100,maxFileSize:Ca(5),maxImageSize:4e6,json:!0,reasoning:!0,tools:!0,vision:!0,supportedMimeTypes:[si,li,fi,wi,_i,Ei],defaultProvider:Ka},[cs]:{source:Qa,maxInputTokens:Ba(32),audio:!0,fast:!0,hidden:!0,defaultProvider:Jo},[us]:{source:Qa,maxInputTokens:Ba(32),audio:!0,hidden:!0,defaultProvider:Jo},[fs]:{source:Xa,maxInputTokens:Ba(2),audio:!0,fast:!0,hidden:!0,defaultProvider:Yo},[hs]:{source:Xa,maxInputTokens:0,hearing:!0,fast:!0,hidden:!0,defaultProvider:Yo},[$a]:{icon:"✴️",contextWindow:1/0,maxInputTokens:1/0,maxOutputTokens:1/0,imageCostTokens:0,maxImageSize:1/0,supportedMimeTypes:[li,fi,si,_i,Ei],reasoning:!0,json:!0,vision:!0,deepsearch:!0,defaultProvider:qa},[ea]:xs,[Ha]:{...xs,defaultProvider:Za},[va]:{icon:"❇️",contextWindow:Ba(128),maxOutputTokens:Ba(8),imageCostTokens:256,maxImageSize:802816,supportedMimeTypes:[li,fi,wi],fast:!0,json:!0,vision:!0,defaultProvider:Xo}};let Os=0;for(const e in Ss)Ss[e].name=e,Ss[e].supportedMimeTypes=Ss[e].supportedMimeTypes||[],Ss[e].maxOutputTokens=Ss[e].maxOutputTokens||Math.ceil(.4*Ss[e].contextWindow),Ss[e].maxInputTokens=Ss[e].maxInputTokens||Ss[e].contextWindow-Ss[e].maxOutputTokens,Os=Os?Math.max(Os,Ss[e].imageCostTokens||0):Ss[e].imageCostTokens;Math.min(100/75,Math.min(100/60,1.25)),Math.max(3.5,4);const[As,Rs,js,Ts,Is,Ms,Ls,Bs,Cs,Ns,Ps,Ds]=["OPENAI","GOOGLE","OPENROUTER","JINA","global","default_ranking_config","text-embedding-3-small","text-embedding-3-large","gemini-embedding-001","jina-embeddings-v4","semantic-ranker-default@latest","jina-reranker-m0"],Fs={},Us=e=>1e3*(isNaN(e=Number(e))?0:e),zs=e=>Fs[e]&&(Fs[e].lock=0),Ws=()=>Fs;let qs=null;const $s=(e,t,n)=>{n=Object.assign({time:!0},n||{}),(!t||!Fs[t]||!Fs[t].silent||n.force||e instanceof Error)&&Dt(e,Ye("file:///home/runner/work/utilitas/utilitas/lib/event.mjs")+(t?` > ${t}`:""),n)},Zs=(e,t,n)=>Fs[e].lock+n>t?Fs[e].lock:!(Fs[e].lock=t),Hs=async()=>{const e=Date.now();for(let t in Fs)if(Fs[t].lastRun+Fs[t].interval<e){Fs[t].lastRun=e;try{if(Zs(t,e,Fs[t].timeout)){$s("Locked, skipped.",t);continue}$s("Emit...",t),await Fs[t].function()}catch(e){$s(e,t)}$s("Done.",t),zs(t)}},Vs=async(e,t,n,r,i,o)=>(qs=qs||$s("Initialized.")||setInterval(Hs,1e3),$s("Scheduled.",i=i||Vo({type:"EVENT"}),{force:!0}),Fs[i]={function:e,interval:Us(t),timeout:Us(n),delay:r,lastRun:Date.now()+Us(r-t),lock:0,silent:!!o?.silent,end:o?.end},qs),Gs=async(e,t)=>(assert(e&&e.func,"Event function is required.",500),await Vs(e.func,e.interval,e.tout,e.delay,e.name,t)),Ks=async(e,t)=>{t=t||{},$s(`SERVICES: ${e}`);const[n,r]=[((0,hr.readdirSync)(e)||[]).filter(e=>/\.mjs$/i.test(e)&&!e.startsWith(".")),[]];for(let o of n){const n={...await i(765)((0,ne.join)(e,o))};n.run&&(n.name=n.name||o.replace(/^(.*)\.mjs$/i,"$1"),r.push(Gs(n,t)))}return await Promise.all(r)},Ys=async e=>{if(e&&(delete Fs[e],Object.keys(Fs).length))return;clearInterval(qs),qs=null;const t=Date.now();for(let e in Fs){if(Fs[e].end)try{await Fs[e].end()}catch(e){}for(;Zs(e,t,Fs[e].timeout);)$s("Waiting...",e),await Pe(1e3);$s("End.",e)}$s("Terminated.")},Js=Vs,Xs=["whisper-node"],[Qs,ec,tc,nc,rc,ic]=["FILE","ogg","SPEAKER",!0,"base","Invalid audio data."],oc=["tiny","tiny-q5_1","tiny-q8_0","tiny.en","tiny.en-q5_1","tiny.en-q8_0",rc,"base-q5_1","base-q8_0","base.en","base.en-q5_1","base.en-q8_0","small","small-q5_1","small-q8_0","small.en","small.en-q5_1","small.en-q8_0","small.en-tdrz","medium","medium-q5_0","medium-q8_0","medium.en","medium.en-q5_0","medium.en-q8_0","large-v1","large-v2","large-v2-q5_0","large-v2-q8_0","large-v3","large-v3-q5_0","large-v3-turbo","large-v3-turbo-q5_0","large-v3-turbo-q8_0"],ac=async(e,t)=>(e=t?.model||rc,(await(async(e,t)=>{assert(e,"URL is required.",400),(t=t||{}).encode=ut(t.encode,{case:"UP"});const n=yn()?null:Sr(e),r=n?t.cache?.tmp||Ro:null,i=r?(0,ne.join)(r,qr(n)):null,[o,a]=i?["meta","content"].map(e=>(0,ne.join)(i,`${n}.${e}`)):[];if(t?.fuzzy&&await oo(o)&&await oo(a))return{cache:{meta:o,content:a}};const s=t?.refresh||!i?null:await Vi(o),c=t?.refresh||!i?null:await rn(()=>hr.promises.readFile(a)),u=s?.responseHeaders&&c?{"cache-control":"max-age=0","if-modified-since":s.responseHeaders["last-modified"]||"","if-none-match":s.responseHeaders.etag||""}:{};let[l,f,h]=[null,null,{}];const p={...Lo,headers:{...Lo.headers,...u},...t.fetch||{}};if(t.timeout){const e=new AbortController;p.signal=e.signal,l=setTimeout(()=>e.abort(),t.timeout)}try{f=await fetch(e,p)}catch(e){_e(e.message.includes("aborted")?"Timed out.":e.message,500)}l&&clearTimeout(l),304===f.status&&(f.arrayBuffer=async()=>c);const[d,g]=[f.headers.get("content-type"),Ao.from(await f.arrayBuffer())];if(f.headers?.raw)h=f.headers.raw();else for(const[e,t]of f.headers.entries())h[e]=t;const m=await rn(async()=>{kt(await cr(g),"mime")})||d,y=g.length;let b;if(!t?.fuzzy)switch(t.encode){case"BUFFER":b=g;break;case"BASE64":b=g.toString(t.encode);break;case"BASE64_DATA_URL":b=await no(m,g);break;case Io:b=Et(jo(g),null);break;case Mo:b=await Bo(jo(g));break;default:assert(!t.encode,"Invalid encoding.",400);case"TEXT":b=jo(g)}return i&&!c&&y&&200===f.status&&await rn(async()=>({touch:await to(i),content:await hr.promises.writeFile(a,g),meta:await $i(o,{url:e,requestHeaders:u,responseHeaders:h})})),{statusCode:f.status,statusText:f.statusText,length:y,mimeType:m,content:b,headers:h,response:f,cache:f.status>=200&&f.status<400?{meta:o,content:a}:null}})((e=>(assert(oc.includes(e),"Invalid Whisper model.",400),`https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-${e}.bin`))(e),{fuzzy:!0}))?.cache?.content),sc=async()=>{const e=!!await rn(async()=>"darwin"===(await Promise.all([dn("node:os"),dn("say"),Go()]))[0].platform());return assert(e,"Say API is not available.",500),e},cc=async()=>{const e=!!await rn(()=>Promise.all([dn("whisper-node"),Go()]));return assert(e,"Whisper API is not available.",500),e},uc=async(e,t)=>{const n=await dn("say");assert(e,"Text is required.",400);let[r,i,o]=[null,null,[e,t?.voice||"Samantha",t?.speed||1]];return t?.expected===tc?r="speak":(r="export",i=Gi({sub:`${Sr(JSON.stringify(o))}.wav`}),o.push(i)),await fe([n[r],n],...o),i&&!t?.raw&&(i=await((e,t)=>Ko(e,{channels:1,codec:"libopus",frequency:48e3,suffix:"ogg",...t||{}}))(i,{frequency:16e3,cleanup:nc,input:Qs,suffix:ec,...t||{}})),i},lc=async e=>(assert(e,"Text is required.",400),speechSynthesis.speak(new SpeechSynthesisUtterance(e))),fc=async(e,t)=>{const n=(await dn("whisper-node")).whisper,r=await((e,t)=>Ko(e,{channels:1,codec:"pcm_s16le",frequency:16e3,suffix:"wav",...t||{}}))(e,{input:t?.input,expected:Qs,errorMessage:ic}),i=await ac(t?.model,t),o=await n(r,{modelPath:i,...t||{},whisperOptions:{...t?.whisperOptions||{}}});return assert(o,"Failed to recognize speech.",500),t?.raw?o:o.map(e=>e.speech).join("").trim()},hc=async(e,t)=>{let n;return yn()?n=lc:await sc()?n=uc:_e("Text-to-Speech engine is not available.",500),await n(e,t)},pc=async(e,t)=>{let n;return await cc()?n=fc:_e("Speech-to-Text engine is not available.",500),await n(e,t)};yn()&&!globalThis.utilitas&&(globalThis.utilitas={boxes:oe,color:ce,encryption:n,event:a,manifest:Co,math:u,speech:s,storage:r,uoid:o,utilitas:t,uuid:e},(async()=>{Dt(`(${Co.homepage}) is ready!`,`${(await Ut(Co)).title}.*`)})())})()})();
|
|
3
3
|
//# sourceMappingURL=utilitas.lite.mjs.map
|