@glodon-aiot/bot-client-sdk 3.9.0-beta.9 → 3.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-cli-sdk.js +33141 -0
- package/dist/agent-cli-sdk.umd.cjs +140 -0
- package/dist/es/BotClient.mjs +55 -62
- package/dist/es/package.json.mjs +11 -11
- package/dist/lib/index.js +2 -2
- package/dist/src/__ tests __/AgentClient.spec.d.ts +1 -0
- package/dist/src/__ tests __/AgentSession.spec.d.ts +1 -0
- package/dist/src/__ tests __/DialogClient.spec.d.ts +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
(function(Mi,Ci){typeof exports=="object"&&typeof module<"u"?Ci(exports):typeof define=="function"&&define.amd?define(["exports"],Ci):(Mi=typeof globalThis<"u"?globalThis:Mi||self,Ci(Mi.AgentClientSDK={}))})(this,function(Mi){"use strict";class Ci{constructor(O,L=!1){Object.defineProperty(this,"prefix",{enumerable:!0,configurable:!0,writable:!0,value:O}),Object.defineProperty(this,"open",{enumerable:!0,configurable:!0,writable:!0,value:L})}disable(){this.open=!1}enable(){this.open=!0}log(...O){!this.open&&!Ci.debug||console.log(this.prefix,...O)}info(...O){!this.open&&!Ci.debug||console.info(`%c ${this.prefix} %o`,"color:#0f0;",...O)}error(...O){!this.open&&!Ci.debug||console.error(this.prefix,...O)}warn(...O){!this.open&&!Ci.debug||console.warn(this.prefix,...O)}}Object.defineProperty(Ci,"debug",{enumerable:!0,configurable:!0,writable:!0,value:!1});const Zh=new Ci("[Config] ");var ro;(function(K){K.dev="https://aiot-dev.glodon.com/api/cvforcepd",K.test="https://aiot-dev.glodon.com/api/cvforce",K.prod="https://copilot.glodon.com/api/cvforce",K.local="http://localhost:3000/api/cvforcepd"})(ro||(ro={})),Mi.configuration={debug:!1,env:"prod",apiRoot:ro.prod,applicationId:"",plugins:{},loadRelatedQuesions:!0};function yu(K){Ci.debug=(K==null?void 0:K.debug)||!1,Mi.configuration=Object.assign(Object.assign(Object.assign({},Mi.configuration),K),{apiRoot:(K==null?void 0:K.apiRoot)||Mi.configuration.apiRoot||(K!=null&&K.env?ro[K.env||"prod"]:Mi.configuration.apiRoot)}),Ci.debug&&Zh.log("updated",Mi.configuration)}/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation.
|
|
3
|
+
|
|
4
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
+
purpose with or without fee is hereby granted.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
+
***************************************************************************** */function Kh(K,O){var L={};for(var Y in K)Object.prototype.hasOwnProperty.call(K,Y)&&O.indexOf(Y)<0&&(L[Y]=K[Y]);if(K!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,Y=Object.getOwnPropertySymbols(K);ut<Y.length;ut++)O.indexOf(Y[ut])<0&&Object.prototype.propertyIsEnumerable.call(K,Y[ut])&&(L[Y[ut]]=K[Y[ut]]);return L}function Le(K,O,L,Y){function ut(lt){return lt instanceof L?lt:new L(function(W){W(lt)})}return new(L||(L=Promise))(function(lt,W){function _(v){try{x(Y.next(v))}catch(m){W(m)}}function y(v){try{x(Y.throw(v))}catch(m){W(m)}}function x(v){v.done?lt(v.value):ut(v.value).then(_,y)}x((Y=Y.apply(K,O||[])).next())})}const va=typeof Buffer=="function",bu=typeof TextDecoder=="function"?new TextDecoder:void 0;typeof TextEncoder=="function"&&new TextEncoder;const Jh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Gh=Array.prototype.slice.call(Jh),no=(K=>{let O={};return K.forEach((L,Y)=>O[L]=Y),O})(Gh),Yh=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,en=String.fromCharCode.bind(String),wu=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):K=>new Uint8Array(Array.prototype.slice.call(K,0)),Mu=K=>K.replace(/[^A-Za-z0-9\+\/]/g,""),Qh=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,tf=K=>{switch(K.length){case 4:var O=(7&K.charCodeAt(0))<<18|(63&K.charCodeAt(1))<<12|(63&K.charCodeAt(2))<<6|63&K.charCodeAt(3),L=O-65536;return en((L>>>10)+55296)+en((L&1023)+56320);case 3:return en((15&K.charCodeAt(0))<<12|(63&K.charCodeAt(1))<<6|63&K.charCodeAt(2));default:return en((31&K.charCodeAt(0))<<6|63&K.charCodeAt(1))}},ef=K=>K.replace(Qh,tf),xu=typeof atob=="function"?K=>atob(Mu(K)):va?K=>Buffer.from(K,"base64").toString("binary"):K=>{if(K=K.replace(/\s+/g,""),!Yh.test(K))throw new TypeError("malformed base64.");K+="==".slice(2-(K.length&3));let O,L="",Y,ut;for(let lt=0;lt<K.length;)O=no[K.charAt(lt++)]<<18|no[K.charAt(lt++)]<<12|(Y=no[K.charAt(lt++)])<<6|(ut=no[K.charAt(lt++)]),L+=Y===64?en(O>>16&255):ut===64?en(O>>16&255,O>>8&255):en(O>>16&255,O>>8&255,O&255);return L},rf=va?K=>wu(Buffer.from(K,"base64")):K=>wu(xu(K).split("").map(O=>O.charCodeAt(0))),nf=va?K=>Buffer.from(K,"base64").toString("utf8"):bu?K=>bu.decode(rf(K)):K=>ef(xu(K)),of=K=>Mu(K.replace(/[-_]/g,O=>O=="-"?"+":"/")),af=K=>nf(of(K)),oo=K=>JSON.parse(af(K.split(".")[1])),sf=K=>{const O=oo(K).exp;return new Date().valueOf()/1e3>=O},uf=K=>K==null?void 0:K.replace(/[\r\n]+/gm,""),cf=K=>K.replace(/\\|\\/g,"");var lf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _u(K){return K&&K.__esModule&&Object.prototype.hasOwnProperty.call(K,"default")?K.default:K}var ya={exports:{}},Su=function(O,L){return function(){for(var ut=new Array(arguments.length),lt=0;lt<ut.length;lt++)ut[lt]=arguments[lt];return O.apply(L,ut)}},hf=Su,rn=Object.prototype.toString;function ba(K){return rn.call(K)==="[object Array]"}function wa(K){return typeof K>"u"}function ff(K){return K!==null&&!wa(K)&&K.constructor!==null&&!wa(K.constructor)&&typeof K.constructor.isBuffer=="function"&&K.constructor.isBuffer(K)}function pf(K){return rn.call(K)==="[object ArrayBuffer]"}function df(K){return typeof FormData<"u"&&K instanceof FormData}function mf(K){var O;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?O=ArrayBuffer.isView(K):O=K&&K.buffer&&K.buffer instanceof ArrayBuffer,O}function gf(K){return typeof K=="string"}function vf(K){return typeof K=="number"}function Eu(K){return K!==null&&typeof K=="object"}function ao(K){if(rn.call(K)!=="[object Object]")return!1;var O=Object.getPrototypeOf(K);return O===null||O===Object.prototype}function yf(K){return rn.call(K)==="[object Date]"}function bf(K){return rn.call(K)==="[object File]"}function wf(K){return rn.call(K)==="[object Blob]"}function ku(K){return rn.call(K)==="[object Function]"}function Mf(K){return Eu(K)&&ku(K.pipe)}function xf(K){return typeof URLSearchParams<"u"&&K instanceof URLSearchParams}function _f(K){return K.trim?K.trim():K.replace(/^\s+|\s+$/g,"")}function Sf(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Ma(K,O){if(!(K===null||typeof K>"u"))if(typeof K!="object"&&(K=[K]),ba(K))for(var L=0,Y=K.length;L<Y;L++)O.call(null,K[L],L,K);else for(var ut in K)Object.prototype.hasOwnProperty.call(K,ut)&&O.call(null,K[ut],ut,K)}function xa(){var K={};function O(ut,lt){ao(K[lt])&&ao(ut)?K[lt]=xa(K[lt],ut):ao(ut)?K[lt]=xa({},ut):ba(ut)?K[lt]=ut.slice():K[lt]=ut}for(var L=0,Y=arguments.length;L<Y;L++)Ma(arguments[L],O);return K}function Ef(K,O,L){return Ma(O,function(ut,lt){L&&typeof ut=="function"?K[lt]=hf(ut,L):K[lt]=ut}),K}function kf(K){return K.charCodeAt(0)===65279&&(K=K.slice(1)),K}var Qi={isArray:ba,isArrayBuffer:pf,isBuffer:ff,isFormData:df,isArrayBufferView:mf,isString:gf,isNumber:vf,isObject:Eu,isPlainObject:ao,isUndefined:wa,isDate:yf,isFile:bf,isBlob:wf,isFunction:ku,isStream:Mf,isURLSearchParams:xf,isStandardBrowserEnv:Sf,forEach:Ma,merge:xa,extend:Ef,trim:_f,stripBOM:kf},mn=Qi;function Iu(K){return encodeURIComponent(K).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Ou=function(O,L,Y){if(!L)return O;var ut;if(Y)ut=Y(L);else if(mn.isURLSearchParams(L))ut=L.toString();else{var lt=[];mn.forEach(L,function(y,x){y===null||typeof y>"u"||(mn.isArray(y)?x=x+"[]":y=[y],mn.forEach(y,function(m){mn.isDate(m)?m=m.toISOString():mn.isObject(m)&&(m=JSON.stringify(m)),lt.push(Iu(x)+"="+Iu(m))}))}),ut=lt.join("&")}if(ut){var W=O.indexOf("#");W!==-1&&(O=O.slice(0,W)),O+=(O.indexOf("?")===-1?"?":"&")+ut}return O},If=Qi;function so(){this.handlers=[]}so.prototype.use=function(O,L,Y){return this.handlers.push({fulfilled:O,rejected:L,synchronous:Y?Y.synchronous:!1,runWhen:Y?Y.runWhen:null}),this.handlers.length-1},so.prototype.eject=function(O){this.handlers[O]&&(this.handlers[O]=null)},so.prototype.forEach=function(O){If.forEach(this.handlers,function(Y){Y!==null&&O(Y)})};var Of=so,Af=Qi,Tf=function(O,L){Af.forEach(O,function(ut,lt){lt!==L&<.toUpperCase()===L.toUpperCase()&&(O[L]=ut,delete O[lt])})},Au=function(O,L,Y,ut,lt){return O.config=L,Y&&(O.code=Y),O.request=ut,O.response=lt,O.isAxiosError=!0,O.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},O},_a,Tu;function Bu(){if(Tu)return _a;Tu=1;var K=Au;return _a=function(L,Y,ut,lt,W){var _=new Error(L);return K(_,Y,ut,lt,W)},_a}var Sa,ju;function Bf(){if(ju)return Sa;ju=1;var K=Bu();return Sa=function(L,Y,ut){var lt=ut.config.validateStatus;!ut.status||!lt||lt(ut.status)?L(ut):Y(K("Request failed with status code "+ut.status,ut.config,null,ut.request,ut))},Sa}var Ea,Ru;function jf(){if(Ru)return Ea;Ru=1;var K=Qi;return Ea=K.isStandardBrowserEnv()?function(){return{write:function(Y,ut,lt,W,_,y){var x=[];x.push(Y+"="+encodeURIComponent(ut)),K.isNumber(lt)&&x.push("expires="+new Date(lt).toGMTString()),K.isString(W)&&x.push("path="+W),K.isString(_)&&x.push("domain="+_),y===!0&&x.push("secure"),document.cookie=x.join("; ")},read:function(Y){var ut=document.cookie.match(new RegExp("(^|;\\s*)("+Y+")=([^;]*)"));return ut?decodeURIComponent(ut[3]):null},remove:function(Y){this.write(Y,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Ea}var ka,Nu;function Rf(){return Nu||(Nu=1,ka=function(O){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(O)}),ka}var Ia,Cu;function Nf(){return Cu||(Cu=1,Ia=function(O,L){return L?O.replace(/\/+$/,"")+"/"+L.replace(/^\/+/,""):O}),Ia}var Oa,Pu;function Cf(){if(Pu)return Oa;Pu=1;var K=Rf(),O=Nf();return Oa=function(Y,ut){return Y&&!K(ut)?O(Y,ut):ut},Oa}var Aa,Lu;function Pf(){if(Lu)return Aa;Lu=1;var K=Qi,O=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return Aa=function(Y){var ut={},lt,W,_;return Y&&K.forEach(Y.split(`
|
|
15
|
+
`),function(x){if(_=x.indexOf(":"),lt=K.trim(x.substr(0,_)).toLowerCase(),W=K.trim(x.substr(_+1)),lt){if(ut[lt]&&O.indexOf(lt)>=0)return;lt==="set-cookie"?ut[lt]=(ut[lt]?ut[lt]:[]).concat([W]):ut[lt]=ut[lt]?ut[lt]+", "+W:W}}),ut},Aa}var Ta,Du;function Lf(){if(Du)return Ta;Du=1;var K=Qi;return Ta=K.isStandardBrowserEnv()?function(){var L=/(msie|trident)/i.test(navigator.userAgent),Y=document.createElement("a"),ut;function lt(W){var _=W;return L&&(Y.setAttribute("href",_),_=Y.href),Y.setAttribute("href",_),{href:Y.href,protocol:Y.protocol?Y.protocol.replace(/:$/,""):"",host:Y.host,search:Y.search?Y.search.replace(/^\?/,""):"",hash:Y.hash?Y.hash.replace(/^#/,""):"",hostname:Y.hostname,port:Y.port,pathname:Y.pathname.charAt(0)==="/"?Y.pathname:"/"+Y.pathname}}return ut=lt(window.location.href),function(_){var y=K.isString(_)?lt(_):_;return y.protocol===ut.protocol&&y.host===ut.host}}():function(){return function(){return!0}}(),Ta}var Ba,Uu;function uo(){if(Uu)return Ba;Uu=1;function K(O){this.message=O}return K.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},K.prototype.__CANCEL__=!0,Ba=K,Ba}var ja,qu;function Fu(){if(qu)return ja;qu=1;var K=Qi,O=Bf(),L=jf(),Y=Ou,ut=Cf(),lt=Pf(),W=Lf(),_=Bu(),y=co(),x=uo();return ja=function(m){return new Promise(function(a,p){var c=m.data,l=m.headers,f=m.responseType,g;function h(){m.cancelToken&&m.cancelToken.unsubscribe(g),m.signal&&m.signal.removeEventListener("abort",g)}K.isFormData(c)&&delete l["Content-Type"];var u=new XMLHttpRequest;if(m.auth){var w=m.auth.username||"",b=m.auth.password?unescape(encodeURIComponent(m.auth.password)):"";l.Authorization="Basic "+btoa(w+":"+b)}var E=ut(m.baseURL,m.url);u.open(m.method.toUpperCase(),Y(E,m.params,m.paramsSerializer),!0),u.timeout=m.timeout;function I(){if(u){var B="getAllResponseHeaders"in u?lt(u.getAllResponseHeaders()):null,P=!f||f==="text"||f==="json"?u.responseText:u.response,N={data:P,status:u.status,statusText:u.statusText,headers:B,config:m,request:u};O(function(et){a(et),h()},function(et){p(et),h()},N),u=null}}if("onloadend"in u?u.onloadend=I:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(I)},u.onabort=function(){u&&(p(_("Request aborted",m,"ECONNABORTED",u)),u=null)},u.onerror=function(){p(_("Network Error",m,null,u)),u=null},u.ontimeout=function(){var P=m.timeout?"timeout of "+m.timeout+"ms exceeded":"timeout exceeded",N=m.transitional||y.transitional;m.timeoutErrorMessage&&(P=m.timeoutErrorMessage),p(_(P,m,N.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",u)),u=null},K.isStandardBrowserEnv()){var M=(m.withCredentials||W(E))&&m.xsrfCookieName?L.read(m.xsrfCookieName):void 0;M&&(l[m.xsrfHeaderName]=M)}"setRequestHeader"in u&&K.forEach(l,function(P,N){typeof c>"u"&&N.toLowerCase()==="content-type"?delete l[N]:u.setRequestHeader(N,P)}),K.isUndefined(m.withCredentials)||(u.withCredentials=!!m.withCredentials),f&&f!=="json"&&(u.responseType=m.responseType),typeof m.onDownloadProgress=="function"&&u.addEventListener("progress",m.onDownloadProgress),typeof m.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",m.onUploadProgress),(m.cancelToken||m.signal)&&(g=function(B){u&&(p(!B||B&&B.type?new x("canceled"):B),u.abort(),u=null)},m.cancelToken&&m.cancelToken.subscribe(g),m.signal&&(m.signal.aborted?g():m.signal.addEventListener("abort",g))),c||(c=null),u.send(c)})},ja}var Ra,zu;function co(){if(zu)return Ra;zu=1;var K=Qi,O=Tf,L=Au,Y={"Content-Type":"application/x-www-form-urlencoded"};function ut(y,x){!K.isUndefined(y)&&K.isUndefined(y["Content-Type"])&&(y["Content-Type"]=x)}function lt(){var y;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(y=Fu()),y}function W(y,x,v){if(K.isString(y))try{return(x||JSON.parse)(y),K.trim(y)}catch(m){if(m.name!=="SyntaxError")throw m}return(v||JSON.stringify)(y)}var _={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:lt(),transformRequest:[function(x,v){return O(v,"Accept"),O(v,"Content-Type"),K.isFormData(x)||K.isArrayBuffer(x)||K.isBuffer(x)||K.isStream(x)||K.isFile(x)||K.isBlob(x)?x:K.isArrayBufferView(x)?x.buffer:K.isURLSearchParams(x)?(ut(v,"application/x-www-form-urlencoded;charset=utf-8"),x.toString()):K.isObject(x)||v&&v["Content-Type"]==="application/json"?(ut(v,"application/json"),W(x)):x}],transformResponse:[function(x){var v=this.transitional||_.transitional,m=v&&v.silentJSONParsing,S=v&&v.forcedJSONParsing,a=!m&&this.responseType==="json";if(a||S&&K.isString(x)&&x.length)try{return JSON.parse(x)}catch(p){if(a)throw p.name==="SyntaxError"?L(p,this,"E_JSON_PARSE"):p}return x}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(x){return x>=200&&x<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};return K.forEach(["delete","get","head"],function(x){_.headers[x]={}}),K.forEach(["post","put","patch"],function(x){_.headers[x]=K.merge(Y)}),Ra=_,Ra}var Df=Qi,Uf=co(),qf=function(O,L,Y){var ut=this||Uf;return Df.forEach(Y,function(W){O=W.call(ut,O,L)}),O},Na,$u;function Hu(){return $u||($u=1,Na=function(O){return!!(O&&O.__CANCEL__)}),Na}var Wu=Qi,Ca=qf,Ff=Hu(),zf=co(),$f=uo();function Pa(K){if(K.cancelToken&&K.cancelToken.throwIfRequested(),K.signal&&K.signal.aborted)throw new $f("canceled")}var Hf=function(O){Pa(O),O.headers=O.headers||{},O.data=Ca.call(O,O.data,O.headers,O.transformRequest),O.headers=Wu.merge(O.headers.common||{},O.headers[O.method]||{},O.headers),Wu.forEach(["delete","get","head","post","put","patch","common"],function(ut){delete O.headers[ut]});var L=O.adapter||zf.adapter;return L(O).then(function(ut){return Pa(O),ut.data=Ca.call(O,ut.data,ut.headers,O.transformResponse),ut},function(ut){return Ff(ut)||(Pa(O),ut&&ut.response&&(ut.response.data=Ca.call(O,ut.response.data,ut.response.headers,O.transformResponse))),Promise.reject(ut)})},tr=Qi,Vu=function(O,L){L=L||{};var Y={};function ut(v,m){return tr.isPlainObject(v)&&tr.isPlainObject(m)?tr.merge(v,m):tr.isPlainObject(m)?tr.merge({},m):tr.isArray(m)?m.slice():m}function lt(v){if(tr.isUndefined(L[v])){if(!tr.isUndefined(O[v]))return ut(void 0,O[v])}else return ut(O[v],L[v])}function W(v){if(!tr.isUndefined(L[v]))return ut(void 0,L[v])}function _(v){if(tr.isUndefined(L[v])){if(!tr.isUndefined(O[v]))return ut(void 0,O[v])}else return ut(void 0,L[v])}function y(v){if(v in L)return ut(O[v],L[v]);if(v in O)return ut(void 0,O[v])}var x={url:W,method:W,data:W,baseURL:_,transformRequest:_,transformResponse:_,paramsSerializer:_,timeout:_,timeoutMessage:_,withCredentials:_,adapter:_,responseType:_,xsrfCookieName:_,xsrfHeaderName:_,onUploadProgress:_,onDownloadProgress:_,decompress:_,maxContentLength:_,maxBodyLength:_,transport:_,httpAgent:_,httpsAgent:_,cancelToken:_,socketPath:_,responseEncoding:_,validateStatus:y};return tr.forEach(Object.keys(O).concat(Object.keys(L)),function(m){var S=x[m]||lt,a=S(m);tr.isUndefined(a)&&S!==y||(Y[m]=a)}),Y},La,Xu;function Zu(){return Xu||(Xu=1,La={version:"0.24.0"}),La}var Wf=Zu().version,Da={};["object","boolean","number","function","string","symbol"].forEach(function(K,O){Da[K]=function(Y){return typeof Y===K||"a"+(O<1?"n ":" ")+K}});var Ku={};Da.transitional=function(O,L,Y){function ut(lt,W){return"[Axios v"+Wf+"] Transitional option '"+lt+"'"+W+(Y?". "+Y:"")}return function(lt,W,_){if(O===!1)throw new Error(ut(W," has been removed"+(L?" in "+L:"")));return L&&!Ku[W]&&(Ku[W]=!0,console.warn(ut(W," has been deprecated since v"+L+" and will be removed in the near future"))),O?O(lt,W,_):!0}};function Vf(K,O,L){if(typeof K!="object")throw new TypeError("options must be an object");for(var Y=Object.keys(K),ut=Y.length;ut-- >0;){var lt=Y[ut],W=O[lt];if(W){var _=K[lt],y=_===void 0||W(_,lt,K);if(y!==!0)throw new TypeError("option "+lt+" must be "+y);continue}if(L!==!0)throw Error("Unknown option "+lt)}}var Xf={assertOptions:Vf,validators:Da},Ju=Qi,Zf=Ou,Gu=Of,Yu=Hf,lo=Vu,Qu=Xf,gn=Qu.validators;function Nn(K){this.defaults=K,this.interceptors={request:new Gu,response:new Gu}}Nn.prototype.request=function(O){typeof O=="string"?(O=arguments[1]||{},O.url=arguments[0]):O=O||{},O=lo(this.defaults,O),O.method?O.method=O.method.toLowerCase():this.defaults.method?O.method=this.defaults.method.toLowerCase():O.method="get";var L=O.transitional;L!==void 0&&Qu.assertOptions(L,{silentJSONParsing:gn.transitional(gn.boolean),forcedJSONParsing:gn.transitional(gn.boolean),clarifyTimeoutError:gn.transitional(gn.boolean)},!1);var Y=[],ut=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(O)===!1||(ut=ut&&S.synchronous,Y.unshift(S.fulfilled,S.rejected))});var lt=[];this.interceptors.response.forEach(function(S){lt.push(S.fulfilled,S.rejected)});var W;if(!ut){var _=[Yu,void 0];for(Array.prototype.unshift.apply(_,Y),_=_.concat(lt),W=Promise.resolve(O);_.length;)W=W.then(_.shift(),_.shift());return W}for(var y=O;Y.length;){var x=Y.shift(),v=Y.shift();try{y=x(y)}catch(m){v(m);break}}try{W=Yu(y)}catch(m){return Promise.reject(m)}for(;lt.length;)W=W.then(lt.shift(),lt.shift());return W},Nn.prototype.getUri=function(O){return O=lo(this.defaults,O),Zf(O.url,O.params,O.paramsSerializer).replace(/^\?/,"")},Ju.forEach(["delete","get","head","options"],function(O){Nn.prototype[O]=function(L,Y){return this.request(lo(Y||{},{method:O,url:L,data:(Y||{}).data}))}}),Ju.forEach(["post","put","patch"],function(O){Nn.prototype[O]=function(L,Y,ut){return this.request(lo(ut||{},{method:O,url:L,data:Y}))}});var Kf=Nn,Ua,tc;function Jf(){if(tc)return Ua;tc=1;var K=uo();function O(L){if(typeof L!="function")throw new TypeError("executor must be a function.");var Y;this.promise=new Promise(function(W){Y=W});var ut=this;this.promise.then(function(lt){if(ut._listeners){var W,_=ut._listeners.length;for(W=0;W<_;W++)ut._listeners[W](lt);ut._listeners=null}}),this.promise.then=function(lt){var W,_=new Promise(function(y){ut.subscribe(y),W=y}).then(lt);return _.cancel=function(){ut.unsubscribe(W)},_},L(function(W){ut.reason||(ut.reason=new K(W),Y(ut.reason))})}return O.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},O.prototype.subscribe=function(Y){if(this.reason){Y(this.reason);return}this._listeners?this._listeners.push(Y):this._listeners=[Y]},O.prototype.unsubscribe=function(Y){if(this._listeners){var ut=this._listeners.indexOf(Y);ut!==-1&&this._listeners.splice(ut,1)}},O.source=function(){var Y,ut=new O(function(W){Y=W});return{token:ut,cancel:Y}},Ua=O,Ua}var qa,ec;function Gf(){return ec||(ec=1,qa=function(O){return function(Y){return O.apply(null,Y)}}),qa}var Fa,ic;function Yf(){return ic||(ic=1,Fa=function(O){return typeof O=="object"&&O.isAxiosError===!0}),Fa}var rc=Qi,Qf=Su,ho=Kf,tp=Vu,ep=co();function nc(K){var O=new ho(K),L=Qf(ho.prototype.request,O);return rc.extend(L,ho.prototype,O),rc.extend(L,O),L.create=function(ut){return nc(tp(K,ut))},L}var Sr=nc(ep);Sr.Axios=ho,Sr.Cancel=uo(),Sr.CancelToken=Jf(),Sr.isCancel=Hu(),Sr.VERSION=Zu().version,Sr.all=function(O){return Promise.all(O)},Sr.spread=Gf(),Sr.isAxiosError=Yf(),ya.exports=Sr,ya.exports.default=Sr;var ip=ya.exports,rp=ip;const oc=_u(rp);var np=Object.defineProperty,ac=Object.getOwnPropertySymbols,op=Object.prototype.hasOwnProperty,ap=Object.prototype.propertyIsEnumerable,sc=(K,O,L)=>O in K?np(K,O,{enumerable:!0,configurable:!0,writable:!0,value:L}):K[O]=L,za=(K,O)=>{for(var L in O||(O={}))op.call(O,L)&&sc(K,L,O[L]);if(ac)for(var L of ac(O))ap.call(O,L)&&sc(K,L,O[L]);return K},ar=(K,O,L)=>new Promise((Y,ut)=>{var lt=y=>{try{_(L.next(y))}catch(x){ut(x)}},W=y=>{try{_(L.throw(y))}catch(x){ut(x)}},_=y=>y.done?Y(y.value):Promise.resolve(y.value).then(lt,W);_((L=L.apply(K,O)).next())});class sp{constructor(O,L){this.axios=O,this.errorHandler=L}get(O,L,Y){return ar(this,null,function*(){const ut=this.axios.get(O,{params:L});return this.handleResponse(ut,Y)})}listPaged(O,L){return ar(this,null,function*(){const Y=this.axios.get(O,{params:L});return this.handleResponse(Y)})}list(O,L){return ar(this,null,function*(){const Y=this.axios.get(O,{params:L});return this.handleResponse(Y)})}delete(O,L){return ar(this,null,function*(){const Y=this.axios.delete(O,{params:L});return this.handleResponse(Y)})}post(O,L,Y,ut){return ar(this,null,function*(){const lt=this.axios.post(O,L,za({params:Y},ut));return this.handleResponse(lt)})}postForm(O,L,Y){return ar(this,null,function*(){const ut=this.axios.post(O,L,{params:Y,headers:{"Content-Type":"multipart/form-data"}});return this.handleResponse(ut)})}patch(O,L,Y){return ar(this,null,function*(){const ut=this.axios.patch(O,L,{params:Y});return this.handleResponse(ut)})}put(O,L){return ar(this,null,function*(){const Y=this.axios.put(O,L);return this.handleResponse(Y)})}upload(O,L,Y){return ar(this,null,function*(){const ut=this.axios.post(O,L,za({},Y));return this.handleResponse(ut)})}getNonStandard(O,L){return ar(this,null,function*(){const Y=this.axios.get(O,L);try{const ut=yield Y;if(ut.status===200)return ut}catch(ut){throw this.handleError(ut)}})}postNonStandard(O,L,Y,ut){return ar(this,null,function*(){var lt,W;const _=yield this.axios.post(O,L,za({params:Y},ut));if(_.status===200)if((lt=_.data)!=null&<.code)(W=this.errorHandler)!=null&&W.onAppStatusError&&this.errorHandler.onAppStatusError(_.data.code,_.data.message);else return _.data})}handleResponse(O,L){return ar(this,null,function*(){try{const Y=yield O;return this.handleAppError(Y.data,L).data}catch(Y){throw this.handleError(Y)}})}handleAppError(O,L){var Y;if(O.code<200||O.code>=300)throw(Y=this.errorHandler)!=null&&Y.onAppStatusError?this.errorHandler.onAppStatusError(O.code,cp(O.code,O.message),L):console.error("未处理应用错误:",O),{isAxiosError:!1,message:O.message};return O}handleError(O){var L,Y;return O.response?(L=this.errorHandler)!=null&&L.onHttpStatusError&&(console.log("HTTP 错误",this.errorHandler),this.errorHandler.onHttpStatusError(O.response.status,"",O.response)):O.request?(console.log(O.request),(Y=this.errorHandler)!=null&&Y.onNetworkError&&this.errorHandler.onNetworkError()):console.error("axios request config error:",O),new Error(O.message)}}const up=K=>K>=10002&&K<=10012,cp=(K,O)=>up(K)?"数据操作错误":O||"未知接口错误";var lp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},uc={exports:{}},$a=(K,O)=>{if(O=Symbol[K])return O;throw Error("Symbol."+K+" is not defined")},vn=Math.pow,Ha=(K,O,L)=>new Promise((Y,ut)=>{var lt=y=>{try{_(L.next(y))}catch(x){ut(x)}},W=y=>{try{_(L.throw(y))}catch(x){ut(x)}},_=y=>y.done?Y(y.value):Promise.resolve(y.value).then(lt,W);_((L=L.apply(K,O)).next())}),hp=function(K,O){this[0]=K,this[1]=O},fp=K=>{var O=K[$a("asyncIterator")],L=!1,Y,ut={};return O==null?(O=K[$a("iterator")](),Y=lt=>ut[lt]=W=>O[lt](W)):(O=O.call(K),Y=lt=>ut[lt]=W=>{if(L){if(L=!1,lt==="throw")throw W;return W}return L=!0,{done:!1,value:new hp(new Promise(_=>{var y=O[lt](W);if(!(y instanceof Object))throw TypeError("Object expected");_(y)}),1)}}),ut[$a("iterator")]=()=>ut,Y("next"),"throw"in O?Y("throw"):ut.throw=lt=>{throw lt},"return"in O&&Y("return"),ut};/*! For license information please see minio-zj.js.LICENSE.txt */(function(K,O){(function(L,Y){K.exports=Y()})(lp,()=>(()=>{var L={9809:(W,_,y)=>{const x=_;x.bignum=y(4590),x.define=y(2500).define,x.base=y(1979),x.constants=y(6826),x.decoders=y(8307),x.encoders=y(6579)},2500:(W,_,y)=>{const x=y(6579),v=y(8307),m=y(5717);function S(a,p){this.name=a,this.body=p,this.decoders={},this.encoders={}}_.define=function(a,p){return new S(a,p)},S.prototype._createNamed=function(a){const p=this.name;function c(l){this._initNamed(l,p)}return m(c,a),c.prototype._initNamed=function(l,f){a.call(this,l,f)},new c(this)},S.prototype._getDecoder=function(a){return a=a||"der",this.decoders.hasOwnProperty(a)||(this.decoders[a]=this._createNamed(v[a])),this.decoders[a]},S.prototype.decode=function(a,p,c){return this._getDecoder(p).decode(a,c)},S.prototype._getEncoder=function(a){return a=a||"der",this.encoders.hasOwnProperty(a)||(this.encoders[a]=this._createNamed(x[a])),this.encoders[a]},S.prototype.encode=function(a,p,c){return this._getEncoder(p).encode(a,c)}},6625:(W,_,y)=>{const x=y(5717),v=y(8465).b,m=y(2399).Buffer;function S(p,c){v.call(this,c),m.isBuffer(p)?(this.base=p,this.offset=0,this.length=p.length):this.error("Input not Buffer")}function a(p,c){if(Array.isArray(p))this.length=0,this.value=p.map(function(l){return a.isEncoderBuffer(l)||(l=new a(l,c)),this.length+=l.length,l},this);else if(typeof p=="number"){if(!(0<=p&&p<=255))return c.error("non-byte EncoderBuffer value");this.value=p,this.length=1}else if(typeof p=="string")this.value=p,this.length=m.byteLength(p);else{if(!m.isBuffer(p))return c.error("Unsupported type: "+typeof p);this.value=p,this.length=p.length}}x(S,v),_.C=S,S.isDecoderBuffer=function(p){return p instanceof S||typeof p=="object"&&m.isBuffer(p.base)&&p.constructor.name==="DecoderBuffer"&&typeof p.offset=="number"&&typeof p.length=="number"&&typeof p.save=="function"&&typeof p.restore=="function"&&typeof p.isEmpty=="function"&&typeof p.readUInt8=="function"&&typeof p.skip=="function"&&typeof p.raw=="function"},S.prototype.save=function(){return{offset:this.offset,reporter:v.prototype.save.call(this)}},S.prototype.restore=function(p){const c=new S(this.base);return c.offset=p.offset,c.length=this.offset,this.offset=p.offset,v.prototype.restore.call(this,p.reporter),c},S.prototype.isEmpty=function(){return this.offset===this.length},S.prototype.readUInt8=function(p){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(p||"DecoderBuffer overrun")},S.prototype.skip=function(p,c){if(!(this.offset+p<=this.length))return this.error(c||"DecoderBuffer overrun");const l=new S(this.base);return l._reporterState=this._reporterState,l.offset=this.offset,l.length=this.offset+p,this.offset+=p,l},S.prototype.raw=function(p){return this.base.slice(p?p.offset:this.offset,this.length)},_.R=a,a.isEncoderBuffer=function(p){return p instanceof a||typeof p=="object"&&p.constructor.name==="EncoderBuffer"&&typeof p.length=="number"&&typeof p.join=="function"},a.prototype.join=function(p,c){return p||(p=m.alloc(this.length)),c||(c=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(l){l.join(p,c),c+=l.length}):(typeof this.value=="number"?p[c]=this.value:typeof this.value=="string"?p.write(this.value,c):m.isBuffer(this.value)&&this.value.copy(p,c),c+=this.length)),p}},1979:(W,_,y)=>{const x=_;x.Reporter=y(8465).b,x.DecoderBuffer=y(6625).C,x.EncoderBuffer=y(6625).R,x.Node=y(1949)},1949:(W,_,y)=>{const x=y(8465).b,v=y(6625).R,m=y(6625).C,S=y(9746),a=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],p=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(a);function c(f,g,h){const u={};this._baseState=u,u.name=h,u.enc=f,u.parent=g||null,u.children=null,u.tag=null,u.args=null,u.reverseArgs=null,u.choice=null,u.optional=!1,u.any=!1,u.obj=!1,u.use=null,u.useDecoder=null,u.key=null,u.default=null,u.explicit=null,u.implicit=null,u.contains=null,u.parent||(u.children=[],this._wrap())}W.exports=c;const l=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];c.prototype.clone=function(){const f=this._baseState,g={};l.forEach(function(u){g[u]=f[u]});const h=new this.constructor(g.parent);return h._baseState=g,h},c.prototype._wrap=function(){const f=this._baseState;p.forEach(function(g){this[g]=function(){const h=new this.constructor(this);return f.children.push(h),h[g].apply(h,arguments)}},this)},c.prototype._init=function(f){const g=this._baseState;S(g.parent===null),f.call(this),g.children=g.children.filter(function(h){return h._baseState.parent===this},this),S.equal(g.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(f){const g=this._baseState,h=f.filter(function(u){return u instanceof this.constructor},this);f=f.filter(function(u){return!(u instanceof this.constructor)},this),h.length!==0&&(S(g.children===null),g.children=h,h.forEach(function(u){u._baseState.parent=this},this)),f.length!==0&&(S(g.args===null),g.args=f,g.reverseArgs=f.map(function(u){if(typeof u!="object"||u.constructor!==Object)return u;const w={};return Object.keys(u).forEach(function(b){b==(0|b)&&(b|=0);const E=u[b];w[E]=b}),w}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(f){c.prototype[f]=function(){const g=this._baseState;throw new Error(f+" not implemented for encoding: "+g.enc)}}),a.forEach(function(f){c.prototype[f]=function(){const g=this._baseState,h=Array.prototype.slice.call(arguments);return S(g.tag===null),g.tag=f,this._useArgs(h),this}}),c.prototype.use=function(f){S(f);const g=this._baseState;return S(g.use===null),g.use=f,this},c.prototype.optional=function(){return this._baseState.optional=!0,this},c.prototype.def=function(f){const g=this._baseState;return S(g.default===null),g.default=f,g.optional=!0,this},c.prototype.explicit=function(f){const g=this._baseState;return S(g.explicit===null&&g.implicit===null),g.explicit=f,this},c.prototype.implicit=function(f){const g=this._baseState;return S(g.explicit===null&&g.implicit===null),g.implicit=f,this},c.prototype.obj=function(){const f=this._baseState,g=Array.prototype.slice.call(arguments);return f.obj=!0,g.length!==0&&this._useArgs(g),this},c.prototype.key=function(f){const g=this._baseState;return S(g.key===null),g.key=f,this},c.prototype.any=function(){return this._baseState.any=!0,this},c.prototype.choice=function(f){const g=this._baseState;return S(g.choice===null),g.choice=f,this._useArgs(Object.keys(f).map(function(h){return f[h]})),this},c.prototype.contains=function(f){const g=this._baseState;return S(g.use===null),g.contains=f,this},c.prototype._decode=function(f,g){const h=this._baseState;if(h.parent===null)return f.wrapResult(h.children[0]._decode(f,g));let u,w=h.default,b=!0,E=null;if(h.key!==null&&(E=f.enterKey(h.key)),h.optional){let I=null;if(h.explicit!==null?I=h.explicit:h.implicit!==null?I=h.implicit:h.tag!==null&&(I=h.tag),I!==null||h.any){if(b=this._peekTag(f,I,h.any),f.isError(b))return b}else{const M=f.save();try{h.choice===null?this._decodeGeneric(h.tag,f,g):this._decodeChoice(f,g),b=!0}catch{b=!1}f.restore(M)}}if(h.obj&&b&&(u=f.enterObject()),b){if(h.explicit!==null){const M=this._decodeTag(f,h.explicit);if(f.isError(M))return M;f=M}const I=f.offset;if(h.use===null&&h.choice===null){let M;h.any&&(M=f.save());const B=this._decodeTag(f,h.implicit!==null?h.implicit:h.tag,h.any);if(f.isError(B))return B;h.any?w=f.raw(M):f=B}if(g&&g.track&&h.tag!==null&&g.track(f.path(),I,f.length,"tagged"),g&&g.track&&h.tag!==null&&g.track(f.path(),f.offset,f.length,"content"),h.any||(w=h.choice===null?this._decodeGeneric(h.tag,f,g):this._decodeChoice(f,g)),f.isError(w))return w;if(h.any||h.choice!==null||h.children===null||h.children.forEach(function(M){M._decode(f,g)}),h.contains&&(h.tag==="octstr"||h.tag==="bitstr")){const M=new m(w);w=this._getUse(h.contains,f._reporterState.obj)._decode(M,g)}}return h.obj&&b&&(w=f.leaveObject(u)),h.key===null||w===null&&b!==!0?E!==null&&f.exitKey(E):f.leaveKey(E,h.key,w),w},c.prototype._decodeGeneric=function(f,g,h){const u=this._baseState;return f==="seq"||f==="set"?null:f==="seqof"||f==="setof"?this._decodeList(g,f,u.args[0],h):/str$/.test(f)?this._decodeStr(g,f,h):f==="objid"&&u.args?this._decodeObjid(g,u.args[0],u.args[1],h):f==="objid"?this._decodeObjid(g,null,null,h):f==="gentime"||f==="utctime"?this._decodeTime(g,f,h):f==="null_"?this._decodeNull(g,h):f==="bool"?this._decodeBool(g,h):f==="objDesc"?this._decodeStr(g,f,h):f==="int"||f==="enum"?this._decodeInt(g,u.args&&u.args[0],h):u.use!==null?this._getUse(u.use,g._reporterState.obj)._decode(g,h):g.error("unknown tag: "+f)},c.prototype._getUse=function(f,g){const h=this._baseState;return h.useDecoder=this._use(f,g),S(h.useDecoder._baseState.parent===null),h.useDecoder=h.useDecoder._baseState.children[0],h.implicit!==h.useDecoder._baseState.implicit&&(h.useDecoder=h.useDecoder.clone(),h.useDecoder._baseState.implicit=h.implicit),h.useDecoder},c.prototype._decodeChoice=function(f,g){const h=this._baseState;let u=null,w=!1;return Object.keys(h.choice).some(function(b){const E=f.save(),I=h.choice[b];try{const M=I._decode(f,g);if(f.isError(M))return!1;u={type:b,value:M},w=!0}catch{return f.restore(E),!1}return!0},this),w?u:f.error("Choice not matched")},c.prototype._createEncoderBuffer=function(f){return new v(f,this.reporter)},c.prototype._encode=function(f,g,h){const u=this._baseState;if(u.default!==null&&u.default===f)return;const w=this._encodeValue(f,g,h);return w===void 0||this._skipDefault(w,g,h)?void 0:w},c.prototype._encodeValue=function(f,g,h){const u=this._baseState;if(u.parent===null)return u.children[0]._encode(f,g||new x);let w=null;if(this.reporter=g,u.optional&&f===void 0){if(u.default===null)return;f=u.default}let b=null,E=!1;if(u.any)w=this._createEncoderBuffer(f);else if(u.choice)w=this._encodeChoice(f,g);else if(u.contains)b=this._getUse(u.contains,h)._encode(f,g),E=!0;else if(u.children)b=u.children.map(function(I){if(I._baseState.tag==="null_")return I._encode(null,g,f);if(I._baseState.key===null)return g.error("Child should have a key");const M=g.enterKey(I._baseState.key);if(typeof f!="object")return g.error("Child expected, but input is not object");const B=I._encode(f[I._baseState.key],g,f);return g.leaveKey(M),B},this).filter(function(I){return I}),b=this._createEncoderBuffer(b);else if(u.tag==="seqof"||u.tag==="setof"){if(!u.args||u.args.length!==1)return g.error("Too many args for : "+u.tag);if(!Array.isArray(f))return g.error("seqof/setof, but data is not Array");const I=this.clone();I._baseState.implicit=null,b=this._createEncoderBuffer(f.map(function(M){const B=this._baseState;return this._getUse(B.args[0],f)._encode(M,g)},I))}else u.use!==null?w=this._getUse(u.use,h)._encode(f,g):(b=this._encodePrimitive(u.tag,f),E=!0);if(!u.any&&u.choice===null){const I=u.implicit!==null?u.implicit:u.tag,M=u.implicit===null?"universal":"context";I===null?u.use===null&&g.error("Tag could be omitted only for .use()"):u.use===null&&(w=this._encodeComposite(I,E,M,b))}return u.explicit!==null&&(w=this._encodeComposite(u.explicit,!1,"context",w)),w},c.prototype._encodeChoice=function(f,g){const h=this._baseState,u=h.choice[f.type];return u||S(!1,f.type+" not found in "+JSON.stringify(Object.keys(h.choice))),u._encode(f.value,g)},c.prototype._encodePrimitive=function(f,g){const h=this._baseState;if(/str$/.test(f))return this._encodeStr(g,f);if(f==="objid"&&h.args)return this._encodeObjid(g,h.reverseArgs[0],h.args[1]);if(f==="objid")return this._encodeObjid(g,null,null);if(f==="gentime"||f==="utctime")return this._encodeTime(g,f);if(f==="null_")return this._encodeNull();if(f==="int"||f==="enum")return this._encodeInt(g,h.args&&h.reverseArgs[0]);if(f==="bool")return this._encodeBool(g);if(f==="objDesc")return this._encodeStr(g,f);throw new Error("Unsupported tag: "+f)},c.prototype._isNumstr=function(f){return/^[0-9 ]*$/.test(f)},c.prototype._isPrintstr=function(f){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(f)}},8465:(W,_,y)=>{const x=y(5717);function v(S){this._reporterState={obj:null,path:[],options:S||{},errors:[]}}function m(S,a){this.path=S,this.rethrow(a)}_.b=v,v.prototype.isError=function(S){return S instanceof m},v.prototype.save=function(){const S=this._reporterState;return{obj:S.obj,pathLen:S.path.length}},v.prototype.restore=function(S){const a=this._reporterState;a.obj=S.obj,a.path=a.path.slice(0,S.pathLen)},v.prototype.enterKey=function(S){return this._reporterState.path.push(S)},v.prototype.exitKey=function(S){const a=this._reporterState;a.path=a.path.slice(0,S-1)},v.prototype.leaveKey=function(S,a,p){const c=this._reporterState;this.exitKey(S),c.obj!==null&&(c.obj[a]=p)},v.prototype.path=function(){return this._reporterState.path.join("/")},v.prototype.enterObject=function(){const S=this._reporterState,a=S.obj;return S.obj={},a},v.prototype.leaveObject=function(S){const a=this._reporterState,p=a.obj;return a.obj=S,p},v.prototype.error=function(S){let a;const p=this._reporterState,c=S instanceof m;if(a=c?S:new m(p.path.map(function(l){return"["+JSON.stringify(l)+"]"}).join(""),S.message||S,S.stack),!p.options.partial)throw a;return c||p.errors.push(a),a},v.prototype.wrapResult=function(S){const a=this._reporterState;return a.options.partial?{result:this.isError(S)?null:S,errors:a.errors}:S},x(m,Error),m.prototype.rethrow=function(S){if(this.message=S+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,m),!this.stack)try{throw new Error(this.message)}catch(a){this.stack=a.stack}return this}},160:(W,_)=>{function y(x){const v={};return Object.keys(x).forEach(function(m){(0|m)==m&&(m|=0);const S=x[m];v[S]=m}),v}_.tagClass={0:"universal",1:"application",2:"context",3:"private"},_.tagClassByName=y(_.tagClass),_.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},_.tagByName=y(_.tag)},6826:(W,_,y)=>{const x=_;x._reverse=function(v){const m={};return Object.keys(v).forEach(function(S){(0|S)==S&&(S|=0);const a=v[S];m[a]=S}),m},x.der=y(160)},1671:(W,_,y)=>{const x=y(5717),v=y(4590),m=y(6625).C,S=y(1949),a=y(160);function p(g){this.enc="der",this.name=g.name,this.entity=g,this.tree=new c,this.tree._init(g.body)}function c(g){S.call(this,"der",g)}function l(g,h){let u=g.readUInt8(h);if(g.isError(u))return u;const w=a.tagClass[u>>6],b=(32&u)==0;if((31&u)==31){let E=u;for(u=0;(128&E)==128;){if(E=g.readUInt8(h),g.isError(E))return E;u<<=7,u|=127&E}}else u&=31;return{cls:w,primitive:b,tag:u,tagStr:a.tag[u]}}function f(g,h,u){let w=g.readUInt8(u);if(g.isError(w))return w;if(!h&&w===128)return null;if(!(128&w))return w;const b=127&w;if(b>4)return g.error("length octect is too long");w=0;for(let E=0;E<b;E++){w<<=8;const I=g.readUInt8(u);if(g.isError(I))return I;w|=I}return w}W.exports=p,p.prototype.decode=function(g,h){return m.isDecoderBuffer(g)||(g=new m(g,h)),this.tree._decode(g,h)},x(c,S),c.prototype._peekTag=function(g,h,u){if(g.isEmpty())return!1;const w=g.save(),b=l(g,'Failed to peek tag: "'+h+'"');return g.isError(b)?b:(g.restore(w),b.tag===h||b.tagStr===h||b.tagStr+"of"===h||u)},c.prototype._decodeTag=function(g,h,u){const w=l(g,'Failed to decode tag of "'+h+'"');if(g.isError(w))return w;let b=f(g,w.primitive,'Failed to get length of "'+h+'"');if(g.isError(b))return b;if(!u&&w.tag!==h&&w.tagStr!==h&&w.tagStr+"of"!==h)return g.error('Failed to match tag: "'+h+'"');if(w.primitive||b!==null)return g.skip(b,'Failed to match body of: "'+h+'"');const E=g.save(),I=this._skipUntilEnd(g,'Failed to skip indefinite length body: "'+this.tag+'"');return g.isError(I)?I:(b=g.offset-E.offset,g.restore(E),g.skip(b,'Failed to match body of: "'+h+'"'))},c.prototype._skipUntilEnd=function(g,h){for(;;){const u=l(g,h);if(g.isError(u))return u;const w=f(g,u.primitive,h);if(g.isError(w))return w;let b;if(b=u.primitive||w!==null?g.skip(w):this._skipUntilEnd(g,h),g.isError(b))return b;if(u.tagStr==="end")break}},c.prototype._decodeList=function(g,h,u,w){const b=[];for(;!g.isEmpty();){const E=this._peekTag(g,"end");if(g.isError(E))return E;const I=u.decode(g,"der",w);if(g.isError(I)&&E)break;b.push(I)}return b},c.prototype._decodeStr=function(g,h){if(h==="bitstr"){const u=g.readUInt8();return g.isError(u)?u:{unused:u,data:g.raw()}}if(h==="bmpstr"){const u=g.raw();if(u.length%2==1)return g.error("Decoding of string type: bmpstr length mismatch");let w="";for(let b=0;b<u.length/2;b++)w+=String.fromCharCode(u.readUInt16BE(2*b));return w}if(h==="numstr"){const u=g.raw().toString("ascii");return this._isNumstr(u)?u:g.error("Decoding of string type: numstr unsupported characters")}if(h==="octstr"||h==="objDesc")return g.raw();if(h==="printstr"){const u=g.raw().toString("ascii");return this._isPrintstr(u)?u:g.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(h)?g.raw().toString():g.error("Decoding of string type: "+h+" unsupported")},c.prototype._decodeObjid=function(g,h,u){let w;const b=[];let E=0,I=0;for(;!g.isEmpty();)I=g.readUInt8(),E<<=7,E|=127&I,!(128&I)&&(b.push(E),E=0);128&I&&b.push(E);const M=b[0]/40|0,B=b[0]%40;if(w=u?b:[M,B].concat(b.slice(1)),h){let P=h[w.join(" ")];P===void 0&&(P=h[w.join(".")]),P!==void 0&&(w=P)}return w},c.prototype._decodeTime=function(g,h){const u=g.raw().toString();let w,b,E,I,M,B;if(h==="gentime")w=0|u.slice(0,4),b=0|u.slice(4,6),E=0|u.slice(6,8),I=0|u.slice(8,10),M=0|u.slice(10,12),B=0|u.slice(12,14);else{if(h!=="utctime")return g.error("Decoding "+h+" time is not supported yet");w=0|u.slice(0,2),b=0|u.slice(2,4),E=0|u.slice(4,6),I=0|u.slice(6,8),M=0|u.slice(8,10),B=0|u.slice(10,12),w=w<70?2e3+w:1900+w}return Date.UTC(w,b-1,E,I,M,B,0)},c.prototype._decodeNull=function(){return null},c.prototype._decodeBool=function(g){const h=g.readUInt8();return g.isError(h)?h:h!==0},c.prototype._decodeInt=function(g,h){const u=g.raw();let w=new v(u);return h&&(w=h[w.toString(10)]||w),w},c.prototype._use=function(g,h){return typeof g=="function"&&(g=g(h)),g._getDecoder("der").tree}},8307:(W,_,y)=>{const x=_;x.der=y(1671),x.pem=y(9631)},9631:(W,_,y)=>{const x=y(5717),v=y(2399).Buffer,m=y(1671);function S(a){m.call(this,a),this.enc="pem"}x(S,m),W.exports=S,S.prototype.decode=function(a,p){const c=a.toString().split(/[\r\n]+/g),l=p.label.toUpperCase(),f=/^-----(BEGIN|END) ([^-]+)-----$/;let g=-1,h=-1;for(let b=0;b<c.length;b++){const E=c[b].match(f);if(E!==null&&E[2]===l){if(g!==-1){if(E[1]!=="END")break;h=b;break}if(E[1]!=="BEGIN")break;g=b}}if(g===-1||h===-1)throw new Error("PEM section not found for: "+l);const u=c.slice(g+1,h).join("");u.replace(/[^a-z0-9+/=]+/gi,"");const w=v.from(u,"base64");return m.prototype.decode.call(this,w,p)}},6984:(W,_,y)=>{const x=y(5717),v=y(2399).Buffer,m=y(1949),S=y(160);function a(l){this.enc="der",this.name=l.name,this.entity=l,this.tree=new p,this.tree._init(l.body)}function p(l){m.call(this,"der",l)}function c(l){return l<10?"0"+l:l}W.exports=a,a.prototype.encode=function(l,f){return this.tree._encode(l,f).join()},x(p,m),p.prototype._encodeComposite=function(l,f,g,h){const u=function(E,I,M,B){let P;if(E==="seqof"?E="seq":E==="setof"&&(E="set"),S.tagByName.hasOwnProperty(E))P=S.tagByName[E];else{if(typeof E!="number"||(0|E)!==E)return B.error("Unknown tag: "+E);P=E}return P>=31?B.error("Multi-octet tag encoding unsupported"):(I||(P|=32),P|=S.tagClassByName[M||"universal"]<<6,P)}(l,f,g,this.reporter);if(h.length<128){const E=v.alloc(2);return E[0]=u,E[1]=h.length,this._createEncoderBuffer([E,h])}let w=1;for(let E=h.length;E>=256;E>>=8)w++;const b=v.alloc(2+w);b[0]=u,b[1]=128|w;for(let E=1+w,I=h.length;I>0;E--,I>>=8)b[E]=255&I;return this._createEncoderBuffer([b,h])},p.prototype._encodeStr=function(l,f){if(f==="bitstr")return this._createEncoderBuffer([0|l.unused,l.data]);if(f==="bmpstr"){const g=v.alloc(2*l.length);for(let h=0;h<l.length;h++)g.writeUInt16BE(l.charCodeAt(h),2*h);return this._createEncoderBuffer(g)}return f==="numstr"?this._isNumstr(l)?this._createEncoderBuffer(l):this.reporter.error("Encoding of string type: numstr supports only digits and space"):f==="printstr"?this._isPrintstr(l)?this._createEncoderBuffer(l):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(f)||f==="objDesc"?this._createEncoderBuffer(l):this.reporter.error("Encoding of string type: "+f+" unsupported")},p.prototype._encodeObjid=function(l,f,g){if(typeof l=="string"){if(!f)return this.reporter.error("string objid given, but no values map found");if(!f.hasOwnProperty(l))return this.reporter.error("objid not found in values map");l=f[l].split(/[\s.]+/g);for(let b=0;b<l.length;b++)l[b]|=0}else if(Array.isArray(l)){l=l.slice();for(let b=0;b<l.length;b++)l[b]|=0}if(!Array.isArray(l))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(l));if(!g){if(l[1]>=40)return this.reporter.error("Second objid identifier OOB");l.splice(0,2,40*l[0]+l[1])}let h=0;for(let b=0;b<l.length;b++){let E=l[b];for(h++;E>=128;E>>=7)h++}const u=v.alloc(h);let w=u.length-1;for(let b=l.length-1;b>=0;b--){let E=l[b];for(u[w--]=127&E;(E>>=7)>0;)u[w--]=128|127&E}return this._createEncoderBuffer(u)},p.prototype._encodeTime=function(l,f){let g;const h=new Date(l);return f==="gentime"?g=[c(h.getUTCFullYear()),c(h.getUTCMonth()+1),c(h.getUTCDate()),c(h.getUTCHours()),c(h.getUTCMinutes()),c(h.getUTCSeconds()),"Z"].join(""):f==="utctime"?g=[c(h.getUTCFullYear()%100),c(h.getUTCMonth()+1),c(h.getUTCDate()),c(h.getUTCHours()),c(h.getUTCMinutes()),c(h.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+f+" time is not supported yet"),this._encodeStr(g,"octstr")},p.prototype._encodeNull=function(){return this._createEncoderBuffer("")},p.prototype._encodeInt=function(l,f){if(typeof l=="string"){if(!f)return this.reporter.error("String int or enum given, but no values map");if(!f.hasOwnProperty(l))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(l));l=f[l]}if(typeof l!="number"&&!v.isBuffer(l)){const u=l.toArray();!l.sign&&128&u[0]&&u.unshift(0),l=v.from(u)}if(v.isBuffer(l)){let u=l.length;l.length===0&&u++;const w=v.alloc(u);return l.copy(w),l.length===0&&(w[0]=0),this._createEncoderBuffer(w)}if(l<128)return this._createEncoderBuffer(l);if(l<256)return this._createEncoderBuffer([0,l]);let g=1;for(let u=l;u>=256;u>>=8)g++;const h=new Array(g);for(let u=h.length-1;u>=0;u--)h[u]=255&l,l>>=8;return 128&h[0]&&h.unshift(0),this._createEncoderBuffer(v.from(h))},p.prototype._encodeBool=function(l){return this._createEncoderBuffer(l?255:0)},p.prototype._use=function(l,f){return typeof l=="function"&&(l=l(f)),l._getEncoder("der").tree},p.prototype._skipDefault=function(l,f,g){const h=this._baseState;let u;if(h.default===null)return!1;const w=l.join();if(h.defaultBuffer===void 0&&(h.defaultBuffer=this._encodeValue(h.default,f,g).join()),w.length!==h.defaultBuffer.length)return!1;for(u=0;u<w.length;u++)if(w[u]!==h.defaultBuffer[u])return!1;return!0}},6579:(W,_,y)=>{const x=_;x.der=y(6984),x.pem=y(2883)},2883:(W,_,y)=>{const x=y(5717),v=y(6984);function m(S){v.call(this,S),this.enc="pem"}x(m,v),W.exports=m,m.prototype.encode=function(S,a){const p=v.prototype.encode.call(this,S).toString("base64"),c=["-----BEGIN "+a.label+"-----"];for(let l=0;l<p.length;l+=64)c.push(p.slice(l,l+64));return c.push("-----END "+a.label+"-----"),c.join(`
|
|
16
|
+
`)}},4590:function(W,_,y){(function(x,v){function m(t,n){if(!t)throw new Error(n||"Assertion failed")}function S(t,n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t}function a(t,n,r){if(a.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,t!==null&&(n!=="le"&&n!=="be"||(r=n,n=10),this._init(t||0,n||10,r||"be"))}var p;typeof x=="object"?x.exports=a:v.BN=a,a.BN=a,a.wordSize=26;try{p=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:y(950).Buffer}catch{}function c(t,n){var r=t.charCodeAt(n);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function l(t,n,r){var i=c(t,r);return r-1>=n&&(i|=c(t,r-1)<<4),i}function f(t,n,r,i){for(var e=0,o=Math.min(t.length,r),s=n;s<o;s++){var A=t.charCodeAt(s)-48;e*=i,e+=A>=49?A-49+10:A>=17?A-17+10:A}return e}a.isBN=function(t){return t instanceof a||t!==null&&typeof t=="object"&&t.constructor.wordSize===a.wordSize&&Array.isArray(t.words)},a.max=function(t,n){return t.cmp(n)>0?t:n},a.min=function(t,n){return t.cmp(n)<0?t:n},a.prototype._init=function(t,n,r){if(typeof t=="number")return this._initNumber(t,n,r);if(typeof t=="object")return this._initArray(t,n,r);n==="hex"&&(n=16),m(n===(0|n)&&n>=2&&n<=36);var i=0;(t=t.toString().replace(/\s+/g,""))[0]==="-"&&(i++,this.negative=1),i<t.length&&(n===16?this._parseHex(t,i,r):(this._parseBase(t,n,i),r==="le"&&this._initArray(this.toArray(),n,r)))},a.prototype._initNumber=function(t,n,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(m(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),r==="le"&&this._initArray(this.toArray(),n,r)},a.prototype._initArray=function(t,n,r){if(m(typeof t.length=="number"),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var e,o,s=0;if(r==="be")for(i=t.length-1,e=0;i>=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[e]|=o<<s&67108863,this.words[e+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,e++);else if(r==="le")for(i=0,e=0;i<t.length;i+=3)o=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[e]|=o<<s&67108863,this.words[e+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,e++);return this.strip()},a.prototype._parseHex=function(t,n,r){this.length=Math.ceil((t.length-n)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var e,o=0,s=0;if(r==="be")for(i=t.length-1;i>=n;i-=2)e=l(t,n,i)<<o,this.words[s]|=67108863&e,o>=18?(o-=18,s+=1,this.words[s]|=e>>>26):o+=8;else for(i=(t.length-n)%2==0?n+1:n;i<t.length;i+=2)e=l(t,n,i)<<o,this.words[s]|=67108863&e,o>=18?(o-=18,s+=1,this.words[s]|=e>>>26):o+=8;this.strip()},a.prototype._parseBase=function(t,n,r){this.words=[0],this.length=1;for(var i=0,e=1;e<=67108863;e*=n)i++;i--,e=e/n|0;for(var o=t.length-r,s=o%i,A=Math.min(o,o-s)+r,C=0,j=r;j<A;j+=i)C=f(t,j,j+i,n),this.imuln(e),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C);if(s!==0){var T=1;for(C=f(t,j,t.length,n),j=0;j<s;j++)T*=n;this.imuln(T),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C)}this.strip()},a.prototype.copy=function(t){t.words=new Array(this.length);for(var n=0;n<this.length;n++)t.words[n]=this.words[n];t.length=this.length,t.negative=this.negative,t.red=this.red},a.prototype.clone=function(){var t=new a(null);return this.copy(t),t},a.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var g=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],u=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function w(t,n,r){r.negative=n.negative^t.negative;var i=t.length+n.length|0;r.length=i,i=i-1|0;var e=0|t.words[0],o=0|n.words[0],s=e*o,A=67108863&s,C=s/67108864|0;r.words[0]=A;for(var j=1;j<i;j++){for(var T=C>>>26,R=67108863&C,q=Math.min(j,n.length-1),Z=Math.max(0,j-t.length+1);Z<=q;Z++){var rt=j-Z|0;T+=(s=(e=0|t.words[rt])*(o=0|n.words[Z])+R)/67108864|0,R=67108863&s}r.words[j]=0|R,C=0|T}return C!==0?r.words[j]=0|C:r.length--,r.strip()}a.prototype.toString=function(t,n){var r;if(n=0|n||1,(t=t||10)===16||t==="hex"){r="";for(var i=0,e=0,o=0;o<this.length;o++){var s=this.words[o],A=(16777215&(s<<i|e)).toString(16);r=(e=s>>>24-i&16777215)!=0||o!==this.length-1?g[6-A.length]+A+r:A+r,(i+=2)>=26&&(i-=26,o--)}for(e!==0&&(r=e.toString(16)+r);r.length%n!=0;)r="0"+r;return this.negative!==0&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var C=h[t],j=u[t];r="";var T=this.clone();for(T.negative=0;!T.isZero();){var R=T.modn(j).toString(t);r=(T=T.idivn(j)).isZero()?R+r:g[C-R.length]+R+r}for(this.isZero()&&(r="0"+r);r.length%n!=0;)r="0"+r;return this.negative!==0&&(r="-"+r),r}m(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var t=this.words[0];return this.length===2?t+=67108864*this.words[1]:this.length===3&&this.words[2]===1?t+=4503599627370496+67108864*this.words[1]:this.length>2&&m(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,n){return m(p!==void 0),this.toArrayLike(p,t,n)},a.prototype.toArray=function(t,n){return this.toArrayLike(Array,t,n)},a.prototype.toArrayLike=function(t,n,r){var i=this.byteLength(),e=r||Math.max(1,i);m(i<=e,"byte array longer than desired length"),m(e>0,"Requested array length <= 0"),this.strip();var o,s,A=n==="le",C=new t(e),j=this.clone();if(A){for(s=0;!j.isZero();s++)o=j.andln(255),j.iushrn(8),C[s]=o;for(;s<e;s++)C[s]=0}else{for(s=0;s<e-i;s++)C[s]=0;for(s=0;!j.isZero();s++)o=j.andln(255),j.iushrn(8),C[e-s-1]=o}return C},Math.clz32?a.prototype._countBits=function(t){return 32-Math.clz32(t)}:a.prototype._countBits=function(t){var n=t,r=0;return n>=4096&&(r+=13,n>>>=13),n>=64&&(r+=7,n>>>=7),n>=8&&(r+=4,n>>>=4),n>=2&&(r+=2,n>>>=2),r+n},a.prototype._zeroBits=function(t){if(t===0)return 26;var n=t,r=0;return!(8191&n)&&(r+=13,n>>>=13),!(127&n)&&(r+=7,n>>>=7),!(15&n)&&(r+=4,n>>>=4),!(3&n)&&(r+=2,n>>>=2),!(1&n)&&r++,r},a.prototype.bitLength=function(){var t=this.words[this.length-1],n=this._countBits(t);return 26*(this.length-1)+n},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,n=0;n<this.length;n++){var r=this._zeroBits(this.words[n]);if(t+=r,r!==26)break}return t},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(t){return this.negative!==0?this.abs().inotn(t).iaddn(1):this.clone()},a.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]|t.words[n];return this.strip()},a.prototype.ior=function(t){return m((this.negative|t.negative)==0),this.iuor(t)},a.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var n;n=this.length>t.length?t:this;for(var r=0;r<n.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=n.length,this.strip()},a.prototype.iand=function(t){return m((this.negative|t.negative)==0),this.iuand(t)},a.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var n,r;this.length>t.length?(n=this,r=t):(n=t,r=this);for(var i=0;i<r.length;i++)this.words[i]=n.words[i]^r.words[i];if(this!==n)for(;i<n.length;i++)this.words[i]=n.words[i];return this.length=n.length,this.strip()},a.prototype.ixor=function(t){return m((this.negative|t.negative)==0),this.iuxor(t)},a.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){m(typeof t=="number"&&t>=0);var n=0|Math.ceil(t/26),r=t%26;this._expand(n),r>0&&n--;for(var i=0;i<n;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,n){m(typeof t=="number"&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=n?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},a.prototype.iadd=function(t){var n,r,i;if(this.negative!==0&&t.negative===0)return this.negative=0,n=this.isub(t),this.negative^=1,this._normSign();if(this.negative===0&&t.negative!==0)return t.negative=0,n=this.isub(t),t.negative=1,n._normSign();this.length>t.length?(r=this,i=t):(r=t,i=this);for(var e=0,o=0;o<i.length;o++)n=(0|r.words[o])+(0|i.words[o])+e,this.words[o]=67108863&n,e=n>>>26;for(;e!==0&&o<r.length;o++)n=(0|r.words[o])+e,this.words[o]=67108863&n,e=n>>>26;if(this.length=r.length,e!==0)this.words[this.length]=e,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},a.prototype.add=function(t){var n;return t.negative!==0&&this.negative===0?(t.negative=0,n=this.sub(t),t.negative^=1,n):t.negative===0&&this.negative!==0?(this.negative=0,n=t.sub(this),this.negative=1,n):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(t.negative!==0){t.negative=0;var n=this.iadd(t);return t.negative=1,n._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,i,e=this.cmp(t);if(e===0)return this.negative=0,this.length=1,this.words[0]=0,this;e>0?(r=this,i=t):(r=t,i=this);for(var o=0,s=0;s<i.length;s++)o=(n=(0|r.words[s])-(0|i.words[s])+o)>>26,this.words[s]=67108863&n;for(;o!==0&&s<r.length;s++)o=(n=(0|r.words[s])+o)>>26,this.words[s]=67108863&n;if(o===0&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(t){return this.clone().isub(t)};var b=function(t,n,r){var i,e,o,s=t.words,A=n.words,C=r.words,j=0,T=0|s[0],R=8191&T,q=T>>>13,Z=0|s[1],rt=8191&Z,D=Z>>>13,G=0|s[2],z=8191&G,X=G>>>13,st=0|s[3],nt=8191&st,ht=st>>>13,Et=0|s[4],gt=8191&Et,bt=Et>>>13,Bt=0|s[5],Mt=8191&Bt,It=Bt>>>13,J=0|s[6],tt=8191&J,F=J>>>13,H=0|s[7],U=8191&H,it=H>>>13,pt=0|s[8],ft=8191&pt,mt=pt>>>13,re=0|s[9],_t=8191&re,At=re>>>13,fe=0|A[0],kt=8191&fe,Kt=fe>>>13,Ce=0|A[1],Pt=8191&Ce,Ht=Ce>>>13,je=0|A[2],Rt=8191&je,Wt=je>>>13,ye=0|A[3],Nt=8191&ye,Xt=ye>>>13,ke=0|A[4],jt=8191&ke,Zt=ke>>>13,Oe=0|A[5],Dt=8191&Oe,Jt=Oe>>>13,De=0|A[6],Lt=8191&De,Qt=De>>>13,ze=0|A[7],Ut=8191&ze,Yt=ze>>>13,$e=0|A[8],qt=8191&$e,ee=$e>>>13,He=0|A[9],Ft=8191&He,te=He>>>13;r.negative=t.negative^n.negative,r.length=19;var Ae=(j+(i=Math.imul(R,kt))|0)+((8191&(e=(e=Math.imul(R,Kt))+Math.imul(q,kt)|0))<<13)|0;j=((o=Math.imul(q,Kt))+(e>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,i=Math.imul(rt,kt),e=(e=Math.imul(rt,Kt))+Math.imul(D,kt)|0,o=Math.imul(D,Kt);var Re=(j+(i=i+Math.imul(R,Pt)|0)|0)+((8191&(e=(e=e+Math.imul(R,Ht)|0)+Math.imul(q,Pt)|0))<<13)|0;j=((o=o+Math.imul(q,Ht)|0)+(e>>>13)|0)+(Re>>>26)|0,Re&=67108863,i=Math.imul(z,kt),e=(e=Math.imul(z,Kt))+Math.imul(X,kt)|0,o=Math.imul(X,Kt),i=i+Math.imul(rt,Pt)|0,e=(e=e+Math.imul(rt,Ht)|0)+Math.imul(D,Pt)|0,o=o+Math.imul(D,Ht)|0;var Ke=(j+(i=i+Math.imul(R,Rt)|0)|0)+((8191&(e=(e=e+Math.imul(R,Wt)|0)+Math.imul(q,Rt)|0))<<13)|0;j=((o=o+Math.imul(q,Wt)|0)+(e>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,i=Math.imul(nt,kt),e=(e=Math.imul(nt,Kt))+Math.imul(ht,kt)|0,o=Math.imul(ht,Kt),i=i+Math.imul(z,Pt)|0,e=(e=e+Math.imul(z,Ht)|0)+Math.imul(X,Pt)|0,o=o+Math.imul(X,Ht)|0,i=i+Math.imul(rt,Rt)|0,e=(e=e+Math.imul(rt,Wt)|0)+Math.imul(D,Rt)|0,o=o+Math.imul(D,Wt)|0;var ai=(j+(i=i+Math.imul(R,Nt)|0)|0)+((8191&(e=(e=e+Math.imul(R,Xt)|0)+Math.imul(q,Nt)|0))<<13)|0;j=((o=o+Math.imul(q,Xt)|0)+(e>>>13)|0)+(ai>>>26)|0,ai&=67108863,i=Math.imul(gt,kt),e=(e=Math.imul(gt,Kt))+Math.imul(bt,kt)|0,o=Math.imul(bt,Kt),i=i+Math.imul(nt,Pt)|0,e=(e=e+Math.imul(nt,Ht)|0)+Math.imul(ht,Pt)|0,o=o+Math.imul(ht,Ht)|0,i=i+Math.imul(z,Rt)|0,e=(e=e+Math.imul(z,Wt)|0)+Math.imul(X,Rt)|0,o=o+Math.imul(X,Wt)|0,i=i+Math.imul(rt,Nt)|0,e=(e=e+Math.imul(rt,Xt)|0)+Math.imul(D,Nt)|0,o=o+Math.imul(D,Xt)|0;var ri=(j+(i=i+Math.imul(R,jt)|0)|0)+((8191&(e=(e=e+Math.imul(R,Zt)|0)+Math.imul(q,jt)|0))<<13)|0;j=((o=o+Math.imul(q,Zt)|0)+(e>>>13)|0)+(ri>>>26)|0,ri&=67108863,i=Math.imul(Mt,kt),e=(e=Math.imul(Mt,Kt))+Math.imul(It,kt)|0,o=Math.imul(It,Kt),i=i+Math.imul(gt,Pt)|0,e=(e=e+Math.imul(gt,Ht)|0)+Math.imul(bt,Pt)|0,o=o+Math.imul(bt,Ht)|0,i=i+Math.imul(nt,Rt)|0,e=(e=e+Math.imul(nt,Wt)|0)+Math.imul(ht,Rt)|0,o=o+Math.imul(ht,Wt)|0,i=i+Math.imul(z,Nt)|0,e=(e=e+Math.imul(z,Xt)|0)+Math.imul(X,Nt)|0,o=o+Math.imul(X,Xt)|0,i=i+Math.imul(rt,jt)|0,e=(e=e+Math.imul(rt,Zt)|0)+Math.imul(D,jt)|0,o=o+Math.imul(D,Zt)|0;var si=(j+(i=i+Math.imul(R,Dt)|0)|0)+((8191&(e=(e=e+Math.imul(R,Jt)|0)+Math.imul(q,Dt)|0))<<13)|0;j=((o=o+Math.imul(q,Jt)|0)+(e>>>13)|0)+(si>>>26)|0,si&=67108863,i=Math.imul(tt,kt),e=(e=Math.imul(tt,Kt))+Math.imul(F,kt)|0,o=Math.imul(F,Kt),i=i+Math.imul(Mt,Pt)|0,e=(e=e+Math.imul(Mt,Ht)|0)+Math.imul(It,Pt)|0,o=o+Math.imul(It,Ht)|0,i=i+Math.imul(gt,Rt)|0,e=(e=e+Math.imul(gt,Wt)|0)+Math.imul(bt,Rt)|0,o=o+Math.imul(bt,Wt)|0,i=i+Math.imul(nt,Nt)|0,e=(e=e+Math.imul(nt,Xt)|0)+Math.imul(ht,Nt)|0,o=o+Math.imul(ht,Xt)|0,i=i+Math.imul(z,jt)|0,e=(e=e+Math.imul(z,Zt)|0)+Math.imul(X,jt)|0,o=o+Math.imul(X,Zt)|0,i=i+Math.imul(rt,Dt)|0,e=(e=e+Math.imul(rt,Jt)|0)+Math.imul(D,Dt)|0,o=o+Math.imul(D,Jt)|0;var ui=(j+(i=i+Math.imul(R,Lt)|0)|0)+((8191&(e=(e=e+Math.imul(R,Qt)|0)+Math.imul(q,Lt)|0))<<13)|0;j=((o=o+Math.imul(q,Qt)|0)+(e>>>13)|0)+(ui>>>26)|0,ui&=67108863,i=Math.imul(U,kt),e=(e=Math.imul(U,Kt))+Math.imul(it,kt)|0,o=Math.imul(it,Kt),i=i+Math.imul(tt,Pt)|0,e=(e=e+Math.imul(tt,Ht)|0)+Math.imul(F,Pt)|0,o=o+Math.imul(F,Ht)|0,i=i+Math.imul(Mt,Rt)|0,e=(e=e+Math.imul(Mt,Wt)|0)+Math.imul(It,Rt)|0,o=o+Math.imul(It,Wt)|0,i=i+Math.imul(gt,Nt)|0,e=(e=e+Math.imul(gt,Xt)|0)+Math.imul(bt,Nt)|0,o=o+Math.imul(bt,Xt)|0,i=i+Math.imul(nt,jt)|0,e=(e=e+Math.imul(nt,Zt)|0)+Math.imul(ht,jt)|0,o=o+Math.imul(ht,Zt)|0,i=i+Math.imul(z,Dt)|0,e=(e=e+Math.imul(z,Jt)|0)+Math.imul(X,Dt)|0,o=o+Math.imul(X,Jt)|0,i=i+Math.imul(rt,Lt)|0,e=(e=e+Math.imul(rt,Qt)|0)+Math.imul(D,Lt)|0,o=o+Math.imul(D,Qt)|0;var ci=(j+(i=i+Math.imul(R,Ut)|0)|0)+((8191&(e=(e=e+Math.imul(R,Yt)|0)+Math.imul(q,Ut)|0))<<13)|0;j=((o=o+Math.imul(q,Yt)|0)+(e>>>13)|0)+(ci>>>26)|0,ci&=67108863,i=Math.imul(ft,kt),e=(e=Math.imul(ft,Kt))+Math.imul(mt,kt)|0,o=Math.imul(mt,Kt),i=i+Math.imul(U,Pt)|0,e=(e=e+Math.imul(U,Ht)|0)+Math.imul(it,Pt)|0,o=o+Math.imul(it,Ht)|0,i=i+Math.imul(tt,Rt)|0,e=(e=e+Math.imul(tt,Wt)|0)+Math.imul(F,Rt)|0,o=o+Math.imul(F,Wt)|0,i=i+Math.imul(Mt,Nt)|0,e=(e=e+Math.imul(Mt,Xt)|0)+Math.imul(It,Nt)|0,o=o+Math.imul(It,Xt)|0,i=i+Math.imul(gt,jt)|0,e=(e=e+Math.imul(gt,Zt)|0)+Math.imul(bt,jt)|0,o=o+Math.imul(bt,Zt)|0,i=i+Math.imul(nt,Dt)|0,e=(e=e+Math.imul(nt,Jt)|0)+Math.imul(ht,Dt)|0,o=o+Math.imul(ht,Jt)|0,i=i+Math.imul(z,Lt)|0,e=(e=e+Math.imul(z,Qt)|0)+Math.imul(X,Lt)|0,o=o+Math.imul(X,Qt)|0,i=i+Math.imul(rt,Ut)|0,e=(e=e+Math.imul(rt,Yt)|0)+Math.imul(D,Ut)|0,o=o+Math.imul(D,Yt)|0;var li=(j+(i=i+Math.imul(R,qt)|0)|0)+((8191&(e=(e=e+Math.imul(R,ee)|0)+Math.imul(q,qt)|0))<<13)|0;j=((o=o+Math.imul(q,ee)|0)+(e>>>13)|0)+(li>>>26)|0,li&=67108863,i=Math.imul(_t,kt),e=(e=Math.imul(_t,Kt))+Math.imul(At,kt)|0,o=Math.imul(At,Kt),i=i+Math.imul(ft,Pt)|0,e=(e=e+Math.imul(ft,Ht)|0)+Math.imul(mt,Pt)|0,o=o+Math.imul(mt,Ht)|0,i=i+Math.imul(U,Rt)|0,e=(e=e+Math.imul(U,Wt)|0)+Math.imul(it,Rt)|0,o=o+Math.imul(it,Wt)|0,i=i+Math.imul(tt,Nt)|0,e=(e=e+Math.imul(tt,Xt)|0)+Math.imul(F,Nt)|0,o=o+Math.imul(F,Xt)|0,i=i+Math.imul(Mt,jt)|0,e=(e=e+Math.imul(Mt,Zt)|0)+Math.imul(It,jt)|0,o=o+Math.imul(It,Zt)|0,i=i+Math.imul(gt,Dt)|0,e=(e=e+Math.imul(gt,Jt)|0)+Math.imul(bt,Dt)|0,o=o+Math.imul(bt,Jt)|0,i=i+Math.imul(nt,Lt)|0,e=(e=e+Math.imul(nt,Qt)|0)+Math.imul(ht,Lt)|0,o=o+Math.imul(ht,Qt)|0,i=i+Math.imul(z,Ut)|0,e=(e=e+Math.imul(z,Yt)|0)+Math.imul(X,Ut)|0,o=o+Math.imul(X,Yt)|0,i=i+Math.imul(rt,qt)|0,e=(e=e+Math.imul(rt,ee)|0)+Math.imul(D,qt)|0,o=o+Math.imul(D,ee)|0;var hi=(j+(i=i+Math.imul(R,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(R,te)|0)+Math.imul(q,Ft)|0))<<13)|0;j=((o=o+Math.imul(q,te)|0)+(e>>>13)|0)+(hi>>>26)|0,hi&=67108863,i=Math.imul(_t,Pt),e=(e=Math.imul(_t,Ht))+Math.imul(At,Pt)|0,o=Math.imul(At,Ht),i=i+Math.imul(ft,Rt)|0,e=(e=e+Math.imul(ft,Wt)|0)+Math.imul(mt,Rt)|0,o=o+Math.imul(mt,Wt)|0,i=i+Math.imul(U,Nt)|0,e=(e=e+Math.imul(U,Xt)|0)+Math.imul(it,Nt)|0,o=o+Math.imul(it,Xt)|0,i=i+Math.imul(tt,jt)|0,e=(e=e+Math.imul(tt,Zt)|0)+Math.imul(F,jt)|0,o=o+Math.imul(F,Zt)|0,i=i+Math.imul(Mt,Dt)|0,e=(e=e+Math.imul(Mt,Jt)|0)+Math.imul(It,Dt)|0,o=o+Math.imul(It,Jt)|0,i=i+Math.imul(gt,Lt)|0,e=(e=e+Math.imul(gt,Qt)|0)+Math.imul(bt,Lt)|0,o=o+Math.imul(bt,Qt)|0,i=i+Math.imul(nt,Ut)|0,e=(e=e+Math.imul(nt,Yt)|0)+Math.imul(ht,Ut)|0,o=o+Math.imul(ht,Yt)|0,i=i+Math.imul(z,qt)|0,e=(e=e+Math.imul(z,ee)|0)+Math.imul(X,qt)|0,o=o+Math.imul(X,ee)|0;var fi=(j+(i=i+Math.imul(rt,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(rt,te)|0)+Math.imul(D,Ft)|0))<<13)|0;j=((o=o+Math.imul(D,te)|0)+(e>>>13)|0)+(fi>>>26)|0,fi&=67108863,i=Math.imul(_t,Rt),e=(e=Math.imul(_t,Wt))+Math.imul(At,Rt)|0,o=Math.imul(At,Wt),i=i+Math.imul(ft,Nt)|0,e=(e=e+Math.imul(ft,Xt)|0)+Math.imul(mt,Nt)|0,o=o+Math.imul(mt,Xt)|0,i=i+Math.imul(U,jt)|0,e=(e=e+Math.imul(U,Zt)|0)+Math.imul(it,jt)|0,o=o+Math.imul(it,Zt)|0,i=i+Math.imul(tt,Dt)|0,e=(e=e+Math.imul(tt,Jt)|0)+Math.imul(F,Dt)|0,o=o+Math.imul(F,Jt)|0,i=i+Math.imul(Mt,Lt)|0,e=(e=e+Math.imul(Mt,Qt)|0)+Math.imul(It,Lt)|0,o=o+Math.imul(It,Qt)|0,i=i+Math.imul(gt,Ut)|0,e=(e=e+Math.imul(gt,Yt)|0)+Math.imul(bt,Ut)|0,o=o+Math.imul(bt,Yt)|0,i=i+Math.imul(nt,qt)|0,e=(e=e+Math.imul(nt,ee)|0)+Math.imul(ht,qt)|0,o=o+Math.imul(ht,ee)|0;var Je=(j+(i=i+Math.imul(z,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(z,te)|0)+Math.imul(X,Ft)|0))<<13)|0;j=((o=o+Math.imul(X,te)|0)+(e>>>13)|0)+(Je>>>26)|0,Je&=67108863,i=Math.imul(_t,Nt),e=(e=Math.imul(_t,Xt))+Math.imul(At,Nt)|0,o=Math.imul(At,Xt),i=i+Math.imul(ft,jt)|0,e=(e=e+Math.imul(ft,Zt)|0)+Math.imul(mt,jt)|0,o=o+Math.imul(mt,Zt)|0,i=i+Math.imul(U,Dt)|0,e=(e=e+Math.imul(U,Jt)|0)+Math.imul(it,Dt)|0,o=o+Math.imul(it,Jt)|0,i=i+Math.imul(tt,Lt)|0,e=(e=e+Math.imul(tt,Qt)|0)+Math.imul(F,Lt)|0,o=o+Math.imul(F,Qt)|0,i=i+Math.imul(Mt,Ut)|0,e=(e=e+Math.imul(Mt,Yt)|0)+Math.imul(It,Ut)|0,o=o+Math.imul(It,Yt)|0,i=i+Math.imul(gt,qt)|0,e=(e=e+Math.imul(gt,ee)|0)+Math.imul(bt,qt)|0,o=o+Math.imul(bt,ee)|0;var pi=(j+(i=i+Math.imul(nt,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(nt,te)|0)+Math.imul(ht,Ft)|0))<<13)|0;j=((o=o+Math.imul(ht,te)|0)+(e>>>13)|0)+(pi>>>26)|0,pi&=67108863,i=Math.imul(_t,jt),e=(e=Math.imul(_t,Zt))+Math.imul(At,jt)|0,o=Math.imul(At,Zt),i=i+Math.imul(ft,Dt)|0,e=(e=e+Math.imul(ft,Jt)|0)+Math.imul(mt,Dt)|0,o=o+Math.imul(mt,Jt)|0,i=i+Math.imul(U,Lt)|0,e=(e=e+Math.imul(U,Qt)|0)+Math.imul(it,Lt)|0,o=o+Math.imul(it,Qt)|0,i=i+Math.imul(tt,Ut)|0,e=(e=e+Math.imul(tt,Yt)|0)+Math.imul(F,Ut)|0,o=o+Math.imul(F,Yt)|0,i=i+Math.imul(Mt,qt)|0,e=(e=e+Math.imul(Mt,ee)|0)+Math.imul(It,qt)|0,o=o+Math.imul(It,ee)|0;var gi=(j+(i=i+Math.imul(gt,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(gt,te)|0)+Math.imul(bt,Ft)|0))<<13)|0;j=((o=o+Math.imul(bt,te)|0)+(e>>>13)|0)+(gi>>>26)|0,gi&=67108863,i=Math.imul(_t,Dt),e=(e=Math.imul(_t,Jt))+Math.imul(At,Dt)|0,o=Math.imul(At,Jt),i=i+Math.imul(ft,Lt)|0,e=(e=e+Math.imul(ft,Qt)|0)+Math.imul(mt,Lt)|0,o=o+Math.imul(mt,Qt)|0,i=i+Math.imul(U,Ut)|0,e=(e=e+Math.imul(U,Yt)|0)+Math.imul(it,Ut)|0,o=o+Math.imul(it,Yt)|0,i=i+Math.imul(tt,qt)|0,e=(e=e+Math.imul(tt,ee)|0)+Math.imul(F,qt)|0,o=o+Math.imul(F,ee)|0;var ei=(j+(i=i+Math.imul(Mt,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(Mt,te)|0)+Math.imul(It,Ft)|0))<<13)|0;j=((o=o+Math.imul(It,te)|0)+(e>>>13)|0)+(ei>>>26)|0,ei&=67108863,i=Math.imul(_t,Lt),e=(e=Math.imul(_t,Qt))+Math.imul(At,Lt)|0,o=Math.imul(At,Qt),i=i+Math.imul(ft,Ut)|0,e=(e=e+Math.imul(ft,Yt)|0)+Math.imul(mt,Ut)|0,o=o+Math.imul(mt,Yt)|0,i=i+Math.imul(U,qt)|0,e=(e=e+Math.imul(U,ee)|0)+Math.imul(it,qt)|0,o=o+Math.imul(it,ee)|0;var ii=(j+(i=i+Math.imul(tt,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(tt,te)|0)+Math.imul(F,Ft)|0))<<13)|0;j=((o=o+Math.imul(F,te)|0)+(e>>>13)|0)+(ii>>>26)|0,ii&=67108863,i=Math.imul(_t,Ut),e=(e=Math.imul(_t,Yt))+Math.imul(At,Ut)|0,o=Math.imul(At,Yt),i=i+Math.imul(ft,qt)|0,e=(e=e+Math.imul(ft,ee)|0)+Math.imul(mt,qt)|0,o=o+Math.imul(mt,ee)|0;var Ye=(j+(i=i+Math.imul(U,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(U,te)|0)+Math.imul(it,Ft)|0))<<13)|0;j=((o=o+Math.imul(it,te)|0)+(e>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,i=Math.imul(_t,qt),e=(e=Math.imul(_t,ee))+Math.imul(At,qt)|0,o=Math.imul(At,ee);var di=(j+(i=i+Math.imul(ft,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(ft,te)|0)+Math.imul(mt,Ft)|0))<<13)|0;j=((o=o+Math.imul(mt,te)|0)+(e>>>13)|0)+(di>>>26)|0,di&=67108863;var ni=(j+(i=Math.imul(_t,Ft))|0)+((8191&(e=(e=Math.imul(_t,te))+Math.imul(At,Ft)|0))<<13)|0;return j=((o=Math.imul(At,te))+(e>>>13)|0)+(ni>>>26)|0,ni&=67108863,C[0]=Ae,C[1]=Re,C[2]=Ke,C[3]=ai,C[4]=ri,C[5]=si,C[6]=ui,C[7]=ci,C[8]=li,C[9]=hi,C[10]=fi,C[11]=Je,C[12]=pi,C[13]=gi,C[14]=ei,C[15]=ii,C[16]=Ye,C[17]=di,C[18]=ni,j!==0&&(C[19]=j,r.length++),r};function E(t,n,r){return new I().mulp(t,n,r)}function I(t,n){this.x=t,this.y=n}Math.imul||(b=w),a.prototype.mulTo=function(t,n){var r,i=this.length+t.length;return r=this.length===10&&t.length===10?b(this,t,n):i<63?w(this,t,n):i<1024?function(e,o,s){s.negative=o.negative^e.negative,s.length=e.length+o.length;for(var A=0,C=0,j=0;j<s.length-1;j++){var T=C;C=0;for(var R=67108863&A,q=Math.min(j,o.length-1),Z=Math.max(0,j-e.length+1);Z<=q;Z++){var rt=j-Z,D=(0|e.words[rt])*(0|o.words[Z]),G=67108863&D;R=67108863&(G=G+R|0),C+=(T=(T=T+(D/67108864|0)|0)+(G>>>26)|0)>>>26,T&=67108863}s.words[j]=R,A=T,T=C}return A!==0?s.words[j]=A:s.length--,s.strip()}(this,t,n):E(this,t,n),r},I.prototype.makeRBT=function(t){for(var n=new Array(t),r=a.prototype._countBits(t)-1,i=0;i<t;i++)n[i]=this.revBin(i,r,t);return n},I.prototype.revBin=function(t,n,r){if(t===0||t===r-1)return t;for(var i=0,e=0;e<n;e++)i|=(1&t)<<n-e-1,t>>=1;return i},I.prototype.permute=function(t,n,r,i,e,o){for(var s=0;s<o;s++)i[s]=n[t[s]],e[s]=r[t[s]]},I.prototype.transform=function(t,n,r,i,e,o){this.permute(o,t,n,r,i,e);for(var s=1;s<e;s<<=1)for(var A=s<<1,C=Math.cos(2*Math.PI/A),j=Math.sin(2*Math.PI/A),T=0;T<e;T+=A)for(var R=C,q=j,Z=0;Z<s;Z++){var rt=r[T+Z],D=i[T+Z],G=r[T+Z+s],z=i[T+Z+s],X=R*G-q*z;z=R*z+q*G,G=X,r[T+Z]=rt+G,i[T+Z]=D+z,r[T+Z+s]=rt-G,i[T+Z+s]=D-z,Z!==A&&(X=C*R-j*q,q=C*q+j*R,R=X)}},I.prototype.guessLen13b=function(t,n){var r=1|Math.max(n,t),i=1&r,e=0;for(r=r/2|0;r;r>>>=1)e++;return 1<<e+1+i},I.prototype.conjugate=function(t,n,r){if(!(r<=1))for(var i=0;i<r/2;i++){var e=t[i];t[i]=t[r-i-1],t[r-i-1]=e,e=n[i],n[i]=-n[r-i-1],n[r-i-1]=-e}},I.prototype.normalize13b=function(t,n){for(var r=0,i=0;i<n/2;i++){var e=8192*Math.round(t[2*i+1]/n)+Math.round(t[2*i]/n)+r;t[i]=67108863&e,r=e<67108864?0:e/67108864|0}return t},I.prototype.convert13b=function(t,n,r,i){for(var e=0,o=0;o<n;o++)e+=0|t[o],r[2*o]=8191&e,e>>>=13,r[2*o+1]=8191&e,e>>>=13;for(o=2*n;o<i;++o)r[o]=0;m(e===0),m((-8192&e)==0)},I.prototype.stub=function(t){for(var n=new Array(t),r=0;r<t;r++)n[r]=0;return n},I.prototype.mulp=function(t,n,r){var i=2*this.guessLen13b(t.length,n.length),e=this.makeRBT(i),o=this.stub(i),s=new Array(i),A=new Array(i),C=new Array(i),j=new Array(i),T=new Array(i),R=new Array(i),q=r.words;q.length=i,this.convert13b(t.words,t.length,s,i),this.convert13b(n.words,n.length,j,i),this.transform(s,o,A,C,i,e),this.transform(j,o,T,R,i,e);for(var Z=0;Z<i;Z++){var rt=A[Z]*T[Z]-C[Z]*R[Z];C[Z]=A[Z]*R[Z]+C[Z]*T[Z],A[Z]=rt}return this.conjugate(A,C,i),this.transform(A,C,q,o,i,e),this.conjugate(q,o,i),this.normalize13b(q,i),r.negative=t.negative^n.negative,r.length=t.length+n.length,r.strip()},a.prototype.mul=function(t){var n=new a(null);return n.words=new Array(this.length+t.length),this.mulTo(t,n)},a.prototype.mulf=function(t){var n=new a(null);return n.words=new Array(this.length+t.length),E(this,t,n)},a.prototype.imul=function(t){return this.clone().mulTo(t,this)},a.prototype.imuln=function(t){m(typeof t=="number"),m(t<67108864);for(var n=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,e=(67108863&i)+(67108863&n);n>>=26,n+=i/67108864|0,n+=e>>>26,this.words[r]=67108863&e}return n!==0&&(this.words[r]=n,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var n=function(o){for(var s=new Array(o.bitLength()),A=0;A<s.length;A++){var C=A/26|0,j=A%26;s[A]=(o.words[C]&1<<j)>>>j}return s}(t);if(n.length===0)return new a(1);for(var r=this,i=0;i<n.length&&n[i]===0;i++,r=r.sqr());if(++i<n.length)for(var e=r.sqr();i<n.length;i++,e=e.sqr())n[i]!==0&&(r=r.mul(e));return r},a.prototype.iushln=function(t){m(typeof t=="number"&&t>=0);var n,r=t%26,i=(t-r)/26,e=67108863>>>26-r<<26-r;if(r!==0){var o=0;for(n=0;n<this.length;n++){var s=this.words[n]&e,A=(0|this.words[n])-s<<r;this.words[n]=A|o,o=s>>>26-r}o&&(this.words[n]=o,this.length++)}if(i!==0){for(n=this.length-1;n>=0;n--)this.words[n+i]=this.words[n];for(n=0;n<i;n++)this.words[n]=0;this.length+=i}return this.strip()},a.prototype.ishln=function(t){return m(this.negative===0),this.iushln(t)},a.prototype.iushrn=function(t,n,r){var i;m(typeof t=="number"&&t>=0),i=n?(n-n%26)/26:0;var e=t%26,o=Math.min((t-e)/26,this.length),s=67108863^67108863>>>e<<e,A=r;if(i-=o,i=Math.max(0,i),A){for(var C=0;C<o;C++)A.words[C]=this.words[C];A.length=o}if(o!==0)if(this.length>o)for(this.length-=o,C=0;C<this.length;C++)this.words[C]=this.words[C+o];else this.words[0]=0,this.length=1;var j=0;for(C=this.length-1;C>=0&&(j!==0||C>=i);C--){var T=0|this.words[C];this.words[C]=j<<26-e|T>>>e,j=T&s}return A&&j!==0&&(A.words[A.length++]=j),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,n,r){return m(this.negative===0),this.iushrn(t,n,r)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){m(typeof t=="number"&&t>=0);var n=t%26,r=(t-n)/26,i=1<<n;return!(this.length<=r||!(this.words[r]&i))},a.prototype.imaskn=function(t){m(typeof t=="number"&&t>=0);var n=t%26,r=(t-n)/26;if(m(this.negative===0,"imaskn works only with positive numbers"),this.length<=r)return this;if(n!==0&&r++,this.length=Math.min(r,this.length),n!==0){var i=67108863^67108863>>>n<<n;this.words[this.length-1]&=i}return this.strip()},a.prototype.maskn=function(t){return this.clone().imaskn(t)},a.prototype.iaddn=function(t){return m(typeof t=="number"),m(t<67108864),t<0?this.isubn(-t):this.negative!==0?this.length===1&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},a.prototype._iaddn=function(t){this.words[0]+=t;for(var n=0;n<this.length&&this.words[n]>=67108864;n++)this.words[n]-=67108864,n===this.length-1?this.words[n+1]=1:this.words[n+1]++;return this.length=Math.max(this.length,n+1),this},a.prototype.isubn=function(t){if(m(typeof t=="number"),m(t<67108864),t<0)return this.iaddn(-t);if(this.negative!==0)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var n=0;n<this.length&&this.words[n]<0;n++)this.words[n]+=67108864,this.words[n+1]-=1;return this.strip()},a.prototype.addn=function(t){return this.clone().iaddn(t)},a.prototype.subn=function(t){return this.clone().isubn(t)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(t,n,r){var i,e,o=t.length+r;this._expand(o);var s=0;for(i=0;i<t.length;i++){e=(0|this.words[i+r])+s;var A=(0|t.words[i])*n;s=((e-=67108863&A)>>26)-(A/67108864|0),this.words[i+r]=67108863&e}for(;i<this.length-r;i++)s=(e=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&e;if(s===0)return this.strip();for(m(s===-1),s=0,i=0;i<this.length;i++)s=(e=-(0|this.words[i])+s)>>26,this.words[i]=67108863&e;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,n){var r=(this.length,t.length),i=this.clone(),e=t,o=0|e.words[e.length-1];(r=26-this._countBits(o))!=0&&(e=e.ushln(r),i.iushln(r),o=0|e.words[e.length-1]);var s,A=i.length-e.length;if(n!=="mod"){(s=new a(null)).length=A+1,s.words=new Array(s.length);for(var C=0;C<s.length;C++)s.words[C]=0}var j=i.clone()._ishlnsubmul(e,1,A);j.negative===0&&(i=j,s&&(s.words[A]=1));for(var T=A-1;T>=0;T--){var R=67108864*(0|i.words[e.length+T])+(0|i.words[e.length+T-1]);for(R=Math.min(R/o|0,67108863),i._ishlnsubmul(e,R,T);i.negative!==0;)R--,i.negative=0,i._ishlnsubmul(e,1,T),i.isZero()||(i.negative^=1);s&&(s.words[T]=R)}return s&&s.strip(),i.strip(),n!=="div"&&r!==0&&i.iushrn(r),{div:s||null,mod:i}},a.prototype.divmod=function(t,n,r){return m(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:this.negative!==0&&t.negative===0?(o=this.neg().divmod(t,n),n!=="mod"&&(i=o.div.neg()),n!=="div"&&(e=o.mod.neg(),r&&e.negative!==0&&e.iadd(t)),{div:i,mod:e}):this.negative===0&&t.negative!==0?(o=this.divmod(t.neg(),n),n!=="mod"&&(i=o.div.neg()),{div:i,mod:o.mod}):this.negative&t.negative?(o=this.neg().divmod(t.neg(),n),n!=="div"&&(e=o.mod.neg(),r&&e.negative!==0&&e.isub(t)),{div:o.div,mod:e}):t.length>this.length||this.cmp(t)<0?{div:new a(0),mod:this}:t.length===1?n==="div"?{div:this.divn(t.words[0]),mod:null}:n==="mod"?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,n);var i,e,o},a.prototype.div=function(t){return this.divmod(t,"div",!1).div},a.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},a.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},a.prototype.divRound=function(t){var n=this.divmod(t);if(n.mod.isZero())return n.div;var r=n.div.negative!==0?n.mod.isub(t):n.mod,i=t.ushrn(1),e=t.andln(1),o=r.cmp(i);return o<0||e===1&&o===0?n.div:n.div.negative!==0?n.div.isubn(1):n.div.iaddn(1)},a.prototype.modn=function(t){m(t<=67108863);for(var n=67108864%t,r=0,i=this.length-1;i>=0;i--)r=(n*r+(0|this.words[i]))%t;return r},a.prototype.idivn=function(t){m(t<=67108863);for(var n=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*n;this.words[r]=i/t|0,n=i%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){m(t.negative===0),m(!t.isZero());var n=this,r=t.clone();n=n.negative!==0?n.umod(t):n.clone();for(var i=new a(1),e=new a(0),o=new a(0),s=new a(1),A=0;n.isEven()&&r.isEven();)n.iushrn(1),r.iushrn(1),++A;for(var C=r.clone(),j=n.clone();!n.isZero();){for(var T=0,R=1;!(n.words[0]&R)&&T<26;++T,R<<=1);if(T>0)for(n.iushrn(T);T-- >0;)(i.isOdd()||e.isOdd())&&(i.iadd(C),e.isub(j)),i.iushrn(1),e.iushrn(1);for(var q=0,Z=1;!(r.words[0]&Z)&&q<26;++q,Z<<=1);if(q>0)for(r.iushrn(q);q-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(C),s.isub(j)),o.iushrn(1),s.iushrn(1);n.cmp(r)>=0?(n.isub(r),i.isub(o),e.isub(s)):(r.isub(n),o.isub(i),s.isub(e))}return{a:o,b:s,gcd:r.iushln(A)}},a.prototype._invmp=function(t){m(t.negative===0),m(!t.isZero());var n=this,r=t.clone();n=n.negative!==0?n.umod(t):n.clone();for(var i,e=new a(1),o=new a(0),s=r.clone();n.cmpn(1)>0&&r.cmpn(1)>0;){for(var A=0,C=1;!(n.words[0]&C)&&A<26;++A,C<<=1);if(A>0)for(n.iushrn(A);A-- >0;)e.isOdd()&&e.iadd(s),e.iushrn(1);for(var j=0,T=1;!(r.words[0]&T)&&j<26;++j,T<<=1);if(j>0)for(r.iushrn(j);j-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);n.cmp(r)>=0?(n.isub(r),e.isub(o)):(r.isub(n),o.isub(e))}return(i=n.cmpn(1)===0?e:o).cmpn(0)<0&&i.iadd(t),i},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var n=this.clone(),r=t.clone();n.negative=0,r.negative=0;for(var i=0;n.isEven()&&r.isEven();i++)n.iushrn(1),r.iushrn(1);for(;;){for(;n.isEven();)n.iushrn(1);for(;r.isEven();)r.iushrn(1);var e=n.cmp(r);if(e<0){var o=n;n=r,r=o}else if(e===0||r.cmpn(1)===0)break;n.isub(r)}return r.iushln(i)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(t){return this.words[0]&t},a.prototype.bincn=function(t){m(typeof t=="number");var n=t%26,r=(t-n)/26,i=1<<n;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var e=i,o=r;e!==0&&o<this.length;o++){var s=0|this.words[o];e=(s+=e)>>>26,s&=67108863,this.words[o]=s}return e!==0&&(this.words[o]=e,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(t){var n,r=t<0;if(this.negative!==0&&!r)return-1;if(this.negative===0&&r)return 1;if(this.strip(),this.length>1)n=1;else{r&&(t=-t),m(t<=67108863,"Number is too big");var i=0|this.words[0];n=i===t?0:i<t?-1:1}return this.negative!==0?0|-n:n},a.prototype.cmp=function(t){if(this.negative!==0&&t.negative===0)return-1;if(this.negative===0&&t.negative!==0)return 1;var n=this.ucmp(t);return this.negative!==0?0|-n:n},a.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var n=0,r=this.length-1;r>=0;r--){var i=0|this.words[r],e=0|t.words[r];if(i!==e){i<e?n=-1:i>e&&(n=1);break}}return n},a.prototype.gtn=function(t){return this.cmpn(t)===1},a.prototype.gt=function(t){return this.cmp(t)===1},a.prototype.gten=function(t){return this.cmpn(t)>=0},a.prototype.gte=function(t){return this.cmp(t)>=0},a.prototype.ltn=function(t){return this.cmpn(t)===-1},a.prototype.lt=function(t){return this.cmp(t)===-1},a.prototype.lten=function(t){return this.cmpn(t)<=0},a.prototype.lte=function(t){return this.cmp(t)<=0},a.prototype.eqn=function(t){return this.cmpn(t)===0},a.prototype.eq=function(t){return this.cmp(t)===0},a.red=function(t){return new Q(t)},a.prototype.toRed=function(t){return m(!this.red,"Already a number in reduction context"),m(this.negative===0,"red works only with positives"),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return m(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return m(!this.red,"Already a number in reduction context"),this._forceRed(t)},a.prototype.redAdd=function(t){return m(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},a.prototype.redIAdd=function(t){return m(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},a.prototype.redSub=function(t){return m(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},a.prototype.redISub=function(t){return m(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},a.prototype.redShl=function(t){return m(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},a.prototype.redMul=function(t){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return m(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return m(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return m(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return m(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return m(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return m(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var M={k256:null,p224:null,p192:null,p25519:null};function B(t,n){this.name=t,this.p=new a(n,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function P(){B.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function N(){B.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function $(){B.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function et(){B.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function Q(t){if(typeof t=="string"){var n=a._prime(t);this.m=n.p,this.prime=n}else m(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function ot(t){Q.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}B.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},B.prototype.ireduce=function(t){var n,r=t;do this.split(r,this.tmp),n=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(n>this.n);var i=n<this.n?-1:r.ucmp(this.p);return i===0?(r.words[0]=0,r.length=1):i>0?r.isub(this.p):r.strip!==void 0?r.strip():r._strip(),r},B.prototype.split=function(t,n){t.iushrn(this.n,0,n)},B.prototype.imulK=function(t){return t.imul(this.k)},S(P,B),P.prototype.split=function(t,n){for(var r=4194303,i=Math.min(t.length,9),e=0;e<i;e++)n.words[e]=t.words[e];if(n.length=i,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(n.words[n.length++]=o&r,e=10;e<t.length;e++){var s=0|t.words[e];t.words[e-10]=(s&r)<<4|o>>>22,o=s}o>>>=22,t.words[e-10]=o,o===0&&t.length>10?t.length-=10:t.length-=9},P.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var n=0,r=0;r<t.length;r++){var i=0|t.words[r];n+=977*i,t.words[r]=67108863&n,n=64*i+(n/67108864|0)}return t.words[t.length-1]===0&&(t.length--,t.words[t.length-1]===0&&t.length--),t},S(N,B),S($,B),S(et,B),et.prototype.imulK=function(t){for(var n=0,r=0;r<t.length;r++){var i=19*(0|t.words[r])+n,e=67108863&i;i>>>=26,t.words[r]=e,n=i}return n!==0&&(t.words[t.length++]=n),t},a._prime=function(t){if(M[t])return M[t];var n;if(t==="k256")n=new P;else if(t==="p224")n=new N;else if(t==="p192")n=new $;else{if(t!=="p25519")throw new Error("Unknown prime "+t);n=new et}return M[t]=n,n},Q.prototype._verify1=function(t){m(t.negative===0,"red works only with positives"),m(t.red,"red works only with red numbers")},Q.prototype._verify2=function(t,n){m((t.negative|n.negative)==0,"red works only with positives"),m(t.red&&t.red===n.red,"red works only with red numbers")},Q.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},Q.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},Q.prototype.add=function(t,n){this._verify2(t,n);var r=t.add(n);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},Q.prototype.iadd=function(t,n){this._verify2(t,n);var r=t.iadd(n);return r.cmp(this.m)>=0&&r.isub(this.m),r},Q.prototype.sub=function(t,n){this._verify2(t,n);var r=t.sub(n);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},Q.prototype.isub=function(t,n){this._verify2(t,n);var r=t.isub(n);return r.cmpn(0)<0&&r.iadd(this.m),r},Q.prototype.shl=function(t,n){return this._verify1(t),this.imod(t.ushln(n))},Q.prototype.imul=function(t,n){return this._verify2(t,n),this.imod(t.imul(n))},Q.prototype.mul=function(t,n){return this._verify2(t,n),this.imod(t.mul(n))},Q.prototype.isqr=function(t){return this.imul(t,t.clone())},Q.prototype.sqr=function(t){return this.mul(t,t)},Q.prototype.sqrt=function(t){if(t.isZero())return t.clone();var n=this.m.andln(3);if(m(n%2==1),n===3){var r=this.m.add(new a(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),e=0;!i.isZero()&&i.andln(1)===0;)e++,i.iushrn(1);m(!i.isZero());var o=new a(1).toRed(this),s=o.redNeg(),A=this.m.subn(1).iushrn(1),C=this.m.bitLength();for(C=new a(2*C*C).toRed(this);this.pow(C,A).cmp(s)!==0;)C.redIAdd(s);for(var j=this.pow(C,i),T=this.pow(t,i.addn(1).iushrn(1)),R=this.pow(t,i),q=e;R.cmp(o)!==0;){for(var Z=R,rt=0;Z.cmp(o)!==0;rt++)Z=Z.redSqr();m(rt<q);var D=this.pow(j,new a(1).iushln(q-rt-1));T=T.redMul(D),j=D.redSqr(),R=R.redMul(j),q=rt}return T},Q.prototype.invm=function(t){var n=t._invmp(this.m);return n.negative!==0?(n.negative=0,this.imod(n).redNeg()):this.imod(n)},Q.prototype.pow=function(t,n){if(n.isZero())return new a(1).toRed(this);if(n.cmpn(1)===0)return t.clone();var r=new Array(16);r[0]=new a(1).toRed(this),r[1]=t;for(var i=2;i<r.length;i++)r[i]=this.mul(r[i-1],t);var e=r[0],o=0,s=0,A=n.bitLength()%26;for(A===0&&(A=26),i=n.length-1;i>=0;i--){for(var C=n.words[i],j=A-1;j>=0;j--){var T=C>>j&1;e!==r[0]&&(e=this.sqr(e)),T!==0||o!==0?(o<<=1,o|=T,(++s==4||i===0&&j===0)&&(e=this.mul(e,r[o]),s=0,o=0)):s=0}A=26}return e},Q.prototype.convertTo=function(t){var n=t.umod(this.m);return n===t?n.clone():n},Q.prototype.convertFrom=function(t){var n=t.clone();return n.red=null,n},a.mont=function(t){return new ot(t)},S(ot,Q),ot.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},ot.prototype.convertFrom=function(t){var n=this.imod(t.mul(this.rinv));return n.red=null,n},ot.prototype.imul=function(t,n){if(t.isZero()||n.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(n),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=r.isub(i).iushrn(this.shift),o=e;return e.cmp(this.m)>=0?o=e.isub(this.m):e.cmpn(0)<0&&(o=e.iadd(this.m)),o._forceRed(this)},ot.prototype.mul=function(t,n){if(t.isZero()||n.isZero())return new a(0)._forceRed(this);var r=t.mul(n),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=r.isub(i).iushrn(this.shift),o=e;return e.cmp(this.m)>=0?o=e.isub(this.m):e.cmpn(0)<0&&(o=e.iadd(this.m)),o._forceRed(this)},ot.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}})(W=y.nmd(W),this)},9282:(W,_,y)=>{var x=y(4155),v=y(5108);function m(j){return m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},m(j)}var S,a,p=y(2136).codes,c=p.ERR_AMBIGUOUS_ARGUMENT,l=p.ERR_INVALID_ARG_TYPE,f=p.ERR_INVALID_ARG_VALUE,g=p.ERR_INVALID_RETURN_VALUE,h=p.ERR_MISSING_ARGS,u=y(5961),w=y(9539).inspect,b=y(9539).types,E=b.isPromise,I=b.isRegExp,M=Object.assign?Object.assign:y(8091).assign,B=Object.is?Object.is:y(609);function P(){var j=y(9158);S=j.isDeepEqual,a=j.isDeepStrictEqual}var N=!1,$=W.exports=t,et={};function Q(j){throw j.message instanceof Error?j.message:new u(j)}function ot(j,T,R,q){if(!R){var Z=!1;if(T===0)Z=!0,q="No value argument passed to `assert.ok()`";else if(q instanceof Error)throw q;var rt=new u({actual:R,expected:!0,message:q,operator:"==",stackStartFn:j});throw rt.generatedMessage=Z,rt}}function t(){for(var j=arguments.length,T=new Array(j),R=0;R<j;R++)T[R]=arguments[R];ot.apply(void 0,[t,T.length].concat(T))}$.fail=function j(T,R,q,Z,rt){var D,G=arguments.length;if(G===0?D="Failed":G===1?(q=T,T=void 0):(N===!1&&(N=!0,(x.emitWarning?x.emitWarning:v.warn.bind(v))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),G===2&&(Z="!=")),q instanceof Error)throw q;var z={actual:T,expected:R,operator:Z===void 0?"fail":Z,stackStartFn:rt||j};q!==void 0&&(z.message=q);var X=new u(z);throw D&&(X.message=D,X.generatedMessage=!0),X},$.AssertionError=u,$.ok=t,$.equal=function j(T,R,q){if(arguments.length<2)throw new h("actual","expected");T!=R&&Q({actual:T,expected:R,message:q,operator:"==",stackStartFn:j})},$.notEqual=function j(T,R,q){if(arguments.length<2)throw new h("actual","expected");T==R&&Q({actual:T,expected:R,message:q,operator:"!=",stackStartFn:j})},$.deepEqual=function j(T,R,q){if(arguments.length<2)throw new h("actual","expected");S===void 0&&P(),S(T,R)||Q({actual:T,expected:R,message:q,operator:"deepEqual",stackStartFn:j})},$.notDeepEqual=function j(T,R,q){if(arguments.length<2)throw new h("actual","expected");S===void 0&&P(),S(T,R)&&Q({actual:T,expected:R,message:q,operator:"notDeepEqual",stackStartFn:j})},$.deepStrictEqual=function j(T,R,q){if(arguments.length<2)throw new h("actual","expected");S===void 0&&P(),a(T,R)||Q({actual:T,expected:R,message:q,operator:"deepStrictEqual",stackStartFn:j})},$.notDeepStrictEqual=function j(T,R,q){if(arguments.length<2)throw new h("actual","expected");S===void 0&&P(),a(T,R)&&Q({actual:T,expected:R,message:q,operator:"notDeepStrictEqual",stackStartFn:j})},$.strictEqual=function j(T,R,q){if(arguments.length<2)throw new h("actual","expected");B(T,R)||Q({actual:T,expected:R,message:q,operator:"strictEqual",stackStartFn:j})},$.notStrictEqual=function j(T,R,q){if(arguments.length<2)throw new h("actual","expected");B(T,R)&&Q({actual:T,expected:R,message:q,operator:"notStrictEqual",stackStartFn:j})};var n=function j(T,R,q){var Z=this;(function(rt,D){if(!(rt instanceof D))throw new TypeError("Cannot call a class as a function")})(this,j),R.forEach(function(rt){rt in T&&(q!==void 0&&typeof q[rt]=="string"&&I(T[rt])&&T[rt].test(q[rt])?Z[rt]=q[rt]:Z[rt]=T[rt])})};function r(j,T,R,q){if(typeof T!="function"){if(I(T))return T.test(j);if(arguments.length===2)throw new l("expected",["Function","RegExp"],T);if(m(j)!=="object"||j===null){var Z=new u({actual:j,expected:T,message:R,operator:"deepStrictEqual",stackStartFn:q});throw Z.operator=q.name,Z}var rt=Object.keys(T);if(T instanceof Error)rt.push("name","message");else if(rt.length===0)throw new f("error",T,"may not be an empty object");return S===void 0&&P(),rt.forEach(function(D){typeof j[D]=="string"&&I(T[D])&&T[D].test(j[D])||function(G,z,X,st,nt,ht){if(!(X in G)||!a(G[X],z[X])){if(!st){var Et=new n(G,nt),gt=new n(z,nt,G),bt=new u({actual:Et,expected:gt,operator:"deepStrictEqual",stackStartFn:ht});throw bt.actual=G,bt.expected=z,bt.operator=ht.name,bt}Q({actual:G,expected:z,message:st,operator:ht.name,stackStartFn:ht})}}(j,T,D,R,rt,q)}),!0}return T.prototype!==void 0&&j instanceof T||!Error.isPrototypeOf(T)&&T.call({},j)===!0}function i(j){if(typeof j!="function")throw new l("fn","Function",j);try{j()}catch(T){return T}return et}function e(j){return E(j)||j!==null&&m(j)==="object"&&typeof j.then=="function"&&typeof j.catch=="function"}function o(j){return Promise.resolve().then(function(){var T;if(typeof j=="function"){if(!e(T=j()))throw new g("instance of Promise","promiseFn",T)}else{if(!e(j))throw new l("promiseFn",["Function","Promise"],j);T=j}return Promise.resolve().then(function(){return T}).then(function(){return et}).catch(function(R){return R})})}function s(j,T,R,q){if(typeof R=="string"){if(arguments.length===4)throw new l("error",["Object","Error","Function","RegExp"],R);if(m(T)==="object"&&T!==null){if(T.message===R)throw new c("error/message",'The error message "'.concat(T.message,'" is identical to the message.'))}else if(T===R)throw new c("error/message",'The error "'.concat(T,'" is identical to the message.'));q=R,R=void 0}else if(R!=null&&m(R)!=="object"&&typeof R!="function")throw new l("error",["Object","Error","Function","RegExp"],R);if(T===et){var Z="";R&&R.name&&(Z+=" (".concat(R.name,")")),Z+=q?": ".concat(q):".";var rt=j.name==="rejects"?"rejection":"exception";Q({actual:void 0,expected:R,operator:j.name,message:"Missing expected ".concat(rt).concat(Z),stackStartFn:j})}if(R&&!r(T,R,q,j))throw T}function A(j,T,R,q){if(T!==et){if(typeof R=="string"&&(q=R,R=void 0),!R||r(T,R)){var Z=q?": ".concat(q):".",rt=j.name==="doesNotReject"?"rejection":"exception";Q({actual:T,expected:R,operator:j.name,message:"Got unwanted ".concat(rt).concat(Z,`
|
|
17
|
+
`)+'Actual message: "'.concat(T&&T.message,'"'),stackStartFn:j})}throw T}}function C(){for(var j=arguments.length,T=new Array(j),R=0;R<j;R++)T[R]=arguments[R];ot.apply(void 0,[C,T.length].concat(T))}$.throws=function j(T){for(var R=arguments.length,q=new Array(R>1?R-1:0),Z=1;Z<R;Z++)q[Z-1]=arguments[Z];s.apply(void 0,[j,i(T)].concat(q))},$.rejects=function j(T){for(var R=arguments.length,q=new Array(R>1?R-1:0),Z=1;Z<R;Z++)q[Z-1]=arguments[Z];return o(T).then(function(rt){return s.apply(void 0,[j,rt].concat(q))})},$.doesNotThrow=function j(T){for(var R=arguments.length,q=new Array(R>1?R-1:0),Z=1;Z<R;Z++)q[Z-1]=arguments[Z];A.apply(void 0,[j,i(T)].concat(q))},$.doesNotReject=function j(T){for(var R=arguments.length,q=new Array(R>1?R-1:0),Z=1;Z<R;Z++)q[Z-1]=arguments[Z];return o(T).then(function(rt){return A.apply(void 0,[j,rt].concat(q))})},$.ifError=function j(T){if(T!=null){var R="ifError got unwanted exception: ";m(T)==="object"&&typeof T.message=="string"?T.message.length===0&&T.constructor?R+=T.constructor.name:R+=T.message:R+=w(T);var q=new u({actual:T,expected:null,operator:"ifError",message:R,stackStartFn:j}),Z=T.stack;if(typeof Z=="string"){var rt=Z.split(`
|
|
18
|
+
`);rt.shift();for(var D=q.stack.split(`
|
|
19
|
+
`),G=0;G<rt.length;G++){var z=D.indexOf(rt[G]);if(z!==-1){D=D.slice(0,z);break}}q.stack="".concat(D.join(`
|
|
20
|
+
`),`
|
|
21
|
+
`).concat(rt.join(`
|
|
22
|
+
`))}throw q}},$.strict=M(C,$,{equal:$.strictEqual,deepEqual:$.deepStrictEqual,notEqual:$.notStrictEqual,notDeepEqual:$.notDeepStrictEqual}),$.strict.strict=$.strict},5961:(W,_,y)=>{var x=y(4155);function v(Q,ot,t){return ot in Q?Object.defineProperty(Q,ot,{value:t,enumerable:!0,configurable:!0,writable:!0}):Q[ot]=t,Q}function m(Q,ot){for(var t=0;t<ot.length;t++){var n=ot[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(Q,n.key,n)}}function S(Q,ot){return!ot||g(ot)!=="object"&&typeof ot!="function"?a(Q):ot}function a(Q){if(Q===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Q}function p(Q){var ot=typeof Map=="function"?new Map:void 0;return p=function(t){if(t===null||(n=t,Function.toString.call(n).indexOf("[native code]")===-1))return t;var n;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(ot!==void 0){if(ot.has(t))return ot.get(t);ot.set(t,r)}function r(){return c(t,arguments,f(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),l(r,t)},p(Q)}function c(Q,ot,t){return c=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}()?Reflect.construct:function(n,r,i){var e=[null];e.push.apply(e,r);var o=new(Function.bind.apply(n,e));return i&&l(o,i.prototype),o},c.apply(null,arguments)}function l(Q,ot){return l=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t},l(Q,ot)}function f(Q){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(ot){return ot.__proto__||Object.getPrototypeOf(ot)},f(Q)}function g(Q){return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ot){return typeof ot}:function(ot){return ot&&typeof Symbol=="function"&&ot.constructor===Symbol&&ot!==Symbol.prototype?"symbol":typeof ot},g(Q)}var h=y(9539).inspect,u=y(2136).codes.ERR_INVALID_ARG_TYPE;function w(Q,ot,t){return(t===void 0||t>Q.length)&&(t=Q.length),Q.substring(t-ot.length,t)===ot}var b="",E="",I="",M="",B={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:"},P=10;function N(Q){var ot=Object.keys(Q),t=Object.create(Object.getPrototypeOf(Q));return ot.forEach(function(n){t[n]=Q[n]}),Object.defineProperty(t,"message",{value:Q.message}),t}function $(Q){return h(Q,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var et=function(Q){function ot(r){var i;if(function(D,G){if(!(D instanceof G))throw new TypeError("Cannot call a class as a function")}(this,ot),g(r)!=="object"||r===null)throw new u("options","Object",r);var e=r.message,o=r.operator,s=r.stackStartFn,A=r.actual,C=r.expected,j=Error.stackTraceLimit;if(Error.stackTraceLimit=0,e!=null)i=S(this,f(ot).call(this,String(e)));else if(x.stderr&&x.stderr.isTTY&&(x.stderr&&x.stderr.getColorDepth&&x.stderr.getColorDepth()!==1?(b="\x1B[34m",E="\x1B[32m",M="\x1B[39m",I="\x1B[31m"):(b="",E="",M="",I="")),g(A)==="object"&&A!==null&&g(C)==="object"&&C!==null&&"stack"in A&&A instanceof Error&&"stack"in C&&C instanceof Error&&(A=N(A),C=N(C)),o==="deepStrictEqual"||o==="strictEqual")i=S(this,f(ot).call(this,function(D,G,z){var X="",st="",nt=0,ht="",Et=!1,gt=$(D),bt=gt.split(`
|
|
23
|
+
`),Bt=$(G).split(`
|
|
24
|
+
`),Mt=0,It="";if(z==="strictEqual"&&g(D)==="object"&&g(G)==="object"&&D!==null&&G!==null&&(z="strictEqualObject"),bt.length===1&&Bt.length===1&&bt[0]!==Bt[0]){var J=bt[0].length+Bt[0].length;if(J<=P){if(!(g(D)==="object"&&D!==null||g(G)==="object"&&G!==null||D===0&&G===0))return"".concat(B[z],`
|
|
25
|
+
|
|
26
|
+
`)+"".concat(bt[0]," !== ").concat(Bt[0],`
|
|
27
|
+
`)}else if(z!=="strictEqualObject"&&J<(x.stderr&&x.stderr.isTTY?x.stderr.columns:80)){for(;bt[0][Mt]===Bt[0][Mt];)Mt++;Mt>2&&(It=`
|
|
28
|
+
`.concat(function(fe,kt){if(kt=Math.floor(kt),fe.length==0||kt==0)return"";var Kt=fe.length*kt;for(kt=Math.floor(Math.log(kt)/Math.log(2));kt;)fe+=fe,kt--;return fe+fe.substring(0,Kt-fe.length)}(" ",Mt),"^"),Mt=0)}}for(var tt=bt[bt.length-1],F=Bt[Bt.length-1];tt===F&&(Mt++<2?ht=`
|
|
29
|
+
`.concat(tt).concat(ht):X=tt,bt.pop(),Bt.pop(),bt.length!==0&&Bt.length!==0);)tt=bt[bt.length-1],F=Bt[Bt.length-1];var H=Math.max(bt.length,Bt.length);if(H===0){var U=gt.split(`
|
|
30
|
+
`);if(U.length>30)for(U[26]="".concat(b,"...").concat(M);U.length>27;)U.pop();return"".concat(B.notIdentical,`
|
|
31
|
+
|
|
32
|
+
`).concat(U.join(`
|
|
33
|
+
`),`
|
|
34
|
+
`)}Mt>3&&(ht=`
|
|
35
|
+
`.concat(b,"...").concat(M).concat(ht),Et=!0),X!==""&&(ht=`
|
|
36
|
+
`.concat(X).concat(ht),X="");var it=0,pt=B[z]+`
|
|
37
|
+
`.concat(E,"+ actual").concat(M," ").concat(I,"- expected").concat(M),ft=" ".concat(b,"...").concat(M," Lines skipped");for(Mt=0;Mt<H;Mt++){var mt=Mt-nt;if(bt.length<Mt+1)mt>1&&Mt>2&&(mt>4?(st+=`
|
|
38
|
+
`.concat(b,"...").concat(M),Et=!0):mt>3&&(st+=`
|
|
39
|
+
`.concat(Bt[Mt-2]),it++),st+=`
|
|
40
|
+
`.concat(Bt[Mt-1]),it++),nt=Mt,X+=`
|
|
41
|
+
`.concat(I,"-").concat(M," ").concat(Bt[Mt]),it++;else if(Bt.length<Mt+1)mt>1&&Mt>2&&(mt>4?(st+=`
|
|
42
|
+
`.concat(b,"...").concat(M),Et=!0):mt>3&&(st+=`
|
|
43
|
+
`.concat(bt[Mt-2]),it++),st+=`
|
|
44
|
+
`.concat(bt[Mt-1]),it++),nt=Mt,st+=`
|
|
45
|
+
`.concat(E,"+").concat(M," ").concat(bt[Mt]),it++;else{var re=Bt[Mt],_t=bt[Mt],At=_t!==re&&(!w(_t,",")||_t.slice(0,-1)!==re);At&&w(re,",")&&re.slice(0,-1)===_t&&(At=!1,_t+=","),At?(mt>1&&Mt>2&&(mt>4?(st+=`
|
|
46
|
+
`.concat(b,"...").concat(M),Et=!0):mt>3&&(st+=`
|
|
47
|
+
`.concat(bt[Mt-2]),it++),st+=`
|
|
48
|
+
`.concat(bt[Mt-1]),it++),nt=Mt,st+=`
|
|
49
|
+
`.concat(E,"+").concat(M," ").concat(_t),X+=`
|
|
50
|
+
`.concat(I,"-").concat(M," ").concat(re),it+=2):(st+=X,X="",mt!==1&&Mt!==0||(st+=`
|
|
51
|
+
`.concat(_t),it++))}if(it>20&&Mt<H-2)return"".concat(pt).concat(ft,`
|
|
52
|
+
`).concat(st,`
|
|
53
|
+
`).concat(b,"...").concat(M).concat(X,`
|
|
54
|
+
`)+"".concat(b,"...").concat(M)}return"".concat(pt).concat(Et?ft:"",`
|
|
55
|
+
`).concat(st).concat(X).concat(ht).concat(It)}(A,C,o)));else if(o==="notDeepStrictEqual"||o==="notStrictEqual"){var T=B[o],R=$(A).split(`
|
|
56
|
+
`);if(o==="notStrictEqual"&&g(A)==="object"&&A!==null&&(T=B.notStrictEqualObject),R.length>30)for(R[26]="".concat(b,"...").concat(M);R.length>27;)R.pop();i=R.length===1?S(this,f(ot).call(this,"".concat(T," ").concat(R[0]))):S(this,f(ot).call(this,"".concat(T,`
|
|
57
|
+
|
|
58
|
+
`).concat(R.join(`
|
|
59
|
+
`),`
|
|
60
|
+
`)))}else{var q=$(A),Z="",rt=B[o];o==="notDeepEqual"||o==="notEqual"?(q="".concat(B[o],`
|
|
61
|
+
|
|
62
|
+
`).concat(q)).length>1024&&(q="".concat(q.slice(0,1021),"...")):(Z="".concat($(C)),q.length>512&&(q="".concat(q.slice(0,509),"...")),Z.length>512&&(Z="".concat(Z.slice(0,509),"...")),o==="deepEqual"||o==="equal"?q="".concat(rt,`
|
|
63
|
+
|
|
64
|
+
`).concat(q,`
|
|
65
|
+
|
|
66
|
+
should equal
|
|
67
|
+
|
|
68
|
+
`):Z=" ".concat(o," ").concat(Z)),i=S(this,f(ot).call(this,"".concat(q).concat(Z)))}return Error.stackTraceLimit=j,i.generatedMessage=!e,Object.defineProperty(a(i),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),i.code="ERR_ASSERTION",i.actual=A,i.expected=C,i.operator=o,Error.captureStackTrace&&Error.captureStackTrace(a(i),s),i.stack,i.name="AssertionError",S(i)}var t,n;return function(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),i&&l(r,i)}(ot,Q),t=ot,n=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:h.custom,value:function(r,i){return h(this,function(e){for(var o=1;o<arguments.length;o++){var s=arguments[o]!=null?arguments[o]:{},A=Object.keys(s);typeof Object.getOwnPropertySymbols=="function"&&(A=A.concat(Object.getOwnPropertySymbols(s).filter(function(C){return Object.getOwnPropertyDescriptor(s,C).enumerable}))),A.forEach(function(C){v(e,C,s[C])})}return e}({},i,{customInspect:!1,depth:0}))}}],n&&m(t.prototype,n),ot}(p(Error));W.exports=et},2136:(W,_,y)=>{function x(f){return x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},x(f)}function v(f){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(g){return g.__proto__||Object.getPrototypeOf(g)},v(f)}function m(f,g){return m=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},m(f,g)}var S,a,p={};function c(f,g,h){h||(h=Error);var u=function(w){function b(E,I,M){var B;return function(P,N){if(!(P instanceof N))throw new TypeError("Cannot call a class as a function")}(this,b),B=function(P,N){return!N||x(N)!=="object"&&typeof N!="function"?function($){if($===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $}(P):N}(this,v(b).call(this,function(P,N,$){return typeof g=="string"?g:g(P,N,$)}(E,I,M))),B.code=f,B}return function(E,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function");E.prototype=Object.create(I&&I.prototype,{constructor:{value:E,writable:!0,configurable:!0}}),I&&m(E,I)}(b,w),b}(h);p[f]=u}function l(f,g){if(Array.isArray(f)){var h=f.length;return f=f.map(function(u){return String(u)}),h>2?"one of ".concat(g," ").concat(f.slice(0,h-1).join(", "),", or ")+f[h-1]:h===2?"one of ".concat(g," ").concat(f[0]," or ").concat(f[1]):"of ".concat(g," ").concat(f[0])}return"of ".concat(g," ").concat(String(f))}c("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),c("ERR_INVALID_ARG_TYPE",function(f,g,h){var u,w,b,E,I;if(S===void 0&&(S=y(9282)),S(typeof f=="string","'name' must be a string"),typeof g=="string"&&(w="not ",g.substr(0,w.length)===w)?(u="must not be",g=g.replace(/^not /,"")):u="must be",function(B,P,N){return(N===void 0||N>B.length)&&(N=B.length),B.substring(N-P.length,N)===P}(f," argument"))b="The ".concat(f," ").concat(u," ").concat(l(g,"type"));else{var M=(typeof I!="number"&&(I=0),I+1>(E=f).length||E.indexOf(".",I)===-1?"argument":"property");b='The "'.concat(f,'" ').concat(M," ").concat(u," ").concat(l(g,"type"))}return b+". Received type ".concat(x(h))},TypeError),c("ERR_INVALID_ARG_VALUE",function(f,g){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";a===void 0&&(a=y(9539));var u=a.inspect(g);return u.length>128&&(u="".concat(u.slice(0,128),"...")),"The argument '".concat(f,"' ").concat(h,". Received ").concat(u)},TypeError),c("ERR_INVALID_RETURN_VALUE",function(f,g,h){var u;return u=h&&h.constructor&&h.constructor.name?"instance of ".concat(h.constructor.name):"type ".concat(x(h)),"Expected ".concat(f,' to be returned from the "').concat(g,'"')+" function but got ".concat(u,".")},TypeError),c("ERR_MISSING_ARGS",function(){for(var f=arguments.length,g=new Array(f),h=0;h<f;h++)g[h]=arguments[h];S===void 0&&(S=y(9282)),S(g.length>0,"At least one arg needs to be specified");var u="The ",w=g.length;switch(g=g.map(function(b){return'"'.concat(b,'"')}),w){case 1:u+="".concat(g[0]," argument");break;case 2:u+="".concat(g[0]," and ").concat(g[1]," arguments");break;default:u+=g.slice(0,w-1).join(", "),u+=", and ".concat(g[w-1]," arguments")}return"".concat(u," must be specified")},TypeError),W.exports.codes=p},9158:(W,_,y)=>{function x(st,nt){return function(ht){if(Array.isArray(ht))return ht}(st)||function(ht,Et){var gt=[],bt=!0,Bt=!1,Mt=void 0;try{for(var It,J=ht[Symbol.iterator]();!(bt=(It=J.next()).done)&&(gt.push(It.value),!Et||gt.length!==Et);bt=!0);}catch(tt){Bt=!0,Mt=tt}finally{try{bt||J.return==null||J.return()}finally{if(Bt)throw Mt}}return gt}(st,nt)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function v(st){return v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(nt){return typeof nt}:function(nt){return nt&&typeof Symbol=="function"&&nt.constructor===Symbol&&nt!==Symbol.prototype?"symbol":typeof nt},v(st)}var m=/a/g.flags!==void 0,S=function(st){var nt=[];return st.forEach(function(ht){return nt.push(ht)}),nt},a=function(st){var nt=[];return st.forEach(function(ht,Et){return nt.push([Et,ht])}),nt},p=Object.is?Object.is:y(609),c=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},l=Number.isNaN?Number.isNaN:y(360);function f(st){return st.call.bind(st)}var g=f(Object.prototype.hasOwnProperty),h=f(Object.prototype.propertyIsEnumerable),u=f(Object.prototype.toString),w=y(9539).types,b=w.isAnyArrayBuffer,E=w.isArrayBufferView,I=w.isDate,M=w.isMap,B=w.isRegExp,P=w.isSet,N=w.isNativeError,$=w.isBoxedPrimitive,et=w.isNumberObject,Q=w.isStringObject,ot=w.isBooleanObject,t=w.isBigIntObject,n=w.isSymbolObject,r=w.isFloat32Array,i=w.isFloat64Array;function e(st){if(st.length===0||st.length>10)return!0;for(var nt=0;nt<st.length;nt++){var ht=st.charCodeAt(nt);if(ht<48||ht>57)return!0}return st.length===10&&st>=Math.pow(2,32)}function o(st){return Object.keys(st).filter(e).concat(c(st).filter(Object.prototype.propertyIsEnumerable.bind(st)))}function s(st,nt){if(st===nt)return 0;for(var ht=st.length,Et=nt.length,gt=0,bt=Math.min(ht,Et);gt<bt;++gt)if(st[gt]!==nt[gt]){ht=st[gt],Et=nt[gt];break}return ht<Et?-1:Et<ht?1:0}var A=0,C=1,j=2,T=3;function R(st,nt,ht,Et){if(st===nt)return st!==0||!ht||p(st,nt);if(ht){if(v(st)!=="object")return typeof st=="number"&&l(st)&&l(nt);if(v(nt)!=="object"||st===null||nt===null||Object.getPrototypeOf(st)!==Object.getPrototypeOf(nt))return!1}else{if(st===null||v(st)!=="object")return(nt===null||v(nt)!=="object")&&st==nt;if(nt===null||v(nt)!=="object")return!1}var gt,bt,Bt,Mt,It=u(st);if(It!==u(nt))return!1;if(Array.isArray(st)){if(st.length!==nt.length)return!1;var J=o(st),tt=o(nt);return J.length===tt.length&&Z(st,nt,ht,Et,C,J)}if(It==="[object Object]"&&(!M(st)&&M(nt)||!P(st)&&P(nt)))return!1;if(I(st)){if(!I(nt)||Date.prototype.getTime.call(st)!==Date.prototype.getTime.call(nt))return!1}else if(B(st)){if(!B(nt)||(Bt=st,Mt=nt,!(m?Bt.source===Mt.source&&Bt.flags===Mt.flags:RegExp.prototype.toString.call(Bt)===RegExp.prototype.toString.call(Mt))))return!1}else if(N(st)||st instanceof Error){if(st.message!==nt.message||st.name!==nt.name)return!1}else{if(E(st)){if(ht||!r(st)&&!i(st)){if(!function(U,it){return U.byteLength===it.byteLength&&s(new Uint8Array(U.buffer,U.byteOffset,U.byteLength),new Uint8Array(it.buffer,it.byteOffset,it.byteLength))===0}(st,nt))return!1}else if(!function(U,it){if(U.byteLength!==it.byteLength)return!1;for(var pt=0;pt<U.byteLength;pt++)if(U[pt]!==it[pt])return!1;return!0}(st,nt))return!1;var F=o(st),H=o(nt);return F.length===H.length&&Z(st,nt,ht,Et,A,F)}if(P(st))return!(!P(nt)||st.size!==nt.size)&&Z(st,nt,ht,Et,j);if(M(st))return!(!M(nt)||st.size!==nt.size)&&Z(st,nt,ht,Et,T);if(b(st)){if(bt=nt,(gt=st).byteLength!==bt.byteLength||s(new Uint8Array(gt),new Uint8Array(bt))!==0)return!1}else if($(st)&&!function(U,it){return et(U)?et(it)&&p(Number.prototype.valueOf.call(U),Number.prototype.valueOf.call(it)):Q(U)?Q(it)&&String.prototype.valueOf.call(U)===String.prototype.valueOf.call(it):ot(U)?ot(it)&&Boolean.prototype.valueOf.call(U)===Boolean.prototype.valueOf.call(it):t(U)?t(it)&&BigInt.prototype.valueOf.call(U)===BigInt.prototype.valueOf.call(it):n(it)&&Symbol.prototype.valueOf.call(U)===Symbol.prototype.valueOf.call(it)}(st,nt))return!1}return Z(st,nt,ht,Et,A)}function q(st,nt){return nt.filter(function(ht){return h(st,ht)})}function Z(st,nt,ht,Et,gt,bt){if(arguments.length===5){bt=Object.keys(st);var Bt=Object.keys(nt);if(bt.length!==Bt.length)return!1}for(var Mt=0;Mt<bt.length;Mt++)if(!g(nt,bt[Mt]))return!1;if(ht&&arguments.length===5){var It=c(st);if(It.length!==0){var J=0;for(Mt=0;Mt<It.length;Mt++){var tt=It[Mt];if(h(st,tt)){if(!h(nt,tt))return!1;bt.push(tt),J++}else if(h(nt,tt))return!1}var F=c(nt);if(It.length!==F.length&&q(nt,F).length!==J)return!1}else{var H=c(nt);if(H.length!==0&&q(nt,H).length!==0)return!1}}if(bt.length===0&&(gt===A||gt===C&&st.length===0||st.size===0))return!0;if(Et===void 0)Et={val1:new Map,val2:new Map,position:0};else{var U=Et.val1.get(st);if(U!==void 0){var it=Et.val2.get(nt);if(it!==void 0)return U===it}Et.position++}Et.val1.set(st,Et.position),Et.val2.set(nt,Et.position);var pt=function(ft,mt,re,_t,At,fe){var kt=0;if(fe===j){if(!function(Ht,je,Rt,Wt){for(var ye=null,Nt=S(Ht),Xt=0;Xt<Nt.length;Xt++){var ke=Nt[Xt];if(v(ke)==="object"&&ke!==null)ye===null&&(ye=new Set),ye.add(ke);else if(!je.has(ke)){if(Rt||!G(Ht,je,ke))return!1;ye===null&&(ye=new Set),ye.add(ke)}}if(ye!==null){for(var jt=S(je),Zt=0;Zt<jt.length;Zt++){var Oe=jt[Zt];if(v(Oe)==="object"&&Oe!==null){if(!rt(ye,Oe,Rt,Wt))return!1}else if(!Rt&&!Ht.has(Oe)&&!rt(ye,Oe,Rt,Wt))return!1}return ye.size===0}return!0}(ft,mt,re,At))return!1}else if(fe===T){if(!function(Ht,je,Rt,Wt){for(var ye=null,Nt=a(Ht),Xt=0;Xt<Nt.length;Xt++){var ke=x(Nt[Xt],2),jt=ke[0],Zt=ke[1];if(v(jt)==="object"&&jt!==null)ye===null&&(ye=new Set),ye.add(jt);else{var Oe=je.get(jt);if(Oe===void 0&&!je.has(jt)||!R(Zt,Oe,Rt,Wt)){if(Rt||!z(Ht,je,jt,Zt,Wt))return!1;ye===null&&(ye=new Set),ye.add(jt)}}}if(ye!==null){for(var Dt=a(je),Jt=0;Jt<Dt.length;Jt++){var De=x(Dt[Jt],2),Lt=(jt=De[0],De[1]);if(v(jt)==="object"&&jt!==null){if(!X(ye,Ht,jt,Lt,Rt,Wt))return!1}else if(!(Rt||Ht.has(jt)&&R(Ht.get(jt),Lt,!1,Wt)||X(ye,Ht,jt,Lt,!1,Wt)))return!1}return ye.size===0}return!0}(ft,mt,re,At))return!1}else if(fe===C)for(;kt<ft.length;kt++){if(!g(ft,kt)){if(g(mt,kt))return!1;for(var Kt=Object.keys(ft);kt<Kt.length;kt++){var Ce=Kt[kt];if(!g(mt,Ce)||!R(ft[Ce],mt[Ce],re,At))return!1}return Kt.length===Object.keys(mt).length}if(!g(mt,kt)||!R(ft[kt],mt[kt],re,At))return!1}for(kt=0;kt<_t.length;kt++){var Pt=_t[kt];if(!R(ft[Pt],mt[Pt],re,At))return!1}return!0}(st,nt,ht,bt,Et,gt);return Et.val1.delete(st),Et.val2.delete(nt),pt}function rt(st,nt,ht,Et){for(var gt=S(st),bt=0;bt<gt.length;bt++){var Bt=gt[bt];if(R(nt,Bt,ht,Et))return st.delete(Bt),!0}return!1}function D(st){switch(v(st)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":st=+st;case"number":if(l(st))return!1}return!0}function G(st,nt,ht){var Et=D(ht);return Et??(nt.has(Et)&&!st.has(Et))}function z(st,nt,ht,Et,gt){var bt=D(ht);if(bt!=null)return bt;var Bt=nt.get(bt);return!(Bt===void 0&&!nt.has(bt)||!R(Et,Bt,!1,gt))&&!st.has(bt)&&R(Et,Bt,!1,gt)}function X(st,nt,ht,Et,gt,bt){for(var Bt=S(st),Mt=0;Mt<Bt.length;Mt++){var It=Bt[Mt];if(R(ht,It,gt,bt)&&R(Et,nt.get(It),gt,bt))return st.delete(It),!0}return!1}W.exports={isDeepEqual:function(st,nt){return R(st,nt,!1)},isDeepStrictEqual:function(st,nt){return R(st,nt,!0)}}},9742:(W,_)=>{_.byteLength=function(l){var f=p(l),g=f[0],h=f[1];return 3*(g+h)/4-h},_.toByteArray=function(l){var f,g,h=p(l),u=h[0],w=h[1],b=new v(function(M,B,P){return 3*(B+P)/4-P}(0,u,w)),E=0,I=w>0?u-4:u;for(g=0;g<I;g+=4)f=x[l.charCodeAt(g)]<<18|x[l.charCodeAt(g+1)]<<12|x[l.charCodeAt(g+2)]<<6|x[l.charCodeAt(g+3)],b[E++]=f>>16&255,b[E++]=f>>8&255,b[E++]=255&f;return w===2&&(f=x[l.charCodeAt(g)]<<2|x[l.charCodeAt(g+1)]>>4,b[E++]=255&f),w===1&&(f=x[l.charCodeAt(g)]<<10|x[l.charCodeAt(g+1)]<<4|x[l.charCodeAt(g+2)]>>2,b[E++]=f>>8&255,b[E++]=255&f),b},_.fromByteArray=function(l){for(var f,g=l.length,h=g%3,u=[],w=16383,b=0,E=g-h;b<E;b+=w)u.push(c(l,b,b+w>E?E:b+w));return h===1?(f=l[g-1],u.push(y[f>>2]+y[f<<4&63]+"==")):h===2&&(f=(l[g-2]<<8)+l[g-1],u.push(y[f>>10]+y[f>>4&63]+y[f<<2&63]+"=")),u.join("")};for(var y=[],x=[],v=typeof Uint8Array<"u"?Uint8Array:Array,m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",S=0,a=m.length;S<a;++S)y[S]=m[S],x[m.charCodeAt(S)]=S;function p(l){var f=l.length;if(f%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=l.indexOf("=");return g===-1&&(g=f),[g,g===f?0:4-g%4]}function c(l,f,g){for(var h,u,w=[],b=f;b<g;b+=3)h=(l[b]<<16&16711680)+(l[b+1]<<8&65280)+(255&l[b+2]),w.push(y[(u=h)>>18&63]+y[u>>12&63]+y[u>>6&63]+y[63&u]);return w.join("")}x["-".charCodeAt(0)]=62,x["_".charCodeAt(0)]=63},9e3:(W,_,y)=>{var x=y(8764).Buffer;const{Transform:v}=y(8473);W.exports=class extends v{constructor(m,S={}){super(S),typeof m=="object"&&(m=(S=m).size),this.size=m||512;const{nopad:a,zeroPadding:p=!0}=S;this._zeroPadding=!a&&!!p,this._buffered=[],this._bufferedBytes=0}_transform(m,S,a){for(this._bufferedBytes+=m.length,this._buffered.push(m);this._bufferedBytes>=this.size;){this._bufferedBytes-=this.size;const p=[];let c=0;for(;c<this.size;){const l=this._buffered.shift();if(c+l.length<=this.size)p.push(l),c+=l.length;else{const f=this.size-c;p.push(l.slice(0,f)),c+=f,this._buffered.unshift(l.slice(f))}}this.push(x.concat(p,this.size))}a()}_flush(){if(this._bufferedBytes&&this._zeroPadding){const m=x.alloc(this.size-this._bufferedBytes);this._buffered.push(m),this.push(x.concat(this._buffered)),this._buffered=null}else this._bufferedBytes&&(this.push(x.concat(this._buffered)),this._buffered=null);this.push(null)}}},3550:function(W,_,y){(function(x,v){function m(r,i){if(!r)throw new Error(i||"Assertion failed")}function S(r,i){r.super_=i;var e=function(){};e.prototype=i.prototype,r.prototype=new e,r.prototype.constructor=r}function a(r,i,e){if(a.isBN(r))return r;this.negative=0,this.words=null,this.length=0,this.red=null,r!==null&&(i!=="le"&&i!=="be"||(e=i,i=10),this._init(r||0,i||10,e||"be"))}var p;typeof x=="object"?x.exports=a:v.BN=a,a.BN=a,a.wordSize=26;try{p=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:y(6601).Buffer}catch{}function c(r,i){var e=r.charCodeAt(i);return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:void m(!1,"Invalid character in "+r)}function l(r,i,e){var o=c(r,e);return e-1>=i&&(o|=c(r,e-1)<<4),o}function f(r,i,e,o){for(var s=0,A=0,C=Math.min(r.length,e),j=i;j<C;j++){var T=r.charCodeAt(j)-48;s*=o,A=T>=49?T-49+10:T>=17?T-17+10:T,m(T>=0&&A<o,"Invalid character"),s+=A}return s}function g(r,i){r.words=i.words,r.length=i.length,r.negative=i.negative,r.red=i.red}if(a.isBN=function(r){return r instanceof a||r!==null&&typeof r=="object"&&r.constructor.wordSize===a.wordSize&&Array.isArray(r.words)},a.max=function(r,i){return r.cmp(i)>0?r:i},a.min=function(r,i){return r.cmp(i)<0?r:i},a.prototype._init=function(r,i,e){if(typeof r=="number")return this._initNumber(r,i,e);if(typeof r=="object")return this._initArray(r,i,e);i==="hex"&&(i=16),m(i===(0|i)&&i>=2&&i<=36);var o=0;(r=r.toString().replace(/\s+/g,""))[0]==="-"&&(o++,this.negative=1),o<r.length&&(i===16?this._parseHex(r,o,e):(this._parseBase(r,i,o),e==="le"&&this._initArray(this.toArray(),i,e)))},a.prototype._initNumber=function(r,i,e){r<0&&(this.negative=1,r=-r),r<67108864?(this.words=[67108863&r],this.length=1):r<4503599627370496?(this.words=[67108863&r,r/67108864&67108863],this.length=2):(m(r<9007199254740992),this.words=[67108863&r,r/67108864&67108863,1],this.length=3),e==="le"&&this._initArray(this.toArray(),i,e)},a.prototype._initArray=function(r,i,e){if(m(typeof r.length=="number"),r.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(r.length/3),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var s,A,C=0;if(e==="be")for(o=r.length-1,s=0;o>=0;o-=3)A=r[o]|r[o-1]<<8|r[o-2]<<16,this.words[s]|=A<<C&67108863,this.words[s+1]=A>>>26-C&67108863,(C+=24)>=26&&(C-=26,s++);else if(e==="le")for(o=0,s=0;o<r.length;o+=3)A=r[o]|r[o+1]<<8|r[o+2]<<16,this.words[s]|=A<<C&67108863,this.words[s+1]=A>>>26-C&67108863,(C+=24)>=26&&(C-=26,s++);return this._strip()},a.prototype._parseHex=function(r,i,e){this.length=Math.ceil((r.length-i)/6),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var s,A=0,C=0;if(e==="be")for(o=r.length-1;o>=i;o-=2)s=l(r,i,o)<<A,this.words[C]|=67108863&s,A>=18?(A-=18,C+=1,this.words[C]|=s>>>26):A+=8;else for(o=(r.length-i)%2==0?i+1:i;o<r.length;o+=2)s=l(r,i,o)<<A,this.words[C]|=67108863&s,A>=18?(A-=18,C+=1,this.words[C]|=s>>>26):A+=8;this._strip()},a.prototype._parseBase=function(r,i,e){this.words=[0],this.length=1;for(var o=0,s=1;s<=67108863;s*=i)o++;o--,s=s/i|0;for(var A=r.length-e,C=A%o,j=Math.min(A,A-C)+e,T=0,R=e;R<j;R+=o)T=f(r,R,R+o,i),this.imuln(s),this.words[0]+T<67108864?this.words[0]+=T:this._iaddn(T);if(C!==0){var q=1;for(T=f(r,R,r.length,i),R=0;R<C;R++)q*=i;this.imuln(q),this.words[0]+T<67108864?this.words[0]+=T:this._iaddn(T)}this._strip()},a.prototype.copy=function(r){r.words=new Array(this.length);for(var i=0;i<this.length;i++)r.words[i]=this.words[i];r.length=this.length,r.negative=this.negative,r.red=this.red},a.prototype._move=function(r){g(r,this)},a.prototype.clone=function(){var r=new a(null);return this.copy(r),r},a.prototype._expand=function(r){for(;this.length<r;)this.words[this.length++]=0;return this},a.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=h}catch{a.prototype.inspect=h}else a.prototype.inspect=h;function h(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],w=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],b=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function E(r,i,e){e.negative=i.negative^r.negative;var o=r.length+i.length|0;e.length=o,o=o-1|0;var s=0|r.words[0],A=0|i.words[0],C=s*A,j=67108863&C,T=C/67108864|0;e.words[0]=j;for(var R=1;R<o;R++){for(var q=T>>>26,Z=67108863&T,rt=Math.min(R,i.length-1),D=Math.max(0,R-r.length+1);D<=rt;D++){var G=R-D|0;q+=(C=(s=0|r.words[G])*(A=0|i.words[D])+Z)/67108864|0,Z=67108863&C}e.words[R]=0|Z,T=0|q}return T!==0?e.words[R]=0|T:e.length--,e._strip()}a.prototype.toString=function(r,i){var e;if(i=0|i||1,(r=r||10)===16||r==="hex"){e="";for(var o=0,s=0,A=0;A<this.length;A++){var C=this.words[A],j=(16777215&(C<<o|s)).toString(16);s=C>>>24-o&16777215,(o+=2)>=26&&(o-=26,A--),e=s!==0||A!==this.length-1?u[6-j.length]+j+e:j+e}for(s!==0&&(e=s.toString(16)+e);e.length%i!=0;)e="0"+e;return this.negative!==0&&(e="-"+e),e}if(r===(0|r)&&r>=2&&r<=36){var T=w[r],R=b[r];e="";var q=this.clone();for(q.negative=0;!q.isZero();){var Z=q.modrn(R).toString(r);e=(q=q.idivn(R)).isZero()?Z+e:u[T-Z.length]+Z+e}for(this.isZero()&&(e="0"+e);e.length%i!=0;)e="0"+e;return this.negative!==0&&(e="-"+e),e}m(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var r=this.words[0];return this.length===2?r+=67108864*this.words[1]:this.length===3&&this.words[2]===1?r+=4503599627370496+67108864*this.words[1]:this.length>2&&m(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-r:r},a.prototype.toJSON=function(){return this.toString(16,2)},p&&(a.prototype.toBuffer=function(r,i){return this.toArrayLike(p,r,i)}),a.prototype.toArray=function(r,i){return this.toArrayLike(Array,r,i)},a.prototype.toArrayLike=function(r,i,e){this._strip();var o=this.byteLength(),s=e||Math.max(1,o);m(o<=s,"byte array longer than desired length"),m(s>0,"Requested array length <= 0");var A=function(C,j){return C.allocUnsafe?C.allocUnsafe(j):new C(j)}(r,s);return this["_toArrayLike"+(i==="le"?"LE":"BE")](A,o),A},a.prototype._toArrayLikeLE=function(r,i){for(var e=0,o=0,s=0,A=0;s<this.length;s++){var C=this.words[s]<<A|o;r[e++]=255&C,e<r.length&&(r[e++]=C>>8&255),e<r.length&&(r[e++]=C>>16&255),A===6?(e<r.length&&(r[e++]=C>>24&255),o=0,A=0):(o=C>>>24,A+=2)}if(e<r.length)for(r[e++]=o;e<r.length;)r[e++]=0},a.prototype._toArrayLikeBE=function(r,i){for(var e=r.length-1,o=0,s=0,A=0;s<this.length;s++){var C=this.words[s]<<A|o;r[e--]=255&C,e>=0&&(r[e--]=C>>8&255),e>=0&&(r[e--]=C>>16&255),A===6?(e>=0&&(r[e--]=C>>24&255),o=0,A=0):(o=C>>>24,A+=2)}if(e>=0)for(r[e--]=o;e>=0;)r[e--]=0},Math.clz32?a.prototype._countBits=function(r){return 32-Math.clz32(r)}:a.prototype._countBits=function(r){var i=r,e=0;return i>=4096&&(e+=13,i>>>=13),i>=64&&(e+=7,i>>>=7),i>=8&&(e+=4,i>>>=4),i>=2&&(e+=2,i>>>=2),e+i},a.prototype._zeroBits=function(r){if(r===0)return 26;var i=r,e=0;return!(8191&i)&&(e+=13,i>>>=13),!(127&i)&&(e+=7,i>>>=7),!(15&i)&&(e+=4,i>>>=4),!(3&i)&&(e+=2,i>>>=2),!(1&i)&&e++,e},a.prototype.bitLength=function(){var r=this.words[this.length-1],i=this._countBits(r);return 26*(this.length-1)+i},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var r=0,i=0;i<this.length;i++){var e=this._zeroBits(this.words[i]);if(r+=e,e!==26)break}return r},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(r){return this.negative!==0?this.abs().inotn(r).iaddn(1):this.clone()},a.prototype.fromTwos=function(r){return this.testn(r-1)?this.notn(r).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(r){for(;this.length<r.length;)this.words[this.length++]=0;for(var i=0;i<r.length;i++)this.words[i]=this.words[i]|r.words[i];return this._strip()},a.prototype.ior=function(r){return m((this.negative|r.negative)==0),this.iuor(r)},a.prototype.or=function(r){return this.length>r.length?this.clone().ior(r):r.clone().ior(this)},a.prototype.uor=function(r){return this.length>r.length?this.clone().iuor(r):r.clone().iuor(this)},a.prototype.iuand=function(r){var i;i=this.length>r.length?r:this;for(var e=0;e<i.length;e++)this.words[e]=this.words[e]&r.words[e];return this.length=i.length,this._strip()},a.prototype.iand=function(r){return m((this.negative|r.negative)==0),this.iuand(r)},a.prototype.and=function(r){return this.length>r.length?this.clone().iand(r):r.clone().iand(this)},a.prototype.uand=function(r){return this.length>r.length?this.clone().iuand(r):r.clone().iuand(this)},a.prototype.iuxor=function(r){var i,e;this.length>r.length?(i=this,e=r):(i=r,e=this);for(var o=0;o<e.length;o++)this.words[o]=i.words[o]^e.words[o];if(this!==i)for(;o<i.length;o++)this.words[o]=i.words[o];return this.length=i.length,this._strip()},a.prototype.ixor=function(r){return m((this.negative|r.negative)==0),this.iuxor(r)},a.prototype.xor=function(r){return this.length>r.length?this.clone().ixor(r):r.clone().ixor(this)},a.prototype.uxor=function(r){return this.length>r.length?this.clone().iuxor(r):r.clone().iuxor(this)},a.prototype.inotn=function(r){m(typeof r=="number"&&r>=0);var i=0|Math.ceil(r/26),e=r%26;this._expand(i),e>0&&i--;for(var o=0;o<i;o++)this.words[o]=67108863&~this.words[o];return e>0&&(this.words[o]=~this.words[o]&67108863>>26-e),this._strip()},a.prototype.notn=function(r){return this.clone().inotn(r)},a.prototype.setn=function(r,i){m(typeof r=="number"&&r>=0);var e=r/26|0,o=r%26;return this._expand(e+1),this.words[e]=i?this.words[e]|1<<o:this.words[e]&~(1<<o),this._strip()},a.prototype.iadd=function(r){var i,e,o;if(this.negative!==0&&r.negative===0)return this.negative=0,i=this.isub(r),this.negative^=1,this._normSign();if(this.negative===0&&r.negative!==0)return r.negative=0,i=this.isub(r),r.negative=1,i._normSign();this.length>r.length?(e=this,o=r):(e=r,o=this);for(var s=0,A=0;A<o.length;A++)i=(0|e.words[A])+(0|o.words[A])+s,this.words[A]=67108863&i,s=i>>>26;for(;s!==0&&A<e.length;A++)i=(0|e.words[A])+s,this.words[A]=67108863&i,s=i>>>26;if(this.length=e.length,s!==0)this.words[this.length]=s,this.length++;else if(e!==this)for(;A<e.length;A++)this.words[A]=e.words[A];return this},a.prototype.add=function(r){var i;return r.negative!==0&&this.negative===0?(r.negative=0,i=this.sub(r),r.negative^=1,i):r.negative===0&&this.negative!==0?(this.negative=0,i=r.sub(this),this.negative=1,i):this.length>r.length?this.clone().iadd(r):r.clone().iadd(this)},a.prototype.isub=function(r){if(r.negative!==0){r.negative=0;var i=this.iadd(r);return r.negative=1,i._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(r),this.negative=1,this._normSign();var e,o,s=this.cmp(r);if(s===0)return this.negative=0,this.length=1,this.words[0]=0,this;s>0?(e=this,o=r):(e=r,o=this);for(var A=0,C=0;C<o.length;C++)A=(i=(0|e.words[C])-(0|o.words[C])+A)>>26,this.words[C]=67108863&i;for(;A!==0&&C<e.length;C++)A=(i=(0|e.words[C])+A)>>26,this.words[C]=67108863&i;if(A===0&&C<e.length&&e!==this)for(;C<e.length;C++)this.words[C]=e.words[C];return this.length=Math.max(this.length,C),e!==this&&(this.negative=1),this._strip()},a.prototype.sub=function(r){return this.clone().isub(r)};var I=function(r,i,e){var o,s,A,C=r.words,j=i.words,T=e.words,R=0,q=0|C[0],Z=8191&q,rt=q>>>13,D=0|C[1],G=8191&D,z=D>>>13,X=0|C[2],st=8191&X,nt=X>>>13,ht=0|C[3],Et=8191&ht,gt=ht>>>13,bt=0|C[4],Bt=8191&bt,Mt=bt>>>13,It=0|C[5],J=8191&It,tt=It>>>13,F=0|C[6],H=8191&F,U=F>>>13,it=0|C[7],pt=8191&it,ft=it>>>13,mt=0|C[8],re=8191&mt,_t=mt>>>13,At=0|C[9],fe=8191&At,kt=At>>>13,Kt=0|j[0],Ce=8191&Kt,Pt=Kt>>>13,Ht=0|j[1],je=8191&Ht,Rt=Ht>>>13,Wt=0|j[2],ye=8191&Wt,Nt=Wt>>>13,Xt=0|j[3],ke=8191&Xt,jt=Xt>>>13,Zt=0|j[4],Oe=8191&Zt,Dt=Zt>>>13,Jt=0|j[5],De=8191&Jt,Lt=Jt>>>13,Qt=0|j[6],ze=8191&Qt,Ut=Qt>>>13,Yt=0|j[7],$e=8191&Yt,qt=Yt>>>13,ee=0|j[8],He=8191&ee,Ft=ee>>>13,te=0|j[9],Ae=8191&te,Re=te>>>13;e.negative=r.negative^i.negative,e.length=19;var Ke=(R+(o=Math.imul(Z,Ce))|0)+((8191&(s=(s=Math.imul(Z,Pt))+Math.imul(rt,Ce)|0))<<13)|0;R=((A=Math.imul(rt,Pt))+(s>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,o=Math.imul(G,Ce),s=(s=Math.imul(G,Pt))+Math.imul(z,Ce)|0,A=Math.imul(z,Pt);var ai=(R+(o=o+Math.imul(Z,je)|0)|0)+((8191&(s=(s=s+Math.imul(Z,Rt)|0)+Math.imul(rt,je)|0))<<13)|0;R=((A=A+Math.imul(rt,Rt)|0)+(s>>>13)|0)+(ai>>>26)|0,ai&=67108863,o=Math.imul(st,Ce),s=(s=Math.imul(st,Pt))+Math.imul(nt,Ce)|0,A=Math.imul(nt,Pt),o=o+Math.imul(G,je)|0,s=(s=s+Math.imul(G,Rt)|0)+Math.imul(z,je)|0,A=A+Math.imul(z,Rt)|0;var ri=(R+(o=o+Math.imul(Z,ye)|0)|0)+((8191&(s=(s=s+Math.imul(Z,Nt)|0)+Math.imul(rt,ye)|0))<<13)|0;R=((A=A+Math.imul(rt,Nt)|0)+(s>>>13)|0)+(ri>>>26)|0,ri&=67108863,o=Math.imul(Et,Ce),s=(s=Math.imul(Et,Pt))+Math.imul(gt,Ce)|0,A=Math.imul(gt,Pt),o=o+Math.imul(st,je)|0,s=(s=s+Math.imul(st,Rt)|0)+Math.imul(nt,je)|0,A=A+Math.imul(nt,Rt)|0,o=o+Math.imul(G,ye)|0,s=(s=s+Math.imul(G,Nt)|0)+Math.imul(z,ye)|0,A=A+Math.imul(z,Nt)|0;var si=(R+(o=o+Math.imul(Z,ke)|0)|0)+((8191&(s=(s=s+Math.imul(Z,jt)|0)+Math.imul(rt,ke)|0))<<13)|0;R=((A=A+Math.imul(rt,jt)|0)+(s>>>13)|0)+(si>>>26)|0,si&=67108863,o=Math.imul(Bt,Ce),s=(s=Math.imul(Bt,Pt))+Math.imul(Mt,Ce)|0,A=Math.imul(Mt,Pt),o=o+Math.imul(Et,je)|0,s=(s=s+Math.imul(Et,Rt)|0)+Math.imul(gt,je)|0,A=A+Math.imul(gt,Rt)|0,o=o+Math.imul(st,ye)|0,s=(s=s+Math.imul(st,Nt)|0)+Math.imul(nt,ye)|0,A=A+Math.imul(nt,Nt)|0,o=o+Math.imul(G,ke)|0,s=(s=s+Math.imul(G,jt)|0)+Math.imul(z,ke)|0,A=A+Math.imul(z,jt)|0;var ui=(R+(o=o+Math.imul(Z,Oe)|0)|0)+((8191&(s=(s=s+Math.imul(Z,Dt)|0)+Math.imul(rt,Oe)|0))<<13)|0;R=((A=A+Math.imul(rt,Dt)|0)+(s>>>13)|0)+(ui>>>26)|0,ui&=67108863,o=Math.imul(J,Ce),s=(s=Math.imul(J,Pt))+Math.imul(tt,Ce)|0,A=Math.imul(tt,Pt),o=o+Math.imul(Bt,je)|0,s=(s=s+Math.imul(Bt,Rt)|0)+Math.imul(Mt,je)|0,A=A+Math.imul(Mt,Rt)|0,o=o+Math.imul(Et,ye)|0,s=(s=s+Math.imul(Et,Nt)|0)+Math.imul(gt,ye)|0,A=A+Math.imul(gt,Nt)|0,o=o+Math.imul(st,ke)|0,s=(s=s+Math.imul(st,jt)|0)+Math.imul(nt,ke)|0,A=A+Math.imul(nt,jt)|0,o=o+Math.imul(G,Oe)|0,s=(s=s+Math.imul(G,Dt)|0)+Math.imul(z,Oe)|0,A=A+Math.imul(z,Dt)|0;var ci=(R+(o=o+Math.imul(Z,De)|0)|0)+((8191&(s=(s=s+Math.imul(Z,Lt)|0)+Math.imul(rt,De)|0))<<13)|0;R=((A=A+Math.imul(rt,Lt)|0)+(s>>>13)|0)+(ci>>>26)|0,ci&=67108863,o=Math.imul(H,Ce),s=(s=Math.imul(H,Pt))+Math.imul(U,Ce)|0,A=Math.imul(U,Pt),o=o+Math.imul(J,je)|0,s=(s=s+Math.imul(J,Rt)|0)+Math.imul(tt,je)|0,A=A+Math.imul(tt,Rt)|0,o=o+Math.imul(Bt,ye)|0,s=(s=s+Math.imul(Bt,Nt)|0)+Math.imul(Mt,ye)|0,A=A+Math.imul(Mt,Nt)|0,o=o+Math.imul(Et,ke)|0,s=(s=s+Math.imul(Et,jt)|0)+Math.imul(gt,ke)|0,A=A+Math.imul(gt,jt)|0,o=o+Math.imul(st,Oe)|0,s=(s=s+Math.imul(st,Dt)|0)+Math.imul(nt,Oe)|0,A=A+Math.imul(nt,Dt)|0,o=o+Math.imul(G,De)|0,s=(s=s+Math.imul(G,Lt)|0)+Math.imul(z,De)|0,A=A+Math.imul(z,Lt)|0;var li=(R+(o=o+Math.imul(Z,ze)|0)|0)+((8191&(s=(s=s+Math.imul(Z,Ut)|0)+Math.imul(rt,ze)|0))<<13)|0;R=((A=A+Math.imul(rt,Ut)|0)+(s>>>13)|0)+(li>>>26)|0,li&=67108863,o=Math.imul(pt,Ce),s=(s=Math.imul(pt,Pt))+Math.imul(ft,Ce)|0,A=Math.imul(ft,Pt),o=o+Math.imul(H,je)|0,s=(s=s+Math.imul(H,Rt)|0)+Math.imul(U,je)|0,A=A+Math.imul(U,Rt)|0,o=o+Math.imul(J,ye)|0,s=(s=s+Math.imul(J,Nt)|0)+Math.imul(tt,ye)|0,A=A+Math.imul(tt,Nt)|0,o=o+Math.imul(Bt,ke)|0,s=(s=s+Math.imul(Bt,jt)|0)+Math.imul(Mt,ke)|0,A=A+Math.imul(Mt,jt)|0,o=o+Math.imul(Et,Oe)|0,s=(s=s+Math.imul(Et,Dt)|0)+Math.imul(gt,Oe)|0,A=A+Math.imul(gt,Dt)|0,o=o+Math.imul(st,De)|0,s=(s=s+Math.imul(st,Lt)|0)+Math.imul(nt,De)|0,A=A+Math.imul(nt,Lt)|0,o=o+Math.imul(G,ze)|0,s=(s=s+Math.imul(G,Ut)|0)+Math.imul(z,ze)|0,A=A+Math.imul(z,Ut)|0;var hi=(R+(o=o+Math.imul(Z,$e)|0)|0)+((8191&(s=(s=s+Math.imul(Z,qt)|0)+Math.imul(rt,$e)|0))<<13)|0;R=((A=A+Math.imul(rt,qt)|0)+(s>>>13)|0)+(hi>>>26)|0,hi&=67108863,o=Math.imul(re,Ce),s=(s=Math.imul(re,Pt))+Math.imul(_t,Ce)|0,A=Math.imul(_t,Pt),o=o+Math.imul(pt,je)|0,s=(s=s+Math.imul(pt,Rt)|0)+Math.imul(ft,je)|0,A=A+Math.imul(ft,Rt)|0,o=o+Math.imul(H,ye)|0,s=(s=s+Math.imul(H,Nt)|0)+Math.imul(U,ye)|0,A=A+Math.imul(U,Nt)|0,o=o+Math.imul(J,ke)|0,s=(s=s+Math.imul(J,jt)|0)+Math.imul(tt,ke)|0,A=A+Math.imul(tt,jt)|0,o=o+Math.imul(Bt,Oe)|0,s=(s=s+Math.imul(Bt,Dt)|0)+Math.imul(Mt,Oe)|0,A=A+Math.imul(Mt,Dt)|0,o=o+Math.imul(Et,De)|0,s=(s=s+Math.imul(Et,Lt)|0)+Math.imul(gt,De)|0,A=A+Math.imul(gt,Lt)|0,o=o+Math.imul(st,ze)|0,s=(s=s+Math.imul(st,Ut)|0)+Math.imul(nt,ze)|0,A=A+Math.imul(nt,Ut)|0,o=o+Math.imul(G,$e)|0,s=(s=s+Math.imul(G,qt)|0)+Math.imul(z,$e)|0,A=A+Math.imul(z,qt)|0;var fi=(R+(o=o+Math.imul(Z,He)|0)|0)+((8191&(s=(s=s+Math.imul(Z,Ft)|0)+Math.imul(rt,He)|0))<<13)|0;R=((A=A+Math.imul(rt,Ft)|0)+(s>>>13)|0)+(fi>>>26)|0,fi&=67108863,o=Math.imul(fe,Ce),s=(s=Math.imul(fe,Pt))+Math.imul(kt,Ce)|0,A=Math.imul(kt,Pt),o=o+Math.imul(re,je)|0,s=(s=s+Math.imul(re,Rt)|0)+Math.imul(_t,je)|0,A=A+Math.imul(_t,Rt)|0,o=o+Math.imul(pt,ye)|0,s=(s=s+Math.imul(pt,Nt)|0)+Math.imul(ft,ye)|0,A=A+Math.imul(ft,Nt)|0,o=o+Math.imul(H,ke)|0,s=(s=s+Math.imul(H,jt)|0)+Math.imul(U,ke)|0,A=A+Math.imul(U,jt)|0,o=o+Math.imul(J,Oe)|0,s=(s=s+Math.imul(J,Dt)|0)+Math.imul(tt,Oe)|0,A=A+Math.imul(tt,Dt)|0,o=o+Math.imul(Bt,De)|0,s=(s=s+Math.imul(Bt,Lt)|0)+Math.imul(Mt,De)|0,A=A+Math.imul(Mt,Lt)|0,o=o+Math.imul(Et,ze)|0,s=(s=s+Math.imul(Et,Ut)|0)+Math.imul(gt,ze)|0,A=A+Math.imul(gt,Ut)|0,o=o+Math.imul(st,$e)|0,s=(s=s+Math.imul(st,qt)|0)+Math.imul(nt,$e)|0,A=A+Math.imul(nt,qt)|0,o=o+Math.imul(G,He)|0,s=(s=s+Math.imul(G,Ft)|0)+Math.imul(z,He)|0,A=A+Math.imul(z,Ft)|0;var Je=(R+(o=o+Math.imul(Z,Ae)|0)|0)+((8191&(s=(s=s+Math.imul(Z,Re)|0)+Math.imul(rt,Ae)|0))<<13)|0;R=((A=A+Math.imul(rt,Re)|0)+(s>>>13)|0)+(Je>>>26)|0,Je&=67108863,o=Math.imul(fe,je),s=(s=Math.imul(fe,Rt))+Math.imul(kt,je)|0,A=Math.imul(kt,Rt),o=o+Math.imul(re,ye)|0,s=(s=s+Math.imul(re,Nt)|0)+Math.imul(_t,ye)|0,A=A+Math.imul(_t,Nt)|0,o=o+Math.imul(pt,ke)|0,s=(s=s+Math.imul(pt,jt)|0)+Math.imul(ft,ke)|0,A=A+Math.imul(ft,jt)|0,o=o+Math.imul(H,Oe)|0,s=(s=s+Math.imul(H,Dt)|0)+Math.imul(U,Oe)|0,A=A+Math.imul(U,Dt)|0,o=o+Math.imul(J,De)|0,s=(s=s+Math.imul(J,Lt)|0)+Math.imul(tt,De)|0,A=A+Math.imul(tt,Lt)|0,o=o+Math.imul(Bt,ze)|0,s=(s=s+Math.imul(Bt,Ut)|0)+Math.imul(Mt,ze)|0,A=A+Math.imul(Mt,Ut)|0,o=o+Math.imul(Et,$e)|0,s=(s=s+Math.imul(Et,qt)|0)+Math.imul(gt,$e)|0,A=A+Math.imul(gt,qt)|0,o=o+Math.imul(st,He)|0,s=(s=s+Math.imul(st,Ft)|0)+Math.imul(nt,He)|0,A=A+Math.imul(nt,Ft)|0;var pi=(R+(o=o+Math.imul(G,Ae)|0)|0)+((8191&(s=(s=s+Math.imul(G,Re)|0)+Math.imul(z,Ae)|0))<<13)|0;R=((A=A+Math.imul(z,Re)|0)+(s>>>13)|0)+(pi>>>26)|0,pi&=67108863,o=Math.imul(fe,ye),s=(s=Math.imul(fe,Nt))+Math.imul(kt,ye)|0,A=Math.imul(kt,Nt),o=o+Math.imul(re,ke)|0,s=(s=s+Math.imul(re,jt)|0)+Math.imul(_t,ke)|0,A=A+Math.imul(_t,jt)|0,o=o+Math.imul(pt,Oe)|0,s=(s=s+Math.imul(pt,Dt)|0)+Math.imul(ft,Oe)|0,A=A+Math.imul(ft,Dt)|0,o=o+Math.imul(H,De)|0,s=(s=s+Math.imul(H,Lt)|0)+Math.imul(U,De)|0,A=A+Math.imul(U,Lt)|0,o=o+Math.imul(J,ze)|0,s=(s=s+Math.imul(J,Ut)|0)+Math.imul(tt,ze)|0,A=A+Math.imul(tt,Ut)|0,o=o+Math.imul(Bt,$e)|0,s=(s=s+Math.imul(Bt,qt)|0)+Math.imul(Mt,$e)|0,A=A+Math.imul(Mt,qt)|0,o=o+Math.imul(Et,He)|0,s=(s=s+Math.imul(Et,Ft)|0)+Math.imul(gt,He)|0,A=A+Math.imul(gt,Ft)|0;var gi=(R+(o=o+Math.imul(st,Ae)|0)|0)+((8191&(s=(s=s+Math.imul(st,Re)|0)+Math.imul(nt,Ae)|0))<<13)|0;R=((A=A+Math.imul(nt,Re)|0)+(s>>>13)|0)+(gi>>>26)|0,gi&=67108863,o=Math.imul(fe,ke),s=(s=Math.imul(fe,jt))+Math.imul(kt,ke)|0,A=Math.imul(kt,jt),o=o+Math.imul(re,Oe)|0,s=(s=s+Math.imul(re,Dt)|0)+Math.imul(_t,Oe)|0,A=A+Math.imul(_t,Dt)|0,o=o+Math.imul(pt,De)|0,s=(s=s+Math.imul(pt,Lt)|0)+Math.imul(ft,De)|0,A=A+Math.imul(ft,Lt)|0,o=o+Math.imul(H,ze)|0,s=(s=s+Math.imul(H,Ut)|0)+Math.imul(U,ze)|0,A=A+Math.imul(U,Ut)|0,o=o+Math.imul(J,$e)|0,s=(s=s+Math.imul(J,qt)|0)+Math.imul(tt,$e)|0,A=A+Math.imul(tt,qt)|0,o=o+Math.imul(Bt,He)|0,s=(s=s+Math.imul(Bt,Ft)|0)+Math.imul(Mt,He)|0,A=A+Math.imul(Mt,Ft)|0;var ei=(R+(o=o+Math.imul(Et,Ae)|0)|0)+((8191&(s=(s=s+Math.imul(Et,Re)|0)+Math.imul(gt,Ae)|0))<<13)|0;R=((A=A+Math.imul(gt,Re)|0)+(s>>>13)|0)+(ei>>>26)|0,ei&=67108863,o=Math.imul(fe,Oe),s=(s=Math.imul(fe,Dt))+Math.imul(kt,Oe)|0,A=Math.imul(kt,Dt),o=o+Math.imul(re,De)|0,s=(s=s+Math.imul(re,Lt)|0)+Math.imul(_t,De)|0,A=A+Math.imul(_t,Lt)|0,o=o+Math.imul(pt,ze)|0,s=(s=s+Math.imul(pt,Ut)|0)+Math.imul(ft,ze)|0,A=A+Math.imul(ft,Ut)|0,o=o+Math.imul(H,$e)|0,s=(s=s+Math.imul(H,qt)|0)+Math.imul(U,$e)|0,A=A+Math.imul(U,qt)|0,o=o+Math.imul(J,He)|0,s=(s=s+Math.imul(J,Ft)|0)+Math.imul(tt,He)|0,A=A+Math.imul(tt,Ft)|0;var ii=(R+(o=o+Math.imul(Bt,Ae)|0)|0)+((8191&(s=(s=s+Math.imul(Bt,Re)|0)+Math.imul(Mt,Ae)|0))<<13)|0;R=((A=A+Math.imul(Mt,Re)|0)+(s>>>13)|0)+(ii>>>26)|0,ii&=67108863,o=Math.imul(fe,De),s=(s=Math.imul(fe,Lt))+Math.imul(kt,De)|0,A=Math.imul(kt,Lt),o=o+Math.imul(re,ze)|0,s=(s=s+Math.imul(re,Ut)|0)+Math.imul(_t,ze)|0,A=A+Math.imul(_t,Ut)|0,o=o+Math.imul(pt,$e)|0,s=(s=s+Math.imul(pt,qt)|0)+Math.imul(ft,$e)|0,A=A+Math.imul(ft,qt)|0,o=o+Math.imul(H,He)|0,s=(s=s+Math.imul(H,Ft)|0)+Math.imul(U,He)|0,A=A+Math.imul(U,Ft)|0;var Ye=(R+(o=o+Math.imul(J,Ae)|0)|0)+((8191&(s=(s=s+Math.imul(J,Re)|0)+Math.imul(tt,Ae)|0))<<13)|0;R=((A=A+Math.imul(tt,Re)|0)+(s>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,o=Math.imul(fe,ze),s=(s=Math.imul(fe,Ut))+Math.imul(kt,ze)|0,A=Math.imul(kt,Ut),o=o+Math.imul(re,$e)|0,s=(s=s+Math.imul(re,qt)|0)+Math.imul(_t,$e)|0,A=A+Math.imul(_t,qt)|0,o=o+Math.imul(pt,He)|0,s=(s=s+Math.imul(pt,Ft)|0)+Math.imul(ft,He)|0,A=A+Math.imul(ft,Ft)|0;var di=(R+(o=o+Math.imul(H,Ae)|0)|0)+((8191&(s=(s=s+Math.imul(H,Re)|0)+Math.imul(U,Ae)|0))<<13)|0;R=((A=A+Math.imul(U,Re)|0)+(s>>>13)|0)+(di>>>26)|0,di&=67108863,o=Math.imul(fe,$e),s=(s=Math.imul(fe,qt))+Math.imul(kt,$e)|0,A=Math.imul(kt,qt),o=o+Math.imul(re,He)|0,s=(s=s+Math.imul(re,Ft)|0)+Math.imul(_t,He)|0,A=A+Math.imul(_t,Ft)|0;var ni=(R+(o=o+Math.imul(pt,Ae)|0)|0)+((8191&(s=(s=s+Math.imul(pt,Re)|0)+Math.imul(ft,Ae)|0))<<13)|0;R=((A=A+Math.imul(ft,Re)|0)+(s>>>13)|0)+(ni>>>26)|0,ni&=67108863,o=Math.imul(fe,He),s=(s=Math.imul(fe,Ft))+Math.imul(kt,He)|0,A=Math.imul(kt,Ft);var cr=(R+(o=o+Math.imul(re,Ae)|0)|0)+((8191&(s=(s=s+Math.imul(re,Re)|0)+Math.imul(_t,Ae)|0))<<13)|0;R=((A=A+Math.imul(_t,Re)|0)+(s>>>13)|0)+(cr>>>26)|0,cr&=67108863;var er=(R+(o=Math.imul(fe,Ae))|0)+((8191&(s=(s=Math.imul(fe,Re))+Math.imul(kt,Ae)|0))<<13)|0;return R=((A=Math.imul(kt,Re))+(s>>>13)|0)+(er>>>26)|0,er&=67108863,T[0]=Ke,T[1]=ai,T[2]=ri,T[3]=si,T[4]=ui,T[5]=ci,T[6]=li,T[7]=hi,T[8]=fi,T[9]=Je,T[10]=pi,T[11]=gi,T[12]=ei,T[13]=ii,T[14]=Ye,T[15]=di,T[16]=ni,T[17]=cr,T[18]=er,R!==0&&(T[19]=R,e.length++),e};function M(r,i,e){e.negative=i.negative^r.negative,e.length=r.length+i.length;for(var o=0,s=0,A=0;A<e.length-1;A++){var C=s;s=0;for(var j=67108863&o,T=Math.min(A,i.length-1),R=Math.max(0,A-r.length+1);R<=T;R++){var q=A-R,Z=(0|r.words[q])*(0|i.words[R]),rt=67108863&Z;j=67108863&(rt=rt+j|0),s+=(C=(C=C+(Z/67108864|0)|0)+(rt>>>26)|0)>>>26,C&=67108863}e.words[A]=j,o=C,C=s}return o!==0?e.words[A]=o:e.length--,e._strip()}function B(r,i,e){return M(r,i,e)}Math.imul||(I=E),a.prototype.mulTo=function(r,i){var e=this.length+r.length;return this.length===10&&r.length===10?I(this,r,i):e<63?E(this,r,i):e<1024?M(this,r,i):B(this,r,i)},a.prototype.mul=function(r){var i=new a(null);return i.words=new Array(this.length+r.length),this.mulTo(r,i)},a.prototype.mulf=function(r){var i=new a(null);return i.words=new Array(this.length+r.length),B(this,r,i)},a.prototype.imul=function(r){return this.clone().mulTo(r,this)},a.prototype.imuln=function(r){var i=r<0;i&&(r=-r),m(typeof r=="number"),m(r<67108864);for(var e=0,o=0;o<this.length;o++){var s=(0|this.words[o])*r,A=(67108863&s)+(67108863&e);e>>=26,e+=s/67108864|0,e+=A>>>26,this.words[o]=67108863&A}return e!==0&&(this.words[o]=e,this.length++),i?this.ineg():this},a.prototype.muln=function(r){return this.clone().imuln(r)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(r){var i=function(A){for(var C=new Array(A.bitLength()),j=0;j<C.length;j++){var T=j/26|0,R=j%26;C[j]=A.words[T]>>>R&1}return C}(r);if(i.length===0)return new a(1);for(var e=this,o=0;o<i.length&&i[o]===0;o++,e=e.sqr());if(++o<i.length)for(var s=e.sqr();o<i.length;o++,s=s.sqr())i[o]!==0&&(e=e.mul(s));return e},a.prototype.iushln=function(r){m(typeof r=="number"&&r>=0);var i,e=r%26,o=(r-e)/26,s=67108863>>>26-e<<26-e;if(e!==0){var A=0;for(i=0;i<this.length;i++){var C=this.words[i]&s,j=(0|this.words[i])-C<<e;this.words[i]=j|A,A=C>>>26-e}A&&(this.words[i]=A,this.length++)}if(o!==0){for(i=this.length-1;i>=0;i--)this.words[i+o]=this.words[i];for(i=0;i<o;i++)this.words[i]=0;this.length+=o}return this._strip()},a.prototype.ishln=function(r){return m(this.negative===0),this.iushln(r)},a.prototype.iushrn=function(r,i,e){var o;m(typeof r=="number"&&r>=0),o=i?(i-i%26)/26:0;var s=r%26,A=Math.min((r-s)/26,this.length),C=67108863^67108863>>>s<<s,j=e;if(o-=A,o=Math.max(0,o),j){for(var T=0;T<A;T++)j.words[T]=this.words[T];j.length=A}if(A!==0)if(this.length>A)for(this.length-=A,T=0;T<this.length;T++)this.words[T]=this.words[T+A];else this.words[0]=0,this.length=1;var R=0;for(T=this.length-1;T>=0&&(R!==0||T>=o);T--){var q=0|this.words[T];this.words[T]=R<<26-s|q>>>s,R=q&C}return j&&R!==0&&(j.words[j.length++]=R),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(r,i,e){return m(this.negative===0),this.iushrn(r,i,e)},a.prototype.shln=function(r){return this.clone().ishln(r)},a.prototype.ushln=function(r){return this.clone().iushln(r)},a.prototype.shrn=function(r){return this.clone().ishrn(r)},a.prototype.ushrn=function(r){return this.clone().iushrn(r)},a.prototype.testn=function(r){m(typeof r=="number"&&r>=0);var i=r%26,e=(r-i)/26,o=1<<i;return!(this.length<=e||!(this.words[e]&o))},a.prototype.imaskn=function(r){m(typeof r=="number"&&r>=0);var i=r%26,e=(r-i)/26;if(m(this.negative===0,"imaskn works only with positive numbers"),this.length<=e)return this;if(i!==0&&e++,this.length=Math.min(e,this.length),i!==0){var o=67108863^67108863>>>i<<i;this.words[this.length-1]&=o}return this._strip()},a.prototype.maskn=function(r){return this.clone().imaskn(r)},a.prototype.iaddn=function(r){return m(typeof r=="number"),m(r<67108864),r<0?this.isubn(-r):this.negative!==0?this.length===1&&(0|this.words[0])<=r?(this.words[0]=r-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(r),this.negative=1,this):this._iaddn(r)},a.prototype._iaddn=function(r){this.words[0]+=r;for(var i=0;i<this.length&&this.words[i]>=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},a.prototype.isubn=function(r){if(m(typeof r=="number"),m(r<67108864),r<0)return this.iaddn(-r);if(this.negative!==0)return this.negative=0,this.iaddn(r),this.negative=1,this;if(this.words[0]-=r,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var i=0;i<this.length&&this.words[i]<0;i++)this.words[i]+=67108864,this.words[i+1]-=1;return this._strip()},a.prototype.addn=function(r){return this.clone().iaddn(r)},a.prototype.subn=function(r){return this.clone().isubn(r)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(r,i,e){var o,s,A=r.length+e;this._expand(A);var C=0;for(o=0;o<r.length;o++){s=(0|this.words[o+e])+C;var j=(0|r.words[o])*i;C=((s-=67108863&j)>>26)-(j/67108864|0),this.words[o+e]=67108863&s}for(;o<this.length-e;o++)C=(s=(0|this.words[o+e])+C)>>26,this.words[o+e]=67108863&s;if(C===0)return this._strip();for(m(C===-1),C=0,o=0;o<this.length;o++)C=(s=-(0|this.words[o])+C)>>26,this.words[o]=67108863&s;return this.negative=1,this._strip()},a.prototype._wordDiv=function(r,i){var e=(this.length,r.length),o=this.clone(),s=r,A=0|s.words[s.length-1];(e=26-this._countBits(A))!=0&&(s=s.ushln(e),o.iushln(e),A=0|s.words[s.length-1]);var C,j=o.length-s.length;if(i!=="mod"){(C=new a(null)).length=j+1,C.words=new Array(C.length);for(var T=0;T<C.length;T++)C.words[T]=0}var R=o.clone()._ishlnsubmul(s,1,j);R.negative===0&&(o=R,C&&(C.words[j]=1));for(var q=j-1;q>=0;q--){var Z=67108864*(0|o.words[s.length+q])+(0|o.words[s.length+q-1]);for(Z=Math.min(Z/A|0,67108863),o._ishlnsubmul(s,Z,q);o.negative!==0;)Z--,o.negative=0,o._ishlnsubmul(s,1,q),o.isZero()||(o.negative^=1);C&&(C.words[q]=Z)}return C&&C._strip(),o._strip(),i!=="div"&&e!==0&&o.iushrn(e),{div:C||null,mod:o}},a.prototype.divmod=function(r,i,e){return m(!r.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:this.negative!==0&&r.negative===0?(A=this.neg().divmod(r,i),i!=="mod"&&(o=A.div.neg()),i!=="div"&&(s=A.mod.neg(),e&&s.negative!==0&&s.iadd(r)),{div:o,mod:s}):this.negative===0&&r.negative!==0?(A=this.divmod(r.neg(),i),i!=="mod"&&(o=A.div.neg()),{div:o,mod:A.mod}):this.negative&r.negative?(A=this.neg().divmod(r.neg(),i),i!=="div"&&(s=A.mod.neg(),e&&s.negative!==0&&s.isub(r)),{div:A.div,mod:s}):r.length>this.length||this.cmp(r)<0?{div:new a(0),mod:this}:r.length===1?i==="div"?{div:this.divn(r.words[0]),mod:null}:i==="mod"?{div:null,mod:new a(this.modrn(r.words[0]))}:{div:this.divn(r.words[0]),mod:new a(this.modrn(r.words[0]))}:this._wordDiv(r,i);var o,s,A},a.prototype.div=function(r){return this.divmod(r,"div",!1).div},a.prototype.mod=function(r){return this.divmod(r,"mod",!1).mod},a.prototype.umod=function(r){return this.divmod(r,"mod",!0).mod},a.prototype.divRound=function(r){var i=this.divmod(r);if(i.mod.isZero())return i.div;var e=i.div.negative!==0?i.mod.isub(r):i.mod,o=r.ushrn(1),s=r.andln(1),A=e.cmp(o);return A<0||s===1&&A===0?i.div:i.div.negative!==0?i.div.isubn(1):i.div.iaddn(1)},a.prototype.modrn=function(r){var i=r<0;i&&(r=-r),m(r<=67108863);for(var e=67108864%r,o=0,s=this.length-1;s>=0;s--)o=(e*o+(0|this.words[s]))%r;return i?-o:o},a.prototype.modn=function(r){return this.modrn(r)},a.prototype.idivn=function(r){var i=r<0;i&&(r=-r),m(r<=67108863);for(var e=0,o=this.length-1;o>=0;o--){var s=(0|this.words[o])+67108864*e;this.words[o]=s/r|0,e=s%r}return this._strip(),i?this.ineg():this},a.prototype.divn=function(r){return this.clone().idivn(r)},a.prototype.egcd=function(r){m(r.negative===0),m(!r.isZero());var i=this,e=r.clone();i=i.negative!==0?i.umod(r):i.clone();for(var o=new a(1),s=new a(0),A=new a(0),C=new a(1),j=0;i.isEven()&&e.isEven();)i.iushrn(1),e.iushrn(1),++j;for(var T=e.clone(),R=i.clone();!i.isZero();){for(var q=0,Z=1;!(i.words[0]&Z)&&q<26;++q,Z<<=1);if(q>0)for(i.iushrn(q);q-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(T),s.isub(R)),o.iushrn(1),s.iushrn(1);for(var rt=0,D=1;!(e.words[0]&D)&&rt<26;++rt,D<<=1);if(rt>0)for(e.iushrn(rt);rt-- >0;)(A.isOdd()||C.isOdd())&&(A.iadd(T),C.isub(R)),A.iushrn(1),C.iushrn(1);i.cmp(e)>=0?(i.isub(e),o.isub(A),s.isub(C)):(e.isub(i),A.isub(o),C.isub(s))}return{a:A,b:C,gcd:e.iushln(j)}},a.prototype._invmp=function(r){m(r.negative===0),m(!r.isZero());var i=this,e=r.clone();i=i.negative!==0?i.umod(r):i.clone();for(var o,s=new a(1),A=new a(0),C=e.clone();i.cmpn(1)>0&&e.cmpn(1)>0;){for(var j=0,T=1;!(i.words[0]&T)&&j<26;++j,T<<=1);if(j>0)for(i.iushrn(j);j-- >0;)s.isOdd()&&s.iadd(C),s.iushrn(1);for(var R=0,q=1;!(e.words[0]&q)&&R<26;++R,q<<=1);if(R>0)for(e.iushrn(R);R-- >0;)A.isOdd()&&A.iadd(C),A.iushrn(1);i.cmp(e)>=0?(i.isub(e),s.isub(A)):(e.isub(i),A.isub(s))}return(o=i.cmpn(1)===0?s:A).cmpn(0)<0&&o.iadd(r),o},a.prototype.gcd=function(r){if(this.isZero())return r.abs();if(r.isZero())return this.abs();var i=this.clone(),e=r.clone();i.negative=0,e.negative=0;for(var o=0;i.isEven()&&e.isEven();o++)i.iushrn(1),e.iushrn(1);for(;;){for(;i.isEven();)i.iushrn(1);for(;e.isEven();)e.iushrn(1);var s=i.cmp(e);if(s<0){var A=i;i=e,e=A}else if(s===0||e.cmpn(1)===0)break;i.isub(e)}return e.iushln(o)},a.prototype.invm=function(r){return this.egcd(r).a.umod(r)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(r){return this.words[0]&r},a.prototype.bincn=function(r){m(typeof r=="number");var i=r%26,e=(r-i)/26,o=1<<i;if(this.length<=e)return this._expand(e+1),this.words[e]|=o,this;for(var s=o,A=e;s!==0&&A<this.length;A++){var C=0|this.words[A];s=(C+=s)>>>26,C&=67108863,this.words[A]=C}return s!==0&&(this.words[A]=s,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(r){var i,e=r<0;if(this.negative!==0&&!e)return-1;if(this.negative===0&&e)return 1;if(this._strip(),this.length>1)i=1;else{e&&(r=-r),m(r<=67108863,"Number is too big");var o=0|this.words[0];i=o===r?0:o<r?-1:1}return this.negative!==0?0|-i:i},a.prototype.cmp=function(r){if(this.negative!==0&&r.negative===0)return-1;if(this.negative===0&&r.negative!==0)return 1;var i=this.ucmp(r);return this.negative!==0?0|-i:i},a.prototype.ucmp=function(r){if(this.length>r.length)return 1;if(this.length<r.length)return-1;for(var i=0,e=this.length-1;e>=0;e--){var o=0|this.words[e],s=0|r.words[e];if(o!==s){o<s?i=-1:o>s&&(i=1);break}}return i},a.prototype.gtn=function(r){return this.cmpn(r)===1},a.prototype.gt=function(r){return this.cmp(r)===1},a.prototype.gten=function(r){return this.cmpn(r)>=0},a.prototype.gte=function(r){return this.cmp(r)>=0},a.prototype.ltn=function(r){return this.cmpn(r)===-1},a.prototype.lt=function(r){return this.cmp(r)===-1},a.prototype.lten=function(r){return this.cmpn(r)<=0},a.prototype.lte=function(r){return this.cmp(r)<=0},a.prototype.eqn=function(r){return this.cmpn(r)===0},a.prototype.eq=function(r){return this.cmp(r)===0},a.red=function(r){return new t(r)},a.prototype.toRed=function(r){return m(!this.red,"Already a number in reduction context"),m(this.negative===0,"red works only with positives"),r.convertTo(this)._forceRed(r)},a.prototype.fromRed=function(){return m(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(r){return this.red=r,this},a.prototype.forceRed=function(r){return m(!this.red,"Already a number in reduction context"),this._forceRed(r)},a.prototype.redAdd=function(r){return m(this.red,"redAdd works only with red numbers"),this.red.add(this,r)},a.prototype.redIAdd=function(r){return m(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,r)},a.prototype.redSub=function(r){return m(this.red,"redSub works only with red numbers"),this.red.sub(this,r)},a.prototype.redISub=function(r){return m(this.red,"redISub works only with red numbers"),this.red.isub(this,r)},a.prototype.redShl=function(r){return m(this.red,"redShl works only with red numbers"),this.red.shl(this,r)},a.prototype.redMul=function(r){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,r),this.red.mul(this,r)},a.prototype.redIMul=function(r){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,r),this.red.imul(this,r)},a.prototype.redSqr=function(){return m(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return m(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return m(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return m(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return m(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(r){return m(this.red&&!r.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,r)};var P={k256:null,p224:null,p192:null,p25519:null};function N(r,i){this.name=r,this.p=new a(i,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function $(){N.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function et(){N.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function Q(){N.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ot(){N.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function t(r){if(typeof r=="string"){var i=a._prime(r);this.m=i.p,this.prime=i}else m(r.gtn(1),"modulus must be greater than 1"),this.m=r,this.prime=null}function n(r){t.call(this,r),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}N.prototype._tmp=function(){var r=new a(null);return r.words=new Array(Math.ceil(this.n/13)),r},N.prototype.ireduce=function(r){var i,e=r;do this.split(e,this.tmp),i=(e=(e=this.imulK(e)).iadd(this.tmp)).bitLength();while(i>this.n);var o=i<this.n?-1:e.ucmp(this.p);return o===0?(e.words[0]=0,e.length=1):o>0?e.isub(this.p):e.strip!==void 0?e.strip():e._strip(),e},N.prototype.split=function(r,i){r.iushrn(this.n,0,i)},N.prototype.imulK=function(r){return r.imul(this.k)},S($,N),$.prototype.split=function(r,i){for(var e=4194303,o=Math.min(r.length,9),s=0;s<o;s++)i.words[s]=r.words[s];if(i.length=o,r.length<=9)return r.words[0]=0,void(r.length=1);var A=r.words[9];for(i.words[i.length++]=A&e,s=10;s<r.length;s++){var C=0|r.words[s];r.words[s-10]=(C&e)<<4|A>>>22,A=C}A>>>=22,r.words[s-10]=A,A===0&&r.length>10?r.length-=10:r.length-=9},$.prototype.imulK=function(r){r.words[r.length]=0,r.words[r.length+1]=0,r.length+=2;for(var i=0,e=0;e<r.length;e++){var o=0|r.words[e];i+=977*o,r.words[e]=67108863&i,i=64*o+(i/67108864|0)}return r.words[r.length-1]===0&&(r.length--,r.words[r.length-1]===0&&r.length--),r},S(et,N),S(Q,N),S(ot,N),ot.prototype.imulK=function(r){for(var i=0,e=0;e<r.length;e++){var o=19*(0|r.words[e])+i,s=67108863&o;o>>>=26,r.words[e]=s,i=o}return i!==0&&(r.words[r.length++]=i),r},a._prime=function(r){if(P[r])return P[r];var i;if(r==="k256")i=new $;else if(r==="p224")i=new et;else if(r==="p192")i=new Q;else{if(r!=="p25519")throw new Error("Unknown prime "+r);i=new ot}return P[r]=i,i},t.prototype._verify1=function(r){m(r.negative===0,"red works only with positives"),m(r.red,"red works only with red numbers")},t.prototype._verify2=function(r,i){m((r.negative|i.negative)==0,"red works only with positives"),m(r.red&&r.red===i.red,"red works only with red numbers")},t.prototype.imod=function(r){return this.prime?this.prime.ireduce(r)._forceRed(this):(g(r,r.umod(this.m)._forceRed(this)),r)},t.prototype.neg=function(r){return r.isZero()?r.clone():this.m.sub(r)._forceRed(this)},t.prototype.add=function(r,i){this._verify2(r,i);var e=r.add(i);return e.cmp(this.m)>=0&&e.isub(this.m),e._forceRed(this)},t.prototype.iadd=function(r,i){this._verify2(r,i);var e=r.iadd(i);return e.cmp(this.m)>=0&&e.isub(this.m),e},t.prototype.sub=function(r,i){this._verify2(r,i);var e=r.sub(i);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},t.prototype.isub=function(r,i){this._verify2(r,i);var e=r.isub(i);return e.cmpn(0)<0&&e.iadd(this.m),e},t.prototype.shl=function(r,i){return this._verify1(r),this.imod(r.ushln(i))},t.prototype.imul=function(r,i){return this._verify2(r,i),this.imod(r.imul(i))},t.prototype.mul=function(r,i){return this._verify2(r,i),this.imod(r.mul(i))},t.prototype.isqr=function(r){return this.imul(r,r.clone())},t.prototype.sqr=function(r){return this.mul(r,r)},t.prototype.sqrt=function(r){if(r.isZero())return r.clone();var i=this.m.andln(3);if(m(i%2==1),i===3){var e=this.m.add(new a(1)).iushrn(2);return this.pow(r,e)}for(var o=this.m.subn(1),s=0;!o.isZero()&&o.andln(1)===0;)s++,o.iushrn(1);m(!o.isZero());var A=new a(1).toRed(this),C=A.redNeg(),j=this.m.subn(1).iushrn(1),T=this.m.bitLength();for(T=new a(2*T*T).toRed(this);this.pow(T,j).cmp(C)!==0;)T.redIAdd(C);for(var R=this.pow(T,o),q=this.pow(r,o.addn(1).iushrn(1)),Z=this.pow(r,o),rt=s;Z.cmp(A)!==0;){for(var D=Z,G=0;D.cmp(A)!==0;G++)D=D.redSqr();m(G<rt);var z=this.pow(R,new a(1).iushln(rt-G-1));q=q.redMul(z),R=z.redSqr(),Z=Z.redMul(R),rt=G}return q},t.prototype.invm=function(r){var i=r._invmp(this.m);return i.negative!==0?(i.negative=0,this.imod(i).redNeg()):this.imod(i)},t.prototype.pow=function(r,i){if(i.isZero())return new a(1).toRed(this);if(i.cmpn(1)===0)return r.clone();var e=new Array(16);e[0]=new a(1).toRed(this),e[1]=r;for(var o=2;o<e.length;o++)e[o]=this.mul(e[o-1],r);var s=e[0],A=0,C=0,j=i.bitLength()%26;for(j===0&&(j=26),o=i.length-1;o>=0;o--){for(var T=i.words[o],R=j-1;R>=0;R--){var q=T>>R&1;s!==e[0]&&(s=this.sqr(s)),q!==0||A!==0?(A<<=1,A|=q,(++C==4||o===0&&R===0)&&(s=this.mul(s,e[A]),C=0,A=0)):C=0}j=26}return s},t.prototype.convertTo=function(r){var i=r.umod(this.m);return i===r?i.clone():i},t.prototype.convertFrom=function(r){var i=r.clone();return i.red=null,i},a.mont=function(r){return new n(r)},S(n,t),n.prototype.convertTo=function(r){return this.imod(r.ushln(this.shift))},n.prototype.convertFrom=function(r){var i=this.imod(r.mul(this.rinv));return i.red=null,i},n.prototype.imul=function(r,i){if(r.isZero()||i.isZero())return r.words[0]=0,r.length=1,r;var e=r.imul(i),o=e.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),s=e.isub(o).iushrn(this.shift),A=s;return s.cmp(this.m)>=0?A=s.isub(this.m):s.cmpn(0)<0&&(A=s.iadd(this.m)),A._forceRed(this)},n.prototype.mul=function(r,i){if(r.isZero()||i.isZero())return new a(0)._forceRed(this);var e=r.mul(i),o=e.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),s=e.isub(o).iushrn(this.shift),A=s;return s.cmp(this.m)>=0?A=s.isub(this.m):s.cmpn(0)<0&&(A=s.iadd(this.m)),A._forceRed(this)},n.prototype.invm=function(r){return this.imod(r._invmp(this.m).mul(this.r2))._forceRed(this)}})(W=y.nmd(W),this)},9931:(W,_,y)=>{var x;function v(S){this.rand=S}if(W.exports=function(S){return x||(x=new v(null)),x.generate(S)},W.exports.Rand=v,v.prototype.generate=function(S){return this._rand(S)},v.prototype._rand=function(S){if(this.rand.getBytes)return this.rand.getBytes(S);for(var a=new Uint8Array(S),p=0;p<a.length;p++)a[p]=this.rand.getByte();return a},typeof self=="object")self.crypto&&self.crypto.getRandomValues?v.prototype._rand=function(S){var a=new Uint8Array(S);return self.crypto.getRandomValues(a),a}:self.msCrypto&&self.msCrypto.getRandomValues?v.prototype._rand=function(S){var a=new Uint8Array(S);return self.msCrypto.getRandomValues(a),a}:typeof window=="object"&&(v.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var m=y(9214);if(typeof m.randomBytes!="function")throw new Error("Not supported");v.prototype._rand=function(S){return m.randomBytes(S)}}catch{}},3818:(W,_,y)=>{var x=y(4155);Object.defineProperty(_,"__esModule",{value:!0});var v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},m=typeof window<"u"&&window.document!==void 0,S=(typeof self>"u"?"undefined":v(self))==="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope",a=x!==void 0&&x.versions!=null&&x.versions.node!=null;_.isBrowser=m,_.isWebWorker=S,_.isNode=a,_.isJsDom=function(){return typeof window<"u"&&window.name==="nodejs"||navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")}},4497:(W,_,y)=>{var x=y(9509).Buffer;function v(l){x.isBuffer(l)||(l=x.from(l));for(var f=l.length/4|0,g=new Array(f),h=0;h<f;h++)g[h]=l.readUInt32BE(4*h);return g}function m(l){for(;0<l.length;l++)l[0]=0}function S(l,f,g,h,u){for(var w,b,E,I,M=g[0],B=g[1],P=g[2],N=g[3],$=l[0]^f[0],et=l[1]^f[1],Q=l[2]^f[2],ot=l[3]^f[3],t=4,n=1;n<u;n++)w=M[$>>>24]^B[et>>>16&255]^P[Q>>>8&255]^N[255&ot]^f[t++],b=M[et>>>24]^B[Q>>>16&255]^P[ot>>>8&255]^N[255&$]^f[t++],E=M[Q>>>24]^B[ot>>>16&255]^P[$>>>8&255]^N[255&et]^f[t++],I=M[ot>>>24]^B[$>>>16&255]^P[et>>>8&255]^N[255&Q]^f[t++],$=w,et=b,Q=E,ot=I;return w=(h[$>>>24]<<24|h[et>>>16&255]<<16|h[Q>>>8&255]<<8|h[255&ot])^f[t++],b=(h[et>>>24]<<24|h[Q>>>16&255]<<16|h[ot>>>8&255]<<8|h[255&$])^f[t++],E=(h[Q>>>24]<<24|h[ot>>>16&255]<<16|h[$>>>8&255]<<8|h[255&et])^f[t++],I=(h[ot>>>24]<<24|h[$>>>16&255]<<16|h[et>>>8&255]<<8|h[255&Q])^f[t++],[w>>>=0,b>>>=0,E>>>=0,I>>>=0]}var a=[0,1,2,4,8,16,32,64,128,27,54],p=function(){for(var l=new Array(256),f=0;f<256;f++)l[f]=f<128?f<<1:f<<1^283;for(var g=[],h=[],u=[[],[],[],[]],w=[[],[],[],[]],b=0,E=0,I=0;I<256;++I){var M=E^E<<1^E<<2^E<<3^E<<4;M=M>>>8^255&M^99,g[b]=M,h[M]=b;var B=l[b],P=l[B],N=l[P],$=257*l[M]^16843008*M;u[0][b]=$<<24|$>>>8,u[1][b]=$<<16|$>>>16,u[2][b]=$<<8|$>>>24,u[3][b]=$,$=16843009*N^65537*P^257*B^16843008*b,w[0][M]=$<<24|$>>>8,w[1][M]=$<<16|$>>>16,w[2][M]=$<<8|$>>>24,w[3][M]=$,b===0?b=E=1:(b=B^l[l[l[N^B]]],E^=l[l[E]])}return{SBOX:g,INV_SBOX:h,SUB_MIX:u,INV_SUB_MIX:w}}();function c(l){this._key=v(l),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var l=this._key,f=l.length,g=f+6,h=4*(g+1),u=[],w=0;w<f;w++)u[w]=l[w];for(w=f;w<h;w++){var b=u[w-1];w%f==0?(b=b<<8|b>>>24,b=p.SBOX[b>>>24]<<24|p.SBOX[b>>>16&255]<<16|p.SBOX[b>>>8&255]<<8|p.SBOX[255&b],b^=a[w/f|0]<<24):f>6&&w%f==4&&(b=p.SBOX[b>>>24]<<24|p.SBOX[b>>>16&255]<<16|p.SBOX[b>>>8&255]<<8|p.SBOX[255&b]),u[w]=u[w-f]^b}for(var E=[],I=0;I<h;I++){var M=h-I,B=u[M-(I%4?0:4)];E[I]=I<4||M<=4?B:p.INV_SUB_MIX[0][p.SBOX[B>>>24]]^p.INV_SUB_MIX[1][p.SBOX[B>>>16&255]]^p.INV_SUB_MIX[2][p.SBOX[B>>>8&255]]^p.INV_SUB_MIX[3][p.SBOX[255&B]]}this._nRounds=g,this._keySchedule=u,this._invKeySchedule=E},c.prototype.encryptBlockRaw=function(l){return S(l=v(l),this._keySchedule,p.SUB_MIX,p.SBOX,this._nRounds)},c.prototype.encryptBlock=function(l){var f=this.encryptBlockRaw(l),g=x.allocUnsafe(16);return g.writeUInt32BE(f[0],0),g.writeUInt32BE(f[1],4),g.writeUInt32BE(f[2],8),g.writeUInt32BE(f[3],12),g},c.prototype.decryptBlock=function(l){var f=(l=v(l))[1];l[1]=l[3],l[3]=f;var g=S(l,this._invKeySchedule,p.INV_SUB_MIX,p.INV_SBOX,this._nRounds),h=x.allocUnsafe(16);return h.writeUInt32BE(g[0],0),h.writeUInt32BE(g[3],4),h.writeUInt32BE(g[2],8),h.writeUInt32BE(g[1],12),h},c.prototype.scrub=function(){m(this._keySchedule),m(this._invKeySchedule),m(this._key)},W.exports.AES=c},2422:(W,_,y)=>{var x=y(4497),v=y(9509).Buffer,m=y(1027),S=y(5717),a=y(3288),p=y(7295),c=y(685);function l(f,g,h,u){m.call(this);var w=v.alloc(4,0);this._cipher=new x.AES(g);var b=this._cipher.encryptBlock(w);this._ghash=new a(b),h=function(E,I,M){if(I.length===12)return E._finID=v.concat([I,v.from([0,0,0,1])]),v.concat([I,v.from([0,0,0,2])]);var B=new a(M),P=I.length,N=P%16;B.update(I),N&&(N=16-N,B.update(v.alloc(N,0))),B.update(v.alloc(8,0));var $=8*P,et=v.alloc(8);et.writeUIntBE($,0,8),B.update(et),E._finID=B.state;var Q=v.from(E._finID);return c(Q),Q}(this,h,b),this._prev=v.from(h),this._cache=v.allocUnsafe(0),this._secCache=v.allocUnsafe(0),this._decrypt=u,this._alen=0,this._len=0,this._mode=f,this._authTag=null,this._called=!1}S(l,m),l.prototype._update=function(f){if(!this._called&&this._alen){var g=16-this._alen%16;g<16&&(g=v.alloc(g,0),this._ghash.update(g))}this._called=!0;var h=this._mode.encrypt(this,f);return this._decrypt?this._ghash.update(f):this._ghash.update(h),this._len+=f.length,h},l.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var f=p(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(g,h){var u=0;g.length!==h.length&&u++;for(var w=Math.min(g.length,h.length),b=0;b<w;++b)u+=g[b]^h[b];return u}(f,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=f,this._cipher.scrub()},l.prototype.getAuthTag=function(){if(this._decrypt||!v.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},l.prototype.setAuthTag=function(f){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=f},l.prototype.setAAD=function(f){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(f),this._alen+=f.length},W.exports=l},4696:(W,_,y)=>{var x=y(1494),v=y(6193),m=y(4946);_.createCipher=_.Cipher=x.createCipher,_.createCipheriv=_.Cipheriv=x.createCipheriv,_.createDecipher=_.Decipher=v.createDecipher,_.createDecipheriv=_.Decipheriv=v.createDecipheriv,_.listCiphers=_.getCiphers=function(){return Object.keys(m)}},6193:(W,_,y)=>{var x=y(2422),v=y(9509).Buffer,m=y(45),S=y(5969),a=y(1027),p=y(4497),c=y(3048);function l(h,u,w){a.call(this),this._cache=new f,this._last=void 0,this._cipher=new p.AES(u),this._prev=v.from(w),this._mode=h,this._autopadding=!0}function f(){this.cache=v.allocUnsafe(0)}function g(h,u,w){var b=m[h.toLowerCase()];if(!b)throw new TypeError("invalid suite type");if(typeof w=="string"&&(w=v.from(w)),b.mode!=="GCM"&&w.length!==b.iv)throw new TypeError("invalid iv length "+w.length);if(typeof u=="string"&&(u=v.from(u)),u.length!==b.key/8)throw new TypeError("invalid key length "+u.length);return b.type==="stream"?new S(b.module,u,w,!0):b.type==="auth"?new x(b.module,u,w,!0):new l(b.module,u,w)}y(5717)(l,a),l.prototype._update=function(h){var u,w;this._cache.add(h);for(var b=[];u=this._cache.get(this._autopadding);)w=this._mode.decrypt(this,u),b.push(w);return v.concat(b)},l.prototype._final=function(){var h=this._cache.flush();if(this._autopadding)return function(u){var w=u[15];if(w<1||w>16)throw new Error("unable to decrypt data");for(var b=-1;++b<w;)if(u[b+(16-w)]!==w)throw new Error("unable to decrypt data");if(w!==16)return u.slice(0,16-w)}(this._mode.decrypt(this,h));if(h)throw new Error("data not multiple of block length")},l.prototype.setAutoPadding=function(h){return this._autopadding=!!h,this},f.prototype.add=function(h){this.cache=v.concat([this.cache,h])},f.prototype.get=function(h){var u;if(h){if(this.cache.length>16)return u=this.cache.slice(0,16),this.cache=this.cache.slice(16),u}else if(this.cache.length>=16)return u=this.cache.slice(0,16),this.cache=this.cache.slice(16),u;return null},f.prototype.flush=function(){if(this.cache.length)return this.cache},_.createDecipher=function(h,u){var w=m[h.toLowerCase()];if(!w)throw new TypeError("invalid suite type");var b=c(u,!1,w.key,w.iv);return g(h,b.key,b.iv)},_.createDecipheriv=g},1494:(W,_,y)=>{var x=y(45),v=y(2422),m=y(9509).Buffer,S=y(5969),a=y(1027),p=y(4497),c=y(3048);function l(u,w,b){a.call(this),this._cache=new g,this._cipher=new p.AES(w),this._prev=m.from(b),this._mode=u,this._autopadding=!0}y(5717)(l,a),l.prototype._update=function(u){var w,b;this._cache.add(u);for(var E=[];w=this._cache.get();)b=this._mode.encrypt(this,w),E.push(b);return m.concat(E)};var f=m.alloc(16,16);function g(){this.cache=m.allocUnsafe(0)}function h(u,w,b){var E=x[u.toLowerCase()];if(!E)throw new TypeError("invalid suite type");if(typeof w=="string"&&(w=m.from(w)),w.length!==E.key/8)throw new TypeError("invalid key length "+w.length);if(typeof b=="string"&&(b=m.from(b)),E.mode!=="GCM"&&b.length!==E.iv)throw new TypeError("invalid iv length "+b.length);return E.type==="stream"?new S(E.module,w,b):E.type==="auth"?new v(E.module,w,b):new l(E.module,w,b)}l.prototype._final=function(){var u=this._cache.flush();if(this._autopadding)return u=this._mode.encrypt(this,u),this._cipher.scrub(),u;if(!u.equals(f))throw this._cipher.scrub(),new Error("data not multiple of block length")},l.prototype.setAutoPadding=function(u){return this._autopadding=!!u,this},g.prototype.add=function(u){this.cache=m.concat([this.cache,u])},g.prototype.get=function(){if(this.cache.length>15){var u=this.cache.slice(0,16);return this.cache=this.cache.slice(16),u}return null},g.prototype.flush=function(){for(var u=16-this.cache.length,w=m.allocUnsafe(u),b=-1;++b<u;)w.writeUInt8(u,b);return m.concat([this.cache,w])},_.createCipheriv=h,_.createCipher=function(u,w){var b=x[u.toLowerCase()];if(!b)throw new TypeError("invalid suite type");var E=c(w,!1,b.key,b.iv);return h(u,E.key,E.iv)}},3288:(W,_,y)=>{var x=y(9509).Buffer,v=x.alloc(16,0);function m(a){var p=x.allocUnsafe(16);return p.writeUInt32BE(a[0]>>>0,0),p.writeUInt32BE(a[1]>>>0,4),p.writeUInt32BE(a[2]>>>0,8),p.writeUInt32BE(a[3]>>>0,12),p}function S(a){this.h=a,this.state=x.alloc(16,0),this.cache=x.allocUnsafe(0)}S.prototype.ghash=function(a){for(var p=-1;++p<a.length;)this.state[p]^=a[p];this._multiply()},S.prototype._multiply=function(){for(var a,p,c,l=[(a=this.h).readUInt32BE(0),a.readUInt32BE(4),a.readUInt32BE(8),a.readUInt32BE(12)],f=[0,0,0,0],g=-1;++g<128;){for(this.state[~~(g/8)]&1<<7-g%8&&(f[0]^=l[0],f[1]^=l[1],f[2]^=l[2],f[3]^=l[3]),c=(1&l[3])!=0,p=3;p>0;p--)l[p]=l[p]>>>1|(1&l[p-1])<<31;l[0]=l[0]>>>1,c&&(l[0]=l[0]^-520093696)}this.state=m(f)},S.prototype.update=function(a){var p;for(this.cache=x.concat([this.cache,a]);this.cache.length>=16;)p=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(p)},S.prototype.final=function(a,p){return this.cache.length&&this.ghash(x.concat([this.cache,v],16)),this.ghash(m([0,a,0,p])),this.state},W.exports=S},685:W=>{W.exports=function(_){for(var y,x=_.length;x--;){if((y=_.readUInt8(x))!==255){y++,_.writeUInt8(y,x);break}_.writeUInt8(0,x)}}},5292:(W,_,y)=>{var x=y(7295);_.encrypt=function(v,m){var S=x(m,v._prev);return v._prev=v._cipher.encryptBlock(S),v._prev},_.decrypt=function(v,m){var S=v._prev;v._prev=m;var a=v._cipher.decryptBlock(m);return x(a,S)}},6311:(W,_,y)=>{var x=y(9509).Buffer,v=y(7295);function m(S,a,p){var c=a.length,l=v(a,S._cache);return S._cache=S._cache.slice(c),S._prev=x.concat([S._prev,p?a:l]),l}_.encrypt=function(S,a,p){for(var c,l=x.allocUnsafe(0);a.length;){if(S._cache.length===0&&(S._cache=S._cipher.encryptBlock(S._prev),S._prev=x.allocUnsafe(0)),!(S._cache.length<=a.length)){l=x.concat([l,m(S,a,p)]);break}c=S._cache.length,l=x.concat([l,m(S,a.slice(0,c),p)]),a=a.slice(c)}return l}},1510:(W,_,y)=>{var x=y(9509).Buffer;function v(S,a,p){for(var c,l,f=-1,g=0;++f<8;)c=a&1<<7-f?128:0,g+=(128&(l=S._cipher.encryptBlock(S._prev)[0]^c))>>f%8,S._prev=m(S._prev,p?c:l);return g}function m(S,a){var p=S.length,c=-1,l=x.allocUnsafe(S.length);for(S=x.concat([S,x.from([a])]);++c<p;)l[c]=S[c]<<1|S[c+1]>>7;return l}_.encrypt=function(S,a,p){for(var c=a.length,l=x.allocUnsafe(c),f=-1;++f<c;)l[f]=v(S,a[f],p);return l}},1964:(W,_,y)=>{var x=y(9509).Buffer;function v(m,S,a){var p=m._cipher.encryptBlock(m._prev)[0]^S;return m._prev=x.concat([m._prev.slice(1),x.from([a?S:p])]),p}_.encrypt=function(m,S,a){for(var p=S.length,c=x.allocUnsafe(p),l=-1;++l<p;)c[l]=v(m,S[l],a);return c}},6009:(W,_,y)=>{var x=y(7295),v=y(9509).Buffer,m=y(685);function S(a){var p=a._cipher.encryptBlockRaw(a._prev);return m(a._prev),p}_.encrypt=function(a,p){var c=Math.ceil(p.length/16),l=a._cache.length;a._cache=v.concat([a._cache,v.allocUnsafe(16*c)]);for(var f=0;f<c;f++){var g=S(a),h=l+16*f;a._cache.writeUInt32BE(g[0],h+0),a._cache.writeUInt32BE(g[1],h+4),a._cache.writeUInt32BE(g[2],h+8),a._cache.writeUInt32BE(g[3],h+12)}var u=a._cache.slice(0,p.length);return a._cache=a._cache.slice(p.length),x(p,u)}},1084:(W,_)=>{_.encrypt=function(y,x){return y._cipher.encryptBlock(x)},_.decrypt=function(y,x){return y._cipher.decryptBlock(x)}},45:(W,_,y)=>{var x={ECB:y(1084),CBC:y(5292),CFB:y(6311),CFB8:y(1964),CFB1:y(1510),OFB:y(8861),CTR:y(6009),GCM:y(6009)},v=y(4946);for(var m in v)v[m].module=x[v[m].mode];W.exports=v},8861:(W,_,y)=>{var x=y(8764).Buffer,v=y(7295);function m(S){return S._prev=S._cipher.encryptBlock(S._prev),S._prev}_.encrypt=function(S,a){for(;S._cache.length<a.length;)S._cache=x.concat([S._cache,m(S)]);var p=S._cache.slice(0,a.length);return S._cache=S._cache.slice(a.length),v(a,p)}},5969:(W,_,y)=>{var x=y(4497),v=y(9509).Buffer,m=y(1027);function S(a,p,c,l){m.call(this),this._cipher=new x.AES(p),this._prev=v.from(c),this._cache=v.allocUnsafe(0),this._secCache=v.allocUnsafe(0),this._decrypt=l,this._mode=a}y(5717)(S,m),S.prototype._update=function(a){return this._mode.encrypt(this,a,this._decrypt)},S.prototype._final=function(){this._cipher.scrub()},W.exports=S},3614:(W,_,y)=>{var x=y(7667),v=y(4696),m=y(45),S=y(9715),a=y(3048);function p(l,f,g){if(l=l.toLowerCase(),m[l])return v.createCipheriv(l,f,g);if(S[l])return new x({key:f,iv:g,mode:l});throw new TypeError("invalid suite type")}function c(l,f,g){if(l=l.toLowerCase(),m[l])return v.createDecipheriv(l,f,g);if(S[l])return new x({key:f,iv:g,mode:l,decrypt:!0});throw new TypeError("invalid suite type")}_.createCipher=_.Cipher=function(l,f){var g,h;if(l=l.toLowerCase(),m[l])g=m[l].key,h=m[l].iv;else{if(!S[l])throw new TypeError("invalid suite type");g=8*S[l].key,h=S[l].iv}var u=a(f,!1,g,h);return p(l,u.key,u.iv)},_.createCipheriv=_.Cipheriv=p,_.createDecipher=_.Decipher=function(l,f){var g,h;if(l=l.toLowerCase(),m[l])g=m[l].key,h=m[l].iv;else{if(!S[l])throw new TypeError("invalid suite type");g=8*S[l].key,h=S[l].iv}var u=a(f,!1,g,h);return c(l,u.key,u.iv)},_.createDecipheriv=_.Decipheriv=c,_.listCiphers=_.getCiphers=function(){return Object.keys(S).concat(v.getCiphers())}},7667:(W,_,y)=>{var x=y(1027),v=y(5251),m=y(5717),S=y(9509).Buffer,a={"des-ede3-cbc":v.CBC.instantiate(v.EDE),"des-ede3":v.EDE,"des-ede-cbc":v.CBC.instantiate(v.EDE),"des-ede":v.EDE,"des-cbc":v.CBC.instantiate(v.DES),"des-ecb":v.DES};function p(c){x.call(this);var l,f=c.mode.toLowerCase(),g=a[f];l=c.decrypt?"decrypt":"encrypt";var h=c.key;S.isBuffer(h)||(h=S.from(h)),f!=="des-ede"&&f!=="des-ede-cbc"||(h=S.concat([h,h.slice(0,8)]));var u=c.iv;S.isBuffer(u)||(u=S.from(u)),this._des=g.create({key:h,iv:u,type:l})}a.des=a["des-cbc"],a.des3=a["des-ede3-cbc"],W.exports=p,m(p,x),p.prototype._update=function(c){return S.from(this._des.update(c))},p.prototype._final=function(){return S.from(this._des.final())}},9715:(W,_)=>{_["des-ecb"]={key:8,iv:0},_["des-cbc"]=_.des={key:8,iv:8},_["des-ede3-cbc"]=_.des3={key:24,iv:8},_["des-ede3"]={key:24,iv:0},_["des-ede-cbc"]={key:16,iv:8},_["des-ede"]={key:16,iv:0}},3663:(W,_,y)=>{var x=y(8764).Buffer,v=y(3550),m=y(1798);function S(p){var c,l=p.modulus.byteLength();do c=new v(m(l));while(c.cmp(p.modulus)>=0||!c.umod(p.prime1)||!c.umod(p.prime2));return c}function a(p,c){var l=function(P){var N=S(P);return{blinder:N.toRed(v.mont(P.modulus)).redPow(new v(P.publicExponent)).fromRed(),unblinder:N.invm(P.modulus)}}(c),f=c.modulus.byteLength(),g=new v(p).mul(l.blinder).umod(c.modulus),h=g.toRed(v.mont(c.prime1)),u=g.toRed(v.mont(c.prime2)),w=c.coefficient,b=c.prime1,E=c.prime2,I=h.redPow(c.exponent1).fromRed(),M=u.redPow(c.exponent2).fromRed(),B=I.isub(M).imul(w).umod(b).imul(E);return M.iadd(B).imul(l.unblinder).umod(c.modulus).toArrayLike(x,"be",f)}a.getr=S,W.exports=a},6042:(W,_,y)=>{W.exports=y(5207)},4743:(W,_,y)=>{var x=y(9509).Buffer,v=y(3482),m=y(8473),S=y(5717),a=y(2957),p=y(7753),c=y(5207);function l(u){m.Writable.call(this);var w=c[u];if(!w)throw new Error("Unknown message digest");this._hashType=w.hash,this._hash=v(w.hash),this._tag=w.id,this._signType=w.sign}function f(u){m.Writable.call(this);var w=c[u];if(!w)throw new Error("Unknown message digest");this._hash=v(w.hash),this._tag=w.id,this._signType=w.sign}function g(u){return new l(u)}function h(u){return new f(u)}Object.keys(c).forEach(function(u){c[u].id=x.from(c[u].id,"hex"),c[u.toLowerCase()]=c[u]}),S(l,m.Writable),l.prototype._write=function(u,w,b){this._hash.update(u),b()},l.prototype.update=function(u,w){return typeof u=="string"&&(u=x.from(u,w)),this._hash.update(u),this},l.prototype.sign=function(u,w){this.end();var b=this._hash.digest(),E=a(b,u,this._hashType,this._signType,this._tag);return w?E.toString(w):E},S(f,m.Writable),f.prototype._write=function(u,w,b){this._hash.update(u),b()},f.prototype.update=function(u,w){return typeof u=="string"&&(u=x.from(u,w)),this._hash.update(u),this},f.prototype.verify=function(u,w,b){typeof w=="string"&&(w=x.from(w,b)),this.end();var E=this._hash.digest();return p(w,E,u,this._signType,this._tag)},W.exports={Sign:g,Verify:h,createSign:g,createVerify:h}},2957:(W,_,y)=>{var x=y(9509).Buffer,v=y(8355),m=y(3663),S=y(6266).ec,a=y(3550),p=y(980),c=y(1308);function l(u,w,b,E){if((u=x.from(u.toArray())).length<w.byteLength()){var I=x.alloc(w.byteLength()-u.length);u=x.concat([I,u])}var M=b.length,B=function($,et){$=($=f($,et)).mod(et);var Q=x.from($.toArray());if(Q.length<et.byteLength()){var ot=x.alloc(et.byteLength()-Q.length);Q=x.concat([ot,Q])}return Q}(b,w),P=x.alloc(M);P.fill(1);var N=x.alloc(M);return N=v(E,N).update(P).update(x.from([0])).update(u).update(B).digest(),P=v(E,N).update(P).digest(),{k:N=v(E,N).update(P).update(x.from([1])).update(u).update(B).digest(),v:P=v(E,N).update(P).digest()}}function f(u,w){var b=new a(u),E=(u.length<<3)-w.bitLength();return E>0&&b.ishrn(E),b}function g(u,w,b){var E,I;do{for(E=x.alloc(0);8*E.length<u.bitLength();)w.v=v(b,w.k).update(w.v).digest(),E=x.concat([E,w.v]);I=f(E,u),w.k=v(b,w.k).update(w.v).update(x.from([0])).digest(),w.v=v(b,w.k).update(w.v).digest()}while(I.cmp(u)!==-1);return I}function h(u,w,b,E){return u.toRed(a.mont(b)).redPow(w).fromRed().mod(E)}W.exports=function(u,w,b,E,I){var M=p(w);if(M.curve){if(E!=="ecdsa"&&E!=="ecdsa/rsa")throw new Error("wrong private key type");return function($,et){var Q=c[et.curve.join(".")];if(!Q)throw new Error("unknown curve "+et.curve.join("."));var ot=new S(Q).keyFromPrivate(et.privateKey).sign($);return x.from(ot.toDER())}(u,M)}if(M.type==="dsa"){if(E!=="dsa")throw new Error("wrong private key type");return function($,et,Q){for(var ot,t=et.params.priv_key,n=et.params.p,r=et.params.q,i=et.params.g,e=new a(0),o=f($,r).mod(r),s=!1,A=l(t,r,$,Q);s===!1;)e=h(i,ot=g(r,A,Q),n,r),(s=ot.invm(r).imul(o.add(t.mul(e))).mod(r)).cmpn(0)===0&&(s=!1,e=new a(0));return function(C,j){C=C.toArray(),j=j.toArray(),128&C[0]&&(C=[0].concat(C)),128&j[0]&&(j=[0].concat(j));var T=[48,C.length+j.length+4,2,C.length];return T=T.concat(C,[2,j.length],j),x.from(T)}(e,s)}(u,M,b)}if(E!=="rsa"&&E!=="ecdsa/rsa")throw new Error("wrong private key type");u=x.concat([I,u]);for(var B=M.modulus.byteLength(),P=[0,1];u.length+P.length+1<B;)P.push(255);P.push(0);for(var N=-1;++N<u.length;)P.push(u[N]);return m(P,M)},W.exports.getKey=l,W.exports.makeKey=g},7753:(W,_,y)=>{var x=y(9509).Buffer,v=y(3550),m=y(6266).ec,S=y(980),a=y(1308);function p(c,l){if(c.cmpn(0)<=0)throw new Error("invalid sig");if(c.cmp(l)>=l)throw new Error("invalid sig")}W.exports=function(c,l,f,g,h){var u=S(f);if(u.type==="ec"){if(g!=="ecdsa"&&g!=="ecdsa/rsa")throw new Error("wrong public key type");return function(P,N,$){var et=a[$.data.algorithm.curve.join(".")];if(!et)throw new Error("unknown curve "+$.data.algorithm.curve.join("."));var Q=new m(et),ot=$.data.subjectPrivateKey.data;return Q.verify(N,P,ot)}(c,l,u)}if(u.type==="dsa"){if(g!=="dsa")throw new Error("wrong public key type");return function(P,N,$){var et=$.data.p,Q=$.data.q,ot=$.data.g,t=$.data.pub_key,n=S.signature.decode(P,"der"),r=n.s,i=n.r;p(r,Q),p(i,Q);var e=v.mont(et),o=r.invm(Q);return ot.toRed(e).redPow(new v(N).mul(o).mod(Q)).fromRed().mul(t.toRed(e).redPow(i.mul(o).mod(Q)).fromRed()).mod(et).mod(Q).cmp(i)===0}(c,l,u)}if(g!=="rsa"&&g!=="ecdsa/rsa")throw new Error("wrong public key type");l=x.concat([h,l]);for(var w=u.modulus.byteLength(),b=[1],E=0;l.length+b.length+2<w;)b.push(255),E++;b.push(0);for(var I=-1;++I<l.length;)b.push(l[I]);b=x.from(b);var M=v.mont(u.modulus);c=(c=new v(c).toRed(M)).redPow(new v(u.publicExponent)),c=x.from(c.fromRed().toArray());var B=E<8?1:0;for(w=Math.min(c.length,b.length),c.length!==b.length&&(B=1),I=-1;++I<w;)B|=c[I]^b[I];return B===0}},2779:(W,_,y)=>{var x=y(8764).Buffer,v=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];function m(p){if(x.isBuffer(p))return p;var c=typeof x.alloc=="function"&&typeof x.from=="function";if(typeof p=="number")return c?x.alloc(p):new x(p);if(typeof p=="string")return c?x.from(p):new x(p);throw new Error("input must be buffer, number, or string, received "+typeof p)}function S(p,c){p=m(p),x.isBuffer(c)&&(c=c.readUInt32BE(0));for(var l=-1^~~c,f=0;f<p.length;f++)l=v[255&(l^p[f])]^l>>>8;return-1^l}function a(){return p=S.apply(null,arguments),(c=m(4)).writeInt32BE(p,0),c;var p,c}typeof Int32Array<"u"&&(v=new Int32Array(v)),a.signed=function(){return S.apply(null,arguments)},a.unsigned=function(){return S.apply(null,arguments)>>>0},W.exports=a},7295:(W,_,y)=>{var x=y(8764).Buffer;W.exports=function(v,m){for(var S=Math.min(v.length,m.length),a=new x(S),p=0;p<S;++p)a[p]=v[p]^m[p];return a}},8764:(W,_,y)=>{var x=y(5108);const v=y(9742),m=y(645),S=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;_.Buffer=c,_.SlowBuffer=function(J){return+J!=J&&(J=0),c.alloc(+J)},_.INSPECT_MAX_BYTES=50;const a=2147483647;function p(J){if(J>a)throw new RangeError('The value "'+J+'" is invalid for option "size"');const tt=new Uint8Array(J);return Object.setPrototypeOf(tt,c.prototype),tt}function c(J,tt,F){if(typeof J=="number"){if(typeof tt=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return g(J)}return l(J,tt,F)}function l(J,tt,F){if(typeof J=="string")return function(it,pt){if(typeof pt=="string"&&pt!==""||(pt="utf8"),!c.isEncoding(pt))throw new TypeError("Unknown encoding: "+pt);const ft=0|b(it,pt);let mt=p(ft);const re=mt.write(it,pt);return re!==ft&&(mt=mt.slice(0,re)),mt}(J,tt);if(ArrayBuffer.isView(J))return function(it){if(gt(it,Uint8Array)){const pt=new Uint8Array(it);return u(pt.buffer,pt.byteOffset,pt.byteLength)}return h(it)}(J);if(J==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof J);if(gt(J,ArrayBuffer)||J&>(J.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(gt(J,SharedArrayBuffer)||J&>(J.buffer,SharedArrayBuffer)))return u(J,tt,F);if(typeof J=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const H=J.valueOf&&J.valueOf();if(H!=null&&H!==J)return c.from(H,tt,F);const U=function(it){if(c.isBuffer(it)){const pt=0|w(it.length),ft=p(pt);return ft.length===0||it.copy(ft,0,0,pt),ft}return it.length!==void 0?typeof it.length!="number"||bt(it.length)?p(0):h(it):it.type==="Buffer"&&Array.isArray(it.data)?h(it.data):void 0}(J);if(U)return U;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof J[Symbol.toPrimitive]=="function")return c.from(J[Symbol.toPrimitive]("string"),tt,F);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof J)}function f(J){if(typeof J!="number")throw new TypeError('"size" argument must be of type number');if(J<0)throw new RangeError('The value "'+J+'" is invalid for option "size"')}function g(J){return f(J),p(J<0?0:0|w(J))}function h(J){const tt=J.length<0?0:0|w(J.length),F=p(tt);for(let H=0;H<tt;H+=1)F[H]=255&J[H];return F}function u(J,tt,F){if(tt<0||J.byteLength<tt)throw new RangeError('"offset" is outside of buffer bounds');if(J.byteLength<tt+(F||0))throw new RangeError('"length" is outside of buffer bounds');let H;return H=tt===void 0&&F===void 0?new Uint8Array(J):F===void 0?new Uint8Array(J,tt):new Uint8Array(J,tt,F),Object.setPrototypeOf(H,c.prototype),H}function w(J){if(J>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|J}function b(J,tt){if(c.isBuffer(J))return J.length;if(ArrayBuffer.isView(J)||gt(J,ArrayBuffer))return J.byteLength;if(typeof J!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof J);const F=J.length,H=arguments.length>2&&arguments[2]===!0;if(!H&&F===0)return 0;let U=!1;for(;;)switch(tt){case"ascii":case"latin1":case"binary":return F;case"utf8":case"utf-8":return nt(J).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*F;case"hex":return F>>>1;case"base64":return ht(J).length;default:if(U)return H?-1:nt(J).length;tt=(""+tt).toLowerCase(),U=!0}}function E(J,tt,F){let H=!1;if((tt===void 0||tt<0)&&(tt=0),tt>this.length||((F===void 0||F>this.length)&&(F=this.length),F<=0)||(F>>>=0)<=(tt>>>=0))return"";for(J||(J="utf8");;)switch(J){case"hex":return e(this,tt,F);case"utf8":case"utf-8":return t(this,tt,F);case"ascii":return r(this,tt,F);case"latin1":case"binary":return i(this,tt,F);case"base64":return ot(this,tt,F);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return o(this,tt,F);default:if(H)throw new TypeError("Unknown encoding: "+J);J=(J+"").toLowerCase(),H=!0}}function I(J,tt,F){const H=J[tt];J[tt]=J[F],J[F]=H}function M(J,tt,F,H,U){if(J.length===0)return-1;if(typeof F=="string"?(H=F,F=0):F>2147483647?F=2147483647:F<-2147483648&&(F=-2147483648),bt(F=+F)&&(F=U?0:J.length-1),F<0&&(F=J.length+F),F>=J.length){if(U)return-1;F=J.length-1}else if(F<0){if(!U)return-1;F=0}if(typeof tt=="string"&&(tt=c.from(tt,H)),c.isBuffer(tt))return tt.length===0?-1:B(J,tt,F,H,U);if(typeof tt=="number")return tt&=255,typeof Uint8Array.prototype.indexOf=="function"?U?Uint8Array.prototype.indexOf.call(J,tt,F):Uint8Array.prototype.lastIndexOf.call(J,tt,F):B(J,[tt],F,H,U);throw new TypeError("val must be string, number or Buffer")}function B(J,tt,F,H,U){let it,pt=1,ft=J.length,mt=tt.length;if(H!==void 0&&((H=String(H).toLowerCase())==="ucs2"||H==="ucs-2"||H==="utf16le"||H==="utf-16le")){if(J.length<2||tt.length<2)return-1;pt=2,ft/=2,mt/=2,F/=2}function re(_t,At){return pt===1?_t[At]:_t.readUInt16BE(At*pt)}if(U){let _t=-1;for(it=F;it<ft;it++)if(re(J,it)===re(tt,_t===-1?0:it-_t)){if(_t===-1&&(_t=it),it-_t+1===mt)return _t*pt}else _t!==-1&&(it-=it-_t),_t=-1}else for(F+mt>ft&&(F=ft-mt),it=F;it>=0;it--){let _t=!0;for(let At=0;At<mt;At++)if(re(J,it+At)!==re(tt,At)){_t=!1;break}if(_t)return it}return-1}function P(J,tt,F,H){F=Number(F)||0;const U=J.length-F;H?(H=Number(H))>U&&(H=U):H=U;const it=tt.length;let pt;for(H>it/2&&(H=it/2),pt=0;pt<H;++pt){const ft=parseInt(tt.substr(2*pt,2),16);if(bt(ft))return pt;J[F+pt]=ft}return pt}function N(J,tt,F,H){return Et(nt(tt,J.length-F),J,F,H)}function $(J,tt,F,H){return Et(function(U){const it=[];for(let pt=0;pt<U.length;++pt)it.push(255&U.charCodeAt(pt));return it}(tt),J,F,H)}function et(J,tt,F,H){return Et(ht(tt),J,F,H)}function Q(J,tt,F,H){return Et(function(U,it){let pt,ft,mt;const re=[];for(let _t=0;_t<U.length&&!((it-=2)<0);++_t)pt=U.charCodeAt(_t),ft=pt>>8,mt=pt%256,re.push(mt),re.push(ft);return re}(tt,J.length-F),J,F,H)}function ot(J,tt,F){return tt===0&&F===J.length?v.fromByteArray(J):v.fromByteArray(J.slice(tt,F))}function t(J,tt,F){F=Math.min(J.length,F);const H=[];let U=tt;for(;U<F;){const it=J[U];let pt=null,ft=it>239?4:it>223?3:it>191?2:1;if(U+ft<=F){let mt,re,_t,At;switch(ft){case 1:it<128&&(pt=it);break;case 2:mt=J[U+1],(192&mt)==128&&(At=(31&it)<<6|63&mt,At>127&&(pt=At));break;case 3:mt=J[U+1],re=J[U+2],(192&mt)==128&&(192&re)==128&&(At=(15&it)<<12|(63&mt)<<6|63&re,At>2047&&(At<55296||At>57343)&&(pt=At));break;case 4:mt=J[U+1],re=J[U+2],_t=J[U+3],(192&mt)==128&&(192&re)==128&&(192&_t)==128&&(At=(15&it)<<18|(63&mt)<<12|(63&re)<<6|63&_t,At>65535&&At<1114112&&(pt=At))}}pt===null?(pt=65533,ft=1):pt>65535&&(pt-=65536,H.push(pt>>>10&1023|55296),pt=56320|1023&pt),H.push(pt),U+=ft}return function(it){const pt=it.length;if(pt<=n)return String.fromCharCode.apply(String,it);let ft="",mt=0;for(;mt<pt;)ft+=String.fromCharCode.apply(String,it.slice(mt,mt+=n));return ft}(H)}_.kMaxLength=a,c.TYPED_ARRAY_SUPPORT=function(){try{const J=new Uint8Array(1),tt={foo:function(){return 42}};return Object.setPrototypeOf(tt,Uint8Array.prototype),Object.setPrototypeOf(J,tt),J.foo()===42}catch{return!1}}(),c.TYPED_ARRAY_SUPPORT||x===void 0||typeof x.error!="function"||x.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(J,tt,F){return l(J,tt,F)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(J,tt,F){return function(H,U,it){return f(H),H<=0?p(H):U!==void 0?typeof it=="string"?p(H).fill(U,it):p(H).fill(U):p(H)}(J,tt,F)},c.allocUnsafe=function(J){return g(J)},c.allocUnsafeSlow=function(J){return g(J)},c.isBuffer=function(J){return J!=null&&J._isBuffer===!0&&J!==c.prototype},c.compare=function(J,tt){if(gt(J,Uint8Array)&&(J=c.from(J,J.offset,J.byteLength)),gt(tt,Uint8Array)&&(tt=c.from(tt,tt.offset,tt.byteLength)),!c.isBuffer(J)||!c.isBuffer(tt))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(J===tt)return 0;let F=J.length,H=tt.length;for(let U=0,it=Math.min(F,H);U<it;++U)if(J[U]!==tt[U]){F=J[U],H=tt[U];break}return F<H?-1:H<F?1:0},c.isEncoding=function(J){switch(String(J).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(J,tt){if(!Array.isArray(J))throw new TypeError('"list" argument must be an Array of Buffers');if(J.length===0)return c.alloc(0);let F;if(tt===void 0)for(tt=0,F=0;F<J.length;++F)tt+=J[F].length;const H=c.allocUnsafe(tt);let U=0;for(F=0;F<J.length;++F){let it=J[F];if(gt(it,Uint8Array))U+it.length>H.length?(c.isBuffer(it)||(it=c.from(it)),it.copy(H,U)):Uint8Array.prototype.set.call(H,it,U);else{if(!c.isBuffer(it))throw new TypeError('"list" argument must be an Array of Buffers');it.copy(H,U)}U+=it.length}return H},c.byteLength=b,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const J=this.length;if(J%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let tt=0;tt<J;tt+=2)I(this,tt,tt+1);return this},c.prototype.swap32=function(){const J=this.length;if(J%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let tt=0;tt<J;tt+=4)I(this,tt,tt+3),I(this,tt+1,tt+2);return this},c.prototype.swap64=function(){const J=this.length;if(J%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let tt=0;tt<J;tt+=8)I(this,tt,tt+7),I(this,tt+1,tt+6),I(this,tt+2,tt+5),I(this,tt+3,tt+4);return this},c.prototype.toString=function(){const J=this.length;return J===0?"":arguments.length===0?t(this,0,J):E.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(J){if(!c.isBuffer(J))throw new TypeError("Argument must be a Buffer");return this===J||c.compare(this,J)===0},c.prototype.inspect=function(){let J="";const tt=_.INSPECT_MAX_BYTES;return J=this.toString("hex",0,tt).replace(/(.{2})/g,"$1 ").trim(),this.length>tt&&(J+=" ... "),"<Buffer "+J+">"},S&&(c.prototype[S]=c.prototype.inspect),c.prototype.compare=function(J,tt,F,H,U){if(gt(J,Uint8Array)&&(J=c.from(J,J.offset,J.byteLength)),!c.isBuffer(J))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof J);if(tt===void 0&&(tt=0),F===void 0&&(F=J?J.length:0),H===void 0&&(H=0),U===void 0&&(U=this.length),tt<0||F>J.length||H<0||U>this.length)throw new RangeError("out of range index");if(H>=U&&tt>=F)return 0;if(H>=U)return-1;if(tt>=F)return 1;if(this===J)return 0;let it=(U>>>=0)-(H>>>=0),pt=(F>>>=0)-(tt>>>=0);const ft=Math.min(it,pt),mt=this.slice(H,U),re=J.slice(tt,F);for(let _t=0;_t<ft;++_t)if(mt[_t]!==re[_t]){it=mt[_t],pt=re[_t];break}return it<pt?-1:pt<it?1:0},c.prototype.includes=function(J,tt,F){return this.indexOf(J,tt,F)!==-1},c.prototype.indexOf=function(J,tt,F){return M(this,J,tt,F,!0)},c.prototype.lastIndexOf=function(J,tt,F){return M(this,J,tt,F,!1)},c.prototype.write=function(J,tt,F,H){if(tt===void 0)H="utf8",F=this.length,tt=0;else if(F===void 0&&typeof tt=="string")H=tt,F=this.length,tt=0;else{if(!isFinite(tt))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");tt>>>=0,isFinite(F)?(F>>>=0,H===void 0&&(H="utf8")):(H=F,F=void 0)}const U=this.length-tt;if((F===void 0||F>U)&&(F=U),J.length>0&&(F<0||tt<0)||tt>this.length)throw new RangeError("Attempt to write outside buffer bounds");H||(H="utf8");let it=!1;for(;;)switch(H){case"hex":return P(this,J,tt,F);case"utf8":case"utf-8":return N(this,J,tt,F);case"ascii":case"latin1":case"binary":return $(this,J,tt,F);case"base64":return et(this,J,tt,F);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q(this,J,tt,F);default:if(it)throw new TypeError("Unknown encoding: "+H);H=(""+H).toLowerCase(),it=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const n=4096;function r(J,tt,F){let H="";F=Math.min(J.length,F);for(let U=tt;U<F;++U)H+=String.fromCharCode(127&J[U]);return H}function i(J,tt,F){let H="";F=Math.min(J.length,F);for(let U=tt;U<F;++U)H+=String.fromCharCode(J[U]);return H}function e(J,tt,F){const H=J.length;(!tt||tt<0)&&(tt=0),(!F||F<0||F>H)&&(F=H);let U="";for(let it=tt;it<F;++it)U+=Bt[J[it]];return U}function o(J,tt,F){const H=J.slice(tt,F);let U="";for(let it=0;it<H.length-1;it+=2)U+=String.fromCharCode(H[it]+256*H[it+1]);return U}function s(J,tt,F){if(J%1!=0||J<0)throw new RangeError("offset is not uint");if(J+tt>F)throw new RangeError("Trying to access beyond buffer length")}function A(J,tt,F,H,U,it){if(!c.isBuffer(J))throw new TypeError('"buffer" argument must be a Buffer instance');if(tt>U||tt<it)throw new RangeError('"value" argument is out of bounds');if(F+H>J.length)throw new RangeError("Index out of range")}function C(J,tt,F,H,U){G(tt,H,U,J,F,7);let it=Number(tt&BigInt(4294967295));J[F++]=it,it>>=8,J[F++]=it,it>>=8,J[F++]=it,it>>=8,J[F++]=it;let pt=Number(tt>>BigInt(32)&BigInt(4294967295));return J[F++]=pt,pt>>=8,J[F++]=pt,pt>>=8,J[F++]=pt,pt>>=8,J[F++]=pt,F}function j(J,tt,F,H,U){G(tt,H,U,J,F,7);let it=Number(tt&BigInt(4294967295));J[F+7]=it,it>>=8,J[F+6]=it,it>>=8,J[F+5]=it,it>>=8,J[F+4]=it;let pt=Number(tt>>BigInt(32)&BigInt(4294967295));return J[F+3]=pt,pt>>=8,J[F+2]=pt,pt>>=8,J[F+1]=pt,pt>>=8,J[F]=pt,F+8}function T(J,tt,F,H,U,it){if(F+H>J.length)throw new RangeError("Index out of range");if(F<0)throw new RangeError("Index out of range")}function R(J,tt,F,H,U){return tt=+tt,F>>>=0,U||T(J,0,F,4),m.write(J,tt,F,H,23,4),F+4}function q(J,tt,F,H,U){return tt=+tt,F>>>=0,U||T(J,0,F,8),m.write(J,tt,F,H,52,8),F+8}c.prototype.slice=function(J,tt){const F=this.length;(J=~~J)<0?(J+=F)<0&&(J=0):J>F&&(J=F),(tt=tt===void 0?F:~~tt)<0?(tt+=F)<0&&(tt=0):tt>F&&(tt=F),tt<J&&(tt=J);const H=this.subarray(J,tt);return Object.setPrototypeOf(H,c.prototype),H},c.prototype.readUintLE=c.prototype.readUIntLE=function(J,tt,F){J>>>=0,tt>>>=0,F||s(J,tt,this.length);let H=this[J],U=1,it=0;for(;++it<tt&&(U*=256);)H+=this[J+it]*U;return H},c.prototype.readUintBE=c.prototype.readUIntBE=function(J,tt,F){J>>>=0,tt>>>=0,F||s(J,tt,this.length);let H=this[J+--tt],U=1;for(;tt>0&&(U*=256);)H+=this[J+--tt]*U;return H},c.prototype.readUint8=c.prototype.readUInt8=function(J,tt){return J>>>=0,tt||s(J,1,this.length),this[J]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(J,tt){return J>>>=0,tt||s(J,2,this.length),this[J]|this[J+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(J,tt){return J>>>=0,tt||s(J,2,this.length),this[J]<<8|this[J+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(J,tt){return J>>>=0,tt||s(J,4,this.length),(this[J]|this[J+1]<<8|this[J+2]<<16)+16777216*this[J+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(J,tt){return J>>>=0,tt||s(J,4,this.length),16777216*this[J]+(this[J+1]<<16|this[J+2]<<8|this[J+3])},c.prototype.readBigUInt64LE=Mt(function(J){z(J>>>=0,"offset");const tt=this[J],F=this[J+7];tt!==void 0&&F!==void 0||X(J,this.length-8);const H=tt+256*this[++J]+65536*this[++J]+this[++J]*vn(2,24),U=this[++J]+256*this[++J]+65536*this[++J]+F*vn(2,24);return BigInt(H)+(BigInt(U)<<BigInt(32))}),c.prototype.readBigUInt64BE=Mt(function(J){z(J>>>=0,"offset");const tt=this[J],F=this[J+7];tt!==void 0&&F!==void 0||X(J,this.length-8);const H=tt*vn(2,24)+65536*this[++J]+256*this[++J]+this[++J],U=this[++J]*vn(2,24)+65536*this[++J]+256*this[++J]+F;return(BigInt(H)<<BigInt(32))+BigInt(U)}),c.prototype.readIntLE=function(J,tt,F){J>>>=0,tt>>>=0,F||s(J,tt,this.length);let H=this[J],U=1,it=0;for(;++it<tt&&(U*=256);)H+=this[J+it]*U;return U*=128,H>=U&&(H-=Math.pow(2,8*tt)),H},c.prototype.readIntBE=function(J,tt,F){J>>>=0,tt>>>=0,F||s(J,tt,this.length);let H=tt,U=1,it=this[J+--H];for(;H>0&&(U*=256);)it+=this[J+--H]*U;return U*=128,it>=U&&(it-=Math.pow(2,8*tt)),it},c.prototype.readInt8=function(J,tt){return J>>>=0,tt||s(J,1,this.length),128&this[J]?-1*(255-this[J]+1):this[J]},c.prototype.readInt16LE=function(J,tt){J>>>=0,tt||s(J,2,this.length);const F=this[J]|this[J+1]<<8;return 32768&F?4294901760|F:F},c.prototype.readInt16BE=function(J,tt){J>>>=0,tt||s(J,2,this.length);const F=this[J+1]|this[J]<<8;return 32768&F?4294901760|F:F},c.prototype.readInt32LE=function(J,tt){return J>>>=0,tt||s(J,4,this.length),this[J]|this[J+1]<<8|this[J+2]<<16|this[J+3]<<24},c.prototype.readInt32BE=function(J,tt){return J>>>=0,tt||s(J,4,this.length),this[J]<<24|this[J+1]<<16|this[J+2]<<8|this[J+3]},c.prototype.readBigInt64LE=Mt(function(J){z(J>>>=0,"offset");const tt=this[J],F=this[J+7];tt!==void 0&&F!==void 0||X(J,this.length-8);const H=this[J+4]+256*this[J+5]+65536*this[J+6]+(F<<24);return(BigInt(H)<<BigInt(32))+BigInt(tt+256*this[++J]+65536*this[++J]+this[++J]*16777216)}),c.prototype.readBigInt64BE=Mt(function(J){z(J>>>=0,"offset");const tt=this[J],F=this[J+7];tt!==void 0&&F!==void 0||X(J,this.length-8);const H=(tt<<24)+65536*this[++J]+256*this[++J]+this[++J];return(BigInt(H)<<BigInt(32))+BigInt(this[++J]*16777216+65536*this[++J]+256*this[++J]+F)}),c.prototype.readFloatLE=function(J,tt){return J>>>=0,tt||s(J,4,this.length),m.read(this,J,!0,23,4)},c.prototype.readFloatBE=function(J,tt){return J>>>=0,tt||s(J,4,this.length),m.read(this,J,!1,23,4)},c.prototype.readDoubleLE=function(J,tt){return J>>>=0,tt||s(J,8,this.length),m.read(this,J,!0,52,8)},c.prototype.readDoubleBE=function(J,tt){return J>>>=0,tt||s(J,8,this.length),m.read(this,J,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(J,tt,F,H){J=+J,tt>>>=0,F>>>=0,H||A(this,J,tt,F,Math.pow(2,8*F)-1,0);let U=1,it=0;for(this[tt]=255&J;++it<F&&(U*=256);)this[tt+it]=J/U&255;return tt+F},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(J,tt,F,H){J=+J,tt>>>=0,F>>>=0,H||A(this,J,tt,F,Math.pow(2,8*F)-1,0);let U=F-1,it=1;for(this[tt+U]=255&J;--U>=0&&(it*=256);)this[tt+U]=J/it&255;return tt+F},c.prototype.writeUint8=c.prototype.writeUInt8=function(J,tt,F){return J=+J,tt>>>=0,F||A(this,J,tt,1,255,0),this[tt]=255&J,tt+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(J,tt,F){return J=+J,tt>>>=0,F||A(this,J,tt,2,65535,0),this[tt]=255&J,this[tt+1]=J>>>8,tt+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(J,tt,F){return J=+J,tt>>>=0,F||A(this,J,tt,2,65535,0),this[tt]=J>>>8,this[tt+1]=255&J,tt+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(J,tt,F){return J=+J,tt>>>=0,F||A(this,J,tt,4,4294967295,0),this[tt+3]=J>>>24,this[tt+2]=J>>>16,this[tt+1]=J>>>8,this[tt]=255&J,tt+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(J,tt,F){return J=+J,tt>>>=0,F||A(this,J,tt,4,4294967295,0),this[tt]=J>>>24,this[tt+1]=J>>>16,this[tt+2]=J>>>8,this[tt+3]=255&J,tt+4},c.prototype.writeBigUInt64LE=Mt(function(J,tt=0){return C(this,J,tt,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=Mt(function(J,tt=0){return j(this,J,tt,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(J,tt,F,H){if(J=+J,tt>>>=0,!H){const ft=Math.pow(2,8*F-1);A(this,J,tt,F,ft-1,-ft)}let U=0,it=1,pt=0;for(this[tt]=255&J;++U<F&&(it*=256);)J<0&&pt===0&&this[tt+U-1]!==0&&(pt=1),this[tt+U]=(J/it>>0)-pt&255;return tt+F},c.prototype.writeIntBE=function(J,tt,F,H){if(J=+J,tt>>>=0,!H){const ft=Math.pow(2,8*F-1);A(this,J,tt,F,ft-1,-ft)}let U=F-1,it=1,pt=0;for(this[tt+U]=255&J;--U>=0&&(it*=256);)J<0&&pt===0&&this[tt+U+1]!==0&&(pt=1),this[tt+U]=(J/it>>0)-pt&255;return tt+F},c.prototype.writeInt8=function(J,tt,F){return J=+J,tt>>>=0,F||A(this,J,tt,1,127,-128),J<0&&(J=255+J+1),this[tt]=255&J,tt+1},c.prototype.writeInt16LE=function(J,tt,F){return J=+J,tt>>>=0,F||A(this,J,tt,2,32767,-32768),this[tt]=255&J,this[tt+1]=J>>>8,tt+2},c.prototype.writeInt16BE=function(J,tt,F){return J=+J,tt>>>=0,F||A(this,J,tt,2,32767,-32768),this[tt]=J>>>8,this[tt+1]=255&J,tt+2},c.prototype.writeInt32LE=function(J,tt,F){return J=+J,tt>>>=0,F||A(this,J,tt,4,2147483647,-2147483648),this[tt]=255&J,this[tt+1]=J>>>8,this[tt+2]=J>>>16,this[tt+3]=J>>>24,tt+4},c.prototype.writeInt32BE=function(J,tt,F){return J=+J,tt>>>=0,F||A(this,J,tt,4,2147483647,-2147483648),J<0&&(J=4294967295+J+1),this[tt]=J>>>24,this[tt+1]=J>>>16,this[tt+2]=J>>>8,this[tt+3]=255&J,tt+4},c.prototype.writeBigInt64LE=Mt(function(J,tt=0){return C(this,J,tt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=Mt(function(J,tt=0){return j(this,J,tt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeFloatLE=function(J,tt,F){return R(this,J,tt,!0,F)},c.prototype.writeFloatBE=function(J,tt,F){return R(this,J,tt,!1,F)},c.prototype.writeDoubleLE=function(J,tt,F){return q(this,J,tt,!0,F)},c.prototype.writeDoubleBE=function(J,tt,F){return q(this,J,tt,!1,F)},c.prototype.copy=function(J,tt,F,H){if(!c.isBuffer(J))throw new TypeError("argument should be a Buffer");if(F||(F=0),H||H===0||(H=this.length),tt>=J.length&&(tt=J.length),tt||(tt=0),H>0&&H<F&&(H=F),H===F||J.length===0||this.length===0)return 0;if(tt<0)throw new RangeError("targetStart out of bounds");if(F<0||F>=this.length)throw new RangeError("Index out of range");if(H<0)throw new RangeError("sourceEnd out of bounds");H>this.length&&(H=this.length),J.length-tt<H-F&&(H=J.length-tt+F);const U=H-F;return this===J&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(tt,F,H):Uint8Array.prototype.set.call(J,this.subarray(F,H),tt),U},c.prototype.fill=function(J,tt,F,H){if(typeof J=="string"){if(typeof tt=="string"?(H=tt,tt=0,F=this.length):typeof F=="string"&&(H=F,F=this.length),H!==void 0&&typeof H!="string")throw new TypeError("encoding must be a string");if(typeof H=="string"&&!c.isEncoding(H))throw new TypeError("Unknown encoding: "+H);if(J.length===1){const it=J.charCodeAt(0);(H==="utf8"&&it<128||H==="latin1")&&(J=it)}}else typeof J=="number"?J&=255:typeof J=="boolean"&&(J=Number(J));if(tt<0||this.length<tt||this.length<F)throw new RangeError("Out of range index");if(F<=tt)return this;let U;if(tt>>>=0,F=F===void 0?this.length:F>>>0,J||(J=0),typeof J=="number")for(U=tt;U<F;++U)this[U]=J;else{const it=c.isBuffer(J)?J:c.from(J,H),pt=it.length;if(pt===0)throw new TypeError('The value "'+J+'" is invalid for argument "value"');for(U=0;U<F-tt;++U)this[U+tt]=it[U%pt]}return this};const Z={};function rt(J,tt,F){Z[J]=class extends F{constructor(){super(),Object.defineProperty(this,"message",{value:tt.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${J}]`,this.stack,delete this.name}get code(){return J}set code(H){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:H,writable:!0})}toString(){return`${this.name} [${J}]: ${this.message}`}}}function D(J){let tt="",F=J.length;const H=J[0]==="-"?1:0;for(;F>=H+4;F-=3)tt=`_${J.slice(F-3,F)}${tt}`;return`${J.slice(0,F)}${tt}`}function G(J,tt,F,H,U,it){if(J>F||J<tt){const pt=typeof tt=="bigint"?"n":"";let ft;throw ft=it>3?tt===0||tt===BigInt(0)?`>= 0${pt} and < 2${pt} ** ${8*(it+1)}${pt}`:`>= -(2${pt} ** ${8*(it+1)-1}${pt}) and < 2 ** ${8*(it+1)-1}${pt}`:`>= ${tt}${pt} and <= ${F}${pt}`,new Z.ERR_OUT_OF_RANGE("value",ft,J)}(function(pt,ft,mt){z(ft,"offset"),pt[ft]!==void 0&&pt[ft+mt]!==void 0||X(ft,pt.length-(mt+1))})(H,U,it)}function z(J,tt){if(typeof J!="number")throw new Z.ERR_INVALID_ARG_TYPE(tt,"number",J)}function X(J,tt,F){throw Math.floor(J)!==J?(z(J,F),new Z.ERR_OUT_OF_RANGE(F||"offset","an integer",J)):tt<0?new Z.ERR_BUFFER_OUT_OF_BOUNDS:new Z.ERR_OUT_OF_RANGE(F||"offset",`>= ${F?1:0} and <= ${tt}`,J)}rt("ERR_BUFFER_OUT_OF_BOUNDS",function(J){return J?`${J} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),rt("ERR_INVALID_ARG_TYPE",function(J,tt){return`The "${J}" argument must be of type number. Received type ${typeof tt}`},TypeError),rt("ERR_OUT_OF_RANGE",function(J,tt,F){let H=`The value of "${J}" is out of range.`,U=F;return Number.isInteger(F)&&Math.abs(F)>4294967296?U=D(String(F)):typeof F=="bigint"&&(U=String(F),(F>vn(BigInt(2),BigInt(32))||F<-vn(BigInt(2),BigInt(32)))&&(U=D(U)),U+="n"),H+=` It must be ${tt}. Received ${U}`,H},RangeError);const st=/[^+/0-9A-Za-z-_]/g;function nt(J,tt){let F;tt=tt||1/0;const H=J.length;let U=null;const it=[];for(let pt=0;pt<H;++pt){if(F=J.charCodeAt(pt),F>55295&&F<57344){if(!U){if(F>56319){(tt-=3)>-1&&it.push(239,191,189);continue}if(pt+1===H){(tt-=3)>-1&&it.push(239,191,189);continue}U=F;continue}if(F<56320){(tt-=3)>-1&&it.push(239,191,189),U=F;continue}F=65536+(U-55296<<10|F-56320)}else U&&(tt-=3)>-1&&it.push(239,191,189);if(U=null,F<128){if((tt-=1)<0)break;it.push(F)}else if(F<2048){if((tt-=2)<0)break;it.push(F>>6|192,63&F|128)}else if(F<65536){if((tt-=3)<0)break;it.push(F>>12|224,F>>6&63|128,63&F|128)}else{if(!(F<1114112))throw new Error("Invalid code point");if((tt-=4)<0)break;it.push(F>>18|240,F>>12&63|128,F>>6&63|128,63&F|128)}}return it}function ht(J){return v.toByteArray(function(tt){if((tt=(tt=tt.split("=")[0]).trim().replace(st,"")).length<2)return"";for(;tt.length%4!=0;)tt+="=";return tt}(J))}function Et(J,tt,F,H){let U;for(U=0;U<H&&!(U+F>=tt.length||U>=J.length);++U)tt[U+F]=J[U];return U}function gt(J,tt){return J instanceof tt||J!=null&&J.constructor!=null&&J.constructor.name!=null&&J.constructor.name===tt.name}function bt(J){return J!=J}const Bt=function(){const J="0123456789abcdef",tt=new Array(256);for(let F=0;F<16;++F){const H=16*F;for(let U=0;U<16;++U)tt[H+U]=J[F]+J[U]}return tt}();function Mt(J){return typeof BigInt>"u"?It:J}function It(){throw new Error("BigInt not supported")}},584:W=>{W.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},1924:(W,_,y)=>{var x=y(210),v=y(5559),m=v(x("String.prototype.indexOf"));W.exports=function(S,a){var p=x(S,!!a);return typeof p=="function"&&m(S,".prototype.")>-1?v(p):p}},5559:(W,_,y)=>{var x=y(8612),v=y(210),m=v("%Function.prototype.apply%"),S=v("%Function.prototype.call%"),a=v("%Reflect.apply%",!0)||x.call(S,m),p=v("%Object.getOwnPropertyDescriptor%",!0),c=v("%Object.defineProperty%",!0),l=v("%Math.max%");if(c)try{c({},"a",{value:1})}catch{c=null}W.exports=function(g){var h=a(x,S,arguments);return p&&c&&p(h,"length").configurable&&c(h,"length",{value:1+l(0,g.length-(arguments.length-1))}),h};var f=function(){return a(x,m,arguments)};c?c(W.exports,"apply",{value:f}):W.exports.apply=f},1027:(W,_,y)=>{var x=y(9509).Buffer,v=y(2830).Transform,m=y(2553).s;function S(a){v.call(this),this.hashMode=typeof a=="string",this.hashMode?this[a]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}y(5717)(S,v),S.prototype.update=function(a,p,c){typeof a=="string"&&(a=x.from(a,p));var l=this._update(a);return this.hashMode?this:(c&&(l=this._toString(l,c)),l)},S.prototype.setAutoPadding=function(){},S.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},S.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},S.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},S.prototype._transform=function(a,p,c){var l;try{this.hashMode?this._update(a):this.push(this._update(a))}catch(f){l=f}finally{c(l)}},S.prototype._flush=function(a){var p;try{this.push(this.__final())}catch(c){p=c}a(p)},S.prototype._finalOrDigest=function(a){var p=this.__final()||x.alloc(0);return a&&(p=this._toString(p,a,!0)),p},S.prototype._toString=function(a,p,c){if(this._decoder||(this._decoder=new m(p),this._encoding=p),this._encoding!==p)throw new Error("can't switch encodings");var l=this._decoder.write(a);return c&&(l+=this._decoder.end()),l},W.exports=S},5108:(W,_,y)=>{var x=y(9539),v=y(9282);function m(){return new Date().getTime()}var S,a=Array.prototype.slice,p={};S=y.g!==void 0&&y.g.console?y.g.console:typeof window<"u"&&window.console?window.console:{};for(var c=[[function(){},"log"],[function(){S.log.apply(S,arguments)},"info"],[function(){S.log.apply(S,arguments)},"warn"],[function(){S.warn.apply(S,arguments)},"error"],[function(u){p[u]=m()},"time"],[function(u){var w=p[u];if(!w)throw new Error("No such label: "+u);delete p[u];var b=m()-w;S.log(u+": "+b+"ms")},"timeEnd"],[function(){var u=new Error;u.name="Trace",u.message=x.format.apply(null,arguments),S.error(u.stack)},"trace"],[function(u){S.log(x.inspect(u)+`
|
|
69
|
+
`)},"dir"],[function(u){if(!u){var w=a.call(arguments,1);v.ok(!1,x.format.apply(null,w))}},"assert"]],l=0;l<c.length;l++){var f=c[l],g=f[0],h=f[1];S[h]||(S[h]=g)}W.exports=S},6393:(W,_,y)=>{var x=y(8764).Buffer,v=y(6266),m=y(6426);W.exports=function(c){return new a(c)};var S={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function a(c){this.curveType=S[c],this.curveType||(this.curveType={name:c}),this.curve=new v.ec(this.curveType.name),this.keys=void 0}function p(c,l,f){Array.isArray(c)||(c=c.toArray());var g=new x(c);if(f&&g.length<f){var h=new x(f-g.length);h.fill(0),g=x.concat([h,g])}return l?g.toString(l):g}S.p224=S.secp224r1,S.p256=S.secp256r1=S.prime256v1,S.p192=S.secp192r1=S.prime192v1,S.p384=S.secp384r1,S.p521=S.secp521r1,a.prototype.generateKeys=function(c,l){return this.keys=this.curve.genKeyPair(),this.getPublicKey(c,l)},a.prototype.computeSecret=function(c,l,f){return l=l||"utf8",x.isBuffer(c)||(c=new x(c,l)),p(this.curve.keyFromPublic(c).getPublic().mul(this.keys.getPrivate()).getX(),f,this.curveType.byteLength)},a.prototype.getPublicKey=function(c,l){var f=this.keys.getPublic(l==="compressed",!0);return l==="hybrid"&&(f[f.length-1]%2?f[0]=7:f[0]=6),p(f,c)},a.prototype.getPrivateKey=function(c){return p(this.keys.getPrivate(),c)},a.prototype.setPublicKey=function(c,l){return l=l||"utf8",x.isBuffer(c)||(c=new x(c,l)),this.keys._importPublic(c),this},a.prototype.setPrivateKey=function(c,l){l=l||"utf8",x.isBuffer(c)||(c=new x(c,l));var f=new m(c);return f=f.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(f),this}},6426:function(W,_,y){(function(x,v){function m(t,n){if(!t)throw new Error(n||"Assertion failed")}function S(t,n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t}function a(t,n,r){if(a.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,t!==null&&(n!=="le"&&n!=="be"||(r=n,n=10),this._init(t||0,n||10,r||"be"))}var p;typeof x=="object"?x.exports=a:v.BN=a,a.BN=a,a.wordSize=26;try{p=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:y(8623).Buffer}catch{}function c(t,n){var r=t.charCodeAt(n);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function l(t,n,r){var i=c(t,r);return r-1>=n&&(i|=c(t,r-1)<<4),i}function f(t,n,r,i){for(var e=0,o=Math.min(t.length,r),s=n;s<o;s++){var A=t.charCodeAt(s)-48;e*=i,e+=A>=49?A-49+10:A>=17?A-17+10:A}return e}a.isBN=function(t){return t instanceof a||t!==null&&typeof t=="object"&&t.constructor.wordSize===a.wordSize&&Array.isArray(t.words)},a.max=function(t,n){return t.cmp(n)>0?t:n},a.min=function(t,n){return t.cmp(n)<0?t:n},a.prototype._init=function(t,n,r){if(typeof t=="number")return this._initNumber(t,n,r);if(typeof t=="object")return this._initArray(t,n,r);n==="hex"&&(n=16),m(n===(0|n)&&n>=2&&n<=36);var i=0;(t=t.toString().replace(/\s+/g,""))[0]==="-"&&(i++,this.negative=1),i<t.length&&(n===16?this._parseHex(t,i,r):(this._parseBase(t,n,i),r==="le"&&this._initArray(this.toArray(),n,r)))},a.prototype._initNumber=function(t,n,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(m(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),r==="le"&&this._initArray(this.toArray(),n,r)},a.prototype._initArray=function(t,n,r){if(m(typeof t.length=="number"),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var e,o,s=0;if(r==="be")for(i=t.length-1,e=0;i>=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[e]|=o<<s&67108863,this.words[e+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,e++);else if(r==="le")for(i=0,e=0;i<t.length;i+=3)o=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[e]|=o<<s&67108863,this.words[e+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,e++);return this.strip()},a.prototype._parseHex=function(t,n,r){this.length=Math.ceil((t.length-n)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var e,o=0,s=0;if(r==="be")for(i=t.length-1;i>=n;i-=2)e=l(t,n,i)<<o,this.words[s]|=67108863&e,o>=18?(o-=18,s+=1,this.words[s]|=e>>>26):o+=8;else for(i=(t.length-n)%2==0?n+1:n;i<t.length;i+=2)e=l(t,n,i)<<o,this.words[s]|=67108863&e,o>=18?(o-=18,s+=1,this.words[s]|=e>>>26):o+=8;this.strip()},a.prototype._parseBase=function(t,n,r){this.words=[0],this.length=1;for(var i=0,e=1;e<=67108863;e*=n)i++;i--,e=e/n|0;for(var o=t.length-r,s=o%i,A=Math.min(o,o-s)+r,C=0,j=r;j<A;j+=i)C=f(t,j,j+i,n),this.imuln(e),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C);if(s!==0){var T=1;for(C=f(t,j,t.length,n),j=0;j<s;j++)T*=n;this.imuln(T),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C)}this.strip()},a.prototype.copy=function(t){t.words=new Array(this.length);for(var n=0;n<this.length;n++)t.words[n]=this.words[n];t.length=this.length,t.negative=this.negative,t.red=this.red},a.prototype.clone=function(){var t=new a(null);return this.copy(t),t},a.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var g=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],u=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function w(t,n,r){r.negative=n.negative^t.negative;var i=t.length+n.length|0;r.length=i,i=i-1|0;var e=0|t.words[0],o=0|n.words[0],s=e*o,A=67108863&s,C=s/67108864|0;r.words[0]=A;for(var j=1;j<i;j++){for(var T=C>>>26,R=67108863&C,q=Math.min(j,n.length-1),Z=Math.max(0,j-t.length+1);Z<=q;Z++){var rt=j-Z|0;T+=(s=(e=0|t.words[rt])*(o=0|n.words[Z])+R)/67108864|0,R=67108863&s}r.words[j]=0|R,C=0|T}return C!==0?r.words[j]=0|C:r.length--,r.strip()}a.prototype.toString=function(t,n){var r;if(n=0|n||1,(t=t||10)===16||t==="hex"){r="";for(var i=0,e=0,o=0;o<this.length;o++){var s=this.words[o],A=(16777215&(s<<i|e)).toString(16);r=(e=s>>>24-i&16777215)!=0||o!==this.length-1?g[6-A.length]+A+r:A+r,(i+=2)>=26&&(i-=26,o--)}for(e!==0&&(r=e.toString(16)+r);r.length%n!=0;)r="0"+r;return this.negative!==0&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var C=h[t],j=u[t];r="";var T=this.clone();for(T.negative=0;!T.isZero();){var R=T.modn(j).toString(t);r=(T=T.idivn(j)).isZero()?R+r:g[C-R.length]+R+r}for(this.isZero()&&(r="0"+r);r.length%n!=0;)r="0"+r;return this.negative!==0&&(r="-"+r),r}m(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var t=this.words[0];return this.length===2?t+=67108864*this.words[1]:this.length===3&&this.words[2]===1?t+=4503599627370496+67108864*this.words[1]:this.length>2&&m(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,n){return m(p!==void 0),this.toArrayLike(p,t,n)},a.prototype.toArray=function(t,n){return this.toArrayLike(Array,t,n)},a.prototype.toArrayLike=function(t,n,r){var i=this.byteLength(),e=r||Math.max(1,i);m(i<=e,"byte array longer than desired length"),m(e>0,"Requested array length <= 0"),this.strip();var o,s,A=n==="le",C=new t(e),j=this.clone();if(A){for(s=0;!j.isZero();s++)o=j.andln(255),j.iushrn(8),C[s]=o;for(;s<e;s++)C[s]=0}else{for(s=0;s<e-i;s++)C[s]=0;for(s=0;!j.isZero();s++)o=j.andln(255),j.iushrn(8),C[e-s-1]=o}return C},Math.clz32?a.prototype._countBits=function(t){return 32-Math.clz32(t)}:a.prototype._countBits=function(t){var n=t,r=0;return n>=4096&&(r+=13,n>>>=13),n>=64&&(r+=7,n>>>=7),n>=8&&(r+=4,n>>>=4),n>=2&&(r+=2,n>>>=2),r+n},a.prototype._zeroBits=function(t){if(t===0)return 26;var n=t,r=0;return!(8191&n)&&(r+=13,n>>>=13),!(127&n)&&(r+=7,n>>>=7),!(15&n)&&(r+=4,n>>>=4),!(3&n)&&(r+=2,n>>>=2),!(1&n)&&r++,r},a.prototype.bitLength=function(){var t=this.words[this.length-1],n=this._countBits(t);return 26*(this.length-1)+n},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,n=0;n<this.length;n++){var r=this._zeroBits(this.words[n]);if(t+=r,r!==26)break}return t},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(t){return this.negative!==0?this.abs().inotn(t).iaddn(1):this.clone()},a.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]|t.words[n];return this.strip()},a.prototype.ior=function(t){return m((this.negative|t.negative)==0),this.iuor(t)},a.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var n;n=this.length>t.length?t:this;for(var r=0;r<n.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=n.length,this.strip()},a.prototype.iand=function(t){return m((this.negative|t.negative)==0),this.iuand(t)},a.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var n,r;this.length>t.length?(n=this,r=t):(n=t,r=this);for(var i=0;i<r.length;i++)this.words[i]=n.words[i]^r.words[i];if(this!==n)for(;i<n.length;i++)this.words[i]=n.words[i];return this.length=n.length,this.strip()},a.prototype.ixor=function(t){return m((this.negative|t.negative)==0),this.iuxor(t)},a.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){m(typeof t=="number"&&t>=0);var n=0|Math.ceil(t/26),r=t%26;this._expand(n),r>0&&n--;for(var i=0;i<n;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,n){m(typeof t=="number"&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=n?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},a.prototype.iadd=function(t){var n,r,i;if(this.negative!==0&&t.negative===0)return this.negative=0,n=this.isub(t),this.negative^=1,this._normSign();if(this.negative===0&&t.negative!==0)return t.negative=0,n=this.isub(t),t.negative=1,n._normSign();this.length>t.length?(r=this,i=t):(r=t,i=this);for(var e=0,o=0;o<i.length;o++)n=(0|r.words[o])+(0|i.words[o])+e,this.words[o]=67108863&n,e=n>>>26;for(;e!==0&&o<r.length;o++)n=(0|r.words[o])+e,this.words[o]=67108863&n,e=n>>>26;if(this.length=r.length,e!==0)this.words[this.length]=e,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},a.prototype.add=function(t){var n;return t.negative!==0&&this.negative===0?(t.negative=0,n=this.sub(t),t.negative^=1,n):t.negative===0&&this.negative!==0?(this.negative=0,n=t.sub(this),this.negative=1,n):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(t.negative!==0){t.negative=0;var n=this.iadd(t);return t.negative=1,n._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,i,e=this.cmp(t);if(e===0)return this.negative=0,this.length=1,this.words[0]=0,this;e>0?(r=this,i=t):(r=t,i=this);for(var o=0,s=0;s<i.length;s++)o=(n=(0|r.words[s])-(0|i.words[s])+o)>>26,this.words[s]=67108863&n;for(;o!==0&&s<r.length;s++)o=(n=(0|r.words[s])+o)>>26,this.words[s]=67108863&n;if(o===0&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(t){return this.clone().isub(t)};var b=function(t,n,r){var i,e,o,s=t.words,A=n.words,C=r.words,j=0,T=0|s[0],R=8191&T,q=T>>>13,Z=0|s[1],rt=8191&Z,D=Z>>>13,G=0|s[2],z=8191&G,X=G>>>13,st=0|s[3],nt=8191&st,ht=st>>>13,Et=0|s[4],gt=8191&Et,bt=Et>>>13,Bt=0|s[5],Mt=8191&Bt,It=Bt>>>13,J=0|s[6],tt=8191&J,F=J>>>13,H=0|s[7],U=8191&H,it=H>>>13,pt=0|s[8],ft=8191&pt,mt=pt>>>13,re=0|s[9],_t=8191&re,At=re>>>13,fe=0|A[0],kt=8191&fe,Kt=fe>>>13,Ce=0|A[1],Pt=8191&Ce,Ht=Ce>>>13,je=0|A[2],Rt=8191&je,Wt=je>>>13,ye=0|A[3],Nt=8191&ye,Xt=ye>>>13,ke=0|A[4],jt=8191&ke,Zt=ke>>>13,Oe=0|A[5],Dt=8191&Oe,Jt=Oe>>>13,De=0|A[6],Lt=8191&De,Qt=De>>>13,ze=0|A[7],Ut=8191&ze,Yt=ze>>>13,$e=0|A[8],qt=8191&$e,ee=$e>>>13,He=0|A[9],Ft=8191&He,te=He>>>13;r.negative=t.negative^n.negative,r.length=19;var Ae=(j+(i=Math.imul(R,kt))|0)+((8191&(e=(e=Math.imul(R,Kt))+Math.imul(q,kt)|0))<<13)|0;j=((o=Math.imul(q,Kt))+(e>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,i=Math.imul(rt,kt),e=(e=Math.imul(rt,Kt))+Math.imul(D,kt)|0,o=Math.imul(D,Kt);var Re=(j+(i=i+Math.imul(R,Pt)|0)|0)+((8191&(e=(e=e+Math.imul(R,Ht)|0)+Math.imul(q,Pt)|0))<<13)|0;j=((o=o+Math.imul(q,Ht)|0)+(e>>>13)|0)+(Re>>>26)|0,Re&=67108863,i=Math.imul(z,kt),e=(e=Math.imul(z,Kt))+Math.imul(X,kt)|0,o=Math.imul(X,Kt),i=i+Math.imul(rt,Pt)|0,e=(e=e+Math.imul(rt,Ht)|0)+Math.imul(D,Pt)|0,o=o+Math.imul(D,Ht)|0;var Ke=(j+(i=i+Math.imul(R,Rt)|0)|0)+((8191&(e=(e=e+Math.imul(R,Wt)|0)+Math.imul(q,Rt)|0))<<13)|0;j=((o=o+Math.imul(q,Wt)|0)+(e>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,i=Math.imul(nt,kt),e=(e=Math.imul(nt,Kt))+Math.imul(ht,kt)|0,o=Math.imul(ht,Kt),i=i+Math.imul(z,Pt)|0,e=(e=e+Math.imul(z,Ht)|0)+Math.imul(X,Pt)|0,o=o+Math.imul(X,Ht)|0,i=i+Math.imul(rt,Rt)|0,e=(e=e+Math.imul(rt,Wt)|0)+Math.imul(D,Rt)|0,o=o+Math.imul(D,Wt)|0;var ai=(j+(i=i+Math.imul(R,Nt)|0)|0)+((8191&(e=(e=e+Math.imul(R,Xt)|0)+Math.imul(q,Nt)|0))<<13)|0;j=((o=o+Math.imul(q,Xt)|0)+(e>>>13)|0)+(ai>>>26)|0,ai&=67108863,i=Math.imul(gt,kt),e=(e=Math.imul(gt,Kt))+Math.imul(bt,kt)|0,o=Math.imul(bt,Kt),i=i+Math.imul(nt,Pt)|0,e=(e=e+Math.imul(nt,Ht)|0)+Math.imul(ht,Pt)|0,o=o+Math.imul(ht,Ht)|0,i=i+Math.imul(z,Rt)|0,e=(e=e+Math.imul(z,Wt)|0)+Math.imul(X,Rt)|0,o=o+Math.imul(X,Wt)|0,i=i+Math.imul(rt,Nt)|0,e=(e=e+Math.imul(rt,Xt)|0)+Math.imul(D,Nt)|0,o=o+Math.imul(D,Xt)|0;var ri=(j+(i=i+Math.imul(R,jt)|0)|0)+((8191&(e=(e=e+Math.imul(R,Zt)|0)+Math.imul(q,jt)|0))<<13)|0;j=((o=o+Math.imul(q,Zt)|0)+(e>>>13)|0)+(ri>>>26)|0,ri&=67108863,i=Math.imul(Mt,kt),e=(e=Math.imul(Mt,Kt))+Math.imul(It,kt)|0,o=Math.imul(It,Kt),i=i+Math.imul(gt,Pt)|0,e=(e=e+Math.imul(gt,Ht)|0)+Math.imul(bt,Pt)|0,o=o+Math.imul(bt,Ht)|0,i=i+Math.imul(nt,Rt)|0,e=(e=e+Math.imul(nt,Wt)|0)+Math.imul(ht,Rt)|0,o=o+Math.imul(ht,Wt)|0,i=i+Math.imul(z,Nt)|0,e=(e=e+Math.imul(z,Xt)|0)+Math.imul(X,Nt)|0,o=o+Math.imul(X,Xt)|0,i=i+Math.imul(rt,jt)|0,e=(e=e+Math.imul(rt,Zt)|0)+Math.imul(D,jt)|0,o=o+Math.imul(D,Zt)|0;var si=(j+(i=i+Math.imul(R,Dt)|0)|0)+((8191&(e=(e=e+Math.imul(R,Jt)|0)+Math.imul(q,Dt)|0))<<13)|0;j=((o=o+Math.imul(q,Jt)|0)+(e>>>13)|0)+(si>>>26)|0,si&=67108863,i=Math.imul(tt,kt),e=(e=Math.imul(tt,Kt))+Math.imul(F,kt)|0,o=Math.imul(F,Kt),i=i+Math.imul(Mt,Pt)|0,e=(e=e+Math.imul(Mt,Ht)|0)+Math.imul(It,Pt)|0,o=o+Math.imul(It,Ht)|0,i=i+Math.imul(gt,Rt)|0,e=(e=e+Math.imul(gt,Wt)|0)+Math.imul(bt,Rt)|0,o=o+Math.imul(bt,Wt)|0,i=i+Math.imul(nt,Nt)|0,e=(e=e+Math.imul(nt,Xt)|0)+Math.imul(ht,Nt)|0,o=o+Math.imul(ht,Xt)|0,i=i+Math.imul(z,jt)|0,e=(e=e+Math.imul(z,Zt)|0)+Math.imul(X,jt)|0,o=o+Math.imul(X,Zt)|0,i=i+Math.imul(rt,Dt)|0,e=(e=e+Math.imul(rt,Jt)|0)+Math.imul(D,Dt)|0,o=o+Math.imul(D,Jt)|0;var ui=(j+(i=i+Math.imul(R,Lt)|0)|0)+((8191&(e=(e=e+Math.imul(R,Qt)|0)+Math.imul(q,Lt)|0))<<13)|0;j=((o=o+Math.imul(q,Qt)|0)+(e>>>13)|0)+(ui>>>26)|0,ui&=67108863,i=Math.imul(U,kt),e=(e=Math.imul(U,Kt))+Math.imul(it,kt)|0,o=Math.imul(it,Kt),i=i+Math.imul(tt,Pt)|0,e=(e=e+Math.imul(tt,Ht)|0)+Math.imul(F,Pt)|0,o=o+Math.imul(F,Ht)|0,i=i+Math.imul(Mt,Rt)|0,e=(e=e+Math.imul(Mt,Wt)|0)+Math.imul(It,Rt)|0,o=o+Math.imul(It,Wt)|0,i=i+Math.imul(gt,Nt)|0,e=(e=e+Math.imul(gt,Xt)|0)+Math.imul(bt,Nt)|0,o=o+Math.imul(bt,Xt)|0,i=i+Math.imul(nt,jt)|0,e=(e=e+Math.imul(nt,Zt)|0)+Math.imul(ht,jt)|0,o=o+Math.imul(ht,Zt)|0,i=i+Math.imul(z,Dt)|0,e=(e=e+Math.imul(z,Jt)|0)+Math.imul(X,Dt)|0,o=o+Math.imul(X,Jt)|0,i=i+Math.imul(rt,Lt)|0,e=(e=e+Math.imul(rt,Qt)|0)+Math.imul(D,Lt)|0,o=o+Math.imul(D,Qt)|0;var ci=(j+(i=i+Math.imul(R,Ut)|0)|0)+((8191&(e=(e=e+Math.imul(R,Yt)|0)+Math.imul(q,Ut)|0))<<13)|0;j=((o=o+Math.imul(q,Yt)|0)+(e>>>13)|0)+(ci>>>26)|0,ci&=67108863,i=Math.imul(ft,kt),e=(e=Math.imul(ft,Kt))+Math.imul(mt,kt)|0,o=Math.imul(mt,Kt),i=i+Math.imul(U,Pt)|0,e=(e=e+Math.imul(U,Ht)|0)+Math.imul(it,Pt)|0,o=o+Math.imul(it,Ht)|0,i=i+Math.imul(tt,Rt)|0,e=(e=e+Math.imul(tt,Wt)|0)+Math.imul(F,Rt)|0,o=o+Math.imul(F,Wt)|0,i=i+Math.imul(Mt,Nt)|0,e=(e=e+Math.imul(Mt,Xt)|0)+Math.imul(It,Nt)|0,o=o+Math.imul(It,Xt)|0,i=i+Math.imul(gt,jt)|0,e=(e=e+Math.imul(gt,Zt)|0)+Math.imul(bt,jt)|0,o=o+Math.imul(bt,Zt)|0,i=i+Math.imul(nt,Dt)|0,e=(e=e+Math.imul(nt,Jt)|0)+Math.imul(ht,Dt)|0,o=o+Math.imul(ht,Jt)|0,i=i+Math.imul(z,Lt)|0,e=(e=e+Math.imul(z,Qt)|0)+Math.imul(X,Lt)|0,o=o+Math.imul(X,Qt)|0,i=i+Math.imul(rt,Ut)|0,e=(e=e+Math.imul(rt,Yt)|0)+Math.imul(D,Ut)|0,o=o+Math.imul(D,Yt)|0;var li=(j+(i=i+Math.imul(R,qt)|0)|0)+((8191&(e=(e=e+Math.imul(R,ee)|0)+Math.imul(q,qt)|0))<<13)|0;j=((o=o+Math.imul(q,ee)|0)+(e>>>13)|0)+(li>>>26)|0,li&=67108863,i=Math.imul(_t,kt),e=(e=Math.imul(_t,Kt))+Math.imul(At,kt)|0,o=Math.imul(At,Kt),i=i+Math.imul(ft,Pt)|0,e=(e=e+Math.imul(ft,Ht)|0)+Math.imul(mt,Pt)|0,o=o+Math.imul(mt,Ht)|0,i=i+Math.imul(U,Rt)|0,e=(e=e+Math.imul(U,Wt)|0)+Math.imul(it,Rt)|0,o=o+Math.imul(it,Wt)|0,i=i+Math.imul(tt,Nt)|0,e=(e=e+Math.imul(tt,Xt)|0)+Math.imul(F,Nt)|0,o=o+Math.imul(F,Xt)|0,i=i+Math.imul(Mt,jt)|0,e=(e=e+Math.imul(Mt,Zt)|0)+Math.imul(It,jt)|0,o=o+Math.imul(It,Zt)|0,i=i+Math.imul(gt,Dt)|0,e=(e=e+Math.imul(gt,Jt)|0)+Math.imul(bt,Dt)|0,o=o+Math.imul(bt,Jt)|0,i=i+Math.imul(nt,Lt)|0,e=(e=e+Math.imul(nt,Qt)|0)+Math.imul(ht,Lt)|0,o=o+Math.imul(ht,Qt)|0,i=i+Math.imul(z,Ut)|0,e=(e=e+Math.imul(z,Yt)|0)+Math.imul(X,Ut)|0,o=o+Math.imul(X,Yt)|0,i=i+Math.imul(rt,qt)|0,e=(e=e+Math.imul(rt,ee)|0)+Math.imul(D,qt)|0,o=o+Math.imul(D,ee)|0;var hi=(j+(i=i+Math.imul(R,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(R,te)|0)+Math.imul(q,Ft)|0))<<13)|0;j=((o=o+Math.imul(q,te)|0)+(e>>>13)|0)+(hi>>>26)|0,hi&=67108863,i=Math.imul(_t,Pt),e=(e=Math.imul(_t,Ht))+Math.imul(At,Pt)|0,o=Math.imul(At,Ht),i=i+Math.imul(ft,Rt)|0,e=(e=e+Math.imul(ft,Wt)|0)+Math.imul(mt,Rt)|0,o=o+Math.imul(mt,Wt)|0,i=i+Math.imul(U,Nt)|0,e=(e=e+Math.imul(U,Xt)|0)+Math.imul(it,Nt)|0,o=o+Math.imul(it,Xt)|0,i=i+Math.imul(tt,jt)|0,e=(e=e+Math.imul(tt,Zt)|0)+Math.imul(F,jt)|0,o=o+Math.imul(F,Zt)|0,i=i+Math.imul(Mt,Dt)|0,e=(e=e+Math.imul(Mt,Jt)|0)+Math.imul(It,Dt)|0,o=o+Math.imul(It,Jt)|0,i=i+Math.imul(gt,Lt)|0,e=(e=e+Math.imul(gt,Qt)|0)+Math.imul(bt,Lt)|0,o=o+Math.imul(bt,Qt)|0,i=i+Math.imul(nt,Ut)|0,e=(e=e+Math.imul(nt,Yt)|0)+Math.imul(ht,Ut)|0,o=o+Math.imul(ht,Yt)|0,i=i+Math.imul(z,qt)|0,e=(e=e+Math.imul(z,ee)|0)+Math.imul(X,qt)|0,o=o+Math.imul(X,ee)|0;var fi=(j+(i=i+Math.imul(rt,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(rt,te)|0)+Math.imul(D,Ft)|0))<<13)|0;j=((o=o+Math.imul(D,te)|0)+(e>>>13)|0)+(fi>>>26)|0,fi&=67108863,i=Math.imul(_t,Rt),e=(e=Math.imul(_t,Wt))+Math.imul(At,Rt)|0,o=Math.imul(At,Wt),i=i+Math.imul(ft,Nt)|0,e=(e=e+Math.imul(ft,Xt)|0)+Math.imul(mt,Nt)|0,o=o+Math.imul(mt,Xt)|0,i=i+Math.imul(U,jt)|0,e=(e=e+Math.imul(U,Zt)|0)+Math.imul(it,jt)|0,o=o+Math.imul(it,Zt)|0,i=i+Math.imul(tt,Dt)|0,e=(e=e+Math.imul(tt,Jt)|0)+Math.imul(F,Dt)|0,o=o+Math.imul(F,Jt)|0,i=i+Math.imul(Mt,Lt)|0,e=(e=e+Math.imul(Mt,Qt)|0)+Math.imul(It,Lt)|0,o=o+Math.imul(It,Qt)|0,i=i+Math.imul(gt,Ut)|0,e=(e=e+Math.imul(gt,Yt)|0)+Math.imul(bt,Ut)|0,o=o+Math.imul(bt,Yt)|0,i=i+Math.imul(nt,qt)|0,e=(e=e+Math.imul(nt,ee)|0)+Math.imul(ht,qt)|0,o=o+Math.imul(ht,ee)|0;var Je=(j+(i=i+Math.imul(z,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(z,te)|0)+Math.imul(X,Ft)|0))<<13)|0;j=((o=o+Math.imul(X,te)|0)+(e>>>13)|0)+(Je>>>26)|0,Je&=67108863,i=Math.imul(_t,Nt),e=(e=Math.imul(_t,Xt))+Math.imul(At,Nt)|0,o=Math.imul(At,Xt),i=i+Math.imul(ft,jt)|0,e=(e=e+Math.imul(ft,Zt)|0)+Math.imul(mt,jt)|0,o=o+Math.imul(mt,Zt)|0,i=i+Math.imul(U,Dt)|0,e=(e=e+Math.imul(U,Jt)|0)+Math.imul(it,Dt)|0,o=o+Math.imul(it,Jt)|0,i=i+Math.imul(tt,Lt)|0,e=(e=e+Math.imul(tt,Qt)|0)+Math.imul(F,Lt)|0,o=o+Math.imul(F,Qt)|0,i=i+Math.imul(Mt,Ut)|0,e=(e=e+Math.imul(Mt,Yt)|0)+Math.imul(It,Ut)|0,o=o+Math.imul(It,Yt)|0,i=i+Math.imul(gt,qt)|0,e=(e=e+Math.imul(gt,ee)|0)+Math.imul(bt,qt)|0,o=o+Math.imul(bt,ee)|0;var pi=(j+(i=i+Math.imul(nt,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(nt,te)|0)+Math.imul(ht,Ft)|0))<<13)|0;j=((o=o+Math.imul(ht,te)|0)+(e>>>13)|0)+(pi>>>26)|0,pi&=67108863,i=Math.imul(_t,jt),e=(e=Math.imul(_t,Zt))+Math.imul(At,jt)|0,o=Math.imul(At,Zt),i=i+Math.imul(ft,Dt)|0,e=(e=e+Math.imul(ft,Jt)|0)+Math.imul(mt,Dt)|0,o=o+Math.imul(mt,Jt)|0,i=i+Math.imul(U,Lt)|0,e=(e=e+Math.imul(U,Qt)|0)+Math.imul(it,Lt)|0,o=o+Math.imul(it,Qt)|0,i=i+Math.imul(tt,Ut)|0,e=(e=e+Math.imul(tt,Yt)|0)+Math.imul(F,Ut)|0,o=o+Math.imul(F,Yt)|0,i=i+Math.imul(Mt,qt)|0,e=(e=e+Math.imul(Mt,ee)|0)+Math.imul(It,qt)|0,o=o+Math.imul(It,ee)|0;var gi=(j+(i=i+Math.imul(gt,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(gt,te)|0)+Math.imul(bt,Ft)|0))<<13)|0;j=((o=o+Math.imul(bt,te)|0)+(e>>>13)|0)+(gi>>>26)|0,gi&=67108863,i=Math.imul(_t,Dt),e=(e=Math.imul(_t,Jt))+Math.imul(At,Dt)|0,o=Math.imul(At,Jt),i=i+Math.imul(ft,Lt)|0,e=(e=e+Math.imul(ft,Qt)|0)+Math.imul(mt,Lt)|0,o=o+Math.imul(mt,Qt)|0,i=i+Math.imul(U,Ut)|0,e=(e=e+Math.imul(U,Yt)|0)+Math.imul(it,Ut)|0,o=o+Math.imul(it,Yt)|0,i=i+Math.imul(tt,qt)|0,e=(e=e+Math.imul(tt,ee)|0)+Math.imul(F,qt)|0,o=o+Math.imul(F,ee)|0;var ei=(j+(i=i+Math.imul(Mt,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(Mt,te)|0)+Math.imul(It,Ft)|0))<<13)|0;j=((o=o+Math.imul(It,te)|0)+(e>>>13)|0)+(ei>>>26)|0,ei&=67108863,i=Math.imul(_t,Lt),e=(e=Math.imul(_t,Qt))+Math.imul(At,Lt)|0,o=Math.imul(At,Qt),i=i+Math.imul(ft,Ut)|0,e=(e=e+Math.imul(ft,Yt)|0)+Math.imul(mt,Ut)|0,o=o+Math.imul(mt,Yt)|0,i=i+Math.imul(U,qt)|0,e=(e=e+Math.imul(U,ee)|0)+Math.imul(it,qt)|0,o=o+Math.imul(it,ee)|0;var ii=(j+(i=i+Math.imul(tt,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(tt,te)|0)+Math.imul(F,Ft)|0))<<13)|0;j=((o=o+Math.imul(F,te)|0)+(e>>>13)|0)+(ii>>>26)|0,ii&=67108863,i=Math.imul(_t,Ut),e=(e=Math.imul(_t,Yt))+Math.imul(At,Ut)|0,o=Math.imul(At,Yt),i=i+Math.imul(ft,qt)|0,e=(e=e+Math.imul(ft,ee)|0)+Math.imul(mt,qt)|0,o=o+Math.imul(mt,ee)|0;var Ye=(j+(i=i+Math.imul(U,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(U,te)|0)+Math.imul(it,Ft)|0))<<13)|0;j=((o=o+Math.imul(it,te)|0)+(e>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,i=Math.imul(_t,qt),e=(e=Math.imul(_t,ee))+Math.imul(At,qt)|0,o=Math.imul(At,ee);var di=(j+(i=i+Math.imul(ft,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(ft,te)|0)+Math.imul(mt,Ft)|0))<<13)|0;j=((o=o+Math.imul(mt,te)|0)+(e>>>13)|0)+(di>>>26)|0,di&=67108863;var ni=(j+(i=Math.imul(_t,Ft))|0)+((8191&(e=(e=Math.imul(_t,te))+Math.imul(At,Ft)|0))<<13)|0;return j=((o=Math.imul(At,te))+(e>>>13)|0)+(ni>>>26)|0,ni&=67108863,C[0]=Ae,C[1]=Re,C[2]=Ke,C[3]=ai,C[4]=ri,C[5]=si,C[6]=ui,C[7]=ci,C[8]=li,C[9]=hi,C[10]=fi,C[11]=Je,C[12]=pi,C[13]=gi,C[14]=ei,C[15]=ii,C[16]=Ye,C[17]=di,C[18]=ni,j!==0&&(C[19]=j,r.length++),r};function E(t,n,r){return new I().mulp(t,n,r)}function I(t,n){this.x=t,this.y=n}Math.imul||(b=w),a.prototype.mulTo=function(t,n){var r,i=this.length+t.length;return r=this.length===10&&t.length===10?b(this,t,n):i<63?w(this,t,n):i<1024?function(e,o,s){s.negative=o.negative^e.negative,s.length=e.length+o.length;for(var A=0,C=0,j=0;j<s.length-1;j++){var T=C;C=0;for(var R=67108863&A,q=Math.min(j,o.length-1),Z=Math.max(0,j-e.length+1);Z<=q;Z++){var rt=j-Z,D=(0|e.words[rt])*(0|o.words[Z]),G=67108863&D;R=67108863&(G=G+R|0),C+=(T=(T=T+(D/67108864|0)|0)+(G>>>26)|0)>>>26,T&=67108863}s.words[j]=R,A=T,T=C}return A!==0?s.words[j]=A:s.length--,s.strip()}(this,t,n):E(this,t,n),r},I.prototype.makeRBT=function(t){for(var n=new Array(t),r=a.prototype._countBits(t)-1,i=0;i<t;i++)n[i]=this.revBin(i,r,t);return n},I.prototype.revBin=function(t,n,r){if(t===0||t===r-1)return t;for(var i=0,e=0;e<n;e++)i|=(1&t)<<n-e-1,t>>=1;return i},I.prototype.permute=function(t,n,r,i,e,o){for(var s=0;s<o;s++)i[s]=n[t[s]],e[s]=r[t[s]]},I.prototype.transform=function(t,n,r,i,e,o){this.permute(o,t,n,r,i,e);for(var s=1;s<e;s<<=1)for(var A=s<<1,C=Math.cos(2*Math.PI/A),j=Math.sin(2*Math.PI/A),T=0;T<e;T+=A)for(var R=C,q=j,Z=0;Z<s;Z++){var rt=r[T+Z],D=i[T+Z],G=r[T+Z+s],z=i[T+Z+s],X=R*G-q*z;z=R*z+q*G,G=X,r[T+Z]=rt+G,i[T+Z]=D+z,r[T+Z+s]=rt-G,i[T+Z+s]=D-z,Z!==A&&(X=C*R-j*q,q=C*q+j*R,R=X)}},I.prototype.guessLen13b=function(t,n){var r=1|Math.max(n,t),i=1&r,e=0;for(r=r/2|0;r;r>>>=1)e++;return 1<<e+1+i},I.prototype.conjugate=function(t,n,r){if(!(r<=1))for(var i=0;i<r/2;i++){var e=t[i];t[i]=t[r-i-1],t[r-i-1]=e,e=n[i],n[i]=-n[r-i-1],n[r-i-1]=-e}},I.prototype.normalize13b=function(t,n){for(var r=0,i=0;i<n/2;i++){var e=8192*Math.round(t[2*i+1]/n)+Math.round(t[2*i]/n)+r;t[i]=67108863&e,r=e<67108864?0:e/67108864|0}return t},I.prototype.convert13b=function(t,n,r,i){for(var e=0,o=0;o<n;o++)e+=0|t[o],r[2*o]=8191&e,e>>>=13,r[2*o+1]=8191&e,e>>>=13;for(o=2*n;o<i;++o)r[o]=0;m(e===0),m((-8192&e)==0)},I.prototype.stub=function(t){for(var n=new Array(t),r=0;r<t;r++)n[r]=0;return n},I.prototype.mulp=function(t,n,r){var i=2*this.guessLen13b(t.length,n.length),e=this.makeRBT(i),o=this.stub(i),s=new Array(i),A=new Array(i),C=new Array(i),j=new Array(i),T=new Array(i),R=new Array(i),q=r.words;q.length=i,this.convert13b(t.words,t.length,s,i),this.convert13b(n.words,n.length,j,i),this.transform(s,o,A,C,i,e),this.transform(j,o,T,R,i,e);for(var Z=0;Z<i;Z++){var rt=A[Z]*T[Z]-C[Z]*R[Z];C[Z]=A[Z]*R[Z]+C[Z]*T[Z],A[Z]=rt}return this.conjugate(A,C,i),this.transform(A,C,q,o,i,e),this.conjugate(q,o,i),this.normalize13b(q,i),r.negative=t.negative^n.negative,r.length=t.length+n.length,r.strip()},a.prototype.mul=function(t){var n=new a(null);return n.words=new Array(this.length+t.length),this.mulTo(t,n)},a.prototype.mulf=function(t){var n=new a(null);return n.words=new Array(this.length+t.length),E(this,t,n)},a.prototype.imul=function(t){return this.clone().mulTo(t,this)},a.prototype.imuln=function(t){m(typeof t=="number"),m(t<67108864);for(var n=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,e=(67108863&i)+(67108863&n);n>>=26,n+=i/67108864|0,n+=e>>>26,this.words[r]=67108863&e}return n!==0&&(this.words[r]=n,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var n=function(o){for(var s=new Array(o.bitLength()),A=0;A<s.length;A++){var C=A/26|0,j=A%26;s[A]=(o.words[C]&1<<j)>>>j}return s}(t);if(n.length===0)return new a(1);for(var r=this,i=0;i<n.length&&n[i]===0;i++,r=r.sqr());if(++i<n.length)for(var e=r.sqr();i<n.length;i++,e=e.sqr())n[i]!==0&&(r=r.mul(e));return r},a.prototype.iushln=function(t){m(typeof t=="number"&&t>=0);var n,r=t%26,i=(t-r)/26,e=67108863>>>26-r<<26-r;if(r!==0){var o=0;for(n=0;n<this.length;n++){var s=this.words[n]&e,A=(0|this.words[n])-s<<r;this.words[n]=A|o,o=s>>>26-r}o&&(this.words[n]=o,this.length++)}if(i!==0){for(n=this.length-1;n>=0;n--)this.words[n+i]=this.words[n];for(n=0;n<i;n++)this.words[n]=0;this.length+=i}return this.strip()},a.prototype.ishln=function(t){return m(this.negative===0),this.iushln(t)},a.prototype.iushrn=function(t,n,r){var i;m(typeof t=="number"&&t>=0),i=n?(n-n%26)/26:0;var e=t%26,o=Math.min((t-e)/26,this.length),s=67108863^67108863>>>e<<e,A=r;if(i-=o,i=Math.max(0,i),A){for(var C=0;C<o;C++)A.words[C]=this.words[C];A.length=o}if(o!==0)if(this.length>o)for(this.length-=o,C=0;C<this.length;C++)this.words[C]=this.words[C+o];else this.words[0]=0,this.length=1;var j=0;for(C=this.length-1;C>=0&&(j!==0||C>=i);C--){var T=0|this.words[C];this.words[C]=j<<26-e|T>>>e,j=T&s}return A&&j!==0&&(A.words[A.length++]=j),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,n,r){return m(this.negative===0),this.iushrn(t,n,r)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){m(typeof t=="number"&&t>=0);var n=t%26,r=(t-n)/26,i=1<<n;return!(this.length<=r||!(this.words[r]&i))},a.prototype.imaskn=function(t){m(typeof t=="number"&&t>=0);var n=t%26,r=(t-n)/26;if(m(this.negative===0,"imaskn works only with positive numbers"),this.length<=r)return this;if(n!==0&&r++,this.length=Math.min(r,this.length),n!==0){var i=67108863^67108863>>>n<<n;this.words[this.length-1]&=i}return this.strip()},a.prototype.maskn=function(t){return this.clone().imaskn(t)},a.prototype.iaddn=function(t){return m(typeof t=="number"),m(t<67108864),t<0?this.isubn(-t):this.negative!==0?this.length===1&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},a.prototype._iaddn=function(t){this.words[0]+=t;for(var n=0;n<this.length&&this.words[n]>=67108864;n++)this.words[n]-=67108864,n===this.length-1?this.words[n+1]=1:this.words[n+1]++;return this.length=Math.max(this.length,n+1),this},a.prototype.isubn=function(t){if(m(typeof t=="number"),m(t<67108864),t<0)return this.iaddn(-t);if(this.negative!==0)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var n=0;n<this.length&&this.words[n]<0;n++)this.words[n]+=67108864,this.words[n+1]-=1;return this.strip()},a.prototype.addn=function(t){return this.clone().iaddn(t)},a.prototype.subn=function(t){return this.clone().isubn(t)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(t,n,r){var i,e,o=t.length+r;this._expand(o);var s=0;for(i=0;i<t.length;i++){e=(0|this.words[i+r])+s;var A=(0|t.words[i])*n;s=((e-=67108863&A)>>26)-(A/67108864|0),this.words[i+r]=67108863&e}for(;i<this.length-r;i++)s=(e=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&e;if(s===0)return this.strip();for(m(s===-1),s=0,i=0;i<this.length;i++)s=(e=-(0|this.words[i])+s)>>26,this.words[i]=67108863&e;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,n){var r=(this.length,t.length),i=this.clone(),e=t,o=0|e.words[e.length-1];(r=26-this._countBits(o))!=0&&(e=e.ushln(r),i.iushln(r),o=0|e.words[e.length-1]);var s,A=i.length-e.length;if(n!=="mod"){(s=new a(null)).length=A+1,s.words=new Array(s.length);for(var C=0;C<s.length;C++)s.words[C]=0}var j=i.clone()._ishlnsubmul(e,1,A);j.negative===0&&(i=j,s&&(s.words[A]=1));for(var T=A-1;T>=0;T--){var R=67108864*(0|i.words[e.length+T])+(0|i.words[e.length+T-1]);for(R=Math.min(R/o|0,67108863),i._ishlnsubmul(e,R,T);i.negative!==0;)R--,i.negative=0,i._ishlnsubmul(e,1,T),i.isZero()||(i.negative^=1);s&&(s.words[T]=R)}return s&&s.strip(),i.strip(),n!=="div"&&r!==0&&i.iushrn(r),{div:s||null,mod:i}},a.prototype.divmod=function(t,n,r){return m(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:this.negative!==0&&t.negative===0?(o=this.neg().divmod(t,n),n!=="mod"&&(i=o.div.neg()),n!=="div"&&(e=o.mod.neg(),r&&e.negative!==0&&e.iadd(t)),{div:i,mod:e}):this.negative===0&&t.negative!==0?(o=this.divmod(t.neg(),n),n!=="mod"&&(i=o.div.neg()),{div:i,mod:o.mod}):this.negative&t.negative?(o=this.neg().divmod(t.neg(),n),n!=="div"&&(e=o.mod.neg(),r&&e.negative!==0&&e.isub(t)),{div:o.div,mod:e}):t.length>this.length||this.cmp(t)<0?{div:new a(0),mod:this}:t.length===1?n==="div"?{div:this.divn(t.words[0]),mod:null}:n==="mod"?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,n);var i,e,o},a.prototype.div=function(t){return this.divmod(t,"div",!1).div},a.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},a.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},a.prototype.divRound=function(t){var n=this.divmod(t);if(n.mod.isZero())return n.div;var r=n.div.negative!==0?n.mod.isub(t):n.mod,i=t.ushrn(1),e=t.andln(1),o=r.cmp(i);return o<0||e===1&&o===0?n.div:n.div.negative!==0?n.div.isubn(1):n.div.iaddn(1)},a.prototype.modn=function(t){m(t<=67108863);for(var n=67108864%t,r=0,i=this.length-1;i>=0;i--)r=(n*r+(0|this.words[i]))%t;return r},a.prototype.idivn=function(t){m(t<=67108863);for(var n=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*n;this.words[r]=i/t|0,n=i%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){m(t.negative===0),m(!t.isZero());var n=this,r=t.clone();n=n.negative!==0?n.umod(t):n.clone();for(var i=new a(1),e=new a(0),o=new a(0),s=new a(1),A=0;n.isEven()&&r.isEven();)n.iushrn(1),r.iushrn(1),++A;for(var C=r.clone(),j=n.clone();!n.isZero();){for(var T=0,R=1;!(n.words[0]&R)&&T<26;++T,R<<=1);if(T>0)for(n.iushrn(T);T-- >0;)(i.isOdd()||e.isOdd())&&(i.iadd(C),e.isub(j)),i.iushrn(1),e.iushrn(1);for(var q=0,Z=1;!(r.words[0]&Z)&&q<26;++q,Z<<=1);if(q>0)for(r.iushrn(q);q-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(C),s.isub(j)),o.iushrn(1),s.iushrn(1);n.cmp(r)>=0?(n.isub(r),i.isub(o),e.isub(s)):(r.isub(n),o.isub(i),s.isub(e))}return{a:o,b:s,gcd:r.iushln(A)}},a.prototype._invmp=function(t){m(t.negative===0),m(!t.isZero());var n=this,r=t.clone();n=n.negative!==0?n.umod(t):n.clone();for(var i,e=new a(1),o=new a(0),s=r.clone();n.cmpn(1)>0&&r.cmpn(1)>0;){for(var A=0,C=1;!(n.words[0]&C)&&A<26;++A,C<<=1);if(A>0)for(n.iushrn(A);A-- >0;)e.isOdd()&&e.iadd(s),e.iushrn(1);for(var j=0,T=1;!(r.words[0]&T)&&j<26;++j,T<<=1);if(j>0)for(r.iushrn(j);j-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);n.cmp(r)>=0?(n.isub(r),e.isub(o)):(r.isub(n),o.isub(e))}return(i=n.cmpn(1)===0?e:o).cmpn(0)<0&&i.iadd(t),i},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var n=this.clone(),r=t.clone();n.negative=0,r.negative=0;for(var i=0;n.isEven()&&r.isEven();i++)n.iushrn(1),r.iushrn(1);for(;;){for(;n.isEven();)n.iushrn(1);for(;r.isEven();)r.iushrn(1);var e=n.cmp(r);if(e<0){var o=n;n=r,r=o}else if(e===0||r.cmpn(1)===0)break;n.isub(r)}return r.iushln(i)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(t){return this.words[0]&t},a.prototype.bincn=function(t){m(typeof t=="number");var n=t%26,r=(t-n)/26,i=1<<n;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var e=i,o=r;e!==0&&o<this.length;o++){var s=0|this.words[o];e=(s+=e)>>>26,s&=67108863,this.words[o]=s}return e!==0&&(this.words[o]=e,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(t){var n,r=t<0;if(this.negative!==0&&!r)return-1;if(this.negative===0&&r)return 1;if(this.strip(),this.length>1)n=1;else{r&&(t=-t),m(t<=67108863,"Number is too big");var i=0|this.words[0];n=i===t?0:i<t?-1:1}return this.negative!==0?0|-n:n},a.prototype.cmp=function(t){if(this.negative!==0&&t.negative===0)return-1;if(this.negative===0&&t.negative!==0)return 1;var n=this.ucmp(t);return this.negative!==0?0|-n:n},a.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var n=0,r=this.length-1;r>=0;r--){var i=0|this.words[r],e=0|t.words[r];if(i!==e){i<e?n=-1:i>e&&(n=1);break}}return n},a.prototype.gtn=function(t){return this.cmpn(t)===1},a.prototype.gt=function(t){return this.cmp(t)===1},a.prototype.gten=function(t){return this.cmpn(t)>=0},a.prototype.gte=function(t){return this.cmp(t)>=0},a.prototype.ltn=function(t){return this.cmpn(t)===-1},a.prototype.lt=function(t){return this.cmp(t)===-1},a.prototype.lten=function(t){return this.cmpn(t)<=0},a.prototype.lte=function(t){return this.cmp(t)<=0},a.prototype.eqn=function(t){return this.cmpn(t)===0},a.prototype.eq=function(t){return this.cmp(t)===0},a.red=function(t){return new Q(t)},a.prototype.toRed=function(t){return m(!this.red,"Already a number in reduction context"),m(this.negative===0,"red works only with positives"),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return m(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return m(!this.red,"Already a number in reduction context"),this._forceRed(t)},a.prototype.redAdd=function(t){return m(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},a.prototype.redIAdd=function(t){return m(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},a.prototype.redSub=function(t){return m(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},a.prototype.redISub=function(t){return m(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},a.prototype.redShl=function(t){return m(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},a.prototype.redMul=function(t){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return m(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return m(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return m(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return m(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return m(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return m(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var M={k256:null,p224:null,p192:null,p25519:null};function B(t,n){this.name=t,this.p=new a(n,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function P(){B.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function N(){B.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function $(){B.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function et(){B.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function Q(t){if(typeof t=="string"){var n=a._prime(t);this.m=n.p,this.prime=n}else m(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function ot(t){Q.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}B.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},B.prototype.ireduce=function(t){var n,r=t;do this.split(r,this.tmp),n=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(n>this.n);var i=n<this.n?-1:r.ucmp(this.p);return i===0?(r.words[0]=0,r.length=1):i>0?r.isub(this.p):r.strip!==void 0?r.strip():r._strip(),r},B.prototype.split=function(t,n){t.iushrn(this.n,0,n)},B.prototype.imulK=function(t){return t.imul(this.k)},S(P,B),P.prototype.split=function(t,n){for(var r=4194303,i=Math.min(t.length,9),e=0;e<i;e++)n.words[e]=t.words[e];if(n.length=i,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(n.words[n.length++]=o&r,e=10;e<t.length;e++){var s=0|t.words[e];t.words[e-10]=(s&r)<<4|o>>>22,o=s}o>>>=22,t.words[e-10]=o,o===0&&t.length>10?t.length-=10:t.length-=9},P.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var n=0,r=0;r<t.length;r++){var i=0|t.words[r];n+=977*i,t.words[r]=67108863&n,n=64*i+(n/67108864|0)}return t.words[t.length-1]===0&&(t.length--,t.words[t.length-1]===0&&t.length--),t},S(N,B),S($,B),S(et,B),et.prototype.imulK=function(t){for(var n=0,r=0;r<t.length;r++){var i=19*(0|t.words[r])+n,e=67108863&i;i>>>=26,t.words[r]=e,n=i}return n!==0&&(t.words[t.length++]=n),t},a._prime=function(t){if(M[t])return M[t];var n;if(t==="k256")n=new P;else if(t==="p224")n=new N;else if(t==="p192")n=new $;else{if(t!=="p25519")throw new Error("Unknown prime "+t);n=new et}return M[t]=n,n},Q.prototype._verify1=function(t){m(t.negative===0,"red works only with positives"),m(t.red,"red works only with red numbers")},Q.prototype._verify2=function(t,n){m((t.negative|n.negative)==0,"red works only with positives"),m(t.red&&t.red===n.red,"red works only with red numbers")},Q.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},Q.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},Q.prototype.add=function(t,n){this._verify2(t,n);var r=t.add(n);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},Q.prototype.iadd=function(t,n){this._verify2(t,n);var r=t.iadd(n);return r.cmp(this.m)>=0&&r.isub(this.m),r},Q.prototype.sub=function(t,n){this._verify2(t,n);var r=t.sub(n);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},Q.prototype.isub=function(t,n){this._verify2(t,n);var r=t.isub(n);return r.cmpn(0)<0&&r.iadd(this.m),r},Q.prototype.shl=function(t,n){return this._verify1(t),this.imod(t.ushln(n))},Q.prototype.imul=function(t,n){return this._verify2(t,n),this.imod(t.imul(n))},Q.prototype.mul=function(t,n){return this._verify2(t,n),this.imod(t.mul(n))},Q.prototype.isqr=function(t){return this.imul(t,t.clone())},Q.prototype.sqr=function(t){return this.mul(t,t)},Q.prototype.sqrt=function(t){if(t.isZero())return t.clone();var n=this.m.andln(3);if(m(n%2==1),n===3){var r=this.m.add(new a(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),e=0;!i.isZero()&&i.andln(1)===0;)e++,i.iushrn(1);m(!i.isZero());var o=new a(1).toRed(this),s=o.redNeg(),A=this.m.subn(1).iushrn(1),C=this.m.bitLength();for(C=new a(2*C*C).toRed(this);this.pow(C,A).cmp(s)!==0;)C.redIAdd(s);for(var j=this.pow(C,i),T=this.pow(t,i.addn(1).iushrn(1)),R=this.pow(t,i),q=e;R.cmp(o)!==0;){for(var Z=R,rt=0;Z.cmp(o)!==0;rt++)Z=Z.redSqr();m(rt<q);var D=this.pow(j,new a(1).iushln(q-rt-1));T=T.redMul(D),j=D.redSqr(),R=R.redMul(j),q=rt}return T},Q.prototype.invm=function(t){var n=t._invmp(this.m);return n.negative!==0?(n.negative=0,this.imod(n).redNeg()):this.imod(n)},Q.prototype.pow=function(t,n){if(n.isZero())return new a(1).toRed(this);if(n.cmpn(1)===0)return t.clone();var r=new Array(16);r[0]=new a(1).toRed(this),r[1]=t;for(var i=2;i<r.length;i++)r[i]=this.mul(r[i-1],t);var e=r[0],o=0,s=0,A=n.bitLength()%26;for(A===0&&(A=26),i=n.length-1;i>=0;i--){for(var C=n.words[i],j=A-1;j>=0;j--){var T=C>>j&1;e!==r[0]&&(e=this.sqr(e)),T!==0||o!==0?(o<<=1,o|=T,(++s==4||i===0&&j===0)&&(e=this.mul(e,r[o]),s=0,o=0)):s=0}A=26}return e},Q.prototype.convertTo=function(t){var n=t.umod(this.m);return n===t?n.clone():n},Q.prototype.convertFrom=function(t){var n=t.clone();return n.red=null,n},a.mont=function(t){return new ot(t)},S(ot,Q),ot.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},ot.prototype.convertFrom=function(t){var n=this.imod(t.mul(this.rinv));return n.red=null,n},ot.prototype.imul=function(t,n){if(t.isZero()||n.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(n),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=r.isub(i).iushrn(this.shift),o=e;return e.cmp(this.m)>=0?o=e.isub(this.m):e.cmpn(0)<0&&(o=e.iadd(this.m)),o._forceRed(this)},ot.prototype.mul=function(t,n){if(t.isZero()||n.isZero())return new a(0)._forceRed(this);var r=t.mul(n),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=r.isub(i).iushrn(this.shift),o=e;return e.cmp(this.m)>=0?o=e.isub(this.m):e.cmpn(0)<0&&(o=e.iadd(this.m)),o._forceRed(this)},ot.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}})(W=y.nmd(W),this)},3482:(W,_,y)=>{var x=y(5717),v=y(2318),m=y(9785),S=y(9072),a=y(1027);function p(c){a.call(this,"digest"),this._hash=c}x(p,a),p.prototype._update=function(c){this._hash.update(c)},p.prototype._final=function(){return this._hash.digest()},W.exports=function(c){return(c=c.toLowerCase())==="md5"?new v:c==="rmd160"||c==="ripemd160"?new m:new p(S(c))}},8028:(W,_,y)=>{var x=y(2318);W.exports=function(v){return new x().update(v).digest()}},8355:(W,_,y)=>{var x=y(5717),v=y(1031),m=y(1027),S=y(9509).Buffer,a=y(8028),p=y(9785),c=y(9072),l=S.alloc(128);function f(g,h){m.call(this,"digest"),typeof h=="string"&&(h=S.from(h));var u=g==="sha512"||g==="sha384"?128:64;this._alg=g,this._key=h,h.length>u?h=(g==="rmd160"?new p:c(g)).update(h).digest():h.length<u&&(h=S.concat([h,l],u));for(var w=this._ipad=S.allocUnsafe(u),b=this._opad=S.allocUnsafe(u),E=0;E<u;E++)w[E]=54^h[E],b[E]=92^h[E];this._hash=g==="rmd160"?new p:c(g),this._hash.update(w)}x(f,m),f.prototype._update=function(g){this._hash.update(g)},f.prototype._final=function(){var g=this._hash.digest();return(this._alg==="rmd160"?new p:c(this._alg)).update(this._opad).update(g).digest()},W.exports=function(g,h){return(g=g.toLowerCase())==="rmd160"||g==="ripemd160"?new f("rmd160",h):g==="md5"?new v(a,h):new f(g,h)}},1031:(W,_,y)=>{var x=y(5717),v=y(9509).Buffer,m=y(1027),S=v.alloc(128),a=64;function p(c,l){m.call(this,"digest"),typeof l=="string"&&(l=v.from(l)),this._alg=c,this._key=l,l.length>a?l=c(l):l.length<a&&(l=v.concat([l,S],a));for(var f=this._ipad=v.allocUnsafe(a),g=this._opad=v.allocUnsafe(a),h=0;h<a;h++)f[h]=54^l[h],g[h]=92^l[h];this._hash=[f]}x(p,m),p.prototype._update=function(c){this._hash.push(c)},p.prototype._final=function(){var c=this._alg(v.concat(this._hash));return this._alg(v.concat([this._opad,c]))},W.exports=p},5835:(W,_,y)=>{_.randomBytes=_.rng=_.pseudoRandomBytes=_.prng=y(1798),_.createHash=_.Hash=y(3482),_.createHmac=_.Hmac=y(8355);var x=y(6042),v=Object.keys(x),m=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(v);_.getHashes=function(){return m};var S=y(5632);_.pbkdf2=S.pbkdf2,_.pbkdf2Sync=S.pbkdf2Sync;var a=y(3614);_.Cipher=a.Cipher,_.createCipher=a.createCipher,_.Cipheriv=a.Cipheriv,_.createCipheriv=a.createCipheriv,_.Decipher=a.Decipher,_.createDecipher=a.createDecipher,_.Decipheriv=a.Decipheriv,_.createDecipheriv=a.createDecipheriv,_.getCiphers=a.getCiphers,_.listCiphers=a.listCiphers;var p=y(2607);_.DiffieHellmanGroup=p.DiffieHellmanGroup,_.createDiffieHellmanGroup=p.createDiffieHellmanGroup,_.getDiffieHellman=p.getDiffieHellman,_.createDiffieHellman=p.createDiffieHellman,_.DiffieHellman=p.DiffieHellman;var c=y(4743);_.createSign=c.createSign,_.Sign=c.Sign,_.createVerify=c.createVerify,_.Verify=c.Verify,_.createECDH=y(6393);var l=y(7900);_.publicEncrypt=l.publicEncrypt,_.privateEncrypt=l.privateEncrypt,_.publicDecrypt=l.publicDecrypt,_.privateDecrypt=l.privateDecrypt;var f=y(7963);_.randomFill=f.randomFill,_.randomFillSync=f.randomFillSync,_.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
|
|
70
|
+
`))},_.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},4020:W=>{var _="%[a-f0-9]{2}",y=new RegExp("("+_+")|([^%]+?)","gi"),x=new RegExp("("+_+")+","gi");function v(S,a){try{return[decodeURIComponent(S.join(""))]}catch{}if(S.length===1)return S;a=a||1;var p=S.slice(0,a),c=S.slice(a);return Array.prototype.concat.call([],v(p),v(c))}function m(S){try{return decodeURIComponent(S)}catch{for(var a=S.match(y)||[],p=1;p<a.length;p++)a=(S=v(a,p).join("")).match(y)||[];return S}}W.exports=function(S){if(typeof S!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof S+"`");try{return S=S.replace(/\+/g," "),decodeURIComponent(S)}catch{return function(p){for(var c={"%FE%FF":"��","%FF%FE":"��"},l=x.exec(p);l;){try{c[l[0]]=decodeURIComponent(l[0])}catch{var f=m(l[0]);f!==l[0]&&(c[l[0]]=f)}l=x.exec(p)}c["%C2"]="�";for(var g=Object.keys(c),h=0;h<g.length;h++){var u=g[h];p=p.replace(new RegExp(u,"g"),c[u])}return p}(S)}}},4289:(W,_,y)=>{var x=y(2215),v=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",m=Object.prototype.toString,S=Array.prototype.concat,a=Object.defineProperty,p=y(1044)(),c=a&&p,l=function(g,h,u,w){if(h in g){if(w===!0){if(g[h]===u)return}else if(typeof(b=w)!="function"||m.call(b)!=="[object Function]"||!w())return}var b;c?a(g,h,{configurable:!0,enumerable:!1,value:u,writable:!0}):g[h]=u},f=function(g,h){var u=arguments.length>2?arguments[2]:{},w=x(h);v&&(w=S.call(w,Object.getOwnPropertySymbols(h)));for(var b=0;b<w.length;b+=1)l(g,w[b],h[w[b]],u[w[b]])};f.supportsDescriptors=!!c,W.exports=f},5251:(W,_,y)=>{_.utils=y(1278),_.Cipher=y(5756),_.DES=y(778),_.CBC=y(9051),_.EDE=y(651)},9051:(W,_,y)=>{var x=y(9746),v=y(5717),m={};function S(a){x.equal(a.length,8,"Invalid IV length"),this.iv=new Array(8);for(var p=0;p<this.iv.length;p++)this.iv[p]=a[p]}_.instantiate=function(a){function p(g){a.call(this,g),this._cbcInit()}v(p,a);for(var c=Object.keys(m),l=0;l<c.length;l++){var f=c[l];p.prototype[f]=m[f]}return p.create=function(g){return new p(g)},p},m._cbcInit=function(){var a=new S(this.options.iv);this._cbcState=a},m._update=function(a,p,c,l){var f=this._cbcState,g=this.constructor.super_.prototype,h=f.iv;if(this.type==="encrypt"){for(var u=0;u<this.blockSize;u++)h[u]^=a[p+u];for(g._update.call(this,h,0,c,l),u=0;u<this.blockSize;u++)h[u]=c[l+u]}else{for(g._update.call(this,a,p,c,l),u=0;u<this.blockSize;u++)c[l+u]^=h[u];for(u=0;u<this.blockSize;u++)h[u]=a[p+u]}}},5756:(W,_,y)=>{var x=y(9746);function v(m){this.options=m,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}W.exports=v,v.prototype._init=function(){},v.prototype.update=function(m){return m.length===0?[]:this.type==="decrypt"?this._updateDecrypt(m):this._updateEncrypt(m)},v.prototype._buffer=function(m,S){for(var a=Math.min(this.buffer.length-this.bufferOff,m.length-S),p=0;p<a;p++)this.buffer[this.bufferOff+p]=m[S+p];return this.bufferOff+=a,a},v.prototype._flushBuffer=function(m,S){return this._update(this.buffer,0,m,S),this.bufferOff=0,this.blockSize},v.prototype._updateEncrypt=function(m){var S=0,a=0,p=(this.bufferOff+m.length)/this.blockSize|0,c=new Array(p*this.blockSize);this.bufferOff!==0&&(S+=this._buffer(m,S),this.bufferOff===this.buffer.length&&(a+=this._flushBuffer(c,a)));for(var l=m.length-(m.length-S)%this.blockSize;S<l;S+=this.blockSize)this._update(m,S,c,a),a+=this.blockSize;for(;S<m.length;S++,this.bufferOff++)this.buffer[this.bufferOff]=m[S];return c},v.prototype._updateDecrypt=function(m){for(var S=0,a=0,p=Math.ceil((this.bufferOff+m.length)/this.blockSize)-1,c=new Array(p*this.blockSize);p>0;p--)S+=this._buffer(m,S),a+=this._flushBuffer(c,a);return S+=this._buffer(m,S),c},v.prototype.final=function(m){var S,a;return m&&(S=this.update(m)),a=this.type==="encrypt"?this._finalEncrypt():this._finalDecrypt(),S?S.concat(a):a},v.prototype._pad=function(m,S){if(S===0)return!1;for(;S<m.length;)m[S++]=0;return!0},v.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var m=new Array(this.blockSize);return this._update(this.buffer,0,m,0),m},v.prototype._unpad=function(m){return m},v.prototype._finalDecrypt=function(){x.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var m=new Array(this.blockSize);return this._flushBuffer(m,0),this._unpad(m)}},778:(W,_,y)=>{var x=y(9746),v=y(5717),m=y(1278),S=y(5756);function a(){this.tmp=new Array(2),this.keys=null}function p(l){S.call(this,l);var f=new a;this._desState=f,this.deriveKeys(f,l.key)}v(p,S),W.exports=p,p.create=function(l){return new p(l)};var c=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];p.prototype.deriveKeys=function(l,f){l.keys=new Array(32),x.equal(f.length,this.blockSize,"Invalid key length");var g=m.readUInt32BE(f,0),h=m.readUInt32BE(f,4);m.pc1(g,h,l.tmp,0),g=l.tmp[0],h=l.tmp[1];for(var u=0;u<l.keys.length;u+=2){var w=c[u>>>1];g=m.r28shl(g,w),h=m.r28shl(h,w),m.pc2(g,h,l.keys,u)}},p.prototype._update=function(l,f,g,h){var u=this._desState,w=m.readUInt32BE(l,f),b=m.readUInt32BE(l,f+4);m.ip(w,b,u.tmp,0),w=u.tmp[0],b=u.tmp[1],this.type==="encrypt"?this._encrypt(u,w,b,u.tmp,0):this._decrypt(u,w,b,u.tmp,0),w=u.tmp[0],b=u.tmp[1],m.writeUInt32BE(g,w,h),m.writeUInt32BE(g,b,h+4)},p.prototype._pad=function(l,f){for(var g=l.length-f,h=f;h<l.length;h++)l[h]=g;return!0},p.prototype._unpad=function(l){for(var f=l[l.length-1],g=l.length-f;g<l.length;g++)x.equal(l[g],f);return l.slice(0,l.length-f)},p.prototype._encrypt=function(l,f,g,h,u){for(var w=f,b=g,E=0;E<l.keys.length;E+=2){var I=l.keys[E],M=l.keys[E+1];m.expand(b,l.tmp,0),I^=l.tmp[0],M^=l.tmp[1];var B=m.substitute(I,M),P=b;b=(w^m.permute(B))>>>0,w=P}m.rip(b,w,h,u)},p.prototype._decrypt=function(l,f,g,h,u){for(var w=g,b=f,E=l.keys.length-2;E>=0;E-=2){var I=l.keys[E],M=l.keys[E+1];m.expand(w,l.tmp,0),I^=l.tmp[0],M^=l.tmp[1];var B=m.substitute(I,M),P=w;w=(b^m.permute(B))>>>0,b=P}m.rip(w,b,h,u)}},651:(W,_,y)=>{var x=y(9746),v=y(5717),m=y(5756),S=y(778);function a(c,l){x.equal(l.length,24,"Invalid key length");var f=l.slice(0,8),g=l.slice(8,16),h=l.slice(16,24);this.ciphers=c==="encrypt"?[S.create({type:"encrypt",key:f}),S.create({type:"decrypt",key:g}),S.create({type:"encrypt",key:h})]:[S.create({type:"decrypt",key:h}),S.create({type:"encrypt",key:g}),S.create({type:"decrypt",key:f})]}function p(c){m.call(this,c);var l=new a(this.type,this.options.key);this._edeState=l}v(p,m),W.exports=p,p.create=function(c){return new p(c)},p.prototype._update=function(c,l,f,g){var h=this._edeState;h.ciphers[0]._update(c,l,f,g),h.ciphers[1]._update(f,g,f,g),h.ciphers[2]._update(f,g,f,g)},p.prototype._pad=S.prototype._pad,p.prototype._unpad=S.prototype._unpad},1278:(W,_)=>{_.readUInt32BE=function(m,S){return(m[0+S]<<24|m[1+S]<<16|m[2+S]<<8|m[3+S])>>>0},_.writeUInt32BE=function(m,S,a){m[0+a]=S>>>24,m[1+a]=S>>>16&255,m[2+a]=S>>>8&255,m[3+a]=255&S},_.ip=function(m,S,a,p){for(var c=0,l=0,f=6;f>=0;f-=2){for(var g=0;g<=24;g+=8)c<<=1,c|=S>>>g+f&1;for(g=0;g<=24;g+=8)c<<=1,c|=m>>>g+f&1}for(f=6;f>=0;f-=2){for(g=1;g<=25;g+=8)l<<=1,l|=S>>>g+f&1;for(g=1;g<=25;g+=8)l<<=1,l|=m>>>g+f&1}a[p+0]=c>>>0,a[p+1]=l>>>0},_.rip=function(m,S,a,p){for(var c=0,l=0,f=0;f<4;f++)for(var g=24;g>=0;g-=8)c<<=1,c|=S>>>g+f&1,c<<=1,c|=m>>>g+f&1;for(f=4;f<8;f++)for(g=24;g>=0;g-=8)l<<=1,l|=S>>>g+f&1,l<<=1,l|=m>>>g+f&1;a[p+0]=c>>>0,a[p+1]=l>>>0},_.pc1=function(m,S,a,p){for(var c=0,l=0,f=7;f>=5;f--){for(var g=0;g<=24;g+=8)c<<=1,c|=S>>g+f&1;for(g=0;g<=24;g+=8)c<<=1,c|=m>>g+f&1}for(g=0;g<=24;g+=8)c<<=1,c|=S>>g+f&1;for(f=1;f<=3;f++){for(g=0;g<=24;g+=8)l<<=1,l|=S>>g+f&1;for(g=0;g<=24;g+=8)l<<=1,l|=m>>g+f&1}for(g=0;g<=24;g+=8)l<<=1,l|=m>>g+f&1;a[p+0]=c>>>0,a[p+1]=l>>>0},_.r28shl=function(m,S){return m<<S&268435455|m>>>28-S};var y=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];_.pc2=function(m,S,a,p){for(var c=0,l=0,f=y.length>>>1,g=0;g<f;g++)c<<=1,c|=m>>>y[g]&1;for(g=f;g<y.length;g++)l<<=1,l|=S>>>y[g]&1;a[p+0]=c>>>0,a[p+1]=l>>>0},_.expand=function(m,S,a){var p=0,c=0;p=(1&m)<<5|m>>>27;for(var l=23;l>=15;l-=4)p<<=6,p|=m>>>l&63;for(l=11;l>=3;l-=4)c|=m>>>l&63,c<<=6;c|=(31&m)<<1|m>>>31,S[a+0]=p>>>0,S[a+1]=c>>>0};var x=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];_.substitute=function(m,S){for(var a=0,p=0;p<4;p++)a<<=4,a|=x[64*p+(m>>>18-6*p&63)];for(p=0;p<4;p++)a<<=4,a|=x[256+64*p+(S>>>18-6*p&63)];return a>>>0};var v=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];_.permute=function(m){for(var S=0,a=0;a<v.length;a++)S<<=1,S|=m>>>v[a]&1;return S>>>0},_.padSplit=function(m,S,a){for(var p=m.toString(2);p.length<S;)p="0"+p;for(var c=[],l=0;l<S;l+=a)c.push(p.slice(l,l+a));return c.join(" ")}},2607:(W,_,y)=>{var x=y(8764).Buffer,v=y(3590),m=y(9799),S=y(7426),a={binary:!0,hex:!0,base64:!0};_.DiffieHellmanGroup=_.createDiffieHellmanGroup=_.getDiffieHellman=function(p){var c=new x(m[p].prime,"hex"),l=new x(m[p].gen,"hex");return new S(c,l)},_.createDiffieHellman=_.DiffieHellman=function p(c,l,f,g){return x.isBuffer(l)||a[l]===void 0?p(c,"binary",l,f):(l=l||"binary",g=g||"binary",f=f||new x([2]),x.isBuffer(f)||(f=new x(f,g)),typeof c=="number"?new S(v(c,f),f,!0):(x.isBuffer(c)||(c=new x(c,l)),new S(c,f,!0)))}},7426:(W,_,y)=>{var x=y(8764).Buffer,v=y(3620),m=new(y(3047)),S=new v(24),a=new v(11),p=new v(10),c=new v(3),l=new v(7),f=y(3590),g=y(1798);function h(I,M){return M=M||"utf8",x.isBuffer(I)||(I=new x(I,M)),this._pub=new v(I),this}function u(I,M){return M=M||"utf8",x.isBuffer(I)||(I=new x(I,M)),this._priv=new v(I),this}W.exports=b;var w={};function b(I,M,B){this.setGenerator(M),this.__prime=new v(I),this._prime=v.mont(this.__prime),this._primeLen=I.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,B?(this.setPublicKey=h,this.setPrivateKey=u):this._primeCode=8}function E(I,M){var B=new x(I.toArray());return M?B.toString(M):B}Object.defineProperty(b.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=function(I,M){var B=M.toString("hex"),P=[B,I.toString(16)].join("_");if(P in w)return w[P];var N,$=0;if(I.isEven()||!f.simpleSieve||!f.fermatTest(I)||!m.test(I))return $+=1,$+=B==="02"||B==="05"?8:4,w[P]=$,$;switch(m.test(I.shrn(1))||($+=2),B){case"02":I.mod(S).cmp(a)&&($+=8);break;case"05":(N=I.mod(p)).cmp(c)&&N.cmp(l)&&($+=8);break;default:$+=4}return w[P]=$,$}(this.__prime,this.__gen)),this._primeCode}}),b.prototype.generateKeys=function(){return this._priv||(this._priv=new v(g(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},b.prototype.computeSecret=function(I){var M=(I=(I=new v(I)).toRed(this._prime)).redPow(this._priv).fromRed(),B=new x(M.toArray()),P=this.getPrime();if(B.length<P.length){var N=new x(P.length-B.length);N.fill(0),B=x.concat([N,B])}return B},b.prototype.getPublicKey=function(I){return E(this._pub,I)},b.prototype.getPrivateKey=function(I){return E(this._priv,I)},b.prototype.getPrime=function(I){return E(this.__prime,I)},b.prototype.getGenerator=function(I){return E(this._gen,I)},b.prototype.setGenerator=function(I,M){return M=M||"utf8",x.isBuffer(I)||(I=new x(I,M)),this.__gen=I,this._gen=new v(I),this}},3590:(W,_,y)=>{var x=y(1798);W.exports=I,I.simpleSieve=b,I.fermatTest=E;var v=y(3620),m=new v(24),S=new(y(3047)),a=new v(1),p=new v(2),c=new v(5),l=(new v(16),new v(8),new v(10)),f=new v(3),g=(new v(7),new v(11)),h=new v(4),u=(new v(12),null);function w(){if(u!==null)return u;var M=[];M[0]=2;for(var B=1,P=3;P<1048576;P+=2){for(var N=Math.ceil(Math.sqrt(P)),$=0;$<B&&M[$]<=N&&P%M[$]!=0;$++);B!==$&&M[$]<=N||(M[B++]=P)}return u=M,M}function b(M){for(var B=w(),P=0;P<B.length;P++)if(M.modn(B[P])===0)return M.cmpn(B[P])===0;return!0}function E(M){var B=v.mont(M);return p.toRed(B).redPow(M.subn(1)).fromRed().cmpn(1)===0}function I(M,B){if(M<16)return new v(B===2||B===5?[140,123]:[140,39]);var P,N;for(B=new v(B);;){for(P=new v(x(Math.ceil(M/8)));P.bitLength()>M;)P.ishrn(1);if(P.isEven()&&P.iadd(a),P.testn(1)||P.iadd(p),B.cmp(p)){if(!B.cmp(c))for(;P.mod(l).cmp(f);)P.iadd(h)}else for(;P.mod(m).cmp(g);)P.iadd(h);if(b(N=P.shrn(1))&&b(P)&&E(N)&&E(P)&&S.test(N)&&S.test(P))return P}}},3620:function(W,_,y){(function(x,v){function m(t,n){if(!t)throw new Error(n||"Assertion failed")}function S(t,n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t}function a(t,n,r){if(a.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,t!==null&&(n!=="le"&&n!=="be"||(r=n,n=10),this._init(t||0,n||10,r||"be"))}var p;typeof x=="object"?x.exports=a:v.BN=a,a.BN=a,a.wordSize=26;try{p=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:y(7748).Buffer}catch{}function c(t,n){var r=t.charCodeAt(n);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function l(t,n,r){var i=c(t,r);return r-1>=n&&(i|=c(t,r-1)<<4),i}function f(t,n,r,i){for(var e=0,o=Math.min(t.length,r),s=n;s<o;s++){var A=t.charCodeAt(s)-48;e*=i,e+=A>=49?A-49+10:A>=17?A-17+10:A}return e}a.isBN=function(t){return t instanceof a||t!==null&&typeof t=="object"&&t.constructor.wordSize===a.wordSize&&Array.isArray(t.words)},a.max=function(t,n){return t.cmp(n)>0?t:n},a.min=function(t,n){return t.cmp(n)<0?t:n},a.prototype._init=function(t,n,r){if(typeof t=="number")return this._initNumber(t,n,r);if(typeof t=="object")return this._initArray(t,n,r);n==="hex"&&(n=16),m(n===(0|n)&&n>=2&&n<=36);var i=0;(t=t.toString().replace(/\s+/g,""))[0]==="-"&&(i++,this.negative=1),i<t.length&&(n===16?this._parseHex(t,i,r):(this._parseBase(t,n,i),r==="le"&&this._initArray(this.toArray(),n,r)))},a.prototype._initNumber=function(t,n,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(m(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),r==="le"&&this._initArray(this.toArray(),n,r)},a.prototype._initArray=function(t,n,r){if(m(typeof t.length=="number"),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var e,o,s=0;if(r==="be")for(i=t.length-1,e=0;i>=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[e]|=o<<s&67108863,this.words[e+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,e++);else if(r==="le")for(i=0,e=0;i<t.length;i+=3)o=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[e]|=o<<s&67108863,this.words[e+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,e++);return this.strip()},a.prototype._parseHex=function(t,n,r){this.length=Math.ceil((t.length-n)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var e,o=0,s=0;if(r==="be")for(i=t.length-1;i>=n;i-=2)e=l(t,n,i)<<o,this.words[s]|=67108863&e,o>=18?(o-=18,s+=1,this.words[s]|=e>>>26):o+=8;else for(i=(t.length-n)%2==0?n+1:n;i<t.length;i+=2)e=l(t,n,i)<<o,this.words[s]|=67108863&e,o>=18?(o-=18,s+=1,this.words[s]|=e>>>26):o+=8;this.strip()},a.prototype._parseBase=function(t,n,r){this.words=[0],this.length=1;for(var i=0,e=1;e<=67108863;e*=n)i++;i--,e=e/n|0;for(var o=t.length-r,s=o%i,A=Math.min(o,o-s)+r,C=0,j=r;j<A;j+=i)C=f(t,j,j+i,n),this.imuln(e),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C);if(s!==0){var T=1;for(C=f(t,j,t.length,n),j=0;j<s;j++)T*=n;this.imuln(T),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C)}this.strip()},a.prototype.copy=function(t){t.words=new Array(this.length);for(var n=0;n<this.length;n++)t.words[n]=this.words[n];t.length=this.length,t.negative=this.negative,t.red=this.red},a.prototype.clone=function(){var t=new a(null);return this.copy(t),t},a.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var g=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],u=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function w(t,n,r){r.negative=n.negative^t.negative;var i=t.length+n.length|0;r.length=i,i=i-1|0;var e=0|t.words[0],o=0|n.words[0],s=e*o,A=67108863&s,C=s/67108864|0;r.words[0]=A;for(var j=1;j<i;j++){for(var T=C>>>26,R=67108863&C,q=Math.min(j,n.length-1),Z=Math.max(0,j-t.length+1);Z<=q;Z++){var rt=j-Z|0;T+=(s=(e=0|t.words[rt])*(o=0|n.words[Z])+R)/67108864|0,R=67108863&s}r.words[j]=0|R,C=0|T}return C!==0?r.words[j]=0|C:r.length--,r.strip()}a.prototype.toString=function(t,n){var r;if(n=0|n||1,(t=t||10)===16||t==="hex"){r="";for(var i=0,e=0,o=0;o<this.length;o++){var s=this.words[o],A=(16777215&(s<<i|e)).toString(16);r=(e=s>>>24-i&16777215)!=0||o!==this.length-1?g[6-A.length]+A+r:A+r,(i+=2)>=26&&(i-=26,o--)}for(e!==0&&(r=e.toString(16)+r);r.length%n!=0;)r="0"+r;return this.negative!==0&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var C=h[t],j=u[t];r="";var T=this.clone();for(T.negative=0;!T.isZero();){var R=T.modn(j).toString(t);r=(T=T.idivn(j)).isZero()?R+r:g[C-R.length]+R+r}for(this.isZero()&&(r="0"+r);r.length%n!=0;)r="0"+r;return this.negative!==0&&(r="-"+r),r}m(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var t=this.words[0];return this.length===2?t+=67108864*this.words[1]:this.length===3&&this.words[2]===1?t+=4503599627370496+67108864*this.words[1]:this.length>2&&m(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,n){return m(p!==void 0),this.toArrayLike(p,t,n)},a.prototype.toArray=function(t,n){return this.toArrayLike(Array,t,n)},a.prototype.toArrayLike=function(t,n,r){var i=this.byteLength(),e=r||Math.max(1,i);m(i<=e,"byte array longer than desired length"),m(e>0,"Requested array length <= 0"),this.strip();var o,s,A=n==="le",C=new t(e),j=this.clone();if(A){for(s=0;!j.isZero();s++)o=j.andln(255),j.iushrn(8),C[s]=o;for(;s<e;s++)C[s]=0}else{for(s=0;s<e-i;s++)C[s]=0;for(s=0;!j.isZero();s++)o=j.andln(255),j.iushrn(8),C[e-s-1]=o}return C},Math.clz32?a.prototype._countBits=function(t){return 32-Math.clz32(t)}:a.prototype._countBits=function(t){var n=t,r=0;return n>=4096&&(r+=13,n>>>=13),n>=64&&(r+=7,n>>>=7),n>=8&&(r+=4,n>>>=4),n>=2&&(r+=2,n>>>=2),r+n},a.prototype._zeroBits=function(t){if(t===0)return 26;var n=t,r=0;return!(8191&n)&&(r+=13,n>>>=13),!(127&n)&&(r+=7,n>>>=7),!(15&n)&&(r+=4,n>>>=4),!(3&n)&&(r+=2,n>>>=2),!(1&n)&&r++,r},a.prototype.bitLength=function(){var t=this.words[this.length-1],n=this._countBits(t);return 26*(this.length-1)+n},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,n=0;n<this.length;n++){var r=this._zeroBits(this.words[n]);if(t+=r,r!==26)break}return t},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(t){return this.negative!==0?this.abs().inotn(t).iaddn(1):this.clone()},a.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]|t.words[n];return this.strip()},a.prototype.ior=function(t){return m((this.negative|t.negative)==0),this.iuor(t)},a.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var n;n=this.length>t.length?t:this;for(var r=0;r<n.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=n.length,this.strip()},a.prototype.iand=function(t){return m((this.negative|t.negative)==0),this.iuand(t)},a.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var n,r;this.length>t.length?(n=this,r=t):(n=t,r=this);for(var i=0;i<r.length;i++)this.words[i]=n.words[i]^r.words[i];if(this!==n)for(;i<n.length;i++)this.words[i]=n.words[i];return this.length=n.length,this.strip()},a.prototype.ixor=function(t){return m((this.negative|t.negative)==0),this.iuxor(t)},a.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){m(typeof t=="number"&&t>=0);var n=0|Math.ceil(t/26),r=t%26;this._expand(n),r>0&&n--;for(var i=0;i<n;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,n){m(typeof t=="number"&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=n?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},a.prototype.iadd=function(t){var n,r,i;if(this.negative!==0&&t.negative===0)return this.negative=0,n=this.isub(t),this.negative^=1,this._normSign();if(this.negative===0&&t.negative!==0)return t.negative=0,n=this.isub(t),t.negative=1,n._normSign();this.length>t.length?(r=this,i=t):(r=t,i=this);for(var e=0,o=0;o<i.length;o++)n=(0|r.words[o])+(0|i.words[o])+e,this.words[o]=67108863&n,e=n>>>26;for(;e!==0&&o<r.length;o++)n=(0|r.words[o])+e,this.words[o]=67108863&n,e=n>>>26;if(this.length=r.length,e!==0)this.words[this.length]=e,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},a.prototype.add=function(t){var n;return t.negative!==0&&this.negative===0?(t.negative=0,n=this.sub(t),t.negative^=1,n):t.negative===0&&this.negative!==0?(this.negative=0,n=t.sub(this),this.negative=1,n):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(t.negative!==0){t.negative=0;var n=this.iadd(t);return t.negative=1,n._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,i,e=this.cmp(t);if(e===0)return this.negative=0,this.length=1,this.words[0]=0,this;e>0?(r=this,i=t):(r=t,i=this);for(var o=0,s=0;s<i.length;s++)o=(n=(0|r.words[s])-(0|i.words[s])+o)>>26,this.words[s]=67108863&n;for(;o!==0&&s<r.length;s++)o=(n=(0|r.words[s])+o)>>26,this.words[s]=67108863&n;if(o===0&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(t){return this.clone().isub(t)};var b=function(t,n,r){var i,e,o,s=t.words,A=n.words,C=r.words,j=0,T=0|s[0],R=8191&T,q=T>>>13,Z=0|s[1],rt=8191&Z,D=Z>>>13,G=0|s[2],z=8191&G,X=G>>>13,st=0|s[3],nt=8191&st,ht=st>>>13,Et=0|s[4],gt=8191&Et,bt=Et>>>13,Bt=0|s[5],Mt=8191&Bt,It=Bt>>>13,J=0|s[6],tt=8191&J,F=J>>>13,H=0|s[7],U=8191&H,it=H>>>13,pt=0|s[8],ft=8191&pt,mt=pt>>>13,re=0|s[9],_t=8191&re,At=re>>>13,fe=0|A[0],kt=8191&fe,Kt=fe>>>13,Ce=0|A[1],Pt=8191&Ce,Ht=Ce>>>13,je=0|A[2],Rt=8191&je,Wt=je>>>13,ye=0|A[3],Nt=8191&ye,Xt=ye>>>13,ke=0|A[4],jt=8191&ke,Zt=ke>>>13,Oe=0|A[5],Dt=8191&Oe,Jt=Oe>>>13,De=0|A[6],Lt=8191&De,Qt=De>>>13,ze=0|A[7],Ut=8191&ze,Yt=ze>>>13,$e=0|A[8],qt=8191&$e,ee=$e>>>13,He=0|A[9],Ft=8191&He,te=He>>>13;r.negative=t.negative^n.negative,r.length=19;var Ae=(j+(i=Math.imul(R,kt))|0)+((8191&(e=(e=Math.imul(R,Kt))+Math.imul(q,kt)|0))<<13)|0;j=((o=Math.imul(q,Kt))+(e>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,i=Math.imul(rt,kt),e=(e=Math.imul(rt,Kt))+Math.imul(D,kt)|0,o=Math.imul(D,Kt);var Re=(j+(i=i+Math.imul(R,Pt)|0)|0)+((8191&(e=(e=e+Math.imul(R,Ht)|0)+Math.imul(q,Pt)|0))<<13)|0;j=((o=o+Math.imul(q,Ht)|0)+(e>>>13)|0)+(Re>>>26)|0,Re&=67108863,i=Math.imul(z,kt),e=(e=Math.imul(z,Kt))+Math.imul(X,kt)|0,o=Math.imul(X,Kt),i=i+Math.imul(rt,Pt)|0,e=(e=e+Math.imul(rt,Ht)|0)+Math.imul(D,Pt)|0,o=o+Math.imul(D,Ht)|0;var Ke=(j+(i=i+Math.imul(R,Rt)|0)|0)+((8191&(e=(e=e+Math.imul(R,Wt)|0)+Math.imul(q,Rt)|0))<<13)|0;j=((o=o+Math.imul(q,Wt)|0)+(e>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,i=Math.imul(nt,kt),e=(e=Math.imul(nt,Kt))+Math.imul(ht,kt)|0,o=Math.imul(ht,Kt),i=i+Math.imul(z,Pt)|0,e=(e=e+Math.imul(z,Ht)|0)+Math.imul(X,Pt)|0,o=o+Math.imul(X,Ht)|0,i=i+Math.imul(rt,Rt)|0,e=(e=e+Math.imul(rt,Wt)|0)+Math.imul(D,Rt)|0,o=o+Math.imul(D,Wt)|0;var ai=(j+(i=i+Math.imul(R,Nt)|0)|0)+((8191&(e=(e=e+Math.imul(R,Xt)|0)+Math.imul(q,Nt)|0))<<13)|0;j=((o=o+Math.imul(q,Xt)|0)+(e>>>13)|0)+(ai>>>26)|0,ai&=67108863,i=Math.imul(gt,kt),e=(e=Math.imul(gt,Kt))+Math.imul(bt,kt)|0,o=Math.imul(bt,Kt),i=i+Math.imul(nt,Pt)|0,e=(e=e+Math.imul(nt,Ht)|0)+Math.imul(ht,Pt)|0,o=o+Math.imul(ht,Ht)|0,i=i+Math.imul(z,Rt)|0,e=(e=e+Math.imul(z,Wt)|0)+Math.imul(X,Rt)|0,o=o+Math.imul(X,Wt)|0,i=i+Math.imul(rt,Nt)|0,e=(e=e+Math.imul(rt,Xt)|0)+Math.imul(D,Nt)|0,o=o+Math.imul(D,Xt)|0;var ri=(j+(i=i+Math.imul(R,jt)|0)|0)+((8191&(e=(e=e+Math.imul(R,Zt)|0)+Math.imul(q,jt)|0))<<13)|0;j=((o=o+Math.imul(q,Zt)|0)+(e>>>13)|0)+(ri>>>26)|0,ri&=67108863,i=Math.imul(Mt,kt),e=(e=Math.imul(Mt,Kt))+Math.imul(It,kt)|0,o=Math.imul(It,Kt),i=i+Math.imul(gt,Pt)|0,e=(e=e+Math.imul(gt,Ht)|0)+Math.imul(bt,Pt)|0,o=o+Math.imul(bt,Ht)|0,i=i+Math.imul(nt,Rt)|0,e=(e=e+Math.imul(nt,Wt)|0)+Math.imul(ht,Rt)|0,o=o+Math.imul(ht,Wt)|0,i=i+Math.imul(z,Nt)|0,e=(e=e+Math.imul(z,Xt)|0)+Math.imul(X,Nt)|0,o=o+Math.imul(X,Xt)|0,i=i+Math.imul(rt,jt)|0,e=(e=e+Math.imul(rt,Zt)|0)+Math.imul(D,jt)|0,o=o+Math.imul(D,Zt)|0;var si=(j+(i=i+Math.imul(R,Dt)|0)|0)+((8191&(e=(e=e+Math.imul(R,Jt)|0)+Math.imul(q,Dt)|0))<<13)|0;j=((o=o+Math.imul(q,Jt)|0)+(e>>>13)|0)+(si>>>26)|0,si&=67108863,i=Math.imul(tt,kt),e=(e=Math.imul(tt,Kt))+Math.imul(F,kt)|0,o=Math.imul(F,Kt),i=i+Math.imul(Mt,Pt)|0,e=(e=e+Math.imul(Mt,Ht)|0)+Math.imul(It,Pt)|0,o=o+Math.imul(It,Ht)|0,i=i+Math.imul(gt,Rt)|0,e=(e=e+Math.imul(gt,Wt)|0)+Math.imul(bt,Rt)|0,o=o+Math.imul(bt,Wt)|0,i=i+Math.imul(nt,Nt)|0,e=(e=e+Math.imul(nt,Xt)|0)+Math.imul(ht,Nt)|0,o=o+Math.imul(ht,Xt)|0,i=i+Math.imul(z,jt)|0,e=(e=e+Math.imul(z,Zt)|0)+Math.imul(X,jt)|0,o=o+Math.imul(X,Zt)|0,i=i+Math.imul(rt,Dt)|0,e=(e=e+Math.imul(rt,Jt)|0)+Math.imul(D,Dt)|0,o=o+Math.imul(D,Jt)|0;var ui=(j+(i=i+Math.imul(R,Lt)|0)|0)+((8191&(e=(e=e+Math.imul(R,Qt)|0)+Math.imul(q,Lt)|0))<<13)|0;j=((o=o+Math.imul(q,Qt)|0)+(e>>>13)|0)+(ui>>>26)|0,ui&=67108863,i=Math.imul(U,kt),e=(e=Math.imul(U,Kt))+Math.imul(it,kt)|0,o=Math.imul(it,Kt),i=i+Math.imul(tt,Pt)|0,e=(e=e+Math.imul(tt,Ht)|0)+Math.imul(F,Pt)|0,o=o+Math.imul(F,Ht)|0,i=i+Math.imul(Mt,Rt)|0,e=(e=e+Math.imul(Mt,Wt)|0)+Math.imul(It,Rt)|0,o=o+Math.imul(It,Wt)|0,i=i+Math.imul(gt,Nt)|0,e=(e=e+Math.imul(gt,Xt)|0)+Math.imul(bt,Nt)|0,o=o+Math.imul(bt,Xt)|0,i=i+Math.imul(nt,jt)|0,e=(e=e+Math.imul(nt,Zt)|0)+Math.imul(ht,jt)|0,o=o+Math.imul(ht,Zt)|0,i=i+Math.imul(z,Dt)|0,e=(e=e+Math.imul(z,Jt)|0)+Math.imul(X,Dt)|0,o=o+Math.imul(X,Jt)|0,i=i+Math.imul(rt,Lt)|0,e=(e=e+Math.imul(rt,Qt)|0)+Math.imul(D,Lt)|0,o=o+Math.imul(D,Qt)|0;var ci=(j+(i=i+Math.imul(R,Ut)|0)|0)+((8191&(e=(e=e+Math.imul(R,Yt)|0)+Math.imul(q,Ut)|0))<<13)|0;j=((o=o+Math.imul(q,Yt)|0)+(e>>>13)|0)+(ci>>>26)|0,ci&=67108863,i=Math.imul(ft,kt),e=(e=Math.imul(ft,Kt))+Math.imul(mt,kt)|0,o=Math.imul(mt,Kt),i=i+Math.imul(U,Pt)|0,e=(e=e+Math.imul(U,Ht)|0)+Math.imul(it,Pt)|0,o=o+Math.imul(it,Ht)|0,i=i+Math.imul(tt,Rt)|0,e=(e=e+Math.imul(tt,Wt)|0)+Math.imul(F,Rt)|0,o=o+Math.imul(F,Wt)|0,i=i+Math.imul(Mt,Nt)|0,e=(e=e+Math.imul(Mt,Xt)|0)+Math.imul(It,Nt)|0,o=o+Math.imul(It,Xt)|0,i=i+Math.imul(gt,jt)|0,e=(e=e+Math.imul(gt,Zt)|0)+Math.imul(bt,jt)|0,o=o+Math.imul(bt,Zt)|0,i=i+Math.imul(nt,Dt)|0,e=(e=e+Math.imul(nt,Jt)|0)+Math.imul(ht,Dt)|0,o=o+Math.imul(ht,Jt)|0,i=i+Math.imul(z,Lt)|0,e=(e=e+Math.imul(z,Qt)|0)+Math.imul(X,Lt)|0,o=o+Math.imul(X,Qt)|0,i=i+Math.imul(rt,Ut)|0,e=(e=e+Math.imul(rt,Yt)|0)+Math.imul(D,Ut)|0,o=o+Math.imul(D,Yt)|0;var li=(j+(i=i+Math.imul(R,qt)|0)|0)+((8191&(e=(e=e+Math.imul(R,ee)|0)+Math.imul(q,qt)|0))<<13)|0;j=((o=o+Math.imul(q,ee)|0)+(e>>>13)|0)+(li>>>26)|0,li&=67108863,i=Math.imul(_t,kt),e=(e=Math.imul(_t,Kt))+Math.imul(At,kt)|0,o=Math.imul(At,Kt),i=i+Math.imul(ft,Pt)|0,e=(e=e+Math.imul(ft,Ht)|0)+Math.imul(mt,Pt)|0,o=o+Math.imul(mt,Ht)|0,i=i+Math.imul(U,Rt)|0,e=(e=e+Math.imul(U,Wt)|0)+Math.imul(it,Rt)|0,o=o+Math.imul(it,Wt)|0,i=i+Math.imul(tt,Nt)|0,e=(e=e+Math.imul(tt,Xt)|0)+Math.imul(F,Nt)|0,o=o+Math.imul(F,Xt)|0,i=i+Math.imul(Mt,jt)|0,e=(e=e+Math.imul(Mt,Zt)|0)+Math.imul(It,jt)|0,o=o+Math.imul(It,Zt)|0,i=i+Math.imul(gt,Dt)|0,e=(e=e+Math.imul(gt,Jt)|0)+Math.imul(bt,Dt)|0,o=o+Math.imul(bt,Jt)|0,i=i+Math.imul(nt,Lt)|0,e=(e=e+Math.imul(nt,Qt)|0)+Math.imul(ht,Lt)|0,o=o+Math.imul(ht,Qt)|0,i=i+Math.imul(z,Ut)|0,e=(e=e+Math.imul(z,Yt)|0)+Math.imul(X,Ut)|0,o=o+Math.imul(X,Yt)|0,i=i+Math.imul(rt,qt)|0,e=(e=e+Math.imul(rt,ee)|0)+Math.imul(D,qt)|0,o=o+Math.imul(D,ee)|0;var hi=(j+(i=i+Math.imul(R,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(R,te)|0)+Math.imul(q,Ft)|0))<<13)|0;j=((o=o+Math.imul(q,te)|0)+(e>>>13)|0)+(hi>>>26)|0,hi&=67108863,i=Math.imul(_t,Pt),e=(e=Math.imul(_t,Ht))+Math.imul(At,Pt)|0,o=Math.imul(At,Ht),i=i+Math.imul(ft,Rt)|0,e=(e=e+Math.imul(ft,Wt)|0)+Math.imul(mt,Rt)|0,o=o+Math.imul(mt,Wt)|0,i=i+Math.imul(U,Nt)|0,e=(e=e+Math.imul(U,Xt)|0)+Math.imul(it,Nt)|0,o=o+Math.imul(it,Xt)|0,i=i+Math.imul(tt,jt)|0,e=(e=e+Math.imul(tt,Zt)|0)+Math.imul(F,jt)|0,o=o+Math.imul(F,Zt)|0,i=i+Math.imul(Mt,Dt)|0,e=(e=e+Math.imul(Mt,Jt)|0)+Math.imul(It,Dt)|0,o=o+Math.imul(It,Jt)|0,i=i+Math.imul(gt,Lt)|0,e=(e=e+Math.imul(gt,Qt)|0)+Math.imul(bt,Lt)|0,o=o+Math.imul(bt,Qt)|0,i=i+Math.imul(nt,Ut)|0,e=(e=e+Math.imul(nt,Yt)|0)+Math.imul(ht,Ut)|0,o=o+Math.imul(ht,Yt)|0,i=i+Math.imul(z,qt)|0,e=(e=e+Math.imul(z,ee)|0)+Math.imul(X,qt)|0,o=o+Math.imul(X,ee)|0;var fi=(j+(i=i+Math.imul(rt,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(rt,te)|0)+Math.imul(D,Ft)|0))<<13)|0;j=((o=o+Math.imul(D,te)|0)+(e>>>13)|0)+(fi>>>26)|0,fi&=67108863,i=Math.imul(_t,Rt),e=(e=Math.imul(_t,Wt))+Math.imul(At,Rt)|0,o=Math.imul(At,Wt),i=i+Math.imul(ft,Nt)|0,e=(e=e+Math.imul(ft,Xt)|0)+Math.imul(mt,Nt)|0,o=o+Math.imul(mt,Xt)|0,i=i+Math.imul(U,jt)|0,e=(e=e+Math.imul(U,Zt)|0)+Math.imul(it,jt)|0,o=o+Math.imul(it,Zt)|0,i=i+Math.imul(tt,Dt)|0,e=(e=e+Math.imul(tt,Jt)|0)+Math.imul(F,Dt)|0,o=o+Math.imul(F,Jt)|0,i=i+Math.imul(Mt,Lt)|0,e=(e=e+Math.imul(Mt,Qt)|0)+Math.imul(It,Lt)|0,o=o+Math.imul(It,Qt)|0,i=i+Math.imul(gt,Ut)|0,e=(e=e+Math.imul(gt,Yt)|0)+Math.imul(bt,Ut)|0,o=o+Math.imul(bt,Yt)|0,i=i+Math.imul(nt,qt)|0,e=(e=e+Math.imul(nt,ee)|0)+Math.imul(ht,qt)|0,o=o+Math.imul(ht,ee)|0;var Je=(j+(i=i+Math.imul(z,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(z,te)|0)+Math.imul(X,Ft)|0))<<13)|0;j=((o=o+Math.imul(X,te)|0)+(e>>>13)|0)+(Je>>>26)|0,Je&=67108863,i=Math.imul(_t,Nt),e=(e=Math.imul(_t,Xt))+Math.imul(At,Nt)|0,o=Math.imul(At,Xt),i=i+Math.imul(ft,jt)|0,e=(e=e+Math.imul(ft,Zt)|0)+Math.imul(mt,jt)|0,o=o+Math.imul(mt,Zt)|0,i=i+Math.imul(U,Dt)|0,e=(e=e+Math.imul(U,Jt)|0)+Math.imul(it,Dt)|0,o=o+Math.imul(it,Jt)|0,i=i+Math.imul(tt,Lt)|0,e=(e=e+Math.imul(tt,Qt)|0)+Math.imul(F,Lt)|0,o=o+Math.imul(F,Qt)|0,i=i+Math.imul(Mt,Ut)|0,e=(e=e+Math.imul(Mt,Yt)|0)+Math.imul(It,Ut)|0,o=o+Math.imul(It,Yt)|0,i=i+Math.imul(gt,qt)|0,e=(e=e+Math.imul(gt,ee)|0)+Math.imul(bt,qt)|0,o=o+Math.imul(bt,ee)|0;var pi=(j+(i=i+Math.imul(nt,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(nt,te)|0)+Math.imul(ht,Ft)|0))<<13)|0;j=((o=o+Math.imul(ht,te)|0)+(e>>>13)|0)+(pi>>>26)|0,pi&=67108863,i=Math.imul(_t,jt),e=(e=Math.imul(_t,Zt))+Math.imul(At,jt)|0,o=Math.imul(At,Zt),i=i+Math.imul(ft,Dt)|0,e=(e=e+Math.imul(ft,Jt)|0)+Math.imul(mt,Dt)|0,o=o+Math.imul(mt,Jt)|0,i=i+Math.imul(U,Lt)|0,e=(e=e+Math.imul(U,Qt)|0)+Math.imul(it,Lt)|0,o=o+Math.imul(it,Qt)|0,i=i+Math.imul(tt,Ut)|0,e=(e=e+Math.imul(tt,Yt)|0)+Math.imul(F,Ut)|0,o=o+Math.imul(F,Yt)|0,i=i+Math.imul(Mt,qt)|0,e=(e=e+Math.imul(Mt,ee)|0)+Math.imul(It,qt)|0,o=o+Math.imul(It,ee)|0;var gi=(j+(i=i+Math.imul(gt,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(gt,te)|0)+Math.imul(bt,Ft)|0))<<13)|0;j=((o=o+Math.imul(bt,te)|0)+(e>>>13)|0)+(gi>>>26)|0,gi&=67108863,i=Math.imul(_t,Dt),e=(e=Math.imul(_t,Jt))+Math.imul(At,Dt)|0,o=Math.imul(At,Jt),i=i+Math.imul(ft,Lt)|0,e=(e=e+Math.imul(ft,Qt)|0)+Math.imul(mt,Lt)|0,o=o+Math.imul(mt,Qt)|0,i=i+Math.imul(U,Ut)|0,e=(e=e+Math.imul(U,Yt)|0)+Math.imul(it,Ut)|0,o=o+Math.imul(it,Yt)|0,i=i+Math.imul(tt,qt)|0,e=(e=e+Math.imul(tt,ee)|0)+Math.imul(F,qt)|0,o=o+Math.imul(F,ee)|0;var ei=(j+(i=i+Math.imul(Mt,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(Mt,te)|0)+Math.imul(It,Ft)|0))<<13)|0;j=((o=o+Math.imul(It,te)|0)+(e>>>13)|0)+(ei>>>26)|0,ei&=67108863,i=Math.imul(_t,Lt),e=(e=Math.imul(_t,Qt))+Math.imul(At,Lt)|0,o=Math.imul(At,Qt),i=i+Math.imul(ft,Ut)|0,e=(e=e+Math.imul(ft,Yt)|0)+Math.imul(mt,Ut)|0,o=o+Math.imul(mt,Yt)|0,i=i+Math.imul(U,qt)|0,e=(e=e+Math.imul(U,ee)|0)+Math.imul(it,qt)|0,o=o+Math.imul(it,ee)|0;var ii=(j+(i=i+Math.imul(tt,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(tt,te)|0)+Math.imul(F,Ft)|0))<<13)|0;j=((o=o+Math.imul(F,te)|0)+(e>>>13)|0)+(ii>>>26)|0,ii&=67108863,i=Math.imul(_t,Ut),e=(e=Math.imul(_t,Yt))+Math.imul(At,Ut)|0,o=Math.imul(At,Yt),i=i+Math.imul(ft,qt)|0,e=(e=e+Math.imul(ft,ee)|0)+Math.imul(mt,qt)|0,o=o+Math.imul(mt,ee)|0;var Ye=(j+(i=i+Math.imul(U,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(U,te)|0)+Math.imul(it,Ft)|0))<<13)|0;j=((o=o+Math.imul(it,te)|0)+(e>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,i=Math.imul(_t,qt),e=(e=Math.imul(_t,ee))+Math.imul(At,qt)|0,o=Math.imul(At,ee);var di=(j+(i=i+Math.imul(ft,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(ft,te)|0)+Math.imul(mt,Ft)|0))<<13)|0;j=((o=o+Math.imul(mt,te)|0)+(e>>>13)|0)+(di>>>26)|0,di&=67108863;var ni=(j+(i=Math.imul(_t,Ft))|0)+((8191&(e=(e=Math.imul(_t,te))+Math.imul(At,Ft)|0))<<13)|0;return j=((o=Math.imul(At,te))+(e>>>13)|0)+(ni>>>26)|0,ni&=67108863,C[0]=Ae,C[1]=Re,C[2]=Ke,C[3]=ai,C[4]=ri,C[5]=si,C[6]=ui,C[7]=ci,C[8]=li,C[9]=hi,C[10]=fi,C[11]=Je,C[12]=pi,C[13]=gi,C[14]=ei,C[15]=ii,C[16]=Ye,C[17]=di,C[18]=ni,j!==0&&(C[19]=j,r.length++),r};function E(t,n,r){return new I().mulp(t,n,r)}function I(t,n){this.x=t,this.y=n}Math.imul||(b=w),a.prototype.mulTo=function(t,n){var r,i=this.length+t.length;return r=this.length===10&&t.length===10?b(this,t,n):i<63?w(this,t,n):i<1024?function(e,o,s){s.negative=o.negative^e.negative,s.length=e.length+o.length;for(var A=0,C=0,j=0;j<s.length-1;j++){var T=C;C=0;for(var R=67108863&A,q=Math.min(j,o.length-1),Z=Math.max(0,j-e.length+1);Z<=q;Z++){var rt=j-Z,D=(0|e.words[rt])*(0|o.words[Z]),G=67108863&D;R=67108863&(G=G+R|0),C+=(T=(T=T+(D/67108864|0)|0)+(G>>>26)|0)>>>26,T&=67108863}s.words[j]=R,A=T,T=C}return A!==0?s.words[j]=A:s.length--,s.strip()}(this,t,n):E(this,t,n),r},I.prototype.makeRBT=function(t){for(var n=new Array(t),r=a.prototype._countBits(t)-1,i=0;i<t;i++)n[i]=this.revBin(i,r,t);return n},I.prototype.revBin=function(t,n,r){if(t===0||t===r-1)return t;for(var i=0,e=0;e<n;e++)i|=(1&t)<<n-e-1,t>>=1;return i},I.prototype.permute=function(t,n,r,i,e,o){for(var s=0;s<o;s++)i[s]=n[t[s]],e[s]=r[t[s]]},I.prototype.transform=function(t,n,r,i,e,o){this.permute(o,t,n,r,i,e);for(var s=1;s<e;s<<=1)for(var A=s<<1,C=Math.cos(2*Math.PI/A),j=Math.sin(2*Math.PI/A),T=0;T<e;T+=A)for(var R=C,q=j,Z=0;Z<s;Z++){var rt=r[T+Z],D=i[T+Z],G=r[T+Z+s],z=i[T+Z+s],X=R*G-q*z;z=R*z+q*G,G=X,r[T+Z]=rt+G,i[T+Z]=D+z,r[T+Z+s]=rt-G,i[T+Z+s]=D-z,Z!==A&&(X=C*R-j*q,q=C*q+j*R,R=X)}},I.prototype.guessLen13b=function(t,n){var r=1|Math.max(n,t),i=1&r,e=0;for(r=r/2|0;r;r>>>=1)e++;return 1<<e+1+i},I.prototype.conjugate=function(t,n,r){if(!(r<=1))for(var i=0;i<r/2;i++){var e=t[i];t[i]=t[r-i-1],t[r-i-1]=e,e=n[i],n[i]=-n[r-i-1],n[r-i-1]=-e}},I.prototype.normalize13b=function(t,n){for(var r=0,i=0;i<n/2;i++){var e=8192*Math.round(t[2*i+1]/n)+Math.round(t[2*i]/n)+r;t[i]=67108863&e,r=e<67108864?0:e/67108864|0}return t},I.prototype.convert13b=function(t,n,r,i){for(var e=0,o=0;o<n;o++)e+=0|t[o],r[2*o]=8191&e,e>>>=13,r[2*o+1]=8191&e,e>>>=13;for(o=2*n;o<i;++o)r[o]=0;m(e===0),m((-8192&e)==0)},I.prototype.stub=function(t){for(var n=new Array(t),r=0;r<t;r++)n[r]=0;return n},I.prototype.mulp=function(t,n,r){var i=2*this.guessLen13b(t.length,n.length),e=this.makeRBT(i),o=this.stub(i),s=new Array(i),A=new Array(i),C=new Array(i),j=new Array(i),T=new Array(i),R=new Array(i),q=r.words;q.length=i,this.convert13b(t.words,t.length,s,i),this.convert13b(n.words,n.length,j,i),this.transform(s,o,A,C,i,e),this.transform(j,o,T,R,i,e);for(var Z=0;Z<i;Z++){var rt=A[Z]*T[Z]-C[Z]*R[Z];C[Z]=A[Z]*R[Z]+C[Z]*T[Z],A[Z]=rt}return this.conjugate(A,C,i),this.transform(A,C,q,o,i,e),this.conjugate(q,o,i),this.normalize13b(q,i),r.negative=t.negative^n.negative,r.length=t.length+n.length,r.strip()},a.prototype.mul=function(t){var n=new a(null);return n.words=new Array(this.length+t.length),this.mulTo(t,n)},a.prototype.mulf=function(t){var n=new a(null);return n.words=new Array(this.length+t.length),E(this,t,n)},a.prototype.imul=function(t){return this.clone().mulTo(t,this)},a.prototype.imuln=function(t){m(typeof t=="number"),m(t<67108864);for(var n=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,e=(67108863&i)+(67108863&n);n>>=26,n+=i/67108864|0,n+=e>>>26,this.words[r]=67108863&e}return n!==0&&(this.words[r]=n,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var n=function(o){for(var s=new Array(o.bitLength()),A=0;A<s.length;A++){var C=A/26|0,j=A%26;s[A]=(o.words[C]&1<<j)>>>j}return s}(t);if(n.length===0)return new a(1);for(var r=this,i=0;i<n.length&&n[i]===0;i++,r=r.sqr());if(++i<n.length)for(var e=r.sqr();i<n.length;i++,e=e.sqr())n[i]!==0&&(r=r.mul(e));return r},a.prototype.iushln=function(t){m(typeof t=="number"&&t>=0);var n,r=t%26,i=(t-r)/26,e=67108863>>>26-r<<26-r;if(r!==0){var o=0;for(n=0;n<this.length;n++){var s=this.words[n]&e,A=(0|this.words[n])-s<<r;this.words[n]=A|o,o=s>>>26-r}o&&(this.words[n]=o,this.length++)}if(i!==0){for(n=this.length-1;n>=0;n--)this.words[n+i]=this.words[n];for(n=0;n<i;n++)this.words[n]=0;this.length+=i}return this.strip()},a.prototype.ishln=function(t){return m(this.negative===0),this.iushln(t)},a.prototype.iushrn=function(t,n,r){var i;m(typeof t=="number"&&t>=0),i=n?(n-n%26)/26:0;var e=t%26,o=Math.min((t-e)/26,this.length),s=67108863^67108863>>>e<<e,A=r;if(i-=o,i=Math.max(0,i),A){for(var C=0;C<o;C++)A.words[C]=this.words[C];A.length=o}if(o!==0)if(this.length>o)for(this.length-=o,C=0;C<this.length;C++)this.words[C]=this.words[C+o];else this.words[0]=0,this.length=1;var j=0;for(C=this.length-1;C>=0&&(j!==0||C>=i);C--){var T=0|this.words[C];this.words[C]=j<<26-e|T>>>e,j=T&s}return A&&j!==0&&(A.words[A.length++]=j),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,n,r){return m(this.negative===0),this.iushrn(t,n,r)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){m(typeof t=="number"&&t>=0);var n=t%26,r=(t-n)/26,i=1<<n;return!(this.length<=r||!(this.words[r]&i))},a.prototype.imaskn=function(t){m(typeof t=="number"&&t>=0);var n=t%26,r=(t-n)/26;if(m(this.negative===0,"imaskn works only with positive numbers"),this.length<=r)return this;if(n!==0&&r++,this.length=Math.min(r,this.length),n!==0){var i=67108863^67108863>>>n<<n;this.words[this.length-1]&=i}return this.strip()},a.prototype.maskn=function(t){return this.clone().imaskn(t)},a.prototype.iaddn=function(t){return m(typeof t=="number"),m(t<67108864),t<0?this.isubn(-t):this.negative!==0?this.length===1&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},a.prototype._iaddn=function(t){this.words[0]+=t;for(var n=0;n<this.length&&this.words[n]>=67108864;n++)this.words[n]-=67108864,n===this.length-1?this.words[n+1]=1:this.words[n+1]++;return this.length=Math.max(this.length,n+1),this},a.prototype.isubn=function(t){if(m(typeof t=="number"),m(t<67108864),t<0)return this.iaddn(-t);if(this.negative!==0)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var n=0;n<this.length&&this.words[n]<0;n++)this.words[n]+=67108864,this.words[n+1]-=1;return this.strip()},a.prototype.addn=function(t){return this.clone().iaddn(t)},a.prototype.subn=function(t){return this.clone().isubn(t)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(t,n,r){var i,e,o=t.length+r;this._expand(o);var s=0;for(i=0;i<t.length;i++){e=(0|this.words[i+r])+s;var A=(0|t.words[i])*n;s=((e-=67108863&A)>>26)-(A/67108864|0),this.words[i+r]=67108863&e}for(;i<this.length-r;i++)s=(e=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&e;if(s===0)return this.strip();for(m(s===-1),s=0,i=0;i<this.length;i++)s=(e=-(0|this.words[i])+s)>>26,this.words[i]=67108863&e;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,n){var r=(this.length,t.length),i=this.clone(),e=t,o=0|e.words[e.length-1];(r=26-this._countBits(o))!=0&&(e=e.ushln(r),i.iushln(r),o=0|e.words[e.length-1]);var s,A=i.length-e.length;if(n!=="mod"){(s=new a(null)).length=A+1,s.words=new Array(s.length);for(var C=0;C<s.length;C++)s.words[C]=0}var j=i.clone()._ishlnsubmul(e,1,A);j.negative===0&&(i=j,s&&(s.words[A]=1));for(var T=A-1;T>=0;T--){var R=67108864*(0|i.words[e.length+T])+(0|i.words[e.length+T-1]);for(R=Math.min(R/o|0,67108863),i._ishlnsubmul(e,R,T);i.negative!==0;)R--,i.negative=0,i._ishlnsubmul(e,1,T),i.isZero()||(i.negative^=1);s&&(s.words[T]=R)}return s&&s.strip(),i.strip(),n!=="div"&&r!==0&&i.iushrn(r),{div:s||null,mod:i}},a.prototype.divmod=function(t,n,r){return m(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:this.negative!==0&&t.negative===0?(o=this.neg().divmod(t,n),n!=="mod"&&(i=o.div.neg()),n!=="div"&&(e=o.mod.neg(),r&&e.negative!==0&&e.iadd(t)),{div:i,mod:e}):this.negative===0&&t.negative!==0?(o=this.divmod(t.neg(),n),n!=="mod"&&(i=o.div.neg()),{div:i,mod:o.mod}):this.negative&t.negative?(o=this.neg().divmod(t.neg(),n),n!=="div"&&(e=o.mod.neg(),r&&e.negative!==0&&e.isub(t)),{div:o.div,mod:e}):t.length>this.length||this.cmp(t)<0?{div:new a(0),mod:this}:t.length===1?n==="div"?{div:this.divn(t.words[0]),mod:null}:n==="mod"?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,n);var i,e,o},a.prototype.div=function(t){return this.divmod(t,"div",!1).div},a.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},a.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},a.prototype.divRound=function(t){var n=this.divmod(t);if(n.mod.isZero())return n.div;var r=n.div.negative!==0?n.mod.isub(t):n.mod,i=t.ushrn(1),e=t.andln(1),o=r.cmp(i);return o<0||e===1&&o===0?n.div:n.div.negative!==0?n.div.isubn(1):n.div.iaddn(1)},a.prototype.modn=function(t){m(t<=67108863);for(var n=67108864%t,r=0,i=this.length-1;i>=0;i--)r=(n*r+(0|this.words[i]))%t;return r},a.prototype.idivn=function(t){m(t<=67108863);for(var n=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*n;this.words[r]=i/t|0,n=i%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){m(t.negative===0),m(!t.isZero());var n=this,r=t.clone();n=n.negative!==0?n.umod(t):n.clone();for(var i=new a(1),e=new a(0),o=new a(0),s=new a(1),A=0;n.isEven()&&r.isEven();)n.iushrn(1),r.iushrn(1),++A;for(var C=r.clone(),j=n.clone();!n.isZero();){for(var T=0,R=1;!(n.words[0]&R)&&T<26;++T,R<<=1);if(T>0)for(n.iushrn(T);T-- >0;)(i.isOdd()||e.isOdd())&&(i.iadd(C),e.isub(j)),i.iushrn(1),e.iushrn(1);for(var q=0,Z=1;!(r.words[0]&Z)&&q<26;++q,Z<<=1);if(q>0)for(r.iushrn(q);q-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(C),s.isub(j)),o.iushrn(1),s.iushrn(1);n.cmp(r)>=0?(n.isub(r),i.isub(o),e.isub(s)):(r.isub(n),o.isub(i),s.isub(e))}return{a:o,b:s,gcd:r.iushln(A)}},a.prototype._invmp=function(t){m(t.negative===0),m(!t.isZero());var n=this,r=t.clone();n=n.negative!==0?n.umod(t):n.clone();for(var i,e=new a(1),o=new a(0),s=r.clone();n.cmpn(1)>0&&r.cmpn(1)>0;){for(var A=0,C=1;!(n.words[0]&C)&&A<26;++A,C<<=1);if(A>0)for(n.iushrn(A);A-- >0;)e.isOdd()&&e.iadd(s),e.iushrn(1);for(var j=0,T=1;!(r.words[0]&T)&&j<26;++j,T<<=1);if(j>0)for(r.iushrn(j);j-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);n.cmp(r)>=0?(n.isub(r),e.isub(o)):(r.isub(n),o.isub(e))}return(i=n.cmpn(1)===0?e:o).cmpn(0)<0&&i.iadd(t),i},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var n=this.clone(),r=t.clone();n.negative=0,r.negative=0;for(var i=0;n.isEven()&&r.isEven();i++)n.iushrn(1),r.iushrn(1);for(;;){for(;n.isEven();)n.iushrn(1);for(;r.isEven();)r.iushrn(1);var e=n.cmp(r);if(e<0){var o=n;n=r,r=o}else if(e===0||r.cmpn(1)===0)break;n.isub(r)}return r.iushln(i)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(t){return this.words[0]&t},a.prototype.bincn=function(t){m(typeof t=="number");var n=t%26,r=(t-n)/26,i=1<<n;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var e=i,o=r;e!==0&&o<this.length;o++){var s=0|this.words[o];e=(s+=e)>>>26,s&=67108863,this.words[o]=s}return e!==0&&(this.words[o]=e,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(t){var n,r=t<0;if(this.negative!==0&&!r)return-1;if(this.negative===0&&r)return 1;if(this.strip(),this.length>1)n=1;else{r&&(t=-t),m(t<=67108863,"Number is too big");var i=0|this.words[0];n=i===t?0:i<t?-1:1}return this.negative!==0?0|-n:n},a.prototype.cmp=function(t){if(this.negative!==0&&t.negative===0)return-1;if(this.negative===0&&t.negative!==0)return 1;var n=this.ucmp(t);return this.negative!==0?0|-n:n},a.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var n=0,r=this.length-1;r>=0;r--){var i=0|this.words[r],e=0|t.words[r];if(i!==e){i<e?n=-1:i>e&&(n=1);break}}return n},a.prototype.gtn=function(t){return this.cmpn(t)===1},a.prototype.gt=function(t){return this.cmp(t)===1},a.prototype.gten=function(t){return this.cmpn(t)>=0},a.prototype.gte=function(t){return this.cmp(t)>=0},a.prototype.ltn=function(t){return this.cmpn(t)===-1},a.prototype.lt=function(t){return this.cmp(t)===-1},a.prototype.lten=function(t){return this.cmpn(t)<=0},a.prototype.lte=function(t){return this.cmp(t)<=0},a.prototype.eqn=function(t){return this.cmpn(t)===0},a.prototype.eq=function(t){return this.cmp(t)===0},a.red=function(t){return new Q(t)},a.prototype.toRed=function(t){return m(!this.red,"Already a number in reduction context"),m(this.negative===0,"red works only with positives"),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return m(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return m(!this.red,"Already a number in reduction context"),this._forceRed(t)},a.prototype.redAdd=function(t){return m(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},a.prototype.redIAdd=function(t){return m(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},a.prototype.redSub=function(t){return m(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},a.prototype.redISub=function(t){return m(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},a.prototype.redShl=function(t){return m(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},a.prototype.redMul=function(t){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return m(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return m(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return m(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return m(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return m(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return m(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var M={k256:null,p224:null,p192:null,p25519:null};function B(t,n){this.name=t,this.p=new a(n,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function P(){B.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function N(){B.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function $(){B.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function et(){B.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function Q(t){if(typeof t=="string"){var n=a._prime(t);this.m=n.p,this.prime=n}else m(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function ot(t){Q.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}B.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},B.prototype.ireduce=function(t){var n,r=t;do this.split(r,this.tmp),n=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(n>this.n);var i=n<this.n?-1:r.ucmp(this.p);return i===0?(r.words[0]=0,r.length=1):i>0?r.isub(this.p):r.strip!==void 0?r.strip():r._strip(),r},B.prototype.split=function(t,n){t.iushrn(this.n,0,n)},B.prototype.imulK=function(t){return t.imul(this.k)},S(P,B),P.prototype.split=function(t,n){for(var r=4194303,i=Math.min(t.length,9),e=0;e<i;e++)n.words[e]=t.words[e];if(n.length=i,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(n.words[n.length++]=o&r,e=10;e<t.length;e++){var s=0|t.words[e];t.words[e-10]=(s&r)<<4|o>>>22,o=s}o>>>=22,t.words[e-10]=o,o===0&&t.length>10?t.length-=10:t.length-=9},P.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var n=0,r=0;r<t.length;r++){var i=0|t.words[r];n+=977*i,t.words[r]=67108863&n,n=64*i+(n/67108864|0)}return t.words[t.length-1]===0&&(t.length--,t.words[t.length-1]===0&&t.length--),t},S(N,B),S($,B),S(et,B),et.prototype.imulK=function(t){for(var n=0,r=0;r<t.length;r++){var i=19*(0|t.words[r])+n,e=67108863&i;i>>>=26,t.words[r]=e,n=i}return n!==0&&(t.words[t.length++]=n),t},a._prime=function(t){if(M[t])return M[t];var n;if(t==="k256")n=new P;else if(t==="p224")n=new N;else if(t==="p192")n=new $;else{if(t!=="p25519")throw new Error("Unknown prime "+t);n=new et}return M[t]=n,n},Q.prototype._verify1=function(t){m(t.negative===0,"red works only with positives"),m(t.red,"red works only with red numbers")},Q.prototype._verify2=function(t,n){m((t.negative|n.negative)==0,"red works only with positives"),m(t.red&&t.red===n.red,"red works only with red numbers")},Q.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},Q.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},Q.prototype.add=function(t,n){this._verify2(t,n);var r=t.add(n);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},Q.prototype.iadd=function(t,n){this._verify2(t,n);var r=t.iadd(n);return r.cmp(this.m)>=0&&r.isub(this.m),r},Q.prototype.sub=function(t,n){this._verify2(t,n);var r=t.sub(n);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},Q.prototype.isub=function(t,n){this._verify2(t,n);var r=t.isub(n);return r.cmpn(0)<0&&r.iadd(this.m),r},Q.prototype.shl=function(t,n){return this._verify1(t),this.imod(t.ushln(n))},Q.prototype.imul=function(t,n){return this._verify2(t,n),this.imod(t.imul(n))},Q.prototype.mul=function(t,n){return this._verify2(t,n),this.imod(t.mul(n))},Q.prototype.isqr=function(t){return this.imul(t,t.clone())},Q.prototype.sqr=function(t){return this.mul(t,t)},Q.prototype.sqrt=function(t){if(t.isZero())return t.clone();var n=this.m.andln(3);if(m(n%2==1),n===3){var r=this.m.add(new a(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),e=0;!i.isZero()&&i.andln(1)===0;)e++,i.iushrn(1);m(!i.isZero());var o=new a(1).toRed(this),s=o.redNeg(),A=this.m.subn(1).iushrn(1),C=this.m.bitLength();for(C=new a(2*C*C).toRed(this);this.pow(C,A).cmp(s)!==0;)C.redIAdd(s);for(var j=this.pow(C,i),T=this.pow(t,i.addn(1).iushrn(1)),R=this.pow(t,i),q=e;R.cmp(o)!==0;){for(var Z=R,rt=0;Z.cmp(o)!==0;rt++)Z=Z.redSqr();m(rt<q);var D=this.pow(j,new a(1).iushln(q-rt-1));T=T.redMul(D),j=D.redSqr(),R=R.redMul(j),q=rt}return T},Q.prototype.invm=function(t){var n=t._invmp(this.m);return n.negative!==0?(n.negative=0,this.imod(n).redNeg()):this.imod(n)},Q.prototype.pow=function(t,n){if(n.isZero())return new a(1).toRed(this);if(n.cmpn(1)===0)return t.clone();var r=new Array(16);r[0]=new a(1).toRed(this),r[1]=t;for(var i=2;i<r.length;i++)r[i]=this.mul(r[i-1],t);var e=r[0],o=0,s=0,A=n.bitLength()%26;for(A===0&&(A=26),i=n.length-1;i>=0;i--){for(var C=n.words[i],j=A-1;j>=0;j--){var T=C>>j&1;e!==r[0]&&(e=this.sqr(e)),T!==0||o!==0?(o<<=1,o|=T,(++s==4||i===0&&j===0)&&(e=this.mul(e,r[o]),s=0,o=0)):s=0}A=26}return e},Q.prototype.convertTo=function(t){var n=t.umod(this.m);return n===t?n.clone():n},Q.prototype.convertFrom=function(t){var n=t.clone();return n.red=null,n},a.mont=function(t){return new ot(t)},S(ot,Q),ot.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},ot.prototype.convertFrom=function(t){var n=this.imod(t.mul(this.rinv));return n.red=null,n},ot.prototype.imul=function(t,n){if(t.isZero()||n.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(n),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=r.isub(i).iushrn(this.shift),o=e;return e.cmp(this.m)>=0?o=e.isub(this.m):e.cmpn(0)<0&&(o=e.iadd(this.m)),o._forceRed(this)},ot.prototype.mul=function(t,n){if(t.isZero()||n.isZero())return new a(0)._forceRed(this);var r=t.mul(n),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=r.isub(i).iushrn(this.shift),o=e;return e.cmp(this.m)>=0?o=e.isub(this.m):e.cmpn(0)<0&&(o=e.iadd(this.m)),o._forceRed(this)},ot.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}})(W=y.nmd(W),this)},6266:(W,_,y)=>{var x=_;x.version=y(8597).i8,x.utils=y(953),x.rand=y(9931),x.curve=y(8254),x.curves=y(5427),x.ec=y(7954),x.eddsa=y(5980)},4918:(W,_,y)=>{var x=y(3785),v=y(953),m=v.getNAF,S=v.getJSF,a=v.assert;function p(l,f){this.type=l,this.p=new x(f.p,16),this.red=f.prime?x.red(f.prime):x.mont(this.p),this.zero=new x(0).toRed(this.red),this.one=new x(1).toRed(this.red),this.two=new x(2).toRed(this.red),this.n=f.n&&new x(f.n,16),this.g=f.g&&this.pointFromJSON(f.g,f.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var g=this.n&&this.p.div(this.n);!g||g.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(l,f){this.curve=l,this.type=f,this.precomputed=null}W.exports=p,p.prototype.point=function(){throw new Error("Not implemented")},p.prototype.validate=function(){throw new Error("Not implemented")},p.prototype._fixedNafMul=function(l,f){a(l.precomputed);var g=l._getDoubles(),h=m(f,1,this._bitLength),u=(1<<g.step+1)-(g.step%2==0?2:1);u/=3;var w,b,E=[];for(w=0;w<h.length;w+=g.step){b=0;for(var I=w+g.step-1;I>=w;I--)b=(b<<1)+h[I];E.push(b)}for(var M=this.jpoint(null,null,null),B=this.jpoint(null,null,null),P=u;P>0;P--){for(w=0;w<E.length;w++)(b=E[w])===P?B=B.mixedAdd(g.points[w]):b===-P&&(B=B.mixedAdd(g.points[w].neg()));M=M.add(B)}return M.toP()},p.prototype._wnafMul=function(l,f){var g=4,h=l._getNAFPoints(g);g=h.wnd;for(var u=h.points,w=m(f,g,this._bitLength),b=this.jpoint(null,null,null),E=w.length-1;E>=0;E--){for(var I=0;E>=0&&w[E]===0;E--)I++;if(E>=0&&I++,b=b.dblp(I),E<0)break;var M=w[E];a(M!==0),b=l.type==="affine"?M>0?b.mixedAdd(u[M-1>>1]):b.mixedAdd(u[-M-1>>1].neg()):M>0?b.add(u[M-1>>1]):b.add(u[-M-1>>1].neg())}return l.type==="affine"?b.toP():b},p.prototype._wnafMulAdd=function(l,f,g,h,u){var w,b,E,I=this._wnafT1,M=this._wnafT2,B=this._wnafT3,P=0;for(w=0;w<h;w++){var N=(E=f[w])._getNAFPoints(l);I[w]=N.wnd,M[w]=N.points}for(w=h-1;w>=1;w-=2){var $=w-1,et=w;if(I[$]===1&&I[et]===1){var Q=[f[$],null,null,f[et]];f[$].y.cmp(f[et].y)===0?(Q[1]=f[$].add(f[et]),Q[2]=f[$].toJ().mixedAdd(f[et].neg())):f[$].y.cmp(f[et].y.redNeg())===0?(Q[1]=f[$].toJ().mixedAdd(f[et]),Q[2]=f[$].add(f[et].neg())):(Q[1]=f[$].toJ().mixedAdd(f[et]),Q[2]=f[$].toJ().mixedAdd(f[et].neg()));var ot=[-3,-1,-5,-7,0,7,5,1,3],t=S(g[$],g[et]);for(P=Math.max(t[0].length,P),B[$]=new Array(P),B[et]=new Array(P),b=0;b<P;b++){var n=0|t[0][b],r=0|t[1][b];B[$][b]=ot[3*(n+1)+(r+1)],B[et][b]=0,M[$]=Q}}else B[$]=m(g[$],I[$],this._bitLength),B[et]=m(g[et],I[et],this._bitLength),P=Math.max(B[$].length,P),P=Math.max(B[et].length,P)}var i=this.jpoint(null,null,null),e=this._wnafT4;for(w=P;w>=0;w--){for(var o=0;w>=0;){var s=!0;for(b=0;b<h;b++)e[b]=0|B[b][w],e[b]!==0&&(s=!1);if(!s)break;o++,w--}if(w>=0&&o++,i=i.dblp(o),w<0)break;for(b=0;b<h;b++){var A=e[b];A!==0&&(A>0?E=M[b][A-1>>1]:A<0&&(E=M[b][-A-1>>1].neg()),i=E.type==="affine"?i.mixedAdd(E):i.add(E))}}for(w=0;w<h;w++)M[w]=null;return u?i:i.toP()},p.BasePoint=c,c.prototype.eq=function(){throw new Error("Not implemented")},c.prototype.validate=function(){return this.curve.validate(this)},p.prototype.decodePoint=function(l,f){l=v.toArray(l,f);var g=this.p.byteLength();if((l[0]===4||l[0]===6||l[0]===7)&&l.length-1==2*g)return l[0]===6?a(l[l.length-1]%2==0):l[0]===7&&a(l[l.length-1]%2==1),this.point(l.slice(1,1+g),l.slice(1+g,1+2*g));if((l[0]===2||l[0]===3)&&l.length-1===g)return this.pointFromX(l.slice(1,1+g),l[0]===3);throw new Error("Unknown point format")},c.prototype.encodeCompressed=function(l){return this.encode(l,!0)},c.prototype._encode=function(l){var f=this.curve.p.byteLength(),g=this.getX().toArray("be",f);return l?[this.getY().isEven()?2:3].concat(g):[4].concat(g,this.getY().toArray("be",f))},c.prototype.encode=function(l,f){return v.encode(this._encode(f),l)},c.prototype.precompute=function(l){if(this.precomputed)return this;var f={doubles:null,naf:null,beta:null};return f.naf=this._getNAFPoints(8),f.doubles=this._getDoubles(4,l),f.beta=this._getBeta(),this.precomputed=f,this},c.prototype._hasDoubles=function(l){if(!this.precomputed)return!1;var f=this.precomputed.doubles;return!!f&&f.points.length>=Math.ceil((l.bitLength()+1)/f.step)},c.prototype._getDoubles=function(l,f){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var g=[this],h=this,u=0;u<f;u+=l){for(var w=0;w<l;w++)h=h.dbl();g.push(h)}return{step:l,points:g}},c.prototype._getNAFPoints=function(l){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var f=[this],g=(1<<l)-1,h=g===1?null:this.dbl(),u=1;u<g;u++)f[u]=f[u-1].add(h);return{wnd:l,points:f}},c.prototype._getBeta=function(){return null},c.prototype.dblp=function(l){for(var f=this,g=0;g<l;g++)f=f.dbl();return f}},1138:(W,_,y)=>{var x=y(953),v=y(3785),m=y(5717),S=y(4918),a=x.assert;function p(l){this.twisted=(0|l.a)!=1,this.mOneA=this.twisted&&(0|l.a)==-1,this.extended=this.mOneA,S.call(this,"edwards",l),this.a=new v(l.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new v(l.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new v(l.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),a(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(0|l.c)==1}function c(l,f,g,h,u){S.BasePoint.call(this,l,"projective"),f===null&&g===null&&h===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new v(f,16),this.y=new v(g,16),this.z=h?new v(h,16):this.curve.one,this.t=u&&new v(u,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}m(p,S),W.exports=p,p.prototype._mulA=function(l){return this.mOneA?l.redNeg():this.a.redMul(l)},p.prototype._mulC=function(l){return this.oneC?l:this.c.redMul(l)},p.prototype.jpoint=function(l,f,g,h){return this.point(l,f,g,h)},p.prototype.pointFromX=function(l,f){(l=new v(l,16)).red||(l=l.toRed(this.red));var g=l.redSqr(),h=this.c2.redSub(this.a.redMul(g)),u=this.one.redSub(this.c2.redMul(this.d).redMul(g)),w=h.redMul(u.redInvm()),b=w.redSqrt();if(b.redSqr().redSub(w).cmp(this.zero)!==0)throw new Error("invalid point");var E=b.fromRed().isOdd();return(f&&!E||!f&&E)&&(b=b.redNeg()),this.point(l,b)},p.prototype.pointFromY=function(l,f){(l=new v(l,16)).red||(l=l.toRed(this.red));var g=l.redSqr(),h=g.redSub(this.c2),u=g.redMul(this.d).redMul(this.c2).redSub(this.a),w=h.redMul(u.redInvm());if(w.cmp(this.zero)===0){if(f)throw new Error("invalid point");return this.point(this.zero,l)}var b=w.redSqrt();if(b.redSqr().redSub(w).cmp(this.zero)!==0)throw new Error("invalid point");return b.fromRed().isOdd()!==f&&(b=b.redNeg()),this.point(b,l)},p.prototype.validate=function(l){if(l.isInfinity())return!0;l.normalize();var f=l.x.redSqr(),g=l.y.redSqr(),h=f.redMul(this.a).redAdd(g),u=this.c2.redMul(this.one.redAdd(this.d.redMul(f).redMul(g)));return h.cmp(u)===0},m(c,S.BasePoint),p.prototype.pointFromJSON=function(l){return c.fromJSON(this,l)},p.prototype.point=function(l,f,g,h){return new c(this,l,f,g,h)},c.fromJSON=function(l,f){return new c(l,f[0],f[1],f[2])},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},c.prototype._extDbl=function(){var l=this.x.redSqr(),f=this.y.redSqr(),g=this.z.redSqr();g=g.redIAdd(g);var h=this.curve._mulA(l),u=this.x.redAdd(this.y).redSqr().redISub(l).redISub(f),w=h.redAdd(f),b=w.redSub(g),E=h.redSub(f),I=u.redMul(b),M=w.redMul(E),B=u.redMul(E),P=b.redMul(w);return this.curve.point(I,M,P,B)},c.prototype._projDbl=function(){var l,f,g,h,u,w,b=this.x.redAdd(this.y).redSqr(),E=this.x.redSqr(),I=this.y.redSqr();if(this.curve.twisted){var M=(h=this.curve._mulA(E)).redAdd(I);this.zOne?(l=b.redSub(E).redSub(I).redMul(M.redSub(this.curve.two)),f=M.redMul(h.redSub(I)),g=M.redSqr().redSub(M).redSub(M)):(u=this.z.redSqr(),w=M.redSub(u).redISub(u),l=b.redSub(E).redISub(I).redMul(w),f=M.redMul(h.redSub(I)),g=M.redMul(w))}else h=E.redAdd(I),u=this.curve._mulC(this.z).redSqr(),w=h.redSub(u).redSub(u),l=this.curve._mulC(b.redISub(h)).redMul(w),f=this.curve._mulC(h).redMul(E.redISub(I)),g=h.redMul(w);return this.curve.point(l,f,g)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(l){var f=this.y.redSub(this.x).redMul(l.y.redSub(l.x)),g=this.y.redAdd(this.x).redMul(l.y.redAdd(l.x)),h=this.t.redMul(this.curve.dd).redMul(l.t),u=this.z.redMul(l.z.redAdd(l.z)),w=g.redSub(f),b=u.redSub(h),E=u.redAdd(h),I=g.redAdd(f),M=w.redMul(b),B=E.redMul(I),P=w.redMul(I),N=b.redMul(E);return this.curve.point(M,B,N,P)},c.prototype._projAdd=function(l){var f,g,h=this.z.redMul(l.z),u=h.redSqr(),w=this.x.redMul(l.x),b=this.y.redMul(l.y),E=this.curve.d.redMul(w).redMul(b),I=u.redSub(E),M=u.redAdd(E),B=this.x.redAdd(this.y).redMul(l.x.redAdd(l.y)).redISub(w).redISub(b),P=h.redMul(I).redMul(B);return this.curve.twisted?(f=h.redMul(M).redMul(b.redSub(this.curve._mulA(w))),g=I.redMul(M)):(f=h.redMul(M).redMul(b.redSub(w)),g=this.curve._mulC(I).redMul(M)),this.curve.point(P,f,g)},c.prototype.add=function(l){return this.isInfinity()?l:l.isInfinity()?this:this.curve.extended?this._extAdd(l):this._projAdd(l)},c.prototype.mul=function(l){return this._hasDoubles(l)?this.curve._fixedNafMul(this,l):this.curve._wnafMul(this,l)},c.prototype.mulAdd=function(l,f,g){return this.curve._wnafMulAdd(1,[this,f],[l,g],2,!1)},c.prototype.jmulAdd=function(l,f,g){return this.curve._wnafMulAdd(1,[this,f],[l,g],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var l=this.z.redInvm();return this.x=this.x.redMul(l),this.y=this.y.redMul(l),this.t&&(this.t=this.t.redMul(l)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(l){return this===l||this.getX().cmp(l.getX())===0&&this.getY().cmp(l.getY())===0},c.prototype.eqXToP=function(l){var f=l.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(f)===0)return!0;for(var g=l.clone(),h=this.curve.redN.redMul(this.z);;){if(g.iadd(this.curve.n),g.cmp(this.curve.p)>=0)return!1;if(f.redIAdd(h),this.x.cmp(f)===0)return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},8254:(W,_,y)=>{var x=_;x.base=y(4918),x.short=y(6673),x.mont=y(2881),x.edwards=y(1138)},2881:(W,_,y)=>{var x=y(3785),v=y(5717),m=y(4918),S=y(953);function a(c){m.call(this,"mont",c),this.a=new x(c.a,16).toRed(this.red),this.b=new x(c.b,16).toRed(this.red),this.i4=new x(4).toRed(this.red).redInvm(),this.two=new x(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function p(c,l,f){m.BasePoint.call(this,c,"projective"),l===null&&f===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new x(l,16),this.z=new x(f,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}v(a,m),W.exports=a,a.prototype.validate=function(c){var l=c.normalize().x,f=l.redSqr(),g=f.redMul(l).redAdd(f.redMul(this.a)).redAdd(l);return g.redSqrt().redSqr().cmp(g)===0},v(p,m.BasePoint),a.prototype.decodePoint=function(c,l){return this.point(S.toArray(c,l),1)},a.prototype.point=function(c,l){return new p(this,c,l)},a.prototype.pointFromJSON=function(c){return p.fromJSON(this,c)},p.prototype.precompute=function(){},p.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},p.fromJSON=function(c,l){return new p(c,l[0],l[1]||c.one)},p.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},p.prototype.isInfinity=function(){return this.z.cmpn(0)===0},p.prototype.dbl=function(){var c=this.x.redAdd(this.z).redSqr(),l=this.x.redSub(this.z).redSqr(),f=c.redSub(l),g=c.redMul(l),h=f.redMul(l.redAdd(this.curve.a24.redMul(f)));return this.curve.point(g,h)},p.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},p.prototype.diffAdd=function(c,l){var f=this.x.redAdd(this.z),g=this.x.redSub(this.z),h=c.x.redAdd(c.z),u=c.x.redSub(c.z).redMul(f),w=h.redMul(g),b=l.z.redMul(u.redAdd(w).redSqr()),E=l.x.redMul(u.redISub(w).redSqr());return this.curve.point(b,E)},p.prototype.mul=function(c){for(var l=c.clone(),f=this,g=this.curve.point(null,null),h=[];l.cmpn(0)!==0;l.iushrn(1))h.push(l.andln(1));for(var u=h.length-1;u>=0;u--)h[u]===0?(f=f.diffAdd(g,this),g=g.dbl()):(g=f.diffAdd(g,this),f=f.dbl());return g},p.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},p.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},p.prototype.eq=function(c){return this.getX().cmp(c.getX())===0},p.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},p.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},6673:(W,_,y)=>{var x=y(953),v=y(3785),m=y(5717),S=y(4918),a=x.assert;function p(f){S.call(this,"short",f),this.a=new v(f.a,16).toRed(this.red),this.b=new v(f.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(f),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function c(f,g,h,u){S.BasePoint.call(this,f,"affine"),g===null&&h===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new v(g,16),this.y=new v(h,16),u&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function l(f,g,h,u){S.BasePoint.call(this,f,"jacobian"),g===null&&h===null&&u===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new v(0)):(this.x=new v(g,16),this.y=new v(h,16),this.z=new v(u,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}m(p,S),W.exports=p,p.prototype._getEndomorphism=function(f){if(this.zeroA&&this.g&&this.n&&this.p.modn(3)===1){var g,h;if(f.beta)g=new v(f.beta,16).toRed(this.red);else{var u=this._getEndoRoots(this.p);g=(g=u[0].cmp(u[1])<0?u[0]:u[1]).toRed(this.red)}if(f.lambda)h=new v(f.lambda,16);else{var w=this._getEndoRoots(this.n);this.g.mul(w[0]).x.cmp(this.g.x.redMul(g))===0?h=w[0]:(h=w[1],a(this.g.mul(h).x.cmp(this.g.x.redMul(g))===0))}return{beta:g,lambda:h,basis:f.basis?f.basis.map(function(b){return{a:new v(b.a,16),b:new v(b.b,16)}}):this._getEndoBasis(h)}}},p.prototype._getEndoRoots=function(f){var g=f===this.p?this.red:v.mont(f),h=new v(2).toRed(g).redInvm(),u=h.redNeg(),w=new v(3).toRed(g).redNeg().redSqrt().redMul(h);return[u.redAdd(w).fromRed(),u.redSub(w).fromRed()]},p.prototype._getEndoBasis=function(f){for(var g,h,u,w,b,E,I,M,B,P=this.n.ushrn(Math.floor(this.n.bitLength()/2)),N=f,$=this.n.clone(),et=new v(1),Q=new v(0),ot=new v(0),t=new v(1),n=0;N.cmpn(0)!==0;){var r=$.div(N);M=$.sub(r.mul(N)),B=ot.sub(r.mul(et));var i=t.sub(r.mul(Q));if(!u&&M.cmp(P)<0)g=I.neg(),h=et,u=M.neg(),w=B;else if(u&&++n==2)break;I=M,$=N,N=M,ot=et,et=B,t=Q,Q=i}b=M.neg(),E=B;var e=u.sqr().add(w.sqr());return b.sqr().add(E.sqr()).cmp(e)>=0&&(b=g,E=h),u.negative&&(u=u.neg(),w=w.neg()),b.negative&&(b=b.neg(),E=E.neg()),[{a:u,b:w},{a:b,b:E}]},p.prototype._endoSplit=function(f){var g=this.endo.basis,h=g[0],u=g[1],w=u.b.mul(f).divRound(this.n),b=h.b.neg().mul(f).divRound(this.n),E=w.mul(h.a),I=b.mul(u.a),M=w.mul(h.b),B=b.mul(u.b);return{k1:f.sub(E).sub(I),k2:M.add(B).neg()}},p.prototype.pointFromX=function(f,g){(f=new v(f,16)).red||(f=f.toRed(this.red));var h=f.redSqr().redMul(f).redIAdd(f.redMul(this.a)).redIAdd(this.b),u=h.redSqrt();if(u.redSqr().redSub(h).cmp(this.zero)!==0)throw new Error("invalid point");var w=u.fromRed().isOdd();return(g&&!w||!g&&w)&&(u=u.redNeg()),this.point(f,u)},p.prototype.validate=function(f){if(f.inf)return!0;var g=f.x,h=f.y,u=this.a.redMul(g),w=g.redSqr().redMul(g).redIAdd(u).redIAdd(this.b);return h.redSqr().redISub(w).cmpn(0)===0},p.prototype._endoWnafMulAdd=function(f,g,h){for(var u=this._endoWnafT1,w=this._endoWnafT2,b=0;b<f.length;b++){var E=this._endoSplit(g[b]),I=f[b],M=I._getBeta();E.k1.negative&&(E.k1.ineg(),I=I.neg(!0)),E.k2.negative&&(E.k2.ineg(),M=M.neg(!0)),u[2*b]=I,u[2*b+1]=M,w[2*b]=E.k1,w[2*b+1]=E.k2}for(var B=this._wnafMulAdd(1,u,w,2*b,h),P=0;P<2*b;P++)u[P]=null,w[P]=null;return B},m(c,S.BasePoint),p.prototype.point=function(f,g,h){return new c(this,f,g,h)},p.prototype.pointFromJSON=function(f,g){return c.fromJSON(this,f,g)},c.prototype._getBeta=function(){if(this.curve.endo){var f=this.precomputed;if(f&&f.beta)return f.beta;var g=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(f){var h=this.curve,u=function(w){return h.point(w.x.redMul(h.endo.beta),w.y)};f.beta=g,g.precomputed={beta:null,naf:f.naf&&{wnd:f.naf.wnd,points:f.naf.points.map(u)},doubles:f.doubles&&{step:f.doubles.step,points:f.doubles.points.map(u)}}}return g}},c.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},c.fromJSON=function(f,g,h){typeof g=="string"&&(g=JSON.parse(g));var u=f.point(g[0],g[1],h);if(!g[2])return u;function w(E){return f.point(E[0],E[1],h)}var b=g[2];return u.precomputed={beta:null,doubles:b.doubles&&{step:b.doubles.step,points:[u].concat(b.doubles.points.map(w))},naf:b.naf&&{wnd:b.naf.wnd,points:[u].concat(b.naf.points.map(w))}},u},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(f){if(this.inf)return f;if(f.inf)return this;if(this.eq(f))return this.dbl();if(this.neg().eq(f))return this.curve.point(null,null);if(this.x.cmp(f.x)===0)return this.curve.point(null,null);var g=this.y.redSub(f.y);g.cmpn(0)!==0&&(g=g.redMul(this.x.redSub(f.x).redInvm()));var h=g.redSqr().redISub(this.x).redISub(f.x),u=g.redMul(this.x.redSub(h)).redISub(this.y);return this.curve.point(h,u)},c.prototype.dbl=function(){if(this.inf)return this;var f=this.y.redAdd(this.y);if(f.cmpn(0)===0)return this.curve.point(null,null);var g=this.curve.a,h=this.x.redSqr(),u=f.redInvm(),w=h.redAdd(h).redIAdd(h).redIAdd(g).redMul(u),b=w.redSqr().redISub(this.x.redAdd(this.x)),E=w.redMul(this.x.redSub(b)).redISub(this.y);return this.curve.point(b,E)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(f){return f=new v(f,16),this.isInfinity()?this:this._hasDoubles(f)?this.curve._fixedNafMul(this,f):this.curve.endo?this.curve._endoWnafMulAdd([this],[f]):this.curve._wnafMul(this,f)},c.prototype.mulAdd=function(f,g,h){var u=[this,g],w=[f,h];return this.curve.endo?this.curve._endoWnafMulAdd(u,w):this.curve._wnafMulAdd(1,u,w,2)},c.prototype.jmulAdd=function(f,g,h){var u=[this,g],w=[f,h];return this.curve.endo?this.curve._endoWnafMulAdd(u,w,!0):this.curve._wnafMulAdd(1,u,w,2,!0)},c.prototype.eq=function(f){return this===f||this.inf===f.inf&&(this.inf||this.x.cmp(f.x)===0&&this.y.cmp(f.y)===0)},c.prototype.neg=function(f){if(this.inf)return this;var g=this.curve.point(this.x,this.y.redNeg());if(f&&this.precomputed){var h=this.precomputed,u=function(w){return w.neg()};g.precomputed={naf:h.naf&&{wnd:h.naf.wnd,points:h.naf.points.map(u)},doubles:h.doubles&&{step:h.doubles.step,points:h.doubles.points.map(u)}}}return g},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},m(l,S.BasePoint),p.prototype.jpoint=function(f,g,h){return new l(this,f,g,h)},l.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var f=this.z.redInvm(),g=f.redSqr(),h=this.x.redMul(g),u=this.y.redMul(g).redMul(f);return this.curve.point(h,u)},l.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},l.prototype.add=function(f){if(this.isInfinity())return f;if(f.isInfinity())return this;var g=f.z.redSqr(),h=this.z.redSqr(),u=this.x.redMul(g),w=f.x.redMul(h),b=this.y.redMul(g.redMul(f.z)),E=f.y.redMul(h.redMul(this.z)),I=u.redSub(w),M=b.redSub(E);if(I.cmpn(0)===0)return M.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var B=I.redSqr(),P=B.redMul(I),N=u.redMul(B),$=M.redSqr().redIAdd(P).redISub(N).redISub(N),et=M.redMul(N.redISub($)).redISub(b.redMul(P)),Q=this.z.redMul(f.z).redMul(I);return this.curve.jpoint($,et,Q)},l.prototype.mixedAdd=function(f){if(this.isInfinity())return f.toJ();if(f.isInfinity())return this;var g=this.z.redSqr(),h=this.x,u=f.x.redMul(g),w=this.y,b=f.y.redMul(g).redMul(this.z),E=h.redSub(u),I=w.redSub(b);if(E.cmpn(0)===0)return I.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var M=E.redSqr(),B=M.redMul(E),P=h.redMul(M),N=I.redSqr().redIAdd(B).redISub(P).redISub(P),$=I.redMul(P.redISub(N)).redISub(w.redMul(B)),et=this.z.redMul(E);return this.curve.jpoint(N,$,et)},l.prototype.dblp=function(f){if(f===0)return this;if(this.isInfinity())return this;if(!f)return this.dbl();var g;if(this.curve.zeroA||this.curve.threeA){var h=this;for(g=0;g<f;g++)h=h.dbl();return h}var u=this.curve.a,w=this.curve.tinv,b=this.x,E=this.y,I=this.z,M=I.redSqr().redSqr(),B=E.redAdd(E);for(g=0;g<f;g++){var P=b.redSqr(),N=B.redSqr(),$=N.redSqr(),et=P.redAdd(P).redIAdd(P).redIAdd(u.redMul(M)),Q=b.redMul(N),ot=et.redSqr().redISub(Q.redAdd(Q)),t=Q.redISub(ot),n=et.redMul(t);n=n.redIAdd(n).redISub($);var r=B.redMul(I);g+1<f&&(M=M.redMul($)),b=ot,I=r,B=n}return this.curve.jpoint(b,B.redMul(w),I)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},l.prototype._zeroDbl=function(){var f,g,h;if(this.zOne){var u=this.x.redSqr(),w=this.y.redSqr(),b=w.redSqr(),E=this.x.redAdd(w).redSqr().redISub(u).redISub(b);E=E.redIAdd(E);var I=u.redAdd(u).redIAdd(u),M=I.redSqr().redISub(E).redISub(E),B=b.redIAdd(b);B=(B=B.redIAdd(B)).redIAdd(B),f=M,g=I.redMul(E.redISub(M)).redISub(B),h=this.y.redAdd(this.y)}else{var P=this.x.redSqr(),N=this.y.redSqr(),$=N.redSqr(),et=this.x.redAdd(N).redSqr().redISub(P).redISub($);et=et.redIAdd(et);var Q=P.redAdd(P).redIAdd(P),ot=Q.redSqr(),t=$.redIAdd($);t=(t=t.redIAdd(t)).redIAdd(t),f=ot.redISub(et).redISub(et),g=Q.redMul(et.redISub(f)).redISub(t),h=(h=this.y.redMul(this.z)).redIAdd(h)}return this.curve.jpoint(f,g,h)},l.prototype._threeDbl=function(){var f,g,h;if(this.zOne){var u=this.x.redSqr(),w=this.y.redSqr(),b=w.redSqr(),E=this.x.redAdd(w).redSqr().redISub(u).redISub(b);E=E.redIAdd(E);var I=u.redAdd(u).redIAdd(u).redIAdd(this.curve.a),M=I.redSqr().redISub(E).redISub(E);f=M;var B=b.redIAdd(b);B=(B=B.redIAdd(B)).redIAdd(B),g=I.redMul(E.redISub(M)).redISub(B),h=this.y.redAdd(this.y)}else{var P=this.z.redSqr(),N=this.y.redSqr(),$=this.x.redMul(N),et=this.x.redSub(P).redMul(this.x.redAdd(P));et=et.redAdd(et).redIAdd(et);var Q=$.redIAdd($),ot=(Q=Q.redIAdd(Q)).redAdd(Q);f=et.redSqr().redISub(ot),h=this.y.redAdd(this.z).redSqr().redISub(N).redISub(P);var t=N.redSqr();t=(t=(t=t.redIAdd(t)).redIAdd(t)).redIAdd(t),g=et.redMul(Q.redISub(f)).redISub(t)}return this.curve.jpoint(f,g,h)},l.prototype._dbl=function(){var f=this.curve.a,g=this.x,h=this.y,u=this.z,w=u.redSqr().redSqr(),b=g.redSqr(),E=h.redSqr(),I=b.redAdd(b).redIAdd(b).redIAdd(f.redMul(w)),M=g.redAdd(g),B=(M=M.redIAdd(M)).redMul(E),P=I.redSqr().redISub(B.redAdd(B)),N=B.redISub(P),$=E.redSqr();$=($=($=$.redIAdd($)).redIAdd($)).redIAdd($);var et=I.redMul(N).redISub($),Q=h.redAdd(h).redMul(u);return this.curve.jpoint(P,et,Q)},l.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var f=this.x.redSqr(),g=this.y.redSqr(),h=this.z.redSqr(),u=g.redSqr(),w=f.redAdd(f).redIAdd(f),b=w.redSqr(),E=this.x.redAdd(g).redSqr().redISub(f).redISub(u),I=(E=(E=(E=E.redIAdd(E)).redAdd(E).redIAdd(E)).redISub(b)).redSqr(),M=u.redIAdd(u);M=(M=(M=M.redIAdd(M)).redIAdd(M)).redIAdd(M);var B=w.redIAdd(E).redSqr().redISub(b).redISub(I).redISub(M),P=g.redMul(B);P=(P=P.redIAdd(P)).redIAdd(P);var N=this.x.redMul(I).redISub(P);N=(N=N.redIAdd(N)).redIAdd(N);var $=this.y.redMul(B.redMul(M.redISub(B)).redISub(E.redMul(I)));$=($=($=$.redIAdd($)).redIAdd($)).redIAdd($);var et=this.z.redAdd(E).redSqr().redISub(h).redISub(I);return this.curve.jpoint(N,$,et)},l.prototype.mul=function(f,g){return f=new v(f,g),this.curve._wnafMul(this,f)},l.prototype.eq=function(f){if(f.type==="affine")return this.eq(f.toJ());if(this===f)return!0;var g=this.z.redSqr(),h=f.z.redSqr();if(this.x.redMul(h).redISub(f.x.redMul(g)).cmpn(0)!==0)return!1;var u=g.redMul(this.z),w=h.redMul(f.z);return this.y.redMul(w).redISub(f.y.redMul(u)).cmpn(0)===0},l.prototype.eqXToP=function(f){var g=this.z.redSqr(),h=f.toRed(this.curve.red).redMul(g);if(this.x.cmp(h)===0)return!0;for(var u=f.clone(),w=this.curve.redN.redMul(g);;){if(u.iadd(this.curve.n),u.cmp(this.curve.p)>=0)return!1;if(h.redIAdd(w),this.x.cmp(h)===0)return!0}},l.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},l.prototype.isInfinity=function(){return this.z.cmpn(0)===0}},5427:(W,_,y)=>{var x,v=_,m=y(3715),S=y(8254),a=y(953).assert;function p(l){l.type==="short"?this.curve=new S.short(l):l.type==="edwards"?this.curve=new S.edwards(l):this.curve=new S.mont(l),this.g=this.curve.g,this.n=this.curve.n,this.hash=l.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(l,f){Object.defineProperty(v,l,{configurable:!0,enumerable:!0,get:function(){var g=new p(f);return Object.defineProperty(v,l,{configurable:!0,enumerable:!0,value:g}),g}})}v.PresetCurve=p,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:m.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:m.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:m.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:m.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:m.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:m.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:m.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{x=y(1037)}catch{x=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:m.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",x]})},7954:(W,_,y)=>{var x=y(3785),v=y(2156),m=y(953),S=y(5427),a=y(9931),p=m.assert,c=y(1251),l=y(611);function f(g){if(!(this instanceof f))return new f(g);typeof g=="string"&&(p(Object.prototype.hasOwnProperty.call(S,g),"Unknown curve "+g),g=S[g]),g instanceof S.PresetCurve&&(g={curve:g}),this.curve=g.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=g.curve.g,this.g.precompute(g.curve.n.bitLength()+1),this.hash=g.hash||g.curve.hash}W.exports=f,f.prototype.keyPair=function(g){return new c(this,g)},f.prototype.keyFromPrivate=function(g,h){return c.fromPrivate(this,g,h)},f.prototype.keyFromPublic=function(g,h){return c.fromPublic(this,g,h)},f.prototype.genKeyPair=function(g){g||(g={});for(var h=new v({hash:this.hash,pers:g.pers,persEnc:g.persEnc||"utf8",entropy:g.entropy||a(this.hash.hmacStrength),entropyEnc:g.entropy&&g.entropyEnc||"utf8",nonce:this.n.toArray()}),u=this.n.byteLength(),w=this.n.sub(new x(2));;){var b=new x(h.generate(u));if(!(b.cmp(w)>0))return b.iaddn(1),this.keyFromPrivate(b)}},f.prototype._truncateToN=function(g,h){var u=8*g.byteLength()-this.n.bitLength();return u>0&&(g=g.ushrn(u)),!h&&g.cmp(this.n)>=0?g.sub(this.n):g},f.prototype.sign=function(g,h,u,w){typeof u=="object"&&(w=u,u=null),w||(w={}),h=this.keyFromPrivate(h,u),g=this._truncateToN(new x(g,16));for(var b=this.n.byteLength(),E=h.getPrivate().toArray("be",b),I=g.toArray("be",b),M=new v({hash:this.hash,entropy:E,nonce:I,pers:w.pers,persEnc:w.persEnc||"utf8"}),B=this.n.sub(new x(1)),P=0;;P++){var N=w.k?w.k(P):new x(M.generate(this.n.byteLength()));if(!((N=this._truncateToN(N,!0)).cmpn(1)<=0||N.cmp(B)>=0)){var $=this.g.mul(N);if(!$.isInfinity()){var et=$.getX(),Q=et.umod(this.n);if(Q.cmpn(0)!==0){var ot=N.invm(this.n).mul(Q.mul(h.getPrivate()).iadd(g));if((ot=ot.umod(this.n)).cmpn(0)!==0){var t=($.getY().isOdd()?1:0)|(et.cmp(Q)!==0?2:0);return w.canonical&&ot.cmp(this.nh)>0&&(ot=this.n.sub(ot),t^=1),new l({r:Q,s:ot,recoveryParam:t})}}}}}},f.prototype.verify=function(g,h,u,w){g=this._truncateToN(new x(g,16)),u=this.keyFromPublic(u,w);var b=(h=new l(h,"hex")).r,E=h.s;if(b.cmpn(1)<0||b.cmp(this.n)>=0||E.cmpn(1)<0||E.cmp(this.n)>=0)return!1;var I,M=E.invm(this.n),B=M.mul(g).umod(this.n),P=M.mul(b).umod(this.n);return this.curve._maxwellTrick?!(I=this.g.jmulAdd(B,u.getPublic(),P)).isInfinity()&&I.eqXToP(b):!(I=this.g.mulAdd(B,u.getPublic(),P)).isInfinity()&&I.getX().umod(this.n).cmp(b)===0},f.prototype.recoverPubKey=function(g,h,u,w){p((3&u)===u,"The recovery param is more than two bits"),h=new l(h,w);var b=this.n,E=new x(g),I=h.r,M=h.s,B=1&u,P=u>>1;if(I.cmp(this.curve.p.umod(this.curve.n))>=0&&P)throw new Error("Unable to find sencond key candinate");I=P?this.curve.pointFromX(I.add(this.curve.n),B):this.curve.pointFromX(I,B);var N=h.r.invm(b),$=b.sub(E).mul(N).umod(b),et=M.mul(N).umod(b);return this.g.mulAdd($,I,et)},f.prototype.getKeyRecoveryParam=function(g,h,u,w){if((h=new l(h,w)).recoveryParam!==null)return h.recoveryParam;for(var b=0;b<4;b++){var E;try{E=this.recoverPubKey(g,h,b)}catch{continue}if(E.eq(u))return b}throw new Error("Unable to find valid recovery factor")}},1251:(W,_,y)=>{var x=y(3785),v=y(953).assert;function m(S,a){this.ec=S,this.priv=null,this.pub=null,a.priv&&this._importPrivate(a.priv,a.privEnc),a.pub&&this._importPublic(a.pub,a.pubEnc)}W.exports=m,m.fromPublic=function(S,a,p){return a instanceof m?a:new m(S,{pub:a,pubEnc:p})},m.fromPrivate=function(S,a,p){return a instanceof m?a:new m(S,{priv:a,privEnc:p})},m.prototype.validate=function(){var S=this.getPublic();return S.isInfinity()?{result:!1,reason:"Invalid public key"}:S.validate()?S.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},m.prototype.getPublic=function(S,a){return typeof S=="string"&&(a=S,S=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),a?this.pub.encode(a,S):this.pub},m.prototype.getPrivate=function(S){return S==="hex"?this.priv.toString(16,2):this.priv},m.prototype._importPrivate=function(S,a){this.priv=new x(S,a||16),this.priv=this.priv.umod(this.ec.curve.n)},m.prototype._importPublic=function(S,a){if(S.x||S.y)return this.ec.curve.type==="mont"?v(S.x,"Need x coordinate"):this.ec.curve.type!=="short"&&this.ec.curve.type!=="edwards"||v(S.x&&S.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(S.x,S.y));this.pub=this.ec.curve.decodePoint(S,a)},m.prototype.derive=function(S){return S.validate()||v(S.validate(),"public point not validated"),S.mul(this.priv).getX()},m.prototype.sign=function(S,a,p){return this.ec.sign(S,this,a,p)},m.prototype.verify=function(S,a){return this.ec.verify(S,a,this)},m.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},611:(W,_,y)=>{var x=y(3785),v=y(953),m=v.assert;function S(f,g){if(f instanceof S)return f;this._importDER(f,g)||(m(f.r&&f.s,"Signature without r or s"),this.r=new x(f.r,16),this.s=new x(f.s,16),f.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=f.recoveryParam)}function a(){this.place=0}function p(f,g){var h=f[g.place++];if(!(128&h))return h;var u=15&h;if(u===0||u>4)return!1;for(var w=0,b=0,E=g.place;b<u;b++,E++)w<<=8,w|=f[E],w>>>=0;return!(w<=127)&&(g.place=E,w)}function c(f){for(var g=0,h=f.length-1;!f[g]&&!(128&f[g+1])&&g<h;)g++;return g===0?f:f.slice(g)}function l(f,g){if(g<128)f.push(g);else{var h=1+(Math.log(g)/Math.LN2>>>3);for(f.push(128|h);--h;)f.push(g>>>(h<<3)&255);f.push(g)}}W.exports=S,S.prototype._importDER=function(f,g){f=v.toArray(f,g);var h=new a;if(f[h.place++]!==48)return!1;var u=p(f,h);if(u===!1||u+h.place!==f.length||f[h.place++]!==2)return!1;var w=p(f,h);if(w===!1)return!1;var b=f.slice(h.place,w+h.place);if(h.place+=w,f[h.place++]!==2)return!1;var E=p(f,h);if(E===!1||f.length!==E+h.place)return!1;var I=f.slice(h.place,E+h.place);if(b[0]===0){if(!(128&b[1]))return!1;b=b.slice(1)}if(I[0]===0){if(!(128&I[1]))return!1;I=I.slice(1)}return this.r=new x(b),this.s=new x(I),this.recoveryParam=null,!0},S.prototype.toDER=function(f){var g=this.r.toArray(),h=this.s.toArray();for(128&g[0]&&(g=[0].concat(g)),128&h[0]&&(h=[0].concat(h)),g=c(g),h=c(h);!(h[0]||128&h[1]);)h=h.slice(1);var u=[2];l(u,g.length),(u=u.concat(g)).push(2),l(u,h.length);var w=u.concat(h),b=[48];return l(b,w.length),b=b.concat(w),v.encode(b,f)}},5980:(W,_,y)=>{var x=y(3715),v=y(5427),m=y(953),S=m.assert,a=m.parseBytes,p=y(9087),c=y(3622);function l(f){if(S(f==="ed25519","only tested with ed25519 so far"),!(this instanceof l))return new l(f);f=v[f].curve,this.curve=f,this.g=f.g,this.g.precompute(f.n.bitLength()+1),this.pointClass=f.point().constructor,this.encodingLength=Math.ceil(f.n.bitLength()/8),this.hash=x.sha512}W.exports=l,l.prototype.sign=function(f,g){f=a(f);var h=this.keyFromSecret(g),u=this.hashInt(h.messagePrefix(),f),w=this.g.mul(u),b=this.encodePoint(w),E=this.hashInt(b,h.pubBytes(),f).mul(h.priv()),I=u.add(E).umod(this.curve.n);return this.makeSignature({R:w,S:I,Rencoded:b})},l.prototype.verify=function(f,g,h){f=a(f),g=this.makeSignature(g);var u=this.keyFromPublic(h),w=this.hashInt(g.Rencoded(),u.pubBytes(),f),b=this.g.mul(g.S());return g.R().add(u.pub().mul(w)).eq(b)},l.prototype.hashInt=function(){for(var f=this.hash(),g=0;g<arguments.length;g++)f.update(arguments[g]);return m.intFromLE(f.digest()).umod(this.curve.n)},l.prototype.keyFromPublic=function(f){return p.fromPublic(this,f)},l.prototype.keyFromSecret=function(f){return p.fromSecret(this,f)},l.prototype.makeSignature=function(f){return f instanceof c?f:new c(this,f)},l.prototype.encodePoint=function(f){var g=f.getY().toArray("le",this.encodingLength);return g[this.encodingLength-1]|=f.getX().isOdd()?128:0,g},l.prototype.decodePoint=function(f){var g=(f=m.parseBytes(f)).length-1,h=f.slice(0,g).concat(-129&f[g]),u=(128&f[g])!=0,w=m.intFromLE(h);return this.curve.pointFromY(w,u)},l.prototype.encodeInt=function(f){return f.toArray("le",this.encodingLength)},l.prototype.decodeInt=function(f){return m.intFromLE(f)},l.prototype.isPoint=function(f){return f instanceof this.pointClass}},9087:(W,_,y)=>{var x=y(953),v=x.assert,m=x.parseBytes,S=x.cachedProperty;function a(p,c){this.eddsa=p,this._secret=m(c.secret),p.isPoint(c.pub)?this._pub=c.pub:this._pubBytes=m(c.pub)}a.fromPublic=function(p,c){return c instanceof a?c:new a(p,{pub:c})},a.fromSecret=function(p,c){return c instanceof a?c:new a(p,{secret:c})},a.prototype.secret=function(){return this._secret},S(a,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),S(a,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),S(a,"privBytes",function(){var p=this.eddsa,c=this.hash(),l=p.encodingLength-1,f=c.slice(0,p.encodingLength);return f[0]&=248,f[l]&=127,f[l]|=64,f}),S(a,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),S(a,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),S(a,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),a.prototype.sign=function(p){return v(this._secret,"KeyPair can only verify"),this.eddsa.sign(p,this)},a.prototype.verify=function(p,c){return this.eddsa.verify(p,c,this)},a.prototype.getSecret=function(p){return v(this._secret,"KeyPair is public only"),x.encode(this.secret(),p)},a.prototype.getPublic=function(p){return x.encode(this.pubBytes(),p)},W.exports=a},3622:(W,_,y)=>{var x=y(3785),v=y(953),m=v.assert,S=v.cachedProperty,a=v.parseBytes;function p(c,l){this.eddsa=c,typeof l!="object"&&(l=a(l)),Array.isArray(l)&&(l={R:l.slice(0,c.encodingLength),S:l.slice(c.encodingLength)}),m(l.R&&l.S,"Signature without R or S"),c.isPoint(l.R)&&(this._R=l.R),l.S instanceof x&&(this._S=l.S),this._Rencoded=Array.isArray(l.R)?l.R:l.Rencoded,this._Sencoded=Array.isArray(l.S)?l.S:l.Sencoded}S(p,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),S(p,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),S(p,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),S(p,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),p.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},p.prototype.toHex=function(){return v.encode(this.toBytes(),"hex").toUpperCase()},W.exports=p},1037:W=>{W.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},953:(W,_,y)=>{var x=_,v=y(3785),m=y(9746),S=y(4504);x.assert=m,x.toArray=S.toArray,x.zero2=S.zero2,x.toHex=S.toHex,x.encode=S.encode,x.getNAF=function(a,p,c){var l=new Array(Math.max(a.bitLength(),c)+1);l.fill(0);for(var f=1<<p+1,g=a.clone(),h=0;h<l.length;h++){var u,w=g.andln(f-1);g.isOdd()?(u=w>(f>>1)-1?(f>>1)-w:w,g.isubn(u)):u=0,l[h]=u,g.iushrn(1)}return l},x.getJSF=function(a,p){var c=[[],[]];a=a.clone(),p=p.clone();for(var l,f=0,g=0;a.cmpn(-f)>0||p.cmpn(-g)>0;){var h,u,w=a.andln(3)+f&3,b=p.andln(3)+g&3;w===3&&(w=-1),b===3&&(b=-1),h=1&w?(l=a.andln(7)+f&7)!=3&&l!==5||b!==2?w:-w:0,c[0].push(h),u=1&b?(l=p.andln(7)+g&7)!=3&&l!==5||w!==2?b:-b:0,c[1].push(u),2*f===h+1&&(f=1-f),2*g===u+1&&(g=1-g),a.iushrn(1),p.iushrn(1)}return c},x.cachedProperty=function(a,p,c){var l="_"+p;a.prototype[p]=function(){return this[l]!==void 0?this[l]:this[l]=c.call(this)}},x.parseBytes=function(a){return typeof a=="string"?x.toArray(a,"hex"):a},x.intFromLE=function(a){return new v(a,"hex","le")}},3785:function(W,_,y){(function(x,v){function m(t,n){if(!t)throw new Error(n||"Assertion failed")}function S(t,n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t}function a(t,n,r){if(a.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,t!==null&&(n!=="le"&&n!=="be"||(r=n,n=10),this._init(t||0,n||10,r||"be"))}var p;typeof x=="object"?x.exports=a:v.BN=a,a.BN=a,a.wordSize=26;try{p=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:y(5568).Buffer}catch{}function c(t,n){var r=t.charCodeAt(n);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function l(t,n,r){var i=c(t,r);return r-1>=n&&(i|=c(t,r-1)<<4),i}function f(t,n,r,i){for(var e=0,o=Math.min(t.length,r),s=n;s<o;s++){var A=t.charCodeAt(s)-48;e*=i,e+=A>=49?A-49+10:A>=17?A-17+10:A}return e}a.isBN=function(t){return t instanceof a||t!==null&&typeof t=="object"&&t.constructor.wordSize===a.wordSize&&Array.isArray(t.words)},a.max=function(t,n){return t.cmp(n)>0?t:n},a.min=function(t,n){return t.cmp(n)<0?t:n},a.prototype._init=function(t,n,r){if(typeof t=="number")return this._initNumber(t,n,r);if(typeof t=="object")return this._initArray(t,n,r);n==="hex"&&(n=16),m(n===(0|n)&&n>=2&&n<=36);var i=0;(t=t.toString().replace(/\s+/g,""))[0]==="-"&&(i++,this.negative=1),i<t.length&&(n===16?this._parseHex(t,i,r):(this._parseBase(t,n,i),r==="le"&&this._initArray(this.toArray(),n,r)))},a.prototype._initNumber=function(t,n,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(m(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),r==="le"&&this._initArray(this.toArray(),n,r)},a.prototype._initArray=function(t,n,r){if(m(typeof t.length=="number"),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var e,o,s=0;if(r==="be")for(i=t.length-1,e=0;i>=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[e]|=o<<s&67108863,this.words[e+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,e++);else if(r==="le")for(i=0,e=0;i<t.length;i+=3)o=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[e]|=o<<s&67108863,this.words[e+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,e++);return this.strip()},a.prototype._parseHex=function(t,n,r){this.length=Math.ceil((t.length-n)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var e,o=0,s=0;if(r==="be")for(i=t.length-1;i>=n;i-=2)e=l(t,n,i)<<o,this.words[s]|=67108863&e,o>=18?(o-=18,s+=1,this.words[s]|=e>>>26):o+=8;else for(i=(t.length-n)%2==0?n+1:n;i<t.length;i+=2)e=l(t,n,i)<<o,this.words[s]|=67108863&e,o>=18?(o-=18,s+=1,this.words[s]|=e>>>26):o+=8;this.strip()},a.prototype._parseBase=function(t,n,r){this.words=[0],this.length=1;for(var i=0,e=1;e<=67108863;e*=n)i++;i--,e=e/n|0;for(var o=t.length-r,s=o%i,A=Math.min(o,o-s)+r,C=0,j=r;j<A;j+=i)C=f(t,j,j+i,n),this.imuln(e),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C);if(s!==0){var T=1;for(C=f(t,j,t.length,n),j=0;j<s;j++)T*=n;this.imuln(T),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C)}this.strip()},a.prototype.copy=function(t){t.words=new Array(this.length);for(var n=0;n<this.length;n++)t.words[n]=this.words[n];t.length=this.length,t.negative=this.negative,t.red=this.red},a.prototype.clone=function(){var t=new a(null);return this.copy(t),t},a.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var g=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],u=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function w(t,n,r){r.negative=n.negative^t.negative;var i=t.length+n.length|0;r.length=i,i=i-1|0;var e=0|t.words[0],o=0|n.words[0],s=e*o,A=67108863&s,C=s/67108864|0;r.words[0]=A;for(var j=1;j<i;j++){for(var T=C>>>26,R=67108863&C,q=Math.min(j,n.length-1),Z=Math.max(0,j-t.length+1);Z<=q;Z++){var rt=j-Z|0;T+=(s=(e=0|t.words[rt])*(o=0|n.words[Z])+R)/67108864|0,R=67108863&s}r.words[j]=0|R,C=0|T}return C!==0?r.words[j]=0|C:r.length--,r.strip()}a.prototype.toString=function(t,n){var r;if(n=0|n||1,(t=t||10)===16||t==="hex"){r="";for(var i=0,e=0,o=0;o<this.length;o++){var s=this.words[o],A=(16777215&(s<<i|e)).toString(16);r=(e=s>>>24-i&16777215)!=0||o!==this.length-1?g[6-A.length]+A+r:A+r,(i+=2)>=26&&(i-=26,o--)}for(e!==0&&(r=e.toString(16)+r);r.length%n!=0;)r="0"+r;return this.negative!==0&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var C=h[t],j=u[t];r="";var T=this.clone();for(T.negative=0;!T.isZero();){var R=T.modn(j).toString(t);r=(T=T.idivn(j)).isZero()?R+r:g[C-R.length]+R+r}for(this.isZero()&&(r="0"+r);r.length%n!=0;)r="0"+r;return this.negative!==0&&(r="-"+r),r}m(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var t=this.words[0];return this.length===2?t+=67108864*this.words[1]:this.length===3&&this.words[2]===1?t+=4503599627370496+67108864*this.words[1]:this.length>2&&m(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,n){return m(p!==void 0),this.toArrayLike(p,t,n)},a.prototype.toArray=function(t,n){return this.toArrayLike(Array,t,n)},a.prototype.toArrayLike=function(t,n,r){var i=this.byteLength(),e=r||Math.max(1,i);m(i<=e,"byte array longer than desired length"),m(e>0,"Requested array length <= 0"),this.strip();var o,s,A=n==="le",C=new t(e),j=this.clone();if(A){for(s=0;!j.isZero();s++)o=j.andln(255),j.iushrn(8),C[s]=o;for(;s<e;s++)C[s]=0}else{for(s=0;s<e-i;s++)C[s]=0;for(s=0;!j.isZero();s++)o=j.andln(255),j.iushrn(8),C[e-s-1]=o}return C},Math.clz32?a.prototype._countBits=function(t){return 32-Math.clz32(t)}:a.prototype._countBits=function(t){var n=t,r=0;return n>=4096&&(r+=13,n>>>=13),n>=64&&(r+=7,n>>>=7),n>=8&&(r+=4,n>>>=4),n>=2&&(r+=2,n>>>=2),r+n},a.prototype._zeroBits=function(t){if(t===0)return 26;var n=t,r=0;return!(8191&n)&&(r+=13,n>>>=13),!(127&n)&&(r+=7,n>>>=7),!(15&n)&&(r+=4,n>>>=4),!(3&n)&&(r+=2,n>>>=2),!(1&n)&&r++,r},a.prototype.bitLength=function(){var t=this.words[this.length-1],n=this._countBits(t);return 26*(this.length-1)+n},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,n=0;n<this.length;n++){var r=this._zeroBits(this.words[n]);if(t+=r,r!==26)break}return t},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(t){return this.negative!==0?this.abs().inotn(t).iaddn(1):this.clone()},a.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]|t.words[n];return this.strip()},a.prototype.ior=function(t){return m((this.negative|t.negative)==0),this.iuor(t)},a.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var n;n=this.length>t.length?t:this;for(var r=0;r<n.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=n.length,this.strip()},a.prototype.iand=function(t){return m((this.negative|t.negative)==0),this.iuand(t)},a.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var n,r;this.length>t.length?(n=this,r=t):(n=t,r=this);for(var i=0;i<r.length;i++)this.words[i]=n.words[i]^r.words[i];if(this!==n)for(;i<n.length;i++)this.words[i]=n.words[i];return this.length=n.length,this.strip()},a.prototype.ixor=function(t){return m((this.negative|t.negative)==0),this.iuxor(t)},a.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){m(typeof t=="number"&&t>=0);var n=0|Math.ceil(t/26),r=t%26;this._expand(n),r>0&&n--;for(var i=0;i<n;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,n){m(typeof t=="number"&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=n?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},a.prototype.iadd=function(t){var n,r,i;if(this.negative!==0&&t.negative===0)return this.negative=0,n=this.isub(t),this.negative^=1,this._normSign();if(this.negative===0&&t.negative!==0)return t.negative=0,n=this.isub(t),t.negative=1,n._normSign();this.length>t.length?(r=this,i=t):(r=t,i=this);for(var e=0,o=0;o<i.length;o++)n=(0|r.words[o])+(0|i.words[o])+e,this.words[o]=67108863&n,e=n>>>26;for(;e!==0&&o<r.length;o++)n=(0|r.words[o])+e,this.words[o]=67108863&n,e=n>>>26;if(this.length=r.length,e!==0)this.words[this.length]=e,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},a.prototype.add=function(t){var n;return t.negative!==0&&this.negative===0?(t.negative=0,n=this.sub(t),t.negative^=1,n):t.negative===0&&this.negative!==0?(this.negative=0,n=t.sub(this),this.negative=1,n):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(t.negative!==0){t.negative=0;var n=this.iadd(t);return t.negative=1,n._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,i,e=this.cmp(t);if(e===0)return this.negative=0,this.length=1,this.words[0]=0,this;e>0?(r=this,i=t):(r=t,i=this);for(var o=0,s=0;s<i.length;s++)o=(n=(0|r.words[s])-(0|i.words[s])+o)>>26,this.words[s]=67108863&n;for(;o!==0&&s<r.length;s++)o=(n=(0|r.words[s])+o)>>26,this.words[s]=67108863&n;if(o===0&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(t){return this.clone().isub(t)};var b=function(t,n,r){var i,e,o,s=t.words,A=n.words,C=r.words,j=0,T=0|s[0],R=8191&T,q=T>>>13,Z=0|s[1],rt=8191&Z,D=Z>>>13,G=0|s[2],z=8191&G,X=G>>>13,st=0|s[3],nt=8191&st,ht=st>>>13,Et=0|s[4],gt=8191&Et,bt=Et>>>13,Bt=0|s[5],Mt=8191&Bt,It=Bt>>>13,J=0|s[6],tt=8191&J,F=J>>>13,H=0|s[7],U=8191&H,it=H>>>13,pt=0|s[8],ft=8191&pt,mt=pt>>>13,re=0|s[9],_t=8191&re,At=re>>>13,fe=0|A[0],kt=8191&fe,Kt=fe>>>13,Ce=0|A[1],Pt=8191&Ce,Ht=Ce>>>13,je=0|A[2],Rt=8191&je,Wt=je>>>13,ye=0|A[3],Nt=8191&ye,Xt=ye>>>13,ke=0|A[4],jt=8191&ke,Zt=ke>>>13,Oe=0|A[5],Dt=8191&Oe,Jt=Oe>>>13,De=0|A[6],Lt=8191&De,Qt=De>>>13,ze=0|A[7],Ut=8191&ze,Yt=ze>>>13,$e=0|A[8],qt=8191&$e,ee=$e>>>13,He=0|A[9],Ft=8191&He,te=He>>>13;r.negative=t.negative^n.negative,r.length=19;var Ae=(j+(i=Math.imul(R,kt))|0)+((8191&(e=(e=Math.imul(R,Kt))+Math.imul(q,kt)|0))<<13)|0;j=((o=Math.imul(q,Kt))+(e>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,i=Math.imul(rt,kt),e=(e=Math.imul(rt,Kt))+Math.imul(D,kt)|0,o=Math.imul(D,Kt);var Re=(j+(i=i+Math.imul(R,Pt)|0)|0)+((8191&(e=(e=e+Math.imul(R,Ht)|0)+Math.imul(q,Pt)|0))<<13)|0;j=((o=o+Math.imul(q,Ht)|0)+(e>>>13)|0)+(Re>>>26)|0,Re&=67108863,i=Math.imul(z,kt),e=(e=Math.imul(z,Kt))+Math.imul(X,kt)|0,o=Math.imul(X,Kt),i=i+Math.imul(rt,Pt)|0,e=(e=e+Math.imul(rt,Ht)|0)+Math.imul(D,Pt)|0,o=o+Math.imul(D,Ht)|0;var Ke=(j+(i=i+Math.imul(R,Rt)|0)|0)+((8191&(e=(e=e+Math.imul(R,Wt)|0)+Math.imul(q,Rt)|0))<<13)|0;j=((o=o+Math.imul(q,Wt)|0)+(e>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,i=Math.imul(nt,kt),e=(e=Math.imul(nt,Kt))+Math.imul(ht,kt)|0,o=Math.imul(ht,Kt),i=i+Math.imul(z,Pt)|0,e=(e=e+Math.imul(z,Ht)|0)+Math.imul(X,Pt)|0,o=o+Math.imul(X,Ht)|0,i=i+Math.imul(rt,Rt)|0,e=(e=e+Math.imul(rt,Wt)|0)+Math.imul(D,Rt)|0,o=o+Math.imul(D,Wt)|0;var ai=(j+(i=i+Math.imul(R,Nt)|0)|0)+((8191&(e=(e=e+Math.imul(R,Xt)|0)+Math.imul(q,Nt)|0))<<13)|0;j=((o=o+Math.imul(q,Xt)|0)+(e>>>13)|0)+(ai>>>26)|0,ai&=67108863,i=Math.imul(gt,kt),e=(e=Math.imul(gt,Kt))+Math.imul(bt,kt)|0,o=Math.imul(bt,Kt),i=i+Math.imul(nt,Pt)|0,e=(e=e+Math.imul(nt,Ht)|0)+Math.imul(ht,Pt)|0,o=o+Math.imul(ht,Ht)|0,i=i+Math.imul(z,Rt)|0,e=(e=e+Math.imul(z,Wt)|0)+Math.imul(X,Rt)|0,o=o+Math.imul(X,Wt)|0,i=i+Math.imul(rt,Nt)|0,e=(e=e+Math.imul(rt,Xt)|0)+Math.imul(D,Nt)|0,o=o+Math.imul(D,Xt)|0;var ri=(j+(i=i+Math.imul(R,jt)|0)|0)+((8191&(e=(e=e+Math.imul(R,Zt)|0)+Math.imul(q,jt)|0))<<13)|0;j=((o=o+Math.imul(q,Zt)|0)+(e>>>13)|0)+(ri>>>26)|0,ri&=67108863,i=Math.imul(Mt,kt),e=(e=Math.imul(Mt,Kt))+Math.imul(It,kt)|0,o=Math.imul(It,Kt),i=i+Math.imul(gt,Pt)|0,e=(e=e+Math.imul(gt,Ht)|0)+Math.imul(bt,Pt)|0,o=o+Math.imul(bt,Ht)|0,i=i+Math.imul(nt,Rt)|0,e=(e=e+Math.imul(nt,Wt)|0)+Math.imul(ht,Rt)|0,o=o+Math.imul(ht,Wt)|0,i=i+Math.imul(z,Nt)|0,e=(e=e+Math.imul(z,Xt)|0)+Math.imul(X,Nt)|0,o=o+Math.imul(X,Xt)|0,i=i+Math.imul(rt,jt)|0,e=(e=e+Math.imul(rt,Zt)|0)+Math.imul(D,jt)|0,o=o+Math.imul(D,Zt)|0;var si=(j+(i=i+Math.imul(R,Dt)|0)|0)+((8191&(e=(e=e+Math.imul(R,Jt)|0)+Math.imul(q,Dt)|0))<<13)|0;j=((o=o+Math.imul(q,Jt)|0)+(e>>>13)|0)+(si>>>26)|0,si&=67108863,i=Math.imul(tt,kt),e=(e=Math.imul(tt,Kt))+Math.imul(F,kt)|0,o=Math.imul(F,Kt),i=i+Math.imul(Mt,Pt)|0,e=(e=e+Math.imul(Mt,Ht)|0)+Math.imul(It,Pt)|0,o=o+Math.imul(It,Ht)|0,i=i+Math.imul(gt,Rt)|0,e=(e=e+Math.imul(gt,Wt)|0)+Math.imul(bt,Rt)|0,o=o+Math.imul(bt,Wt)|0,i=i+Math.imul(nt,Nt)|0,e=(e=e+Math.imul(nt,Xt)|0)+Math.imul(ht,Nt)|0,o=o+Math.imul(ht,Xt)|0,i=i+Math.imul(z,jt)|0,e=(e=e+Math.imul(z,Zt)|0)+Math.imul(X,jt)|0,o=o+Math.imul(X,Zt)|0,i=i+Math.imul(rt,Dt)|0,e=(e=e+Math.imul(rt,Jt)|0)+Math.imul(D,Dt)|0,o=o+Math.imul(D,Jt)|0;var ui=(j+(i=i+Math.imul(R,Lt)|0)|0)+((8191&(e=(e=e+Math.imul(R,Qt)|0)+Math.imul(q,Lt)|0))<<13)|0;j=((o=o+Math.imul(q,Qt)|0)+(e>>>13)|0)+(ui>>>26)|0,ui&=67108863,i=Math.imul(U,kt),e=(e=Math.imul(U,Kt))+Math.imul(it,kt)|0,o=Math.imul(it,Kt),i=i+Math.imul(tt,Pt)|0,e=(e=e+Math.imul(tt,Ht)|0)+Math.imul(F,Pt)|0,o=o+Math.imul(F,Ht)|0,i=i+Math.imul(Mt,Rt)|0,e=(e=e+Math.imul(Mt,Wt)|0)+Math.imul(It,Rt)|0,o=o+Math.imul(It,Wt)|0,i=i+Math.imul(gt,Nt)|0,e=(e=e+Math.imul(gt,Xt)|0)+Math.imul(bt,Nt)|0,o=o+Math.imul(bt,Xt)|0,i=i+Math.imul(nt,jt)|0,e=(e=e+Math.imul(nt,Zt)|0)+Math.imul(ht,jt)|0,o=o+Math.imul(ht,Zt)|0,i=i+Math.imul(z,Dt)|0,e=(e=e+Math.imul(z,Jt)|0)+Math.imul(X,Dt)|0,o=o+Math.imul(X,Jt)|0,i=i+Math.imul(rt,Lt)|0,e=(e=e+Math.imul(rt,Qt)|0)+Math.imul(D,Lt)|0,o=o+Math.imul(D,Qt)|0;var ci=(j+(i=i+Math.imul(R,Ut)|0)|0)+((8191&(e=(e=e+Math.imul(R,Yt)|0)+Math.imul(q,Ut)|0))<<13)|0;j=((o=o+Math.imul(q,Yt)|0)+(e>>>13)|0)+(ci>>>26)|0,ci&=67108863,i=Math.imul(ft,kt),e=(e=Math.imul(ft,Kt))+Math.imul(mt,kt)|0,o=Math.imul(mt,Kt),i=i+Math.imul(U,Pt)|0,e=(e=e+Math.imul(U,Ht)|0)+Math.imul(it,Pt)|0,o=o+Math.imul(it,Ht)|0,i=i+Math.imul(tt,Rt)|0,e=(e=e+Math.imul(tt,Wt)|0)+Math.imul(F,Rt)|0,o=o+Math.imul(F,Wt)|0,i=i+Math.imul(Mt,Nt)|0,e=(e=e+Math.imul(Mt,Xt)|0)+Math.imul(It,Nt)|0,o=o+Math.imul(It,Xt)|0,i=i+Math.imul(gt,jt)|0,e=(e=e+Math.imul(gt,Zt)|0)+Math.imul(bt,jt)|0,o=o+Math.imul(bt,Zt)|0,i=i+Math.imul(nt,Dt)|0,e=(e=e+Math.imul(nt,Jt)|0)+Math.imul(ht,Dt)|0,o=o+Math.imul(ht,Jt)|0,i=i+Math.imul(z,Lt)|0,e=(e=e+Math.imul(z,Qt)|0)+Math.imul(X,Lt)|0,o=o+Math.imul(X,Qt)|0,i=i+Math.imul(rt,Ut)|0,e=(e=e+Math.imul(rt,Yt)|0)+Math.imul(D,Ut)|0,o=o+Math.imul(D,Yt)|0;var li=(j+(i=i+Math.imul(R,qt)|0)|0)+((8191&(e=(e=e+Math.imul(R,ee)|0)+Math.imul(q,qt)|0))<<13)|0;j=((o=o+Math.imul(q,ee)|0)+(e>>>13)|0)+(li>>>26)|0,li&=67108863,i=Math.imul(_t,kt),e=(e=Math.imul(_t,Kt))+Math.imul(At,kt)|0,o=Math.imul(At,Kt),i=i+Math.imul(ft,Pt)|0,e=(e=e+Math.imul(ft,Ht)|0)+Math.imul(mt,Pt)|0,o=o+Math.imul(mt,Ht)|0,i=i+Math.imul(U,Rt)|0,e=(e=e+Math.imul(U,Wt)|0)+Math.imul(it,Rt)|0,o=o+Math.imul(it,Wt)|0,i=i+Math.imul(tt,Nt)|0,e=(e=e+Math.imul(tt,Xt)|0)+Math.imul(F,Nt)|0,o=o+Math.imul(F,Xt)|0,i=i+Math.imul(Mt,jt)|0,e=(e=e+Math.imul(Mt,Zt)|0)+Math.imul(It,jt)|0,o=o+Math.imul(It,Zt)|0,i=i+Math.imul(gt,Dt)|0,e=(e=e+Math.imul(gt,Jt)|0)+Math.imul(bt,Dt)|0,o=o+Math.imul(bt,Jt)|0,i=i+Math.imul(nt,Lt)|0,e=(e=e+Math.imul(nt,Qt)|0)+Math.imul(ht,Lt)|0,o=o+Math.imul(ht,Qt)|0,i=i+Math.imul(z,Ut)|0,e=(e=e+Math.imul(z,Yt)|0)+Math.imul(X,Ut)|0,o=o+Math.imul(X,Yt)|0,i=i+Math.imul(rt,qt)|0,e=(e=e+Math.imul(rt,ee)|0)+Math.imul(D,qt)|0,o=o+Math.imul(D,ee)|0;var hi=(j+(i=i+Math.imul(R,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(R,te)|0)+Math.imul(q,Ft)|0))<<13)|0;j=((o=o+Math.imul(q,te)|0)+(e>>>13)|0)+(hi>>>26)|0,hi&=67108863,i=Math.imul(_t,Pt),e=(e=Math.imul(_t,Ht))+Math.imul(At,Pt)|0,o=Math.imul(At,Ht),i=i+Math.imul(ft,Rt)|0,e=(e=e+Math.imul(ft,Wt)|0)+Math.imul(mt,Rt)|0,o=o+Math.imul(mt,Wt)|0,i=i+Math.imul(U,Nt)|0,e=(e=e+Math.imul(U,Xt)|0)+Math.imul(it,Nt)|0,o=o+Math.imul(it,Xt)|0,i=i+Math.imul(tt,jt)|0,e=(e=e+Math.imul(tt,Zt)|0)+Math.imul(F,jt)|0,o=o+Math.imul(F,Zt)|0,i=i+Math.imul(Mt,Dt)|0,e=(e=e+Math.imul(Mt,Jt)|0)+Math.imul(It,Dt)|0,o=o+Math.imul(It,Jt)|0,i=i+Math.imul(gt,Lt)|0,e=(e=e+Math.imul(gt,Qt)|0)+Math.imul(bt,Lt)|0,o=o+Math.imul(bt,Qt)|0,i=i+Math.imul(nt,Ut)|0,e=(e=e+Math.imul(nt,Yt)|0)+Math.imul(ht,Ut)|0,o=o+Math.imul(ht,Yt)|0,i=i+Math.imul(z,qt)|0,e=(e=e+Math.imul(z,ee)|0)+Math.imul(X,qt)|0,o=o+Math.imul(X,ee)|0;var fi=(j+(i=i+Math.imul(rt,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(rt,te)|0)+Math.imul(D,Ft)|0))<<13)|0;j=((o=o+Math.imul(D,te)|0)+(e>>>13)|0)+(fi>>>26)|0,fi&=67108863,i=Math.imul(_t,Rt),e=(e=Math.imul(_t,Wt))+Math.imul(At,Rt)|0,o=Math.imul(At,Wt),i=i+Math.imul(ft,Nt)|0,e=(e=e+Math.imul(ft,Xt)|0)+Math.imul(mt,Nt)|0,o=o+Math.imul(mt,Xt)|0,i=i+Math.imul(U,jt)|0,e=(e=e+Math.imul(U,Zt)|0)+Math.imul(it,jt)|0,o=o+Math.imul(it,Zt)|0,i=i+Math.imul(tt,Dt)|0,e=(e=e+Math.imul(tt,Jt)|0)+Math.imul(F,Dt)|0,o=o+Math.imul(F,Jt)|0,i=i+Math.imul(Mt,Lt)|0,e=(e=e+Math.imul(Mt,Qt)|0)+Math.imul(It,Lt)|0,o=o+Math.imul(It,Qt)|0,i=i+Math.imul(gt,Ut)|0,e=(e=e+Math.imul(gt,Yt)|0)+Math.imul(bt,Ut)|0,o=o+Math.imul(bt,Yt)|0,i=i+Math.imul(nt,qt)|0,e=(e=e+Math.imul(nt,ee)|0)+Math.imul(ht,qt)|0,o=o+Math.imul(ht,ee)|0;var Je=(j+(i=i+Math.imul(z,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(z,te)|0)+Math.imul(X,Ft)|0))<<13)|0;j=((o=o+Math.imul(X,te)|0)+(e>>>13)|0)+(Je>>>26)|0,Je&=67108863,i=Math.imul(_t,Nt),e=(e=Math.imul(_t,Xt))+Math.imul(At,Nt)|0,o=Math.imul(At,Xt),i=i+Math.imul(ft,jt)|0,e=(e=e+Math.imul(ft,Zt)|0)+Math.imul(mt,jt)|0,o=o+Math.imul(mt,Zt)|0,i=i+Math.imul(U,Dt)|0,e=(e=e+Math.imul(U,Jt)|0)+Math.imul(it,Dt)|0,o=o+Math.imul(it,Jt)|0,i=i+Math.imul(tt,Lt)|0,e=(e=e+Math.imul(tt,Qt)|0)+Math.imul(F,Lt)|0,o=o+Math.imul(F,Qt)|0,i=i+Math.imul(Mt,Ut)|0,e=(e=e+Math.imul(Mt,Yt)|0)+Math.imul(It,Ut)|0,o=o+Math.imul(It,Yt)|0,i=i+Math.imul(gt,qt)|0,e=(e=e+Math.imul(gt,ee)|0)+Math.imul(bt,qt)|0,o=o+Math.imul(bt,ee)|0;var pi=(j+(i=i+Math.imul(nt,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(nt,te)|0)+Math.imul(ht,Ft)|0))<<13)|0;j=((o=o+Math.imul(ht,te)|0)+(e>>>13)|0)+(pi>>>26)|0,pi&=67108863,i=Math.imul(_t,jt),e=(e=Math.imul(_t,Zt))+Math.imul(At,jt)|0,o=Math.imul(At,Zt),i=i+Math.imul(ft,Dt)|0,e=(e=e+Math.imul(ft,Jt)|0)+Math.imul(mt,Dt)|0,o=o+Math.imul(mt,Jt)|0,i=i+Math.imul(U,Lt)|0,e=(e=e+Math.imul(U,Qt)|0)+Math.imul(it,Lt)|0,o=o+Math.imul(it,Qt)|0,i=i+Math.imul(tt,Ut)|0,e=(e=e+Math.imul(tt,Yt)|0)+Math.imul(F,Ut)|0,o=o+Math.imul(F,Yt)|0,i=i+Math.imul(Mt,qt)|0,e=(e=e+Math.imul(Mt,ee)|0)+Math.imul(It,qt)|0,o=o+Math.imul(It,ee)|0;var gi=(j+(i=i+Math.imul(gt,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(gt,te)|0)+Math.imul(bt,Ft)|0))<<13)|0;j=((o=o+Math.imul(bt,te)|0)+(e>>>13)|0)+(gi>>>26)|0,gi&=67108863,i=Math.imul(_t,Dt),e=(e=Math.imul(_t,Jt))+Math.imul(At,Dt)|0,o=Math.imul(At,Jt),i=i+Math.imul(ft,Lt)|0,e=(e=e+Math.imul(ft,Qt)|0)+Math.imul(mt,Lt)|0,o=o+Math.imul(mt,Qt)|0,i=i+Math.imul(U,Ut)|0,e=(e=e+Math.imul(U,Yt)|0)+Math.imul(it,Ut)|0,o=o+Math.imul(it,Yt)|0,i=i+Math.imul(tt,qt)|0,e=(e=e+Math.imul(tt,ee)|0)+Math.imul(F,qt)|0,o=o+Math.imul(F,ee)|0;var ei=(j+(i=i+Math.imul(Mt,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(Mt,te)|0)+Math.imul(It,Ft)|0))<<13)|0;j=((o=o+Math.imul(It,te)|0)+(e>>>13)|0)+(ei>>>26)|0,ei&=67108863,i=Math.imul(_t,Lt),e=(e=Math.imul(_t,Qt))+Math.imul(At,Lt)|0,o=Math.imul(At,Qt),i=i+Math.imul(ft,Ut)|0,e=(e=e+Math.imul(ft,Yt)|0)+Math.imul(mt,Ut)|0,o=o+Math.imul(mt,Yt)|0,i=i+Math.imul(U,qt)|0,e=(e=e+Math.imul(U,ee)|0)+Math.imul(it,qt)|0,o=o+Math.imul(it,ee)|0;var ii=(j+(i=i+Math.imul(tt,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(tt,te)|0)+Math.imul(F,Ft)|0))<<13)|0;j=((o=o+Math.imul(F,te)|0)+(e>>>13)|0)+(ii>>>26)|0,ii&=67108863,i=Math.imul(_t,Ut),e=(e=Math.imul(_t,Yt))+Math.imul(At,Ut)|0,o=Math.imul(At,Yt),i=i+Math.imul(ft,qt)|0,e=(e=e+Math.imul(ft,ee)|0)+Math.imul(mt,qt)|0,o=o+Math.imul(mt,ee)|0;var Ye=(j+(i=i+Math.imul(U,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(U,te)|0)+Math.imul(it,Ft)|0))<<13)|0;j=((o=o+Math.imul(it,te)|0)+(e>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,i=Math.imul(_t,qt),e=(e=Math.imul(_t,ee))+Math.imul(At,qt)|0,o=Math.imul(At,ee);var di=(j+(i=i+Math.imul(ft,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(ft,te)|0)+Math.imul(mt,Ft)|0))<<13)|0;j=((o=o+Math.imul(mt,te)|0)+(e>>>13)|0)+(di>>>26)|0,di&=67108863;var ni=(j+(i=Math.imul(_t,Ft))|0)+((8191&(e=(e=Math.imul(_t,te))+Math.imul(At,Ft)|0))<<13)|0;return j=((o=Math.imul(At,te))+(e>>>13)|0)+(ni>>>26)|0,ni&=67108863,C[0]=Ae,C[1]=Re,C[2]=Ke,C[3]=ai,C[4]=ri,C[5]=si,C[6]=ui,C[7]=ci,C[8]=li,C[9]=hi,C[10]=fi,C[11]=Je,C[12]=pi,C[13]=gi,C[14]=ei,C[15]=ii,C[16]=Ye,C[17]=di,C[18]=ni,j!==0&&(C[19]=j,r.length++),r};function E(t,n,r){return new I().mulp(t,n,r)}function I(t,n){this.x=t,this.y=n}Math.imul||(b=w),a.prototype.mulTo=function(t,n){var r,i=this.length+t.length;return r=this.length===10&&t.length===10?b(this,t,n):i<63?w(this,t,n):i<1024?function(e,o,s){s.negative=o.negative^e.negative,s.length=e.length+o.length;for(var A=0,C=0,j=0;j<s.length-1;j++){var T=C;C=0;for(var R=67108863&A,q=Math.min(j,o.length-1),Z=Math.max(0,j-e.length+1);Z<=q;Z++){var rt=j-Z,D=(0|e.words[rt])*(0|o.words[Z]),G=67108863&D;R=67108863&(G=G+R|0),C+=(T=(T=T+(D/67108864|0)|0)+(G>>>26)|0)>>>26,T&=67108863}s.words[j]=R,A=T,T=C}return A!==0?s.words[j]=A:s.length--,s.strip()}(this,t,n):E(this,t,n),r},I.prototype.makeRBT=function(t){for(var n=new Array(t),r=a.prototype._countBits(t)-1,i=0;i<t;i++)n[i]=this.revBin(i,r,t);return n},I.prototype.revBin=function(t,n,r){if(t===0||t===r-1)return t;for(var i=0,e=0;e<n;e++)i|=(1&t)<<n-e-1,t>>=1;return i},I.prototype.permute=function(t,n,r,i,e,o){for(var s=0;s<o;s++)i[s]=n[t[s]],e[s]=r[t[s]]},I.prototype.transform=function(t,n,r,i,e,o){this.permute(o,t,n,r,i,e);for(var s=1;s<e;s<<=1)for(var A=s<<1,C=Math.cos(2*Math.PI/A),j=Math.sin(2*Math.PI/A),T=0;T<e;T+=A)for(var R=C,q=j,Z=0;Z<s;Z++){var rt=r[T+Z],D=i[T+Z],G=r[T+Z+s],z=i[T+Z+s],X=R*G-q*z;z=R*z+q*G,G=X,r[T+Z]=rt+G,i[T+Z]=D+z,r[T+Z+s]=rt-G,i[T+Z+s]=D-z,Z!==A&&(X=C*R-j*q,q=C*q+j*R,R=X)}},I.prototype.guessLen13b=function(t,n){var r=1|Math.max(n,t),i=1&r,e=0;for(r=r/2|0;r;r>>>=1)e++;return 1<<e+1+i},I.prototype.conjugate=function(t,n,r){if(!(r<=1))for(var i=0;i<r/2;i++){var e=t[i];t[i]=t[r-i-1],t[r-i-1]=e,e=n[i],n[i]=-n[r-i-1],n[r-i-1]=-e}},I.prototype.normalize13b=function(t,n){for(var r=0,i=0;i<n/2;i++){var e=8192*Math.round(t[2*i+1]/n)+Math.round(t[2*i]/n)+r;t[i]=67108863&e,r=e<67108864?0:e/67108864|0}return t},I.prototype.convert13b=function(t,n,r,i){for(var e=0,o=0;o<n;o++)e+=0|t[o],r[2*o]=8191&e,e>>>=13,r[2*o+1]=8191&e,e>>>=13;for(o=2*n;o<i;++o)r[o]=0;m(e===0),m((-8192&e)==0)},I.prototype.stub=function(t){for(var n=new Array(t),r=0;r<t;r++)n[r]=0;return n},I.prototype.mulp=function(t,n,r){var i=2*this.guessLen13b(t.length,n.length),e=this.makeRBT(i),o=this.stub(i),s=new Array(i),A=new Array(i),C=new Array(i),j=new Array(i),T=new Array(i),R=new Array(i),q=r.words;q.length=i,this.convert13b(t.words,t.length,s,i),this.convert13b(n.words,n.length,j,i),this.transform(s,o,A,C,i,e),this.transform(j,o,T,R,i,e);for(var Z=0;Z<i;Z++){var rt=A[Z]*T[Z]-C[Z]*R[Z];C[Z]=A[Z]*R[Z]+C[Z]*T[Z],A[Z]=rt}return this.conjugate(A,C,i),this.transform(A,C,q,o,i,e),this.conjugate(q,o,i),this.normalize13b(q,i),r.negative=t.negative^n.negative,r.length=t.length+n.length,r.strip()},a.prototype.mul=function(t){var n=new a(null);return n.words=new Array(this.length+t.length),this.mulTo(t,n)},a.prototype.mulf=function(t){var n=new a(null);return n.words=new Array(this.length+t.length),E(this,t,n)},a.prototype.imul=function(t){return this.clone().mulTo(t,this)},a.prototype.imuln=function(t){m(typeof t=="number"),m(t<67108864);for(var n=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,e=(67108863&i)+(67108863&n);n>>=26,n+=i/67108864|0,n+=e>>>26,this.words[r]=67108863&e}return n!==0&&(this.words[r]=n,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var n=function(o){for(var s=new Array(o.bitLength()),A=0;A<s.length;A++){var C=A/26|0,j=A%26;s[A]=(o.words[C]&1<<j)>>>j}return s}(t);if(n.length===0)return new a(1);for(var r=this,i=0;i<n.length&&n[i]===0;i++,r=r.sqr());if(++i<n.length)for(var e=r.sqr();i<n.length;i++,e=e.sqr())n[i]!==0&&(r=r.mul(e));return r},a.prototype.iushln=function(t){m(typeof t=="number"&&t>=0);var n,r=t%26,i=(t-r)/26,e=67108863>>>26-r<<26-r;if(r!==0){var o=0;for(n=0;n<this.length;n++){var s=this.words[n]&e,A=(0|this.words[n])-s<<r;this.words[n]=A|o,o=s>>>26-r}o&&(this.words[n]=o,this.length++)}if(i!==0){for(n=this.length-1;n>=0;n--)this.words[n+i]=this.words[n];for(n=0;n<i;n++)this.words[n]=0;this.length+=i}return this.strip()},a.prototype.ishln=function(t){return m(this.negative===0),this.iushln(t)},a.prototype.iushrn=function(t,n,r){var i;m(typeof t=="number"&&t>=0),i=n?(n-n%26)/26:0;var e=t%26,o=Math.min((t-e)/26,this.length),s=67108863^67108863>>>e<<e,A=r;if(i-=o,i=Math.max(0,i),A){for(var C=0;C<o;C++)A.words[C]=this.words[C];A.length=o}if(o!==0)if(this.length>o)for(this.length-=o,C=0;C<this.length;C++)this.words[C]=this.words[C+o];else this.words[0]=0,this.length=1;var j=0;for(C=this.length-1;C>=0&&(j!==0||C>=i);C--){var T=0|this.words[C];this.words[C]=j<<26-e|T>>>e,j=T&s}return A&&j!==0&&(A.words[A.length++]=j),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,n,r){return m(this.negative===0),this.iushrn(t,n,r)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){m(typeof t=="number"&&t>=0);var n=t%26,r=(t-n)/26,i=1<<n;return!(this.length<=r||!(this.words[r]&i))},a.prototype.imaskn=function(t){m(typeof t=="number"&&t>=0);var n=t%26,r=(t-n)/26;if(m(this.negative===0,"imaskn works only with positive numbers"),this.length<=r)return this;if(n!==0&&r++,this.length=Math.min(r,this.length),n!==0){var i=67108863^67108863>>>n<<n;this.words[this.length-1]&=i}return this.strip()},a.prototype.maskn=function(t){return this.clone().imaskn(t)},a.prototype.iaddn=function(t){return m(typeof t=="number"),m(t<67108864),t<0?this.isubn(-t):this.negative!==0?this.length===1&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},a.prototype._iaddn=function(t){this.words[0]+=t;for(var n=0;n<this.length&&this.words[n]>=67108864;n++)this.words[n]-=67108864,n===this.length-1?this.words[n+1]=1:this.words[n+1]++;return this.length=Math.max(this.length,n+1),this},a.prototype.isubn=function(t){if(m(typeof t=="number"),m(t<67108864),t<0)return this.iaddn(-t);if(this.negative!==0)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var n=0;n<this.length&&this.words[n]<0;n++)this.words[n]+=67108864,this.words[n+1]-=1;return this.strip()},a.prototype.addn=function(t){return this.clone().iaddn(t)},a.prototype.subn=function(t){return this.clone().isubn(t)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(t,n,r){var i,e,o=t.length+r;this._expand(o);var s=0;for(i=0;i<t.length;i++){e=(0|this.words[i+r])+s;var A=(0|t.words[i])*n;s=((e-=67108863&A)>>26)-(A/67108864|0),this.words[i+r]=67108863&e}for(;i<this.length-r;i++)s=(e=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&e;if(s===0)return this.strip();for(m(s===-1),s=0,i=0;i<this.length;i++)s=(e=-(0|this.words[i])+s)>>26,this.words[i]=67108863&e;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,n){var r=(this.length,t.length),i=this.clone(),e=t,o=0|e.words[e.length-1];(r=26-this._countBits(o))!=0&&(e=e.ushln(r),i.iushln(r),o=0|e.words[e.length-1]);var s,A=i.length-e.length;if(n!=="mod"){(s=new a(null)).length=A+1,s.words=new Array(s.length);for(var C=0;C<s.length;C++)s.words[C]=0}var j=i.clone()._ishlnsubmul(e,1,A);j.negative===0&&(i=j,s&&(s.words[A]=1));for(var T=A-1;T>=0;T--){var R=67108864*(0|i.words[e.length+T])+(0|i.words[e.length+T-1]);for(R=Math.min(R/o|0,67108863),i._ishlnsubmul(e,R,T);i.negative!==0;)R--,i.negative=0,i._ishlnsubmul(e,1,T),i.isZero()||(i.negative^=1);s&&(s.words[T]=R)}return s&&s.strip(),i.strip(),n!=="div"&&r!==0&&i.iushrn(r),{div:s||null,mod:i}},a.prototype.divmod=function(t,n,r){return m(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:this.negative!==0&&t.negative===0?(o=this.neg().divmod(t,n),n!=="mod"&&(i=o.div.neg()),n!=="div"&&(e=o.mod.neg(),r&&e.negative!==0&&e.iadd(t)),{div:i,mod:e}):this.negative===0&&t.negative!==0?(o=this.divmod(t.neg(),n),n!=="mod"&&(i=o.div.neg()),{div:i,mod:o.mod}):this.negative&t.negative?(o=this.neg().divmod(t.neg(),n),n!=="div"&&(e=o.mod.neg(),r&&e.negative!==0&&e.isub(t)),{div:o.div,mod:e}):t.length>this.length||this.cmp(t)<0?{div:new a(0),mod:this}:t.length===1?n==="div"?{div:this.divn(t.words[0]),mod:null}:n==="mod"?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,n);var i,e,o},a.prototype.div=function(t){return this.divmod(t,"div",!1).div},a.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},a.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},a.prototype.divRound=function(t){var n=this.divmod(t);if(n.mod.isZero())return n.div;var r=n.div.negative!==0?n.mod.isub(t):n.mod,i=t.ushrn(1),e=t.andln(1),o=r.cmp(i);return o<0||e===1&&o===0?n.div:n.div.negative!==0?n.div.isubn(1):n.div.iaddn(1)},a.prototype.modn=function(t){m(t<=67108863);for(var n=67108864%t,r=0,i=this.length-1;i>=0;i--)r=(n*r+(0|this.words[i]))%t;return r},a.prototype.idivn=function(t){m(t<=67108863);for(var n=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*n;this.words[r]=i/t|0,n=i%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){m(t.negative===0),m(!t.isZero());var n=this,r=t.clone();n=n.negative!==0?n.umod(t):n.clone();for(var i=new a(1),e=new a(0),o=new a(0),s=new a(1),A=0;n.isEven()&&r.isEven();)n.iushrn(1),r.iushrn(1),++A;for(var C=r.clone(),j=n.clone();!n.isZero();){for(var T=0,R=1;!(n.words[0]&R)&&T<26;++T,R<<=1);if(T>0)for(n.iushrn(T);T-- >0;)(i.isOdd()||e.isOdd())&&(i.iadd(C),e.isub(j)),i.iushrn(1),e.iushrn(1);for(var q=0,Z=1;!(r.words[0]&Z)&&q<26;++q,Z<<=1);if(q>0)for(r.iushrn(q);q-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(C),s.isub(j)),o.iushrn(1),s.iushrn(1);n.cmp(r)>=0?(n.isub(r),i.isub(o),e.isub(s)):(r.isub(n),o.isub(i),s.isub(e))}return{a:o,b:s,gcd:r.iushln(A)}},a.prototype._invmp=function(t){m(t.negative===0),m(!t.isZero());var n=this,r=t.clone();n=n.negative!==0?n.umod(t):n.clone();for(var i,e=new a(1),o=new a(0),s=r.clone();n.cmpn(1)>0&&r.cmpn(1)>0;){for(var A=0,C=1;!(n.words[0]&C)&&A<26;++A,C<<=1);if(A>0)for(n.iushrn(A);A-- >0;)e.isOdd()&&e.iadd(s),e.iushrn(1);for(var j=0,T=1;!(r.words[0]&T)&&j<26;++j,T<<=1);if(j>0)for(r.iushrn(j);j-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);n.cmp(r)>=0?(n.isub(r),e.isub(o)):(r.isub(n),o.isub(e))}return(i=n.cmpn(1)===0?e:o).cmpn(0)<0&&i.iadd(t),i},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var n=this.clone(),r=t.clone();n.negative=0,r.negative=0;for(var i=0;n.isEven()&&r.isEven();i++)n.iushrn(1),r.iushrn(1);for(;;){for(;n.isEven();)n.iushrn(1);for(;r.isEven();)r.iushrn(1);var e=n.cmp(r);if(e<0){var o=n;n=r,r=o}else if(e===0||r.cmpn(1)===0)break;n.isub(r)}return r.iushln(i)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(t){return this.words[0]&t},a.prototype.bincn=function(t){m(typeof t=="number");var n=t%26,r=(t-n)/26,i=1<<n;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var e=i,o=r;e!==0&&o<this.length;o++){var s=0|this.words[o];e=(s+=e)>>>26,s&=67108863,this.words[o]=s}return e!==0&&(this.words[o]=e,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(t){var n,r=t<0;if(this.negative!==0&&!r)return-1;if(this.negative===0&&r)return 1;if(this.strip(),this.length>1)n=1;else{r&&(t=-t),m(t<=67108863,"Number is too big");var i=0|this.words[0];n=i===t?0:i<t?-1:1}return this.negative!==0?0|-n:n},a.prototype.cmp=function(t){if(this.negative!==0&&t.negative===0)return-1;if(this.negative===0&&t.negative!==0)return 1;var n=this.ucmp(t);return this.negative!==0?0|-n:n},a.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var n=0,r=this.length-1;r>=0;r--){var i=0|this.words[r],e=0|t.words[r];if(i!==e){i<e?n=-1:i>e&&(n=1);break}}return n},a.prototype.gtn=function(t){return this.cmpn(t)===1},a.prototype.gt=function(t){return this.cmp(t)===1},a.prototype.gten=function(t){return this.cmpn(t)>=0},a.prototype.gte=function(t){return this.cmp(t)>=0},a.prototype.ltn=function(t){return this.cmpn(t)===-1},a.prototype.lt=function(t){return this.cmp(t)===-1},a.prototype.lten=function(t){return this.cmpn(t)<=0},a.prototype.lte=function(t){return this.cmp(t)<=0},a.prototype.eqn=function(t){return this.cmpn(t)===0},a.prototype.eq=function(t){return this.cmp(t)===0},a.red=function(t){return new Q(t)},a.prototype.toRed=function(t){return m(!this.red,"Already a number in reduction context"),m(this.negative===0,"red works only with positives"),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return m(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return m(!this.red,"Already a number in reduction context"),this._forceRed(t)},a.prototype.redAdd=function(t){return m(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},a.prototype.redIAdd=function(t){return m(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},a.prototype.redSub=function(t){return m(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},a.prototype.redISub=function(t){return m(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},a.prototype.redShl=function(t){return m(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},a.prototype.redMul=function(t){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return m(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return m(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return m(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return m(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return m(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return m(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var M={k256:null,p224:null,p192:null,p25519:null};function B(t,n){this.name=t,this.p=new a(n,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function P(){B.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function N(){B.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function $(){B.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function et(){B.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function Q(t){if(typeof t=="string"){var n=a._prime(t);this.m=n.p,this.prime=n}else m(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function ot(t){Q.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}B.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},B.prototype.ireduce=function(t){var n,r=t;do this.split(r,this.tmp),n=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(n>this.n);var i=n<this.n?-1:r.ucmp(this.p);return i===0?(r.words[0]=0,r.length=1):i>0?r.isub(this.p):r.strip!==void 0?r.strip():r._strip(),r},B.prototype.split=function(t,n){t.iushrn(this.n,0,n)},B.prototype.imulK=function(t){return t.imul(this.k)},S(P,B),P.prototype.split=function(t,n){for(var r=4194303,i=Math.min(t.length,9),e=0;e<i;e++)n.words[e]=t.words[e];if(n.length=i,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(n.words[n.length++]=o&r,e=10;e<t.length;e++){var s=0|t.words[e];t.words[e-10]=(s&r)<<4|o>>>22,o=s}o>>>=22,t.words[e-10]=o,o===0&&t.length>10?t.length-=10:t.length-=9},P.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var n=0,r=0;r<t.length;r++){var i=0|t.words[r];n+=977*i,t.words[r]=67108863&n,n=64*i+(n/67108864|0)}return t.words[t.length-1]===0&&(t.length--,t.words[t.length-1]===0&&t.length--),t},S(N,B),S($,B),S(et,B),et.prototype.imulK=function(t){for(var n=0,r=0;r<t.length;r++){var i=19*(0|t.words[r])+n,e=67108863&i;i>>>=26,t.words[r]=e,n=i}return n!==0&&(t.words[t.length++]=n),t},a._prime=function(t){if(M[t])return M[t];var n;if(t==="k256")n=new P;else if(t==="p224")n=new N;else if(t==="p192")n=new $;else{if(t!=="p25519")throw new Error("Unknown prime "+t);n=new et}return M[t]=n,n},Q.prototype._verify1=function(t){m(t.negative===0,"red works only with positives"),m(t.red,"red works only with red numbers")},Q.prototype._verify2=function(t,n){m((t.negative|n.negative)==0,"red works only with positives"),m(t.red&&t.red===n.red,"red works only with red numbers")},Q.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},Q.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},Q.prototype.add=function(t,n){this._verify2(t,n);var r=t.add(n);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},Q.prototype.iadd=function(t,n){this._verify2(t,n);var r=t.iadd(n);return r.cmp(this.m)>=0&&r.isub(this.m),r},Q.prototype.sub=function(t,n){this._verify2(t,n);var r=t.sub(n);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},Q.prototype.isub=function(t,n){this._verify2(t,n);var r=t.isub(n);return r.cmpn(0)<0&&r.iadd(this.m),r},Q.prototype.shl=function(t,n){return this._verify1(t),this.imod(t.ushln(n))},Q.prototype.imul=function(t,n){return this._verify2(t,n),this.imod(t.imul(n))},Q.prototype.mul=function(t,n){return this._verify2(t,n),this.imod(t.mul(n))},Q.prototype.isqr=function(t){return this.imul(t,t.clone())},Q.prototype.sqr=function(t){return this.mul(t,t)},Q.prototype.sqrt=function(t){if(t.isZero())return t.clone();var n=this.m.andln(3);if(m(n%2==1),n===3){var r=this.m.add(new a(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),e=0;!i.isZero()&&i.andln(1)===0;)e++,i.iushrn(1);m(!i.isZero());var o=new a(1).toRed(this),s=o.redNeg(),A=this.m.subn(1).iushrn(1),C=this.m.bitLength();for(C=new a(2*C*C).toRed(this);this.pow(C,A).cmp(s)!==0;)C.redIAdd(s);for(var j=this.pow(C,i),T=this.pow(t,i.addn(1).iushrn(1)),R=this.pow(t,i),q=e;R.cmp(o)!==0;){for(var Z=R,rt=0;Z.cmp(o)!==0;rt++)Z=Z.redSqr();m(rt<q);var D=this.pow(j,new a(1).iushln(q-rt-1));T=T.redMul(D),j=D.redSqr(),R=R.redMul(j),q=rt}return T},Q.prototype.invm=function(t){var n=t._invmp(this.m);return n.negative!==0?(n.negative=0,this.imod(n).redNeg()):this.imod(n)},Q.prototype.pow=function(t,n){if(n.isZero())return new a(1).toRed(this);if(n.cmpn(1)===0)return t.clone();var r=new Array(16);r[0]=new a(1).toRed(this),r[1]=t;for(var i=2;i<r.length;i++)r[i]=this.mul(r[i-1],t);var e=r[0],o=0,s=0,A=n.bitLength()%26;for(A===0&&(A=26),i=n.length-1;i>=0;i--){for(var C=n.words[i],j=A-1;j>=0;j--){var T=C>>j&1;e!==r[0]&&(e=this.sqr(e)),T!==0||o!==0?(o<<=1,o|=T,(++s==4||i===0&&j===0)&&(e=this.mul(e,r[o]),s=0,o=0)):s=0}A=26}return e},Q.prototype.convertTo=function(t){var n=t.umod(this.m);return n===t?n.clone():n},Q.prototype.convertFrom=function(t){var n=t.clone();return n.red=null,n},a.mont=function(t){return new ot(t)},S(ot,Q),ot.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},ot.prototype.convertFrom=function(t){var n=this.imod(t.mul(this.rinv));return n.red=null,n},ot.prototype.imul=function(t,n){if(t.isZero()||n.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(n),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=r.isub(i).iushrn(this.shift),o=e;return e.cmp(this.m)>=0?o=e.isub(this.m):e.cmpn(0)<0&&(o=e.iadd(this.m)),o._forceRed(this)},ot.prototype.mul=function(t,n){if(t.isZero()||n.isZero())return new a(0)._forceRed(this);var r=t.mul(n),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=r.isub(i).iushrn(this.shift),o=e;return e.cmp(this.m)>=0?o=e.isub(this.m):e.cmpn(0)<0&&(o=e.iadd(this.m)),o._forceRed(this)},ot.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}})(W=y.nmd(W),this)},7216:(W,_,y)=>{function x(m,S){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!S||typeof S!="object"&&typeof S!="function"?m:S}y.r(_),y.d(_,{default:()=>v});const v=function(m){function S(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";(function(c,l){if(!(c instanceof l))throw new TypeError("Cannot call a class as a function")})(this,S);var p=x(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,a));return Object.defineProperty(p,"message",{configurable:!0,enumerable:!1,value:a,writable:!0}),Object.defineProperty(p,"name",{configurable:!0,enumerable:!1,value:p.constructor.name,writable:!0}),Error.hasOwnProperty("captureStackTrace")?(Error.captureStackTrace(p,p.constructor),x(p)):(Object.defineProperty(p,"stack",{configurable:!0,enumerable:!1,value:new Error(a).stack,writable:!0}),p)}return function(a,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);a.prototype=Object.create(p&&p.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(a,p):a.__proto__=p)}(S,m),S}(function(m){function S(){m.apply(this,arguments)}return S.prototype=Object.create(m.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(S,m):S.__proto__=m,S}(Error))},8091:W=>{function _(y,x){if(y==null)throw new TypeError("Cannot convert first argument to object");for(var v=Object(y),m=1;m<arguments.length;m++){var S=arguments[m];if(S!=null)for(var a=Object.keys(Object(S)),p=0,c=a.length;p<c;p++){var l=a[p],f=Object.getOwnPropertyDescriptor(S,l);f!==void 0&&f.enumerable&&(v[l]=S[l])}}return v}W.exports={assign:_,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:_})}}},7187:(W,_,y)=>{var x,v=y(5108),m=typeof Reflect=="object"?Reflect:null,S=m&&typeof m.apply=="function"?m.apply:function(M,B,P){return Function.prototype.apply.call(M,B,P)};x=m&&typeof m.ownKeys=="function"?m.ownKeys:Object.getOwnPropertySymbols?function(M){return Object.getOwnPropertyNames(M).concat(Object.getOwnPropertySymbols(M))}:function(M){return Object.getOwnPropertyNames(M)};var a=Number.isNaN||function(M){return M!=M};function p(){p.init.call(this)}W.exports=p,W.exports.once=function(M,B){return new Promise(function(P,N){function $(Q){M.removeListener(B,et),N(Q)}function et(){typeof M.removeListener=="function"&&M.removeListener("error",$),P([].slice.call(arguments))}I(M,B,et,{once:!0}),B!=="error"&&function(Q,ot,t){typeof Q.on=="function"&&I(Q,"error",ot,{once:!0})}(M,$)})},p.EventEmitter=p,p.prototype._events=void 0,p.prototype._eventsCount=0,p.prototype._maxListeners=void 0;var c=10;function l(M){if(typeof M!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof M)}function f(M){return M._maxListeners===void 0?p.defaultMaxListeners:M._maxListeners}function g(M,B,P,N){var $,et,Q,ot;if(l(P),(et=M._events)===void 0?(et=M._events=Object.create(null),M._eventsCount=0):(et.newListener!==void 0&&(M.emit("newListener",B,P.listener?P.listener:P),et=M._events),Q=et[B]),Q===void 0)Q=et[B]=P,++M._eventsCount;else if(typeof Q=="function"?Q=et[B]=N?[P,Q]:[Q,P]:N?Q.unshift(P):Q.push(P),($=f(M))>0&&Q.length>$&&!Q.warned){Q.warned=!0;var t=new Error("Possible EventEmitter memory leak detected. "+Q.length+" "+String(B)+" listeners added. Use emitter.setMaxListeners() to increase limit");t.name="MaxListenersExceededWarning",t.emitter=M,t.type=B,t.count=Q.length,ot=t,v&&v.warn&&v.warn(ot)}return M}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function u(M,B,P){var N={fired:!1,wrapFn:void 0,target:M,type:B,listener:P},$=h.bind(N);return $.listener=P,N.wrapFn=$,$}function w(M,B,P){var N=M._events;if(N===void 0)return[];var $=N[B];return $===void 0?[]:typeof $=="function"?P?[$.listener||$]:[$]:P?function(et){for(var Q=new Array(et.length),ot=0;ot<Q.length;++ot)Q[ot]=et[ot].listener||et[ot];return Q}($):E($,$.length)}function b(M){var B=this._events;if(B!==void 0){var P=B[M];if(typeof P=="function")return 1;if(P!==void 0)return P.length}return 0}function E(M,B){for(var P=new Array(B),N=0;N<B;++N)P[N]=M[N];return P}function I(M,B,P,N){if(typeof M.on=="function")N.once?M.once(B,P):M.on(B,P);else{if(typeof M.addEventListener!="function")throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof M);M.addEventListener(B,function $(et){N.once&&M.removeEventListener(B,$),P(et)})}}Object.defineProperty(p,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(M){if(typeof M!="number"||M<0||a(M))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+M+".");c=M}}),p.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},p.prototype.setMaxListeners=function(M){if(typeof M!="number"||M<0||a(M))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+M+".");return this._maxListeners=M,this},p.prototype.getMaxListeners=function(){return f(this)},p.prototype.emit=function(M){for(var B=[],P=1;P<arguments.length;P++)B.push(arguments[P]);var N=M==="error",$=this._events;if($!==void 0)N=N&&$.error===void 0;else if(!N)return!1;if(N){var et;if(B.length>0&&(et=B[0]),et instanceof Error)throw et;var Q=new Error("Unhandled error."+(et?" ("+et.message+")":""));throw Q.context=et,Q}var ot=$[M];if(ot===void 0)return!1;if(typeof ot=="function")S(ot,this,B);else{var t=ot.length,n=E(ot,t);for(P=0;P<t;++P)S(n[P],this,B)}return!0},p.prototype.addListener=function(M,B){return g(this,M,B,!1)},p.prototype.on=p.prototype.addListener,p.prototype.prependListener=function(M,B){return g(this,M,B,!0)},p.prototype.once=function(M,B){return l(B),this.on(M,u(this,M,B)),this},p.prototype.prependOnceListener=function(M,B){return l(B),this.prependListener(M,u(this,M,B)),this},p.prototype.removeListener=function(M,B){var P,N,$,et,Q;if(l(B),(N=this._events)===void 0)return this;if((P=N[M])===void 0)return this;if(P===B||P.listener===B)--this._eventsCount==0?this._events=Object.create(null):(delete N[M],N.removeListener&&this.emit("removeListener",M,P.listener||B));else if(typeof P!="function"){for($=-1,et=P.length-1;et>=0;et--)if(P[et]===B||P[et].listener===B){Q=P[et].listener,$=et;break}if($<0)return this;$===0?P.shift():function(ot,t){for(;t+1<ot.length;t++)ot[t]=ot[t+1];ot.pop()}(P,$),P.length===1&&(N[M]=P[0]),N.removeListener!==void 0&&this.emit("removeListener",M,Q||B)}return this},p.prototype.off=p.prototype.removeListener,p.prototype.removeAllListeners=function(M){var B,P,N;if((P=this._events)===void 0)return this;if(P.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):P[M]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete P[M]),this;if(arguments.length===0){var $,et=Object.keys(P);for(N=0;N<et.length;++N)($=et[N])!=="removeListener"&&this.removeAllListeners($);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(B=P[M])=="function")this.removeListener(M,B);else if(B!==void 0)for(N=B.length-1;N>=0;N--)this.removeListener(M,B[N]);return this},p.prototype.listeners=function(M){return w(this,M,!0)},p.prototype.rawListeners=function(M){return w(this,M,!1)},p.listenerCount=function(M,B){return typeof M.listenerCount=="function"?M.listenerCount(B):b.call(M,B)},p.prototype.listenerCount=b,p.prototype.eventNames=function(){return this._eventsCount>0?x(this._events):[]}},3048:(W,_,y)=>{var x=y(9509).Buffer,v=y(2318);W.exports=function(m,S,a,p){if(x.isBuffer(m)||(m=x.from(m,"binary")),S&&(x.isBuffer(S)||(S=x.from(S,"binary")),S.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var c=a/8,l=x.alloc(c),f=x.alloc(p||0),g=x.alloc(0);c>0||p>0;){var h=new v;h.update(g),h.update(m),S&&h.update(S),g=h.digest();var u=0;if(c>0){var w=l.length-c;u=Math.min(c,g.length),g.copy(l,w,0,u),c-=u}if(u<g.length&&p>0){var b=f.length-p,E=Math.min(p,g.length-u);g.copy(f,b,u,u+E),p-=E}}return g.fill(0),{key:l,iv:f}}},259:(W,_,y)=>{const x=y(7849).buildOptions,v={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataTagName:!1,cdataPositionChar:"\\c",format:!1,indentBy:" ",supressEmptyNode:!1,tagValueProcessor:function(E){return E},attrValueProcessor:function(E){return E}},m=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","cdataTagName","cdataPositionChar","format","indentBy","supressEmptyNode","tagValueProcessor","attrValueProcessor","rootNodeName"];function S(E){this.options=x(E,v,m),this.options.ignoreAttributes||this.options.attrNodeName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=w),this.options.cdataTagName?this.isCDATA=b:this.isCDATA=function(){return!1},this.replaceCDATAstr=p,this.replaceCDATAarr=c,this.processTextOrObjNode=a,this.options.format?(this.indentate=u,this.tagEndChar=`>
|
|
71
|
+
`,this.newLine=`
|
|
72
|
+
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""),this.options.supressEmptyNode?(this.buildTextNode=h,this.buildObjNode=f):(this.buildTextNode=g,this.buildObjNode=l),this.buildTextValNode=g,this.buildObjectNode=l}function a(E,I,M){const B=this.j2x(E,M+1);return E[this.options.textNodeName]!==void 0&&Object.keys(E).length===1?this.buildTextNode(B.val,I,B.attrStr,M):this.buildObjNode(B.val,I,B.attrStr,M)}function p(E,I){return E=this.options.tagValueProcessor(""+E),this.options.cdataPositionChar===""||E===""?E+"<![CDATA["+I+"]]"+this.tagEndChar:E.replace(this.options.cdataPositionChar,"<![CDATA["+I+"]]"+this.tagEndChar)}function c(E,I){if(E=this.options.tagValueProcessor(""+E),this.options.cdataPositionChar===""||E==="")return E+"<![CDATA["+I.join("]]><![CDATA[")+"]]"+this.tagEndChar;for(let M in I)E=E.replace(this.options.cdataPositionChar,"<![CDATA["+I[M]+"]]>");return E+this.newLine}function l(E,I,M,B){return M&&E.indexOf("<")===-1?this.indentate(B)+"<"+I+M+">"+E+"</"+I+this.tagEndChar:this.indentate(B)+"<"+I+M+this.tagEndChar+E+this.indentate(B)+"</"+I+this.tagEndChar}function f(E,I,M,B){return E!==""?this.buildObjectNode(E,I,M,B):this.indentate(B)+"<"+I+M+"/"+this.tagEndChar}function g(E,I,M,B){return this.indentate(B)+"<"+I+M+">"+this.options.tagValueProcessor(E)+"</"+I+this.tagEndChar}function h(E,I,M,B){return E!==""?this.buildTextValNode(E,I,M,B):this.indentate(B)+"<"+I+M+"/"+this.tagEndChar}function u(E){return this.options.indentBy.repeat(E)}function w(E){return!!E.startsWith(this.options.attributeNamePrefix)&&E.substr(this.attrPrefixLen)}function b(E){return E===this.options.cdataTagName}S.prototype.parse=function(E){return Array.isArray(E)&&this.options.rootNodeName&&this.options.rootNodeName.length>1&&(E={[this.options.rootNodeName]:E}),this.j2x(E,0).val},S.prototype.j2x=function(E,I){let M="",B="";for(let P in E)if(E[P]!==void 0)if(E[P]===null)B+=this.indentate(I)+"<"+P+"/"+this.tagEndChar;else if(E[P]instanceof Date)B+=this.buildTextNode(E[P],P,"",I);else if(typeof E[P]!="object"){const N=this.isAttribute(P);N?M+=" "+N+'="'+this.options.attrValueProcessor(""+E[P])+'"':this.isCDATA(P)?E[this.options.textNodeName]?B+=this.replaceCDATAstr(E[this.options.textNodeName],E[P]):B+=this.replaceCDATAstr("",E[P]):P===this.options.textNodeName?E[this.options.cdataTagName]||(B+=this.options.tagValueProcessor(""+E[P])):B+=this.buildTextNode(E[P],P,"",I)}else if(Array.isArray(E[P]))if(this.isCDATA(P))B+=this.indentate(I),E[this.options.textNodeName]?B+=this.replaceCDATAarr(E[this.options.textNodeName],E[P]):B+=this.replaceCDATAarr("",E[P]);else{const N=E[P].length;for(let $=0;$<N;$++){const et=E[P][$];et===void 0||(B+=et===null?this.indentate(I)+"<"+P+"/"+this.tagEndChar:typeof et=="object"?this.processTextOrObjNode(et,P,I):this.buildTextNode(et,P,"",I))}}else if(this.options.attrNodeName&&P===this.options.attrNodeName){const N=Object.keys(E[P]),$=N.length;for(let et=0;et<$;et++)M+=" "+N[et]+'="'+this.options.attrValueProcessor(""+E[P][N[et]])+'"'}else B+=this.processTextOrObjNode(E[P],P,I);return{attrStr:M,val:B}},W.exports=S},8398:(W,_,y)=>{const x=function(g){return String.fromCharCode(g)},v={nilChar:x(176),missingChar:x(201),nilPremitive:x(175),missingPremitive:x(200),emptyChar:x(178),emptyValue:x(177),boundryChar:x(179),objStart:x(198),arrStart:x(204),arrayEnd:x(185)},m=[v.nilChar,v.nilPremitive,v.missingChar,v.missingPremitive,v.boundryChar,v.emptyChar,v.emptyValue,v.arrayEnd,v.objStart,v.arrStart],S=function(g,h,u){if(typeof h=="string")return g&&g[0]&&g[0].val!==void 0?a(g[0].val):a(g);{const b=(w=g)===void 0?v.missingChar:w===null?v.nilChar:!(w.child&&Object.keys(w.child).length===0&&(!w.attrsMap||Object.keys(w.attrsMap).length===0))||v.emptyChar;if(b===!0){let E="";if(Array.isArray(h)){E+=v.arrStart;const I=h[0],M=g.length;if(typeof I=="string")for(let B=0;B<M;B++){const P=a(g[B].val);E=p(E,P)}else for(let B=0;B<M;B++){const P=S(g[B],I,u);E=p(E,P)}E+=v.arrayEnd}else{E+=v.objStart;const I=Object.keys(h);Array.isArray(g)&&(g=g[0]);for(let M in I){const B=I[M];let P;P=!u.ignoreAttributes&&g.attrsMap&&g.attrsMap[B]?S(g.attrsMap[B],h[B],u):B===u.textNodeName?S(g.val,h[B],u):S(g.child[B],h[B],u),E=p(E,P)}}return E}return b}var w},a=function(g){switch(g){case void 0:return v.missingPremitive;case null:return v.nilPremitive;case"":return v.emptyValue;default:return g}},p=function(g,h){return c(h[0])||c(g[g.length-1])||(g+=v.boundryChar),g+h},c=function(g){return m.indexOf(g)!==-1},l=y(3543),f=y(7849).buildOptions;_.convert2nimn=function(g,h,u){return u=f(u,l.defaultOptions,l.props),S(g,h,u)}},284:(W,_,y)=>{const x=y(7849),v=function(m,S,a){const p={};if(!S.alwaysCreateTextNode&&(!m.child||x.isEmptyObject(m.child))&&(!m.attrsMap||x.isEmptyObject(m.attrsMap)))return x.isExist(m.val)?m.val:"";if(x.isExist(m.val)&&(typeof m.val!="string"||m.val!==""&&m.val!==S.cdataPositionChar)){const l=x.isTagNameInArrayMode(m.tagname,S.arrayMode,a);p[S.textNodeName]=l?[m.val]:m.val}x.merge(p,m.attrsMap,S.arrayMode);const c=Object.keys(m.child);for(let l=0;l<c.length;l++){const f=c[l];if(m.child[f]&&m.child[f].length>1){p[f]=[];for(let g in m.child[f])m.child[f].hasOwnProperty(g)&&p[f].push(v(m.child[f][g],S,f))}else{const g=v(m.child[f][0],S,f),h=S.arrayMode===!0&&typeof g=="object"||x.isTagNameInArrayMode(f,S.arrayMode,a);p[f]=h?[g]:g}}return p};_.convertToJson=v},7702:(W,_,y)=>{const x=y(7849),v=y(7849).buildOptions,m=y(3543),S=function(a,p,c){let l="{";const f=Object.keys(a.child);for(let h=0;h<f.length;h++){const u=f[h];if(a.child[u]&&a.child[u].length>1){l+='"'+u+'" : [ ';for(let w in a.child[u])l+=S(a.child[u][w],p)+" , ";l=l.substr(0,l.length-1)+" ] "}else l+='"'+u+'" : '+S(a.child[u][0],p)+" ,"}return x.merge(l,a.attrsMap),x.isEmptyObject(l)?x.isExist(a.val)?a.val:"":(x.isExist(a.val)&&(typeof a.val!="string"||a.val!==""&&a.val!==p.cdataPositionChar)&&(l+='"'+p.textNodeName+'" : '+((g=a.val)!==!0&&g!==!1&&isNaN(g)?'"'+g+'"':g)),l[l.length-1]===","&&(l=l.substr(0,l.length-2)),l+"}");var g};_.convertToJsonString=function(a,p){return(p=v(p,m.defaultOptions,m.props)).indentBy=p.indentBy||"",S(a,p)}},6965:(W,_,y)=>{y(5108);const x=y(284),v=y(3543),m=y(3543),S=y(7849).buildOptions,a=y(8383);_.parse=function(p,c={},l){if(l){l===!0&&(l={});const h=a.validate(p,l);if(h!==!0)throw Error(h.err.msg)}c.parseTrueNumberOnly&&c.parseNodeValue!==!1&&!c.numParseOptions&&(c.numParseOptions={leadingZeros:!1});let f=S(c,m.defaultOptions,m.props);const g=v.getTraversalObj(p,f);return x.convertToJson(g,f)},_.convertTonimn=y(8398).convert2nimn,_.getTraversalObj=v.getTraversalObj,_.convertToJson=x.convertToJson,_.convertToJsonString=y(7702).convertToJsonString,_.validate=a.validate,_.j2xParser=y(259),_.parseToNimn=function(p,c,l){return _.convertTonimn(_.getTraversalObj(p,l),c,l)}},7849:(W,_)=>{const y=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",x="["+y+"]["+y+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",v=new RegExp("^"+x+"$");_.isExist=function(m){return m!==void 0},_.isEmptyObject=function(m){return Object.keys(m).length===0},_.merge=function(m,S,a){if(S){const p=Object.keys(S),c=p.length;for(let l=0;l<c;l++)m[p[l]]=a==="strict"?[S[p[l]]]:S[p[l]]}},_.getValue=function(m){return _.isExist(m)?m:""},_.buildOptions=function(m,S,a){let p={};if(!m)return S;for(let c=0;c<a.length;c++)m[a[c]]!==void 0?p[a[c]]=m[a[c]]:p[a[c]]=S[a[c]];return p},_.isTagNameInArrayMode=function(m,S,a){return S!==!1&&(S instanceof RegExp?S.test(m):typeof S=="function"?!!S(m,a):S==="strict")},_.isName=function(m){return v.exec(m)!=null},_.getAllMatches=function(m,S){const a=[];let p=S.exec(m);for(;p;){const c=[];c.startIndex=S.lastIndex-p[0].length;const l=p.length;for(let f=0;f<l;f++)c.push(p[f]);a.push(c),p=S.exec(m)}return a},_.nameRegexp=x},8383:(W,_,y)=>{const x=y(7849),v={allowBooleanAttributes:!1},m=["allowBooleanAttributes"];function S(I,M){const B=M;for(;M<I.length;M++)if(!(I[M]!="?"&&I[M]!=" ")){const P=I.substr(B,M-B);if(M>5&&P==="xml")return u("InvalidXml","XML declaration allowed only at the start of the document.",b(I,M));if(I[M]=="?"&&I[M+1]==">"){M++;break}}return M}function a(I,M){if(I.length>M+5&&I[M+1]==="-"&&I[M+2]==="-"){for(M+=3;M<I.length;M++)if(I[M]==="-"&&I[M+1]==="-"&&I[M+2]===">"){M+=2;break}}else if(I.length>M+8&&I[M+1]==="D"&&I[M+2]==="O"&&I[M+3]==="C"&&I[M+4]==="T"&&I[M+5]==="Y"&&I[M+6]==="P"&&I[M+7]==="E"){let B=1;for(M+=8;M<I.length;M++)if(I[M]==="<")B++;else if(I[M]===">"&&(B--,B===0))break}else if(I.length>M+9&&I[M+1]==="["&&I[M+2]==="C"&&I[M+3]==="D"&&I[M+4]==="A"&&I[M+5]==="T"&&I[M+6]==="A"&&I[M+7]==="["){for(M+=8;M<I.length;M++)if(I[M]==="]"&&I[M+1]==="]"&&I[M+2]===">"){M+=2;break}}return M}_.validate=function(I,M){M=x.buildOptions(M,v,m);const B=[];let P=!1,N=!1;I[0]==="\uFEFF"&&(I=I.substr(1));for(let et=0;et<I.length;et++)if(I[et]==="<"&&I[et+1]==="?"){if(et+=2,et=S(I,et),et.err)return et}else{if(I[et]!=="<"){if(I[et]===" "||I[et]===" "||I[et]===`
|
|
73
|
+
`||I[et]==="\r")continue;return u("InvalidChar","char '"+I[et]+"' is not expected.",b(I,et))}{let Q=et;if(et++,I[et]==="!"){et=a(I,et);continue}{let ot=!1;I[et]==="/"&&(ot=!0,et++);let t="";for(;et<I.length&&I[et]!==">"&&I[et]!==" "&&I[et]!==" "&&I[et]!==`
|
|
74
|
+
`&&I[et]!=="\r";et++)t+=I[et];if(t=t.trim(),t[t.length-1]==="/"&&(t=t.substring(0,t.length-1),et--),$=t,!x.isName($)){let i;return i=t.trim().length===0?"Invalid space after '<'.":"Tag '"+t+"' is an invalid name.",u("InvalidTag",i,b(I,et))}const n=l(I,et);if(n===!1)return u("InvalidAttr","Attributes for '"+t+"' have open quote.",b(I,et));let r=n.value;if(et=n.index,r[r.length-1]==="/"){const i=et-r.length;r=r.substring(0,r.length-1);const e=g(r,M);if(e!==!0)return u(e.err.code,e.err.msg,b(I,i+e.err.line));P=!0}else if(ot){if(!n.tagClosed)return u("InvalidTag","Closing tag '"+t+"' doesn't have proper closing.",b(I,et));if(r.trim().length>0)return u("InvalidTag","Closing tag '"+t+"' can't have attributes or invalid starting.",b(I,Q));{const i=B.pop();if(t!==i.tagName){let e=b(I,i.tagStartPos);return u("InvalidTag","Expected closing tag '"+i.tagName+"' (opened in line "+e.line+", col "+e.col+") instead of closing tag '"+t+"'.",b(I,Q))}B.length==0&&(N=!0)}}else{const i=g(r,M);if(i!==!0)return u(i.err.code,i.err.msg,b(I,et-r.length+i.err.line));if(N===!0)return u("InvalidXml","Multiple possible root nodes found.",b(I,et));B.push({tagName:t,tagStartPos:Q}),P=!0}for(et++;et<I.length;et++)if(I[et]==="<"){if(I[et+1]==="!"){et++,et=a(I,et);continue}if(I[et+1]!=="?")break;if(et=S(I,++et),et.err)return et}else if(I[et]==="&"){const i=h(I,et);if(i==-1)return u("InvalidChar","char '&' is not expected.",b(I,et));et=i}I[et]==="<"&&et--}}}var $;return P?B.length==1?u("InvalidTag","Unclosed tag '"+B[0].tagName+"'.",b(I,B[0].tagStartPos)):!(B.length>0)||u("InvalidXml","Invalid '"+JSON.stringify(B.map(et=>et.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):u("InvalidXml","Start tag expected.",1)};const p='"',c="'";function l(I,M){let B="",P="",N=!1;for(;M<I.length;M++){if(I[M]===p||I[M]===c)P===""?P=I[M]:P!==I[M]||(P="");else if(I[M]===">"&&P===""){N=!0;break}B+=I[M]}return P===""&&{value:B,index:M,tagClosed:N}}const f=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function g(I,M){const B=x.getAllMatches(I,f),P={};for(let N=0;N<B.length;N++){if(B[N][1].length===0)return u("InvalidAttr","Attribute '"+B[N][2]+"' has no space in starting.",E(B[N]));if(B[N][3]===void 0&&!M.allowBooleanAttributes)return u("InvalidAttr","boolean attribute '"+B[N][2]+"' is not allowed.",E(B[N]));const $=B[N][2];if(!w($))return u("InvalidAttr","Attribute '"+$+"' is an invalid name.",E(B[N]));if(P.hasOwnProperty($))return u("InvalidAttr","Attribute '"+$+"' is repeated.",E(B[N]));P[$]=1}return!0}function h(I,M){if(I[++M]===";")return-1;if(I[M]==="#")return function(P,N){let $=/\d/;for(P[N]==="x"&&(N++,$=/[\da-fA-F]/);N<P.length;N++){if(P[N]===";")return N;if(!P[N].match($))break}return-1}(I,++M);let B=0;for(;M<I.length;M++,B++)if(!(I[M].match(/\w/)&&B<20)){if(I[M]===";")break;return-1}return M}function u(I,M,B){return{err:{code:I,msg:M,line:B.line||B,col:B.col}}}function w(I){return x.isName(I)}function b(I,M){const B=I.substring(0,M).split(/\r?\n/);return{line:B.length,col:B[B.length-1].length+1}}function E(I){return I.startIndex+I[1].length}},6468:W=>{W.exports=function(_,y,x){this.tagname=_,this.parent=y,this.child={},this.attrsMap={},this.val=x,this.addChild=function(v){Array.isArray(this.child[v.tagname])?this.child[v.tagname].push(v):this.child[v.tagname]=[v]}}},3543:(W,_,y)=>{const x=y(7849),v=y(7849).buildOptions,m=y(6468),S=y(4153);"<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,x.nameRegexp),!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const a={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,ignoreNameSpace:!1,allowBooleanAttributes:!1,parseNodeValue:!0,parseAttributeValue:!1,arrayMode:!1,trimValues:!0,cdataTagName:!1,cdataPositionChar:"\\c",numParseOptions:{hex:!0,leadingZeros:!0},tagValueProcessor:function(b,E){return b},attrValueProcessor:function(b,E){return b},stopNodes:[],alwaysCreateTextNode:!1};_.defaultOptions=a;const p=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","ignoreNameSpace","allowBooleanAttributes","parseNodeValue","parseAttributeValue","arrayMode","trimValues","cdataTagName","cdataPositionChar","tagValueProcessor","attrValueProcessor","parseTrueNumberOnly","numParseOptions","stopNodes","alwaysCreateTextNode"];function c(b,E,I){return E&&(I.trimValues&&(E=E.trim()),E=f(E=I.tagValueProcessor(E,b),I.parseNodeValue,I.numParseOptions)),E}function l(b,E){if(E.ignoreNameSpace){const I=b.split(":"),M=b.charAt(0)==="/"?"/":"";if(I[0]==="xmlns")return"";I.length===2&&(b=M+I[1])}return b}function f(b,E,I){if(E&&typeof b=="string"){const M=b.trim();return M==="true"||M!=="false"&&S(b,I)}return x.isExist(b)?b:""}_.props=p;const g=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])(.*?)\\3)?`,"g");function h(b,E){if(!E.ignoreAttributes&&typeof b=="string"){b=b.replace(/\r?\n/g," ");const I=x.getAllMatches(b,g),M=I.length,B={};for(let P=0;P<M;P++){const N=l(I[P][1],E);N.length&&(I[P][4]!==void 0?(E.trimValues&&(I[P][4]=I[P][4].trim()),I[P][4]=E.attrValueProcessor(I[P][4],N),B[E.attributeNamePrefix+N]=f(I[P][4],E.parseAttributeValue,E.numParseOptions)):E.allowBooleanAttributes&&(B[E.attributeNamePrefix+N]=!0))}if(!Object.keys(B).length)return;if(E.attrNodeName){const P={};return P[E.attrNodeName]=B,P}return B}}function u(b,E){let I,M="";for(let B=E;B<b.length;B++){let P=b[B];if(I)P===I&&(I="");else if(P==='"'||P==="'")I=P;else{if(P===">")return{data:M,index:B};P===" "&&(P=" ")}M+=P}}function w(b,E,I,M){const B=b.indexOf(E,I);if(B===-1)throw new Error(M);return B+E.length-1}_.getTraversalObj=function(b,E){b=b.replace(/\r\n?/g,`
|
|
75
|
+
`),E=v(E,a,p);const I=new m("!xml");let M=I,B="";for(let P=0;P<b.length;P++)if(b[P]==="<")if(b[P+1]==="/"){const N=w(b,">",P,"Closing Tag is not closed.");let $=b.substring(P+2,N).trim();if(E.ignoreNameSpace){const et=$.indexOf(":");et!==-1&&($=$.substr(et+1))}M&&(M.val?M.val=x.getValue(M.val)+""+c($,B,E):M.val=c($,B,E)),E.stopNodes.length&&E.stopNodes.includes(M.tagname)&&(M.child=[],M.attrsMap==null&&(M.attrsMap={}),M.val=b.substr(M.startIndex+1,P-M.startIndex-1)),M=M.parent,B="",P=N}else if(b[P+1]==="?")P=w(b,"?>",P,"Pi Tag is not closed.");else if(b.substr(P+1,3)==="!--")P=w(b,"-->",P,"Comment is not closed.");else if(b.substr(P+1,2)==="!D"){const N=w(b,">",P,"DOCTYPE is not closed.");P=b.substring(P,N).indexOf("[")>=0?b.indexOf("]>",P)+1:N}else if(b.substr(P+1,2)==="!["){const N=w(b,"]]>",P,"CDATA is not closed.")-2,$=b.substring(P+9,N);if(B&&(M.val=x.getValue(M.val)+""+c(M.tagname,B,E),B=""),E.cdataTagName){const et=new m(E.cdataTagName,M,$);M.addChild(et),M.val=x.getValue(M.val)+E.cdataPositionChar,$&&(et.val=$)}else M.val=(M.val||"")+($||"");P=N+2}else{const N=u(b,P+1);let $=N.data;const et=N.index,Q=$.indexOf(" ");let ot=$,t=!0;if(Q!==-1&&(ot=$.substr(0,Q).replace(/\s\s*$/,""),$=$.substr(Q+1)),E.ignoreNameSpace){const n=ot.indexOf(":");n!==-1&&(ot=ot.substr(n+1),t=ot!==N.data.substr(n+1))}if(M&&B&&M.tagname!=="!xml"&&(M.val=x.getValue(M.val)+""+c(M.tagname,B,E)),$.length>0&&$.lastIndexOf("/")===$.length-1){ot[ot.length-1]==="/"?(ot=ot.substr(0,ot.length-1),$=ot):$=$.substr(0,$.length-1);const n=new m(ot,M,"");ot!==$&&(n.attrsMap=h($,E)),M.addChild(n)}else{const n=new m(ot,M);E.stopNodes.length&&E.stopNodes.includes(n.tagname)&&(n.startIndex=et),ot!==$&&t&&(n.attrsMap=h($,E)),M.addChild(n),M=n}B="",P=et}else B+=b[P];return I}},2806:W=>{W.exports=function(_,y){for(var x={},v=Object.keys(_),m=Array.isArray(y),S=0;S<v.length;S++){var a=v[S],p=_[a];(m?y.indexOf(a)!==-1:y(a,p,_))&&(x[a]=p)}return x}},4029:(W,_,y)=>{var x=y(5320),v=Object.prototype.toString,m=Object.prototype.hasOwnProperty,S=function(c,l,f){for(var g=0,h=c.length;g<h;g++)m.call(c,g)&&(f==null?l(c[g],g,c):l.call(f,c[g],g,c))},a=function(c,l,f){for(var g=0,h=c.length;g<h;g++)f==null?l(c.charAt(g),g,c):l.call(f,c.charAt(g),g,c)},p=function(c,l,f){for(var g in c)m.call(c,g)&&(f==null?l(c[g],g,c):l.call(f,c[g],g,c))};W.exports=function(c,l,f){if(!x(l))throw new TypeError("iterator must be a function");var g;arguments.length>=3&&(g=f),v.call(c)==="[object Array]"?S(c,l,g):typeof c=="string"?a(c,l,g):p(c,l,g)}},7648:W=>{var _="Function.prototype.bind called on incompatible ",y=Array.prototype.slice,x=Object.prototype.toString,v="[object Function]";W.exports=function(m){var S=this;if(typeof S!="function"||x.call(S)!==v)throw new TypeError(_+S);for(var a,p=y.call(arguments,1),c=Math.max(0,S.length-p.length),l=[],f=0;f<c;f++)l.push("$"+f);if(a=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof a){var h=S.apply(this,p.concat(y.call(arguments)));return Object(h)===h?h:this}return S.apply(m,p.concat(y.call(arguments)))}),S.prototype){var g=function(){};g.prototype=S.prototype,a.prototype=new g,g.prototype=null}return a}},8612:(W,_,y)=>{var x=y(7648);W.exports=Function.prototype.bind||x},210:(W,_,y)=>{var x,v=SyntaxError,m=Function,S=TypeError,a=function(i){try{return m('"use strict"; return ('+i+").constructor;")()}catch{}},p=Object.getOwnPropertyDescriptor;if(p)try{p({},"")}catch{p=null}var c=function(){throw new S},l=p?function(){try{return c}catch{try{return p(arguments,"callee").get}catch{return c}}}():c,f=y(1405)(),g=Object.getPrototypeOf||function(i){return i.__proto__},h={},u=typeof Uint8Array>"u"?x:g(Uint8Array),w={"%AggregateError%":typeof AggregateError>"u"?x:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?x:ArrayBuffer,"%ArrayIteratorPrototype%":f?g([][Symbol.iterator]()):x,"%AsyncFromSyncIteratorPrototype%":x,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":typeof Atomics>"u"?x:Atomics,"%BigInt%":typeof BigInt>"u"?x:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?x:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?x:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?x:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?x:Float32Array,"%Float64Array%":typeof Float64Array>"u"?x:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?x:FinalizationRegistry,"%Function%":m,"%GeneratorFunction%":h,"%Int8Array%":typeof Int8Array>"u"?x:Int8Array,"%Int16Array%":typeof Int16Array>"u"?x:Int16Array,"%Int32Array%":typeof Int32Array>"u"?x:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?g(g([][Symbol.iterator]())):x,"%JSON%":typeof JSON=="object"?JSON:x,"%Map%":typeof Map>"u"?x:Map,"%MapIteratorPrototype%":typeof Map<"u"&&f?g(new Map()[Symbol.iterator]()):x,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?x:Promise,"%Proxy%":typeof Proxy>"u"?x:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?x:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?x:Set,"%SetIteratorPrototype%":typeof Set<"u"&&f?g(new Set()[Symbol.iterator]()):x,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?x:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?g(""[Symbol.iterator]()):x,"%Symbol%":f?Symbol:x,"%SyntaxError%":v,"%ThrowTypeError%":l,"%TypedArray%":u,"%TypeError%":S,"%Uint8Array%":typeof Uint8Array>"u"?x:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?x:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?x:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?x:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?x:WeakMap,"%WeakRef%":typeof WeakRef>"u"?x:WeakRef,"%WeakSet%":typeof WeakSet>"u"?x:WeakSet};try{null.error}catch(i){var b=g(g(i));w["%Error.prototype%"]=b}var E=function i(e){var o;if(e==="%AsyncFunction%")o=a("async function () {}");else if(e==="%GeneratorFunction%")o=a("function* () {}");else if(e==="%AsyncGeneratorFunction%")o=a("async function* () {}");else if(e==="%AsyncGenerator%"){var s=i("%AsyncGeneratorFunction%");s&&(o=s.prototype)}else if(e==="%AsyncIteratorPrototype%"){var A=i("%AsyncGenerator%");A&&(o=g(A.prototype))}return w[e]=o,o},I={"%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"]},M=y(8612),B=y(7642),P=M.call(Function.call,Array.prototype.concat),N=M.call(Function.apply,Array.prototype.splice),$=M.call(Function.call,String.prototype.replace),et=M.call(Function.call,String.prototype.slice),Q=M.call(Function.call,RegExp.prototype.exec),ot=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,t=/\\(\\)?/g,n=function(i){var e=et(i,0,1),o=et(i,-1);if(e==="%"&&o!=="%")throw new v("invalid intrinsic syntax, expected closing `%`");if(o==="%"&&e!=="%")throw new v("invalid intrinsic syntax, expected opening `%`");var s=[];return $(i,ot,function(A,C,j,T){s[s.length]=j?$(T,t,"$1"):C||A}),s},r=function(i,e){var o,s=i;if(B(I,s)&&(s="%"+(o=I[s])[0]+"%"),B(w,s)){var A=w[s];if(A===h&&(A=E(s)),A===void 0&&!e)throw new S("intrinsic "+i+" exists, but is not available. Please file an issue!");return{alias:o,name:s,value:A}}throw new v("intrinsic "+i+" does not exist!")};W.exports=function(i,e){if(typeof i!="string"||i.length===0)throw new S("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof e!="boolean")throw new S('"allowMissing" argument must be a boolean');if(Q(/^%?[^%]*%?$/,i)===null)throw new v("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=n(i),s=o.length>0?o[0]:"",A=r("%"+s+"%",e),C=A.name,j=A.value,T=!1,R=A.alias;R&&(s=R[0],N(o,P([0,1],R)));for(var q=1,Z=!0;q<o.length;q+=1){var rt=o[q],D=et(rt,0,1),G=et(rt,-1);if((D==='"'||D==="'"||D==="`"||G==='"'||G==="'"||G==="`")&&D!==G)throw new v("property names with quotes must have matching quotes");if(rt!=="constructor"&&Z||(T=!0),B(w,C="%"+(s+="."+rt)+"%"))j=w[C];else if(j!=null){if(!(rt in j)){if(!e)throw new S("base intrinsic for "+i+" exists, but the property is not available.");return}if(p&&q+1>=o.length){var z=p(j,rt);j=(Z=!!z)&&"get"in z&&!("originalValue"in z.get)?z.get:j[rt]}else Z=B(j,rt),j=j[rt];Z&&!T&&(w[C]=j)}}return j}},7296:(W,_,y)=>{var x=y(210)("%Object.getOwnPropertyDescriptor%",!0);if(x)try{x([],"length")}catch{x=null}W.exports=x},1044:(W,_,y)=>{var x=y(210)("%Object.defineProperty%",!0),v=function(){if(x)try{return x({},"a",{value:1}),!0}catch{return!1}return!1};v.hasArrayLengthDefineBug=function(){if(!v())return null;try{return x([],"length",{value:1}).length!==1}catch{return!0}},W.exports=v},1405:(W,_,y)=>{var x=typeof Symbol<"u"&&Symbol,v=y(5419);W.exports=function(){return typeof x=="function"&&typeof Symbol=="function"&&typeof x("foo")=="symbol"&&typeof Symbol("bar")=="symbol"&&v()}},5419:W=>{W.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var _={},y=Symbol("test"),x=Object(y);if(typeof y=="string"||Object.prototype.toString.call(y)!=="[object Symbol]"||Object.prototype.toString.call(x)!=="[object Symbol]")return!1;for(y in _[y]=42,_)return!1;if(typeof Object.keys=="function"&&Object.keys(_).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(_).length!==0)return!1;var v=Object.getOwnPropertySymbols(_);if(v.length!==1||v[0]!==y||!Object.prototype.propertyIsEnumerable.call(_,y))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var m=Object.getOwnPropertyDescriptor(_,y);if(m.value!==42||m.enumerable!==!0)return!1}return!0}},6410:(W,_,y)=>{var x=y(5419);W.exports=function(){return x()&&!!Symbol.toStringTag}},7642:(W,_,y)=>{var x=y(8612);W.exports=x.call(Function.call,Object.prototype.hasOwnProperty)},3349:(W,_,y)=>{var x=y(9509).Buffer,v=y(8473).Transform;function m(S){v.call(this),this._block=x.allocUnsafe(S),this._blockSize=S,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}y(5717)(m,v),m.prototype._transform=function(S,a,p){var c=null;try{this.update(S,a)}catch(l){c=l}p(c)},m.prototype._flush=function(S){var a=null;try{this.push(this.digest())}catch(p){a=p}S(a)},m.prototype.update=function(S,a){if(function(h,u){if(!x.isBuffer(h)&&typeof h!="string")throw new TypeError("Data must be a string or a buffer")}(S),this._finalized)throw new Error("Digest already called");x.isBuffer(S)||(S=x.from(S,a));for(var p=this._block,c=0;this._blockOffset+S.length-c>=this._blockSize;){for(var l=this._blockOffset;l<this._blockSize;)p[l++]=S[c++];this._update(),this._blockOffset=0}for(;c<S.length;)p[this._blockOffset++]=S[c++];for(var f=0,g=8*S.length;g>0;++f)this._length[f]+=g,(g=this._length[f]/4294967296|0)>0&&(this._length[f]-=4294967296*g);return this},m.prototype._update=function(){throw new Error("_update is not implemented")},m.prototype.digest=function(S){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var a=this._digest();S!==void 0&&(a=a.toString(S)),this._block.fill(0),this._blockOffset=0;for(var p=0;p<4;++p)this._length[p]=0;return a},m.prototype._digest=function(){throw new Error("_digest is not implemented")},W.exports=m},3715:(W,_,y)=>{var x=_;x.utils=y(6436),x.common=y(5772),x.sha=y(9041),x.ripemd=y(2949),x.hmac=y(2344),x.sha1=x.sha.sha1,x.sha256=x.sha.sha256,x.sha224=x.sha.sha224,x.sha384=x.sha.sha384,x.sha512=x.sha.sha512,x.ripemd160=x.ripemd.ripemd160},5772:(W,_,y)=>{var x=y(6436),v=y(9746);function m(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}_.BlockHash=m,m.prototype.update=function(S,a){if(S=x.toArray(S,a),this.pending?this.pending=this.pending.concat(S):this.pending=S,this.pendingTotal+=S.length,this.pending.length>=this._delta8){var p=(S=this.pending).length%this._delta8;this.pending=S.slice(S.length-p,S.length),this.pending.length===0&&(this.pending=null),S=x.join32(S,0,S.length-p,this.endian);for(var c=0;c<S.length;c+=this._delta32)this._update(S,c,c+this._delta32)}return this},m.prototype.digest=function(S){return this.update(this._pad()),v(this.pending===null),this._digest(S)},m.prototype._pad=function(){var S=this.pendingTotal,a=this._delta8,p=a-(S+this.padLength)%a,c=new Array(p+this.padLength);c[0]=128;for(var l=1;l<p;l++)c[l]=0;if(S<<=3,this.endian==="big"){for(var f=8;f<this.padLength;f++)c[l++]=0;c[l++]=0,c[l++]=0,c[l++]=0,c[l++]=0,c[l++]=S>>>24&255,c[l++]=S>>>16&255,c[l++]=S>>>8&255,c[l++]=255&S}else for(c[l++]=255&S,c[l++]=S>>>8&255,c[l++]=S>>>16&255,c[l++]=S>>>24&255,c[l++]=0,c[l++]=0,c[l++]=0,c[l++]=0,f=8;f<this.padLength;f++)c[l++]=0;return c}},2344:(W,_,y)=>{var x=y(6436),v=y(9746);function m(S,a,p){if(!(this instanceof m))return new m(S,a,p);this.Hash=S,this.blockSize=S.blockSize/8,this.outSize=S.outSize/8,this.inner=null,this.outer=null,this._init(x.toArray(a,p))}W.exports=m,m.prototype._init=function(S){S.length>this.blockSize&&(S=new this.Hash().update(S).digest()),v(S.length<=this.blockSize);for(var a=S.length;a<this.blockSize;a++)S.push(0);for(a=0;a<S.length;a++)S[a]^=54;for(this.inner=new this.Hash().update(S),a=0;a<S.length;a++)S[a]^=106;this.outer=new this.Hash().update(S)},m.prototype.update=function(S,a){return this.inner.update(S,a),this},m.prototype.digest=function(S){return this.outer.update(this.inner.digest()),this.outer.digest(S)}},2949:(W,_,y)=>{var x=y(6436),v=y(5772),m=x.rotl32,S=x.sum32,a=x.sum32_3,p=x.sum32_4,c=v.BlockHash;function l(){if(!(this instanceof l))return new l;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function f(I,M,B,P){return I<=15?M^B^P:I<=31?M&B|~M&P:I<=47?(M|~B)^P:I<=63?M&P|B&~P:M^(B|~P)}function g(I){return I<=15?0:I<=31?1518500249:I<=47?1859775393:I<=63?2400959708:2840853838}function h(I){return I<=15?1352829926:I<=31?1548603684:I<=47?1836072691:I<=63?2053994217:0}x.inherits(l,c),_.ripemd160=l,l.blockSize=512,l.outSize=160,l.hmacStrength=192,l.padLength=64,l.prototype._update=function(I,M){for(var B=this.h[0],P=this.h[1],N=this.h[2],$=this.h[3],et=this.h[4],Q=B,ot=P,t=N,n=$,r=et,i=0;i<80;i++){var e=S(m(p(B,f(i,P,N,$),I[u[i]+M],g(i)),b[i]),et);B=et,et=$,$=m(N,10),N=P,P=e,e=S(m(p(Q,f(79-i,ot,t,n),I[w[i]+M],h(i)),E[i]),r),Q=r,r=n,n=m(t,10),t=ot,ot=e}e=a(this.h[1],N,n),this.h[1]=a(this.h[2],$,r),this.h[2]=a(this.h[3],et,Q),this.h[3]=a(this.h[4],B,ot),this.h[4]=a(this.h[0],P,t),this.h[0]=e},l.prototype._digest=function(I){return I==="hex"?x.toHex32(this.h,"little"):x.split32(this.h,"little")};var u=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],w=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],b=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],E=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},9041:(W,_,y)=>{_.sha1=y(4761),_.sha224=y(799),_.sha256=y(9344),_.sha384=y(772),_.sha512=y(5900)},4761:(W,_,y)=>{var x=y(6436),v=y(5772),m=y(7038),S=x.rotl32,a=x.sum32,p=x.sum32_5,c=m.ft_1,l=v.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];function g(){if(!(this instanceof g))return new g;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}x.inherits(g,l),W.exports=g,g.blockSize=512,g.outSize=160,g.hmacStrength=80,g.padLength=64,g.prototype._update=function(h,u){for(var w=this.W,b=0;b<16;b++)w[b]=h[u+b];for(;b<w.length;b++)w[b]=S(w[b-3]^w[b-8]^w[b-14]^w[b-16],1);var E=this.h[0],I=this.h[1],M=this.h[2],B=this.h[3],P=this.h[4];for(b=0;b<w.length;b++){var N=~~(b/20),$=p(S(E,5),c(N,I,M,B),P,w[b],f[N]);P=B,B=M,M=S(I,30),I=E,E=$}this.h[0]=a(this.h[0],E),this.h[1]=a(this.h[1],I),this.h[2]=a(this.h[2],M),this.h[3]=a(this.h[3],B),this.h[4]=a(this.h[4],P)},g.prototype._digest=function(h){return h==="hex"?x.toHex32(this.h,"big"):x.split32(this.h,"big")}},799:(W,_,y)=>{var x=y(6436),v=y(9344);function m(){if(!(this instanceof m))return new m;v.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}x.inherits(m,v),W.exports=m,m.blockSize=512,m.outSize=224,m.hmacStrength=192,m.padLength=64,m.prototype._digest=function(S){return S==="hex"?x.toHex32(this.h.slice(0,7),"big"):x.split32(this.h.slice(0,7),"big")}},9344:(W,_,y)=>{var x=y(6436),v=y(5772),m=y(7038),S=y(9746),a=x.sum32,p=x.sum32_4,c=x.sum32_5,l=m.ch32,f=m.maj32,g=m.s0_256,h=m.s1_256,u=m.g0_256,w=m.g1_256,b=v.BlockHash,E=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function I(){if(!(this instanceof I))return new I;b.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=E,this.W=new Array(64)}x.inherits(I,b),W.exports=I,I.blockSize=512,I.outSize=256,I.hmacStrength=192,I.padLength=64,I.prototype._update=function(M,B){for(var P=this.W,N=0;N<16;N++)P[N]=M[B+N];for(;N<P.length;N++)P[N]=p(w(P[N-2]),P[N-7],u(P[N-15]),P[N-16]);var $=this.h[0],et=this.h[1],Q=this.h[2],ot=this.h[3],t=this.h[4],n=this.h[5],r=this.h[6],i=this.h[7];for(S(this.k.length===P.length),N=0;N<P.length;N++){var e=c(i,h(t),l(t,n,r),this.k[N],P[N]),o=a(g($),f($,et,Q));i=r,r=n,n=t,t=a(ot,e),ot=Q,Q=et,et=$,$=a(e,o)}this.h[0]=a(this.h[0],$),this.h[1]=a(this.h[1],et),this.h[2]=a(this.h[2],Q),this.h[3]=a(this.h[3],ot),this.h[4]=a(this.h[4],t),this.h[5]=a(this.h[5],n),this.h[6]=a(this.h[6],r),this.h[7]=a(this.h[7],i)},I.prototype._digest=function(M){return M==="hex"?x.toHex32(this.h,"big"):x.split32(this.h,"big")}},772:(W,_,y)=>{var x=y(6436),v=y(5900);function m(){if(!(this instanceof m))return new m;v.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}x.inherits(m,v),W.exports=m,m.blockSize=1024,m.outSize=384,m.hmacStrength=192,m.padLength=128,m.prototype._digest=function(S){return S==="hex"?x.toHex32(this.h.slice(0,12),"big"):x.split32(this.h.slice(0,12),"big")}},5900:(W,_,y)=>{var x=y(6436),v=y(5772),m=y(9746),S=x.rotr64_hi,a=x.rotr64_lo,p=x.shr64_hi,c=x.shr64_lo,l=x.sum64,f=x.sum64_hi,g=x.sum64_lo,h=x.sum64_4_hi,u=x.sum64_4_lo,w=x.sum64_5_hi,b=x.sum64_5_lo,E=v.BlockHash,I=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function M(){if(!(this instanceof M))return new M;E.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=I,this.W=new Array(160)}function B(i,e,o,s,A){var C=i&o^~i&A;return C<0&&(C+=4294967296),C}function P(i,e,o,s,A,C){var j=e&s^~e&C;return j<0&&(j+=4294967296),j}function N(i,e,o,s,A){var C=i&o^i&A^o&A;return C<0&&(C+=4294967296),C}function $(i,e,o,s,A,C){var j=e&s^e&C^s&C;return j<0&&(j+=4294967296),j}function et(i,e){var o=S(i,e,28)^S(e,i,2)^S(e,i,7);return o<0&&(o+=4294967296),o}function Q(i,e){var o=a(i,e,28)^a(e,i,2)^a(e,i,7);return o<0&&(o+=4294967296),o}function ot(i,e){var o=a(i,e,14)^a(i,e,18)^a(e,i,9);return o<0&&(o+=4294967296),o}function t(i,e){var o=S(i,e,1)^S(i,e,8)^p(i,e,7);return o<0&&(o+=4294967296),o}function n(i,e){var o=a(i,e,1)^a(i,e,8)^c(i,e,7);return o<0&&(o+=4294967296),o}function r(i,e){var o=a(i,e,19)^a(e,i,29)^c(i,e,6);return o<0&&(o+=4294967296),o}x.inherits(M,E),W.exports=M,M.blockSize=1024,M.outSize=512,M.hmacStrength=192,M.padLength=128,M.prototype._prepareBlock=function(i,e){for(var o=this.W,s=0;s<32;s++)o[s]=i[e+s];for(;s<o.length;s+=2){var A=(D=o[s-4],G=o[s-3],z=void 0,(z=S(D,G,19)^S(G,D,29)^p(D,G,6))<0&&(z+=4294967296),z),C=r(o[s-4],o[s-3]),j=o[s-14],T=o[s-13],R=t(o[s-30],o[s-29]),q=n(o[s-30],o[s-29]),Z=o[s-32],rt=o[s-31];o[s]=h(A,C,j,T,R,q,Z,rt),o[s+1]=u(A,C,j,T,R,q,Z,rt)}var D,G,z},M.prototype._update=function(i,e){this._prepareBlock(i,e);var o,s,A,C=this.W,j=this.h[0],T=this.h[1],R=this.h[2],q=this.h[3],Z=this.h[4],rt=this.h[5],D=this.h[6],G=this.h[7],z=this.h[8],X=this.h[9],st=this.h[10],nt=this.h[11],ht=this.h[12],Et=this.h[13],gt=this.h[14],bt=this.h[15];m(this.k.length===C.length);for(var Bt=0;Bt<C.length;Bt+=2){var Mt=gt,It=bt,J=(A=void 0,(A=S(o=z,s=X,14)^S(o,s,18)^S(s,o,9))<0&&(A+=4294967296),A),tt=ot(z,X),F=B(z,0,st,0,ht),H=P(0,X,0,nt,0,Et),U=this.k[Bt],it=this.k[Bt+1],pt=C[Bt],ft=C[Bt+1],mt=w(Mt,It,J,tt,F,H,U,it,pt,ft),re=b(Mt,It,J,tt,F,H,U,it,pt,ft);Mt=et(j,T),It=Q(j,T),J=N(j,0,R,0,Z),tt=$(0,T,0,q,0,rt);var _t=f(Mt,It,J,tt),At=g(Mt,It,J,tt);gt=ht,bt=Et,ht=st,Et=nt,st=z,nt=X,z=f(D,G,mt,re),X=g(G,G,mt,re),D=Z,G=rt,Z=R,rt=q,R=j,q=T,j=f(mt,re,_t,At),T=g(mt,re,_t,At)}l(this.h,0,j,T),l(this.h,2,R,q),l(this.h,4,Z,rt),l(this.h,6,D,G),l(this.h,8,z,X),l(this.h,10,st,nt),l(this.h,12,ht,Et),l(this.h,14,gt,bt)},M.prototype._digest=function(i){return i==="hex"?x.toHex32(this.h,"big"):x.split32(this.h,"big")}},7038:(W,_,y)=>{var x=y(6436).rotr32;function v(a,p,c){return a&p^~a&c}function m(a,p,c){return a&p^a&c^p&c}function S(a,p,c){return a^p^c}_.ft_1=function(a,p,c,l){return a===0?v(p,c,l):a===1||a===3?S(p,c,l):a===2?m(p,c,l):void 0},_.ch32=v,_.maj32=m,_.p32=S,_.s0_256=function(a){return x(a,2)^x(a,13)^x(a,22)},_.s1_256=function(a){return x(a,6)^x(a,11)^x(a,25)},_.g0_256=function(a){return x(a,7)^x(a,18)^a>>>3},_.g1_256=function(a){return x(a,17)^x(a,19)^a>>>10}},6436:(W,_,y)=>{var x=y(9746),v=y(5717);function m(c,l){return(64512&c.charCodeAt(l))==55296&&!(l<0||l+1>=c.length)&&(64512&c.charCodeAt(l+1))==56320}function S(c){return(c>>>24|c>>>8&65280|c<<8&16711680|(255&c)<<24)>>>0}function a(c){return c.length===1?"0"+c:c}function p(c){return c.length===7?"0"+c:c.length===6?"00"+c:c.length===5?"000"+c:c.length===4?"0000"+c:c.length===3?"00000"+c:c.length===2?"000000"+c:c.length===1?"0000000"+c:c}_.inherits=v,_.toArray=function(c,l){if(Array.isArray(c))return c.slice();if(!c)return[];var f=[];if(typeof c=="string")if(l){if(l==="hex")for((c=c.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(c="0"+c),h=0;h<c.length;h+=2)f.push(parseInt(c[h]+c[h+1],16))}else for(var g=0,h=0;h<c.length;h++){var u=c.charCodeAt(h);u<128?f[g++]=u:u<2048?(f[g++]=u>>6|192,f[g++]=63&u|128):m(c,h)?(u=65536+((1023&u)<<10)+(1023&c.charCodeAt(++h)),f[g++]=u>>18|240,f[g++]=u>>12&63|128,f[g++]=u>>6&63|128,f[g++]=63&u|128):(f[g++]=u>>12|224,f[g++]=u>>6&63|128,f[g++]=63&u|128)}else for(h=0;h<c.length;h++)f[h]=0|c[h];return f},_.toHex=function(c){for(var l="",f=0;f<c.length;f++)l+=a(c[f].toString(16));return l},_.htonl=S,_.toHex32=function(c,l){for(var f="",g=0;g<c.length;g++){var h=c[g];l==="little"&&(h=S(h)),f+=p(h.toString(16))}return f},_.zero2=a,_.zero8=p,_.join32=function(c,l,f,g){var h=f-l;x(h%4==0);for(var u=new Array(h/4),w=0,b=l;w<u.length;w++,b+=4){var E;E=g==="big"?c[b]<<24|c[b+1]<<16|c[b+2]<<8|c[b+3]:c[b+3]<<24|c[b+2]<<16|c[b+1]<<8|c[b],u[w]=E>>>0}return u},_.split32=function(c,l){for(var f=new Array(4*c.length),g=0,h=0;g<c.length;g++,h+=4){var u=c[g];l==="big"?(f[h]=u>>>24,f[h+1]=u>>>16&255,f[h+2]=u>>>8&255,f[h+3]=255&u):(f[h+3]=u>>>24,f[h+2]=u>>>16&255,f[h+1]=u>>>8&255,f[h]=255&u)}return f},_.rotr32=function(c,l){return c>>>l|c<<32-l},_.rotl32=function(c,l){return c<<l|c>>>32-l},_.sum32=function(c,l){return c+l>>>0},_.sum32_3=function(c,l,f){return c+l+f>>>0},_.sum32_4=function(c,l,f,g){return c+l+f+g>>>0},_.sum32_5=function(c,l,f,g,h){return c+l+f+g+h>>>0},_.sum64=function(c,l,f,g){var h=c[l],u=g+c[l+1]>>>0,w=(u<g?1:0)+f+h;c[l]=w>>>0,c[l+1]=u},_.sum64_hi=function(c,l,f,g){return(l+g>>>0<l?1:0)+c+f>>>0},_.sum64_lo=function(c,l,f,g){return l+g>>>0},_.sum64_4_hi=function(c,l,f,g,h,u,w,b){var E=0,I=l;return E+=(I=I+g>>>0)<l?1:0,E+=(I=I+u>>>0)<u?1:0,c+f+h+w+(E+=(I=I+b>>>0)<b?1:0)>>>0},_.sum64_4_lo=function(c,l,f,g,h,u,w,b){return l+g+u+b>>>0},_.sum64_5_hi=function(c,l,f,g,h,u,w,b,E,I){var M=0,B=l;return M+=(B=B+g>>>0)<l?1:0,M+=(B=B+u>>>0)<u?1:0,M+=(B=B+b>>>0)<b?1:0,c+f+h+w+E+(M+=(B=B+I>>>0)<I?1:0)>>>0},_.sum64_5_lo=function(c,l,f,g,h,u,w,b,E,I){return l+g+u+b+I>>>0},_.rotr64_hi=function(c,l,f){return(l<<32-f|c>>>f)>>>0},_.rotr64_lo=function(c,l,f){return(c<<32-f|l>>>f)>>>0},_.shr64_hi=function(c,l,f){return c>>>f},_.shr64_lo=function(c,l,f){return(c<<32-f|l>>>f)>>>0}},2156:(W,_,y)=>{var x=y(3715),v=y(4504),m=y(9746);function S(a){if(!(this instanceof S))return new S(a);this.hash=a.hash,this.predResist=!!a.predResist,this.outLen=this.hash.outSize,this.minEntropy=a.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var p=v.toArray(a.entropy,a.entropyEnc||"hex"),c=v.toArray(a.nonce,a.nonceEnc||"hex"),l=v.toArray(a.pers,a.persEnc||"hex");m(p.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(p,c,l)}W.exports=S,S.prototype._init=function(a,p,c){var l=a.concat(p).concat(c);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var f=0;f<this.V.length;f++)this.K[f]=0,this.V[f]=1;this._update(l),this._reseed=1,this.reseedInterval=281474976710656},S.prototype._hmac=function(){return new x.hmac(this.hash,this.K)},S.prototype._update=function(a){var p=this._hmac().update(this.V).update([0]);a&&(p=p.update(a)),this.K=p.digest(),this.V=this._hmac().update(this.V).digest(),a&&(this.K=this._hmac().update(this.V).update([1]).update(a).digest(),this.V=this._hmac().update(this.V).digest())},S.prototype.reseed=function(a,p,c,l){typeof p!="string"&&(l=c,c=p,p=null),a=v.toArray(a,p),c=v.toArray(c,l),m(a.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(a.concat(c||[])),this._reseed=1},S.prototype.generate=function(a,p,c,l){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof p!="string"&&(l=c,c=p,p=null),c&&(c=v.toArray(c,l||"hex"),this._update(c));for(var f=[];f.length<a;)this.V=this._hmac().update(this.V).digest(),f=f.concat(this.V);var g=f.slice(0,a);return this._update(c),this._reseed++,v.encode(g,p)}},9267:(W,_,y)=>{var x=y(8501),v=y(8575),m=W.exports;for(var S in x)x.hasOwnProperty(S)&&(m[S]=x[S]);function a(p){if(typeof p=="string"&&(p=v.parse(p)),p.protocol||(p.protocol="https:"),p.protocol!=="https:")throw new Error('Protocol "'+p.protocol+'" not supported. Expected "https:"');return p}m.request=function(p,c){return p=a(p),x.request.call(this,p,c)},m.get=function(p,c){return p=a(p),x.get.call(this,p,c)}},645:(W,_)=>{_.read=function(y,x,v,m,S){var a,p,c=8*S-m-1,l=(1<<c)-1,f=l>>1,g=-7,h=v?S-1:0,u=v?-1:1,w=y[x+h];for(h+=u,a=w&(1<<-g)-1,w>>=-g,g+=c;g>0;a=256*a+y[x+h],h+=u,g-=8);for(p=a&(1<<-g)-1,a>>=-g,g+=m;g>0;p=256*p+y[x+h],h+=u,g-=8);if(a===0)a=1-f;else{if(a===l)return p?NaN:1/0*(w?-1:1);p+=Math.pow(2,m),a-=f}return(w?-1:1)*p*Math.pow(2,a-m)},_.write=function(y,x,v,m,S,a){var p,c,l,f=8*a-S-1,g=(1<<f)-1,h=g>>1,u=S===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=m?0:a-1,b=m?1:-1,E=x<0||x===0&&1/x<0?1:0;for(x=Math.abs(x),isNaN(x)||x===1/0?(c=isNaN(x)?1:0,p=g):(p=Math.floor(Math.log(x)/Math.LN2),x*(l=Math.pow(2,-p))<1&&(p--,l*=2),(x+=p+h>=1?u/l:u*Math.pow(2,1-h))*l>=2&&(p++,l/=2),p+h>=g?(c=0,p=g):p+h>=1?(c=(x*l-1)*Math.pow(2,S),p+=h):(c=x*Math.pow(2,h-1)*Math.pow(2,S),p=0));S>=8;y[v+w]=255&c,w+=b,c/=256,S-=8);for(p=p<<S|c,f+=S;f>0;y[v+w]=255&p,w+=b,p/=256,f-=8);y[v+w-b]|=128*E}},5717:W=>{typeof Object.create=="function"?W.exports=function(_,y){y&&(_.super_=y,_.prototype=Object.create(y.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}))}:W.exports=function(_,y){if(y){_.super_=y;var x=function(){};x.prototype=y.prototype,_.prototype=new x,_.prototype.constructor=_}}},6512:function(W){(function(_){const y="(0?\\d+|0x[a-f0-9]+)",x={fourOctet:new RegExp(`^${y}\\.${y}\\.${y}\\.${y}$`,"i"),threeOctet:new RegExp(`^${y}\\.${y}\\.${y}$`,"i"),twoOctet:new RegExp(`^${y}\\.${y}$`,"i"),longValue:new RegExp(`^${y}$`,"i")},v=new RegExp("^0[0-7]+$","i"),m=new RegExp("^0x[a-f0-9]+$","i"),S="%[0-9a-z]{1,}",a="(?:[0-9a-f]+::?)+",p={zoneIndex:new RegExp(S,"i"),native:new RegExp(`^(::)?(${a})?([0-9a-f]+)?(::)?(${S})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${y}\\.${y}\\.${y}\\.${y}(${S})?)$`,"i"),transitional:new RegExp(`^((?:${a})|(?:::)(?:${a})?)${y}\\.${y}\\.${y}\\.${y}(${S})?$`,"i")};function c(u,w){if(u.indexOf("::")!==u.lastIndexOf("::"))return null;let b,E,I=0,M=-1,B=(u.match(p.zoneIndex)||[])[0];for(B&&(B=B.substring(1),u=u.replace(/%.+$/,""));(M=u.indexOf(":",M+1))>=0;)I++;if(u.substr(0,2)==="::"&&I--,u.substr(-2,2)==="::"&&I--,I>w)return null;for(E=w-I,b=":";E--;)b+="0:";return(u=u.replace("::",b))[0]===":"&&(u=u.slice(1)),u[u.length-1]===":"&&(u=u.slice(0,-1)),{parts:w=function(){const P=u.split(":"),N=[];for(let $=0;$<P.length;$++)N.push(parseInt(P[$],16));return N}(),zoneId:B}}function l(u,w,b,E){if(u.length!==w.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let I,M=0;for(;E>0;){if(I=b-E,I<0&&(I=0),u[M]>>I!=w[M]>>I)return!1;E-=b,M+=1}return!0}function f(u){if(m.test(u))return parseInt(u,16);if(u[0]==="0"&&!isNaN(parseInt(u[1],10))){if(v.test(u))return parseInt(u,8);throw new Error(`ipaddr: cannot parse ${u} as octal`)}return parseInt(u,10)}function g(u,w){for(;u.length<w;)u=`0${u}`;return u}const h={};h.IPv4=function(){function u(w){if(w.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let b,E;for(b=0;b<w.length;b++)if(E=w[b],!(0<=E&&E<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=w}return u.prototype.SpecialRanges={unspecified:[[new u([0,0,0,0]),8]],broadcast:[[new u([255,255,255,255]),32]],multicast:[[new u([224,0,0,0]),4]],linkLocal:[[new u([169,254,0,0]),16]],loopback:[[new u([127,0,0,0]),8]],carrierGradeNat:[[new u([100,64,0,0]),10]],private:[[new u([10,0,0,0]),8],[new u([172,16,0,0]),12],[new u([192,168,0,0]),16]],reserved:[[new u([192,0,0,0]),24],[new u([192,0,2,0]),24],[new u([192,88,99,0]),24],[new u([198,51,100,0]),24],[new u([203,0,113,0]),24],[new u([240,0,0,0]),4]]},u.prototype.kind=function(){return"ipv4"},u.prototype.match=function(w,b){let E;if(b===void 0&&(E=w,w=E[0],b=E[1]),w.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return l(this.octets,w.octets,8,b)},u.prototype.prefixLengthFromSubnetMask=function(){let w=0,b=!1;const E={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0};let I,M,B;for(I=3;I>=0;I-=1){if(M=this.octets[I],!(M in E)||(B=E[M],b&&B!==0))return null;B!==8&&(b=!0),w+=B}return 32-w},u.prototype.range=function(){return h.subnetMatch(this,this.SpecialRanges)},u.prototype.toByteArray=function(){return this.octets.slice(0)},u.prototype.toIPv4MappedAddress=function(){return h.IPv6.parse(`::ffff:${this.toString()}`)},u.prototype.toNormalizedString=function(){return this.toString()},u.prototype.toString=function(){return this.octets.join(".")},u}(),h.IPv4.broadcastAddressFromCIDR=function(u){try{const w=this.parseCIDR(u),b=w[0].toByteArray(),E=this.subnetMaskFromPrefixLength(w[1]).toByteArray(),I=[];let M=0;for(;M<4;)I.push(parseInt(b[M],10)|255^parseInt(E[M],10)),M++;return new this(I)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},h.IPv4.isIPv4=function(u){return this.parser(u)!==null},h.IPv4.isValid=function(u){try{return new this(this.parser(u)),!0}catch{return!1}},h.IPv4.isValidFourPartDecimal=function(u){return!(!h.IPv4.isValid(u)||!u.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},h.IPv4.networkAddressFromCIDR=function(u){let w,b,E,I,M;try{for(w=this.parseCIDR(u),E=w[0].toByteArray(),M=this.subnetMaskFromPrefixLength(w[1]).toByteArray(),I=[],b=0;b<4;)I.push(parseInt(E[b],10)&parseInt(M[b],10)),b++;return new this(I)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},h.IPv4.parse=function(u){const w=this.parser(u);if(w===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(w)},h.IPv4.parseCIDR=function(u){let w;if(w=u.match(/^(.+)\/(\d+)$/)){const b=parseInt(w[2]);if(b>=0&&b<=32){const E=[this.parse(w[1]),b];return Object.defineProperty(E,"toString",{value:function(){return this.join("/")}}),E}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},h.IPv4.parser=function(u){let w,b,E;if(w=u.match(x.fourOctet))return function(){const I=w.slice(1,6),M=[];for(let B=0;B<I.length;B++)b=I[B],M.push(f(b));return M}();if(w=u.match(x.longValue)){if(E=f(w[1]),E>4294967295||E<0)throw new Error("ipaddr: address outside defined range");return function(){const I=[];let M;for(M=0;M<=24;M+=8)I.push(E>>M&255);return I}().reverse()}return(w=u.match(x.twoOctet))?function(){const I=w.slice(1,4),M=[];if(E=f(I[1]),E>16777215||E<0)throw new Error("ipaddr: address outside defined range");return M.push(f(I[0])),M.push(E>>16&255),M.push(E>>8&255),M.push(255&E),M}():(w=u.match(x.threeOctet))?function(){const I=w.slice(1,5),M=[];if(E=f(I[2]),E>65535||E<0)throw new Error("ipaddr: address outside defined range");return M.push(f(I[0])),M.push(f(I[1])),M.push(E>>8&255),M.push(255&E),M}():null},h.IPv4.subnetMaskFromPrefixLength=function(u){if((u=parseInt(u))<0||u>32)throw new Error("ipaddr: invalid IPv4 prefix length");const w=[0,0,0,0];let b=0;const E=Math.floor(u/8);for(;b<E;)w[b]=255,b++;return E<4&&(w[E]=Math.pow(2,u%8)-1<<8-u%8),new this(w)},h.IPv6=function(){function u(w,b){let E,I;if(w.length===16)for(this.parts=[],E=0;E<=14;E+=2)this.parts.push(w[E]<<8|w[E+1]);else{if(w.length!==8)throw new Error("ipaddr: ipv6 part count should be 8 or 16");this.parts=w}for(E=0;E<this.parts.length;E++)if(I=this.parts[E],!(0<=I&&I<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");b&&(this.zoneId=b)}return u.prototype.SpecialRanges={unspecified:[new u([0,0,0,0,0,0,0,0]),128],linkLocal:[new u([65152,0,0,0,0,0,0,0]),10],multicast:[new u([65280,0,0,0,0,0,0,0]),8],loopback:[new u([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new u([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new u([0,0,0,0,0,65535,0,0]),96],rfc6145:[new u([0,0,0,0,65535,0,0,0]),96],rfc6052:[new u([100,65435,0,0,0,0,0,0]),96],"6to4":[new u([8194,0,0,0,0,0,0,0]),16],teredo:[new u([8193,0,0,0,0,0,0,0]),32],reserved:[[new u([8193,3512,0,0,0,0,0,0]),32]]},u.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},u.prototype.kind=function(){return"ipv6"},u.prototype.match=function(w,b){let E;if(b===void 0&&(E=w,w=E[0],b=E[1]),w.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return l(this.parts,w.parts,16,b)},u.prototype.prefixLengthFromSubnetMask=function(){let w=0,b=!1;const E={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0};let I,M;for(let B=7;B>=0;B-=1){if(I=this.parts[B],!(I in E)||(M=E[I],b&&M!==0))return null;M!==16&&(b=!0),w+=M}return 128-w},u.prototype.range=function(){return h.subnetMatch(this,this.SpecialRanges)},u.prototype.toByteArray=function(){let w;const b=[],E=this.parts;for(let I=0;I<E.length;I++)w=E[I],b.push(w>>8),b.push(255&w);return b},u.prototype.toFixedLengthString=function(){const w=(function(){const E=[];for(let I=0;I<this.parts.length;I++)E.push(g(this.parts[I].toString(16),4));return E}).call(this).join(":");let b="";return this.zoneId&&(b=`%${this.zoneId}`),w+b},u.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");const w=this.parts.slice(-2),b=w[0],E=w[1];return new h.IPv4([b>>8,255&b,E>>8,255&E])},u.prototype.toNormalizedString=function(){const w=(function(){const E=[];for(let I=0;I<this.parts.length;I++)E.push(this.parts[I].toString(16));return E}).call(this).join(":");let b="";return this.zoneId&&(b=`%${this.zoneId}`),w+b},u.prototype.toRFC5952String=function(){const w=/((^|:)(0(:|$)){2,})/g,b=this.toNormalizedString();let E,I=0,M=-1;for(;E=w.exec(b);)E[0].length>M&&(I=E.index,M=E[0].length);return M<0?b:`${b.substring(0,I)}::${b.substring(I+M)}`},u.prototype.toString=function(){return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/,"::")},u}(),h.IPv6.broadcastAddressFromCIDR=function(u){try{const w=this.parseCIDR(u),b=w[0].toByteArray(),E=this.subnetMaskFromPrefixLength(w[1]).toByteArray(),I=[];let M=0;for(;M<16;)I.push(parseInt(b[M],10)|255^parseInt(E[M],10)),M++;return new this(I)}catch(w){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${w})`)}},h.IPv6.isIPv6=function(u){return this.parser(u)!==null},h.IPv6.isValid=function(u){if(typeof u=="string"&&u.indexOf(":")===-1)return!1;try{const w=this.parser(u);return new this(w.parts,w.zoneId),!0}catch{return!1}},h.IPv6.networkAddressFromCIDR=function(u){let w,b,E,I,M;try{for(w=this.parseCIDR(u),E=w[0].toByteArray(),M=this.subnetMaskFromPrefixLength(w[1]).toByteArray(),I=[],b=0;b<16;)I.push(parseInt(E[b],10)&parseInt(M[b],10)),b++;return new this(I)}catch(B){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${B})`)}},h.IPv6.parse=function(u){const w=this.parser(u);if(w.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(w.parts,w.zoneId)},h.IPv6.parseCIDR=function(u){let w,b,E;if((b=u.match(/^(.+)\/(\d+)$/))&&(w=parseInt(b[2]),w>=0&&w<=128))return E=[this.parse(b[1]),w],Object.defineProperty(E,"toString",{value:function(){return this.join("/")}}),E;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},h.IPv6.parser=function(u){let w,b,E,I,M,B;if(E=u.match(p.deprecatedTransitional))return this.parser(`::ffff:${E[1]}`);if(p.native.test(u))return c(u,8);if((E=u.match(p.transitional))&&(B=E[6]||"",w=c(E[1].slice(0,-1)+B,6),w.parts)){for(M=[parseInt(E[2]),parseInt(E[3]),parseInt(E[4]),parseInt(E[5])],b=0;b<M.length;b++)if(I=M[b],!(0<=I&&I<=255))return null;return w.parts.push(M[0]<<8|M[1]),w.parts.push(M[2]<<8|M[3]),{parts:w.parts,zoneId:w.zoneId}}return null},h.IPv6.subnetMaskFromPrefixLength=function(u){if((u=parseInt(u))<0||u>128)throw new Error("ipaddr: invalid IPv6 prefix length");const w=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];let b=0;const E=Math.floor(u/8);for(;b<E;)w[b]=255,b++;return E<16&&(w[E]=Math.pow(2,u%8)-1<<8-u%8),new this(w)},h.fromByteArray=function(u){const w=u.length;if(w===4)return new h.IPv4(u);if(w===16)return new h.IPv6(u);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},h.isValid=function(u){return h.IPv6.isValid(u)||h.IPv4.isValid(u)},h.parse=function(u){if(h.IPv6.isValid(u))return h.IPv6.parse(u);if(h.IPv4.isValid(u))return h.IPv4.parse(u);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},h.parseCIDR=function(u){try{return h.IPv6.parseCIDR(u)}catch{try{return h.IPv4.parseCIDR(u)}catch{throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},h.process=function(u){const w=this.parse(u);return w.kind()==="ipv6"&&w.isIPv4MappedAddress()?w.toIPv4Address():w},h.subnetMatch=function(u,w,b){let E,I,M,B;for(I in b==null&&(b="unicast"),w)if(Object.prototype.hasOwnProperty.call(w,I)){for(M=w[I],!M[0]||M[0]instanceof Array||(M=[M]),E=0;E<M.length;E++)if(B=M[E],u.kind()===B[0].kind()&&u.match.apply(u,B))return I}return b},W.exports?W.exports=h:_.ipaddr=h})(this)},2584:(W,_,y)=>{var x=y(6410)(),v=y(1924)("Object.prototype.toString"),m=function(p){return!(x&&p&&typeof p=="object"&&Symbol.toStringTag in p)&&v(p)==="[object Arguments]"},S=function(p){return!!m(p)||p!==null&&typeof p=="object"&&typeof p.length=="number"&&p.length>=0&&v(p)!=="[object Array]"&&v(p.callee)==="[object Function]"},a=function(){return m(arguments)}();m.isLegacyArguments=S,W.exports=a?m:S},5320:W=>{var _,y,x=Function.prototype.toString,v=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply;if(typeof v=="function"&&typeof Object.defineProperty=="function")try{_=Object.defineProperty({},"length",{get:function(){throw y}}),y={},v(function(){throw 42},null,_)}catch(h){h!==y&&(v=null)}else v=null;var m=/^\s*class\b/,S=function(h){try{var u=x.call(h);return m.test(u)}catch{return!1}},a=function(h){try{return!S(h)&&(x.call(h),!0)}catch{return!1}},p=Object.prototype.toString,c=typeof Symbol=="function"&&!!Symbol.toStringTag,l=!(0 in[,]),f=function(){return!1};if(typeof document=="object"){var g=document.all;p.call(g)===p.call(document.all)&&(f=function(h){if((l||!h)&&(h===void 0||typeof h=="object"))try{var u=p.call(h);return(u==="[object HTMLAllCollection]"||u==="[object HTML document.all class]"||u==="[object HTMLCollection]"||u==="[object Object]")&&h("")==null}catch{}return!1})}W.exports=v?function(h){if(f(h))return!0;if(!h||typeof h!="function"&&typeof h!="object")return!1;try{v(h,null,_)}catch(u){if(u!==y)return!1}return!S(h)&&a(h)}:function(h){if(f(h))return!0;if(!h||typeof h!="function"&&typeof h!="object")return!1;if(c)return a(h);if(S(h))return!1;var u=p.call(h);return!(u!=="[object Function]"&&u!=="[object GeneratorFunction]"&&!/^\[object HTML/.test(u))&&a(h)}},8662:(W,_,y)=>{var x,v=Object.prototype.toString,m=Function.prototype.toString,S=/^\s*(?:function)?\*/,a=y(6410)(),p=Object.getPrototypeOf;W.exports=function(c){if(typeof c!="function")return!1;if(S.test(m.call(c)))return!0;if(!a)return v.call(c)==="[object GeneratorFunction]";if(!p)return!1;if(x===void 0){var l=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch{}}();x=!!l&&p(l)}return p(c)===x}},8611:W=>{W.exports=function(_){return _!=_}},360:(W,_,y)=>{var x=y(5559),v=y(4289),m=y(8611),S=y(9415),a=y(3194),p=x(S(),Number);v(p,{getPolyfill:S,implementation:m,shim:a}),W.exports=p},9415:(W,_,y)=>{var x=y(8611);W.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:x}},3194:(W,_,y)=>{var x=y(4289),v=y(9415);W.exports=function(){var m=v();return x(Number,{isNaN:m},{isNaN:function(){return Number.isNaN!==m}}),m}},5692:(W,_,y)=>{var x=y(4029),v=y(3083),m=y(1924),S=m("Object.prototype.toString"),a=y(6410)(),p=y(7296),c=typeof globalThis>"u"?y.g:globalThis,l=v(),f=m("Array.prototype.indexOf",!0)||function(w,b){for(var E=0;E<w.length;E+=1)if(w[E]===b)return E;return-1},g=m("String.prototype.slice"),h={},u=Object.getPrototypeOf;a&&p&&u&&x(l,function(w){var b=new c[w];if(Symbol.toStringTag in b){var E=u(b),I=p(E,Symbol.toStringTag);if(!I){var M=u(E);I=p(M,Symbol.toStringTag)}h[w]=I.get}}),W.exports=function(w){if(!w||typeof w!="object")return!1;if(!a||!(Symbol.toStringTag in w)){var b=g(S(w),8,-1);return f(l,b)>-1}return!!p&&function(E){var I=!1;return x(h,function(M,B){if(!I)try{I=M.call(E)===B}catch{}}),I}(w)}},6650:(W,_,y)=>{var x=y(8764).Buffer,v=y(9539),m=y(2830).Transform;W.exports=function(a){return new S(a)};var S=W.exports.JSONStream=function(a){a=a||{},m.call(this,a),this._writableState.objectMode=!1,this._readableState.objectMode=!0,this._async=a.async||!1};v.inherits(S,m),S.prototype._transform=function(a,p,c){x.isBuffer(a)||(a=new x(a)),this._buffer&&(a=x.concat([this._buffer,a]));for(var l=0,f=0;++l<=a.length;)if(a[l]===10||l===a.length){var g;try{g=JSON.parse(a.slice(f,l))}catch{}g&&(this.push(g),g=null),a[l]===10&&(f=++l)}return this._buffer=a.slice(f),this._async?void setImmediate(c):void c()}},6486:function(W,_,y){var x;W=y.nmd(W),(function(){var v,m=200,S="Expected a function",a="__lodash_hash_undefined__",p="__lodash_placeholder__",c=1,l=2,f=4,g=1,h=2,u=1,w=2,b=4,E=8,I=16,M=32,B=64,P=128,N=256,$=512,et=800,Q=16,ot=1/0,t=9007199254740991,n=17976931348623157e292,r=NaN,i=4294967295,e=i-1,o=i>>>1,s=[["ary",P],["bind",u],["bindKey",w],["curry",E],["curryRight",I],["flip",$],["partial",M],["partialRight",B],["rearg",N]],A="[object Arguments]",C="[object Array]",j="[object AsyncFunction]",T="[object Boolean]",R="[object Date]",q="[object DOMException]",Z="[object Error]",rt="[object Function]",D="[object GeneratorFunction]",G="[object Map]",z="[object Number]",X="[object Null]",st="[object Object]",nt="[object Promise]",ht="[object Proxy]",Et="[object RegExp]",gt="[object Set]",bt="[object String]",Bt="[object Symbol]",Mt="[object Undefined]",It="[object WeakMap]",J="[object ArrayBuffer]",tt="[object DataView]",F="[object Float32Array]",H="[object Float64Array]",U="[object Int8Array]",it="[object Int16Array]",pt="[object Int32Array]",ft="[object Uint8Array]",mt="[object Uint8ClampedArray]",re="[object Uint16Array]",_t="[object Uint32Array]",At=/\b__p \+= '';/g,fe=/\b(__p \+=) '' \+/g,kt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Kt=/&(?:amp|lt|gt|quot|#39);/g,Ce=/[&<>"']/g,Pt=RegExp(Kt.source),Ht=RegExp(Ce.source),je=/<%-([\s\S]+?)%>/g,Rt=/<%([\s\S]+?)%>/g,Wt=/<%=([\s\S]+?)%>/g,ye=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Nt=/^\w*$/,Xt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ke=/[\\^$.*+?()[\]{}|]/g,jt=RegExp(ke.source),Zt=/^\s+/,Oe=/\s/,Dt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Jt=/\{\n\/\* \[wrapped with (.+)\] \*/,De=/,? & /,Lt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Qt=/[()=,{}\[\]\/\s]/,ze=/\\(\\)?/g,Ut=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Yt=/\w*$/,$e=/^[-+]0x[0-9a-f]+$/i,qt=/^0b[01]+$/i,ee=/^\[object .+?Constructor\]$/,He=/^0o[0-7]+$/i,Ft=/^(?:0|[1-9]\d*)$/,te=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ae=/($^)/,Re=/['\n\r\u2028\u2029\\]/g,Ke="\\ud800-\\udfff",ai="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ri="\\u2700-\\u27bf",si="a-z\\xdf-\\xf6\\xf8-\\xff",ui="A-Z\\xc0-\\xd6\\xd8-\\xde",ci="\\ufe0e\\ufe0f",li="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",hi="["+Ke+"]",fi="["+li+"]",Je="["+ai+"]",pi="\\d+",gi="["+ri+"]",ei="["+si+"]",ii="[^"+Ke+li+pi+ri+si+ui+"]",Ye="\\ud83c[\\udffb-\\udfff]",di="[^"+Ke+"]",ni="(?:\\ud83c[\\udde6-\\uddff]){2}",cr="[\\ud800-\\udbff][\\udc00-\\udfff]",er="["+ui+"]",Ln="\\u200d",Dn="(?:"+ei+"|"+ii+")",So="(?:"+er+"|"+ii+")",Un="(?:['’](?:d|ll|m|re|s|t|ve))?",Hr="(?:['’](?:D|LL|M|RE|S|T|VE))?",qn="(?:"+Je+"|"+Ye+")?",Fn="["+ci+"]?",Eo=Fn+qn+"(?:"+Ln+"(?:"+[di,ni,cr].join("|")+")"+Fn+qn+")*",xt="(?:"+[gi,ni,cr].join("|")+")"+Eo,vt="(?:"+[di+Je+"?",Je,ni,cr,hi].join("|")+")",wt=RegExp("['’]","g"),Tt=RegExp(Je,"g"),Vt=RegExp(Ye+"(?="+Ye+")|"+vt+Eo,"g"),zt=RegExp([er+"?"+ei+"+"+Un+"(?="+[fi,er,"$"].join("|")+")",So+"+"+Hr+"(?="+[fi,er+Dn,"$"].join("|")+")",er+"?"+Dn+"+"+Un,er+"+"+Hr,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",pi,xt].join("|"),"g"),Gt=RegExp("["+Ln+Ke+ai+ci+"]"),ie=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ce=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],xe=-1,Se={};Se[F]=Se[H]=Se[U]=Se[it]=Se[pt]=Se[ft]=Se[mt]=Se[re]=Se[_t]=!0,Se[A]=Se[C]=Se[J]=Se[T]=Se[tt]=Se[R]=Se[Z]=Se[rt]=Se[G]=Se[z]=Se[st]=Se[Et]=Se[gt]=Se[bt]=Se[It]=!1;var ge={};ge[A]=ge[C]=ge[J]=ge[tt]=ge[T]=ge[R]=ge[F]=ge[H]=ge[U]=ge[it]=ge[pt]=ge[G]=ge[z]=ge[st]=ge[Et]=ge[gt]=ge[bt]=ge[Bt]=ge[ft]=ge[mt]=ge[re]=ge[_t]=!0,ge[Z]=ge[rt]=ge[It]=!1;var Ze={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ge=parseFloat,Hi=parseInt,be=typeof y.g=="object"&&y.g&&y.g.Object===Object&&y.g,we=typeof self=="object"&&self&&self.Object===Object&&self,de=be||we||Function("return this")(),Te=_&&!_.nodeType&&_,mi=Te&&W&&!W.nodeType&&W,ki=mi&&mi.exports===Te,Oi=ki&&be.process,wi=function(){try{return mi&&mi.require&&mi.require("util").types||Oi&&Oi.binding&&Oi.binding("util")}catch{}}(),wr=wi&&wi.isArrayBuffer,Wi=wi&&wi.isDate,Or=wi&&wi.isMap,Vc=wi&&wi.isRegExp,Xc=wi&&wi.isSet,Zc=wi&&wi.isTypedArray;function ir($t,ae,ue){switch(ue.length){case 0:return $t.call(ae);case 1:return $t.call(ae,ue[0]);case 2:return $t.call(ae,ue[0],ue[1]);case 3:return $t.call(ae,ue[0],ue[1],ue[2])}return $t.apply(ae,ue)}function Id($t,ae,ue,me){for(var qe=-1,oi=$t==null?0:$t.length;++qe<oi;){var ji=$t[qe];ae(me,ji,ue(ji),$t)}return me}function lr($t,ae){for(var ue=-1,me=$t==null?0:$t.length;++ue<me&&ae($t[ue],ue,$t)!==!1;);return $t}function Od($t,ae){for(var ue=$t==null?0:$t.length;ue--&&ae($t[ue],ue,$t)!==!1;);return $t}function Kc($t,ae){for(var ue=-1,me=$t==null?0:$t.length;++ue<me;)if(!ae($t[ue],ue,$t))return!1;return!0}function Wr($t,ae){for(var ue=-1,me=$t==null?0:$t.length,qe=0,oi=[];++ue<me;){var ji=$t[ue];ae(ji,ue,$t)&&(oi[qe++]=ji)}return oi}function ko($t,ae){return!($t==null||!$t.length)&&Mn($t,ae,0)>-1}function hs($t,ae,ue){for(var me=-1,qe=$t==null?0:$t.length;++me<qe;)if(ue(ae,$t[me]))return!0;return!1}function Si($t,ae){for(var ue=-1,me=$t==null?0:$t.length,qe=Array(me);++ue<me;)qe[ue]=ae($t[ue],ue,$t);return qe}function Vr($t,ae){for(var ue=-1,me=ae.length,qe=$t.length;++ue<me;)$t[qe+ue]=ae[ue];return $t}function fs($t,ae,ue,me){var qe=-1,oi=$t==null?0:$t.length;for(me&&oi&&(ue=$t[++qe]);++qe<oi;)ue=ae(ue,$t[qe],qe,$t);return ue}function Ad($t,ae,ue,me){var qe=$t==null?0:$t.length;for(me&&qe&&(ue=$t[--qe]);qe--;)ue=ae(ue,$t[qe],qe,$t);return ue}function ps($t,ae){for(var ue=-1,me=$t==null?0:$t.length;++ue<me;)if(ae($t[ue],ue,$t))return!0;return!1}var Td=ds("length");function Jc($t,ae,ue){var me;return ue($t,function(qe,oi,ji){if(ae(qe,oi,ji))return me=oi,!1}),me}function Io($t,ae,ue,me){for(var qe=$t.length,oi=ue+(me?1:-1);me?oi--:++oi<qe;)if(ae($t[oi],oi,$t))return oi;return-1}function Mn($t,ae,ue){return ae==ae?function(me,qe,oi){for(var ji=oi-1,Ar=me.length;++ji<Ar;)if(me[ji]===qe)return ji;return-1}($t,ae,ue):Io($t,Gc,ue)}function Bd($t,ae,ue,me){for(var qe=ue-1,oi=$t.length;++qe<oi;)if(me($t[qe],ae))return qe;return-1}function Gc($t){return $t!=$t}function Yc($t,ae){var ue=$t==null?0:$t.length;return ue?gs($t,ae)/ue:r}function ds($t){return function(ae){return ae==null?v:ae[$t]}}function ms($t){return function(ae){return $t==null?v:$t[ae]}}function Qc($t,ae,ue,me,qe){return qe($t,function(oi,ji,Ar){ue=me?(me=!1,oi):ae(ue,oi,ji,Ar)}),ue}function gs($t,ae){for(var ue,me=-1,qe=$t.length;++me<qe;){var oi=ae($t[me]);oi!==v&&(ue=ue===v?oi:ue+oi)}return ue}function vs($t,ae){for(var ue=-1,me=Array($t);++ue<$t;)me[ue]=ae(ue);return me}function tl($t){return $t&&$t.slice(0,nl($t)+1).replace(Zt,"")}function rr($t){return function(ae){return $t(ae)}}function ys($t,ae){return Si(ae,function(ue){return $t[ue]})}function zn($t,ae){return $t.has(ae)}function el($t,ae){for(var ue=-1,me=$t.length;++ue<me&&Mn(ae,$t[ue],0)>-1;);return ue}function il($t,ae){for(var ue=$t.length;ue--&&Mn(ae,$t[ue],0)>-1;);return ue}var jd=ms({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Rd=ms({"&":"&","<":"<",">":">",'"':""","'":"'"});function Nd($t){return"\\"+Ze[$t]}function xn($t){return Gt.test($t)}function bs($t){var ae=-1,ue=Array($t.size);return $t.forEach(function(me,qe){ue[++ae]=[qe,me]}),ue}function rl($t,ae){return function(ue){return $t(ae(ue))}}function Xr($t,ae){for(var ue=-1,me=$t.length,qe=0,oi=[];++ue<me;){var ji=$t[ue];ji!==ae&&ji!==p||($t[ue]=p,oi[qe++]=ue)}return oi}function Oo($t){var ae=-1,ue=Array($t.size);return $t.forEach(function(me){ue[++ae]=me}),ue}function Cd($t){var ae=-1,ue=Array($t.size);return $t.forEach(function(me){ue[++ae]=[me,me]}),ue}function _n($t){return xn($t)?function(ae){for(var ue=Vt.lastIndex=0;Vt.test(ae);)++ue;return ue}($t):Td($t)}function Mr($t){return xn($t)?function(ae){return ae.match(Vt)||[]}($t):function(ae){return ae.split("")}($t)}function nl($t){for(var ae=$t.length;ae--&&Oe.test($t.charAt(ae)););return ae}var Pd=ms({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Ao=function $t(ae){var ue,me=(ae=ae==null?de:Ao.defaults(de.Object(),ae,Ao.pick(de,ce))).Array,qe=ae.Date,oi=ae.Error,ji=ae.Function,Ar=ae.Math,xi=ae.Object,ws=ae.RegExp,Ld=ae.String,hr=ae.TypeError,To=me.prototype,Dd=ji.prototype,Sn=xi.prototype,Bo=ae["__core-js_shared__"],jo=Dd.toString,bi=Sn.hasOwnProperty,Ud=0,ol=(ue=/[^.]+$/.exec(Bo&&Bo.keys&&Bo.keys.IE_PROTO||""))?"Symbol(src)_1."+ue:"",Ro=Sn.toString,qd=jo.call(xi),Fd=de._,zd=ws("^"+jo.call(bi).replace(ke,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),No=ki?ae.Buffer:v,Zr=ae.Symbol,Co=ae.Uint8Array,al=No?No.allocUnsafe:v,Po=rl(xi.getPrototypeOf,xi),sl=xi.create,ul=Sn.propertyIsEnumerable,Lo=To.splice,cl=Zr?Zr.isConcatSpreadable:v,$n=Zr?Zr.iterator:v,an=Zr?Zr.toStringTag:v,Do=function(){try{var d=hn(xi,"defineProperty");return d({},"",{}),d}catch{}}(),$d=ae.clearTimeout!==de.clearTimeout&&ae.clearTimeout,Hd=qe&&qe.now!==de.Date.now&&qe.now,Wd=ae.setTimeout!==de.setTimeout&&ae.setTimeout,Uo=Ar.ceil,qo=Ar.floor,Ms=xi.getOwnPropertySymbols,Vd=No?No.isBuffer:v,ll=ae.isFinite,Xd=To.join,Zd=rl(xi.keys,xi),Ri=Ar.max,Ui=Ar.min,Kd=qe.now,Jd=ae.parseInt,hl=Ar.random,Gd=To.reverse,xs=hn(ae,"DataView"),Hn=hn(ae,"Map"),_s=hn(ae,"Promise"),En=hn(ae,"Set"),Wn=hn(ae,"WeakMap"),Vn=hn(xi,"create"),Fo=Wn&&new Wn,kn={},Yd=fn(xs),Qd=fn(Hn),t0=fn(_s),e0=fn(En),i0=fn(Wn),zo=Zr?Zr.prototype:v,Xn=zo?zo.valueOf:v,fl=zo?zo.toString:v;function dt(d){if(Ii(d)&&!We(d)&&!(d instanceof Qe)){if(d instanceof fr)return d;if(bi.call(d,"__wrapped__"))return ph(d)}return new fr(d)}var In=function(){function d(){}return function(k){if(!Ei(k))return{};if(sl)return sl(k);d.prototype=k;var V=new d;return d.prototype=v,V}}();function $o(){}function fr(d,k){this.__wrapped__=d,this.__actions__=[],this.__chain__=!!k,this.__index__=0,this.__values__=v}function Qe(d){this.__wrapped__=d,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=i,this.__views__=[]}function sn(d){var k=-1,V=d==null?0:d.length;for(this.clear();++k<V;){var at=d[k];this.set(at[0],at[1])}}function Nr(d){var k=-1,V=d==null?0:d.length;for(this.clear();++k<V;){var at=d[k];this.set(at[0],at[1])}}function Cr(d){var k=-1,V=d==null?0:d.length;for(this.clear();++k<V;){var at=d[k];this.set(at[0],at[1])}}function un(d){var k=-1,V=d==null?0:d.length;for(this.__data__=new Cr;++k<V;)this.add(d[k])}function xr(d){var k=this.__data__=new Nr(d);this.size=k.size}function pl(d,k){var V=We(d),at=!V&&pn(d),ct=!V&&!at&&Qr(d),yt=!V&&!at&&!ct&&Bn(d),St=V||at||ct||yt,Ot=St?vs(d.length,Ld):[],Ct=Ot.length;for(var oe in d)!k&&!bi.call(d,oe)||St&&(oe=="length"||ct&&(oe=="offset"||oe=="parent")||yt&&(oe=="buffer"||oe=="byteLength"||oe=="byteOffset")||Ur(oe,Ct))||Ot.push(oe);return Ot}function dl(d){var k=d.length;return k?d[Ns(0,k-1)]:v}function r0(d,k){return ra(Ki(d),cn(k,0,d.length))}function n0(d){return ra(Ki(d))}function Ss(d,k,V){(V!==v&&!_r(d[k],V)||V===v&&!(k in d))&&Pr(d,k,V)}function Zn(d,k,V){var at=d[k];bi.call(d,k)&&_r(at,V)&&(V!==v||k in d)||Pr(d,k,V)}function Ho(d,k){for(var V=d.length;V--;)if(_r(d[V][0],k))return V;return-1}function o0(d,k,V,at){return Kr(d,function(ct,yt,St){k(at,ct,V(ct),St)}),at}function ml(d,k){return d&&Br(k,Pi(k),d)}function Pr(d,k,V){k=="__proto__"&&Do?Do(d,k,{configurable:!0,enumerable:!0,value:V,writable:!0}):d[k]=V}function Es(d,k){for(var V=-1,at=k.length,ct=me(at),yt=d==null;++V<at;)ct[V]=yt?v:su(d,k[V]);return ct}function cn(d,k,V){return d==d&&(V!==v&&(d=d<=V?d:V),k!==v&&(d=d>=k?d:k)),d}function pr(d,k,V,at,ct,yt){var St,Ot=k&c,Ct=k&l,oe=k&f;if(V&&(St=ct?V(d,at,ct,yt):V(d)),St!==v)return St;if(!Ei(d))return d;var ne=We(d);if(ne){if(St=function(se){var he=se.length,Be=new se.constructor(he);return he&&typeof se[0]=="string"&&bi.call(se,"index")&&(Be.index=se.index,Be.input=se.input),Be}(d),!Ot)return Ki(d,St)}else{var le=qi(d),Me=le==rt||le==D;if(Qr(d))return Ul(d,Ot);if(le==st||le==A||Me&&!ct){if(St=Ct||Me?{}:nh(d),!Ot)return Ct?function(se,he){return Br(se,ih(se),he)}(d,function(se,he){return se&&Br(he,Gi(he),se)}(St,d)):function(se,he){return Br(se,Zs(se),he)}(d,ml(St,d))}else{if(!ge[le])return ct?d:{};St=function(se,he,Be){var pe,Fe=se.constructor;switch(he){case J:return Fs(se);case T:case R:return new Fe(+se);case tt:return function(Ue,vi){var Ee=vi?Fs(Ue.buffer):Ue.buffer;return new Ue.constructor(Ee,Ue.byteOffset,Ue.byteLength)}(se,Be);case F:case H:case U:case it:case pt:case ft:case mt:case re:case _t:return ql(se,Be);case G:return new Fe;case z:case bt:return new Fe(se);case Et:return function(Ue){var vi=new Ue.constructor(Ue.source,Yt.exec(Ue));return vi.lastIndex=Ue.lastIndex,vi}(se);case gt:return new Fe;case Bt:return pe=se,Xn?xi(Xn.call(pe)):{}}}(d,le,Ot)}}yt||(yt=new xr);var _e=yt.get(d);if(_e)return _e;yt.set(d,St),Bh(d)?d.forEach(function(se){St.add(pr(se,k,V,se,d,yt))}):Ah(d)&&d.forEach(function(se,he){St.set(he,pr(se,k,V,he,d,yt))});var Ie=ne?v:(oe?Ct?Ws:Hs:Ct?Gi:Pi)(d);return lr(Ie||d,function(se,he){Ie&&(se=d[he=se]),Zn(St,he,pr(se,k,V,he,d,yt))}),St}function gl(d,k,V){var at=V.length;if(d==null)return!at;for(d=xi(d);at--;){var ct=V[at],yt=k[ct],St=d[ct];if(St===v&&!(ct in d)||!yt(St))return!1}return!0}function vl(d,k,V){if(typeof d!="function")throw new hr(S);return eo(function(){d.apply(v,V)},k)}function Kn(d,k,V,at){var ct=-1,yt=ko,St=!0,Ot=d.length,Ct=[],oe=k.length;if(!Ot)return Ct;V&&(k=Si(k,rr(V))),at?(yt=hs,St=!1):k.length>=m&&(yt=zn,St=!1,k=new un(k));t:for(;++ct<Ot;){var ne=d[ct],le=V==null?ne:V(ne);if(ne=at||ne!==0?ne:0,St&&le==le){for(var Me=oe;Me--;)if(k[Me]===le)continue t;Ct.push(ne)}else yt(k,le,at)||Ct.push(ne)}return Ct}dt.templateSettings={escape:je,evaluate:Rt,interpolate:Wt,variable:"",imports:{_:dt}},dt.prototype=$o.prototype,dt.prototype.constructor=dt,fr.prototype=In($o.prototype),fr.prototype.constructor=fr,Qe.prototype=In($o.prototype),Qe.prototype.constructor=Qe,sn.prototype.clear=function(){this.__data__=Vn?Vn(null):{},this.size=0},sn.prototype.delete=function(d){var k=this.has(d)&&delete this.__data__[d];return this.size-=k?1:0,k},sn.prototype.get=function(d){var k=this.__data__;if(Vn){var V=k[d];return V===a?v:V}return bi.call(k,d)?k[d]:v},sn.prototype.has=function(d){var k=this.__data__;return Vn?k[d]!==v:bi.call(k,d)},sn.prototype.set=function(d,k){var V=this.__data__;return this.size+=this.has(d)?0:1,V[d]=Vn&&k===v?a:k,this},Nr.prototype.clear=function(){this.__data__=[],this.size=0},Nr.prototype.delete=function(d){var k=this.__data__,V=Ho(k,d);return!(V<0||(V==k.length-1?k.pop():Lo.call(k,V,1),--this.size,0))},Nr.prototype.get=function(d){var k=this.__data__,V=Ho(k,d);return V<0?v:k[V][1]},Nr.prototype.has=function(d){return Ho(this.__data__,d)>-1},Nr.prototype.set=function(d,k){var V=this.__data__,at=Ho(V,d);return at<0?(++this.size,V.push([d,k])):V[at][1]=k,this},Cr.prototype.clear=function(){this.size=0,this.__data__={hash:new sn,map:new(Hn||Nr),string:new sn}},Cr.prototype.delete=function(d){var k=ia(this,d).delete(d);return this.size-=k?1:0,k},Cr.prototype.get=function(d){return ia(this,d).get(d)},Cr.prototype.has=function(d){return ia(this,d).has(d)},Cr.prototype.set=function(d,k){var V=ia(this,d),at=V.size;return V.set(d,k),this.size+=V.size==at?0:1,this},un.prototype.add=un.prototype.push=function(d){return this.__data__.set(d,a),this},un.prototype.has=function(d){return this.__data__.has(d)},xr.prototype.clear=function(){this.__data__=new Nr,this.size=0},xr.prototype.delete=function(d){var k=this.__data__,V=k.delete(d);return this.size=k.size,V},xr.prototype.get=function(d){return this.__data__.get(d)},xr.prototype.has=function(d){return this.__data__.has(d)},xr.prototype.set=function(d,k){var V=this.__data__;if(V instanceof Nr){var at=V.__data__;if(!Hn||at.length<m-1)return at.push([d,k]),this.size=++V.size,this;V=this.__data__=new Cr(at)}return V.set(d,k),this.size=V.size,this};var Kr=Hl(Tr),yl=Hl(Is,!0);function a0(d,k){var V=!0;return Kr(d,function(at,ct,yt){return V=!!k(at,ct,yt)}),V}function Wo(d,k,V){for(var at=-1,ct=d.length;++at<ct;){var yt=d[at],St=k(yt);if(St!=null&&(Ot===v?St==St&&!or(St):V(St,Ot)))var Ot=St,Ct=yt}return Ct}function bl(d,k){var V=[];return Kr(d,function(at,ct,yt){k(at,ct,yt)&&V.push(at)}),V}function Di(d,k,V,at,ct){var yt=-1,St=d.length;for(V||(V=v0),ct||(ct=[]);++yt<St;){var Ot=d[yt];k>0&&V(Ot)?k>1?Di(Ot,k-1,V,at,ct):Vr(ct,Ot):at||(ct[ct.length]=Ot)}return ct}var ks=Wl(),wl=Wl(!0);function Tr(d,k){return d&&ks(d,k,Pi)}function Is(d,k){return d&&wl(d,k,Pi)}function Vo(d,k){return Wr(k,function(V){return qr(d[V])})}function ln(d,k){for(var V=0,at=(k=Gr(k,d)).length;d!=null&&V<at;)d=d[jr(k[V++])];return V&&V==at?d:v}function Ml(d,k,V){var at=k(d);return We(d)?at:Vr(at,V(d))}function Vi(d){return d==null?d===v?Mt:X:an&&an in xi(d)?function(k){var V=bi.call(k,an),at=k[an];try{k[an]=v;var ct=!0}catch{}var yt=Ro.call(k);return ct&&(V?k[an]=at:delete k[an]),yt}(d):function(k){return Ro.call(k)}(d)}function Os(d,k){return d>k}function s0(d,k){return d!=null&&bi.call(d,k)}function u0(d,k){return d!=null&&k in xi(d)}function As(d,k,V){for(var at=V?hs:ko,ct=d[0].length,yt=d.length,St=yt,Ot=me(yt),Ct=1/0,oe=[];St--;){var ne=d[St];St&&k&&(ne=Si(ne,rr(k))),Ct=Ui(ne.length,Ct),Ot[St]=!V&&(k||ct>=120&&ne.length>=120)?new un(St&&ne):v}ne=d[0];var le=-1,Me=Ot[0];t:for(;++le<ct&&oe.length<Ct;){var _e=ne[le],Ie=k?k(_e):_e;if(_e=V||_e!==0?_e:0,!(Me?zn(Me,Ie):at(oe,Ie,V))){for(St=yt;--St;){var se=Ot[St];if(!(se?zn(se,Ie):at(d[St],Ie,V)))continue t}Me&&Me.push(Ie),oe.push(_e)}}return oe}function Jn(d,k,V){var at=(d=uh(d,k=Gr(k,d)))==null?d:d[jr(mr(k))];return at==null?v:ir(at,d,V)}function xl(d){return Ii(d)&&Vi(d)==A}function Gn(d,k,V,at,ct){return d===k||(d==null||k==null||!Ii(d)&&!Ii(k)?d!=d&&k!=k:function(yt,St,Ot,Ct,oe,ne){var le=We(yt),Me=We(St),_e=le?C:qi(yt),Ie=Me?C:qi(St),se=(_e=_e==A?st:_e)==st,he=(Ie=Ie==A?st:Ie)==st,Be=_e==Ie;if(Be&&Qr(yt)){if(!Qr(St))return!1;le=!0,se=!1}if(Be&&!se)return ne||(ne=new xr),le||Bn(yt)?eh(yt,St,Ot,Ct,oe,ne):function(Ee,Pe,Ni,Ti,Zi,_i,Fi){switch(Ni){case tt:if(Ee.byteLength!=Pe.byteLength||Ee.byteOffset!=Pe.byteOffset)return!1;Ee=Ee.buffer,Pe=Pe.buffer;case J:return!(Ee.byteLength!=Pe.byteLength||!_i(new Co(Ee),new Co(Pe)));case T:case R:case z:return _r(+Ee,+Pe);case Z:return Ee.name==Pe.name&&Ee.message==Pe.message;case Et:case bt:return Ee==Pe+"";case G:var Rr=bs;case gt:var tn=Ti&g;if(Rr||(Rr=Oo),Ee.size!=Pe.size&&!tn)return!1;var dn=Fi.get(Ee);if(dn)return dn==Pe;Ti|=h,Fi.set(Ee,Pe);var zr=eh(Rr(Ee),Rr(Pe),Ti,Zi,_i,Fi);return Fi.delete(Ee),zr;case Bt:if(Xn)return Xn.call(Ee)==Xn.call(Pe)}return!1}(yt,St,_e,Ot,Ct,oe,ne);if(!(Ot&g)){var pe=se&&bi.call(yt,"__wrapped__"),Fe=he&&bi.call(St,"__wrapped__");if(pe||Fe){var Ue=pe?yt.value():yt,vi=Fe?St.value():St;return ne||(ne=new xr),oe(Ue,vi,Ot,Ct,ne)}}return!!Be&&(ne||(ne=new xr),function(Ee,Pe,Ni,Ti,Zi,_i){var Fi=Ni&g,Rr=Hs(Ee),tn=Rr.length;if(tn!=Hs(Pe).length&&!Fi)return!1;for(var dn=tn;dn--;){var zr=Rr[dn];if(!(Fi?zr in Pe:bi.call(Pe,zr)))return!1}var Wh=_i.get(Ee),Vh=_i.get(Pe);if(Wh&&Vh)return Wh==Pe&&Vh==Ee;var fa=!0;_i.set(Ee,Pe),_i.set(Pe,Ee);for(var vu=Fi;++dn<tn;){var pa=Ee[zr=Rr[dn]],da=Pe[zr];if(Ti)var Xh=Fi?Ti(da,pa,zr,Pe,Ee,_i):Ti(pa,da,zr,Ee,Pe,_i);if(!(Xh===v?pa===da||Zi(pa,da,Ni,Ti,_i):Xh)){fa=!1;break}vu||(vu=zr=="constructor")}if(fa&&!vu){var ma=Ee.constructor,ga=Pe.constructor;ma==ga||!("constructor"in Ee)||!("constructor"in Pe)||typeof ma=="function"&&ma instanceof ma&&typeof ga=="function"&&ga instanceof ga||(fa=!1)}return _i.delete(Ee),_i.delete(Pe),fa}(yt,St,Ot,Ct,oe,ne))}(d,k,V,at,Gn,ct))}function Ts(d,k,V,at){var ct=V.length,yt=ct,St=!at;if(d==null)return!yt;for(d=xi(d);ct--;){var Ot=V[ct];if(St&&Ot[2]?Ot[1]!==d[Ot[0]]:!(Ot[0]in d))return!1}for(;++ct<yt;){var Ct=(Ot=V[ct])[0],oe=d[Ct],ne=Ot[1];if(St&&Ot[2]){if(oe===v&&!(Ct in d))return!1}else{var le=new xr;if(at)var Me=at(oe,ne,Ct,d,k,le);if(!(Me===v?Gn(ne,oe,g|h,at,le):Me))return!1}}return!0}function _l(d){return!(!Ei(d)||(k=d,ol&&ol in k))&&(qr(d)?zd:ee).test(fn(d));var k}function Sl(d){return typeof d=="function"?d:d==null?Yi:typeof d=="object"?We(d)?Il(d[0],d[1]):kl(d):Hh(d)}function Bs(d){if(!to(d))return Zd(d);var k=[];for(var V in xi(d))bi.call(d,V)&&V!="constructor"&&k.push(V);return k}function js(d,k){return d<k}function El(d,k){var V=-1,at=Ji(d)?me(d.length):[];return Kr(d,function(ct,yt,St){at[++V]=k(ct,yt,St)}),at}function kl(d){var k=Xs(d);return k.length==1&&k[0][2]?ah(k[0][0],k[0][1]):function(V){return V===d||Ts(V,d,k)}}function Il(d,k){return Ks(d)&&oh(k)?ah(jr(d),k):function(V){var at=su(V,d);return at===v&&at===k?uu(V,d):Gn(k,at,g|h)}}function Xo(d,k,V,at,ct){d!==k&&ks(k,function(yt,St){if(ct||(ct=new xr),Ei(yt))(function(Ct,oe,ne,le,Me,_e,Ie){var se=Gs(Ct,ne),he=Gs(oe,ne),Be=Ie.get(he);if(Be)Ss(Ct,ne,Be);else{var pe=_e?_e(se,he,ne+"",Ct,oe,Ie):v,Fe=pe===v;if(Fe){var Ue=We(he),vi=!Ue&&Qr(he),Ee=!Ue&&!vi&&Bn(he);pe=he,Ue||vi||Ee?We(se)?pe=se:Ai(se)?pe=Ki(se):vi?(Fe=!1,pe=Ul(he,!0)):Ee?(Fe=!1,pe=ql(he,!0)):pe=[]:io(he)||pn(he)?(pe=se,pn(se)?pe=Nh(se):Ei(se)&&!qr(se)||(pe=nh(he))):Fe=!1}Fe&&(Ie.set(he,pe),Me(pe,he,le,_e,Ie),Ie.delete(he)),Ss(Ct,ne,pe)}})(d,k,St,V,Xo,at,ct);else{var Ot=at?at(Gs(d,St),yt,St+"",d,k,ct):v;Ot===v&&(Ot=yt),Ss(d,St,Ot)}},Gi)}function Ol(d,k){var V=d.length;if(V)return Ur(k+=k<0?V:0,V)?d[k]:v}function Al(d,k,V){k=k.length?Si(k,function(yt){return We(yt)?function(St){return ln(St,yt.length===1?yt[0]:yt)}:yt}):[Yi];var at=-1;k=Si(k,rr(Ne()));var ct=El(d,function(yt,St,Ot){var Ct=Si(k,function(oe){return oe(yt)});return{criteria:Ct,index:++at,value:yt}});return function(yt,St){var Ot=yt.length;for(yt.sort(function(Ct,oe){return function(ne,le,Me){for(var _e=-1,Ie=ne.criteria,se=le.criteria,he=Ie.length,Be=Me.length;++_e<he;){var pe=Fl(Ie[_e],se[_e]);if(pe)return _e>=Be?pe:pe*(Me[_e]=="desc"?-1:1)}return ne.index-le.index}(Ct,oe,V)});Ot--;)yt[Ot]=yt[Ot].value;return yt}(ct)}function Tl(d,k,V){for(var at=-1,ct=k.length,yt={};++at<ct;){var St=k[at],Ot=ln(d,St);V(Ot,St)&&Yn(yt,Gr(St,d),Ot)}return yt}function Rs(d,k,V,at){var ct=at?Bd:Mn,yt=-1,St=k.length,Ot=d;for(d===k&&(k=Ki(k)),V&&(Ot=Si(d,rr(V)));++yt<St;)for(var Ct=0,oe=k[yt],ne=V?V(oe):oe;(Ct=ct(Ot,ne,Ct,at))>-1;)Ot!==d&&Lo.call(Ot,Ct,1),Lo.call(d,Ct,1);return d}function Bl(d,k){for(var V=d?k.length:0,at=V-1;V--;){var ct=k[V];if(V==at||ct!==yt){var yt=ct;Ur(ct)?Lo.call(d,ct,1):Ls(d,ct)}}return d}function Ns(d,k){return d+qo(hl()*(k-d+1))}function Cs(d,k){var V="";if(!d||k<1||k>t)return V;do k%2&&(V+=d),(k=qo(k/2))&&(d+=d);while(k);return V}function Xe(d,k){return Ys(sh(d,k,Yi),d+"")}function c0(d){return dl(jn(d))}function l0(d,k){var V=jn(d);return ra(V,cn(k,0,V.length))}function Yn(d,k,V,at){if(!Ei(d))return d;for(var ct=-1,yt=(k=Gr(k,d)).length,St=yt-1,Ot=d;Ot!=null&&++ct<yt;){var Ct=jr(k[ct]),oe=V;if(Ct==="__proto__"||Ct==="constructor"||Ct==="prototype")return d;if(ct!=St){var ne=Ot[Ct];(oe=at?at(ne,Ct,Ot):v)===v&&(oe=Ei(ne)?ne:Ur(k[ct+1])?[]:{})}Zn(Ot,Ct,oe),Ot=Ot[Ct]}return d}var jl=Fo?function(d,k){return Fo.set(d,k),d}:Yi,h0=Do?function(d,k){return Do(d,"toString",{configurable:!0,enumerable:!1,value:lu(k),writable:!0})}:Yi;function f0(d){return ra(jn(d))}function dr(d,k,V){var at=-1,ct=d.length;k<0&&(k=-k>ct?0:ct+k),(V=V>ct?ct:V)<0&&(V+=ct),ct=k>V?0:V-k>>>0,k>>>=0;for(var yt=me(ct);++at<ct;)yt[at]=d[at+k];return yt}function p0(d,k){var V;return Kr(d,function(at,ct,yt){return!(V=k(at,ct,yt))}),!!V}function Zo(d,k,V){var at=0,ct=d==null?at:d.length;if(typeof k=="number"&&k==k&&ct<=o){for(;at<ct;){var yt=at+ct>>>1,St=d[yt];St!==null&&!or(St)&&(V?St<=k:St<k)?at=yt+1:ct=yt}return ct}return Ps(d,k,Yi,V)}function Ps(d,k,V,at){var ct=0,yt=d==null?0:d.length;if(yt===0)return 0;for(var St=(k=V(k))!=k,Ot=k===null,Ct=or(k),oe=k===v;ct<yt;){var ne=qo((ct+yt)/2),le=V(d[ne]),Me=le!==v,_e=le===null,Ie=le==le,se=or(le);if(St)var he=at||Ie;else he=oe?Ie&&(at||Me):Ot?Ie&&Me&&(at||!_e):Ct?Ie&&Me&&!_e&&(at||!se):!_e&&!se&&(at?le<=k:le<k);he?ct=ne+1:yt=ne}return Ui(yt,e)}function Rl(d,k){for(var V=-1,at=d.length,ct=0,yt=[];++V<at;){var St=d[V],Ot=k?k(St):St;if(!V||!_r(Ot,Ct)){var Ct=Ot;yt[ct++]=St===0?0:St}}return yt}function Nl(d){return typeof d=="number"?d:or(d)?r:+d}function nr(d){if(typeof d=="string")return d;if(We(d))return Si(d,nr)+"";if(or(d))return fl?fl.call(d):"";var k=d+"";return k=="0"&&1/d==-ot?"-0":k}function Jr(d,k,V){var at=-1,ct=ko,yt=d.length,St=!0,Ot=[],Ct=Ot;if(V)St=!1,ct=hs;else if(yt>=m){var oe=k?null:m0(d);if(oe)return Oo(oe);St=!1,ct=zn,Ct=new un}else Ct=k?[]:Ot;t:for(;++at<yt;){var ne=d[at],le=k?k(ne):ne;if(ne=V||ne!==0?ne:0,St&&le==le){for(var Me=Ct.length;Me--;)if(Ct[Me]===le)continue t;k&&Ct.push(le),Ot.push(ne)}else ct(Ct,le,V)||(Ct!==Ot&&Ct.push(le),Ot.push(ne))}return Ot}function Ls(d,k){return(d=uh(d,k=Gr(k,d)))==null||delete d[jr(mr(k))]}function Cl(d,k,V,at){return Yn(d,k,V(ln(d,k)),at)}function Ko(d,k,V,at){for(var ct=d.length,yt=at?ct:-1;(at?yt--:++yt<ct)&&k(d[yt],yt,d););return V?dr(d,at?0:yt,at?yt+1:ct):dr(d,at?yt+1:0,at?ct:yt)}function Pl(d,k){var V=d;return V instanceof Qe&&(V=V.value()),fs(k,function(at,ct){return ct.func.apply(ct.thisArg,Vr([at],ct.args))},V)}function Ds(d,k,V){var at=d.length;if(at<2)return at?Jr(d[0]):[];for(var ct=-1,yt=me(at);++ct<at;)for(var St=d[ct],Ot=-1;++Ot<at;)Ot!=ct&&(yt[ct]=Kn(yt[ct]||St,d[Ot],k,V));return Jr(Di(yt,1),k,V)}function Ll(d,k,V){for(var at=-1,ct=d.length,yt=k.length,St={};++at<ct;){var Ot=at<yt?k[at]:v;V(St,d[at],Ot)}return St}function Us(d){return Ai(d)?d:[]}function qs(d){return typeof d=="function"?d:Yi}function Gr(d,k){return We(d)?d:Ks(d,k)?[d]:fh(yi(d))}var d0=Xe;function Yr(d,k,V){var at=d.length;return V=V===v?at:V,!k&&V>=at?d:dr(d,k,V)}var Dl=$d||function(d){return de.clearTimeout(d)};function Ul(d,k){if(k)return d.slice();var V=d.length,at=al?al(V):new d.constructor(V);return d.copy(at),at}function Fs(d){var k=new d.constructor(d.byteLength);return new Co(k).set(new Co(d)),k}function ql(d,k){var V=k?Fs(d.buffer):d.buffer;return new d.constructor(V,d.byteOffset,d.length)}function Fl(d,k){if(d!==k){var V=d!==v,at=d===null,ct=d==d,yt=or(d),St=k!==v,Ot=k===null,Ct=k==k,oe=or(k);if(!Ot&&!oe&&!yt&&d>k||yt&&St&&Ct&&!Ot&&!oe||at&&St&&Ct||!V&&Ct||!ct)return 1;if(!at&&!yt&&!oe&&d<k||oe&&V&&ct&&!at&&!yt||Ot&&V&&ct||!St&&ct||!Ct)return-1}return 0}function zl(d,k,V,at){for(var ct=-1,yt=d.length,St=V.length,Ot=-1,Ct=k.length,oe=Ri(yt-St,0),ne=me(Ct+oe),le=!at;++Ot<Ct;)ne[Ot]=k[Ot];for(;++ct<St;)(le||ct<yt)&&(ne[V[ct]]=d[ct]);for(;oe--;)ne[Ot++]=d[ct++];return ne}function $l(d,k,V,at){for(var ct=-1,yt=d.length,St=-1,Ot=V.length,Ct=-1,oe=k.length,ne=Ri(yt-Ot,0),le=me(ne+oe),Me=!at;++ct<ne;)le[ct]=d[ct];for(var _e=ct;++Ct<oe;)le[_e+Ct]=k[Ct];for(;++St<Ot;)(Me||ct<yt)&&(le[_e+V[St]]=d[ct++]);return le}function Ki(d,k){var V=-1,at=d.length;for(k||(k=me(at));++V<at;)k[V]=d[V];return k}function Br(d,k,V,at){var ct=!V;V||(V={});for(var yt=-1,St=k.length;++yt<St;){var Ot=k[yt],Ct=at?at(V[Ot],d[Ot],Ot,V,d):v;Ct===v&&(Ct=d[Ot]),ct?Pr(V,Ot,Ct):Zn(V,Ot,Ct)}return V}function Jo(d,k){return function(V,at){var ct=We(V)?Id:o0,yt=k?k():{};return ct(V,d,Ne(at,2),yt)}}function On(d){return Xe(function(k,V){var at=-1,ct=V.length,yt=ct>1?V[ct-1]:v,St=ct>2?V[2]:v;for(yt=d.length>3&&typeof yt=="function"?(ct--,yt):v,St&&Xi(V[0],V[1],St)&&(yt=ct<3?v:yt,ct=1),k=xi(k);++at<ct;){var Ot=V[at];Ot&&d(k,Ot,at,yt)}return k})}function Hl(d,k){return function(V,at){if(V==null)return V;if(!Ji(V))return d(V,at);for(var ct=V.length,yt=k?ct:-1,St=xi(V);(k?yt--:++yt<ct)&&at(St[yt],yt,St)!==!1;);return V}}function Wl(d){return function(k,V,at){for(var ct=-1,yt=xi(k),St=at(k),Ot=St.length;Ot--;){var Ct=St[d?Ot:++ct];if(V(yt[Ct],Ct,yt)===!1)break}return k}}function Vl(d){return function(k){var V=xn(k=yi(k))?Mr(k):v,at=V?V[0]:k.charAt(0),ct=V?Yr(V,1).join(""):k.slice(1);return at[d]()+ct}}function An(d){return function(k){return fs(zh(Fh(k).replace(wt,"")),d,"")}}function Qn(d){return function(){var k=arguments;switch(k.length){case 0:return new d;case 1:return new d(k[0]);case 2:return new d(k[0],k[1]);case 3:return new d(k[0],k[1],k[2]);case 4:return new d(k[0],k[1],k[2],k[3]);case 5:return new d(k[0],k[1],k[2],k[3],k[4]);case 6:return new d(k[0],k[1],k[2],k[3],k[4],k[5]);case 7:return new d(k[0],k[1],k[2],k[3],k[4],k[5],k[6])}var V=In(d.prototype),at=d.apply(V,k);return Ei(at)?at:V}}function Xl(d){return function(k,V,at){var ct=xi(k);if(!Ji(k)){var yt=Ne(V,3);k=Pi(k),V=function(Ot){return yt(ct[Ot],Ot,ct)}}var St=d(k,V,at);return St>-1?ct[yt?k[St]:St]:v}}function Zl(d){return Dr(function(k){var V=k.length,at=V,ct=fr.prototype.thru;for(d&&k.reverse();at--;){var yt=k[at];if(typeof yt!="function")throw new hr(S);if(ct&&!St&&ea(yt)=="wrapper")var St=new fr([],!0)}for(at=St?at:V;++at<V;){var Ot=ea(yt=k[at]),Ct=Ot=="wrapper"?Vs(yt):v;St=Ct&&Js(Ct[0])&&Ct[1]==(P|E|M|N)&&!Ct[4].length&&Ct[9]==1?St[ea(Ct[0])].apply(St,Ct[3]):yt.length==1&&Js(yt)?St[Ot]():St.thru(yt)}return function(){var oe=arguments,ne=oe[0];if(St&&oe.length==1&&We(ne))return St.plant(ne).value();for(var le=0,Me=V?k[le].apply(this,oe):ne;++le<V;)Me=k[le].call(this,Me);return Me}})}function Go(d,k,V,at,ct,yt,St,Ot,Ct,oe){var ne=k&P,le=k&u,Me=k&w,_e=k&(E|I),Ie=k&$,se=Me?v:Qn(d);return function he(){for(var Be=arguments.length,pe=me(Be),Fe=Be;Fe--;)pe[Fe]=arguments[Fe];if(_e)var Ue=Tn(he),vi=function(Ti,Zi){for(var _i=Ti.length,Fi=0;_i--;)Ti[_i]===Zi&&++Fi;return Fi}(pe,Ue);if(at&&(pe=zl(pe,at,ct,_e)),yt&&(pe=$l(pe,yt,St,_e)),Be-=vi,_e&&Be<oe){var Ee=Xr(pe,Ue);return Gl(d,k,Go,he.placeholder,V,pe,Ee,Ot,Ct,oe-Be)}var Pe=le?V:this,Ni=Me?Pe[d]:d;return Be=pe.length,Ot?pe=function(Ti,Zi){for(var _i=Ti.length,Fi=Ui(Zi.length,_i),Rr=Ki(Ti);Fi--;){var tn=Zi[Fi];Ti[Fi]=Ur(tn,_i)?Rr[tn]:v}return Ti}(pe,Ot):Ie&&Be>1&&pe.reverse(),ne&&Ct<Be&&(pe.length=Ct),this&&this!==de&&this instanceof he&&(Ni=se||Qn(Ni)),Ni.apply(Pe,pe)}}function Kl(d,k){return function(V,at){return function(ct,yt,St,Ot){return Tr(ct,function(Ct,oe,ne){yt(Ot,St(Ct),oe,ne)}),Ot}(V,d,k(at),{})}}function Yo(d,k){return function(V,at){var ct;if(V===v&&at===v)return k;if(V!==v&&(ct=V),at!==v){if(ct===v)return at;typeof V=="string"||typeof at=="string"?(V=nr(V),at=nr(at)):(V=Nl(V),at=Nl(at)),ct=d(V,at)}return ct}}function zs(d){return Dr(function(k){return k=Si(k,rr(Ne())),Xe(function(V){var at=this;return d(k,function(ct){return ir(ct,at,V)})})})}function Qo(d,k){var V=(k=k===v?" ":nr(k)).length;if(V<2)return V?Cs(k,d):k;var at=Cs(k,Uo(d/_n(k)));return xn(k)?Yr(Mr(at),0,d).join(""):at.slice(0,d)}function Jl(d){return function(k,V,at){return at&&typeof at!="number"&&Xi(k,V,at)&&(V=at=v),k=Fr(k),V===v?(V=k,k=0):V=Fr(V),function(ct,yt,St,Ot){for(var Ct=-1,oe=Ri(Uo((yt-ct)/(St||1)),0),ne=me(oe);oe--;)ne[Ot?oe:++Ct]=ct,ct+=St;return ne}(k,V,at=at===v?k<V?1:-1:Fr(at),d)}}function ta(d){return function(k,V){return typeof k=="string"&&typeof V=="string"||(k=gr(k),V=gr(V)),d(k,V)}}function Gl(d,k,V,at,ct,yt,St,Ot,Ct,oe){var ne=k&E;k|=ne?M:B,(k&=~(ne?B:M))&b||(k&=~(u|w));var le=[d,k,ct,ne?yt:v,ne?St:v,ne?v:yt,ne?v:St,Ot,Ct,oe],Me=V.apply(v,le);return Js(d)&&ch(Me,le),Me.placeholder=at,lh(Me,d,k)}function $s(d){var k=Ar[d];return function(V,at){if(V=gr(V),(at=at==null?0:Ui(Ve(at),292))&&ll(V)){var ct=(yi(V)+"e").split("e");return+((ct=(yi(k(ct[0]+"e"+(+ct[1]+at)))+"e").split("e"))[0]+"e"+(+ct[1]-at))}return k(V)}}var m0=En&&1/Oo(new En([,-0]))[1]==ot?function(d){return new En(d)}:pu;function Yl(d){return function(k){var V=qi(k);return V==G?bs(k):V==gt?Cd(k):function(at,ct){return Si(ct,function(yt){return[yt,at[yt]]})}(k,d(k))}}function Lr(d,k,V,at,ct,yt,St,Ot){var Ct=k&w;if(!Ct&&typeof d!="function")throw new hr(S);var oe=at?at.length:0;if(oe||(k&=~(M|B),at=ct=v),St=St===v?St:Ri(Ve(St),0),Ot=Ot===v?Ot:Ve(Ot),oe-=ct?ct.length:0,k&B){var ne=at,le=ct;at=ct=v}var Me=Ct?v:Vs(d),_e=[d,k,V,at,ct,ne,le,yt,St,Ot];if(Me&&function(se,he){var Be=se[1],pe=he[1],Fe=Be|pe,Ue=Fe<(u|w|P),vi=pe==P&&Be==E||pe==P&&Be==N&&se[7].length<=he[8]||pe==(P|N)&&he[7].length<=he[8]&&Be==E;if(!Ue&&!vi)return se;pe&u&&(se[2]=he[2],Fe|=Be&u?0:b);var Ee=he[3];if(Ee){var Pe=se[3];se[3]=Pe?zl(Pe,Ee,he[4]):Ee,se[4]=Pe?Xr(se[3],p):he[4]}(Ee=he[5])&&(Pe=se[5],se[5]=Pe?$l(Pe,Ee,he[6]):Ee,se[6]=Pe?Xr(se[5],p):he[6]),(Ee=he[7])&&(se[7]=Ee),pe&P&&(se[8]=se[8]==null?he[8]:Ui(se[8],he[8])),se[9]==null&&(se[9]=he[9]),se[0]=he[0],se[1]=Fe}(_e,Me),d=_e[0],k=_e[1],V=_e[2],at=_e[3],ct=_e[4],!(Ot=_e[9]=_e[9]===v?Ct?0:d.length:Ri(_e[9]-oe,0))&&k&(E|I)&&(k&=~(E|I)),k&&k!=u)Ie=k==E||k==I?function(se,he,Be){var pe=Qn(se);return function Fe(){for(var Ue=arguments.length,vi=me(Ue),Ee=Ue,Pe=Tn(Fe);Ee--;)vi[Ee]=arguments[Ee];var Ni=Ue<3&&vi[0]!==Pe&&vi[Ue-1]!==Pe?[]:Xr(vi,Pe);return(Ue-=Ni.length)<Be?Gl(se,he,Go,Fe.placeholder,v,vi,Ni,v,v,Be-Ue):ir(this&&this!==de&&this instanceof Fe?pe:se,this,vi)}}(d,k,Ot):k!=M&&k!=(u|M)||ct.length?Go.apply(v,_e):function(se,he,Be,pe){var Fe=he&u,Ue=Qn(se);return function vi(){for(var Ee=-1,Pe=arguments.length,Ni=-1,Ti=pe.length,Zi=me(Ti+Pe),_i=this&&this!==de&&this instanceof vi?Ue:se;++Ni<Ti;)Zi[Ni]=pe[Ni];for(;Pe--;)Zi[Ni++]=arguments[++Ee];return ir(_i,Fe?Be:this,Zi)}}(d,k,V,at);else var Ie=function(se,he,Be){var pe=he&u,Fe=Qn(se);return function Ue(){return(this&&this!==de&&this instanceof Ue?Fe:se).apply(pe?Be:this,arguments)}}(d,k,V);return lh((Me?jl:ch)(Ie,_e),d,k)}function Ql(d,k,V,at){return d===v||_r(d,Sn[V])&&!bi.call(at,V)?k:d}function th(d,k,V,at,ct,yt){return Ei(d)&&Ei(k)&&(yt.set(k,d),Xo(d,k,v,th,yt),yt.delete(k)),d}function g0(d){return io(d)?v:d}function eh(d,k,V,at,ct,yt){var St=V&g,Ot=d.length,Ct=k.length;if(Ot!=Ct&&!(St&&Ct>Ot))return!1;var oe=yt.get(d),ne=yt.get(k);if(oe&&ne)return oe==k&&ne==d;var le=-1,Me=!0,_e=V&h?new un:v;for(yt.set(d,k),yt.set(k,d);++le<Ot;){var Ie=d[le],se=k[le];if(at)var he=St?at(se,Ie,le,k,d,yt):at(Ie,se,le,d,k,yt);if(he!==v){if(he)continue;Me=!1;break}if(_e){if(!ps(k,function(Be,pe){if(!zn(_e,pe)&&(Ie===Be||ct(Ie,Be,V,at,yt)))return _e.push(pe)})){Me=!1;break}}else if(Ie!==se&&!ct(Ie,se,V,at,yt)){Me=!1;break}}return yt.delete(d),yt.delete(k),Me}function Dr(d){return Ys(sh(d,v,gh),d+"")}function Hs(d){return Ml(d,Pi,Zs)}function Ws(d){return Ml(d,Gi,ih)}var Vs=Fo?function(d){return Fo.get(d)}:pu;function ea(d){for(var k=d.name+"",V=kn[k],at=bi.call(kn,k)?V.length:0;at--;){var ct=V[at],yt=ct.func;if(yt==null||yt==d)return ct.name}return k}function Tn(d){return(bi.call(dt,"placeholder")?dt:d).placeholder}function Ne(){var d=dt.iteratee||hu;return d=d===hu?Sl:d,arguments.length?d(arguments[0],arguments[1]):d}function ia(d,k){var V,at,ct=d.__data__;return((at=typeof(V=k))=="string"||at=="number"||at=="symbol"||at=="boolean"?V!=="__proto__":V===null)?ct[typeof k=="string"?"string":"hash"]:ct.map}function Xs(d){for(var k=Pi(d),V=k.length;V--;){var at=k[V],ct=d[at];k[V]=[at,ct,oh(ct)]}return k}function hn(d,k){var V=function(at,ct){return at==null?v:at[ct]}(d,k);return _l(V)?V:v}var Zs=Ms?function(d){return d==null?[]:(d=xi(d),Wr(Ms(d),function(k){return ul.call(d,k)}))}:du,ih=Ms?function(d){for(var k=[];d;)Vr(k,Zs(d)),d=Po(d);return k}:du,qi=Vi;function rh(d,k,V){for(var at=-1,ct=(k=Gr(k,d)).length,yt=!1;++at<ct;){var St=jr(k[at]);if(!(yt=d!=null&&V(d,St)))break;d=d[St]}return yt||++at!=ct?yt:!!(ct=d==null?0:d.length)&&ca(ct)&&Ur(St,ct)&&(We(d)||pn(d))}function nh(d){return typeof d.constructor!="function"||to(d)?{}:In(Po(d))}function v0(d){return We(d)||pn(d)||!!(cl&&d&&d[cl])}function Ur(d,k){var V=typeof d;return!!(k=k??t)&&(V=="number"||V!="symbol"&&Ft.test(d))&&d>-1&&d%1==0&&d<k}function Xi(d,k,V){if(!Ei(V))return!1;var at=typeof k;return!!(at=="number"?Ji(V)&&Ur(k,V.length):at=="string"&&k in V)&&_r(V[k],d)}function Ks(d,k){if(We(d))return!1;var V=typeof d;return!(V!="number"&&V!="symbol"&&V!="boolean"&&d!=null&&!or(d))||Nt.test(d)||!ye.test(d)||k!=null&&d in xi(k)}function Js(d){var k=ea(d),V=dt[k];if(typeof V!="function"||!(k in Qe.prototype))return!1;if(d===V)return!0;var at=Vs(V);return!!at&&d===at[0]}(xs&&qi(new xs(new ArrayBuffer(1)))!=tt||Hn&&qi(new Hn)!=G||_s&&qi(_s.resolve())!=nt||En&&qi(new En)!=gt||Wn&&qi(new Wn)!=It)&&(qi=function(d){var k=Vi(d),V=k==st?d.constructor:v,at=V?fn(V):"";if(at)switch(at){case Yd:return tt;case Qd:return G;case t0:return nt;case e0:return gt;case i0:return It}return k});var y0=Bo?qr:mu;function to(d){var k=d&&d.constructor;return d===(typeof k=="function"&&k.prototype||Sn)}function oh(d){return d==d&&!Ei(d)}function ah(d,k){return function(V){return V!=null&&V[d]===k&&(k!==v||d in xi(V))}}function sh(d,k,V){return k=Ri(k===v?d.length-1:k,0),function(){for(var at=arguments,ct=-1,yt=Ri(at.length-k,0),St=me(yt);++ct<yt;)St[ct]=at[k+ct];ct=-1;for(var Ot=me(k+1);++ct<k;)Ot[ct]=at[ct];return Ot[k]=V(St),ir(d,this,Ot)}}function uh(d,k){return k.length<2?d:ln(d,dr(k,0,-1))}function Gs(d,k){if((k!=="constructor"||typeof d[k]!="function")&&k!="__proto__")return d[k]}var ch=hh(jl),eo=Wd||function(d,k){return de.setTimeout(d,k)},Ys=hh(h0);function lh(d,k,V){var at=k+"";return Ys(d,function(ct,yt){var St=yt.length;if(!St)return ct;var Ot=St-1;return yt[Ot]=(St>1?"& ":"")+yt[Ot],yt=yt.join(St>2?", ":" "),ct.replace(Dt,`{
|
|
76
|
+
/* [wrapped with `+yt+`] */
|
|
77
|
+
`)}(at,function(ct,yt){return lr(s,function(St){var Ot="_."+St[0];yt&St[1]&&!ko(ct,Ot)&&ct.push(Ot)}),ct.sort()}(function(ct){var yt=ct.match(Jt);return yt?yt[1].split(De):[]}(at),V)))}function hh(d){var k=0,V=0;return function(){var at=Kd(),ct=Q-(at-V);if(V=at,ct>0){if(++k>=et)return arguments[0]}else k=0;return d.apply(v,arguments)}}function ra(d,k){var V=-1,at=d.length,ct=at-1;for(k=k===v?at:k;++V<k;){var yt=Ns(V,ct),St=d[yt];d[yt]=d[V],d[V]=St}return d.length=k,d}var Qs,tu,fh=(Qs=sa(function(d){var k=[];return d.charCodeAt(0)===46&&k.push(""),d.replace(Xt,function(V,at,ct,yt){k.push(ct?yt.replace(ze,"$1"):at||V)}),k},function(d){return tu.size===500&&tu.clear(),d}),tu=Qs.cache,Qs);function jr(d){if(typeof d=="string"||or(d))return d;var k=d+"";return k=="0"&&1/d==-ot?"-0":k}function fn(d){if(d!=null){try{return jo.call(d)}catch{}try{return d+""}catch{}}return""}function ph(d){if(d instanceof Qe)return d.clone();var k=new fr(d.__wrapped__,d.__chain__);return k.__actions__=Ki(d.__actions__),k.__index__=d.__index__,k.__values__=d.__values__,k}var b0=Xe(function(d,k){return Ai(d)?Kn(d,Di(k,1,Ai,!0)):[]}),w0=Xe(function(d,k){var V=mr(k);return Ai(V)&&(V=v),Ai(d)?Kn(d,Di(k,1,Ai,!0),Ne(V,2)):[]}),M0=Xe(function(d,k){var V=mr(k);return Ai(V)&&(V=v),Ai(d)?Kn(d,Di(k,1,Ai,!0),v,V):[]});function dh(d,k,V){var at=d==null?0:d.length;if(!at)return-1;var ct=V==null?0:Ve(V);return ct<0&&(ct=Ri(at+ct,0)),Io(d,Ne(k,3),ct)}function mh(d,k,V){var at=d==null?0:d.length;if(!at)return-1;var ct=at-1;return V!==v&&(ct=Ve(V),ct=V<0?Ri(at+ct,0):Ui(ct,at-1)),Io(d,Ne(k,3),ct,!0)}function gh(d){return d!=null&&d.length?Di(d,1):[]}function vh(d){return d&&d.length?d[0]:v}var x0=Xe(function(d){var k=Si(d,Us);return k.length&&k[0]===d[0]?As(k):[]}),_0=Xe(function(d){var k=mr(d),V=Si(d,Us);return k===mr(V)?k=v:V.pop(),V.length&&V[0]===d[0]?As(V,Ne(k,2)):[]}),S0=Xe(function(d){var k=mr(d),V=Si(d,Us);return(k=typeof k=="function"?k:v)&&V.pop(),V.length&&V[0]===d[0]?As(V,v,k):[]});function mr(d){var k=d==null?0:d.length;return k?d[k-1]:v}var E0=Xe(yh);function yh(d,k){return d&&d.length&&k&&k.length?Rs(d,k):d}var k0=Dr(function(d,k){var V=d==null?0:d.length,at=Es(d,k);return Bl(d,Si(k,function(ct){return Ur(ct,V)?+ct:ct}).sort(Fl)),at});function eu(d){return d==null?d:Gd.call(d)}var I0=Xe(function(d){return Jr(Di(d,1,Ai,!0))}),O0=Xe(function(d){var k=mr(d);return Ai(k)&&(k=v),Jr(Di(d,1,Ai,!0),Ne(k,2))}),A0=Xe(function(d){var k=mr(d);return k=typeof k=="function"?k:v,Jr(Di(d,1,Ai,!0),v,k)});function iu(d){if(!d||!d.length)return[];var k=0;return d=Wr(d,function(V){if(Ai(V))return k=Ri(V.length,k),!0}),vs(k,function(V){return Si(d,ds(V))})}function bh(d,k){if(!d||!d.length)return[];var V=iu(d);return k==null?V:Si(V,function(at){return ir(k,v,at)})}var T0=Xe(function(d,k){return Ai(d)?Kn(d,k):[]}),B0=Xe(function(d){return Ds(Wr(d,Ai))}),j0=Xe(function(d){var k=mr(d);return Ai(k)&&(k=v),Ds(Wr(d,Ai),Ne(k,2))}),R0=Xe(function(d){var k=mr(d);return k=typeof k=="function"?k:v,Ds(Wr(d,Ai),v,k)}),N0=Xe(iu),C0=Xe(function(d){var k=d.length,V=k>1?d[k-1]:v;return V=typeof V=="function"?(d.pop(),V):v,bh(d,V)});function wh(d){var k=dt(d);return k.__chain__=!0,k}function na(d,k){return k(d)}var P0=Dr(function(d){var k=d.length,V=k?d[0]:0,at=this.__wrapped__,ct=function(yt){return Es(yt,d)};return!(k>1||this.__actions__.length)&&at instanceof Qe&&Ur(V)?((at=at.slice(V,+V+(k?1:0))).__actions__.push({func:na,args:[ct],thisArg:v}),new fr(at,this.__chain__).thru(function(yt){return k&&!yt.length&&yt.push(v),yt})):this.thru(ct)}),L0=Jo(function(d,k,V){bi.call(d,V)?++d[V]:Pr(d,V,1)}),D0=Xl(dh),U0=Xl(mh);function Mh(d,k){return(We(d)?lr:Kr)(d,Ne(k,3))}function xh(d,k){return(We(d)?Od:yl)(d,Ne(k,3))}var q0=Jo(function(d,k,V){bi.call(d,V)?d[V].push(k):Pr(d,V,[k])}),F0=Xe(function(d,k,V){var at=-1,ct=typeof k=="function",yt=Ji(d)?me(d.length):[];return Kr(d,function(St){yt[++at]=ct?ir(k,St,V):Jn(St,k,V)}),yt}),z0=Jo(function(d,k,V){Pr(d,V,k)});function oa(d,k){return(We(d)?Si:El)(d,Ne(k,3))}var $0=Jo(function(d,k,V){d[V?0:1].push(k)},function(){return[[],[]]}),H0=Xe(function(d,k){if(d==null)return[];var V=k.length;return V>1&&Xi(d,k[0],k[1])?k=[]:V>2&&Xi(k[0],k[1],k[2])&&(k=[k[0]]),Al(d,Di(k,1),[])}),aa=Hd||function(){return de.Date.now()};function _h(d,k,V){return k=V?v:k,k=d&&k==null?d.length:k,Lr(d,P,v,v,v,v,k)}function Sh(d,k){var V;if(typeof k!="function")throw new hr(S);return d=Ve(d),function(){return--d>0&&(V=k.apply(this,arguments)),d<=1&&(k=v),V}}var ru=Xe(function(d,k,V){var at=u;if(V.length){var ct=Xr(V,Tn(ru));at|=M}return Lr(d,at,k,V,ct)}),Eh=Xe(function(d,k,V){var at=u|w;if(V.length){var ct=Xr(V,Tn(Eh));at|=M}return Lr(k,at,d,V,ct)});function kh(d,k,V){var at,ct,yt,St,Ot,Ct,oe=0,ne=!1,le=!1,Me=!0;if(typeof d!="function")throw new hr(S);function _e(pe){var Fe=at,Ue=ct;return at=ct=v,oe=pe,St=d.apply(Ue,Fe)}function Ie(pe){var Fe=pe-Ct;return Ct===v||Fe>=k||Fe<0||le&&pe-oe>=yt}function se(){var pe=aa();if(Ie(pe))return he(pe);Ot=eo(se,function(Fe){var Ue=k-(Fe-Ct);return le?Ui(Ue,yt-(Fe-oe)):Ue}(pe))}function he(pe){return Ot=v,Me&&at?_e(pe):(at=ct=v,St)}function Be(){var pe=aa(),Fe=Ie(pe);if(at=arguments,ct=this,Ct=pe,Fe){if(Ot===v)return function(Ue){return oe=Ue,Ot=eo(se,k),ne?_e(Ue):St}(Ct);if(le)return Dl(Ot),Ot=eo(se,k),_e(Ct)}return Ot===v&&(Ot=eo(se,k)),St}return k=gr(k)||0,Ei(V)&&(ne=!!V.leading,yt=(le="maxWait"in V)?Ri(gr(V.maxWait)||0,k):yt,Me="trailing"in V?!!V.trailing:Me),Be.cancel=function(){Ot!==v&&Dl(Ot),oe=0,at=Ct=ct=Ot=v},Be.flush=function(){return Ot===v?St:he(aa())},Be}var W0=Xe(function(d,k){return vl(d,1,k)}),V0=Xe(function(d,k,V){return vl(d,gr(k)||0,V)});function sa(d,k){if(typeof d!="function"||k!=null&&typeof k!="function")throw new hr(S);var V=function(){var at=arguments,ct=k?k.apply(this,at):at[0],yt=V.cache;if(yt.has(ct))return yt.get(ct);var St=d.apply(this,at);return V.cache=yt.set(ct,St)||yt,St};return V.cache=new(sa.Cache||Cr),V}function ua(d){if(typeof d!="function")throw new hr(S);return function(){var k=arguments;switch(k.length){case 0:return!d.call(this);case 1:return!d.call(this,k[0]);case 2:return!d.call(this,k[0],k[1]);case 3:return!d.call(this,k[0],k[1],k[2])}return!d.apply(this,k)}}sa.Cache=Cr;var X0=d0(function(d,k){var V=(k=k.length==1&&We(k[0])?Si(k[0],rr(Ne())):Si(Di(k,1),rr(Ne()))).length;return Xe(function(at){for(var ct=-1,yt=Ui(at.length,V);++ct<yt;)at[ct]=k[ct].call(this,at[ct]);return ir(d,this,at)})}),nu=Xe(function(d,k){var V=Xr(k,Tn(nu));return Lr(d,M,v,k,V)}),Ih=Xe(function(d,k){var V=Xr(k,Tn(Ih));return Lr(d,B,v,k,V)}),Z0=Dr(function(d,k){return Lr(d,N,v,v,v,k)});function _r(d,k){return d===k||d!=d&&k!=k}var K0=ta(Os),J0=ta(function(d,k){return d>=k}),pn=xl(function(){return arguments}())?xl:function(d){return Ii(d)&&bi.call(d,"callee")&&!ul.call(d,"callee")},We=me.isArray,G0=wr?rr(wr):function(d){return Ii(d)&&Vi(d)==J};function Ji(d){return d!=null&&ca(d.length)&&!qr(d)}function Ai(d){return Ii(d)&&Ji(d)}var Qr=Vd||mu,Y0=Wi?rr(Wi):function(d){return Ii(d)&&Vi(d)==R};function ou(d){if(!Ii(d))return!1;var k=Vi(d);return k==Z||k==q||typeof d.message=="string"&&typeof d.name=="string"&&!io(d)}function qr(d){if(!Ei(d))return!1;var k=Vi(d);return k==rt||k==D||k==j||k==ht}function Oh(d){return typeof d=="number"&&d==Ve(d)}function ca(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=t}function Ei(d){var k=typeof d;return d!=null&&(k=="object"||k=="function")}function Ii(d){return d!=null&&typeof d=="object"}var Ah=Or?rr(Or):function(d){return Ii(d)&&qi(d)==G};function Th(d){return typeof d=="number"||Ii(d)&&Vi(d)==z}function io(d){if(!Ii(d)||Vi(d)!=st)return!1;var k=Po(d);if(k===null)return!0;var V=bi.call(k,"constructor")&&k.constructor;return typeof V=="function"&&V instanceof V&&jo.call(V)==qd}var au=Vc?rr(Vc):function(d){return Ii(d)&&Vi(d)==Et},Bh=Xc?rr(Xc):function(d){return Ii(d)&&qi(d)==gt};function la(d){return typeof d=="string"||!We(d)&&Ii(d)&&Vi(d)==bt}function or(d){return typeof d=="symbol"||Ii(d)&&Vi(d)==Bt}var Bn=Zc?rr(Zc):function(d){return Ii(d)&&ca(d.length)&&!!Se[Vi(d)]},Q0=ta(js),tm=ta(function(d,k){return d<=k});function jh(d){if(!d)return[];if(Ji(d))return la(d)?Mr(d):Ki(d);if($n&&d[$n])return function(V){for(var at,ct=[];!(at=V.next()).done;)ct.push(at.value);return ct}(d[$n]());var k=qi(d);return(k==G?bs:k==gt?Oo:jn)(d)}function Fr(d){return d?(d=gr(d))===ot||d===-ot?(d<0?-1:1)*n:d==d?d:0:d===0?d:0}function Ve(d){var k=Fr(d),V=k%1;return k==k?V?k-V:k:0}function Rh(d){return d?cn(Ve(d),0,i):0}function gr(d){if(typeof d=="number")return d;if(or(d))return r;if(Ei(d)){var k=typeof d.valueOf=="function"?d.valueOf():d;d=Ei(k)?k+"":k}if(typeof d!="string")return d===0?d:+d;d=tl(d);var V=qt.test(d);return V||He.test(d)?Hi(d.slice(2),V?2:8):$e.test(d)?r:+d}function Nh(d){return Br(d,Gi(d))}function yi(d){return d==null?"":nr(d)}var em=On(function(d,k){if(to(k)||Ji(k))Br(k,Pi(k),d);else for(var V in k)bi.call(k,V)&&Zn(d,V,k[V])}),Ch=On(function(d,k){Br(k,Gi(k),d)}),ha=On(function(d,k,V,at){Br(k,Gi(k),d,at)}),im=On(function(d,k,V,at){Br(k,Pi(k),d,at)}),rm=Dr(Es),nm=Xe(function(d,k){d=xi(d);var V=-1,at=k.length,ct=at>2?k[2]:v;for(ct&&Xi(k[0],k[1],ct)&&(at=1);++V<at;)for(var yt=k[V],St=Gi(yt),Ot=-1,Ct=St.length;++Ot<Ct;){var oe=St[Ot],ne=d[oe];(ne===v||_r(ne,Sn[oe])&&!bi.call(d,oe))&&(d[oe]=yt[oe])}return d}),om=Xe(function(d){return d.push(v,th),ir(Ph,v,d)});function su(d,k,V){var at=d==null?v:ln(d,k);return at===v?V:at}function uu(d,k){return d!=null&&rh(d,k,u0)}var am=Kl(function(d,k,V){k!=null&&typeof k.toString!="function"&&(k=Ro.call(k)),d[k]=V},lu(Yi)),sm=Kl(function(d,k,V){k!=null&&typeof k.toString!="function"&&(k=Ro.call(k)),bi.call(d,k)?d[k].push(V):d[k]=[V]},Ne),um=Xe(Jn);function Pi(d){return Ji(d)?pl(d):Bs(d)}function Gi(d){return Ji(d)?pl(d,!0):function(k){if(!Ei(k))return function(yt){var St=[];if(yt!=null)for(var Ot in xi(yt))St.push(Ot);return St}(k);var V=to(k),at=[];for(var ct in k)(ct!="constructor"||!V&&bi.call(k,ct))&&at.push(ct);return at}(d)}var cm=On(function(d,k,V){Xo(d,k,V)}),Ph=On(function(d,k,V,at){Xo(d,k,V,at)}),lm=Dr(function(d,k){var V={};if(d==null)return V;var at=!1;k=Si(k,function(yt){return yt=Gr(yt,d),at||(at=yt.length>1),yt}),Br(d,Ws(d),V),at&&(V=pr(V,c|l|f,g0));for(var ct=k.length;ct--;)Ls(V,k[ct]);return V}),hm=Dr(function(d,k){return d==null?{}:function(V,at){return Tl(V,at,function(ct,yt){return uu(V,yt)})}(d,k)});function Lh(d,k){if(d==null)return{};var V=Si(Ws(d),function(at){return[at]});return k=Ne(k),Tl(d,V,function(at,ct){return k(at,ct[0])})}var Dh=Yl(Pi),Uh=Yl(Gi);function jn(d){return d==null?[]:ys(d,Pi(d))}var fm=An(function(d,k,V){return k=k.toLowerCase(),d+(V?qh(k):k)});function qh(d){return cu(yi(d).toLowerCase())}function Fh(d){return(d=yi(d))&&d.replace(te,jd).replace(Tt,"")}var pm=An(function(d,k,V){return d+(V?"-":"")+k.toLowerCase()}),dm=An(function(d,k,V){return d+(V?" ":"")+k.toLowerCase()}),mm=Vl("toLowerCase"),gm=An(function(d,k,V){return d+(V?"_":"")+k.toLowerCase()}),vm=An(function(d,k,V){return d+(V?" ":"")+cu(k)}),ym=An(function(d,k,V){return d+(V?" ":"")+k.toUpperCase()}),cu=Vl("toUpperCase");function zh(d,k,V){return d=yi(d),(k=V?v:k)===v?function(at){return ie.test(at)}(d)?function(at){return at.match(zt)||[]}(d):function(at){return at.match(Lt)||[]}(d):d.match(k)||[]}var $h=Xe(function(d,k){try{return ir(d,v,k)}catch(V){return ou(V)?V:new oi(V)}}),bm=Dr(function(d,k){return lr(k,function(V){V=jr(V),Pr(d,V,ru(d[V],d))}),d});function lu(d){return function(){return d}}var wm=Zl(),Mm=Zl(!0);function Yi(d){return d}function hu(d){return Sl(typeof d=="function"?d:pr(d,c))}var xm=Xe(function(d,k){return function(V){return Jn(V,d,k)}}),_m=Xe(function(d,k){return function(V){return Jn(d,V,k)}});function fu(d,k,V){var at=Pi(k),ct=Vo(k,at);V!=null||Ei(k)&&(ct.length||!at.length)||(V=k,k=d,d=this,ct=Vo(k,Pi(k)));var yt=!(Ei(V)&&"chain"in V&&!V.chain),St=qr(d);return lr(ct,function(Ot){var Ct=k[Ot];d[Ot]=Ct,St&&(d.prototype[Ot]=function(){var oe=this.__chain__;if(yt||oe){var ne=d(this.__wrapped__);return(ne.__actions__=Ki(this.__actions__)).push({func:Ct,args:arguments,thisArg:d}),ne.__chain__=oe,ne}return Ct.apply(d,Vr([this.value()],arguments))})}),d}function pu(){}var Sm=zs(Si),Em=zs(Kc),km=zs(ps);function Hh(d){return Ks(d)?ds(jr(d)):function(k){return function(V){return ln(V,k)}}(d)}var Im=Jl(),Om=Jl(!0);function du(){return[]}function mu(){return!1}var gu,Am=Yo(function(d,k){return d+k},0),Tm=$s("ceil"),Bm=Yo(function(d,k){return d/k},1),jm=$s("floor"),Rm=Yo(function(d,k){return d*k},1),Nm=$s("round"),Cm=Yo(function(d,k){return d-k},0);return dt.after=function(d,k){if(typeof k!="function")throw new hr(S);return d=Ve(d),function(){if(--d<1)return k.apply(this,arguments)}},dt.ary=_h,dt.assign=em,dt.assignIn=Ch,dt.assignInWith=ha,dt.assignWith=im,dt.at=rm,dt.before=Sh,dt.bind=ru,dt.bindAll=bm,dt.bindKey=Eh,dt.castArray=function(){if(!arguments.length)return[];var d=arguments[0];return We(d)?d:[d]},dt.chain=wh,dt.chunk=function(d,k,V){k=(V?Xi(d,k,V):k===v)?1:Ri(Ve(k),0);var at=d==null?0:d.length;if(!at||k<1)return[];for(var ct=0,yt=0,St=me(Uo(at/k));ct<at;)St[yt++]=dr(d,ct,ct+=k);return St},dt.compact=function(d){for(var k=-1,V=d==null?0:d.length,at=0,ct=[];++k<V;){var yt=d[k];yt&&(ct[at++]=yt)}return ct},dt.concat=function(){var d=arguments.length;if(!d)return[];for(var k=me(d-1),V=arguments[0],at=d;at--;)k[at-1]=arguments[at];return Vr(We(V)?Ki(V):[V],Di(k,1))},dt.cond=function(d){var k=d==null?0:d.length,V=Ne();return d=k?Si(d,function(at){if(typeof at[1]!="function")throw new hr(S);return[V(at[0]),at[1]]}):[],Xe(function(at){for(var ct=-1;++ct<k;){var yt=d[ct];if(ir(yt[0],this,at))return ir(yt[1],this,at)}})},dt.conforms=function(d){return function(k){var V=Pi(k);return function(at){return gl(at,k,V)}}(pr(d,c))},dt.constant=lu,dt.countBy=L0,dt.create=function(d,k){var V=In(d);return k==null?V:ml(V,k)},dt.curry=function d(k,V,at){var ct=Lr(k,E,v,v,v,v,v,V=at?v:V);return ct.placeholder=d.placeholder,ct},dt.curryRight=function d(k,V,at){var ct=Lr(k,I,v,v,v,v,v,V=at?v:V);return ct.placeholder=d.placeholder,ct},dt.debounce=kh,dt.defaults=nm,dt.defaultsDeep=om,dt.defer=W0,dt.delay=V0,dt.difference=b0,dt.differenceBy=w0,dt.differenceWith=M0,dt.drop=function(d,k,V){var at=d==null?0:d.length;return at?dr(d,(k=V||k===v?1:Ve(k))<0?0:k,at):[]},dt.dropRight=function(d,k,V){var at=d==null?0:d.length;return at?dr(d,0,(k=at-(k=V||k===v?1:Ve(k)))<0?0:k):[]},dt.dropRightWhile=function(d,k){return d&&d.length?Ko(d,Ne(k,3),!0,!0):[]},dt.dropWhile=function(d,k){return d&&d.length?Ko(d,Ne(k,3),!0):[]},dt.fill=function(d,k,V,at){var ct=d==null?0:d.length;return ct?(V&&typeof V!="number"&&Xi(d,k,V)&&(V=0,at=ct),function(yt,St,Ot,Ct){var oe=yt.length;for((Ot=Ve(Ot))<0&&(Ot=-Ot>oe?0:oe+Ot),(Ct=Ct===v||Ct>oe?oe:Ve(Ct))<0&&(Ct+=oe),Ct=Ot>Ct?0:Rh(Ct);Ot<Ct;)yt[Ot++]=St;return yt}(d,k,V,at)):[]},dt.filter=function(d,k){return(We(d)?Wr:bl)(d,Ne(k,3))},dt.flatMap=function(d,k){return Di(oa(d,k),1)},dt.flatMapDeep=function(d,k){return Di(oa(d,k),ot)},dt.flatMapDepth=function(d,k,V){return V=V===v?1:Ve(V),Di(oa(d,k),V)},dt.flatten=gh,dt.flattenDeep=function(d){return d!=null&&d.length?Di(d,ot):[]},dt.flattenDepth=function(d,k){return d!=null&&d.length?Di(d,k=k===v?1:Ve(k)):[]},dt.flip=function(d){return Lr(d,$)},dt.flow=wm,dt.flowRight=Mm,dt.fromPairs=function(d){for(var k=-1,V=d==null?0:d.length,at={};++k<V;){var ct=d[k];at[ct[0]]=ct[1]}return at},dt.functions=function(d){return d==null?[]:Vo(d,Pi(d))},dt.functionsIn=function(d){return d==null?[]:Vo(d,Gi(d))},dt.groupBy=q0,dt.initial=function(d){return d!=null&&d.length?dr(d,0,-1):[]},dt.intersection=x0,dt.intersectionBy=_0,dt.intersectionWith=S0,dt.invert=am,dt.invertBy=sm,dt.invokeMap=F0,dt.iteratee=hu,dt.keyBy=z0,dt.keys=Pi,dt.keysIn=Gi,dt.map=oa,dt.mapKeys=function(d,k){var V={};return k=Ne(k,3),Tr(d,function(at,ct,yt){Pr(V,k(at,ct,yt),at)}),V},dt.mapValues=function(d,k){var V={};return k=Ne(k,3),Tr(d,function(at,ct,yt){Pr(V,ct,k(at,ct,yt))}),V},dt.matches=function(d){return kl(pr(d,c))},dt.matchesProperty=function(d,k){return Il(d,pr(k,c))},dt.memoize=sa,dt.merge=cm,dt.mergeWith=Ph,dt.method=xm,dt.methodOf=_m,dt.mixin=fu,dt.negate=ua,dt.nthArg=function(d){return d=Ve(d),Xe(function(k){return Ol(k,d)})},dt.omit=lm,dt.omitBy=function(d,k){return Lh(d,ua(Ne(k)))},dt.once=function(d){return Sh(2,d)},dt.orderBy=function(d,k,V,at){return d==null?[]:(We(k)||(k=k==null?[]:[k]),We(V=at?v:V)||(V=V==null?[]:[V]),Al(d,k,V))},dt.over=Sm,dt.overArgs=X0,dt.overEvery=Em,dt.overSome=km,dt.partial=nu,dt.partialRight=Ih,dt.partition=$0,dt.pick=hm,dt.pickBy=Lh,dt.property=Hh,dt.propertyOf=function(d){return function(k){return d==null?v:ln(d,k)}},dt.pull=E0,dt.pullAll=yh,dt.pullAllBy=function(d,k,V){return d&&d.length&&k&&k.length?Rs(d,k,Ne(V,2)):d},dt.pullAllWith=function(d,k,V){return d&&d.length&&k&&k.length?Rs(d,k,v,V):d},dt.pullAt=k0,dt.range=Im,dt.rangeRight=Om,dt.rearg=Z0,dt.reject=function(d,k){return(We(d)?Wr:bl)(d,ua(Ne(k,3)))},dt.remove=function(d,k){var V=[];if(!d||!d.length)return V;var at=-1,ct=[],yt=d.length;for(k=Ne(k,3);++at<yt;){var St=d[at];k(St,at,d)&&(V.push(St),ct.push(at))}return Bl(d,ct),V},dt.rest=function(d,k){if(typeof d!="function")throw new hr(S);return Xe(d,k=k===v?k:Ve(k))},dt.reverse=eu,dt.sampleSize=function(d,k,V){return k=(V?Xi(d,k,V):k===v)?1:Ve(k),(We(d)?r0:l0)(d,k)},dt.set=function(d,k,V){return d==null?d:Yn(d,k,V)},dt.setWith=function(d,k,V,at){return at=typeof at=="function"?at:v,d==null?d:Yn(d,k,V,at)},dt.shuffle=function(d){return(We(d)?n0:f0)(d)},dt.slice=function(d,k,V){var at=d==null?0:d.length;return at?(V&&typeof V!="number"&&Xi(d,k,V)?(k=0,V=at):(k=k==null?0:Ve(k),V=V===v?at:Ve(V)),dr(d,k,V)):[]},dt.sortBy=H0,dt.sortedUniq=function(d){return d&&d.length?Rl(d):[]},dt.sortedUniqBy=function(d,k){return d&&d.length?Rl(d,Ne(k,2)):[]},dt.split=function(d,k,V){return V&&typeof V!="number"&&Xi(d,k,V)&&(k=V=v),(V=V===v?i:V>>>0)?(d=yi(d))&&(typeof k=="string"||k!=null&&!au(k))&&!(k=nr(k))&&xn(d)?Yr(Mr(d),0,V):d.split(k,V):[]},dt.spread=function(d,k){if(typeof d!="function")throw new hr(S);return k=k==null?0:Ri(Ve(k),0),Xe(function(V){var at=V[k],ct=Yr(V,0,k);return at&&Vr(ct,at),ir(d,this,ct)})},dt.tail=function(d){var k=d==null?0:d.length;return k?dr(d,1,k):[]},dt.take=function(d,k,V){return d&&d.length?dr(d,0,(k=V||k===v?1:Ve(k))<0?0:k):[]},dt.takeRight=function(d,k,V){var at=d==null?0:d.length;return at?dr(d,(k=at-(k=V||k===v?1:Ve(k)))<0?0:k,at):[]},dt.takeRightWhile=function(d,k){return d&&d.length?Ko(d,Ne(k,3),!1,!0):[]},dt.takeWhile=function(d,k){return d&&d.length?Ko(d,Ne(k,3)):[]},dt.tap=function(d,k){return k(d),d},dt.throttle=function(d,k,V){var at=!0,ct=!0;if(typeof d!="function")throw new hr(S);return Ei(V)&&(at="leading"in V?!!V.leading:at,ct="trailing"in V?!!V.trailing:ct),kh(d,k,{leading:at,maxWait:k,trailing:ct})},dt.thru=na,dt.toArray=jh,dt.toPairs=Dh,dt.toPairsIn=Uh,dt.toPath=function(d){return We(d)?Si(d,jr):or(d)?[d]:Ki(fh(yi(d)))},dt.toPlainObject=Nh,dt.transform=function(d,k,V){var at=We(d),ct=at||Qr(d)||Bn(d);if(k=Ne(k,4),V==null){var yt=d&&d.constructor;V=ct?at?new yt:[]:Ei(d)&&qr(yt)?In(Po(d)):{}}return(ct?lr:Tr)(d,function(St,Ot,Ct){return k(V,St,Ot,Ct)}),V},dt.unary=function(d){return _h(d,1)},dt.union=I0,dt.unionBy=O0,dt.unionWith=A0,dt.uniq=function(d){return d&&d.length?Jr(d):[]},dt.uniqBy=function(d,k){return d&&d.length?Jr(d,Ne(k,2)):[]},dt.uniqWith=function(d,k){return k=typeof k=="function"?k:v,d&&d.length?Jr(d,v,k):[]},dt.unset=function(d,k){return d==null||Ls(d,k)},dt.unzip=iu,dt.unzipWith=bh,dt.update=function(d,k,V){return d==null?d:Cl(d,k,qs(V))},dt.updateWith=function(d,k,V,at){return at=typeof at=="function"?at:v,d==null?d:Cl(d,k,qs(V),at)},dt.values=jn,dt.valuesIn=function(d){return d==null?[]:ys(d,Gi(d))},dt.without=T0,dt.words=zh,dt.wrap=function(d,k){return nu(qs(k),d)},dt.xor=B0,dt.xorBy=j0,dt.xorWith=R0,dt.zip=N0,dt.zipObject=function(d,k){return Ll(d||[],k||[],Zn)},dt.zipObjectDeep=function(d,k){return Ll(d||[],k||[],Yn)},dt.zipWith=C0,dt.entries=Dh,dt.entriesIn=Uh,dt.extend=Ch,dt.extendWith=ha,fu(dt,dt),dt.add=Am,dt.attempt=$h,dt.camelCase=fm,dt.capitalize=qh,dt.ceil=Tm,dt.clamp=function(d,k,V){return V===v&&(V=k,k=v),V!==v&&(V=(V=gr(V))==V?V:0),k!==v&&(k=(k=gr(k))==k?k:0),cn(gr(d),k,V)},dt.clone=function(d){return pr(d,f)},dt.cloneDeep=function(d){return pr(d,c|f)},dt.cloneDeepWith=function(d,k){return pr(d,c|f,k=typeof k=="function"?k:v)},dt.cloneWith=function(d,k){return pr(d,f,k=typeof k=="function"?k:v)},dt.conformsTo=function(d,k){return k==null||gl(d,k,Pi(k))},dt.deburr=Fh,dt.defaultTo=function(d,k){return d==null||d!=d?k:d},dt.divide=Bm,dt.endsWith=function(d,k,V){d=yi(d),k=nr(k);var at=d.length,ct=V=V===v?at:cn(Ve(V),0,at);return(V-=k.length)>=0&&d.slice(V,ct)==k},dt.eq=_r,dt.escape=function(d){return(d=yi(d))&&Ht.test(d)?d.replace(Ce,Rd):d},dt.escapeRegExp=function(d){return(d=yi(d))&&jt.test(d)?d.replace(ke,"\\$&"):d},dt.every=function(d,k,V){var at=We(d)?Kc:a0;return V&&Xi(d,k,V)&&(k=v),at(d,Ne(k,3))},dt.find=D0,dt.findIndex=dh,dt.findKey=function(d,k){return Jc(d,Ne(k,3),Tr)},dt.findLast=U0,dt.findLastIndex=mh,dt.findLastKey=function(d,k){return Jc(d,Ne(k,3),Is)},dt.floor=jm,dt.forEach=Mh,dt.forEachRight=xh,dt.forIn=function(d,k){return d==null?d:ks(d,Ne(k,3),Gi)},dt.forInRight=function(d,k){return d==null?d:wl(d,Ne(k,3),Gi)},dt.forOwn=function(d,k){return d&&Tr(d,Ne(k,3))},dt.forOwnRight=function(d,k){return d&&Is(d,Ne(k,3))},dt.get=su,dt.gt=K0,dt.gte=J0,dt.has=function(d,k){return d!=null&&rh(d,k,s0)},dt.hasIn=uu,dt.head=vh,dt.identity=Yi,dt.includes=function(d,k,V,at){d=Ji(d)?d:jn(d),V=V&&!at?Ve(V):0;var ct=d.length;return V<0&&(V=Ri(ct+V,0)),la(d)?V<=ct&&d.indexOf(k,V)>-1:!!ct&&Mn(d,k,V)>-1},dt.indexOf=function(d,k,V){var at=d==null?0:d.length;if(!at)return-1;var ct=V==null?0:Ve(V);return ct<0&&(ct=Ri(at+ct,0)),Mn(d,k,ct)},dt.inRange=function(d,k,V){return k=Fr(k),V===v?(V=k,k=0):V=Fr(V),function(at,ct,yt){return at>=Ui(ct,yt)&&at<Ri(ct,yt)}(d=gr(d),k,V)},dt.invoke=um,dt.isArguments=pn,dt.isArray=We,dt.isArrayBuffer=G0,dt.isArrayLike=Ji,dt.isArrayLikeObject=Ai,dt.isBoolean=function(d){return d===!0||d===!1||Ii(d)&&Vi(d)==T},dt.isBuffer=Qr,dt.isDate=Y0,dt.isElement=function(d){return Ii(d)&&d.nodeType===1&&!io(d)},dt.isEmpty=function(d){if(d==null)return!0;if(Ji(d)&&(We(d)||typeof d=="string"||typeof d.splice=="function"||Qr(d)||Bn(d)||pn(d)))return!d.length;var k=qi(d);if(k==G||k==gt)return!d.size;if(to(d))return!Bs(d).length;for(var V in d)if(bi.call(d,V))return!1;return!0},dt.isEqual=function(d,k){return Gn(d,k)},dt.isEqualWith=function(d,k,V){var at=(V=typeof V=="function"?V:v)?V(d,k):v;return at===v?Gn(d,k,v,V):!!at},dt.isError=ou,dt.isFinite=function(d){return typeof d=="number"&&ll(d)},dt.isFunction=qr,dt.isInteger=Oh,dt.isLength=ca,dt.isMap=Ah,dt.isMatch=function(d,k){return d===k||Ts(d,k,Xs(k))},dt.isMatchWith=function(d,k,V){return V=typeof V=="function"?V:v,Ts(d,k,Xs(k),V)},dt.isNaN=function(d){return Th(d)&&d!=+d},dt.isNative=function(d){if(y0(d))throw new oi("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return _l(d)},dt.isNil=function(d){return d==null},dt.isNull=function(d){return d===null},dt.isNumber=Th,dt.isObject=Ei,dt.isObjectLike=Ii,dt.isPlainObject=io,dt.isRegExp=au,dt.isSafeInteger=function(d){return Oh(d)&&d>=-t&&d<=t},dt.isSet=Bh,dt.isString=la,dt.isSymbol=or,dt.isTypedArray=Bn,dt.isUndefined=function(d){return d===v},dt.isWeakMap=function(d){return Ii(d)&&qi(d)==It},dt.isWeakSet=function(d){return Ii(d)&&Vi(d)=="[object WeakSet]"},dt.join=function(d,k){return d==null?"":Xd.call(d,k)},dt.kebabCase=pm,dt.last=mr,dt.lastIndexOf=function(d,k,V){var at=d==null?0:d.length;if(!at)return-1;var ct=at;return V!==v&&(ct=(ct=Ve(V))<0?Ri(at+ct,0):Ui(ct,at-1)),k==k?function(yt,St,Ot){for(var Ct=Ot+1;Ct--;)if(yt[Ct]===St)return Ct;return Ct}(d,k,ct):Io(d,Gc,ct,!0)},dt.lowerCase=dm,dt.lowerFirst=mm,dt.lt=Q0,dt.lte=tm,dt.max=function(d){return d&&d.length?Wo(d,Yi,Os):v},dt.maxBy=function(d,k){return d&&d.length?Wo(d,Ne(k,2),Os):v},dt.mean=function(d){return Yc(d,Yi)},dt.meanBy=function(d,k){return Yc(d,Ne(k,2))},dt.min=function(d){return d&&d.length?Wo(d,Yi,js):v},dt.minBy=function(d,k){return d&&d.length?Wo(d,Ne(k,2),js):v},dt.stubArray=du,dt.stubFalse=mu,dt.stubObject=function(){return{}},dt.stubString=function(){return""},dt.stubTrue=function(){return!0},dt.multiply=Rm,dt.nth=function(d,k){return d&&d.length?Ol(d,Ve(k)):v},dt.noConflict=function(){return de._===this&&(de._=Fd),this},dt.noop=pu,dt.now=aa,dt.pad=function(d,k,V){d=yi(d);var at=(k=Ve(k))?_n(d):0;if(!k||at>=k)return d;var ct=(k-at)/2;return Qo(qo(ct),V)+d+Qo(Uo(ct),V)},dt.padEnd=function(d,k,V){d=yi(d);var at=(k=Ve(k))?_n(d):0;return k&&at<k?d+Qo(k-at,V):d},dt.padStart=function(d,k,V){d=yi(d);var at=(k=Ve(k))?_n(d):0;return k&&at<k?Qo(k-at,V)+d:d},dt.parseInt=function(d,k,V){return V||k==null?k=0:k&&(k=+k),Jd(yi(d).replace(Zt,""),k||0)},dt.random=function(d,k,V){if(V&&typeof V!="boolean"&&Xi(d,k,V)&&(k=V=v),V===v&&(typeof k=="boolean"?(V=k,k=v):typeof d=="boolean"&&(V=d,d=v)),d===v&&k===v?(d=0,k=1):(d=Fr(d),k===v?(k=d,d=0):k=Fr(k)),d>k){var at=d;d=k,k=at}if(V||d%1||k%1){var ct=hl();return Ui(d+ct*(k-d+Ge("1e-"+((ct+"").length-1))),k)}return Ns(d,k)},dt.reduce=function(d,k,V){var at=We(d)?fs:Qc,ct=arguments.length<3;return at(d,Ne(k,4),V,ct,Kr)},dt.reduceRight=function(d,k,V){var at=We(d)?Ad:Qc,ct=arguments.length<3;return at(d,Ne(k,4),V,ct,yl)},dt.repeat=function(d,k,V){return k=(V?Xi(d,k,V):k===v)?1:Ve(k),Cs(yi(d),k)},dt.replace=function(){var d=arguments,k=yi(d[0]);return d.length<3?k:k.replace(d[1],d[2])},dt.result=function(d,k,V){var at=-1,ct=(k=Gr(k,d)).length;for(ct||(ct=1,d=v);++at<ct;){var yt=d==null?v:d[jr(k[at])];yt===v&&(at=ct,yt=V),d=qr(yt)?yt.call(d):yt}return d},dt.round=Nm,dt.runInContext=$t,dt.sample=function(d){return(We(d)?dl:c0)(d)},dt.size=function(d){if(d==null)return 0;if(Ji(d))return la(d)?_n(d):d.length;var k=qi(d);return k==G||k==gt?d.size:Bs(d).length},dt.snakeCase=gm,dt.some=function(d,k,V){var at=We(d)?ps:p0;return V&&Xi(d,k,V)&&(k=v),at(d,Ne(k,3))},dt.sortedIndex=function(d,k){return Zo(d,k)},dt.sortedIndexBy=function(d,k,V){return Ps(d,k,Ne(V,2))},dt.sortedIndexOf=function(d,k){var V=d==null?0:d.length;if(V){var at=Zo(d,k);if(at<V&&_r(d[at],k))return at}return-1},dt.sortedLastIndex=function(d,k){return Zo(d,k,!0)},dt.sortedLastIndexBy=function(d,k,V){return Ps(d,k,Ne(V,2),!0)},dt.sortedLastIndexOf=function(d,k){if(d!=null&&d.length){var V=Zo(d,k,!0)-1;if(_r(d[V],k))return V}return-1},dt.startCase=vm,dt.startsWith=function(d,k,V){return d=yi(d),V=V==null?0:cn(Ve(V),0,d.length),k=nr(k),d.slice(V,V+k.length)==k},dt.subtract=Cm,dt.sum=function(d){return d&&d.length?gs(d,Yi):0},dt.sumBy=function(d,k){return d&&d.length?gs(d,Ne(k,2)):0},dt.template=function(d,k,V){var at=dt.templateSettings;V&&Xi(d,k,V)&&(k=v),d=yi(d),k=ha({},k,at,Ql);var ct,yt,St=ha({},k.imports,at.imports,Ql),Ot=Pi(St),Ct=ys(St,Ot),oe=0,ne=k.interpolate||Ae,le="__p += '",Me=ws((k.escape||Ae).source+"|"+ne.source+"|"+(ne===Wt?Ut:Ae).source+"|"+(k.evaluate||Ae).source+"|$","g"),_e="//# sourceURL="+(bi.call(k,"sourceURL")?(k.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++xe+"]")+`
|
|
78
|
+
`;d.replace(Me,function(he,Be,pe,Fe,Ue,vi){return pe||(pe=Fe),le+=d.slice(oe,vi).replace(Re,Nd),Be&&(ct=!0,le+=`' +
|
|
79
|
+
__e(`+Be+`) +
|
|
80
|
+
'`),Ue&&(yt=!0,le+=`';
|
|
81
|
+
`+Ue+`;
|
|
82
|
+
__p += '`),pe&&(le+=`' +
|
|
83
|
+
((__t = (`+pe+`)) == null ? '' : __t) +
|
|
84
|
+
'`),oe=vi+he.length,he}),le+=`';
|
|
85
|
+
`;var Ie=bi.call(k,"variable")&&k.variable;if(Ie){if(Qt.test(Ie))throw new oi("Invalid `variable` option passed into `_.template`")}else le=`with (obj) {
|
|
86
|
+
`+le+`
|
|
87
|
+
}
|
|
88
|
+
`;le=(yt?le.replace(At,""):le).replace(fe,"$1").replace(kt,"$1;"),le="function("+(Ie||"obj")+`) {
|
|
89
|
+
`+(Ie?"":`obj || (obj = {});
|
|
90
|
+
`)+"var __t, __p = ''"+(ct?", __e = _.escape":"")+(yt?`, __j = Array.prototype.join;
|
|
91
|
+
function print() { __p += __j.call(arguments, '') }
|
|
92
|
+
`:`;
|
|
93
|
+
`)+le+`return __p
|
|
94
|
+
}`;var se=$h(function(){return ji(Ot,_e+"return "+le).apply(v,Ct)});if(se.source=le,ou(se))throw se;return se},dt.times=function(d,k){if((d=Ve(d))<1||d>t)return[];var V=i,at=Ui(d,i);k=Ne(k),d-=i;for(var ct=vs(at,k);++V<d;)k(V);return ct},dt.toFinite=Fr,dt.toInteger=Ve,dt.toLength=Rh,dt.toLower=function(d){return yi(d).toLowerCase()},dt.toNumber=gr,dt.toSafeInteger=function(d){return d?cn(Ve(d),-t,t):d===0?d:0},dt.toString=yi,dt.toUpper=function(d){return yi(d).toUpperCase()},dt.trim=function(d,k,V){if((d=yi(d))&&(V||k===v))return tl(d);if(!d||!(k=nr(k)))return d;var at=Mr(d),ct=Mr(k);return Yr(at,el(at,ct),il(at,ct)+1).join("")},dt.trimEnd=function(d,k,V){if((d=yi(d))&&(V||k===v))return d.slice(0,nl(d)+1);if(!d||!(k=nr(k)))return d;var at=Mr(d);return Yr(at,0,il(at,Mr(k))+1).join("")},dt.trimStart=function(d,k,V){if((d=yi(d))&&(V||k===v))return d.replace(Zt,"");if(!d||!(k=nr(k)))return d;var at=Mr(d);return Yr(at,el(at,Mr(k))).join("")},dt.truncate=function(d,k){var V=30,at="...";if(Ei(k)){var ct="separator"in k?k.separator:ct;V="length"in k?Ve(k.length):V,at="omission"in k?nr(k.omission):at}var yt=(d=yi(d)).length;if(xn(d)){var St=Mr(d);yt=St.length}if(V>=yt)return d;var Ot=V-_n(at);if(Ot<1)return at;var Ct=St?Yr(St,0,Ot).join(""):d.slice(0,Ot);if(ct===v)return Ct+at;if(St&&(Ot+=Ct.length-Ot),au(ct)){if(d.slice(Ot).search(ct)){var oe,ne=Ct;for(ct.global||(ct=ws(ct.source,yi(Yt.exec(ct))+"g")),ct.lastIndex=0;oe=ct.exec(ne);)var le=oe.index;Ct=Ct.slice(0,le===v?Ot:le)}}else if(d.indexOf(nr(ct),Ot)!=Ot){var Me=Ct.lastIndexOf(ct);Me>-1&&(Ct=Ct.slice(0,Me))}return Ct+at},dt.unescape=function(d){return(d=yi(d))&&Pt.test(d)?d.replace(Kt,Pd):d},dt.uniqueId=function(d){var k=++Ud;return yi(d)+k},dt.upperCase=ym,dt.upperFirst=cu,dt.each=Mh,dt.eachRight=xh,dt.first=vh,fu(dt,(gu={},Tr(dt,function(d,k){bi.call(dt.prototype,k)||(gu[k]=d)}),gu),{chain:!1}),dt.VERSION="4.17.21",lr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(d){dt[d].placeholder=dt}),lr(["drop","take"],function(d,k){Qe.prototype[d]=function(V){V=V===v?1:Ri(Ve(V),0);var at=this.__filtered__&&!k?new Qe(this):this.clone();return at.__filtered__?at.__takeCount__=Ui(V,at.__takeCount__):at.__views__.push({size:Ui(V,i),type:d+(at.__dir__<0?"Right":"")}),at},Qe.prototype[d+"Right"]=function(V){return this.reverse()[d](V).reverse()}}),lr(["filter","map","takeWhile"],function(d,k){var V=k+1,at=V==1||V==3;Qe.prototype[d]=function(ct){var yt=this.clone();return yt.__iteratees__.push({iteratee:Ne(ct,3),type:V}),yt.__filtered__=yt.__filtered__||at,yt}}),lr(["head","last"],function(d,k){var V="take"+(k?"Right":"");Qe.prototype[d]=function(){return this[V](1).value()[0]}}),lr(["initial","tail"],function(d,k){var V="drop"+(k?"":"Right");Qe.prototype[d]=function(){return this.__filtered__?new Qe(this):this[V](1)}}),Qe.prototype.compact=function(){return this.filter(Yi)},Qe.prototype.find=function(d){return this.filter(d).head()},Qe.prototype.findLast=function(d){return this.reverse().find(d)},Qe.prototype.invokeMap=Xe(function(d,k){return typeof d=="function"?new Qe(this):this.map(function(V){return Jn(V,d,k)})}),Qe.prototype.reject=function(d){return this.filter(ua(Ne(d)))},Qe.prototype.slice=function(d,k){d=Ve(d);var V=this;return V.__filtered__&&(d>0||k<0)?new Qe(V):(d<0?V=V.takeRight(-d):d&&(V=V.drop(d)),k!==v&&(V=(k=Ve(k))<0?V.dropRight(-k):V.take(k-d)),V)},Qe.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},Qe.prototype.toArray=function(){return this.take(i)},Tr(Qe.prototype,function(d,k){var V=/^(?:filter|find|map|reject)|While$/.test(k),at=/^(?:head|last)$/.test(k),ct=dt[at?"take"+(k=="last"?"Right":""):k],yt=at||/^find/.test(k);ct&&(dt.prototype[k]=function(){var St=this.__wrapped__,Ot=at?[1]:arguments,Ct=St instanceof Qe,oe=Ot[0],ne=Ct||We(St),le=function(Be){var pe=ct.apply(dt,Vr([Be],Ot));return at&&Me?pe[0]:pe};ne&&V&&typeof oe=="function"&&oe.length!=1&&(Ct=ne=!1);var Me=this.__chain__,_e=!!this.__actions__.length,Ie=yt&&!Me,se=Ct&&!_e;if(!yt&&ne){St=se?St:new Qe(this);var he=d.apply(St,Ot);return he.__actions__.push({func:na,args:[le],thisArg:v}),new fr(he,Me)}return Ie&&se?d.apply(this,Ot):(he=this.thru(le),Ie?at?he.value()[0]:he.value():he)})}),lr(["pop","push","shift","sort","splice","unshift"],function(d){var k=To[d],V=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",at=/^(?:pop|shift)$/.test(d);dt.prototype[d]=function(){var ct=arguments;if(at&&!this.__chain__){var yt=this.value();return k.apply(We(yt)?yt:[],ct)}return this[V](function(St){return k.apply(We(St)?St:[],ct)})}}),Tr(Qe.prototype,function(d,k){var V=dt[k];if(V){var at=V.name+"";bi.call(kn,at)||(kn[at]=[]),kn[at].push({name:k,func:V})}}),kn[Go(v,w).name]=[{name:"wrapper",func:v}],Qe.prototype.clone=function(){var d=new Qe(this.__wrapped__);return d.__actions__=Ki(this.__actions__),d.__dir__=this.__dir__,d.__filtered__=this.__filtered__,d.__iteratees__=Ki(this.__iteratees__),d.__takeCount__=this.__takeCount__,d.__views__=Ki(this.__views__),d},Qe.prototype.reverse=function(){if(this.__filtered__){var d=new Qe(this);d.__dir__=-1,d.__filtered__=!0}else(d=this.clone()).__dir__*=-1;return d},Qe.prototype.value=function(){var d=this.__wrapped__.value(),k=this.__dir__,V=We(d),at=k<0,ct=V?d.length:0,yt=function(vi,Ee,Pe){for(var Ni=-1,Ti=Pe.length;++Ni<Ti;){var Zi=Pe[Ni],_i=Zi.size;switch(Zi.type){case"drop":vi+=_i;break;case"dropRight":Ee-=_i;break;case"take":Ee=Ui(Ee,vi+_i);break;case"takeRight":vi=Ri(vi,Ee-_i)}}return{start:vi,end:Ee}}(0,ct,this.__views__),St=yt.start,Ot=yt.end,Ct=Ot-St,oe=at?Ot:St-1,ne=this.__iteratees__,le=ne.length,Me=0,_e=Ui(Ct,this.__takeCount__);if(!V||!at&&ct==Ct&&_e==Ct)return Pl(d,this.__actions__);var Ie=[];t:for(;Ct--&&Me<_e;){for(var se=-1,he=d[oe+=k];++se<le;){var Be=ne[se],pe=Be.iteratee,Fe=Be.type,Ue=pe(he);if(Fe==2)he=Ue;else if(!Ue){if(Fe==1)continue t;break t}}Ie[Me++]=he}return Ie},dt.prototype.at=P0,dt.prototype.chain=function(){return wh(this)},dt.prototype.commit=function(){return new fr(this.value(),this.__chain__)},dt.prototype.next=function(){this.__values__===v&&(this.__values__=jh(this.value()));var d=this.__index__>=this.__values__.length;return{done:d,value:d?v:this.__values__[this.__index__++]}},dt.prototype.plant=function(d){for(var k,V=this;V instanceof $o;){var at=ph(V);at.__index__=0,at.__values__=v,k?ct.__wrapped__=at:k=at;var ct=at;V=V.__wrapped__}return ct.__wrapped__=d,k},dt.prototype.reverse=function(){var d=this.__wrapped__;if(d instanceof Qe){var k=d;return this.__actions__.length&&(k=new Qe(this)),(k=k.reverse()).__actions__.push({func:na,args:[eu],thisArg:v}),new fr(k,this.__chain__)}return this.thru(eu)},dt.prototype.toJSON=dt.prototype.valueOf=dt.prototype.value=function(){return Pl(this.__wrapped__,this.__actions__)},dt.prototype.first=dt.prototype.head,$n&&(dt.prototype[$n]=function(){return this}),dt}();de._=Ao,(x=(function(){return Ao}).call(_,y,_,W))===v||(W.exports=x)}).call(this)},2318:(W,_,y)=>{var x=y(5717),v=y(3349),m=y(9509).Buffer,S=new Array(16);function a(){v.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function p(h,u){return h<<u|h>>>32-u}function c(h,u,w,b,E,I,M){return p(h+(u&w|~u&b)+E+I|0,M)+u|0}function l(h,u,w,b,E,I,M){return p(h+(u&b|w&~b)+E+I|0,M)+u|0}function f(h,u,w,b,E,I,M){return p(h+(u^w^b)+E+I|0,M)+u|0}function g(h,u,w,b,E,I,M){return p(h+(w^(u|~b))+E+I|0,M)+u|0}x(a,v),a.prototype._update=function(){for(var h=S,u=0;u<16;++u)h[u]=this._block.readInt32LE(4*u);var w=this._a,b=this._b,E=this._c,I=this._d;w=c(w,b,E,I,h[0],3614090360,7),I=c(I,w,b,E,h[1],3905402710,12),E=c(E,I,w,b,h[2],606105819,17),b=c(b,E,I,w,h[3],3250441966,22),w=c(w,b,E,I,h[4],4118548399,7),I=c(I,w,b,E,h[5],1200080426,12),E=c(E,I,w,b,h[6],2821735955,17),b=c(b,E,I,w,h[7],4249261313,22),w=c(w,b,E,I,h[8],1770035416,7),I=c(I,w,b,E,h[9],2336552879,12),E=c(E,I,w,b,h[10],4294925233,17),b=c(b,E,I,w,h[11],2304563134,22),w=c(w,b,E,I,h[12],1804603682,7),I=c(I,w,b,E,h[13],4254626195,12),E=c(E,I,w,b,h[14],2792965006,17),w=l(w,b=c(b,E,I,w,h[15],1236535329,22),E,I,h[1],4129170786,5),I=l(I,w,b,E,h[6],3225465664,9),E=l(E,I,w,b,h[11],643717713,14),b=l(b,E,I,w,h[0],3921069994,20),w=l(w,b,E,I,h[5],3593408605,5),I=l(I,w,b,E,h[10],38016083,9),E=l(E,I,w,b,h[15],3634488961,14),b=l(b,E,I,w,h[4],3889429448,20),w=l(w,b,E,I,h[9],568446438,5),I=l(I,w,b,E,h[14],3275163606,9),E=l(E,I,w,b,h[3],4107603335,14),b=l(b,E,I,w,h[8],1163531501,20),w=l(w,b,E,I,h[13],2850285829,5),I=l(I,w,b,E,h[2],4243563512,9),E=l(E,I,w,b,h[7],1735328473,14),w=f(w,b=l(b,E,I,w,h[12],2368359562,20),E,I,h[5],4294588738,4),I=f(I,w,b,E,h[8],2272392833,11),E=f(E,I,w,b,h[11],1839030562,16),b=f(b,E,I,w,h[14],4259657740,23),w=f(w,b,E,I,h[1],2763975236,4),I=f(I,w,b,E,h[4],1272893353,11),E=f(E,I,w,b,h[7],4139469664,16),b=f(b,E,I,w,h[10],3200236656,23),w=f(w,b,E,I,h[13],681279174,4),I=f(I,w,b,E,h[0],3936430074,11),E=f(E,I,w,b,h[3],3572445317,16),b=f(b,E,I,w,h[6],76029189,23),w=f(w,b,E,I,h[9],3654602809,4),I=f(I,w,b,E,h[12],3873151461,11),E=f(E,I,w,b,h[15],530742520,16),w=g(w,b=f(b,E,I,w,h[2],3299628645,23),E,I,h[0],4096336452,6),I=g(I,w,b,E,h[7],1126891415,10),E=g(E,I,w,b,h[14],2878612391,15),b=g(b,E,I,w,h[5],4237533241,21),w=g(w,b,E,I,h[12],1700485571,6),I=g(I,w,b,E,h[3],2399980690,10),E=g(E,I,w,b,h[10],4293915773,15),b=g(b,E,I,w,h[1],2240044497,21),w=g(w,b,E,I,h[8],1873313359,6),I=g(I,w,b,E,h[15],4264355552,10),E=g(E,I,w,b,h[6],2734768916,15),b=g(b,E,I,w,h[13],1309151649,21),w=g(w,b,E,I,h[4],4149444226,6),I=g(I,w,b,E,h[11],3174756917,10),E=g(E,I,w,b,h[2],718787259,15),b=g(b,E,I,w,h[9],3951481745,21),this._a=this._a+w|0,this._b=this._b+b|0,this._c=this._c+E|0,this._d=this._d+I|0},a.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var h=m.allocUnsafe(16);return h.writeInt32LE(this._a,0),h.writeInt32LE(this._b,4),h.writeInt32LE(this._c,8),h.writeInt32LE(this._d,12),h},W.exports=a},3047:(W,_,y)=>{var x=y(6240),v=y(9931);function m(S){this.rand=S||new v.Rand}W.exports=m,m.create=function(S){return new m(S)},m.prototype._randbelow=function(S){var a=S.bitLength(),p=Math.ceil(a/8);do var c=new x(this.rand.generate(p));while(c.cmp(S)>=0);return c},m.prototype._randrange=function(S,a){var p=a.sub(S);return S.add(this._randbelow(p))},m.prototype.test=function(S,a,p){var c=S.bitLength(),l=x.mont(S),f=new x(1).toRed(l);a||(a=Math.max(1,c/48|0));for(var g=S.subn(1),h=0;!g.testn(h);h++);for(var u=S.shrn(h),w=g.toRed(l);a>0;a--){var b=this._randrange(new x(2),g);p&&p(b);var E=b.toRed(l).redPow(u);if(E.cmp(f)!==0&&E.cmp(w)!==0){for(var I=1;I<h;I++){if((E=E.redSqr()).cmp(f)===0)return!1;if(E.cmp(w)===0)break}if(I===h)return!1}}return!0},m.prototype.getDivisor=function(S,a){var p=S.bitLength(),c=x.mont(S),l=new x(1).toRed(c);a||(a=Math.max(1,p/48|0));for(var f=S.subn(1),g=0;!f.testn(g);g++);for(var h=S.shrn(g),u=f.toRed(c);a>0;a--){var w=this._randrange(new x(2),f),b=S.gcd(w);if(b.cmpn(1)!==0)return b;var E=w.toRed(c).redPow(h);if(E.cmp(l)!==0&&E.cmp(u)!==0){for(var I=1;I<g;I++){if((E=E.redSqr()).cmp(l)===0)return E.fromRed().subn(1).gcd(S);if(E.cmp(u)===0)break}if(I===g)return(E=E.redSqr()).fromRed().subn(1).gcd(S)}}return!1}},6240:function(W,_,y){(function(x,v){function m(t,n){if(!t)throw new Error(n||"Assertion failed")}function S(t,n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t}function a(t,n,r){if(a.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,t!==null&&(n!=="le"&&n!=="be"||(r=n,n=10),this._init(t||0,n||10,r||"be"))}var p;typeof x=="object"?x.exports=a:v.BN=a,a.BN=a,a.wordSize=26;try{p=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:y(6619).Buffer}catch{}function c(t,n){var r=t.charCodeAt(n);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function l(t,n,r){var i=c(t,r);return r-1>=n&&(i|=c(t,r-1)<<4),i}function f(t,n,r,i){for(var e=0,o=Math.min(t.length,r),s=n;s<o;s++){var A=t.charCodeAt(s)-48;e*=i,e+=A>=49?A-49+10:A>=17?A-17+10:A}return e}a.isBN=function(t){return t instanceof a||t!==null&&typeof t=="object"&&t.constructor.wordSize===a.wordSize&&Array.isArray(t.words)},a.max=function(t,n){return t.cmp(n)>0?t:n},a.min=function(t,n){return t.cmp(n)<0?t:n},a.prototype._init=function(t,n,r){if(typeof t=="number")return this._initNumber(t,n,r);if(typeof t=="object")return this._initArray(t,n,r);n==="hex"&&(n=16),m(n===(0|n)&&n>=2&&n<=36);var i=0;(t=t.toString().replace(/\s+/g,""))[0]==="-"&&(i++,this.negative=1),i<t.length&&(n===16?this._parseHex(t,i,r):(this._parseBase(t,n,i),r==="le"&&this._initArray(this.toArray(),n,r)))},a.prototype._initNumber=function(t,n,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(m(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),r==="le"&&this._initArray(this.toArray(),n,r)},a.prototype._initArray=function(t,n,r){if(m(typeof t.length=="number"),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var e,o,s=0;if(r==="be")for(i=t.length-1,e=0;i>=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[e]|=o<<s&67108863,this.words[e+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,e++);else if(r==="le")for(i=0,e=0;i<t.length;i+=3)o=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[e]|=o<<s&67108863,this.words[e+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,e++);return this.strip()},a.prototype._parseHex=function(t,n,r){this.length=Math.ceil((t.length-n)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var e,o=0,s=0;if(r==="be")for(i=t.length-1;i>=n;i-=2)e=l(t,n,i)<<o,this.words[s]|=67108863&e,o>=18?(o-=18,s+=1,this.words[s]|=e>>>26):o+=8;else for(i=(t.length-n)%2==0?n+1:n;i<t.length;i+=2)e=l(t,n,i)<<o,this.words[s]|=67108863&e,o>=18?(o-=18,s+=1,this.words[s]|=e>>>26):o+=8;this.strip()},a.prototype._parseBase=function(t,n,r){this.words=[0],this.length=1;for(var i=0,e=1;e<=67108863;e*=n)i++;i--,e=e/n|0;for(var o=t.length-r,s=o%i,A=Math.min(o,o-s)+r,C=0,j=r;j<A;j+=i)C=f(t,j,j+i,n),this.imuln(e),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C);if(s!==0){var T=1;for(C=f(t,j,t.length,n),j=0;j<s;j++)T*=n;this.imuln(T),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C)}this.strip()},a.prototype.copy=function(t){t.words=new Array(this.length);for(var n=0;n<this.length;n++)t.words[n]=this.words[n];t.length=this.length,t.negative=this.negative,t.red=this.red},a.prototype.clone=function(){var t=new a(null);return this.copy(t),t},a.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var g=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],u=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function w(t,n,r){r.negative=n.negative^t.negative;var i=t.length+n.length|0;r.length=i,i=i-1|0;var e=0|t.words[0],o=0|n.words[0],s=e*o,A=67108863&s,C=s/67108864|0;r.words[0]=A;for(var j=1;j<i;j++){for(var T=C>>>26,R=67108863&C,q=Math.min(j,n.length-1),Z=Math.max(0,j-t.length+1);Z<=q;Z++){var rt=j-Z|0;T+=(s=(e=0|t.words[rt])*(o=0|n.words[Z])+R)/67108864|0,R=67108863&s}r.words[j]=0|R,C=0|T}return C!==0?r.words[j]=0|C:r.length--,r.strip()}a.prototype.toString=function(t,n){var r;if(n=0|n||1,(t=t||10)===16||t==="hex"){r="";for(var i=0,e=0,o=0;o<this.length;o++){var s=this.words[o],A=(16777215&(s<<i|e)).toString(16);r=(e=s>>>24-i&16777215)!=0||o!==this.length-1?g[6-A.length]+A+r:A+r,(i+=2)>=26&&(i-=26,o--)}for(e!==0&&(r=e.toString(16)+r);r.length%n!=0;)r="0"+r;return this.negative!==0&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var C=h[t],j=u[t];r="";var T=this.clone();for(T.negative=0;!T.isZero();){var R=T.modn(j).toString(t);r=(T=T.idivn(j)).isZero()?R+r:g[C-R.length]+R+r}for(this.isZero()&&(r="0"+r);r.length%n!=0;)r="0"+r;return this.negative!==0&&(r="-"+r),r}m(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var t=this.words[0];return this.length===2?t+=67108864*this.words[1]:this.length===3&&this.words[2]===1?t+=4503599627370496+67108864*this.words[1]:this.length>2&&m(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,n){return m(p!==void 0),this.toArrayLike(p,t,n)},a.prototype.toArray=function(t,n){return this.toArrayLike(Array,t,n)},a.prototype.toArrayLike=function(t,n,r){var i=this.byteLength(),e=r||Math.max(1,i);m(i<=e,"byte array longer than desired length"),m(e>0,"Requested array length <= 0"),this.strip();var o,s,A=n==="le",C=new t(e),j=this.clone();if(A){for(s=0;!j.isZero();s++)o=j.andln(255),j.iushrn(8),C[s]=o;for(;s<e;s++)C[s]=0}else{for(s=0;s<e-i;s++)C[s]=0;for(s=0;!j.isZero();s++)o=j.andln(255),j.iushrn(8),C[e-s-1]=o}return C},Math.clz32?a.prototype._countBits=function(t){return 32-Math.clz32(t)}:a.prototype._countBits=function(t){var n=t,r=0;return n>=4096&&(r+=13,n>>>=13),n>=64&&(r+=7,n>>>=7),n>=8&&(r+=4,n>>>=4),n>=2&&(r+=2,n>>>=2),r+n},a.prototype._zeroBits=function(t){if(t===0)return 26;var n=t,r=0;return!(8191&n)&&(r+=13,n>>>=13),!(127&n)&&(r+=7,n>>>=7),!(15&n)&&(r+=4,n>>>=4),!(3&n)&&(r+=2,n>>>=2),!(1&n)&&r++,r},a.prototype.bitLength=function(){var t=this.words[this.length-1],n=this._countBits(t);return 26*(this.length-1)+n},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,n=0;n<this.length;n++){var r=this._zeroBits(this.words[n]);if(t+=r,r!==26)break}return t},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(t){return this.negative!==0?this.abs().inotn(t).iaddn(1):this.clone()},a.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]|t.words[n];return this.strip()},a.prototype.ior=function(t){return m((this.negative|t.negative)==0),this.iuor(t)},a.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var n;n=this.length>t.length?t:this;for(var r=0;r<n.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=n.length,this.strip()},a.prototype.iand=function(t){return m((this.negative|t.negative)==0),this.iuand(t)},a.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var n,r;this.length>t.length?(n=this,r=t):(n=t,r=this);for(var i=0;i<r.length;i++)this.words[i]=n.words[i]^r.words[i];if(this!==n)for(;i<n.length;i++)this.words[i]=n.words[i];return this.length=n.length,this.strip()},a.prototype.ixor=function(t){return m((this.negative|t.negative)==0),this.iuxor(t)},a.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){m(typeof t=="number"&&t>=0);var n=0|Math.ceil(t/26),r=t%26;this._expand(n),r>0&&n--;for(var i=0;i<n;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,n){m(typeof t=="number"&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=n?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},a.prototype.iadd=function(t){var n,r,i;if(this.negative!==0&&t.negative===0)return this.negative=0,n=this.isub(t),this.negative^=1,this._normSign();if(this.negative===0&&t.negative!==0)return t.negative=0,n=this.isub(t),t.negative=1,n._normSign();this.length>t.length?(r=this,i=t):(r=t,i=this);for(var e=0,o=0;o<i.length;o++)n=(0|r.words[o])+(0|i.words[o])+e,this.words[o]=67108863&n,e=n>>>26;for(;e!==0&&o<r.length;o++)n=(0|r.words[o])+e,this.words[o]=67108863&n,e=n>>>26;if(this.length=r.length,e!==0)this.words[this.length]=e,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},a.prototype.add=function(t){var n;return t.negative!==0&&this.negative===0?(t.negative=0,n=this.sub(t),t.negative^=1,n):t.negative===0&&this.negative!==0?(this.negative=0,n=t.sub(this),this.negative=1,n):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(t.negative!==0){t.negative=0;var n=this.iadd(t);return t.negative=1,n._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,i,e=this.cmp(t);if(e===0)return this.negative=0,this.length=1,this.words[0]=0,this;e>0?(r=this,i=t):(r=t,i=this);for(var o=0,s=0;s<i.length;s++)o=(n=(0|r.words[s])-(0|i.words[s])+o)>>26,this.words[s]=67108863&n;for(;o!==0&&s<r.length;s++)o=(n=(0|r.words[s])+o)>>26,this.words[s]=67108863&n;if(o===0&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(t){return this.clone().isub(t)};var b=function(t,n,r){var i,e,o,s=t.words,A=n.words,C=r.words,j=0,T=0|s[0],R=8191&T,q=T>>>13,Z=0|s[1],rt=8191&Z,D=Z>>>13,G=0|s[2],z=8191&G,X=G>>>13,st=0|s[3],nt=8191&st,ht=st>>>13,Et=0|s[4],gt=8191&Et,bt=Et>>>13,Bt=0|s[5],Mt=8191&Bt,It=Bt>>>13,J=0|s[6],tt=8191&J,F=J>>>13,H=0|s[7],U=8191&H,it=H>>>13,pt=0|s[8],ft=8191&pt,mt=pt>>>13,re=0|s[9],_t=8191&re,At=re>>>13,fe=0|A[0],kt=8191&fe,Kt=fe>>>13,Ce=0|A[1],Pt=8191&Ce,Ht=Ce>>>13,je=0|A[2],Rt=8191&je,Wt=je>>>13,ye=0|A[3],Nt=8191&ye,Xt=ye>>>13,ke=0|A[4],jt=8191&ke,Zt=ke>>>13,Oe=0|A[5],Dt=8191&Oe,Jt=Oe>>>13,De=0|A[6],Lt=8191&De,Qt=De>>>13,ze=0|A[7],Ut=8191&ze,Yt=ze>>>13,$e=0|A[8],qt=8191&$e,ee=$e>>>13,He=0|A[9],Ft=8191&He,te=He>>>13;r.negative=t.negative^n.negative,r.length=19;var Ae=(j+(i=Math.imul(R,kt))|0)+((8191&(e=(e=Math.imul(R,Kt))+Math.imul(q,kt)|0))<<13)|0;j=((o=Math.imul(q,Kt))+(e>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,i=Math.imul(rt,kt),e=(e=Math.imul(rt,Kt))+Math.imul(D,kt)|0,o=Math.imul(D,Kt);var Re=(j+(i=i+Math.imul(R,Pt)|0)|0)+((8191&(e=(e=e+Math.imul(R,Ht)|0)+Math.imul(q,Pt)|0))<<13)|0;j=((o=o+Math.imul(q,Ht)|0)+(e>>>13)|0)+(Re>>>26)|0,Re&=67108863,i=Math.imul(z,kt),e=(e=Math.imul(z,Kt))+Math.imul(X,kt)|0,o=Math.imul(X,Kt),i=i+Math.imul(rt,Pt)|0,e=(e=e+Math.imul(rt,Ht)|0)+Math.imul(D,Pt)|0,o=o+Math.imul(D,Ht)|0;var Ke=(j+(i=i+Math.imul(R,Rt)|0)|0)+((8191&(e=(e=e+Math.imul(R,Wt)|0)+Math.imul(q,Rt)|0))<<13)|0;j=((o=o+Math.imul(q,Wt)|0)+(e>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,i=Math.imul(nt,kt),e=(e=Math.imul(nt,Kt))+Math.imul(ht,kt)|0,o=Math.imul(ht,Kt),i=i+Math.imul(z,Pt)|0,e=(e=e+Math.imul(z,Ht)|0)+Math.imul(X,Pt)|0,o=o+Math.imul(X,Ht)|0,i=i+Math.imul(rt,Rt)|0,e=(e=e+Math.imul(rt,Wt)|0)+Math.imul(D,Rt)|0,o=o+Math.imul(D,Wt)|0;var ai=(j+(i=i+Math.imul(R,Nt)|0)|0)+((8191&(e=(e=e+Math.imul(R,Xt)|0)+Math.imul(q,Nt)|0))<<13)|0;j=((o=o+Math.imul(q,Xt)|0)+(e>>>13)|0)+(ai>>>26)|0,ai&=67108863,i=Math.imul(gt,kt),e=(e=Math.imul(gt,Kt))+Math.imul(bt,kt)|0,o=Math.imul(bt,Kt),i=i+Math.imul(nt,Pt)|0,e=(e=e+Math.imul(nt,Ht)|0)+Math.imul(ht,Pt)|0,o=o+Math.imul(ht,Ht)|0,i=i+Math.imul(z,Rt)|0,e=(e=e+Math.imul(z,Wt)|0)+Math.imul(X,Rt)|0,o=o+Math.imul(X,Wt)|0,i=i+Math.imul(rt,Nt)|0,e=(e=e+Math.imul(rt,Xt)|0)+Math.imul(D,Nt)|0,o=o+Math.imul(D,Xt)|0;var ri=(j+(i=i+Math.imul(R,jt)|0)|0)+((8191&(e=(e=e+Math.imul(R,Zt)|0)+Math.imul(q,jt)|0))<<13)|0;j=((o=o+Math.imul(q,Zt)|0)+(e>>>13)|0)+(ri>>>26)|0,ri&=67108863,i=Math.imul(Mt,kt),e=(e=Math.imul(Mt,Kt))+Math.imul(It,kt)|0,o=Math.imul(It,Kt),i=i+Math.imul(gt,Pt)|0,e=(e=e+Math.imul(gt,Ht)|0)+Math.imul(bt,Pt)|0,o=o+Math.imul(bt,Ht)|0,i=i+Math.imul(nt,Rt)|0,e=(e=e+Math.imul(nt,Wt)|0)+Math.imul(ht,Rt)|0,o=o+Math.imul(ht,Wt)|0,i=i+Math.imul(z,Nt)|0,e=(e=e+Math.imul(z,Xt)|0)+Math.imul(X,Nt)|0,o=o+Math.imul(X,Xt)|0,i=i+Math.imul(rt,jt)|0,e=(e=e+Math.imul(rt,Zt)|0)+Math.imul(D,jt)|0,o=o+Math.imul(D,Zt)|0;var si=(j+(i=i+Math.imul(R,Dt)|0)|0)+((8191&(e=(e=e+Math.imul(R,Jt)|0)+Math.imul(q,Dt)|0))<<13)|0;j=((o=o+Math.imul(q,Jt)|0)+(e>>>13)|0)+(si>>>26)|0,si&=67108863,i=Math.imul(tt,kt),e=(e=Math.imul(tt,Kt))+Math.imul(F,kt)|0,o=Math.imul(F,Kt),i=i+Math.imul(Mt,Pt)|0,e=(e=e+Math.imul(Mt,Ht)|0)+Math.imul(It,Pt)|0,o=o+Math.imul(It,Ht)|0,i=i+Math.imul(gt,Rt)|0,e=(e=e+Math.imul(gt,Wt)|0)+Math.imul(bt,Rt)|0,o=o+Math.imul(bt,Wt)|0,i=i+Math.imul(nt,Nt)|0,e=(e=e+Math.imul(nt,Xt)|0)+Math.imul(ht,Nt)|0,o=o+Math.imul(ht,Xt)|0,i=i+Math.imul(z,jt)|0,e=(e=e+Math.imul(z,Zt)|0)+Math.imul(X,jt)|0,o=o+Math.imul(X,Zt)|0,i=i+Math.imul(rt,Dt)|0,e=(e=e+Math.imul(rt,Jt)|0)+Math.imul(D,Dt)|0,o=o+Math.imul(D,Jt)|0;var ui=(j+(i=i+Math.imul(R,Lt)|0)|0)+((8191&(e=(e=e+Math.imul(R,Qt)|0)+Math.imul(q,Lt)|0))<<13)|0;j=((o=o+Math.imul(q,Qt)|0)+(e>>>13)|0)+(ui>>>26)|0,ui&=67108863,i=Math.imul(U,kt),e=(e=Math.imul(U,Kt))+Math.imul(it,kt)|0,o=Math.imul(it,Kt),i=i+Math.imul(tt,Pt)|0,e=(e=e+Math.imul(tt,Ht)|0)+Math.imul(F,Pt)|0,o=o+Math.imul(F,Ht)|0,i=i+Math.imul(Mt,Rt)|0,e=(e=e+Math.imul(Mt,Wt)|0)+Math.imul(It,Rt)|0,o=o+Math.imul(It,Wt)|0,i=i+Math.imul(gt,Nt)|0,e=(e=e+Math.imul(gt,Xt)|0)+Math.imul(bt,Nt)|0,o=o+Math.imul(bt,Xt)|0,i=i+Math.imul(nt,jt)|0,e=(e=e+Math.imul(nt,Zt)|0)+Math.imul(ht,jt)|0,o=o+Math.imul(ht,Zt)|0,i=i+Math.imul(z,Dt)|0,e=(e=e+Math.imul(z,Jt)|0)+Math.imul(X,Dt)|0,o=o+Math.imul(X,Jt)|0,i=i+Math.imul(rt,Lt)|0,e=(e=e+Math.imul(rt,Qt)|0)+Math.imul(D,Lt)|0,o=o+Math.imul(D,Qt)|0;var ci=(j+(i=i+Math.imul(R,Ut)|0)|0)+((8191&(e=(e=e+Math.imul(R,Yt)|0)+Math.imul(q,Ut)|0))<<13)|0;j=((o=o+Math.imul(q,Yt)|0)+(e>>>13)|0)+(ci>>>26)|0,ci&=67108863,i=Math.imul(ft,kt),e=(e=Math.imul(ft,Kt))+Math.imul(mt,kt)|0,o=Math.imul(mt,Kt),i=i+Math.imul(U,Pt)|0,e=(e=e+Math.imul(U,Ht)|0)+Math.imul(it,Pt)|0,o=o+Math.imul(it,Ht)|0,i=i+Math.imul(tt,Rt)|0,e=(e=e+Math.imul(tt,Wt)|0)+Math.imul(F,Rt)|0,o=o+Math.imul(F,Wt)|0,i=i+Math.imul(Mt,Nt)|0,e=(e=e+Math.imul(Mt,Xt)|0)+Math.imul(It,Nt)|0,o=o+Math.imul(It,Xt)|0,i=i+Math.imul(gt,jt)|0,e=(e=e+Math.imul(gt,Zt)|0)+Math.imul(bt,jt)|0,o=o+Math.imul(bt,Zt)|0,i=i+Math.imul(nt,Dt)|0,e=(e=e+Math.imul(nt,Jt)|0)+Math.imul(ht,Dt)|0,o=o+Math.imul(ht,Jt)|0,i=i+Math.imul(z,Lt)|0,e=(e=e+Math.imul(z,Qt)|0)+Math.imul(X,Lt)|0,o=o+Math.imul(X,Qt)|0,i=i+Math.imul(rt,Ut)|0,e=(e=e+Math.imul(rt,Yt)|0)+Math.imul(D,Ut)|0,o=o+Math.imul(D,Yt)|0;var li=(j+(i=i+Math.imul(R,qt)|0)|0)+((8191&(e=(e=e+Math.imul(R,ee)|0)+Math.imul(q,qt)|0))<<13)|0;j=((o=o+Math.imul(q,ee)|0)+(e>>>13)|0)+(li>>>26)|0,li&=67108863,i=Math.imul(_t,kt),e=(e=Math.imul(_t,Kt))+Math.imul(At,kt)|0,o=Math.imul(At,Kt),i=i+Math.imul(ft,Pt)|0,e=(e=e+Math.imul(ft,Ht)|0)+Math.imul(mt,Pt)|0,o=o+Math.imul(mt,Ht)|0,i=i+Math.imul(U,Rt)|0,e=(e=e+Math.imul(U,Wt)|0)+Math.imul(it,Rt)|0,o=o+Math.imul(it,Wt)|0,i=i+Math.imul(tt,Nt)|0,e=(e=e+Math.imul(tt,Xt)|0)+Math.imul(F,Nt)|0,o=o+Math.imul(F,Xt)|0,i=i+Math.imul(Mt,jt)|0,e=(e=e+Math.imul(Mt,Zt)|0)+Math.imul(It,jt)|0,o=o+Math.imul(It,Zt)|0,i=i+Math.imul(gt,Dt)|0,e=(e=e+Math.imul(gt,Jt)|0)+Math.imul(bt,Dt)|0,o=o+Math.imul(bt,Jt)|0,i=i+Math.imul(nt,Lt)|0,e=(e=e+Math.imul(nt,Qt)|0)+Math.imul(ht,Lt)|0,o=o+Math.imul(ht,Qt)|0,i=i+Math.imul(z,Ut)|0,e=(e=e+Math.imul(z,Yt)|0)+Math.imul(X,Ut)|0,o=o+Math.imul(X,Yt)|0,i=i+Math.imul(rt,qt)|0,e=(e=e+Math.imul(rt,ee)|0)+Math.imul(D,qt)|0,o=o+Math.imul(D,ee)|0;var hi=(j+(i=i+Math.imul(R,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(R,te)|0)+Math.imul(q,Ft)|0))<<13)|0;j=((o=o+Math.imul(q,te)|0)+(e>>>13)|0)+(hi>>>26)|0,hi&=67108863,i=Math.imul(_t,Pt),e=(e=Math.imul(_t,Ht))+Math.imul(At,Pt)|0,o=Math.imul(At,Ht),i=i+Math.imul(ft,Rt)|0,e=(e=e+Math.imul(ft,Wt)|0)+Math.imul(mt,Rt)|0,o=o+Math.imul(mt,Wt)|0,i=i+Math.imul(U,Nt)|0,e=(e=e+Math.imul(U,Xt)|0)+Math.imul(it,Nt)|0,o=o+Math.imul(it,Xt)|0,i=i+Math.imul(tt,jt)|0,e=(e=e+Math.imul(tt,Zt)|0)+Math.imul(F,jt)|0,o=o+Math.imul(F,Zt)|0,i=i+Math.imul(Mt,Dt)|0,e=(e=e+Math.imul(Mt,Jt)|0)+Math.imul(It,Dt)|0,o=o+Math.imul(It,Jt)|0,i=i+Math.imul(gt,Lt)|0,e=(e=e+Math.imul(gt,Qt)|0)+Math.imul(bt,Lt)|0,o=o+Math.imul(bt,Qt)|0,i=i+Math.imul(nt,Ut)|0,e=(e=e+Math.imul(nt,Yt)|0)+Math.imul(ht,Ut)|0,o=o+Math.imul(ht,Yt)|0,i=i+Math.imul(z,qt)|0,e=(e=e+Math.imul(z,ee)|0)+Math.imul(X,qt)|0,o=o+Math.imul(X,ee)|0;var fi=(j+(i=i+Math.imul(rt,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(rt,te)|0)+Math.imul(D,Ft)|0))<<13)|0;j=((o=o+Math.imul(D,te)|0)+(e>>>13)|0)+(fi>>>26)|0,fi&=67108863,i=Math.imul(_t,Rt),e=(e=Math.imul(_t,Wt))+Math.imul(At,Rt)|0,o=Math.imul(At,Wt),i=i+Math.imul(ft,Nt)|0,e=(e=e+Math.imul(ft,Xt)|0)+Math.imul(mt,Nt)|0,o=o+Math.imul(mt,Xt)|0,i=i+Math.imul(U,jt)|0,e=(e=e+Math.imul(U,Zt)|0)+Math.imul(it,jt)|0,o=o+Math.imul(it,Zt)|0,i=i+Math.imul(tt,Dt)|0,e=(e=e+Math.imul(tt,Jt)|0)+Math.imul(F,Dt)|0,o=o+Math.imul(F,Jt)|0,i=i+Math.imul(Mt,Lt)|0,e=(e=e+Math.imul(Mt,Qt)|0)+Math.imul(It,Lt)|0,o=o+Math.imul(It,Qt)|0,i=i+Math.imul(gt,Ut)|0,e=(e=e+Math.imul(gt,Yt)|0)+Math.imul(bt,Ut)|0,o=o+Math.imul(bt,Yt)|0,i=i+Math.imul(nt,qt)|0,e=(e=e+Math.imul(nt,ee)|0)+Math.imul(ht,qt)|0,o=o+Math.imul(ht,ee)|0;var Je=(j+(i=i+Math.imul(z,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(z,te)|0)+Math.imul(X,Ft)|0))<<13)|0;j=((o=o+Math.imul(X,te)|0)+(e>>>13)|0)+(Je>>>26)|0,Je&=67108863,i=Math.imul(_t,Nt),e=(e=Math.imul(_t,Xt))+Math.imul(At,Nt)|0,o=Math.imul(At,Xt),i=i+Math.imul(ft,jt)|0,e=(e=e+Math.imul(ft,Zt)|0)+Math.imul(mt,jt)|0,o=o+Math.imul(mt,Zt)|0,i=i+Math.imul(U,Dt)|0,e=(e=e+Math.imul(U,Jt)|0)+Math.imul(it,Dt)|0,o=o+Math.imul(it,Jt)|0,i=i+Math.imul(tt,Lt)|0,e=(e=e+Math.imul(tt,Qt)|0)+Math.imul(F,Lt)|0,o=o+Math.imul(F,Qt)|0,i=i+Math.imul(Mt,Ut)|0,e=(e=e+Math.imul(Mt,Yt)|0)+Math.imul(It,Ut)|0,o=o+Math.imul(It,Yt)|0,i=i+Math.imul(gt,qt)|0,e=(e=e+Math.imul(gt,ee)|0)+Math.imul(bt,qt)|0,o=o+Math.imul(bt,ee)|0;var pi=(j+(i=i+Math.imul(nt,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(nt,te)|0)+Math.imul(ht,Ft)|0))<<13)|0;j=((o=o+Math.imul(ht,te)|0)+(e>>>13)|0)+(pi>>>26)|0,pi&=67108863,i=Math.imul(_t,jt),e=(e=Math.imul(_t,Zt))+Math.imul(At,jt)|0,o=Math.imul(At,Zt),i=i+Math.imul(ft,Dt)|0,e=(e=e+Math.imul(ft,Jt)|0)+Math.imul(mt,Dt)|0,o=o+Math.imul(mt,Jt)|0,i=i+Math.imul(U,Lt)|0,e=(e=e+Math.imul(U,Qt)|0)+Math.imul(it,Lt)|0,o=o+Math.imul(it,Qt)|0,i=i+Math.imul(tt,Ut)|0,e=(e=e+Math.imul(tt,Yt)|0)+Math.imul(F,Ut)|0,o=o+Math.imul(F,Yt)|0,i=i+Math.imul(Mt,qt)|0,e=(e=e+Math.imul(Mt,ee)|0)+Math.imul(It,qt)|0,o=o+Math.imul(It,ee)|0;var gi=(j+(i=i+Math.imul(gt,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(gt,te)|0)+Math.imul(bt,Ft)|0))<<13)|0;j=((o=o+Math.imul(bt,te)|0)+(e>>>13)|0)+(gi>>>26)|0,gi&=67108863,i=Math.imul(_t,Dt),e=(e=Math.imul(_t,Jt))+Math.imul(At,Dt)|0,o=Math.imul(At,Jt),i=i+Math.imul(ft,Lt)|0,e=(e=e+Math.imul(ft,Qt)|0)+Math.imul(mt,Lt)|0,o=o+Math.imul(mt,Qt)|0,i=i+Math.imul(U,Ut)|0,e=(e=e+Math.imul(U,Yt)|0)+Math.imul(it,Ut)|0,o=o+Math.imul(it,Yt)|0,i=i+Math.imul(tt,qt)|0,e=(e=e+Math.imul(tt,ee)|0)+Math.imul(F,qt)|0,o=o+Math.imul(F,ee)|0;var ei=(j+(i=i+Math.imul(Mt,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(Mt,te)|0)+Math.imul(It,Ft)|0))<<13)|0;j=((o=o+Math.imul(It,te)|0)+(e>>>13)|0)+(ei>>>26)|0,ei&=67108863,i=Math.imul(_t,Lt),e=(e=Math.imul(_t,Qt))+Math.imul(At,Lt)|0,o=Math.imul(At,Qt),i=i+Math.imul(ft,Ut)|0,e=(e=e+Math.imul(ft,Yt)|0)+Math.imul(mt,Ut)|0,o=o+Math.imul(mt,Yt)|0,i=i+Math.imul(U,qt)|0,e=(e=e+Math.imul(U,ee)|0)+Math.imul(it,qt)|0,o=o+Math.imul(it,ee)|0;var ii=(j+(i=i+Math.imul(tt,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(tt,te)|0)+Math.imul(F,Ft)|0))<<13)|0;j=((o=o+Math.imul(F,te)|0)+(e>>>13)|0)+(ii>>>26)|0,ii&=67108863,i=Math.imul(_t,Ut),e=(e=Math.imul(_t,Yt))+Math.imul(At,Ut)|0,o=Math.imul(At,Yt),i=i+Math.imul(ft,qt)|0,e=(e=e+Math.imul(ft,ee)|0)+Math.imul(mt,qt)|0,o=o+Math.imul(mt,ee)|0;var Ye=(j+(i=i+Math.imul(U,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(U,te)|0)+Math.imul(it,Ft)|0))<<13)|0;j=((o=o+Math.imul(it,te)|0)+(e>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,i=Math.imul(_t,qt),e=(e=Math.imul(_t,ee))+Math.imul(At,qt)|0,o=Math.imul(At,ee);var di=(j+(i=i+Math.imul(ft,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(ft,te)|0)+Math.imul(mt,Ft)|0))<<13)|0;j=((o=o+Math.imul(mt,te)|0)+(e>>>13)|0)+(di>>>26)|0,di&=67108863;var ni=(j+(i=Math.imul(_t,Ft))|0)+((8191&(e=(e=Math.imul(_t,te))+Math.imul(At,Ft)|0))<<13)|0;return j=((o=Math.imul(At,te))+(e>>>13)|0)+(ni>>>26)|0,ni&=67108863,C[0]=Ae,C[1]=Re,C[2]=Ke,C[3]=ai,C[4]=ri,C[5]=si,C[6]=ui,C[7]=ci,C[8]=li,C[9]=hi,C[10]=fi,C[11]=Je,C[12]=pi,C[13]=gi,C[14]=ei,C[15]=ii,C[16]=Ye,C[17]=di,C[18]=ni,j!==0&&(C[19]=j,r.length++),r};function E(t,n,r){return new I().mulp(t,n,r)}function I(t,n){this.x=t,this.y=n}Math.imul||(b=w),a.prototype.mulTo=function(t,n){var r,i=this.length+t.length;return r=this.length===10&&t.length===10?b(this,t,n):i<63?w(this,t,n):i<1024?function(e,o,s){s.negative=o.negative^e.negative,s.length=e.length+o.length;for(var A=0,C=0,j=0;j<s.length-1;j++){var T=C;C=0;for(var R=67108863&A,q=Math.min(j,o.length-1),Z=Math.max(0,j-e.length+1);Z<=q;Z++){var rt=j-Z,D=(0|e.words[rt])*(0|o.words[Z]),G=67108863&D;R=67108863&(G=G+R|0),C+=(T=(T=T+(D/67108864|0)|0)+(G>>>26)|0)>>>26,T&=67108863}s.words[j]=R,A=T,T=C}return A!==0?s.words[j]=A:s.length--,s.strip()}(this,t,n):E(this,t,n),r},I.prototype.makeRBT=function(t){for(var n=new Array(t),r=a.prototype._countBits(t)-1,i=0;i<t;i++)n[i]=this.revBin(i,r,t);return n},I.prototype.revBin=function(t,n,r){if(t===0||t===r-1)return t;for(var i=0,e=0;e<n;e++)i|=(1&t)<<n-e-1,t>>=1;return i},I.prototype.permute=function(t,n,r,i,e,o){for(var s=0;s<o;s++)i[s]=n[t[s]],e[s]=r[t[s]]},I.prototype.transform=function(t,n,r,i,e,o){this.permute(o,t,n,r,i,e);for(var s=1;s<e;s<<=1)for(var A=s<<1,C=Math.cos(2*Math.PI/A),j=Math.sin(2*Math.PI/A),T=0;T<e;T+=A)for(var R=C,q=j,Z=0;Z<s;Z++){var rt=r[T+Z],D=i[T+Z],G=r[T+Z+s],z=i[T+Z+s],X=R*G-q*z;z=R*z+q*G,G=X,r[T+Z]=rt+G,i[T+Z]=D+z,r[T+Z+s]=rt-G,i[T+Z+s]=D-z,Z!==A&&(X=C*R-j*q,q=C*q+j*R,R=X)}},I.prototype.guessLen13b=function(t,n){var r=1|Math.max(n,t),i=1&r,e=0;for(r=r/2|0;r;r>>>=1)e++;return 1<<e+1+i},I.prototype.conjugate=function(t,n,r){if(!(r<=1))for(var i=0;i<r/2;i++){var e=t[i];t[i]=t[r-i-1],t[r-i-1]=e,e=n[i],n[i]=-n[r-i-1],n[r-i-1]=-e}},I.prototype.normalize13b=function(t,n){for(var r=0,i=0;i<n/2;i++){var e=8192*Math.round(t[2*i+1]/n)+Math.round(t[2*i]/n)+r;t[i]=67108863&e,r=e<67108864?0:e/67108864|0}return t},I.prototype.convert13b=function(t,n,r,i){for(var e=0,o=0;o<n;o++)e+=0|t[o],r[2*o]=8191&e,e>>>=13,r[2*o+1]=8191&e,e>>>=13;for(o=2*n;o<i;++o)r[o]=0;m(e===0),m((-8192&e)==0)},I.prototype.stub=function(t){for(var n=new Array(t),r=0;r<t;r++)n[r]=0;return n},I.prototype.mulp=function(t,n,r){var i=2*this.guessLen13b(t.length,n.length),e=this.makeRBT(i),o=this.stub(i),s=new Array(i),A=new Array(i),C=new Array(i),j=new Array(i),T=new Array(i),R=new Array(i),q=r.words;q.length=i,this.convert13b(t.words,t.length,s,i),this.convert13b(n.words,n.length,j,i),this.transform(s,o,A,C,i,e),this.transform(j,o,T,R,i,e);for(var Z=0;Z<i;Z++){var rt=A[Z]*T[Z]-C[Z]*R[Z];C[Z]=A[Z]*R[Z]+C[Z]*T[Z],A[Z]=rt}return this.conjugate(A,C,i),this.transform(A,C,q,o,i,e),this.conjugate(q,o,i),this.normalize13b(q,i),r.negative=t.negative^n.negative,r.length=t.length+n.length,r.strip()},a.prototype.mul=function(t){var n=new a(null);return n.words=new Array(this.length+t.length),this.mulTo(t,n)},a.prototype.mulf=function(t){var n=new a(null);return n.words=new Array(this.length+t.length),E(this,t,n)},a.prototype.imul=function(t){return this.clone().mulTo(t,this)},a.prototype.imuln=function(t){m(typeof t=="number"),m(t<67108864);for(var n=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,e=(67108863&i)+(67108863&n);n>>=26,n+=i/67108864|0,n+=e>>>26,this.words[r]=67108863&e}return n!==0&&(this.words[r]=n,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var n=function(o){for(var s=new Array(o.bitLength()),A=0;A<s.length;A++){var C=A/26|0,j=A%26;s[A]=(o.words[C]&1<<j)>>>j}return s}(t);if(n.length===0)return new a(1);for(var r=this,i=0;i<n.length&&n[i]===0;i++,r=r.sqr());if(++i<n.length)for(var e=r.sqr();i<n.length;i++,e=e.sqr())n[i]!==0&&(r=r.mul(e));return r},a.prototype.iushln=function(t){m(typeof t=="number"&&t>=0);var n,r=t%26,i=(t-r)/26,e=67108863>>>26-r<<26-r;if(r!==0){var o=0;for(n=0;n<this.length;n++){var s=this.words[n]&e,A=(0|this.words[n])-s<<r;this.words[n]=A|o,o=s>>>26-r}o&&(this.words[n]=o,this.length++)}if(i!==0){for(n=this.length-1;n>=0;n--)this.words[n+i]=this.words[n];for(n=0;n<i;n++)this.words[n]=0;this.length+=i}return this.strip()},a.prototype.ishln=function(t){return m(this.negative===0),this.iushln(t)},a.prototype.iushrn=function(t,n,r){var i;m(typeof t=="number"&&t>=0),i=n?(n-n%26)/26:0;var e=t%26,o=Math.min((t-e)/26,this.length),s=67108863^67108863>>>e<<e,A=r;if(i-=o,i=Math.max(0,i),A){for(var C=0;C<o;C++)A.words[C]=this.words[C];A.length=o}if(o!==0)if(this.length>o)for(this.length-=o,C=0;C<this.length;C++)this.words[C]=this.words[C+o];else this.words[0]=0,this.length=1;var j=0;for(C=this.length-1;C>=0&&(j!==0||C>=i);C--){var T=0|this.words[C];this.words[C]=j<<26-e|T>>>e,j=T&s}return A&&j!==0&&(A.words[A.length++]=j),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,n,r){return m(this.negative===0),this.iushrn(t,n,r)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){m(typeof t=="number"&&t>=0);var n=t%26,r=(t-n)/26,i=1<<n;return!(this.length<=r||!(this.words[r]&i))},a.prototype.imaskn=function(t){m(typeof t=="number"&&t>=0);var n=t%26,r=(t-n)/26;if(m(this.negative===0,"imaskn works only with positive numbers"),this.length<=r)return this;if(n!==0&&r++,this.length=Math.min(r,this.length),n!==0){var i=67108863^67108863>>>n<<n;this.words[this.length-1]&=i}return this.strip()},a.prototype.maskn=function(t){return this.clone().imaskn(t)},a.prototype.iaddn=function(t){return m(typeof t=="number"),m(t<67108864),t<0?this.isubn(-t):this.negative!==0?this.length===1&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},a.prototype._iaddn=function(t){this.words[0]+=t;for(var n=0;n<this.length&&this.words[n]>=67108864;n++)this.words[n]-=67108864,n===this.length-1?this.words[n+1]=1:this.words[n+1]++;return this.length=Math.max(this.length,n+1),this},a.prototype.isubn=function(t){if(m(typeof t=="number"),m(t<67108864),t<0)return this.iaddn(-t);if(this.negative!==0)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var n=0;n<this.length&&this.words[n]<0;n++)this.words[n]+=67108864,this.words[n+1]-=1;return this.strip()},a.prototype.addn=function(t){return this.clone().iaddn(t)},a.prototype.subn=function(t){return this.clone().isubn(t)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(t,n,r){var i,e,o=t.length+r;this._expand(o);var s=0;for(i=0;i<t.length;i++){e=(0|this.words[i+r])+s;var A=(0|t.words[i])*n;s=((e-=67108863&A)>>26)-(A/67108864|0),this.words[i+r]=67108863&e}for(;i<this.length-r;i++)s=(e=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&e;if(s===0)return this.strip();for(m(s===-1),s=0,i=0;i<this.length;i++)s=(e=-(0|this.words[i])+s)>>26,this.words[i]=67108863&e;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,n){var r=(this.length,t.length),i=this.clone(),e=t,o=0|e.words[e.length-1];(r=26-this._countBits(o))!=0&&(e=e.ushln(r),i.iushln(r),o=0|e.words[e.length-1]);var s,A=i.length-e.length;if(n!=="mod"){(s=new a(null)).length=A+1,s.words=new Array(s.length);for(var C=0;C<s.length;C++)s.words[C]=0}var j=i.clone()._ishlnsubmul(e,1,A);j.negative===0&&(i=j,s&&(s.words[A]=1));for(var T=A-1;T>=0;T--){var R=67108864*(0|i.words[e.length+T])+(0|i.words[e.length+T-1]);for(R=Math.min(R/o|0,67108863),i._ishlnsubmul(e,R,T);i.negative!==0;)R--,i.negative=0,i._ishlnsubmul(e,1,T),i.isZero()||(i.negative^=1);s&&(s.words[T]=R)}return s&&s.strip(),i.strip(),n!=="div"&&r!==0&&i.iushrn(r),{div:s||null,mod:i}},a.prototype.divmod=function(t,n,r){return m(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:this.negative!==0&&t.negative===0?(o=this.neg().divmod(t,n),n!=="mod"&&(i=o.div.neg()),n!=="div"&&(e=o.mod.neg(),r&&e.negative!==0&&e.iadd(t)),{div:i,mod:e}):this.negative===0&&t.negative!==0?(o=this.divmod(t.neg(),n),n!=="mod"&&(i=o.div.neg()),{div:i,mod:o.mod}):this.negative&t.negative?(o=this.neg().divmod(t.neg(),n),n!=="div"&&(e=o.mod.neg(),r&&e.negative!==0&&e.isub(t)),{div:o.div,mod:e}):t.length>this.length||this.cmp(t)<0?{div:new a(0),mod:this}:t.length===1?n==="div"?{div:this.divn(t.words[0]),mod:null}:n==="mod"?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,n);var i,e,o},a.prototype.div=function(t){return this.divmod(t,"div",!1).div},a.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},a.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},a.prototype.divRound=function(t){var n=this.divmod(t);if(n.mod.isZero())return n.div;var r=n.div.negative!==0?n.mod.isub(t):n.mod,i=t.ushrn(1),e=t.andln(1),o=r.cmp(i);return o<0||e===1&&o===0?n.div:n.div.negative!==0?n.div.isubn(1):n.div.iaddn(1)},a.prototype.modn=function(t){m(t<=67108863);for(var n=67108864%t,r=0,i=this.length-1;i>=0;i--)r=(n*r+(0|this.words[i]))%t;return r},a.prototype.idivn=function(t){m(t<=67108863);for(var n=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*n;this.words[r]=i/t|0,n=i%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){m(t.negative===0),m(!t.isZero());var n=this,r=t.clone();n=n.negative!==0?n.umod(t):n.clone();for(var i=new a(1),e=new a(0),o=new a(0),s=new a(1),A=0;n.isEven()&&r.isEven();)n.iushrn(1),r.iushrn(1),++A;for(var C=r.clone(),j=n.clone();!n.isZero();){for(var T=0,R=1;!(n.words[0]&R)&&T<26;++T,R<<=1);if(T>0)for(n.iushrn(T);T-- >0;)(i.isOdd()||e.isOdd())&&(i.iadd(C),e.isub(j)),i.iushrn(1),e.iushrn(1);for(var q=0,Z=1;!(r.words[0]&Z)&&q<26;++q,Z<<=1);if(q>0)for(r.iushrn(q);q-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(C),s.isub(j)),o.iushrn(1),s.iushrn(1);n.cmp(r)>=0?(n.isub(r),i.isub(o),e.isub(s)):(r.isub(n),o.isub(i),s.isub(e))}return{a:o,b:s,gcd:r.iushln(A)}},a.prototype._invmp=function(t){m(t.negative===0),m(!t.isZero());var n=this,r=t.clone();n=n.negative!==0?n.umod(t):n.clone();for(var i,e=new a(1),o=new a(0),s=r.clone();n.cmpn(1)>0&&r.cmpn(1)>0;){for(var A=0,C=1;!(n.words[0]&C)&&A<26;++A,C<<=1);if(A>0)for(n.iushrn(A);A-- >0;)e.isOdd()&&e.iadd(s),e.iushrn(1);for(var j=0,T=1;!(r.words[0]&T)&&j<26;++j,T<<=1);if(j>0)for(r.iushrn(j);j-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);n.cmp(r)>=0?(n.isub(r),e.isub(o)):(r.isub(n),o.isub(e))}return(i=n.cmpn(1)===0?e:o).cmpn(0)<0&&i.iadd(t),i},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var n=this.clone(),r=t.clone();n.negative=0,r.negative=0;for(var i=0;n.isEven()&&r.isEven();i++)n.iushrn(1),r.iushrn(1);for(;;){for(;n.isEven();)n.iushrn(1);for(;r.isEven();)r.iushrn(1);var e=n.cmp(r);if(e<0){var o=n;n=r,r=o}else if(e===0||r.cmpn(1)===0)break;n.isub(r)}return r.iushln(i)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(t){return this.words[0]&t},a.prototype.bincn=function(t){m(typeof t=="number");var n=t%26,r=(t-n)/26,i=1<<n;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var e=i,o=r;e!==0&&o<this.length;o++){var s=0|this.words[o];e=(s+=e)>>>26,s&=67108863,this.words[o]=s}return e!==0&&(this.words[o]=e,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(t){var n,r=t<0;if(this.negative!==0&&!r)return-1;if(this.negative===0&&r)return 1;if(this.strip(),this.length>1)n=1;else{r&&(t=-t),m(t<=67108863,"Number is too big");var i=0|this.words[0];n=i===t?0:i<t?-1:1}return this.negative!==0?0|-n:n},a.prototype.cmp=function(t){if(this.negative!==0&&t.negative===0)return-1;if(this.negative===0&&t.negative!==0)return 1;var n=this.ucmp(t);return this.negative!==0?0|-n:n},a.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var n=0,r=this.length-1;r>=0;r--){var i=0|this.words[r],e=0|t.words[r];if(i!==e){i<e?n=-1:i>e&&(n=1);break}}return n},a.prototype.gtn=function(t){return this.cmpn(t)===1},a.prototype.gt=function(t){return this.cmp(t)===1},a.prototype.gten=function(t){return this.cmpn(t)>=0},a.prototype.gte=function(t){return this.cmp(t)>=0},a.prototype.ltn=function(t){return this.cmpn(t)===-1},a.prototype.lt=function(t){return this.cmp(t)===-1},a.prototype.lten=function(t){return this.cmpn(t)<=0},a.prototype.lte=function(t){return this.cmp(t)<=0},a.prototype.eqn=function(t){return this.cmpn(t)===0},a.prototype.eq=function(t){return this.cmp(t)===0},a.red=function(t){return new Q(t)},a.prototype.toRed=function(t){return m(!this.red,"Already a number in reduction context"),m(this.negative===0,"red works only with positives"),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return m(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return m(!this.red,"Already a number in reduction context"),this._forceRed(t)},a.prototype.redAdd=function(t){return m(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},a.prototype.redIAdd=function(t){return m(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},a.prototype.redSub=function(t){return m(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},a.prototype.redISub=function(t){return m(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},a.prototype.redShl=function(t){return m(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},a.prototype.redMul=function(t){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return m(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return m(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return m(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return m(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return m(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return m(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var M={k256:null,p224:null,p192:null,p25519:null};function B(t,n){this.name=t,this.p=new a(n,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function P(){B.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function N(){B.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function $(){B.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function et(){B.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function Q(t){if(typeof t=="string"){var n=a._prime(t);this.m=n.p,this.prime=n}else m(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function ot(t){Q.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}B.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},B.prototype.ireduce=function(t){var n,r=t;do this.split(r,this.tmp),n=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(n>this.n);var i=n<this.n?-1:r.ucmp(this.p);return i===0?(r.words[0]=0,r.length=1):i>0?r.isub(this.p):r.strip!==void 0?r.strip():r._strip(),r},B.prototype.split=function(t,n){t.iushrn(this.n,0,n)},B.prototype.imulK=function(t){return t.imul(this.k)},S(P,B),P.prototype.split=function(t,n){for(var r=4194303,i=Math.min(t.length,9),e=0;e<i;e++)n.words[e]=t.words[e];if(n.length=i,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(n.words[n.length++]=o&r,e=10;e<t.length;e++){var s=0|t.words[e];t.words[e-10]=(s&r)<<4|o>>>22,o=s}o>>>=22,t.words[e-10]=o,o===0&&t.length>10?t.length-=10:t.length-=9},P.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var n=0,r=0;r<t.length;r++){var i=0|t.words[r];n+=977*i,t.words[r]=67108863&n,n=64*i+(n/67108864|0)}return t.words[t.length-1]===0&&(t.length--,t.words[t.length-1]===0&&t.length--),t},S(N,B),S($,B),S(et,B),et.prototype.imulK=function(t){for(var n=0,r=0;r<t.length;r++){var i=19*(0|t.words[r])+n,e=67108863&i;i>>>=26,t.words[r]=e,n=i}return n!==0&&(t.words[t.length++]=n),t},a._prime=function(t){if(M[t])return M[t];var n;if(t==="k256")n=new P;else if(t==="p224")n=new N;else if(t==="p192")n=new $;else{if(t!=="p25519")throw new Error("Unknown prime "+t);n=new et}return M[t]=n,n},Q.prototype._verify1=function(t){m(t.negative===0,"red works only with positives"),m(t.red,"red works only with red numbers")},Q.prototype._verify2=function(t,n){m((t.negative|n.negative)==0,"red works only with positives"),m(t.red&&t.red===n.red,"red works only with red numbers")},Q.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},Q.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},Q.prototype.add=function(t,n){this._verify2(t,n);var r=t.add(n);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},Q.prototype.iadd=function(t,n){this._verify2(t,n);var r=t.iadd(n);return r.cmp(this.m)>=0&&r.isub(this.m),r},Q.prototype.sub=function(t,n){this._verify2(t,n);var r=t.sub(n);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},Q.prototype.isub=function(t,n){this._verify2(t,n);var r=t.isub(n);return r.cmpn(0)<0&&r.iadd(this.m),r},Q.prototype.shl=function(t,n){return this._verify1(t),this.imod(t.ushln(n))},Q.prototype.imul=function(t,n){return this._verify2(t,n),this.imod(t.imul(n))},Q.prototype.mul=function(t,n){return this._verify2(t,n),this.imod(t.mul(n))},Q.prototype.isqr=function(t){return this.imul(t,t.clone())},Q.prototype.sqr=function(t){return this.mul(t,t)},Q.prototype.sqrt=function(t){if(t.isZero())return t.clone();var n=this.m.andln(3);if(m(n%2==1),n===3){var r=this.m.add(new a(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),e=0;!i.isZero()&&i.andln(1)===0;)e++,i.iushrn(1);m(!i.isZero());var o=new a(1).toRed(this),s=o.redNeg(),A=this.m.subn(1).iushrn(1),C=this.m.bitLength();for(C=new a(2*C*C).toRed(this);this.pow(C,A).cmp(s)!==0;)C.redIAdd(s);for(var j=this.pow(C,i),T=this.pow(t,i.addn(1).iushrn(1)),R=this.pow(t,i),q=e;R.cmp(o)!==0;){for(var Z=R,rt=0;Z.cmp(o)!==0;rt++)Z=Z.redSqr();m(rt<q);var D=this.pow(j,new a(1).iushln(q-rt-1));T=T.redMul(D),j=D.redSqr(),R=R.redMul(j),q=rt}return T},Q.prototype.invm=function(t){var n=t._invmp(this.m);return n.negative!==0?(n.negative=0,this.imod(n).redNeg()):this.imod(n)},Q.prototype.pow=function(t,n){if(n.isZero())return new a(1).toRed(this);if(n.cmpn(1)===0)return t.clone();var r=new Array(16);r[0]=new a(1).toRed(this),r[1]=t;for(var i=2;i<r.length;i++)r[i]=this.mul(r[i-1],t);var e=r[0],o=0,s=0,A=n.bitLength()%26;for(A===0&&(A=26),i=n.length-1;i>=0;i--){for(var C=n.words[i],j=A-1;j>=0;j--){var T=C>>j&1;e!==r[0]&&(e=this.sqr(e)),T!==0||o!==0?(o<<=1,o|=T,(++s==4||i===0&&j===0)&&(e=this.mul(e,r[o]),s=0,o=0)):s=0}A=26}return e},Q.prototype.convertTo=function(t){var n=t.umod(this.m);return n===t?n.clone():n},Q.prototype.convertFrom=function(t){var n=t.clone();return n.red=null,n},a.mont=function(t){return new ot(t)},S(ot,Q),ot.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},ot.prototype.convertFrom=function(t){var n=this.imod(t.mul(this.rinv));return n.red=null,n},ot.prototype.imul=function(t,n){if(t.isZero()||n.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(n),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=r.isub(i).iushrn(this.shift),o=e;return e.cmp(this.m)>=0?o=e.isub(this.m):e.cmpn(0)<0&&(o=e.iadd(this.m)),o._forceRed(this)},ot.prototype.mul=function(t,n){if(t.isZero()||n.isZero())return new a(0)._forceRed(this);var r=t.mul(n),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=r.isub(i).iushrn(this.shift),o=e;return e.cmp(this.m)>=0?o=e.isub(this.m):e.cmpn(0)<0&&(o=e.iadd(this.m)),o._forceRed(this)},ot.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}})(W=y.nmd(W),this)},5234:(W,_,y)=>{W.exports=y(3765)},983:(W,_,y)=>{var x,v,m,S=y(5234),a=y(6470).extname,p=/^\s*([^;\s]*)(?:;|\s|$)/,c=/^text\//i;function l(f){if(!f||typeof f!="string")return!1;var g=p.exec(f),h=g&&S[g[1].toLowerCase()];return h&&h.charset?h.charset:!(!g||!c.test(g[1]))&&"UTF-8"}_.charset=l,_.charsets={lookup:l},_.contentType=function(f){if(!f||typeof f!="string")return!1;var g=f.indexOf("/")===-1?_.lookup(f):f;if(!g)return!1;if(g.indexOf("charset")===-1){var h=_.charset(g);h&&(g+="; charset="+h.toLowerCase())}return g},_.extension=function(f){if(!f||typeof f!="string")return!1;var g=p.exec(f),h=g&&_.extensions[g[1].toLowerCase()];return!(!h||!h.length)&&h[0]},_.extensions=Object.create(null),_.lookup=function(f){if(!f||typeof f!="string")return!1;var g=a("x."+f).toLowerCase().substr(1);return g&&_.types[g]||!1},_.types=Object.create(null),x=_.extensions,v=_.types,m=["nginx","apache",void 0,"iana"],Object.keys(S).forEach(function(f){var g=S[f],h=g.extensions;if(h&&h.length){x[f]=h;for(var u=0;u<h.length;u++){var w=h[u];if(v[w]){var b=m.indexOf(S[v[w]].source),E=m.indexOf(g.source);if(v[w]!=="application/octet-stream"&&(b>E||b===E&&v[w].substr(0,12)==="application/"))continue}v[w]=f}}})},9746:W=>{function _(y,x){if(!y)throw new Error(x||"Assertion failed")}W.exports=_,_.equal=function(y,x,v){if(y!=x)throw new Error(v||"Assertion failed: "+y+" != "+x)}},4504:(W,_)=>{var y=_;function x(m){return m.length===1?"0"+m:m}function v(m){for(var S="",a=0;a<m.length;a++)S+=x(m[a].toString(16));return S}y.toArray=function(m,S){if(Array.isArray(m))return m.slice();if(!m)return[];var a=[];if(typeof m!="string"){for(var p=0;p<m.length;p++)a[p]=0|m[p];return a}if(S==="hex")for((m=m.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(m="0"+m),p=0;p<m.length;p+=2)a.push(parseInt(m[p]+m[p+1],16));else for(p=0;p<m.length;p++){var c=m.charCodeAt(p),l=c>>8,f=255&c;l?a.push(l,f):a.push(f)}return a},y.zero2=x,y.toHex=v,y.encode=function(m,S){return S==="hex"?v(m):m}},8566:(W,_,y)=>{Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var x,v=(x=y(8721))&&x.__esModule?x:{default:x};_.default=class{constructor({accessKey:m,secretKey:S,sessionToken:a}){this.credentials=new v.default({accessKey:m,secretKey:S,sessionToken:a})}getCredentials(){return this.credentials.get()}setCredentials(m){if(!(m instanceof v.default))throw new Error("Unable to set Credentials . it should be an instance of Credentials class");this.credentials=m}setAccessKey(m){this.credentials.setAccessKey(m)}getAccessKey(){return this.credentials.getAccessKey()}setSecretKey(m){this.credentials.setSecretKey(m)}getSecretKey(){return this.credentials.getSecretKey()}setSessionToken(m){this.credentials.setSessionToken(m)}getSessionToken(){return this.credentials.getSessionToken()}}},8721:(W,_)=>{Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0,_.default=class{constructor({accessKey:y,secretKey:x,sessionToken:v}){this.accessKey=y,this.secretKey=x,this.sessionToken=v}setAccessKey(y){this.accessKey=y}getAccessKey(){return this.accessKey}setSecretKey(y){this.secretKey=y}getSecretKey(){return this.secretKey}setSessionToken(y){this.sessionToken=y}getSessionToken(){return this.sessionToken}get(){return{accessKey:this.accessKey,secretKey:this.secretKey,sessionToken:this.sessionToken}}}},1271:(W,_,y)=>{Object.defineProperty(_,"__esModule",{value:!0}),_.SecretKeyRequiredError=_.S3Error=_.InvalidXMLError=_.InvalidPrefixError=_.InvalidPortError=_.InvalidObjectNameError=_.InvalidEndpointError=_.InvalidDateError=_.InvalidBucketPolicyError=_.InvalidBucketNameError=_.InvalidArgumentError=_.IncorrectSizeError=_.ExpiresParamError=_.AnonymousRequestError=_.AccessKeyRequiredError=void 0;var x,v=(x=y(7216))&&x.__esModule?x:{default:x};class m extends v.default{constructor(P){super(P)}}_.AnonymousRequestError=m;class S extends v.default{constructor(P){super(P)}}_.InvalidArgumentError=S;class a extends v.default{constructor(P){super(P)}}_.InvalidPortError=a;class p extends v.default{constructor(P){super(P)}}_.InvalidEndpointError=p;class c extends v.default{constructor(P){super(P)}}_.InvalidBucketNameError=c;class l extends v.default{constructor(P){super(P)}}_.InvalidObjectNameError=l;class f extends v.default{constructor(P){super(P)}}_.AccessKeyRequiredError=f;class g extends v.default{constructor(P){super(P)}}_.SecretKeyRequiredError=g;class h extends v.default{constructor(P){super(P)}}_.ExpiresParamError=h;class u extends v.default{constructor(P){super(P)}}_.InvalidDateError=u;class w extends v.default{constructor(P){super(P)}}_.InvalidPrefixError=w;class b extends v.default{constructor(P){super(P)}}_.InvalidBucketPolicyError=b;class E extends v.default{constructor(P){super(P)}}_.IncorrectSizeError=E;class I extends v.default{constructor(P){super(P)}}_.InvalidXMLError=I;class M extends v.default{constructor(P){super(P)}}_.S3Error=M},3427:(W,_,y)=>{Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var x,v=(x=y(2830))&&x.__esModule?x:{default:x},m=c(y(6607)),S=c(y(1271)),a=y(1627);function p(l){if(typeof WeakMap!="function")return null;var f=new WeakMap,g=new WeakMap;return(p=function(h){return h?g:f})(l)}function c(l,f){if(!f&&l&&l.__esModule)return l;if(l===null||typeof l!="object"&&typeof l!="function")return{default:l};var g=p(f);if(g&&g.has(l))return g.get(l);var h={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var w in l)if(w!=="default"&&Object.prototype.hasOwnProperty.call(l,w)){var b=u?Object.getOwnPropertyDescriptor(l,w):null;b&&(b.get||b.set)?Object.defineProperty(h,w,b):h[w]=l[w]}return h.default=l,g&&g.set(l,h),h}_.default=class{constructor(l){this.client=l}listObjectsV2WithMetadata(l,f,g,h){if(f===void 0&&(f=""),g===void 0&&(g=!1),h===void 0&&(h=""),!(0,a.isValidBucketName)(l))throw new S.InvalidBucketNameError("Invalid bucket name: "+l);if(!(0,a.isValidPrefix)(f))throw new S.InvalidPrefixError(`Invalid prefix : ${f}`);if(!(0,a.isString)(f))throw new TypeError('prefix should be of type "string"');if(!(0,a.isBoolean)(g))throw new TypeError('recursive should be of type "boolean"');if(!(0,a.isString)(h))throw new TypeError('startAfter should be of type "string"');var u=g?"":"/",w="",b=[],E=!1,I=v.default.Readable({objectMode:!0});return I._read=()=>{if(!b.length)return E?I.push(null):void this.listObjectsV2WithMetadataQuery(l,f,w,u,1e3,h).on("error",M=>I.emit("error",M)).on("data",M=>{M.isTruncated?w=M.nextContinuationToken:E=!0,b=M.objects,I._read()});I.push(b.shift())},I}listObjectsV2WithMetadataQuery(l,f,g,h,u,w){if(!(0,a.isValidBucketName)(l))throw new S.InvalidBucketNameError("Invalid bucket name: "+l);if(!(0,a.isString)(f))throw new TypeError('prefix should be of type "string"');if(!(0,a.isString)(g))throw new TypeError('continuationToken should be of type "string"');if(!(0,a.isString)(h))throw new TypeError('delimiter should be of type "string"');if(!(0,a.isNumber)(u))throw new TypeError('maxKeys should be of type "number"');if(!(0,a.isString)(w))throw new TypeError('startAfter should be of type "string"');var b=[];b.push("list-type=2"),b.push("encoding-type=url"),b.push(`prefix=${(0,a.uriEscape)(f)}`),b.push(`delimiter=${(0,a.uriEscape)(h)}`),b.push("metadata=true"),g&&(g=(0,a.uriEscape)(g),b.push(`continuation-token=${g}`)),w&&(w=(0,a.uriEscape)(w),b.push(`start-after=${w}`)),u&&(u>=1e3&&(u=1e3),b.push(`max-keys=${u}`)),b.sort();var E="";b.length>0&&(E=`${b.join("&")}`);var I=m.getListObjectsV2WithMetadataTransformer();return this.client.makeRequest({method:"GET",bucketName:l,query:E},"",[200],"",!0,(M,B)=>{if(M)return I.emit("error",M);(0,a.pipesetup)(B,I)}),I}}},1627:(W,_,y)=>{var x=y(8764).Buffer;Object.defineProperty(_,"__esModule",{value:!0}),_.SelectResults=_.RETENTION_VALIDITY_UNITS=_.RETENTION_MODES=_.PART_CONSTRAINTS=_.LEGAL_HOLD_STATUS=_.ENCRYPTION_TYPES=_.DEFAULT_REGION=_.CopySourceOptions=_.CopyDestinationOptions=void 0,_.calculateEvenSplits=function(D,G){if(D===0)return null;const z=q(D);Z=new Array(z),rt=new Array(z);let X=G.Start;(p.default.isEmpty(G.Start)||X===-1)&&(X=0);const st=Math.trunc(D/z),nt=D%z;let ht=X;for(let Et=0;Et<z;Et++){let gt=st;Et<nt&>++;const bt=ht;let Bt=bt+gt-1;ht=Bt+1,Z[Et]=bt,rt[Et]=Bt}return{startIndex:Z,endIndex:rt,objInfo:G}},_.extractMetadata=function(D){var G={};for(var z in D)(e(z)||o(z)||i(z))&&(z.toLowerCase().startsWith("x-amz-meta-")?G[z.slice(11,z.length)]=D[z]:G[z]=D[z]);return G},_.getScope=function(D,G,z="s3"){return`${r(G)}/${D}/${z}/aws4_request`},_.getSourceVersionId=function(D={}){return D["x-amz-copy-source-version-id"]||null},_.getVersionId=function(D={}){return D["x-amz-version-id"]||null},_.insertContentType=function(D,G){for(var z in D)if(z.toLowerCase()==="content-type")return D;var X=Object.assign({},D);return X["content-type"]=P(G),X},_.isAmazonEndpoint=I,_.isAmzHeader=i,_.isArray=function(D){return Array.isArray(D)},_.isBoolean=function(D){return typeof D=="boolean"},_.isFunction=ot,_.isNumber=Q,_.isObject=n,_.isReadableStream=function(D){return n(D)&&ot(D._read)},_.isStorageclassHeader=o,_.isString=t,_.isSupportedHeader=e,_.isValidBucketName=N,_.isValidDate=function(D){return D instanceof Date&&!isNaN(D)},_.isValidDomain=B,_.isValidEndpoint=function(D){return B(D)||M(D)},_.isValidIP=M,_.isValidObjectName=$,_.isValidPort=function(D){return!!Q(D)&&!(D<0)&&(D===0||D>=1&&D<=65535)},_.isValidPrefix=et,_.isVirtualHostStyle=function(D,G,z,X){return!(G==="https:"&&z.indexOf(".")>-1)&&(I(D)||!X)},_.makeDateLong=function(D){return(D=(D=D||new Date).toISOString()).slice(0,4)+D.slice(5,7)+D.slice(8,13)+D.slice(14,16)+D.slice(17,19)+"Z"},_.makeDateShort=r,_.partsRequired=_.parseXml=void 0,_.pipesetup=function(...D){return D.reduce((G,z)=>(G.on("error",X=>z.emit("error",X)),G.pipe(z)))},_.prependXAMZMeta=function(D){var G=Object.assign({},D);for(var z in D)i(z)||e(z)||o(z)||(G["X-Amz-Meta-"+z]=G[z],delete G[z]);return G},_.probeContentType=P,_.promisify=function(D){return function(){if(typeof arguments[arguments.length-1]=="function")return D.apply(this,arguments);let G=[...arguments];return new Promise((z,X)=>{G.push((st,nt)=>{if(st)return X(st);z(nt)}),D.apply(this,G)})}},_.readableStream=function(D){var G=new v.default.Readable;return G._read=()=>{},G.push(D),G.push(null),G},_.removeDirAndFiles=function D(G,z){z===void 0&&(z=!0);try{var X=w.readdirSync(G)}catch{return}if(X.length>0)for(var st=0;st<X.length;st++){var nt=b.join(G,X[st]);w.statSync(nt).isFile()?w.unlinkSync(nt):D(nt)}z&&w.rmdirSync(G)},_.sanitizeETag=function(D=""){var G={'"':"",""":"",""":"",""":"",""":""};return D.replace(/^("|"|")|("|"|")$/g,z=>G[z])},_.toSha256=_.toMd5=_.toArray=_.sanitizeObjectKey=void 0,_.uriEscape=E,_.uriResourceEscape=function(D){return E(D).replace(/%2F/g,"/")};var v=g(y(2830)),m=g(y(983)),S=g(y(6965)),a=y(3818),p=g(y(6486)),c=function(D,G){if(D&&D.__esModule)return D;if(D===null||typeof D!="object"&&typeof D!="function")return{default:D};var z=f(G);if(z&&z.has(D))return z.get(D);var X={},st=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var nt in D)if(nt!=="default"&&Object.prototype.hasOwnProperty.call(D,nt)){var ht=st?Object.getOwnPropertyDescriptor(D,nt):null;ht&&(ht.get||ht.set)?Object.defineProperty(X,nt,ht):X[nt]=D[nt]}return X.default=D,z&&z.set(D,X),X}(y(1271)),l=g(y(7563));function f(D){if(typeof WeakMap!="function")return null;var G=new WeakMap,z=new WeakMap;return(f=function(X){return X?z:G})(D)}function g(D){return D&&D.__esModule?D:{default:D}}var h=y(5835);const u=y(6512),w=y(4749),b=y(6470);function E(D){return D.split("").reduce((G,z)=>{let X=x.from(z);if(X.length===1&&("A"<=z&&z<="Z"||"a"<=z&&z<="z"||"0"<=z&&z<="9"||z==="_"||z==="."||z==="~"||z==="-"))return G+z;for(var st=0;st<X.length;st++)G=G+"%"+X[st].toString(16).toUpperCase();return G},"")}function I(D){return D==="s3.amazonaws.com"||D==="s3.cn-north-1.amazonaws.com.cn"}function M(D){return u.isValid(D)}function B(D){if(!t(D)||D.length===0||D.length>255||D[0]==="-"||D.slice(-1)==="-"||D[0]==="_"||D.slice(-1)==="_"||D[0]===".")return!1;var G="`~!@#$%^&*()+={}[]|\\\"';:><?/".split("");for(var z in G)if(D.indexOf(G[z])>-1)return!1;return!0}function P(D){let G=m.default.lookup(D);return G||(G="application/octet-stream"),G}function N(D){return!(!t(D)||D.length<3||D.length>63||D.indexOf("..")>-1||D.match(/[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/)||!D.match(/^[a-z0-9][a-z0-9.-]+[a-z0-9]$/))}function $(D){return!!et(D)&&D.length!==0}function et(D){return!(!t(D)||D.length>1024)}function Q(D){return typeof D=="number"}function ot(D){return typeof D=="function"}function t(D){return typeof D=="string"}function n(D){return typeof D=="object"&&D!==null}function r(D){return(D=(D=D||new Date).toISOString()).slice(0,4)+D.slice(5,7)+D.slice(8,10)}function i(D){var G=D.toLowerCase();return G.startsWith("x-amz-meta-")||G==="x-amz-acl"||G.startsWith("x-amz-server-side-encryption-")||G==="x-amz-server-side-encryption"}function e(D){return["content-type","cache-control","content-encoding","content-disposition","content-language","x-amz-website-redirect-location"].indexOf(D.toLowerCase())>-1}function o(D){return D.toLowerCase()==="x-amz-storage-class"}const s={GOVERNANCE:"GOVERNANCE",COMPLIANCE:"COMPLIANCE"};_.RETENTION_MODES=s,_.RETENTION_VALIDITY_UNITS={DAYS:"Days",YEARS:"Years"},_.LEGAL_HOLD_STATUS={ENABLED:"ON",DISABLED:"OFF"},_.toMd5=D=>{let G=(z=>x.from(x.from(z)))(D);return G=a.isBrowser?G.toString():G,h.createHash("md5").update(G).digest().toString("base64")},_.toSha256=D=>h.createHash("sha256").update(D).digest("hex"),_.toArray=D=>Array.isArray(D)?D:[D],_.sanitizeObjectKey=D=>{let G=(D||"").replace(/\+/g," ");return decodeURIComponent(G)};const A={ABS_MIN_PART_SIZE:5242880,MIN_PART_SIZE:16777216,MAX_PARTS_COUNT:1e4,MAX_PART_SIZE:5368709120,MAX_SINGLE_PUT_OBJECT_SIZE:5368709120,MAX_MULTIPART_PUT_OBJECT_SIZE:5497558138880};_.PART_CONSTRAINTS=A;const C={SSEC:"SSE-C",KMS:"KMS"};_.ENCRYPTION_TYPES=C;const j="X-Amz-Server-Side-Encryption",T=j,R=j+"-Aws-Kms-Key-Id";_.CopySourceOptions=class{constructor({Bucket:D="",Object:G="",VersionID:z="",MatchETag:X="",NoMatchETag:st="",MatchModifiedSince:nt=null,MatchUnmodifiedSince:ht=null,MatchRange:Et=!1,Start:gt=0,End:bt=0,Encryption:Bt={}}={}){this.Bucket=D,this.Object=G,this.VersionID=z,this.MatchETag=X,this.NoMatchETag=st,this.MatchModifiedSince=nt,this.MatchUnmodifiedSince=ht,this.MatchRange=Et,this.Start=gt,this.End=bt,this.Encryption=Bt}validate(){if(!N(this.Bucket))throw new c.InvalidBucketNameError("Invalid Source bucket name: "+this.Bucket);if(!$(this.Object))throw new c.InvalidObjectNameError(`Invalid Source object name: ${this.Object}`);if(this.MatchRange&&this.Start!==-1&&this.End!==-1&&this.Start>this.End||this.Start<0)throw new c.InvalidObjectNameError("Source start must be non-negative, and start must be at most end.");if(this.MatchRange&&!Q(this.Start)||!Q(this.End))throw new c.InvalidObjectNameError("MatchRange is specified. But Invalid Start and End values are specified. ");return!0}getHeaders(){let D={};return D["x-amz-copy-source"]=encodeURI(this.Bucket+"/"+this.Object),p.default.isEmpty(this.VersionID)||(D["x-amz-copy-source"]=encodeURI(this.Bucket+"/"+this.Object)+"?versionId="+this.VersionID),p.default.isEmpty(this.MatchETag)||(D["x-amz-copy-source-if-match"]=this.MatchETag),p.default.isEmpty(this.NoMatchETag)||(D["x-amz-copy-source-if-none-match"]=this.NoMatchETag),p.default.isEmpty(this.MatchModifiedSince)||(D["x-amz-copy-source-if-modified-since"]=this.MatchModifiedSince),p.default.isEmpty(this.MatchUnmodifiedSince)||(D["x-amz-copy-source-if-unmodified-since"]=this.MatchUnmodifiedSince),D}},_.CopyDestinationOptions=class{constructor({Bucket:D="",Object:G="",Encryption:z=null,UserMetadata:X=null,UserTags:st=null,LegalHold:nt=null,RetainUntilDate:ht=null,Mode:Et=null}){this.Bucket=D,this.Object=G,this.Encryption=z,this.UserMetadata=X,this.UserTags=st,this.LegalHold=nt,this.Mode=Et,this.RetainUntilDate=ht}getHeaders(){const D={},G=this.UserTags;if(p.default.isEmpty(G)||(D["X-Amz-Tagging-Directive"]="REPLACE",D["X-Amz-Tagging"]=n(G)?l.default.stringify(G):t(G)?G:""),p.default.isEmpty(this.Mode)||(D["X-Amz-Object-Lock-Mode"]=this.Mode),p.default.isEmpty(this.RetainUntilDate)||(D["X-Amz-Object-Lock-Retain-Until-Date"]=this.RetainUntilDate),p.default.isEmpty(this.LegalHold)||(D["X-Amz-Object-Lock-Legal-Hold"]=this.LegalHold),p.default.isEmpty(this.UserMetadata)||Object.keys(this.UserMetadata).forEach(z=>{D[`X-Amz-Meta-${z}`]=this.UserMetadata[z]}),!p.default.isEmpty(this.Encryption)){const z=function(X){const st=X.type,nt={};if(!p.default.isEmpty(st)){if(st===C.SSEC)return{[nt[T]]:"AES256"};if(st===C.KMS)return{[T]:X.SSEAlgorithm,[R]:X.KMSMasterKeyID}}return nt}(this.Encryption);Object.keys(z).forEach(X=>{D[X]=z[X]})}return D}validate(){if(!N(this.Bucket))throw new c.InvalidBucketNameError("Invalid Destination bucket name: "+this.Bucket);if(!$(this.Object))throw new c.InvalidObjectNameError(`Invalid Destination object name: ${this.Object}`);if(!p.default.isEmpty(this.UserMetadata)&&!n(this.UserMetadata))throw new c.InvalidObjectNameError("Destination UserMetadata should be an object with key value pairs");if(!p.default.isEmpty(this.Mode)&&![s.GOVERNANCE,s.COMPLIANCE].includes(this.Mode))throw new c.InvalidObjectNameError("Invalid Mode specified for destination object it should be one of [GOVERNANCE,COMPLIANCE]");if(!p.default.isEmpty(this.Encryption)&&p.default.isEmpty(this.Encryption))throw new c.InvalidObjectNameError("Invalid Encryption configuration for destination object ");return!0}};const q=D=>{let G=A.MAX_MULTIPART_PUT_OBJECT_SIZE/(A.MAX_PARTS_COUNT-1),z=D/G;return D%G>0&&z++,z=Math.trunc(z),z};_.partsRequired=q;let Z=[],rt=[];_.parseXml=D=>{let G=null;if(G=S.default.parse(D),G.Error)throw G.Error;return G},_.SelectResults=class{constructor({records:D,response:G,stats:z,progress:X}){this.records=D,this.response=G,this.stats=z,this.progress=X}setStats(D){this.stats=D}getStats(){return this.stats}setProgress(D){this.progress=D}getProgress(){return this.progress}setResponse(D){this.response=D}getResponse(){return this.response}setRecords(D){this.records=D}getRecords(){return this.records}},_.DEFAULT_REGION="us-east-1"},2525:(W,_,y)=>{var x=y(4155),v=y(8764).Buffer;Object.defineProperty(_,"__esModule",{value:!0});var m={Client:!0,CopyConditions:!0,PostPolicy:!0};_.PostPolicy=_.CopyConditions=_.Client=void 0;var S=e(y(4749)),a=e(y(8501)),p=e(y(9267)),c=e(y(2830)),l=e(y(9e3)),f=e(y(3479)),g=e(y(5055)),h=e(y(1641)),u=e(y(7563)),w=e(y(1890)),b=e(y(6470)),E=e(y(6486)),I=y(7259),M=y(1627),B=y(5858),P=e(y(3861)),N=i(y(6607)),$=i(y(1271)),et=y(1670),Q=y(3606);Object.keys(Q).forEach(function(j){j!=="default"&&j!=="__esModule"&&(Object.prototype.hasOwnProperty.call(m,j)||j in _&&_[j]===Q[j]||Object.defineProperty(_,j,{enumerable:!0,get:function(){return Q[j]}}))});var ot=e(y(3427)),t=e(y(8566)),n=y(2262);function r(j){if(typeof WeakMap!="function")return null;var T=new WeakMap,R=new WeakMap;return(r=function(q){return q?R:T})(j)}function i(j,T){if(!T&&j&&j.__esModule)return j;if(j===null||typeof j!="object"&&typeof j!="function")return{default:j};var R=r(T);if(R&&R.has(j))return R.get(j);var q={},Z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var rt in j)if(rt!=="default"&&Object.prototype.hasOwnProperty.call(j,rt)){var D=Z?Object.getOwnPropertyDescriptor(j,rt):null;D&&(D.get||D.set)?Object.defineProperty(q,rt,D):q[rt]=j[rt]}return q.default=j,R&&R.set(j,q),q}function e(j){return j&&j.__esModule?j:{default:j}}var o=y(5454);class s{constructor(T){if(T.secure!==void 0)throw new Error('"secure" option deprecated, "useSSL" should be used instead');if(T.useSSL===void 0&&(T.useSSL=!0),T.port||(T.port=0),!(0,M.isValidEndpoint)(T.endPoint))throw new $.InvalidEndpointError(`Invalid endPoint : ${T.endPoint}`);if(!(0,M.isValidPort)(T.port))throw new $.InvalidArgumentError(`Invalid port : ${T.port}`);if(!(0,M.isBoolean)(T.useSSL))throw new $.InvalidArgumentError(`Invalid useSSL flag type : ${T.useSSL}, expected to be of type "boolean"`);if(T.region&&!(0,M.isString)(T.region))throw new $.InvalidArgumentError(`Invalid region : ${T.region}`);var R,q=T.endPoint.toLowerCase(),Z=T.port,rt="";if(T.useSSL===!1?(R=a.default,rt="http:",Z===0&&(Z=80)):(R=p.default,rt="https:",Z===0&&(Z=443)),T.transport){if(!(0,M.isObject)(T.transport))throw new $.InvalidArgumentError('Invalid transport type : ${params.transport}, expected to be type "object"');R=T.transport}var D=`MinIO (${x.platform}; ${x.arch}) minio-js/${o.version}`;if(this.transport=R,this.host=q,this.port=Z,this.protocol=rt,this.accessKey=T.accessKey,this.secretKey=T.secretKey,this.sessionToken=T.sessionToken,this.userAgent=`${D}`,T.pathStyle===void 0?this.pathStyle=!0:this.pathStyle=T.pathStyle,this.accessKey||(this.accessKey=""),this.secretKey||(this.secretKey=""),this.anonymous=!this.accessKey||!this.secretKey,T.credentialsProvider&&(this.credentialsProvider=T.credentialsProvider,this.checkAndRefreshCreds()),this.regionMap={},T.region&&(this.region=T.region),this.partSize=67108864,T.partSize&&(this.partSize=T.partSize,this.overRidePartSize=!0),this.partSize<5242880)throw new $.InvalidArgumentError("Part size should be greater than 5MB");if(this.partSize>5368709120)throw new $.InvalidArgumentError("Part size should be less than 5GB");this.maximumPartSize=5368709120,this.maxObjectSize=5497558138880,this.enableSHA256=!this.anonymous&&!T.useSSL,this.s3AccelerateEndpoint=T.s3AccelerateEndpoint||null,this.reqOptions={}}getAccelerateEndPointIfSet(T,R){if(!E.default.isEmpty(this.s3AccelerateEndpoint)&&!E.default.isEmpty(T)&&!E.default.isEmpty(R)){if(T.indexOf(".")!==-1)throw new Error(`Transfer Acceleration is not supported for non compliant bucket:${T}`);return this.s3AccelerateEndpoint}return!1}setS3TransferAccelerate(T){this.s3AccelerateEndpoint=T}setRequestOptions(T){if(!(0,M.isObject)(T))throw new TypeError('request options should be of type "object"');this.reqOptions=E.default.pick(T,["agent","ca","cert","ciphers","clientCertEngine","crl","dhparam","ecdhCurve","family","honorCipherOrder","key","passphrase","pfx","rejectUnauthorized","secureOptions","secureProtocol","servername","sessionIdContext"])}getRequestOptions(T){var R,q=T.method,Z=T.region,rt=T.bucketName,D=T.objectName,G=T.headers,z=T.query,X={method:q,headers:{}};if(rt&&(R=(0,M.isVirtualHostStyle)(this.host,this.protocol,rt,this.pathStyle)),this.port&&(X.port=this.port),X.protocol=this.protocol,D&&(D=`${(0,M.uriResourceEscape)(D)}`),X.path="/",X.host=this.host,(0,M.isAmazonEndpoint)(X.host)){const st=this.getAccelerateEndPointIfSet(rt,D);X.host=st?`${st}`:(0,et.getS3Endpoint)(Z)}return R&&!T.pathStyle?(rt&&(X.host=`${rt}.${X.host}`),D&&(X.path=`/${D}`)):(rt&&(X.path=`/${rt}`),D&&(X.path=`/${rt}/${D}`)),z&&(X.path+=`?${z}`),X.headers.host=X.host,(X.protocol==="http:"&&X.port!==80||X.protocol==="https:"&&X.port!==443)&&(X.headers.host=`${X.host}:${X.port}`),X.headers["user-agent"]=this.userAgent,G&&E.default.map(G,(st,nt)=>X.headers[nt.toLowerCase()]=st),X=Object.assign({},this.reqOptions,X)}setAppInfo(T,R){if(!(0,M.isString)(T))throw new TypeError(`Invalid appName: ${T}`);if(T.trim()==="")throw new $.InvalidArgumentError("Input appName cannot be empty.");if(!(0,M.isString)(R))throw new TypeError(`Invalid appVersion: ${R}`);if(R.trim()==="")throw new $.InvalidArgumentError("Input appVersion cannot be empty.");this.userAgent=`${this.userAgent} ${T}/${R}`}calculatePartSize(T){if(!(0,M.isNumber)(T))throw new TypeError('size should be of type "number"');if(T>this.maxObjectSize)throw new TypeError(`size should not be more than ${this.maxObjectSize}`);if(this.overRidePartSize)return this.partSize;for(var R=this.partSize;;){if(1e4*R>T)return R;R+=16777216}}logHTTP(T,R,q){if(this.logStream){if(!(0,M.isObject)(T))throw new TypeError('reqOptions should be of type "object"');if(R&&!(0,M.isReadableStream)(R))throw new TypeError('response should be of type "Stream"');if(q&&!(q instanceof Error))throw new TypeError('err should be of type "Error"');var Z=D=>{E.default.forEach(D,(G,z)=>{if(z=="authorization"){var X=new RegExp("Signature=([0-9a-f]+)");G=G.replace(X,"Signature=**REDACTED**")}this.logStream.write(`${z}: ${G}
|
|
95
|
+
`)}),this.logStream.write(`
|
|
96
|
+
`)};if(this.logStream.write(`REQUEST: ${T.method} ${T.path}
|
|
97
|
+
`),Z(T.headers),R&&(this.logStream.write(`RESPONSE: ${R.statusCode}
|
|
98
|
+
`),Z(R.headers)),q){this.logStream.write(`ERROR BODY:
|
|
99
|
+
`);var rt=JSON.stringify(q,null," ");this.logStream.write(`${rt}
|
|
100
|
+
`)}}}traceOn(T){T||(T=x.stdout),this.logStream=T}traceOff(){this.logStream=null}makeRequest(T,R,q,Z,rt,D){if(!(0,M.isObject)(T))throw new TypeError('options should be of type "object"');if(!(0,M.isString)(R)&&!(0,M.isObject)(R))throw new TypeError('payload should be of type "string" or "Buffer"');if(q.forEach(X=>{if(!(0,M.isNumber)(X))throw new TypeError('statusCode should be of type "number"')}),!(0,M.isString)(Z))throw new TypeError('region should be of type "string"');if(!(0,M.isBoolean)(rt))throw new TypeError('returnResponse should be of type "boolean"');if(!(0,M.isFunction)(D))throw new TypeError('callback should be of type "function"');T.headers||(T.headers={}),T.method!=="POST"&&T.method!=="PUT"&&T.method!=="DELETE"||(T.headers["content-length"]=R.length);var G="";this.enableSHA256&&(G=(0,M.toSha256)(R));var z=(0,M.readableStream)(R);this.makeRequestStream(T,z,G,q,Z,rt,D)}makeRequestStream(T,R,q,Z,rt,D,G){if(!(0,M.isObject)(T))throw new TypeError('options should be of type "object"');if(!(0,M.isReadableStream)(R))throw new $.InvalidArgumentError("stream should be a readable Stream");if(!(0,M.isString)(q))throw new TypeError('sha256sum should be of type "string"');if(Z.forEach(X=>{if(!(0,M.isNumber)(X))throw new TypeError('statusCode should be of type "number"')}),!(0,M.isString)(rt))throw new TypeError('region should be of type "string"');if(!(0,M.isBoolean)(D))throw new TypeError('returnResponse should be of type "boolean"');if(!(0,M.isFunction)(G))throw new TypeError('callback should be of type "function"');if(!this.enableSHA256&&q.length!==0)throw new $.InvalidArgumentError("sha256sum expected to be empty for anonymous or https requests");if(this.enableSHA256&&q.length!==64)throw new $.InvalidArgumentError(`Invalid sha256sum : ${q}`);var z=(X,st)=>{if(X)return G(X);T.region=st;var nt=this.getRequestOptions(T);if(!this.anonymous){this.enableSHA256||(q="UNSIGNED-PAYLOAD");let gt=new Date;nt.headers["x-amz-date"]=(0,M.makeDateLong)(gt),nt.headers["x-amz-content-sha256"]=q,this.sessionToken&&(nt.headers["x-amz-security-token"]=this.sessionToken),this.checkAndRefreshCreds();var ht=(0,B.signV4)(nt,this.accessKey,this.secretKey,st,gt);nt.headers.authorization=ht}var Et=this.transport.request(nt,gt=>{if(Z.includes(gt.statusCode)){if(this.logHTTP(nt,gt),D)return G(null,gt);gt.on("data",()=>{}),G(null)}else{delete this.regionMap[T.bucketName];var bt=N.getErrorTransformer(gt);(0,M.pipesetup)(gt,bt).on("error",Bt=>{this.logHTTP(nt,gt,Bt),G(Bt)})}});(0,M.pipesetup)(R,Et).on("error",gt=>{this.logHTTP(nt,null,gt),G(gt)})};if(rt)return z(null,rt);this.getBucketRegion(T.bucketName,z)}getBucketRegion(T,R){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError(`Invalid bucket name : ${T}`);if(!(0,M.isFunction)(R))throw new TypeError('cb should be of type "function"');if(this.region)return R(null,this.region);if(this.regionMap[T])return R(null,this.regionMap[T]);var q=D=>{var G=N.getBucketRegionTransformer(),z=M.DEFAULT_REGION;(0,M.pipesetup)(D,G).on("error",R).on("data",X=>{X&&(z=X)}).on("end",()=>{this.regionMap[T]=z,R(null,z)})},Z="location",rt=this.pathStyle&&typeof window>"u";this.makeRequest({method:"GET",bucketName:T,query:Z,pathStyle:rt},"",[200],M.DEFAULT_REGION,!0,(D,G)=>{if(D){if(D.name==="AuthorizationHeaderMalformed"){var z=D.Region;return z?void this.makeRequest({method:"GET",bucketName:T,query:Z},"",[200],z,!0,(X,st)=>{if(X)return R(X);q(st)}):R(D)}return R(D)}q(G)})}makeBucket(T,R,q={},Z){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);if((0,M.isObject)(R)&&(Z=q,q=R,R=""),(0,M.isFunction)(R)&&(Z=R,R="",q={}),(0,M.isFunction)(q)&&(Z=q,q={}),!(0,M.isString)(R))throw new TypeError('region should be of type "string"');if(!(0,M.isObject)(q))throw new TypeError('makeOpts should be of type "object"');if(!(0,M.isFunction)(Z))throw new TypeError('callback should be of type "function"');var rt="";if(R&&this.region&&R!==this.region)throw new $.InvalidArgumentError(`Configured region ${this.region}, requested ${R}`);if(R&&R!==M.DEFAULT_REGION){var D=[];D.push({_attr:{xmlns:"http://s3.amazonaws.com/doc/2006-03-01/"}}),D.push({LocationConstraint:R});var G={CreateBucketConfiguration:D};rt=(0,f.default)(G)}var z={};q.ObjectLocking&&(z["x-amz-bucket-object-lock-enabled"]=!0),R||(R=M.DEFAULT_REGION),this.makeRequest({method:"PUT",bucketName:T,headers:z},rt,[200],R,!1,X=>{if(X&&(R===""||R===M.DEFAULT_REGION)){if(X.code!=="AuthorizationHeaderMalformed"||X.region==="")return Z&&Z(X);this.makeRequest({method:"PUT",bucketName:T,headers:z},rt,[200],X.region,!1,Z)}return Z&&Z(X)})}listBuckets(T){if(!(0,M.isFunction)(T))throw new TypeError('callback should be of type "function"');this.makeRequest({method:"GET"},"",[200],M.DEFAULT_REGION,!0,(R,q)=>{if(R)return T(R);var Z,rt=N.getListBucketTransformer();(0,M.pipesetup)(q,rt).on("data",D=>Z=D).on("error",D=>T(D)).on("end",()=>T(null,Z))})}listIncompleteUploads(T,R,q){if(R===void 0&&(R=""),q===void 0&&(q=!1),!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);if(!(0,M.isValidPrefix)(R))throw new $.InvalidPrefixError(`Invalid prefix : ${R}`);if(!(0,M.isBoolean)(q))throw new TypeError('recursive should be of type "boolean"');var Z=q?"":"/",rt="",D="",G=[],z=!1,X=c.default.Readable({objectMode:!0});return X._read=()=>G.length?X.push(G.shift()):z?X.push(null):void this.listIncompleteUploadsQuery(T,R,rt,D,Z).on("error",st=>X.emit("error",st)).on("data",st=>{st.prefixes.forEach(nt=>G.push(nt)),h.default.eachSeries(st.uploads,(nt,ht)=>{this.listParts(T,nt.key,nt.uploadId,(Et,gt)=>{if(Et)return ht(Et);nt.size=gt.reduce((bt,Bt)=>bt+Bt.size,0),G.push(nt),ht()})},nt=>{nt?X.emit("error",nt):(st.isTruncated?(rt=st.nextKeyMarker,D=st.nextUploadIdMarker):z=!0,X._read())})}),X}bucketExists(T,R){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);if(!(0,M.isFunction)(R))throw new TypeError('callback should be of type "function"');this.makeRequest({method:"HEAD",bucketName:T},"",[200],"",!1,q=>{if(q)return q.code=="NoSuchBucket"||q.code=="NotFound"?R(null,!1):R(q);R(null,!0)})}removeBucket(T,R){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);if(!(0,M.isFunction)(R))throw new TypeError('callback should be of type "function"');this.makeRequest({method:"DELETE",bucketName:T},"",[204],"",!1,q=>{q||delete this.regionMap[T],R(q)})}removeIncompleteUpload(T,R,q){if(!(0,M.isValidBucketName)(T))throw new $.isValidBucketNameError("Invalid bucket name: "+T);if(!(0,M.isValidObjectName)(R))throw new $.InvalidObjectNameError(`Invalid object name: ${R}`);if(!(0,M.isFunction)(q))throw new TypeError('callback should be of type "function"');var Z;h.default.during(rt=>{this.findUploadId(T,R,(D,G)=>{if(D)return rt(D);Z=G,rt(null,G)})},rt=>{var D=`uploadId=${Z}`;this.makeRequest({method:"DELETE",bucketName:T,objectName:R,query:D},"",[204],"",!1,G=>rt(G))},q)}fGetObject(T,R,q,Z={},rt){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);if(!(0,M.isValidObjectName)(R))throw new $.InvalidObjectNameError(`Invalid object name: ${R}`);if(!(0,M.isString)(q))throw new TypeError('filePath should be of type "string"');if((0,M.isFunction)(Z)&&(rt=Z,Z={}),!(0,M.isFunction)(rt))throw new TypeError('callback should be of type "function"');var D,G,z,X=st=>{if(st)return rt(st);S.default.rename(D,q,rt)};h.default.waterfall([st=>this.statObject(T,R,Z,st),(st,nt)=>{z=st,(0,w.default)(b.default.dirname(q),nt)},(st,nt)=>{D=`${q}.${z.etag}.part.minio`,S.default.stat(D,(ht,Et)=>{var gt=0;if(ht)G=S.default.createWriteStream(D,{flags:"w"});else{if(z.size===Et.size)return X();gt=Et.size,G=S.default.createWriteStream(D,{flags:"a"})}this.getPartialObject(T,R,gt,0,Z,nt)})},(st,nt)=>{(0,M.pipesetup)(st,G).on("error",ht=>nt(ht)).on("finish",nt)},st=>S.default.stat(D,st),(st,nt)=>{if(st.size===z.size)return nt();nt(new Error("Size mismatch between downloaded file and the object"))}],X)}getObject(T,R,q={},Z){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);if(!(0,M.isValidObjectName)(R))throw new $.InvalidObjectNameError(`Invalid object name: ${R}`);if((0,M.isFunction)(q)&&(Z=q,q={}),!(0,M.isFunction)(Z))throw new TypeError('callback should be of type "function"');this.getPartialObject(T,R,0,0,q,Z)}getPartialObject(T,R,q,Z,rt={},D){if((0,M.isFunction)(Z)&&(D=Z,Z=0),!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);if(!(0,M.isValidObjectName)(R))throw new $.InvalidObjectNameError(`Invalid object name: ${R}`);if(!(0,M.isNumber)(q))throw new TypeError('offset should be of type "number"');if(!(0,M.isNumber)(Z))throw new TypeError('length should be of type "number"');if((0,M.isFunction)(rt)&&(D=rt,rt={}),!(0,M.isFunction)(D))throw new TypeError('callback should be of type "function"');var G="";(q||Z)&&(q?G=`bytes=${+q}-`:(G="bytes=0-",q=0),Z&&(G+=""+(+Z+q-1)));var z={};G!==""&&(z.range=G);var X=[200];G&&X.push(206);var st=u.default.stringify(rt);this.makeRequest({method:"GET",bucketName:T,objectName:R,headers:z,query:st},"",X,"",!0,D)}fPutObject(T,R,q,Z,rt){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);if(!(0,M.isValidObjectName)(R))throw new $.InvalidObjectNameError(`Invalid object name: ${R}`);if(!(0,M.isString)(q))throw new TypeError('filePath should be of type "string"');if((0,M.isFunction)(Z)&&(rt=Z,Z={}),!(0,M.isObject)(Z))throw new TypeError('metaData should be of type "object"');var D,G;Z=(0,M.insertContentType)(Z,q),Z=(0,M.prependXAMZMeta)(Z),h.default.waterfall([z=>S.default.stat(q,z),(z,X)=>{D=z.size;var st=!1,nt=X;if(X=function(){if(!st)return st=!0,nt.apply(this,arguments)},D>this.maxObjectSize)return X(new Error(`${q} size : ${z.size}, max allowed size : 5TB`));if(D<=this.partSize){var ht=this.getUploader(T,R,Z,!1),Et=N.getHashSummer(this.enableSHA256),gt=D-1;D===0&&(gt=0);var bt={start:0,end:gt,autoClose:!0};(0,M.pipesetup)(S.default.createReadStream(q,bt),Et).on("data",Bt=>{var Mt=Bt.md5sum,It=Bt.sha256sum,J=S.default.createReadStream(q,bt);ht(J,D,It,Mt,(tt,F)=>{rt(tt,F),X(!0)})}).on("error",Bt=>X(Bt))}else this.findUploadId(T,R,X)},(z,X)=>{if(z)return this.listParts(T,R,z,(st,nt)=>X(st,z,nt));this.initiateNewMultipartUpload(T,R,Z,(st,nt)=>X(st,nt,[]))},(z,X,st)=>{G=this.calculatePartSize(D);var nt=this.getUploader(T,R,Z,!0),ht=X.reduce(function(Bt,Mt){return Bt[Mt.part]||(Bt[Mt.part]=Mt),Bt},{}),Et=[],gt=1,bt=0;h.default.whilst(Bt=>{Bt(null,bt<D)},Bt=>{var Mt=!1,It=Bt;Bt=function(){if(!Mt)return Mt=!0,It.apply(this,arguments)};var J=ht[gt],tt=N.getHashSummer(this.enableSHA256),F=G;F>D-bt&&(F=D-bt);var H={autoClose:!0,start:bt,end:bt+F-1};(0,M.pipesetup)(S.default.createReadStream(q,H),tt).on("data",U=>{var it=v.from(U.md5sum,"base64").toString("hex");if(J&&it===J.etag)return Et.push({part:gt,etag:J.etag}),gt++,bt+=F,Bt();var pt=S.default.createReadStream(q,H);nt(z,gt,pt,F,U.sha256sum,U.md5sum,(ft,mt)=>ft?Bt(ft):(Et.push({part:gt,etag:mt.etag}),gt++,bt+=F,Bt()))}).on("error",U=>Bt(U))},Bt=>{if(Bt)return st(Bt);st(null,Et,z)})},(z,X,st)=>this.completeMultipartUpload(T,R,X,z,st)],(z,...X)=>{z!==!0&&rt(z,...X)})}putObject(T,R,q,Z,rt,D){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);if(!(0,M.isValidObjectName)(R))throw new $.InvalidObjectNameError(`Invalid object name: ${R}`);if((0,M.isFunction)(Z)?(D=Z,rt={}):(0,M.isFunction)(rt)&&(D=rt,rt={}),(0,M.isObject)(Z)&&(rt=Z),rt=(0,M.prependXAMZMeta)(rt),typeof q=="string"||q instanceof v)Z=q.length,q=(0,M.readableStream)(q);else if(!(0,M.isReadableStream)(q))throw new TypeError('third argument should be of type "stream.Readable" or "Buffer" or "string"');if(!(0,M.isFunction)(D))throw new TypeError('callback should be of type "function"');if((0,M.isNumber)(Z)&&Z<0)throw new $.InvalidArgumentError(`size cannot be negative, given size: ${Z}`);(0,M.isNumber)(Z)||(Z=this.maxObjectSize),Z=this.calculatePartSize(Z);let G=new l.default({size:Z,zeroPadding:!1}),z=new P.default(this,T,R,Z,rt,D);q.pipe(G).pipe(z)}copyObjectV1(T,R,q,Z,rt){var D,G,z=T,X=R,st=q;if(typeof Z=="function"&&rt===void 0?(D=null,G=Z):(D=Z,G=rt),!(0,M.isValidBucketName)(z))throw new $.InvalidBucketNameError("Invalid bucket name: "+z);if(!(0,M.isValidObjectName)(X))throw new $.InvalidObjectNameError(`Invalid object name: ${X}`);if(!(0,M.isString)(st))throw new TypeError('srcObject should be of type "string"');if(st==="")throw new $.InvalidPrefixError("Empty source prefix");if(D!==null&&!(D instanceof A))throw new TypeError('conditions should be of type "CopyConditions"');var nt={};nt["x-amz-copy-source"]=(0,M.uriResourceEscape)(st),D!==null&&(D.modified!==""&&(nt["x-amz-copy-source-if-modified-since"]=D.modified),D.unmodified!==""&&(nt["x-amz-copy-source-if-unmodified-since"]=D.unmodified),D.matchETag!==""&&(nt["x-amz-copy-source-if-match"]=D.matchETag),D.matchEtagExcept!==""&&(nt["x-amz-copy-source-if-none-match"]=D.matchETagExcept)),this.makeRequest({method:"PUT",bucketName:z,objectName:X,headers:nt},"",[200],"",!0,(ht,Et)=>{if(ht)return G(ht);var gt=N.getCopyObjectTransformer();(0,M.pipesetup)(Et,gt).on("error",bt=>G(bt)).on("data",bt=>G(null,bt))})}copyObjectV2(T,R,q){if(!(T instanceof M.CopySourceOptions))throw new $.InvalidArgumentError("sourceConfig should of type CopySourceOptions ");if(!(R instanceof M.CopyDestinationOptions))throw new $.InvalidArgumentError("destConfig should of type CopyDestinationOptions ");if(!R.validate()||!R.validate())return!1;if(!(0,M.isFunction)(q))throw new TypeError('callback should be of type "function"');const Z=Object.assign({},T.getHeaders(),R.getHeaders()),rt=R.Bucket,D=R.Object;this.makeRequest({method:"PUT",bucketName:rt,objectName:D,headers:Z},"",[200],"",!0,(G,z)=>{if(G)return q(G);const X=N.getCopyObjectTransformer();(0,M.pipesetup)(z,X).on("error",st=>q(st)).on("data",st=>{const nt=z.headers,ht={Bucket:R.Bucket,Key:R.Object,LastModified:st.LastModified,MetaData:(0,M.extractMetadata)(nt),VersionId:(0,M.getVersionId)(nt),SourceVersionId:(0,M.getSourceVersionId)(nt),Etag:(0,M.sanitizeETag)(nt.etag),Size:+nt["content-length"]};return q(null,ht)})})}copyObject(...T){return T[0]instanceof M.CopySourceOptions&&T[1]instanceof M.CopyDestinationOptions?this.copyObjectV2(...arguments):this.copyObjectV1(...arguments)}listObjectsQuery(T,R,q,Z={}){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);if(!(0,M.isString)(R))throw new TypeError('prefix should be of type "string"');if(!(0,M.isString)(q))throw new TypeError('marker should be of type "string"');let{Delimiter:rt,MaxKeys:D,IncludeVersion:G}=Z;if(!(0,M.isObject)(Z))throw new TypeError('listQueryOpts should be of type "object"');if(!(0,M.isString)(rt))throw new TypeError('Delimiter should be of type "string"');if(!(0,M.isNumber)(D))throw new TypeError('MaxKeys should be of type "number"');const z=[];z.push(`prefix=${(0,M.uriEscape)(R)}`),z.push(`delimiter=${(0,M.uriEscape)(rt)}`),z.push("encoding-type=url"),G&&z.push("versions"),q&&(q=(0,M.uriEscape)(q),G?z.push(`key-marker=${q}`):z.push(`marker=${q}`)),D&&(D>=1e3&&(D=1e3),z.push(`max-keys=${D}`)),z.sort();var X="";z.length>0&&(X=`${z.join("&")}`);var st=N.getListObjectsTransformer();return this.makeRequest({method:"GET",bucketName:T,query:X},"",[200],"",!0,(nt,ht)=>{if(nt)return st.emit("error",nt);(0,M.pipesetup)(ht,st)}),st}listObjects(T,R,q,Z={}){if(R===void 0&&(R=""),q===void 0&&(q=!1),!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);if(!(0,M.isValidPrefix)(R))throw new $.InvalidPrefixError(`Invalid prefix : ${R}`);if(!(0,M.isString)(R))throw new TypeError('prefix should be of type "string"');if(!(0,M.isBoolean)(q))throw new TypeError('recursive should be of type "boolean"');if(!(0,M.isObject)(Z))throw new TypeError('listOpts should be of type "object"');var rt="";const D={Delimiter:q?"":"/",MaxKeys:1e3,IncludeVersion:Z.IncludeVersion};var G=[],z=!1,X=c.default.Readable({objectMode:!0});return X._read=()=>{if(!G.length)return z?X.push(null):void this.listObjectsQuery(T,R,rt,D).on("error",st=>X.emit("error",st)).on("data",st=>{st.isTruncated?rt=st.nextMarker||st.versionIdMarker:z=!0,G=st.objects,X._read()});X.push(G.shift())},X}listObjectsV2Query(T,R,q,Z,rt,D){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);if(!(0,M.isString)(R))throw new TypeError('prefix should be of type "string"');if(!(0,M.isString)(q))throw new TypeError('continuationToken should be of type "string"');if(!(0,M.isString)(Z))throw new TypeError('delimiter should be of type "string"');if(!(0,M.isNumber)(rt))throw new TypeError('maxKeys should be of type "number"');if(!(0,M.isString)(D))throw new TypeError('startAfter should be of type "string"');var G=[];G.push("list-type=2"),G.push("encoding-type=url"),G.push(`prefix=${(0,M.uriEscape)(R)}`),G.push(`delimiter=${(0,M.uriEscape)(Z)}`),q&&(q=(0,M.uriEscape)(q),G.push(`continuation-token=${q}`)),D&&(D=(0,M.uriEscape)(D),G.push(`start-after=${D}`)),rt&&(rt>=1e3&&(rt=1e3),G.push(`max-keys=${rt}`)),G.sort();var z="";G.length>0&&(z=`${G.join("&")}`);var X=N.getListObjectsV2Transformer();return this.makeRequest({method:"GET",bucketName:T,query:z},"",[200],"",!0,(st,nt)=>{if(st)return X.emit("error",st);(0,M.pipesetup)(nt,X)}),X}listObjectsV2(T,R,q,Z){if(R===void 0&&(R=""),q===void 0&&(q=!1),Z===void 0&&(Z=""),!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);if(!(0,M.isValidPrefix)(R))throw new $.InvalidPrefixError(`Invalid prefix : ${R}`);if(!(0,M.isString)(R))throw new TypeError('prefix should be of type "string"');if(!(0,M.isBoolean)(q))throw new TypeError('recursive should be of type "boolean"');if(!(0,M.isString)(Z))throw new TypeError('startAfter should be of type "string"');var rt=q?"":"/",D="",G=[],z=!1,X=c.default.Readable({objectMode:!0});return X._read=()=>{if(!G.length)return z?X.push(null):void this.listObjectsV2Query(T,R,D,rt,1e3,Z).on("error",st=>X.emit("error",st)).on("data",st=>{st.isTruncated?D=st.nextContinuationToken:z=!0,G=st.objects,X._read()});X.push(G.shift())},X}statObject(T,R,q={},Z){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);if(!(0,M.isValidObjectName)(R))throw new $.InvalidObjectNameError(`Invalid object name: ${R}`);if((0,M.isFunction)(q)&&(Z=q,q={}),!(0,M.isObject)(q))throw new $.InvalidArgumentError('statOpts should be of type "object"');if(!(0,M.isFunction)(Z))throw new TypeError('callback should be of type "function"');var rt=u.default.stringify(q);this.makeRequest({method:"HEAD",bucketName:T,objectName:R,query:rt},"",[200],"",!0,(D,G)=>{if(D)return Z(D);G.on("data",()=>{});const z={size:+G.headers["content-length"],metaData:(0,M.extractMetadata)(G.headers),lastModified:new Date(G.headers["last-modified"]),versionId:(0,M.getVersionId)(G.headers),etag:(0,M.sanitizeETag)(G.headers.etag)};Z(null,z)})}removeObject(T,R,q={},Z){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);if(!(0,M.isValidObjectName)(R))throw new $.InvalidObjectNameError(`Invalid object name: ${R}`);if((0,M.isFunction)(q)&&(Z=q,q={}),!(0,M.isObject)(q))throw new $.InvalidArgumentError('removeOpts should be of type "object"');if(!(0,M.isFunction)(Z))throw new TypeError('callback should be of type "function"');const rt={};q.versionId&&(rt.versionId=`${q.versionId}`);const D={};q.governanceBypass&&(D["X-Amz-Bypass-Governance-Retention"]=!0);const G=u.default.stringify(rt);let z={method:"DELETE",bucketName:T,objectName:R,headers:D};G&&(z.query=G),this.makeRequest(z,"",[200,204],"",!1,Z)}removeObjects(T,R,q){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);if(!(0,M.isArray)(R))throw new $.InvalidArgumentError("objectsList should be a list");if(!(0,M.isFunction)(q))throw new TypeError('callback should be of type "function"');let Z=R.reduce((D,G)=>(D.list.push(G),D.list.length===1e3&&(D.listOfList.push(D.list),D.list=[]),D),{listOfList:[],list:[]});Z.list.length>0&&Z.listOfList.push(Z.list);const rt=new I.TextEncoder;h.default.eachSeries(Z.listOfList,(D,G)=>{var z=[];D.forEach(function(ht){(0,M.isObject)(ht)?z.push({Key:ht.name,VersionId:ht.versionId}):z.push({Key:ht})});let X={Delete:{Quiet:!0,Object:z}},st=new g.default.Builder({headless:!0}).buildObject(X);st=rt.encode(st);const nt={};nt["Content-MD5"]=(0,M.toMd5)(st),this.makeRequest({method:"POST",bucketName:T,query:"delete",headers:nt},st,[200],"",!1,ht=>{if(ht)return G(ht);G(null)})},q)}getBucketPolicy(T,R){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError(`Invalid bucket name: ${T}`);if(!(0,M.isFunction)(R))throw new TypeError('callback should be of type "function"');this.makeRequest({method:"GET",bucketName:T,query:"policy"},"",[200],"",!0,(q,Z)=>{if(q)return R(q);let rt=v.from("");(0,M.pipesetup)(Z,N.getConcater()).on("data",D=>rt=D).on("error",R).on("end",()=>{R(null,rt.toString())})})}setBucketPolicy(T,R,q){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError(`Invalid bucket name: ${T}`);if(!(0,M.isString)(R))throw new $.InvalidBucketPolicyError(`Invalid bucket policy: ${R} - must be "string"`);if(!(0,M.isFunction)(q))throw new TypeError('callback should be of type "function"');let Z="DELETE";R&&(Z="PUT"),this.makeRequest({method:Z,bucketName:T,query:"policy"},R,[204],"",!1,q)}presignedUrl(T,R,q,Z,rt,D,G){if(this.anonymous)throw new $.AnonymousRequestError("Presigned "+T+" url cannot be generated for anonymous requests");if((0,M.isFunction)(D)&&(G=D,D=new Date),(0,M.isFunction)(rt)&&(G=rt,rt={},D=new Date),(0,M.isFunction)(Z)&&(G=Z,rt={},Z=604800,D=new Date),!(0,M.isNumber)(Z))throw new TypeError('expires should be of type "number"');if(!(0,M.isObject)(rt))throw new TypeError('reqParams should be of type "object"');if(!(0,M.isValidDate)(D))throw new TypeError('requestDate should be of type "Date" and valid');if(!(0,M.isFunction)(G))throw new TypeError('callback should be of type "function"');var z=u.default.stringify(rt);this.getBucketRegion(R,(X,st)=>{if(X)return G(X);var nt,ht=this.getRequestOptions({method:T,region:st,bucketName:R,objectName:q,query:z});this.checkAndRefreshCreds();try{nt=(0,B.presignSignatureV4)(ht,this.accessKey,this.secretKey,this.sessionToken,st,D,Z)}catch(Et){return G(Et)}G(null,nt)})}presignedGetObject(T,R,q,Z,rt,D){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);if(!(0,M.isValidObjectName)(R))throw new $.InvalidObjectNameError(`Invalid object name: ${R}`);return(0,M.isFunction)(Z)&&(D=Z,Z={},rt=new Date),["response-content-type","response-content-language","response-expires","response-cache-control","response-content-disposition","response-content-encoding"].forEach(G=>{if(Z!==void 0&&Z[G]!==void 0&&!(0,M.isString)(Z[G]))throw new TypeError(`response header ${G} should be of type "string"`)}),this.presignedUrl("GET",T,R,q,Z,rt,D)}presignedPutObject(T,R,q,Z){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: ${bucketName}");if(!(0,M.isValidObjectName)(R))throw new $.InvalidObjectNameError("Invalid object name: ${objectName}");return this.presignedUrl("PUT",T,R,q,Z)}newPostPolicy(){return new C}presignedPostPolicy(T,R){if(this.anonymous)throw new $.AnonymousRequestError("Presigned POST policy cannot be generated for anonymous requests");if(!(0,M.isObject)(T))throw new TypeError('postPolicy should be of type "object"');if(!(0,M.isFunction)(R))throw new TypeError('cb should be of type "function"');this.getBucketRegion(T.formData.bucket,(q,Z)=>{if(q)return R(q);var rt=new Date,D=(0,M.makeDateLong)(rt);if(this.checkAndRefreshCreds(),!T.policy.expiration){var G=new Date;G.setSeconds(604800),T.setExpires(G)}T.policy.conditions.push(["eq","$x-amz-date",D]),T.formData["x-amz-date"]=D,T.policy.conditions.push(["eq","$x-amz-algorithm","AWS4-HMAC-SHA256"]),T.formData["x-amz-algorithm"]="AWS4-HMAC-SHA256",T.policy.conditions.push(["eq","$x-amz-credential",this.accessKey+"/"+(0,M.getScope)(Z,rt)]),T.formData["x-amz-credential"]=this.accessKey+"/"+(0,M.getScope)(Z,rt),this.sessionToken&&(T.policy.conditions.push(["eq","$x-amz-security-token",this.sessionToken]),T.formData["x-amz-security-token"]=this.sessionToken);var z=v.from(JSON.stringify(T.policy)).toString("base64");T.formData.policy=z;var X=(0,B.postPresignSignatureV4)(Z,rt,this.secretKey,z);T.formData["x-amz-signature"]=X;var st={};st.region=Z,st.bucketName=T.formData.bucket;var nt=this.getRequestOptions(st),ht=this.port==80||this.port===443?"":`:${this.port.toString()}`,Et=`${nt.protocol}//${nt.host}${ht}${nt.path}`;R(null,{postURL:Et,formData:T.formData})})}initiateNewMultipartUpload(T,R,q,Z){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);if(!(0,M.isValidObjectName)(R))throw new $.InvalidObjectNameError(`Invalid object name: ${R}`);if(!(0,M.isObject)(q))throw new $.InvalidObjectNameError('contentType should be of type "object"');let rt=Object.assign({},q);this.makeRequest({method:"POST",bucketName:T,objectName:R,query:"uploads",headers:rt},"",[200],"",!0,(D,G)=>{if(D)return Z(D);var z=N.getInitiateMultipartTransformer();(0,M.pipesetup)(G,z).on("error",X=>Z(X)).on("data",X=>Z(null,X))})}completeMultipartUpload(T,R,q,Z,rt){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);if(!(0,M.isValidObjectName)(R))throw new $.InvalidObjectNameError(`Invalid object name: ${R}`);if(!(0,M.isString)(q))throw new TypeError('uploadId should be of type "string"');if(!(0,M.isObject)(Z))throw new TypeError('etags should be of type "Array"');if(!(0,M.isFunction)(rt))throw new TypeError('cb should be of type "function"');if(!q)throw new $.InvalidArgumentError("uploadId cannot be empty");var D=`uploadId=${(0,M.uriEscape)(q)}`,G=[];Z.forEach(st=>{G.push({Part:[{PartNumber:st.part},{ETag:st.etag}]})});var z={CompleteMultipartUpload:G},X=(0,f.default)(z);this.makeRequest({method:"POST",bucketName:T,objectName:R,query:D},X,[200],"",!0,(st,nt)=>{if(st)return rt(st);var ht=N.getCompleteMultipartTransformer();(0,M.pipesetup)(nt,ht).on("error",Et=>rt(Et)).on("data",Et=>{if(Et.errCode)rt(new $.S3Error(Et.errMessage));else{const gt={etag:Et.etag,versionId:(0,M.getVersionId)(nt.headers)};rt(null,gt)}})})}listParts(T,R,q,Z){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);if(!(0,M.isValidObjectName)(R))throw new $.InvalidObjectNameError(`Invalid object name: ${R}`);if(!(0,M.isString)(q))throw new TypeError('uploadId should be of type "string"');if(!q)throw new $.InvalidArgumentError("uploadId cannot be empty");var rt=[],D=G=>{this.listPartsQuery(T,R,q,G,(z,X)=>{z?Z(z):(rt=rt.concat(X.parts),X.isTruncated?D(X.marker):Z(null,rt))})};D(0)}listPartsQuery(T,R,q,Z,rt){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);if(!(0,M.isValidObjectName)(R))throw new $.InvalidObjectNameError(`Invalid object name: ${R}`);if(!(0,M.isString)(q))throw new TypeError('uploadId should be of type "string"');if(!(0,M.isNumber)(Z))throw new TypeError('marker should be of type "number"');if(!(0,M.isFunction)(rt))throw new TypeError('callback should be of type "function"');if(!q)throw new $.InvalidArgumentError("uploadId cannot be empty");var D="";Z&&Z!==0&&(D+=`part-number-marker=${Z}&`),D+=`uploadId=${(0,M.uriEscape)(q)}`,this.makeRequest({method:"GET",bucketName:T,objectName:R,query:D},"",[200],"",!0,(G,z)=>{if(G)return rt(G);var X=N.getListPartsTransformer();(0,M.pipesetup)(z,X).on("error",st=>rt(st)).on("data",st=>rt(null,st))})}listIncompleteUploadsQuery(T,R,q,Z,rt){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);if(!(0,M.isString)(R))throw new TypeError('prefix should be of type "string"');if(!(0,M.isString)(q))throw new TypeError('keyMarker should be of type "string"');if(!(0,M.isString)(Z))throw new TypeError('uploadIdMarker should be of type "string"');if(!(0,M.isString)(rt))throw new TypeError('delimiter should be of type "string"');var D=[];D.push(`prefix=${(0,M.uriEscape)(R)}`),D.push(`delimiter=${(0,M.uriEscape)(rt)}`),q&&(q=(0,M.uriEscape)(q),D.push(`key-marker=${q}`)),Z&&D.push(`upload-id-marker=${Z}`),D.push("max-uploads=1000"),D.sort(),D.unshift("uploads");var G="";D.length>0&&(G=`${D.join("&")}`);var z=N.getListMultipartTransformer();return this.makeRequest({method:"GET",bucketName:T,query:G},"",[200],"",!0,(X,st)=>{if(X)return z.emit("error",X);(0,M.pipesetup)(st,z)}),z}findUploadId(T,R,q){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);if(!(0,M.isValidObjectName)(R))throw new $.InvalidObjectNameError(`Invalid object name: ${R}`);if(!(0,M.isFunction)(q))throw new TypeError('cb should be of type "function"');var Z,rt=(D,G)=>{this.listIncompleteUploadsQuery(T,R,D,G,"").on("error",z=>q(z)).on("data",z=>{if(z.uploads.forEach(X=>{X.key!==R||Z&&!(X.initiated.getTime()>Z.initiated.getTime())||(Z=X)}),!z.isTruncated)return Z?q(null,Z.uploadId):void q(null,void 0);rt(z.nextKeyMarker,z.nextUploadIdMarker)})};rt("","")}getUploader(T,R,q,Z){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);if(!(0,M.isValidObjectName)(R))throw new $.InvalidObjectNameError(`Invalid object name: ${R}`);if(!(0,M.isBoolean)(Z))throw new TypeError('multipart should be of type "boolean"');if(!(0,M.isObject)(q))throw new TypeError('metadata should be of type "object"');var rt=(G,z,X,st,nt)=>{if(!(0,M.isReadableStream)(G))throw new TypeError('stream should be of type "Stream"');if(!(0,M.isNumber)(z))throw new TypeError('length should be of type "number"');if(!(0,M.isString)(X))throw new TypeError('sha256sum should be of type "string"');if(!(0,M.isString)(st))throw new TypeError('md5sum should be of type "string"');if(!(0,M.isFunction)(nt))throw new TypeError('callback should be of type "function"')},D=(G,z,X,st,nt,ht)=>{let Et={"Content-Length":X};Z||(Et=Object.assign({},q,Et)),this.enableSHA256||(Et["Content-MD5"]=nt),this.makeRequestStream({method:"PUT",bucketName:T,objectName:R,query:G,headers:Et},z,st,[200],"",!0,(gt,bt)=>{if(gt)return ht(gt);const Bt={etag:(0,M.sanitizeETag)(bt.headers.etag),versionId:(0,M.getVersionId)(bt.headers)};bt.on("data",()=>{}),ht(null,Bt)})};return Z?(G,z,...X)=>{if(!(0,M.isString)(G))throw new TypeError('uploadId should be of type "string"');if(!(0,M.isNumber)(z))throw new TypeError('partNumber should be of type "number"');if(!G)throw new $.InvalidArgumentError("Empty uploadId");if(!z)throw new $.InvalidArgumentError("partNumber cannot be 0");rt(...X);var st=`partNumber=${z}&uploadId=${(0,M.uriEscape)(G)}`;D(st,...X)}:(...G)=>{rt(...G),D("",...G)}}setBucketNotification(T,R,q){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);if(!(0,M.isObject)(R))throw new TypeError('notification config should be of type "Object"');if(!(0,M.isFunction)(q))throw new TypeError('callback should be of type "function"');var Z=new g.default.Builder({rootName:"NotificationConfiguration",renderOpts:{pretty:!1},headless:!0}).buildObject(R);this.makeRequest({method:"PUT",bucketName:T,query:"notification"},Z,[200],"",!1,q)}removeAllBucketNotification(T,R){this.setBucketNotification(T,new Q.NotificationConfig,R)}getBucketNotification(T,R){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);if(!(0,M.isFunction)(R))throw new TypeError('callback should be of type "function"');this.makeRequest({method:"GET",bucketName:T,query:"notification"},"",[200],"",!0,(q,Z)=>{if(q)return R(q);var rt,D=N.getBucketNotificationTransformer();(0,M.pipesetup)(Z,D).on("data",G=>rt=G).on("error",G=>R(G)).on("end",()=>R(null,rt))})}listenBucketNotification(T,R,q,Z){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError(`Invalid bucket name: ${T}`);if(!(0,M.isString)(R))throw new TypeError("prefix must be of type string");if(!(0,M.isString)(q))throw new TypeError("suffix must be of type string");if(!(0,M.isArray)(Z))throw new TypeError("events must be of type Array");let rt=new Q.NotificationPoller(this,T,R,q,Z);return rt.start(),rt}getBucketVersioning(T,R){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);if(!(0,M.isFunction)(R))throw new $.InvalidArgumentError('callback should be of type "function"');this.makeRequest({method:"GET",bucketName:T,query:"versioning"},"",[200],"",!0,(q,Z)=>{if(q)return R(q);let rt=v.from("");(0,M.pipesetup)(Z,N.bucketVersioningTransformer()).on("data",D=>{rt=D}).on("error",R).on("end",()=>{R(null,rt)})})}setBucketVersioning(T,R,q){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);if(!Object.keys(R).length)throw new $.InvalidArgumentError('versionConfig should be of type "object"');if(!(0,M.isFunction)(q))throw new TypeError('callback should be of type "function"');var Z=new g.default.Builder({rootName:"VersioningConfiguration",renderOpts:{pretty:!1},headless:!0}).buildObject(R);this.makeRequest({method:"PUT",bucketName:T,query:"versioning"},Z,[200],"",!1,q)}setTagging(T){const{bucketName:R,objectName:q,tags:Z,putOpts:rt={},cb:D}=T;let G="tagging";rt&&rt.versionId&&(G=`${G}&versionId=${rt.versionId}`);const z=[];for(const[gt,bt]of Object.entries(Z))z.push({Key:gt,Value:bt});const X={Tagging:{TagSet:{Tag:z}}},st=new I.TextEncoder,nt={};let ht=new g.default.Builder({headless:!0,renderOpts:{pretty:!1}}).buildObject(X);ht=st.encode(ht),nt["Content-MD5"]=(0,M.toMd5)(ht);const Et={method:"PUT",bucketName:R,query:G,headers:nt};q&&(Et.objectName=q),nt["Content-MD5"]=(0,M.toMd5)(ht),this.makeRequest(Et,ht,[200],"",!1,D)}setBucketTagging(T,R,q){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);if(!(0,M.isObject)(R))throw new $.InvalidArgumentError('tags should be of type "object"');if(Object.keys(R).length>10)throw new $.InvalidArgumentError('maximum tags allowed is 10"');if(!(0,M.isFunction)(q))throw new $.InvalidArgumentError('callback should be of type "function"');return this.setTagging({bucketName:T,tags:R,cb:q})}setObjectTagging(T,R,q,Z={},rt){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);if(!(0,M.isValidObjectName)(R))throw new $.InvalidBucketNameError("Invalid object name: "+R);if((0,M.isFunction)(Z)&&(rt=Z,Z={}),!(0,M.isObject)(q))throw new $.InvalidArgumentError('tags should be of type "object"');if(Object.keys(q).length>10)throw new $.InvalidArgumentError('Maximum tags allowed is 10"');if(!(0,M.isFunction)(rt))throw new TypeError('callback should be of type "function"');return this.setTagging({bucketName:T,objectName:R,tags:q,putOpts:Z,cb:rt})}removeTagging({bucketName:T,objectName:R,removeOpts:q,cb:Z}){let rt="tagging";q&&Object.keys(q).length&&q.versionId&&(rt=`${rt}&versionId=${q.versionId}`);const D={method:"DELETE",bucketName:T,objectName:R,query:rt};R&&(D.objectName=R),this.makeRequest(D,"",[200,204],"",!0,Z)}removeBucketTagging(T,R){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);if(!(0,M.isFunction)(R))throw new TypeError('callback should be of type "function"');return this.removeTagging({bucketName:T,cb:R})}removeObjectTagging(T,R,q,Z){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);if(!(0,M.isValidObjectName)(R))throw new $.InvalidBucketNameError("Invalid object name: "+R);if((0,M.isFunction)(q)&&(Z=q,q={}),q&&Object.keys(q).length&&!(0,M.isObject)(q))throw new $.InvalidArgumentError('removeOpts should be of type "object"');if(!(0,M.isFunction)(Z))throw new TypeError('callback should be of type "function"');return this.removeTagging({bucketName:T,objectName:R,removeOpts:q,cb:Z})}getBucketTagging(T,R){const q={method:"GET",bucketName:T,query:"tagging"};this.makeRequest(q,"",[200],"",!0,(Z,rt)=>{var D=N.getTagsTransformer();if(Z)return R(Z);let G;(0,M.pipesetup)(rt,D).on("data",z=>G=z).on("error",z=>R(z)).on("end",()=>R(null,G))})}getObjectTagging(T,R,q={},Z=()=>!1){let rt="tagging";if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);if(!(0,M.isValidObjectName)(R))throw new $.InvalidBucketNameError("Invalid object name: "+R);if((0,M.isFunction)(q)&&(Z=q,q={}),!(0,M.isObject)(q))throw new $.InvalidArgumentError('getOpts should be of type "object"');if(!(0,M.isFunction)(Z))throw new TypeError('callback should be of type "function"');q&&q.versionId&&(rt=`${rt}&versionId=${q.versionId}`);const D={method:"GET",bucketName:T,query:rt};R&&(D.objectName=R),this.makeRequest(D,"",[200],"",!0,(G,z)=>{const X=N.getTagsTransformer();if(G)return Z(G);let st;(0,M.pipesetup)(z,X).on("data",nt=>st=nt).on("error",nt=>Z(nt)).on("end",()=>Z(null,st))})}applyBucketLifecycle(T,R,q){const Z=new I.TextEncoder,rt={};let D=new g.default.Builder({rootName:"LifecycleConfiguration",headless:!0,renderOpts:{pretty:!1}}).buildObject(R);D=Z.encode(D);const G={method:"PUT",bucketName:T,query:"lifecycle",headers:rt};rt["Content-MD5"]=(0,M.toMd5)(D),this.makeRequest(G,D,[200],"",!1,q)}removeBucketLifecycle(T,R){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);this.makeRequest({method:"DELETE",bucketName:T,query:"lifecycle"},"",[204],"",!1,R)}setBucketLifecycle(T,R=null,q){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);E.default.isEmpty(R)?this.removeBucketLifecycle(T,q):this.applyBucketLifecycle(T,R,q)}getBucketLifecycle(T,R){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);const q={method:"GET",bucketName:T,query:"lifecycle"};this.makeRequest(q,"",[200],"",!0,(Z,rt)=>{const D=N.lifecycleTransformer();if(Z)return R(Z);let G;(0,M.pipesetup)(rt,D).on("data",z=>G=z).on("error",z=>R(z)).on("end",()=>R(null,G))})}setObjectLockConfig(T,R={},q){const Z=[M.RETENTION_MODES.COMPLIANCE,M.RETENTION_MODES.GOVERNANCE],rt=[M.RETENTION_VALIDITY_UNITS.DAYS,M.RETENTION_VALIDITY_UNITS.YEARS];if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);if(R.mode&&!Z.includes(R.mode))throw new TypeError(`lockConfigOpts.mode should be one of ${Z}`);if(R.unit&&!rt.includes(R.unit))throw new TypeError(`lockConfigOpts.unit should be one of ${rt}`);if(R.validity&&!(0,M.isNumber)(R.validity))throw new TypeError("lockConfigOpts.validity should be a number");let D={ObjectLockEnabled:"Enabled"};const G=Object.keys(R);if(G.length>0){if(E.default.difference(G,["unit","mode","validity"]).length!==0)throw new TypeError("lockConfigOpts.mode,lockConfigOpts.unit,lockConfigOpts.validity all the properties should be specified.");D.Rule={DefaultRetention:{}},R.mode&&(D.Rule.DefaultRetention.Mode=R.mode),R.unit===M.RETENTION_VALIDITY_UNITS.DAYS?D.Rule.DefaultRetention.Days=R.validity:R.unit===M.RETENTION_VALIDITY_UNITS.YEARS&&(D.Rule.DefaultRetention.Years=R.validity)}const z=new g.default.Builder({rootName:"ObjectLockConfiguration",renderOpts:{pretty:!1},headless:!0}).buildObject(D),X={};X["Content-MD5"]=(0,M.toMd5)(z),this.makeRequest({method:"PUT",bucketName:T,query:"object-lock",headers:X},z,[200],"",!1,q)}getObjectLockConfig(T,R){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);if(!(0,M.isFunction)(R))throw new $.InvalidArgumentError('callback should be of type "function"');this.makeRequest({method:"GET",bucketName:T,query:"object-lock"},"",[200],"",!0,(q,Z)=>{if(q)return R(q);let rt=v.from("");(0,M.pipesetup)(Z,N.objectLockTransformer()).on("data",D=>{rt=D}).on("error",R).on("end",()=>{R(null,rt)})})}putObjectRetention(T,R,q={},Z){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);if(!(0,M.isValidObjectName)(R))throw new $.InvalidObjectNameError(`Invalid object name: ${R}`);if(!(0,M.isObject)(q))throw new $.InvalidArgumentError('retentionOpts should be of type "object"');if(q.governanceBypass&&!(0,M.isBoolean)(q.governanceBypass))throw new $.InvalidArgumentError("Invalid value for governanceBypass",q.governanceBypass);if(q.mode&&![M.RETENTION_MODES.COMPLIANCE,M.RETENTION_MODES.GOVERNANCE].includes(q.mode))throw new $.InvalidArgumentError("Invalid object retention mode ",q.mode);if(q.retainUntilDate&&!(0,M.isString)(q.retainUntilDate))throw new $.InvalidArgumentError("Invalid value for retainUntilDate",q.retainUntilDate);if(q.versionId&&!(0,M.isString)(q.versionId))throw new $.InvalidArgumentError("Invalid value for versionId",q.versionId);if(!(0,M.isFunction)(Z))throw new TypeError('callback should be of type "function"');let rt="retention";const D={};q.governanceBypass&&(D["X-Amz-Bypass-Governance-Retention"]=!0);const G=new g.default.Builder({rootName:"Retention",renderOpts:{pretty:!1},headless:!0}),z={};q.mode&&(z.Mode=q.mode),q.retainUntilDate&&(z.RetainUntilDate=q.retainUntilDate),q.versionId&&(rt+=`&versionId=${q.versionId}`);let X=G.buildObject(z);D["Content-MD5"]=(0,M.toMd5)(X),this.makeRequest({method:"PUT",bucketName:T,objectName:R,query:rt,headers:D},X,[200,204],"",!1,Z)}getObjectRetention(T,R,q,Z){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);if(!(0,M.isValidObjectName)(R))throw new $.InvalidObjectNameError(`Invalid object name: ${R}`);if(!(0,M.isObject)(q))throw new $.InvalidArgumentError('callback should be of type "object"');if(q.versionId&&!(0,M.isString)(q.versionId))throw new $.InvalidArgumentError('VersionID should be of type "string"');if(Z&&!(0,M.isFunction)(Z))throw new $.InvalidArgumentError('callback should be of type "function"');let rt="retention";q.versionId&&(rt+=`&versionId=${q.versionId}`),this.makeRequest({method:"GET",bucketName:T,objectName:R,query:rt},"",[200],"",!0,(D,G)=>{if(D)return Z(D);let z=v.from("");(0,M.pipesetup)(G,N.objectRetentionTransformer()).on("data",X=>{z=X}).on("error",Z).on("end",()=>{Z(null,z)})})}setBucketEncryption(T,R,q){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);if((0,M.isFunction)(R)&&(q=R,R=null),!E.default.isEmpty(R)&&R.Rule.length>1)throw new $.InvalidArgumentError("Invalid Rule length. Only one rule is allowed.: "+R.Rule);if(q&&!(0,M.isFunction)(q))throw new TypeError('callback should be of type "function"');let Z=R;E.default.isEmpty(R)&&(Z={Rule:[{ApplyServerSideEncryptionByDefault:{SSEAlgorithm:"AES256"}}]});let rt=new g.default.Builder({rootName:"ServerSideEncryptionConfiguration",renderOpts:{pretty:!1},headless:!0}).buildObject(Z);const D={};D["Content-MD5"]=(0,M.toMd5)(rt),this.makeRequest({method:"PUT",bucketName:T,query:"encryption",headers:D},rt,[200],"",!1,q)}getBucketEncryption(T,R){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);if(!(0,M.isFunction)(R))throw new $.InvalidArgumentError('callback should be of type "function"');this.makeRequest({method:"GET",bucketName:T,query:"encryption"},"",[200],"",!0,(q,Z)=>{if(q)return R(q);let rt=v.from("");(0,M.pipesetup)(Z,N.bucketEncryptionTransformer()).on("data",D=>{rt=D}).on("error",R).on("end",()=>{R(null,rt)})})}removeBucketEncryption(T,R){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);if(!(0,M.isFunction)(R))throw new $.InvalidArgumentError('callback should be of type "function"');this.makeRequest({method:"DELETE",bucketName:T,query:"encryption"},"",[204],"",!1,R)}setBucketReplication(T,R={},q){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);if(!(0,M.isObject)(R))throw new $.InvalidArgumentError('replicationConfig should be of type "object"');if(E.default.isEmpty(R.role))throw new $.InvalidArgumentError("Role cannot be empty");if(R.role&&!(0,M.isString)(R.role))throw new $.InvalidArgumentError("Invalid value for role",R.role);if(E.default.isEmpty(R.rules))throw new $.InvalidArgumentError("Minimum one replication rule must be specified");if(!(0,M.isFunction)(q))throw new TypeError('callback should be of type "function"');const Z={},rt={ReplicationConfiguration:{Role:R.role,Rule:R.rules}};let D=new g.default.Builder({renderOpts:{pretty:!1},headless:!0}).buildObject(rt);Z["Content-MD5"]=(0,M.toMd5)(D),this.makeRequest({method:"PUT",bucketName:T,query:"replication",headers:Z},D,[200],"",!1,q)}getBucketReplication(T,R){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);if(!(0,M.isFunction)(R))throw new $.InvalidArgumentError('callback should be of type "function"');this.makeRequest({method:"GET",bucketName:T,query:"replication"},"",[200],"",!0,(q,Z)=>{if(q)return R(q);let rt=v.from("");(0,M.pipesetup)(Z,N.replicationConfigTransformer()).on("data",D=>{rt=D}).on("error",R).on("end",()=>{R(null,rt)})})}removeBucketReplication(T,R){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);this.makeRequest({method:"DELETE",bucketName:T,query:"replication"},"",[200,204],"",!1,R)}getObjectLegalHold(T,R,q={},Z){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);if(!(0,M.isValidObjectName)(R))throw new $.InvalidObjectNameError(`Invalid object name: ${R}`);if((0,M.isFunction)(q)&&(Z=q,q={}),!(0,M.isObject)(q))throw new TypeError('getOpts should be of type "Object"');if(Object.keys(q).length>0&&q.versionId&&!(0,M.isString)(q.versionId))throw new TypeError("versionId should be of type string.:",q.versionId);if(!(0,M.isFunction)(Z))throw new $.InvalidArgumentError('callback should be of type "function"');let rt="legal-hold";q.versionId&&(rt+=`&versionId=${q.versionId}`),this.makeRequest({method:"GET",bucketName:T,objectName:R,query:rt},"",[200],"",!0,(D,G)=>{if(D)return Z(D);let z=v.from("");(0,M.pipesetup)(G,N.objectLegalHoldTransformer()).on("data",X=>{z=X}).on("error",Z).on("end",()=>{Z(null,z)})})}setObjectLegalHold(T,R,q={},Z){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError("Invalid bucket name: "+T);if(!(0,M.isValidObjectName)(R))throw new $.InvalidObjectNameError(`Invalid object name: ${R}`);const rt={status:M.LEGAL_HOLD_STATUS.ENABLED};if((0,M.isFunction)(q)&&(Z=q,q=rt),!(0,M.isObject)(q))throw new TypeError('setOpts should be of type "Object"');if(![M.LEGAL_HOLD_STATUS.ENABLED,M.LEGAL_HOLD_STATUS.DISABLED].includes(q.status))throw new TypeError("Invalid status: "+q.status);if(q.versionId&&!q.versionId.length)throw new TypeError("versionId should be of type string.:"+q.versionId);if(!(0,M.isFunction)(Z))throw new $.InvalidArgumentError('callback should be of type "function"');E.default.isEmpty(q)&&(q={defaultOpts:rt});let D="legal-hold";q.versionId&&(D+=`&versionId=${q.versionId}`);let G={Status:q.status};const z=new g.default.Builder({rootName:"LegalHold",renderOpts:{pretty:!1},headless:!0}).buildObject(G),X={};X["Content-MD5"]=(0,M.toMd5)(z),this.makeRequest({method:"PUT",bucketName:T,objectName:R,query:D,headers:X},z,[200],"",!1,Z)}setCredentialsProvider(T){return Ha(this,null,function*(){if(!(T instanceof t.default))throw new Error("Unable to get credentials. Expected instance of CredentialProvider");this.credentialsProvider=T,yield this.checkAndRefreshCreds()})}checkAndRefreshCreds(){return Ha(this,null,function*(){if(this.credentialsProvider)return yield this.fetchCredentials()})}fetchCredentials(){return Ha(this,null,function*(){if(!this.credentialsProvider)throw new Error("Unable to get credentials. Expected instance of BaseCredentialsProvider");{const T=yield this.credentialsProvider.getCredentials();if(!T)throw new Error("Unable to get credentials. Expected instance of BaseCredentialsProvider");this.accessKey=T.getAccessKey(),this.secretKey=T.getSecretKey(),this.sessionToken=T.getSessionToken()}})}abortMultipartUpload(T,R,q,Z){const rt={method:"DELETE",bucketName:T,objectName:R,query:`uploadId=${q}`};this.makeRequest(rt,"",[204],"",!1,Z)}uploadPartCopy(T,R){const{bucketName:q,objectName:Z,uploadID:rt,partNumber:D,headers:G}=T,z={method:"PUT",bucketName:q,objectName:Z,query:`uploadId=${rt}&partNumber=${D}`,headers:G};return this.makeRequest(z,"",[200],"",!0,(X,st)=>{let nt=v.from("");if(X)return R(X);(0,M.pipesetup)(st,N.uploadPartTransformer()).on("data",ht=>{nt=ht}).on("error",R).on("end",()=>{let ht={etag:(0,M.sanitizeETag)(nt.ETag),key:Z,part:D};R(null,ht)})})}composeObject(T={},R=[],q){const Z=this,rt=R.length;if(!(0,M.isArray)(R))throw new $.InvalidArgumentError("sourceConfig should an array of CopySourceOptions ");if(!(T instanceof M.CopyDestinationOptions))throw new $.InvalidArgumentError("destConfig should of type CopyDestinationOptions ");if(rt<1||rt>M.PART_CONSTRAINTS.MAX_PARTS_COUNT)throw new $.InvalidArgumentError(`"There must be as least one and up to ${M.PART_CONSTRAINTS.MAX_PARTS_COUNT} source objects.`);if(!(0,M.isFunction)(q))throw new TypeError('callback should be of type "function"');for(let st=0;st<rt;st++)if(!R[st].validate())return!1;if(!T.validate())return!1;const D=[];let G=0,z=0;const X=R.map(st=>Z.statObject(st.Bucket,st.Object,(nt=>{let ht={};return E.default.isEmpty(nt.VersionID)||(ht={versionId:nt.VersionID}),ht})(st)));return Promise.all(X).then(st=>{const nt=st.map((bt,Bt)=>{const Mt=R[Bt];let It=bt.size;if(Mt.MatchRange){const J=Mt.Start,tt=Mt.End;if(tt>=It||J<0)throw new $.InvalidArgumentError(`CopySrcOptions ${Bt} has invalid segment-to-copy [${J}, ${tt}] (size is ${It})`);It=tt-J+1}if(It<M.PART_CONSTRAINTS.ABS_MIN_PART_SIZE&&Bt<rt-1)throw new $.InvalidArgumentError(`CopySrcOptions ${Bt} is too small (${It}) and it is not the last part.`);if(G+=It,G>M.PART_CONSTRAINTS.MAX_MULTIPART_PUT_OBJECT_SIZE)throw new $.InvalidArgumentError(`Cannot compose an object of size ${G} (> 5TiB)`);if(D[Bt]=It,z+=(0,M.partsRequired)(It),z>M.PART_CONSTRAINTS.MAX_PARTS_COUNT)throw new $.InvalidArgumentError(`Your proposed compose object requires more than ${M.PART_CONSTRAINTS.MAX_PARTS_COUNT} parts`);return bt});if(z===1&&G<=M.PART_CONSTRAINTS.MAX_PART_SIZE||G===0)return this.copyObject(R[0],T,q);for(let bt=0;bt<rt;bt++)R[bt].MatchETag=nt[bt].etag;const ht=nt.map((bt,Bt)=>(0,M.calculateEvenSplits)(D[Bt],R[Bt])),Et=bt=>{const Bt=function(Mt){const It=[];return ht.forEach((J,tt)=>{const{startIndex:F,endIndex:H,objInfo:U}=J;let it=tt+1;const pt=Array.from(F),ft=R[tt].getHeaders();pt.forEach((mt,re)=>{let _t=H[re];const At=`${U.Bucket}/${U.Object}`;ft["x-amz-copy-source"]=`${At}`,ft["x-amz-copy-source-range"]=`bytes=${mt}-${_t}`;const fe={bucketName:T.Bucket,objectName:T.Object,uploadID:Mt,partNumber:it,headers:ft,sourceObj:At};It.push(fe)})}),It}(bt);h.default.map(Bt,Z.uploadPartCopy.bind(Z),(Mt,It)=>{if(Mt)return this.abortMultipartUpload(T.Bucket,T.Object,bt,q);const J=It.map(tt=>({etag:tt.etag,part:tt.part}));return Z.completeMultipartUpload(T.Bucket,T.Object,bt,J,q)})},gt=T.getHeaders();Z.initiateNewMultipartUpload(T.Bucket,T.Object,gt,(bt,Bt)=>{if(bt)return q(bt,null);Et(Bt)})}).catch(st=>{q(st,null)})}selectObjectContent(T,R,q={},Z){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError(`Invalid bucket name: ${T}`);if(!(0,M.isValidObjectName)(R))throw new $.InvalidObjectNameError(`Invalid object name: ${R}`);if(E.default.isEmpty(q))throw new TypeError("valid select configuration is required");if(!(0,M.isString)(q.expression))throw new TypeError('sqlExpression should be of type "string"');if(E.default.isEmpty(q.inputSerialization))throw new TypeError("inputSerialization is required");if(!(0,M.isObject)(q.inputSerialization))throw new TypeError('inputSerialization should be of type "object"');if(E.default.isEmpty(q.outputSerialization))throw new TypeError("outputSerialization is required");if(!(0,M.isObject)(q.outputSerialization))throw new TypeError('outputSerialization should be of type "object"');if(!(0,M.isFunction)(Z))throw new TypeError('callback should be of type "function"');const rt=[{Expression:q.expression},{ExpressionType:q.expressionType||"SQL"},{InputSerialization:[q.inputSerialization]},{OutputSerialization:[q.outputSerialization]}];q.requestProgress&&rt.push({RequestProgress:q.requestProgress}),q.scanRange&&rt.push({ScanRange:q.scanRange});const D=new g.default.Builder({rootName:"SelectObjectContentRequest",renderOpts:{pretty:!1},headless:!0}).buildObject(rt);this.makeRequest({method:"POST",bucketName:T,objectName:R,query:"select&select-type=2"},D,[200],"",!0,(G,z)=>{if(G)return Z(G);let X;(0,M.pipesetup)(z,N.selectObjectContentTransformer()).on("data",st=>{X=(0,n.parseSelectObjectContentResponse)(st)}).on("error",Z).on("end",()=>{Z(null,X)})})}get extensions(){return this.clientExtensions||(this.clientExtensions=new ot.default(this)),this.clientExtensions}}_.Client=s,s.prototype.makeBucket=(0,M.promisify)(s.prototype.makeBucket),s.prototype.listBuckets=(0,M.promisify)(s.prototype.listBuckets),s.prototype.bucketExists=(0,M.promisify)(s.prototype.bucketExists),s.prototype.removeBucket=(0,M.promisify)(s.prototype.removeBucket),s.prototype.getObject=(0,M.promisify)(s.prototype.getObject),s.prototype.getPartialObject=(0,M.promisify)(s.prototype.getPartialObject),s.prototype.fGetObject=(0,M.promisify)(s.prototype.fGetObject),s.prototype.putObject=(0,M.promisify)(s.prototype.putObject),s.prototype.fPutObject=(0,M.promisify)(s.prototype.fPutObject),s.prototype.copyObject=(0,M.promisify)(s.prototype.copyObject),s.prototype.statObject=(0,M.promisify)(s.prototype.statObject),s.prototype.removeObject=(0,M.promisify)(s.prototype.removeObject),s.prototype.removeObjects=(0,M.promisify)(s.prototype.removeObjects),s.prototype.presignedUrl=(0,M.promisify)(s.prototype.presignedUrl),s.prototype.presignedGetObject=(0,M.promisify)(s.prototype.presignedGetObject),s.prototype.presignedPutObject=(0,M.promisify)(s.prototype.presignedPutObject),s.prototype.presignedPostPolicy=(0,M.promisify)(s.prototype.presignedPostPolicy),s.prototype.getBucketNotification=(0,M.promisify)(s.prototype.getBucketNotification),s.prototype.setBucketNotification=(0,M.promisify)(s.prototype.setBucketNotification),s.prototype.removeAllBucketNotification=(0,M.promisify)(s.prototype.removeAllBucketNotification),s.prototype.getBucketPolicy=(0,M.promisify)(s.prototype.getBucketPolicy),s.prototype.setBucketPolicy=(0,M.promisify)(s.prototype.setBucketPolicy),s.prototype.removeIncompleteUpload=(0,M.promisify)(s.prototype.removeIncompleteUpload),s.prototype.getBucketVersioning=(0,M.promisify)(s.prototype.getBucketVersioning),s.prototype.setBucketVersioning=(0,M.promisify)(s.prototype.setBucketVersioning),s.prototype.setBucketTagging=(0,M.promisify)(s.prototype.setBucketTagging),s.prototype.removeBucketTagging=(0,M.promisify)(s.prototype.removeBucketTagging),s.prototype.getBucketTagging=(0,M.promisify)(s.prototype.getBucketTagging),s.prototype.setObjectTagging=(0,M.promisify)(s.prototype.setObjectTagging),s.prototype.removeObjectTagging=(0,M.promisify)(s.prototype.removeObjectTagging),s.prototype.getObjectTagging=(0,M.promisify)(s.prototype.getObjectTagging),s.prototype.setBucketLifecycle=(0,M.promisify)(s.prototype.setBucketLifecycle),s.prototype.getBucketLifecycle=(0,M.promisify)(s.prototype.getBucketLifecycle),s.prototype.removeBucketLifecycle=(0,M.promisify)(s.prototype.removeBucketLifecycle),s.prototype.setObjectLockConfig=(0,M.promisify)(s.prototype.setObjectLockConfig),s.prototype.getObjectLockConfig=(0,M.promisify)(s.prototype.getObjectLockConfig),s.prototype.putObjectRetention=(0,M.promisify)(s.prototype.putObjectRetention),s.prototype.getObjectRetention=(0,M.promisify)(s.prototype.getObjectRetention),s.prototype.setBucketEncryption=(0,M.promisify)(s.prototype.setBucketEncryption),s.prototype.getBucketEncryption=(0,M.promisify)(s.prototype.getBucketEncryption),s.prototype.removeBucketEncryption=(0,M.promisify)(s.prototype.removeBucketEncryption),s.prototype.setBucketReplication=(0,M.promisify)(s.prototype.setBucketReplication),s.prototype.getBucketReplication=(0,M.promisify)(s.prototype.getBucketReplication),s.prototype.removeBucketReplication=(0,M.promisify)(s.prototype.removeBucketReplication),s.prototype.setObjectLegalHold=(0,M.promisify)(s.prototype.setObjectLegalHold),s.prototype.getObjectLegalHold=(0,M.promisify)(s.prototype.getObjectLegalHold),s.prototype.composeObject=(0,M.promisify)(s.prototype.composeObject),s.prototype.selectObjectContent=(0,M.promisify)(s.prototype.selectObjectContent);class A{constructor(){this.modified="",this.unmodified="",this.matchETag="",this.matchETagExcept=""}setModified(T){if(!(T instanceof Date))throw new TypeError("date must be of type Date");this.modified=T.toUTCString()}setUnmodified(T){if(!(T instanceof Date))throw new TypeError("date must be of type Date");this.unmodified=T.toUTCString()}setMatchETag(T){this.matchETag=T}setMatchETagExcept(T){this.matchETagExcept=T}}_.CopyConditions=A;class C{constructor(){this.policy={conditions:[]},this.formData={}}setExpires(T){if(!T)throw new $.InvalidDateError("Invalid date : cannot be null");this.policy.expiration=T.toISOString()}setKey(T){if(!(0,M.isValidObjectName)(T))throw new $.InvalidObjectNameError(`Invalid object name : ${T}`);this.policy.conditions.push(["eq","$key",T]),this.formData.key=T}setKeyStartsWith(T){if(!(0,M.isValidPrefix)(T))throw new $.InvalidPrefixError(`Invalid prefix : ${T}`);this.policy.conditions.push(["starts-with","$key",T]),this.formData.key=T}setBucket(T){if(!(0,M.isValidBucketName)(T))throw new $.InvalidBucketNameError(`Invalid bucket name : ${T}`);this.policy.conditions.push(["eq","$bucket",T]),this.formData.bucket=T}setContentType(T){if(!T)throw new Error("content-type cannot be null");this.policy.conditions.push(["eq","$Content-Type",T]),this.formData["Content-Type"]=T}setContentTypeStartsWith(T){if(!T)throw new Error("content-type cannot be null");this.policy.conditions.push(["starts-with","$Content-Type",T]),this.formData["Content-Type"]=T}setContentDisposition(T){if(!T)throw new Error("content-disposition cannot be null");this.policy.conditions.push(["eq","$Content-Disposition",T]),this.formData["Content-Disposition"]=T}setContentLengthRange(T,R){if(T>R)throw new Error("min cannot be more than max");if(T<0)throw new Error("min should be > 0");if(R<0)throw new Error("max should be > 0");this.policy.conditions.push(["content-length-range",T,R])}setUserMetaData(T){if(!(0,M.isObject)(T))throw new TypeError('metadata should be of type "object"');Object.entries(T).forEach(([R,q])=>{const Z=`x-amz-meta-${R}`;this.policy.conditions.push(["eq",`$${Z}`,q]),this.formData[Z]=q})}}_.PostPolicy=C},3606:(W,_,y)=>{var x=y(4155);Object.defineProperty(_,"__esModule",{value:!0}),_.buildARN=_.TopicConfig=_.QueueConfig=_.ObjectRemovedDeleteMarkerCreated=_.ObjectRemovedDelete=_.ObjectRemovedAll=_.ObjectReducedRedundancyLostObject=_.ObjectCreatedPut=_.ObjectCreatedPost=_.ObjectCreatedCopy=_.ObjectCreatedCompleteMultipartUpload=_.ObjectCreatedAll=_.NotificationPoller=_.NotificationConfig=_.CloudFunctionConfig=void 0;var v=y(7187),m=function(h,u){if(h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var w=a(u);if(w&&w.has(h))return w.get(h);var b={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var I in h)if(I!=="default"&&Object.prototype.hasOwnProperty.call(h,I)){var M=E?Object.getOwnPropertyDescriptor(h,I):null;M&&(M.get||M.set)?Object.defineProperty(b,I,M):b[I]=h[I]}return b.default=h,w&&w.set(h,b),b}(y(6607)),S=y(1627);function a(h){if(typeof WeakMap!="function")return null;var u=new WeakMap,w=new WeakMap;return(a=function(b){return b?w:u})(h)}_.NotificationConfig=class{add(h){let u="";h instanceof c&&(u="TopicConfiguration"),h instanceof l&&(u="QueueConfiguration"),h instanceof f&&(u="CloudFunctionConfiguration"),this[u]||(this[u]=[]),this[u].push(h)}};class p{setId(u){this.Id=u}addEvent(u){this.Event||(this.Event=[]),this.Event.push(u)}addFilterSuffix(u){this.Filter||(this.Filter={S3Key:{FilterRule:[]}}),this.Filter.S3Key.FilterRule.push({Name:"suffix",Value:u})}addFilterPrefix(u){this.Filter||(this.Filter={S3Key:{FilterRule:[]}}),this.Filter.S3Key.FilterRule.push({Name:"prefix",Value:u})}}class c extends p{constructor(u){super(),this.Topic=u}}_.TopicConfig=c;class l extends p{constructor(u){super(),this.Queue=u}}_.QueueConfig=l;class f extends p{constructor(u){super(),this.CloudFunction=u}}_.CloudFunctionConfig=f,_.buildARN=(h,u,w,b,E)=>"arn:"+h+":"+u+":"+w+":"+b+":"+E,_.ObjectCreatedAll="s3:ObjectCreated:*",_.ObjectCreatedPut="s3:ObjectCreated:Put",_.ObjectCreatedPost="s3:ObjectCreated:Post",_.ObjectCreatedCopy="s3:ObjectCreated:Copy",_.ObjectCreatedCompleteMultipartUpload="s3:ObjectCreated:CompleteMultipartUpload",_.ObjectRemovedAll="s3:ObjectRemoved:*",_.ObjectRemovedDelete="s3:ObjectRemoved:Delete",_.ObjectRemovedDeleteMarkerCreated="s3:ObjectRemoved:DeleteMarkerCreated",_.ObjectReducedRedundancyLostObject="s3:ReducedRedundancyLostObject";class g extends v.EventEmitter{constructor(u,w,b,E,I){super(),this.client=u,this.bucketName=w,this.prefix=b,this.suffix=E,this.events=I,this.ending=!1}start(){this.ending=!1,x.nextTick(()=>{this.checkForChanges()})}stop(){this.ending=!0}checkForChanges(){if(this.ending)return;var u=[];if(this.prefix){var w=(0,S.uriEscape)(this.prefix);u.push(`prefix=${w}`)}if(this.suffix){var b=(0,S.uriEscape)(this.suffix);u.push(`suffix=${b}`)}this.events&&this.events.forEach(M=>u.push("events="+(0,S.uriEscape)(M))),u.sort();var E="";u.length>0&&(E=`${u.join("&")}`);const I=this.client.region||S.DEFAULT_REGION;this.client.makeRequest({method:"GET",bucketName:this.bucketName,query:E},"",[200],I,!0,(M,B)=>{if(M)return this.emit("error",M);let P=m.getNotificationTransformer();(0,S.pipesetup)(B,P).on("data",N=>{let $=N.Records;$||($=[]),$.forEach(et=>{this.emit("notification",et)}),this.ending&&B.destroy()}).on("error",N=>this.emit("error",N)).on("end",()=>{x.nextTick(()=>{this.checkForChanges()})})})}}_.NotificationPoller=g},3861:(W,_,y)=>{var x=y(4155);Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var v,m=y(2830),S=(v=y(5835))&&v.__esModule?v:{default:v},a=function(f,g){if(f&&f.__esModule)return f;if(f===null||typeof f!="object"&&typeof f!="function")return{default:f};var h=c(g);if(h&&h.has(f))return h.get(f);var u={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in f)if(b!=="default"&&Object.prototype.hasOwnProperty.call(f,b)){var E=w?Object.getOwnPropertyDescriptor(f,b):null;E&&(E.get||E.set)?Object.defineProperty(u,b,E):u[b]=f[b]}return u.default=f,h&&h.set(f,u),u}(y(7563)),p=y(1627);function c(f){if(typeof WeakMap!="function")return null;var g=new WeakMap,h=new WeakMap;return(c=function(u){return u?h:g})(f)}class l extends m.Transform{constructor(g,h,u,w,b,E){super(),this.emptyStream=!0,this.client=g,this.bucketName=h,this.objectName=u,this.partSize=w,this.metaData=b,this.callback=E,this.partNumber=1,this.oldParts=null,this.etags=[],this.id=null,this.on("error",I=>{E(I)})}_transform(g,h,u){this.emptyStream=!1;let w={"Content-Length":g.length},b="";if(this.client.enableSHA256||(b=S.default.createHash("md5").update(g).digest(),w["Content-MD5"]=b.toString("base64")),this.partNumber==1&&g.length<this.partSize){let M={method:"PUT",headers:Object.assign({},this.metaData,w),query:"",bucketName:this.bucketName,objectName:this.objectName};return void this.client.makeRequest(M,g,[200],"",!0,(B,P)=>{if(B)return u(B);let N={etag:(0,p.sanitizeETag)(P.headers.etag),versionId:(0,p.getVersionId)(P.headers)};P.on("data",()=>{}),x.nextTick(()=>{this.callback(null,N)}),u()})}if(this.id===null)return this.once("ready",()=>{this._transform(g,h,u)}),void this.client.findUploadId(this.bucketName,this.objectName,(M,B)=>{if(M)return this.emit("error",M);B?(this.id=B,this.client.listParts(this.bucketName,this.objectName,B,(P,N)=>{if(P)return this.emit("error",P);N||(N=[]),this.oldParts=N.reduce(function($,et){return $[et.part]||($[et.part]=et),$},{}),this.emit("ready")})):this.client.initiateNewMultipartUpload(this.bucketName,this.objectName,this.metaData,(P,N)=>{if(P)return u(P);this.id=N,this.emit("ready")})});let E=this.partNumber++;if(this.oldParts){let M=this.oldParts[E];if(b||(b=S.default.createHash("md5").update(g).digest()),M&&b.toString("hex")===M.etag)return this.etags.push({part:E,etag:M.etag}),void u()}let I={method:"PUT",query:a.stringify({partNumber:E,uploadId:this.id}),headers:w,bucketName:this.bucketName,objectName:this.objectName};this.client.makeRequest(I,g,[200],"",!0,(M,B)=>{if(M)return u(M);let P=B.headers.etag;P&&(P=P.replace(/^"/,"").replace(/"$/,"")),this.etags.push({part:E,etag:P}),B.on("data",()=>{}),u()})}_flush(g){if(this.emptyStream){let h={method:"PUT",headers:Object.assign({},this.metaData,{"Content-Length":0}),query:"",bucketName:this.bucketName,objectName:this.objectName};this.client.makeRequest(h,"",[200],"",!0,(u,w)=>{if(u)return g(u);let b={etag:(0,p.sanitizeETag)(w.headers.etag),versionId:(0,p.getVersionId)(w.headers)};w.on("data",()=>{}),x.nextTick(()=>{this.callback(null,b)}),g()})}else this.id!==null&&this.client.completeMultipartUpload(this.bucketName,this.objectName,this.id,this.etags,(h,u)=>{if(h)return g(h);x.nextTick(()=>{this.callback(null,u)}),g()})}}_.default=l},1670:(W,_,y)=>{Object.defineProperty(_,"__esModule",{value:!0}),_.getS3Endpoint=function(m){if(!(0,x.isString)(m))throw new TypeError(`Invalid region: ${m}`);var S=v[m];return S||"s3.amazonaws.com"};var x=y(1627);let v={"us-east-1":"s3.amazonaws.com","us-east-2":"s3-us-east-2.amazonaws.com","us-west-1":"s3-us-west-1.amazonaws.com","us-west-2":"s3-us-west-2.amazonaws.com","ca-central-1":"s3.ca-central-1.amazonaws.com","eu-west-1":"s3-eu-west-1.amazonaws.com","eu-west-2":"s3-eu-west-2.amazonaws.com","sa-east-1":"s3-sa-east-1.amazonaws.com","eu-central-1":"s3-eu-central-1.amazonaws.com","ap-south-1":"s3-ap-south-1.amazonaws.com","ap-southeast-1":"s3-ap-southeast-1.amazonaws.com","ap-southeast-2":"s3-ap-southeast-2.amazonaws.com","ap-northeast-1":"s3-ap-northeast-1.amazonaws.com","cn-north-1":"s3.cn-north-1.amazonaws.com.cn","ap-east-1":"s3.ap-east-1.amazonaws.com"}},5858:(W,_,y)=>{Object.defineProperty(_,"__esModule",{value:!0}),_.postPresignSignatureV4=function(b,E,I,M){if(!(0,m.isString)(b))throw new TypeError('region should be of type "string"');if(!(0,m.isObject)(E))throw new TypeError('date should be of type "object"');if(!(0,m.isString)(I))throw new TypeError('secretKey should be of type "string"');if(!(0,m.isString)(M))throw new TypeError('policyBase64 should be of type "string"');const B=h(E,b,I);return x.default.createHmac("sha256",B).update(M).digest("hex").toLowerCase()},_.presignSignatureV4=function(b,E,I,M,B,P,N){if(!(0,m.isObject)(b))throw new TypeError('request should be of type "object"');if(!(0,m.isString)(E))throw new TypeError('accessKey should be of type "string"');if(!(0,m.isString)(I))throw new TypeError('secretKey should be of type "string"');if(!(0,m.isString)(B))throw new TypeError('region should be of type "string"');if(!E)throw new S.AccessKeyRequiredError("accessKey is required for presigning");if(!I)throw new S.SecretKeyRequiredError("secretKey is required for presigning");if(!(0,m.isNumber)(N))throw new TypeError('expires should be of type "number"');if(N<1)throw new S.ExpiresParamError("expires param cannot be less than 1 seconds");if(N>604800)throw new S.ExpiresParamError("expires param cannot be greater than 7 days");const $=(0,m.makeDateLong)(P),et=g(b.headers),Q=f(E,B,P),ot=[];ot.push(`X-Amz-Algorithm=${c}`),ot.push(`X-Amz-Credential=${(0,m.uriEscape)(Q)}`),ot.push(`X-Amz-Date=${$}`),ot.push(`X-Amz-Expires=${N}`),ot.push(`X-Amz-SignedHeaders=${(0,m.uriEscape)(et.join(";").toLowerCase())}`),M&&ot.push(`X-Amz-Security-Token=${(0,m.uriEscape)(M)}`);const t=b.path.split("?")[0];let n=b.path.split("?")[1];n=n?n+"&"+ot.join("&"):ot.join("&");const r=t+"?"+n,i=u(l(b.method,r,b.headers,et,"UNSIGNED-PAYLOAD"),P,B),e=h(P,B,I),o=x.default.createHmac("sha256",e).update(i).digest("hex").toLowerCase();return b.protocol+"//"+b.headers.host+r+`&X-Amz-Signature=${o}`},_.signV4=w,_.signV4ByServiceName=function(b,E,I,M,B,P="s3"){return w(b,E,I,M,B,P)};var x=p(y(5835)),v=p(y(6486)),m=y(1627),S=function(b,E){if(b&&b.__esModule)return b;if(b===null||typeof b!="object"&&typeof b!="function")return{default:b};var I=a(E);if(I&&I.has(b))return I.get(b);var M={},B=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var P in b)if(P!=="default"&&Object.prototype.hasOwnProperty.call(b,P)){var N=B?Object.getOwnPropertyDescriptor(b,P):null;N&&(N.get||N.set)?Object.defineProperty(M,P,N):M[P]=b[P]}return M.default=b,I&&I.set(b,M),M}(y(1271));function a(b){if(typeof WeakMap!="function")return null;var E=new WeakMap,I=new WeakMap;return(a=function(M){return M?I:E})(b)}function p(b){return b&&b.__esModule?b:{default:b}}const c="AWS4-HMAC-SHA256";function l(b,E,I,M,B){if(!(0,m.isString)(b))throw new TypeError('method should be of type "string"');if(!(0,m.isString)(E))throw new TypeError('path should be of type "string"');if(!(0,m.isObject)(I))throw new TypeError('headers should be of type "object"');if(!(0,m.isArray)(M))throw new TypeError('signedHeaders should be of type "array"');if(!(0,m.isString)(B))throw new TypeError('hashedPayload should be of type "string"');const P=M.reduce((Q,ot)=>{const t=`${I[ot]}`.replace(/ +/g," ");return Q.push(`${ot.toLowerCase()}:${t}`),Q},[]),N=E.split("?")[0];let $=E.split("?")[1];$||($=""),$&&($=$.split("&").sort().map(Q=>Q.indexOf("=")===-1?Q+"=":Q).join("&"));const et=[];return et.push(b.toUpperCase()),et.push(N),et.push($),et.push(P.join(`
|
|
101
|
+
`)+`
|
|
102
|
+
`),et.push(M.join(";").toLowerCase()),et.push(B),et.join(`
|
|
103
|
+
`)}function f(b,E,I,M="s3"){if(!(0,m.isString)(b))throw new TypeError('accessKey should be of type "string"');if(!(0,m.isString)(E))throw new TypeError('region should be of type "string"');if(!(0,m.isObject)(I))throw new TypeError('requestDate should be of type "object"');return`${b}/${(0,m.getScope)(E,I,M)}`}function g(b){if(!(0,m.isObject)(b))throw new TypeError('request should be of type "object"');const E=["authorization","content-length","content-type","user-agent"];return v.default.map(b,(I,M)=>M).filter(I=>E.indexOf(I)===-1).sort()}function h(b,E,I,M="s3"){if(!(0,m.isObject)(b))throw new TypeError('date should be of type "object"');if(!(0,m.isString)(E))throw new TypeError('region should be of type "string"');if(!(0,m.isString)(I))throw new TypeError('secretKey should be of type "string"');const B=(0,m.makeDateShort)(b);let P=x.default.createHmac("sha256","AWS4"+I).update(B).digest(),N=x.default.createHmac("sha256",P).update(E).digest(),$=x.default.createHmac("sha256",N).update(M).digest();return x.default.createHmac("sha256",$).update("aws4_request").digest()}function u(b,E,I,M="s3"){if(!(0,m.isString)(b))throw new TypeError('canonicalRequest should be of type "string"');if(!(0,m.isObject)(E))throw new TypeError('requestDate should be of type "object"');if(!(0,m.isString)(I))throw new TypeError('region should be of type "string"');const B=x.default.createHash("sha256").update(b).digest("hex"),P=(0,m.getScope)(I,E,M),N=[];return N.push(c),N.push((0,m.makeDateLong)(E)),N.push(P),N.push(B),N.join(`
|
|
104
|
+
`)}function w(b,E,I,M,B,P="s3"){if(!(0,m.isObject)(b))throw new TypeError('request should be of type "object"');if(!(0,m.isString)(E))throw new TypeError('accessKey should be of type "string"');if(!(0,m.isString)(I))throw new TypeError('secretKey should be of type "string"');if(!(0,m.isString)(M))throw new TypeError('region should be of type "string"');if(!E)throw new S.AccessKeyRequiredError("accessKey is required for signing");if(!I)throw new S.SecretKeyRequiredError("secretKey is required for signing");const N=b.headers["x-amz-content-sha256"],$=g(b.headers),et=P||"s3",Q=u(l(b.method,b.path,b.headers,$,N),B,M,et),ot=h(B,M,I,et),t=f(E,M,B,et),n=x.default.createHmac("sha256",ot).update(Q).digest("hex").toLowerCase();return`${c} Credential=${t}, SignedHeaders=${$.join(";").toLowerCase()}, Signature=${n}`}},6607:(W,_,y)=>{var x=y(8764).Buffer;Object.defineProperty(_,"__esModule",{value:!0}),_.bucketEncryptionTransformer=function(){return u(v.parseBucketEncryptionConfig)},_.bucketVersioningTransformer=function(){return u(v.parseBucketVersioningConfig)},_.getBucketNotificationTransformer=function(){return u(v.parseBucketNotification)},_.getBucketRegionTransformer=function(){return u(v.parseBucketRegion)},_.getCompleteMultipartTransformer=function(){return u(v.parseCompleteMultipart)},_.getConcater=u,_.getCopyObjectTransformer=function(){return u(v.parseCopyObject)},_.getErrorTransformer=function(w){var b,E,I=w.statusCode;I===301?(b="MovedPermanently",E="Moved Permanently"):I===307?(b="TemporaryRedirect",E="Are you using the correct endpoint URL?"):I===403?(b="AccessDenied",E="Valid and authorized credentials required"):I===404?(b="NotFound",E="Not Found"):I===405||I===501?(b="MethodNotAllowed",E="Method Not Allowed"):(b="UnknownError",E=`${I}`);var M={};return M.amzRequestid=w.headersSent?w.getHeader("x-amz-request-id"):null,M.amzId2=w.headersSent?w.getHeader("x-amz-id-2"):null,M.amzBucketRegion=w.headersSent?w.getHeader("x-amz-bucket-region"):null,u(B=>{let P,N=()=>{var $=new l.S3Error(E);return $.code=b,m.each(M,(et,Q)=>{$[Q]=et}),$};if(!B)return N();try{P=v.parseError(B,M)}catch{return N()}return P},!0)},_.getHashSummer=function(w){var b=a.default.createHash("md5"),E=a.default.createHash("sha256");return S.default.obj(function(I,M,B){w?E.update(I):b.update(I),B()},function(I){var M="",B="";w?B=E.digest("hex"):M=b.digest("base64");var P={md5sum:M,sha256sum:B};this.push(P),this.push(null),I()})},_.getInitiateMultipartTransformer=function(){return u(v.parseInitiateMultipart)},_.getListBucketTransformer=function(){return u(v.parseListBucket)},_.getListMultipartTransformer=function(){return u(v.parseListMultipart)},_.getListObjectsTransformer=function(){return u(v.parseListObjects)},_.getListObjectsV2Transformer=function(){return u(v.parseListObjectsV2)},_.getListObjectsV2WithMetadataTransformer=function(){return u(v.parseListObjectsV2WithMetadata)},_.getListPartsTransformer=function(){return u(v.parseListParts)},_.getNotificationTransformer=function(){return new p.default},_.getTagsTransformer=function(){return u(v.parseTagging)},_.lifecycleTransformer=function(){return u(v.parseLifecycleConfig)},_.objectLegalHoldTransformer=function(){return u(v.parseObjectLegalHoldConfig)},_.objectLockTransformer=function(){return u(v.parseObjectLockConfig)},_.objectRetentionTransformer=function(){return u(v.parseObjectRetentionConfig)},_.replicationConfigTransformer=function(){return u(v.parseReplicationConfig)},_.selectObjectContentTransformer=function(){return u()},_.uploadPartTransformer=function(){return u(v.uploadPartParser)};var v=h(y(2262)),m=h(y(6486)),S=f(y(4650)),a=f(y(5835)),p=f(y(6650)),c=y(1627),l=h(y(1271));function f(w){return w&&w.__esModule?w:{default:w}}function g(w){if(typeof WeakMap!="function")return null;var b=new WeakMap,E=new WeakMap;return(g=function(I){return I?E:b})(w)}function h(w,b){if(!b&&w&&w.__esModule)return w;if(w===null||typeof w!="object"&&typeof w!="function")return{default:w};var E=g(b);if(E&&E.has(w))return E.get(w);var I={},M=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var B in w)if(B!=="default"&&Object.prototype.hasOwnProperty.call(w,B)){var P=M?Object.getOwnPropertyDescriptor(w,B):null;P&&(P.get||P.set)?Object.defineProperty(I,B,P):I[B]=w[B]}return I.default=w,E&&E.set(w,I),I}function u(w,b){var E=!1,I=[];if(w&&!(0,c.isFunction)(w))throw new TypeError('parser should be of type "function"');return w&&(E=!0),(0,S.default)({objectMode:E},function(M,B,P){I.push(M),P()},function(M){if(b)return M(w(x.concat(I).toString())),void this.push(null);I.length&&(w?this.push(w(x.concat(I).toString())):this.push(x.concat(I))),M()})}},2262:(W,_,y)=>{var x=y(8764).Buffer,v=y(5108);Object.defineProperty(_,"__esModule",{value:!0}),_.parseBucketEncryptionConfig=function(h){return(0,p.parseXml)(h)},_.parseBucketNotification=function(h){var u={TopicConfiguration:[],QueueConfiguration:[],CloudFunctionConfiguration:[]},w=function(I){var M=[];return I&&(0,p.toArray)(I).forEach(B=>{M.push(B)}),M},b=function(I){var M=[];return I&&(I=(0,p.toArray)(I))[0].S3Key&&(I[0].S3Key=(0,p.toArray)(I[0].S3Key),I[0].S3Key[0].FilterRule&&(0,p.toArray)(I[0].S3Key[0].FilterRule).forEach(B=>{var P=(0,p.toArray)(B.Name)[0],N=(0,p.toArray)(B.Value)[0];M.push({Name:P,Value:N})})),M},E=(0,p.parseXml)(h);return(E=E.NotificationConfiguration).TopicConfiguration&&(0,p.toArray)(E.TopicConfiguration).forEach(I=>{var M=(0,p.toArray)(I.Id)[0],B=(0,p.toArray)(I.Topic)[0],P=w(I.Event),N=b(I.Filter);u.TopicConfiguration.push({Id:M,Topic:B,Event:P,Filter:N})}),E.QueueConfiguration&&(0,p.toArray)(E.QueueConfiguration).forEach(I=>{var M=(0,p.toArray)(I.Id)[0],B=(0,p.toArray)(I.Queue)[0],P=w(I.Event),N=b(I.Filter);u.QueueConfiguration.push({Id:M,Queue:B,Event:P,Filter:N})}),E.CloudFunctionConfiguration&&(0,p.toArray)(E.CloudFunctionConfiguration).forEach(I=>{var M=(0,p.toArray)(I.Id)[0],B=(0,p.toArray)(I.CloudFunction)[0],P=w(I.Event),N=b(I.Filter);u.CloudFunctionConfiguration.push({Id:M,CloudFunction:B,Event:P,Filter:N})}),u},_.parseBucketRegion=function(h){return(0,p.parseXml)(h).LocationConstraint},_.parseBucketVersioningConfig=function(h){return(0,p.parseXml)(h).VersioningConfiguration},_.parseCompleteMultipart=function(h){var u=(0,p.parseXml)(h).CompleteMultipartUploadResult;return u.Location?{location:(0,p.toArray)(u.Location)[0],bucket:(0,p.toArray)(u.Bucket)[0],key:u.Key,etag:u.ETag.replace(/^"/g,"").replace(/"$/g,"").replace(/^"/g,"").replace(/"$/g,"").replace(/^"/g,"").replace(/"$/g,"")}:u.Code&&u.Message?{errCode:(0,p.toArray)(u.Code)[0],errMessage:(0,p.toArray)(u.Message)[0]}:void 0},_.parseCopyObject=function(h){var u={etag:"",lastModified:""},w=(0,p.parseXml)(h);if(!w.CopyObjectResult)throw new a.InvalidXMLError('Missing tag: "CopyObjectResult"');return(w=w.CopyObjectResult).ETag&&(u.etag=w.ETag.replace(/^"/g,"").replace(/"$/g,"").replace(/^"/g,"").replace(/"$/g,"").replace(/^"/g,"").replace(/"$/g,"")),w.LastModified&&(u.lastModified=new Date(w.LastModified)),u},_.parseError=function(h,u){var w={},b=m.default.parse(h);b.Error&&(w=b.Error);var E=new a.S3Error;return S.default.each(w,(I,M)=>{E[M.toLowerCase()]=I}),S.default.each(u,(I,M)=>{E[M]=I}),E},_.parseInitiateMultipart=function(h){var u=(0,p.parseXml)(h);if(!u.InitiateMultipartUploadResult)throw new a.InvalidXMLError('Missing tag: "InitiateMultipartUploadResult"');if((u=u.InitiateMultipartUploadResult).UploadId)return u.UploadId;throw new a.InvalidXMLError('Missing tag: "UploadId"')},_.parseLifecycleConfig=function(h){return(0,p.parseXml)(h).LifecycleConfiguration},_.parseListBucket=function(h){var u=[],w=(0,p.parseXml)(h);if(!w.ListAllMyBucketsResult)throw new a.InvalidXMLError('Missing tag: "ListAllMyBucketsResult"');return(w=w.ListAllMyBucketsResult).Buckets&&w.Buckets.Bucket&&(0,p.toArray)(w.Buckets.Bucket).forEach(b=>{var E=b.Name,I=new Date(b.CreationDate);u.push({name:E,creationDate:I})}),u},_.parseListMultipart=function(h){var u={uploads:[],prefixes:[],isTruncated:!1},w=(0,p.parseXml)(h);if(!w.ListMultipartUploadsResult)throw new a.InvalidXMLError('Missing tag: "ListMultipartUploadsResult"');return(w=w.ListMultipartUploadsResult).IsTruncated&&(u.isTruncated=w.IsTruncated),w.NextKeyMarker&&(u.nextKeyMarker=w.NextKeyMarker),w.NextUploadIdMarker&&(u.nextUploadIdMarker=w.nextUploadIdMarker),w.CommonPrefixes&&(0,p.toArray)(w.CommonPrefixes).forEach(b=>{u.prefixes.push({prefix:(0,p.sanitizeObjectKey)((0,p.toArray)(b.Prefix)[0])})}),w.Upload&&(0,p.toArray)(w.Upload).forEach(b=>{var E=b.Key,I=b.UploadId,M={id:b.Initiator.ID,displayName:b.Initiator.DisplayName},B={id:b.Owner.ID,displayName:b.Owner.DisplayName},P=b.StorageClass,N=new Date(b.Initiated);u.uploads.push({key:E,uploadId:I,initiator:M,owner:B,storageClass:P,initiated:N})}),u},_.parseListObjects=function(h){var u={objects:[],isTruncated:!1};let w,b,E=!1;const I=(0,p.parseXml)(h),M=N=>{N&&(0,p.toArray)(N).forEach($=>{u.objects.push({prefix:(0,p.sanitizeObjectKey)((0,p.toArray)($.Prefix)[0]),size:0})})},B=I.ListBucketResult,P=I.ListVersionsResult;return B&&(B.IsTruncated&&(E=B.IsTruncated),B.Contents&&(0,p.toArray)(B.Contents).forEach(N=>{const $=(0,p.sanitizeObjectKey)((0,p.toArray)(N.Key)[0]),et=new Date((0,p.toArray)(N.LastModified)[0]),Q=(0,p.sanitizeETag)((0,p.toArray)(N.ETag)[0]),ot=N.Size;u.objects.push({name:$,lastModified:et,etag:Q,size:ot})}),B.NextMarker&&(w=B.NextMarker),M(B.CommonPrefixes)),P&&(P.IsTruncated&&(E=P.IsTruncated),P.Version&&(0,p.toArray)(P.Version).forEach(N=>{u.objects.push(g(N))}),P.DeleteMarker&&(0,p.toArray)(P.DeleteMarker).forEach(N=>{u.objects.push(g(N,{IsDeleteMarker:!0}))}),P.NextKeyMarker&&(b=P.NextKeyMarker),P.NextVersionIdMarker&&(u.versionIdMarker=P.NextVersionIdMarker),M(P.CommonPrefixes)),u.isTruncated=E,E&&(u.nextMarker=b||w),u},_.parseListObjectsV2=function(h){var u={objects:[],isTruncated:!1},w=(0,p.parseXml)(h);if(!w.ListBucketResult)throw new a.InvalidXMLError('Missing tag: "ListBucketResult"');return(w=w.ListBucketResult).IsTruncated&&(u.isTruncated=w.IsTruncated),w.NextContinuationToken&&(u.nextContinuationToken=w.NextContinuationToken),w.Contents&&(0,p.toArray)(w.Contents).forEach(b=>{var E=(0,p.sanitizeObjectKey)((0,p.toArray)(b.Key)[0]),I=new Date(b.LastModified),M=(0,p.sanitizeETag)(b.ETag),B=b.Size;u.objects.push({name:E,lastModified:I,etag:M,size:B})}),w.CommonPrefixes&&(0,p.toArray)(w.CommonPrefixes).forEach(b=>{u.objects.push({prefix:(0,p.sanitizeObjectKey)((0,p.toArray)(b.Prefix)[0]),size:0})}),u},_.parseListObjectsV2WithMetadata=function(h){var u={objects:[],isTruncated:!1},w=(0,p.parseXml)(h);if(!w.ListBucketResult)throw new a.InvalidXMLError('Missing tag: "ListBucketResult"');return(w=w.ListBucketResult).IsTruncated&&(u.isTruncated=w.IsTruncated),w.NextContinuationToken&&(u.nextContinuationToken=w.NextContinuationToken),w.Contents&&(0,p.toArray)(w.Contents).forEach(b=>{var E,I=(0,p.sanitizeObjectKey)(b.Key),M=new Date(b.LastModified),B=(0,p.sanitizeETag)(b.ETag),P=b.Size;E=b.UserMetadata!=null?(0,p.toArray)(b.UserMetadata)[0]:null,u.objects.push({name:I,lastModified:M,etag:B,size:P,metadata:E})}),w.CommonPrefixes&&(0,p.toArray)(w.CommonPrefixes).forEach(b=>{u.objects.push({prefix:(0,p.sanitizeObjectKey)((0,p.toArray)(b.Prefix)[0]),size:0})}),u},_.parseListParts=function(h){var u=(0,p.parseXml)(h),w={isTruncated:!1,parts:[],marker:void 0};if(!u.ListPartsResult)throw new a.InvalidXMLError('Missing tag: "ListPartsResult"');return(u=u.ListPartsResult).IsTruncated&&(w.isTruncated=u.IsTruncated),u.NextPartNumberMarker&&(w.marker=+(0,p.toArray)(u.NextPartNumberMarker)[0]),u.Part&&(0,p.toArray)(u.Part).forEach(b=>{var E=+(0,p.toArray)(b.PartNumber)[0],I=new Date(b.LastModified),M=b.ETag.replace(/^"/g,"").replace(/"$/g,"").replace(/^"/g,"").replace(/"$/g,"").replace(/^"/g,"").replace(/"$/g,"");w.parts.push({part:E,lastModified:I,etag:M})}),w},_.parseObjectLegalHoldConfig=function(h){return(0,p.parseXml)(h).LegalHold},_.parseObjectLockConfig=function(h){const u=(0,p.parseXml)(h);let w={};if(u.ObjectLockConfiguration){let b;if(w={objectLockEnabled:u.ObjectLockConfiguration.ObjectLockEnabled},u.ObjectLockConfiguration&&u.ObjectLockConfiguration.Rule&&u.ObjectLockConfiguration.Rule.DefaultRetention&&(b=u.ObjectLockConfiguration.Rule.DefaultRetention||{},w.mode=b.Mode),b){const E=b.Years;E?(w.validity=E,w.unit=p.RETENTION_VALIDITY_UNITS.YEARS):(w.validity=b.Days,w.unit=p.RETENTION_VALIDITY_UNITS.DAYS)}return w}},_.parseObjectRetentionConfig=function(h){const u=(0,p.parseXml)(h).Retention;return{mode:u.Mode,retainUntilDate:u.RetainUntilDate}},_.parseReplicationConfig=function(h){const u=(0,p.parseXml)(h);return{ReplicationConfiguration:{role:u.ReplicationConfiguration.Role,rules:(0,p.toArray)(u.ReplicationConfiguration.Rule)}}},_.parseSelectObjectContentResponse=function(h){function u(I){const M=x.from(I.read(1)).readUInt8(),B=(x.from(I.read(M)).toString()||"").split(":");return B.length>=1?B[1]:""}function w(I){const M=x.from(I.read(2)).readUInt16BE();return x.from(I.read(M)).toString()}const b=new p.SelectResults({}),E=(0,p.readableStream)(h);for(;E._readableState.length;){let I;const M=x.from(E.read(4));I=f(M);const B=x.from(E.read(4));I=f(B,I);const P=I.readInt32BE(),N=x.from(E.read(4));I=f(N,I);const $=M.readInt32BE(),et=B.readInt32BE(),Q=N.readInt32BE();if(Q!==P)throw new Error(`Header Checksum Mismatch, Prelude CRC of ${Q} does not equal expected CRC of ${P}`);const ot={};if(et>0){const i=x.from(E.read(et));I=f(i,I);const e=(0,p.readableStream)(i);for(;e._readableState.length;){let o=u(e);e.read(1),ot[o]=w(e)}}let t;const n=$-et-16;if(n>0){const i=x.from(E.read(n));I=f(i,I);const e=x.from(E.read(4)).readInt32BE(),o=I.readInt32BE();if(e!==o)throw new Error(`Message Checksum Mismatch, Message CRC of ${e} does not equal expected CRC of ${o}`);t=(0,p.readableStream)(i)}const r=ot["message-type"];switch(r){case"error":{const i=ot["error-code"]+':"'+ot["error-message"]+'"';throw new Error(i)}case"event":{const i=ot["content-type"];switch(ot["event-type"]){case"End":return b.setResponse(h),b;case"Records":{const e=t.read(n);b.setRecords(e);break}case"Progress":switch(i){case"text/xml":{const e=t.read(n);b.setProgress(e.toString());break}default:throw new Error(`Unexpected content-type ${i} sent for event-type Progress`)}break;case"Stats":switch(i){case"text/xml":{const e=t.read(n);b.setStats(e.toString());break}default:throw new Error(`Unexpected content-type ${i} sent for event-type Stats`)}break;default:{const e=`Un implemented event detected ${r}.`;v.warn(e)}}}}}},_.parseTagging=function(h){const u=(0,p.parseXml)(h);let w=[];if(u.Tagging&&u.Tagging.TagSet&&u.Tagging.TagSet.Tag){const b=u.Tagging.TagSet.Tag;(0,p.isObject)(b)?w.push(b):w=b}return w},_.uploadPartParser=function(h){return(0,p.parseXml)(h).CopyPartResult};var m=l(y(6965)),S=l(y(6486)),a=function(h,u){if(h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var w=c(u);if(w&&w.has(h))return w.get(h);var b={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var I in h)if(I!=="default"&&Object.prototype.hasOwnProperty.call(h,I)){var M=E?Object.getOwnPropertyDescriptor(h,I):null;M&&(M.get||M.set)?Object.defineProperty(b,I,M):b[I]=h[I]}return b.default=h,w&&w.set(h,b),b}(y(1271)),p=y(1627);function c(h){if(typeof WeakMap!="function")return null;var u=new WeakMap,w=new WeakMap;return(c=function(b){return b?w:u})(h)}function l(h){return h&&h.__esModule?h:{default:h}}var f=y(2779);const g=(h,u={})=>{let{Key:w,LastModified:b,ETag:E,Size:I,VersionId:M,IsLatest:B}=h;return(0,p.isObject)(u)||(u={}),{name:(0,p.sanitizeObjectKey)((0,p.toArray)(w)[0]),lastModified:new Date((0,p.toArray)(b)[0]),etag:(0,p.sanitizeETag)((0,p.toArray)(E)[0]),size:I,versionId:M,isLatest:B,isDeleteMarker:!!u.IsDeleteMarker&&u.IsDeleteMarker}}},1890:(W,_,y)=>{var x=y(6470),v=y(3731),m=parseInt("0777",8);function S(a,p,c,l){typeof p=="function"?(c=p,p={}):p&&typeof p=="object"||(p={mode:p});var f=p.mode,g=p.fs||v;f===void 0&&(f=m),l||(l=null);var h=c||function(){};a=x.resolve(a),g.mkdir(a,f,function(u){if(!u)return h(null,l=l||a);if(u.code==="ENOENT"){if(x.dirname(a)===a)return h(u);S(x.dirname(a),p,function(w,b){w?h(w,b):S(a,p,h,b)})}else g.stat(a,function(w,b){w||!b.isDirectory()?h(u,l):h(null,l)})})}W.exports=S.mkdirp=S.mkdirP=S,S.sync=function a(p,c,l){c&&typeof c=="object"||(c={mode:c});var f=c.mode,g=c.fs||v;f===void 0&&(f=m),l||(l=null),p=x.resolve(p);try{g.mkdirSync(p,f),l=l||p}catch(u){if(u.code==="ENOENT")l=a(x.dirname(p),c,l),a(p,c,l);else{var h;try{h=g.statSync(p)}catch{throw u}if(!h.isDirectory())throw u}}return l}},4244:W=>{var _=function(y){return y!=y};W.exports=function(y,x){return y===0&&x===0?1/y==1/x:y===x||!(!_(y)||!_(x))}},609:(W,_,y)=>{var x=y(4289),v=y(5559),m=y(4244),S=y(5624),a=y(2281),p=v(S(),Object);x(p,{getPolyfill:S,implementation:m,shim:a}),W.exports=p},5624:(W,_,y)=>{var x=y(4244);W.exports=function(){return typeof Object.is=="function"?Object.is:x}},2281:(W,_,y)=>{var x=y(5624),v=y(4289);W.exports=function(){var m=x();return v(Object,{is:m},{is:function(){return Object.is!==m}}),m}},8987:(W,_,y)=>{var x;if(!Object.keys){var v=Object.prototype.hasOwnProperty,m=Object.prototype.toString,S=y(1414),a=Object.prototype.propertyIsEnumerable,p=!a.call({toString:null},"toString"),c=a.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(u){var w=u.constructor;return w&&w.prototype===u},g={$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},h=function(){if(typeof window>"u")return!1;for(var u in window)try{if(!g["$"+u]&&v.call(window,u)&&window[u]!==null&&typeof window[u]=="object")try{f(window[u])}catch{return!0}}catch{return!0}return!1}();x=function(u){var w=u!==null&&typeof u=="object",b=m.call(u)==="[object Function]",E=S(u),I=w&&m.call(u)==="[object String]",M=[];if(!w&&!b&&!E)throw new TypeError("Object.keys called on a non-object");var B=c&&b;if(I&&u.length>0&&!v.call(u,0))for(var P=0;P<u.length;++P)M.push(String(P));if(E&&u.length>0)for(var N=0;N<u.length;++N)M.push(String(N));else for(var $ in u)B&&$==="prototype"||!v.call(u,$)||M.push(String($));if(p)for(var et=function(ot){if(typeof window>"u"||!h)return f(ot);try{return f(ot)}catch{return!1}}(u),Q=0;Q<l.length;++Q)et&&l[Q]==="constructor"||!v.call(u,l[Q])||M.push(l[Q]);return M}}W.exports=x},2215:(W,_,y)=>{var x=Array.prototype.slice,v=y(1414),m=Object.keys,S=m?function(p){return m(p)}:y(8987),a=Object.keys;S.shim=function(){if(Object.keys){var p=function(){var c=Object.keys(arguments);return c&&c.length===arguments.length}(1,2);p||(Object.keys=function(c){return v(c)?a(x.call(c)):a(c)})}else Object.keys=S;return Object.keys||S},W.exports=S},1414:W=>{var _=Object.prototype.toString;W.exports=function(y){var x=_.call(y),v=x==="[object Arguments]";return v||(v=x!=="[object Array]"&&y!==null&&typeof y=="object"&&typeof y.length=="number"&&y.length>=0&&_.call(y.callee)==="[object Function]"),v}},2818:(W,_,y)=>{var x=y(9809);_.certificate=y(1934);var v=x.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});_.RSAPrivateKey=v;var m=x.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});_.RSAPublicKey=m;var S=x.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())});_.PublicKey=S;var a=x.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),p=x.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(a),this.key("subjectPrivateKey").octstr())});_.PrivateKey=p;var c=x.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});_.EncryptedPrivateKey=c;var l=x.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});_.DSAPrivateKey=l,_.DSAparam=x.define("DSAparam",function(){this.int()});var f=x.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(g),this.key("publicKey").optional().explicit(1).bitstr())});_.ECPrivateKey=f;var g=x.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});_.signature=x.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},1934:(W,_,y)=>{var x=y(9809),v=x.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),m=x.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),S=x.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),a=x.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(S),this.key("subjectPublicKey").bitstr())}),p=x.define("RelativeDistinguishedName",function(){this.setof(m)}),c=x.define("RDNSequence",function(){this.seqof(p)}),l=x.define("Name",function(){this.choice({rdnSequence:this.use(c)})}),f=x.define("Validity",function(){this.seq().obj(this.key("notBefore").use(v),this.key("notAfter").use(v))}),g=x.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),h=x.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(S),this.key("issuer").use(l),this.key("validity").use(f),this.key("subject").use(l),this.key("subjectPublicKeyInfo").use(a),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(g).optional())}),u=x.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(h),this.key("signatureAlgorithm").use(S),this.key("signatureValue").bitstr())});W.exports=u},7631:(W,_,y)=>{var x=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,v=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,m=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,S=y(3048),a=y(4696),p=y(9509).Buffer;W.exports=function(c,l){var f,g=c.toString(),h=g.match(x);if(h){var u="aes"+h[1],w=p.from(h[2],"hex"),b=p.from(h[3].replace(/[\r\n]/g,""),"base64"),E=S(l,w.slice(0,8),parseInt(h[1],10)).key,I=[],M=a.createDecipheriv(u,E,w);I.push(M.update(b)),I.push(M.final()),f=p.concat(I)}else{var B=g.match(m);f=p.from(B[2].replace(/[\r\n]/g,""),"base64")}return{tag:g.match(v)[1],data:f}}},980:(W,_,y)=>{var x=y(2818),v=y(2562),m=y(7631),S=y(4696),a=y(5632),p=y(9509).Buffer;function c(l){var f;typeof l!="object"||p.isBuffer(l)||(f=l.passphrase,l=l.key),typeof l=="string"&&(l=p.from(l));var g,h,u=m(l,f),w=u.tag,b=u.data;switch(w){case"CERTIFICATE":h=x.certificate.decode(b,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(h||(h=x.PublicKey.decode(b,"der")),g=h.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return x.RSAPublicKey.decode(h.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return h.subjectPrivateKey=h.subjectPublicKey,{type:"ec",data:h};case"1.2.840.10040.4.1":return h.algorithm.params.pub_key=x.DSAparam.decode(h.subjectPublicKey.data,"der"),{type:"dsa",data:h.algorithm.params};default:throw new Error("unknown key id "+g)}case"ENCRYPTED PRIVATE KEY":b=function(E,I){var M=E.algorithm.decrypt.kde.kdeparams.salt,B=parseInt(E.algorithm.decrypt.kde.kdeparams.iters.toString(),10),P=v[E.algorithm.decrypt.cipher.algo.join(".")],N=E.algorithm.decrypt.cipher.iv,$=E.subjectPrivateKey,et=parseInt(P.split("-")[1],10)/8,Q=a.pbkdf2Sync(I,M,B,et,"sha1"),ot=S.createDecipheriv(P,Q,N),t=[];return t.push(ot.update($)),t.push(ot.final()),p.concat(t)}(b=x.EncryptedPrivateKey.decode(b,"der"),f);case"PRIVATE KEY":switch(g=(h=x.PrivateKey.decode(b,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return x.RSAPrivateKey.decode(h.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:h.algorithm.curve,privateKey:x.ECPrivateKey.decode(h.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return h.algorithm.params.priv_key=x.DSAparam.decode(h.subjectPrivateKey,"der"),{type:"dsa",params:h.algorithm.params};default:throw new Error("unknown key id "+g)}case"RSA PUBLIC KEY":return x.RSAPublicKey.decode(b,"der");case"RSA PRIVATE KEY":return x.RSAPrivateKey.decode(b,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:x.DSAPrivateKey.decode(b,"der")};case"EC PRIVATE KEY":return{curve:(b=x.ECPrivateKey.decode(b,"der")).parameters.value,privateKey:b.privateKey};default:throw new Error("unknown key type "+w)}}W.exports=c,c.signature=x.signature},6470:(W,_,y)=>{var x=y(4155);function v(a){if(typeof a!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(a))}function m(a,p){for(var c,l="",f=0,g=-1,h=0,u=0;u<=a.length;++u){if(u<a.length)c=a.charCodeAt(u);else{if(c===47)break;c=47}if(c===47){if(!(g===u-1||h===1))if(g!==u-1&&h===2){if(l.length<2||f!==2||l.charCodeAt(l.length-1)!==46||l.charCodeAt(l.length-2)!==46){if(l.length>2){var w=l.lastIndexOf("/");if(w!==l.length-1){w===-1?(l="",f=0):f=(l=l.slice(0,w)).length-1-l.lastIndexOf("/"),g=u,h=0;continue}}else if(l.length===2||l.length===1){l="",f=0,g=u,h=0;continue}}p&&(l.length>0?l+="/..":l="..",f=2)}else l.length>0?l+="/"+a.slice(g+1,u):l=a.slice(g+1,u),f=u-g-1;g=u,h=0}else c===46&&h!==-1?++h:h=-1}return l}var S={resolve:function(){for(var a,p="",c=!1,l=arguments.length-1;l>=-1&&!c;l--){var f;l>=0?f=arguments[l]:(a===void 0&&(a=x.cwd()),f=a),v(f),f.length!==0&&(p=f+"/"+p,c=f.charCodeAt(0)===47)}return p=m(p,!c),c?p.length>0?"/"+p:"/":p.length>0?p:"."},normalize:function(a){if(v(a),a.length===0)return".";var p=a.charCodeAt(0)===47,c=a.charCodeAt(a.length-1)===47;return(a=m(a,!p)).length!==0||p||(a="."),a.length>0&&c&&(a+="/"),p?"/"+a:a},isAbsolute:function(a){return v(a),a.length>0&&a.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var a,p=0;p<arguments.length;++p){var c=arguments[p];v(c),c.length>0&&(a===void 0?a=c:a+="/"+c)}return a===void 0?".":S.normalize(a)},relative:function(a,p){if(v(a),v(p),a===p||(a=S.resolve(a))===(p=S.resolve(p)))return"";for(var c=1;c<a.length&&a.charCodeAt(c)===47;++c);for(var l=a.length,f=l-c,g=1;g<p.length&&p.charCodeAt(g)===47;++g);for(var h=p.length-g,u=f<h?f:h,w=-1,b=0;b<=u;++b){if(b===u){if(h>u){if(p.charCodeAt(g+b)===47)return p.slice(g+b+1);if(b===0)return p.slice(g+b)}else f>u&&(a.charCodeAt(c+b)===47?w=b:b===0&&(w=0));break}var E=a.charCodeAt(c+b);if(E!==p.charCodeAt(g+b))break;E===47&&(w=b)}var I="";for(b=c+w+1;b<=l;++b)b!==l&&a.charCodeAt(b)!==47||(I.length===0?I+="..":I+="/..");return I.length>0?I+p.slice(g+w):(g+=w,p.charCodeAt(g)===47&&++g,p.slice(g))},_makeLong:function(a){return a},dirname:function(a){if(v(a),a.length===0)return".";for(var p=a.charCodeAt(0),c=p===47,l=-1,f=!0,g=a.length-1;g>=1;--g)if((p=a.charCodeAt(g))===47){if(!f){l=g;break}}else f=!1;return l===-1?c?"/":".":c&&l===1?"//":a.slice(0,l)},basename:function(a,p){if(p!==void 0&&typeof p!="string")throw new TypeError('"ext" argument must be a string');v(a);var c,l=0,f=-1,g=!0;if(p!==void 0&&p.length>0&&p.length<=a.length){if(p.length===a.length&&p===a)return"";var h=p.length-1,u=-1;for(c=a.length-1;c>=0;--c){var w=a.charCodeAt(c);if(w===47){if(!g){l=c+1;break}}else u===-1&&(g=!1,u=c+1),h>=0&&(w===p.charCodeAt(h)?--h==-1&&(f=c):(h=-1,f=u))}return l===f?f=u:f===-1&&(f=a.length),a.slice(l,f)}for(c=a.length-1;c>=0;--c)if(a.charCodeAt(c)===47){if(!g){l=c+1;break}}else f===-1&&(g=!1,f=c+1);return f===-1?"":a.slice(l,f)},extname:function(a){v(a);for(var p=-1,c=0,l=-1,f=!0,g=0,h=a.length-1;h>=0;--h){var u=a.charCodeAt(h);if(u!==47)l===-1&&(f=!1,l=h+1),u===46?p===-1?p=h:g!==1&&(g=1):p!==-1&&(g=-1);else if(!f){c=h+1;break}}return p===-1||l===-1||g===0||g===1&&p===l-1&&p===c+1?"":a.slice(p,l)},format:function(a){if(a===null||typeof a!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof a);return function(p,c){var l=c.dir||c.root,f=c.base||(c.name||"")+(c.ext||"");return l?l===c.root?l+f:l+"/"+f:f}(0,a)},parse:function(a){v(a);var p={root:"",dir:"",base:"",ext:"",name:""};if(a.length===0)return p;var c,l=a.charCodeAt(0),f=l===47;f?(p.root="/",c=1):c=0;for(var g=-1,h=0,u=-1,w=!0,b=a.length-1,E=0;b>=c;--b)if((l=a.charCodeAt(b))!==47)u===-1&&(w=!1,u=b+1),l===46?g===-1?g=b:E!==1&&(E=1):g!==-1&&(E=-1);else if(!w){h=b+1;break}return g===-1||u===-1||E===0||E===1&&g===u-1&&g===h+1?u!==-1&&(p.base=p.name=h===0&&f?a.slice(1,u):a.slice(h,u)):(h===0&&f?(p.name=a.slice(1,g),p.base=a.slice(1,u)):(p.name=a.slice(h,g),p.base=a.slice(h,u)),p.ext=a.slice(g,u)),h>0?p.dir=a.slice(0,h-1):f&&(p.dir="/"),p},sep:"/",delimiter:":",win32:null,posix:null};S.posix=S,W.exports=S},5632:(W,_,y)=>{_.pbkdf2=y(8638),_.pbkdf2Sync=y(1257)},8638:(W,_,y)=>{var x,v,m=y(9509).Buffer,S=y(7357),a=y(2368),p=y(1257),c=y(7777),l=y.g.crypto&&y.g.crypto.subtle,f={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},g=[];function h(){return v||(v=y.g.process&&y.g.process.nextTick?y.g.process.nextTick:y.g.queueMicrotask?y.g.queueMicrotask:y.g.setImmediate?y.g.setImmediate:y.g.setTimeout)}function u(w,b,E,I,M){return l.importKey("raw",w,{name:"PBKDF2"},!1,["deriveBits"]).then(function(B){return l.deriveBits({name:"PBKDF2",salt:b,iterations:E,hash:{name:M}},B,I<<3)}).then(function(B){return m.from(B)})}W.exports=function(w,b,E,I,M,B){typeof M=="function"&&(B=M,M=void 0);var P=f[(M=M||"sha1").toLowerCase()];if(P&&typeof y.g.Promise=="function"){if(S(E,I),w=c(w,a,"Password"),b=c(b,a,"Salt"),typeof B!="function")throw new Error("No callback provided to pbkdf2");(function(N,$){N.then(function(et){h()(function(){$(null,et)})},function(et){h()(function(){$(et)})})})(function(N){if(y.g.process&&!y.g.process.browser||!l||!l.importKey||!l.deriveBits)return Promise.resolve(!1);if(g[N]!==void 0)return g[N];var $=u(x=x||m.alloc(8),x,10,128,N).then(function(){return!0}).catch(function(){return!1});return g[N]=$,$}(P).then(function(N){return N?u(w,b,E,I,P):p(w,b,E,I,M)}),B)}else h()(function(){var N;try{N=p(w,b,E,I,M)}catch($){return B($)}B(null,N)})}},2368:(W,_,y)=>{var x,v=y(4155);x=y.g.process&&y.g.process.browser?"utf-8":y.g.process&&y.g.process.version?parseInt(v.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",W.exports=x},7357:W=>{var _=Math.pow(2,30)-1;W.exports=function(y,x){if(typeof y!="number")throw new TypeError("Iterations not a number");if(y<0)throw new TypeError("Bad iterations");if(typeof x!="number")throw new TypeError("Key length not a number");if(x<0||x>_||x!=x)throw new TypeError("Bad key length")}},1257:(W,_,y)=>{var x=y(8028),v=y(9785),m=y(9072),S=y(9509).Buffer,a=y(7357),p=y(2368),c=y(7777),l=S.alloc(128),f={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function g(h,u,w){var b=function(N){return N==="rmd160"||N==="ripemd160"?function($){return new v().update($).digest()}:N==="md5"?x:function($){return m(N).update($).digest()}}(h),E=h==="sha512"||h==="sha384"?128:64;u.length>E?u=b(u):u.length<E&&(u=S.concat([u,l],E));for(var I=S.allocUnsafe(E+f[h]),M=S.allocUnsafe(E+f[h]),B=0;B<E;B++)I[B]=54^u[B],M[B]=92^u[B];var P=S.allocUnsafe(E+w+4);I.copy(P,0,0,E),this.ipad1=P,this.ipad2=I,this.opad=M,this.alg=h,this.blocksize=E,this.hash=b,this.size=f[h]}g.prototype.run=function(h,u){return h.copy(u,this.blocksize),this.hash(u).copy(this.opad,this.blocksize),this.hash(this.opad)},W.exports=function(h,u,w,b,E){a(w,b);var I=new g(E=E||"sha1",h=c(h,p,"Password"),(u=c(u,p,"Salt")).length),M=S.allocUnsafe(b),B=S.allocUnsafe(u.length+4);u.copy(B,0,0,u.length);for(var P=0,N=f[E],$=Math.ceil(b/N),et=1;et<=$;et++){B.writeUInt32BE(et,u.length);for(var Q=I.run(B,I.ipad1),ot=Q,t=1;t<w;t++){ot=I.run(ot,I.ipad2);for(var n=0;n<N;n++)Q[n]^=ot[n]}Q.copy(M,P),P+=N}return M}},7777:(W,_,y)=>{var x=y(9509).Buffer;W.exports=function(v,m,S){if(x.isBuffer(v))return v;if(typeof v=="string")return x.from(v,m);if(ArrayBuffer.isView(v))return x.from(v.buffer);throw new TypeError(S+" must be a string, a Buffer, a typed array or a DataView")}},4155:W=>{var _,y,x=W.exports={};function v(){throw new Error("setTimeout has not been defined")}function m(){throw new Error("clearTimeout has not been defined")}function S(w){if(_===setTimeout)return setTimeout(w,0);if((_===v||!_)&&setTimeout)return _=setTimeout,setTimeout(w,0);try{return _(w,0)}catch{try{return _.call(null,w,0)}catch{return _.call(this,w,0)}}}(function(){try{_=typeof setTimeout=="function"?setTimeout:v}catch{_=v}try{y=typeof clearTimeout=="function"?clearTimeout:m}catch{y=m}})();var a,p=[],c=!1,l=-1;function f(){c&&a&&(c=!1,a.length?p=a.concat(p):l=-1,p.length&&g())}function g(){if(!c){var w=S(f);c=!0;for(var b=p.length;b;){for(a=p,p=[];++l<b;)a&&a[l].run();l=-1,b=p.length}a=null,c=!1,function(E){if(y===clearTimeout)return clearTimeout(E);if((y===m||!y)&&clearTimeout)return y=clearTimeout,clearTimeout(E);try{y(E)}catch{try{return y.call(null,E)}catch{return y.call(this,E)}}}(w)}}function h(w,b){this.fun=w,this.array=b}function u(){}x.nextTick=function(w){var b=new Array(arguments.length-1);if(arguments.length>1)for(var E=1;E<arguments.length;E++)b[E-1]=arguments[E];p.push(new h(w,b)),p.length!==1||c||S(g)},h.prototype.run=function(){this.fun.apply(null,this.array)},x.title="browser",x.browser=!0,x.env={},x.argv=[],x.version="",x.versions={},x.on=u,x.addListener=u,x.once=u,x.off=u,x.removeListener=u,x.removeAllListeners=u,x.emit=u,x.prependListener=u,x.prependOnceListener=u,x.listeners=function(w){return[]},x.binding=function(w){throw new Error("process.binding is not supported")},x.cwd=function(){return"/"},x.chdir=function(w){throw new Error("process.chdir is not supported")},x.umask=function(){return 0}},7900:(W,_,y)=>{_.publicEncrypt=y(6559),_.privateDecrypt=y(6138),_.privateEncrypt=function(x,v){return _.publicEncrypt(x,v,!0)},_.publicDecrypt=function(x,v){return _.privateDecrypt(x,v,!0)}},9199:(W,_,y)=>{var x=y(3482),v=y(9509).Buffer;function m(S){var a=v.allocUnsafe(4);return a.writeUInt32BE(S,0),a}W.exports=function(S,a){for(var p,c=v.alloc(0),l=0;c.length<a;)p=m(l++),c=v.concat([c,x("sha1").update(S).update(p).digest()]);return c.slice(0,a)}},2144:function(W,_,y){(function(x,v){function m(t,n){if(!t)throw new Error(n||"Assertion failed")}function S(t,n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t}function a(t,n,r){if(a.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,t!==null&&(n!=="le"&&n!=="be"||(r=n,n=10),this._init(t||0,n||10,r||"be"))}var p;typeof x=="object"?x.exports=a:v.BN=a,a.BN=a,a.wordSize=26;try{p=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:y(7108).Buffer}catch{}function c(t,n){var r=t.charCodeAt(n);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function l(t,n,r){var i=c(t,r);return r-1>=n&&(i|=c(t,r-1)<<4),i}function f(t,n,r,i){for(var e=0,o=Math.min(t.length,r),s=n;s<o;s++){var A=t.charCodeAt(s)-48;e*=i,e+=A>=49?A-49+10:A>=17?A-17+10:A}return e}a.isBN=function(t){return t instanceof a||t!==null&&typeof t=="object"&&t.constructor.wordSize===a.wordSize&&Array.isArray(t.words)},a.max=function(t,n){return t.cmp(n)>0?t:n},a.min=function(t,n){return t.cmp(n)<0?t:n},a.prototype._init=function(t,n,r){if(typeof t=="number")return this._initNumber(t,n,r);if(typeof t=="object")return this._initArray(t,n,r);n==="hex"&&(n=16),m(n===(0|n)&&n>=2&&n<=36);var i=0;(t=t.toString().replace(/\s+/g,""))[0]==="-"&&(i++,this.negative=1),i<t.length&&(n===16?this._parseHex(t,i,r):(this._parseBase(t,n,i),r==="le"&&this._initArray(this.toArray(),n,r)))},a.prototype._initNumber=function(t,n,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(m(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),r==="le"&&this._initArray(this.toArray(),n,r)},a.prototype._initArray=function(t,n,r){if(m(typeof t.length=="number"),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var e,o,s=0;if(r==="be")for(i=t.length-1,e=0;i>=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[e]|=o<<s&67108863,this.words[e+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,e++);else if(r==="le")for(i=0,e=0;i<t.length;i+=3)o=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[e]|=o<<s&67108863,this.words[e+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,e++);return this.strip()},a.prototype._parseHex=function(t,n,r){this.length=Math.ceil((t.length-n)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var e,o=0,s=0;if(r==="be")for(i=t.length-1;i>=n;i-=2)e=l(t,n,i)<<o,this.words[s]|=67108863&e,o>=18?(o-=18,s+=1,this.words[s]|=e>>>26):o+=8;else for(i=(t.length-n)%2==0?n+1:n;i<t.length;i+=2)e=l(t,n,i)<<o,this.words[s]|=67108863&e,o>=18?(o-=18,s+=1,this.words[s]|=e>>>26):o+=8;this.strip()},a.prototype._parseBase=function(t,n,r){this.words=[0],this.length=1;for(var i=0,e=1;e<=67108863;e*=n)i++;i--,e=e/n|0;for(var o=t.length-r,s=o%i,A=Math.min(o,o-s)+r,C=0,j=r;j<A;j+=i)C=f(t,j,j+i,n),this.imuln(e),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C);if(s!==0){var T=1;for(C=f(t,j,t.length,n),j=0;j<s;j++)T*=n;this.imuln(T),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C)}this.strip()},a.prototype.copy=function(t){t.words=new Array(this.length);for(var n=0;n<this.length;n++)t.words[n]=this.words[n];t.length=this.length,t.negative=this.negative,t.red=this.red},a.prototype.clone=function(){var t=new a(null);return this.copy(t),t},a.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var g=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],u=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function w(t,n,r){r.negative=n.negative^t.negative;var i=t.length+n.length|0;r.length=i,i=i-1|0;var e=0|t.words[0],o=0|n.words[0],s=e*o,A=67108863&s,C=s/67108864|0;r.words[0]=A;for(var j=1;j<i;j++){for(var T=C>>>26,R=67108863&C,q=Math.min(j,n.length-1),Z=Math.max(0,j-t.length+1);Z<=q;Z++){var rt=j-Z|0;T+=(s=(e=0|t.words[rt])*(o=0|n.words[Z])+R)/67108864|0,R=67108863&s}r.words[j]=0|R,C=0|T}return C!==0?r.words[j]=0|C:r.length--,r.strip()}a.prototype.toString=function(t,n){var r;if(n=0|n||1,(t=t||10)===16||t==="hex"){r="";for(var i=0,e=0,o=0;o<this.length;o++){var s=this.words[o],A=(16777215&(s<<i|e)).toString(16);r=(e=s>>>24-i&16777215)!=0||o!==this.length-1?g[6-A.length]+A+r:A+r,(i+=2)>=26&&(i-=26,o--)}for(e!==0&&(r=e.toString(16)+r);r.length%n!=0;)r="0"+r;return this.negative!==0&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var C=h[t],j=u[t];r="";var T=this.clone();for(T.negative=0;!T.isZero();){var R=T.modn(j).toString(t);r=(T=T.idivn(j)).isZero()?R+r:g[C-R.length]+R+r}for(this.isZero()&&(r="0"+r);r.length%n!=0;)r="0"+r;return this.negative!==0&&(r="-"+r),r}m(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var t=this.words[0];return this.length===2?t+=67108864*this.words[1]:this.length===3&&this.words[2]===1?t+=4503599627370496+67108864*this.words[1]:this.length>2&&m(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,n){return m(p!==void 0),this.toArrayLike(p,t,n)},a.prototype.toArray=function(t,n){return this.toArrayLike(Array,t,n)},a.prototype.toArrayLike=function(t,n,r){var i=this.byteLength(),e=r||Math.max(1,i);m(i<=e,"byte array longer than desired length"),m(e>0,"Requested array length <= 0"),this.strip();var o,s,A=n==="le",C=new t(e),j=this.clone();if(A){for(s=0;!j.isZero();s++)o=j.andln(255),j.iushrn(8),C[s]=o;for(;s<e;s++)C[s]=0}else{for(s=0;s<e-i;s++)C[s]=0;for(s=0;!j.isZero();s++)o=j.andln(255),j.iushrn(8),C[e-s-1]=o}return C},Math.clz32?a.prototype._countBits=function(t){return 32-Math.clz32(t)}:a.prototype._countBits=function(t){var n=t,r=0;return n>=4096&&(r+=13,n>>>=13),n>=64&&(r+=7,n>>>=7),n>=8&&(r+=4,n>>>=4),n>=2&&(r+=2,n>>>=2),r+n},a.prototype._zeroBits=function(t){if(t===0)return 26;var n=t,r=0;return!(8191&n)&&(r+=13,n>>>=13),!(127&n)&&(r+=7,n>>>=7),!(15&n)&&(r+=4,n>>>=4),!(3&n)&&(r+=2,n>>>=2),!(1&n)&&r++,r},a.prototype.bitLength=function(){var t=this.words[this.length-1],n=this._countBits(t);return 26*(this.length-1)+n},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,n=0;n<this.length;n++){var r=this._zeroBits(this.words[n]);if(t+=r,r!==26)break}return t},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(t){return this.negative!==0?this.abs().inotn(t).iaddn(1):this.clone()},a.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]|t.words[n];return this.strip()},a.prototype.ior=function(t){return m((this.negative|t.negative)==0),this.iuor(t)},a.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var n;n=this.length>t.length?t:this;for(var r=0;r<n.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=n.length,this.strip()},a.prototype.iand=function(t){return m((this.negative|t.negative)==0),this.iuand(t)},a.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var n,r;this.length>t.length?(n=this,r=t):(n=t,r=this);for(var i=0;i<r.length;i++)this.words[i]=n.words[i]^r.words[i];if(this!==n)for(;i<n.length;i++)this.words[i]=n.words[i];return this.length=n.length,this.strip()},a.prototype.ixor=function(t){return m((this.negative|t.negative)==0),this.iuxor(t)},a.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){m(typeof t=="number"&&t>=0);var n=0|Math.ceil(t/26),r=t%26;this._expand(n),r>0&&n--;for(var i=0;i<n;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,n){m(typeof t=="number"&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=n?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},a.prototype.iadd=function(t){var n,r,i;if(this.negative!==0&&t.negative===0)return this.negative=0,n=this.isub(t),this.negative^=1,this._normSign();if(this.negative===0&&t.negative!==0)return t.negative=0,n=this.isub(t),t.negative=1,n._normSign();this.length>t.length?(r=this,i=t):(r=t,i=this);for(var e=0,o=0;o<i.length;o++)n=(0|r.words[o])+(0|i.words[o])+e,this.words[o]=67108863&n,e=n>>>26;for(;e!==0&&o<r.length;o++)n=(0|r.words[o])+e,this.words[o]=67108863&n,e=n>>>26;if(this.length=r.length,e!==0)this.words[this.length]=e,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},a.prototype.add=function(t){var n;return t.negative!==0&&this.negative===0?(t.negative=0,n=this.sub(t),t.negative^=1,n):t.negative===0&&this.negative!==0?(this.negative=0,n=t.sub(this),this.negative=1,n):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(t.negative!==0){t.negative=0;var n=this.iadd(t);return t.negative=1,n._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,i,e=this.cmp(t);if(e===0)return this.negative=0,this.length=1,this.words[0]=0,this;e>0?(r=this,i=t):(r=t,i=this);for(var o=0,s=0;s<i.length;s++)o=(n=(0|r.words[s])-(0|i.words[s])+o)>>26,this.words[s]=67108863&n;for(;o!==0&&s<r.length;s++)o=(n=(0|r.words[s])+o)>>26,this.words[s]=67108863&n;if(o===0&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(t){return this.clone().isub(t)};var b=function(t,n,r){var i,e,o,s=t.words,A=n.words,C=r.words,j=0,T=0|s[0],R=8191&T,q=T>>>13,Z=0|s[1],rt=8191&Z,D=Z>>>13,G=0|s[2],z=8191&G,X=G>>>13,st=0|s[3],nt=8191&st,ht=st>>>13,Et=0|s[4],gt=8191&Et,bt=Et>>>13,Bt=0|s[5],Mt=8191&Bt,It=Bt>>>13,J=0|s[6],tt=8191&J,F=J>>>13,H=0|s[7],U=8191&H,it=H>>>13,pt=0|s[8],ft=8191&pt,mt=pt>>>13,re=0|s[9],_t=8191&re,At=re>>>13,fe=0|A[0],kt=8191&fe,Kt=fe>>>13,Ce=0|A[1],Pt=8191&Ce,Ht=Ce>>>13,je=0|A[2],Rt=8191&je,Wt=je>>>13,ye=0|A[3],Nt=8191&ye,Xt=ye>>>13,ke=0|A[4],jt=8191&ke,Zt=ke>>>13,Oe=0|A[5],Dt=8191&Oe,Jt=Oe>>>13,De=0|A[6],Lt=8191&De,Qt=De>>>13,ze=0|A[7],Ut=8191&ze,Yt=ze>>>13,$e=0|A[8],qt=8191&$e,ee=$e>>>13,He=0|A[9],Ft=8191&He,te=He>>>13;r.negative=t.negative^n.negative,r.length=19;var Ae=(j+(i=Math.imul(R,kt))|0)+((8191&(e=(e=Math.imul(R,Kt))+Math.imul(q,kt)|0))<<13)|0;j=((o=Math.imul(q,Kt))+(e>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,i=Math.imul(rt,kt),e=(e=Math.imul(rt,Kt))+Math.imul(D,kt)|0,o=Math.imul(D,Kt);var Re=(j+(i=i+Math.imul(R,Pt)|0)|0)+((8191&(e=(e=e+Math.imul(R,Ht)|0)+Math.imul(q,Pt)|0))<<13)|0;j=((o=o+Math.imul(q,Ht)|0)+(e>>>13)|0)+(Re>>>26)|0,Re&=67108863,i=Math.imul(z,kt),e=(e=Math.imul(z,Kt))+Math.imul(X,kt)|0,o=Math.imul(X,Kt),i=i+Math.imul(rt,Pt)|0,e=(e=e+Math.imul(rt,Ht)|0)+Math.imul(D,Pt)|0,o=o+Math.imul(D,Ht)|0;var Ke=(j+(i=i+Math.imul(R,Rt)|0)|0)+((8191&(e=(e=e+Math.imul(R,Wt)|0)+Math.imul(q,Rt)|0))<<13)|0;j=((o=o+Math.imul(q,Wt)|0)+(e>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,i=Math.imul(nt,kt),e=(e=Math.imul(nt,Kt))+Math.imul(ht,kt)|0,o=Math.imul(ht,Kt),i=i+Math.imul(z,Pt)|0,e=(e=e+Math.imul(z,Ht)|0)+Math.imul(X,Pt)|0,o=o+Math.imul(X,Ht)|0,i=i+Math.imul(rt,Rt)|0,e=(e=e+Math.imul(rt,Wt)|0)+Math.imul(D,Rt)|0,o=o+Math.imul(D,Wt)|0;var ai=(j+(i=i+Math.imul(R,Nt)|0)|0)+((8191&(e=(e=e+Math.imul(R,Xt)|0)+Math.imul(q,Nt)|0))<<13)|0;j=((o=o+Math.imul(q,Xt)|0)+(e>>>13)|0)+(ai>>>26)|0,ai&=67108863,i=Math.imul(gt,kt),e=(e=Math.imul(gt,Kt))+Math.imul(bt,kt)|0,o=Math.imul(bt,Kt),i=i+Math.imul(nt,Pt)|0,e=(e=e+Math.imul(nt,Ht)|0)+Math.imul(ht,Pt)|0,o=o+Math.imul(ht,Ht)|0,i=i+Math.imul(z,Rt)|0,e=(e=e+Math.imul(z,Wt)|0)+Math.imul(X,Rt)|0,o=o+Math.imul(X,Wt)|0,i=i+Math.imul(rt,Nt)|0,e=(e=e+Math.imul(rt,Xt)|0)+Math.imul(D,Nt)|0,o=o+Math.imul(D,Xt)|0;var ri=(j+(i=i+Math.imul(R,jt)|0)|0)+((8191&(e=(e=e+Math.imul(R,Zt)|0)+Math.imul(q,jt)|0))<<13)|0;j=((o=o+Math.imul(q,Zt)|0)+(e>>>13)|0)+(ri>>>26)|0,ri&=67108863,i=Math.imul(Mt,kt),e=(e=Math.imul(Mt,Kt))+Math.imul(It,kt)|0,o=Math.imul(It,Kt),i=i+Math.imul(gt,Pt)|0,e=(e=e+Math.imul(gt,Ht)|0)+Math.imul(bt,Pt)|0,o=o+Math.imul(bt,Ht)|0,i=i+Math.imul(nt,Rt)|0,e=(e=e+Math.imul(nt,Wt)|0)+Math.imul(ht,Rt)|0,o=o+Math.imul(ht,Wt)|0,i=i+Math.imul(z,Nt)|0,e=(e=e+Math.imul(z,Xt)|0)+Math.imul(X,Nt)|0,o=o+Math.imul(X,Xt)|0,i=i+Math.imul(rt,jt)|0,e=(e=e+Math.imul(rt,Zt)|0)+Math.imul(D,jt)|0,o=o+Math.imul(D,Zt)|0;var si=(j+(i=i+Math.imul(R,Dt)|0)|0)+((8191&(e=(e=e+Math.imul(R,Jt)|0)+Math.imul(q,Dt)|0))<<13)|0;j=((o=o+Math.imul(q,Jt)|0)+(e>>>13)|0)+(si>>>26)|0,si&=67108863,i=Math.imul(tt,kt),e=(e=Math.imul(tt,Kt))+Math.imul(F,kt)|0,o=Math.imul(F,Kt),i=i+Math.imul(Mt,Pt)|0,e=(e=e+Math.imul(Mt,Ht)|0)+Math.imul(It,Pt)|0,o=o+Math.imul(It,Ht)|0,i=i+Math.imul(gt,Rt)|0,e=(e=e+Math.imul(gt,Wt)|0)+Math.imul(bt,Rt)|0,o=o+Math.imul(bt,Wt)|0,i=i+Math.imul(nt,Nt)|0,e=(e=e+Math.imul(nt,Xt)|0)+Math.imul(ht,Nt)|0,o=o+Math.imul(ht,Xt)|0,i=i+Math.imul(z,jt)|0,e=(e=e+Math.imul(z,Zt)|0)+Math.imul(X,jt)|0,o=o+Math.imul(X,Zt)|0,i=i+Math.imul(rt,Dt)|0,e=(e=e+Math.imul(rt,Jt)|0)+Math.imul(D,Dt)|0,o=o+Math.imul(D,Jt)|0;var ui=(j+(i=i+Math.imul(R,Lt)|0)|0)+((8191&(e=(e=e+Math.imul(R,Qt)|0)+Math.imul(q,Lt)|0))<<13)|0;j=((o=o+Math.imul(q,Qt)|0)+(e>>>13)|0)+(ui>>>26)|0,ui&=67108863,i=Math.imul(U,kt),e=(e=Math.imul(U,Kt))+Math.imul(it,kt)|0,o=Math.imul(it,Kt),i=i+Math.imul(tt,Pt)|0,e=(e=e+Math.imul(tt,Ht)|0)+Math.imul(F,Pt)|0,o=o+Math.imul(F,Ht)|0,i=i+Math.imul(Mt,Rt)|0,e=(e=e+Math.imul(Mt,Wt)|0)+Math.imul(It,Rt)|0,o=o+Math.imul(It,Wt)|0,i=i+Math.imul(gt,Nt)|0,e=(e=e+Math.imul(gt,Xt)|0)+Math.imul(bt,Nt)|0,o=o+Math.imul(bt,Xt)|0,i=i+Math.imul(nt,jt)|0,e=(e=e+Math.imul(nt,Zt)|0)+Math.imul(ht,jt)|0,o=o+Math.imul(ht,Zt)|0,i=i+Math.imul(z,Dt)|0,e=(e=e+Math.imul(z,Jt)|0)+Math.imul(X,Dt)|0,o=o+Math.imul(X,Jt)|0,i=i+Math.imul(rt,Lt)|0,e=(e=e+Math.imul(rt,Qt)|0)+Math.imul(D,Lt)|0,o=o+Math.imul(D,Qt)|0;var ci=(j+(i=i+Math.imul(R,Ut)|0)|0)+((8191&(e=(e=e+Math.imul(R,Yt)|0)+Math.imul(q,Ut)|0))<<13)|0;j=((o=o+Math.imul(q,Yt)|0)+(e>>>13)|0)+(ci>>>26)|0,ci&=67108863,i=Math.imul(ft,kt),e=(e=Math.imul(ft,Kt))+Math.imul(mt,kt)|0,o=Math.imul(mt,Kt),i=i+Math.imul(U,Pt)|0,e=(e=e+Math.imul(U,Ht)|0)+Math.imul(it,Pt)|0,o=o+Math.imul(it,Ht)|0,i=i+Math.imul(tt,Rt)|0,e=(e=e+Math.imul(tt,Wt)|0)+Math.imul(F,Rt)|0,o=o+Math.imul(F,Wt)|0,i=i+Math.imul(Mt,Nt)|0,e=(e=e+Math.imul(Mt,Xt)|0)+Math.imul(It,Nt)|0,o=o+Math.imul(It,Xt)|0,i=i+Math.imul(gt,jt)|0,e=(e=e+Math.imul(gt,Zt)|0)+Math.imul(bt,jt)|0,o=o+Math.imul(bt,Zt)|0,i=i+Math.imul(nt,Dt)|0,e=(e=e+Math.imul(nt,Jt)|0)+Math.imul(ht,Dt)|0,o=o+Math.imul(ht,Jt)|0,i=i+Math.imul(z,Lt)|0,e=(e=e+Math.imul(z,Qt)|0)+Math.imul(X,Lt)|0,o=o+Math.imul(X,Qt)|0,i=i+Math.imul(rt,Ut)|0,e=(e=e+Math.imul(rt,Yt)|0)+Math.imul(D,Ut)|0,o=o+Math.imul(D,Yt)|0;var li=(j+(i=i+Math.imul(R,qt)|0)|0)+((8191&(e=(e=e+Math.imul(R,ee)|0)+Math.imul(q,qt)|0))<<13)|0;j=((o=o+Math.imul(q,ee)|0)+(e>>>13)|0)+(li>>>26)|0,li&=67108863,i=Math.imul(_t,kt),e=(e=Math.imul(_t,Kt))+Math.imul(At,kt)|0,o=Math.imul(At,Kt),i=i+Math.imul(ft,Pt)|0,e=(e=e+Math.imul(ft,Ht)|0)+Math.imul(mt,Pt)|0,o=o+Math.imul(mt,Ht)|0,i=i+Math.imul(U,Rt)|0,e=(e=e+Math.imul(U,Wt)|0)+Math.imul(it,Rt)|0,o=o+Math.imul(it,Wt)|0,i=i+Math.imul(tt,Nt)|0,e=(e=e+Math.imul(tt,Xt)|0)+Math.imul(F,Nt)|0,o=o+Math.imul(F,Xt)|0,i=i+Math.imul(Mt,jt)|0,e=(e=e+Math.imul(Mt,Zt)|0)+Math.imul(It,jt)|0,o=o+Math.imul(It,Zt)|0,i=i+Math.imul(gt,Dt)|0,e=(e=e+Math.imul(gt,Jt)|0)+Math.imul(bt,Dt)|0,o=o+Math.imul(bt,Jt)|0,i=i+Math.imul(nt,Lt)|0,e=(e=e+Math.imul(nt,Qt)|0)+Math.imul(ht,Lt)|0,o=o+Math.imul(ht,Qt)|0,i=i+Math.imul(z,Ut)|0,e=(e=e+Math.imul(z,Yt)|0)+Math.imul(X,Ut)|0,o=o+Math.imul(X,Yt)|0,i=i+Math.imul(rt,qt)|0,e=(e=e+Math.imul(rt,ee)|0)+Math.imul(D,qt)|0,o=o+Math.imul(D,ee)|0;var hi=(j+(i=i+Math.imul(R,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(R,te)|0)+Math.imul(q,Ft)|0))<<13)|0;j=((o=o+Math.imul(q,te)|0)+(e>>>13)|0)+(hi>>>26)|0,hi&=67108863,i=Math.imul(_t,Pt),e=(e=Math.imul(_t,Ht))+Math.imul(At,Pt)|0,o=Math.imul(At,Ht),i=i+Math.imul(ft,Rt)|0,e=(e=e+Math.imul(ft,Wt)|0)+Math.imul(mt,Rt)|0,o=o+Math.imul(mt,Wt)|0,i=i+Math.imul(U,Nt)|0,e=(e=e+Math.imul(U,Xt)|0)+Math.imul(it,Nt)|0,o=o+Math.imul(it,Xt)|0,i=i+Math.imul(tt,jt)|0,e=(e=e+Math.imul(tt,Zt)|0)+Math.imul(F,jt)|0,o=o+Math.imul(F,Zt)|0,i=i+Math.imul(Mt,Dt)|0,e=(e=e+Math.imul(Mt,Jt)|0)+Math.imul(It,Dt)|0,o=o+Math.imul(It,Jt)|0,i=i+Math.imul(gt,Lt)|0,e=(e=e+Math.imul(gt,Qt)|0)+Math.imul(bt,Lt)|0,o=o+Math.imul(bt,Qt)|0,i=i+Math.imul(nt,Ut)|0,e=(e=e+Math.imul(nt,Yt)|0)+Math.imul(ht,Ut)|0,o=o+Math.imul(ht,Yt)|0,i=i+Math.imul(z,qt)|0,e=(e=e+Math.imul(z,ee)|0)+Math.imul(X,qt)|0,o=o+Math.imul(X,ee)|0;var fi=(j+(i=i+Math.imul(rt,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(rt,te)|0)+Math.imul(D,Ft)|0))<<13)|0;j=((o=o+Math.imul(D,te)|0)+(e>>>13)|0)+(fi>>>26)|0,fi&=67108863,i=Math.imul(_t,Rt),e=(e=Math.imul(_t,Wt))+Math.imul(At,Rt)|0,o=Math.imul(At,Wt),i=i+Math.imul(ft,Nt)|0,e=(e=e+Math.imul(ft,Xt)|0)+Math.imul(mt,Nt)|0,o=o+Math.imul(mt,Xt)|0,i=i+Math.imul(U,jt)|0,e=(e=e+Math.imul(U,Zt)|0)+Math.imul(it,jt)|0,o=o+Math.imul(it,Zt)|0,i=i+Math.imul(tt,Dt)|0,e=(e=e+Math.imul(tt,Jt)|0)+Math.imul(F,Dt)|0,o=o+Math.imul(F,Jt)|0,i=i+Math.imul(Mt,Lt)|0,e=(e=e+Math.imul(Mt,Qt)|0)+Math.imul(It,Lt)|0,o=o+Math.imul(It,Qt)|0,i=i+Math.imul(gt,Ut)|0,e=(e=e+Math.imul(gt,Yt)|0)+Math.imul(bt,Ut)|0,o=o+Math.imul(bt,Yt)|0,i=i+Math.imul(nt,qt)|0,e=(e=e+Math.imul(nt,ee)|0)+Math.imul(ht,qt)|0,o=o+Math.imul(ht,ee)|0;var Je=(j+(i=i+Math.imul(z,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(z,te)|0)+Math.imul(X,Ft)|0))<<13)|0;j=((o=o+Math.imul(X,te)|0)+(e>>>13)|0)+(Je>>>26)|0,Je&=67108863,i=Math.imul(_t,Nt),e=(e=Math.imul(_t,Xt))+Math.imul(At,Nt)|0,o=Math.imul(At,Xt),i=i+Math.imul(ft,jt)|0,e=(e=e+Math.imul(ft,Zt)|0)+Math.imul(mt,jt)|0,o=o+Math.imul(mt,Zt)|0,i=i+Math.imul(U,Dt)|0,e=(e=e+Math.imul(U,Jt)|0)+Math.imul(it,Dt)|0,o=o+Math.imul(it,Jt)|0,i=i+Math.imul(tt,Lt)|0,e=(e=e+Math.imul(tt,Qt)|0)+Math.imul(F,Lt)|0,o=o+Math.imul(F,Qt)|0,i=i+Math.imul(Mt,Ut)|0,e=(e=e+Math.imul(Mt,Yt)|0)+Math.imul(It,Ut)|0,o=o+Math.imul(It,Yt)|0,i=i+Math.imul(gt,qt)|0,e=(e=e+Math.imul(gt,ee)|0)+Math.imul(bt,qt)|0,o=o+Math.imul(bt,ee)|0;var pi=(j+(i=i+Math.imul(nt,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(nt,te)|0)+Math.imul(ht,Ft)|0))<<13)|0;j=((o=o+Math.imul(ht,te)|0)+(e>>>13)|0)+(pi>>>26)|0,pi&=67108863,i=Math.imul(_t,jt),e=(e=Math.imul(_t,Zt))+Math.imul(At,jt)|0,o=Math.imul(At,Zt),i=i+Math.imul(ft,Dt)|0,e=(e=e+Math.imul(ft,Jt)|0)+Math.imul(mt,Dt)|0,o=o+Math.imul(mt,Jt)|0,i=i+Math.imul(U,Lt)|0,e=(e=e+Math.imul(U,Qt)|0)+Math.imul(it,Lt)|0,o=o+Math.imul(it,Qt)|0,i=i+Math.imul(tt,Ut)|0,e=(e=e+Math.imul(tt,Yt)|0)+Math.imul(F,Ut)|0,o=o+Math.imul(F,Yt)|0,i=i+Math.imul(Mt,qt)|0,e=(e=e+Math.imul(Mt,ee)|0)+Math.imul(It,qt)|0,o=o+Math.imul(It,ee)|0;var gi=(j+(i=i+Math.imul(gt,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(gt,te)|0)+Math.imul(bt,Ft)|0))<<13)|0;j=((o=o+Math.imul(bt,te)|0)+(e>>>13)|0)+(gi>>>26)|0,gi&=67108863,i=Math.imul(_t,Dt),e=(e=Math.imul(_t,Jt))+Math.imul(At,Dt)|0,o=Math.imul(At,Jt),i=i+Math.imul(ft,Lt)|0,e=(e=e+Math.imul(ft,Qt)|0)+Math.imul(mt,Lt)|0,o=o+Math.imul(mt,Qt)|0,i=i+Math.imul(U,Ut)|0,e=(e=e+Math.imul(U,Yt)|0)+Math.imul(it,Ut)|0,o=o+Math.imul(it,Yt)|0,i=i+Math.imul(tt,qt)|0,e=(e=e+Math.imul(tt,ee)|0)+Math.imul(F,qt)|0,o=o+Math.imul(F,ee)|0;var ei=(j+(i=i+Math.imul(Mt,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(Mt,te)|0)+Math.imul(It,Ft)|0))<<13)|0;j=((o=o+Math.imul(It,te)|0)+(e>>>13)|0)+(ei>>>26)|0,ei&=67108863,i=Math.imul(_t,Lt),e=(e=Math.imul(_t,Qt))+Math.imul(At,Lt)|0,o=Math.imul(At,Qt),i=i+Math.imul(ft,Ut)|0,e=(e=e+Math.imul(ft,Yt)|0)+Math.imul(mt,Ut)|0,o=o+Math.imul(mt,Yt)|0,i=i+Math.imul(U,qt)|0,e=(e=e+Math.imul(U,ee)|0)+Math.imul(it,qt)|0,o=o+Math.imul(it,ee)|0;var ii=(j+(i=i+Math.imul(tt,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(tt,te)|0)+Math.imul(F,Ft)|0))<<13)|0;j=((o=o+Math.imul(F,te)|0)+(e>>>13)|0)+(ii>>>26)|0,ii&=67108863,i=Math.imul(_t,Ut),e=(e=Math.imul(_t,Yt))+Math.imul(At,Ut)|0,o=Math.imul(At,Yt),i=i+Math.imul(ft,qt)|0,e=(e=e+Math.imul(ft,ee)|0)+Math.imul(mt,qt)|0,o=o+Math.imul(mt,ee)|0;var Ye=(j+(i=i+Math.imul(U,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(U,te)|0)+Math.imul(it,Ft)|0))<<13)|0;j=((o=o+Math.imul(it,te)|0)+(e>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,i=Math.imul(_t,qt),e=(e=Math.imul(_t,ee))+Math.imul(At,qt)|0,o=Math.imul(At,ee);var di=(j+(i=i+Math.imul(ft,Ft)|0)|0)+((8191&(e=(e=e+Math.imul(ft,te)|0)+Math.imul(mt,Ft)|0))<<13)|0;j=((o=o+Math.imul(mt,te)|0)+(e>>>13)|0)+(di>>>26)|0,di&=67108863;var ni=(j+(i=Math.imul(_t,Ft))|0)+((8191&(e=(e=Math.imul(_t,te))+Math.imul(At,Ft)|0))<<13)|0;return j=((o=Math.imul(At,te))+(e>>>13)|0)+(ni>>>26)|0,ni&=67108863,C[0]=Ae,C[1]=Re,C[2]=Ke,C[3]=ai,C[4]=ri,C[5]=si,C[6]=ui,C[7]=ci,C[8]=li,C[9]=hi,C[10]=fi,C[11]=Je,C[12]=pi,C[13]=gi,C[14]=ei,C[15]=ii,C[16]=Ye,C[17]=di,C[18]=ni,j!==0&&(C[19]=j,r.length++),r};function E(t,n,r){return new I().mulp(t,n,r)}function I(t,n){this.x=t,this.y=n}Math.imul||(b=w),a.prototype.mulTo=function(t,n){var r,i=this.length+t.length;return r=this.length===10&&t.length===10?b(this,t,n):i<63?w(this,t,n):i<1024?function(e,o,s){s.negative=o.negative^e.negative,s.length=e.length+o.length;for(var A=0,C=0,j=0;j<s.length-1;j++){var T=C;C=0;for(var R=67108863&A,q=Math.min(j,o.length-1),Z=Math.max(0,j-e.length+1);Z<=q;Z++){var rt=j-Z,D=(0|e.words[rt])*(0|o.words[Z]),G=67108863&D;R=67108863&(G=G+R|0),C+=(T=(T=T+(D/67108864|0)|0)+(G>>>26)|0)>>>26,T&=67108863}s.words[j]=R,A=T,T=C}return A!==0?s.words[j]=A:s.length--,s.strip()}(this,t,n):E(this,t,n),r},I.prototype.makeRBT=function(t){for(var n=new Array(t),r=a.prototype._countBits(t)-1,i=0;i<t;i++)n[i]=this.revBin(i,r,t);return n},I.prototype.revBin=function(t,n,r){if(t===0||t===r-1)return t;for(var i=0,e=0;e<n;e++)i|=(1&t)<<n-e-1,t>>=1;return i},I.prototype.permute=function(t,n,r,i,e,o){for(var s=0;s<o;s++)i[s]=n[t[s]],e[s]=r[t[s]]},I.prototype.transform=function(t,n,r,i,e,o){this.permute(o,t,n,r,i,e);for(var s=1;s<e;s<<=1)for(var A=s<<1,C=Math.cos(2*Math.PI/A),j=Math.sin(2*Math.PI/A),T=0;T<e;T+=A)for(var R=C,q=j,Z=0;Z<s;Z++){var rt=r[T+Z],D=i[T+Z],G=r[T+Z+s],z=i[T+Z+s],X=R*G-q*z;z=R*z+q*G,G=X,r[T+Z]=rt+G,i[T+Z]=D+z,r[T+Z+s]=rt-G,i[T+Z+s]=D-z,Z!==A&&(X=C*R-j*q,q=C*q+j*R,R=X)}},I.prototype.guessLen13b=function(t,n){var r=1|Math.max(n,t),i=1&r,e=0;for(r=r/2|0;r;r>>>=1)e++;return 1<<e+1+i},I.prototype.conjugate=function(t,n,r){if(!(r<=1))for(var i=0;i<r/2;i++){var e=t[i];t[i]=t[r-i-1],t[r-i-1]=e,e=n[i],n[i]=-n[r-i-1],n[r-i-1]=-e}},I.prototype.normalize13b=function(t,n){for(var r=0,i=0;i<n/2;i++){var e=8192*Math.round(t[2*i+1]/n)+Math.round(t[2*i]/n)+r;t[i]=67108863&e,r=e<67108864?0:e/67108864|0}return t},I.prototype.convert13b=function(t,n,r,i){for(var e=0,o=0;o<n;o++)e+=0|t[o],r[2*o]=8191&e,e>>>=13,r[2*o+1]=8191&e,e>>>=13;for(o=2*n;o<i;++o)r[o]=0;m(e===0),m((-8192&e)==0)},I.prototype.stub=function(t){for(var n=new Array(t),r=0;r<t;r++)n[r]=0;return n},I.prototype.mulp=function(t,n,r){var i=2*this.guessLen13b(t.length,n.length),e=this.makeRBT(i),o=this.stub(i),s=new Array(i),A=new Array(i),C=new Array(i),j=new Array(i),T=new Array(i),R=new Array(i),q=r.words;q.length=i,this.convert13b(t.words,t.length,s,i),this.convert13b(n.words,n.length,j,i),this.transform(s,o,A,C,i,e),this.transform(j,o,T,R,i,e);for(var Z=0;Z<i;Z++){var rt=A[Z]*T[Z]-C[Z]*R[Z];C[Z]=A[Z]*R[Z]+C[Z]*T[Z],A[Z]=rt}return this.conjugate(A,C,i),this.transform(A,C,q,o,i,e),this.conjugate(q,o,i),this.normalize13b(q,i),r.negative=t.negative^n.negative,r.length=t.length+n.length,r.strip()},a.prototype.mul=function(t){var n=new a(null);return n.words=new Array(this.length+t.length),this.mulTo(t,n)},a.prototype.mulf=function(t){var n=new a(null);return n.words=new Array(this.length+t.length),E(this,t,n)},a.prototype.imul=function(t){return this.clone().mulTo(t,this)},a.prototype.imuln=function(t){m(typeof t=="number"),m(t<67108864);for(var n=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,e=(67108863&i)+(67108863&n);n>>=26,n+=i/67108864|0,n+=e>>>26,this.words[r]=67108863&e}return n!==0&&(this.words[r]=n,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var n=function(o){for(var s=new Array(o.bitLength()),A=0;A<s.length;A++){var C=A/26|0,j=A%26;s[A]=(o.words[C]&1<<j)>>>j}return s}(t);if(n.length===0)return new a(1);for(var r=this,i=0;i<n.length&&n[i]===0;i++,r=r.sqr());if(++i<n.length)for(var e=r.sqr();i<n.length;i++,e=e.sqr())n[i]!==0&&(r=r.mul(e));return r},a.prototype.iushln=function(t){m(typeof t=="number"&&t>=0);var n,r=t%26,i=(t-r)/26,e=67108863>>>26-r<<26-r;if(r!==0){var o=0;for(n=0;n<this.length;n++){var s=this.words[n]&e,A=(0|this.words[n])-s<<r;this.words[n]=A|o,o=s>>>26-r}o&&(this.words[n]=o,this.length++)}if(i!==0){for(n=this.length-1;n>=0;n--)this.words[n+i]=this.words[n];for(n=0;n<i;n++)this.words[n]=0;this.length+=i}return this.strip()},a.prototype.ishln=function(t){return m(this.negative===0),this.iushln(t)},a.prototype.iushrn=function(t,n,r){var i;m(typeof t=="number"&&t>=0),i=n?(n-n%26)/26:0;var e=t%26,o=Math.min((t-e)/26,this.length),s=67108863^67108863>>>e<<e,A=r;if(i-=o,i=Math.max(0,i),A){for(var C=0;C<o;C++)A.words[C]=this.words[C];A.length=o}if(o!==0)if(this.length>o)for(this.length-=o,C=0;C<this.length;C++)this.words[C]=this.words[C+o];else this.words[0]=0,this.length=1;var j=0;for(C=this.length-1;C>=0&&(j!==0||C>=i);C--){var T=0|this.words[C];this.words[C]=j<<26-e|T>>>e,j=T&s}return A&&j!==0&&(A.words[A.length++]=j),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,n,r){return m(this.negative===0),this.iushrn(t,n,r)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){m(typeof t=="number"&&t>=0);var n=t%26,r=(t-n)/26,i=1<<n;return!(this.length<=r||!(this.words[r]&i))},a.prototype.imaskn=function(t){m(typeof t=="number"&&t>=0);var n=t%26,r=(t-n)/26;if(m(this.negative===0,"imaskn works only with positive numbers"),this.length<=r)return this;if(n!==0&&r++,this.length=Math.min(r,this.length),n!==0){var i=67108863^67108863>>>n<<n;this.words[this.length-1]&=i}return this.strip()},a.prototype.maskn=function(t){return this.clone().imaskn(t)},a.prototype.iaddn=function(t){return m(typeof t=="number"),m(t<67108864),t<0?this.isubn(-t):this.negative!==0?this.length===1&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},a.prototype._iaddn=function(t){this.words[0]+=t;for(var n=0;n<this.length&&this.words[n]>=67108864;n++)this.words[n]-=67108864,n===this.length-1?this.words[n+1]=1:this.words[n+1]++;return this.length=Math.max(this.length,n+1),this},a.prototype.isubn=function(t){if(m(typeof t=="number"),m(t<67108864),t<0)return this.iaddn(-t);if(this.negative!==0)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var n=0;n<this.length&&this.words[n]<0;n++)this.words[n]+=67108864,this.words[n+1]-=1;return this.strip()},a.prototype.addn=function(t){return this.clone().iaddn(t)},a.prototype.subn=function(t){return this.clone().isubn(t)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(t,n,r){var i,e,o=t.length+r;this._expand(o);var s=0;for(i=0;i<t.length;i++){e=(0|this.words[i+r])+s;var A=(0|t.words[i])*n;s=((e-=67108863&A)>>26)-(A/67108864|0),this.words[i+r]=67108863&e}for(;i<this.length-r;i++)s=(e=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&e;if(s===0)return this.strip();for(m(s===-1),s=0,i=0;i<this.length;i++)s=(e=-(0|this.words[i])+s)>>26,this.words[i]=67108863&e;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,n){var r=(this.length,t.length),i=this.clone(),e=t,o=0|e.words[e.length-1];(r=26-this._countBits(o))!=0&&(e=e.ushln(r),i.iushln(r),o=0|e.words[e.length-1]);var s,A=i.length-e.length;if(n!=="mod"){(s=new a(null)).length=A+1,s.words=new Array(s.length);for(var C=0;C<s.length;C++)s.words[C]=0}var j=i.clone()._ishlnsubmul(e,1,A);j.negative===0&&(i=j,s&&(s.words[A]=1));for(var T=A-1;T>=0;T--){var R=67108864*(0|i.words[e.length+T])+(0|i.words[e.length+T-1]);for(R=Math.min(R/o|0,67108863),i._ishlnsubmul(e,R,T);i.negative!==0;)R--,i.negative=0,i._ishlnsubmul(e,1,T),i.isZero()||(i.negative^=1);s&&(s.words[T]=R)}return s&&s.strip(),i.strip(),n!=="div"&&r!==0&&i.iushrn(r),{div:s||null,mod:i}},a.prototype.divmod=function(t,n,r){return m(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:this.negative!==0&&t.negative===0?(o=this.neg().divmod(t,n),n!=="mod"&&(i=o.div.neg()),n!=="div"&&(e=o.mod.neg(),r&&e.negative!==0&&e.iadd(t)),{div:i,mod:e}):this.negative===0&&t.negative!==0?(o=this.divmod(t.neg(),n),n!=="mod"&&(i=o.div.neg()),{div:i,mod:o.mod}):this.negative&t.negative?(o=this.neg().divmod(t.neg(),n),n!=="div"&&(e=o.mod.neg(),r&&e.negative!==0&&e.isub(t)),{div:o.div,mod:e}):t.length>this.length||this.cmp(t)<0?{div:new a(0),mod:this}:t.length===1?n==="div"?{div:this.divn(t.words[0]),mod:null}:n==="mod"?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,n);var i,e,o},a.prototype.div=function(t){return this.divmod(t,"div",!1).div},a.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},a.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},a.prototype.divRound=function(t){var n=this.divmod(t);if(n.mod.isZero())return n.div;var r=n.div.negative!==0?n.mod.isub(t):n.mod,i=t.ushrn(1),e=t.andln(1),o=r.cmp(i);return o<0||e===1&&o===0?n.div:n.div.negative!==0?n.div.isubn(1):n.div.iaddn(1)},a.prototype.modn=function(t){m(t<=67108863);for(var n=67108864%t,r=0,i=this.length-1;i>=0;i--)r=(n*r+(0|this.words[i]))%t;return r},a.prototype.idivn=function(t){m(t<=67108863);for(var n=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*n;this.words[r]=i/t|0,n=i%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){m(t.negative===0),m(!t.isZero());var n=this,r=t.clone();n=n.negative!==0?n.umod(t):n.clone();for(var i=new a(1),e=new a(0),o=new a(0),s=new a(1),A=0;n.isEven()&&r.isEven();)n.iushrn(1),r.iushrn(1),++A;for(var C=r.clone(),j=n.clone();!n.isZero();){for(var T=0,R=1;!(n.words[0]&R)&&T<26;++T,R<<=1);if(T>0)for(n.iushrn(T);T-- >0;)(i.isOdd()||e.isOdd())&&(i.iadd(C),e.isub(j)),i.iushrn(1),e.iushrn(1);for(var q=0,Z=1;!(r.words[0]&Z)&&q<26;++q,Z<<=1);if(q>0)for(r.iushrn(q);q-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(C),s.isub(j)),o.iushrn(1),s.iushrn(1);n.cmp(r)>=0?(n.isub(r),i.isub(o),e.isub(s)):(r.isub(n),o.isub(i),s.isub(e))}return{a:o,b:s,gcd:r.iushln(A)}},a.prototype._invmp=function(t){m(t.negative===0),m(!t.isZero());var n=this,r=t.clone();n=n.negative!==0?n.umod(t):n.clone();for(var i,e=new a(1),o=new a(0),s=r.clone();n.cmpn(1)>0&&r.cmpn(1)>0;){for(var A=0,C=1;!(n.words[0]&C)&&A<26;++A,C<<=1);if(A>0)for(n.iushrn(A);A-- >0;)e.isOdd()&&e.iadd(s),e.iushrn(1);for(var j=0,T=1;!(r.words[0]&T)&&j<26;++j,T<<=1);if(j>0)for(r.iushrn(j);j-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);n.cmp(r)>=0?(n.isub(r),e.isub(o)):(r.isub(n),o.isub(e))}return(i=n.cmpn(1)===0?e:o).cmpn(0)<0&&i.iadd(t),i},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var n=this.clone(),r=t.clone();n.negative=0,r.negative=0;for(var i=0;n.isEven()&&r.isEven();i++)n.iushrn(1),r.iushrn(1);for(;;){for(;n.isEven();)n.iushrn(1);for(;r.isEven();)r.iushrn(1);var e=n.cmp(r);if(e<0){var o=n;n=r,r=o}else if(e===0||r.cmpn(1)===0)break;n.isub(r)}return r.iushln(i)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(t){return this.words[0]&t},a.prototype.bincn=function(t){m(typeof t=="number");var n=t%26,r=(t-n)/26,i=1<<n;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var e=i,o=r;e!==0&&o<this.length;o++){var s=0|this.words[o];e=(s+=e)>>>26,s&=67108863,this.words[o]=s}return e!==0&&(this.words[o]=e,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(t){var n,r=t<0;if(this.negative!==0&&!r)return-1;if(this.negative===0&&r)return 1;if(this.strip(),this.length>1)n=1;else{r&&(t=-t),m(t<=67108863,"Number is too big");var i=0|this.words[0];n=i===t?0:i<t?-1:1}return this.negative!==0?0|-n:n},a.prototype.cmp=function(t){if(this.negative!==0&&t.negative===0)return-1;if(this.negative===0&&t.negative!==0)return 1;var n=this.ucmp(t);return this.negative!==0?0|-n:n},a.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var n=0,r=this.length-1;r>=0;r--){var i=0|this.words[r],e=0|t.words[r];if(i!==e){i<e?n=-1:i>e&&(n=1);break}}return n},a.prototype.gtn=function(t){return this.cmpn(t)===1},a.prototype.gt=function(t){return this.cmp(t)===1},a.prototype.gten=function(t){return this.cmpn(t)>=0},a.prototype.gte=function(t){return this.cmp(t)>=0},a.prototype.ltn=function(t){return this.cmpn(t)===-1},a.prototype.lt=function(t){return this.cmp(t)===-1},a.prototype.lten=function(t){return this.cmpn(t)<=0},a.prototype.lte=function(t){return this.cmp(t)<=0},a.prototype.eqn=function(t){return this.cmpn(t)===0},a.prototype.eq=function(t){return this.cmp(t)===0},a.red=function(t){return new Q(t)},a.prototype.toRed=function(t){return m(!this.red,"Already a number in reduction context"),m(this.negative===0,"red works only with positives"),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return m(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return m(!this.red,"Already a number in reduction context"),this._forceRed(t)},a.prototype.redAdd=function(t){return m(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},a.prototype.redIAdd=function(t){return m(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},a.prototype.redSub=function(t){return m(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},a.prototype.redISub=function(t){return m(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},a.prototype.redShl=function(t){return m(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},a.prototype.redMul=function(t){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return m(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return m(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return m(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return m(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return m(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return m(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var M={k256:null,p224:null,p192:null,p25519:null};function B(t,n){this.name=t,this.p=new a(n,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function P(){B.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function N(){B.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function $(){B.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function et(){B.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function Q(t){if(typeof t=="string"){var n=a._prime(t);this.m=n.p,this.prime=n}else m(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function ot(t){Q.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}B.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},B.prototype.ireduce=function(t){var n,r=t;do this.split(r,this.tmp),n=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(n>this.n);var i=n<this.n?-1:r.ucmp(this.p);return i===0?(r.words[0]=0,r.length=1):i>0?r.isub(this.p):r.strip!==void 0?r.strip():r._strip(),r},B.prototype.split=function(t,n){t.iushrn(this.n,0,n)},B.prototype.imulK=function(t){return t.imul(this.k)},S(P,B),P.prototype.split=function(t,n){for(var r=4194303,i=Math.min(t.length,9),e=0;e<i;e++)n.words[e]=t.words[e];if(n.length=i,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(n.words[n.length++]=o&r,e=10;e<t.length;e++){var s=0|t.words[e];t.words[e-10]=(s&r)<<4|o>>>22,o=s}o>>>=22,t.words[e-10]=o,o===0&&t.length>10?t.length-=10:t.length-=9},P.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var n=0,r=0;r<t.length;r++){var i=0|t.words[r];n+=977*i,t.words[r]=67108863&n,n=64*i+(n/67108864|0)}return t.words[t.length-1]===0&&(t.length--,t.words[t.length-1]===0&&t.length--),t},S(N,B),S($,B),S(et,B),et.prototype.imulK=function(t){for(var n=0,r=0;r<t.length;r++){var i=19*(0|t.words[r])+n,e=67108863&i;i>>>=26,t.words[r]=e,n=i}return n!==0&&(t.words[t.length++]=n),t},a._prime=function(t){if(M[t])return M[t];var n;if(t==="k256")n=new P;else if(t==="p224")n=new N;else if(t==="p192")n=new $;else{if(t!=="p25519")throw new Error("Unknown prime "+t);n=new et}return M[t]=n,n},Q.prototype._verify1=function(t){m(t.negative===0,"red works only with positives"),m(t.red,"red works only with red numbers")},Q.prototype._verify2=function(t,n){m((t.negative|n.negative)==0,"red works only with positives"),m(t.red&&t.red===n.red,"red works only with red numbers")},Q.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},Q.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},Q.prototype.add=function(t,n){this._verify2(t,n);var r=t.add(n);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},Q.prototype.iadd=function(t,n){this._verify2(t,n);var r=t.iadd(n);return r.cmp(this.m)>=0&&r.isub(this.m),r},Q.prototype.sub=function(t,n){this._verify2(t,n);var r=t.sub(n);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},Q.prototype.isub=function(t,n){this._verify2(t,n);var r=t.isub(n);return r.cmpn(0)<0&&r.iadd(this.m),r},Q.prototype.shl=function(t,n){return this._verify1(t),this.imod(t.ushln(n))},Q.prototype.imul=function(t,n){return this._verify2(t,n),this.imod(t.imul(n))},Q.prototype.mul=function(t,n){return this._verify2(t,n),this.imod(t.mul(n))},Q.prototype.isqr=function(t){return this.imul(t,t.clone())},Q.prototype.sqr=function(t){return this.mul(t,t)},Q.prototype.sqrt=function(t){if(t.isZero())return t.clone();var n=this.m.andln(3);if(m(n%2==1),n===3){var r=this.m.add(new a(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),e=0;!i.isZero()&&i.andln(1)===0;)e++,i.iushrn(1);m(!i.isZero());var o=new a(1).toRed(this),s=o.redNeg(),A=this.m.subn(1).iushrn(1),C=this.m.bitLength();for(C=new a(2*C*C).toRed(this);this.pow(C,A).cmp(s)!==0;)C.redIAdd(s);for(var j=this.pow(C,i),T=this.pow(t,i.addn(1).iushrn(1)),R=this.pow(t,i),q=e;R.cmp(o)!==0;){for(var Z=R,rt=0;Z.cmp(o)!==0;rt++)Z=Z.redSqr();m(rt<q);var D=this.pow(j,new a(1).iushln(q-rt-1));T=T.redMul(D),j=D.redSqr(),R=R.redMul(j),q=rt}return T},Q.prototype.invm=function(t){var n=t._invmp(this.m);return n.negative!==0?(n.negative=0,this.imod(n).redNeg()):this.imod(n)},Q.prototype.pow=function(t,n){if(n.isZero())return new a(1).toRed(this);if(n.cmpn(1)===0)return t.clone();var r=new Array(16);r[0]=new a(1).toRed(this),r[1]=t;for(var i=2;i<r.length;i++)r[i]=this.mul(r[i-1],t);var e=r[0],o=0,s=0,A=n.bitLength()%26;for(A===0&&(A=26),i=n.length-1;i>=0;i--){for(var C=n.words[i],j=A-1;j>=0;j--){var T=C>>j&1;e!==r[0]&&(e=this.sqr(e)),T!==0||o!==0?(o<<=1,o|=T,(++s==4||i===0&&j===0)&&(e=this.mul(e,r[o]),s=0,o=0)):s=0}A=26}return e},Q.prototype.convertTo=function(t){var n=t.umod(this.m);return n===t?n.clone():n},Q.prototype.convertFrom=function(t){var n=t.clone();return n.red=null,n},a.mont=function(t){return new ot(t)},S(ot,Q),ot.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},ot.prototype.convertFrom=function(t){var n=this.imod(t.mul(this.rinv));return n.red=null,n},ot.prototype.imul=function(t,n){if(t.isZero()||n.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(n),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=r.isub(i).iushrn(this.shift),o=e;return e.cmp(this.m)>=0?o=e.isub(this.m):e.cmpn(0)<0&&(o=e.iadd(this.m)),o._forceRed(this)},ot.prototype.mul=function(t,n){if(t.isZero()||n.isZero())return new a(0)._forceRed(this);var r=t.mul(n),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=r.isub(i).iushrn(this.shift),o=e;return e.cmp(this.m)>=0?o=e.isub(this.m):e.cmpn(0)<0&&(o=e.iadd(this.m)),o._forceRed(this)},ot.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}})(W=y.nmd(W),this)},6138:(W,_,y)=>{var x=y(980),v=y(9199),m=y(7859),S=y(2144),a=y(3663),p=y(3482),c=y(4818),l=y(9509).Buffer;W.exports=function(f,g,h){var u;u=f.padding?f.padding:h?1:4;var w,b=x(f),E=b.modulus.byteLength();if(g.length>E||new S(g).cmp(b.modulus)>=0)throw new Error("decryption error");w=h?c(new S(g),b):a(g,b);var I=l.alloc(E-w.length);if(w=l.concat([I,w],E),u===4)return function(M,B){var P=M.modulus.byteLength(),N=p("sha1").update(l.alloc(0)).digest(),$=N.length;if(B[0]!==0)throw new Error("decryption error");var et=B.slice(1,$+1),Q=B.slice($+1),ot=m(et,v(Q,$)),t=m(Q,v(ot,P-$-1));if(function(r,i){r=l.from(r),i=l.from(i);var e=0,o=r.length;r.length!==i.length&&(e++,o=Math.min(r.length,i.length));for(var s=-1;++s<o;)e+=r[s]^i[s];return e}(N,t.slice(0,$)))throw new Error("decryption error");for(var n=$;t[n]===0;)n++;if(t[n++]!==1)throw new Error("decryption error");return t.slice(n)}(b,w);if(u===1)return function(M,B,P){for(var N=B.slice(0,2),$=2,et=0;B[$++]!==0;)if($>=B.length){et++;break}var Q=B.slice(2,$-1);if((N.toString("hex")!=="0002"&&!P||N.toString("hex")!=="0001"&&P)&&et++,Q.length<8&&et++,et)throw new Error("decryption error");return B.slice($)}(0,w,h);if(u===3)return w;throw new Error("unknown padding")}},6559:(W,_,y)=>{var x=y(980),v=y(1798),m=y(3482),S=y(9199),a=y(7859),p=y(2144),c=y(4818),l=y(3663),f=y(9509).Buffer;W.exports=function(g,h,u){var w;w=g.padding?g.padding:u?1:4;var b,E=x(g);if(w===4)b=function(I,M){var B=I.modulus.byteLength(),P=M.length,N=m("sha1").update(f.alloc(0)).digest(),$=N.length,et=2*$;if(P>B-et-2)throw new Error("message too long");var Q=f.alloc(B-P-et-2),ot=B-$-1,t=v($),n=a(f.concat([N,Q,f.alloc(1,1),M],ot),S(t,ot)),r=a(t,S(n,$));return new p(f.concat([f.alloc(1),r,n],B))}(E,h);else if(w===1)b=function(I,M,B){var P,N=M.length,$=I.modulus.byteLength();if(N>$-11)throw new Error("message too long");return P=B?f.alloc($-N-3,255):function(et){for(var Q,ot=f.allocUnsafe(et),t=0,n=v(2*et),r=0;t<et;)r===n.length&&(n=v(2*et),r=0),(Q=n[r++])&&(ot[t++]=Q);return ot}($-N-3),new p(f.concat([f.from([0,B?1:2]),P,f.alloc(1),M],$))}(E,h,u);else{if(w!==3)throw new Error("unknown padding");if((b=new p(h)).cmp(E.modulus)>=0)throw new Error("data too long for modulus")}return u?l(b,E):c(b,E)}},4818:(W,_,y)=>{var x=y(2144),v=y(9509).Buffer;W.exports=function(m,S){return v.from(m.toRed(x.mont(S.modulus)).redPow(new x(S.publicExponent)).fromRed().toArray())}},7859:W=>{W.exports=function(_,y){for(var x=_.length,v=-1;++v<x;)_[v]^=y[v];return _}},7563:(W,_,y)=>{const x=y(610),v=y(4020),m=y(500),S=y(2806),a=Symbol("encodeFragmentIdentifier");function p(b){if(typeof b!="string"||b.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function c(b,E){return E.encode?E.strict?x(b):encodeURIComponent(b):b}function l(b,E){return E.decode?v(b):b}function f(b){return Array.isArray(b)?b.sort():typeof b=="object"?f(Object.keys(b)).sort((E,I)=>Number(E)-Number(I)).map(E=>b[E]):b}function g(b){const E=b.indexOf("#");return E!==-1&&(b=b.slice(0,E)),b}function h(b){const E=(b=g(b)).indexOf("?");return E===-1?"":b.slice(E+1)}function u(b,E){return E.parseNumbers&&!Number.isNaN(Number(b))&&typeof b=="string"&&b.trim()!==""?b=Number(b):!E.parseBooleans||b===null||b.toLowerCase()!=="true"&&b.toLowerCase()!=="false"||(b=b.toLowerCase()==="true"),b}function w(b,E){p((E=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},E)).arrayFormatSeparator);const I=function(B){let P;switch(B.arrayFormat){case"index":return(N,$,et)=>{P=/\[(\d*)\]$/.exec(N),N=N.replace(/\[\d*\]$/,""),P?(et[N]===void 0&&(et[N]={}),et[N][P[1]]=$):et[N]=$};case"bracket":return(N,$,et)=>{P=/(\[\])$/.exec(N),N=N.replace(/\[\]$/,""),P?et[N]!==void 0?et[N]=[].concat(et[N],$):et[N]=[$]:et[N]=$};case"colon-list-separator":return(N,$,et)=>{P=/(:list)$/.exec(N),N=N.replace(/:list$/,""),P?et[N]!==void 0?et[N]=[].concat(et[N],$):et[N]=[$]:et[N]=$};case"comma":case"separator":return(N,$,et)=>{const Q=typeof $=="string"&&$.includes(B.arrayFormatSeparator),ot=typeof $=="string"&&!Q&&l($,B).includes(B.arrayFormatSeparator);$=ot?l($,B):$;const t=Q||ot?$.split(B.arrayFormatSeparator).map(n=>l(n,B)):$===null?$:l($,B);et[N]=t};case"bracket-separator":return(N,$,et)=>{const Q=/(\[\])$/.test(N);if(N=N.replace(/\[\]$/,""),!Q)return void(et[N]=$&&l($,B));const ot=$===null?[]:$.split(B.arrayFormatSeparator).map(t=>l(t,B));et[N]!==void 0?et[N]=[].concat(et[N],ot):et[N]=ot};default:return(N,$,et)=>{et[N]!==void 0?et[N]=[].concat(et[N],$):et[N]=$}}}(E),M=Object.create(null);if(typeof b!="string"||!(b=b.trim().replace(/^[?#&]/,"")))return M;for(const B of b.split("&")){if(B==="")continue;let[P,N]=m(E.decode?B.replace(/\+/g," "):B,"=");N=N===void 0?null:["comma","separator","bracket-separator"].includes(E.arrayFormat)?N:l(N,E),I(l(P,E),N,M)}for(const B of Object.keys(M)){const P=M[B];if(typeof P=="object"&&P!==null)for(const N of Object.keys(P))P[N]=u(P[N],E);else M[B]=u(P,E)}return E.sort===!1?M:(E.sort===!0?Object.keys(M).sort():Object.keys(M).sort(E.sort)).reduce((B,P)=>{const N=M[P];return N&&typeof N=="object"&&!Array.isArray(N)?B[P]=f(N):B[P]=N,B},Object.create(null))}_.extract=h,_.parse=w,_.stringify=(b,E)=>{if(!b)return"";p((E=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},E)).arrayFormatSeparator);const I=N=>E.skipNull&&b[N]==null||E.skipEmptyString&&b[N]==="",M=function(N){switch(N.arrayFormat){case"index":return $=>(et,Q)=>{const ot=et.length;return Q===void 0||N.skipNull&&Q===null||N.skipEmptyString&&Q===""?et:Q===null?[...et,[c($,N),"[",ot,"]"].join("")]:[...et,[c($,N),"[",c(ot,N),"]=",c(Q,N)].join("")]};case"bracket":return $=>(et,Q)=>Q===void 0||N.skipNull&&Q===null||N.skipEmptyString&&Q===""?et:Q===null?[...et,[c($,N),"[]"].join("")]:[...et,[c($,N),"[]=",c(Q,N)].join("")];case"colon-list-separator":return $=>(et,Q)=>Q===void 0||N.skipNull&&Q===null||N.skipEmptyString&&Q===""?et:Q===null?[...et,[c($,N),":list="].join("")]:[...et,[c($,N),":list=",c(Q,N)].join("")];case"comma":case"separator":case"bracket-separator":{const $=N.arrayFormat==="bracket-separator"?"[]=":"=";return et=>(Q,ot)=>ot===void 0||N.skipNull&&ot===null||N.skipEmptyString&&ot===""?Q:(ot=ot===null?"":ot,Q.length===0?[[c(et,N),$,c(ot,N)].join("")]:[[Q,c(ot,N)].join(N.arrayFormatSeparator)])}default:return $=>(et,Q)=>Q===void 0||N.skipNull&&Q===null||N.skipEmptyString&&Q===""?et:Q===null?[...et,c($,N)]:[...et,[c($,N),"=",c(Q,N)].join("")]}}(E),B={};for(const N of Object.keys(b))I(N)||(B[N]=b[N]);const P=Object.keys(B);return E.sort!==!1&&P.sort(E.sort),P.map(N=>{const $=b[N];return $===void 0?"":$===null?c(N,E):Array.isArray($)?$.length===0&&E.arrayFormat==="bracket-separator"?c(N,E)+"[]":$.reduce(M(N),[]).join("&"):c(N,E)+"="+c($,E)}).filter(N=>N.length>0).join("&")},_.parseUrl=(b,E)=>{E=Object.assign({decode:!0},E);const[I,M]=m(b,"#");return Object.assign({url:I.split("?")[0]||"",query:w(h(b),E)},E&&E.parseFragmentIdentifier&&M?{fragmentIdentifier:l(M,E)}:{})},_.stringifyUrl=(b,E)=>{E=Object.assign({encode:!0,strict:!0,[a]:!0},E);const I=g(b.url).split("?")[0]||"",M=_.extract(b.url),B=_.parse(M,{sort:!1}),P=Object.assign(B,b.query);let N=_.stringify(P,E);N&&(N=`?${N}`);let $=function(et){let Q="";const ot=et.indexOf("#");return ot!==-1&&(Q=et.slice(ot)),Q}(b.url);return b.fragmentIdentifier&&($=`#${E[a]?c(b.fragmentIdentifier,E):b.fragmentIdentifier}`),`${I}${N}${$}`},_.pick=(b,E,I)=>{I=Object.assign({parseFragmentIdentifier:!0,[a]:!1},I);const{url:M,query:B,fragmentIdentifier:P}=_.parseUrl(b,I);return _.stringifyUrl({url:M,query:S(B,E),fragmentIdentifier:P},I)},_.exclude=(b,E,I)=>{const M=Array.isArray(E)?B=>!E.includes(B):(B,P)=>!E(B,P);return _.pick(b,M,I)}},2587:W=>{function _(y,x){return Object.prototype.hasOwnProperty.call(y,x)}W.exports=function(y,x,v,m){x=x||"&",v=v||"=";var S={};if(typeof y!="string"||y.length===0)return S;var a=/\+/g;y=y.split(x);var p=1e3;m&&typeof m.maxKeys=="number"&&(p=m.maxKeys);var c=y.length;p>0&&c>p&&(c=p);for(var l=0;l<c;++l){var f,g,h,u,w=y[l].replace(a,"%20"),b=w.indexOf(v);b>=0?(f=w.substr(0,b),g=w.substr(b+1)):(f=w,g=""),h=decodeURIComponent(f),u=decodeURIComponent(g),_(S,h)?Array.isArray(S[h])?S[h].push(u):S[h]=[S[h],u]:S[h]=u}return S}},2182:W=>{var _=function(y){switch(typeof y){case"string":return y;case"boolean":return y?"true":"false";case"number":return isFinite(y)?y:"";default:return""}};W.exports=function(y,x,v,m){return x=x||"&",v=v||"=",y===null&&(y=void 0),typeof y=="object"?Object.keys(y).map(function(S){var a=encodeURIComponent(_(S))+v;return Array.isArray(y[S])?y[S].map(function(p){return a+encodeURIComponent(_(p))}).join(x):a+encodeURIComponent(_(y[S]))}).join(x):m?encodeURIComponent(_(m))+v+encodeURIComponent(_(y)):""}},7673:(W,_,y)=>{_.decode=_.parse=y(2587),_.encode=_.stringify=y(2182)},1798:(W,_,y)=>{var x=y(4155),v=65536,m=y(9509).Buffer,S=y.g.crypto||y.g.msCrypto;S&&S.getRandomValues?W.exports=function(a,p){if(a>4294967295)throw new RangeError("requested too many random bytes");var c=m.allocUnsafe(a);if(a>0)if(a>v)for(var l=0;l<a;l+=v)S.getRandomValues(c.slice(l,l+v));else S.getRandomValues(c);return typeof p=="function"?x.nextTick(function(){p(null,c)}):c}:W.exports=function(){throw new Error(`Secure random number generation is not supported by this browser.
|
|
105
|
+
Use Chrome, Firefox or Internet Explorer 11`)}},7963:(W,_,y)=>{var x=y(4155);function v(){throw new Error(`secure random number generation not supported by this browser
|
|
106
|
+
use chrome, FireFox or Internet Explorer 11`)}var m=y(9509),S=y(1798),a=m.Buffer,p=m.kMaxLength,c=y.g.crypto||y.g.msCrypto,l=Math.pow(2,32)-1;function f(u,w){if(typeof u!="number"||u!=u)throw new TypeError("offset must be a number");if(u>l||u<0)throw new TypeError("offset must be a uint32");if(u>p||u>w)throw new RangeError("offset out of range")}function g(u,w,b){if(typeof u!="number"||u!=u)throw new TypeError("size must be a number");if(u>l||u<0)throw new TypeError("size must be a uint32");if(u+w>b||u>p)throw new RangeError("buffer too small")}function h(u,w,b,E){if(x.browser){var I=u.buffer,M=new Uint8Array(I,w,b);return c.getRandomValues(M),E?void x.nextTick(function(){E(null,u)}):u}if(!E)return S(b).copy(u,w),u;S(b,function(B,P){if(B)return E(B);P.copy(u,w),E(null,u)})}c&&c.getRandomValues||!x.browser?(_.randomFill=function(u,w,b,E){if(!(a.isBuffer(u)||u instanceof y.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof w=="function")E=w,w=0,b=u.length;else if(typeof b=="function")E=b,b=u.length-w;else if(typeof E!="function")throw new TypeError('"cb" argument must be a function');return f(w,u.length),g(b,w,u.length),h(u,w,b,E)},_.randomFillSync=function(u,w,b){if(w===void 0&&(w=0),!(a.isBuffer(u)||u instanceof y.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return f(w,u.length),b===void 0&&(b=u.length-w),g(b,w,u.length),h(u,w,b)}):(_.randomFill=v,_.randomFillSync=v)},4281:W=>{var _={};function y(v,m,S){S||(S=Error);var a=function(p){var c,l;function f(g,h,u){return p.call(this,function(w,b,E){return typeof m=="string"?m:m(w,b,E)}(g,h,u))||this}return l=p,(c=f).prototype=Object.create(l.prototype),c.prototype.constructor=c,c.__proto__=l,f}(S);a.prototype.name=S.name,a.prototype.code=v,_[v]=a}function x(v,m){if(Array.isArray(v)){var S=v.length;return v=v.map(function(a){return String(a)}),S>2?"one of ".concat(m," ").concat(v.slice(0,S-1).join(", "),", or ")+v[S-1]:S===2?"one of ".concat(m," ").concat(v[0]," or ").concat(v[1]):"of ".concat(m," ").concat(v[0])}return"of ".concat(m," ").concat(String(v))}y("ERR_INVALID_OPT_VALUE",function(v,m){return'The value "'+m+'" is invalid for option "'+v+'"'},TypeError),y("ERR_INVALID_ARG_TYPE",function(v,m,S){var a,p,c,l,f;if(typeof m=="string"&&(p="not ",m.substr(0,p.length)===p)?(a="must not be",m=m.replace(/^not /,"")):a="must be",function(h,u,w){return(w===void 0||w>h.length)&&(w=h.length),h.substring(w-u.length,w)===u}(v," argument"))c="The ".concat(v," ").concat(a," ").concat(x(m,"type"));else{var g=(typeof f!="number"&&(f=0),f+1>(l=v).length||l.indexOf(".",f)===-1?"argument":"property");c='The "'.concat(v,'" ').concat(g," ").concat(a," ").concat(x(m,"type"))}return c+". Received type ".concat(typeof S)},TypeError),y("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),y("ERR_METHOD_NOT_IMPLEMENTED",function(v){return"The "+v+" method is not implemented"}),y("ERR_STREAM_PREMATURE_CLOSE","Premature close"),y("ERR_STREAM_DESTROYED",function(v){return"Cannot call "+v+" after a stream was destroyed"}),y("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),y("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),y("ERR_STREAM_WRITE_AFTER_END","write after end"),y("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),y("ERR_UNKNOWN_ENCODING",function(v){return"Unknown encoding: "+v},TypeError),y("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),W.exports.q=_},6753:(W,_,y)=>{var x=y(4155),v=Object.keys||function(h){var u=[];for(var w in h)u.push(w);return u};W.exports=l;var m=y(9481),S=y(4229);y(5717)(l,m);for(var a=v(S.prototype),p=0;p<a.length;p++){var c=a[p];l.prototype[c]||(l.prototype[c]=S.prototype[c])}function l(h){if(!(this instanceof l))return new l(h);m.call(this,h),S.call(this,h),this.allowHalfOpen=!0,h&&(h.readable===!1&&(this.readable=!1),h.writable===!1&&(this.writable=!1),h.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||x.nextTick(g,this)}function g(h){h.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 this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(h){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=h,this._writableState.destroyed=h)}})},2725:(W,_,y)=>{W.exports=v;var x=y(4605);function v(m){if(!(this instanceof v))return new v(m);x.call(this,m)}y(5717)(v,x),v.prototype._transform=function(m,S,a){a(null,m)}},9481:(W,_,y)=>{var x,v=y(4155);W.exports=Q,Q.ReadableState=et,y(7187).EventEmitter;var m,S=function(D,G){return D.listeners(G).length},a=y(2503),p=y(8764).Buffer,c=y.g.Uint8Array||function(){},l=y(4616);m=l&&l.debuglog?l.debuglog("stream"):function(){};var f,g,h,u=y(7327),w=y(1195),b=y(2457).getHighWaterMark,E=y(4281).q,I=E.ERR_INVALID_ARG_TYPE,M=E.ERR_STREAM_PUSH_AFTER_EOF,B=E.ERR_METHOD_NOT_IMPLEMENTED,P=E.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;y(5717)(Q,a);var N=w.errorOrDestroy,$=["error","close","destroy","pause","resume"];function et(D,G,z){x=x||y(6753),D=D||{},typeof z!="boolean"&&(z=G instanceof x),this.objectMode=!!D.objectMode,z&&(this.objectMode=this.objectMode||!!D.readableObjectMode),this.highWaterMark=b(this,D,"readableHighWaterMark",z),this.buffer=new u,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=D.emitClose!==!1,this.autoDestroy=!!D.autoDestroy,this.destroyed=!1,this.defaultEncoding=D.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,D.encoding&&(f||(f=y(2553).s),this.decoder=new f(D.encoding),this.encoding=D.encoding)}function Q(D){if(x=x||y(6753),!(this instanceof Q))return new Q(D);var G=this instanceof x;this._readableState=new et(D,this,G),this.readable=!0,D&&(typeof D.read=="function"&&(this._read=D.read),typeof D.destroy=="function"&&(this._destroy=D.destroy)),a.call(this)}function ot(D,G,z,X,st){m("readableAddChunk",G);var nt,ht=D._readableState;if(G===null)ht.reading=!1,function(Et,gt){if(m("onEofChunk"),!gt.ended){if(gt.decoder){var bt=gt.decoder.end();bt&&bt.length&&(gt.buffer.push(bt),gt.length+=gt.objectMode?1:bt.length)}gt.ended=!0,gt.sync?i(Et):(gt.needReadable=!1,gt.emittedReadable||(gt.emittedReadable=!0,e(Et)))}}(D,ht);else if(st||(nt=function(Et,gt){var bt,Bt;return Bt=gt,p.isBuffer(Bt)||Bt instanceof c||typeof gt=="string"||gt===void 0||Et.objectMode||(bt=new I("chunk",["string","Buffer","Uint8Array"],gt)),bt}(ht,G)),nt)N(D,nt);else if(ht.objectMode||G&&G.length>0)if(typeof G=="string"||ht.objectMode||Object.getPrototypeOf(G)===p.prototype||(G=function(Et){return p.from(Et)}(G)),X)ht.endEmitted?N(D,new P):t(D,ht,G,!0);else if(ht.ended)N(D,new M);else{if(ht.destroyed)return!1;ht.reading=!1,ht.decoder&&!z?(G=ht.decoder.write(G),ht.objectMode||G.length!==0?t(D,ht,G,!1):o(D,ht)):t(D,ht,G,!1)}else X||(ht.reading=!1,o(D,ht));return!ht.ended&&(ht.length<ht.highWaterMark||ht.length===0)}function t(D,G,z,X){G.flowing&&G.length===0&&!G.sync?(G.awaitDrain=0,D.emit("data",z)):(G.length+=G.objectMode?1:z.length,X?G.buffer.unshift(z):G.buffer.push(z),G.needReadable&&i(D)),o(D,G)}Object.defineProperty(Q.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(D){this._readableState&&(this._readableState.destroyed=D)}}),Q.prototype.destroy=w.destroy,Q.prototype._undestroy=w.undestroy,Q.prototype._destroy=function(D,G){G(D)},Q.prototype.push=function(D,G){var z,X=this._readableState;return X.objectMode?z=!0:typeof D=="string"&&((G=G||X.defaultEncoding)!==X.encoding&&(D=p.from(D,G),G=""),z=!0),ot(this,D,G,!1,z)},Q.prototype.unshift=function(D){return ot(this,D,null,!0,!1)},Q.prototype.isPaused=function(){return this._readableState.flowing===!1},Q.prototype.setEncoding=function(D){f||(f=y(2553).s);var G=new f(D);this._readableState.decoder=G,this._readableState.encoding=this._readableState.decoder.encoding;for(var z=this._readableState.buffer.head,X="";z!==null;)X+=G.write(z.data),z=z.next;return this._readableState.buffer.clear(),X!==""&&this._readableState.buffer.push(X),this._readableState.length=X.length,this};var n=1073741824;function r(D,G){return D<=0||G.length===0&&G.ended?0:G.objectMode?1:D!=D?G.flowing&&G.length?G.buffer.head.data.length:G.length:(D>G.highWaterMark&&(G.highWaterMark=function(z){return z>=n?z=n:(z--,z|=z>>>1,z|=z>>>2,z|=z>>>4,z|=z>>>8,z|=z>>>16,z++),z}(D)),D<=G.length?D:G.ended?G.length:(G.needReadable=!0,0))}function i(D){var G=D._readableState;m("emitReadable",G.needReadable,G.emittedReadable),G.needReadable=!1,G.emittedReadable||(m("emitReadable",G.flowing),G.emittedReadable=!0,v.nextTick(e,D))}function e(D){var G=D._readableState;m("emitReadable_",G.destroyed,G.length,G.ended),G.destroyed||!G.length&&!G.ended||(D.emit("readable"),G.emittedReadable=!1),G.needReadable=!G.flowing&&!G.ended&&G.length<=G.highWaterMark,T(D)}function o(D,G){G.readingMore||(G.readingMore=!0,v.nextTick(s,D,G))}function s(D,G){for(;!G.reading&&!G.ended&&(G.length<G.highWaterMark||G.flowing&&G.length===0);){var z=G.length;if(m("maybeReadMore read 0"),D.read(0),z===G.length)break}G.readingMore=!1}function A(D){var G=D._readableState;G.readableListening=D.listenerCount("readable")>0,G.resumeScheduled&&!G.paused?G.flowing=!0:D.listenerCount("data")>0&&D.resume()}function C(D){m("readable nexttick read 0"),D.read(0)}function j(D,G){m("resume",G.reading),G.reading||D.read(0),G.resumeScheduled=!1,D.emit("resume"),T(D),G.flowing&&!G.reading&&D.read(0)}function T(D){var G=D._readableState;for(m("flow",G.flowing);G.flowing&&D.read()!==null;);}function R(D,G){return G.length===0?null:(G.objectMode?z=G.buffer.shift():!D||D>=G.length?(z=G.decoder?G.buffer.join(""):G.buffer.length===1?G.buffer.first():G.buffer.concat(G.length),G.buffer.clear()):z=G.buffer.consume(D,G.decoder),z);var z}function q(D){var G=D._readableState;m("endReadable",G.endEmitted),G.endEmitted||(G.ended=!0,v.nextTick(Z,G,D))}function Z(D,G){if(m("endReadableNT",D.endEmitted,D.length),!D.endEmitted&&D.length===0&&(D.endEmitted=!0,G.readable=!1,G.emit("end"),D.autoDestroy)){var z=G._writableState;(!z||z.autoDestroy&&z.finished)&&G.destroy()}}function rt(D,G){for(var z=0,X=D.length;z<X;z++)if(D[z]===G)return z;return-1}Q.prototype.read=function(D){m("read",D),D=parseInt(D,10);var G=this._readableState,z=D;if(D!==0&&(G.emittedReadable=!1),D===0&&G.needReadable&&((G.highWaterMark!==0?G.length>=G.highWaterMark:G.length>0)||G.ended))return m("read: emitReadable",G.length,G.ended),G.length===0&&G.ended?q(this):i(this),null;if((D=r(D,G))===0&&G.ended)return G.length===0&&q(this),null;var X,st=G.needReadable;return m("need readable",st),(G.length===0||G.length-D<G.highWaterMark)&&m("length less than watermark",st=!0),G.ended||G.reading?m("reading or ended",st=!1):st&&(m("do read"),G.reading=!0,G.sync=!0,G.length===0&&(G.needReadable=!0),this._read(G.highWaterMark),G.sync=!1,G.reading||(D=r(z,G))),(X=D>0?R(D,G):null)===null?(G.needReadable=G.length<=G.highWaterMark,D=0):(G.length-=D,G.awaitDrain=0),G.length===0&&(G.ended||(G.needReadable=!0),z!==D&&G.ended&&q(this)),X!==null&&this.emit("data",X),X},Q.prototype._read=function(D){N(this,new B("_read()"))},Q.prototype.pipe=function(D,G){var z=this,X=this._readableState;switch(X.pipesCount){case 0:X.pipes=D;break;case 1:X.pipes=[X.pipes,D];break;default:X.pipes.push(D)}X.pipesCount+=1,m("pipe count=%d opts=%j",X.pipesCount,G);var st=G&&G.end===!1||D===v.stdout||D===v.stderr?It:nt;function nt(){m("onend"),D.end()}X.endEmitted?v.nextTick(st):z.once("end",st),D.on("unpipe",function J(tt,F){m("onunpipe"),tt===z&&F&&F.hasUnpiped===!1&&(F.hasUnpiped=!0,m("cleanup"),D.removeListener("close",Bt),D.removeListener("finish",Mt),D.removeListener("drain",ht),D.removeListener("error",bt),D.removeListener("unpipe",J),z.removeListener("end",nt),z.removeListener("end",It),z.removeListener("data",gt),Et=!0,!X.awaitDrain||D._writableState&&!D._writableState.needDrain||ht())});var ht=function(J){return function(){var tt=J._readableState;m("pipeOnDrain",tt.awaitDrain),tt.awaitDrain&&tt.awaitDrain--,tt.awaitDrain===0&&S(J,"data")&&(tt.flowing=!0,T(J))}}(z);D.on("drain",ht);var Et=!1;function gt(J){m("ondata");var tt=D.write(J);m("dest.write",tt),tt===!1&&((X.pipesCount===1&&X.pipes===D||X.pipesCount>1&&rt(X.pipes,D)!==-1)&&!Et&&(m("false write response, pause",X.awaitDrain),X.awaitDrain++),z.pause())}function bt(J){m("onerror",J),It(),D.removeListener("error",bt),S(D,"error")===0&&N(D,J)}function Bt(){D.removeListener("finish",Mt),It()}function Mt(){m("onfinish"),D.removeListener("close",Bt),It()}function It(){m("unpipe"),z.unpipe(D)}return z.on("data",gt),function(J,tt,F){if(typeof J.prependListener=="function")return J.prependListener(tt,F);J._events&&J._events[tt]?Array.isArray(J._events[tt])?J._events[tt].unshift(F):J._events[tt]=[F,J._events[tt]]:J.on(tt,F)}(D,"error",bt),D.once("close",Bt),D.once("finish",Mt),D.emit("pipe",z),X.flowing||(m("pipe resume"),z.resume()),D},Q.prototype.unpipe=function(D){var G=this._readableState,z={hasUnpiped:!1};if(G.pipesCount===0)return this;if(G.pipesCount===1)return D&&D!==G.pipes||(D||(D=G.pipes),G.pipes=null,G.pipesCount=0,G.flowing=!1,D&&D.emit("unpipe",this,z)),this;if(!D){var X=G.pipes,st=G.pipesCount;G.pipes=null,G.pipesCount=0,G.flowing=!1;for(var nt=0;nt<st;nt++)X[nt].emit("unpipe",this,{hasUnpiped:!1});return this}var ht=rt(G.pipes,D);return ht===-1||(G.pipes.splice(ht,1),G.pipesCount-=1,G.pipesCount===1&&(G.pipes=G.pipes[0]),D.emit("unpipe",this,z)),this},Q.prototype.on=function(D,G){var z=a.prototype.on.call(this,D,G),X=this._readableState;return D==="data"?(X.readableListening=this.listenerCount("readable")>0,X.flowing!==!1&&this.resume()):D==="readable"&&(X.endEmitted||X.readableListening||(X.readableListening=X.needReadable=!0,X.flowing=!1,X.emittedReadable=!1,m("on readable",X.length,X.reading),X.length?i(this):X.reading||v.nextTick(C,this))),z},Q.prototype.addListener=Q.prototype.on,Q.prototype.removeListener=function(D,G){var z=a.prototype.removeListener.call(this,D,G);return D==="readable"&&v.nextTick(A,this),z},Q.prototype.removeAllListeners=function(D){var G=a.prototype.removeAllListeners.apply(this,arguments);return D!=="readable"&&D!==void 0||v.nextTick(A,this),G},Q.prototype.resume=function(){var D=this._readableState;return D.flowing||(m("resume"),D.flowing=!D.readableListening,function(G,z){z.resumeScheduled||(z.resumeScheduled=!0,v.nextTick(j,G,z))}(this,D)),D.paused=!1,this},Q.prototype.pause=function(){return m("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(m("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},Q.prototype.wrap=function(D){var G=this,z=this._readableState,X=!1;for(var st in D.on("end",function(){if(m("wrapped end"),z.decoder&&!z.ended){var ht=z.decoder.end();ht&&ht.length&&G.push(ht)}G.push(null)}),D.on("data",function(ht){m("wrapped data"),z.decoder&&(ht=z.decoder.write(ht)),z.objectMode&&ht==null||(z.objectMode||ht&&ht.length)&&(G.push(ht)||(X=!0,D.pause()))}),D)this[st]===void 0&&typeof D[st]=="function"&&(this[st]=function(ht){return function(){return D[ht].apply(D,arguments)}}(st));for(var nt=0;nt<$.length;nt++)D.on($[nt],this.emit.bind(this,$[nt]));return this._read=function(ht){m("wrapped _read",ht),X&&(X=!1,D.resume())},this},typeof Symbol=="function"&&(Q.prototype[Symbol.asyncIterator]=function(){return g===void 0&&(g=y(5850)),g(this)}),Object.defineProperty(Q.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(Q.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(Q.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(D){this._readableState&&(this._readableState.flowing=D)}}),Q._fromList=R,Object.defineProperty(Q.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol=="function"&&(Q.from=function(D,G){return h===void 0&&(h=y(5167)),h(Q,D,G)})},4605:(W,_,y)=>{W.exports=l;var x=y(4281).q,v=x.ERR_METHOD_NOT_IMPLEMENTED,m=x.ERR_MULTIPLE_CALLBACK,S=x.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=x.ERR_TRANSFORM_WITH_LENGTH_0,p=y(6753);function c(h,u){var w=this._transformState;w.transforming=!1;var b=w.writecb;if(b===null)return this.emit("error",new m);w.writechunk=null,w.writecb=null,u!=null&&this.push(u),b(h);var E=this._readableState;E.reading=!1,(E.needReadable||E.length<E.highWaterMark)&&this._read(E.highWaterMark)}function l(h){if(!(this instanceof l))return new l(h);p.call(this,h),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,h&&(typeof h.transform=="function"&&(this._transform=h.transform),typeof h.flush=="function"&&(this._flush=h.flush)),this.on("prefinish",f)}function f(){var h=this;typeof this._flush!="function"||this._readableState.destroyed?g(this,null,null):this._flush(function(u,w){g(h,u,w)})}function g(h,u,w){if(u)return h.emit("error",u);if(w!=null&&h.push(w),h._writableState.length)throw new a;if(h._transformState.transforming)throw new S;return h.push(null)}y(5717)(l,p),l.prototype.push=function(h,u){return this._transformState.needTransform=!1,p.prototype.push.call(this,h,u)},l.prototype._transform=function(h,u,w){w(new v("_transform()"))},l.prototype._write=function(h,u,w){var b=this._transformState;if(b.writecb=w,b.writechunk=h,b.writeencoding=u,!b.transforming){var E=this._readableState;(b.needTransform||E.needReadable||E.length<E.highWaterMark)&&this._read(E.highWaterMark)}},l.prototype._read=function(h){var u=this._transformState;u.writechunk===null||u.transforming?u.needTransform=!0:(u.transforming=!0,this._transform(u.writechunk,u.writeencoding,u.afterTransform))},l.prototype._destroy=function(h,u){p.prototype._destroy.call(this,h,function(w){u(w)})}},4229:(W,_,y)=>{var x,v=y(4155);function m(o){var s=this;this.next=null,this.entry=null,this.finish=function(){(function(A,C,j){var T=A.entry;for(A.entry=null;T;){var R=T.callback;C.pendingcb--,R(void 0),T=T.next}C.corkedRequestsFree.next=A})(s,o)}}W.exports=Q,Q.WritableState=et;var S,a={deprecate:y(4927)},p=y(2503),c=y(8764).Buffer,l=y.g.Uint8Array||function(){},f=y(1195),g=y(2457).getHighWaterMark,h=y(4281).q,u=h.ERR_INVALID_ARG_TYPE,w=h.ERR_METHOD_NOT_IMPLEMENTED,b=h.ERR_MULTIPLE_CALLBACK,E=h.ERR_STREAM_CANNOT_PIPE,I=h.ERR_STREAM_DESTROYED,M=h.ERR_STREAM_NULL_VALUES,B=h.ERR_STREAM_WRITE_AFTER_END,P=h.ERR_UNKNOWN_ENCODING,N=f.errorOrDestroy;function $(){}function et(o,s,A){x=x||y(6753),o=o||{},typeof A!="boolean"&&(A=s instanceof x),this.objectMode=!!o.objectMode,A&&(this.objectMode=this.objectMode||!!o.writableObjectMode),this.highWaterMark=g(this,o,"writableHighWaterMark",A),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var C=o.decodeStrings===!1;this.decodeStrings=!C,this.defaultEncoding=o.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(j){(function(T,R){var q=T._writableState,Z=q.sync,rt=q.writecb;if(typeof rt!="function")throw new b;if(function(G){G.writing=!1,G.writecb=null,G.length-=G.writelen,G.writelen=0}(q),R)(function(G,z,X,st,nt){--z.pendingcb,X?(v.nextTick(nt,st),v.nextTick(e,G,z),G._writableState.errorEmitted=!0,N(G,st)):(nt(st),G._writableState.errorEmitted=!0,N(G,st),e(G,z))})(T,q,Z,R,rt);else{var D=r(q)||T.destroyed;D||q.corked||q.bufferProcessing||!q.bufferedRequest||n(T,q),Z?v.nextTick(t,T,q,D,rt):t(T,q,D,rt)}})(s,j)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=o.emitClose!==!1,this.autoDestroy=!!o.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new m(this)}function Q(o){var s=this instanceof(x=x||y(6753));if(!s&&!S.call(Q,this))return new Q(o);this._writableState=new et(o,this,s),this.writable=!0,o&&(typeof o.write=="function"&&(this._write=o.write),typeof o.writev=="function"&&(this._writev=o.writev),typeof o.destroy=="function"&&(this._destroy=o.destroy),typeof o.final=="function"&&(this._final=o.final)),p.call(this)}function ot(o,s,A,C,j,T,R){s.writelen=C,s.writecb=R,s.writing=!0,s.sync=!0,s.destroyed?s.onwrite(new I("write")):A?o._writev(j,s.onwrite):o._write(j,T,s.onwrite),s.sync=!1}function t(o,s,A,C){A||function(j,T){T.length===0&&T.needDrain&&(T.needDrain=!1,j.emit("drain"))}(o,s),s.pendingcb--,C(),e(o,s)}function n(o,s){s.bufferProcessing=!0;var A=s.bufferedRequest;if(o._writev&&A&&A.next){var C=s.bufferedRequestCount,j=new Array(C),T=s.corkedRequestsFree;T.entry=A;for(var R=0,q=!0;A;)j[R]=A,A.isBuf||(q=!1),A=A.next,R+=1;j.allBuffers=q,ot(o,s,!0,s.length,j,"",T.finish),s.pendingcb++,s.lastBufferedRequest=null,T.next?(s.corkedRequestsFree=T.next,T.next=null):s.corkedRequestsFree=new m(s),s.bufferedRequestCount=0}else{for(;A;){var Z=A.chunk,rt=A.encoding,D=A.callback;if(ot(o,s,!1,s.objectMode?1:Z.length,Z,rt,D),A=A.next,s.bufferedRequestCount--,s.writing)break}A===null&&(s.lastBufferedRequest=null)}s.bufferedRequest=A,s.bufferProcessing=!1}function r(o){return o.ending&&o.length===0&&o.bufferedRequest===null&&!o.finished&&!o.writing}function i(o,s){o._final(function(A){s.pendingcb--,A&&N(o,A),s.prefinished=!0,o.emit("prefinish"),e(o,s)})}function e(o,s){var A=r(s);if(A&&(function(j,T){T.prefinished||T.finalCalled||(typeof j._final!="function"||T.destroyed?(T.prefinished=!0,j.emit("prefinish")):(T.pendingcb++,T.finalCalled=!0,v.nextTick(i,j,T)))}(o,s),s.pendingcb===0&&(s.finished=!0,o.emit("finish"),s.autoDestroy))){var C=o._readableState;(!C||C.autoDestroy&&C.endEmitted)&&o.destroy()}return A}y(5717)(Q,p),et.prototype.getBuffer=function(){for(var o=this.bufferedRequest,s=[];o;)s.push(o),o=o.next;return s},function(){try{Object.defineProperty(et.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(S=Function.prototype[Symbol.hasInstance],Object.defineProperty(Q,Symbol.hasInstance,{value:function(o){return!!S.call(this,o)||this===Q&&o&&o._writableState instanceof et}})):S=function(o){return o instanceof this},Q.prototype.pipe=function(){N(this,new E)},Q.prototype.write=function(o,s,A){var C,j=this._writableState,T=!1,R=!j.objectMode&&(C=o,c.isBuffer(C)||C instanceof l);return R&&!c.isBuffer(o)&&(o=function(q){return c.from(q)}(o)),typeof s=="function"&&(A=s,s=null),R?s="buffer":s||(s=j.defaultEncoding),typeof A!="function"&&(A=$),j.ending?function(q,Z){var rt=new B;N(q,rt),v.nextTick(Z,rt)}(this,A):(R||function(q,Z,rt,D){var G;return rt===null?G=new M:typeof rt=="string"||Z.objectMode||(G=new u("chunk",["string","Buffer"],rt)),!G||(N(q,G),v.nextTick(D,G),!1)}(this,j,o,A))&&(j.pendingcb++,T=function(q,Z,rt,D,G,z){if(!rt){var X=function(Et,gt,bt){return Et.objectMode||Et.decodeStrings===!1||typeof gt!="string"||(gt=c.from(gt,bt)),gt}(Z,D,G);D!==X&&(rt=!0,G="buffer",D=X)}var st=Z.objectMode?1:D.length;Z.length+=st;var nt=Z.length<Z.highWaterMark;if(nt||(Z.needDrain=!0),Z.writing||Z.corked){var ht=Z.lastBufferedRequest;Z.lastBufferedRequest={chunk:D,encoding:G,isBuf:rt,callback:z,next:null},ht?ht.next=Z.lastBufferedRequest:Z.bufferedRequest=Z.lastBufferedRequest,Z.bufferedRequestCount+=1}else ot(q,Z,!1,st,D,G,z);return nt}(this,j,R,o,s,A)),T},Q.prototype.cork=function(){this._writableState.corked++},Q.prototype.uncork=function(){var o=this._writableState;o.corked&&(o.corked--,o.writing||o.corked||o.bufferProcessing||!o.bufferedRequest||n(this,o))},Q.prototype.setDefaultEncoding=function(o){if(typeof o=="string"&&(o=o.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((o+"").toLowerCase())>-1))throw new P(o);return this._writableState.defaultEncoding=o,this},Object.defineProperty(Q.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(Q.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Q.prototype._write=function(o,s,A){A(new w("_write()"))},Q.prototype._writev=null,Q.prototype.end=function(o,s,A){var C=this._writableState;return typeof o=="function"?(A=o,o=null,s=null):typeof s=="function"&&(A=s,s=null),o!=null&&this.write(o,s),C.corked&&(C.corked=1,this.uncork()),C.ending||function(j,T,R){T.ending=!0,e(j,T),R&&(T.finished?v.nextTick(R):j.once("finish",R)),T.ended=!0,j.writable=!1}(this,C,A),this},Object.defineProperty(Q.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(Q.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(o){this._writableState&&(this._writableState.destroyed=o)}}),Q.prototype.destroy=f.destroy,Q.prototype._undestroy=f.undestroy,Q.prototype._destroy=function(o,s){s(o)}},5850:(W,_,y)=>{var x,v=y(4155);function m(M,B,P){return B in M?Object.defineProperty(M,B,{value:P,enumerable:!0,configurable:!0,writable:!0}):M[B]=P,M}var S=y(8610),a=Symbol("lastResolve"),p=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),f=Symbol("lastPromise"),g=Symbol("handlePromise"),h=Symbol("stream");function u(M,B){return{value:M,done:B}}function w(M){var B=M[a];if(B!==null){var P=M[h].read();P!==null&&(M[f]=null,M[a]=null,M[p]=null,B(u(P,!1)))}}function b(M){v.nextTick(w,M)}var E=Object.getPrototypeOf(function(){}),I=Object.setPrototypeOf((m(x={get stream(){return this[h]},next:function(){var M=this,B=this[c];if(B!==null)return Promise.reject(B);if(this[l])return Promise.resolve(u(void 0,!0));if(this[h].destroyed)return new Promise(function(et,Q){v.nextTick(function(){M[c]?Q(M[c]):et(u(void 0,!0))})});var P,N=this[f];if(N)P=new Promise(function(et,Q){return function(ot,t){et.then(function(){Q[l]?ot(u(void 0,!0)):Q[g](ot,t)},t)}}(N,this));else{var $=this[h].read();if($!==null)return Promise.resolve(u($,!1));P=new Promise(this[g])}return this[f]=P,P}},Symbol.asyncIterator,function(){return this}),m(x,"return",function(){var M=this;return new Promise(function(B,P){M[h].destroy(null,function(N){N?P(N):B(u(void 0,!0))})})}),x),E);W.exports=function(M){var B,P=Object.create(I,(m(B={},h,{value:M,writable:!0}),m(B,a,{value:null,writable:!0}),m(B,p,{value:null,writable:!0}),m(B,c,{value:null,writable:!0}),m(B,l,{value:M._readableState.endEmitted,writable:!0}),m(B,g,{value:function(N,$){var et=P[h].read();et?(P[f]=null,P[a]=null,P[p]=null,N(u(et,!1))):(P[a]=N,P[p]=$)},writable:!0}),B));return P[f]=null,S(M,function(N){if(N&&N.code!=="ERR_STREAM_PREMATURE_CLOSE"){var $=P[p];return $!==null&&(P[f]=null,P[a]=null,P[p]=null,$(N)),void(P[c]=N)}var et=P[a];et!==null&&(P[f]=null,P[a]=null,P[p]=null,et(u(void 0,!0))),P[l]=!0}),M.on("readable",b.bind(null,P)),P}},7327:(W,_,y)=>{function x(c,l){var f=Object.keys(c);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(c);l&&(g=g.filter(function(h){return Object.getOwnPropertyDescriptor(c,h).enumerable})),f.push.apply(f,g)}return f}function v(c,l,f){return l in c?Object.defineProperty(c,l,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[l]=f,c}function m(c,l){for(var f=0;f<l.length;f++){var g=l[f];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(c,g.key,g)}}var S=y(8764).Buffer,a=y(2361).inspect,p=a&&a.custom||"inspect";W.exports=function(){function c(){(function(g,h){if(!(g instanceof h))throw new TypeError("Cannot call a class as a function")})(this,c),this.head=null,this.tail=null,this.length=0}var l,f;return l=c,f=[{key:"push",value:function(g){var h={data:g,next:null};this.length>0?this.tail.next=h:this.head=h,this.tail=h,++this.length}},{key:"unshift",value:function(g){var h={data:g,next:this.head};this.length===0&&(this.tail=h),this.head=h,++this.length}},{key:"shift",value:function(){if(this.length!==0){var g=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,g}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(g){if(this.length===0)return"";for(var h=this.head,u=""+h.data;h=h.next;)u+=g+h.data;return u}},{key:"concat",value:function(g){if(this.length===0)return S.alloc(0);for(var h,u,w,b=S.allocUnsafe(g>>>0),E=this.head,I=0;E;)h=E.data,u=b,w=I,S.prototype.copy.call(h,u,w),I+=E.data.length,E=E.next;return b}},{key:"consume",value:function(g,h){var u;return g<this.head.data.length?(u=this.head.data.slice(0,g),this.head.data=this.head.data.slice(g)):u=g===this.head.data.length?this.shift():h?this._getString(g):this._getBuffer(g),u}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(g){var h=this.head,u=1,w=h.data;for(g-=w.length;h=h.next;){var b=h.data,E=g>b.length?b.length:g;if(E===b.length?w+=b:w+=b.slice(0,g),(g-=E)==0){E===b.length?(++u,h.next?this.head=h.next:this.head=this.tail=null):(this.head=h,h.data=b.slice(E));break}++u}return this.length-=u,w}},{key:"_getBuffer",value:function(g){var h=S.allocUnsafe(g),u=this.head,w=1;for(u.data.copy(h),g-=u.data.length;u=u.next;){var b=u.data,E=g>b.length?b.length:g;if(b.copy(h,h.length-g,0,E),(g-=E)==0){E===b.length?(++w,u.next?this.head=u.next:this.head=this.tail=null):(this.head=u,u.data=b.slice(E));break}++w}return this.length-=w,h}},{key:p,value:function(g,h){return a(this,function(u){for(var w=1;w<arguments.length;w++){var b=arguments[w]!=null?arguments[w]:{};w%2?x(Object(b),!0).forEach(function(E){v(u,E,b[E])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(b)):x(Object(b)).forEach(function(E){Object.defineProperty(u,E,Object.getOwnPropertyDescriptor(b,E))})}return u}({},h,{depth:0,customInspect:!1}))}}],f&&m(l.prototype,f),c}()},1195:(W,_,y)=>{var x=y(4155);function v(a,p){S(a,p),m(a)}function m(a){a._writableState&&!a._writableState.emitClose||a._readableState&&!a._readableState.emitClose||a.emit("close")}function S(a,p){a.emit("error",p)}W.exports={destroy:function(a,p){var c=this,l=this._readableState&&this._readableState.destroyed,f=this._writableState&&this._writableState.destroyed;return l||f?(p?p(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,x.nextTick(S,this,a)):x.nextTick(S,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(g){!p&&g?c._writableState?c._writableState.errorEmitted?x.nextTick(m,c):(c._writableState.errorEmitted=!0,x.nextTick(v,c,g)):x.nextTick(v,c,g):p?(x.nextTick(m,c),p(g)):x.nextTick(m,c)}),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(a,p){var c=a._readableState,l=a._writableState;c&&c.autoDestroy||l&&l.autoDestroy?a.destroy(p):a.emit("error",p)}}},8610:(W,_,y)=>{var x=y(4281).q.ERR_STREAM_PREMATURE_CLOSE;function v(){}W.exports=function m(S,a,p){if(typeof a=="function")return m(S,null,a);a||(a={}),p=function(M){var B=!1;return function(){if(!B){B=!0;for(var P=arguments.length,N=new Array(P),$=0;$<P;$++)N[$]=arguments[$];M.apply(this,N)}}}(p||v);var c=a.readable||a.readable!==!1&&S.readable,l=a.writable||a.writable!==!1&&S.writable,f=function(){S.writable||h()},g=S._writableState&&S._writableState.finished,h=function(){l=!1,g=!0,c||p.call(S)},u=S._readableState&&S._readableState.endEmitted,w=function(){c=!1,u=!0,l||p.call(S)},b=function(M){p.call(S,M)},E=function(){var M;return c&&!u?(S._readableState&&S._readableState.ended||(M=new x),p.call(S,M)):l&&!g?(S._writableState&&S._writableState.ended||(M=new x),p.call(S,M)):void 0},I=function(){S.req.on("finish",h)};return function(M){return M.setHeader&&typeof M.abort=="function"}(S)?(S.on("complete",h),S.on("abort",E),S.req?I():S.on("request",I)):l&&!S._writableState&&(S.on("end",f),S.on("close",f)),S.on("end",w),S.on("finish",h),a.error!==!1&&S.on("error",b),S.on("close",E),function(){S.removeListener("complete",h),S.removeListener("abort",E),S.removeListener("request",I),S.req&&S.req.removeListener("finish",h),S.removeListener("end",f),S.removeListener("close",f),S.removeListener("finish",h),S.removeListener("end",w),S.removeListener("error",b),S.removeListener("close",E)}}},5167:W=>{W.exports=function(){throw new Error("Readable.from is not available in the browser")}},9946:(W,_,y)=>{var x,v=y(4281).q,m=v.ERR_MISSING_ARGS,S=v.ERR_STREAM_DESTROYED;function a(l){if(l)throw l}function p(l){l()}function c(l,f){return l.pipe(f)}W.exports=function(){for(var l=arguments.length,f=new Array(l),g=0;g<l;g++)f[g]=arguments[g];var h,u=function(b){return b.length?typeof b[b.length-1]!="function"?a:b.pop():a}(f);if(Array.isArray(f[0])&&(f=f[0]),f.length<2)throw new m("streams");var w=f.map(function(b,E){var I=E<f.length-1;return function(M,B,P,N){N=function(Q){var ot=!1;return function(){ot||(ot=!0,Q.apply(void 0,arguments))}}(N);var $=!1;M.on("close",function(){$=!0}),x===void 0&&(x=y(8610)),x(M,{readable:B,writable:P},function(Q){if(Q)return N(Q);$=!0,N()});var et=!1;return function(Q){if(!$&&!et)return et=!0,function(ot){return ot.setHeader&&typeof ot.abort=="function"}(M)?M.abort():typeof M.destroy=="function"?M.destroy():void N(Q||new S("pipe"))}}(b,I,E>0,function(M){h||(h=M),M&&w.forEach(p),I||(w.forEach(p),u(h))})});return f.reduce(c)}},2457:(W,_,y)=>{var x=y(4281).q.ERR_INVALID_OPT_VALUE;W.exports={getHighWaterMark:function(v,m,S,a){var p=function(c,l,f){return c.highWaterMark!=null?c.highWaterMark:l?c[f]:null}(m,a,S);if(p!=null){if(!isFinite(p)||Math.floor(p)!==p||p<0)throw new x(a?S:"highWaterMark",p);return Math.floor(p)}return v.objectMode?16:16384}}},2503:(W,_,y)=>{W.exports=y(7187).EventEmitter},8473:(W,_,y)=>{(_=W.exports=y(9481)).Stream=_,_.Readable=_,_.Writable=y(4229),_.Duplex=y(6753),_.Transform=y(4605),_.PassThrough=y(2725),_.finished=y(8610),_.pipeline=y(9946)},9785:(W,_,y)=>{var x=y(8764).Buffer,v=y(5717),m=y(3349),S=new Array(16),a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],p=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],c=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],l=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],f=[0,1518500249,1859775393,2400959708,2840853838],g=[1352829926,1548603684,1836072691,2053994217,0];function h(){m.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function u(B,P){return B<<P|B>>>32-P}function w(B,P,N,$,et,Q,ot,t){return u(B+(P^N^$)+Q+ot|0,t)+et|0}function b(B,P,N,$,et,Q,ot,t){return u(B+(P&N|~P&$)+Q+ot|0,t)+et|0}function E(B,P,N,$,et,Q,ot,t){return u(B+((P|~N)^$)+Q+ot|0,t)+et|0}function I(B,P,N,$,et,Q,ot,t){return u(B+(P&$|N&~$)+Q+ot|0,t)+et|0}function M(B,P,N,$,et,Q,ot,t){return u(B+(P^(N|~$))+Q+ot|0,t)+et|0}v(h,m),h.prototype._update=function(){for(var B=S,P=0;P<16;++P)B[P]=this._block.readInt32LE(4*P);for(var N=0|this._a,$=0|this._b,et=0|this._c,Q=0|this._d,ot=0|this._e,t=0|this._a,n=0|this._b,r=0|this._c,i=0|this._d,e=0|this._e,o=0;o<80;o+=1){var s,A;o<16?(s=w(N,$,et,Q,ot,B[a[o]],f[0],c[o]),A=M(t,n,r,i,e,B[p[o]],g[0],l[o])):o<32?(s=b(N,$,et,Q,ot,B[a[o]],f[1],c[o]),A=I(t,n,r,i,e,B[p[o]],g[1],l[o])):o<48?(s=E(N,$,et,Q,ot,B[a[o]],f[2],c[o]),A=E(t,n,r,i,e,B[p[o]],g[2],l[o])):o<64?(s=I(N,$,et,Q,ot,B[a[o]],f[3],c[o]),A=b(t,n,r,i,e,B[p[o]],g[3],l[o])):(s=M(N,$,et,Q,ot,B[a[o]],f[4],c[o]),A=w(t,n,r,i,e,B[p[o]],g[4],l[o])),N=ot,ot=Q,Q=u(et,10),et=$,$=s,t=e,e=i,i=u(r,10),r=n,n=A}var C=this._b+et+i|0;this._b=this._c+Q+e|0,this._c=this._d+ot+t|0,this._d=this._e+N+n|0,this._e=this._a+$+r|0,this._a=C},h.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var B=x.alloc?x.alloc(20):new x(20);return B.writeInt32LE(this._a,0),B.writeInt32LE(this._b,4),B.writeInt32LE(this._c,8),B.writeInt32LE(this._d,12),B.writeInt32LE(this._e,16),B},W.exports=h},9509:(W,_,y)=>{var x=y(8764),v=x.Buffer;function m(a,p){for(var c in a)p[c]=a[c]}function S(a,p,c){return v(a,p,c)}v.from&&v.alloc&&v.allocUnsafe&&v.allocUnsafeSlow?W.exports=x:(m(x,_),_.Buffer=S),S.prototype=Object.create(v.prototype),m(v,S),S.from=function(a,p,c){if(typeof a=="number")throw new TypeError("Argument must not be a number");return v(a,p,c)},S.alloc=function(a,p,c){if(typeof a!="number")throw new TypeError("Argument must be a number");var l=v(a);return p!==void 0?typeof c=="string"?l.fill(p,c):l.fill(p):l.fill(0),l},S.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return v(a)},S.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return x.SlowBuffer(a)}},2399:(W,_,y)=>{var x,v=y(4155),m=y(8764),S=m.Buffer,a={};for(x in m)m.hasOwnProperty(x)&&x!=="SlowBuffer"&&x!=="Buffer"&&(a[x]=m[x]);var p=a.Buffer={};for(x in S)S.hasOwnProperty(x)&&x!=="allocUnsafe"&&x!=="allocUnsafeSlow"&&(p[x]=S[x]);if(a.Buffer.prototype=S.prototype,p.from&&p.from!==Uint8Array.from||(p.from=function(c,l,f){if(typeof c=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof c);if(c&&c.length===void 0)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof c);return S(c,l,f)}),p.alloc||(p.alloc=function(c,l,f){if(typeof c!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof c);if(c<0||c>=2147483648)throw new RangeError('The value "'+c+'" is invalid for option "size"');var g=S(c);return l&&l.length!==0?typeof f=="string"?g.fill(l,f):g.fill(l):g.fill(0),g}),!a.kStringMaxLength)try{a.kStringMaxLength=v.binding("buffer").kStringMaxLength}catch{}a.constants||(a.constants={MAX_LENGTH:a.kMaxLength},a.kStringMaxLength&&(a.constants.MAX_STRING_LENGTH=a.kStringMaxLength)),W.exports=a},6099:(W,_,y)=>{var x=y(8764).Buffer;(function(v){v.parser=function(z,X){return new a(z,X)},v.SAXParser=a,v.SAXStream=c,v.createStream=function(z,X){return new c(z,X)},v.MAX_BUFFER_LENGTH=65536;var m,S=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function a(z,X){if(!(this instanceof a))return new a(z,X);var st=this;(function(nt){for(var ht=0,Et=S.length;ht<Et;ht++)nt[S[ht]]=""})(st),st.q=st.c="",st.bufferCheckPosition=v.MAX_BUFFER_LENGTH,st.opt=X||{},st.opt.lowercase=st.opt.lowercase||st.opt.lowercasetags,st.looseCase=st.opt.lowercase?"toLowerCase":"toUpperCase",st.tags=[],st.closed=st.closedRoot=st.sawRoot=!1,st.tag=st.error=null,st.strict=!!z,st.noscript=!(!z&&!st.opt.noscript),st.state=t.BEGIN,st.strictEntities=st.opt.strictEntities,st.ENTITIES=st.strictEntities?Object.create(v.XML_ENTITIES):Object.create(v.ENTITIES),st.attribList=[],st.opt.xmlns&&(st.ns=Object.create(u)),st.trackPosition=st.opt.position!==!1,st.trackPosition&&(st.position=st.line=st.column=0),r(st,"onready")}v.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(z){function X(){}return X.prototype=z,new X}),Object.keys||(Object.keys=function(z){var X=[];for(var st in z)z.hasOwnProperty(st)&&X.push(st);return X}),a.prototype={end:function(){A(this)},write:function(z){var X=this;if(this.error)throw this.error;if(X.closed)return s(X,"Cannot write after close. Assign an onready handler.");if(z===null)return A(X);typeof z=="object"&&(z=z.toString());for(var st=0,nt="";nt=G(z,st++),X.c=nt,nt;)switch(X.trackPosition&&(X.position++,nt===`
|
|
107
|
+
`?(X.line++,X.column=0):X.column++),X.state){case t.BEGIN:if(X.state=t.BEGIN_WHITESPACE,nt==="\uFEFF")continue;D(X,nt);continue;case t.BEGIN_WHITESPACE:D(X,nt);continue;case t.TEXT:if(X.sawRoot&&!X.closedRoot){for(var ht=st-1;nt&&nt!=="<"&&nt!=="&";)(nt=G(z,st++))&&X.trackPosition&&(X.position++,nt===`
|
|
108
|
+
`?(X.line++,X.column=0):X.column++);X.textNode+=z.substring(ht,st-1)}nt!=="<"||X.sawRoot&&X.closedRoot&&!X.strict?(M(nt)||X.sawRoot&&!X.closedRoot||C(X,"Text data outside of root node."),nt==="&"?X.state=t.TEXT_ENTITY:X.textNode+=nt):(X.state=t.OPEN_WAKA,X.startTagPosition=X.position);continue;case t.SCRIPT:nt==="<"?X.state=t.SCRIPT_ENDING:X.script+=nt;continue;case t.SCRIPT_ENDING:nt==="/"?X.state=t.CLOSE_TAG:(X.script+="<"+nt,X.state=t.SCRIPT);continue;case t.OPEN_WAKA:if(nt==="!")X.state=t.SGML_DECL,X.sgmlDecl="";else if(!M(nt))if(N(w,nt))X.state=t.OPEN_TAG,X.tagName=nt;else if(nt==="/")X.state=t.CLOSE_TAG,X.tagName="";else if(nt==="?")X.state=t.PROC_INST,X.procInstName=X.procInstBody="";else{if(C(X,"Unencoded <"),X.startTagPosition+1<X.position){var Et=X.position-X.startTagPosition;nt=new Array(Et).join(" ")+nt}X.textNode+="<"+nt,X.state=t.TEXT}continue;case t.SGML_DECL:(X.sgmlDecl+nt).toUpperCase()===l?(i(X,"onopencdata"),X.state=t.CDATA,X.sgmlDecl="",X.cdata=""):X.sgmlDecl+nt==="--"?(X.state=t.COMMENT,X.comment="",X.sgmlDecl=""):(X.sgmlDecl+nt).toUpperCase()===f?(X.state=t.DOCTYPE,(X.doctype||X.sawRoot)&&C(X,"Inappropriately located doctype declaration"),X.doctype="",X.sgmlDecl=""):nt===">"?(i(X,"onsgmldeclaration",X.sgmlDecl),X.sgmlDecl="",X.state=t.TEXT):(B(nt)&&(X.state=t.SGML_DECL_QUOTED),X.sgmlDecl+=nt);continue;case t.SGML_DECL_QUOTED:nt===X.q&&(X.state=t.SGML_DECL,X.q=""),X.sgmlDecl+=nt;continue;case t.DOCTYPE:nt===">"?(X.state=t.TEXT,i(X,"ondoctype",X.doctype),X.doctype=!0):(X.doctype+=nt,nt==="["?X.state=t.DOCTYPE_DTD:B(nt)&&(X.state=t.DOCTYPE_QUOTED,X.q=nt));continue;case t.DOCTYPE_QUOTED:X.doctype+=nt,nt===X.q&&(X.q="",X.state=t.DOCTYPE);continue;case t.DOCTYPE_DTD:X.doctype+=nt,nt==="]"?X.state=t.DOCTYPE:B(nt)&&(X.state=t.DOCTYPE_DTD_QUOTED,X.q=nt);continue;case t.DOCTYPE_DTD_QUOTED:X.doctype+=nt,nt===X.q&&(X.state=t.DOCTYPE_DTD,X.q="");continue;case t.COMMENT:nt==="-"?X.state=t.COMMENT_ENDING:X.comment+=nt;continue;case t.COMMENT_ENDING:nt==="-"?(X.state=t.COMMENT_ENDED,X.comment=o(X.opt,X.comment),X.comment&&i(X,"oncomment",X.comment),X.comment=""):(X.comment+="-"+nt,X.state=t.COMMENT);continue;case t.COMMENT_ENDED:nt!==">"?(C(X,"Malformed comment"),X.comment+="--"+nt,X.state=t.COMMENT):X.state=t.TEXT;continue;case t.CDATA:nt==="]"?X.state=t.CDATA_ENDING:X.cdata+=nt;continue;case t.CDATA_ENDING:nt==="]"?X.state=t.CDATA_ENDING_2:(X.cdata+="]"+nt,X.state=t.CDATA);continue;case t.CDATA_ENDING_2:nt===">"?(X.cdata&&i(X,"oncdata",X.cdata),i(X,"onclosecdata"),X.cdata="",X.state=t.TEXT):nt==="]"?X.cdata+="]":(X.cdata+="]]"+nt,X.state=t.CDATA);continue;case t.PROC_INST:nt==="?"?X.state=t.PROC_INST_ENDING:M(nt)?X.state=t.PROC_INST_BODY:X.procInstName+=nt;continue;case t.PROC_INST_BODY:if(!X.procInstBody&&M(nt))continue;nt==="?"?X.state=t.PROC_INST_ENDING:X.procInstBody+=nt;continue;case t.PROC_INST_ENDING:nt===">"?(i(X,"onprocessinginstruction",{name:X.procInstName,body:X.procInstBody}),X.procInstName=X.procInstBody="",X.state=t.TEXT):(X.procInstBody+="?"+nt,X.state=t.PROC_INST_BODY);continue;case t.OPEN_TAG:N(b,nt)?X.tagName+=nt:(j(X),nt===">"?q(X):nt==="/"?X.state=t.OPEN_TAG_SLASH:(M(nt)||C(X,"Invalid character in tag name"),X.state=t.ATTRIB));continue;case t.OPEN_TAG_SLASH:nt===">"?(q(X,!0),Z(X)):(C(X,"Forward-slash in opening tag not followed by >"),X.state=t.ATTRIB);continue;case t.ATTRIB:if(M(nt))continue;nt===">"?q(X):nt==="/"?X.state=t.OPEN_TAG_SLASH:N(w,nt)?(X.attribName=nt,X.attribValue="",X.state=t.ATTRIB_NAME):C(X,"Invalid attribute name");continue;case t.ATTRIB_NAME:nt==="="?X.state=t.ATTRIB_VALUE:nt===">"?(C(X,"Attribute without value"),X.attribValue=X.attribName,R(X),q(X)):M(nt)?X.state=t.ATTRIB_NAME_SAW_WHITE:N(b,nt)?X.attribName+=nt:C(X,"Invalid attribute name");continue;case t.ATTRIB_NAME_SAW_WHITE:if(nt==="=")X.state=t.ATTRIB_VALUE;else{if(M(nt))continue;C(X,"Attribute without value"),X.tag.attributes[X.attribName]="",X.attribValue="",i(X,"onattribute",{name:X.attribName,value:""}),X.attribName="",nt===">"?q(X):N(w,nt)?(X.attribName=nt,X.state=t.ATTRIB_NAME):(C(X,"Invalid attribute name"),X.state=t.ATTRIB)}continue;case t.ATTRIB_VALUE:if(M(nt))continue;B(nt)?(X.q=nt,X.state=t.ATTRIB_VALUE_QUOTED):(C(X,"Unquoted attribute value"),X.state=t.ATTRIB_VALUE_UNQUOTED,X.attribValue=nt);continue;case t.ATTRIB_VALUE_QUOTED:if(nt!==X.q){nt==="&"?X.state=t.ATTRIB_VALUE_ENTITY_Q:X.attribValue+=nt;continue}R(X),X.q="",X.state=t.ATTRIB_VALUE_CLOSED;continue;case t.ATTRIB_VALUE_CLOSED:M(nt)?X.state=t.ATTRIB:nt===">"?q(X):nt==="/"?X.state=t.OPEN_TAG_SLASH:N(w,nt)?(C(X,"No whitespace between attributes"),X.attribName=nt,X.attribValue="",X.state=t.ATTRIB_NAME):C(X,"Invalid attribute name");continue;case t.ATTRIB_VALUE_UNQUOTED:if(!P(nt)){nt==="&"?X.state=t.ATTRIB_VALUE_ENTITY_U:X.attribValue+=nt;continue}R(X),nt===">"?q(X):X.state=t.ATTRIB;continue;case t.CLOSE_TAG:if(X.tagName)nt===">"?Z(X):N(b,nt)?X.tagName+=nt:X.script?(X.script+="</"+X.tagName,X.tagName="",X.state=t.SCRIPT):(M(nt)||C(X,"Invalid tagname in closing tag"),X.state=t.CLOSE_TAG_SAW_WHITE);else{if(M(nt))continue;$(w,nt)?X.script?(X.script+="</"+nt,X.state=t.SCRIPT):C(X,"Invalid tagname in closing tag."):X.tagName=nt}continue;case t.CLOSE_TAG_SAW_WHITE:if(M(nt))continue;nt===">"?Z(X):C(X,"Invalid characters in closing tag");continue;case t.TEXT_ENTITY:case t.ATTRIB_VALUE_ENTITY_Q:case t.ATTRIB_VALUE_ENTITY_U:var gt,bt;switch(X.state){case t.TEXT_ENTITY:gt=t.TEXT,bt="textNode";break;case t.ATTRIB_VALUE_ENTITY_Q:gt=t.ATTRIB_VALUE_QUOTED,bt="attribValue";break;case t.ATTRIB_VALUE_ENTITY_U:gt=t.ATTRIB_VALUE_UNQUOTED,bt="attribValue"}nt===";"?(X[bt]+=rt(X),X.entity="",X.state=gt):N(X.entity.length?I:E,nt)?X.entity+=nt:(C(X,"Invalid character in entity name"),X[bt]+="&"+X.entity+nt,X.entity="",X.state=gt);continue;default:throw new Error(X,"Unknown state: "+X.state)}return X.position>=X.bufferCheckPosition&&function(Bt){for(var Mt=Math.max(v.MAX_BUFFER_LENGTH,10),It=0,J=0,tt=S.length;J<tt;J++){var F=Bt[S[J]].length;if(F>Mt)switch(S[J]){case"textNode":e(Bt);break;case"cdata":i(Bt,"oncdata",Bt.cdata),Bt.cdata="";break;case"script":i(Bt,"onscript",Bt.script),Bt.script="";break;default:s(Bt,"Max buffer length exceeded: "+S[J])}It=Math.max(It,F)}var H=v.MAX_BUFFER_LENGTH-It;Bt.bufferCheckPosition=H+Bt.position}(X),X},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){var z;e(z=this),z.cdata!==""&&(i(z,"oncdata",z.cdata),z.cdata=""),z.script!==""&&(i(z,"onscript",z.script),z.script="")}};try{m=y(2830).Stream}catch{m=function(){}}var p=v.EVENTS.filter(function(z){return z!=="error"&&z!=="end"});function c(z,X){if(!(this instanceof c))return new c(z,X);m.apply(this),this._parser=new a(z,X),this.writable=!0,this.readable=!0;var st=this;this._parser.onend=function(){st.emit("end")},this._parser.onerror=function(nt){st.emit("error",nt),st._parser.error=null},this._decoder=null,p.forEach(function(nt){Object.defineProperty(st,"on"+nt,{get:function(){return st._parser["on"+nt]},set:function(ht){if(!ht)return st.removeAllListeners(nt),st._parser["on"+nt]=ht,ht;st.on(nt,ht)},enumerable:!0,configurable:!1})})}c.prototype=Object.create(m.prototype,{constructor:{value:c}}),c.prototype.write=function(z){if(typeof x=="function"&&typeof x.isBuffer=="function"&&x.isBuffer(z)){if(!this._decoder){var X=y(2553).s;this._decoder=new X("utf8")}z=this._decoder.write(z)}return this._parser.write(z.toString()),this.emit("data",z),!0},c.prototype.end=function(z){return z&&z.length&&this.write(z),this._parser.end(),!0},c.prototype.on=function(z,X){var st=this;return st._parser["on"+z]||p.indexOf(z)===-1||(st._parser["on"+z]=function(){var nt=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);nt.splice(0,0,z),st.emit.apply(st,nt)}),m.prototype.on.call(st,z,X)};var l="[CDATA[",f="DOCTYPE",g="http://www.w3.org/XML/1998/namespace",h="http://www.w3.org/2000/xmlns/",u={xml:g,xmlns:h},w=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,b=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,E=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,I=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function M(z){return z===" "||z===`
|
|
109
|
+
`||z==="\r"||z===" "}function B(z){return z==='"'||z==="'"}function P(z){return z===">"||M(z)}function N(z,X){return z.test(X)}function $(z,X){return!N(z,X)}var et,Q,ot,t=0;for(var n in v.STATE={BEGIN:t++,BEGIN_WHITESPACE:t++,TEXT:t++,TEXT_ENTITY:t++,OPEN_WAKA:t++,SGML_DECL:t++,SGML_DECL_QUOTED:t++,DOCTYPE:t++,DOCTYPE_QUOTED:t++,DOCTYPE_DTD:t++,DOCTYPE_DTD_QUOTED:t++,COMMENT_STARTING:t++,COMMENT:t++,COMMENT_ENDING:t++,COMMENT_ENDED:t++,CDATA:t++,CDATA_ENDING:t++,CDATA_ENDING_2:t++,PROC_INST:t++,PROC_INST_BODY:t++,PROC_INST_ENDING:t++,OPEN_TAG:t++,OPEN_TAG_SLASH:t++,ATTRIB:t++,ATTRIB_NAME:t++,ATTRIB_NAME_SAW_WHITE:t++,ATTRIB_VALUE:t++,ATTRIB_VALUE_QUOTED:t++,ATTRIB_VALUE_CLOSED:t++,ATTRIB_VALUE_UNQUOTED:t++,ATTRIB_VALUE_ENTITY_Q:t++,ATTRIB_VALUE_ENTITY_U:t++,CLOSE_TAG:t++,CLOSE_TAG_SAW_WHITE:t++,SCRIPT:t++,SCRIPT_ENDING:t++},v.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},v.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(v.ENTITIES).forEach(function(z){var X=v.ENTITIES[z],st=typeof X=="number"?String.fromCharCode(X):X;v.ENTITIES[z]=st}),v.STATE)v.STATE[v.STATE[n]]=n;function r(z,X,st){z[X]&&z[X](st)}function i(z,X,st){z.textNode&&e(z),r(z,X,st)}function e(z){z.textNode=o(z.opt,z.textNode),z.textNode&&r(z,"ontext",z.textNode),z.textNode=""}function o(z,X){return z.trim&&(X=X.trim()),z.normalize&&(X=X.replace(/\s+/g," ")),X}function s(z,X){return e(z),z.trackPosition&&(X+=`
|
|
110
|
+
Line: `+z.line+`
|
|
111
|
+
Column: `+z.column+`
|
|
112
|
+
Char: `+z.c),X=new Error(X),z.error=X,r(z,"onerror",X),z}function A(z){return z.sawRoot&&!z.closedRoot&&C(z,"Unclosed root tag"),z.state!==t.BEGIN&&z.state!==t.BEGIN_WHITESPACE&&z.state!==t.TEXT&&s(z,"Unexpected end"),e(z),z.c="",z.closed=!0,r(z,"onend"),a.call(z,z.strict,z.opt),z}function C(z,X){if(typeof z!="object"||!(z instanceof a))throw new Error("bad call to strictFail");z.strict&&s(z,X)}function j(z){z.strict||(z.tagName=z.tagName[z.looseCase]());var X=z.tags[z.tags.length-1]||z,st=z.tag={name:z.tagName,attributes:{}};z.opt.xmlns&&(st.ns=X.ns),z.attribList.length=0,i(z,"onopentagstart",st)}function T(z,X){var st=z.indexOf(":")<0?["",z]:z.split(":"),nt=st[0],ht=st[1];return X&&z==="xmlns"&&(nt="xmlns",ht=""),{prefix:nt,local:ht}}function R(z){if(z.strict||(z.attribName=z.attribName[z.looseCase]()),z.attribList.indexOf(z.attribName)!==-1||z.tag.attributes.hasOwnProperty(z.attribName))z.attribName=z.attribValue="";else{if(z.opt.xmlns){var X=T(z.attribName,!0),st=X.prefix,nt=X.local;if(st==="xmlns")if(nt==="xml"&&z.attribValue!==g)C(z,"xml: prefix must be bound to "+g+`
|
|
113
|
+
Actual: `+z.attribValue);else if(nt==="xmlns"&&z.attribValue!==h)C(z,"xmlns: prefix must be bound to "+h+`
|
|
114
|
+
Actual: `+z.attribValue);else{var ht=z.tag,Et=z.tags[z.tags.length-1]||z;ht.ns===Et.ns&&(ht.ns=Object.create(Et.ns)),ht.ns[nt]=z.attribValue}z.attribList.push([z.attribName,z.attribValue])}else z.tag.attributes[z.attribName]=z.attribValue,i(z,"onattribute",{name:z.attribName,value:z.attribValue});z.attribName=z.attribValue=""}}function q(z,X){if(z.opt.xmlns){var st=z.tag,nt=T(z.tagName);st.prefix=nt.prefix,st.local=nt.local,st.uri=st.ns[nt.prefix]||"",st.prefix&&!st.uri&&(C(z,"Unbound namespace prefix: "+JSON.stringify(z.tagName)),st.uri=nt.prefix);var ht=z.tags[z.tags.length-1]||z;st.ns&&ht.ns!==st.ns&&Object.keys(st.ns).forEach(function(U){i(z,"onopennamespace",{prefix:U,uri:st.ns[U]})});for(var Et=0,gt=z.attribList.length;Et<gt;Et++){var bt=z.attribList[Et],Bt=bt[0],Mt=bt[1],It=T(Bt,!0),J=It.prefix,tt=It.local,F=J===""?"":st.ns[J]||"",H={name:Bt,value:Mt,prefix:J,local:tt,uri:F};J&&J!=="xmlns"&&!F&&(C(z,"Unbound namespace prefix: "+JSON.stringify(J)),H.uri=J),z.tag.attributes[Bt]=H,i(z,"onattribute",H)}z.attribList.length=0}z.tag.isSelfClosing=!!X,z.sawRoot=!0,z.tags.push(z.tag),i(z,"onopentag",z.tag),X||(z.noscript||z.tagName.toLowerCase()!=="script"?z.state=t.TEXT:z.state=t.SCRIPT,z.tag=null,z.tagName=""),z.attribName=z.attribValue="",z.attribList.length=0}function Z(z){if(!z.tagName)return C(z,"Weird empty close tag."),z.textNode+="</>",void(z.state=t.TEXT);if(z.script){if(z.tagName!=="script")return z.script+="</"+z.tagName+">",z.tagName="",void(z.state=t.SCRIPT);i(z,"onscript",z.script),z.script=""}var X=z.tags.length,st=z.tagName;z.strict||(st=st[z.looseCase]());for(var nt=st;X--&&z.tags[X].name!==nt;)C(z,"Unexpected close tag");if(X<0)return C(z,"Unmatched closing tag: "+z.tagName),z.textNode+="</"+z.tagName+">",void(z.state=t.TEXT);z.tagName=st;for(var ht=z.tags.length;ht-- >X;){var Et=z.tag=z.tags.pop();z.tagName=z.tag.name,i(z,"onclosetag",z.tagName);var gt={};for(var bt in Et.ns)gt[bt]=Et.ns[bt];var Bt=z.tags[z.tags.length-1]||z;z.opt.xmlns&&Et.ns!==Bt.ns&&Object.keys(Et.ns).forEach(function(Mt){var It=Et.ns[Mt];i(z,"onclosenamespace",{prefix:Mt,uri:It})})}X===0&&(z.closedRoot=!0),z.tagName=z.attribValue=z.attribName="",z.attribList.length=0,z.state=t.TEXT}function rt(z){var X,st=z.entity,nt=st.toLowerCase(),ht="";return z.ENTITIES[st]?z.ENTITIES[st]:z.ENTITIES[nt]?z.ENTITIES[nt]:((st=nt).charAt(0)==="#"&&(st.charAt(1)==="x"?(st=st.slice(2),ht=(X=parseInt(st,16)).toString(16)):(st=st.slice(1),ht=(X=parseInt(st,10)).toString(10))),st=st.replace(/^0+/,""),isNaN(X)||ht.toLowerCase()!==st?(C(z,"Invalid character entity"),"&"+z.entity+";"):String.fromCodePoint(X))}function D(z,X){X==="<"?(z.state=t.OPEN_WAKA,z.startTagPosition=z.position):M(X)||(C(z,"Non-whitespace before first tag."),z.textNode=X,z.state=t.TEXT)}function G(z,X){var st="";return X<z.length&&(st=z.charAt(X)),st}t=v.STATE,String.fromCodePoint||(et=String.fromCharCode,Q=Math.floor,ot=function(){var z,X,st=[],nt=-1,ht=arguments.length;if(!ht)return"";for(var Et="";++nt<ht;){var gt=Number(arguments[nt]);if(!isFinite(gt)||gt<0||gt>1114111||Q(gt)!==gt)throw RangeError("Invalid code point: "+gt);gt<=65535?st.push(gt):(z=55296+((gt-=65536)>>10),X=gt%1024+56320,st.push(z,X)),(nt+1===ht||st.length>16384)&&(Et+=et.apply(null,st),st.length=0)}return Et},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:ot,configurable:!0,writable:!0}):String.fromCodePoint=ot)})(_)},4889:function(W,_,y){var x=y(4155);(function(v,m){if(!v.setImmediate){var S,a,p,c,l,f=1,g={},h=!1,u=v.document,w=Object.getPrototypeOf&&Object.getPrototypeOf(v);w=w&&w.setTimeout?w:v,{}.toString.call(v.process)==="[object process]"?S=function(I){x.nextTick(function(){E(I)})}:function(){if(v.postMessage&&!v.importScripts){var I=!0,M=v.onmessage;return v.onmessage=function(){I=!1},v.postMessage("","*"),v.onmessage=M,I}}()?(c="setImmediate$"+Math.random()+"$",l=function(I){I.source===v&&typeof I.data=="string"&&I.data.indexOf(c)===0&&E(+I.data.slice(c.length))},v.addEventListener?v.addEventListener("message",l,!1):v.attachEvent("onmessage",l),S=function(I){v.postMessage(c+I,"*")}):v.MessageChannel?((p=new MessageChannel).port1.onmessage=function(I){E(I.data)},S=function(I){p.port2.postMessage(I)}):u&&"onreadystatechange"in u.createElement("script")?(a=u.documentElement,S=function(I){var M=u.createElement("script");M.onreadystatechange=function(){E(I),M.onreadystatechange=null,a.removeChild(M),M=null},a.appendChild(M)}):S=function(I){setTimeout(E,0,I)},w.setImmediate=function(I){typeof I!="function"&&(I=new Function(""+I));for(var M=new Array(arguments.length-1),B=0;B<M.length;B++)M[B]=arguments[B+1];var P={callback:I,args:M};return g[f]=P,S(f),f++},w.clearImmediate=b}function b(I){delete g[I]}function E(I){if(h)setTimeout(E,0,I);else{var M=g[I];if(M){h=!0;try{(function(B){var P=B.callback,N=B.args;switch(N.length){case 0:P();break;case 1:P(N[0]);break;case 2:P(N[0],N[1]);break;case 3:P(N[0],N[1],N[2]);break;default:P.apply(m,N)}})(M)}finally{b(I),h=!1}}}}})(typeof self>"u"?y.g===void 0?this:y.g:self)},4189:(W,_,y)=>{var x=y(9509).Buffer;function v(m,S){this._block=x.alloc(m),this._finalSize=S,this._blockSize=m,this._len=0}v.prototype.update=function(m,S){typeof m=="string"&&(S=S||"utf8",m=x.from(m,S));for(var a=this._block,p=this._blockSize,c=m.length,l=this._len,f=0;f<c;){for(var g=l%p,h=Math.min(c-f,p-g),u=0;u<h;u++)a[g+u]=m[f+u];f+=h,(l+=h)%p==0&&this._update(a)}return this._len+=c,this},v.prototype.digest=function(m){var S=this._len%this._blockSize;this._block[S]=128,this._block.fill(0,S+1),S>=this._finalSize&&(this._update(this._block),this._block.fill(0));var a=8*this._len;if(a<=4294967295)this._block.writeUInt32BE(a,this._blockSize-4);else{var p=(4294967295&a)>>>0,c=(a-p)/4294967296;this._block.writeUInt32BE(c,this._blockSize-8),this._block.writeUInt32BE(p,this._blockSize-4)}this._update(this._block);var l=this._hash();return m?l.toString(m):l},v.prototype._update=function(){throw new Error("_update must be implemented by subclass")},W.exports=v},9072:(W,_,y)=>{var x=W.exports=function(v){v=v.toLowerCase();var m=x[v];if(!m)throw new Error(v+" is not supported (we accept pull requests)");return new m};x.sha=y(4448),x.sha1=y(8336),x.sha224=y(8432),x.sha256=y(7499),x.sha384=y(1686),x.sha512=y(7816)},4448:(W,_,y)=>{var x=y(5717),v=y(4189),m=y(9509).Buffer,S=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function p(){this.init(),this._w=a,v.call(this,64,56)}function c(f){return f<<30|f>>>2}function l(f,g,h,u){return f===0?g&h|~g&u:f===2?g&h|g&u|h&u:g^h^u}x(p,v),p.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},p.prototype._update=function(f){for(var g,h=this._w,u=0|this._a,w=0|this._b,b=0|this._c,E=0|this._d,I=0|this._e,M=0;M<16;++M)h[M]=f.readInt32BE(4*M);for(;M<80;++M)h[M]=h[M-3]^h[M-8]^h[M-14]^h[M-16];for(var B=0;B<80;++B){var P=~~(B/20),N=0|((g=u)<<5|g>>>27)+l(P,w,b,E)+I+h[B]+S[P];I=E,E=b,b=c(w),w=u,u=N}this._a=u+this._a|0,this._b=w+this._b|0,this._c=b+this._c|0,this._d=E+this._d|0,this._e=I+this._e|0},p.prototype._hash=function(){var f=m.allocUnsafe(20);return f.writeInt32BE(0|this._a,0),f.writeInt32BE(0|this._b,4),f.writeInt32BE(0|this._c,8),f.writeInt32BE(0|this._d,12),f.writeInt32BE(0|this._e,16),f},W.exports=p},8336:(W,_,y)=>{var x=y(5717),v=y(4189),m=y(9509).Buffer,S=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function p(){this.init(),this._w=a,v.call(this,64,56)}function c(g){return g<<5|g>>>27}function l(g){return g<<30|g>>>2}function f(g,h,u,w){return g===0?h&u|~h&w:g===2?h&u|h&w|u&w:h^u^w}x(p,v),p.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},p.prototype._update=function(g){for(var h,u=this._w,w=0|this._a,b=0|this._b,E=0|this._c,I=0|this._d,M=0|this._e,B=0;B<16;++B)u[B]=g.readInt32BE(4*B);for(;B<80;++B)u[B]=(h=u[B-3]^u[B-8]^u[B-14]^u[B-16])<<1|h>>>31;for(var P=0;P<80;++P){var N=~~(P/20),$=c(w)+f(N,b,E,I)+M+u[P]+S[N]|0;M=I,I=E,E=l(b),b=w,w=$}this._a=w+this._a|0,this._b=b+this._b|0,this._c=E+this._c|0,this._d=I+this._d|0,this._e=M+this._e|0},p.prototype._hash=function(){var g=m.allocUnsafe(20);return g.writeInt32BE(0|this._a,0),g.writeInt32BE(0|this._b,4),g.writeInt32BE(0|this._c,8),g.writeInt32BE(0|this._d,12),g.writeInt32BE(0|this._e,16),g},W.exports=p},8432:(W,_,y)=>{var x=y(5717),v=y(7499),m=y(4189),S=y(9509).Buffer,a=new Array(64);function p(){this.init(),this._w=a,m.call(this,64,56)}x(p,v),p.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},p.prototype._hash=function(){var c=S.allocUnsafe(28);return c.writeInt32BE(this._a,0),c.writeInt32BE(this._b,4),c.writeInt32BE(this._c,8),c.writeInt32BE(this._d,12),c.writeInt32BE(this._e,16),c.writeInt32BE(this._f,20),c.writeInt32BE(this._g,24),c},W.exports=p},7499:(W,_,y)=>{var x=y(5717),v=y(4189),m=y(9509).Buffer,S=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],a=new Array(64);function p(){this.init(),this._w=a,v.call(this,64,56)}function c(u,w,b){return b^u&(w^b)}function l(u,w,b){return u&w|b&(u|w)}function f(u){return(u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10)}function g(u){return(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7)}function h(u){return(u>>>7|u<<25)^(u>>>18|u<<14)^u>>>3}x(p,v),p.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},p.prototype._update=function(u){for(var w,b=this._w,E=0|this._a,I=0|this._b,M=0|this._c,B=0|this._d,P=0|this._e,N=0|this._f,$=0|this._g,et=0|this._h,Q=0;Q<16;++Q)b[Q]=u.readInt32BE(4*Q);for(;Q<64;++Q)b[Q]=0|(((w=b[Q-2])>>>17|w<<15)^(w>>>19|w<<13)^w>>>10)+b[Q-7]+h(b[Q-15])+b[Q-16];for(var ot=0;ot<64;++ot){var t=et+g(P)+c(P,N,$)+S[ot]+b[ot]|0,n=f(E)+l(E,I,M)|0;et=$,$=N,N=P,P=B+t|0,B=M,M=I,I=E,E=t+n|0}this._a=E+this._a|0,this._b=I+this._b|0,this._c=M+this._c|0,this._d=B+this._d|0,this._e=P+this._e|0,this._f=N+this._f|0,this._g=$+this._g|0,this._h=et+this._h|0},p.prototype._hash=function(){var u=m.allocUnsafe(32);return u.writeInt32BE(this._a,0),u.writeInt32BE(this._b,4),u.writeInt32BE(this._c,8),u.writeInt32BE(this._d,12),u.writeInt32BE(this._e,16),u.writeInt32BE(this._f,20),u.writeInt32BE(this._g,24),u.writeInt32BE(this._h,28),u},W.exports=p},1686:(W,_,y)=>{var x=y(5717),v=y(7816),m=y(4189),S=y(9509).Buffer,a=new Array(160);function p(){this.init(),this._w=a,m.call(this,128,112)}x(p,v),p.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},p.prototype._hash=function(){var c=S.allocUnsafe(48);function l(f,g,h){c.writeInt32BE(f,h),c.writeInt32BE(g,h+4)}return l(this._ah,this._al,0),l(this._bh,this._bl,8),l(this._ch,this._cl,16),l(this._dh,this._dl,24),l(this._eh,this._el,32),l(this._fh,this._fl,40),c},W.exports=p},7816:(W,_,y)=>{var x=y(5717),v=y(4189),m=y(9509).Buffer,S=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],a=new Array(160);function p(){this.init(),this._w=a,v.call(this,128,112)}function c(I,M,B){return B^I&(M^B)}function l(I,M,B){return I&M|B&(I|M)}function f(I,M){return(I>>>28|M<<4)^(M>>>2|I<<30)^(M>>>7|I<<25)}function g(I,M){return(I>>>14|M<<18)^(I>>>18|M<<14)^(M>>>9|I<<23)}function h(I,M){return(I>>>1|M<<31)^(I>>>8|M<<24)^I>>>7}function u(I,M){return(I>>>1|M<<31)^(I>>>8|M<<24)^(I>>>7|M<<25)}function w(I,M){return(I>>>19|M<<13)^(M>>>29|I<<3)^I>>>6}function b(I,M){return(I>>>19|M<<13)^(M>>>29|I<<3)^(I>>>6|M<<26)}function E(I,M){return I>>>0<M>>>0?1:0}x(p,v),p.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},p.prototype._update=function(I){for(var M=this._w,B=0|this._ah,P=0|this._bh,N=0|this._ch,$=0|this._dh,et=0|this._eh,Q=0|this._fh,ot=0|this._gh,t=0|this._hh,n=0|this._al,r=0|this._bl,i=0|this._cl,e=0|this._dl,o=0|this._el,s=0|this._fl,A=0|this._gl,C=0|this._hl,j=0;j<32;j+=2)M[j]=I.readInt32BE(4*j),M[j+1]=I.readInt32BE(4*j+4);for(;j<160;j+=2){var T=M[j-30],R=M[j-30+1],q=h(T,R),Z=u(R,T),rt=w(T=M[j-4],R=M[j-4+1]),D=b(R,T),G=M[j-14],z=M[j-14+1],X=M[j-32],st=M[j-32+1],nt=Z+z|0,ht=q+G+E(nt,Z)|0;ht=(ht=ht+rt+E(nt=nt+D|0,D)|0)+X+E(nt=nt+st|0,st)|0,M[j]=ht,M[j+1]=nt}for(var Et=0;Et<160;Et+=2){ht=M[Et],nt=M[Et+1];var gt=l(B,P,N),bt=l(n,r,i),Bt=f(B,n),Mt=f(n,B),It=g(et,o),J=g(o,et),tt=S[Et],F=S[Et+1],H=c(et,Q,ot),U=c(o,s,A),it=C+J|0,pt=t+It+E(it,C)|0;pt=(pt=(pt=pt+H+E(it=it+U|0,U)|0)+tt+E(it=it+F|0,F)|0)+ht+E(it=it+nt|0,nt)|0;var ft=Mt+bt|0,mt=Bt+gt+E(ft,Mt)|0;t=ot,C=A,ot=Q,A=s,Q=et,s=o,et=$+pt+E(o=e+it|0,e)|0,$=N,e=i,N=P,i=r,P=B,r=n,B=pt+mt+E(n=it+ft|0,it)|0}this._al=this._al+n|0,this._bl=this._bl+r|0,this._cl=this._cl+i|0,this._dl=this._dl+e|0,this._el=this._el+o|0,this._fl=this._fl+s|0,this._gl=this._gl+A|0,this._hl=this._hl+C|0,this._ah=this._ah+B+E(this._al,n)|0,this._bh=this._bh+P+E(this._bl,r)|0,this._ch=this._ch+N+E(this._cl,i)|0,this._dh=this._dh+$+E(this._dl,e)|0,this._eh=this._eh+et+E(this._el,o)|0,this._fh=this._fh+Q+E(this._fl,s)|0,this._gh=this._gh+ot+E(this._gl,A)|0,this._hh=this._hh+t+E(this._hl,C)|0},p.prototype._hash=function(){var I=m.allocUnsafe(64);function M(B,P,N){I.writeInt32BE(B,N),I.writeInt32BE(P,N+4)}return M(this._ah,this._al,0),M(this._bh,this._bl,8),M(this._ch,this._cl,16),M(this._dh,this._dl,24),M(this._eh,this._el,32),M(this._fh,this._fl,40),M(this._gh,this._gl,48),M(this._hh,this._hl,56),I},W.exports=p},500:W=>{W.exports=(_,y)=>{if(typeof _!="string"||typeof y!="string")throw new TypeError("Expected the arguments to be of type `string`");if(y==="")return[_];const x=_.indexOf(y);return x===-1?[_]:[_.slice(0,x),_.slice(x+y.length)]}},2830:(W,_,y)=>{W.exports=v;var x=y(7187).EventEmitter;function v(){x.call(this)}y(5717)(v,x),v.Readable=y(9481),v.Writable=y(4229),v.Duplex=y(6753),v.Transform=y(4605),v.PassThrough=y(2725),v.finished=y(8610),v.pipeline=y(9946),v.Stream=v,v.prototype.pipe=function(m,S){var a=this;function p(w){m.writable&&m.write(w)===!1&&a.pause&&a.pause()}function c(){a.readable&&a.resume&&a.resume()}a.on("data",p),m.on("drain",c),m._isStdio||S&&S.end===!1||(a.on("end",f),a.on("close",g));var l=!1;function f(){l||(l=!0,m.end())}function g(){l||(l=!0,typeof m.destroy=="function"&&m.destroy())}function h(w){if(u(),x.listenerCount(this,"error")===0)throw w}function u(){a.removeListener("data",p),m.removeListener("drain",c),a.removeListener("end",f),a.removeListener("close",g),a.removeListener("error",h),m.removeListener("error",h),a.removeListener("end",u),a.removeListener("close",u),m.removeListener("close",u)}return a.on("error",h),m.on("error",h),a.on("end",u),a.on("close",u),m.on("close",u),m.emit("pipe",a),m}},8501:(W,_,y)=>{var x=y(1989),v=y(5676),m=y(7529),S=y(584),a=y(8575),p=_;p.request=function(c,l){c=typeof c=="string"?a.parse(c):m(c);var f=y.g.location.protocol.search(/^https?:$/)===-1?"http:":"",g=c.protocol||f,h=c.hostname||c.host,u=c.port,w=c.path||"/";h&&h.indexOf(":")!==-1&&(h="["+h+"]"),c.url=(h?g+"//"+h:"")+(u?":"+u:"")+w,c.method=(c.method||"GET").toUpperCase(),c.headers=c.headers||{};var b=new x(c);return l&&b.on("response",l),b},p.get=function(c,l){var f=p.request(c,l);return f.end(),f},p.ClientRequest=x,p.IncomingMessage=v.IncomingMessage,p.Agent=function(){},p.Agent.defaultMaxSockets=4,p.globalAgent=new p.Agent,p.STATUS_CODES=S,p.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]},8725:(W,_,y)=>{var x;function v(){if(x!==void 0)return x;if(y.g.XMLHttpRequest){x=new y.g.XMLHttpRequest;try{x.open("GET",y.g.XDomainRequest?"/":"https://example.com")}catch{x=null}}else x=null;return x}function m(a){var p=v();if(!p)return!1;try{return p.responseType=a,p.responseType===a}catch{}return!1}function S(a){return typeof a=="function"}_.fetch=S(y.g.fetch)&&S(y.g.ReadableStream),_.writableStream=S(y.g.WritableStream),_.abortController=S(y.g.AbortController),_.arraybuffer=_.fetch||m("arraybuffer"),_.msstream=!_.fetch&&m("ms-stream"),_.mozchunkedarraybuffer=!_.fetch&&m("moz-chunked-arraybuffer"),_.overrideMimeType=_.fetch||!!v()&&S(v().overrideMimeType),x=null},1989:(W,_,y)=>{var x=y(8764).Buffer,v=y(4155),m=y(8725),S=y(5717),a=y(5676),p=y(8473),c=a.IncomingMessage,l=a.readyStates,f=W.exports=function(h){var u,w=this;p.Writable.call(w),w._opts=h,w._body=[],w._headers={},h.auth&&w.setHeader("Authorization","Basic "+x.from(h.auth).toString("base64")),Object.keys(h.headers).forEach(function(E){w.setHeader(E,h.headers[E])});var b=!0;if(h.mode==="disable-fetch"||"requestTimeout"in h&&!m.abortController)b=!1,u=!0;else if(h.mode==="prefer-streaming")u=!1;else if(h.mode==="allow-wrong-content-type")u=!m.overrideMimeType;else{if(h.mode&&h.mode!=="default"&&h.mode!=="prefer-fast")throw new Error("Invalid value for opts.mode");u=!0}w._mode=function(E,I){return m.fetch&&I?"fetch":m.mozchunkedarraybuffer?"moz-chunked-arraybuffer":m.msstream?"ms-stream":m.arraybuffer&&E?"arraybuffer":"text"}(u,b),w._fetchTimer=null,w._socketTimeout=null,w._socketTimer=null,w.on("finish",function(){w._onFinish()})};S(f,p.Writable),f.prototype.setHeader=function(h,u){var w=h.toLowerCase();g.indexOf(w)===-1&&(this._headers[w]={name:h,value:u})},f.prototype.getHeader=function(h){var u=this._headers[h.toLowerCase()];return u?u.value:null},f.prototype.removeHeader=function(h){delete this._headers[h.toLowerCase()]},f.prototype._onFinish=function(){var h=this;if(!h._destroyed){var u=h._opts;"timeout"in u&&u.timeout!==0&&h.setTimeout(u.timeout);var w=h._headers,b=null;u.method!=="GET"&&u.method!=="HEAD"&&(b=new Blob(h._body,{type:(w["content-type"]||{}).value||""}));var E=[];if(Object.keys(w).forEach(function(P){var N=w[P].name,$=w[P].value;Array.isArray($)?$.forEach(function(et){E.push([N,et])}):E.push([N,$])}),h._mode==="fetch"){var I=null;if(m.abortController){var M=new AbortController;I=M.signal,h._fetchAbortController=M,"requestTimeout"in u&&u.requestTimeout!==0&&(h._fetchTimer=y.g.setTimeout(function(){h.emit("requestTimeout"),h._fetchAbortController&&h._fetchAbortController.abort()},u.requestTimeout))}y.g.fetch(h._opts.url,{method:h._opts.method,headers:E,body:b||void 0,mode:"cors",credentials:u.withCredentials?"include":"same-origin",signal:I}).then(function(P){h._fetchResponse=P,h._resetTimers(!1),h._connect()},function(P){h._resetTimers(!0),h._destroyed||h.emit("error",P)})}else{var B=h._xhr=new y.g.XMLHttpRequest;try{B.open(h._opts.method,h._opts.url,!0)}catch(P){return void v.nextTick(function(){h.emit("error",P)})}"responseType"in B&&(B.responseType=h._mode),"withCredentials"in B&&(B.withCredentials=!!u.withCredentials),h._mode==="text"&&"overrideMimeType"in B&&B.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in u&&(B.timeout=u.requestTimeout,B.ontimeout=function(){h.emit("requestTimeout")}),E.forEach(function(P){B.setRequestHeader(P[0],P[1])}),h._response=null,B.onreadystatechange=function(){switch(B.readyState){case l.LOADING:case l.DONE:h._onXHRProgress()}},h._mode==="moz-chunked-arraybuffer"&&(B.onprogress=function(){h._onXHRProgress()}),B.onerror=function(){h._destroyed||(h._resetTimers(!0),h.emit("error",new Error("XHR error")))};try{B.send(b)}catch(P){return void v.nextTick(function(){h.emit("error",P)})}}}},f.prototype._onXHRProgress=function(){var h=this;h._resetTimers(!1),function(u){try{var w=u.status;return w!==null&&w!==0}catch{return!1}}(h._xhr)&&!h._destroyed&&(h._response||h._connect(),h._response._onXHRProgress(h._resetTimers.bind(h)))},f.prototype._connect=function(){var h=this;h._destroyed||(h._response=new c(h._xhr,h._fetchResponse,h._mode,h._resetTimers.bind(h)),h._response.on("error",function(u){h.emit("error",u)}),h.emit("response",h._response))},f.prototype._write=function(h,u,w){this._body.push(h),w()},f.prototype._resetTimers=function(h){var u=this;y.g.clearTimeout(u._socketTimer),u._socketTimer=null,h?(y.g.clearTimeout(u._fetchTimer),u._fetchTimer=null):u._socketTimeout&&(u._socketTimer=y.g.setTimeout(function(){u.emit("timeout")},u._socketTimeout))},f.prototype.abort=f.prototype.destroy=function(h){var u=this;u._destroyed=!0,u._resetTimers(!0),u._response&&(u._response._destroyed=!0),u._xhr?u._xhr.abort():u._fetchAbortController&&u._fetchAbortController.abort(),h&&u.emit("error",h)},f.prototype.end=function(h,u,w){typeof h=="function"&&(w=h,h=void 0),p.Writable.prototype.end.call(this,h,u,w)},f.prototype.setTimeout=function(h,u){var w=this;u&&w.once("timeout",u),w._socketTimeout=h,w._resetTimers(!1)},f.prototype.flushHeaders=function(){},f.prototype.setNoDelay=function(){},f.prototype.setSocketKeepAlive=function(){};var g=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]},5676:(W,_,y)=>{var x=y(4155),v=y(8764).Buffer,m=y(8725),S=y(5717),a=y(8473),p=_.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=_.IncomingMessage=function(l,f,g,h){var u=this;if(a.Readable.call(u),u._mode=g,u.headers={},u.rawHeaders=[],u.trailers={},u.rawTrailers=[],u.on("end",function(){x.nextTick(function(){u.emit("close")})}),g==="fetch"){if(u._fetchResponse=f,u.url=f.url,u.statusCode=f.status,u.statusMessage=f.statusText,f.headers.forEach(function(M,B){u.headers[B.toLowerCase()]=M,u.rawHeaders.push(B,M)}),m.writableStream){var w=new WritableStream({write:function(M){return h(!1),new Promise(function(B,P){u._destroyed?P():u.push(v.from(M))?B():u._resumeFetch=B})},close:function(){h(!0),u._destroyed||u.push(null)},abort:function(M){h(!0),u._destroyed||u.emit("error",M)}});try{return void f.body.pipeTo(w).catch(function(M){h(!0),u._destroyed||u.emit("error",M)})}catch{}}var b=f.body.getReader();(function M(){b.read().then(function(B){u._destroyed||(h(B.done),B.done?u.push(null):(u.push(v.from(B.value)),M()))}).catch(function(B){h(!0),u._destroyed||u.emit("error",B)})})()}else if(u._xhr=l,u._pos=0,u.url=l.responseURL,u.statusCode=l.status,u.statusMessage=l.statusText,l.getAllResponseHeaders().split(/\r?\n/).forEach(function(M){var B=M.match(/^([^:]+):\s*(.*)/);if(B){var P=B[1].toLowerCase();P==="set-cookie"?(u.headers[P]===void 0&&(u.headers[P]=[]),u.headers[P].push(B[2])):u.headers[P]!==void 0?u.headers[P]+=", "+B[2]:u.headers[P]=B[2],u.rawHeaders.push(B[1],B[2])}}),u._charset="x-user-defined",!m.overrideMimeType){var E=u.rawHeaders["mime-type"];if(E){var I=E.match(/;\s*charset=([^;])(;|$)/);I&&(u._charset=I[1].toLowerCase())}u._charset||(u._charset="utf-8")}};S(c,a.Readable),c.prototype._read=function(){var l=this._resumeFetch;l&&(this._resumeFetch=null,l())},c.prototype._onXHRProgress=function(l){var f=this,g=f._xhr,h=null;switch(f._mode){case"text":if((h=g.responseText).length>f._pos){var u=h.substr(f._pos);if(f._charset==="x-user-defined"){for(var w=v.alloc(u.length),b=0;b<u.length;b++)w[b]=255&u.charCodeAt(b);f.push(w)}else f.push(u,f._charset);f._pos=h.length}break;case"arraybuffer":if(g.readyState!==p.DONE||!g.response)break;h=g.response,f.push(v.from(new Uint8Array(h)));break;case"moz-chunked-arraybuffer":if(h=g.response,g.readyState!==p.LOADING||!h)break;f.push(v.from(new Uint8Array(h)));break;case"ms-stream":if(h=g.response,g.readyState!==p.LOADING)break;var E=new y.g.MSStreamReader;E.onprogress=function(){E.result.byteLength>f._pos&&(f.push(v.from(new Uint8Array(E.result.slice(f._pos)))),f._pos=E.result.byteLength)},E.onload=function(){l(!0),f.push(null)},E.readAsArrayBuffer(h)}f._xhr.readyState===p.DONE&&f._mode!=="ms-stream"&&(l(!0),f.push(null))}},610:W=>{W.exports=_=>encodeURIComponent(_).replace(/[!'()*]/g,y=>`%${y.charCodeAt(0).toString(16).toUpperCase()}`)},2553:(W,_,y)=>{var x=y(9509).Buffer,v=x.isEncoding||function(u){switch((u=""+u)&&u.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 m(u){var w;switch(this.encoding=function(b){var E=function(I){if(!I)return"utf8";for(var M;;)switch(I){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 I;default:if(M)return;I=(""+I).toLowerCase(),M=!0}}(b);if(typeof E!="string"&&(x.isEncoding===v||!v(b)))throw new Error("Unknown encoding: "+b);return E||b}(u),this.encoding){case"utf16le":this.text=p,this.end=c,w=4;break;case"utf8":this.fillLast=a,w=4;break;case"base64":this.text=l,this.end=f,w=3;break;default:return this.write=g,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=x.allocUnsafe(w)}function S(u){return u<=127?0:u>>5==6?2:u>>4==14?3:u>>3==30?4:u>>6==2?-1:-2}function a(u){var w=this.lastTotal-this.lastNeed,b=function(E,I,M){if((192&I[0])!=128)return E.lastNeed=0,"�";if(E.lastNeed>1&&I.length>1){if((192&I[1])!=128)return E.lastNeed=1,"�";if(E.lastNeed>2&&I.length>2&&(192&I[2])!=128)return E.lastNeed=2,"�"}}(this,u);return b!==void 0?b:this.lastNeed<=u.length?(u.copy(this.lastChar,w,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(u.copy(this.lastChar,w,0,u.length),void(this.lastNeed-=u.length))}function p(u,w){if((u.length-w)%2==0){var b=u.toString("utf16le",w);if(b){var E=b.charCodeAt(b.length-1);if(E>=55296&&E<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=u[u.length-2],this.lastChar[1]=u[u.length-1],b.slice(0,-1)}return b}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=u[u.length-1],u.toString("utf16le",w,u.length-1)}function c(u){var w=u&&u.length?this.write(u):"";if(this.lastNeed){var b=this.lastTotal-this.lastNeed;return w+this.lastChar.toString("utf16le",0,b)}return w}function l(u,w){var b=(u.length-w)%3;return b===0?u.toString("base64",w):(this.lastNeed=3-b,this.lastTotal=3,b===1?this.lastChar[0]=u[u.length-1]:(this.lastChar[0]=u[u.length-2],this.lastChar[1]=u[u.length-1]),u.toString("base64",w,u.length-b))}function f(u){var w=u&&u.length?this.write(u):"";return this.lastNeed?w+this.lastChar.toString("base64",0,3-this.lastNeed):w}function g(u){return u.toString(this.encoding)}function h(u){return u&&u.length?this.write(u):""}_.s=m,m.prototype.write=function(u){if(u.length===0)return"";var w,b;if(this.lastNeed){if((w=this.fillLast(u))===void 0)return"";b=this.lastNeed,this.lastNeed=0}else b=0;return b<u.length?w?w+this.text(u,b):this.text(u,b):w||""},m.prototype.end=function(u){var w=u&&u.length?this.write(u):"";return this.lastNeed?w+"�":w},m.prototype.text=function(u,w){var b=function(I,M,B){var P=M.length-1;if(P<B)return 0;var N=S(M[P]);return N>=0?(N>0&&(I.lastNeed=N-1),N):--P<B||N===-2?0:(N=S(M[P]))>=0?(N>0&&(I.lastNeed=N-2),N):--P<B||N===-2?0:(N=S(M[P]))>=0?(N>0&&(N===2?N=0:I.lastNeed=N-3),N):0}(this,u,w);if(!this.lastNeed)return u.toString("utf8",w);this.lastTotal=b;var E=u.length-(b-this.lastNeed);return u.copy(this.lastChar,0,E),u.toString("utf8",w,E)},m.prototype.fillLast=function(u){if(this.lastNeed<=u.length)return u.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);u.copy(this.lastChar,this.lastTotal-this.lastNeed,0,u.length),this.lastNeed-=u.length}},4153:W=>{const _=/^[-+]?0x[a-fA-F0-9]+$/,y=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const x={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};W.exports=function(v,m={}){if(m=Object.assign({},x,m),!v||typeof v!="string")return v;let S=v.trim();if(m.skipLike!==void 0&&m.skipLike.test(S))return v;if(m.hex&&_.test(S))return Number.parseInt(S,16);{const p=y.exec(S);if(p){const c=p[1],l=p[2];let f=((a=p[3])&&a.indexOf(".")!==-1&&((a=a.replace(/0+$/,""))==="."?a="0":a[0]==="."?a="0"+a:a[a.length-1]==="."&&(a=a.substr(0,a.length-1))),a);const g=p[4]||p[6];if(!m.leadingZeros&&l.length>0&&c&&S[2]!=="."||!m.leadingZeros&&l.length>0&&!c&&S[1]!==".")return v;{const h=Number(S),u=""+h;return u.search(/[eE]/)!==-1||g?m.eNotation?h:v:S.indexOf(".")!==-1?u==="0"&&f===""||u===f||c&&u==="-"+f?h:v:l?f===u||c+f===u?h:v:S===u||S===c+u?h:v}}return v}var a}},4650:(W,_,y)=>{var x=y(4155),v=y(8473).Transform,m=y(5717);function S(c){v.call(this,c),this._destroyed=!1}function a(c,l,f){f(null,c)}function p(c){return function(l,f,g){return typeof l=="function"&&(g=f,f=l,l={}),typeof f!="function"&&(f=a),typeof g!="function"&&(g=null),c(l,f,g)}}m(S,v),S.prototype.destroy=function(c){if(!this._destroyed){this._destroyed=!0;var l=this;x.nextTick(function(){c&&l.emit("error",c),l.emit("close")})}},W.exports=p(function(c,l,f){var g=new S(c);return g._transform=l,f&&(g._flush=f),g}),W.exports.ctor=p(function(c,l,f){function g(h){if(!(this instanceof g))return new g(h);this.options=Object.assign({},c,h),S.call(this,this.options)}return m(g,S),g.prototype._transform=l,f&&(g.prototype._flush=f),g}),W.exports.obj=p(function(c,l,f){var g=new S(Object.assign({objectMode:!0,highWaterMark:16},c));return g._transform=l,f&&(g._flush=f),g})},5475:function(W,_,y){var x=y.g!==void 0&&y.g||typeof self<"u"&&self||window,v=Function.prototype.apply;function m(S,a){this._id=S,this._clearFn=a}_.setTimeout=function(){return new m(v.call(setTimeout,x,arguments),clearTimeout)},_.setInterval=function(){return new m(v.call(setInterval,x,arguments),clearInterval)},_.clearTimeout=_.clearInterval=function(S){S&&S.close()},m.prototype.unref=m.prototype.ref=function(){},m.prototype.close=function(){this._clearFn.call(x,this._id)},_.enroll=function(S,a){clearTimeout(S._idleTimeoutId),S._idleTimeout=a},_.unenroll=function(S){clearTimeout(S._idleTimeoutId),S._idleTimeout=-1},_._unrefActive=_.active=function(S){clearTimeout(S._idleTimeoutId);var a=S._idleTimeout;a>=0&&(S._idleTimeoutId=setTimeout(function(){S._onTimeout&&S._onTimeout()},a))},y(4889),_.setImmediate=typeof self<"u"&&self.setImmediate||y.g!==void 0&&y.g.setImmediate||this&&this.setImmediate,_.clearImmediate=typeof self<"u"&&self.clearImmediate||y.g!==void 0&&y.g.clearImmediate||this&&this.clearImmediate},2511:function(W,_,y){var x;W=y.nmd(W),function(v){_&&_.nodeType,W&&W.nodeType;var m=typeof y.g=="object"&&y.g;m.global!==m&&m.window!==m&&m.self;var S,a=2147483647,p=36,c=1,l=26,f=38,g=700,h=72,u=128,w="-",b=/^xn--/,E=/[^\x20-\x7E]/,I=/[\x2E\u3002\uFF0E\uFF61]/g,M={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},B=p-c,P=Math.floor,N=String.fromCharCode;function $(o){throw RangeError(M[o])}function et(o,s){for(var A=o.length,C=[];A--;)C[A]=s(o[A]);return C}function Q(o,s){var A=o.split("@"),C="";return A.length>1&&(C=A[0]+"@",o=A[1]),C+et((o=o.replace(I,".")).split("."),s).join(".")}function ot(o){for(var s,A,C=[],j=0,T=o.length;j<T;)(s=o.charCodeAt(j++))>=55296&&s<=56319&&j<T?(64512&(A=o.charCodeAt(j++)))==56320?C.push(((1023&s)<<10)+(1023&A)+65536):(C.push(s),j--):C.push(s);return C}function t(o){return et(o,function(s){var A="";return s>65535&&(A+=N((s-=65536)>>>10&1023|55296),s=56320|1023&s),A+N(s)}).join("")}function n(o,s){return o+22+75*(o<26)-((s!=0)<<5)}function r(o,s,A){var C=0;for(o=A?P(o/g):o>>1,o+=P(o/s);o>B*l>>1;C+=p)o=P(o/B);return P(C+(B+1)*o/(o+f))}function i(o){var s,A,C,j,T,R,q,Z,rt,D,G,z=[],X=o.length,st=0,nt=u,ht=h;for((A=o.lastIndexOf(w))<0&&(A=0),C=0;C<A;++C)o.charCodeAt(C)>=128&&$("not-basic"),z.push(o.charCodeAt(C));for(j=A>0?A+1:0;j<X;){for(T=st,R=1,q=p;j>=X&&$("invalid-input"),((Z=(G=o.charCodeAt(j++))-48<10?G-22:G-65<26?G-65:G-97<26?G-97:p)>=p||Z>P((a-st)/R))&&$("overflow"),st+=Z*R,!(Z<(rt=q<=ht?c:q>=ht+l?l:q-ht));q+=p)R>P(a/(D=p-rt))&&$("overflow"),R*=D;ht=r(st-T,s=z.length+1,T==0),P(st/s)>a-nt&&$("overflow"),nt+=P(st/s),st%=s,z.splice(st++,0,nt)}return t(z)}function e(o){var s,A,C,j,T,R,q,Z,rt,D,G,z,X,st,nt,ht=[];for(z=(o=ot(o)).length,s=u,A=0,T=h,R=0;R<z;++R)(G=o[R])<128&&ht.push(N(G));for(C=j=ht.length,j&&ht.push(w);C<z;){for(q=a,R=0;R<z;++R)(G=o[R])>=s&&G<q&&(q=G);for(q-s>P((a-A)/(X=C+1))&&$("overflow"),A+=(q-s)*X,s=q,R=0;R<z;++R)if((G=o[R])<s&&++A>a&&$("overflow"),G==s){for(Z=A,rt=p;!(Z<(D=rt<=T?c:rt>=T+l?l:rt-T));rt+=p)nt=Z-D,st=p-D,ht.push(N(n(D+nt%st,0))),Z=P(nt/st);ht.push(N(n(Z,0))),T=r(A,X,C==j),A=0,++C}++A,++s}return ht.join("")}S={version:"1.3.2",ucs2:{decode:ot,encode:t},decode:i,encode:e,toASCII:function(o){return Q(o,function(s){return E.test(s)?"xn--"+e(s):s})},toUnicode:function(o){return Q(o,function(s){return b.test(s)?i(s.slice(4).toLowerCase()):s})}},(x=(function(){return S}).call(_,y,_,W))===void 0||(W.exports=x)}()},8575:(W,_,y)=>{var x=y(2511),v=y(2502);function m(){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}_.parse=M,_.resolve=function(B,P){return M(B,!1,!0).resolve(P)},_.resolveObject=function(B,P){return B?M(B,!1,!0).resolveObject(P):P},_.format=function(B){return v.isString(B)&&(B=M(B)),B instanceof m?B.format():m.prototype.format.call(B)},_.Url=m;var S=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,p=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",`
|
|
115
|
+
`," "]),l=["'"].concat(c),f=["%","/","?",";","#"].concat(l),g=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,u=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,w={javascript:!0,"javascript:":!0},b={javascript:!0,"javascript:":!0},E={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},I=y(7673);function M(B,P,N){if(B&&v.isObject(B)&&B instanceof m)return B;var $=new m;return $.parse(B,P,N),$}m.prototype.parse=function(B,P,N){if(!v.isString(B))throw new TypeError("Parameter 'url' must be a string, not "+typeof B);var $=B.indexOf("?"),et=$!==-1&&$<B.indexOf("#")?"?":"#",Q=B.split(et);Q[0]=Q[0].replace(/\\/g,"/");var ot=B=Q.join(et);if(ot=ot.trim(),!N&&B.split("#").length===1){var t=p.exec(ot);if(t)return this.path=ot,this.href=ot,this.pathname=t[1],t[2]?(this.search=t[2],this.query=P?I.parse(this.search.substr(1)):this.search.substr(1)):P&&(this.search="",this.query={}),this}var n=S.exec(ot);if(n){var r=(n=n[0]).toLowerCase();this.protocol=r,ot=ot.substr(n.length)}if(N||n||ot.match(/^\/\/[^@\/]+@[^@\/]+/)){var i=ot.substr(0,2)==="//";!i||n&&b[n]||(ot=ot.substr(2),this.slashes=!0)}if(!b[n]&&(i||n&&!E[n])){for(var e,o,s=-1,A=0;A<g.length;A++)(C=ot.indexOf(g[A]))!==-1&&(s===-1||C<s)&&(s=C);for((o=s===-1?ot.lastIndexOf("@"):ot.lastIndexOf("@",s))!==-1&&(e=ot.slice(0,o),ot=ot.slice(o+1),this.auth=decodeURIComponent(e)),s=-1,A=0;A<f.length;A++){var C;(C=ot.indexOf(f[A]))!==-1&&(s===-1||C<s)&&(s=C)}s===-1&&(s=ot.length),this.host=ot.slice(0,s),ot=ot.slice(s),this.parseHost(),this.hostname=this.hostname||"";var j=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!j)for(var T=this.hostname.split(/\./),R=(A=0,T.length);A<R;A++){var q=T[A];if(q&&!q.match(h)){for(var Z="",rt=0,D=q.length;rt<D;rt++)q.charCodeAt(rt)>127?Z+="x":Z+=q[rt];if(!Z.match(h)){var G=T.slice(0,A),z=T.slice(A+1),X=q.match(u);X&&(G.push(X[1]),z.unshift(X[2])),z.length&&(ot="/"+z.join(".")+ot),this.hostname=G.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),j||(this.hostname=x.toASCII(this.hostname));var st=this.port?":"+this.port:"",nt=this.hostname||"";this.host=nt+st,this.href+=this.host,j&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),ot[0]!=="/"&&(ot="/"+ot))}if(!w[r])for(A=0,R=l.length;A<R;A++){var ht=l[A];if(ot.indexOf(ht)!==-1){var Et=encodeURIComponent(ht);Et===ht&&(Et=escape(ht)),ot=ot.split(ht).join(Et)}}var gt=ot.indexOf("#");gt!==-1&&(this.hash=ot.substr(gt),ot=ot.slice(0,gt));var bt=ot.indexOf("?");if(bt!==-1?(this.search=ot.substr(bt),this.query=ot.substr(bt+1),P&&(this.query=I.parse(this.query)),ot=ot.slice(0,bt)):P&&(this.search="",this.query={}),ot&&(this.pathname=ot),E[r]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){st=this.pathname||"";var Bt=this.search||"";this.path=st+Bt}return this.href=this.format(),this},m.prototype.format=function(){var B=this.auth||"";B&&(B=(B=encodeURIComponent(B)).replace(/%3A/i,":"),B+="@");var P=this.protocol||"",N=this.pathname||"",$=this.hash||"",et=!1,Q="";this.host?et=B+this.host:this.hostname&&(et=B+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(et+=":"+this.port)),this.query&&v.isObject(this.query)&&Object.keys(this.query).length&&(Q=I.stringify(this.query));var ot=this.search||Q&&"?"+Q||"";return P&&P.substr(-1)!==":"&&(P+=":"),this.slashes||(!P||E[P])&&et!==!1?(et="//"+(et||""),N&&N.charAt(0)!=="/"&&(N="/"+N)):et||(et=""),$&&$.charAt(0)!=="#"&&($="#"+$),ot&&ot.charAt(0)!=="?"&&(ot="?"+ot),P+et+(N=N.replace(/[?#]/g,function(t){return encodeURIComponent(t)}))+(ot=ot.replace("#","%23"))+$},m.prototype.resolve=function(B){return this.resolveObject(M(B,!1,!0)).format()},m.prototype.resolveObject=function(B){if(v.isString(B)){var P=new m;P.parse(B,!1,!0),B=P}for(var N=new m,$=Object.keys(this),et=0;et<$.length;et++){var Q=$[et];N[Q]=this[Q]}if(N.hash=B.hash,B.href==="")return N.href=N.format(),N;if(B.slashes&&!B.protocol){for(var ot=Object.keys(B),t=0;t<ot.length;t++){var n=ot[t];n!=="protocol"&&(N[n]=B[n])}return E[N.protocol]&&N.hostname&&!N.pathname&&(N.path=N.pathname="/"),N.href=N.format(),N}if(B.protocol&&B.protocol!==N.protocol){if(!E[B.protocol]){for(var r=Object.keys(B),i=0;i<r.length;i++){var e=r[i];N[e]=B[e]}return N.href=N.format(),N}if(N.protocol=B.protocol,B.host||b[B.protocol])N.pathname=B.pathname;else{for(var o=(B.pathname||"").split("/");o.length&&!(B.host=o.shift()););B.host||(B.host=""),B.hostname||(B.hostname=""),o[0]!==""&&o.unshift(""),o.length<2&&o.unshift(""),N.pathname=o.join("/")}if(N.search=B.search,N.query=B.query,N.host=B.host||"",N.auth=B.auth,N.hostname=B.hostname||B.host,N.port=B.port,N.pathname||N.search){var s=N.pathname||"",A=N.search||"";N.path=s+A}return N.slashes=N.slashes||B.slashes,N.href=N.format(),N}var C=N.pathname&&N.pathname.charAt(0)==="/",j=B.host||B.pathname&&B.pathname.charAt(0)==="/",T=j||C||N.host&&B.pathname,R=T,q=N.pathname&&N.pathname.split("/")||[],Z=(o=B.pathname&&B.pathname.split("/")||[],N.protocol&&!E[N.protocol]);if(Z&&(N.hostname="",N.port=null,N.host&&(q[0]===""?q[0]=N.host:q.unshift(N.host)),N.host="",B.protocol&&(B.hostname=null,B.port=null,B.host&&(o[0]===""?o[0]=B.host:o.unshift(B.host)),B.host=null),T=T&&(o[0]===""||q[0]==="")),j)N.host=B.host||B.host===""?B.host:N.host,N.hostname=B.hostname||B.hostname===""?B.hostname:N.hostname,N.search=B.search,N.query=B.query,q=o;else if(o.length)q||(q=[]),q.pop(),q=q.concat(o),N.search=B.search,N.query=B.query;else if(!v.isNullOrUndefined(B.search))return Z&&(N.hostname=N.host=q.shift(),(X=!!(N.host&&N.host.indexOf("@")>0)&&N.host.split("@"))&&(N.auth=X.shift(),N.host=N.hostname=X.shift())),N.search=B.search,N.query=B.query,v.isNull(N.pathname)&&v.isNull(N.search)||(N.path=(N.pathname?N.pathname:"")+(N.search?N.search:"")),N.href=N.format(),N;if(!q.length)return N.pathname=null,N.search?N.path="/"+N.search:N.path=null,N.href=N.format(),N;for(var rt=q.slice(-1)[0],D=(N.host||B.host||q.length>1)&&(rt==="."||rt==="..")||rt==="",G=0,z=q.length;z>=0;z--)(rt=q[z])==="."?q.splice(z,1):rt===".."?(q.splice(z,1),G++):G&&(q.splice(z,1),G--);if(!T&&!R)for(;G--;G)q.unshift("..");!T||q[0]===""||q[0]&&q[0].charAt(0)==="/"||q.unshift(""),D&&q.join("/").substr(-1)!=="/"&&q.push("");var X,st=q[0]===""||q[0]&&q[0].charAt(0)==="/";return Z&&(N.hostname=N.host=st?"":q.length?q.shift():"",(X=!!(N.host&&N.host.indexOf("@")>0)&&N.host.split("@"))&&(N.auth=X.shift(),N.host=N.hostname=X.shift())),(T=T||N.host&&q.length)&&!st&&q.unshift(""),q.length?N.pathname=q.join("/"):(N.pathname=null,N.path=null),v.isNull(N.pathname)&&v.isNull(N.search)||(N.path=(N.pathname?N.pathname:"")+(N.search?N.search:"")),N.auth=B.auth||N.auth,N.slashes=N.slashes||B.slashes,N.href=N.format(),N},m.prototype.parseHost=function(){var B=this.host,P=a.exec(B);P&&((P=P[0])!==":"&&(this.port=P.substr(1)),B=B.substr(0,B.length-P.length)),B&&(this.hostname=B)}},2502:W=>{W.exports={isString:function(_){return typeof _=="string"},isObject:function(_){return typeof _=="object"&&_!==null},isNull:function(_){return _===null},isNullOrUndefined:function(_){return _==null}}},4927:(W,_,y)=>{var x=y(5108);function v(m){try{if(!y.g.localStorage)return!1}catch{return!1}var S=y.g.localStorage[m];return S!=null&&String(S).toLowerCase()==="true"}W.exports=function(m,S){if(v("noDeprecation"))return m;var a=!1;return function(){if(!a){if(v("throwDeprecation"))throw new Error(S);v("traceDeprecation")?x.trace(S):x.warn(S),a=!0}return m.apply(this,arguments)}}},384:W=>{W.exports=function(_){return _&&typeof _=="object"&&typeof _.copy=="function"&&typeof _.fill=="function"&&typeof _.readUInt8=="function"}},5955:(W,_,y)=>{var x=y(2584),v=y(8662),m=y(6430),S=y(5692);function a(s){return s.call.bind(s)}var p=typeof BigInt<"u",c=typeof Symbol<"u",l=a(Object.prototype.toString),f=a(Number.prototype.valueOf),g=a(String.prototype.valueOf),h=a(Boolean.prototype.valueOf);if(p)var u=a(BigInt.prototype.valueOf);if(c)var w=a(Symbol.prototype.valueOf);function b(s,A){if(typeof s!="object")return!1;try{return A(s),!0}catch{return!1}}function E(s){return l(s)==="[object Map]"}function I(s){return l(s)==="[object Set]"}function M(s){return l(s)==="[object WeakMap]"}function B(s){return l(s)==="[object WeakSet]"}function P(s){return l(s)==="[object ArrayBuffer]"}function N(s){return typeof ArrayBuffer<"u"&&(P.working?P(s):s instanceof ArrayBuffer)}function $(s){return l(s)==="[object DataView]"}function et(s){return typeof DataView<"u"&&($.working?$(s):s instanceof DataView)}_.isArgumentsObject=x,_.isGeneratorFunction=v,_.isTypedArray=S,_.isPromise=function(s){return typeof Promise<"u"&&s instanceof Promise||s!==null&&typeof s=="object"&&typeof s.then=="function"&&typeof s.catch=="function"},_.isArrayBufferView=function(s){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(s):S(s)||et(s)},_.isUint8Array=function(s){return m(s)==="Uint8Array"},_.isUint8ClampedArray=function(s){return m(s)==="Uint8ClampedArray"},_.isUint16Array=function(s){return m(s)==="Uint16Array"},_.isUint32Array=function(s){return m(s)==="Uint32Array"},_.isInt8Array=function(s){return m(s)==="Int8Array"},_.isInt16Array=function(s){return m(s)==="Int16Array"},_.isInt32Array=function(s){return m(s)==="Int32Array"},_.isFloat32Array=function(s){return m(s)==="Float32Array"},_.isFloat64Array=function(s){return m(s)==="Float64Array"},_.isBigInt64Array=function(s){return m(s)==="BigInt64Array"},_.isBigUint64Array=function(s){return m(s)==="BigUint64Array"},E.working=typeof Map<"u"&&E(new Map),_.isMap=function(s){return typeof Map<"u"&&(E.working?E(s):s instanceof Map)},I.working=typeof Set<"u"&&I(new Set),_.isSet=function(s){return typeof Set<"u"&&(I.working?I(s):s instanceof Set)},M.working=typeof WeakMap<"u"&&M(new WeakMap),_.isWeakMap=function(s){return typeof WeakMap<"u"&&(M.working?M(s):s instanceof WeakMap)},B.working=typeof WeakSet<"u"&&B(new WeakSet),_.isWeakSet=function(s){return B(s)},P.working=typeof ArrayBuffer<"u"&&P(new ArrayBuffer),_.isArrayBuffer=N,$.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&$(new DataView(new ArrayBuffer(1),0,1)),_.isDataView=et;var Q=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function ot(s){return l(s)==="[object SharedArrayBuffer]"}function t(s){return Q!==void 0&&(ot.working===void 0&&(ot.working=ot(new Q)),ot.working?ot(s):s instanceof Q)}function n(s){return b(s,f)}function r(s){return b(s,g)}function i(s){return b(s,h)}function e(s){return p&&b(s,u)}function o(s){return c&&b(s,w)}_.isSharedArrayBuffer=t,_.isAsyncFunction=function(s){return l(s)==="[object AsyncFunction]"},_.isMapIterator=function(s){return l(s)==="[object Map Iterator]"},_.isSetIterator=function(s){return l(s)==="[object Set Iterator]"},_.isGeneratorObject=function(s){return l(s)==="[object Generator]"},_.isWebAssemblyCompiledModule=function(s){return l(s)==="[object WebAssembly.Module]"},_.isNumberObject=n,_.isStringObject=r,_.isBooleanObject=i,_.isBigIntObject=e,_.isSymbolObject=o,_.isBoxedPrimitive=function(s){return n(s)||r(s)||i(s)||e(s)||o(s)},_.isAnyArrayBuffer=function(s){return typeof Uint8Array<"u"&&(N(s)||t(s))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(s){Object.defineProperty(_,s,{enumerable:!1,value:function(){throw new Error(s+" is not supported in userland")}})})},9539:(W,_,y)=>{var x=y(4155),v=y(5108),m=Object.getOwnPropertyDescriptors||function(s){for(var A=Object.keys(s),C={},j=0;j<A.length;j++)C[A[j]]=Object.getOwnPropertyDescriptor(s,A[j]);return C},S=/%[sdj%]/g;_.format=function(s){if(!B(s)){for(var A=[],C=0;C<arguments.length;C++)A.push(l(arguments[C]));return A.join(" ")}C=1;for(var j=arguments,T=j.length,R=String(s).replace(S,function(Z){if(Z==="%%")return"%";if(C>=T)return Z;switch(Z){case"%s":return String(j[C++]);case"%d":return Number(j[C++]);case"%j":try{return JSON.stringify(j[C++])}catch{return"[Circular]"}default:return Z}}),q=j[C];C<T;q=j[++C])I(q)||!$(q)?R+=" "+q:R+=" "+l(q);return R},_.deprecate=function(s,A){if(x!==void 0&&x.noDeprecation===!0)return s;if(x===void 0)return function(){return _.deprecate(s,A).apply(this,arguments)};var C=!1;return function(){if(!C){if(x.throwDeprecation)throw new Error(A);x.traceDeprecation?v.trace(A):v.error(A),C=!0}return s.apply(this,arguments)}};var a={},p=/^$/;if(x.env.NODE_DEBUG){var c=x.env.NODE_DEBUG;c=c.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),p=new RegExp("^"+c+"$","i")}function l(s,A){var C={seen:[],stylize:g};return arguments.length>=3&&(C.depth=arguments[2]),arguments.length>=4&&(C.colors=arguments[3]),E(A)?C.showHidden=A:A&&_._extend(C,A),P(C.showHidden)&&(C.showHidden=!1),P(C.depth)&&(C.depth=2),P(C.colors)&&(C.colors=!1),P(C.customInspect)&&(C.customInspect=!0),C.colors&&(C.stylize=f),h(C,s,C.depth)}function f(s,A){var C=l.styles[A];return C?"\x1B["+l.colors[C][0]+"m"+s+"\x1B["+l.colors[C][1]+"m":s}function g(s,A){return s}function h(s,A,C){if(s.customInspect&&A&&ot(A.inspect)&&A.inspect!==_.inspect&&(!A.constructor||A.constructor.prototype!==A)){var j=A.inspect(C,s);return B(j)||(j=h(s,j,C)),j}var T=function(X,st){if(P(st))return X.stylize("undefined","undefined");if(B(st)){var nt="'"+JSON.stringify(st).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return X.stylize(nt,"string")}return M(st)?X.stylize(""+st,"number"):E(st)?X.stylize(""+st,"boolean"):I(st)?X.stylize("null","null"):void 0}(s,A);if(T)return T;var R=Object.keys(A),q=function(X){var st={};return X.forEach(function(nt,ht){st[nt]=!0}),st}(R);if(s.showHidden&&(R=Object.getOwnPropertyNames(A)),Q(A)&&(R.indexOf("message")>=0||R.indexOf("description")>=0))return u(A);if(R.length===0){if(ot(A)){var Z=A.name?": "+A.name:"";return s.stylize("[Function"+Z+"]","special")}if(N(A))return s.stylize(RegExp.prototype.toString.call(A),"regexp");if(et(A))return s.stylize(Date.prototype.toString.call(A),"date");if(Q(A))return u(A)}var rt,D="",G=!1,z=["{","}"];return b(A)&&(G=!0,z=["[","]"]),ot(A)&&(D=" [Function"+(A.name?": "+A.name:"")+"]"),N(A)&&(D=" "+RegExp.prototype.toString.call(A)),et(A)&&(D=" "+Date.prototype.toUTCString.call(A)),Q(A)&&(D=" "+u(A)),R.length!==0||G&&A.length!=0?C<0?N(A)?s.stylize(RegExp.prototype.toString.call(A),"regexp"):s.stylize("[Object]","special"):(s.seen.push(A),rt=G?function(X,st,nt,ht,Et){for(var gt=[],bt=0,Bt=st.length;bt<Bt;++bt)i(st,String(bt))?gt.push(w(X,st,nt,ht,String(bt),!0)):gt.push("");return Et.forEach(function(Mt){Mt.match(/^\d+$/)||gt.push(w(X,st,nt,ht,Mt,!0))}),gt}(s,A,C,q,R):R.map(function(X){return w(s,A,C,q,X,G)}),s.seen.pop(),function(X,st,nt){return X.reduce(function(ht,Et){return Et.indexOf(`
|
|
116
|
+
`),ht+Et.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?nt[0]+(st===""?"":st+`
|
|
117
|
+
`)+" "+X.join(`,
|
|
118
|
+
`)+" "+nt[1]:nt[0]+st+" "+X.join(", ")+" "+nt[1]}(rt,D,z)):z[0]+D+z[1]}function u(s){return"["+Error.prototype.toString.call(s)+"]"}function w(s,A,C,j,T,R){var q,Z,rt;if((rt=Object.getOwnPropertyDescriptor(A,T)||{value:A[T]}).get?Z=rt.set?s.stylize("[Getter/Setter]","special"):s.stylize("[Getter]","special"):rt.set&&(Z=s.stylize("[Setter]","special")),i(j,T)||(q="["+T+"]"),Z||(s.seen.indexOf(rt.value)<0?(Z=I(C)?h(s,rt.value,null):h(s,rt.value,C-1)).indexOf(`
|
|
119
|
+
`)>-1&&(Z=R?Z.split(`
|
|
120
|
+
`).map(function(D){return" "+D}).join(`
|
|
121
|
+
`).slice(2):`
|
|
122
|
+
`+Z.split(`
|
|
123
|
+
`).map(function(D){return" "+D}).join(`
|
|
124
|
+
`)):Z=s.stylize("[Circular]","special")),P(q)){if(R&&T.match(/^\d+$/))return Z;(q=JSON.stringify(""+T)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(q=q.slice(1,-1),q=s.stylize(q,"name")):(q=q.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),q=s.stylize(q,"string"))}return q+": "+Z}function b(s){return Array.isArray(s)}function E(s){return typeof s=="boolean"}function I(s){return s===null}function M(s){return typeof s=="number"}function B(s){return typeof s=="string"}function P(s){return s===void 0}function N(s){return $(s)&&t(s)==="[object RegExp]"}function $(s){return typeof s=="object"&&s!==null}function et(s){return $(s)&&t(s)==="[object Date]"}function Q(s){return $(s)&&(t(s)==="[object Error]"||s instanceof Error)}function ot(s){return typeof s=="function"}function t(s){return Object.prototype.toString.call(s)}function n(s){return s<10?"0"+s.toString(10):s.toString(10)}_.debuglog=function(s){if(s=s.toUpperCase(),!a[s])if(p.test(s)){var A=x.pid;a[s]=function(){var C=_.format.apply(_,arguments);v.error("%s %d: %s",s,A,C)}}else a[s]=function(){};return a[s]},_.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},_.types=y(5955),_.isArray=b,_.isBoolean=E,_.isNull=I,_.isNullOrUndefined=function(s){return s==null},_.isNumber=M,_.isString=B,_.isSymbol=function(s){return typeof s=="symbol"},_.isUndefined=P,_.isRegExp=N,_.types.isRegExp=N,_.isObject=$,_.isDate=et,_.types.isDate=et,_.isError=Q,_.types.isNativeError=Q,_.isFunction=ot,_.isPrimitive=function(s){return s===null||typeof s=="boolean"||typeof s=="number"||typeof s=="string"||typeof s=="symbol"||s===void 0},_.isBuffer=y(384);var r=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function i(s,A){return Object.prototype.hasOwnProperty.call(s,A)}_.log=function(){var s,A;v.log("%s - %s",(A=[n((s=new Date).getHours()),n(s.getMinutes()),n(s.getSeconds())].join(":"),[s.getDate(),r[s.getMonth()],A].join(" ")),_.format.apply(_,arguments))},_.inherits=y(5717),_._extend=function(s,A){if(!A||!$(A))return s;for(var C=Object.keys(A),j=C.length;j--;)s[C[j]]=A[C[j]];return s};var e=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function o(s,A){if(!s){var C=new Error("Promise was rejected with a falsy value");C.reason=s,s=C}return A(s)}_.promisify=function(s){if(typeof s!="function")throw new TypeError('The "original" argument must be of type Function');if(e&&s[e]){var A;if(typeof(A=s[e])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(A,e,{value:A,enumerable:!1,writable:!1,configurable:!0}),A}function A(){for(var C,j,T=new Promise(function(Z,rt){C=Z,j=rt}),R=[],q=0;q<arguments.length;q++)R.push(arguments[q]);R.push(function(Z,rt){Z?j(Z):C(rt)});try{s.apply(this,R)}catch(Z){j(Z)}return T}return Object.setPrototypeOf(A,Object.getPrototypeOf(s)),e&&Object.defineProperty(A,e,{value:A,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(A,m(s))},_.promisify.custom=e,_.callbackify=function(s){if(typeof s!="function")throw new TypeError('The "original" argument must be of type Function');function A(){for(var C=[],j=0;j<arguments.length;j++)C.push(arguments[j]);var T=C.pop();if(typeof T!="function")throw new TypeError("The last argument must be of type Function");var R=this,q=function(){return T.apply(R,arguments)};s.apply(this,C).then(function(Z){x.nextTick(q.bind(null,null,Z))},function(Z){x.nextTick(o.bind(null,Z,q))})}return Object.setPrototypeOf(A,Object.getPrototypeOf(s)),Object.defineProperties(A,m(s)),A}},7259:(W,_,y)=>{_.TextEncoder=typeof TextEncoder<"u"?TextEncoder:y(9539).TextEncoder,_.TextDecoder=typeof TextDecoder<"u"?TextDecoder:y(9539).TextDecoder},6430:(W,_,y)=>{var x=y(4029),v=y(3083),m=y(1924),S=y(7296),a=m("Object.prototype.toString"),p=y(6410)(),c=typeof globalThis>"u"?y.g:globalThis,l=v(),f=m("String.prototype.slice"),g={},h=Object.getPrototypeOf;p&&S&&h&&x(l,function(w){if(typeof c[w]=="function"){var b=new c[w];if(Symbol.toStringTag in b){var E=h(b),I=S(E,Symbol.toStringTag);if(!I){var M=h(E);I=S(M,Symbol.toStringTag)}g[w]=I.get}}});var u=y(5692);W.exports=function(w){return!!u(w)&&(p&&Symbol.toStringTag in w?function(b){var E=!1;return x(g,function(I,M){if(!E)try{var B=I.call(b);B===M&&(E=B)}catch{}}),E}(w):f(a(w),8,-1))}},255:W=>{var _={"&":"&",'"':""","'":"'","<":"<",">":">"};W.exports=function(y){return y&&y.replace?y.replace(/([&"<>'])/g,function(x,v){return _[v]}):y}},3479:(W,_,y)=>{var x=y(4155),v=y(255),m=y(2830).Stream;function S(p,c,l){l=l||0;var f,g,h=(f=c,new Array(l||0).join(f||"")),u=p;if(typeof p=="object"&&(u=p[g=Object.keys(p)[0]])&&u._elem)return u._elem.name=g,u._elem.icount=l,u._elem.indent=c,u._elem.indents=h,u._elem.interrupt=u,u._elem;var w,b=[],E=[];function I(M){Object.keys(M).forEach(function(B){b.push(function(P,N){return P+'="'+v(N)+'"'}(B,M[B]))})}switch(typeof u){case"object":if(u===null)break;u._attr&&I(u._attr),u._cdata&&E.push(("<![CDATA["+u._cdata).replace(/\]\]>/g,"]]]]><![CDATA[>")+"]]>"),u.forEach&&(w=!1,E.push(""),u.forEach(function(M){typeof M=="object"?Object.keys(M)[0]=="_attr"?I(M._attr):E.push(S(M,c,l+1)):(E.pop(),w=!0,E.push(v(M)))}),w||E.push(""));break;default:E.push(v(u))}return{name:g,interrupt:!1,attributes:b,content:E,icount:l,indents:h,indent:c}}function a(p,c,l){if(typeof c!="object")return p(!1,c);var f=c.interrupt?1:c.content.length;function g(){for(;c.content.length;){var u=c.content.shift();if(u!==void 0){if(h(u))return;a(p,u)}}p(!1,(f>1?c.indents:"")+(c.name?"</"+c.name+">":"")+(c.indent&&!l?`
|
|
125
|
+
`:"")),l&&l()}function h(u){return!!u.interrupt&&(u.interrupt.append=p,u.interrupt.end=g,u.interrupt=!1,p(!0),!0)}if(p(!1,c.indents+(c.name?"<"+c.name:"")+(c.attributes.length?" "+c.attributes.join(" "):"")+(f?c.name?">":"":c.name?"/>":"")+(c.indent&&f>1?`
|
|
126
|
+
`:"")),!f)return p(!1,c.indent?`
|
|
127
|
+
`:"");h(c)||g()}W.exports=function(p,c){typeof c!="object"&&(c={indent:c});var l,f,g=c.stream?new m:null,h="",u=!1,w=c.indent?c.indent===!0?" ":c.indent:"",b=!0;function E(P){b?x.nextTick(P):P()}function I(P,N){if(N!==void 0&&(h+=N),P&&!u&&(g=g||new m,u=!0),P&&u){var $=h;E(function(){g.emit("data",$)}),h=""}}function M(P,N){a(I,S(P,w,w?1:0),N)}function B(){if(g){var P=h;E(function(){g.emit("data",P),g.emit("end"),g.readable=!1,g.emit("close")})}}return E(function(){b=!1}),c.declaration&&(f={version:"1.0",encoding:(l=c.declaration).encoding||"UTF-8"},l.standalone&&(f.standalone=l.standalone),M({"?xml":{_attr:f}}),h=h.replace("/>","?>")),p&&p.forEach?p.forEach(function(P,N){var $;N+1===p.length&&($=B),M(P,$)}):M(p,B),g?(g.readable=!0,g):h},W.exports.element=W.exports.Element=function(){return{_elem:S(Array.prototype.slice.call(arguments)),push:function(p){if(!this.append)throw new Error("not assigned to a parent!");var c=this,l=this._elem.indent;a(this.append,S(p,l,this._elem.icount+(l?1:0)),function(){c.append(!0)})},close:function(p){p!==void 0&&this.push(p),this.end&&this.end()}}}},306:function(W,_){(function(){_.stripBOM=function(y){return y[0]==="\uFEFF"?y.substring(1):y}}).call(this)},4096:function(W,_,y){(function(){var x,v,m,S,a,p={}.hasOwnProperty;x=y(5532),v=y(8381).defaults,S=function(c){return typeof c=="string"&&(c.indexOf("&")>=0||c.indexOf(">")>=0||c.indexOf("<")>=0)},a=function(c){return"<![CDATA["+m(c)+"]]>"},m=function(c){return c.replace("]]>","]]]]><![CDATA[>")},_.Builder=function(){function c(l){var f,g,h;for(f in this.options={},g=v[.2])p.call(g,f)&&(h=g[f],this.options[f]=h);for(f in l)p.call(l,f)&&(h=l[f],this.options[f]=h)}return c.prototype.buildObject=function(l){var f,g,h,u,w,b;return f=this.options.attrkey,g=this.options.charkey,Object.keys(l).length===1&&this.options.rootName===v[.2].rootName?l=l[w=Object.keys(l)[0]]:w=this.options.rootName,b=this,h=function(E,I){var M,B,P,N,$,et;if(typeof I!="object")b.options.cdata&&S(I)?E.raw(a(I)):E.txt(I);else if(Array.isArray(I)){for(N in I)if(p.call(I,N))for($ in B=I[N])P=B[$],E=h(E.ele($),P).up()}else for($ in I)if(p.call(I,$))if(B=I[$],$===f){if(typeof B=="object")for(M in B)et=B[M],E=E.att(M,et)}else if($===g)E=b.options.cdata&&S(B)?E.raw(a(B)):E.txt(B);else if(Array.isArray(B))for(N in B)p.call(B,N)&&(E=typeof(P=B[N])=="string"?b.options.cdata&&S(P)?E.ele($).raw(a(P)).up():E.ele($,P).up():h(E.ele($),P).up());else typeof B=="object"?E=h(E.ele($),B).up():typeof B=="string"&&b.options.cdata&&S(B)?E=E.ele($).raw(a(B)).up():(B==null&&(B=""),E=E.ele($,B.toString()).up());return E},u=x.create(w,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),h(u,l).end(this.options.renderOpts)},c}()}).call(this)},8381:function(W,_){(function(){_.defaults={.1:{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
|
|
128
|
+
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},9082:function(W,_,y){(function(){var x,v,m,S,a,p,c,l,f=function(h,u){return function(){return h.apply(u,arguments)}},g={}.hasOwnProperty;c=y(6099),m=y(7187),x=y(306),p=y(7526),l=y(5475).setImmediate,v=y(8381).defaults,S=function(h){return typeof h=="object"&&h!=null&&Object.keys(h).length===0},a=function(h,u,w){var b,E;for(b=0,E=h.length;b<E;b++)u=(0,h[b])(u,w);return u},_.Parser=function(h){function u(w){var b,E,I;if(this.parseStringPromise=f(this.parseStringPromise,this),this.parseString=f(this.parseString,this),this.reset=f(this.reset,this),this.assignOrPush=f(this.assignOrPush,this),this.processAsync=f(this.processAsync,this),!(this instanceof _.Parser))return new _.Parser(w);for(b in this.options={},E=v[.2])g.call(E,b)&&(I=E[b],this.options[b]=I);for(b in w)g.call(w,b)&&(I=w[b],this.options[b]=I);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(p.normalize)),this.reset()}return function(w,b){for(var E in b)g.call(b,E)&&(w[E]=b[E]);function I(){this.constructor=w}I.prototype=b.prototype,w.prototype=new I,w.__super__=b.prototype}(u,h),u.prototype.processAsync=function(){var w,b;try{return this.remaining.length<=this.options.chunkSize?(w=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(w),this.saxParser.close()):(w=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(w),l(this.processAsync))}catch(E){if(b=E,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(b)}},u.prototype.assignOrPush=function(w,b,E){return b in w?(w[b]instanceof Array||(w[b]=[w[b]]),w[b].push(E)):this.options.explicitArray?w[b]=[E]:w[b]=E},u.prototype.reset=function(){var w,b,E,I,M;return this.removeAllListeners(),this.saxParser=c.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=(M=this,function(B){if(M.saxParser.resume(),!M.saxParser.errThrown)return M.saxParser.errThrown=!0,M.emit("error",B)}),this.saxParser.onend=function(B){return function(){if(!B.saxParser.ended)return B.saxParser.ended=!0,B.emit("end",B.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,I=[],w=this.options.attrkey,b=this.options.charkey,this.saxParser.onopentag=function(B){return function(P){var N,$,et,Q,ot;if((et={})[b]="",!B.options.ignoreAttrs)for(N in ot=P.attributes)g.call(ot,N)&&(w in et||B.options.mergeAttrs||(et[w]={}),$=B.options.attrValueProcessors?a(B.options.attrValueProcessors,P.attributes[N],N):P.attributes[N],Q=B.options.attrNameProcessors?a(B.options.attrNameProcessors,N):N,B.options.mergeAttrs?B.assignOrPush(et,Q,$):et[w][Q]=$);return et["#name"]=B.options.tagNameProcessors?a(B.options.tagNameProcessors,P.name):P.name,B.options.xmlns&&(et[B.options.xmlnskey]={uri:P.uri,local:P.local}),I.push(et)}}(this),this.saxParser.onclosetag=function(B){return function(){var P,N,$,et,Q,ot,t,n,r,i;if(ot=I.pop(),Q=ot["#name"],B.options.explicitChildren&&B.options.preserveChildrenOrder||delete ot["#name"],ot.cdata===!0&&(P=ot.cdata,delete ot.cdata),r=I[I.length-1],ot[b].match(/^\s*$/)&&!P?(N=ot[b],delete ot[b]):(B.options.trim&&(ot[b]=ot[b].trim()),B.options.normalize&&(ot[b]=ot[b].replace(/\s{2,}/g," ").trim()),ot[b]=B.options.valueProcessors?a(B.options.valueProcessors,ot[b],Q):ot[b],Object.keys(ot).length===1&&b in ot&&!B.EXPLICIT_CHARKEY&&(ot=ot[b])),S(ot)&&(ot=B.options.emptyTag!==""?B.options.emptyTag:N),B.options.validator!=null&&(i="/"+function(){var e,o,s;for(s=[],e=0,o=I.length;e<o;e++)et=I[e],s.push(et["#name"]);return s}().concat(Q).join("/"),function(){var e;try{ot=B.options.validator(i,r&&r[Q],ot)}catch(o){return e=o,B.emit("error",e)}}()),B.options.explicitChildren&&!B.options.mergeAttrs&&typeof ot=="object")if(B.options.preserveChildrenOrder){if(r){for($ in r[B.options.childkey]=r[B.options.childkey]||[],t={},ot)g.call(ot,$)&&(t[$]=ot[$]);r[B.options.childkey].push(t),delete ot["#name"],Object.keys(ot).length===1&&b in ot&&!B.EXPLICIT_CHARKEY&&(ot=ot[b])}}else et={},B.options.attrkey in ot&&(et[B.options.attrkey]=ot[B.options.attrkey],delete ot[B.options.attrkey]),!B.options.charsAsChildren&&B.options.charkey in ot&&(et[B.options.charkey]=ot[B.options.charkey],delete ot[B.options.charkey]),Object.getOwnPropertyNames(ot).length>0&&(et[B.options.childkey]=ot),ot=et;return I.length>0?B.assignOrPush(r,Q,ot):(B.options.explicitRoot&&(n=ot,(ot={})[Q]=n),B.resultObject=ot,B.saxParser.ended=!0,B.emit("end",B.resultObject))}}(this),E=function(B){return function(P){var N,$;if($=I[I.length-1])return $[b]+=P,B.options.explicitChildren&&B.options.preserveChildrenOrder&&B.options.charsAsChildren&&(B.options.includeWhiteChars||P.replace(/\\n/g,"").trim()!=="")&&($[B.options.childkey]=$[B.options.childkey]||[],(N={"#name":"__text__"})[b]=P,B.options.normalize&&(N[b]=N[b].replace(/\s{2,}/g," ").trim()),$[B.options.childkey].push(N)),$}}(this),this.saxParser.ontext=E,this.saxParser.oncdata=function(B){var P;if(P=E(B))return P.cdata=!0}},u.prototype.parseString=function(w,b){var E;b!=null&&typeof b=="function"&&(this.on("end",function(I){return this.reset(),b(null,I)}),this.on("error",function(I){return this.reset(),b(I)}));try{return(w=w.toString()).trim()===""?(this.emit("end",null),!0):(w=x.stripBOM(w),this.options.async?(this.remaining=w,l(this.processAsync),this.saxParser):this.saxParser.write(w).close())}catch(I){if(E=I,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",E),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw E}},u.prototype.parseStringPromise=function(w){return new Promise((b=this,function(E,I){return b.parseString(w,function(M,B){return M?I(M):E(B)})}));var b},u}(m),_.parseString=function(h,u,w){var b,E;return w!=null?(typeof w=="function"&&(b=w),typeof u=="object"&&(E=u)):(typeof u=="function"&&(b=u),E={}),new _.Parser(E).parseString(h,b)},_.parseStringPromise=function(h,u){var w;return typeof u=="object"&&(w=u),new _.Parser(w).parseStringPromise(h)}}).call(this)},7526:function(W,_){(function(){var y;y=new RegExp(/(?!xmlns)^.*:/),_.normalize=function(x){return x.toLowerCase()},_.firstCharLowerCase=function(x){return x.charAt(0).toLowerCase()+x.slice(1)},_.stripPrefix=function(x){return x.replace(y,"")},_.parseNumbers=function(x){return isNaN(x)||(x=x%1==0?parseInt(x,10):parseFloat(x)),x},_.parseBooleans=function(x){return/^(?:true|false)$/i.test(x)&&(x=x.toLowerCase()==="true"),x}}).call(this)},5055:function(W,_,y){(function(){var x,v,m,S,a={}.hasOwnProperty;v=y(8381),x=y(4096),m=y(9082),S=y(7526),_.defaults=v.defaults,_.processors=S,_.ValidationError=function(p){function c(l){this.message=l}return function(l,f){for(var g in f)a.call(f,g)&&(l[g]=f[g]);function h(){this.constructor=l}h.prototype=f.prototype,l.prototype=new h,l.__super__=f.prototype}(c,Error),c}(),_.Builder=x.Builder,_.Parser=m.Parser,_.parseString=m.parseString,_.parseStringPromise=m.parseStringPromise}).call(this)},7557:function(W){(function(){W.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},9335:function(W){(function(){W.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},8369:function(W){(function(){var _,y,x,v,m,S,a,p=[].slice,c={}.hasOwnProperty;_=function(){var l,f,g,h,u,w;if(w=arguments[0],u=2<=arguments.length?p.call(arguments,1):[],m(Object.assign))Object.assign.apply(null,arguments);else for(l=0,g=u.length;l<g;l++)if((h=u[l])!=null)for(f in h)c.call(h,f)&&(w[f]=h[f]);return w},m=function(l){return!!l&&Object.prototype.toString.call(l)==="[object Function]"},S=function(l){var f;return!!l&&((f=typeof l)=="function"||f==="object")},x=function(l){return m(Array.isArray)?Array.isArray(l):Object.prototype.toString.call(l)==="[object Array]"},v=function(l){var f;if(x(l))return!l.length;for(f in l)if(c.call(l,f))return!1;return!0},a=function(l){var f,g;return S(l)&&(g=Object.getPrototypeOf(l))&&(f=g.constructor)&&typeof f=="function"&&f instanceof f&&Function.prototype.toString.call(f)===Function.prototype.toString.call(Object)},y=function(l){return m(l.valueOf)?l.valueOf():l},W.exports.assign=_,W.exports.isFunction=m,W.exports.isObject=S,W.exports.isArray=x,W.exports.isEmpty=v,W.exports.isPlainObject=a,W.exports.getValue=y}).call(this)},594:function(W){(function(){W.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},2750:function(W,_,y){(function(){var x;x=y(9335),y(2026),W.exports=function(){function v(m,S,a){if(this.parent=m,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),S==null)throw new Error("Missing attribute name. "+this.debugInfo(S));this.name=this.stringify.name(S),this.value=this.stringify.attValue(a),this.type=x.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(v.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(v.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(v.prototype,"textContent",{get:function(){return this.value},set:function(m){return this.value=m||""}}),Object.defineProperty(v.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(v.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(v.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(v.prototype,"specified",{get:function(){return!0}}),v.prototype.clone=function(){return Object.create(this)},v.prototype.toString=function(m){return this.options.writer.attribute(this,this.options.writer.filterOptions(m))},v.prototype.debugInfo=function(m){return(m=m||this.name)==null?"parent: <"+this.parent.name+">":"attribute: {"+m+"}, parent: <"+this.parent.name+">"},v.prototype.isEqualNode=function(m){return m.namespaceURI===this.namespaceURI&&m.prefix===this.prefix&&m.localName===this.localName&&m.value===this.value},v}()}).call(this)},6170:function(W,_,y){(function(){var x,v,m={}.hasOwnProperty;x=y(9335),v=y(6488),W.exports=function(S){function a(p,c){if(a.__super__.constructor.call(this,p),c==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=x.CData,this.value=this.stringify.cdata(c)}return function(p,c){for(var l in c)m.call(c,l)&&(p[l]=c[l]);function f(){this.constructor=p}f.prototype=c.prototype,p.prototype=new f,p.__super__=c.prototype}(a,S),a.prototype.clone=function(){return Object.create(this)},a.prototype.toString=function(p){return this.options.writer.cdata(this,this.options.writer.filterOptions(p))},a}(v)}).call(this)},6488:function(W,_,y){(function(){var x,v={}.hasOwnProperty;x=y(2026),W.exports=function(m){function S(a){S.__super__.constructor.call(this,a),this.value=""}return function(a,p){for(var c in p)v.call(p,c)&&(a[c]=p[c]);function l(){this.constructor=a}l.prototype=p.prototype,a.prototype=new l,a.__super__=p.prototype}(S,m),Object.defineProperty(S.prototype,"data",{get:function(){return this.value},set:function(a){return this.value=a||""}}),Object.defineProperty(S.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(S.prototype,"textContent",{get:function(){return this.value},set:function(a){return this.value=a||""}}),S.prototype.clone=function(){return Object.create(this)},S.prototype.substringData=function(a,p){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.appendData=function(a){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.insertData=function(a,p){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.deleteData=function(a,p){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.replaceData=function(a,p,c){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.isEqualNode=function(a){return!!S.__super__.isEqualNode.apply(this,arguments).isEqualNode(a)&&a.data===this.data},S}(x)}).call(this)},2096:function(W,_,y){(function(){var x,v,m={}.hasOwnProperty;x=y(9335),v=y(6488),W.exports=function(S){function a(p,c){if(a.__super__.constructor.call(this,p),c==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=x.Comment,this.value=this.stringify.comment(c)}return function(p,c){for(var l in c)m.call(c,l)&&(p[l]=c[l]);function f(){this.constructor=p}f.prototype=c.prototype,p.prototype=new f,p.__super__=c.prototype}(a,S),a.prototype.clone=function(){return Object.create(this)},a.prototype.toString=function(p){return this.options.writer.comment(this,this.options.writer.filterOptions(p))},a}(v)}).call(this)},383:function(W,_,y){(function(){var x,v;x=y(3933),v=y(6210),W.exports=function(){function m(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new x,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Object.create(this.defaultParams)}return Object.defineProperty(m.prototype,"parameterNames",{get:function(){return new v(Object.keys(this.defaultParams))}}),m.prototype.getParameter=function(S){return this.params.hasOwnProperty(S)?this.params[S]:null},m.prototype.canSetParameter=function(S,a){return!0},m.prototype.setParameter=function(S,a){return a!=null?this.params[S]=a:delete this.params[S]},m}()}).call(this)},3933:function(W){(function(){W.exports=function(){function _(){}return _.prototype.handleError=function(y){throw new Error(y)},_}()}).call(this)},1770:function(W){(function(){W.exports=function(){function _(){}return _.prototype.hasFeature=function(y,x){return!0},_.prototype.createDocumentType=function(y,x,v){throw new Error("This DOM method is not implemented.")},_.prototype.createDocument=function(y,x,v){throw new Error("This DOM method is not implemented.")},_.prototype.createHTMLDocument=function(y){throw new Error("This DOM method is not implemented.")},_.prototype.getFeature=function(y,x){throw new Error("This DOM method is not implemented.")},_}()}).call(this)},6210:function(W){(function(){W.exports=function(){function _(y){this.arr=y||[]}return Object.defineProperty(_.prototype,"length",{get:function(){return this.arr.length}}),_.prototype.item=function(y){return this.arr[y]||null},_.prototype.contains=function(y){return this.arr.indexOf(y)!==-1},_}()}).call(this)},1179:function(W,_,y){(function(){var x,v,m={}.hasOwnProperty;v=y(2026),x=y(9335),W.exports=function(S){function a(p,c,l,f,g,h){if(a.__super__.constructor.call(this,p),c==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(l==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(c));if(!f)throw new Error("Missing DTD attribute type. "+this.debugInfo(c));if(!g)throw new Error("Missing DTD attribute default. "+this.debugInfo(c));if(g.indexOf("#")!==0&&(g="#"+g),!g.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(c));if(h&&!g.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(c));this.elementName=this.stringify.name(c),this.type=x.AttributeDeclaration,this.attributeName=this.stringify.name(l),this.attributeType=this.stringify.dtdAttType(f),h&&(this.defaultValue=this.stringify.dtdAttDefault(h)),this.defaultValueType=g}return function(p,c){for(var l in c)m.call(c,l)&&(p[l]=c[l]);function f(){this.constructor=p}f.prototype=c.prototype,p.prototype=new f,p.__super__=c.prototype}(a,S),a.prototype.toString=function(p){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(p))},a}(v)}).call(this)},6347:function(W,_,y){(function(){var x,v,m={}.hasOwnProperty;v=y(2026),x=y(9335),W.exports=function(S){function a(p,c,l){if(a.__super__.constructor.call(this,p),c==null)throw new Error("Missing DTD element name. "+this.debugInfo());l||(l="(#PCDATA)"),Array.isArray(l)&&(l="("+l.join(",")+")"),this.name=this.stringify.name(c),this.type=x.ElementDeclaration,this.value=this.stringify.dtdElementValue(l)}return function(p,c){for(var l in c)m.call(c,l)&&(p[l]=c[l]);function f(){this.constructor=p}f.prototype=c.prototype,p.prototype=new f,p.__super__=c.prototype}(a,S),a.prototype.toString=function(p){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(p))},a}(v)}).call(this)},9078:function(W,_,y){(function(){var x,v,m,S={}.hasOwnProperty;m=y(8369).isObject,v=y(2026),x=y(9335),W.exports=function(a){function p(c,l,f,g){if(p.__super__.constructor.call(this,c),f==null)throw new Error("Missing DTD entity name. "+this.debugInfo(f));if(g==null)throw new Error("Missing DTD entity value. "+this.debugInfo(f));if(this.pe=!!l,this.name=this.stringify.name(f),this.type=x.EntityDeclaration,m(g)){if(!g.pubID&&!g.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(f));if(g.pubID&&!g.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(f));if(this.internal=!1,g.pubID!=null&&(this.pubID=this.stringify.dtdPubID(g.pubID)),g.sysID!=null&&(this.sysID=this.stringify.dtdSysID(g.sysID)),g.nData!=null&&(this.nData=this.stringify.dtdNData(g.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(f))}else this.value=this.stringify.dtdEntityValue(g),this.internal=!0}return function(c,l){for(var f in l)S.call(l,f)&&(c[f]=l[f]);function g(){this.constructor=c}g.prototype=l.prototype,c.prototype=new g,c.__super__=l.prototype}(p,a),Object.defineProperty(p.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(p.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(p.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(p.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(p.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(p.prototype,"xmlVersion",{get:function(){return null}}),p.prototype.toString=function(c){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(c))},p}(v)}).call(this)},4777:function(W,_,y){(function(){var x,v,m={}.hasOwnProperty;v=y(2026),x=y(9335),W.exports=function(S){function a(p,c,l){if(a.__super__.constructor.call(this,p),c==null)throw new Error("Missing DTD notation name. "+this.debugInfo(c));if(!l.pubID&&!l.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(c));this.name=this.stringify.name(c),this.type=x.NotationDeclaration,l.pubID!=null&&(this.pubID=this.stringify.dtdPubID(l.pubID)),l.sysID!=null&&(this.sysID=this.stringify.dtdSysID(l.sysID))}return function(p,c){for(var l in c)m.call(c,l)&&(p[l]=c[l]);function f(){this.constructor=p}f.prototype=c.prototype,p.prototype=new f,p.__super__=c.prototype}(a,S),Object.defineProperty(a.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(a.prototype,"systemId",{get:function(){return this.sysID}}),a.prototype.toString=function(p){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(p))},a}(v)}).call(this)},9077:function(W,_,y){(function(){var x,v,m,S={}.hasOwnProperty;m=y(8369).isObject,v=y(2026),x=y(9335),W.exports=function(a){function p(c,l,f,g){var h;p.__super__.constructor.call(this,c),m(l)&&(l=(h=l).version,f=h.encoding,g=h.standalone),l||(l="1.0"),this.type=x.Declaration,this.version=this.stringify.xmlVersion(l),f!=null&&(this.encoding=this.stringify.xmlEncoding(f)),g!=null&&(this.standalone=this.stringify.xmlStandalone(g))}return function(c,l){for(var f in l)S.call(l,f)&&(c[f]=l[f]);function g(){this.constructor=c}g.prototype=l.prototype,c.prototype=new g,c.__super__=l.prototype}(p,a),p.prototype.toString=function(c){return this.options.writer.declaration(this,this.options.writer.filterOptions(c))},p}(v)}).call(this)},6544:function(W,_,y){(function(){var x,v,m,S,a,p,c,l,f={}.hasOwnProperty;l=y(8369).isObject,c=y(2026),x=y(9335),v=y(1179),S=y(9078),m=y(6347),a=y(4777),p=y(663),W.exports=function(g){function h(u,w,b){var E,I,M,B,P,N;if(h.__super__.constructor.call(this,u),this.type=x.DocType,u.children){for(I=0,M=(B=u.children).length;I<M;I++)if((E=B[I]).type===x.Element){this.name=E.name;break}}this.documentObject=u,l(w)&&(w=(P=w).pubID,b=P.sysID),b==null&&(b=(N=[w,b])[0],w=N[1]),w!=null&&(this.pubID=this.stringify.dtdPubID(w)),b!=null&&(this.sysID=this.stringify.dtdSysID(b))}return function(u,w){for(var b in w)f.call(w,b)&&(u[b]=w[b]);function E(){this.constructor=u}E.prototype=w.prototype,u.prototype=new E,u.__super__=w.prototype}(h,g),Object.defineProperty(h.prototype,"entities",{get:function(){var u,w,b,E,I;for(E={},w=0,b=(I=this.children).length;w<b;w++)(u=I[w]).type!==x.EntityDeclaration||u.pe||(E[u.name]=u);return new p(E)}}),Object.defineProperty(h.prototype,"notations",{get:function(){var u,w,b,E,I;for(E={},w=0,b=(I=this.children).length;w<b;w++)(u=I[w]).type===x.NotationDeclaration&&(E[u.name]=u);return new p(E)}}),Object.defineProperty(h.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(h.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(h.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),h.prototype.element=function(u,w){var b;return b=new m(this,u,w),this.children.push(b),this},h.prototype.attList=function(u,w,b,E,I){var M;return M=new v(this,u,w,b,E,I),this.children.push(M),this},h.prototype.entity=function(u,w){var b;return b=new S(this,!1,u,w),this.children.push(b),this},h.prototype.pEntity=function(u,w){var b;return b=new S(this,!0,u,w),this.children.push(b),this},h.prototype.notation=function(u,w){var b;return b=new a(this,u,w),this.children.push(b),this},h.prototype.toString=function(u){return this.options.writer.docType(this,this.options.writer.filterOptions(u))},h.prototype.ele=function(u,w){return this.element(u,w)},h.prototype.att=function(u,w,b,E,I){return this.attList(u,w,b,E,I)},h.prototype.ent=function(u,w){return this.entity(u,w)},h.prototype.pent=function(u,w){return this.pEntity(u,w)},h.prototype.not=function(u,w){return this.notation(u,w)},h.prototype.up=function(){return this.root()||this.documentObject},h.prototype.isEqualNode=function(u){return!!h.__super__.isEqualNode.apply(this,arguments).isEqualNode(u)&&u.name===this.name&&u.publicId===this.publicId&&u.systemId===this.systemId},h}(c)}).call(this)},6934:function(W,_,y){(function(){var x,v,m,S,a,p,c,l={}.hasOwnProperty;c=y(8369).isPlainObject,m=y(1770),v=y(383),S=y(2026),x=y(9335),p=y(5549),a=y(6434),W.exports=function(f){function g(h){g.__super__.constructor.call(this,null),this.name="#document",this.type=x.Document,this.documentURI=null,this.domConfig=new v,h||(h={}),h.writer||(h.writer=new a),this.options=h,this.stringify=new p(h)}return function(h,u){for(var w in u)l.call(u,w)&&(h[w]=u[w]);function b(){this.constructor=h}b.prototype=u.prototype,h.prototype=new b,h.__super__=u.prototype}(g,f),Object.defineProperty(g.prototype,"implementation",{value:new m}),Object.defineProperty(g.prototype,"doctype",{get:function(){var h,u,w,b;for(u=0,w=(b=this.children).length;u<w;u++)if((h=b[u]).type===x.DocType)return h;return null}}),Object.defineProperty(g.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(g.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(g.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(g.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===x.Declaration?this.children[0].encoding:null}}),Object.defineProperty(g.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===x.Declaration&&this.children[0].standalone==="yes"}}),Object.defineProperty(g.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===x.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(g.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(g.prototype,"origin",{get:function(){return null}}),Object.defineProperty(g.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(g.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(g.prototype,"contentType",{get:function(){return null}}),g.prototype.end=function(h){var u;return u={},h?c(h)&&(u=h,h=this.options.writer):h=this.options.writer,h.document(this,h.filterOptions(u))},g.prototype.toString=function(h){return this.options.writer.document(this,this.options.writer.filterOptions(h))},g.prototype.createElement=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createTextNode=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createComment=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createCDATASection=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createProcessingInstruction=function(h,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createAttribute=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createEntityReference=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.getElementsByTagName=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.importNode=function(h,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createElementNS=function(h,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createAttributeNS=function(h,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.getElementsByTagNameNS=function(h,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.getElementById=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.adoptNode=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.renameNode=function(h,u,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.getElementsByClassName=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createEvent=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createNodeIterator=function(h,u,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createTreeWalker=function(h,u,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},g}(S)}).call(this)},9227:function(W,_,y){(function(){var x,v,m,S,a,p,c,l,f,g,h,u,w,b,E,I,M,B,P,N,$,et,Q,ot={}.hasOwnProperty;Q=y(8369),$=Q.isObject,N=Q.isFunction,et=Q.isPlainObject,P=Q.getValue,x=y(9335),u=y(6934),w=y(2161),S=y(6170),a=y(2096),E=y(9406),B=y(3595),b=y(9181),g=y(9077),h=y(6544),p=y(1179),l=y(9078),c=y(6347),f=y(4777),m=y(2750),M=y(5549),I=y(6434),v=y(594),W.exports=function(){function t(n,r,i){var e;this.name="?xml",this.type=x.Document,n||(n={}),e={},n.writer?et(n.writer)&&(e=n.writer,n.writer=new I):n.writer=new I,this.options=n,this.writer=n.writer,this.writerOptions=this.writer.filterOptions(e),this.stringify=new M(n),this.onDataCallback=r||function(){},this.onEndCallback=i||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return t.prototype.createChildNode=function(n){var r,i,e,o,s,A,C,j;switch(n.type){case x.CData:this.cdata(n.value);break;case x.Comment:this.comment(n.value);break;case x.Element:for(i in e={},C=n.attribs)ot.call(C,i)&&(r=C[i],e[i]=r.value);this.node(n.name,e);break;case x.Dummy:this.dummy();break;case x.Raw:this.raw(n.value);break;case x.Text:this.text(n.value);break;case x.ProcessingInstruction:this.instruction(n.target,n.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+n.constructor.name)}for(s=0,A=(j=n.children).length;s<A;s++)o=j[s],this.createChildNode(o),o.type===x.Element&&this.up();return this},t.prototype.dummy=function(){return this},t.prototype.node=function(n,r,i){var e;if(n==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(n));return this.openCurrent(),n=P(n),r==null&&(r={}),r=P(r),$(r)||(i=(e=[r,i])[0],r=e[1]),this.currentNode=new w(this,n,r),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,i!=null&&this.text(i),this},t.prototype.element=function(n,r,i){var e,o,s,A,C,j;if(this.currentNode&&this.currentNode.type===x.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(n)||$(n)||N(n))for(A=this.options.noValidation,this.options.noValidation=!0,(j=new u(this.options).element("TEMP_ROOT")).element(n),this.options.noValidation=A,o=0,s=(C=j.children).length;o<s;o++)e=C[o],this.createChildNode(e),e.type===x.Element&&this.up();else this.node(n,r,i);return this},t.prototype.attribute=function(n,r){var i,e;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(n));if(n!=null&&(n=P(n)),$(n))for(i in n)ot.call(n,i)&&(e=n[i],this.attribute(i,e));else N(r)&&(r=r.apply()),this.options.keepNullAttributes&&r==null?this.currentNode.attribs[n]=new m(this,n,""):r!=null&&(this.currentNode.attribs[n]=new m(this,n,r));return this},t.prototype.text=function(n){var r;return this.openCurrent(),r=new B(this,n),this.onData(this.writer.text(r,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.cdata=function(n){var r;return this.openCurrent(),r=new S(this,n),this.onData(this.writer.cdata(r,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.comment=function(n){var r;return this.openCurrent(),r=new a(this,n),this.onData(this.writer.comment(r,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.raw=function(n){var r;return this.openCurrent(),r=new E(this,n),this.onData(this.writer.raw(r,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.instruction=function(n,r){var i,e,o,s,A;if(this.openCurrent(),n!=null&&(n=P(n)),r!=null&&(r=P(r)),Array.isArray(n))for(i=0,s=n.length;i<s;i++)e=n[i],this.instruction(e);else if($(n))for(e in n)ot.call(n,e)&&(o=n[e],this.instruction(e,o));else N(r)&&(r=r.apply()),A=new b(this,n,r),this.onData(this.writer.processingInstruction(A,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},t.prototype.declaration=function(n,r,i){var e;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return e=new g(this,n,r,i),this.onData(this.writer.declaration(e,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.doctype=function(n,r,i){if(this.openCurrent(),n==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new h(this,r,i),this.currentNode.rootNodeName=n,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},t.prototype.dtdElement=function(n,r){var i;return this.openCurrent(),i=new c(this,n,r),this.onData(this.writer.dtdElement(i,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.attList=function(n,r,i,e,o){var s;return this.openCurrent(),s=new p(this,n,r,i,e,o),this.onData(this.writer.dtdAttList(s,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.entity=function(n,r){var i;return this.openCurrent(),i=new l(this,!1,n,r),this.onData(this.writer.dtdEntity(i,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.pEntity=function(n,r){var i;return this.openCurrent(),i=new l(this,!0,n,r),this.onData(this.writer.dtdEntity(i,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.notation=function(n,r){var i;return this.openCurrent(),i=new f(this,n,r),this.onData(this.writer.dtdNotation(i,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},t.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},t.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},t.prototype.openNode=function(n){var r,i,e,o;if(!n.isOpen){if(this.root||this.currentLevel!==0||n.type!==x.Element||(this.root=n),i="",n.type===x.Element){for(e in this.writerOptions.state=v.OpenTag,i=this.writer.indent(n,this.writerOptions,this.currentLevel)+"<"+n.name,o=n.attribs)ot.call(o,e)&&(r=o[e],i+=this.writer.attribute(r,this.writerOptions,this.currentLevel));i+=(n.children?">":"/>")+this.writer.endline(n,this.writerOptions,this.currentLevel),this.writerOptions.state=v.InsideTag}else this.writerOptions.state=v.OpenTag,i=this.writer.indent(n,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+n.rootNodeName,n.pubID&&n.sysID?i+=' PUBLIC "'+n.pubID+'" "'+n.sysID+'"':n.sysID&&(i+=' SYSTEM "'+n.sysID+'"'),n.children?(i+=" [",this.writerOptions.state=v.InsideTag):(this.writerOptions.state=v.CloseTag,i+=">"),i+=this.writer.endline(n,this.writerOptions,this.currentLevel);return this.onData(i,this.currentLevel),n.isOpen=!0}},t.prototype.closeNode=function(n){var r;if(!n.isClosed)return this.writerOptions.state=v.CloseTag,r=n.type===x.Element?this.writer.indent(n,this.writerOptions,this.currentLevel)+"</"+n.name+">"+this.writer.endline(n,this.writerOptions,this.currentLevel):this.writer.indent(n,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(n,this.writerOptions,this.currentLevel),this.writerOptions.state=v.None,this.onData(r,this.currentLevel),n.isClosed=!0},t.prototype.onData=function(n,r){return this.documentStarted=!0,this.onDataCallback(n,r+1)},t.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},t.prototype.debugInfo=function(n){return n==null?"":"node: <"+n+">"},t.prototype.ele=function(){return this.element.apply(this,arguments)},t.prototype.nod=function(n,r,i){return this.node(n,r,i)},t.prototype.txt=function(n){return this.text(n)},t.prototype.dat=function(n){return this.cdata(n)},t.prototype.com=function(n){return this.comment(n)},t.prototype.ins=function(n,r){return this.instruction(n,r)},t.prototype.dec=function(n,r,i){return this.declaration(n,r,i)},t.prototype.dtd=function(n,r,i){return this.doctype(n,r,i)},t.prototype.e=function(n,r,i){return this.element(n,r,i)},t.prototype.n=function(n,r,i){return this.node(n,r,i)},t.prototype.t=function(n){return this.text(n)},t.prototype.d=function(n){return this.cdata(n)},t.prototype.c=function(n){return this.comment(n)},t.prototype.r=function(n){return this.raw(n)},t.prototype.i=function(n,r){return this.instruction(n,r)},t.prototype.att=function(){return this.currentNode&&this.currentNode.type===x.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},t.prototype.a=function(){return this.currentNode&&this.currentNode.type===x.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},t.prototype.ent=function(n,r){return this.entity(n,r)},t.prototype.pent=function(n,r){return this.pEntity(n,r)},t.prototype.not=function(n,r){return this.notation(n,r)},t}()}).call(this)},8833:function(W,_,y){(function(){var x,v,m={}.hasOwnProperty;v=y(2026),x=y(9335),W.exports=function(S){function a(p){a.__super__.constructor.call(this,p),this.type=x.Dummy}return function(p,c){for(var l in c)m.call(c,l)&&(p[l]=c[l]);function f(){this.constructor=p}f.prototype=c.prototype,p.prototype=new f,p.__super__=c.prototype}(a,S),a.prototype.clone=function(){return Object.create(this)},a.prototype.toString=function(p){return""},a}(v)}).call(this)},2161:function(W,_,y){(function(){var x,v,m,S,a,p,c,l,f={}.hasOwnProperty;l=y(8369),c=l.isObject,p=l.isFunction,a=l.getValue,S=y(2026),x=y(9335),v=y(2750),m=y(663),W.exports=function(g){function h(u,w,b){var E,I,M,B;if(h.__super__.constructor.call(this,u),w==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(w),this.type=x.Element,this.attribs={},this.schemaTypeInfo=null,b!=null&&this.attribute(b),u.type===x.Document&&(this.isRoot=!0,this.documentObject=u,u.rootObject=this,u.children)){for(I=0,M=(B=u.children).length;I<M;I++)if((E=B[I]).type===x.DocType){E.name=this.name;break}}}return function(u,w){for(var b in w)f.call(w,b)&&(u[b]=w[b]);function E(){this.constructor=u}E.prototype=w.prototype,u.prototype=new E,u.__super__=w.prototype}(h,g),Object.defineProperty(h.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(h.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(h.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(h.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(h.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(h.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(h.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(h.prototype,"attributes",{get:function(){return this.attributeMap&&this.attributeMap.nodes||(this.attributeMap=new m(this.attribs)),this.attributeMap}}),h.prototype.clone=function(){var u,w,b,E;for(w in(b=Object.create(this)).isRoot&&(b.documentObject=null),b.attribs={},E=this.attribs)f.call(E,w)&&(u=E[w],b.attribs[w]=u.clone());return b.children=[],this.children.forEach(function(I){var M;return(M=I.clone()).parent=b,b.children.push(M)}),b},h.prototype.attribute=function(u,w){var b,E;if(u!=null&&(u=a(u)),c(u))for(b in u)f.call(u,b)&&(E=u[b],this.attribute(b,E));else p(w)&&(w=w.apply()),this.options.keepNullAttributes&&w==null?this.attribs[u]=new v(this,u,""):w!=null&&(this.attribs[u]=new v(this,u,w));return this},h.prototype.removeAttribute=function(u){var w,b,E;if(u==null)throw new Error("Missing attribute name. "+this.debugInfo());if(u=a(u),Array.isArray(u))for(b=0,E=u.length;b<E;b++)w=u[b],delete this.attribs[w];else delete this.attribs[u];return this},h.prototype.toString=function(u){return this.options.writer.element(this,this.options.writer.filterOptions(u))},h.prototype.att=function(u,w){return this.attribute(u,w)},h.prototype.a=function(u,w){return this.attribute(u,w)},h.prototype.getAttribute=function(u){return this.attribs.hasOwnProperty(u)?this.attribs[u].value:null},h.prototype.setAttribute=function(u,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.getAttributeNode=function(u){return this.attribs.hasOwnProperty(u)?this.attribs[u]:null},h.prototype.setAttributeNode=function(u){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.removeAttributeNode=function(u){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.getElementsByTagName=function(u){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.getAttributeNS=function(u,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.setAttributeNS=function(u,w,b){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.removeAttributeNS=function(u,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.getAttributeNodeNS=function(u,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.setAttributeNodeNS=function(u){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.getElementsByTagNameNS=function(u,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.hasAttribute=function(u){return this.attribs.hasOwnProperty(u)},h.prototype.hasAttributeNS=function(u,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.setIdAttribute=function(u,w){return this.attribs.hasOwnProperty(u)?this.attribs[u].isId:w},h.prototype.setIdAttributeNS=function(u,w,b){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.setIdAttributeNode=function(u,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.getElementsByTagName=function(u){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.getElementsByTagNameNS=function(u,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.getElementsByClassName=function(u){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.isEqualNode=function(u){var w,b,E;if(!h.__super__.isEqualNode.apply(this,arguments).isEqualNode(u)||u.namespaceURI!==this.namespaceURI||u.prefix!==this.prefix||u.localName!==this.localName||u.attribs.length!==this.attribs.length)return!1;for(w=b=0,E=this.attribs.length-1;0<=E?b<=E:b>=E;w=0<=E?++b:--b)if(!this.attribs[w].isEqualNode(u.attribs[w]))return!1;return!0},h}(S)}).call(this)},663:function(W){(function(){W.exports=function(){function _(y){this.nodes=y}return Object.defineProperty(_.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),_.prototype.clone=function(){return this.nodes=null},_.prototype.getNamedItem=function(y){return this.nodes[y]},_.prototype.setNamedItem=function(y){var x;return x=this.nodes[y.nodeName],this.nodes[y.nodeName]=y,x||null},_.prototype.removeNamedItem=function(y){var x;return x=this.nodes[y],delete this.nodes[y],x||null},_.prototype.item=function(y){return this.nodes[Object.keys(this.nodes)[y]]||null},_.prototype.getNamedItemNS=function(y,x){throw new Error("This DOM method is not implemented.")},_.prototype.setNamedItemNS=function(y){throw new Error("This DOM method is not implemented.")},_.prototype.removeNamedItemNS=function(y,x){throw new Error("This DOM method is not implemented.")},_}()}).call(this)},2026:function(W,_,y){(function(){var x,v,m,S,a,p,c,l,f,g,h,u,w,b,E,I,M,B={}.hasOwnProperty;M=y(8369),I=M.isObject,E=M.isFunction,b=M.isEmpty,w=M.getValue,l=null,m=null,S=null,a=null,p=null,h=null,u=null,g=null,c=null,v=null,f=null,x=null,W.exports=function(){function P(N){this.parent=N,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,l||(l=y(2161),m=y(6170),S=y(2096),a=y(9077),p=y(6544),h=y(9406),u=y(3595),g=y(9181),c=y(8833),v=y(9335),f=y(2390),y(663),x=y(7557))}return Object.defineProperty(P.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(P.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(P.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(P.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(P.prototype,"childNodes",{get:function(){return this.childNodeList&&this.childNodeList.nodes||(this.childNodeList=new f(this.children)),this.childNodeList}}),Object.defineProperty(P.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(P.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(P.prototype,"previousSibling",{get:function(){var N;return N=this.parent.children.indexOf(this),this.parent.children[N-1]||null}}),Object.defineProperty(P.prototype,"nextSibling",{get:function(){var N;return N=this.parent.children.indexOf(this),this.parent.children[N+1]||null}}),Object.defineProperty(P.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(P.prototype,"textContent",{get:function(){var N,$,et,Q,ot;if(this.nodeType===v.Element||this.nodeType===v.DocumentFragment){for(ot="",$=0,et=(Q=this.children).length;$<et;$++)(N=Q[$]).textContent&&(ot+=N.textContent);return ot}return null},set:function(N){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),P.prototype.setParent=function(N){var $,et,Q,ot,t;for(this.parent=N,N&&(this.options=N.options,this.stringify=N.stringify),t=[],et=0,Q=(ot=this.children).length;et<Q;et++)$=ot[et],t.push($.setParent(this));return t},P.prototype.element=function(N,$,et){var Q,ot,t,n,r,i,e,o,s,A,C;if(i=null,$===null&&et==null&&($=(s=[{},null])[0],et=s[1]),$==null&&($={}),$=w($),I($)||(et=(A=[$,et])[0],$=A[1]),N!=null&&(N=w(N)),Array.isArray(N))for(t=0,e=N.length;t<e;t++)ot=N[t],i=this.element(ot);else if(E(N))i=this.element(N.apply());else if(I(N)){for(r in N)if(B.call(N,r))if(C=N[r],E(C)&&(C=C.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&r.indexOf(this.stringify.convertAttKey)===0)i=this.attribute(r.substr(this.stringify.convertAttKey.length),C);else if(!this.options.separateArrayItems&&Array.isArray(C)&&b(C))i=this.dummy();else if(I(C)&&b(C))i=this.element(r);else if(this.options.keepNullNodes||C!=null)if(!this.options.separateArrayItems&&Array.isArray(C))for(n=0,o=C.length;n<o;n++)ot=C[n],(Q={})[r]=ot,i=this.element(Q);else I(C)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&r.indexOf(this.stringify.convertTextKey)===0?i=this.element(C):(i=this.element(r)).element(C):i=this.element(r,C);else i=this.dummy()}else i=this.options.keepNullNodes||et!==null?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&N.indexOf(this.stringify.convertTextKey)===0?this.text(et):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&N.indexOf(this.stringify.convertCDataKey)===0?this.cdata(et):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&N.indexOf(this.stringify.convertCommentKey)===0?this.comment(et):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&N.indexOf(this.stringify.convertRawKey)===0?this.raw(et):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&N.indexOf(this.stringify.convertPIKey)===0?this.instruction(N.substr(this.stringify.convertPIKey.length),et):this.node(N,$,et):this.dummy();if(i==null)throw new Error("Could not create any elements with: "+N+". "+this.debugInfo());return i},P.prototype.insertBefore=function(N,$,et){var Q,ot,t,n,r;if(N!=null&&N.type)return n=$,(t=N).setParent(this),n?(ot=children.indexOf(n),r=children.splice(ot),children.push(t),Array.prototype.push.apply(children,r)):children.push(t),t;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(N));return ot=this.parent.children.indexOf(this),r=this.parent.children.splice(ot),Q=this.parent.element(N,$,et),Array.prototype.push.apply(this.parent.children,r),Q},P.prototype.insertAfter=function(N,$,et){var Q,ot,t;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(N));return ot=this.parent.children.indexOf(this),t=this.parent.children.splice(ot+1),Q=this.parent.element(N,$,et),Array.prototype.push.apply(this.parent.children,t),Q},P.prototype.remove=function(){var N;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return N=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[N,N-N+1].concat([])),this.parent},P.prototype.node=function(N,$,et){var Q,ot;return N!=null&&(N=w(N)),$||($={}),$=w($),I($)||(et=(ot=[$,et])[0],$=ot[1]),Q=new l(this,N,$),et!=null&&Q.text(et),this.children.push(Q),Q},P.prototype.text=function(N){var $;return I(N)&&this.element(N),$=new u(this,N),this.children.push($),this},P.prototype.cdata=function(N){var $;return $=new m(this,N),this.children.push($),this},P.prototype.comment=function(N){var $;return $=new S(this,N),this.children.push($),this},P.prototype.commentBefore=function(N){var $,et;return $=this.parent.children.indexOf(this),et=this.parent.children.splice($),this.parent.comment(N),Array.prototype.push.apply(this.parent.children,et),this},P.prototype.commentAfter=function(N){var $,et;return $=this.parent.children.indexOf(this),et=this.parent.children.splice($+1),this.parent.comment(N),Array.prototype.push.apply(this.parent.children,et),this},P.prototype.raw=function(N){var $;return $=new h(this,N),this.children.push($),this},P.prototype.dummy=function(){return new c(this)},P.prototype.instruction=function(N,$){var et,Q,ot,t,n;if(N!=null&&(N=w(N)),$!=null&&($=w($)),Array.isArray(N))for(t=0,n=N.length;t<n;t++)et=N[t],this.instruction(et);else if(I(N))for(et in N)B.call(N,et)&&(Q=N[et],this.instruction(et,Q));else E($)&&($=$.apply()),ot=new g(this,N,$),this.children.push(ot);return this},P.prototype.instructionBefore=function(N,$){var et,Q;return et=this.parent.children.indexOf(this),Q=this.parent.children.splice(et),this.parent.instruction(N,$),Array.prototype.push.apply(this.parent.children,Q),this},P.prototype.instructionAfter=function(N,$){var et,Q;return et=this.parent.children.indexOf(this),Q=this.parent.children.splice(et+1),this.parent.instruction(N,$),Array.prototype.push.apply(this.parent.children,Q),this},P.prototype.declaration=function(N,$,et){var Q,ot;return Q=this.document(),ot=new a(Q,N,$,et),Q.children.length===0?Q.children.unshift(ot):Q.children[0].type===v.Declaration?Q.children[0]=ot:Q.children.unshift(ot),Q.root()||Q},P.prototype.dtd=function(N,$){var et,Q,ot,t,n,r,i,e,o;for(et=this.document(),Q=new p(et,N,$),ot=t=0,r=(e=et.children).length;t<r;ot=++t)if(e[ot].type===v.DocType)return et.children[ot]=Q,Q;for(ot=n=0,i=(o=et.children).length;n<i;ot=++n)if(o[ot].isRoot)return et.children.splice(ot,0,Q),Q;return et.children.push(Q),Q},P.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},P.prototype.root=function(){var N;for(N=this;N;){if(N.type===v.Document)return N.rootObject;if(N.isRoot)return N;N=N.parent}},P.prototype.document=function(){var N;for(N=this;N;){if(N.type===v.Document)return N;N=N.parent}},P.prototype.end=function(N){return this.document().end(N)},P.prototype.prev=function(){var N;if((N=this.parent.children.indexOf(this))<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[N-1]},P.prototype.next=function(){var N;if((N=this.parent.children.indexOf(this))===-1||N===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[N+1]},P.prototype.importDocument=function(N){var $;return($=N.root().clone()).parent=this,$.isRoot=!1,this.children.push($),this},P.prototype.debugInfo=function(N){var $,et;return(N=N||this.name)!=null||($=this.parent)!=null&&$.name?N==null?"parent: <"+this.parent.name+">":(et=this.parent)!=null&&et.name?"node: <"+N+">, parent: <"+this.parent.name+">":"node: <"+N+">":""},P.prototype.ele=function(N,$,et){return this.element(N,$,et)},P.prototype.nod=function(N,$,et){return this.node(N,$,et)},P.prototype.txt=function(N){return this.text(N)},P.prototype.dat=function(N){return this.cdata(N)},P.prototype.com=function(N){return this.comment(N)},P.prototype.ins=function(N,$){return this.instruction(N,$)},P.prototype.doc=function(){return this.document()},P.prototype.dec=function(N,$,et){return this.declaration(N,$,et)},P.prototype.e=function(N,$,et){return this.element(N,$,et)},P.prototype.n=function(N,$,et){return this.node(N,$,et)},P.prototype.t=function(N){return this.text(N)},P.prototype.d=function(N){return this.cdata(N)},P.prototype.c=function(N){return this.comment(N)},P.prototype.r=function(N){return this.raw(N)},P.prototype.i=function(N,$){return this.instruction(N,$)},P.prototype.u=function(){return this.up()},P.prototype.importXMLBuilder=function(N){return this.importDocument(N)},P.prototype.replaceChild=function(N,$){throw new Error("This DOM method is not implemented."+this.debugInfo())},P.prototype.removeChild=function(N){throw new Error("This DOM method is not implemented."+this.debugInfo())},P.prototype.appendChild=function(N){throw new Error("This DOM method is not implemented."+this.debugInfo())},P.prototype.hasChildNodes=function(){return this.children.length!==0},P.prototype.cloneNode=function(N){throw new Error("This DOM method is not implemented."+this.debugInfo())},P.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},P.prototype.isSupported=function(N,$){return!0},P.prototype.hasAttributes=function(){return this.attribs.length!==0},P.prototype.compareDocumentPosition=function(N){var $,et;return($=this)===N?0:this.document()!==N.document()?(et=x.Disconnected|x.ImplementationSpecific,Math.random()<.5?et|=x.Preceding:et|=x.Following,et):$.isAncestor(N)?x.Contains|x.Preceding:$.isDescendant(N)?x.Contains|x.Following:$.isPreceding(N)?x.Preceding:x.Following},P.prototype.isSameNode=function(N){throw new Error("This DOM method is not implemented."+this.debugInfo())},P.prototype.lookupPrefix=function(N){throw new Error("This DOM method is not implemented."+this.debugInfo())},P.prototype.isDefaultNamespace=function(N){throw new Error("This DOM method is not implemented."+this.debugInfo())},P.prototype.lookupNamespaceURI=function(N){throw new Error("This DOM method is not implemented."+this.debugInfo())},P.prototype.isEqualNode=function(N){var $,et,Q;if(N.nodeType!==this.nodeType||N.children.length!==this.children.length)return!1;for($=et=0,Q=this.children.length-1;0<=Q?et<=Q:et>=Q;$=0<=Q?++et:--et)if(!this.children[$].isEqualNode(N.children[$]))return!1;return!0},P.prototype.getFeature=function(N,$){throw new Error("This DOM method is not implemented."+this.debugInfo())},P.prototype.setUserData=function(N,$,et){throw new Error("This DOM method is not implemented."+this.debugInfo())},P.prototype.getUserData=function(N){throw new Error("This DOM method is not implemented."+this.debugInfo())},P.prototype.contains=function(N){return!!N&&(N===this||this.isDescendant(N))},P.prototype.isDescendant=function(N){var $,et,Q,ot;for(et=0,Q=(ot=this.children).length;et<Q;et++)if(N===($=ot[et])||$.isDescendant(N))return!0;return!1},P.prototype.isAncestor=function(N){return N.isDescendant(this)},P.prototype.isPreceding=function(N){var $,et;return $=this.treePosition(N),et=this.treePosition(this),$!==-1&&et!==-1&&$<et},P.prototype.isFollowing=function(N){var $,et;return $=this.treePosition(N),et=this.treePosition(this),$!==-1&&et!==-1&&$>et},P.prototype.treePosition=function(N){var $,et;return et=0,$=!1,this.foreachTreeNode(this.document(),function(Q){if(et++,!$&&Q===N)return $=!0}),$?et:-1},P.prototype.foreachTreeNode=function(N,$){var et,Q,ot,t,n;for(N||(N=this.document()),Q=0,ot=(t=N.children).length;Q<ot;Q++)if((n=$(et=t[Q]))||(n=this.foreachTreeNode(et,$)))return n},P}()}).call(this)},2390:function(W){(function(){W.exports=function(){function _(y){this.nodes=y}return Object.defineProperty(_.prototype,"length",{get:function(){return this.nodes.length||0}}),_.prototype.clone=function(){return this.nodes=null},_.prototype.item=function(y){return this.nodes[y]||null},_}()}).call(this)},9181:function(W,_,y){(function(){var x,v,m={}.hasOwnProperty;x=y(9335),v=y(6488),W.exports=function(S){function a(p,c,l){if(a.__super__.constructor.call(this,p),c==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=x.ProcessingInstruction,this.target=this.stringify.insTarget(c),this.name=this.target,l&&(this.value=this.stringify.insValue(l))}return function(p,c){for(var l in c)m.call(c,l)&&(p[l]=c[l]);function f(){this.constructor=p}f.prototype=c.prototype,p.prototype=new f,p.__super__=c.prototype}(a,S),a.prototype.clone=function(){return Object.create(this)},a.prototype.toString=function(p){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(p))},a.prototype.isEqualNode=function(p){return!!a.__super__.isEqualNode.apply(this,arguments).isEqualNode(p)&&p.target===this.target},a}(v)}).call(this)},9406:function(W,_,y){(function(){var x,v,m={}.hasOwnProperty;x=y(9335),v=y(2026),W.exports=function(S){function a(p,c){if(a.__super__.constructor.call(this,p),c==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=x.Raw,this.value=this.stringify.raw(c)}return function(p,c){for(var l in c)m.call(c,l)&&(p[l]=c[l]);function f(){this.constructor=p}f.prototype=c.prototype,p.prototype=new f,p.__super__=c.prototype}(a,S),a.prototype.clone=function(){return Object.create(this)},a.prototype.toString=function(p){return this.options.writer.raw(this,this.options.writer.filterOptions(p))},a}(v)}).call(this)},1996:function(W,_,y){(function(){var x,v,m,S={}.hasOwnProperty;x=y(9335),m=y(751),v=y(594),W.exports=function(a){function p(c,l){this.stream=c,p.__super__.constructor.call(this,l)}return function(c,l){for(var f in l)S.call(l,f)&&(c[f]=l[f]);function g(){this.constructor=c}g.prototype=l.prototype,c.prototype=new g,c.__super__=l.prototype}(p,a),p.prototype.endline=function(c,l,f){return c.isLastRootNode&&l.state===v.CloseTag?"":p.__super__.endline.call(this,c,l,f)},p.prototype.document=function(c,l){var f,g,h,u,w,b,E,I,M;for(g=h=0,w=(E=c.children).length;h<w;g=++h)(f=E[g]).isLastRootNode=g===c.children.length-1;for(l=this.filterOptions(l),M=[],u=0,b=(I=c.children).length;u<b;u++)f=I[u],M.push(this.writeChildNode(f,l,0));return M},p.prototype.attribute=function(c,l,f){return this.stream.write(p.__super__.attribute.call(this,c,l,f))},p.prototype.cdata=function(c,l,f){return this.stream.write(p.__super__.cdata.call(this,c,l,f))},p.prototype.comment=function(c,l,f){return this.stream.write(p.__super__.comment.call(this,c,l,f))},p.prototype.declaration=function(c,l,f){return this.stream.write(p.__super__.declaration.call(this,c,l,f))},p.prototype.docType=function(c,l,f){var g,h,u,w;if(f||(f=0),this.openNode(c,l,f),l.state=v.OpenTag,this.stream.write(this.indent(c,l,f)),this.stream.write("<!DOCTYPE "+c.root().name),c.pubID&&c.sysID?this.stream.write(' PUBLIC "'+c.pubID+'" "'+c.sysID+'"'):c.sysID&&this.stream.write(' SYSTEM "'+c.sysID+'"'),c.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(c,l,f)),l.state=v.InsideTag,h=0,u=(w=c.children).length;h<u;h++)g=w[h],this.writeChildNode(g,l,f+1);l.state=v.CloseTag,this.stream.write("]")}return l.state=v.CloseTag,this.stream.write(l.spaceBeforeSlash+">"),this.stream.write(this.endline(c,l,f)),l.state=v.None,this.closeNode(c,l,f)},p.prototype.element=function(c,l,f){var g,h,u,w,b,E,I,M,B;for(I in f||(f=0),this.openNode(c,l,f),l.state=v.OpenTag,this.stream.write(this.indent(c,l,f)+"<"+c.name),M=c.attribs)S.call(M,I)&&(g=M[I],this.attribute(g,l,f));if(w=(u=c.children.length)===0?null:c.children[0],u===0||c.children.every(function(P){return(P.type===x.Text||P.type===x.Raw)&&P.value===""}))l.allowEmpty?(this.stream.write(">"),l.state=v.CloseTag,this.stream.write("</"+c.name+">")):(l.state=v.CloseTag,this.stream.write(l.spaceBeforeSlash+"/>"));else if(!l.pretty||u!==1||w.type!==x.Text&&w.type!==x.Raw||w.value==null){for(this.stream.write(">"+this.endline(c,l,f)),l.state=v.InsideTag,b=0,E=(B=c.children).length;b<E;b++)h=B[b],this.writeChildNode(h,l,f+1);l.state=v.CloseTag,this.stream.write(this.indent(c,l,f)+"</"+c.name+">")}else this.stream.write(">"),l.state=v.InsideTag,l.suppressPrettyCount++,this.writeChildNode(w,l,f+1),l.suppressPrettyCount--,l.state=v.CloseTag,this.stream.write("</"+c.name+">");return this.stream.write(this.endline(c,l,f)),l.state=v.None,this.closeNode(c,l,f)},p.prototype.processingInstruction=function(c,l,f){return this.stream.write(p.__super__.processingInstruction.call(this,c,l,f))},p.prototype.raw=function(c,l,f){return this.stream.write(p.__super__.raw.call(this,c,l,f))},p.prototype.text=function(c,l,f){return this.stream.write(p.__super__.text.call(this,c,l,f))},p.prototype.dtdAttList=function(c,l,f){return this.stream.write(p.__super__.dtdAttList.call(this,c,l,f))},p.prototype.dtdElement=function(c,l,f){return this.stream.write(p.__super__.dtdElement.call(this,c,l,f))},p.prototype.dtdEntity=function(c,l,f){return this.stream.write(p.__super__.dtdEntity.call(this,c,l,f))},p.prototype.dtdNotation=function(c,l,f){return this.stream.write(p.__super__.dtdNotation.call(this,c,l,f))},p}(m)}).call(this)},6434:function(W,_,y){(function(){var x,v={}.hasOwnProperty;x=y(751),W.exports=function(m){function S(a){S.__super__.constructor.call(this,a)}return function(a,p){for(var c in p)v.call(p,c)&&(a[c]=p[c]);function l(){this.constructor=a}l.prototype=p.prototype,a.prototype=new l,a.__super__=p.prototype}(S,m),S.prototype.document=function(a,p){var c,l,f,g,h;for(p=this.filterOptions(p),g="",l=0,f=(h=a.children).length;l<f;l++)c=h[l],g+=this.writeChildNode(c,p,0);return p.pretty&&g.slice(-p.newline.length)===p.newline&&(g=g.slice(0,-p.newline.length)),g},S}(x)}).call(this)},5549:function(W){(function(){var _=function(x,v){return function(){return x.apply(v,arguments)}},y={}.hasOwnProperty;W.exports=function(){function x(v){var m,S,a;for(m in this.assertLegalName=_(this.assertLegalName,this),this.assertLegalChar=_(this.assertLegalChar,this),v||(v={}),this.options=v,this.options.version||(this.options.version="1.0"),S=v.stringify||{})y.call(S,m)&&(a=S[m],this[m]=a)}return x.prototype.name=function(v){return this.options.noValidation?v:this.assertLegalName(""+v||"")},x.prototype.text=function(v){return this.options.noValidation?v:this.assertLegalChar(this.textEscape(""+v||""))},x.prototype.cdata=function(v){return this.options.noValidation?v:(v=(v=""+v||"").replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(v))},x.prototype.comment=function(v){if(this.options.noValidation)return v;if((v=""+v||"").match(/--/))throw new Error("Comment text cannot contain double-hypen: "+v);return this.assertLegalChar(v)},x.prototype.raw=function(v){return this.options.noValidation?v:""+v||""},x.prototype.attValue=function(v){return this.options.noValidation?v:this.assertLegalChar(this.attEscape(v=""+v||""))},x.prototype.insTarget=function(v){return this.options.noValidation?v:this.assertLegalChar(""+v||"")},x.prototype.insValue=function(v){if(this.options.noValidation)return v;if((v=""+v||"").match(/\?>/))throw new Error("Invalid processing instruction value: "+v);return this.assertLegalChar(v)},x.prototype.xmlVersion=function(v){if(this.options.noValidation)return v;if(!(v=""+v||"").match(/1\.[0-9]+/))throw new Error("Invalid version number: "+v);return v},x.prototype.xmlEncoding=function(v){if(this.options.noValidation)return v;if(!(v=""+v||"").match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+v);return this.assertLegalChar(v)},x.prototype.xmlStandalone=function(v){return this.options.noValidation?v:v?"yes":"no"},x.prototype.dtdPubID=function(v){return this.options.noValidation?v:this.assertLegalChar(""+v||"")},x.prototype.dtdSysID=function(v){return this.options.noValidation?v:this.assertLegalChar(""+v||"")},x.prototype.dtdElementValue=function(v){return this.options.noValidation?v:this.assertLegalChar(""+v||"")},x.prototype.dtdAttType=function(v){return this.options.noValidation?v:this.assertLegalChar(""+v||"")},x.prototype.dtdAttDefault=function(v){return this.options.noValidation?v:this.assertLegalChar(""+v||"")},x.prototype.dtdEntityValue=function(v){return this.options.noValidation?v:this.assertLegalChar(""+v||"")},x.prototype.dtdNData=function(v){return this.options.noValidation?v:this.assertLegalChar(""+v||"")},x.prototype.convertAttKey="@",x.prototype.convertPIKey="?",x.prototype.convertTextKey="#text",x.prototype.convertCDataKey="#cdata",x.prototype.convertCommentKey="#comment",x.prototype.convertRawKey="#raw",x.prototype.assertLegalChar=function(v){var m,S;if(this.options.noValidation)return v;if(m="",this.options.version==="1.0"){if(m=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,S=v.match(m))throw new Error("Invalid character in string: "+v+" at index "+S.index)}else if(this.options.version==="1.1"&&(m=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,S=v.match(m)))throw new Error("Invalid character in string: "+v+" at index "+S.index);return v},x.prototype.assertLegalName=function(v){var m;if(this.options.noValidation)return v;if(this.assertLegalChar(v),m=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!v.match(m))throw new Error("Invalid character in name");return v},x.prototype.textEscape=function(v){var m;return this.options.noValidation?v:(m=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,v.replace(m,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
"))},x.prototype.attEscape=function(v){var m;return this.options.noValidation?v:(m=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,v.replace(m,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
"))},x}()}).call(this)},3595:function(W,_,y){(function(){var x,v,m={}.hasOwnProperty;x=y(9335),v=y(6488),W.exports=function(S){function a(p,c){if(a.__super__.constructor.call(this,p),c==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=x.Text,this.value=this.stringify.text(c)}return function(p,c){for(var l in c)m.call(c,l)&&(p[l]=c[l]);function f(){this.constructor=p}f.prototype=c.prototype,p.prototype=new f,p.__super__=c.prototype}(a,S),Object.defineProperty(a.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(a.prototype,"wholeText",{get:function(){var p,c,l;for(l="",c=this.previousSibling;c;)l=c.data+l,c=c.previousSibling;for(l+=this.data,p=this.nextSibling;p;)l+=p.data,p=p.nextSibling;return l}}),a.prototype.clone=function(){return Object.create(this)},a.prototype.toString=function(p){return this.options.writer.text(this,this.options.writer.filterOptions(p))},a.prototype.splitText=function(p){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.replaceWholeText=function(p){throw new Error("This DOM method is not implemented."+this.debugInfo())},a}(v)}).call(this)},751:function(W,_,y){(function(){var x,v,m,S={}.hasOwnProperty;m=y(8369).assign,x=y(9335),y(9077),y(6544),y(6170),y(2096),y(2161),y(9406),y(3595),y(9181),y(8833),y(1179),y(6347),y(9078),y(4777),v=y(594),W.exports=function(){function a(p){var c,l,f;for(c in p||(p={}),this.options=p,l=p.writer||{})S.call(l,c)&&(f=l[c],this["_"+c]=this[c],this[c]=f)}return a.prototype.filterOptions=function(p){var c,l,f,g,h,u,w,b;return p||(p={}),p=m({},this.options,p),(c={writer:this}).pretty=p.pretty||!1,c.allowEmpty=p.allowEmpty||!1,c.indent=(l=p.indent)!=null?l:" ",c.newline=(f=p.newline)!=null?f:`
|
|
129
|
+
`,c.offset=(g=p.offset)!=null?g:0,c.dontPrettyTextNodes=(h=(u=p.dontPrettyTextNodes)!=null?u:p.dontprettytextnodes)!=null?h:0,c.spaceBeforeSlash=(w=(b=p.spaceBeforeSlash)!=null?b:p.spacebeforeslash)!=null?w:"",c.spaceBeforeSlash===!0&&(c.spaceBeforeSlash=" "),c.suppressPrettyCount=0,c.user={},c.state=v.None,c},a.prototype.indent=function(p,c,l){var f;return!c.pretty||c.suppressPrettyCount?"":c.pretty&&(f=(l||0)+c.offset+1)>0?new Array(f).join(c.indent):""},a.prototype.endline=function(p,c,l){return!c.pretty||c.suppressPrettyCount?"":c.newline},a.prototype.attribute=function(p,c,l){var f;return this.openAttribute(p,c,l),f=" "+p.name+'="'+p.value+'"',this.closeAttribute(p,c,l),f},a.prototype.cdata=function(p,c,l){var f;return this.openNode(p,c,l),c.state=v.OpenTag,f=this.indent(p,c,l)+"<![CDATA[",c.state=v.InsideTag,f+=p.value,c.state=v.CloseTag,f+="]]>"+this.endline(p,c,l),c.state=v.None,this.closeNode(p,c,l),f},a.prototype.comment=function(p,c,l){var f;return this.openNode(p,c,l),c.state=v.OpenTag,f=this.indent(p,c,l)+"<!-- ",c.state=v.InsideTag,f+=p.value,c.state=v.CloseTag,f+=" -->"+this.endline(p,c,l),c.state=v.None,this.closeNode(p,c,l),f},a.prototype.declaration=function(p,c,l){var f;return this.openNode(p,c,l),c.state=v.OpenTag,f=this.indent(p,c,l)+"<?xml",c.state=v.InsideTag,f+=' version="'+p.version+'"',p.encoding!=null&&(f+=' encoding="'+p.encoding+'"'),p.standalone!=null&&(f+=' standalone="'+p.standalone+'"'),c.state=v.CloseTag,f+=c.spaceBeforeSlash+"?>",f+=this.endline(p,c,l),c.state=v.None,this.closeNode(p,c,l),f},a.prototype.docType=function(p,c,l){var f,g,h,u,w;if(l||(l=0),this.openNode(p,c,l),c.state=v.OpenTag,u=this.indent(p,c,l),u+="<!DOCTYPE "+p.root().name,p.pubID&&p.sysID?u+=' PUBLIC "'+p.pubID+'" "'+p.sysID+'"':p.sysID&&(u+=' SYSTEM "'+p.sysID+'"'),p.children.length>0){for(u+=" [",u+=this.endline(p,c,l),c.state=v.InsideTag,g=0,h=(w=p.children).length;g<h;g++)f=w[g],u+=this.writeChildNode(f,c,l+1);c.state=v.CloseTag,u+="]"}return c.state=v.CloseTag,u+=c.spaceBeforeSlash+">",u+=this.endline(p,c,l),c.state=v.None,this.closeNode(p,c,l),u},a.prototype.element=function(p,c,l){var f,g,h,u,w,b,E,I,M,B,P,N,$,et;for(M in l||(l=0),B=!1,P="",this.openNode(p,c,l),c.state=v.OpenTag,P+=this.indent(p,c,l)+"<"+p.name,N=p.attribs)S.call(N,M)&&(f=N[M],P+=this.attribute(f,c,l));if(u=(h=p.children.length)===0?null:p.children[0],h===0||p.children.every(function(Q){return(Q.type===x.Text||Q.type===x.Raw)&&Q.value===""}))c.allowEmpty?(P+=">",c.state=v.CloseTag,P+="</"+p.name+">"+this.endline(p,c,l)):(c.state=v.CloseTag,P+=c.spaceBeforeSlash+"/>"+this.endline(p,c,l));else if(!c.pretty||h!==1||u.type!==x.Text&&u.type!==x.Raw||u.value==null){if(c.dontPrettyTextNodes){for(w=0,E=($=p.children).length;w<E;w++)if(((g=$[w]).type===x.Text||g.type===x.Raw)&&g.value!=null){c.suppressPrettyCount++,B=!0;break}}for(P+=">"+this.endline(p,c,l),c.state=v.InsideTag,b=0,I=(et=p.children).length;b<I;b++)g=et[b],P+=this.writeChildNode(g,c,l+1);c.state=v.CloseTag,P+=this.indent(p,c,l)+"</"+p.name+">",B&&c.suppressPrettyCount--,P+=this.endline(p,c,l),c.state=v.None}else P+=">",c.state=v.InsideTag,c.suppressPrettyCount++,B=!0,P+=this.writeChildNode(u,c,l+1),c.suppressPrettyCount--,B=!1,c.state=v.CloseTag,P+="</"+p.name+">"+this.endline(p,c,l);return this.closeNode(p,c,l),P},a.prototype.writeChildNode=function(p,c,l){switch(p.type){case x.CData:return this.cdata(p,c,l);case x.Comment:return this.comment(p,c,l);case x.Element:return this.element(p,c,l);case x.Raw:return this.raw(p,c,l);case x.Text:return this.text(p,c,l);case x.ProcessingInstruction:return this.processingInstruction(p,c,l);case x.Dummy:return"";case x.Declaration:return this.declaration(p,c,l);case x.DocType:return this.docType(p,c,l);case x.AttributeDeclaration:return this.dtdAttList(p,c,l);case x.ElementDeclaration:return this.dtdElement(p,c,l);case x.EntityDeclaration:return this.dtdEntity(p,c,l);case x.NotationDeclaration:return this.dtdNotation(p,c,l);default:throw new Error("Unknown XML node type: "+p.constructor.name)}},a.prototype.processingInstruction=function(p,c,l){var f;return this.openNode(p,c,l),c.state=v.OpenTag,f=this.indent(p,c,l)+"<?",c.state=v.InsideTag,f+=p.target,p.value&&(f+=" "+p.value),c.state=v.CloseTag,f+=c.spaceBeforeSlash+"?>",f+=this.endline(p,c,l),c.state=v.None,this.closeNode(p,c,l),f},a.prototype.raw=function(p,c,l){var f;return this.openNode(p,c,l),c.state=v.OpenTag,f=this.indent(p,c,l),c.state=v.InsideTag,f+=p.value,c.state=v.CloseTag,f+=this.endline(p,c,l),c.state=v.None,this.closeNode(p,c,l),f},a.prototype.text=function(p,c,l){var f;return this.openNode(p,c,l),c.state=v.OpenTag,f=this.indent(p,c,l),c.state=v.InsideTag,f+=p.value,c.state=v.CloseTag,f+=this.endline(p,c,l),c.state=v.None,this.closeNode(p,c,l),f},a.prototype.dtdAttList=function(p,c,l){var f;return this.openNode(p,c,l),c.state=v.OpenTag,f=this.indent(p,c,l)+"<!ATTLIST",c.state=v.InsideTag,f+=" "+p.elementName+" "+p.attributeName+" "+p.attributeType,p.defaultValueType!=="#DEFAULT"&&(f+=" "+p.defaultValueType),p.defaultValue&&(f+=' "'+p.defaultValue+'"'),c.state=v.CloseTag,f+=c.spaceBeforeSlash+">"+this.endline(p,c,l),c.state=v.None,this.closeNode(p,c,l),f},a.prototype.dtdElement=function(p,c,l){var f;return this.openNode(p,c,l),c.state=v.OpenTag,f=this.indent(p,c,l)+"<!ELEMENT",c.state=v.InsideTag,f+=" "+p.name+" "+p.value,c.state=v.CloseTag,f+=c.spaceBeforeSlash+">"+this.endline(p,c,l),c.state=v.None,this.closeNode(p,c,l),f},a.prototype.dtdEntity=function(p,c,l){var f;return this.openNode(p,c,l),c.state=v.OpenTag,f=this.indent(p,c,l)+"<!ENTITY",c.state=v.InsideTag,p.pe&&(f+=" %"),f+=" "+p.name,p.value?f+=' "'+p.value+'"':(p.pubID&&p.sysID?f+=' PUBLIC "'+p.pubID+'" "'+p.sysID+'"':p.sysID&&(f+=' SYSTEM "'+p.sysID+'"'),p.nData&&(f+=" NDATA "+p.nData)),c.state=v.CloseTag,f+=c.spaceBeforeSlash+">"+this.endline(p,c,l),c.state=v.None,this.closeNode(p,c,l),f},a.prototype.dtdNotation=function(p,c,l){var f;return this.openNode(p,c,l),c.state=v.OpenTag,f=this.indent(p,c,l)+"<!NOTATION",c.state=v.InsideTag,f+=" "+p.name,p.pubID&&p.sysID?f+=' PUBLIC "'+p.pubID+'" "'+p.sysID+'"':p.pubID?f+=' PUBLIC "'+p.pubID+'"':p.sysID&&(f+=' SYSTEM "'+p.sysID+'"'),c.state=v.CloseTag,f+=c.spaceBeforeSlash+">"+this.endline(p,c,l),c.state=v.None,this.closeNode(p,c,l),f},a.prototype.openNode=function(p,c,l){},a.prototype.closeNode=function(p,c,l){},a.prototype.openAttribute=function(p,c,l){},a.prototype.closeAttribute=function(p,c,l){},a}()}).call(this)},5532:function(W,_,y){(function(){var x,v,m,S,a,p,c,l,f,g;g=y(8369),l=g.assign,f=g.isFunction,m=y(1770),S=y(6934),a=y(9227),c=y(6434),p=y(1996),x=y(9335),v=y(594),W.exports.create=function(h,u,w,b){var E,I;if(h==null)throw new Error("Root element needs a name.");return b=l({},u,w,b),I=(E=new S(b)).element(h),b.headless||(E.declaration(b),b.pubID==null&&b.sysID==null||E.dtd(b)),I},W.exports.begin=function(h,u,w){var b;return f(h)&&(u=(b=[h,u])[0],w=b[1],h={}),u?new a(h,u,w):new S(h)},W.exports.stringWriter=function(h){return new c(h)},W.exports.streamWriter=function(h,u){return new p(h,u)},W.exports.implementation=new m,W.exports.nodeType=x,W.exports.writerState=v}).call(this)},7529:W=>{W.exports=function(){for(var y={},x=0;x<arguments.length;x++){var v=arguments[x];for(var m in v)_.call(v,m)&&(y[m]=v[m])}return y};var _=Object.prototype.hasOwnProperty},950:()=>{},6601:()=>{},9214:()=>{},8623:()=>{},7748:()=>{},5568:()=>{},6619:()=>{},4749:()=>{},3731:()=>{},7108:()=>{},2361:()=>{},4616:()=>{},3083:(W,_,y)=>{var x=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],v=typeof globalThis>"u"?y.g:globalThis;W.exports=function(){for(var m=[],S=0;S<x.length;S++)typeof v[x[S]]=="function"&&(m[m.length]=x[S]);return m}},1641:(W,_,y)=>{y.r(_),y.d(_,{all:()=>Ce,allLimit:()=>Pt,allSeries:()=>Ht,any:()=>ei,anyLimit:()=>ii,anySeries:()=>Ye,apply:()=>m,applyEach:()=>o,applyEachSeries:()=>C,asyncify:()=>h,auto:()=>R,autoInject:()=>G,cargo:()=>nt,cargoQueue:()=>ht,compose:()=>bt,concat:()=>It,concatLimit:()=>Mt,concatSeries:()=>J,constant:()=>tt,default:()=>Eo,detect:()=>H,detectLimit:()=>U,detectSeries:()=>it,dir:()=>ft,doDuring:()=>mt,doUntil:()=>re,doWhilst:()=>mt,during:()=>Hr,each:()=>At,eachLimit:()=>fe,eachOf:()=>i,eachOfLimit:()=>t,eachOfSeries:()=>s,eachSeries:()=>kt,ensureAsync:()=>Kt,every:()=>Ce,everyLimit:()=>Pt,everySeries:()=>Ht,filter:()=>ye,filterLimit:()=>Nt,filterSeries:()=>Xt,find:()=>H,findLimit:()=>U,findSeries:()=>it,flatMap:()=>It,flatMapLimit:()=>Mt,flatMapSeries:()=>J,foldl:()=>Et,foldr:()=>Re,forEach:()=>At,forEachLimit:()=>fe,forEachOf:()=>i,forEachOfLimit:()=>t,forEachOfSeries:()=>s,forEachSeries:()=>kt,forever:()=>ke,groupBy:()=>Zt,groupByLimit:()=>jt,groupBySeries:()=>Oe,inject:()=>Et,log:()=>Dt,map:()=>e,mapLimit:()=>Bt,mapSeries:()=>A,mapValues:()=>De,mapValuesLimit:()=>Jt,mapValuesSeries:()=>Lt,memoize:()=>Qt,nextTick:()=>ze,parallel:()=>Yt,parallelLimit:()=>$e,priorityQueue:()=>te,queue:()=>qt,race:()=>Ae,reduce:()=>Et,reduceRight:()=>Re,reflect:()=>Ke,reflectAll:()=>ai,reject:()=>si,rejectLimit:()=>ui,rejectSeries:()=>ci,retry:()=>Je,retryable:()=>pi,select:()=>ye,selectLimit:()=>Nt,selectSeries:()=>Xt,seq:()=>gt,series:()=>gi,setImmediate:()=>g,some:()=>ei,someLimit:()=>ii,someSeries:()=>Ye,sortBy:()=>di,timeout:()=>ni,times:()=>er,timesLimit:()=>cr,timesSeries:()=>Ln,transform:()=>Dn,tryEach:()=>So,unmemoize:()=>Un,until:()=>qn,waterfall:()=>Fn,whilst:()=>Hr,wrapSync:()=>h});var x=y(4155),v=y(5108);function m(xt,...vt){return(...wt)=>xt(...vt,...wt)}function S(xt){return function(...vt){var wt=vt.pop();return xt.call(this,vt,wt)}}var a=typeof queueMicrotask=="function"&&queueMicrotask,p=typeof setImmediate=="function"&&setImmediate,c=typeof x=="object"&&typeof x.nextTick=="function";function l(xt){setTimeout(xt,0)}function f(xt){return(vt,...wt)=>xt(()=>vt(...wt))}var g=f(a?queueMicrotask:p?setImmediate:c?x.nextTick:l);function h(xt){return b(xt)?function(...vt){const wt=vt.pop();return u(xt.apply(this,vt),wt)}:S(function(vt,wt){var Tt;try{Tt=xt.apply(this,vt)}catch(Vt){return wt(Vt)}if(Tt&&typeof Tt.then=="function")return u(Tt,wt);wt(null,Tt)})}function u(xt,vt){return xt.then(wt=>{w(vt,null,wt)},wt=>{w(vt,wt&&wt.message?wt:new Error(wt))})}function w(xt,vt,wt){try{xt(vt,wt)}catch(Tt){g(Vt=>{throw Vt},Tt)}}function b(xt){return xt[Symbol.toStringTag]==="AsyncFunction"}function E(xt){if(typeof xt!="function")throw new Error("expected a function");return b(xt)?h(xt):xt}function I(xt,vt=xt.length){if(!vt)throw new Error("arity is undefined");return function(...wt){return typeof wt[vt-1]=="function"?xt.apply(this,wt):new Promise((Tt,Vt)=>{wt[vt-1]=(zt,...Gt)=>{if(zt)return Vt(zt);Tt(Gt.length>1?Gt:Gt[0])},xt.apply(this,wt)})}}function M(xt){return function(vt,...wt){return I(function(Tt){var Vt=this;return xt(vt,(zt,Gt)=>{E(zt).apply(Vt,wt.concat(Gt))},Tt)})}}function B(xt,vt,wt,Tt){vt=vt||[];var Vt=[],zt=0,Gt=E(wt);return xt(vt,(ie,ce,xe)=>{var Se=zt++;Gt(ie,(ge,Ze)=>{Vt[Se]=Ze,xe(ge)})},ie=>{Tt(ie,Vt)})}function P(xt){return xt&&typeof xt.length=="number"&&xt.length>=0&&xt.length%1==0}const N={};function $(xt){function vt(...wt){if(xt!==null){var Tt=xt;xt=null,Tt.apply(this,wt)}}return Object.assign(vt,xt),vt}function et(xt){return function(...vt){if(xt===null)throw new Error("Callback was already called.");var wt=xt;xt=null,wt.apply(this,vt)}}function Q(xt,vt,wt,Tt){let Vt=!1,zt=!1,Gt=!1,ie=0,ce=0;function xe(){ie>=vt||Gt||Vt||(Gt=!0,xt.next().then(({value:Ze,done:Ge})=>{if(!zt&&!Vt){if(Gt=!1,Ge)return Vt=!0,void(ie<=0&&Tt(null));ie++,wt(Ze,ce,Se),ce++,xe()}}).catch(ge))}function Se(Ze,Ge){if(ie-=1,!zt)return Ze?ge(Ze):Ze===!1?(Vt=!0,void(zt=!0)):Ge===N||Vt&&ie<=0?(Vt=!0,Tt(null)):void xe()}function ge(Ze){zt||(Gt=!1,Vt=!0,Tt(Ze))}xe()}var ot=xt=>(vt,wt,Tt)=>{if(Tt=$(Tt),xt<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!vt)return Tt(null);if(vt[Symbol.toStringTag]==="AsyncGenerator")return Q(vt,xt,wt,Tt);if(function(ge){return typeof ge[Symbol.asyncIterator]=="function"}(vt))return Q(vt[Symbol.asyncIterator](),xt,wt,Tt);var Vt=function(ge){if(P(ge))return function(de){var Te=-1,mi=de.length;return function(){return++Te<mi?{value:de[Te],key:Te}:null}}(ge);var Ze,Ge,Hi,be,we=function(de){return de[Symbol.iterator]&&de[Symbol.iterator]()}(ge);return we?function(de){var Te=-1;return function(){var mi=de.next();return mi.done?null:(Te++,{value:mi.value,key:Te})}}(we):(Ge=(Ze=ge)?Object.keys(Ze):[],Hi=-1,be=Ge.length,function de(){var Te=Ge[++Hi];return Te==="__proto__"?de():Hi<be?{value:Ze[Te],key:Te}:null})}(vt),zt=!1,Gt=!1,ie=0,ce=!1;function xe(ge,Ze){if(!Gt)if(ie-=1,ge)zt=!0,Tt(ge);else if(ge===!1)zt=!0,Gt=!0;else{if(Ze===N||zt&&ie<=0)return zt=!0,Tt(null);ce||Se()}}function Se(){for(ce=!0;ie<xt&&!zt;){var ge=Vt();if(ge===null)return zt=!0,void(ie<=0&&Tt(null));ie+=1,wt(ge.value,ge.key,et(xe))}ce=!1}Se()},t=I(function(xt,vt,wt,Tt){return ot(vt)(xt,E(wt),Tt)},4);function n(xt,vt,wt){wt=$(wt);var Tt=0,Vt=0,{length:zt}=xt,Gt=!1;function ie(ce,xe){ce===!1&&(Gt=!0),Gt!==!0&&(ce?wt(ce):++Vt!==zt&&xe!==N||wt(null))}for(zt===0&&wt(null);Tt<zt;Tt++)vt(xt[Tt],Tt,et(ie))}function r(xt,vt,wt){return t(xt,1/0,vt,wt)}var i=I(function(xt,vt,wt){return(P(xt)?n:r)(xt,E(vt),wt)},3),e=I(function(xt,vt,wt){return B(i,xt,vt,wt)},3),o=M(e),s=I(function(xt,vt,wt){return t(xt,1,vt,wt)},3),A=I(function(xt,vt,wt){return B(s,xt,vt,wt)},3),C=M(A);const j=Symbol("promiseCallback");function T(){let xt,vt;function wt(Tt,...Vt){if(Tt)return vt(Tt);xt(Vt.length>1?Vt:Vt[0])}return wt[j]=new Promise((Tt,Vt)=>{xt=Tt,vt=Vt}),wt}function R(xt,vt,wt){typeof vt!="number"&&(wt=vt,vt=null),wt=$(wt||T());var Tt=Object.keys(xt).length;if(!Tt)return wt(null);vt||(vt=Tt);var Vt={},zt=0,Gt=!1,ie=!1,ce=Object.create(null),xe=[],Se=[],ge={};function Ze(be,we){xe.push(()=>function(de,Te){if(!ie){var mi=et((Oi,...wi)=>{if(zt--,Oi!==!1)if(wi.length<2&&([wi]=wi),Oi){var wr={};if(Object.keys(Vt).forEach(Wi=>{wr[Wi]=Vt[Wi]}),wr[de]=wi,ie=!0,ce=Object.create(null),Gt)return;wt(Oi,wr)}else Vt[de]=wi,(ce[de]||[]).forEach(Wi=>Wi()),Ge();else Gt=!0});zt++;var ki=E(Te[Te.length-1]);Te.length>1?ki(Vt,mi):ki(mi)}}(be,we))}function Ge(){if(!Gt){if(xe.length===0&&zt===0)return wt(null,Vt);for(;xe.length&&zt<vt;)xe.shift()()}}function Hi(be){var we=[];return Object.keys(xt).forEach(de=>{const Te=xt[de];Array.isArray(Te)&&Te.indexOf(be)>=0&&we.push(de)}),we}return Object.keys(xt).forEach(be=>{var we=xt[be];if(!Array.isArray(we))return Ze(be,[we]),void Se.push(be);var de=we.slice(0,we.length-1),Te=de.length;if(Te===0)return Ze(be,we),void Se.push(be);ge[be]=Te,de.forEach(mi=>{if(!xt[mi])throw new Error("async.auto task `"+be+"` has a non-existent dependency `"+mi+"` in "+de.join(", "));var ki,Oi;(Oi=ce[ki=mi])||(Oi=ce[ki]=[]),Oi.push(()=>{--Te==0&&Ze(be,we)})})}),function(){for(var be=0;Se.length;)be++,Hi(Se.pop()).forEach(we=>{--ge[we]==0&&Se.push(we)});if(be!==Tt)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}(),Ge(),wt[j]}var q=/^(?:async\s+)?(?:function)?\s*\w*\s*\(\s*([^)]+)\s*\)(?:\s*{)/,Z=/^(?:async\s+)?\(?\s*([^)=]+)\s*\)?(?:\s*=>)/,rt=/,/,D=/(=.+)?(\s*)$/;function G(xt,vt){var wt={};return Object.keys(xt).forEach(Tt=>{var Vt,zt=xt[Tt],Gt=b(zt),ie=!Gt&&zt.length===1||Gt&&zt.length===0;if(Array.isArray(zt))Vt=[...zt],zt=Vt.pop(),wt[Tt]=Vt.concat(Vt.length>0?ce:zt);else if(ie)wt[Tt]=zt;else{if(Vt=function(xe){const Se=function(Ge){let Hi="",be=0,we=Ge.indexOf("*/");for(;be<Ge.length;)if(Ge[be]==="/"&&Ge[be+1]==="/"){let de=Ge.indexOf(`
|
|
130
|
+
`,be);be=de===-1?Ge.length:de}else if(we!==-1&&Ge[be]==="/"&&Ge[be+1]==="*"){let de=Ge.indexOf("*/",be);de!==-1?(be=de+2,we=Ge.indexOf("*/",be)):(Hi+=Ge[be],be++)}else Hi+=Ge[be],be++;return Hi}(xe.toString());let ge=Se.match(q);if(ge||(ge=Se.match(Z)),!ge)throw new Error(`could not parse args in autoInject
|
|
131
|
+
Source:
|
|
132
|
+
`+Se);let[,Ze]=ge;return Ze.replace(/\s/g,"").split(rt).map(Ge=>Ge.replace(D,"").trim())}(zt),zt.length===0&&!Gt&&Vt.length===0)throw new Error("autoInject task functions require explicit parameters.");Gt||Vt.pop(),wt[Tt]=Vt.concat(ce)}function ce(xe,Se){var ge=Vt.map(Ze=>xe[Ze]);ge.push(Se),E(zt)(...ge)}}),R(wt,vt)}class z{constructor(){this.head=this.tail=null,this.length=0}removeLink(vt){return vt.prev?vt.prev.next=vt.next:this.head=vt.next,vt.next?vt.next.prev=vt.prev:this.tail=vt.prev,vt.prev=vt.next=null,this.length-=1,vt}empty(){for(;this.head;)this.shift();return this}insertAfter(vt,wt){wt.prev=vt,wt.next=vt.next,vt.next?vt.next.prev=wt:this.tail=wt,vt.next=wt,this.length+=1}insertBefore(vt,wt){wt.prev=vt.prev,wt.next=vt,vt.prev?vt.prev.next=wt:this.head=wt,vt.prev=wt,this.length+=1}unshift(vt){this.head?this.insertBefore(this.head,vt):X(this,vt)}push(vt){this.tail?this.insertAfter(this.tail,vt):X(this,vt)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var vt=this.head;vt;)yield vt.data,vt=vt.next}remove(vt){for(var wt=this.head;wt;){var{next:Tt}=wt;vt(wt)&&this.removeLink(wt),wt=Tt}return this}}function X(xt,vt){xt.length=1,xt.head=xt.tail=vt}function st(xt,vt,wt){if(vt==null)vt=1;else if(vt===0)throw new RangeError("Concurrency must not be zero");var Tt=E(xt),Vt=0,zt=[];const Gt={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function ie(we,de){return we?de?void(Gt[we]=Gt[we].filter(Te=>Te!==de)):Gt[we]=[]:Object.keys(Gt).forEach(Te=>Gt[Te]=[])}function ce(we,...de){Gt[we].forEach(Te=>Te(...de))}var xe=!1;function Se(we,de,Te,mi){if(mi!=null&&typeof mi!="function")throw new Error("task callback must be a function");var ki,Oi;function wi(Wi,...Or){return Wi?Te?Oi(Wi):ki():Or.length<=1?ki(Or[0]):void ki(Or)}be.started=!0;var wr=be._createTaskItem(we,Te?wi:mi||wi);if(de?be._tasks.unshift(wr):be._tasks.push(wr),xe||(xe=!0,g(()=>{xe=!1,be.process()})),Te||!mi)return new Promise((Wi,Or)=>{ki=Wi,Oi=Or})}function ge(we){return function(de,...Te){Vt-=1;for(var mi=0,ki=we.length;mi<ki;mi++){var Oi=we[mi],wi=zt.indexOf(Oi);wi===0?zt.shift():wi>0&&zt.splice(wi,1),Oi.callback(de,...Te),de!=null&&ce("error",de,Oi.data)}Vt<=be.concurrency-be.buffer&&ce("unsaturated"),be.idle()&&ce("drain"),be.process()}}function Ze(we){return!(we.length!==0||!be.idle()||(g(()=>ce("drain")),0))}const Ge=we=>de=>{if(!de)return new Promise((Te,mi)=>{(function(ki,Oi){const wi=(...wr)=>{ie(ki,wi),((Wi,Or)=>{if(Wi)return mi(Wi);Te(Or)})(...wr)};Gt[ki].push(wi)})(we)});ie(we),function(Te,mi){Gt[Te].push(mi)}(we,de)};var Hi=!1,be={_tasks:new z,_createTaskItem:(we,de)=>({data:we,callback:de}),*[Symbol.iterator](){yield*fp(be._tasks[Symbol.iterator]())},concurrency:vt,payload:wt,buffer:vt/4,started:!1,paused:!1,push(we,de){return Array.isArray(we)?Ze(we)?void 0:we.map(Te=>Se(Te,!1,!1,de)):Se(we,!1,!1,de)},pushAsync(we,de){return Array.isArray(we)?Ze(we)?void 0:we.map(Te=>Se(Te,!1,!0,de)):Se(we,!1,!0,de)},kill(){ie(),be._tasks.empty()},unshift(we,de){return Array.isArray(we)?Ze(we)?void 0:we.map(Te=>Se(Te,!0,!1,de)):Se(we,!0,!1,de)},unshiftAsync(we,de){return Array.isArray(we)?Ze(we)?void 0:we.map(Te=>Se(Te,!0,!0,de)):Se(we,!0,!0,de)},remove(we){be._tasks.remove(we)},process(){if(!Hi){for(Hi=!0;!be.paused&&Vt<be.concurrency&&be._tasks.length;){var we=[],de=[],Te=be._tasks.length;be.payload&&(Te=Math.min(Te,be.payload));for(var mi=0;mi<Te;mi++){var ki=be._tasks.shift();we.push(ki),zt.push(ki),de.push(ki.data)}Vt+=1,be._tasks.length===0&&ce("empty"),Vt===be.concurrency&&ce("saturated");var Oi=et(ge(we));Tt(de,Oi)}Hi=!1}},length:()=>be._tasks.length,running:()=>Vt,workersList:()=>zt,idle:()=>be._tasks.length+Vt===0,pause(){be.paused=!0},resume(){be.paused!==!1&&(be.paused=!1,g(be.process))}};return Object.defineProperties(be,{saturated:{writable:!1,value:Ge("saturated")},unsaturated:{writable:!1,value:Ge("unsaturated")},empty:{writable:!1,value:Ge("empty")},drain:{writable:!1,value:Ge("drain")},error:{writable:!1,value:Ge("error")}}),be}function nt(xt,vt){return st(xt,1,vt)}function ht(xt,vt,wt){return st(xt,vt,wt)}var Et=I(function(xt,vt,wt,Tt){Tt=$(Tt);var Vt=E(wt);return s(xt,(zt,Gt,ie)=>{Vt(vt,zt,(ce,xe)=>{vt=xe,ie(ce)})},zt=>Tt(zt,vt))},4);function gt(...xt){var vt=xt.map(E);return function(...wt){var Tt=this,Vt=wt[wt.length-1];return typeof Vt=="function"?wt.pop():Vt=T(),Et(vt,wt,(zt,Gt,ie)=>{Gt.apply(Tt,zt.concat((ce,...xe)=>{ie(ce,xe)}))},(zt,Gt)=>Vt(zt,...Gt)),Vt[j]}}function bt(...xt){return gt(...xt.reverse())}var Bt=I(function(xt,vt,wt,Tt){return B(ot(vt),xt,wt,Tt)},4),Mt=I(function(xt,vt,wt,Tt){var Vt=E(wt);return Bt(xt,vt,(zt,Gt)=>{Vt(zt,(ie,...ce)=>ie?Gt(ie):Gt(ie,ce))},(zt,Gt)=>{for(var ie=[],ce=0;ce<Gt.length;ce++)Gt[ce]&&(ie=ie.concat(...Gt[ce]));return Tt(zt,ie)})},4),It=I(function(xt,vt,wt){return Mt(xt,1/0,vt,wt)},3),J=I(function(xt,vt,wt){return Mt(xt,1,vt,wt)},3);function tt(...xt){return function(...vt){return vt.pop()(null,...xt)}}function F(xt,vt){return(wt,Tt,Vt,zt)=>{var Gt,ie=!1;const ce=E(Vt);wt(Tt,(xe,Se,ge)=>{ce(xe,(Ze,Ge)=>Ze||Ze===!1?ge(Ze):xt(Ge)&&!Gt?(ie=!0,Gt=vt(!0,xe),ge(null,N)):void ge())},xe=>{if(xe)return zt(xe);zt(null,ie?Gt:vt(!1))})}}var H=I(function(xt,vt,wt){return F(Tt=>Tt,(Tt,Vt)=>Vt)(i,xt,vt,wt)},3),U=I(function(xt,vt,wt,Tt){return F(Vt=>Vt,(Vt,zt)=>zt)(ot(vt),xt,wt,Tt)},4),it=I(function(xt,vt,wt){return F(Tt=>Tt,(Tt,Vt)=>Vt)(ot(1),xt,vt,wt)},3);function pt(xt){return(vt,...wt)=>E(vt)(...wt,(Tt,...Vt)=>{typeof v=="object"&&(Tt?v.error&&v.error(Tt):v[xt]&&Vt.forEach(zt=>v[xt](zt)))})}var ft=pt("dir"),mt=I(function(xt,vt,wt){wt=et(wt);var Tt,Vt=E(xt),zt=E(vt);function Gt(ce,...xe){if(ce)return wt(ce);ce!==!1&&(Tt=xe,zt(...xe,ie))}function ie(ce,xe){return ce?wt(ce):ce!==!1?xe?void Vt(Gt):wt(null,...Tt):void 0}return ie(null,!0)},3);function re(xt,vt,wt){const Tt=E(vt);return mt(xt,(...Vt)=>{const zt=Vt.pop();Tt(...Vt,(Gt,ie)=>zt(Gt,!ie))},wt)}function _t(xt){return(vt,wt,Tt)=>xt(vt,Tt)}var At=I(function(xt,vt,wt){return i(xt,_t(E(vt)),wt)},3),fe=I(function(xt,vt,wt,Tt){return ot(vt)(xt,_t(E(wt)),Tt)},4),kt=I(function(xt,vt,wt){return fe(xt,1,vt,wt)},3);function Kt(xt){return b(xt)?xt:function(...vt){var wt=vt.pop(),Tt=!0;vt.push((...Vt)=>{Tt?g(()=>wt(...Vt)):wt(...Vt)}),xt.apply(this,vt),Tt=!1}}var Ce=I(function(xt,vt,wt){return F(Tt=>!Tt,Tt=>!Tt)(i,xt,vt,wt)},3),Pt=I(function(xt,vt,wt,Tt){return F(Vt=>!Vt,Vt=>!Vt)(ot(vt),xt,wt,Tt)},4),Ht=I(function(xt,vt,wt){return F(Tt=>!Tt,Tt=>!Tt)(s,xt,vt,wt)},3);function je(xt,vt,wt,Tt){var Vt=new Array(vt.length);xt(vt,(zt,Gt,ie)=>{wt(zt,(ce,xe)=>{Vt[Gt]=!!xe,ie(ce)})},zt=>{if(zt)return Tt(zt);for(var Gt=[],ie=0;ie<vt.length;ie++)Vt[ie]&&Gt.push(vt[ie]);Tt(null,Gt)})}function Rt(xt,vt,wt,Tt){var Vt=[];xt(vt,(zt,Gt,ie)=>{wt(zt,(ce,xe)=>{if(ce)return ie(ce);xe&&Vt.push({index:Gt,value:zt}),ie(ce)})},zt=>{if(zt)return Tt(zt);Tt(null,Vt.sort((Gt,ie)=>Gt.index-ie.index).map(Gt=>Gt.value))})}function Wt(xt,vt,wt,Tt){return(P(vt)?je:Rt)(xt,vt,E(wt),Tt)}var ye=I(function(xt,vt,wt){return Wt(i,xt,vt,wt)},3),Nt=I(function(xt,vt,wt,Tt){return Wt(ot(vt),xt,wt,Tt)},4),Xt=I(function(xt,vt,wt){return Wt(s,xt,vt,wt)},3),ke=I(function(xt,vt){var wt=et(vt),Tt=E(Kt(xt));return function Vt(zt){if(zt)return wt(zt);zt!==!1&&Tt(Vt)}()},2),jt=I(function(xt,vt,wt,Tt){var Vt=E(wt);return Bt(xt,vt,(zt,Gt)=>{Vt(zt,(ie,ce)=>ie?Gt(ie):Gt(ie,{key:ce,val:zt}))},(zt,Gt)=>{for(var ie={},{hasOwnProperty:ce}=Object.prototype,xe=0;xe<Gt.length;xe++)if(Gt[xe]){var{key:Se}=Gt[xe],{val:ge}=Gt[xe];ce.call(ie,Se)?ie[Se].push(ge):ie[Se]=[ge]}return Tt(zt,ie)})},4);function Zt(xt,vt,wt){return jt(xt,1/0,vt,wt)}function Oe(xt,vt,wt){return jt(xt,1,vt,wt)}var Dt=pt("log"),Jt=I(function(xt,vt,wt,Tt){Tt=$(Tt);var Vt={},zt=E(wt);return ot(vt)(xt,(Gt,ie,ce)=>{zt(Gt,ie,(xe,Se)=>{if(xe)return ce(xe);Vt[ie]=Se,ce(xe)})},Gt=>Tt(Gt,Vt))},4);function De(xt,vt,wt){return Jt(xt,1/0,vt,wt)}function Lt(xt,vt,wt){return Jt(xt,1,vt,wt)}function Qt(xt,vt=wt=>wt){var wt=Object.create(null),Tt=Object.create(null),Vt=E(xt),zt=S((Gt,ie)=>{var ce=vt(...Gt);ce in wt?g(()=>ie(null,...wt[ce])):ce in Tt?Tt[ce].push(ie):(Tt[ce]=[ie],Vt(...Gt,(xe,...Se)=>{xe||(wt[ce]=Se);var ge=Tt[ce];delete Tt[ce];for(var Ze=0,Ge=ge.length;Ze<Ge;Ze++)ge[Ze](xe,...Se)}))});return zt.memo=wt,zt.unmemoized=xt,zt}var ze=f(c?x.nextTick:p?setImmediate:l),Ut=I((xt,vt,wt)=>{var Tt=P(vt)?[]:{};xt(vt,(Vt,zt,Gt)=>{E(Vt)((ie,...ce)=>{ce.length<2&&([ce]=ce),Tt[zt]=ce,Gt(ie)})},Vt=>wt(Vt,Tt))},3);function Yt(xt,vt){return Ut(i,xt,vt)}function $e(xt,vt,wt){return Ut(ot(vt),xt,wt)}function qt(xt,vt){var wt=E(xt);return st((Tt,Vt)=>{wt(Tt[0],Vt)},vt,1)}class ee{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(vt){let wt;for(;vt>0&&Ft(this.heap[vt],this.heap[wt=He(vt)]);){let Tt=this.heap[vt];this.heap[vt]=this.heap[wt],this.heap[wt]=Tt,vt=wt}}percDown(vt){let wt;for(;(wt=1+(vt<<1))<this.heap.length&&(wt+1<this.heap.length&&Ft(this.heap[wt+1],this.heap[wt])&&(wt+=1),!Ft(this.heap[vt],this.heap[wt]));){let Tt=this.heap[vt];this.heap[vt]=this.heap[wt],this.heap[wt]=Tt,vt=wt}}push(vt){vt.pushCount=++this.pushCount,this.heap.push(vt),this.percUp(this.heap.length-1)}unshift(vt){return this.heap.push(vt)}shift(){let[vt]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),vt}toArray(){return[...this]}*[Symbol.iterator](){for(let vt=0;vt<this.heap.length;vt++)yield this.heap[vt].data}remove(vt){let wt=0;for(let Tt=0;Tt<this.heap.length;Tt++)vt(this.heap[Tt])||(this.heap[wt]=this.heap[Tt],wt++);this.heap.splice(wt);for(let Tt=He(this.heap.length-1);Tt>=0;Tt--)this.percDown(Tt);return this}}function He(xt){return(xt+1>>1)-1}function Ft(xt,vt){return xt.priority!==vt.priority?xt.priority<vt.priority:xt.pushCount<vt.pushCount}function te(xt,vt){var wt=qt(xt,vt),{push:Tt,pushAsync:Vt}=wt;function zt(Gt,ie){return Array.isArray(Gt)?Gt.map(ce=>({data:ce,priority:ie})):{data:Gt,priority:ie}}return wt._tasks=new ee,wt._createTaskItem=({data:Gt,priority:ie},ce)=>({data:Gt,priority:ie,callback:ce}),wt.push=function(Gt,ie=0,ce){return Tt(zt(Gt,ie),ce)},wt.pushAsync=function(Gt,ie=0,ce){return Vt(zt(Gt,ie),ce)},delete wt.unshift,delete wt.unshiftAsync,wt}var Ae=I(function(xt,vt){if(vt=$(vt),!Array.isArray(xt))return vt(new TypeError("First argument to race must be an array of functions"));if(!xt.length)return vt();for(var wt=0,Tt=xt.length;wt<Tt;wt++)E(xt[wt])(vt)},2);function Re(xt,vt,wt,Tt){var Vt=[...xt].reverse();return Et(Vt,vt,wt,Tt)}function Ke(xt){var vt=E(xt);return S(function(wt,Tt){return wt.push((Vt,...zt)=>{let Gt={};if(Vt&&(Gt.error=Vt),zt.length>0){var ie=zt;zt.length<=1&&([ie]=zt),Gt.value=ie}Tt(null,Gt)}),vt.apply(this,wt)})}function ai(xt){var vt;return Array.isArray(xt)?vt=xt.map(Ke):(vt={},Object.keys(xt).forEach(wt=>{vt[wt]=Ke.call(this,xt[wt])})),vt}function ri(xt,vt,wt,Tt){const Vt=E(wt);return Wt(xt,vt,(zt,Gt)=>{Vt(zt,(ie,ce)=>{Gt(ie,!ce)})},Tt)}var si=I(function(xt,vt,wt){return ri(i,xt,vt,wt)},3),ui=I(function(xt,vt,wt,Tt){return ri(ot(vt),xt,wt,Tt)},4),ci=I(function(xt,vt,wt){return ri(s,xt,vt,wt)},3);function li(xt){return function(){return xt}}const hi=5,fi=0;function Je(xt,vt,wt){var Tt={times:hi,intervalFunc:li(fi)};if(arguments.length<3&&typeof xt=="function"?(wt=vt||T(),vt=xt):(function(Gt,ie){if(typeof ie=="object")Gt.times=+ie.times||hi,Gt.intervalFunc=typeof ie.interval=="function"?ie.interval:li(+ie.interval||fi),Gt.errorFilter=ie.errorFilter;else{if(typeof ie!="number"&&typeof ie!="string")throw new Error("Invalid arguments for async.retry");Gt.times=+ie||hi}}(Tt,xt),wt=wt||T()),typeof vt!="function")throw new Error("Invalid arguments for async.retry");var Vt=E(vt),zt=1;return function Gt(){Vt((ie,...ce)=>{ie!==!1&&(ie&&zt++<Tt.times&&(typeof Tt.errorFilter!="function"||Tt.errorFilter(ie))?setTimeout(Gt,Tt.intervalFunc(zt-1)):wt(ie,...ce))})}(),wt[j]}function pi(xt,vt){vt||(vt=xt,xt=null);let wt=xt&&xt.arity||vt.length;b(vt)&&(wt+=1);var Tt=E(vt);return S((Vt,zt)=>{function Gt(ie){Tt(...Vt,ie)}return(Vt.length<wt-1||zt==null)&&(Vt.push(zt),zt=T()),xt?Je(xt,Gt,zt):Je(Gt,zt),zt[j]})}function gi(xt,vt){return Ut(s,xt,vt)}var ei=I(function(xt,vt,wt){return F(Boolean,Tt=>Tt)(i,xt,vt,wt)},3),ii=I(function(xt,vt,wt,Tt){return F(Boolean,Vt=>Vt)(ot(vt),xt,wt,Tt)},4),Ye=I(function(xt,vt,wt){return F(Boolean,Tt=>Tt)(s,xt,vt,wt)},3),di=I(function(xt,vt,wt){var Tt=E(vt);return e(xt,(zt,Gt)=>{Tt(zt,(ie,ce)=>{if(ie)return Gt(ie);Gt(ie,{value:zt,criteria:ce})})},(zt,Gt)=>{if(zt)return wt(zt);wt(null,Gt.sort(Vt).map(ie=>ie.value))});function Vt(zt,Gt){var ie=zt.criteria,ce=Gt.criteria;return ie<ce?-1:ie>ce?1:0}},3);function ni(xt,vt,wt){var Tt=E(xt);return S((Vt,zt)=>{var Gt,ie=!1;Vt.push((...ce)=>{ie||(zt(...ce),clearTimeout(Gt))}),Gt=setTimeout(function(){var ce=xt.name||"anonymous",xe=new Error('Callback function "'+ce+'" timed out.');xe.code="ETIMEDOUT",wt&&(xe.info=wt),ie=!0,zt(xe)},vt),Tt(...Vt)})}function cr(xt,vt,wt,Tt){var Vt=E(wt);return Bt(function(zt){for(var Gt=Array(zt);zt--;)Gt[zt]=zt;return Gt}(xt),vt,Vt,Tt)}function er(xt,vt,wt){return cr(xt,1/0,vt,wt)}function Ln(xt,vt,wt){return cr(xt,1,vt,wt)}function Dn(xt,vt,wt,Tt){arguments.length<=3&&typeof vt=="function"&&(Tt=wt,wt=vt,vt=Array.isArray(xt)?[]:{}),Tt=$(Tt||T());var Vt=E(wt);return i(xt,(zt,Gt,ie)=>{Vt(vt,zt,Gt,ie)},zt=>Tt(zt,vt)),Tt[j]}var So=I(function(xt,vt){var wt,Tt=null;return kt(xt,(Vt,zt)=>{E(Vt)((Gt,...ie)=>{if(Gt===!1)return zt(Gt);ie.length<2?[wt]=ie:wt=ie,Tt=Gt,zt(Gt?null:{})})},()=>vt(Tt,wt))});function Un(xt){return(...vt)=>(xt.unmemoized||xt)(...vt)}var Hr=I(function(xt,vt,wt){wt=et(wt);var Tt=E(vt),Vt=E(xt),zt=[];function Gt(ce,...xe){if(ce)return wt(ce);zt=xe,ce!==!1&&Vt(ie)}function ie(ce,xe){return ce?wt(ce):ce!==!1?xe?void Tt(Gt):wt(null,...zt):void 0}return Vt(ie)},3);function qn(xt,vt,wt){const Tt=E(xt);return Hr(Vt=>Tt((zt,Gt)=>Vt(zt,!Gt)),vt,wt)}var Fn=I(function(xt,vt){if(vt=$(vt),!Array.isArray(xt))return vt(new Error("First argument to waterfall must be an array of functions"));if(!xt.length)return vt();var wt=0;function Tt(zt){E(xt[wt++])(...zt,et(Vt))}function Vt(zt,...Gt){if(zt!==!1)return zt||wt===xt.length?vt(zt,...Gt):void Tt(Gt)}Tt([])});const Eo={apply:m,applyEach:o,applyEachSeries:C,asyncify:h,auto:R,autoInject:G,cargo:nt,cargoQueue:ht,compose:bt,concat:It,concatLimit:Mt,concatSeries:J,constant:tt,detect:H,detectLimit:U,detectSeries:it,dir:ft,doUntil:re,doWhilst:mt,each:At,eachLimit:fe,eachOf:i,eachOfLimit:t,eachOfSeries:s,eachSeries:kt,ensureAsync:Kt,every:Ce,everyLimit:Pt,everySeries:Ht,filter:ye,filterLimit:Nt,filterSeries:Xt,forever:ke,groupBy:Zt,groupByLimit:jt,groupBySeries:Oe,log:Dt,map:e,mapLimit:Bt,mapSeries:A,mapValues:De,mapValuesLimit:Jt,mapValuesSeries:Lt,memoize:Qt,nextTick:ze,parallel:Yt,parallelLimit:$e,priorityQueue:te,queue:qt,race:Ae,reduce:Et,reduceRight:Re,reflect:Ke,reflectAll:ai,reject:si,rejectLimit:ui,rejectSeries:ci,retry:Je,retryable:pi,seq:gt,series:gi,setImmediate:g,some:ei,someLimit:ii,someSeries:Ye,sortBy:di,timeout:ni,times:er,timesLimit:cr,timesSeries:Ln,transform:Dn,tryEach:So,unmemoize:Un,until:qn,waterfall:Fn,whilst:Hr,all:Ce,allLimit:Pt,allSeries:Ht,any:ei,anyLimit:ii,anySeries:Ye,find:H,findLimit:U,findSeries:it,flatMap:It,flatMapLimit:Mt,flatMapSeries:J,forEach:At,forEachSeries:kt,forEachLimit:fe,forEachOf:i,forEachOfSeries:s,forEachOfLimit:t,inject:Et,foldl:Et,foldr:Re,select:ye,selectLimit:Nt,selectSeries:Xt,wrapSync:h,during:Hr,doDuring:mt}},4946:W=>{W.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},5207:W=>{W.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},1308:W=>{W.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},9799:W=>{W.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},8597:W=>{W.exports={i8:"6.5.4"}},3765:W=>{W.exports=JSON.parse('{"application/1d-interleaved-parityfec":{"source":"iana"},"application/3gpdash-qoe-report+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/3gpp-ims+xml":{"source":"iana","compressible":true},"application/3gpphal+json":{"source":"iana","compressible":true},"application/3gpphalforms+json":{"source":"iana","compressible":true},"application/a2l":{"source":"iana"},"application/ace+cbor":{"source":"iana"},"application/activemessage":{"source":"iana"},"application/activity+json":{"source":"iana","compressible":true},"application/alto-costmap+json":{"source":"iana","compressible":true},"application/alto-costmapfilter+json":{"source":"iana","compressible":true},"application/alto-directory+json":{"source":"iana","compressible":true},"application/alto-endpointcost+json":{"source":"iana","compressible":true},"application/alto-endpointcostparams+json":{"source":"iana","compressible":true},"application/alto-endpointprop+json":{"source":"iana","compressible":true},"application/alto-endpointpropparams+json":{"source":"iana","compressible":true},"application/alto-error+json":{"source":"iana","compressible":true},"application/alto-networkmap+json":{"source":"iana","compressible":true},"application/alto-networkmapfilter+json":{"source":"iana","compressible":true},"application/alto-updatestreamcontrol+json":{"source":"iana","compressible":true},"application/alto-updatestreamparams+json":{"source":"iana","compressible":true},"application/aml":{"source":"iana"},"application/andrew-inset":{"source":"iana","extensions":["ez"]},"application/applefile":{"source":"iana"},"application/applixware":{"source":"apache","extensions":["aw"]},"application/at+jwt":{"source":"iana"},"application/atf":{"source":"iana"},"application/atfx":{"source":"iana"},"application/atom+xml":{"source":"iana","compressible":true,"extensions":["atom"]},"application/atomcat+xml":{"source":"iana","compressible":true,"extensions":["atomcat"]},"application/atomdeleted+xml":{"source":"iana","compressible":true,"extensions":["atomdeleted"]},"application/atomicmail":{"source":"iana"},"application/atomsvc+xml":{"source":"iana","compressible":true,"extensions":["atomsvc"]},"application/atsc-dwd+xml":{"source":"iana","compressible":true,"extensions":["dwd"]},"application/atsc-dynamic-event-message":{"source":"iana"},"application/atsc-held+xml":{"source":"iana","compressible":true,"extensions":["held"]},"application/atsc-rdt+json":{"source":"iana","compressible":true},"application/atsc-rsat+xml":{"source":"iana","compressible":true,"extensions":["rsat"]},"application/atxml":{"source":"iana"},"application/auth-policy+xml":{"source":"iana","compressible":true},"application/bacnet-xdd+zip":{"source":"iana","compressible":false},"application/batch-smtp":{"source":"iana"},"application/bdoc":{"compressible":false,"extensions":["bdoc"]},"application/beep+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/calendar+json":{"source":"iana","compressible":true},"application/calendar+xml":{"source":"iana","compressible":true,"extensions":["xcs"]},"application/call-completion":{"source":"iana"},"application/cals-1840":{"source":"iana"},"application/captive+json":{"source":"iana","compressible":true},"application/cbor":{"source":"iana"},"application/cbor-seq":{"source":"iana"},"application/cccex":{"source":"iana"},"application/ccmp+xml":{"source":"iana","compressible":true},"application/ccxml+xml":{"source":"iana","compressible":true,"extensions":["ccxml"]},"application/cdfx+xml":{"source":"iana","compressible":true,"extensions":["cdfx"]},"application/cdmi-capability":{"source":"iana","extensions":["cdmia"]},"application/cdmi-container":{"source":"iana","extensions":["cdmic"]},"application/cdmi-domain":{"source":"iana","extensions":["cdmid"]},"application/cdmi-object":{"source":"iana","extensions":["cdmio"]},"application/cdmi-queue":{"source":"iana","extensions":["cdmiq"]},"application/cdni":{"source":"iana"},"application/cea":{"source":"iana"},"application/cea-2018+xml":{"source":"iana","compressible":true},"application/cellml+xml":{"source":"iana","compressible":true},"application/cfw":{"source":"iana"},"application/city+json":{"source":"iana","compressible":true},"application/clr":{"source":"iana"},"application/clue+xml":{"source":"iana","compressible":true},"application/clue_info+xml":{"source":"iana","compressible":true},"application/cms":{"source":"iana"},"application/cnrp+xml":{"source":"iana","compressible":true},"application/coap-group+json":{"source":"iana","compressible":true},"application/coap-payload":{"source":"iana"},"application/commonground":{"source":"iana"},"application/conference-info+xml":{"source":"iana","compressible":true},"application/cose":{"source":"iana"},"application/cose-key":{"source":"iana"},"application/cose-key-set":{"source":"iana"},"application/cpl+xml":{"source":"iana","compressible":true,"extensions":["cpl"]},"application/csrattrs":{"source":"iana"},"application/csta+xml":{"source":"iana","compressible":true},"application/cstadata+xml":{"source":"iana","compressible":true},"application/csvm+json":{"source":"iana","compressible":true},"application/cu-seeme":{"source":"apache","extensions":["cu"]},"application/cwt":{"source":"iana"},"application/cybercash":{"source":"iana"},"application/dart":{"compressible":true},"application/dash+xml":{"source":"iana","compressible":true,"extensions":["mpd"]},"application/dash-patch+xml":{"source":"iana","compressible":true,"extensions":["mpp"]},"application/dashdelta":{"source":"iana"},"application/davmount+xml":{"source":"iana","compressible":true,"extensions":["davmount"]},"application/dca-rft":{"source":"iana"},"application/dcd":{"source":"iana"},"application/dec-dx":{"source":"iana"},"application/dialog-info+xml":{"source":"iana","compressible":true},"application/dicom":{"source":"iana"},"application/dicom+json":{"source":"iana","compressible":true},"application/dicom+xml":{"source":"iana","compressible":true},"application/dii":{"source":"iana"},"application/dit":{"source":"iana"},"application/dns":{"source":"iana"},"application/dns+json":{"source":"iana","compressible":true},"application/dns-message":{"source":"iana"},"application/docbook+xml":{"source":"apache","compressible":true,"extensions":["dbk"]},"application/dots+cbor":{"source":"iana"},"application/dskpp+xml":{"source":"iana","compressible":true},"application/dssc+der":{"source":"iana","extensions":["dssc"]},"application/dssc+xml":{"source":"iana","compressible":true,"extensions":["xdssc"]},"application/dvcs":{"source":"iana"},"application/ecmascript":{"source":"iana","compressible":true,"extensions":["es","ecma"]},"application/edi-consent":{"source":"iana"},"application/edi-x12":{"source":"iana","compressible":false},"application/edifact":{"source":"iana","compressible":false},"application/efi":{"source":"iana"},"application/elm+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/elm+xml":{"source":"iana","compressible":true},"application/emergencycalldata.cap+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/emergencycalldata.comment+xml":{"source":"iana","compressible":true},"application/emergencycalldata.control+xml":{"source":"iana","compressible":true},"application/emergencycalldata.deviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.ecall.msd":{"source":"iana"},"application/emergencycalldata.providerinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.serviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.subscriberinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.veds+xml":{"source":"iana","compressible":true},"application/emma+xml":{"source":"iana","compressible":true,"extensions":["emma"]},"application/emotionml+xml":{"source":"iana","compressible":true,"extensions":["emotionml"]},"application/encaprtp":{"source":"iana"},"application/epp+xml":{"source":"iana","compressible":true},"application/epub+zip":{"source":"iana","compressible":false,"extensions":["epub"]},"application/eshop":{"source":"iana"},"application/exi":{"source":"iana","extensions":["exi"]},"application/expect-ct-report+json":{"source":"iana","compressible":true},"application/express":{"source":"iana","extensions":["exp"]},"application/fastinfoset":{"source":"iana"},"application/fastsoap":{"source":"iana"},"application/fdt+xml":{"source":"iana","compressible":true,"extensions":["fdt"]},"application/fhir+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/fhir+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/fido.trusted-apps+json":{"compressible":true},"application/fits":{"source":"iana"},"application/flexfec":{"source":"iana"},"application/font-sfnt":{"source":"iana"},"application/font-tdpfr":{"source":"iana","extensions":["pfr"]},"application/font-woff":{"source":"iana","compressible":false},"application/framework-attributes+xml":{"source":"iana","compressible":true},"application/geo+json":{"source":"iana","compressible":true,"extensions":["geojson"]},"application/geo+json-seq":{"source":"iana"},"application/geopackage+sqlite3":{"source":"iana"},"application/geoxacml+xml":{"source":"iana","compressible":true},"application/gltf-buffer":{"source":"iana"},"application/gml+xml":{"source":"iana","compressible":true,"extensions":["gml"]},"application/gpx+xml":{"source":"apache","compressible":true,"extensions":["gpx"]},"application/gxf":{"source":"apache","extensions":["gxf"]},"application/gzip":{"source":"iana","compressible":false,"extensions":["gz"]},"application/h224":{"source":"iana"},"application/held+xml":{"source":"iana","compressible":true},"application/hjson":{"extensions":["hjson"]},"application/http":{"source":"iana"},"application/hyperstudio":{"source":"iana","extensions":["stk"]},"application/ibe-key-request+xml":{"source":"iana","compressible":true},"application/ibe-pkg-reply+xml":{"source":"iana","compressible":true},"application/ibe-pp-data":{"source":"iana"},"application/iges":{"source":"iana"},"application/im-iscomposing+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/index":{"source":"iana"},"application/index.cmd":{"source":"iana"},"application/index.obj":{"source":"iana"},"application/index.response":{"source":"iana"},"application/index.vnd":{"source":"iana"},"application/inkml+xml":{"source":"iana","compressible":true,"extensions":["ink","inkml"]},"application/iotp":{"source":"iana"},"application/ipfix":{"source":"iana","extensions":["ipfix"]},"application/ipp":{"source":"iana"},"application/isup":{"source":"iana"},"application/its+xml":{"source":"iana","compressible":true,"extensions":["its"]},"application/java-archive":{"source":"apache","compressible":false,"extensions":["jar","war","ear"]},"application/java-serialized-object":{"source":"apache","compressible":false,"extensions":["ser"]},"application/java-vm":{"source":"apache","compressible":false,"extensions":["class"]},"application/javascript":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["js","mjs"]},"application/jf2feed+json":{"source":"iana","compressible":true},"application/jose":{"source":"iana"},"application/jose+json":{"source":"iana","compressible":true},"application/jrd+json":{"source":"iana","compressible":true},"application/jscalendar+json":{"source":"iana","compressible":true},"application/json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["json","map"]},"application/json-patch+json":{"source":"iana","compressible":true},"application/json-seq":{"source":"iana"},"application/json5":{"extensions":["json5"]},"application/jsonml+json":{"source":"apache","compressible":true,"extensions":["jsonml"]},"application/jwk+json":{"source":"iana","compressible":true},"application/jwk-set+json":{"source":"iana","compressible":true},"application/jwt":{"source":"iana"},"application/kpml-request+xml":{"source":"iana","compressible":true},"application/kpml-response+xml":{"source":"iana","compressible":true},"application/ld+json":{"source":"iana","compressible":true,"extensions":["jsonld"]},"application/lgr+xml":{"source":"iana","compressible":true,"extensions":["lgr"]},"application/link-format":{"source":"iana"},"application/load-control+xml":{"source":"iana","compressible":true},"application/lost+xml":{"source":"iana","compressible":true,"extensions":["lostxml"]},"application/lostsync+xml":{"source":"iana","compressible":true},"application/lpf+zip":{"source":"iana","compressible":false},"application/lxf":{"source":"iana"},"application/mac-binhex40":{"source":"iana","extensions":["hqx"]},"application/mac-compactpro":{"source":"apache","extensions":["cpt"]},"application/macwriteii":{"source":"iana"},"application/mads+xml":{"source":"iana","compressible":true,"extensions":["mads"]},"application/manifest+json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["webmanifest"]},"application/marc":{"source":"iana","extensions":["mrc"]},"application/marcxml+xml":{"source":"iana","compressible":true,"extensions":["mrcx"]},"application/mathematica":{"source":"iana","extensions":["ma","nb","mb"]},"application/mathml+xml":{"source":"iana","compressible":true,"extensions":["mathml"]},"application/mathml-content+xml":{"source":"iana","compressible":true},"application/mathml-presentation+xml":{"source":"iana","compressible":true},"application/mbms-associated-procedure-description+xml":{"source":"iana","compressible":true},"application/mbms-deregister+xml":{"source":"iana","compressible":true},"application/mbms-envelope+xml":{"source":"iana","compressible":true},"application/mbms-msk+xml":{"source":"iana","compressible":true},"application/mbms-msk-response+xml":{"source":"iana","compressible":true},"application/mbms-protection-description+xml":{"source":"iana","compressible":true},"application/mbms-reception-report+xml":{"source":"iana","compressible":true},"application/mbms-register+xml":{"source":"iana","compressible":true},"application/mbms-register-response+xml":{"source":"iana","compressible":true},"application/mbms-schedule+xml":{"source":"iana","compressible":true},"application/mbms-user-service-description+xml":{"source":"iana","compressible":true},"application/mbox":{"source":"iana","extensions":["mbox"]},"application/media-policy-dataset+xml":{"source":"iana","compressible":true,"extensions":["mpf"]},"application/media_control+xml":{"source":"iana","compressible":true},"application/mediaservercontrol+xml":{"source":"iana","compressible":true,"extensions":["mscml"]},"application/merge-patch+json":{"source":"iana","compressible":true},"application/metalink+xml":{"source":"apache","compressible":true,"extensions":["metalink"]},"application/metalink4+xml":{"source":"iana","compressible":true,"extensions":["meta4"]},"application/mets+xml":{"source":"iana","compressible":true,"extensions":["mets"]},"application/mf4":{"source":"iana"},"application/mikey":{"source":"iana"},"application/mipc":{"source":"iana"},"application/missing-blocks+cbor-seq":{"source":"iana"},"application/mmt-aei+xml":{"source":"iana","compressible":true,"extensions":["maei"]},"application/mmt-usd+xml":{"source":"iana","compressible":true,"extensions":["musd"]},"application/mods+xml":{"source":"iana","compressible":true,"extensions":["mods"]},"application/moss-keys":{"source":"iana"},"application/moss-signature":{"source":"iana"},"application/mosskey-data":{"source":"iana"},"application/mosskey-request":{"source":"iana"},"application/mp21":{"source":"iana","extensions":["m21","mp21"]},"application/mp4":{"source":"iana","extensions":["mp4s","m4p"]},"application/mpeg4-generic":{"source":"iana"},"application/mpeg4-iod":{"source":"iana"},"application/mpeg4-iod-xmt":{"source":"iana"},"application/mrb-consumer+xml":{"source":"iana","compressible":true},"application/mrb-publish+xml":{"source":"iana","compressible":true},"application/msc-ivr+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msc-mixer+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msword":{"source":"iana","compressible":false,"extensions":["doc","dot"]},"application/mud+json":{"source":"iana","compressible":true},"application/multipart-core":{"source":"iana"},"application/mxf":{"source":"iana","extensions":["mxf"]},"application/n-quads":{"source":"iana","extensions":["nq"]},"application/n-triples":{"source":"iana","extensions":["nt"]},"application/nasdata":{"source":"iana"},"application/news-checkgroups":{"source":"iana","charset":"US-ASCII"},"application/news-groupinfo":{"source":"iana","charset":"US-ASCII"},"application/news-transmission":{"source":"iana"},"application/nlsml+xml":{"source":"iana","compressible":true},"application/node":{"source":"iana","extensions":["cjs"]},"application/nss":{"source":"iana"},"application/oauth-authz-req+jwt":{"source":"iana"},"application/oblivious-dns-message":{"source":"iana"},"application/ocsp-request":{"source":"iana"},"application/ocsp-response":{"source":"iana"},"application/octet-stream":{"source":"iana","compressible":false,"extensions":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{"source":"iana","extensions":["oda"]},"application/odm+xml":{"source":"iana","compressible":true},"application/odx":{"source":"iana"},"application/oebps-package+xml":{"source":"iana","compressible":true,"extensions":["opf"]},"application/ogg":{"source":"iana","compressible":false,"extensions":["ogx"]},"application/omdoc+xml":{"source":"apache","compressible":true,"extensions":["omdoc"]},"application/onenote":{"source":"apache","extensions":["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{"source":"iana","compressible":true},"application/oscore":{"source":"iana"},"application/oxps":{"source":"iana","extensions":["oxps"]},"application/p21":{"source":"iana"},"application/p21+zip":{"source":"iana","compressible":false},"application/p2p-overlay+xml":{"source":"iana","compressible":true,"extensions":["relo"]},"application/parityfec":{"source":"iana"},"application/passport":{"source":"iana"},"application/patch-ops-error+xml":{"source":"iana","compressible":true,"extensions":["xer"]},"application/pdf":{"source":"iana","compressible":false,"extensions":["pdf"]},"application/pdx":{"source":"iana"},"application/pem-certificate-chain":{"source":"iana"},"application/pgp-encrypted":{"source":"iana","compressible":false,"extensions":["pgp"]},"application/pgp-keys":{"source":"iana","extensions":["asc"]},"application/pgp-signature":{"source":"iana","extensions":["asc","sig"]},"application/pics-rules":{"source":"apache","extensions":["prf"]},"application/pidf+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pidf-diff+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pkcs10":{"source":"iana","extensions":["p10"]},"application/pkcs12":{"source":"iana"},"application/pkcs7-mime":{"source":"iana","extensions":["p7m","p7c"]},"application/pkcs7-signature":{"source":"iana","extensions":["p7s"]},"application/pkcs8":{"source":"iana","extensions":["p8"]},"application/pkcs8-encrypted":{"source":"iana"},"application/pkix-attr-cert":{"source":"iana","extensions":["ac"]},"application/pkix-cert":{"source":"iana","extensions":["cer"]},"application/pkix-crl":{"source":"iana","extensions":["crl"]},"application/pkix-pkipath":{"source":"iana","extensions":["pkipath"]},"application/pkixcmp":{"source":"iana","extensions":["pki"]},"application/pls+xml":{"source":"iana","compressible":true,"extensions":["pls"]},"application/poc-settings+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/postscript":{"source":"iana","compressible":true,"extensions":["ai","eps","ps"]},"application/ppsp-tracker+json":{"source":"iana","compressible":true},"application/problem+json":{"source":"iana","compressible":true},"application/problem+xml":{"source":"iana","compressible":true},"application/provenance+xml":{"source":"iana","compressible":true,"extensions":["provx"]},"application/prs.alvestrand.titrax-sheet":{"source":"iana"},"application/prs.cww":{"source":"iana","extensions":["cww"]},"application/prs.cyn":{"source":"iana","charset":"7-BIT"},"application/prs.hpub+zip":{"source":"iana","compressible":false},"application/prs.nprend":{"source":"iana"},"application/prs.plucker":{"source":"iana"},"application/prs.rdf-xml-crypt":{"source":"iana"},"application/prs.xsf+xml":{"source":"iana","compressible":true},"application/pskc+xml":{"source":"iana","compressible":true,"extensions":["pskcxml"]},"application/pvd+json":{"source":"iana","compressible":true},"application/qsig":{"source":"iana"},"application/raml+yaml":{"compressible":true,"extensions":["raml"]},"application/raptorfec":{"source":"iana"},"application/rdap+json":{"source":"iana","compressible":true},"application/rdf+xml":{"source":"iana","compressible":true,"extensions":["rdf","owl"]},"application/reginfo+xml":{"source":"iana","compressible":true,"extensions":["rif"]},"application/relax-ng-compact-syntax":{"source":"iana","extensions":["rnc"]},"application/remote-printing":{"source":"iana"},"application/reputon+json":{"source":"iana","compressible":true},"application/resource-lists+xml":{"source":"iana","compressible":true,"extensions":["rl"]},"application/resource-lists-diff+xml":{"source":"iana","compressible":true,"extensions":["rld"]},"application/rfc+xml":{"source":"iana","compressible":true},"application/riscos":{"source":"iana"},"application/rlmi+xml":{"source":"iana","compressible":true},"application/rls-services+xml":{"source":"iana","compressible":true,"extensions":["rs"]},"application/route-apd+xml":{"source":"iana","compressible":true,"extensions":["rapd"]},"application/route-s-tsid+xml":{"source":"iana","compressible":true,"extensions":["sls"]},"application/route-usd+xml":{"source":"iana","compressible":true,"extensions":["rusd"]},"application/rpki-ghostbusters":{"source":"iana","extensions":["gbr"]},"application/rpki-manifest":{"source":"iana","extensions":["mft"]},"application/rpki-publication":{"source":"iana"},"application/rpki-roa":{"source":"iana","extensions":["roa"]},"application/rpki-updown":{"source":"iana"},"application/rsd+xml":{"source":"apache","compressible":true,"extensions":["rsd"]},"application/rss+xml":{"source":"apache","compressible":true,"extensions":["rss"]},"application/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"application/rtploopback":{"source":"iana"},"application/rtx":{"source":"iana"},"application/samlassertion+xml":{"source":"iana","compressible":true},"application/samlmetadata+xml":{"source":"iana","compressible":true},"application/sarif+json":{"source":"iana","compressible":true},"application/sarif-external-properties+json":{"source":"iana","compressible":true},"application/sbe":{"source":"iana"},"application/sbml+xml":{"source":"iana","compressible":true,"extensions":["sbml"]},"application/scaip+xml":{"source":"iana","compressible":true},"application/scim+json":{"source":"iana","compressible":true},"application/scvp-cv-request":{"source":"iana","extensions":["scq"]},"application/scvp-cv-response":{"source":"iana","extensions":["scs"]},"application/scvp-vp-request":{"source":"iana","extensions":["spq"]},"application/scvp-vp-response":{"source":"iana","extensions":["spp"]},"application/sdp":{"source":"iana","extensions":["sdp"]},"application/secevent+jwt":{"source":"iana"},"application/senml+cbor":{"source":"iana"},"application/senml+json":{"source":"iana","compressible":true},"application/senml+xml":{"source":"iana","compressible":true,"extensions":["senmlx"]},"application/senml-etch+cbor":{"source":"iana"},"application/senml-etch+json":{"source":"iana","compressible":true},"application/senml-exi":{"source":"iana"},"application/sensml+cbor":{"source":"iana"},"application/sensml+json":{"source":"iana","compressible":true},"application/sensml+xml":{"source":"iana","compressible":true,"extensions":["sensmlx"]},"application/sensml-exi":{"source":"iana"},"application/sep+xml":{"source":"iana","compressible":true},"application/sep-exi":{"source":"iana"},"application/session-info":{"source":"iana"},"application/set-payment":{"source":"iana"},"application/set-payment-initiation":{"source":"iana","extensions":["setpay"]},"application/set-registration":{"source":"iana"},"application/set-registration-initiation":{"source":"iana","extensions":["setreg"]},"application/sgml":{"source":"iana"},"application/sgml-open-catalog":{"source":"iana"},"application/shf+xml":{"source":"iana","compressible":true,"extensions":["shf"]},"application/sieve":{"source":"iana","extensions":["siv","sieve"]},"application/simple-filter+xml":{"source":"iana","compressible":true},"application/simple-message-summary":{"source":"iana"},"application/simplesymbolcontainer":{"source":"iana"},"application/sipc":{"source":"iana"},"application/slate":{"source":"iana"},"application/smil":{"source":"iana"},"application/smil+xml":{"source":"iana","compressible":true,"extensions":["smi","smil"]},"application/smpte336m":{"source":"iana"},"application/soap+fastinfoset":{"source":"iana"},"application/soap+xml":{"source":"iana","compressible":true},"application/sparql-query":{"source":"iana","extensions":["rq"]},"application/sparql-results+xml":{"source":"iana","compressible":true,"extensions":["srx"]},"application/spdx+json":{"source":"iana","compressible":true},"application/spirits-event+xml":{"source":"iana","compressible":true},"application/sql":{"source":"iana"},"application/srgs":{"source":"iana","extensions":["gram"]},"application/srgs+xml":{"source":"iana","compressible":true,"extensions":["grxml"]},"application/sru+xml":{"source":"iana","compressible":true,"extensions":["sru"]},"application/ssdl+xml":{"source":"apache","compressible":true,"extensions":["ssdl"]},"application/ssml+xml":{"source":"iana","compressible":true,"extensions":["ssml"]},"application/stix+json":{"source":"iana","compressible":true},"application/swid+xml":{"source":"iana","compressible":true,"extensions":["swidtag"]},"application/tamp-apex-update":{"source":"iana"},"application/tamp-apex-update-confirm":{"source":"iana"},"application/tamp-community-update":{"source":"iana"},"application/tamp-community-update-confirm":{"source":"iana"},"application/tamp-error":{"source":"iana"},"application/tamp-sequence-adjust":{"source":"iana"},"application/tamp-sequence-adjust-confirm":{"source":"iana"},"application/tamp-status-query":{"source":"iana"},"application/tamp-status-response":{"source":"iana"},"application/tamp-update":{"source":"iana"},"application/tamp-update-confirm":{"source":"iana"},"application/tar":{"compressible":true},"application/taxii+json":{"source":"iana","compressible":true},"application/td+json":{"source":"iana","compressible":true},"application/tei+xml":{"source":"iana","compressible":true,"extensions":["tei","teicorpus"]},"application/tetra_isi":{"source":"iana"},"application/thraud+xml":{"source":"iana","compressible":true,"extensions":["tfi"]},"application/timestamp-query":{"source":"iana"},"application/timestamp-reply":{"source":"iana"},"application/timestamped-data":{"source":"iana","extensions":["tsd"]},"application/tlsrpt+gzip":{"source":"iana"},"application/tlsrpt+json":{"source":"iana","compressible":true},"application/tnauthlist":{"source":"iana"},"application/token-introspection+jwt":{"source":"iana"},"application/toml":{"compressible":true,"extensions":["toml"]},"application/trickle-ice-sdpfrag":{"source":"iana"},"application/trig":{"source":"iana","extensions":["trig"]},"application/ttml+xml":{"source":"iana","compressible":true,"extensions":["ttml"]},"application/tve-trigger":{"source":"iana"},"application/tzif":{"source":"iana"},"application/tzif-leap":{"source":"iana"},"application/ubjson":{"compressible":false,"extensions":["ubj"]},"application/ulpfec":{"source":"iana"},"application/urc-grpsheet+xml":{"source":"iana","compressible":true},"application/urc-ressheet+xml":{"source":"iana","compressible":true,"extensions":["rsheet"]},"application/urc-targetdesc+xml":{"source":"iana","compressible":true,"extensions":["td"]},"application/urc-uisocketdesc+xml":{"source":"iana","compressible":true},"application/vcard+json":{"source":"iana","compressible":true},"application/vcard+xml":{"source":"iana","compressible":true},"application/vemmi":{"source":"iana"},"application/vividence.scriptfile":{"source":"apache"},"application/vnd.1000minds.decision-model+xml":{"source":"iana","compressible":true,"extensions":["1km"]},"application/vnd.3gpp-prose+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ch+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-v2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.5gnas":{"source":"iana"},"application/vnd.3gpp.access-transfer-events+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.bsf+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gmop+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gtpc":{"source":"iana"},"application/vnd.3gpp.interworking-data":{"source":"iana"},"application/vnd.3gpp.lpp":{"source":"iana"},"application/vnd.3gpp.mc-signalling-ear":{"source":"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-payload":{"source":"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-signalling":{"source":"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-floor-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-signed+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-init-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-transmission-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mid-call+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ngap":{"source":"iana"},"application/vnd.3gpp.pfcp":{"source":"iana"},"application/vnd.3gpp.pic-bw-large":{"source":"iana","extensions":["plb"]},"application/vnd.3gpp.pic-bw-small":{"source":"iana","extensions":["psb"]},"application/vnd.3gpp.pic-bw-var":{"source":"iana","extensions":["pvb"]},"application/vnd.3gpp.s1ap":{"source":"iana"},"application/vnd.3gpp.sms":{"source":"iana"},"application/vnd.3gpp.sms+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-ext+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.state-and-event-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ussd+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.bcmcsinfo+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.sms":{"source":"iana"},"application/vnd.3gpp2.tcap":{"source":"iana","extensions":["tcap"]},"application/vnd.3lightssoftware.imagescal":{"source":"iana"},"application/vnd.3m.post-it-notes":{"source":"iana","extensions":["pwn"]},"application/vnd.accpac.simply.aso":{"source":"iana","extensions":["aso"]},"application/vnd.accpac.simply.imp":{"source":"iana","extensions":["imp"]},"application/vnd.acucobol":{"source":"iana","extensions":["acu"]},"application/vnd.acucorp":{"source":"iana","extensions":["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{"source":"apache","compressible":false,"extensions":["air"]},"application/vnd.adobe.flash.movie":{"source":"iana"},"application/vnd.adobe.formscentral.fcdt":{"source":"iana","extensions":["fcdt"]},"application/vnd.adobe.fxp":{"source":"iana","extensions":["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{"source":"iana"},"application/vnd.adobe.xdp+xml":{"source":"iana","compressible":true,"extensions":["xdp"]},"application/vnd.adobe.xfdf":{"source":"iana","extensions":["xfdf"]},"application/vnd.aether.imp":{"source":"iana"},"application/vnd.afpc.afplinedata":{"source":"iana"},"application/vnd.afpc.afplinedata-pagedef":{"source":"iana"},"application/vnd.afpc.cmoca-cmresource":{"source":"iana"},"application/vnd.afpc.foca-charset":{"source":"iana"},"application/vnd.afpc.foca-codedfont":{"source":"iana"},"application/vnd.afpc.foca-codepage":{"source":"iana"},"application/vnd.afpc.modca":{"source":"iana"},"application/vnd.afpc.modca-cmtable":{"source":"iana"},"application/vnd.afpc.modca-formdef":{"source":"iana"},"application/vnd.afpc.modca-mediummap":{"source":"iana"},"application/vnd.afpc.modca-objectcontainer":{"source":"iana"},"application/vnd.afpc.modca-overlay":{"source":"iana"},"application/vnd.afpc.modca-pagesegment":{"source":"iana"},"application/vnd.age":{"source":"iana","extensions":["age"]},"application/vnd.ah-barcode":{"source":"iana"},"application/vnd.ahead.space":{"source":"iana","extensions":["ahead"]},"application/vnd.airzip.filesecure.azf":{"source":"iana","extensions":["azf"]},"application/vnd.airzip.filesecure.azs":{"source":"iana","extensions":["azs"]},"application/vnd.amadeus+json":{"source":"iana","compressible":true},"application/vnd.amazon.ebook":{"source":"apache","extensions":["azw"]},"application/vnd.amazon.mobi8-ebook":{"source":"iana"},"application/vnd.americandynamics.acc":{"source":"iana","extensions":["acc"]},"application/vnd.amiga.ami":{"source":"iana","extensions":["ami"]},"application/vnd.amundsen.maze+xml":{"source":"iana","compressible":true},"application/vnd.android.ota":{"source":"iana"},"application/vnd.android.package-archive":{"source":"apache","compressible":false,"extensions":["apk"]},"application/vnd.anki":{"source":"iana"},"application/vnd.anser-web-certificate-issue-initiation":{"source":"iana","extensions":["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{"source":"apache","extensions":["fti"]},"application/vnd.antix.game-component":{"source":"iana","extensions":["atx"]},"application/vnd.apache.arrow.file":{"source":"iana"},"application/vnd.apache.arrow.stream":{"source":"iana"},"application/vnd.apache.thrift.binary":{"source":"iana"},"application/vnd.apache.thrift.compact":{"source":"iana"},"application/vnd.apache.thrift.json":{"source":"iana"},"application/vnd.api+json":{"source":"iana","compressible":true},"application/vnd.aplextor.warrp+json":{"source":"iana","compressible":true},"application/vnd.apothekende.reservation+json":{"source":"iana","compressible":true},"application/vnd.apple.installer+xml":{"source":"iana","compressible":true,"extensions":["mpkg"]},"application/vnd.apple.keynote":{"source":"iana","extensions":["key"]},"application/vnd.apple.mpegurl":{"source":"iana","extensions":["m3u8"]},"application/vnd.apple.numbers":{"source":"iana","extensions":["numbers"]},"application/vnd.apple.pages":{"source":"iana","extensions":["pages"]},"application/vnd.apple.pkpass":{"compressible":false,"extensions":["pkpass"]},"application/vnd.arastra.swi":{"source":"iana"},"application/vnd.aristanetworks.swi":{"source":"iana","extensions":["swi"]},"application/vnd.artisan+json":{"source":"iana","compressible":true},"application/vnd.artsquare":{"source":"iana"},"application/vnd.astraea-software.iota":{"source":"iana","extensions":["iota"]},"application/vnd.audiograph":{"source":"iana","extensions":["aep"]},"application/vnd.autopackage":{"source":"iana"},"application/vnd.avalon+json":{"source":"iana","compressible":true},"application/vnd.avistar+xml":{"source":"iana","compressible":true},"application/vnd.balsamiq.bmml+xml":{"source":"iana","compressible":true,"extensions":["bmml"]},"application/vnd.balsamiq.bmpr":{"source":"iana"},"application/vnd.banana-accounting":{"source":"iana"},"application/vnd.bbf.usp.error":{"source":"iana"},"application/vnd.bbf.usp.msg":{"source":"iana"},"application/vnd.bbf.usp.msg+json":{"source":"iana","compressible":true},"application/vnd.bekitzur-stech+json":{"source":"iana","compressible":true},"application/vnd.bint.med-content":{"source":"iana"},"application/vnd.biopax.rdf+xml":{"source":"iana","compressible":true},"application/vnd.blink-idb-value-wrapper":{"source":"iana"},"application/vnd.blueice.multipass":{"source":"iana","extensions":["mpm"]},"application/vnd.bluetooth.ep.oob":{"source":"iana"},"application/vnd.bluetooth.le.oob":{"source":"iana"},"application/vnd.bmi":{"source":"iana","extensions":["bmi"]},"application/vnd.bpf":{"source":"iana"},"application/vnd.bpf3":{"source":"iana"},"application/vnd.businessobjects":{"source":"iana","extensions":["rep"]},"application/vnd.byu.uapi+json":{"source":"iana","compressible":true},"application/vnd.cab-jscript":{"source":"iana"},"application/vnd.canon-cpdl":{"source":"iana"},"application/vnd.canon-lips":{"source":"iana"},"application/vnd.capasystems-pg+json":{"source":"iana","compressible":true},"application/vnd.cendio.thinlinc.clientconf":{"source":"iana"},"application/vnd.century-systems.tcp_stream":{"source":"iana"},"application/vnd.chemdraw+xml":{"source":"iana","compressible":true,"extensions":["cdxml"]},"application/vnd.chess-pgn":{"source":"iana"},"application/vnd.chipnuts.karaoke-mmd":{"source":"iana","extensions":["mmd"]},"application/vnd.ciedi":{"source":"iana"},"application/vnd.cinderella":{"source":"iana","extensions":["cdy"]},"application/vnd.cirpack.isdn-ext":{"source":"iana"},"application/vnd.citationstyles.style+xml":{"source":"iana","compressible":true,"extensions":["csl"]},"application/vnd.claymore":{"source":"iana","extensions":["cla"]},"application/vnd.cloanto.rp9":{"source":"iana","extensions":["rp9"]},"application/vnd.clonk.c4group":{"source":"iana","extensions":["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{"source":"iana","extensions":["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{"source":"iana","extensions":["c11amz"]},"application/vnd.coffeescript":{"source":"iana"},"application/vnd.collabio.xodocuments.document":{"source":"iana"},"application/vnd.collabio.xodocuments.document-template":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation-template":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{"source":"iana"},"application/vnd.collection+json":{"source":"iana","compressible":true},"application/vnd.collection.doc+json":{"source":"iana","compressible":true},"application/vnd.collection.next+json":{"source":"iana","compressible":true},"application/vnd.comicbook+zip":{"source":"iana","compressible":false},"application/vnd.comicbook-rar":{"source":"iana"},"application/vnd.commerce-battelle":{"source":"iana"},"application/vnd.commonspace":{"source":"iana","extensions":["csp"]},"application/vnd.contact.cmsg":{"source":"iana","extensions":["cdbcmsg"]},"application/vnd.coreos.ignition+json":{"source":"iana","compressible":true},"application/vnd.cosmocaller":{"source":"iana","extensions":["cmc"]},"application/vnd.crick.clicker":{"source":"iana","extensions":["clkx"]},"application/vnd.crick.clicker.keyboard":{"source":"iana","extensions":["clkk"]},"application/vnd.crick.clicker.palette":{"source":"iana","extensions":["clkp"]},"application/vnd.crick.clicker.template":{"source":"iana","extensions":["clkt"]},"application/vnd.crick.clicker.wordbank":{"source":"iana","extensions":["clkw"]},"application/vnd.criticaltools.wbs+xml":{"source":"iana","compressible":true,"extensions":["wbs"]},"application/vnd.cryptii.pipe+json":{"source":"iana","compressible":true},"application/vnd.crypto-shade-file":{"source":"iana"},"application/vnd.cryptomator.encrypted":{"source":"iana"},"application/vnd.cryptomator.vault":{"source":"iana"},"application/vnd.ctc-posml":{"source":"iana","extensions":["pml"]},"application/vnd.ctct.ws+xml":{"source":"iana","compressible":true},"application/vnd.cups-pdf":{"source":"iana"},"application/vnd.cups-postscript":{"source":"iana"},"application/vnd.cups-ppd":{"source":"iana","extensions":["ppd"]},"application/vnd.cups-raster":{"source":"iana"},"application/vnd.cups-raw":{"source":"iana"},"application/vnd.curl":{"source":"iana"},"application/vnd.curl.car":{"source":"apache","extensions":["car"]},"application/vnd.curl.pcurl":{"source":"apache","extensions":["pcurl"]},"application/vnd.cyan.dean.root+xml":{"source":"iana","compressible":true},"application/vnd.cybank":{"source":"iana"},"application/vnd.cyclonedx+json":{"source":"iana","compressible":true},"application/vnd.cyclonedx+xml":{"source":"iana","compressible":true},"application/vnd.d2l.coursepackage1p0+zip":{"source":"iana","compressible":false},"application/vnd.d3m-dataset":{"source":"iana"},"application/vnd.d3m-problem":{"source":"iana"},"application/vnd.dart":{"source":"iana","compressible":true,"extensions":["dart"]},"application/vnd.data-vision.rdz":{"source":"iana","extensions":["rdz"]},"application/vnd.datapackage+json":{"source":"iana","compressible":true},"application/vnd.dataresource+json":{"source":"iana","compressible":true},"application/vnd.dbf":{"source":"iana","extensions":["dbf"]},"application/vnd.debian.binary-package":{"source":"iana"},"application/vnd.dece.data":{"source":"iana","extensions":["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{"source":"iana","compressible":true,"extensions":["uvt","uvvt"]},"application/vnd.dece.unspecified":{"source":"iana","extensions":["uvx","uvvx"]},"application/vnd.dece.zip":{"source":"iana","extensions":["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{"source":"iana","extensions":["fe_launch"]},"application/vnd.desmume.movie":{"source":"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{"source":"iana"},"application/vnd.dm.delegation+xml":{"source":"iana","compressible":true},"application/vnd.dna":{"source":"iana","extensions":["dna"]},"application/vnd.document+json":{"source":"iana","compressible":true},"application/vnd.dolby.mlp":{"source":"apache","extensions":["mlp"]},"application/vnd.dolby.mobile.1":{"source":"iana"},"application/vnd.dolby.mobile.2":{"source":"iana"},"application/vnd.doremir.scorecloud-binary-document":{"source":"iana"},"application/vnd.dpgraph":{"source":"iana","extensions":["dpg"]},"application/vnd.dreamfactory":{"source":"iana","extensions":["dfac"]},"application/vnd.drive+json":{"source":"iana","compressible":true},"application/vnd.ds-keypoint":{"source":"apache","extensions":["kpxx"]},"application/vnd.dtg.local":{"source":"iana"},"application/vnd.dtg.local.flash":{"source":"iana"},"application/vnd.dtg.local.html":{"source":"iana"},"application/vnd.dvb.ait":{"source":"iana","extensions":["ait"]},"application/vnd.dvb.dvbisl+xml":{"source":"iana","compressible":true},"application/vnd.dvb.dvbj":{"source":"iana"},"application/vnd.dvb.esgcontainer":{"source":"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess2":{"source":"iana"},"application/vnd.dvb.ipdcesgpdd":{"source":"iana"},"application/vnd.dvb.ipdcroaming":{"source":"iana"},"application/vnd.dvb.iptv.alfec-base":{"source":"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{"source":"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-container+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-generic+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-msglist+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-request+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-response+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-init+xml":{"source":"iana","compressible":true},"application/vnd.dvb.pfr":{"source":"iana"},"application/vnd.dvb.service":{"source":"iana","extensions":["svc"]},"application/vnd.dxr":{"source":"iana"},"application/vnd.dynageo":{"source":"iana","extensions":["geo"]},"application/vnd.dzr":{"source":"iana"},"application/vnd.easykaraoke.cdgdownload":{"source":"iana"},"application/vnd.ecdis-update":{"source":"iana"},"application/vnd.ecip.rlp":{"source":"iana"},"application/vnd.eclipse.ditto+json":{"source":"iana","compressible":true},"application/vnd.ecowin.chart":{"source":"iana","extensions":["mag"]},"application/vnd.ecowin.filerequest":{"source":"iana"},"application/vnd.ecowin.fileupdate":{"source":"iana"},"application/vnd.ecowin.series":{"source":"iana"},"application/vnd.ecowin.seriesrequest":{"source":"iana"},"application/vnd.ecowin.seriesupdate":{"source":"iana"},"application/vnd.efi.img":{"source":"iana"},"application/vnd.efi.iso":{"source":"iana"},"application/vnd.emclient.accessrequest+xml":{"source":"iana","compressible":true},"application/vnd.enliven":{"source":"iana","extensions":["nml"]},"application/vnd.enphase.envoy":{"source":"iana"},"application/vnd.eprints.data+xml":{"source":"iana","compressible":true},"application/vnd.epson.esf":{"source":"iana","extensions":["esf"]},"application/vnd.epson.msf":{"source":"iana","extensions":["msf"]},"application/vnd.epson.quickanime":{"source":"iana","extensions":["qam"]},"application/vnd.epson.salt":{"source":"iana","extensions":["slt"]},"application/vnd.epson.ssf":{"source":"iana","extensions":["ssf"]},"application/vnd.ericsson.quickcall":{"source":"iana"},"application/vnd.espass-espass+zip":{"source":"iana","compressible":false},"application/vnd.eszigno3+xml":{"source":"iana","compressible":true,"extensions":["es3","et3"]},"application/vnd.etsi.aoc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.asic-e+zip":{"source":"iana","compressible":false},"application/vnd.etsi.asic-s+zip":{"source":"iana","compressible":false},"application/vnd.etsi.cug+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvcommand+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-bc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-cod+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-npvr+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvservice+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsync+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvueprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mcid+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mheg5":{"source":"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{"source":"iana","compressible":true},"application/vnd.etsi.pstn+xml":{"source":"iana","compressible":true},"application/vnd.etsi.sci+xml":{"source":"iana","compressible":true},"application/vnd.etsi.simservs+xml":{"source":"iana","compressible":true},"application/vnd.etsi.timestamp-token":{"source":"iana"},"application/vnd.etsi.tsl+xml":{"source":"iana","compressible":true},"application/vnd.etsi.tsl.der":{"source":"iana"},"application/vnd.eu.kasparian.car+json":{"source":"iana","compressible":true},"application/vnd.eudora.data":{"source":"iana"},"application/vnd.evolv.ecig.profile":{"source":"iana"},"application/vnd.evolv.ecig.settings":{"source":"iana"},"application/vnd.evolv.ecig.theme":{"source":"iana"},"application/vnd.exstream-empower+zip":{"source":"iana","compressible":false},"application/vnd.exstream-package":{"source":"iana"},"application/vnd.ezpix-album":{"source":"iana","extensions":["ez2"]},"application/vnd.ezpix-package":{"source":"iana","extensions":["ez3"]},"application/vnd.f-secure.mobile":{"source":"iana"},"application/vnd.familysearch.gedcom+zip":{"source":"iana","compressible":false},"application/vnd.fastcopy-disk-image":{"source":"iana"},"application/vnd.fdf":{"source":"iana","extensions":["fdf"]},"application/vnd.fdsn.mseed":{"source":"iana","extensions":["mseed"]},"application/vnd.fdsn.seed":{"source":"iana","extensions":["seed","dataless"]},"application/vnd.ffsns":{"source":"iana"},"application/vnd.ficlab.flb+zip":{"source":"iana","compressible":false},"application/vnd.filmit.zfc":{"source":"iana"},"application/vnd.fints":{"source":"iana"},"application/vnd.firemonkeys.cloudcell":{"source":"iana"},"application/vnd.flographit":{"source":"iana","extensions":["gph"]},"application/vnd.fluxtime.clip":{"source":"iana","extensions":["ftc"]},"application/vnd.font-fontforge-sfd":{"source":"iana"},"application/vnd.framemaker":{"source":"iana","extensions":["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{"source":"iana","extensions":["fnc"]},"application/vnd.frogans.ltf":{"source":"iana","extensions":["ltf"]},"application/vnd.fsc.weblaunch":{"source":"iana","extensions":["fsc"]},"application/vnd.fujifilm.fb.docuworks":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.container":{"source":"iana"},"application/vnd.fujifilm.fb.jfi+xml":{"source":"iana","compressible":true},"application/vnd.fujitsu.oasys":{"source":"iana","extensions":["oas"]},"application/vnd.fujitsu.oasys2":{"source":"iana","extensions":["oa2"]},"application/vnd.fujitsu.oasys3":{"source":"iana","extensions":["oa3"]},"application/vnd.fujitsu.oasysgp":{"source":"iana","extensions":["fg5"]},"application/vnd.fujitsu.oasysprs":{"source":"iana","extensions":["bh2"]},"application/vnd.fujixerox.art-ex":{"source":"iana"},"application/vnd.fujixerox.art4":{"source":"iana"},"application/vnd.fujixerox.ddd":{"source":"iana","extensions":["ddd"]},"application/vnd.fujixerox.docuworks":{"source":"iana","extensions":["xdw"]},"application/vnd.fujixerox.docuworks.binder":{"source":"iana","extensions":["xbd"]},"application/vnd.fujixerox.docuworks.container":{"source":"iana"},"application/vnd.fujixerox.hbpl":{"source":"iana"},"application/vnd.fut-misnet":{"source":"iana"},"application/vnd.futoin+cbor":{"source":"iana"},"application/vnd.futoin+json":{"source":"iana","compressible":true},"application/vnd.fuzzysheet":{"source":"iana","extensions":["fzs"]},"application/vnd.genomatix.tuxedo":{"source":"iana","extensions":["txd"]},"application/vnd.gentics.grd+json":{"source":"iana","compressible":true},"application/vnd.geo+json":{"source":"iana","compressible":true},"application/vnd.geocube+xml":{"source":"iana","compressible":true},"application/vnd.geogebra.file":{"source":"iana","extensions":["ggb"]},"application/vnd.geogebra.slides":{"source":"iana"},"application/vnd.geogebra.tool":{"source":"iana","extensions":["ggt"]},"application/vnd.geometry-explorer":{"source":"iana","extensions":["gex","gre"]},"application/vnd.geonext":{"source":"iana","extensions":["gxt"]},"application/vnd.geoplan":{"source":"iana","extensions":["g2w"]},"application/vnd.geospace":{"source":"iana","extensions":["g3w"]},"application/vnd.gerber":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt-response":{"source":"iana"},"application/vnd.gmx":{"source":"iana","extensions":["gmx"]},"application/vnd.google-apps.document":{"compressible":false,"extensions":["gdoc"]},"application/vnd.google-apps.presentation":{"compressible":false,"extensions":["gslides"]},"application/vnd.google-apps.spreadsheet":{"compressible":false,"extensions":["gsheet"]},"application/vnd.google-earth.kml+xml":{"source":"iana","compressible":true,"extensions":["kml"]},"application/vnd.google-earth.kmz":{"source":"iana","compressible":false,"extensions":["kmz"]},"application/vnd.gov.sk.e-form+xml":{"source":"iana","compressible":true},"application/vnd.gov.sk.e-form+zip":{"source":"iana","compressible":false},"application/vnd.gov.sk.xmldatacontainer+xml":{"source":"iana","compressible":true},"application/vnd.grafeq":{"source":"iana","extensions":["gqf","gqs"]},"application/vnd.gridmp":{"source":"iana"},"application/vnd.groove-account":{"source":"iana","extensions":["gac"]},"application/vnd.groove-help":{"source":"iana","extensions":["ghf"]},"application/vnd.groove-identity-message":{"source":"iana","extensions":["gim"]},"application/vnd.groove-injector":{"source":"iana","extensions":["grv"]},"application/vnd.groove-tool-message":{"source":"iana","extensions":["gtm"]},"application/vnd.groove-tool-template":{"source":"iana","extensions":["tpl"]},"application/vnd.groove-vcard":{"source":"iana","extensions":["vcg"]},"application/vnd.hal+json":{"source":"iana","compressible":true},"application/vnd.hal+xml":{"source":"iana","compressible":true,"extensions":["hal"]},"application/vnd.handheld-entertainment+xml":{"source":"iana","compressible":true,"extensions":["zmm"]},"application/vnd.hbci":{"source":"iana","extensions":["hbci"]},"application/vnd.hc+json":{"source":"iana","compressible":true},"application/vnd.hcl-bireports":{"source":"iana"},"application/vnd.hdt":{"source":"iana"},"application/vnd.heroku+json":{"source":"iana","compressible":true},"application/vnd.hhe.lesson-player":{"source":"iana","extensions":["les"]},"application/vnd.hl7cda+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hl7v2+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hp-hpgl":{"source":"iana","extensions":["hpgl"]},"application/vnd.hp-hpid":{"source":"iana","extensions":["hpid"]},"application/vnd.hp-hps":{"source":"iana","extensions":["hps"]},"application/vnd.hp-jlyt":{"source":"iana","extensions":["jlt"]},"application/vnd.hp-pcl":{"source":"iana","extensions":["pcl"]},"application/vnd.hp-pclxl":{"source":"iana","extensions":["pclxl"]},"application/vnd.httphone":{"source":"iana"},"application/vnd.hydrostatix.sof-data":{"source":"iana","extensions":["sfd-hdstx"]},"application/vnd.hyper+json":{"source":"iana","compressible":true},"application/vnd.hyper-item+json":{"source":"iana","compressible":true},"application/vnd.hyperdrive+json":{"source":"iana","compressible":true},"application/vnd.hzn-3d-crossword":{"source":"iana"},"application/vnd.ibm.afplinedata":{"source":"iana"},"application/vnd.ibm.electronic-media":{"source":"iana"},"application/vnd.ibm.minipay":{"source":"iana","extensions":["mpy"]},"application/vnd.ibm.modcap":{"source":"iana","extensions":["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{"source":"iana","extensions":["irm"]},"application/vnd.ibm.secure-container":{"source":"iana","extensions":["sc"]},"application/vnd.iccprofile":{"source":"iana","extensions":["icc","icm"]},"application/vnd.ieee.1905":{"source":"iana"},"application/vnd.igloader":{"source":"iana","extensions":["igl"]},"application/vnd.imagemeter.folder+zip":{"source":"iana","compressible":false},"application/vnd.imagemeter.image+zip":{"source":"iana","compressible":false},"application/vnd.immervision-ivp":{"source":"iana","extensions":["ivp"]},"application/vnd.immervision-ivu":{"source":"iana","extensions":["ivu"]},"application/vnd.ims.imsccv1p1":{"source":"iana"},"application/vnd.ims.imsccv1p2":{"source":"iana"},"application/vnd.ims.imsccv1p3":{"source":"iana"},"application/vnd.ims.lis.v2.result+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy.id+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings.simple+json":{"source":"iana","compressible":true},"application/vnd.informedcontrol.rms+xml":{"source":"iana","compressible":true},"application/vnd.informix-visionary":{"source":"iana"},"application/vnd.infotech.project":{"source":"iana"},"application/vnd.infotech.project+xml":{"source":"iana","compressible":true},"application/vnd.innopath.wamp.notification":{"source":"iana"},"application/vnd.insors.igm":{"source":"iana","extensions":["igm"]},"application/vnd.intercon.formnet":{"source":"iana","extensions":["xpw","xpx"]},"application/vnd.intergeo":{"source":"iana","extensions":["i2g"]},"application/vnd.intertrust.digibox":{"source":"iana"},"application/vnd.intertrust.nncp":{"source":"iana"},"application/vnd.intu.qbo":{"source":"iana","extensions":["qbo"]},"application/vnd.intu.qfx":{"source":"iana","extensions":["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.conceptitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.knowledgeitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsmessage+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.packageitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.planningitem+xml":{"source":"iana","compressible":true},"application/vnd.ipunplugged.rcprofile":{"source":"iana","extensions":["rcprofile"]},"application/vnd.irepository.package+xml":{"source":"iana","compressible":true,"extensions":["irp"]},"application/vnd.is-xpr":{"source":"iana","extensions":["xpr"]},"application/vnd.isac.fcs":{"source":"iana","extensions":["fcs"]},"application/vnd.iso11783-10+zip":{"source":"iana","compressible":false},"application/vnd.jam":{"source":"iana","extensions":["jam"]},"application/vnd.japannet-directory-service":{"source":"iana"},"application/vnd.japannet-jpnstore-wakeup":{"source":"iana"},"application/vnd.japannet-payment-wakeup":{"source":"iana"},"application/vnd.japannet-registration":{"source":"iana"},"application/vnd.japannet-registration-wakeup":{"source":"iana"},"application/vnd.japannet-setstore-wakeup":{"source":"iana"},"application/vnd.japannet-verification":{"source":"iana"},"application/vnd.japannet-verification-wakeup":{"source":"iana"},"application/vnd.jcp.javame.midlet-rms":{"source":"iana","extensions":["rms"]},"application/vnd.jisp":{"source":"iana","extensions":["jisp"]},"application/vnd.joost.joda-archive":{"source":"iana","extensions":["joda"]},"application/vnd.jsk.isdn-ngn":{"source":"iana"},"application/vnd.kahootz":{"source":"iana","extensions":["ktz","ktr"]},"application/vnd.kde.karbon":{"source":"iana","extensions":["karbon"]},"application/vnd.kde.kchart":{"source":"iana","extensions":["chrt"]},"application/vnd.kde.kformula":{"source":"iana","extensions":["kfo"]},"application/vnd.kde.kivio":{"source":"iana","extensions":["flw"]},"application/vnd.kde.kontour":{"source":"iana","extensions":["kon"]},"application/vnd.kde.kpresenter":{"source":"iana","extensions":["kpr","kpt"]},"application/vnd.kde.kspread":{"source":"iana","extensions":["ksp"]},"application/vnd.kde.kword":{"source":"iana","extensions":["kwd","kwt"]},"application/vnd.kenameaapp":{"source":"iana","extensions":["htke"]},"application/vnd.kidspiration":{"source":"iana","extensions":["kia"]},"application/vnd.kinar":{"source":"iana","extensions":["kne","knp"]},"application/vnd.koan":{"source":"iana","extensions":["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{"source":"iana","extensions":["sse"]},"application/vnd.las":{"source":"iana"},"application/vnd.las.las+json":{"source":"iana","compressible":true},"application/vnd.las.las+xml":{"source":"iana","compressible":true,"extensions":["lasxml"]},"application/vnd.laszip":{"source":"iana"},"application/vnd.leap+json":{"source":"iana","compressible":true},"application/vnd.liberty-request+xml":{"source":"iana","compressible":true},"application/vnd.llamagraphics.life-balance.desktop":{"source":"iana","extensions":["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{"source":"iana","compressible":true,"extensions":["lbe"]},"application/vnd.logipipe.circuit+zip":{"source":"iana","compressible":false},"application/vnd.loom":{"source":"iana"},"application/vnd.lotus-1-2-3":{"source":"iana","extensions":["123"]},"application/vnd.lotus-approach":{"source":"iana","extensions":["apr"]},"application/vnd.lotus-freelance":{"source":"iana","extensions":["pre"]},"application/vnd.lotus-notes":{"source":"iana","extensions":["nsf"]},"application/vnd.lotus-organizer":{"source":"iana","extensions":["org"]},"application/vnd.lotus-screencam":{"source":"iana","extensions":["scm"]},"application/vnd.lotus-wordpro":{"source":"iana","extensions":["lwp"]},"application/vnd.macports.portpkg":{"source":"iana","extensions":["portpkg"]},"application/vnd.mapbox-vector-tile":{"source":"iana","extensions":["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.conftoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.license+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.mdcf":{"source":"iana"},"application/vnd.mason+json":{"source":"iana","compressible":true},"application/vnd.maxar.archive.3tz+zip":{"source":"iana","compressible":false},"application/vnd.maxmind.maxmind-db":{"source":"iana"},"application/vnd.mcd":{"source":"iana","extensions":["mcd"]},"application/vnd.medcalcdata":{"source":"iana","extensions":["mc1"]},"application/vnd.mediastation.cdkey":{"source":"iana","extensions":["cdkey"]},"application/vnd.meridian-slingshot":{"source":"iana"},"application/vnd.mfer":{"source":"iana","extensions":["mwf"]},"application/vnd.mfmp":{"source":"iana","extensions":["mfm"]},"application/vnd.micro+json":{"source":"iana","compressible":true},"application/vnd.micrografx.flo":{"source":"iana","extensions":["flo"]},"application/vnd.micrografx.igx":{"source":"iana","extensions":["igx"]},"application/vnd.microsoft.portable-executable":{"source":"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{"source":"iana"},"application/vnd.miele+json":{"source":"iana","compressible":true},"application/vnd.mif":{"source":"iana","extensions":["mif"]},"application/vnd.minisoft-hp3000-save":{"source":"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{"source":"iana"},"application/vnd.mobius.daf":{"source":"iana","extensions":["daf"]},"application/vnd.mobius.dis":{"source":"iana","extensions":["dis"]},"application/vnd.mobius.mbk":{"source":"iana","extensions":["mbk"]},"application/vnd.mobius.mqy":{"source":"iana","extensions":["mqy"]},"application/vnd.mobius.msl":{"source":"iana","extensions":["msl"]},"application/vnd.mobius.plc":{"source":"iana","extensions":["plc"]},"application/vnd.mobius.txf":{"source":"iana","extensions":["txf"]},"application/vnd.mophun.application":{"source":"iana","extensions":["mpn"]},"application/vnd.mophun.certificate":{"source":"iana","extensions":["mpc"]},"application/vnd.motorola.flexsuite":{"source":"iana"},"application/vnd.motorola.flexsuite.adsi":{"source":"iana"},"application/vnd.motorola.flexsuite.fis":{"source":"iana"},"application/vnd.motorola.flexsuite.gotap":{"source":"iana"},"application/vnd.motorola.flexsuite.kmr":{"source":"iana"},"application/vnd.motorola.flexsuite.ttc":{"source":"iana"},"application/vnd.motorola.flexsuite.wem":{"source":"iana"},"application/vnd.motorola.iprm":{"source":"iana"},"application/vnd.mozilla.xul+xml":{"source":"iana","compressible":true,"extensions":["xul"]},"application/vnd.ms-3mfdocument":{"source":"iana"},"application/vnd.ms-artgalry":{"source":"iana","extensions":["cil"]},"application/vnd.ms-asf":{"source":"iana"},"application/vnd.ms-cab-compressed":{"source":"iana","extensions":["cab"]},"application/vnd.ms-color.iccprofile":{"source":"apache"},"application/vnd.ms-excel":{"source":"iana","compressible":false,"extensions":["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{"source":"iana","extensions":["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{"source":"iana","extensions":["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{"source":"iana","extensions":["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{"source":"iana","extensions":["xltm"]},"application/vnd.ms-fontobject":{"source":"iana","compressible":true,"extensions":["eot"]},"application/vnd.ms-htmlhelp":{"source":"iana","extensions":["chm"]},"application/vnd.ms-ims":{"source":"iana","extensions":["ims"]},"application/vnd.ms-lrm":{"source":"iana","extensions":["lrm"]},"application/vnd.ms-office.activex+xml":{"source":"iana","compressible":true},"application/vnd.ms-officetheme":{"source":"iana","extensions":["thmx"]},"application/vnd.ms-opentype":{"source":"apache","compressible":true},"application/vnd.ms-outlook":{"compressible":false,"extensions":["msg"]},"application/vnd.ms-package.obfuscated-opentype":{"source":"apache"},"application/vnd.ms-pki.seccat":{"source":"apache","extensions":["cat"]},"application/vnd.ms-pki.stl":{"source":"apache","extensions":["stl"]},"application/vnd.ms-playready.initiator+xml":{"source":"iana","compressible":true},"application/vnd.ms-powerpoint":{"source":"iana","compressible":false,"extensions":["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{"source":"iana","extensions":["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{"source":"iana","extensions":["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{"source":"iana","extensions":["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{"source":"iana","extensions":["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{"source":"iana","extensions":["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{"source":"iana","compressible":true},"application/vnd.ms-printing.printticket+xml":{"source":"apache","compressible":true},"application/vnd.ms-printschematicket+xml":{"source":"iana","compressible":true},"application/vnd.ms-project":{"source":"iana","extensions":["mpp","mpt"]},"application/vnd.ms-tnef":{"source":"iana"},"application/vnd.ms-windows.devicepairing":{"source":"iana"},"application/vnd.ms-windows.nwprinting.oob":{"source":"iana"},"application/vnd.ms-windows.printerpairing":{"source":"iana"},"application/vnd.ms-windows.wsd.oob":{"source":"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.lic-resp":{"source":"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.meter-resp":{"source":"iana"},"application/vnd.ms-word.document.macroenabled.12":{"source":"iana","extensions":["docm"]},"application/vnd.ms-word.template.macroenabled.12":{"source":"iana","extensions":["dotm"]},"application/vnd.ms-works":{"source":"iana","extensions":["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{"source":"iana","extensions":["wpl"]},"application/vnd.ms-xpsdocument":{"source":"iana","compressible":false,"extensions":["xps"]},"application/vnd.msa-disk-image":{"source":"iana"},"application/vnd.mseq":{"source":"iana","extensions":["mseq"]},"application/vnd.msign":{"source":"iana"},"application/vnd.multiad.creator":{"source":"iana"},"application/vnd.multiad.creator.cif":{"source":"iana"},"application/vnd.music-niff":{"source":"iana"},"application/vnd.musician":{"source":"iana","extensions":["mus"]},"application/vnd.muvee.style":{"source":"iana","extensions":["msty"]},"application/vnd.mynfc":{"source":"iana","extensions":["taglet"]},"application/vnd.nacamar.ybrid+json":{"source":"iana","compressible":true},"application/vnd.ncd.control":{"source":"iana"},"application/vnd.ncd.reference":{"source":"iana"},"application/vnd.nearst.inv+json":{"source":"iana","compressible":true},"application/vnd.nebumind.line":{"source":"iana"},"application/vnd.nervana":{"source":"iana"},"application/vnd.netfpx":{"source":"iana"},"application/vnd.neurolanguage.nlu":{"source":"iana","extensions":["nlu"]},"application/vnd.nimn":{"source":"iana"},"application/vnd.nintendo.nitro.rom":{"source":"iana"},"application/vnd.nintendo.snes.rom":{"source":"iana"},"application/vnd.nitf":{"source":"iana","extensions":["ntf","nitf"]},"application/vnd.noblenet-directory":{"source":"iana","extensions":["nnd"]},"application/vnd.noblenet-sealer":{"source":"iana","extensions":["nns"]},"application/vnd.noblenet-web":{"source":"iana","extensions":["nnw"]},"application/vnd.nokia.catalogs":{"source":"iana"},"application/vnd.nokia.conml+wbxml":{"source":"iana"},"application/vnd.nokia.conml+xml":{"source":"iana","compressible":true},"application/vnd.nokia.iptv.config+xml":{"source":"iana","compressible":true},"application/vnd.nokia.isds-radio-presets":{"source":"iana"},"application/vnd.nokia.landmark+wbxml":{"source":"iana"},"application/vnd.nokia.landmark+xml":{"source":"iana","compressible":true},"application/vnd.nokia.landmarkcollection+xml":{"source":"iana","compressible":true},"application/vnd.nokia.n-gage.ac+xml":{"source":"iana","compressible":true,"extensions":["ac"]},"application/vnd.nokia.n-gage.data":{"source":"iana","extensions":["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{"source":"iana","extensions":["n-gage"]},"application/vnd.nokia.ncd":{"source":"iana"},"application/vnd.nokia.pcd+wbxml":{"source":"iana"},"application/vnd.nokia.pcd+xml":{"source":"iana","compressible":true},"application/vnd.nokia.radio-preset":{"source":"iana","extensions":["rpst"]},"application/vnd.nokia.radio-presets":{"source":"iana","extensions":["rpss"]},"application/vnd.novadigm.edm":{"source":"iana","extensions":["edm"]},"application/vnd.novadigm.edx":{"source":"iana","extensions":["edx"]},"application/vnd.novadigm.ext":{"source":"iana","extensions":["ext"]},"application/vnd.ntt-local.content-share":{"source":"iana"},"application/vnd.ntt-local.file-transfer":{"source":"iana"},"application/vnd.ntt-local.ogw_remote-access":{"source":"iana"},"application/vnd.ntt-local.sip-ta_remote":{"source":"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{"source":"iana"},"application/vnd.oasis.opendocument.chart":{"source":"iana","extensions":["odc"]},"application/vnd.oasis.opendocument.chart-template":{"source":"iana","extensions":["otc"]},"application/vnd.oasis.opendocument.database":{"source":"iana","extensions":["odb"]},"application/vnd.oasis.opendocument.formula":{"source":"iana","extensions":["odf"]},"application/vnd.oasis.opendocument.formula-template":{"source":"iana","extensions":["odft"]},"application/vnd.oasis.opendocument.graphics":{"source":"iana","compressible":false,"extensions":["odg"]},"application/vnd.oasis.opendocument.graphics-template":{"source":"iana","extensions":["otg"]},"application/vnd.oasis.opendocument.image":{"source":"iana","extensions":["odi"]},"application/vnd.oasis.opendocument.image-template":{"source":"iana","extensions":["oti"]},"application/vnd.oasis.opendocument.presentation":{"source":"iana","compressible":false,"extensions":["odp"]},"application/vnd.oasis.opendocument.presentation-template":{"source":"iana","extensions":["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{"source":"iana","compressible":false,"extensions":["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{"source":"iana","extensions":["ots"]},"application/vnd.oasis.opendocument.text":{"source":"iana","compressible":false,"extensions":["odt"]},"application/vnd.oasis.opendocument.text-master":{"source":"iana","extensions":["odm"]},"application/vnd.oasis.opendocument.text-template":{"source":"iana","extensions":["ott"]},"application/vnd.oasis.opendocument.text-web":{"source":"iana","extensions":["oth"]},"application/vnd.obn":{"source":"iana"},"application/vnd.ocf+cbor":{"source":"iana"},"application/vnd.oci.image.manifest.v1+json":{"source":"iana","compressible":true},"application/vnd.oftn.l10n+json":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessdownload+xml":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessstreaming+xml":{"source":"iana","compressible":true},"application/vnd.oipf.cspg-hexbinary":{"source":"iana"},"application/vnd.oipf.dae.svg+xml":{"source":"iana","compressible":true},"application/vnd.oipf.dae.xhtml+xml":{"source":"iana","compressible":true},"application/vnd.oipf.mippvcontrolmessage+xml":{"source":"iana","compressible":true},"application/vnd.oipf.pae.gem":{"source":"iana"},"application/vnd.oipf.spdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.oipf.spdlist+xml":{"source":"iana","compressible":true},"application/vnd.oipf.ueprofile+xml":{"source":"iana","compressible":true},"application/vnd.oipf.userprofile+xml":{"source":"iana","compressible":true},"application/vnd.olpc-sugar":{"source":"iana","extensions":["xo"]},"application/vnd.oma-scws-config":{"source":"iana"},"application/vnd.oma-scws-http-request":{"source":"iana"},"application/vnd.oma-scws-http-response":{"source":"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.drm-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.imd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.ltkm":{"source":"iana"},"application/vnd.oma.bcast.notification+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.provisioningtrigger":{"source":"iana"},"application/vnd.oma.bcast.sgboot":{"source":"iana"},"application/vnd.oma.bcast.sgdd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sgdu":{"source":"iana"},"application/vnd.oma.bcast.simple-symbol-container":{"source":"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sprov+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.stkm":{"source":"iana"},"application/vnd.oma.cab-address-book+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-feature-handler+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-pcc+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-subs-invite+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-user-prefs+xml":{"source":"iana","compressible":true},"application/vnd.oma.dcd":{"source":"iana"},"application/vnd.oma.dcdc":{"source":"iana"},"application/vnd.oma.dd2+xml":{"source":"iana","compressible":true,"extensions":["dd2"]},"application/vnd.oma.drm.risd+xml":{"source":"iana","compressible":true},"application/vnd.oma.group-usage-list+xml":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+cbor":{"source":"iana"},"application/vnd.oma.lwm2m+json":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+tlv":{"source":"iana"},"application/vnd.oma.pal+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.detailed-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.final-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.groups+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.invocation-descriptor+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.optimized-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.push":{"source":"iana"},"application/vnd.oma.scidm.messages+xml":{"source":"iana","compressible":true},"application/vnd.oma.xcap-directory+xml":{"source":"iana","compressible":true},"application/vnd.omads-email+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-file+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-folder+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omaloc-supl-init":{"source":"iana"},"application/vnd.onepager":{"source":"iana"},"application/vnd.onepagertamp":{"source":"iana"},"application/vnd.onepagertamx":{"source":"iana"},"application/vnd.onepagertat":{"source":"iana"},"application/vnd.onepagertatp":{"source":"iana"},"application/vnd.onepagertatx":{"source":"iana"},"application/vnd.openblox.game+xml":{"source":"iana","compressible":true,"extensions":["obgx"]},"application/vnd.openblox.game-binary":{"source":"iana"},"application/vnd.openeye.oeb":{"source":"iana"},"application/vnd.openofficeorg.extension":{"source":"apache","extensions":["oxt"]},"application/vnd.openstreetmap.data+xml":{"source":"iana","compressible":true,"extensions":["osm"]},"application/vnd.opentimestamps.ots":{"source":"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawing+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"source":"iana","compressible":false,"extensions":["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slide":{"source":"iana","extensions":["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{"source":"iana","extensions":["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.template":{"source":"iana","extensions":["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"source":"iana","compressible":false,"extensions":["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{"source":"iana","extensions":["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.theme+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.vmldrawing":{"source":"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"source":"iana","compressible":false,"extensions":["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{"source":"iana","extensions":["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.core-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.relationships+xml":{"source":"iana","compressible":true},"application/vnd.oracle.resource+json":{"source":"iana","compressible":true},"application/vnd.orange.indata":{"source":"iana"},"application/vnd.osa.netdeploy":{"source":"iana"},"application/vnd.osgeo.mapguide.package":{"source":"iana","extensions":["mgp"]},"application/vnd.osgi.bundle":{"source":"iana"},"application/vnd.osgi.dp":{"source":"iana","extensions":["dp"]},"application/vnd.osgi.subsystem":{"source":"iana","extensions":["esa"]},"application/vnd.otps.ct-kip+xml":{"source":"iana","compressible":true},"application/vnd.oxli.countgraph":{"source":"iana"},"application/vnd.pagerduty+json":{"source":"iana","compressible":true},"application/vnd.palm":{"source":"iana","extensions":["pdb","pqa","oprc"]},"application/vnd.panoply":{"source":"iana"},"application/vnd.paos.xml":{"source":"iana"},"application/vnd.patentdive":{"source":"iana"},"application/vnd.patientecommsdoc":{"source":"iana"},"application/vnd.pawaafile":{"source":"iana","extensions":["paw"]},"application/vnd.pcos":{"source":"iana"},"application/vnd.pg.format":{"source":"iana","extensions":["str"]},"application/vnd.pg.osasli":{"source":"iana","extensions":["ei6"]},"application/vnd.piaccess.application-licence":{"source":"iana"},"application/vnd.picsel":{"source":"iana","extensions":["efif"]},"application/vnd.pmi.widget":{"source":"iana","extensions":["wg"]},"application/vnd.poc.group-advertisement+xml":{"source":"iana","compressible":true},"application/vnd.pocketlearn":{"source":"iana","extensions":["plf"]},"application/vnd.powerbuilder6":{"source":"iana","extensions":["pbd"]},"application/vnd.powerbuilder6-s":{"source":"iana"},"application/vnd.powerbuilder7":{"source":"iana"},"application/vnd.powerbuilder7-s":{"source":"iana"},"application/vnd.powerbuilder75":{"source":"iana"},"application/vnd.powerbuilder75-s":{"source":"iana"},"application/vnd.preminet":{"source":"iana"},"application/vnd.previewsystems.box":{"source":"iana","extensions":["box"]},"application/vnd.proteus.magazine":{"source":"iana","extensions":["mgz"]},"application/vnd.psfs":{"source":"iana"},"application/vnd.publishare-delta-tree":{"source":"iana","extensions":["qps"]},"application/vnd.pvi.ptid1":{"source":"iana","extensions":["ptid"]},"application/vnd.pwg-multiplexed":{"source":"iana"},"application/vnd.pwg-xhtml-print+xml":{"source":"iana","compressible":true},"application/vnd.qualcomm.brew-app-res":{"source":"iana"},"application/vnd.quarantainenet":{"source":"iana"},"application/vnd.quark.quarkxpress":{"source":"iana","extensions":["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{"source":"iana"},"application/vnd.radisys.moml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conn+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-stream+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-base+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-detect+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-group+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-speech+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-transform+xml":{"source":"iana","compressible":true},"application/vnd.rainstor.data":{"source":"iana"},"application/vnd.rapid":{"source":"iana"},"application/vnd.rar":{"source":"iana","extensions":["rar"]},"application/vnd.realvnc.bed":{"source":"iana","extensions":["bed"]},"application/vnd.recordare.musicxml":{"source":"iana","extensions":["mxl"]},"application/vnd.recordare.musicxml+xml":{"source":"iana","compressible":true,"extensions":["musicxml"]},"application/vnd.renlearn.rlprint":{"source":"iana"},"application/vnd.resilient.logic":{"source":"iana"},"application/vnd.restful+json":{"source":"iana","compressible":true},"application/vnd.rig.cryptonote":{"source":"iana","extensions":["cryptonote"]},"application/vnd.rim.cod":{"source":"apache","extensions":["cod"]},"application/vnd.rn-realmedia":{"source":"apache","extensions":["rm"]},"application/vnd.rn-realmedia-vbr":{"source":"apache","extensions":["rmvb"]},"application/vnd.route66.link66+xml":{"source":"iana","compressible":true,"extensions":["link66"]},"application/vnd.rs-274x":{"source":"iana"},"application/vnd.ruckus.download":{"source":"iana"},"application/vnd.s3sms":{"source":"iana"},"application/vnd.sailingtracker.track":{"source":"iana","extensions":["st"]},"application/vnd.sar":{"source":"iana"},"application/vnd.sbm.cid":{"source":"iana"},"application/vnd.sbm.mid2":{"source":"iana"},"application/vnd.scribus":{"source":"iana"},"application/vnd.sealed.3df":{"source":"iana"},"application/vnd.sealed.csf":{"source":"iana"},"application/vnd.sealed.doc":{"source":"iana"},"application/vnd.sealed.eml":{"source":"iana"},"application/vnd.sealed.mht":{"source":"iana"},"application/vnd.sealed.net":{"source":"iana"},"application/vnd.sealed.ppt":{"source":"iana"},"application/vnd.sealed.tiff":{"source":"iana"},"application/vnd.sealed.xls":{"source":"iana"},"application/vnd.sealedmedia.softseal.html":{"source":"iana"},"application/vnd.sealedmedia.softseal.pdf":{"source":"iana"},"application/vnd.seemail":{"source":"iana","extensions":["see"]},"application/vnd.seis+json":{"source":"iana","compressible":true},"application/vnd.sema":{"source":"iana","extensions":["sema"]},"application/vnd.semd":{"source":"iana","extensions":["semd"]},"application/vnd.semf":{"source":"iana","extensions":["semf"]},"application/vnd.shade-save-file":{"source":"iana"},"application/vnd.shana.informed.formdata":{"source":"iana","extensions":["ifm"]},"application/vnd.shana.informed.formtemplate":{"source":"iana","extensions":["itp"]},"application/vnd.shana.informed.interchange":{"source":"iana","extensions":["iif"]},"application/vnd.shana.informed.package":{"source":"iana","extensions":["ipk"]},"application/vnd.shootproof+json":{"source":"iana","compressible":true},"application/vnd.shopkick+json":{"source":"iana","compressible":true},"application/vnd.shp":{"source":"iana"},"application/vnd.shx":{"source":"iana"},"application/vnd.sigrok.session":{"source":"iana"},"application/vnd.simtech-mindmapper":{"source":"iana","extensions":["twd","twds"]},"application/vnd.siren+json":{"source":"iana","compressible":true},"application/vnd.smaf":{"source":"iana","extensions":["mmf"]},"application/vnd.smart.notebook":{"source":"iana"},"application/vnd.smart.teacher":{"source":"iana","extensions":["teacher"]},"application/vnd.snesdev-page-table":{"source":"iana"},"application/vnd.software602.filler.form+xml":{"source":"iana","compressible":true,"extensions":["fo"]},"application/vnd.software602.filler.form-xml-zip":{"source":"iana"},"application/vnd.solent.sdkm+xml":{"source":"iana","compressible":true,"extensions":["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{"source":"iana","extensions":["dxp"]},"application/vnd.spotfire.sfs":{"source":"iana","extensions":["sfs"]},"application/vnd.sqlite3":{"source":"iana"},"application/vnd.sss-cod":{"source":"iana"},"application/vnd.sss-dtf":{"source":"iana"},"application/vnd.sss-ntf":{"source":"iana"},"application/vnd.stardivision.calc":{"source":"apache","extensions":["sdc"]},"application/vnd.stardivision.draw":{"source":"apache","extensions":["sda"]},"application/vnd.stardivision.impress":{"source":"apache","extensions":["sdd"]},"application/vnd.stardivision.math":{"source":"apache","extensions":["smf"]},"application/vnd.stardivision.writer":{"source":"apache","extensions":["sdw","vor"]},"application/vnd.stardivision.writer-global":{"source":"apache","extensions":["sgl"]},"application/vnd.stepmania.package":{"source":"iana","extensions":["smzip"]},"application/vnd.stepmania.stepchart":{"source":"iana","extensions":["sm"]},"application/vnd.street-stream":{"source":"iana"},"application/vnd.sun.wadl+xml":{"source":"iana","compressible":true,"extensions":["wadl"]},"application/vnd.sun.xml.calc":{"source":"apache","extensions":["sxc"]},"application/vnd.sun.xml.calc.template":{"source":"apache","extensions":["stc"]},"application/vnd.sun.xml.draw":{"source":"apache","extensions":["sxd"]},"application/vnd.sun.xml.draw.template":{"source":"apache","extensions":["std"]},"application/vnd.sun.xml.impress":{"source":"apache","extensions":["sxi"]},"application/vnd.sun.xml.impress.template":{"source":"apache","extensions":["sti"]},"application/vnd.sun.xml.math":{"source":"apache","extensions":["sxm"]},"application/vnd.sun.xml.writer":{"source":"apache","extensions":["sxw"]},"application/vnd.sun.xml.writer.global":{"source":"apache","extensions":["sxg"]},"application/vnd.sun.xml.writer.template":{"source":"apache","extensions":["stw"]},"application/vnd.sus-calendar":{"source":"iana","extensions":["sus","susp"]},"application/vnd.svd":{"source":"iana","extensions":["svd"]},"application/vnd.swiftview-ics":{"source":"iana"},"application/vnd.sycle+xml":{"source":"iana","compressible":true},"application/vnd.syft+json":{"source":"iana","compressible":true},"application/vnd.symbian.install":{"source":"apache","extensions":["sis","sisx"]},"application/vnd.syncml+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xsm"]},"application/vnd.syncml.dm+wbxml":{"source":"iana","charset":"UTF-8","extensions":["bdm"]},"application/vnd.syncml.dm+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xdm"]},"application/vnd.syncml.dm.notification":{"source":"iana"},"application/vnd.syncml.dmddf+wbxml":{"source":"iana"},"application/vnd.syncml.dmddf+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{"source":"iana"},"application/vnd.syncml.dmtnds+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.syncml.ds.notification":{"source":"iana"},"application/vnd.tableschema+json":{"source":"iana","compressible":true},"application/vnd.tao.intent-module-archive":{"source":"iana","extensions":["tao"]},"application/vnd.tcpdump.pcap":{"source":"iana","extensions":["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{"source":"iana","compressible":true},"application/vnd.tmd.mediaflex.api+xml":{"source":"iana","compressible":true},"application/vnd.tml":{"source":"iana"},"application/vnd.tmobile-livetv":{"source":"iana","extensions":["tmo"]},"application/vnd.tri.onesource":{"source":"iana"},"application/vnd.trid.tpt":{"source":"iana","extensions":["tpt"]},"application/vnd.triscape.mxs":{"source":"iana","extensions":["mxs"]},"application/vnd.trueapp":{"source":"iana","extensions":["tra"]},"application/vnd.truedoc":{"source":"iana"},"application/vnd.ubisoft.webplayer":{"source":"iana"},"application/vnd.ufdl":{"source":"iana","extensions":["ufd","ufdl"]},"application/vnd.uiq.theme":{"source":"iana","extensions":["utz"]},"application/vnd.umajin":{"source":"iana","extensions":["umj"]},"application/vnd.unity":{"source":"iana","extensions":["unityweb"]},"application/vnd.uoml+xml":{"source":"iana","compressible":true,"extensions":["uoml"]},"application/vnd.uplanet.alert":{"source":"iana"},"application/vnd.uplanet.alert-wbxml":{"source":"iana"},"application/vnd.uplanet.bearer-choice":{"source":"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{"source":"iana"},"application/vnd.uplanet.cacheop":{"source":"iana"},"application/vnd.uplanet.cacheop-wbxml":{"source":"iana"},"application/vnd.uplanet.channel":{"source":"iana"},"application/vnd.uplanet.channel-wbxml":{"source":"iana"},"application/vnd.uplanet.list":{"source":"iana"},"application/vnd.uplanet.list-wbxml":{"source":"iana"},"application/vnd.uplanet.listcmd":{"source":"iana"},"application/vnd.uplanet.listcmd-wbxml":{"source":"iana"},"application/vnd.uplanet.signal":{"source":"iana"},"application/vnd.uri-map":{"source":"iana"},"application/vnd.valve.source.material":{"source":"iana"},"application/vnd.vcx":{"source":"iana","extensions":["vcx"]},"application/vnd.vd-study":{"source":"iana"},"application/vnd.vectorworks":{"source":"iana"},"application/vnd.vel+json":{"source":"iana","compressible":true},"application/vnd.verimatrix.vcas":{"source":"iana"},"application/vnd.veritone.aion+json":{"source":"iana","compressible":true},"application/vnd.veryant.thin":{"source":"iana"},"application/vnd.ves.encrypted":{"source":"iana"},"application/vnd.vidsoft.vidconference":{"source":"iana"},"application/vnd.visio":{"source":"iana","extensions":["vsd","vst","vss","vsw"]},"application/vnd.visionary":{"source":"iana","extensions":["vis"]},"application/vnd.vividence.scriptfile":{"source":"iana"},"application/vnd.vsf":{"source":"iana","extensions":["vsf"]},"application/vnd.wap.sic":{"source":"iana"},"application/vnd.wap.slc":{"source":"iana"},"application/vnd.wap.wbxml":{"source":"iana","charset":"UTF-8","extensions":["wbxml"]},"application/vnd.wap.wmlc":{"source":"iana","extensions":["wmlc"]},"application/vnd.wap.wmlscriptc":{"source":"iana","extensions":["wmlsc"]},"application/vnd.webturbo":{"source":"iana","extensions":["wtb"]},"application/vnd.wfa.dpp":{"source":"iana"},"application/vnd.wfa.p2p":{"source":"iana"},"application/vnd.wfa.wsc":{"source":"iana"},"application/vnd.windows.devicepairing":{"source":"iana"},"application/vnd.wmc":{"source":"iana"},"application/vnd.wmf.bootstrap":{"source":"iana"},"application/vnd.wolfram.mathematica":{"source":"iana"},"application/vnd.wolfram.mathematica.package":{"source":"iana"},"application/vnd.wolfram.player":{"source":"iana","extensions":["nbp"]},"application/vnd.wordperfect":{"source":"iana","extensions":["wpd"]},"application/vnd.wqd":{"source":"iana","extensions":["wqd"]},"application/vnd.wrq-hp3000-labelled":{"source":"iana"},"application/vnd.wt.stf":{"source":"iana","extensions":["stf"]},"application/vnd.wv.csp+wbxml":{"source":"iana"},"application/vnd.wv.csp+xml":{"source":"iana","compressible":true},"application/vnd.wv.ssp+xml":{"source":"iana","compressible":true},"application/vnd.xacml+json":{"source":"iana","compressible":true},"application/vnd.xara":{"source":"iana","extensions":["xar"]},"application/vnd.xfdl":{"source":"iana","extensions":["xfdl"]},"application/vnd.xfdl.webform":{"source":"iana"},"application/vnd.xmi+xml":{"source":"iana","compressible":true},"application/vnd.xmpie.cpkg":{"source":"iana"},"application/vnd.xmpie.dpkg":{"source":"iana"},"application/vnd.xmpie.plan":{"source":"iana"},"application/vnd.xmpie.ppkg":{"source":"iana"},"application/vnd.xmpie.xlim":{"source":"iana"},"application/vnd.yamaha.hv-dic":{"source":"iana","extensions":["hvd"]},"application/vnd.yamaha.hv-script":{"source":"iana","extensions":["hvs"]},"application/vnd.yamaha.hv-voice":{"source":"iana","extensions":["hvp"]},"application/vnd.yamaha.openscoreformat":{"source":"iana","extensions":["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{"source":"iana","compressible":true,"extensions":["osfpvg"]},"application/vnd.yamaha.remote-setup":{"source":"iana"},"application/vnd.yamaha.smaf-audio":{"source":"iana","extensions":["saf"]},"application/vnd.yamaha.smaf-phrase":{"source":"iana","extensions":["spf"]},"application/vnd.yamaha.through-ngn":{"source":"iana"},"application/vnd.yamaha.tunnel-udpencap":{"source":"iana"},"application/vnd.yaoweme":{"source":"iana"},"application/vnd.yellowriver-custom-menu":{"source":"iana","extensions":["cmp"]},"application/vnd.youtube.yt":{"source":"iana"},"application/vnd.zul":{"source":"iana","extensions":["zir","zirz"]},"application/vnd.zzazz.deck+xml":{"source":"iana","compressible":true,"extensions":["zaz"]},"application/voicexml+xml":{"source":"iana","compressible":true,"extensions":["vxml"]},"application/voucher-cms+json":{"source":"iana","compressible":true},"application/vq-rtcpxr":{"source":"iana"},"application/wasm":{"source":"iana","compressible":true,"extensions":["wasm"]},"application/watcherinfo+xml":{"source":"iana","compressible":true,"extensions":["wif"]},"application/webpush-options+json":{"source":"iana","compressible":true},"application/whoispp-query":{"source":"iana"},"application/whoispp-response":{"source":"iana"},"application/widget":{"source":"iana","extensions":["wgt"]},"application/winhlp":{"source":"apache","extensions":["hlp"]},"application/wita":{"source":"iana"},"application/wordperfect5.1":{"source":"iana"},"application/wsdl+xml":{"source":"iana","compressible":true,"extensions":["wsdl"]},"application/wspolicy+xml":{"source":"iana","compressible":true,"extensions":["wspolicy"]},"application/x-7z-compressed":{"source":"apache","compressible":false,"extensions":["7z"]},"application/x-abiword":{"source":"apache","extensions":["abw"]},"application/x-ace-compressed":{"source":"apache","extensions":["ace"]},"application/x-amf":{"source":"apache"},"application/x-apple-diskimage":{"source":"apache","extensions":["dmg"]},"application/x-arj":{"compressible":false,"extensions":["arj"]},"application/x-authorware-bin":{"source":"apache","extensions":["aab","x32","u32","vox"]},"application/x-authorware-map":{"source":"apache","extensions":["aam"]},"application/x-authorware-seg":{"source":"apache","extensions":["aas"]},"application/x-bcpio":{"source":"apache","extensions":["bcpio"]},"application/x-bdoc":{"compressible":false,"extensions":["bdoc"]},"application/x-bittorrent":{"source":"apache","extensions":["torrent"]},"application/x-blorb":{"source":"apache","extensions":["blb","blorb"]},"application/x-bzip":{"source":"apache","compressible":false,"extensions":["bz"]},"application/x-bzip2":{"source":"apache","compressible":false,"extensions":["bz2","boz"]},"application/x-cbr":{"source":"apache","extensions":["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{"source":"apache","extensions":["vcd"]},"application/x-cfs-compressed":{"source":"apache","extensions":["cfs"]},"application/x-chat":{"source":"apache","extensions":["chat"]},"application/x-chess-pgn":{"source":"apache","extensions":["pgn"]},"application/x-chrome-extension":{"extensions":["crx"]},"application/x-cocoa":{"source":"nginx","extensions":["cco"]},"application/x-compress":{"source":"apache"},"application/x-conference":{"source":"apache","extensions":["nsc"]},"application/x-cpio":{"source":"apache","extensions":["cpio"]},"application/x-csh":{"source":"apache","extensions":["csh"]},"application/x-deb":{"compressible":false},"application/x-debian-package":{"source":"apache","extensions":["deb","udeb"]},"application/x-dgc-compressed":{"source":"apache","extensions":["dgc"]},"application/x-director":{"source":"apache","extensions":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{"source":"apache","extensions":["wad"]},"application/x-dtbncx+xml":{"source":"apache","compressible":true,"extensions":["ncx"]},"application/x-dtbook+xml":{"source":"apache","compressible":true,"extensions":["dtb"]},"application/x-dtbresource+xml":{"source":"apache","compressible":true,"extensions":["res"]},"application/x-dvi":{"source":"apache","compressible":false,"extensions":["dvi"]},"application/x-envoy":{"source":"apache","extensions":["evy"]},"application/x-eva":{"source":"apache","extensions":["eva"]},"application/x-font-bdf":{"source":"apache","extensions":["bdf"]},"application/x-font-dos":{"source":"apache"},"application/x-font-framemaker":{"source":"apache"},"application/x-font-ghostscript":{"source":"apache","extensions":["gsf"]},"application/x-font-libgrx":{"source":"apache"},"application/x-font-linux-psf":{"source":"apache","extensions":["psf"]},"application/x-font-pcf":{"source":"apache","extensions":["pcf"]},"application/x-font-snf":{"source":"apache","extensions":["snf"]},"application/x-font-speedo":{"source":"apache"},"application/x-font-sunos-news":{"source":"apache"},"application/x-font-type1":{"source":"apache","extensions":["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{"source":"apache"},"application/x-freearc":{"source":"apache","extensions":["arc"]},"application/x-futuresplash":{"source":"apache","extensions":["spl"]},"application/x-gca-compressed":{"source":"apache","extensions":["gca"]},"application/x-glulx":{"source":"apache","extensions":["ulx"]},"application/x-gnumeric":{"source":"apache","extensions":["gnumeric"]},"application/x-gramps-xml":{"source":"apache","extensions":["gramps"]},"application/x-gtar":{"source":"apache","extensions":["gtar"]},"application/x-gzip":{"source":"apache"},"application/x-hdf":{"source":"apache","extensions":["hdf"]},"application/x-httpd-php":{"compressible":true,"extensions":["php"]},"application/x-install-instructions":{"source":"apache","extensions":["install"]},"application/x-iso9660-image":{"source":"apache","extensions":["iso"]},"application/x-iwork-keynote-sffkey":{"extensions":["key"]},"application/x-iwork-numbers-sffnumbers":{"extensions":["numbers"]},"application/x-iwork-pages-sffpages":{"extensions":["pages"]},"application/x-java-archive-diff":{"source":"nginx","extensions":["jardiff"]},"application/x-java-jnlp-file":{"source":"apache","compressible":false,"extensions":["jnlp"]},"application/x-javascript":{"compressible":true},"application/x-keepass2":{"extensions":["kdbx"]},"application/x-latex":{"source":"apache","compressible":false,"extensions":["latex"]},"application/x-lua-bytecode":{"extensions":["luac"]},"application/x-lzh-compressed":{"source":"apache","extensions":["lzh","lha"]},"application/x-makeself":{"source":"nginx","extensions":["run"]},"application/x-mie":{"source":"apache","extensions":["mie"]},"application/x-mobipocket-ebook":{"source":"apache","extensions":["prc","mobi"]},"application/x-mpegurl":{"compressible":false},"application/x-ms-application":{"source":"apache","extensions":["application"]},"application/x-ms-shortcut":{"source":"apache","extensions":["lnk"]},"application/x-ms-wmd":{"source":"apache","extensions":["wmd"]},"application/x-ms-wmz":{"source":"apache","extensions":["wmz"]},"application/x-ms-xbap":{"source":"apache","extensions":["xbap"]},"application/x-msaccess":{"source":"apache","extensions":["mdb"]},"application/x-msbinder":{"source":"apache","extensions":["obd"]},"application/x-mscardfile":{"source":"apache","extensions":["crd"]},"application/x-msclip":{"source":"apache","extensions":["clp"]},"application/x-msdos-program":{"extensions":["exe"]},"application/x-msdownload":{"source":"apache","extensions":["exe","dll","com","bat","msi"]},"application/x-msmediaview":{"source":"apache","extensions":["mvb","m13","m14"]},"application/x-msmetafile":{"source":"apache","extensions":["wmf","wmz","emf","emz"]},"application/x-msmoney":{"source":"apache","extensions":["mny"]},"application/x-mspublisher":{"source":"apache","extensions":["pub"]},"application/x-msschedule":{"source":"apache","extensions":["scd"]},"application/x-msterminal":{"source":"apache","extensions":["trm"]},"application/x-mswrite":{"source":"apache","extensions":["wri"]},"application/x-netcdf":{"source":"apache","extensions":["nc","cdf"]},"application/x-ns-proxy-autoconfig":{"compressible":true,"extensions":["pac"]},"application/x-nzb":{"source":"apache","extensions":["nzb"]},"application/x-perl":{"source":"nginx","extensions":["pl","pm"]},"application/x-pilot":{"source":"nginx","extensions":["prc","pdb"]},"application/x-pkcs12":{"source":"apache","compressible":false,"extensions":["p12","pfx"]},"application/x-pkcs7-certificates":{"source":"apache","extensions":["p7b","spc"]},"application/x-pkcs7-certreqresp":{"source":"apache","extensions":["p7r"]},"application/x-pki-message":{"source":"iana"},"application/x-rar-compressed":{"source":"apache","compressible":false,"extensions":["rar"]},"application/x-redhat-package-manager":{"source":"nginx","extensions":["rpm"]},"application/x-research-info-systems":{"source":"apache","extensions":["ris"]},"application/x-sea":{"source":"nginx","extensions":["sea"]},"application/x-sh":{"source":"apache","compressible":true,"extensions":["sh"]},"application/x-shar":{"source":"apache","extensions":["shar"]},"application/x-shockwave-flash":{"source":"apache","compressible":false,"extensions":["swf"]},"application/x-silverlight-app":{"source":"apache","extensions":["xap"]},"application/x-sql":{"source":"apache","extensions":["sql"]},"application/x-stuffit":{"source":"apache","compressible":false,"extensions":["sit"]},"application/x-stuffitx":{"source":"apache","extensions":["sitx"]},"application/x-subrip":{"source":"apache","extensions":["srt"]},"application/x-sv4cpio":{"source":"apache","extensions":["sv4cpio"]},"application/x-sv4crc":{"source":"apache","extensions":["sv4crc"]},"application/x-t3vm-image":{"source":"apache","extensions":["t3"]},"application/x-tads":{"source":"apache","extensions":["gam"]},"application/x-tar":{"source":"apache","compressible":true,"extensions":["tar"]},"application/x-tcl":{"source":"apache","extensions":["tcl","tk"]},"application/x-tex":{"source":"apache","extensions":["tex"]},"application/x-tex-tfm":{"source":"apache","extensions":["tfm"]},"application/x-texinfo":{"source":"apache","extensions":["texinfo","texi"]},"application/x-tgif":{"source":"apache","extensions":["obj"]},"application/x-ustar":{"source":"apache","extensions":["ustar"]},"application/x-virtualbox-hdd":{"compressible":true,"extensions":["hdd"]},"application/x-virtualbox-ova":{"compressible":true,"extensions":["ova"]},"application/x-virtualbox-ovf":{"compressible":true,"extensions":["ovf"]},"application/x-virtualbox-vbox":{"compressible":true,"extensions":["vbox"]},"application/x-virtualbox-vbox-extpack":{"compressible":false,"extensions":["vbox-extpack"]},"application/x-virtualbox-vdi":{"compressible":true,"extensions":["vdi"]},"application/x-virtualbox-vhd":{"compressible":true,"extensions":["vhd"]},"application/x-virtualbox-vmdk":{"compressible":true,"extensions":["vmdk"]},"application/x-wais-source":{"source":"apache","extensions":["src"]},"application/x-web-app-manifest+json":{"compressible":true,"extensions":["webapp"]},"application/x-www-form-urlencoded":{"source":"iana","compressible":true},"application/x-x509-ca-cert":{"source":"iana","extensions":["der","crt","pem"]},"application/x-x509-ca-ra-cert":{"source":"iana"},"application/x-x509-next-ca-cert":{"source":"iana"},"application/x-xfig":{"source":"apache","extensions":["fig"]},"application/x-xliff+xml":{"source":"apache","compressible":true,"extensions":["xlf"]},"application/x-xpinstall":{"source":"apache","compressible":false,"extensions":["xpi"]},"application/x-xz":{"source":"apache","extensions":["xz"]},"application/x-zmachine":{"source":"apache","extensions":["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{"source":"iana"},"application/xacml+xml":{"source":"iana","compressible":true},"application/xaml+xml":{"source":"apache","compressible":true,"extensions":["xaml"]},"application/xcap-att+xml":{"source":"iana","compressible":true,"extensions":["xav"]},"application/xcap-caps+xml":{"source":"iana","compressible":true,"extensions":["xca"]},"application/xcap-diff+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/xcap-el+xml":{"source":"iana","compressible":true,"extensions":["xel"]},"application/xcap-error+xml":{"source":"iana","compressible":true},"application/xcap-ns+xml":{"source":"iana","compressible":true,"extensions":["xns"]},"application/xcon-conference-info+xml":{"source":"iana","compressible":true},"application/xcon-conference-info-diff+xml":{"source":"iana","compressible":true},"application/xenc+xml":{"source":"iana","compressible":true,"extensions":["xenc"]},"application/xhtml+xml":{"source":"iana","compressible":true,"extensions":["xhtml","xht"]},"application/xhtml-voice+xml":{"source":"apache","compressible":true},"application/xliff+xml":{"source":"iana","compressible":true,"extensions":["xlf"]},"application/xml":{"source":"iana","compressible":true,"extensions":["xml","xsl","xsd","rng"]},"application/xml-dtd":{"source":"iana","compressible":true,"extensions":["dtd"]},"application/xml-external-parsed-entity":{"source":"iana"},"application/xml-patch+xml":{"source":"iana","compressible":true},"application/xmpp+xml":{"source":"iana","compressible":true},"application/xop+xml":{"source":"iana","compressible":true,"extensions":["xop"]},"application/xproc+xml":{"source":"apache","compressible":true,"extensions":["xpl"]},"application/xslt+xml":{"source":"iana","compressible":true,"extensions":["xsl","xslt"]},"application/xspf+xml":{"source":"apache","compressible":true,"extensions":["xspf"]},"application/xv+xml":{"source":"iana","compressible":true,"extensions":["mxml","xhvml","xvml","xvm"]},"application/yang":{"source":"iana","extensions":["yang"]},"application/yang-data+json":{"source":"iana","compressible":true},"application/yang-data+xml":{"source":"iana","compressible":true},"application/yang-patch+json":{"source":"iana","compressible":true},"application/yang-patch+xml":{"source":"iana","compressible":true},"application/yin+xml":{"source":"iana","compressible":true,"extensions":["yin"]},"application/zip":{"source":"iana","compressible":false,"extensions":["zip"]},"application/zlib":{"source":"iana"},"application/zstd":{"source":"iana"},"audio/1d-interleaved-parityfec":{"source":"iana"},"audio/32kadpcm":{"source":"iana"},"audio/3gpp":{"source":"iana","compressible":false,"extensions":["3gpp"]},"audio/3gpp2":{"source":"iana"},"audio/aac":{"source":"iana"},"audio/ac3":{"source":"iana"},"audio/adpcm":{"source":"apache","extensions":["adp"]},"audio/amr":{"source":"iana","extensions":["amr"]},"audio/amr-wb":{"source":"iana"},"audio/amr-wb+":{"source":"iana"},"audio/aptx":{"source":"iana"},"audio/asc":{"source":"iana"},"audio/atrac-advanced-lossless":{"source":"iana"},"audio/atrac-x":{"source":"iana"},"audio/atrac3":{"source":"iana"},"audio/basic":{"source":"iana","compressible":false,"extensions":["au","snd"]},"audio/bv16":{"source":"iana"},"audio/bv32":{"source":"iana"},"audio/clearmode":{"source":"iana"},"audio/cn":{"source":"iana"},"audio/dat12":{"source":"iana"},"audio/dls":{"source":"iana"},"audio/dsr-es201108":{"source":"iana"},"audio/dsr-es202050":{"source":"iana"},"audio/dsr-es202211":{"source":"iana"},"audio/dsr-es202212":{"source":"iana"},"audio/dv":{"source":"iana"},"audio/dvi4":{"source":"iana"},"audio/eac3":{"source":"iana"},"audio/encaprtp":{"source":"iana"},"audio/evrc":{"source":"iana"},"audio/evrc-qcp":{"source":"iana"},"audio/evrc0":{"source":"iana"},"audio/evrc1":{"source":"iana"},"audio/evrcb":{"source":"iana"},"audio/evrcb0":{"source":"iana"},"audio/evrcb1":{"source":"iana"},"audio/evrcnw":{"source":"iana"},"audio/evrcnw0":{"source":"iana"},"audio/evrcnw1":{"source":"iana"},"audio/evrcwb":{"source":"iana"},"audio/evrcwb0":{"source":"iana"},"audio/evrcwb1":{"source":"iana"},"audio/evs":{"source":"iana"},"audio/flexfec":{"source":"iana"},"audio/fwdred":{"source":"iana"},"audio/g711-0":{"source":"iana"},"audio/g719":{"source":"iana"},"audio/g722":{"source":"iana"},"audio/g7221":{"source":"iana"},"audio/g723":{"source":"iana"},"audio/g726-16":{"source":"iana"},"audio/g726-24":{"source":"iana"},"audio/g726-32":{"source":"iana"},"audio/g726-40":{"source":"iana"},"audio/g728":{"source":"iana"},"audio/g729":{"source":"iana"},"audio/g7291":{"source":"iana"},"audio/g729d":{"source":"iana"},"audio/g729e":{"source":"iana"},"audio/gsm":{"source":"iana"},"audio/gsm-efr":{"source":"iana"},"audio/gsm-hr-08":{"source":"iana"},"audio/ilbc":{"source":"iana"},"audio/ip-mr_v2.5":{"source":"iana"},"audio/isac":{"source":"apache"},"audio/l16":{"source":"iana"},"audio/l20":{"source":"iana"},"audio/l24":{"source":"iana","compressible":false},"audio/l8":{"source":"iana"},"audio/lpc":{"source":"iana"},"audio/melp":{"source":"iana"},"audio/melp1200":{"source":"iana"},"audio/melp2400":{"source":"iana"},"audio/melp600":{"source":"iana"},"audio/mhas":{"source":"iana"},"audio/midi":{"source":"apache","extensions":["mid","midi","kar","rmi"]},"audio/mobile-xmf":{"source":"iana","extensions":["mxmf"]},"audio/mp3":{"compressible":false,"extensions":["mp3"]},"audio/mp4":{"source":"iana","compressible":false,"extensions":["m4a","mp4a"]},"audio/mp4a-latm":{"source":"iana"},"audio/mpa":{"source":"iana"},"audio/mpa-robust":{"source":"iana"},"audio/mpeg":{"source":"iana","compressible":false,"extensions":["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{"source":"iana"},"audio/musepack":{"source":"apache"},"audio/ogg":{"source":"iana","compressible":false,"extensions":["oga","ogg","spx","opus"]},"audio/opus":{"source":"iana"},"audio/parityfec":{"source":"iana"},"audio/pcma":{"source":"iana"},"audio/pcma-wb":{"source":"iana"},"audio/pcmu":{"source":"iana"},"audio/pcmu-wb":{"source":"iana"},"audio/prs.sid":{"source":"iana"},"audio/qcelp":{"source":"iana"},"audio/raptorfec":{"source":"iana"},"audio/red":{"source":"iana"},"audio/rtp-enc-aescm128":{"source":"iana"},"audio/rtp-midi":{"source":"iana"},"audio/rtploopback":{"source":"iana"},"audio/rtx":{"source":"iana"},"audio/s3m":{"source":"apache","extensions":["s3m"]},"audio/scip":{"source":"iana"},"audio/silk":{"source":"apache","extensions":["sil"]},"audio/smv":{"source":"iana"},"audio/smv-qcp":{"source":"iana"},"audio/smv0":{"source":"iana"},"audio/sofa":{"source":"iana"},"audio/sp-midi":{"source":"iana"},"audio/speex":{"source":"iana"},"audio/t140c":{"source":"iana"},"audio/t38":{"source":"iana"},"audio/telephone-event":{"source":"iana"},"audio/tetra_acelp":{"source":"iana"},"audio/tetra_acelp_bb":{"source":"iana"},"audio/tone":{"source":"iana"},"audio/tsvcis":{"source":"iana"},"audio/uemclip":{"source":"iana"},"audio/ulpfec":{"source":"iana"},"audio/usac":{"source":"iana"},"audio/vdvi":{"source":"iana"},"audio/vmr-wb":{"source":"iana"},"audio/vnd.3gpp.iufp":{"source":"iana"},"audio/vnd.4sb":{"source":"iana"},"audio/vnd.audiokoz":{"source":"iana"},"audio/vnd.celp":{"source":"iana"},"audio/vnd.cisco.nse":{"source":"iana"},"audio/vnd.cmles.radio-events":{"source":"iana"},"audio/vnd.cns.anp1":{"source":"iana"},"audio/vnd.cns.inf1":{"source":"iana"},"audio/vnd.dece.audio":{"source":"iana","extensions":["uva","uvva"]},"audio/vnd.digital-winds":{"source":"iana","extensions":["eol"]},"audio/vnd.dlna.adts":{"source":"iana"},"audio/vnd.dolby.heaac.1":{"source":"iana"},"audio/vnd.dolby.heaac.2":{"source":"iana"},"audio/vnd.dolby.mlp":{"source":"iana"},"audio/vnd.dolby.mps":{"source":"iana"},"audio/vnd.dolby.pl2":{"source":"iana"},"audio/vnd.dolby.pl2x":{"source":"iana"},"audio/vnd.dolby.pl2z":{"source":"iana"},"audio/vnd.dolby.pulse.1":{"source":"iana"},"audio/vnd.dra":{"source":"iana","extensions":["dra"]},"audio/vnd.dts":{"source":"iana","extensions":["dts"]},"audio/vnd.dts.hd":{"source":"iana","extensions":["dtshd"]},"audio/vnd.dts.uhd":{"source":"iana"},"audio/vnd.dvb.file":{"source":"iana"},"audio/vnd.everad.plj":{"source":"iana"},"audio/vnd.hns.audio":{"source":"iana"},"audio/vnd.lucent.voice":{"source":"iana","extensions":["lvp"]},"audio/vnd.ms-playready.media.pya":{"source":"iana","extensions":["pya"]},"audio/vnd.nokia.mobile-xmf":{"source":"iana"},"audio/vnd.nortel.vbk":{"source":"iana"},"audio/vnd.nuera.ecelp4800":{"source":"iana","extensions":["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{"source":"iana","extensions":["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{"source":"iana","extensions":["ecelp9600"]},"audio/vnd.octel.sbc":{"source":"iana"},"audio/vnd.presonus.multitrack":{"source":"iana"},"audio/vnd.qcelp":{"source":"iana"},"audio/vnd.rhetorex.32kadpcm":{"source":"iana"},"audio/vnd.rip":{"source":"iana","extensions":["rip"]},"audio/vnd.rn-realaudio":{"compressible":false},"audio/vnd.sealedmedia.softseal.mpeg":{"source":"iana"},"audio/vnd.vmx.cvsd":{"source":"iana"},"audio/vnd.wave":{"compressible":false},"audio/vorbis":{"source":"iana","compressible":false},"audio/vorbis-config":{"source":"iana"},"audio/wav":{"compressible":false,"extensions":["wav"]},"audio/wave":{"compressible":false,"extensions":["wav"]},"audio/webm":{"source":"apache","compressible":false,"extensions":["weba"]},"audio/x-aac":{"source":"apache","compressible":false,"extensions":["aac"]},"audio/x-aiff":{"source":"apache","extensions":["aif","aiff","aifc"]},"audio/x-caf":{"source":"apache","compressible":false,"extensions":["caf"]},"audio/x-flac":{"source":"apache","extensions":["flac"]},"audio/x-m4a":{"source":"nginx","extensions":["m4a"]},"audio/x-matroska":{"source":"apache","extensions":["mka"]},"audio/x-mpegurl":{"source":"apache","extensions":["m3u"]},"audio/x-ms-wax":{"source":"apache","extensions":["wax"]},"audio/x-ms-wma":{"source":"apache","extensions":["wma"]},"audio/x-pn-realaudio":{"source":"apache","extensions":["ram","ra"]},"audio/x-pn-realaudio-plugin":{"source":"apache","extensions":["rmp"]},"audio/x-realaudio":{"source":"nginx","extensions":["ra"]},"audio/x-tta":{"source":"apache"},"audio/x-wav":{"source":"apache","extensions":["wav"]},"audio/xm":{"source":"apache","extensions":["xm"]},"chemical/x-cdx":{"source":"apache","extensions":["cdx"]},"chemical/x-cif":{"source":"apache","extensions":["cif"]},"chemical/x-cmdf":{"source":"apache","extensions":["cmdf"]},"chemical/x-cml":{"source":"apache","extensions":["cml"]},"chemical/x-csml":{"source":"apache","extensions":["csml"]},"chemical/x-pdb":{"source":"apache"},"chemical/x-xyz":{"source":"apache","extensions":["xyz"]},"font/collection":{"source":"iana","extensions":["ttc"]},"font/otf":{"source":"iana","compressible":true,"extensions":["otf"]},"font/sfnt":{"source":"iana"},"font/ttf":{"source":"iana","compressible":true,"extensions":["ttf"]},"font/woff":{"source":"iana","extensions":["woff"]},"font/woff2":{"source":"iana","extensions":["woff2"]},"image/aces":{"source":"iana","extensions":["exr"]},"image/apng":{"compressible":false,"extensions":["apng"]},"image/avci":{"source":"iana","extensions":["avci"]},"image/avcs":{"source":"iana","extensions":["avcs"]},"image/avif":{"source":"iana","compressible":false,"extensions":["avif"]},"image/bmp":{"source":"iana","compressible":true,"extensions":["bmp"]},"image/cgm":{"source":"iana","extensions":["cgm"]},"image/dicom-rle":{"source":"iana","extensions":["drle"]},"image/emf":{"source":"iana","extensions":["emf"]},"image/fits":{"source":"iana","extensions":["fits"]},"image/g3fax":{"source":"iana","extensions":["g3"]},"image/gif":{"source":"iana","compressible":false,"extensions":["gif"]},"image/heic":{"source":"iana","extensions":["heic"]},"image/heic-sequence":{"source":"iana","extensions":["heics"]},"image/heif":{"source":"iana","extensions":["heif"]},"image/heif-sequence":{"source":"iana","extensions":["heifs"]},"image/hej2k":{"source":"iana","extensions":["hej2"]},"image/hsj2":{"source":"iana","extensions":["hsj2"]},"image/ief":{"source":"iana","extensions":["ief"]},"image/jls":{"source":"iana","extensions":["jls"]},"image/jp2":{"source":"iana","compressible":false,"extensions":["jp2","jpg2"]},"image/jpeg":{"source":"iana","compressible":false,"extensions":["jpeg","jpg","jpe"]},"image/jph":{"source":"iana","extensions":["jph"]},"image/jphc":{"source":"iana","extensions":["jhc"]},"image/jpm":{"source":"iana","compressible":false,"extensions":["jpm"]},"image/jpx":{"source":"iana","compressible":false,"extensions":["jpx","jpf"]},"image/jxr":{"source":"iana","extensions":["jxr"]},"image/jxra":{"source":"iana","extensions":["jxra"]},"image/jxrs":{"source":"iana","extensions":["jxrs"]},"image/jxs":{"source":"iana","extensions":["jxs"]},"image/jxsc":{"source":"iana","extensions":["jxsc"]},"image/jxsi":{"source":"iana","extensions":["jxsi"]},"image/jxss":{"source":"iana","extensions":["jxss"]},"image/ktx":{"source":"iana","extensions":["ktx"]},"image/ktx2":{"source":"iana","extensions":["ktx2"]},"image/naplps":{"source":"iana"},"image/pjpeg":{"compressible":false},"image/png":{"source":"iana","compressible":false,"extensions":["png"]},"image/prs.btif":{"source":"iana","extensions":["btif"]},"image/prs.pti":{"source":"iana","extensions":["pti"]},"image/pwg-raster":{"source":"iana"},"image/sgi":{"source":"apache","extensions":["sgi"]},"image/svg+xml":{"source":"iana","compressible":true,"extensions":["svg","svgz"]},"image/t38":{"source":"iana","extensions":["t38"]},"image/tiff":{"source":"iana","compressible":false,"extensions":["tif","tiff"]},"image/tiff-fx":{"source":"iana","extensions":["tfx"]},"image/vnd.adobe.photoshop":{"source":"iana","compressible":true,"extensions":["psd"]},"image/vnd.airzip.accelerator.azv":{"source":"iana","extensions":["azv"]},"image/vnd.cns.inf2":{"source":"iana"},"image/vnd.dece.graphic":{"source":"iana","extensions":["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{"source":"iana","extensions":["djvu","djv"]},"image/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"image/vnd.dwg":{"source":"iana","extensions":["dwg"]},"image/vnd.dxf":{"source":"iana","extensions":["dxf"]},"image/vnd.fastbidsheet":{"source":"iana","extensions":["fbs"]},"image/vnd.fpx":{"source":"iana","extensions":["fpx"]},"image/vnd.fst":{"source":"iana","extensions":["fst"]},"image/vnd.fujixerox.edmics-mmr":{"source":"iana","extensions":["mmr"]},"image/vnd.fujixerox.edmics-rlc":{"source":"iana","extensions":["rlc"]},"image/vnd.globalgraphics.pgb":{"source":"iana"},"image/vnd.microsoft.icon":{"source":"iana","compressible":true,"extensions":["ico"]},"image/vnd.mix":{"source":"iana"},"image/vnd.mozilla.apng":{"source":"iana"},"image/vnd.ms-dds":{"compressible":true,"extensions":["dds"]},"image/vnd.ms-modi":{"source":"iana","extensions":["mdi"]},"image/vnd.ms-photo":{"source":"apache","extensions":["wdp"]},"image/vnd.net-fpx":{"source":"iana","extensions":["npx"]},"image/vnd.pco.b16":{"source":"iana","extensions":["b16"]},"image/vnd.radiance":{"source":"iana"},"image/vnd.sealed.png":{"source":"iana"},"image/vnd.sealedmedia.softseal.gif":{"source":"iana"},"image/vnd.sealedmedia.softseal.jpg":{"source":"iana"},"image/vnd.svf":{"source":"iana"},"image/vnd.tencent.tap":{"source":"iana","extensions":["tap"]},"image/vnd.valve.source.texture":{"source":"iana","extensions":["vtf"]},"image/vnd.wap.wbmp":{"source":"iana","extensions":["wbmp"]},"image/vnd.xiff":{"source":"iana","extensions":["xif"]},"image/vnd.zbrush.pcx":{"source":"iana","extensions":["pcx"]},"image/webp":{"source":"apache","extensions":["webp"]},"image/wmf":{"source":"iana","extensions":["wmf"]},"image/x-3ds":{"source":"apache","extensions":["3ds"]},"image/x-cmu-raster":{"source":"apache","extensions":["ras"]},"image/x-cmx":{"source":"apache","extensions":["cmx"]},"image/x-freehand":{"source":"apache","extensions":["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{"source":"apache","compressible":true,"extensions":["ico"]},"image/x-jng":{"source":"nginx","extensions":["jng"]},"image/x-mrsid-image":{"source":"apache","extensions":["sid"]},"image/x-ms-bmp":{"source":"nginx","compressible":true,"extensions":["bmp"]},"image/x-pcx":{"source":"apache","extensions":["pcx"]},"image/x-pict":{"source":"apache","extensions":["pic","pct"]},"image/x-portable-anymap":{"source":"apache","extensions":["pnm"]},"image/x-portable-bitmap":{"source":"apache","extensions":["pbm"]},"image/x-portable-graymap":{"source":"apache","extensions":["pgm"]},"image/x-portable-pixmap":{"source":"apache","extensions":["ppm"]},"image/x-rgb":{"source":"apache","extensions":["rgb"]},"image/x-tga":{"source":"apache","extensions":["tga"]},"image/x-xbitmap":{"source":"apache","extensions":["xbm"]},"image/x-xcf":{"compressible":false},"image/x-xpixmap":{"source":"apache","extensions":["xpm"]},"image/x-xwindowdump":{"source":"apache","extensions":["xwd"]},"message/cpim":{"source":"iana"},"message/delivery-status":{"source":"iana"},"message/disposition-notification":{"source":"iana","extensions":["disposition-notification"]},"message/external-body":{"source":"iana"},"message/feedback-report":{"source":"iana"},"message/global":{"source":"iana","extensions":["u8msg"]},"message/global-delivery-status":{"source":"iana","extensions":["u8dsn"]},"message/global-disposition-notification":{"source":"iana","extensions":["u8mdn"]},"message/global-headers":{"source":"iana","extensions":["u8hdr"]},"message/http":{"source":"iana","compressible":false},"message/imdn+xml":{"source":"iana","compressible":true},"message/news":{"source":"iana"},"message/partial":{"source":"iana","compressible":false},"message/rfc822":{"source":"iana","compressible":true,"extensions":["eml","mime"]},"message/s-http":{"source":"iana"},"message/sip":{"source":"iana"},"message/sipfrag":{"source":"iana"},"message/tracking-status":{"source":"iana"},"message/vnd.si.simp":{"source":"iana"},"message/vnd.wfa.wsc":{"source":"iana","extensions":["wsc"]},"model/3mf":{"source":"iana","extensions":["3mf"]},"model/e57":{"source":"iana"},"model/gltf+json":{"source":"iana","compressible":true,"extensions":["gltf"]},"model/gltf-binary":{"source":"iana","compressible":true,"extensions":["glb"]},"model/iges":{"source":"iana","compressible":false,"extensions":["igs","iges"]},"model/mesh":{"source":"iana","compressible":false,"extensions":["msh","mesh","silo"]},"model/mtl":{"source":"iana","extensions":["mtl"]},"model/obj":{"source":"iana","extensions":["obj"]},"model/step":{"source":"iana"},"model/step+xml":{"source":"iana","compressible":true,"extensions":["stpx"]},"model/step+zip":{"source":"iana","compressible":false,"extensions":["stpz"]},"model/step-xml+zip":{"source":"iana","compressible":false,"extensions":["stpxz"]},"model/stl":{"source":"iana","extensions":["stl"]},"model/vnd.collada+xml":{"source":"iana","compressible":true,"extensions":["dae"]},"model/vnd.dwf":{"source":"iana","extensions":["dwf"]},"model/vnd.flatland.3dml":{"source":"iana"},"model/vnd.gdl":{"source":"iana","extensions":["gdl"]},"model/vnd.gs-gdl":{"source":"apache"},"model/vnd.gs.gdl":{"source":"iana"},"model/vnd.gtw":{"source":"iana","extensions":["gtw"]},"model/vnd.moml+xml":{"source":"iana","compressible":true},"model/vnd.mts":{"source":"iana","extensions":["mts"]},"model/vnd.opengex":{"source":"iana","extensions":["ogex"]},"model/vnd.parasolid.transmit.binary":{"source":"iana","extensions":["x_b"]},"model/vnd.parasolid.transmit.text":{"source":"iana","extensions":["x_t"]},"model/vnd.pytha.pyox":{"source":"iana"},"model/vnd.rosette.annotated-data-model":{"source":"iana"},"model/vnd.sap.vds":{"source":"iana","extensions":["vds"]},"model/vnd.usdz+zip":{"source":"iana","compressible":false,"extensions":["usdz"]},"model/vnd.valve.source.compiled-map":{"source":"iana","extensions":["bsp"]},"model/vnd.vtu":{"source":"iana","extensions":["vtu"]},"model/vrml":{"source":"iana","compressible":false,"extensions":["wrl","vrml"]},"model/x3d+binary":{"source":"apache","compressible":false,"extensions":["x3db","x3dbz"]},"model/x3d+fastinfoset":{"source":"iana","extensions":["x3db"]},"model/x3d+vrml":{"source":"apache","compressible":false,"extensions":["x3dv","x3dvz"]},"model/x3d+xml":{"source":"iana","compressible":true,"extensions":["x3d","x3dz"]},"model/x3d-vrml":{"source":"iana","extensions":["x3dv"]},"multipart/alternative":{"source":"iana","compressible":false},"multipart/appledouble":{"source":"iana"},"multipart/byteranges":{"source":"iana"},"multipart/digest":{"source":"iana"},"multipart/encrypted":{"source":"iana","compressible":false},"multipart/form-data":{"source":"iana","compressible":false},"multipart/header-set":{"source":"iana"},"multipart/mixed":{"source":"iana"},"multipart/multilingual":{"source":"iana"},"multipart/parallel":{"source":"iana"},"multipart/related":{"source":"iana","compressible":false},"multipart/report":{"source":"iana"},"multipart/signed":{"source":"iana","compressible":false},"multipart/vnd.bint.med-plus":{"source":"iana"},"multipart/voice-message":{"source":"iana"},"multipart/x-mixed-replace":{"source":"iana"},"text/1d-interleaved-parityfec":{"source":"iana"},"text/cache-manifest":{"source":"iana","compressible":true,"extensions":["appcache","manifest"]},"text/calendar":{"source":"iana","extensions":["ics","ifb"]},"text/calender":{"compressible":true},"text/cmd":{"compressible":true},"text/coffeescript":{"extensions":["coffee","litcoffee"]},"text/cql":{"source":"iana"},"text/cql-expression":{"source":"iana"},"text/cql-identifier":{"source":"iana"},"text/css":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["css"]},"text/csv":{"source":"iana","compressible":true,"extensions":["csv"]},"text/csv-schema":{"source":"iana"},"text/directory":{"source":"iana"},"text/dns":{"source":"iana"},"text/ecmascript":{"source":"iana"},"text/encaprtp":{"source":"iana"},"text/enriched":{"source":"iana"},"text/fhirpath":{"source":"iana"},"text/flexfec":{"source":"iana"},"text/fwdred":{"source":"iana"},"text/gff3":{"source":"iana"},"text/grammar-ref-list":{"source":"iana"},"text/html":{"source":"iana","compressible":true,"extensions":["html","htm","shtml"]},"text/jade":{"extensions":["jade"]},"text/javascript":{"source":"iana","compressible":true},"text/jcr-cnd":{"source":"iana"},"text/jsx":{"compressible":true,"extensions":["jsx"]},"text/less":{"compressible":true,"extensions":["less"]},"text/markdown":{"source":"iana","compressible":true,"extensions":["markdown","md"]},"text/mathml":{"source":"nginx","extensions":["mml"]},"text/mdx":{"compressible":true,"extensions":["mdx"]},"text/mizar":{"source":"iana"},"text/n3":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["n3"]},"text/parameters":{"source":"iana","charset":"UTF-8"},"text/parityfec":{"source":"iana"},"text/plain":{"source":"iana","compressible":true,"extensions":["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{"source":"iana","charset":"UTF-8"},"text/prs.fallenstein.rst":{"source":"iana"},"text/prs.lines.tag":{"source":"iana","extensions":["dsc"]},"text/prs.prop.logic":{"source":"iana"},"text/raptorfec":{"source":"iana"},"text/red":{"source":"iana"},"text/rfc822-headers":{"source":"iana"},"text/richtext":{"source":"iana","compressible":true,"extensions":["rtx"]},"text/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"text/rtp-enc-aescm128":{"source":"iana"},"text/rtploopback":{"source":"iana"},"text/rtx":{"source":"iana"},"text/sgml":{"source":"iana","extensions":["sgml","sgm"]},"text/shaclc":{"source":"iana"},"text/shex":{"source":"iana","extensions":["shex"]},"text/slim":{"extensions":["slim","slm"]},"text/spdx":{"source":"iana","extensions":["spdx"]},"text/strings":{"source":"iana"},"text/stylus":{"extensions":["stylus","styl"]},"text/t140":{"source":"iana"},"text/tab-separated-values":{"source":"iana","compressible":true,"extensions":["tsv"]},"text/troff":{"source":"iana","extensions":["t","tr","roff","man","me","ms"]},"text/turtle":{"source":"iana","charset":"UTF-8","extensions":["ttl"]},"text/ulpfec":{"source":"iana"},"text/uri-list":{"source":"iana","compressible":true,"extensions":["uri","uris","urls"]},"text/vcard":{"source":"iana","compressible":true,"extensions":["vcard"]},"text/vnd.a":{"source":"iana"},"text/vnd.abc":{"source":"iana"},"text/vnd.ascii-art":{"source":"iana"},"text/vnd.curl":{"source":"iana","extensions":["curl"]},"text/vnd.curl.dcurl":{"source":"apache","extensions":["dcurl"]},"text/vnd.curl.mcurl":{"source":"apache","extensions":["mcurl"]},"text/vnd.curl.scurl":{"source":"apache","extensions":["scurl"]},"text/vnd.debian.copyright":{"source":"iana","charset":"UTF-8"},"text/vnd.dmclientscript":{"source":"iana"},"text/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"text/vnd.esmertec.theme-descriptor":{"source":"iana","charset":"UTF-8"},"text/vnd.familysearch.gedcom":{"source":"iana","extensions":["ged"]},"text/vnd.ficlab.flt":{"source":"iana"},"text/vnd.fly":{"source":"iana","extensions":["fly"]},"text/vnd.fmi.flexstor":{"source":"iana","extensions":["flx"]},"text/vnd.gml":{"source":"iana"},"text/vnd.graphviz":{"source":"iana","extensions":["gv"]},"text/vnd.hans":{"source":"iana"},"text/vnd.hgl":{"source":"iana"},"text/vnd.in3d.3dml":{"source":"iana","extensions":["3dml"]},"text/vnd.in3d.spot":{"source":"iana","extensions":["spot"]},"text/vnd.iptc.newsml":{"source":"iana"},"text/vnd.iptc.nitf":{"source":"iana"},"text/vnd.latex-z":{"source":"iana"},"text/vnd.motorola.reflex":{"source":"iana"},"text/vnd.ms-mediapackage":{"source":"iana"},"text/vnd.net2phone.commcenter.command":{"source":"iana"},"text/vnd.radisys.msml-basic-layout":{"source":"iana"},"text/vnd.senx.warpscript":{"source":"iana"},"text/vnd.si.uricatalogue":{"source":"iana"},"text/vnd.sosi":{"source":"iana"},"text/vnd.sun.j2me.app-descriptor":{"source":"iana","charset":"UTF-8","extensions":["jad"]},"text/vnd.trolltech.linguist":{"source":"iana","charset":"UTF-8"},"text/vnd.wap.si":{"source":"iana"},"text/vnd.wap.sl":{"source":"iana"},"text/vnd.wap.wml":{"source":"iana","extensions":["wml"]},"text/vnd.wap.wmlscript":{"source":"iana","extensions":["wmls"]},"text/vtt":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["vtt"]},"text/x-asm":{"source":"apache","extensions":["s","asm"]},"text/x-c":{"source":"apache","extensions":["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{"source":"nginx","extensions":["htc"]},"text/x-fortran":{"source":"apache","extensions":["f","for","f77","f90"]},"text/x-gwt-rpc":{"compressible":true},"text/x-handlebars-template":{"extensions":["hbs"]},"text/x-java-source":{"source":"apache","extensions":["java"]},"text/x-jquery-tmpl":{"compressible":true},"text/x-lua":{"extensions":["lua"]},"text/x-markdown":{"compressible":true,"extensions":["mkd"]},"text/x-nfo":{"source":"apache","extensions":["nfo"]},"text/x-opml":{"source":"apache","extensions":["opml"]},"text/x-org":{"compressible":true,"extensions":["org"]},"text/x-pascal":{"source":"apache","extensions":["p","pas"]},"text/x-processing":{"compressible":true,"extensions":["pde"]},"text/x-sass":{"extensions":["sass"]},"text/x-scss":{"extensions":["scss"]},"text/x-setext":{"source":"apache","extensions":["etx"]},"text/x-sfv":{"source":"apache","extensions":["sfv"]},"text/x-suse-ymp":{"compressible":true,"extensions":["ymp"]},"text/x-uuencode":{"source":"apache","extensions":["uu"]},"text/x-vcalendar":{"source":"apache","extensions":["vcs"]},"text/x-vcard":{"source":"apache","extensions":["vcf"]},"text/xml":{"source":"iana","compressible":true,"extensions":["xml"]},"text/xml-external-parsed-entity":{"source":"iana"},"text/yaml":{"compressible":true,"extensions":["yaml","yml"]},"video/1d-interleaved-parityfec":{"source":"iana"},"video/3gpp":{"source":"iana","extensions":["3gp","3gpp"]},"video/3gpp-tt":{"source":"iana"},"video/3gpp2":{"source":"iana","extensions":["3g2"]},"video/av1":{"source":"iana"},"video/bmpeg":{"source":"iana"},"video/bt656":{"source":"iana"},"video/celb":{"source":"iana"},"video/dv":{"source":"iana"},"video/encaprtp":{"source":"iana"},"video/ffv1":{"source":"iana"},"video/flexfec":{"source":"iana"},"video/h261":{"source":"iana","extensions":["h261"]},"video/h263":{"source":"iana","extensions":["h263"]},"video/h263-1998":{"source":"iana"},"video/h263-2000":{"source":"iana"},"video/h264":{"source":"iana","extensions":["h264"]},"video/h264-rcdo":{"source":"iana"},"video/h264-svc":{"source":"iana"},"video/h265":{"source":"iana"},"video/iso.segment":{"source":"iana","extensions":["m4s"]},"video/jpeg":{"source":"iana","extensions":["jpgv"]},"video/jpeg2000":{"source":"iana"},"video/jpm":{"source":"apache","extensions":["jpm","jpgm"]},"video/jxsv":{"source":"iana"},"video/mj2":{"source":"iana","extensions":["mj2","mjp2"]},"video/mp1s":{"source":"iana"},"video/mp2p":{"source":"iana"},"video/mp2t":{"source":"iana","extensions":["ts"]},"video/mp4":{"source":"iana","compressible":false,"extensions":["mp4","mp4v","mpg4"]},"video/mp4v-es":{"source":"iana"},"video/mpeg":{"source":"iana","compressible":false,"extensions":["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{"source":"iana"},"video/mpv":{"source":"iana"},"video/nv":{"source":"iana"},"video/ogg":{"source":"iana","compressible":false,"extensions":["ogv"]},"video/parityfec":{"source":"iana"},"video/pointer":{"source":"iana"},"video/quicktime":{"source":"iana","compressible":false,"extensions":["qt","mov"]},"video/raptorfec":{"source":"iana"},"video/raw":{"source":"iana"},"video/rtp-enc-aescm128":{"source":"iana"},"video/rtploopback":{"source":"iana"},"video/rtx":{"source":"iana"},"video/scip":{"source":"iana"},"video/smpte291":{"source":"iana"},"video/smpte292m":{"source":"iana"},"video/ulpfec":{"source":"iana"},"video/vc1":{"source":"iana"},"video/vc2":{"source":"iana"},"video/vnd.cctv":{"source":"iana"},"video/vnd.dece.hd":{"source":"iana","extensions":["uvh","uvvh"]},"video/vnd.dece.mobile":{"source":"iana","extensions":["uvm","uvvm"]},"video/vnd.dece.mp4":{"source":"iana"},"video/vnd.dece.pd":{"source":"iana","extensions":["uvp","uvvp"]},"video/vnd.dece.sd":{"source":"iana","extensions":["uvs","uvvs"]},"video/vnd.dece.video":{"source":"iana","extensions":["uvv","uvvv"]},"video/vnd.directv.mpeg":{"source":"iana"},"video/vnd.directv.mpeg-tts":{"source":"iana"},"video/vnd.dlna.mpeg-tts":{"source":"iana"},"video/vnd.dvb.file":{"source":"iana","extensions":["dvb"]},"video/vnd.fvt":{"source":"iana","extensions":["fvt"]},"video/vnd.hns.video":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.ttsavc":{"source":"iana"},"video/vnd.iptvforum.ttsmpeg2":{"source":"iana"},"video/vnd.motorola.video":{"source":"iana"},"video/vnd.motorola.videop":{"source":"iana"},"video/vnd.mpegurl":{"source":"iana","extensions":["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{"source":"iana","extensions":["pyv"]},"video/vnd.nokia.interleaved-multimedia":{"source":"iana"},"video/vnd.nokia.mp4vr":{"source":"iana"},"video/vnd.nokia.videovoip":{"source":"iana"},"video/vnd.objectvideo":{"source":"iana"},"video/vnd.radgamettools.bink":{"source":"iana"},"video/vnd.radgamettools.smacker":{"source":"iana"},"video/vnd.sealed.mpeg1":{"source":"iana"},"video/vnd.sealed.mpeg4":{"source":"iana"},"video/vnd.sealed.swf":{"source":"iana"},"video/vnd.sealedmedia.softseal.mov":{"source":"iana"},"video/vnd.uvvu.mp4":{"source":"iana","extensions":["uvu","uvvu"]},"video/vnd.vivo":{"source":"iana","extensions":["viv"]},"video/vnd.youtube.yt":{"source":"iana"},"video/vp8":{"source":"iana"},"video/vp9":{"source":"iana"},"video/webm":{"source":"apache","compressible":false,"extensions":["webm"]},"video/x-f4v":{"source":"apache","extensions":["f4v"]},"video/x-fli":{"source":"apache","extensions":["fli"]},"video/x-flv":{"source":"apache","compressible":false,"extensions":["flv"]},"video/x-m4v":{"source":"apache","extensions":["m4v"]},"video/x-matroska":{"source":"apache","compressible":false,"extensions":["mkv","mk3d","mks"]},"video/x-mng":{"source":"apache","extensions":["mng"]},"video/x-ms-asf":{"source":"apache","extensions":["asf","asx"]},"video/x-ms-vob":{"source":"apache","extensions":["vob"]},"video/x-ms-wm":{"source":"apache","extensions":["wm"]},"video/x-ms-wmv":{"source":"apache","compressible":false,"extensions":["wmv"]},"video/x-ms-wmx":{"source":"apache","extensions":["wmx"]},"video/x-ms-wvx":{"source":"apache","extensions":["wvx"]},"video/x-msvideo":{"source":"apache","extensions":["avi"]},"video/x-sgi-movie":{"source":"apache","extensions":["movie"]},"video/x-smv":{"source":"apache","extensions":["smv"]},"x-conference/x-cooltalk":{"source":"apache","extensions":["ice"]},"x-shader/x-fragment":{"compressible":true},"x-shader/x-vertex":{"compressible":true}}')},5454:W=>{W.exports=JSON.parse('{"name":"minio","version":"7.0.32","description":"S3 Compatible Cloud Storage client","main":"./dist/main/minio.js","scripts":{"compile":"gulp compile","test":"gulp test","lint":"gulp lint","lint-fix":"gulp lint --fix","prepublishOnly":"gulp test","functional":"gulp functionalTest","browserify":"gulp browserify","prepare":"npm run compile"},"repository":{"type":"git","url":"git+https://github.com/minio/minio-js.git"},"author":{"name":"MinIO, Inc.","email":"","url":"https://min.io"},"engines":{"node":">8 <=18"},"license":"Apache-2.0","bugs":{"url":"https://github.com/minio/minio-js/issues","mail":""},"homepage":"https://github.com/minio/minio-js#readme","dependencies":{"async":"^3.1.0","block-stream2":"^2.0.0","browser-or-node":"^1.3.0","buffer-crc32":"^0.2.13","crypto-browserify":"^3.12.0","es6-error":"^4.1.1","fast-xml-parser":"^3.17.5","ipaddr.js":"^2.0.1","json-stream":"^1.0.0","lodash":"^4.17.21","mime-types":"^2.1.14","mkdirp":"^0.5.1","query-string":"^7.1.1","through2":"^3.0.1","web-encoding":"^1.1.5","xml":"^1.0.0","xml2js":"^0.4.15"},"devDependencies":{"@babel/core":"^7.12.10","@babel/preset-env":"^7.12.10","babelify":"^10.0.0","browserify":"^16.5.2","chai":"^4.2.0","eslint":"^8.9.0","gulp":"^4.0.2","gulp-babel":"^8.0.0","gulp-eslint":"^4.0.2","gulp-if":"^3.0.0","gulp-mocha":"^8.0.0","gulp-sourcemaps":"^2.6.5","mocha":"^9.2.0","mocha-steps":"^1.1.0","nock":"^13.2.2","source-map-support":"^0.5.13","split-file":"^2.2.2","superagent":"^5.1.0","uuid":"^3.3.2"},"keywords":["api","amazon","minio","cloud","s3","storage"]}')},2562:W=>{W.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')}},Y={};function ut(W){var _=Y[W];if(_!==void 0)return _.exports;var y=Y[W]={id:W,loaded:!1,exports:{}};return L[W].call(y.exports,y,y.exports,ut),y.loaded=!0,y.exports}ut.d=(W,_)=>{for(var y in _)ut.o(_,y)&&!ut.o(W,y)&&Object.defineProperty(W,y,{enumerable:!0,get:_[y]})},ut.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),ut.o=(W,_)=>Object.prototype.hasOwnProperty.call(W,_),ut.r=W=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(W,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(W,"__esModule",{value:!0})},ut.nmd=W=>(W.paths=[],W.children||(W.children=[]),W);var lt={};return(()=>{ut.r(lt),ut.d(lt,{Minio:()=>_,initMinio:()=>x,putObjectBuffer:()=>v});var W=ut(8764).Buffer;const _=ut(2525);let y=null;function x(m){if(!m)throw new Error("Minio的配置不能为空");y=m;const S=(m.endPoint||"").split(":");S[0]&&(y.endPoint=S[0]),S[1]&&(y.port=Number(S[1]))}function v(m,S,a,p,c){if(!y)throw new Error("请先初始化Minio");let l=W.from(a);new(ut(2525)).Client(y).putObject(m,S,l,p,c)}})(),lt})())})(uc);var cc=uc.exports,Wa=(K=>(K[K.Robot=1]="Robot",K[K.User=2]="User",K[K.System=3]="System",K))(Wa||{}),lc={exports:{}};(function(K,O){(function(L,Y){K.exports=Y()})(lf,function(){var L=1e3,Y=6e4,ut=36e5,lt="millisecond",W="second",_="minute",y="hour",x="day",v="week",m="month",S="quarter",a="year",p="date",c="Invalid Date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(et){var Q=["th","st","nd","rd"],ot=et%100;return"["+et+(Q[(ot-20)%10]||Q[ot]||Q[0])+"]"}},h=function(et,Q,ot){var t=String(et);return!t||t.length>=Q?et:""+Array(Q+1-t.length).join(ot)+et},u={s:h,z:function(et){var Q=-et.utcOffset(),ot=Math.abs(Q),t=Math.floor(ot/60),n=ot%60;return(Q<=0?"+":"-")+h(t,2,"0")+":"+h(n,2,"0")},m:function et(Q,ot){if(Q.date()<ot.date())return-et(ot,Q);var t=12*(ot.year()-Q.year())+(ot.month()-Q.month()),n=Q.clone().add(t,m),r=ot-n<0,i=Q.clone().add(t+(r?-1:1),m);return+(-(t+(ot-n)/(r?n-i:i-n))||0)},a:function(et){return et<0?Math.ceil(et)||0:Math.floor(et)},p:function(et){return{M:m,y:a,w:v,d:x,D:p,h:y,m:_,s:W,ms:lt,Q:S}[et]||String(et||"").toLowerCase().replace(/s$/,"")},u:function(et){return et===void 0}},w="en",b={};b[w]=g;var E="$isDayjsObject",I=function(et){return et instanceof N||!(!et||!et[E])},M=function et(Q,ot,t){var n;if(!Q)return w;if(typeof Q=="string"){var r=Q.toLowerCase();b[r]&&(n=r),ot&&(b[r]=ot,n=r);var i=Q.split("-");if(!n&&i.length>1)return et(i[0])}else{var e=Q.name;b[e]=Q,n=e}return!t&&n&&(w=n),n||!t&&w},B=function(et,Q){if(I(et))return et.clone();var ot=typeof Q=="object"?Q:{};return ot.date=et,ot.args=arguments,new N(ot)},P=u;P.l=M,P.i=I,P.w=function(et,Q){return B(et,{locale:Q.$L,utc:Q.$u,x:Q.$x,$offset:Q.$offset})};var N=function(){function et(ot){this.$L=M(ot.locale,null,!0),this.parse(ot),this.$x=this.$x||ot.x||{},this[E]=!0}var Q=et.prototype;return Q.parse=function(ot){this.$d=function(t){var n=t.date,r=t.utc;if(n===null)return new Date(NaN);if(P.u(n))return new Date;if(n instanceof Date)return new Date(n);if(typeof n=="string"&&!/Z$/i.test(n)){var i=n.match(l);if(i){var e=i[2]-1||0,o=(i[7]||"0").substring(0,3);return r?new Date(Date.UTC(i[1],e,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)):new Date(i[1],e,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)}}return new Date(n)}(ot),this.init()},Q.init=function(){var ot=this.$d;this.$y=ot.getFullYear(),this.$M=ot.getMonth(),this.$D=ot.getDate(),this.$W=ot.getDay(),this.$H=ot.getHours(),this.$m=ot.getMinutes(),this.$s=ot.getSeconds(),this.$ms=ot.getMilliseconds()},Q.$utils=function(){return P},Q.isValid=function(){return this.$d.toString()!==c},Q.isSame=function(ot,t){var n=B(ot);return this.startOf(t)<=n&&n<=this.endOf(t)},Q.isAfter=function(ot,t){return B(ot)<this.startOf(t)},Q.isBefore=function(ot,t){return this.endOf(t)<B(ot)},Q.$g=function(ot,t,n){return P.u(ot)?this[t]:this.set(n,ot)},Q.unix=function(){return Math.floor(this.valueOf()/1e3)},Q.valueOf=function(){return this.$d.getTime()},Q.startOf=function(ot,t){var n=this,r=!!P.u(t)||t,i=P.p(ot),e=function(q,Z){var rt=P.w(n.$u?Date.UTC(n.$y,Z,q):new Date(n.$y,Z,q),n);return r?rt:rt.endOf(x)},o=function(q,Z){return P.w(n.toDate()[q].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(Z)),n)},s=this.$W,A=this.$M,C=this.$D,j="set"+(this.$u?"UTC":"");switch(i){case a:return r?e(1,0):e(31,11);case m:return r?e(1,A):e(0,A+1);case v:var T=this.$locale().weekStart||0,R=(s<T?s+7:s)-T;return e(r?C-R:C+(6-R),A);case x:case p:return o(j+"Hours",0);case y:return o(j+"Minutes",1);case _:return o(j+"Seconds",2);case W:return o(j+"Milliseconds",3);default:return this.clone()}},Q.endOf=function(ot){return this.startOf(ot,!1)},Q.$set=function(ot,t){var n,r=P.p(ot),i="set"+(this.$u?"UTC":""),e=(n={},n[x]=i+"Date",n[p]=i+"Date",n[m]=i+"Month",n[a]=i+"FullYear",n[y]=i+"Hours",n[_]=i+"Minutes",n[W]=i+"Seconds",n[lt]=i+"Milliseconds",n)[r],o=r===x?this.$D+(t-this.$W):t;if(r===m||r===a){var s=this.clone().set(p,1);s.$d[e](o),s.init(),this.$d=s.set(p,Math.min(this.$D,s.daysInMonth())).$d}else e&&this.$d[e](o);return this.init(),this},Q.set=function(ot,t){return this.clone().$set(ot,t)},Q.get=function(ot){return this[P.p(ot)]()},Q.add=function(ot,t){var n,r=this;ot=Number(ot);var i=P.p(t),e=function(A){var C=B(r);return P.w(C.date(C.date()+Math.round(A*ot)),r)};if(i===m)return this.set(m,this.$M+ot);if(i===a)return this.set(a,this.$y+ot);if(i===x)return e(1);if(i===v)return e(7);var o=(n={},n[_]=Y,n[y]=ut,n[W]=L,n)[i]||1,s=this.$d.getTime()+ot*o;return P.w(s,this)},Q.subtract=function(ot,t){return this.add(-1*ot,t)},Q.format=function(ot){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||c;var r=ot||"YYYY-MM-DDTHH:mm:ssZ",i=P.z(this),e=this.$H,o=this.$m,s=this.$M,A=n.weekdays,C=n.months,j=n.meridiem,T=function(Z,rt,D,G){return Z&&(Z[rt]||Z(t,r))||D[rt].slice(0,G)},R=function(Z){return P.s(e%12||12,Z,"0")},q=j||function(Z,rt,D){var G=Z<12?"AM":"PM";return D?G.toLowerCase():G};return r.replace(f,function(Z,rt){return rt||function(D){switch(D){case"YY":return String(t.$y).slice(-2);case"YYYY":return P.s(t.$y,4,"0");case"M":return s+1;case"MM":return P.s(s+1,2,"0");case"MMM":return T(n.monthsShort,s,C,3);case"MMMM":return T(C,s);case"D":return t.$D;case"DD":return P.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return T(n.weekdaysMin,t.$W,A,2);case"ddd":return T(n.weekdaysShort,t.$W,A,3);case"dddd":return A[t.$W];case"H":return String(e);case"HH":return P.s(e,2,"0");case"h":return R(1);case"hh":return R(2);case"a":return q(e,o,!0);case"A":return q(e,o,!1);case"m":return String(o);case"mm":return P.s(o,2,"0");case"s":return String(t.$s);case"ss":return P.s(t.$s,2,"0");case"SSS":return P.s(t.$ms,3,"0");case"Z":return i}return null}(Z)||i.replace(":","")})},Q.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Q.diff=function(ot,t,n){var r,i=this,e=P.p(t),o=B(ot),s=(o.utcOffset()-this.utcOffset())*Y,A=this-o,C=function(){return P.m(i,o)};switch(e){case a:r=C()/12;break;case m:r=C();break;case S:r=C()/3;break;case v:r=(A-s)/6048e5;break;case x:r=(A-s)/864e5;break;case y:r=A/ut;break;case _:r=A/Y;break;case W:r=A/L;break;default:r=A}return n?r:P.a(r)},Q.daysInMonth=function(){return this.endOf(m).$D},Q.$locale=function(){return b[this.$L]},Q.locale=function(ot,t){if(!ot)return this.$L;var n=this.clone(),r=M(ot,t,!0);return r&&(n.$L=r),n},Q.clone=function(){return P.w(this.$d,this)},Q.toDate=function(){return new Date(this.valueOf())},Q.toJSON=function(){return this.isValid()?this.toISOString():null},Q.toISOString=function(){return this.$d.toISOString()},Q.toString=function(){return this.$d.toUTCString()},et}(),$=N.prototype;return B.prototype=$,[["$ms",lt],["$s",W],["$m",_],["$H",y],["$W",x],["$M",m],["$y",a],["$D",p]].forEach(function(et){$[et[1]]=function(Q){return this.$g(Q,et[0],et[1])}}),B.extend=function(et,Q){return et.$i||(et(Q,N,B),et.$i=!0),B},B.locale=M,B.isDayjs=I,B.unix=function(et){return B(1e3*et)},B.en=b[w],B.Ls=b,B.p={},B})})(lc);var pp=lc.exports;const hc=_u(pp);typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const dp=[];for(let K=0;K<256;++K)dp.push((K+256).toString(16).slice(1));var Va={},fo={};fo.byteLength=vp,fo.toByteArray=bp,fo.fromByteArray=xp;for(var Er=[],sr=[],mp=typeof Uint8Array<"u"?Uint8Array:Array,Xa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yn=0,gp=Xa.length;yn<gp;++yn)Er[yn]=Xa[yn],sr[Xa.charCodeAt(yn)]=yn;sr["-".charCodeAt(0)]=62,sr["_".charCodeAt(0)]=63;function fc(K){var O=K.length;if(O%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var L=K.indexOf("=");L===-1&&(L=O);var Y=L===O?0:4-L%4;return[L,Y]}function vp(K){var O=fc(K),L=O[0],Y=O[1];return(L+Y)*3/4-Y}function yp(K,O,L){return(O+L)*3/4-L}function bp(K){var O,L=fc(K),Y=L[0],ut=L[1],lt=new mp(yp(K,Y,ut)),W=0,_=ut>0?Y-4:Y,y;for(y=0;y<_;y+=4)O=sr[K.charCodeAt(y)]<<18|sr[K.charCodeAt(y+1)]<<12|sr[K.charCodeAt(y+2)]<<6|sr[K.charCodeAt(y+3)],lt[W++]=O>>16&255,lt[W++]=O>>8&255,lt[W++]=O&255;return ut===2&&(O=sr[K.charCodeAt(y)]<<2|sr[K.charCodeAt(y+1)]>>4,lt[W++]=O&255),ut===1&&(O=sr[K.charCodeAt(y)]<<10|sr[K.charCodeAt(y+1)]<<4|sr[K.charCodeAt(y+2)]>>2,lt[W++]=O>>8&255,lt[W++]=O&255),lt}function wp(K){return Er[K>>18&63]+Er[K>>12&63]+Er[K>>6&63]+Er[K&63]}function Mp(K,O,L){for(var Y,ut=[],lt=O;lt<L;lt+=3)Y=(K[lt]<<16&16711680)+(K[lt+1]<<8&65280)+(K[lt+2]&255),ut.push(wp(Y));return ut.join("")}function xp(K){for(var O,L=K.length,Y=L%3,ut=[],lt=16383,W=0,_=L-Y;W<_;W+=lt)ut.push(Mp(K,W,W+lt>_?_:W+lt));return Y===1?(O=K[L-1],ut.push(Er[O>>2]+Er[O<<4&63]+"==")):Y===2&&(O=(K[L-2]<<8)+K[L-1],ut.push(Er[O>>10]+Er[O>>4&63]+Er[O<<2&63]+"=")),ut.join("")}var Za={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Za.read=function(K,O,L,Y,ut){var lt,W,_=ut*8-Y-1,y=(1<<_)-1,x=y>>1,v=-7,m=L?ut-1:0,S=L?-1:1,a=K[O+m];for(m+=S,lt=a&(1<<-v)-1,a>>=-v,v+=_;v>0;lt=lt*256+K[O+m],m+=S,v-=8);for(W=lt&(1<<-v)-1,lt>>=-v,v+=Y;v>0;W=W*256+K[O+m],m+=S,v-=8);if(lt===0)lt=1-x;else{if(lt===y)return W?NaN:(a?-1:1)*(1/0);W=W+Math.pow(2,Y),lt=lt-x}return(a?-1:1)*W*Math.pow(2,lt-Y)},Za.write=function(K,O,L,Y,ut,lt){var W,_,y,x=lt*8-ut-1,v=(1<<x)-1,m=v>>1,S=ut===23?Math.pow(2,-24)-Math.pow(2,-77):0,a=Y?0:lt-1,p=Y?1:-1,c=O<0||O===0&&1/O<0?1:0;for(O=Math.abs(O),isNaN(O)||O===1/0?(_=isNaN(O)?1:0,W=v):(W=Math.floor(Math.log(O)/Math.LN2),O*(y=Math.pow(2,-W))<1&&(W--,y*=2),W+m>=1?O+=S/y:O+=S*Math.pow(2,1-m),O*y>=2&&(W++,y/=2),W+m>=v?(_=0,W=v):W+m>=1?(_=(O*y-1)*Math.pow(2,ut),W=W+m):(_=O*Math.pow(2,m-1)*Math.pow(2,ut),W=0));ut>=8;K[L+a]=_&255,a+=p,_/=256,ut-=8);for(W=W<<ut|_,x+=ut;x>0;K[L+a]=W&255,a+=p,W/=256,x-=8);K[L+a-p]|=c*128};/*!
|
|
133
|
+
* The buffer module from node.js, for the browser.
|
|
134
|
+
*
|
|
135
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
136
|
+
* @license MIT
|
|
137
|
+
*/(function(K){const O=fo,L=Za,Y=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;K.Buffer=_,K.SlowBuffer=g,K.INSPECT_MAX_BYTES=50;const ut=2147483647;K.kMaxLength=ut,_.TYPED_ARRAY_SUPPORT=lt(),!_.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function lt(){try{const F=new Uint8Array(1),H={foo:function(){return 42}};return Object.setPrototypeOf(H,Uint8Array.prototype),Object.setPrototypeOf(F,H),F.foo()===42}catch{return!1}}Object.defineProperty(_.prototype,"parent",{enumerable:!0,get:function(){if(_.isBuffer(this))return this.buffer}}),Object.defineProperty(_.prototype,"offset",{enumerable:!0,get:function(){if(_.isBuffer(this))return this.byteOffset}});function W(F){if(F>ut)throw new RangeError('The value "'+F+'" is invalid for option "size"');const H=new Uint8Array(F);return Object.setPrototypeOf(H,_.prototype),H}function _(F,H,U){if(typeof F=="number"){if(typeof H=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return m(F)}return y(F,H,U)}_.poolSize=8192;function y(F,H,U){if(typeof F=="string")return S(F,H);if(ArrayBuffer.isView(F))return p(F);if(F==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F);if(Bt(F,ArrayBuffer)||F&&Bt(F.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Bt(F,SharedArrayBuffer)||F&&Bt(F.buffer,SharedArrayBuffer)))return c(F,H,U);if(typeof F=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const it=F.valueOf&&F.valueOf();if(it!=null&&it!==F)return _.from(it,H,U);const pt=l(F);if(pt)return pt;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof F[Symbol.toPrimitive]=="function")return _.from(F[Symbol.toPrimitive]("string"),H,U);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F)}_.from=function(F,H,U){return y(F,H,U)},Object.setPrototypeOf(_.prototype,Uint8Array.prototype),Object.setPrototypeOf(_,Uint8Array);function x(F){if(typeof F!="number")throw new TypeError('"size" argument must be of type number');if(F<0)throw new RangeError('The value "'+F+'" is invalid for option "size"')}function v(F,H,U){return x(F),F<=0?W(F):H!==void 0?typeof U=="string"?W(F).fill(H,U):W(F).fill(H):W(F)}_.alloc=function(F,H,U){return v(F,H,U)};function m(F){return x(F),W(F<0?0:f(F)|0)}_.allocUnsafe=function(F){return m(F)},_.allocUnsafeSlow=function(F){return m(F)};function S(F,H){if((typeof H!="string"||H==="")&&(H="utf8"),!_.isEncoding(H))throw new TypeError("Unknown encoding: "+H);const U=h(F,H)|0;let it=W(U);const pt=it.write(F,H);return pt!==U&&(it=it.slice(0,pt)),it}function a(F){const H=F.length<0?0:f(F.length)|0,U=W(H);for(let it=0;it<H;it+=1)U[it]=F[it]&255;return U}function p(F){if(Bt(F,Uint8Array)){const H=new Uint8Array(F);return c(H.buffer,H.byteOffset,H.byteLength)}return a(F)}function c(F,H,U){if(H<0||F.byteLength<H)throw new RangeError('"offset" is outside of buffer bounds');if(F.byteLength<H+(U||0))throw new RangeError('"length" is outside of buffer bounds');let it;return H===void 0&&U===void 0?it=new Uint8Array(F):U===void 0?it=new Uint8Array(F,H):it=new Uint8Array(F,H,U),Object.setPrototypeOf(it,_.prototype),it}function l(F){if(_.isBuffer(F)){const H=f(F.length)|0,U=W(H);return U.length===0||F.copy(U,0,0,H),U}if(F.length!==void 0)return typeof F.length!="number"||Mt(F.length)?W(0):a(F);if(F.type==="Buffer"&&Array.isArray(F.data))return a(F.data)}function f(F){if(F>=ut)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ut.toString(16)+" bytes");return F|0}function g(F){return+F!=F&&(F=0),_.alloc(+F)}_.isBuffer=function(H){return H!=null&&H._isBuffer===!0&&H!==_.prototype},_.compare=function(H,U){if(Bt(H,Uint8Array)&&(H=_.from(H,H.offset,H.byteLength)),Bt(U,Uint8Array)&&(U=_.from(U,U.offset,U.byteLength)),!_.isBuffer(H)||!_.isBuffer(U))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(H===U)return 0;let it=H.length,pt=U.length;for(let ft=0,mt=Math.min(it,pt);ft<mt;++ft)if(H[ft]!==U[ft]){it=H[ft],pt=U[ft];break}return it<pt?-1:pt<it?1:0},_.isEncoding=function(H){switch(String(H).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}},_.concat=function(H,U){if(!Array.isArray(H))throw new TypeError('"list" argument must be an Array of Buffers');if(H.length===0)return _.alloc(0);let it;if(U===void 0)for(U=0,it=0;it<H.length;++it)U+=H[it].length;const pt=_.allocUnsafe(U);let ft=0;for(it=0;it<H.length;++it){let mt=H[it];if(Bt(mt,Uint8Array))ft+mt.length>pt.length?(_.isBuffer(mt)||(mt=_.from(mt)),mt.copy(pt,ft)):Uint8Array.prototype.set.call(pt,mt,ft);else if(_.isBuffer(mt))mt.copy(pt,ft);else throw new TypeError('"list" argument must be an Array of Buffers');ft+=mt.length}return pt};function h(F,H){if(_.isBuffer(F))return F.length;if(ArrayBuffer.isView(F)||Bt(F,ArrayBuffer))return F.byteLength;if(typeof F!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof F);const U=F.length,it=arguments.length>2&&arguments[2]===!0;if(!it&&U===0)return 0;let pt=!1;for(;;)switch(H){case"ascii":case"latin1":case"binary":return U;case"utf8":case"utf-8":return nt(F).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U*2;case"hex":return U>>>1;case"base64":return gt(F).length;default:if(pt)return it?-1:nt(F).length;H=(""+H).toLowerCase(),pt=!0}}_.byteLength=h;function u(F,H,U){let it=!1;if((H===void 0||H<0)&&(H=0),H>this.length||((U===void 0||U>this.length)&&(U=this.length),U<=0)||(U>>>=0,H>>>=0,U<=H))return"";for(F||(F="utf8");;)switch(F){case"hex":return r(this,H,U);case"utf8":case"utf-8":return et(this,H,U);case"ascii":return t(this,H,U);case"latin1":case"binary":return n(this,H,U);case"base64":return $(this,H,U);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i(this,H,U);default:if(it)throw new TypeError("Unknown encoding: "+F);F=(F+"").toLowerCase(),it=!0}}_.prototype._isBuffer=!0;function w(F,H,U){const it=F[H];F[H]=F[U],F[U]=it}_.prototype.swap16=function(){const H=this.length;if(H%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let U=0;U<H;U+=2)w(this,U,U+1);return this},_.prototype.swap32=function(){const H=this.length;if(H%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let U=0;U<H;U+=4)w(this,U,U+3),w(this,U+1,U+2);return this},_.prototype.swap64=function(){const H=this.length;if(H%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let U=0;U<H;U+=8)w(this,U,U+7),w(this,U+1,U+6),w(this,U+2,U+5),w(this,U+3,U+4);return this},_.prototype.toString=function(){const H=this.length;return H===0?"":arguments.length===0?et(this,0,H):u.apply(this,arguments)},_.prototype.toLocaleString=_.prototype.toString,_.prototype.equals=function(H){if(!_.isBuffer(H))throw new TypeError("Argument must be a Buffer");return this===H?!0:_.compare(this,H)===0},_.prototype.inspect=function(){let H="";const U=K.INSPECT_MAX_BYTES;return H=this.toString("hex",0,U).replace(/(.{2})/g,"$1 ").trim(),this.length>U&&(H+=" ... "),"<Buffer "+H+">"},Y&&(_.prototype[Y]=_.prototype.inspect),_.prototype.compare=function(H,U,it,pt,ft){if(Bt(H,Uint8Array)&&(H=_.from(H,H.offset,H.byteLength)),!_.isBuffer(H))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof H);if(U===void 0&&(U=0),it===void 0&&(it=H?H.length:0),pt===void 0&&(pt=0),ft===void 0&&(ft=this.length),U<0||it>H.length||pt<0||ft>this.length)throw new RangeError("out of range index");if(pt>=ft&&U>=it)return 0;if(pt>=ft)return-1;if(U>=it)return 1;if(U>>>=0,it>>>=0,pt>>>=0,ft>>>=0,this===H)return 0;let mt=ft-pt,re=it-U;const _t=Math.min(mt,re),At=this.slice(pt,ft),fe=H.slice(U,it);for(let kt=0;kt<_t;++kt)if(At[kt]!==fe[kt]){mt=At[kt],re=fe[kt];break}return mt<re?-1:re<mt?1:0};function b(F,H,U,it,pt){if(F.length===0)return-1;if(typeof U=="string"?(it=U,U=0):U>2147483647?U=2147483647:U<-2147483648&&(U=-2147483648),U=+U,Mt(U)&&(U=pt?0:F.length-1),U<0&&(U=F.length+U),U>=F.length){if(pt)return-1;U=F.length-1}else if(U<0)if(pt)U=0;else return-1;if(typeof H=="string"&&(H=_.from(H,it)),_.isBuffer(H))return H.length===0?-1:E(F,H,U,it,pt);if(typeof H=="number")return H=H&255,typeof Uint8Array.prototype.indexOf=="function"?pt?Uint8Array.prototype.indexOf.call(F,H,U):Uint8Array.prototype.lastIndexOf.call(F,H,U):E(F,[H],U,it,pt);throw new TypeError("val must be string, number or Buffer")}function E(F,H,U,it,pt){let ft=1,mt=F.length,re=H.length;if(it!==void 0&&(it=String(it).toLowerCase(),it==="ucs2"||it==="ucs-2"||it==="utf16le"||it==="utf-16le")){if(F.length<2||H.length<2)return-1;ft=2,mt/=2,re/=2,U/=2}function _t(fe,kt){return ft===1?fe[kt]:fe.readUInt16BE(kt*ft)}let At;if(pt){let fe=-1;for(At=U;At<mt;At++)if(_t(F,At)===_t(H,fe===-1?0:At-fe)){if(fe===-1&&(fe=At),At-fe+1===re)return fe*ft}else fe!==-1&&(At-=At-fe),fe=-1}else for(U+re>mt&&(U=mt-re),At=U;At>=0;At--){let fe=!0;for(let kt=0;kt<re;kt++)if(_t(F,At+kt)!==_t(H,kt)){fe=!1;break}if(fe)return At}return-1}_.prototype.includes=function(H,U,it){return this.indexOf(H,U,it)!==-1},_.prototype.indexOf=function(H,U,it){return b(this,H,U,it,!0)},_.prototype.lastIndexOf=function(H,U,it){return b(this,H,U,it,!1)};function I(F,H,U,it){U=Number(U)||0;const pt=F.length-U;it?(it=Number(it),it>pt&&(it=pt)):it=pt;const ft=H.length;it>ft/2&&(it=ft/2);let mt;for(mt=0;mt<it;++mt){const re=parseInt(H.substr(mt*2,2),16);if(Mt(re))return mt;F[U+mt]=re}return mt}function M(F,H,U,it){return bt(nt(H,F.length-U),F,U,it)}function B(F,H,U,it){return bt(ht(H),F,U,it)}function P(F,H,U,it){return bt(gt(H),F,U,it)}function N(F,H,U,it){return bt(Et(H,F.length-U),F,U,it)}_.prototype.write=function(H,U,it,pt){if(U===void 0)pt="utf8",it=this.length,U=0;else if(it===void 0&&typeof U=="string")pt=U,it=this.length,U=0;else if(isFinite(U))U=U>>>0,isFinite(it)?(it=it>>>0,pt===void 0&&(pt="utf8")):(pt=it,it=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const ft=this.length-U;if((it===void 0||it>ft)&&(it=ft),H.length>0&&(it<0||U<0)||U>this.length)throw new RangeError("Attempt to write outside buffer bounds");pt||(pt="utf8");let mt=!1;for(;;)switch(pt){case"hex":return I(this,H,U,it);case"utf8":case"utf-8":return M(this,H,U,it);case"ascii":case"latin1":case"binary":return B(this,H,U,it);case"base64":return P(this,H,U,it);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,H,U,it);default:if(mt)throw new TypeError("Unknown encoding: "+pt);pt=(""+pt).toLowerCase(),mt=!0}},_.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function $(F,H,U){return H===0&&U===F.length?O.fromByteArray(F):O.fromByteArray(F.slice(H,U))}function et(F,H,U){U=Math.min(F.length,U);const it=[];let pt=H;for(;pt<U;){const ft=F[pt];let mt=null,re=ft>239?4:ft>223?3:ft>191?2:1;if(pt+re<=U){let _t,At,fe,kt;switch(re){case 1:ft<128&&(mt=ft);break;case 2:_t=F[pt+1],(_t&192)===128&&(kt=(ft&31)<<6|_t&63,kt>127&&(mt=kt));break;case 3:_t=F[pt+1],At=F[pt+2],(_t&192)===128&&(At&192)===128&&(kt=(ft&15)<<12|(_t&63)<<6|At&63,kt>2047&&(kt<55296||kt>57343)&&(mt=kt));break;case 4:_t=F[pt+1],At=F[pt+2],fe=F[pt+3],(_t&192)===128&&(At&192)===128&&(fe&192)===128&&(kt=(ft&15)<<18|(_t&63)<<12|(At&63)<<6|fe&63,kt>65535&&kt<1114112&&(mt=kt))}}mt===null?(mt=65533,re=1):mt>65535&&(mt-=65536,it.push(mt>>>10&1023|55296),mt=56320|mt&1023),it.push(mt),pt+=re}return ot(it)}const Q=4096;function ot(F){const H=F.length;if(H<=Q)return String.fromCharCode.apply(String,F);let U="",it=0;for(;it<H;)U+=String.fromCharCode.apply(String,F.slice(it,it+=Q));return U}function t(F,H,U){let it="";U=Math.min(F.length,U);for(let pt=H;pt<U;++pt)it+=String.fromCharCode(F[pt]&127);return it}function n(F,H,U){let it="";U=Math.min(F.length,U);for(let pt=H;pt<U;++pt)it+=String.fromCharCode(F[pt]);return it}function r(F,H,U){const it=F.length;(!H||H<0)&&(H=0),(!U||U<0||U>it)&&(U=it);let pt="";for(let ft=H;ft<U;++ft)pt+=It[F[ft]];return pt}function i(F,H,U){const it=F.slice(H,U);let pt="";for(let ft=0;ft<it.length-1;ft+=2)pt+=String.fromCharCode(it[ft]+it[ft+1]*256);return pt}_.prototype.slice=function(H,U){const it=this.length;H=~~H,U=U===void 0?it:~~U,H<0?(H+=it,H<0&&(H=0)):H>it&&(H=it),U<0?(U+=it,U<0&&(U=0)):U>it&&(U=it),U<H&&(U=H);const pt=this.subarray(H,U);return Object.setPrototypeOf(pt,_.prototype),pt};function e(F,H,U){if(F%1!==0||F<0)throw new RangeError("offset is not uint");if(F+H>U)throw new RangeError("Trying to access beyond buffer length")}_.prototype.readUintLE=_.prototype.readUIntLE=function(H,U,it){H=H>>>0,U=U>>>0,it||e(H,U,this.length);let pt=this[H],ft=1,mt=0;for(;++mt<U&&(ft*=256);)pt+=this[H+mt]*ft;return pt},_.prototype.readUintBE=_.prototype.readUIntBE=function(H,U,it){H=H>>>0,U=U>>>0,it||e(H,U,this.length);let pt=this[H+--U],ft=1;for(;U>0&&(ft*=256);)pt+=this[H+--U]*ft;return pt},_.prototype.readUint8=_.prototype.readUInt8=function(H,U){return H=H>>>0,U||e(H,1,this.length),this[H]},_.prototype.readUint16LE=_.prototype.readUInt16LE=function(H,U){return H=H>>>0,U||e(H,2,this.length),this[H]|this[H+1]<<8},_.prototype.readUint16BE=_.prototype.readUInt16BE=function(H,U){return H=H>>>0,U||e(H,2,this.length),this[H]<<8|this[H+1]},_.prototype.readUint32LE=_.prototype.readUInt32LE=function(H,U){return H=H>>>0,U||e(H,4,this.length),(this[H]|this[H+1]<<8|this[H+2]<<16)+this[H+3]*16777216},_.prototype.readUint32BE=_.prototype.readUInt32BE=function(H,U){return H=H>>>0,U||e(H,4,this.length),this[H]*16777216+(this[H+1]<<16|this[H+2]<<8|this[H+3])},_.prototype.readBigUInt64LE=J(function(H){H=H>>>0,G(H,"offset");const U=this[H],it=this[H+7];(U===void 0||it===void 0)&&z(H,this.length-8);const pt=U+this[++H]*2**8+this[++H]*2**16+this[++H]*2**24,ft=this[++H]+this[++H]*2**8+this[++H]*2**16+it*2**24;return BigInt(pt)+(BigInt(ft)<<BigInt(32))}),_.prototype.readBigUInt64BE=J(function(H){H=H>>>0,G(H,"offset");const U=this[H],it=this[H+7];(U===void 0||it===void 0)&&z(H,this.length-8);const pt=U*2**24+this[++H]*2**16+this[++H]*2**8+this[++H],ft=this[++H]*2**24+this[++H]*2**16+this[++H]*2**8+it;return(BigInt(pt)<<BigInt(32))+BigInt(ft)}),_.prototype.readIntLE=function(H,U,it){H=H>>>0,U=U>>>0,it||e(H,U,this.length);let pt=this[H],ft=1,mt=0;for(;++mt<U&&(ft*=256);)pt+=this[H+mt]*ft;return ft*=128,pt>=ft&&(pt-=Math.pow(2,8*U)),pt},_.prototype.readIntBE=function(H,U,it){H=H>>>0,U=U>>>0,it||e(H,U,this.length);let pt=U,ft=1,mt=this[H+--pt];for(;pt>0&&(ft*=256);)mt+=this[H+--pt]*ft;return ft*=128,mt>=ft&&(mt-=Math.pow(2,8*U)),mt},_.prototype.readInt8=function(H,U){return H=H>>>0,U||e(H,1,this.length),this[H]&128?(255-this[H]+1)*-1:this[H]},_.prototype.readInt16LE=function(H,U){H=H>>>0,U||e(H,2,this.length);const it=this[H]|this[H+1]<<8;return it&32768?it|4294901760:it},_.prototype.readInt16BE=function(H,U){H=H>>>0,U||e(H,2,this.length);const it=this[H+1]|this[H]<<8;return it&32768?it|4294901760:it},_.prototype.readInt32LE=function(H,U){return H=H>>>0,U||e(H,4,this.length),this[H]|this[H+1]<<8|this[H+2]<<16|this[H+3]<<24},_.prototype.readInt32BE=function(H,U){return H=H>>>0,U||e(H,4,this.length),this[H]<<24|this[H+1]<<16|this[H+2]<<8|this[H+3]},_.prototype.readBigInt64LE=J(function(H){H=H>>>0,G(H,"offset");const U=this[H],it=this[H+7];(U===void 0||it===void 0)&&z(H,this.length-8);const pt=this[H+4]+this[H+5]*2**8+this[H+6]*2**16+(it<<24);return(BigInt(pt)<<BigInt(32))+BigInt(U+this[++H]*2**8+this[++H]*2**16+this[++H]*2**24)}),_.prototype.readBigInt64BE=J(function(H){H=H>>>0,G(H,"offset");const U=this[H],it=this[H+7];(U===void 0||it===void 0)&&z(H,this.length-8);const pt=(U<<24)+this[++H]*2**16+this[++H]*2**8+this[++H];return(BigInt(pt)<<BigInt(32))+BigInt(this[++H]*2**24+this[++H]*2**16+this[++H]*2**8+it)}),_.prototype.readFloatLE=function(H,U){return H=H>>>0,U||e(H,4,this.length),L.read(this,H,!0,23,4)},_.prototype.readFloatBE=function(H,U){return H=H>>>0,U||e(H,4,this.length),L.read(this,H,!1,23,4)},_.prototype.readDoubleLE=function(H,U){return H=H>>>0,U||e(H,8,this.length),L.read(this,H,!0,52,8)},_.prototype.readDoubleBE=function(H,U){return H=H>>>0,U||e(H,8,this.length),L.read(this,H,!1,52,8)};function o(F,H,U,it,pt,ft){if(!_.isBuffer(F))throw new TypeError('"buffer" argument must be a Buffer instance');if(H>pt||H<ft)throw new RangeError('"value" argument is out of bounds');if(U+it>F.length)throw new RangeError("Index out of range")}_.prototype.writeUintLE=_.prototype.writeUIntLE=function(H,U,it,pt){if(H=+H,U=U>>>0,it=it>>>0,!pt){const re=Math.pow(2,8*it)-1;o(this,H,U,it,re,0)}let ft=1,mt=0;for(this[U]=H&255;++mt<it&&(ft*=256);)this[U+mt]=H/ft&255;return U+it},_.prototype.writeUintBE=_.prototype.writeUIntBE=function(H,U,it,pt){if(H=+H,U=U>>>0,it=it>>>0,!pt){const re=Math.pow(2,8*it)-1;o(this,H,U,it,re,0)}let ft=it-1,mt=1;for(this[U+ft]=H&255;--ft>=0&&(mt*=256);)this[U+ft]=H/mt&255;return U+it},_.prototype.writeUint8=_.prototype.writeUInt8=function(H,U,it){return H=+H,U=U>>>0,it||o(this,H,U,1,255,0),this[U]=H&255,U+1},_.prototype.writeUint16LE=_.prototype.writeUInt16LE=function(H,U,it){return H=+H,U=U>>>0,it||o(this,H,U,2,65535,0),this[U]=H&255,this[U+1]=H>>>8,U+2},_.prototype.writeUint16BE=_.prototype.writeUInt16BE=function(H,U,it){return H=+H,U=U>>>0,it||o(this,H,U,2,65535,0),this[U]=H>>>8,this[U+1]=H&255,U+2},_.prototype.writeUint32LE=_.prototype.writeUInt32LE=function(H,U,it){return H=+H,U=U>>>0,it||o(this,H,U,4,4294967295,0),this[U+3]=H>>>24,this[U+2]=H>>>16,this[U+1]=H>>>8,this[U]=H&255,U+4},_.prototype.writeUint32BE=_.prototype.writeUInt32BE=function(H,U,it){return H=+H,U=U>>>0,it||o(this,H,U,4,4294967295,0),this[U]=H>>>24,this[U+1]=H>>>16,this[U+2]=H>>>8,this[U+3]=H&255,U+4};function s(F,H,U,it,pt){D(H,it,pt,F,U,7);let ft=Number(H&BigInt(4294967295));F[U++]=ft,ft=ft>>8,F[U++]=ft,ft=ft>>8,F[U++]=ft,ft=ft>>8,F[U++]=ft;let mt=Number(H>>BigInt(32)&BigInt(4294967295));return F[U++]=mt,mt=mt>>8,F[U++]=mt,mt=mt>>8,F[U++]=mt,mt=mt>>8,F[U++]=mt,U}function A(F,H,U,it,pt){D(H,it,pt,F,U,7);let ft=Number(H&BigInt(4294967295));F[U+7]=ft,ft=ft>>8,F[U+6]=ft,ft=ft>>8,F[U+5]=ft,ft=ft>>8,F[U+4]=ft;let mt=Number(H>>BigInt(32)&BigInt(4294967295));return F[U+3]=mt,mt=mt>>8,F[U+2]=mt,mt=mt>>8,F[U+1]=mt,mt=mt>>8,F[U]=mt,U+8}_.prototype.writeBigUInt64LE=J(function(H,U=0){return s(this,H,U,BigInt(0),BigInt("0xffffffffffffffff"))}),_.prototype.writeBigUInt64BE=J(function(H,U=0){return A(this,H,U,BigInt(0),BigInt("0xffffffffffffffff"))}),_.prototype.writeIntLE=function(H,U,it,pt){if(H=+H,U=U>>>0,!pt){const _t=Math.pow(2,8*it-1);o(this,H,U,it,_t-1,-_t)}let ft=0,mt=1,re=0;for(this[U]=H&255;++ft<it&&(mt*=256);)H<0&&re===0&&this[U+ft-1]!==0&&(re=1),this[U+ft]=(H/mt>>0)-re&255;return U+it},_.prototype.writeIntBE=function(H,U,it,pt){if(H=+H,U=U>>>0,!pt){const _t=Math.pow(2,8*it-1);o(this,H,U,it,_t-1,-_t)}let ft=it-1,mt=1,re=0;for(this[U+ft]=H&255;--ft>=0&&(mt*=256);)H<0&&re===0&&this[U+ft+1]!==0&&(re=1),this[U+ft]=(H/mt>>0)-re&255;return U+it},_.prototype.writeInt8=function(H,U,it){return H=+H,U=U>>>0,it||o(this,H,U,1,127,-128),H<0&&(H=255+H+1),this[U]=H&255,U+1},_.prototype.writeInt16LE=function(H,U,it){return H=+H,U=U>>>0,it||o(this,H,U,2,32767,-32768),this[U]=H&255,this[U+1]=H>>>8,U+2},_.prototype.writeInt16BE=function(H,U,it){return H=+H,U=U>>>0,it||o(this,H,U,2,32767,-32768),this[U]=H>>>8,this[U+1]=H&255,U+2},_.prototype.writeInt32LE=function(H,U,it){return H=+H,U=U>>>0,it||o(this,H,U,4,2147483647,-2147483648),this[U]=H&255,this[U+1]=H>>>8,this[U+2]=H>>>16,this[U+3]=H>>>24,U+4},_.prototype.writeInt32BE=function(H,U,it){return H=+H,U=U>>>0,it||o(this,H,U,4,2147483647,-2147483648),H<0&&(H=4294967295+H+1),this[U]=H>>>24,this[U+1]=H>>>16,this[U+2]=H>>>8,this[U+3]=H&255,U+4},_.prototype.writeBigInt64LE=J(function(H,U=0){return s(this,H,U,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),_.prototype.writeBigInt64BE=J(function(H,U=0){return A(this,H,U,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function C(F,H,U,it,pt,ft){if(U+it>F.length)throw new RangeError("Index out of range");if(U<0)throw new RangeError("Index out of range")}function j(F,H,U,it,pt){return H=+H,U=U>>>0,pt||C(F,H,U,4),L.write(F,H,U,it,23,4),U+4}_.prototype.writeFloatLE=function(H,U,it){return j(this,H,U,!0,it)},_.prototype.writeFloatBE=function(H,U,it){return j(this,H,U,!1,it)};function T(F,H,U,it,pt){return H=+H,U=U>>>0,pt||C(F,H,U,8),L.write(F,H,U,it,52,8),U+8}_.prototype.writeDoubleLE=function(H,U,it){return T(this,H,U,!0,it)},_.prototype.writeDoubleBE=function(H,U,it){return T(this,H,U,!1,it)},_.prototype.copy=function(H,U,it,pt){if(!_.isBuffer(H))throw new TypeError("argument should be a Buffer");if(it||(it=0),!pt&&pt!==0&&(pt=this.length),U>=H.length&&(U=H.length),U||(U=0),pt>0&&pt<it&&(pt=it),pt===it||H.length===0||this.length===0)return 0;if(U<0)throw new RangeError("targetStart out of bounds");if(it<0||it>=this.length)throw new RangeError("Index out of range");if(pt<0)throw new RangeError("sourceEnd out of bounds");pt>this.length&&(pt=this.length),H.length-U<pt-it&&(pt=H.length-U+it);const ft=pt-it;return this===H&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(U,it,pt):Uint8Array.prototype.set.call(H,this.subarray(it,pt),U),ft},_.prototype.fill=function(H,U,it,pt){if(typeof H=="string"){if(typeof U=="string"?(pt=U,U=0,it=this.length):typeof it=="string"&&(pt=it,it=this.length),pt!==void 0&&typeof pt!="string")throw new TypeError("encoding must be a string");if(typeof pt=="string"&&!_.isEncoding(pt))throw new TypeError("Unknown encoding: "+pt);if(H.length===1){const mt=H.charCodeAt(0);(pt==="utf8"&&mt<128||pt==="latin1")&&(H=mt)}}else typeof H=="number"?H=H&255:typeof H=="boolean"&&(H=Number(H));if(U<0||this.length<U||this.length<it)throw new RangeError("Out of range index");if(it<=U)return this;U=U>>>0,it=it===void 0?this.length:it>>>0,H||(H=0);let ft;if(typeof H=="number")for(ft=U;ft<it;++ft)this[ft]=H;else{const mt=_.isBuffer(H)?H:_.from(H,pt),re=mt.length;if(re===0)throw new TypeError('The value "'+H+'" is invalid for argument "value"');for(ft=0;ft<it-U;++ft)this[ft+U]=mt[ft%re]}return this};const R={};function q(F,H,U){R[F]=class extends U{constructor(){super(),Object.defineProperty(this,"message",{value:H.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${F}]`,this.stack,delete this.name}get code(){return F}set code(pt){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:pt,writable:!0})}toString(){return`${this.name} [${F}]: ${this.message}`}}}q("ERR_BUFFER_OUT_OF_BOUNDS",function(F){return F?`${F} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),q("ERR_INVALID_ARG_TYPE",function(F,H){return`The "${F}" argument must be of type number. Received type ${typeof H}`},TypeError),q("ERR_OUT_OF_RANGE",function(F,H,U){let it=`The value of "${F}" is out of range.`,pt=U;return Number.isInteger(U)&&Math.abs(U)>2**32?pt=Z(String(U)):typeof U=="bigint"&&(pt=String(U),(U>BigInt(2)**BigInt(32)||U<-(BigInt(2)**BigInt(32)))&&(pt=Z(pt)),pt+="n"),it+=` It must be ${H}. Received ${pt}`,it},RangeError);function Z(F){let H="",U=F.length;const it=F[0]==="-"?1:0;for(;U>=it+4;U-=3)H=`_${F.slice(U-3,U)}${H}`;return`${F.slice(0,U)}${H}`}function rt(F,H,U){G(H,"offset"),(F[H]===void 0||F[H+U]===void 0)&&z(H,F.length-(U+1))}function D(F,H,U,it,pt,ft){if(F>U||F<H){const mt=typeof H=="bigint"?"n":"";let re;throw ft>3?H===0||H===BigInt(0)?re=`>= 0${mt} and < 2${mt} ** ${(ft+1)*8}${mt}`:re=`>= -(2${mt} ** ${(ft+1)*8-1}${mt}) and < 2 ** ${(ft+1)*8-1}${mt}`:re=`>= ${H}${mt} and <= ${U}${mt}`,new R.ERR_OUT_OF_RANGE("value",re,F)}rt(it,pt,ft)}function G(F,H){if(typeof F!="number")throw new R.ERR_INVALID_ARG_TYPE(H,"number",F)}function z(F,H,U){throw Math.floor(F)!==F?(G(F,U),new R.ERR_OUT_OF_RANGE(U||"offset","an integer",F)):H<0?new R.ERR_BUFFER_OUT_OF_BOUNDS:new R.ERR_OUT_OF_RANGE(U||"offset",`>= ${U?1:0} and <= ${H}`,F)}const X=/[^+/0-9A-Za-z-_]/g;function st(F){if(F=F.split("=")[0],F=F.trim().replace(X,""),F.length<2)return"";for(;F.length%4!==0;)F=F+"=";return F}function nt(F,H){H=H||1/0;let U;const it=F.length;let pt=null;const ft=[];for(let mt=0;mt<it;++mt){if(U=F.charCodeAt(mt),U>55295&&U<57344){if(!pt){if(U>56319){(H-=3)>-1&&ft.push(239,191,189);continue}else if(mt+1===it){(H-=3)>-1&&ft.push(239,191,189);continue}pt=U;continue}if(U<56320){(H-=3)>-1&&ft.push(239,191,189),pt=U;continue}U=(pt-55296<<10|U-56320)+65536}else pt&&(H-=3)>-1&&ft.push(239,191,189);if(pt=null,U<128){if((H-=1)<0)break;ft.push(U)}else if(U<2048){if((H-=2)<0)break;ft.push(U>>6|192,U&63|128)}else if(U<65536){if((H-=3)<0)break;ft.push(U>>12|224,U>>6&63|128,U&63|128)}else if(U<1114112){if((H-=4)<0)break;ft.push(U>>18|240,U>>12&63|128,U>>6&63|128,U&63|128)}else throw new Error("Invalid code point")}return ft}function ht(F){const H=[];for(let U=0;U<F.length;++U)H.push(F.charCodeAt(U)&255);return H}function Et(F,H){let U,it,pt;const ft=[];for(let mt=0;mt<F.length&&!((H-=2)<0);++mt)U=F.charCodeAt(mt),it=U>>8,pt=U%256,ft.push(pt),ft.push(it);return ft}function gt(F){return O.toByteArray(st(F))}function bt(F,H,U,it){let pt;for(pt=0;pt<it&&!(pt+U>=H.length||pt>=F.length);++pt)H[pt+U]=F[pt];return pt}function Bt(F,H){return F instanceof H||F!=null&&F.constructor!=null&&F.constructor.name!=null&&F.constructor.name===H.name}function Mt(F){return F!==F}const It=function(){const F="0123456789abcdef",H=new Array(256);for(let U=0;U<16;++U){const it=U*16;for(let pt=0;pt<16;++pt)H[it+pt]=F[U]+F[pt]}return H}();function J(F){return typeof BigInt>"u"?tt:F}function tt(){throw new Error("BigInt not supported")}})(Va),window.Buffer=Va.Buffer,globalThis.Buffer=Va.Buffer;var ve=(K,O,L)=>new Promise((Y,ut)=>{var lt=y=>{try{_(L.next(y))}catch(x){ut(x)}},W=y=>{try{_(L.throw(y))}catch(x){ut(x)}},_=y=>y.done?Y(y.value):Promise.resolve(y.value).then(lt,W);_((L=L.apply(K,O)).next())});class _p extends sp{constructor(O,L){super(O??oc.create(),L)}getKnowledge(O,L){return ve(this,null,function*(){return this.get("/knowledge",{docId:O,name:L})})}postKnowledge(O){return ve(this,null,function*(){return this.post("/knowledge",O)})}getKnowledgeId(O){return ve(this,null,function*(){return this.get(`/knowledge/${O}`)})}patchKnowledgeId(O,L){return ve(this,null,function*(){return this.patch(`/knowledge/${O}`,L)})}delKnowledgeId(O){return ve(this,null,function*(){return this.delete(`/knowledge/${O}`)})}getKnowledgeIdFile(O){return ve(this,null,function*(){return this.get(`/knowledge/${O}/file`)})}getKnowledgeIdFileList(O,L){return ve(this,null,function*(){return this.listPaged(`/knowledge/${O}/file`,L)})}postKnowledgeIdFile(O,L){return ve(this,null,function*(){return this.post(`/knowledge/${O}/file`,L)})}getUploadTicket(O){return ve(this,null,function*(){return this.get("/upload/ticket",O)})}delKnowledgeIdFileFid(O,L){return ve(this,null,function*(){return this.delete(`/knowledge/${O}/file/${L}`)})}patchKnowledgeIdFileFid(O,L,Y){return ve(this,null,function*(){return this.patch(`/knowledge/${O}/file/${L}`,Y)})}listSessions(O,L){return ve(this,null,function*(){return this.get(`/application/${O}/sessionsa`,L)})}postSession(O,L){return ve(this,null,function*(){return this.post(`/application/${O}/sessions`,L)})}getSession(O,L){return ve(this,null,function*(){return this.get(`/application/${O}/sessions/${L}`)})}patchSessionsId(O,L,Y){return ve(this,null,function*(){return this.patch(`/application/${O}/sessions/${L}`,Y)})}delSessionsId(O,L){return ve(this,null,function*(){return this.delete(`/application/${O}/sessions/${L}`)})}getSessionKnowledgeFile(O,L,Y){return ve(this,null,function*(){return this.get(`/application/${O}session/${L}/file/${Y}`)})}postSessionKnowledgeFile(O,L,Y){return ve(this,null,function*(){return this.post(`/application/${O}session/${L}/file`,Y)})}postComments(O,L,Y){return ve(this,null,function*(){return this.post(`/application/${O}/sessions/${L}/comments`,Y)})}getChatHistorySessionId(O,L,Y){return ve(this,null,function*(){return this.get(`application/${O}/chatHistory/${L}`,Y)})}postChatHistorySessionId(O,L){return ve(this,null,function*(){return this.post(`/chatHistory/${O}`,L)})}getApplications(O){return ve(this,null,function*(){return this.get("/applications",O)})}postApplication(O){return ve(this,null,function*(){return this.post("/applications",O)})}getApplicationId(O){return ve(this,null,function*(){return this.get(`/applications/${O}`)})}patchApplicationId(O,L){return ve(this,null,function*(){return this.patch(`/applications/${O}`,L)})}delApplicationId(O){return ve(this,null,function*(){return this.delete(`/applications/${O}`)})}getApplicationIdSessions(O){return ve(this,null,function*(){return this.get(`/applications/${O}/session`)})}patchFileId(O,L){return ve(this,null,function*(){return this.patch(`/file/${O}`,L)})}getCvforceResource(O){return ve(this,null,function*(){return this.get("/cvforce/resource",O)})}postKnowledgeIdComposedFiles(O,L){return ve(this,null,function*(){return this.post(`/knowledge/${O}/composedFiles`,L)})}getTokensApplicationId(O,L){return ve(this,null,function*(){return this.get(`/tokens/${O}`,L)})}getTokens(O){return ve(this,null,function*(){return this.get("/tokens",O)})}uploadMinioFile(O,L){return ve(this,null,function*(){return new Promise((Y,ut)=>{const lt=new FileReader;lt.readAsArrayBuffer(L),lt.onload=W=>{cc.initMinio({endPoint:O.endpoints[0],useSSL:O.useSSL,accessKey:O.accessKey,secretKey:O.secretKey});const _=Buffer.from(W.target.result),y={"Content-Type":"application/octet-stream"};cc.putObjectBuffer(O.bucket,O.fileKeys[0],_,y,x=>{if(x)throw console.error(x),Error(x);Y(O.fileKeys[0])})}})})}uploadFile(O,L){return ve(this,null,function*(){const Y={files:[L.name],isv:"minio",knowledgeId:O};return this.getUploadTicket(Y).then(ut=>this.uploadMinioFile(ut.minio,L)).catch(ut=>{throw Error(ut)})})}uploadFiles(O,L){return ve(this,null,function*(){const Y={files:L.map(ut=>ut.name),isv:"minio",knowledgeId:O};return this.getUploadTicket(Y).then(ut=>Promise.all(L.map(lt=>this.uploadMinioFile(ut.minio,lt)))).catch(ut=>{throw Error(ut)})})}getAecModels(){return ve(this,null,function*(){return this.get("/aecModels")})}postTextFilter(O){return ve(this,null,function*(){return this.post("/textFilter",O)})}getTenantModel(){return ve(this,null,function*(){return this.get("/tenantModel")})}getPrompts(O,L){return ve(this,null,function*(){return this.get(`application/${O}/promptVariables`,L)})}postPrompt(O,L){return ve(this,null,function*(){return this.post(`application/${O}/promptVariables`,L)})}patchPromptId(O,L,Y){return ve(this,null,function*(){return this.patch(`application/${O}/promptVariables/${L}`,Y)})}delPromptId(O,L){return ve(this,null,function*(){return this.delete(`application/${O}/promptVariables/${L}`)})}getSessionPrompts(O){return ve(this,null,function*(){return this.get(`session/${O}/promptVariables`)})}patchSessionPromptId(O,L,Y){return ve(this,null,function*(){return this.patch(`session/${L}/promptVariables/${O}`,Y)})}getApplicationIdSessionIdPromptVariables(O,L){return ve(this,null,function*(){return this.get(`/application/${O}/session/${L}/promptVariables`)})}patchApplicationIdSessionpromptVariablesId(O,L,Y,ut){return ve(this,null,function*(){return this.patch(`/application/${O}/session/${L}/promptVariables/${Y}`,ut)})}getPresetApplication(O){return ve(this,null,function*(){return this.get("presetApplication",O)})}postKnowledgeConfig(O){return ve(this,null,function*(){return this.post("/knowledgeConfig",O)})}getKnowledgeConfig(O){return ve(this,null,function*(){return this.get(`/knowledgeConfig/${O}`)})}patchKnowledgeConfig(O,L){return ve(this,null,function*(){return this.patch(`/knowledgeConfig/${O}`,L)})}getKnowledgeIdFileId(O,L){return ve(this,null,function*(){return this.get(`/knowledge/${O}/file/${L}`)})}getKnowledgeIdFileIdData(O,L,Y){return ve(this,null,function*(){return this.listPaged(`/knowledge/${O}/file/${L}/data`,Y)})}postKnowledgeIdFileIdData(O,L,Y){return ve(this,null,function*(){return this.post(`/knowledge/${O}/file/${L}/data`,{data:Y})})}patchKnowledgeIdFileIdData(O,L,Y,ut){return ve(this,null,function*(){return this.patch(`/knowledge/${O}/file/${L}/data/${Y}`,{data:ut})})}delKnowledgeIdFileIdDataDid(O,L,Y){return ve(this,null,function*(){return this.delete(`/knowledge/${O}/file/${L}/data/${Y}`)})}getPresetKnowledge(O){return ve(this,null,function*(){return this.get("/presetKnowledge",O)})}patchSessionsIdContext(O){return ve(this,null,function*(){return this.patch(`/sessions/${O}/context`,{})})}postResourceToken(O){return ve(this,null,function*(){return this.post("/resourceToken",O)})}getApplicationIdSession(O){return ve(this,null,function*(){return this.get(`/application/${O}/session`)})}patchApplicationIdSessionsIdContext(O,L){return ve(this,null,function*(){return this.patch(`/application/${O}/sessions/${L}/context`,{})})}postApplicationIdSessions(O,L){return ve(this,null,function*(){return this.post(`/application/${O}/sessions`,L)})}getApplicationIdChatHistorySessionId(O,L){return ve(this,null,function*(){return this.get(`/application/${O}/chatHistory/${L}`)})}postApplicationIdChatHistorySessionIdComments(O,L,Y){return ve(this,null,function*(){return this.post(`/application/${O}/sessions/${L}/comments`,Y)})}getApplicationIdPrompts(O,L){return ve(this,null,function*(){return this.get(`/application/${O}/promptVariables`,L)})}postKnowledgeSourceFile(O,L,Y){return ve(this,null,function*(){return this.post(`/knowledge/${O}/sourceFile/${L}`,Y)})}getMetadata(O){return ve(this,null,function*(){return this.get("/metadata",O)})}postGeneques(O){return ve(this,null,function*(){return this.post("/geneques",O)})}getBaseModel(O){return ve(this,null,function*(){return this.get("/baseModelInfo",{serviceId:O})})}}var vr=(K=>(K[K.Robot=1]="Robot",K[K.User=2]="User",K[K.System=3]="System",K))(vr||{}),pc=(K=>(K[K.Idle=0]="Idle",K[K.Quoted=1]="Quoted",K))(pc||{}),bn=(K=>(K[K.Dialog=0]="Dialog",K[K.Text=1]="Text",K[K.Agent=2]="Agent",K[K.All=3]="All",K))(bn||{});function dc(K,O,L){const Y=x=>{var v;return O&&(sf(O)&&L(403,"aiotToken is timeout"),x.headers=(v=x.headers)!==null&&v!==void 0?v:{},x.headers=Object.assign(Object.assign({},x.headers),{Authorization:O?`Bearer ${O}`:""})),x};function ut(x,v=!0){const m=`${K}${x}`,S=oc.create({baseURL:m});return v&&S.interceptors.request.use(Y),S}const lt=(x,v)=>{x===401&&L(x,"aiotToken is invalid")},W=(x,v)=>{x!==10001&&x!==10215&&L(x,v)},_=ut("/data/v1");return new _p(_,{onHttpStatusError:lt,onAppStatusError:W})}const kr=Object.create(null);kr.open="0",kr.close="1",kr.ping="2",kr.pong="3",kr.message="4",kr.upgrade="5",kr.noop="6";const po=Object.create(null);Object.keys(kr).forEach(K=>{po[kr[K]]=K});const Ka={type:"error",data:"parser error"},mc=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",gc=typeof ArrayBuffer=="function",vc=K=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(K):K&&K.buffer instanceof ArrayBuffer,Ja=({type:K,data:O},L,Y)=>mc&&O instanceof Blob?L?Y(O):yc(O,Y):gc&&(O instanceof ArrayBuffer||vc(O))?L?Y(O):yc(new Blob([O]),Y):Y(kr[K]+(O||"")),yc=(K,O)=>{const L=new FileReader;return L.onload=function(){const Y=L.result.split(",")[1];O("b"+(Y||""))},L.readAsDataURL(K)};function bc(K){return K instanceof Uint8Array?K:K instanceof ArrayBuffer?new Uint8Array(K):new Uint8Array(K.buffer,K.byteOffset,K.byteLength)}let Ga;function Sp(K,O){if(mc&&K.data instanceof Blob)return K.data.arrayBuffer().then(bc).then(O);if(gc&&(K.data instanceof ArrayBuffer||vc(K.data)))return O(bc(K.data));Ja(K,!1,L=>{Ga||(Ga=new TextEncoder),O(Ga.encode(L))})}const wc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Cn=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let K=0;K<wc.length;K++)Cn[wc.charCodeAt(K)]=K;const Ep=K=>{let O=K.length*.75,L=K.length,Y,ut=0,lt,W,_,y;K[K.length-1]==="="&&(O--,K[K.length-2]==="="&&O--);const x=new ArrayBuffer(O),v=new Uint8Array(x);for(Y=0;Y<L;Y+=4)lt=Cn[K.charCodeAt(Y)],W=Cn[K.charCodeAt(Y+1)],_=Cn[K.charCodeAt(Y+2)],y=Cn[K.charCodeAt(Y+3)],v[ut++]=lt<<2|W>>4,v[ut++]=(W&15)<<4|_>>2,v[ut++]=(_&3)<<6|y&63;return x},kp=typeof ArrayBuffer=="function",Ya=(K,O)=>{if(typeof K!="string")return{type:"message",data:Mc(K,O)};const L=K.charAt(0);return L==="b"?{type:"message",data:Ip(K.substring(1),O)}:po[L]?K.length>1?{type:po[L],data:K.substring(1)}:{type:po[L]}:Ka},Ip=(K,O)=>{if(kp){const L=Ep(K);return Mc(L,O)}else return{base64:!0,data:K}},Mc=(K,O)=>{switch(O){case"blob":return K instanceof Blob?K:new Blob([K]);case"arraybuffer":default:return K instanceof ArrayBuffer?K:K.buffer}},xc=String.fromCharCode(30),Op=(K,O)=>{const L=K.length,Y=new Array(L);let ut=0;K.forEach((lt,W)=>{Ja(lt,!1,_=>{Y[W]=_,++ut===L&&O(Y.join(xc))})})},Ap=(K,O)=>{const L=K.split(xc),Y=[];for(let ut=0;ut<L.length;ut++){const lt=Ya(L[ut],O);if(Y.push(lt),lt.type==="error")break}return Y};function Tp(){return new TransformStream({transform(K,O){Sp(K,L=>{const Y=L.length;let ut;if(Y<126)ut=new Uint8Array(1),new DataView(ut.buffer).setUint8(0,Y);else if(Y<65536){ut=new Uint8Array(3);const lt=new DataView(ut.buffer);lt.setUint8(0,126),lt.setUint16(1,Y)}else{ut=new Uint8Array(9);const lt=new DataView(ut.buffer);lt.setUint8(0,127),lt.setBigUint64(1,BigInt(Y))}K.data&&typeof K.data!="string"&&(ut[0]|=128),O.enqueue(ut),O.enqueue(L)})}})}let Qa;function mo(K){return K.reduce((O,L)=>O+L.length,0)}function go(K,O){if(K[0].length===O)return K.shift();const L=new Uint8Array(O);let Y=0;for(let ut=0;ut<O;ut++)L[ut]=K[0][Y++],Y===K[0].length&&(K.shift(),Y=0);return K.length&&Y<K[0].length&&(K[0]=K[0].slice(Y)),L}function Bp(K,O){Qa||(Qa=new TextDecoder);const L=[];let Y=0,ut=-1,lt=!1;return new TransformStream({transform(W,_){for(L.push(W);;){if(Y===0){if(mo(L)<1)break;const y=go(L,1);lt=(y[0]&128)===128,ut=y[0]&127,ut<126?Y=3:ut===126?Y=1:Y=2}else if(Y===1){if(mo(L)<2)break;const y=go(L,2);ut=new DataView(y.buffer,y.byteOffset,y.length).getUint16(0),Y=3}else if(Y===2){if(mo(L)<8)break;const y=go(L,8),x=new DataView(y.buffer,y.byteOffset,y.length),v=x.getUint32(0);if(v>Math.pow(2,53-32)-1){_.enqueue(Ka);break}ut=v*Math.pow(2,32)+x.getUint32(4),Y=3}else{if(mo(L)<ut)break;const y=go(L,ut);_.enqueue(Ya(lt?y:Qa.decode(y),O)),Y=0}if(ut===0||ut>K){_.enqueue(Ka);break}}}})}const _c=4;function Bi(K){if(K)return jp(K)}function jp(K){for(var O in Bi.prototype)K[O]=Bi.prototype[O];return K}Bi.prototype.on=Bi.prototype.addEventListener=function(K,O){return this._callbacks=this._callbacks||{},(this._callbacks["$"+K]=this._callbacks["$"+K]||[]).push(O),this},Bi.prototype.once=function(K,O){function L(){this.off(K,L),O.apply(this,arguments)}return L.fn=O,this.on(K,L),this},Bi.prototype.off=Bi.prototype.removeListener=Bi.prototype.removeAllListeners=Bi.prototype.removeEventListener=function(K,O){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var L=this._callbacks["$"+K];if(!L)return this;if(arguments.length==1)return delete this._callbacks["$"+K],this;for(var Y,ut=0;ut<L.length;ut++)if(Y=L[ut],Y===O||Y.fn===O){L.splice(ut,1);break}return L.length===0&&delete this._callbacks["$"+K],this},Bi.prototype.emit=function(K){this._callbacks=this._callbacks||{};for(var O=new Array(arguments.length-1),L=this._callbacks["$"+K],Y=1;Y<arguments.length;Y++)O[Y-1]=arguments[Y];if(L){L=L.slice(0);for(var Y=0,ut=L.length;Y<ut;++Y)L[Y].apply(this,O)}return this},Bi.prototype.emitReserved=Bi.prototype.emit,Bi.prototype.listeners=function(K){return this._callbacks=this._callbacks||{},this._callbacks["$"+K]||[]},Bi.prototype.hasListeners=function(K){return!!this.listeners(K).length};const ur=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function Sc(K,...O){return O.reduce((L,Y)=>(K.hasOwnProperty(Y)&&(L[Y]=K[Y]),L),{})}const Rp=ur.setTimeout,Np=ur.clearTimeout;function vo(K,O){O.useNativeTimers?(K.setTimeoutFn=Rp.bind(ur),K.clearTimeoutFn=Np.bind(ur)):(K.setTimeoutFn=ur.setTimeout.bind(ur),K.clearTimeoutFn=ur.clearTimeout.bind(ur))}const Cp=1.33;function Pp(K){return typeof K=="string"?Lp(K):Math.ceil((K.byteLength||K.size)*Cp)}function Lp(K){let O=0,L=0;for(let Y=0,ut=K.length;Y<ut;Y++)O=K.charCodeAt(Y),O<128?L+=1:O<2048?L+=2:O<55296||O>=57344?L+=3:(Y++,L+=4);return L}function Dp(K){let O="";for(let L in K)K.hasOwnProperty(L)&&(O.length&&(O+="&"),O+=encodeURIComponent(L)+"="+encodeURIComponent(K[L]));return O}function Up(K){let O={},L=K.split("&");for(let Y=0,ut=L.length;Y<ut;Y++){let lt=L[Y].split("=");O[decodeURIComponent(lt[0])]=decodeURIComponent(lt[1])}return O}class qp extends Error{constructor(O,L,Y){super(O),this.description=L,this.context=Y,this.type="TransportError"}}class ts extends Bi{constructor(O){super(),this.writable=!1,vo(this,O),this.opts=O,this.query=O.query,this.socket=O.socket}onError(O,L,Y){return super.emitReserved("error",new qp(O,L,Y)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(O){this.readyState==="open"&&this.write(O)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(O){const L=Ya(O,this.socket.binaryType);this.onPacket(L)}onPacket(O){super.emitReserved("packet",O)}onClose(O){this.readyState="closed",super.emitReserved("close",O)}pause(O){}createUri(O,L={}){return O+"://"+this._hostname()+this._port()+this.opts.path+this._query(L)}_hostname(){const O=this.opts.hostname;return O.indexOf(":")===-1?O:"["+O+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(O){const L=Dp(O);return L.length?"?"+L:""}}const Ec="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),es=64,Fp={};let kc=0,yo=0,Ic;function Oc(K){let O="";do O=Ec[K%es]+O,K=Math.floor(K/es);while(K>0);return O}function Ac(){const K=Oc(+new Date);return K!==Ic?(kc=0,Ic=K):K+"."+Oc(kc++)}for(;yo<es;yo++)Fp[Ec[yo]]=yo;let Tc=!1;try{Tc=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const zp=Tc;function Bc(K){const O=K.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!O||zp))return new XMLHttpRequest}catch{}if(!O)try{return new ur[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function Lm(){}function $p(){}const Hp=function(){return new Bc({xdomain:!1}).responseType!=null}();class Wp extends ts{constructor(O){if(super(O),this.polling=!1,typeof location<"u"){const Y=location.protocol==="https:";let ut=location.port;ut||(ut=Y?"443":"80"),this.xd=typeof location<"u"&&O.hostname!==location.hostname||ut!==O.port}const L=O&&O.forceBase64;this.supportsBinary=Hp&&!L,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(O){this.readyState="pausing";const L=()=>{this.readyState="paused",O()};if(this.polling||!this.writable){let Y=0;this.polling&&(Y++,this.once("pollComplete",function(){--Y||L()})),this.writable||(Y++,this.once("drain",function(){--Y||L()}))}else L()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(O){const L=Y=>{if(this.readyState==="opening"&&Y.type==="open"&&this.onOpen(),Y.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(Y)};Ap(O,this.socket.binaryType).forEach(L),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const O=()=>{this.write([{type:"close"}])};this.readyState==="open"?O():this.once("open",O)}write(O){this.writable=!1,Op(O,L=>{this.doWrite(L,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const O=this.opts.secure?"https":"http",L=this.query||{};return this.opts.timestampRequests!==!1&&(L[this.opts.timestampParam]=Ac()),!this.supportsBinary&&!L.sid&&(L.b64=1),this.createUri(O,L)}request(O={}){return Object.assign(O,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Ir(this.uri(),O)}doWrite(O,L){const Y=this.request({method:"POST",data:O});Y.on("success",L),Y.on("error",(ut,lt)=>{this.onError("xhr post error",ut,lt)})}doPoll(){const O=this.request();O.on("data",this.onData.bind(this)),O.on("error",(L,Y)=>{this.onError("xhr poll error",L,Y)}),this.pollXhr=O}}class Ir extends Bi{constructor(O,L){super(),vo(this,L),this.opts=L,this.method=L.method||"GET",this.uri=O,this.data=L.data!==void 0?L.data:null,this.create()}create(){var O;const L=Sc(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");L.xdomain=!!this.opts.xd;const Y=this.xhr=new Bc(L);try{Y.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){Y.setDisableHeaderCheck&&Y.setDisableHeaderCheck(!0);for(let ut in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(ut)&&Y.setRequestHeader(ut,this.opts.extraHeaders[ut])}}catch{}if(this.method==="POST")try{Y.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{Y.setRequestHeader("Accept","*/*")}catch{}(O=this.opts.cookieJar)===null||O===void 0||O.addCookies(Y),"withCredentials"in Y&&(Y.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(Y.timeout=this.opts.requestTimeout),Y.onreadystatechange=()=>{var ut;Y.readyState===3&&((ut=this.opts.cookieJar)===null||ut===void 0||ut.parseCookies(Y)),Y.readyState===4&&(Y.status===200||Y.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof Y.status=="number"?Y.status:0)},0))},Y.send(this.data)}catch(ut){this.setTimeoutFn(()=>{this.onError(ut)},0);return}typeof document<"u"&&(this.index=Ir.requestsCount++,Ir.requests[this.index]=this)}onError(O){this.emitReserved("error",O,this.xhr),this.cleanup(!0)}cleanup(O){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=$p,O)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Ir.requests[this.index],this.xhr=null}}onLoad(){const O=this.xhr.responseText;O!==null&&(this.emitReserved("data",O),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(Ir.requestsCount=0,Ir.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",jc);else if(typeof addEventListener=="function"){const K="onpagehide"in ur?"pagehide":"unload";addEventListener(K,jc,!1)}}function jc(){for(let K in Ir.requests)Ir.requests.hasOwnProperty(K)&&Ir.requests[K].abort()}const is=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?O=>Promise.resolve().then(O):(O,L)=>L(O,0))(),bo=ur.WebSocket||ur.MozWebSocket,Rc=!0,Vp="arraybuffer",Nc=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Xp extends ts{constructor(O){super(O),this.supportsBinary=!O.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const O=this.uri(),L=this.opts.protocols,Y=Nc?{}:Sc(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(Y.headers=this.opts.extraHeaders);try{this.ws=Rc&&!Nc?L?new bo(O,L):new bo(O):new bo(O,L,Y)}catch(ut){return this.emitReserved("error",ut)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=O=>this.onClose({description:"websocket connection closed",context:O}),this.ws.onmessage=O=>this.onData(O.data),this.ws.onerror=O=>this.onError("websocket error",O)}write(O){this.writable=!1;for(let L=0;L<O.length;L++){const Y=O[L],ut=L===O.length-1;Ja(Y,this.supportsBinary,lt=>{const W={};try{Rc&&this.ws.send(lt)}catch{}ut&&is(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const O=this.opts.secure?"wss":"ws",L=this.query||{};return this.opts.timestampRequests&&(L[this.opts.timestampParam]=Ac()),this.supportsBinary||(L.b64=1),this.createUri(O,L)}check(){return!!bo}}class Zp extends ts{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(O=>{this.onError("webtransport error",O)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(O=>{const L=Bp(Number.MAX_SAFE_INTEGER,this.socket.binaryType),Y=O.readable.pipeThrough(L).getReader(),ut=Tp();ut.readable.pipeTo(O.writable),this.writer=ut.writable.getWriter();const lt=()=>{Y.read().then(({done:_,value:y})=>{_||(this.onPacket(y),lt())}).catch(_=>{})};lt();const W={type:"open"};this.query.sid&&(W.data=`{"sid":"${this.query.sid}"}`),this.writer.write(W).then(()=>this.onOpen())})}))}write(O){this.writable=!1;for(let L=0;L<O.length;L++){const Y=O[L],ut=L===O.length-1;this.writer.write(Y).then(()=>{ut&&is(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var O;(O=this.transport)===null||O===void 0||O.close()}}const Kp={websocket:Xp,webtransport:Zp,polling:Wp},Jp=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Gp=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function rs(K){if(K.length>2e3)throw"URI too long";const O=K,L=K.indexOf("["),Y=K.indexOf("]");L!=-1&&Y!=-1&&(K=K.substring(0,L)+K.substring(L,Y).replace(/:/g,";")+K.substring(Y,K.length));let ut=Jp.exec(K||""),lt={},W=14;for(;W--;)lt[Gp[W]]=ut[W]||"";return L!=-1&&Y!=-1&&(lt.source=O,lt.host=lt.host.substring(1,lt.host.length-1).replace(/;/g,":"),lt.authority=lt.authority.replace("[","").replace("]","").replace(/;/g,":"),lt.ipv6uri=!0),lt.pathNames=Yp(lt,lt.path),lt.queryKey=Qp(lt,lt.query),lt}function Yp(K,O){const L=/\/{2,9}/g,Y=O.replace(L,"/").split("/");return(O.slice(0,1)=="/"||O.length===0)&&Y.splice(0,1),O.slice(-1)=="/"&&Y.splice(Y.length-1,1),Y}function Qp(K,O){const L={};return O.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(Y,ut,lt){ut&&(L[ut]=lt)}),L}let Cc=class Rn extends Bi{constructor(O,L={}){super(),this.binaryType=Vp,this.writeBuffer=[],O&&typeof O=="object"&&(L=O,O=null),O?(O=rs(O),L.hostname=O.host,L.secure=O.protocol==="https"||O.protocol==="wss",L.port=O.port,O.query&&(L.query=O.query)):L.host&&(L.hostname=rs(L.host).host),vo(this,L),this.secure=L.secure!=null?L.secure:typeof location<"u"&&location.protocol==="https:",L.hostname&&!L.port&&(L.port=this.secure?"443":"80"),this.hostname=L.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=L.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=L.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},L),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Up(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(O){const L=Object.assign({},this.opts.query);L.EIO=_c,L.transport=O,this.id&&(L.sid=this.id);const Y=Object.assign({},this.opts,{query:L,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[O]);return new Kp[O](Y)}open(){let O;if(this.opts.rememberUpgrade&&Rn.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)O="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else O=this.transports[0];this.readyState="opening";try{O=this.createTransport(O)}catch{this.transports.shift(),this.open();return}O.open(),this.setTransport(O)}setTransport(O){this.transport&&this.transport.removeAllListeners(),this.transport=O,O.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",L=>this.onClose("transport close",L))}probe(O){let L=this.createTransport(O),Y=!1;Rn.priorWebsocketSuccess=!1;const ut=()=>{Y||(L.send([{type:"ping",data:"probe"}]),L.once("packet",m=>{if(!Y)if(m.type==="pong"&&m.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",L),!L)return;Rn.priorWebsocketSuccess=L.name==="websocket",this.transport.pause(()=>{Y||this.readyState!=="closed"&&(v(),this.setTransport(L),L.send([{type:"upgrade"}]),this.emitReserved("upgrade",L),L=null,this.upgrading=!1,this.flush())})}else{const S=new Error("probe error");S.transport=L.name,this.emitReserved("upgradeError",S)}}))};function lt(){Y||(Y=!0,v(),L.close(),L=null)}const W=m=>{const S=new Error("probe error: "+m);S.transport=L.name,lt(),this.emitReserved("upgradeError",S)};function _(){W("transport closed")}function y(){W("socket closed")}function x(m){L&&m.name!==L.name&<()}const v=()=>{L.removeListener("open",ut),L.removeListener("error",W),L.removeListener("close",_),this.off("close",y),this.off("upgrading",x)};L.once("open",ut),L.once("error",W),L.once("close",_),this.once("close",y),this.once("upgrading",x),this.upgrades.indexOf("webtransport")!==-1&&O!=="webtransport"?this.setTimeoutFn(()=>{Y||L.open()},200):L.open()}onOpen(){if(this.readyState="open",Rn.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let O=0;const L=this.upgrades.length;for(;O<L;O++)this.probe(this.upgrades[O])}}onPacket(O){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",O),this.emitReserved("heartbeat"),this.resetPingTimeout(),O.type){case"open":this.onHandshake(JSON.parse(O.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const L=new Error("server error");L.code=O.data,this.onError(L);break;case"message":this.emitReserved("data",O.data),this.emitReserved("message",O.data);break}}onHandshake(O){this.emitReserved("handshake",O),this.id=O.sid,this.transport.query.sid=O.sid,this.upgrades=this.filterUpgrades(O.upgrades),this.pingInterval=O.pingInterval,this.pingTimeout=O.pingTimeout,this.maxPayload=O.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const O=this.getWritablePackets();this.transport.send(O),this.prevBufferLen=O.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let L=1;for(let Y=0;Y<this.writeBuffer.length;Y++){const ut=this.writeBuffer[Y].data;if(ut&&(L+=Pp(ut)),Y>0&&L>this.maxPayload)return this.writeBuffer.slice(0,Y);L+=2}return this.writeBuffer}write(O,L,Y){return this.sendPacket("message",O,L,Y),this}send(O,L,Y){return this.sendPacket("message",O,L,Y),this}sendPacket(O,L,Y,ut){if(typeof L=="function"&&(ut=L,L=void 0),typeof Y=="function"&&(ut=Y,Y=null),this.readyState==="closing"||this.readyState==="closed")return;Y=Y||{},Y.compress=Y.compress!==!1;const lt={type:O,data:L,options:Y};this.emitReserved("packetCreate",lt),this.writeBuffer.push(lt),ut&&this.once("flush",ut),this.flush()}close(){const O=()=>{this.onClose("forced close"),this.transport.close()},L=()=>{this.off("upgrade",L),this.off("upgradeError",L),O()},Y=()=>{this.once("upgrade",L),this.once("upgradeError",L)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?Y():O()}):this.upgrading?Y():O()),this}onError(O){Rn.priorWebsocketSuccess=!1,this.emitReserved("error",O),this.onClose("transport error",O)}onClose(O,L){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",O,L),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(O){const L=[];let Y=0;const ut=O.length;for(;Y<ut;Y++)~this.transports.indexOf(O[Y])&&L.push(O[Y]);return L}};Cc.protocol=_c;function td(K,O="",L){let Y=K;L=L||typeof location<"u"&&location,K==null&&(K=L.protocol+"//"+L.host),typeof K=="string"&&(K.charAt(0)==="/"&&(K.charAt(1)==="/"?K=L.protocol+K:K=L.host+K),/^(https?|wss?):\/\//.test(K)||(typeof L<"u"?K=L.protocol+"//"+K:K="https://"+K),Y=rs(K)),Y.port||(/^(http|ws)$/.test(Y.protocol)?Y.port="80":/^(http|ws)s$/.test(Y.protocol)&&(Y.port="443")),Y.path=Y.path||"/";const lt=Y.host.indexOf(":")!==-1?"["+Y.host+"]":Y.host;return Y.id=Y.protocol+"://"+lt+":"+Y.port+O,Y.href=Y.protocol+"://"+lt+(L&&L.port===Y.port?"":":"+Y.port),Y}const ed=typeof ArrayBuffer=="function",id=K=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(K):K.buffer instanceof ArrayBuffer,Pc=Object.prototype.toString,rd=typeof Blob=="function"||typeof Blob<"u"&&Pc.call(Blob)==="[object BlobConstructor]",nd=typeof File=="function"||typeof File<"u"&&Pc.call(File)==="[object FileConstructor]";function ns(K){return ed&&(K instanceof ArrayBuffer||id(K))||rd&&K instanceof Blob||nd&&K instanceof File}function wo(K,O){if(!K||typeof K!="object")return!1;if(Array.isArray(K)){for(let L=0,Y=K.length;L<Y;L++)if(wo(K[L]))return!0;return!1}if(ns(K))return!0;if(K.toJSON&&typeof K.toJSON=="function"&&arguments.length===1)return wo(K.toJSON(),!0);for(const L in K)if(Object.prototype.hasOwnProperty.call(K,L)&&wo(K[L]))return!0;return!1}function od(K){const O=[],L=K.data,Y=K;return Y.data=os(L,O),Y.attachments=O.length,{packet:Y,buffers:O}}function os(K,O){if(!K)return K;if(ns(K)){const L={_placeholder:!0,num:O.length};return O.push(K),L}else if(Array.isArray(K)){const L=new Array(K.length);for(let Y=0;Y<K.length;Y++)L[Y]=os(K[Y],O);return L}else if(typeof K=="object"&&!(K instanceof Date)){const L={};for(const Y in K)Object.prototype.hasOwnProperty.call(K,Y)&&(L[Y]=os(K[Y],O));return L}return K}function ad(K,O){return K.data=as(K.data,O),delete K.attachments,K}function as(K,O){if(!K)return K;if(K&&K._placeholder===!0){if(typeof K.num=="number"&&K.num>=0&&K.num<O.length)return O[K.num];throw new Error("illegal attachments")}else if(Array.isArray(K))for(let L=0;L<K.length;L++)K[L]=as(K[L],O);else if(typeof K=="object")for(const L in K)Object.prototype.hasOwnProperty.call(K,L)&&(K[L]=as(K[L],O));return K}const sd=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],ud=5;var ti;(function(K){K[K.CONNECT=0]="CONNECT",K[K.DISCONNECT=1]="DISCONNECT",K[K.EVENT=2]="EVENT",K[K.ACK=3]="ACK",K[K.CONNECT_ERROR=4]="CONNECT_ERROR",K[K.BINARY_EVENT=5]="BINARY_EVENT",K[K.BINARY_ACK=6]="BINARY_ACK"})(ti||(ti={}));class cd{constructor(O){this.replacer=O}encode(O){return(O.type===ti.EVENT||O.type===ti.ACK)&&wo(O)?this.encodeAsBinary({type:O.type===ti.EVENT?ti.BINARY_EVENT:ti.BINARY_ACK,nsp:O.nsp,data:O.data,id:O.id}):[this.encodeAsString(O)]}encodeAsString(O){let L=""+O.type;return(O.type===ti.BINARY_EVENT||O.type===ti.BINARY_ACK)&&(L+=O.attachments+"-"),O.nsp&&O.nsp!=="/"&&(L+=O.nsp+","),O.id!=null&&(L+=O.id),O.data!=null&&(L+=JSON.stringify(O.data,this.replacer)),L}encodeAsBinary(O){const L=od(O),Y=this.encodeAsString(L.packet),ut=L.buffers;return ut.unshift(Y),ut}}function Lc(K){return Object.prototype.toString.call(K)==="[object Object]"}class ss extends Bi{constructor(O){super(),this.reviver=O}add(O){let L;if(typeof O=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");L=this.decodeString(O);const Y=L.type===ti.BINARY_EVENT;Y||L.type===ti.BINARY_ACK?(L.type=Y?ti.EVENT:ti.ACK,this.reconstructor=new ld(L),L.attachments===0&&super.emitReserved("decoded",L)):super.emitReserved("decoded",L)}else if(ns(O)||O.base64)if(this.reconstructor)L=this.reconstructor.takeBinaryData(O),L&&(this.reconstructor=null,super.emitReserved("decoded",L));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+O)}decodeString(O){let L=0;const Y={type:Number(O.charAt(0))};if(ti[Y.type]===void 0)throw new Error("unknown packet type "+Y.type);if(Y.type===ti.BINARY_EVENT||Y.type===ti.BINARY_ACK){const lt=L+1;for(;O.charAt(++L)!=="-"&&L!=O.length;);const W=O.substring(lt,L);if(W!=Number(W)||O.charAt(L)!=="-")throw new Error("Illegal attachments");Y.attachments=Number(W)}if(O.charAt(L+1)==="/"){const lt=L+1;for(;++L&&!(O.charAt(L)===","||L===O.length););Y.nsp=O.substring(lt,L)}else Y.nsp="/";const ut=O.charAt(L+1);if(ut!==""&&Number(ut)==ut){const lt=L+1;for(;++L;){const W=O.charAt(L);if(W==null||Number(W)!=W){--L;break}if(L===O.length)break}Y.id=Number(O.substring(lt,L+1))}if(O.charAt(++L)){const lt=this.tryParse(O.substr(L));if(ss.isPayloadValid(Y.type,lt))Y.data=lt;else throw new Error("invalid payload")}return Y}tryParse(O){try{return JSON.parse(O,this.reviver)}catch{return!1}}static isPayloadValid(O,L){switch(O){case ti.CONNECT:return Lc(L);case ti.DISCONNECT:return L===void 0;case ti.CONNECT_ERROR:return typeof L=="string"||Lc(L);case ti.EVENT:case ti.BINARY_EVENT:return Array.isArray(L)&&(typeof L[0]=="number"||typeof L[0]=="string"&&sd.indexOf(L[0])===-1);case ti.ACK:case ti.BINARY_ACK:return Array.isArray(L)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class ld{constructor(O){this.packet=O,this.buffers=[],this.reconPack=O}takeBinaryData(O){if(this.buffers.push(O),this.buffers.length===this.reconPack.attachments){const L=ad(this.reconPack,this.buffers);return this.finishedReconstruction(),L}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const hd=Object.freeze(Object.defineProperty({__proto__:null,Decoder:ss,Encoder:cd,get PacketType(){return ti},protocol:ud},Symbol.toStringTag,{value:"Module"}));function yr(K,O,L){return K.on(O,L),function(){K.off(O,L)}}const fd=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Dc extends Bi{constructor(O,L,Y){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=O,this.nsp=L,Y&&Y.auth&&(this.auth=Y.auth),this._opts=Object.assign({},Y),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const O=this.io;this.subs=[yr(O,"open",this.onopen.bind(this)),yr(O,"packet",this.onpacket.bind(this)),yr(O,"error",this.onerror.bind(this)),yr(O,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...O){return O.unshift("message"),this.emit.apply(this,O),this}emit(O,...L){if(fd.hasOwnProperty(O))throw new Error('"'+O.toString()+'" is a reserved event name');if(L.unshift(O),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(L),this;const Y={type:ti.EVENT,data:L};if(Y.options={},Y.options.compress=this.flags.compress!==!1,typeof L[L.length-1]=="function"){const W=this.ids++,_=L.pop();this._registerAckCallback(W,_),Y.id=W}const ut=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!ut||!this.connected)||(this.connected?(this.notifyOutgoingListeners(Y),this.packet(Y)):this.sendBuffer.push(Y)),this.flags={},this}_registerAckCallback(O,L){var Y;const ut=(Y=this.flags.timeout)!==null&&Y!==void 0?Y:this._opts.ackTimeout;if(ut===void 0){this.acks[O]=L;return}const lt=this.io.setTimeoutFn(()=>{delete this.acks[O];for(let _=0;_<this.sendBuffer.length;_++)this.sendBuffer[_].id===O&&this.sendBuffer.splice(_,1);L.call(this,new Error("operation has timed out"))},ut),W=(..._)=>{this.io.clearTimeoutFn(lt),L.apply(this,_)};W.withError=!0,this.acks[O]=W}emitWithAck(O,...L){return new Promise((Y,ut)=>{const lt=(W,_)=>W?ut(W):Y(_);lt.withError=!0,L.push(lt),this.emit(O,...L)})}_addToQueue(O){let L;typeof O[O.length-1]=="function"&&(L=O.pop());const Y={id:this._queueSeq++,tryCount:0,pending:!1,args:O,flags:Object.assign({fromQueue:!0},this.flags)};O.push((ut,...lt)=>Y!==this._queue[0]?void 0:(ut!==null?Y.tryCount>this._opts.retries&&(this._queue.shift(),L&&L(ut)):(this._queue.shift(),L&&L(null,...lt)),Y.pending=!1,this._drainQueue())),this._queue.push(Y),this._drainQueue()}_drainQueue(O=!1){if(!this.connected||this._queue.length===0)return;const L=this._queue[0];L.pending&&!O||(L.pending=!0,L.tryCount++,this.flags=L.flags,this.emit.apply(this,L.args))}packet(O){O.nsp=this.nsp,this.io._packet(O)}onopen(){typeof this.auth=="function"?this.auth(O=>{this._sendConnectPacket(O)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(O){this.packet({type:ti.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},O):O})}onerror(O){this.connected||this.emitReserved("connect_error",O)}onclose(O,L){this.connected=!1,delete this.id,this.emitReserved("disconnect",O,L),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(O=>{if(!this.sendBuffer.some(Y=>String(Y.id)===O)){const Y=this.acks[O];delete this.acks[O],Y.withError&&Y.call(this,new Error("socket has been disconnected"))}})}onpacket(O){if(O.nsp===this.nsp)switch(O.type){case ti.CONNECT:O.data&&O.data.sid?this.onconnect(O.data.sid,O.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case ti.EVENT:case ti.BINARY_EVENT:this.onevent(O);break;case ti.ACK:case ti.BINARY_ACK:this.onack(O);break;case ti.DISCONNECT:this.ondisconnect();break;case ti.CONNECT_ERROR:this.destroy();const Y=new Error(O.data.message);Y.data=O.data.data,this.emitReserved("connect_error",Y);break}}onevent(O){const L=O.data||[];O.id!=null&&L.push(this.ack(O.id)),this.connected?this.emitEvent(L):this.receiveBuffer.push(Object.freeze(L))}emitEvent(O){if(this._anyListeners&&this._anyListeners.length){const L=this._anyListeners.slice();for(const Y of L)Y.apply(this,O)}super.emit.apply(this,O),this._pid&&O.length&&typeof O[O.length-1]=="string"&&(this._lastOffset=O[O.length-1])}ack(O){const L=this;let Y=!1;return function(...ut){Y||(Y=!0,L.packet({type:ti.ACK,id:O,data:ut}))}}onack(O){const L=this.acks[O.id];typeof L=="function"&&(delete this.acks[O.id],L.withError&&O.data.unshift(null),L.apply(this,O.data))}onconnect(O,L){this.id=O,this.recovered=L&&this._pid===L,this._pid=L,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(O=>this.emitEvent(O)),this.receiveBuffer=[],this.sendBuffer.forEach(O=>{this.notifyOutgoingListeners(O),this.packet(O)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(O=>O()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:ti.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(O){return this.flags.compress=O,this}get volatile(){return this.flags.volatile=!0,this}timeout(O){return this.flags.timeout=O,this}onAny(O){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(O),this}prependAny(O){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(O),this}offAny(O){if(!this._anyListeners)return this;if(O){const L=this._anyListeners;for(let Y=0;Y<L.length;Y++)if(O===L[Y])return L.splice(Y,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(O){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(O),this}prependAnyOutgoing(O){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(O),this}offAnyOutgoing(O){if(!this._anyOutgoingListeners)return this;if(O){const L=this._anyOutgoingListeners;for(let Y=0;Y<L.length;Y++)if(O===L[Y])return L.splice(Y,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(O){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const L=this._anyOutgoingListeners.slice();for(const Y of L)Y.apply(this,O.data)}}}function wn(K){K=K||{},this.ms=K.min||100,this.max=K.max||1e4,this.factor=K.factor||2,this.jitter=K.jitter>0&&K.jitter<=1?K.jitter:0,this.attempts=0}wn.prototype.duration=function(){var K=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var O=Math.random(),L=Math.floor(O*this.jitter*K);K=Math.floor(O*10)&1?K+L:K-L}return Math.min(K,this.max)|0},wn.prototype.reset=function(){this.attempts=0},wn.prototype.setMin=function(K){this.ms=K},wn.prototype.setMax=function(K){this.max=K},wn.prototype.setJitter=function(K){this.jitter=K};class us extends Bi{constructor(O,L){var Y;super(),this.nsps={},this.subs=[],O&&typeof O=="object"&&(L=O,O=void 0),L=L||{},L.path=L.path||"/socket.io",this.opts=L,vo(this,L),this.reconnection(L.reconnection!==!1),this.reconnectionAttempts(L.reconnectionAttempts||1/0),this.reconnectionDelay(L.reconnectionDelay||1e3),this.reconnectionDelayMax(L.reconnectionDelayMax||5e3),this.randomizationFactor((Y=L.randomizationFactor)!==null&&Y!==void 0?Y:.5),this.backoff=new wn({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(L.timeout==null?2e4:L.timeout),this._readyState="closed",this.uri=O;const ut=L.parser||hd;this.encoder=new ut.Encoder,this.decoder=new ut.Decoder,this._autoConnect=L.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(O){return arguments.length?(this._reconnection=!!O,this):this._reconnection}reconnectionAttempts(O){return O===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=O,this)}reconnectionDelay(O){var L;return O===void 0?this._reconnectionDelay:(this._reconnectionDelay=O,(L=this.backoff)===null||L===void 0||L.setMin(O),this)}randomizationFactor(O){var L;return O===void 0?this._randomizationFactor:(this._randomizationFactor=O,(L=this.backoff)===null||L===void 0||L.setJitter(O),this)}reconnectionDelayMax(O){var L;return O===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=O,(L=this.backoff)===null||L===void 0||L.setMax(O),this)}timeout(O){return arguments.length?(this._timeout=O,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(O){if(~this._readyState.indexOf("open"))return this;this.engine=new Cc(this.uri,this.opts);const L=this.engine,Y=this;this._readyState="opening",this.skipReconnect=!1;const ut=yr(L,"open",function(){Y.onopen(),O&&O()}),lt=_=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",_),O?O(_):this.maybeReconnectOnOpen()},W=yr(L,"error",lt);if(this._timeout!==!1){const _=this._timeout,y=this.setTimeoutFn(()=>{ut(),lt(new Error("timeout")),L.close()},_);this.opts.autoUnref&&y.unref(),this.subs.push(()=>{this.clearTimeoutFn(y)})}return this.subs.push(ut),this.subs.push(W),this}connect(O){return this.open(O)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const O=this.engine;this.subs.push(yr(O,"ping",this.onping.bind(this)),yr(O,"data",this.ondata.bind(this)),yr(O,"error",this.onerror.bind(this)),yr(O,"close",this.onclose.bind(this)),yr(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(O){try{this.decoder.add(O)}catch(L){this.onclose("parse error",L)}}ondecoded(O){is(()=>{this.emitReserved("packet",O)},this.setTimeoutFn)}onerror(O){this.emitReserved("error",O)}socket(O,L){let Y=this.nsps[O];return Y?this._autoConnect&&!Y.active&&Y.connect():(Y=new Dc(this,O,L),this.nsps[O]=Y),Y}_destroy(O){const L=Object.keys(this.nsps);for(const Y of L)if(this.nsps[Y].active)return;this._close()}_packet(O){const L=this.encoder.encode(O);for(let Y=0;Y<L.length;Y++)this.engine.write(L[Y],O.options)}cleanup(){this.subs.forEach(O=>O()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(O,L){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",O,L),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const O=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const L=this.backoff.duration();this._reconnecting=!0;const Y=this.setTimeoutFn(()=>{O.skipReconnect||(this.emitReserved("reconnect_attempt",O.backoff.attempts),!O.skipReconnect&&O.open(ut=>{ut?(O._reconnecting=!1,O.reconnect(),this.emitReserved("reconnect_error",ut)):O.onreconnect()}))},L);this.opts.autoUnref&&Y.unref(),this.subs.push(()=>{this.clearTimeoutFn(Y)})}}onreconnect(){const O=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",O)}}const Pn={};function Mo(K,O){typeof K=="object"&&(O=K,K=void 0),O=O||{};const L=td(K,O.path||"/socket.io"),Y=L.source,ut=L.id,lt=L.path,W=Pn[ut]&< in Pn[ut].nsps,_=O.forceNew||O["force new connection"]||O.multiplex===!1||W;let y;return _?y=new us(Y,O):(Pn[ut]||(Pn[ut]=new us(Y,O)),y=Pn[ut]),L.query&&!O.query&&(O.query=L.queryKey),y.socket(L.path,O)}Object.assign(Mo,{Manager:us,Socket:Dc,io:Mo,connect:Mo});var nn;(function(K){K[K.Normal=0]="Normal",K[K.Debug=1]="Debug"})(nn||(nn={}));let xo;const pd=new Uint8Array(16);function dd(){if(!xo&&(xo=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!xo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return xo(pd)}const Li=[];for(let K=0;K<256;++K)Li.push((K+256).toString(16).slice(1));function md(K,O=0){return Li[K[O+0]]+Li[K[O+1]]+Li[K[O+2]]+Li[K[O+3]]+"-"+Li[K[O+4]]+Li[K[O+5]]+"-"+Li[K[O+6]]+Li[K[O+7]]+"-"+Li[K[O+8]]+Li[K[O+9]]+"-"+Li[K[O+10]]+Li[K[O+11]]+Li[K[O+12]]+Li[K[O+13]]+Li[K[O+14]]+Li[K[O+15]]}const Uc={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function qc(K,O,L){if(Uc.randomUUID&&!O&&!K)return Uc.randomUUID();K=K||{};const Y=K.random||(K.rng||dd)();if(Y[6]=Y[6]&15|64,Y[8]=Y[8]&63|128,O){L=L||0;for(let ut=0;ut<16;++ut)O[L+ut]=Y[ut];return O}return md(Y)}const on=new Ci("[EventBus] ");class Fc{constructor(O=!1){Object.defineProperty(this,"eventListenerMap",{enumerable:!0,configurable:!0,writable:!0,value:{}}),O&&on.disable()}getEventListenerMap(){return Object.assign({},this.eventListenerMap)}on(O,L,Y=!1){this.eventListenerMap[O]||(this.eventListenerMap[O]=[]),Y?this.eventListenerMap[O].push({fn:L,once:!0}):this.eventListenerMap[O].push(L),on.log(`add event ${O} listener ${Y?", call once":""}`)}once(O,L){this.on(O,L,!0)}off(O,L){if(this.eventListenerMap[O]){const Y=this.eventListenerMap[O].findIndex(ut=>{if(typeof ut=="function"&&L===ut)return!0;if(ut=ut,ut.fn===L)return!0});Y<0?on.log(`event ${O} listener ${L.name} is not found`):(this.eventListenerMap[O].splice(Y,1),on.log(`remove event ${O} listener`))}else on.log(`event ${O} listeners is empty`)}emit(O,L){if(!this.eventListenerMap[O]){on.log(`event ${O} listeners is empty`);return}const Y=[];for(let ut=0;ut<this.eventListenerMap[O].length;ut++){const lt=this.eventListenerMap[O][ut];typeof lt=="function"?lt(L):Y.push(lt)}Y.forEach(ut=>{ut&&(ut.fn(L),this.off(O,ut.fn))}),on.log(`event ${O} is fired, has ${this.eventListenerMap[O].length} listeners`)}removeAllListeners(){this.eventListenerMap={}}}var _o;(function(K){K[K.enable=1]="enable",K[K.disable=2]="disable"})(_o||(_o={}));const zi=new Ci("[Session] ");var $i;(function(K){K.DataRequestFailed="data request error",K.SocketConnectionFailed="socket error",K.IdUndefined="session id is not defined",K.SendingEmptyContent="failed at sending empty content",K.Frozen="session is frozen",K.UserModeError="failed at setting socket user mode",K.Inactive="session is inactive"})($i||($i={})),$i.IdUndefined+"",$i.SendingEmptyContent+"",$i.Frozen+"";class cs{constructor(O,L="",Y,ut,lt,W){Object.defineProperty(this,"token",{enumerable:!0,configurable:!0,writable:!0,value:O}),Object.defineProperty(this,"lazyload",{enumerable:!0,configurable:!0,writable:!0,value:ut}),Object.defineProperty(this,"_id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_frozen",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"inactivating",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_ready",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"event",{enumerable:!0,configurable:!0,writable:!0,value:new Fc}),Object.defineProperty(this,"_applicationId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_application",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"client",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"messages",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_loadingMessages",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_loadingMessagesSize",{enumerable:!0,configurable:!0,writable:!0,value:10}),Object.defineProperty(this,"cvforceApi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"socket",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_promptVariables",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"active",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"activing",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_stopAnswer",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dataLoading",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dataLoaded",{enumerable:!0,configurable:!0,writable:!0,value:!1}),this.client=W||null,this._applicationId=oo(O).rid||Mi.configuration.applicationId,this.cvforceApi=this.getService(),lt&&(this._application=lt),this.event.emit("init",{applicationId:this._applicationId,sessionId:L}),this.loadApplicationInfo().then(()=>{var _;if(L)this._id=L,this.event.emit("data:loading"),Y?(this.data=Y,ut||(this._dataLoading=!0,this.cvforceApi.getSession(this.applicationId,L).then(y=>Le(this,void 0,void 0,function*(){this.data=y,this._promptVariables=yield this.cvforceApi.getApplicationIdSessionIdPromptVariables(this.applicationId,L)})).then(()=>Le(this,void 0,void 0,function*(){this.messages=[],yield this.fetchMessages(),this.event.emit("data:loaded",this.data),this.event.emit("data:updated",this.data)})))):(this._dataLoading=!0,this.cvforceApi.getSession(this.applicationId,L).then(y=>Le(this,void 0,void 0,function*(){this.data=y,this._promptVariables=yield this.cvforceApi.getApplicationIdSessionIdPromptVariables(this.applicationId,L)})).then(()=>Le(this,void 0,void 0,function*(){this.messages=[],yield this.fetchMessages(),this.event.emit("data:loaded",this.data),this.event.emit("data:updated",this.data),this._dataLoading=!1,this._dataLoaded=!0})));else{const y=(Y==null?void 0:Y.name)||"新建会话";this.event.emit("data:creating",{applicationId:this._applicationId,name:y}),this.event.emit("data:loading"),this.cvforceApi.postSession(this.applicationId,{name:y,netOpen:Y==null?void 0:Y.netOpen,knowledgeList:(_=Y==null?void 0:Y.knowledges)===null||_===void 0?void 0:_.map(x=>x.id),applicationId:this._applicationId}).then(x=>Le(this,void 0,void 0,function*(){this._id=x.id,this.data=x,this._promptVariables=yield this.cvforceApi.getApplicationIdSessionIdPromptVariables(this.applicationId,this._id),yield(()=>{if(Y!=null&&Y.knowledges)return this.setKnowledges((Y==null?void 0:Y.knowledges)||void 0)})(),yield(()=>{if(Y!=null&&Y.promptVariables){const v=this._promptVariables.map(m=>{var S,a;const p=((a=(S=Y.promptVariables)===null||S===void 0?void 0:S.find(c=>c.key===m.key))===null||a===void 0?void 0:a.value)||"";return Object.assign(Object.assign({},m),{value:p})}).sort((m,S)=>m.key.localeCompare(S.key));return this.setPromptVariables(v||[])}else return})(),this.event.emit("data:created",this.data),this.event.emit("data:loaded",this.data),this.event.emit("data:updated",this.data),this._ready=!0,this.event.emit("ready")}))}})}fetchData(){return Le(this,void 0,void 0,function*(){if(!this.data)throw Error("session data is not loaded");return yield this.cvforceApi.getSession(this.applicationId,this.data.id).then(O=>Le(this,void 0,void 0,function*(){return this.data=O,this.event.emit("data:updated",this.data),O}))})}get id(){var O;return this._id||((O=this.data)===null||O===void 0?void 0:O.id)||""}get applicationId(){return this._applicationId}get application(){return this._application}loadApplicationInfo(){if(this._application)return Promise.resolve(this._application);if(this._applicationId&&!this._application)return this.event.emit("application:data:loading"),this.cvforceApi.getApplicationId(this._applicationId).then(O=>(this._application=O,this.event.emit("application:data:loaded",O),O));throw Error("application id is not defined")}get ready(){return this._ready}get frozen(){return this._frozen}set frozen(O){O===!1&&this.inactivating&&this.socket&&(this.socket.disconnect(),this.socket=null,this.event.emit("inactivated")),this._frozen=O,this.event.emit("frozen",O)}get knowledges(){if(!this.data)throw Error("session data is not loaded");return this.data.knowledges||void 0}setKnowledges(O){return Le(this,void 0,void 0,function*(){var L;if(((L=this._application)===null||L===void 0?void 0:L.type)===bn.Agent){console.warn("Agent Application Sessions are disabled to setKnowledges.");return}if(!this.data)throw Error("session data is not loaded");return yield this.cvforceApi.patchSessionsId(this._applicationId,this.data.id,{knowledges:O}),this.data.knowledges=O,this.event.emit("data:updated",this.data),this.event.emit("data:updated:knowledges",{knowledges:O}),O})}validateConfigs(){if(!this._id)throw Error("session id is not defined");if(!this.data)throw Error("session data is not loaded");const O=this.promptVariables.filter(L=>L.status===pc.Quoted).filter(L=>!L.value);if(O.length)throw Error(`在提示词中被引用的变量值不能为空, 请检查以下变量: ${O.map(L=>L.key).join(", ")}`)}get promptVariables(){return this._promptVariables.filter(O=>O.key!=="query")}setPromptVariables(O){return Le(this,void 0,void 0,function*(){var L;if(((L=this._application)===null||L===void 0?void 0:L.type)===bn.Agent){console.warn("Agent Application Sessions are disabled to setPromptVariables.");return}const Y=this._promptVariables.map(ut=>{var lt;const W=((lt=O==null?void 0:O.find(_=>_.key===ut.key))===null||lt===void 0?void 0:lt.value)||ut.value;return Object.assign(Object.assign({},ut),{value:W})}).sort((ut,lt)=>ut.key.localeCompare(lt.key));if(yield Promise.all(Y.filter(ut=>ut.key!=="query").map(ut=>{if(!this.data)throw Error("session data is not loaded");if(!(!ut.id||!ut.key))return this.cvforceApi.patchApplicationIdSessionpromptVariablesId(this._applicationId,this.data.id,ut.id,{value:ut.value}).catch(console.error)})),!this.data)throw Error("session data is not loaded");return this._promptVariables=yield this.cvforceApi.getApplicationIdSessionIdPromptVariables(this.applicationId,this.data.id),this.event.emit("data:updated",this.data),this.event.emit("data:updated:promptVariables",{promptVariables:this._promptVariables}),this._promptVariables})}get netOpen(){if(!this.data)throw Error("session data is not loaded");return this.data.netOpen||!1}setNetOpen(O){return Le(this,void 0,void 0,function*(){var L,Y,ut;if(zi.log("setNetOpen:",O),zi.log("application arrange setting value: ",(L=this._application)===null||L===void 0?void 0:L.arrange[0].enableNetOpen),((Y=this._application)===null||Y===void 0?void 0:Y.type)===bn.Agent){console.warn("Agent Application Sessions are disabled to setNetOpen.");return}if(((ut=this._application)===null||ut===void 0?void 0:ut.arrange[0].enableNetOpen)===!1){console.warn("This Application is disabled to change netOpen.");return}if(!this.data)throw Error("session data is not loaded");return yield this.cvforceApi.patchSessionsId(this._applicationId,this.data.id,{netOpen:O?_o.enable:_o.disable}),this.data.netOpen=O,zi.log("data:updated",this.data),this.event.emit("data:updated",this.data),this.event.emit("data:updated:netOpen",{netOpen:O}),O})}getService(){return dc(Mi.configuration.apiRoot,this.token,(O,L)=>{const Y=new Error($i.DataRequestFailed);zi.error(Y),this.event.emit("error",Y)})}addEventListener(O,L,Y=!1){if(typeof L!="function")throw Error("event listener is not a function");if(Y){this.event.once(O,L);return}this.event.on(O,L)}removeEventListener(O,L){this.event.off(O,L)}fetchMessages(){return Le(this,arguments,void 0,function*(O={}){var L,Y;const ut={pageSize:this._loadingMessagesSize};if(this._id){O=Object.assign(Object.assign({},ut),O),this.event.emit("history:loading"),zi.log("history:loading"),(O.endTime||O.startTime)&&(this.event.emit("history:moreloading",O),zi.log("history:moreloading",O)),this._loadingMessages=!0;const lt=yield this.cvforceApi.getChatHistorySessionId(this._applicationId,this._id,O),W=lt.map((y,x)=>{var v,m;let S=[],a;return typeof((v=y.agentHistoryList)===null||v===void 0?void 0:v.agentList)=="string"&&(S=JSON.parse(y.agentHistoryList.agentList).reduce((c,l)=>(c[l.data.step-1]||(c[l.data.step-1]=[]),c[l.data.step-1].push(l),c),[])),x===lt.length-1&&(a=(m=this.data)===null||m===void 0?void 0:m.lastRelatedQuestion),Object.assign(Object.assign({},y),{actions:S,relatedQuesion:a})});if(!O.endTime&&!O.startTime){const y=this.messages[this.messages.length-1];y&&!y.relatedQuesion&&(y.relatedQuesion=(L=this.data)===null||L===void 0?void 0:L.lastRelatedQuestion),this.messages=[...W,...this.messages]}else if(O.endTime&&!O.startTime){const y=this.messages.findIndex(x=>x.ts===O.endTime);this.messages.splice(0,y+1),this.messages=[...W,...this.messages]}else if(!O.endTime&&O.startTime){const y=this.messages.findLastIndex(x=>x.ts===O.endTime);this.messages.splice(y,this.messages.length-y-1),this.messages=[...this.messages,...W]}else{const y=this.messages.findIndex(v=>v.ts===O.endTime),x=this.messages.findLastIndex(v=>v.ts===O.endTime);this.messages.splice(y,x-y+1,...W)}const _=this.messages[this.messages.length-1];return _&&!_.relatedQuesion&&(_.relatedQuesion=(Y=this.data)===null||Y===void 0?void 0:Y.lastRelatedQuestion),this.event.emit("history:moreloaded",W),zi.log("history:loaded",this.messages),this.event.emit("history:loaded",this.messages),this._loadingMessages=!1,W}else{const lt=new Error($i.IdUndefined);return zi.error(lt),this.event.emit("error",lt),!1}})}rename(O){return Le(this,void 0,void 0,function*(){if(!this._id)throw Error("session is not created yet");if(O.trim()==="")throw Error("name is empty");return this.data=yield this.cvforceApi.patchSessionsId(this.applicationId,this._id,{name:O}),zi.log("data:updated",this.messages),this.event.emit("data:updated",this.data),this.event.emit("data:updated:name",{name:O}),!0})}pushMessage(O){return Le(this,void 0,void 0,function*(){this.messages.push(O),zi.log("history:add",O),this.event.emit("history:add",O),this.event.emit("message:new",O),this.event.emit("message:updated",O)})}reloadSessionInfo(){if(!this._id)throw Error("session is not created yet");return this._dataLoading=!0,this.cvforceApi.getSession(this.applicationId,this._id).then(O=>Le(this,void 0,void 0,function*(){if(this.data=O,!this._id)throw Error("session is not created yet");return this._promptVariables=yield this.cvforceApi.getApplicationIdSessionIdPromptVariables(this.applicationId,this._id),zi.log("data:updated",this.data),this.event.emit("data:updated",this.data),this.data})).then(()=>Le(this,void 0,void 0,function*(){return this.messages=[],yield this.fetchMessages(),this._dataLoading=!1,this._dataLoaded=!0,this.event.emit("data:loaded",this.data),this}))}reload(){return Le(this,void 0,void 0,function*(){return yield this.reloadSessionInfo(),this.socket?(this.inactivate(!0),this.activate()):(this.inactivate(!0),this.activate())})}delete(){return Le(this,void 0,void 0,function*(){if(!this.id){const O=new Error($i.IdUndefined);return zi.error(O),this.event.emit("error",O),!1}return this.event.emit("data:deleting"),yield this.cvforceApi.delSessionsId(this.applicationId,this.id),this.event.emit("data:deleted"),this.destroy()})}activate(){return Le(this,void 0,void 0,function*(){if(this.activing)return new Promise(L=>{this.addEventListener("activated",()=>{L(!0)},!0)});if(!this._id)throw Error("session is not avalible. id is undefined");this.activing=!0;const O=this._id;return this._dataLoading=!0,this._dataLoaded=!1,this.data=yield this.cvforceApi.getSession(this.applicationId,O).then(L=>Le(this,void 0,void 0,function*(){return this._promptVariables=yield this.cvforceApi.getApplicationIdSessionIdPromptVariables(this.applicationId,O),L})),this.messages.length||(this.messages=[],yield this.fetchMessages()),this.event.emit("data:loaded",this.data),this.event.emit("data:updated",this.data),this._dataLoaded=!0,this._dataLoading=!1,this.inactivating=!1,this.frozen=!0,yield this.prepareConnection(),this.event.emit("activated",this.socket),this.active=!0,this.activing=!1,this})}inactivate(O=!1){return this.socket?this._frozen?(O||(this.inactivating=!0),this.activing=!1,!0):(this.socket.close(),this.socket=null,this.event.emit("inactivated"),this.active=!1,this.activing=!1,!0):(this.activing=!1,!0)}get dataLoaded(){return this._dataLoaded}get messagesLoading(){return this._loadingMessages}send(O){return Le(this,arguments,void 0,function*(L,Y={stream:!1}){var ut;try{this.validateConfigs()}catch(a){console.error(a)}const{stream:lt=!1,referenceFirst:W=!1}=Y,_=L.uuid||qc(),y=((ut=L.text)===null||ut===void 0?void 0:ut.trim())||"",x=L.fileIds;if(!y&&!(x!=null&&x.length)){const a=new Error($i.SendingEmptyContent);return zi.error(a),this.event.emit("error",a),!1}if(!this._id){const a=new Error($i.IdUndefined);return zi.error(a),this.event.emit("error",a),!1}if(this.frozen){const a=new Error($i.Frozen);return zi.error(a),this.event.emit("error",a),!1}this.frozen=!0,this._stopAnswer=!1;const v={sessionId:this.id,role:2,content:y,messageId:_,reference:[],searchReference:[],messageTime:""},m={content:y,stream:lt,requestId:_,fileIds:x,referenceFirst:W};this.pushMessage(v),this.event.emit("question:content",y);const S=a=>Le(this,void 0,void 0,function*(){if(a.role!==vr.Robot)return;switch(this.removeEventListener("answer:finish",S),this._id&&a.content&&a.index&&a.index<0&&(this.data=yield this.cvforceApi.patchSessionsId(this.applicationId,this._id,{finialMessage:a.content}),this.event.emit("data:updated",this.data),this.event.emit("data:updated:finialMessage",{finialMessage:a.content})),yield this.fillMessageReference(a),a.code){case 11915:a.content="请您换个问题问我吧~",a.index=-1,a.isSensitive=!0,a.isLoading=!1,a.sessionId=this._id||"",this.event.emit("message:error",a);break;case 200:a.index=-1,a.isLoading=!1;break;default:a.content=a.message||"未知错误",a.isLoading=!1,a.index=-1,this.event.emit("message:error",a)}this.getRelatedQuesion(a),a.isLoading=!1;let p=this.messages[this.messages.length-1];if(p&&p.role===vr.Robot){const c=Object.assign(Object.assign({},p),a);this.messages[this.messages.length-1]=c,this.event.emit("message:updated",c)}else this.pushMessage(a);this.frozen=!1});return this.addEventListener("answer:finish",S),this.sendQuestion(m,Object.assign(Object.assign({},Y),{stream:lt,referenceFirst:W})),v})}getRelatedQuesion(O){return Le(this,void 0,void 0,function*(){var L,Y;if(!O.content||O.isSensitive||O.code!==200||!(!((L=this.application)===null||L===void 0)&&L.arrange[0].recommendQuestionOpen))return O;this.event.emit("message:relatedQuesion:loading",O);const ut=yield this.cvforceApi.postGeneques({content:O.content}).catch(_=>null);if(!ut){const _=[],y=Object.assign(Object.assign({},O),{relatedQuesion:_,index:-3,isLoading:!1});return this.event.emit("message:relatedQuesion:loaded",{relatedQuesion:_}),y}const lt=(Y=ut.content)===null||Y===void 0?void 0:Y.split("*").map(uf).map(cf).filter(_=>!!_);O.relatedQuesion=lt,O.index=-3,O.isLoading=!1;const W=Object.assign(Object.assign({},O),{relatedQuesion:lt,index:-3,isLoading:!1});return this.event.emit("message:relatedQuesion:loaded",W),this.event.emit("message:updated",W),this._id&&this.cvforceApi.patchSessionsId(this._applicationId,this._id,{lastRelatedQuestion:lt}),W})}fillMessageReference(O){return Le(this,void 0,void 0,function*(){const L=yield Promise.all(O.reference.map(Y=>this.cvforceApi.getKnowledgeIdFileId(Y.knowledgeId,Y.docId)));return O.reference=O.reference.map((Y,ut)=>Object.assign(Object.assign({},Y),L[ut])),this.event.emit("message:updated",O),O})}answerAgain(){return Le(this,arguments,void 0,function*(O={stream:!1}){const L=this.messages[this.messages.length-1];if(!L)throw Error("message list is empty");this.frozen=!0,this._stopAnswer=!1;const{stream:Y=!1}=O;let ut;L.role!==vr.User&&(ut=O.oldMessageId||L.messageId,this.messages.splice(this.messages.length-1,1),this.event.emit("message:remove",L),this.event.emit("history:remove",L));const lt=this.messages[this.messages.length-1],W={content:lt.content,fileIds:lt.fileIds,requestId:lt.messageId,stream:Y,oldMessageId:ut},_=y=>Le(this,void 0,void 0,function*(){if(y.role===vr.Robot&&y.index===-1){switch(this._id&&y.content&&y.index&&y.index<0&&(this.data=yield this.cvforceApi.patchSessionsId(this.applicationId,this._id,{finialMessage:y.content}),this.event.emit("data:updated",this.data),this.event.emit("data:updated:finialMessage",{finialMessage:y.content})),yield this.fillMessageReference(y),y.code){case 11915:y.content="请您换个问题问我吧~",y.index=-1,y.isSensitive=!0,y.isLoading=!1,y.sessionId=this._id||"",this.event.emit("message:error",y);break;case 200:y.index=-1,y.isLoading=!1;break;default:y.content=y.message||"未知错误",y.isLoading=!1,y.index=-1,this.event.emit("message:error",y)}const x=yield this.getRelatedQuesion(y);this.event.emit("message:updated",x),this.removeEventListener("message:content",_),this.frozen=!1}});this.addEventListener("message:content",_),this.sendQuestion(W,Object.assign(Object.assign({},O),{stream:Y}))})}setTop(O){return Le(this,void 0,void 0,function*(){if(!this._id)throw Error("session is not avalible. id is undefined");this.data=yield this.cvforceApi.patchSessionsId(this._applicationId,this._id,{top:O}),this.event.emit("data:updated",this.data),this.event.emit("data:updated:top",{top:O})})}suspend(){var O;this.stopAnswer(),this.frozen=!1,this._stopAnswer=!0;let L=this.messages[this.messages.length-1];const Y={messageId:qc(),isLoading:!1,index:-2,messageTime:hc(new Date).format("YYYY-MM-DD HH:ss:mm"),content:"",role:vr.System,sessionId:this.id||"",reference:[],searchReference:[]};if(L&&!L.messageId){if(L.index===-2)return;if(L.actions){const ut=L.actions[((O=L.actions)===null||O===void 0?void 0:O.length)-1];if(ut){const lt=ut[ut.length-1];if(lt&&(lt.type==="BEFORE_CALL"||lt.type==="FUNCTION_CALL")){const{pluginName:W,pluginCode:_,funcCode:y,funcName:x}=lt.data;ut.push({data:{pluginName:W,pluginCode:_,funcCode:y,funcName:x,step:lt.data.step+1},type:"ABORT"}),this.event.emit("message:action",{messageId:L.messageId,action:ut})}}}L=Object.assign(Object.assign({},L),Y),this.event.emit("message:content",L),this.event.emit("message:updated",L)}else this.pushMessage(Y),this.event.emit("message:content",Y);return this}postMessageComment(O){return Le(this,void 0,void 0,function*(){if(!this._applicationId||!this._id)throw Error("session is not avalible. id is undefined");return this.cvforceApi.postComments(this._applicationId,this._id,O).then(L=>{const Y=this.messages.find(ut=>ut.messageId===O.messageId);return Y&&(Y.comment=O,this.event.emit("message:comment",Y)),L})})}clear(){if(!this._id)throw Error("session is not avalible. id is undefined");return this.cvforceApi.patchApplicationIdSessionsIdContext(this._applicationId,this._id).then(()=>(this.event.emit("context:clear"),!0))}destroy(){var O;return this._ready=!1,this.event.removeAllListeners(),(O=this.socket)===null||O===void 0||O.disconnect(),this.socket=null,this.event.emit("destroy",{applicationId:this._applicationId,sessionId:this._id}),this._id||""}}const $r=new Ci("[AgentSession] ");class gd extends cs{constructor(O,L="",Y,ut,lt,W){super(O,L,Y,ut,lt,W)}prepareConnection(){return new Promise(O=>Le(this,void 0,void 0,function*(){this.socket&&O(!0);const L={version:"1.0",stream:"false",appId:this._applicationId,sessionId:this.id,Authorization:`${this.token}`,userMode:Mi.configuration.debug?nn.Debug:nn.Normal},Y=new URL(Mi.configuration.apiRoot),ut=yield Mo(Y.origin,{path:Y.pathname.replace("api","socketio")+"/copilot",query:L,transports:["websocket"]});ut.on("connect",()=>{$r.log("socket:connect"),this.event.emit("socket:connect"),ut.emit("init")}),ut.on("disconnect",()=>{$r.log("socket:disconnect"),this.event.emit("socket:disconnect")}),ut.on("ready",lt=>{if(lt.code===200){$r.log("ready");const W=Mi.configuration.debug?nn.Debug:nn.Normal;W===nn.Debug&<.userMode,this._ready||(this._ready=!0,this.event.emit("ready")),this.frozen=!1,O(!0)}else{this._ready&&(this._ready=!1);const W=new Error($i.SocketConnectionFailed);$r.error("error",W),this.event.emit("error",W),O(!1)}}),ut.on("action",(lt,W)=>Le(this,void 0,void 0,function*(){if(this._stopAnswer||!this.id)return;const{type:_,data:{runnerIsClient:y,pluginCode:x,funcCode:v,parameters:m,requestBody:S}}=lt,a=this.messages[this.messages.length-1];if(!a.messageId)a.actions||(a.actions=[]),a.actions[lt.data.step-1]||(a.actions[lt.data.step-1]=[]),a.actions[lt.data.step-1].push(lt),this.event.emit("message:action",{messageId:a.messageId,action:lt}),this.event.emit("message:updated",a);else{const p={messageId:"",content:"",role:vr.Robot,sessionId:this.id,reference:[],searchReference:[],isLoading:!0,messageTime:"",actions:[[lt]],comment:{isAgree:0}};this.pushMessage(p),this.event.emit("message:action",{messageId:p.messageId,action:lt})}if(this.inactivating){const p=new Error($i.Inactive);$r.warn("error",p),this.event.emit("error",p)}else if(_==="FUNCTION_CALL"&&y){if($r.log(`calling function ${v} of plugin ${x} with argument:
|
|
138
|
+
${JSON.stringify(m)}`),!Mi.configuration.plugins[x]){W({code:404,message:"对不起,没有找到插件。"});return}const p=Mi.configuration.plugins[x][v];typeof p!="function"&&W({code:404,message:"对不起,没有找到插件方法。"});let c=m==null?void 0:m.query;try{c=JSON.parse(m==null?void 0:m.query)}catch{}p(c,(...l)=>{this._stopAnswer||W(...l)})}})),ut.on("answer",lt=>{if(!this._stopAnswer)if(lt.data.code!==200&&(lt.data.index=-1,this.event.emit("error",lt.data)),lt.data.index===-1){let W=this.messages[this.messages.length-1];if(W&&!W.messageId)W=Object.assign(Object.assign({},W),lt.data),this.event.emit("message:content",W),this.event.emit("message:updated",W),this.event.emit("answer:finish",W);else{const _=Object.assign({messageId:"",content:"",role:vr.Robot,sessionId:this.id,reference:[],searchReference:[],isLoading:!1,messageTime:"",actions:[],comment:{isAgree:0}},lt.data);this.event.emit("message:content",_),this.pushMessage(_),this.event.emit("answer:finish",_)}}else{let W=this.messages[this.messages.length-1];W&&!W.messageId?(W=Object.assign(Object.assign({},W),lt.data),this.messages[this.messages.length-1]=W,this.event.emit("message:content",W),this.event.emit("message:updated",W)):(this.pushMessage(lt.data),this.event.emit("message:content",lt.data))}}),ut.on("reference",lt=>Le(this,void 0,void 0,function*(){if(this._stopAnswer)return;if(!this.id){const m=new Error($i.IdUndefined);$r.error(m),this.event.emit("error",m),this.frozen=!1;return}const{type:W,data:_,requestId:y}=lt,x=this.messages.findIndex(m=>m.messageId===y&&m.role===vr.User);if(x<0)return;const v=x+1;if(v>=this.messages.length){const m={messageId:"",content:"",role:vr.Robot,sessionId:this.id,reference:[],searchReference:[],isLoading:!0,messageTime:"",actions:[],comment:{isAgree:0}};this.pushMessage(m)}W==="KG"?(this.messages[v]=Object.assign(Object.assign({},this.messages[v]),{reference:_.knowledgeReference}),yield this.fillMessageReference(this.messages[v]),this.event.emit("message:reference",_.knowledgeReference),this.event.emit("message:updated",this.messages[v])):W==="WEB_SEARCH"&&(this.messages[v]=Object.assign(Object.assign({},this.messages[v]),{searchReference:_.knowledgeReference}),this.event.emit("message:searchreference",_.searchReference),this.event.emit("message:updated",this.messages[v]))})),this.socket=ut,ut.open()}))}sendQuestion(O,L){return Le(this,void 0,void 0,function*(){var Y,ut;if(!this.active){if(yield this.activate(),!this.socket){const lt=new Error($i.SocketConnectionFailed);return $r.warn("error",lt),this.event.emit("error",lt),!1}(Y=this.socket)===null||Y===void 0||Y.emit("question",O);return}(ut=this.socket)===null||ut===void 0||ut.emit("question",O)})}stopAnswer(){var O;(O=this.socket)===null||O===void 0||O.emit("stop_answer")}}function vd(K,O){return Le(this,void 0,void 0,function*(){const L=K.getReader();let Y;for(;!(Y=yield L.read()).done;)O(Y.value)})}var br;(function(K){K[K.NewLine=10]="NewLine",K[K.CarriageReturn=13]="CarriageReturn",K[K.Space=32]="Space",K[K.Colon=58]="Colon"})(br||(br={}));function yd(K){let O,L,Y,ut=!1,lt;return function(_){O===void 0?(O=_,L=0,Y=-1,lt=!1):O=wd(O,_);const y=O.length;let x=0;for(;L<y;){ut&&(O[L]===br.NewLine&&(x=++L),ut=!1);let v=-1;for(;L<y&&v===-1;++L)switch(O[L]){case br.Colon:Y===-1&&(Y=L-x);break;case br.CarriageReturn:ut=!1,L+4<y&&O[L+1]===br.NewLine&&O[L+2]!==br.CarriageReturn&&O[L-1]!==br.NewLine&&O[L-2]!==br.CarriageReturn&&(lt=!0);case br.NewLine:v=L;break}if(v===-1)break;K(O.subarray(x,v),Y,lt),x=L,Y=-1,lt=!1}x===y?O=void 0:x!==0&&(O=O.subarray(x),L-=x)}}function bd(K,O,L){let Y=zc();const ut=new TextDecoder;return function(W,_,y){if(W.length===0)L==null||L(Y),Y=zc();else if(_>0){const x=ut.decode(W.subarray(0,_)),v=_+(W[_+1]===br.Space?2:1);let m=ut.decode(W.subarray(v));switch(y&&(m+=`
|
|
139
|
+
`),x){case"data":Y.data=Y.data?Y.data+`
|
|
140
|
+
`+m:m;break;case"event":Y.event=m;break;case"id":K(Y.id=m);break;case"retry":const S=parseInt(m,10);isNaN(S)||O(Y.retry=S);break}}}}function wd(K,O){const L=new Uint8Array(K.length+O.length);return L.set(K),L.set(O,K.length),L}function zc(){return{data:"",event:"",id:"",retry:void 0}}const ls="text/event-stream",Md=1e3,$c="last-event-id";function Hc(K,O){var{signal:L,headers:Y,onopen:ut,onmessage:lt,onclose:W,onerror:_,openWhenHidden:y,fetch:x}=O,v=Kh(O,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((m,S)=>{const a=Object.assign({},Y);a.accept||(a.accept=ls);let p;function c(){p.abort(),document.hidden||w()}y||document.addEventListener("visibilitychange",c);let l=Md,f=0;function g(){document.removeEventListener("visibilitychange",c),window.clearTimeout(f),p.abort()}L==null||L.addEventListener("abort",()=>{g(),m()});const h=x??window.fetch,u=ut??xd;function w(){return Le(this,void 0,void 0,function*(){var b;p=new AbortController;try{const E=yield h(K,Object.assign(Object.assign({},v),{headers:a,signal:p.signal}));yield u(E),yield vd(E.body,yd(bd(I=>{I?a[$c]=I:delete a[$c]},I=>{l=I},lt))),W==null||W(),g(),m()}catch(E){if(!p.signal.aborted)try{const I=(b=_==null?void 0:_(E))!==null&&b!==void 0?b:l;window.clearTimeout(f),f=window.setTimeout(w,I)}catch(I){g(),S(I)}}})}w()})}function xd(K){const O=K.headers.get("content-type");if(!(O!=null&&O.startsWith(ls)))throw new Error(`Expected content-type to be ${ls}, Actual: ${O}`)}const Wc=new Ci("[DialogSession] ");class _d extends cs{constructor(O,L="",Y,ut,lt,W){super(O,L,Y,ut,lt,W),Object.defineProperty(this,"ctrl",{enumerable:!0,configurable:!0,writable:!0,value:new AbortController})}prepareConnection(){return new Promise(O=>Le(this,void 0,void 0,function*(){this._ready=!0,this.event.emit("ready"),this.frozen=!1,O(!0)}))}postChatV2EventSource(O,L,Y,ut,lt,W){return Le(this,void 0,void 0,function*(){const _={code:0,content:"",role:Wa.Robot,sessionId:L,reference:[],searchReference:[],messageTime:"",llmModel:"",comment:{isAgree:0},isReplying:!1},y=Object.assign(Object.assign({},Y),{stream:!0});Hc(`${Mi.configuration.apiRoot}/chat/v2/chat?applicationId=${O}&sessionId=${L}`,{method:"POST",headers:{Authorization:`Bearer ${this.token}`,"Content-Type":"application/json"},body:JSON.stringify(y),openWhenHidden:!0,signal:ut,onopen(x){return x.ok&<!=null&<.onopen&<.onopen(),Promise.resolve()},onmessage(x){if(!x.data.includes('{"code": ')){let m={};try{m=JSON.parse(x.data)}catch{}(m==null?void 0:m.mtype)==="search"?_.searchReference.push(m):_.content=_.content+x.data;const S={content:_.content,role:1,reference:_.reference,searchReference:_.searchReference,messageId:_.messageId,sessionId:L,messageTime:hc(new Date).format("YYYY-MM-DD HH:mm:ss"),comment:{isAgree:0},isReplying:!0};return(lt==null?void 0:lt.onmessage)&<.onmessage(S)}const v=JSON.parse(x.data);if(_.reference=v.data.reference,_.searchReference=v.data.searchReference,_.messageTime=v.data.messageTime,_.messageId=v.data.messageId,_.llmModel=v.data.llmModel,_.content=v.data.content,_.code=v.code,v.code===200){const m={code:_.code,content:_.content,role:1,reference:_.reference,searchReference:_.searchReference,messageId:_.messageId,sessionId:L,messageTime:_.messageTime,isReplying:!0};lt!=null&<.onmessage&<.onmessage(m)}else return lt!=null&<.onclose&<.onclose(_),W&&W({code:_.code,message:_.message})},onerror(){lt!=null&<.onerror&<.onerror()},onclose(){const x={code:_.code,content:_.content,role:1,reference:_.reference,searchReference:_.searchReference,messageId:_.messageId,sessionId:L,messageTime:_.messageTime,comment:{isAgree:0},isReplying:!1,index:-1};lt!=null&<.onclose&<.onclose(x)}})})}postChatV3EventSource(O,L,Y,ut,lt,W){return Le(this,void 0,void 0,function*(){const _={code:0,content:"",role:Wa.Robot,sessionId:L,reference:[],searchReference:[],messageTime:"",llmModel:"",comment:{isAgree:0},isReplying:!1,reasoningContent:"",thinkingSecs:"",thinkingStatus:""},y=Object.assign(Object.assign({},Y),{stream:!0});Hc(`${Mi.configuration.apiRoot}/chat/v3/chat?applicationId=${O}&sessionId=${L}`,{method:"POST",headers:{Authorization:`Bearer ${this.token}`,"Content-Type":"application/json"},body:JSON.stringify(y),openWhenHidden:!0,signal:ut,onopen(x){return x.ok&<!=null&<.onopen&<.onopen(),Promise.resolve()},onmessage(x){if(!x.data&&!x.event&&!x.id&&!x.retry)return;let v={};try{v=JSON.parse(x.data)}catch{console.error("parse eventData to JSON failed. ",x.data)}if(v.code!==200)return _.index=-1,_.code=v.code,_.message=v.message,lt!=null&<.onmessage&<.onmessage(_),W&&W({code:v.code,message:v.message});const m=v.data.type,S=v.data.payload;if(_.isReplying=!0,m==="search"&&_.searchReference.push(S),m==="thinking"){_.thinkingStatus="start";const p=S.choices[0];_.reasoningContent=_.reasoningContent+p.delta.reasoningContent}if(m==="thinkingOver"){_.thinkingStatus="end";const a=S.thinkingSecs;_.thinkingSecs=a}if(m==="text"){const p=S.choices[0];_.content=_.content+p.delta.content}if(m==="reference"&&(_.reference=S),m==="result"){const a=S.messageId,p=S.llmModel,c=S.messageTime;_.messageId=a,_.llmModel=p,_.messageTime=c,_.sessionId=L}m==="over"?_.index=-1:(_.code=v.code,_.message=v.message),lt!=null&<.onmessage&<.onmessage(_)},onerror(){lt!=null&<.onerror&<.onerror()},onclose(){const x=Object.assign(Object.assign({},_),{isReplying:!1});lt!=null&<.onclose&<.onclose(x)}})})}sendQuestion(O,L){return Le(this,void 0,void 0,function*(){var Y;const{content:ut,fileIds:lt,oldMessageId:W}=O,{stream:_,referenceFirst:y}=L;if(this.active||(yield this.activate()),this._id){let x={content:ut,fileIds:lt,referenceFirst:y,oldMessageId:W,promptVariables:this.promptVariables.reduce((v,m)=>Object.assign(Object.assign({},v),{[m.key]:m.value}),{}),knowledges:(Y=this.knowledges)===null||Y===void 0?void 0:Y.map(v=>v.id)};this.ctrl=new AbortController,this.postChatV3EventSource(this._applicationId,this._id,x,this.ctrl.signal,{onopen:()=>{Wc.log("open",this.ctrl)},onmessage:v=>{if(this._stopAnswer)return;let m=this.messages[this.messages.length-1];m&&m.role===vr.Robot?(m=Object.assign(Object.assign({},m),v),this.messages[this.messages.length-1]=m,this.event.emit("message:content",m),this.event.emit("message:updated",m)):(this.pushMessage(v),this.event.emit("message:content",v))},onclose:v=>Le(this,void 0,void 0,function*(){this._stopAnswer||(Wc.log(v,"onclose"),this.event.emit("answer:finish",v))}),onerror:()=>{this._stopAnswer||(this.event.emit("message:error",""),this.frozen=!1)}})}})}stopAnswer(){this.ctrl.abort()}}const Sd=new Ci("[BotClient] ");class Ed{constructor(O,L,Y=!0){if(Object.defineProperty(this,"_token",{enumerable:!0,configurable:!0,writable:!0,value:O}),Object.defineProperty(this,"lazyload",{enumerable:!0,configurable:!0,writable:!0,value:Y}),Object.defineProperty(this,"event",{enumerable:!0,configurable:!0,writable:!0,value:new Fc}),Object.defineProperty(this,"cvforceApi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_applicationId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_application",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_sessions",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_activeSession",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_ready",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_questionContextMaxLength",{enumerable:!0,configurable:!0,writable:!0,value:4e3}),Object.defineProperty(this,"_promptVariables",{enumerable:!0,configurable:!0,writable:!0,value:[]}),yu(L),this._applicationId=oo(O).rid||Mi.configuration.applicationId,!this._applicationId)throw"token is not vaild";this.cvforceApi=this.getService(),this.loadApplication().then(()=>{this.event.emit("ready")})}checkReady(){if(!this.ready)throw Error("client is not ready.")}get ready(){return this._ready}set ready(O){this._ready=O}get questionContextMaxLength(){return this.checkReady(),this._questionContextMaxLength}get promptVariables(){return this.checkReady(),this._promptVariables}get knowledges(){var O;return this.checkReady(),(O=this._application)===null||O===void 0?void 0:O.arrange[0].knowledges}get sessions(){return this.checkReady(),this._sessions}set sessions(O){this.checkReady(),this._sessions=O,this.event.emit("sessions:updated",O)}loadApplication(){return Le(this,void 0,void 0,function*(){var O,L,Y;this._application=yield this.cvforceApi.getApplicationId(this._applicationId).then(lt=>(typeof lt.arrange[0].recommendQuestionOpen!="boolean"&&(lt.arrange[0].recommendQuestionOpen=!0),Object.assign(Object.assign({},lt),{arrange:[Object.assign(Object.assign({},lt.arrange[0]),{recommendQuestionOpen:Mi.configuration.loadRelatedQuesions&<.arrange[0].recommendQuestionOpen})]})));const ut=(Y=(L=(O=this._application)===null||O===void 0?void 0:O.arrange)===null||L===void 0?void 0:L[0])===null||Y===void 0?void 0:Y.llmModel;return ut&&(this._questionContextMaxLength=yield this.cvforceApi.getBaseModel(ut).then(lt=>lt.maxModelLength)),this._promptVariables=yield this.cvforceApi.getPrompts(this._applicationId),this._ready=!0,this.event.emit("application:loaded"),this._application})}getService(){return this.cvforceApi?this.cvforceApi:dc(Mi.configuration.apiRoot,this.token,(O,L)=>Sd.error(L))}get token(){return this._token}set token(O){this.checkReady(),this._token=O,this.ready=!1;const L=oo(O).rid;this._applicationId!==L&&(this._applicationId=L,this._application=null,this.loadApplication().then(()=>{this.event.emit("ready")}),this.clean())}get applicationId(){return this._applicationId}get application(){return this.checkReady(),this._application}get activeSession(){var O;return this.checkReady(),((O=this._activeSession)===null||O===void 0?void 0:O.id)||""}set activeSession(O){this.checkReady(),this.loadSession(O).then(L=>{this._activeSession&&this._activeSession.id!==O&&this._activeSession.inactivate(),this._activeSession=L})}createSession(O,L,Y,ut,lt){return Le(this,void 0,void 0,function*(){const W=this;return new Promise((_,y)=>{const x=v=>Le(this,void 0,void 0,function*(){if(v===bn.Agent)_(new gd(O,L,Y,ut,lt,W));else if(v===bn.Dialog)_(new _d(O,L,Y,ut,lt,W));else throw Error(`不支持的应用类型:${v}`)});if(this.ready){if(!this._application)throw Error("client is not ready");x(this._application.type)}else this.event.on("ready",()=>{if(!this._application)throw Error("_application is null");x(this._application.type)},!0)})})}getSessions(O){return Le(this,void 0,void 0,function*(){return new Promise((L,Y)=>{const ut=()=>this.cvforceApi.listSessions(this._applicationId,O).then(lt=>{const W=[];return lt.forEach(_=>Le(this,void 0,void 0,function*(){const y=this._sessions.find(x=>_.id===x.id);if(y)y.data=_,W.push(y);else{const x=yield this.createSession(this.token,_.id,_,this.lazyload,this._application||void 0);W.push(x)}})),this.sessions=W,W});if(this.ready){if(!this._application)throw Error("_application is null");L(ut())}else this.event.on("ready",()=>{if(!this._application)throw Error("_application is null");L(ut())},!0)})})}loadSession(){return Le(this,arguments,void 0,function*(O="",L){this.checkReady();let Y=this.sessions.find(ut=>ut.id===O);if(Y||(Y=yield this.createSession(this.token,O,L),this._sessions.push(Y)),this._activeSession){if(this._activeSession===Y)return Y;this._activeSession.inactivate()}return Y.id?(yield Y.activate(),this._activeSession=Y):Y.addEventListener("data:loaded",()=>{this._activeSession!==Y&&(Y==null||Y.activate(),this._activeSession=Y)},!0),Y})}reload(){return this.loadApplication().then(()=>Le(this,void 0,void 0,function*(){return yield this.getSessions(),this.event.emit("ready"),this}))}reloadSession(O){return Le(this,void 0,void 0,function*(){yield this.reload();let L=this._sessions.find(Y=>Y.id===O)||this._activeSession;if(!L){console.warn("reloadSession session failed.");return}return yield L.reload(),L})}setTop(O,L){return Le(this,arguments,void 0,function*(Y,ut,lt="top_time desc, sort_status desc, updated_at desc"){let W=Y?this._sessions.find(_=>_.id===Y):this._activeSession;if(!W){console.warn("setTop session failed.");return}return yield W.setTop(ut),this.getSessions({order:lt})})}addEventListener(O,L,Y=!1){if(typeof L!="function")throw Error("event listener is not a function");if(Y){this.event.once(O,L);return}this.event.on(O,L)}removeEventListener(O,L){this.event.off(O,L)}removeSession(O,L){return Le(this,void 0,void 0,function*(){this.checkReady();let Y=-1;if(typeof O=="string"?Y=this._sessions.findIndex(ut=>ut.id===O):Y=this._sessions.findIndex(ut=>ut.id===O.id),Y>-1){const ut=this._sessions[Y];L&&(yield ut.delete()),this._sessions.splice(Y,1)}else console.warn("session delete failed, session is not exist.")})}clean(){this._sessions.forEach(O=>O.destroy()),this.sessions=[]}}class kd{constructor(O,L={},Y){Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"description",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"loaded",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"functions",{enumerable:!0,configurable:!0,writable:!0,value:{}}),this.code=O,L&&(this.functions=L)}fetchData(){this.description="描述",this.loaded=!0}checkFunctions(){}}Mi.AgentPlugin=kd,Mi.BotClient=Ed,Mi.Session=cs,Mi.configure=yu,Object.defineProperty(Mi,Symbol.toStringTag,{value:"Module"})});
|