@glodon-aiot/agent-cli-sdk 2.4.7

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.
Files changed (108) hide show
  1. package/README.md +70 -0
  2. package/dist/agent-cli-sdk.js +34975 -0
  3. package/dist/agent-cli-sdk.umd.cjs +150 -0
  4. package/dist/cdn/agent-cli-sdk.js +32945 -0
  5. package/dist/cdn/agent-cli-sdk.umd.cjs +140 -0
  6. package/dist/cdn/src/AgentPlugin.d.ts +17 -0
  7. package/dist/cdn/src/AgentSession.d.ts +8 -0
  8. package/dist/cdn/src/BotClient.d.ts +46 -0
  9. package/dist/cdn/src/Config.d.ts +32 -0
  10. package/dist/cdn/src/DialogSession.d.ts +21 -0
  11. package/dist/cdn/src/EventBus.d.ts +23 -0
  12. package/dist/cdn/src/Logger.d.ts +12 -0
  13. package/dist/cdn/src/PayloadTypes.d.ts +84 -0
  14. package/dist/cdn/src/Session.d.ts +156 -0
  15. package/dist/cdn/src/__ tests __/AgentClient.spec.d.ts +1 -0
  16. package/dist/cdn/src/__ tests __/AgentSession.spec.d.ts +1 -0
  17. package/dist/cdn/src/__ tests __/DialogClient.spec.d.ts +1 -0
  18. package/dist/cdn/src/api/fetchEventSource/fetch.d.ts +44 -0
  19. package/dist/cdn/src/api/fetchEventSource/index.d.ts +1 -0
  20. package/dist/cdn/src/api/fetchEventSource/parse.d.ts +36 -0
  21. package/dist/cdn/src/api/index.d.ts +2 -0
  22. package/dist/cdn/src/index.d.ts +5 -0
  23. package/dist/cdn/src/utils.d.ts +4 -0
  24. package/dist/es/AgentPlugin.mjs +20 -0
  25. package/dist/es/AgentSession.mjs +243 -0
  26. package/dist/es/BotClient.mjs +242 -0
  27. package/dist/es/Config.mjs +34 -0
  28. package/dist/es/DialogSession.mjs +281 -0
  29. package/dist/es/EventBus.mjs +64 -0
  30. package/dist/es/Logger.mjs +31 -0
  31. package/dist/es/PayloadTypes.mjs +4 -0
  32. package/dist/es/Session.mjs +527 -0
  33. package/dist/es/_virtual/_commonjsHelpers.mjs +4 -0
  34. package/dist/es/_virtual/index.mjs +4 -0
  35. package/dist/es/_virtual/index2.mjs +4 -0
  36. package/dist/es/_virtual/index3.mjs +4 -0
  37. package/dist/es/_virtual/minio-zj.mjs +4 -0
  38. package/dist/es/api/fetchEventSource/fetch.mjs +112 -0
  39. package/dist/es/api/fetchEventSource/parse.mjs +97 -0
  40. package/dist/es/api/index.mjs +48 -0
  41. package/dist/es/index.mjs +11 -0
  42. package/dist/es/node_modules/@glodon-aiot/minio/dist/minio-zj.mjs +26485 -0
  43. package/dist/es/node_modules/@socket.io/component-emitter/lib/esm/index.mjs +54 -0
  44. package/dist/es/node_modules/base64-js/index.mjs +47 -0
  45. package/dist/es/node_modules/buffer/index.mjs +927 -0
  46. package/dist/es/node_modules/engine.io-client/build/esm/contrib/has-cors.mjs +9 -0
  47. package/dist/es/node_modules/engine.io-client/build/esm/contrib/parseqs.mjs +18 -0
  48. package/dist/es/node_modules/engine.io-client/build/esm/contrib/parseuri.mjs +24 -0
  49. package/dist/es/node_modules/engine.io-client/build/esm/contrib/yeast.mjs +19 -0
  50. package/dist/es/node_modules/engine.io-client/build/esm/globalThis.browser.mjs +4 -0
  51. package/dist/es/node_modules/engine.io-client/build/esm/socket.mjs +317 -0
  52. package/dist/es/node_modules/engine.io-client/build/esm/transport.mjs +113 -0
  53. package/dist/es/node_modules/engine.io-client/build/esm/transports/index.mjs +11 -0
  54. package/dist/es/node_modules/engine.io-client/build/esm/transports/polling.mjs +273 -0
  55. package/dist/es/node_modules/engine.io-client/build/esm/transports/websocket-constructor.browser.mjs +8 -0
  56. package/dist/es/node_modules/engine.io-client/build/esm/transports/websocket.mjs +87 -0
  57. package/dist/es/node_modules/engine.io-client/build/esm/transports/webtransport.mjs +52 -0
  58. package/dist/es/node_modules/engine.io-client/build/esm/transports/xmlhttprequest.browser.mjs +21 -0
  59. package/dist/es/node_modules/engine.io-client/build/esm/util.mjs +23 -0
  60. package/dist/es/node_modules/engine.io-parser/build/esm/commons.mjs +21 -0
  61. package/dist/es/node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.mjs +14 -0
  62. package/dist/es/node_modules/engine.io-parser/build/esm/decodePacket.browser.mjs +39 -0
  63. package/dist/es/node_modules/engine.io-parser/build/esm/encodePacket.browser.mjs +28 -0
  64. package/dist/es/node_modules/engine.io-parser/build/esm/index.mjs +105 -0
  65. package/dist/es/node_modules/ieee754/index.mjs +28 -0
  66. package/dist/es/node_modules/js-base64/base64.mjs +31 -0
  67. package/dist/es/node_modules/socket.io-client/build/esm/contrib/backo2.mjs +26 -0
  68. package/dist/es/node_modules/socket.io-client/build/esm/index.mjs +25 -0
  69. package/dist/es/node_modules/socket.io-client/build/esm/manager.mjs +242 -0
  70. package/dist/es/node_modules/socket.io-client/build/esm/on.mjs +8 -0
  71. package/dist/es/node_modules/socket.io-client/build/esm/socket.mjs +608 -0
  72. package/dist/es/node_modules/socket.io-client/build/esm/url.mjs +19 -0
  73. package/dist/es/node_modules/socket.io-parser/build/esm/binary.mjs +52 -0
  74. package/dist/es/node_modules/socket.io-parser/build/esm/index.mjs +203 -0
  75. package/dist/es/node_modules/socket.io-parser/build/esm/is-binary.mjs +26 -0
  76. package/dist/es/node_modules/uuid/dist/esm-browser/native.mjs +6 -0
  77. package/dist/es/node_modules/uuid/dist/esm-browser/rng.mjs +10 -0
  78. package/dist/es/node_modules/uuid/dist/esm-browser/stringify.mjs +9 -0
  79. package/dist/es/node_modules/uuid/dist/esm-browser/v4.mjs +19 -0
  80. package/dist/es/packages/apis/dist/es/aecpilot/model.mjs +4 -0
  81. package/dist/es/packages/apis/dist/es/aecpilotui/index.mjs +8 -0
  82. package/dist/es/packages/apis/dist/es/agentcliui/index.mjs +8 -0
  83. package/dist/es/packages/apis/dist/es/base/index.mjs +154 -0
  84. package/dist/es/packages/apis/dist/es/cvforce/index.mjs +431 -0
  85. package/dist/es/packages/apis/dist/es/cvforce/model.mjs +5 -0
  86. package/dist/es/packages/apis/dist/es/node_modules/uuid/dist/esm-browser/native.mjs +1 -0
  87. package/dist/es/packages/apis/dist/es/node_modules/uuid/dist/esm-browser/stringify.mjs +3 -0
  88. package/dist/es/utils.mjs +11 -0
  89. package/dist/lib/index.js +126 -0
  90. package/dist/src/AgentPlugin.d.ts +17 -0
  91. package/dist/src/AgentSession.d.ts +8 -0
  92. package/dist/src/BotClient.d.ts +46 -0
  93. package/dist/src/Config.d.ts +32 -0
  94. package/dist/src/DialogSession.d.ts +21 -0
  95. package/dist/src/EventBus.d.ts +23 -0
  96. package/dist/src/Logger.d.ts +12 -0
  97. package/dist/src/PayloadTypes.d.ts +84 -0
  98. package/dist/src/Session.d.ts +155 -0
  99. package/dist/src/__ tests __/AgentClient.spec.d.ts +1 -0
  100. package/dist/src/__ tests __/AgentSession.spec.d.ts +1 -0
  101. package/dist/src/__ tests __/DialogClient.spec.d.ts +1 -0
  102. package/dist/src/api/fetchEventSource/fetch.d.ts +44 -0
  103. package/dist/src/api/fetchEventSource/index.d.ts +1 -0
  104. package/dist/src/api/fetchEventSource/parse.d.ts +36 -0
  105. package/dist/src/api/index.d.ts +2 -0
  106. package/dist/src/index.d.ts +5 -0
  107. package/dist/src/utils.d.ts +4 -0
  108. package/package.json +102 -0
@@ -0,0 +1,150 @@
1
+ (function($,w){typeof exports=="object"&&typeof module<"u"?w(exports):typeof define=="function"&&define.amd?define(["exports"],w):($=typeof globalThis<"u"?globalThis:$||self,w($.AgentClientSDK={}))})(this,function(exports){"use strict";class Logger{constructor(w,b=!1){Object.defineProperty(this,"prefix",{enumerable:!0,configurable:!0,writable:!0,value:w}),Object.defineProperty(this,"open",{enumerable:!0,configurable:!0,writable:!0,value:b})}disable(){this.open=!1}enable(){this.open=!0}log(...w){!this.open&&!Logger.debug||console.log(this.prefix,...w)}info(...w){!this.open&&!Logger.debug||console.info(`%c ${this.prefix} %o`,"color:#0f0;",...w)}error(...w){!this.open&&!Logger.debug||console.error(this.prefix,...w)}warn(...w){!this.open&&!Logger.debug||console.warn(this.prefix,...w)}}Object.defineProperty(Logger,"debug",{enumerable:!0,configurable:!0,writable:!0,value:!1});const logger$5=new Logger("[Config] ");var ApiUrl;(function($){$.dev="https://aiot-dev.glodon.com/api/cvforcepd",$.test="https://aiot-dev.glodon.com/api/cvforce",$.prod="https://copilot.glodon.com/api/cvforce",$.local="http://localhost:3000/api/cvforcepd"})(ApiUrl||(ApiUrl={})),exports.configuration={debug:!1,env:"prod",apiRoot:ApiUrl.prod,applicationId:"",plugins:{}};function configure($){console.log("configure",$),Logger.debug=($==null?void 0:$.debug)||!1,exports.configuration=Object.assign(Object.assign(Object.assign({},exports.configuration),$),{apiRoot:($==null?void 0:$.apiRoot)||exports.configuration.apiRoot||($!=null&&$.env?ApiUrl[$.env||"prod"]:exports.configuration.apiRoot)}),logger$5.log("updated",exports.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 __rest($,w){var b={};for(var j in $)Object.prototype.hasOwnProperty.call($,j)&&w.indexOf(j)<0&&(b[j]=$[j]);if($!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,j=Object.getOwnPropertySymbols($);O<j.length;O++)w.indexOf(j[O])<0&&Object.prototype.propertyIsEnumerable.call($,j[O])&&(b[j[O]]=$[j[O]]);return b}function __awaiter($,w,b,j){function O(I){return I instanceof b?I:new b(function(q){q(I)})}return new(b||(b=Promise))(function(I,q){function p(T){try{M(j.next(T))}catch(S){q(S)}}function N(T){try{M(j.throw(T))}catch(S){q(S)}}function M(T){T.done?I(T.value):O(T.value).then(p,N)}M((j=j.apply($,w||[])).next())})}const _hasBuffer=typeof Buffer=="function",_TD=typeof TextDecoder=="function"?new TextDecoder:void 0;typeof TextEncoder=="function"&&new TextEncoder;const b64ch="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",b64chs=Array.prototype.slice.call(b64ch),b64tab=($=>{let w={};return $.forEach((b,j)=>w[b]=j),w})(b64chs),b64re=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,_fromCC=String.fromCharCode.bind(String),_U8Afrom=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):$=>new Uint8Array(Array.prototype.slice.call($,0)),_tidyB64=$=>$.replace(/[^A-Za-z0-9\+\/]/g,""),re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=$=>{switch($.length){case 4:var w=(7&$.charCodeAt(0))<<18|(63&$.charCodeAt(1))<<12|(63&$.charCodeAt(2))<<6|63&$.charCodeAt(3),b=w-65536;return _fromCC((b>>>10)+55296)+_fromCC((b&1023)+56320);case 3:return _fromCC((15&$.charCodeAt(0))<<12|(63&$.charCodeAt(1))<<6|63&$.charCodeAt(2));default:return _fromCC((31&$.charCodeAt(0))<<6|63&$.charCodeAt(1))}},btou=$=>$.replace(re_btou,cb_btou),atobPolyfill=$=>{if($=$.replace(/\s+/g,""),!b64re.test($))throw new TypeError("malformed base64.");$+="==".slice(2-($.length&3));let w,b="",j,O;for(let I=0;I<$.length;)w=b64tab[$.charAt(I++)]<<18|b64tab[$.charAt(I++)]<<12|(j=b64tab[$.charAt(I++)])<<6|(O=b64tab[$.charAt(I++)]),b+=j===64?_fromCC(w>>16&255):O===64?_fromCC(w>>16&255,w>>8&255):_fromCC(w>>16&255,w>>8&255,w&255);return b},_atob=typeof atob=="function"?$=>atob(_tidyB64($)):_hasBuffer?$=>Buffer.from($,"base64").toString("binary"):atobPolyfill,_toUint8Array=_hasBuffer?$=>_U8Afrom(Buffer.from($,"base64")):$=>_U8Afrom(_atob($).split("").map(w=>w.charCodeAt(0))),_decode=_hasBuffer?$=>Buffer.from($,"base64").toString("utf8"):_TD?$=>_TD.decode(_toUint8Array($)):$=>btou(_atob($)),_unURI=$=>_tidyB64($.replace(/[-_]/g,w=>w=="-"?"+":"/")),decode$2=$=>_decode(_unURI($)),parseJWT=$=>JSON.parse(decode$2($.split(".")[1])),isExpired=$=>{const w=parseJWT($).exp;return new Date().valueOf()/1e3>=w},removeNewlines=$=>$==null?void 0:$.replace(/[\r\n]+/gm,""),removeLeadingAndTrailingBackslashes=$=>$.replace(/\\|\\/g,"");var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs($){return $&&$.__esModule&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$}var axios$3={exports:{}},bind$2=function(w,b){return function(){for(var O=new Array(arguments.length),I=0;I<O.length;I++)O[I]=arguments[I];return w.apply(b,O)}},bind$1=bind$2,toString$1=Object.prototype.toString;function isArray($){return toString$1.call($)==="[object Array]"}function isUndefined($){return typeof $>"u"}function isBuffer($){return $!==null&&!isUndefined($)&&$.constructor!==null&&!isUndefined($.constructor)&&typeof $.constructor.isBuffer=="function"&&$.constructor.isBuffer($)}function isArrayBuffer($){return toString$1.call($)==="[object ArrayBuffer]"}function isFormData($){return typeof FormData<"u"&&$ instanceof FormData}function isArrayBufferView($){var w;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?w=ArrayBuffer.isView($):w=$&&$.buffer&&$.buffer instanceof ArrayBuffer,w}function isString($){return typeof $=="string"}function isNumber($){return typeof $=="number"}function isObject$1($){return $!==null&&typeof $=="object"}function isPlainObject($){if(toString$1.call($)!=="[object Object]")return!1;var w=Object.getPrototypeOf($);return w===null||w===Object.prototype}function isDate($){return toString$1.call($)==="[object Date]"}function isFile($){return toString$1.call($)==="[object File]"}function isBlob($){return toString$1.call($)==="[object Blob]"}function isFunction($){return toString$1.call($)==="[object Function]"}function isStream($){return isObject$1($)&&isFunction($.pipe)}function isURLSearchParams($){return typeof URLSearchParams<"u"&&$ instanceof URLSearchParams}function trim($){return $.trim?$.trim():$.replace(/^\s+|\s+$/g,"")}function isStandardBrowserEnv(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function forEach($,w){if(!($===null||typeof $>"u"))if(typeof $!="object"&&($=[$]),isArray($))for(var b=0,j=$.length;b<j;b++)w.call(null,$[b],b,$);else for(var O in $)Object.prototype.hasOwnProperty.call($,O)&&w.call(null,$[O],O,$)}function merge(){var $={};function w(O,I){isPlainObject($[I])&&isPlainObject(O)?$[I]=merge($[I],O):isPlainObject(O)?$[I]=merge({},O):isArray(O)?$[I]=O.slice():$[I]=O}for(var b=0,j=arguments.length;b<j;b++)forEach(arguments[b],w);return $}function extend($,w,b){return forEach(w,function(O,I){b&&typeof O=="function"?$[I]=bind$1(O,b):$[I]=O}),$}function stripBOM($){return $.charCodeAt(0)===65279&&($=$.slice(1)),$}var utils$8={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString,isNumber,isObject:isObject$1,isPlainObject,isUndefined,isDate,isFile,isBlob,isFunction,isStream,isURLSearchParams,isStandardBrowserEnv,forEach,merge,extend,trim,stripBOM},utils$7=utils$8;function encode$2($){return encodeURIComponent($).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var buildURL$1=function(w,b,j){if(!b)return w;var O;if(j)O=j(b);else if(utils$7.isURLSearchParams(b))O=b.toString();else{var I=[];utils$7.forEach(b,function(N,M){N===null||typeof N>"u"||(utils$7.isArray(N)?M=M+"[]":N=[N],utils$7.forEach(N,function(S){utils$7.isDate(S)?S=S.toISOString():utils$7.isObject(S)&&(S=JSON.stringify(S)),I.push(encode$2(M)+"="+encode$2(S))}))}),O=I.join("&")}if(O){var q=w.indexOf("#");q!==-1&&(w=w.slice(0,q)),w+=(w.indexOf("?")===-1?"?":"&")+O}return w},utils$6=utils$8;function InterceptorManager$1(){this.handlers=[]}InterceptorManager$1.prototype.use=function(w,b,j){return this.handlers.push({fulfilled:w,rejected:b,synchronous:j?j.synchronous:!1,runWhen:j?j.runWhen:null}),this.handlers.length-1},InterceptorManager$1.prototype.eject=function(w){this.handlers[w]&&(this.handlers[w]=null)},InterceptorManager$1.prototype.forEach=function(w){utils$6.forEach(this.handlers,function(j){j!==null&&w(j)})};var InterceptorManager_1=InterceptorManager$1,utils$5=utils$8,normalizeHeaderName=function(w,b){utils$5.forEach(w,function(O,I){I!==b&&I.toUpperCase()===b.toUpperCase()&&(w[b]=O,delete w[I])})},enhanceError=function(w,b,j,O,I){return w.config=b,j&&(w.code=j),w.request=O,w.response=I,w.isAxiosError=!0,w.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}},w},createError,hasRequiredCreateError;function requireCreateError(){if(hasRequiredCreateError)return createError;hasRequiredCreateError=1;var $=enhanceError;return createError=function(b,j,O,I,q){var p=new Error(b);return $(p,j,O,I,q)},createError}var settle,hasRequiredSettle;function requireSettle(){if(hasRequiredSettle)return settle;hasRequiredSettle=1;var $=requireCreateError();return settle=function(b,j,O){var I=O.config.validateStatus;!O.status||!I||I(O.status)?b(O):j($("Request failed with status code "+O.status,O.config,null,O.request,O))},settle}var cookies,hasRequiredCookies;function requireCookies(){if(hasRequiredCookies)return cookies;hasRequiredCookies=1;var $=utils$8;return cookies=$.isStandardBrowserEnv()?function(){return{write:function(j,O,I,q,p,N){var M=[];M.push(j+"="+encodeURIComponent(O)),$.isNumber(I)&&M.push("expires="+new Date(I).toGMTString()),$.isString(q)&&M.push("path="+q),$.isString(p)&&M.push("domain="+p),N===!0&&M.push("secure"),document.cookie=M.join("; ")},read:function(j){var O=document.cookie.match(new RegExp("(^|;\\s*)("+j+")=([^;]*)"));return O?decodeURIComponent(O[3]):null},remove:function(j){this.write(j,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),cookies}var isAbsoluteURL,hasRequiredIsAbsoluteURL;function requireIsAbsoluteURL(){return hasRequiredIsAbsoluteURL||(hasRequiredIsAbsoluteURL=1,isAbsoluteURL=function(w){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(w)}),isAbsoluteURL}var combineURLs,hasRequiredCombineURLs;function requireCombineURLs(){return hasRequiredCombineURLs||(hasRequiredCombineURLs=1,combineURLs=function(w,b){return b?w.replace(/\/+$/,"")+"/"+b.replace(/^\/+/,""):w}),combineURLs}var buildFullPath,hasRequiredBuildFullPath;function requireBuildFullPath(){if(hasRequiredBuildFullPath)return buildFullPath;hasRequiredBuildFullPath=1;var $=requireIsAbsoluteURL(),w=requireCombineURLs();return buildFullPath=function(j,O){return j&&!$(O)?w(j,O):O},buildFullPath}var parseHeaders,hasRequiredParseHeaders;function requireParseHeaders(){if(hasRequiredParseHeaders)return parseHeaders;hasRequiredParseHeaders=1;var $=utils$8,w=["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 parseHeaders=function(j){var O={},I,q,p;return j&&$.forEach(j.split(`
15
+ `),function(M){if(p=M.indexOf(":"),I=$.trim(M.substr(0,p)).toLowerCase(),q=$.trim(M.substr(p+1)),I){if(O[I]&&w.indexOf(I)>=0)return;I==="set-cookie"?O[I]=(O[I]?O[I]:[]).concat([q]):O[I]=O[I]?O[I]+", "+q:q}}),O},parseHeaders}var isURLSameOrigin,hasRequiredIsURLSameOrigin;function requireIsURLSameOrigin(){if(hasRequiredIsURLSameOrigin)return isURLSameOrigin;hasRequiredIsURLSameOrigin=1;var $=utils$8;return isURLSameOrigin=$.isStandardBrowserEnv()?function(){var b=/(msie|trident)/i.test(navigator.userAgent),j=document.createElement("a"),O;function I(q){var p=q;return b&&(j.setAttribute("href",p),p=j.href),j.setAttribute("href",p),{href:j.href,protocol:j.protocol?j.protocol.replace(/:$/,""):"",host:j.host,search:j.search?j.search.replace(/^\?/,""):"",hash:j.hash?j.hash.replace(/^#/,""):"",hostname:j.hostname,port:j.port,pathname:j.pathname.charAt(0)==="/"?j.pathname:"/"+j.pathname}}return O=I(window.location.href),function(p){var N=$.isString(p)?I(p):p;return N.protocol===O.protocol&&N.host===O.host}}():function(){return function(){return!0}}(),isURLSameOrigin}var Cancel_1,hasRequiredCancel;function requireCancel(){if(hasRequiredCancel)return Cancel_1;hasRequiredCancel=1;function $(w){this.message=w}return $.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},$.prototype.__CANCEL__=!0,Cancel_1=$,Cancel_1}var xhr,hasRequiredXhr;function requireXhr(){if(hasRequiredXhr)return xhr;hasRequiredXhr=1;var $=utils$8,w=requireSettle(),b=requireCookies(),j=buildURL$1,O=requireBuildFullPath(),I=requireParseHeaders(),q=requireIsURLSameOrigin(),p=requireCreateError(),N=requireDefaults(),M=requireCancel();return xhr=function(S){return new Promise(function(C,_){var F=S.data,U=S.headers,z=S.responseType,H;function D(){S.cancelToken&&S.cancelToken.unsubscribe(H),S.signal&&S.signal.removeEventListener("abort",H)}$.isFormData(F)&&delete U["Content-Type"];var Q=new XMLHttpRequest;if(S.auth){var X=S.auth.username||"",et=S.auth.password?unescape(encodeURIComponent(S.auth.password)):"";U.Authorization="Basic "+btoa(X+":"+et)}var nt=O(S.baseURL,S.url);Q.open(S.method.toUpperCase(),j(nt,S.params,S.paramsSerializer),!0),Q.timeout=S.timeout;function ut(){if(Q){var vt="getAllResponseHeaders"in Q?I(Q.getAllResponseHeaders()):null,t=!z||z==="text"||z==="json"?Q.responseText:Q.response,h={data:t,status:Q.status,statusText:Q.statusText,headers:vt,config:S,request:Q};w(function(a){C(a),D()},function(a){_(a),D()},h),Q=null}}if("onloadend"in Q?Q.onloadend=ut:Q.onreadystatechange=function(){!Q||Q.readyState!==4||Q.status===0&&!(Q.responseURL&&Q.responseURL.indexOf("file:")===0)||setTimeout(ut)},Q.onabort=function(){Q&&(_(p("Request aborted",S,"ECONNABORTED",Q)),Q=null)},Q.onerror=function(){_(p("Network Error",S,null,Q)),Q=null},Q.ontimeout=function(){var t=S.timeout?"timeout of "+S.timeout+"ms exceeded":"timeout exceeded",h=S.transitional||N.transitional;S.timeoutErrorMessage&&(t=S.timeoutErrorMessage),_(p(t,S,h.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",Q)),Q=null},$.isStandardBrowserEnv()){var ct=(S.withCredentials||q(nt))&&S.xsrfCookieName?b.read(S.xsrfCookieName):void 0;ct&&(U[S.xsrfHeaderName]=ct)}"setRequestHeader"in Q&&$.forEach(U,function(t,h){typeof F>"u"&&h.toLowerCase()==="content-type"?delete U[h]:Q.setRequestHeader(h,t)}),$.isUndefined(S.withCredentials)||(Q.withCredentials=!!S.withCredentials),z&&z!=="json"&&(Q.responseType=S.responseType),typeof S.onDownloadProgress=="function"&&Q.addEventListener("progress",S.onDownloadProgress),typeof S.onUploadProgress=="function"&&Q.upload&&Q.upload.addEventListener("progress",S.onUploadProgress),(S.cancelToken||S.signal)&&(H=function(vt){Q&&(_(!vt||vt&&vt.type?new M("canceled"):vt),Q.abort(),Q=null)},S.cancelToken&&S.cancelToken.subscribe(H),S.signal&&(S.signal.aborted?H():S.signal.addEventListener("abort",H))),F||(F=null),Q.send(F)})},xhr}var defaults_1,hasRequiredDefaults;function requireDefaults(){if(hasRequiredDefaults)return defaults_1;hasRequiredDefaults=1;var $=utils$8,w=normalizeHeaderName,b=enhanceError,j={"Content-Type":"application/x-www-form-urlencoded"};function O(N,M){!$.isUndefined(N)&&$.isUndefined(N["Content-Type"])&&(N["Content-Type"]=M)}function I(){var N;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(N=requireXhr()),N}function q(N,M,T){if($.isString(N))try{return(M||JSON.parse)(N),$.trim(N)}catch(S){if(S.name!=="SyntaxError")throw S}return(T||JSON.stringify)(N)}var p={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:I(),transformRequest:[function(M,T){return w(T,"Accept"),w(T,"Content-Type"),$.isFormData(M)||$.isArrayBuffer(M)||$.isBuffer(M)||$.isStream(M)||$.isFile(M)||$.isBlob(M)?M:$.isArrayBufferView(M)?M.buffer:$.isURLSearchParams(M)?(O(T,"application/x-www-form-urlencoded;charset=utf-8"),M.toString()):$.isObject(M)||T&&T["Content-Type"]==="application/json"?(O(T,"application/json"),q(M)):M}],transformResponse:[function(M){var T=this.transitional||p.transitional,S=T&&T.silentJSONParsing,B=T&&T.forcedJSONParsing,C=!S&&this.responseType==="json";if(C||B&&$.isString(M)&&M.length)try{return JSON.parse(M)}catch(_){if(C)throw _.name==="SyntaxError"?b(_,this,"E_JSON_PARSE"):_}return M}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(M){return M>=200&&M<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};return $.forEach(["delete","get","head"],function(M){p.headers[M]={}}),$.forEach(["post","put","patch"],function(M){p.headers[M]=$.merge(j)}),defaults_1=p,defaults_1}var utils$4=utils$8,defaults$2=requireDefaults(),transformData$1=function(w,b,j){var O=this||defaults$2;return utils$4.forEach(j,function(q){w=q.call(O,w,b)}),w},isCancel$1,hasRequiredIsCancel;function requireIsCancel(){return hasRequiredIsCancel||(hasRequiredIsCancel=1,isCancel$1=function(w){return!!(w&&w.__CANCEL__)}),isCancel$1}var utils$3=utils$8,transformData=transformData$1,isCancel=requireIsCancel(),defaults$1=requireDefaults(),Cancel=requireCancel();function throwIfCancellationRequested($){if($.cancelToken&&$.cancelToken.throwIfRequested(),$.signal&&$.signal.aborted)throw new Cancel("canceled")}var dispatchRequest$1=function(w){throwIfCancellationRequested(w),w.headers=w.headers||{},w.data=transformData.call(w,w.data,w.headers,w.transformRequest),w.headers=utils$3.merge(w.headers.common||{},w.headers[w.method]||{},w.headers),utils$3.forEach(["delete","get","head","post","put","patch","common"],function(O){delete w.headers[O]});var b=w.adapter||defaults$1.adapter;return b(w).then(function(O){return throwIfCancellationRequested(w),O.data=transformData.call(w,O.data,O.headers,w.transformResponse),O},function(O){return isCancel(O)||(throwIfCancellationRequested(w),O&&O.response&&(O.response.data=transformData.call(w,O.response.data,O.response.headers,w.transformResponse))),Promise.reject(O)})},utils$2=utils$8,mergeConfig$2=function(w,b){b=b||{};var j={};function O(T,S){return utils$2.isPlainObject(T)&&utils$2.isPlainObject(S)?utils$2.merge(T,S):utils$2.isPlainObject(S)?utils$2.merge({},S):utils$2.isArray(S)?S.slice():S}function I(T){if(utils$2.isUndefined(b[T])){if(!utils$2.isUndefined(w[T]))return O(void 0,w[T])}else return O(w[T],b[T])}function q(T){if(!utils$2.isUndefined(b[T]))return O(void 0,b[T])}function p(T){if(utils$2.isUndefined(b[T])){if(!utils$2.isUndefined(w[T]))return O(void 0,w[T])}else return O(void 0,b[T])}function N(T){if(T in b)return O(w[T],b[T]);if(T in w)return O(void 0,w[T])}var M={url:q,method:q,data:q,baseURL:p,transformRequest:p,transformResponse:p,paramsSerializer:p,timeout:p,timeoutMessage:p,withCredentials:p,adapter:p,responseType:p,xsrfCookieName:p,xsrfHeaderName:p,onUploadProgress:p,onDownloadProgress:p,decompress:p,maxContentLength:p,maxBodyLength:p,transport:p,httpAgent:p,httpsAgent:p,cancelToken:p,socketPath:p,responseEncoding:p,validateStatus:N};return utils$2.forEach(Object.keys(w).concat(Object.keys(b)),function(S){var B=M[S]||I,C=B(S);utils$2.isUndefined(C)&&B!==N||(j[S]=C)}),j},data,hasRequiredData;function requireData(){return hasRequiredData||(hasRequiredData=1,data={version:"0.24.0"}),data}var VERSION=requireData().version,validators$1={};["object","boolean","number","function","string","symbol"].forEach(function($,w){validators$1[$]=function(j){return typeof j===$||"a"+(w<1?"n ":" ")+$}});var deprecatedWarnings={};validators$1.transitional=function(w,b,j){function O(I,q){return"[Axios v"+VERSION+"] Transitional option '"+I+"'"+q+(j?". "+j:"")}return function(I,q,p){if(w===!1)throw new Error(O(q," has been removed"+(b?" in "+b:"")));return b&&!deprecatedWarnings[q]&&(deprecatedWarnings[q]=!0,console.warn(O(q," has been deprecated since v"+b+" and will be removed in the near future"))),w?w(I,q,p):!0}};function assertOptions($,w,b){if(typeof $!="object")throw new TypeError("options must be an object");for(var j=Object.keys($),O=j.length;O-- >0;){var I=j[O],q=w[I];if(q){var p=$[I],N=p===void 0||q(p,I,$);if(N!==!0)throw new TypeError("option "+I+" must be "+N);continue}if(b!==!0)throw Error("Unknown option "+I)}}var validator$1={assertOptions,validators:validators$1},utils$1=utils$8,buildURL=buildURL$1,InterceptorManager=InterceptorManager_1,dispatchRequest=dispatchRequest$1,mergeConfig$1=mergeConfig$2,validator=validator$1,validators=validator.validators;function Axios$1($){this.defaults=$,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}Axios$1.prototype.request=function(w){typeof w=="string"?(w=arguments[1]||{},w.url=arguments[0]):w=w||{},w=mergeConfig$1(this.defaults,w),w.method?w.method=w.method.toLowerCase():this.defaults.method?w.method=this.defaults.method.toLowerCase():w.method="get";var b=w.transitional;b!==void 0&&validator.assertOptions(b,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1);var j=[],O=!0;this.interceptors.request.forEach(function(B){typeof B.runWhen=="function"&&B.runWhen(w)===!1||(O=O&&B.synchronous,j.unshift(B.fulfilled,B.rejected))});var I=[];this.interceptors.response.forEach(function(B){I.push(B.fulfilled,B.rejected)});var q;if(!O){var p=[dispatchRequest,void 0];for(Array.prototype.unshift.apply(p,j),p=p.concat(I),q=Promise.resolve(w);p.length;)q=q.then(p.shift(),p.shift());return q}for(var N=w;j.length;){var M=j.shift(),T=j.shift();try{N=M(N)}catch(S){T(S);break}}try{q=dispatchRequest(N)}catch(S){return Promise.reject(S)}for(;I.length;)q=q.then(I.shift(),I.shift());return q},Axios$1.prototype.getUri=function(w){return w=mergeConfig$1(this.defaults,w),buildURL(w.url,w.params,w.paramsSerializer).replace(/^\?/,"")},utils$1.forEach(["delete","get","head","options"],function(w){Axios$1.prototype[w]=function(b,j){return this.request(mergeConfig$1(j||{},{method:w,url:b,data:(j||{}).data}))}}),utils$1.forEach(["post","put","patch"],function(w){Axios$1.prototype[w]=function(b,j,O){return this.request(mergeConfig$1(O||{},{method:w,url:b,data:j}))}});var Axios_1=Axios$1,CancelToken_1,hasRequiredCancelToken;function requireCancelToken(){if(hasRequiredCancelToken)return CancelToken_1;hasRequiredCancelToken=1;var $=requireCancel();function w(b){if(typeof b!="function")throw new TypeError("executor must be a function.");var j;this.promise=new Promise(function(q){j=q});var O=this;this.promise.then(function(I){if(O._listeners){var q,p=O._listeners.length;for(q=0;q<p;q++)O._listeners[q](I);O._listeners=null}}),this.promise.then=function(I){var q,p=new Promise(function(N){O.subscribe(N),q=N}).then(I);return p.cancel=function(){O.unsubscribe(q)},p},b(function(q){O.reason||(O.reason=new $(q),j(O.reason))})}return w.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},w.prototype.subscribe=function(j){if(this.reason){j(this.reason);return}this._listeners?this._listeners.push(j):this._listeners=[j]},w.prototype.unsubscribe=function(j){if(this._listeners){var O=this._listeners.indexOf(j);O!==-1&&this._listeners.splice(O,1)}},w.source=function(){var j,O=new w(function(q){j=q});return{token:O,cancel:j}},CancelToken_1=w,CancelToken_1}var spread,hasRequiredSpread;function requireSpread(){return hasRequiredSpread||(hasRequiredSpread=1,spread=function(w){return function(j){return w.apply(null,j)}}),spread}var isAxiosError,hasRequiredIsAxiosError;function requireIsAxiosError(){return hasRequiredIsAxiosError||(hasRequiredIsAxiosError=1,isAxiosError=function(w){return typeof w=="object"&&w.isAxiosError===!0}),isAxiosError}var utils=utils$8,bind=bind$2,Axios=Axios_1,mergeConfig=mergeConfig$2,defaults=requireDefaults();function createInstance($){var w=new Axios($),b=bind(Axios.prototype.request,w);return utils.extend(b,Axios.prototype,w),utils.extend(b,w),b.create=function(O){return createInstance(mergeConfig($,O))},b}var axios$2=createInstance(defaults);axios$2.Axios=Axios,axios$2.Cancel=requireCancel(),axios$2.CancelToken=requireCancelToken(),axios$2.isCancel=requireIsCancel(),axios$2.VERSION=requireData().version,axios$2.all=function(w){return Promise.all(w)},axios$2.spread=requireSpread(),axios$2.isAxiosError=requireIsAxiosError(),axios$3.exports=axios$2,axios$3.exports.default=axios$2;var axiosExports=axios$3.exports,axios=axiosExports;const axios$1=getDefaultExportFromCjs(axios);var g=Object.defineProperty,d=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,u=($,w,b)=>w in $?g($,w,{enumerable:!0,configurable:!0,writable:!0,value:b}):$[w]=b,c=($,w)=>{for(var b in w||(w={}))x.call(w,b)&&u($,b,w[b]);if(d)for(var b of d(w))y.call(w,b)&&u($,b,w[b]);return $},n$2=($,w,b)=>new Promise((j,O)=>{var I=N=>{try{p(b.next(N))}catch(M){O(M)}},q=N=>{try{p(b.throw(N))}catch(M){O(M)}},p=N=>N.done?j(N.value):Promise.resolve(N.value).then(I,q);p((b=b.apply($,w)).next())});class R{constructor(w,b){this.axios=w,this.errorHandler=b}get(w,b,j){return n$2(this,null,function*(){const O=this.axios.get(w,{params:b});return this.handleResponse(O,j)})}listPaged(w,b){return n$2(this,null,function*(){const j=this.axios.get(w,{params:b});return this.handleResponse(j)})}list(w,b){return n$2(this,null,function*(){const j=this.axios.get(w,{params:b});return this.handleResponse(j)})}delete(w,b){return n$2(this,null,function*(){const j=this.axios.delete(w,{params:b});return this.handleResponse(j)})}post(w,b,j,O){return n$2(this,null,function*(){const I=this.axios.post(w,b,c({params:j},O));return this.handleResponse(I)})}postForm(w,b,j){return n$2(this,null,function*(){const O=this.axios.post(w,b,{params:j,headers:{"Content-Type":"multipart/form-data"}});return this.handleResponse(O)})}patch(w,b,j){return n$2(this,null,function*(){const O=this.axios.patch(w,b,{params:j});return this.handleResponse(O)})}put(w,b){return n$2(this,null,function*(){const j=this.axios.put(w,b);return this.handleResponse(j)})}upload(w,b,j){return n$2(this,null,function*(){const O=this.axios.post(w,b,c({},j));return this.handleResponse(O)})}getNonStandard(w,b){return n$2(this,null,function*(){const j=this.axios.get(w,b);try{const O=yield j;if(O.status===200)return O}catch(O){throw this.handleError(O)}})}postNonStandard(w,b,j,O){return n$2(this,null,function*(){var I,q;const p=yield this.axios.post(w,b,c({params:j},O));if(p.status===200)if((I=p.data)!=null&&I.code)(q=this.errorHandler)!=null&&q.onAppStatusError&&this.errorHandler.onAppStatusError(p.data.code,p.data.message);else return p.data})}handleResponse(w,b){return n$2(this,null,function*(){try{const j=yield w;return this.handleAppError(j.data,b).data}catch(j){throw this.handleError(j)}})}handleAppError(w,b){var j;if(w.code<200||w.code>=300)throw(j=this.errorHandler)!=null&&j.onAppStatusError?this.errorHandler.onAppStatusError(w.code,E(w.code,w.message),b):console.error("未处理应用错误:",w),{isAxiosError:!1,message:w.message};return w}handleError(w){var b,j;return w.response?(console.log(w.response.data),console.log(w.response.status),console.log(w.response.headers),(b=this.errorHandler)!=null&&b.onHttpStatusError&&(console.log("HTTP 错误",this.errorHandler),this.errorHandler.onHttpStatusError(w.response.status,"",w.response))):w.request?(console.log(w.request),(j=this.errorHandler)!=null&&j.onNetworkError&&this.errorHandler.onNetworkError()):console.error("axios request config error:",w),new Error(w.message)}}const f=$=>$>=10002&&$<=10012,E=($,w)=>f($)?"数据操作错误":w||"未知接口错误";var e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o={exports:{}},aa=($,w)=>{if(w=Symbol[$])return w;throw Error("Symbol."+$+" is not defined")},Ci=Math.pow,to=($,w,b)=>new Promise((j,O)=>{var I=N=>{try{p(b.next(N))}catch(M){O(M)}},q=N=>{try{p(b.throw(N))}catch(M){O(M)}},p=N=>N.done?j(N.value):Promise.resolve(N.value).then(I,q);p((b=b.apply($,w)).next())}),sl=function($,w){this[0]=$,this[1]=w},nu=$=>{var w=$[aa("asyncIterator")],b=!1,j,O={};return w==null?(w=$[aa("iterator")](),j=I=>O[I]=q=>w[I](q)):(w=w.call($),j=I=>O[I]=q=>{if(b){if(b=!1,I==="throw")throw q;return q}return b=!0,{done:!1,value:new sl(new Promise(p=>{var N=w[I](q);if(!(N instanceof Object))throw TypeError("Object expected");p(N)}),1)}}),O[aa("iterator")]=()=>O,j("next"),"throw"in w?j("throw"):O.throw=I=>{throw I},"return"in w&&j("return"),O};/*! For license information please see minio.js.LICENSE.txt */(function(module,exports){(function($,w){module.exports=w()})(e,()=>(()=>{var __webpack_modules__={20:($,w,b)=>{var j=b(2861).Buffer,O=b(7108),I=b(6737),q=b(6698),p=b(5359),N=b(4847),M=b(2951);function T(_){I.Writable.call(this);var F=M[_];if(!F)throw new Error("Unknown message digest");this._hashType=F.hash,this._hash=O(F.hash),this._tag=F.id,this._signType=F.sign}function S(_){I.Writable.call(this);var F=M[_];if(!F)throw new Error("Unknown message digest");this._hash=O(F.hash),this._tag=F.id,this._signType=F.sign}function B(_){return new T(_)}function C(_){return new S(_)}Object.keys(M).forEach(function(_){M[_].id=j.from(M[_].id,"hex"),M[_.toLowerCase()]=M[_]}),q(T,I.Writable),T.prototype._write=function(_,F,U){this._hash.update(_),U()},T.prototype.update=function(_,F){return this._hash.update(typeof _=="string"?j.from(_,F):_),this},T.prototype.sign=function(_,F){this.end();var U=this._hash.digest(),z=p(U,_,this._hashType,this._signType,this._tag);return F?z.toString(F):z},q(S,I.Writable),S.prototype._write=function(_,F,U){this._hash.update(_),U()},S.prototype.update=function(_,F){return this._hash.update(typeof _=="string"?j.from(_,F):_),this},S.prototype.verify=function(_,F,U){var z=typeof F=="string"?j.from(F,U):F;this.end();var H=this._hash.digest();return N(z,H,_,this._signType,this._tag)},$.exports={Sign:B,Verify:C,createSign:B,createVerify:C}},41:($,w,b)=>{var j=b(655),O=b(8068),I=b(9675),q=b(5795);$.exports=function(p,N,M){if(!p||typeof p!="object"&&typeof p!="function")throw new I("`obj` must be an object or a function`");if(typeof N!="string"&&typeof N!="symbol")throw new I("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new I("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new I("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new I("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new I("`loose`, if provided, must be a boolean");var T=arguments.length>3?arguments[3]:null,S=arguments.length>4?arguments[4]:null,B=arguments.length>5?arguments[5]:null,C=arguments.length>6&&arguments[6],_=!!q&&q(p,N);if(j)j(p,N,{configurable:B===null&&_?_.configurable:!B,enumerable:T===null&&_?_.enumerable:!T,value:M,writable:S===null&&_?_.writable:!S});else{if(!C&&(T||S||B))throw new O("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");p[N]=M}}},76:$=>{$.exports=Function.prototype.call},82:($,w,b)=>{var j=b(6698),O=b(8287).Buffer,I=b(7568),q=I.base,p=I.constants.der;function N(S){this.enc="der",this.name=S.name,this.entity=S,this.tree=new M,this.tree._init(S.body)}function M(S){q.Node.call(this,"der",S)}function T(S){return S<10?"0"+S:S}$.exports=N,N.prototype.encode=function(S,B){return this.tree._encode(S,B).join()},j(M,q.Node),M.prototype._encodeComposite=function(S,B,C,_){var F,U=function(Q,X,et,nt){var ut;if(Q==="seqof"?Q="seq":Q==="setof"&&(Q="set"),p.tagByName.hasOwnProperty(Q))ut=p.tagByName[Q];else{if(typeof Q!="number"||(0|Q)!==Q)return nt.error("Unknown tag: "+Q);ut=Q}return ut>=31?nt.error("Multi-octet tag encoding unsupported"):(X||(ut|=32),ut|=p.tagClassByName[et||"universal"]<<6)}(S,B,C,this.reporter);if(_.length<128)return(F=new O(2))[0]=U,F[1]=_.length,this._createEncoderBuffer([F,_]);for(var z=1,H=_.length;H>=256;H>>=8)z++;(F=new O(2+z))[0]=U,F[1]=128|z,H=1+z;for(var D=_.length;D>0;H--,D>>=8)F[H]=255&D;return this._createEncoderBuffer([F,_])},M.prototype._encodeStr=function(S,B){if(B==="bitstr")return this._createEncoderBuffer([0|S.unused,S.data]);if(B==="bmpstr"){for(var C=new O(2*S.length),_=0;_<S.length;_++)C.writeUInt16BE(S.charCodeAt(_),2*_);return this._createEncoderBuffer(C)}return B==="numstr"?this._isNumstr(S)?this._createEncoderBuffer(S):this.reporter.error("Encoding of string type: numstr supports only digits and space"):B==="printstr"?this._isPrintstr(S)?this._createEncoderBuffer(S):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(B)||B==="objDesc"?this._createEncoderBuffer(S):this.reporter.error("Encoding of string type: "+B+" unsupported")},M.prototype._encodeObjid=function(S,B,C){if(typeof S=="string"){if(!B)return this.reporter.error("string objid given, but no values map found");if(!B.hasOwnProperty(S))return this.reporter.error("objid not found in values map");S=B[S].split(/[\s\.]+/g);for(var _=0;_<S.length;_++)S[_]|=0}else if(Array.isArray(S))for(S=S.slice(),_=0;_<S.length;_++)S[_]|=0;if(!Array.isArray(S))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(S));if(!C){if(S[1]>=40)return this.reporter.error("Second objid identifier OOB");S.splice(0,2,40*S[0]+S[1])}var F=0;for(_=0;_<S.length;_++){var U=S[_];for(F++;U>=128;U>>=7)F++}var z=new O(F),H=z.length-1;for(_=S.length-1;_>=0;_--)for(U=S[_],z[H--]=127&U;(U>>=7)>0;)z[H--]=128|127&U;return this._createEncoderBuffer(z)},M.prototype._encodeTime=function(S,B){var C,_=new Date(S);return B==="gentime"?C=[T(_.getFullYear()),T(_.getUTCMonth()+1),T(_.getUTCDate()),T(_.getUTCHours()),T(_.getUTCMinutes()),T(_.getUTCSeconds()),"Z"].join(""):B==="utctime"?C=[T(_.getFullYear()%100),T(_.getUTCMonth()+1),T(_.getUTCDate()),T(_.getUTCHours()),T(_.getUTCMinutes()),T(_.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+B+" time is not supported yet"),this._encodeStr(C,"octstr")},M.prototype._encodeNull=function(){return this._createEncoderBuffer("")},M.prototype._encodeInt=function(S,B){if(typeof S=="string"){if(!B)return this.reporter.error("String int or enum given, but no values map");if(!B.hasOwnProperty(S))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(S));S=B[S]}if(typeof S!="number"&&!O.isBuffer(S)){var C=S.toArray();!S.sign&&128&C[0]&&C.unshift(0),S=new O(C)}if(O.isBuffer(S)){var _=S.length;S.length===0&&_++;var F=new O(_);return S.copy(F),S.length===0&&(F[0]=0),this._createEncoderBuffer(F)}if(S<128)return this._createEncoderBuffer(S);if(S<256)return this._createEncoderBuffer([0,S]);_=1;for(var U=S;U>=256;U>>=8)_++;for(U=(F=new Array(_)).length-1;U>=0;U--)F[U]=255&S,S>>=8;return 128&F[0]&&F.unshift(0),this._createEncoderBuffer(new O(F))},M.prototype._encodeBool=function(S){return this._createEncoderBuffer(S?255:0)},M.prototype._use=function(S,B){return typeof S=="function"&&(S=S(B)),S._getEncoder("der").tree},M.prototype._skipDefault=function(S,B,C){var _,F=this._baseState;if(F.default===null)return!1;var U=S.join();if(F.defaultBuffer===void 0&&(F.defaultBuffer=this._encodeValue(F.default,B,C).join()),U.length!==F.defaultBuffer.length)return!1;for(_=0;_<U.length;_++)if(U[_]!==F.defaultBuffer[_])return!1;return!0}},125:($,w,b)=>{var j=b(4050),O=b(1241),I=b(530),q=b(2438),p=b(8078);function N(T,S,B){if(T=T.toLowerCase(),I[T])return O.createCipheriv(T,S,B);if(q[T])return new j({key:S,iv:B,mode:T});throw new TypeError("invalid suite type")}function M(T,S,B){if(T=T.toLowerCase(),I[T])return O.createDecipheriv(T,S,B);if(q[T])return new j({key:S,iv:B,mode:T,decrypt:!0});throw new TypeError("invalid suite type")}w.createCipher=w.Cipher=function(T,S){var B,C;if(T=T.toLowerCase(),I[T])B=I[T].key,C=I[T].iv;else{if(!q[T])throw new TypeError("invalid suite type");B=8*q[T].key,C=q[T].iv}var _=p(S,!1,B,C);return N(T,_.key,_.iv)},w.createCipheriv=w.Cipheriv=N,w.createDecipher=w.Decipher=function(T,S){var B,C;if(T=T.toLowerCase(),I[T])B=I[T].key,C=I[T].iv;else{if(!q[T])throw new TypeError("invalid suite type");B=8*q[T].key,C=q[T].iv}var _=p(S,!1,B,C);return M(T,_.key,_.iv)},w.createDecipheriv=w.Decipheriv=M,w.listCiphers=w.getCiphers=function(){return Object.keys(q).concat(O.getCiphers())}},206:($,w,b)=>{var j=b(5606),O=b(3225);$.exports=D;var I,q=b(4634);D.ReadableState=H,b(7007).EventEmitter;var p=function(J,K){return J.listeners(K).length},N=b(5567),M=b(4116).Buffer,T=(b.g!==void 0?b.g:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},S=Object.create(b(5622));S.inherits=b(6698);var B=b(2668),C=void 0;C=B&&B.debuglog?B.debuglog("stream"):function(){};var _,F=b(672),U=b(6278);S.inherits(D,N);var z=["error","close","destroy","pause","resume"];function H(J,K){J=J||{};var G=K instanceof(I=I||b(6248));this.objectMode=!!J.objectMode,G&&(this.objectMode=this.objectMode||!!J.readableObjectMode);var Y=J.highWaterMark,at=J.readableHighWaterMark,ot=this.objectMode?16:16384;this.highWaterMark=Y||Y===0?Y:G&&(at||at===0)?at:ot,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new F,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=J.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,J.encoding&&(_||(_=b(6427).I),this.decoder=new _(J.encoding),this.encoding=J.encoding)}function D(J){if(I=I||b(6248),!(this instanceof D))return new D(J);this._readableState=new H(J,this),this.readable=!0,J&&(typeof J.read=="function"&&(this._read=J.read),typeof J.destroy=="function"&&(this._destroy=J.destroy)),N.call(this)}function Q(J,K,G,Y,at){var ot,ht=J._readableState;return K===null?(ht.reading=!1,function(tt,it){if(!it.ended){if(it.decoder){var Z=it.decoder.end();Z&&Z.length&&(it.buffer.push(Z),it.length+=it.objectMode?1:Z.length)}it.ended=!0,ut(tt)}}(J,ht)):(at||(ot=function(tt,it){var Z,rt;return rt=it,M.isBuffer(rt)||rt instanceof T||typeof it=="string"||it===void 0||tt.objectMode||(Z=new TypeError("Invalid non-string/buffer chunk")),Z}(ht,K)),ot?J.emit("error",ot):ht.objectMode||K&&K.length>0?(typeof K=="string"||ht.objectMode||Object.getPrototypeOf(K)===M.prototype||(K=function(tt){return M.from(tt)}(K)),Y?ht.endEmitted?J.emit("error",new Error("stream.unshift() after end event")):X(J,ht,K,!0):ht.ended?J.emit("error",new Error("stream.push() after EOF")):(ht.reading=!1,ht.decoder&&!G?(K=ht.decoder.write(K),ht.objectMode||K.length!==0?X(J,ht,K,!1):vt(J,ht)):X(J,ht,K,!1))):Y||(ht.reading=!1)),function(tt){return!tt.ended&&(tt.needReadable||tt.length<tt.highWaterMark||tt.length===0)}(ht)}function X(J,K,G,Y){K.flowing&&K.length===0&&!K.sync?(J.emit("data",G),J.read(0)):(K.length+=K.objectMode?1:G.length,Y?K.buffer.unshift(G):K.buffer.push(G),K.needReadable&&ut(J)),vt(J,K)}Object.defineProperty(D.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(J){this._readableState&&(this._readableState.destroyed=J)}}),D.prototype.destroy=U.destroy,D.prototype._undestroy=U.undestroy,D.prototype._destroy=function(J,K){this.push(null),K(J)},D.prototype.push=function(J,K){var G,Y=this._readableState;return Y.objectMode?G=!0:typeof J=="string"&&((K=K||Y.defaultEncoding)!==Y.encoding&&(J=M.from(J,K),K=""),G=!0),Q(this,J,K,!1,G)},D.prototype.unshift=function(J){return Q(this,J,null,!0,!1)},D.prototype.isPaused=function(){return this._readableState.flowing===!1},D.prototype.setEncoding=function(J){return _||(_=b(6427).I),this._readableState.decoder=new _(J),this._readableState.encoding=J,this};var et=8388608;function nt(J,K){return J<=0||K.length===0&&K.ended?0:K.objectMode?1:J!=J?K.flowing&&K.length?K.buffer.head.data.length:K.length:(J>K.highWaterMark&&(K.highWaterMark=function(G){return G>=et?G=et:(G--,G|=G>>>1,G|=G>>>2,G|=G>>>4,G|=G>>>8,G|=G>>>16,G++),G}(J)),J<=K.length?J:K.ended?K.length:(K.needReadable=!0,0))}function ut(J){var K=J._readableState;K.needReadable=!1,K.emittedReadable||(C("emitReadable",K.flowing),K.emittedReadable=!0,K.sync?O.nextTick(ct,J):ct(J))}function ct(J){C("emit readable"),J.emit("readable"),a(J)}function vt(J,K){K.readingMore||(K.readingMore=!0,O.nextTick(t,J,K))}function t(J,K){for(var G=K.length;!K.reading&&!K.flowing&&!K.ended&&K.length<K.highWaterMark&&(C("maybeReadMore read 0"),J.read(0),G!==K.length);)G=K.length;K.readingMore=!1}function h(J){C("readable nexttick read 0"),J.read(0)}function l(J,K){K.reading||(C("resume read 0"),J.read(0)),K.resumeScheduled=!1,K.awaitDrain=0,J.emit("resume"),a(J),K.flowing&&!K.reading&&J.read(0)}function a(J){var K=J._readableState;for(C("flow",K.flowing);K.flowing&&J.read()!==null;);}function r(J,K){return K.length===0?null:(K.objectMode?G=K.buffer.shift():!J||J>=K.length?(G=K.decoder?K.buffer.join(""):K.buffer.length===1?K.buffer.head.data:K.buffer.concat(K.length),K.buffer.clear()):G=function(Y,at,ot){var ht;return Y<at.head.data.length?(ht=at.head.data.slice(0,Y),at.head.data=at.head.data.slice(Y)):ht=Y===at.head.data.length?at.shift():ot?function(tt,it){var Z=it.head,rt=1,wt=Z.data;for(tt-=wt.length;Z=Z.next;){var gt=Z.data,St=tt>gt.length?gt.length:tt;if(St===gt.length?wt+=gt:wt+=gt.slice(0,tt),(tt-=St)==0){St===gt.length?(++rt,Z.next?it.head=Z.next:it.head=it.tail=null):(it.head=Z,Z.data=gt.slice(St));break}++rt}return it.length-=rt,wt}(Y,at):function(tt,it){var Z=M.allocUnsafe(tt),rt=it.head,wt=1;for(rt.data.copy(Z),tt-=rt.data.length;rt=rt.next;){var gt=rt.data,St=tt>gt.length?gt.length:tt;if(gt.copy(Z,Z.length-tt,0,St),(tt-=St)==0){St===gt.length?(++wt,rt.next?it.head=rt.next:it.head=it.tail=null):(it.head=rt,rt.data=gt.slice(St));break}++wt}return it.length-=wt,Z}(Y,at),ht}(J,K.buffer,K.decoder),G);var G}function v(J){var K=J._readableState;if(K.length>0)throw new Error('"endReadable()" called on non-empty stream');K.endEmitted||(K.ended=!0,O.nextTick(A,K,J))}function A(J,K){J.endEmitted||J.length!==0||(J.endEmitted=!0,K.readable=!1,K.emit("end"))}function W(J,K){for(var G=0,Y=J.length;G<Y;G++)if(J[G]===K)return G;return-1}D.prototype.read=function(J){C("read",J),J=parseInt(J,10);var K=this._readableState,G=J;if(J!==0&&(K.emittedReadable=!1),J===0&&K.needReadable&&(K.length>=K.highWaterMark||K.ended))return C("read: emitReadable",K.length,K.ended),K.length===0&&K.ended?v(this):ut(this),null;if((J=nt(J,K))===0&&K.ended)return K.length===0&&v(this),null;var Y,at=K.needReadable;return C("need readable",at),(K.length===0||K.length-J<K.highWaterMark)&&C("length less than watermark",at=!0),K.ended||K.reading?C("reading or ended",at=!1):at&&(C("do read"),K.reading=!0,K.sync=!0,K.length===0&&(K.needReadable=!0),this._read(K.highWaterMark),K.sync=!1,K.reading||(J=nt(G,K))),(Y=J>0?r(J,K):null)===null?(K.needReadable=!0,J=0):K.length-=J,K.length===0&&(K.ended||(K.needReadable=!0),G!==J&&K.ended&&v(this)),Y!==null&&this.emit("data",Y),Y},D.prototype._read=function(J){this.emit("error",new Error("_read() is not implemented"))},D.prototype.pipe=function(J,K){var G=this,Y=this._readableState;switch(Y.pipesCount){case 0:Y.pipes=J;break;case 1:Y.pipes=[Y.pipes,J];break;default:Y.pipes.push(J)}Y.pipesCount+=1,C("pipe count=%d opts=%j",Y.pipesCount,K);var at=K&&K.end===!1||J===j.stdout||J===j.stderr?St:ot;function ot(){C("onend"),J.end()}Y.endEmitted?O.nextTick(at):G.once("end",at),J.on("unpipe",function Lt(At,jt){C("onunpipe"),At===G&&jt&&jt.hasUnpiped===!1&&(jt.hasUnpiped=!0,C("cleanup"),J.removeListener("close",wt),J.removeListener("finish",gt),J.removeListener("drain",ht),J.removeListener("error",rt),J.removeListener("unpipe",Lt),G.removeListener("end",ot),G.removeListener("end",St),G.removeListener("data",Z),tt=!0,!Y.awaitDrain||J._writableState&&!J._writableState.needDrain||ht())});var ht=function(Lt){return function(){var At=Lt._readableState;C("pipeOnDrain",At.awaitDrain),At.awaitDrain&&At.awaitDrain--,At.awaitDrain===0&&p(Lt,"data")&&(At.flowing=!0,a(Lt))}}(G);J.on("drain",ht);var tt=!1,it=!1;function Z(Lt){C("ondata"),it=!1,J.write(Lt)!==!1||it||((Y.pipesCount===1&&Y.pipes===J||Y.pipesCount>1&&W(Y.pipes,J)!==-1)&&!tt&&(C("false write response, pause",Y.awaitDrain),Y.awaitDrain++,it=!0),G.pause())}function rt(Lt){C("onerror",Lt),St(),J.removeListener("error",rt),p(J,"error")===0&&J.emit("error",Lt)}function wt(){J.removeListener("finish",gt),St()}function gt(){C("onfinish"),J.removeListener("close",wt),St()}function St(){C("unpipe"),G.unpipe(J)}return G.on("data",Z),function(Lt,At,jt){if(typeof Lt.prependListener=="function")return Lt.prependListener(At,jt);Lt._events&&Lt._events[At]?q(Lt._events[At])?Lt._events[At].unshift(jt):Lt._events[At]=[jt,Lt._events[At]]:Lt.on(At,jt)}(J,"error",rt),J.once("close",wt),J.once("finish",gt),J.emit("pipe",G),Y.flowing||(C("pipe resume"),G.resume()),J},D.prototype.unpipe=function(J){var K=this._readableState,G={hasUnpiped:!1};if(K.pipesCount===0)return this;if(K.pipesCount===1)return J&&J!==K.pipes||(J||(J=K.pipes),K.pipes=null,K.pipesCount=0,K.flowing=!1,J&&J.emit("unpipe",this,G)),this;if(!J){var Y=K.pipes,at=K.pipesCount;K.pipes=null,K.pipesCount=0,K.flowing=!1;for(var ot=0;ot<at;ot++)Y[ot].emit("unpipe",this,{hasUnpiped:!1});return this}var ht=W(K.pipes,J);return ht===-1||(K.pipes.splice(ht,1),K.pipesCount-=1,K.pipesCount===1&&(K.pipes=K.pipes[0]),J.emit("unpipe",this,G)),this},D.prototype.on=function(J,K){var G=N.prototype.on.call(this,J,K);if(J==="data")this._readableState.flowing!==!1&&this.resume();else if(J==="readable"){var Y=this._readableState;Y.endEmitted||Y.readableListening||(Y.readableListening=Y.needReadable=!0,Y.emittedReadable=!1,Y.reading?Y.length&&ut(this):O.nextTick(h,this))}return G},D.prototype.addListener=D.prototype.on,D.prototype.resume=function(){var J=this._readableState;return J.flowing||(C("resume"),J.flowing=!0,function(K,G){G.resumeScheduled||(G.resumeScheduled=!0,O.nextTick(l,K,G))}(this,J)),this},D.prototype.pause=function(){return C("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(C("pause"),this._readableState.flowing=!1,this.emit("pause")),this},D.prototype.wrap=function(J){var K=this,G=this._readableState,Y=!1;for(var at in J.on("end",function(){if(C("wrapped end"),G.decoder&&!G.ended){var ht=G.decoder.end();ht&&ht.length&&K.push(ht)}K.push(null)}),J.on("data",function(ht){C("wrapped data"),G.decoder&&(ht=G.decoder.write(ht)),G.objectMode&&ht==null||(G.objectMode||ht&&ht.length)&&(K.push(ht)||(Y=!0,J.pause()))}),J)this[at]===void 0&&typeof J[at]=="function"&&(this[at]=function(ht){return function(){return J[ht].apply(J,arguments)}}(at));for(var ot=0;ot<z.length;ot++)J.on(z[ot],this.emit.bind(this,z[ot]));return this._read=function(ht){C("wrapped _read",ht),Y&&(Y=!1,J.resume())},this},Object.defineProperty(D.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),D._fromList=r},220:($,w,b)=>{var j=b(8490),O=b(7011),I=O.assert,q=O.cachedProperty,p=O.parseBytes;function N(M,T){this.eddsa=M,typeof T!="object"&&(T=p(T)),Array.isArray(T)&&(I(T.length===2*M.encodingLength,"Signature has invalid size"),T={R:T.slice(0,M.encodingLength),S:T.slice(M.encodingLength)}),I(T.R&&T.S,"Signature without R or S"),M.isPoint(T.R)&&(this._R=T.R),T.S instanceof j&&(this._S=T.S),this._Rencoded=Array.isArray(T.R)?T.R:T.Rencoded,this._Sencoded=Array.isArray(T.S)?T.S:T.Sencoded}q(N,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),q(N,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),q(N,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),q(N,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),N.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},N.prototype.toHex=function(){return O.encode(this.toBytes(),"hex").toUpperCase()},$.exports=N},251:($,w)=>{w.read=function(b,j,O,I,q){var p,N,M=8*q-I-1,T=(1<<M)-1,S=T>>1,B=-7,C=O?q-1:0,_=O?-1:1,F=b[j+C];for(C+=_,p=F&(1<<-B)-1,F>>=-B,B+=M;B>0;p=256*p+b[j+C],C+=_,B-=8);for(N=p&(1<<-B)-1,p>>=-B,B+=I;B>0;N=256*N+b[j+C],C+=_,B-=8);if(p===0)p=1-S;else{if(p===T)return N?NaN:1/0*(F?-1:1);N+=Math.pow(2,I),p-=S}return(F?-1:1)*N*Math.pow(2,p-I)},w.write=function(b,j,O,I,q,p){var N,M,T,S=8*p-q-1,B=(1<<S)-1,C=B>>1,_=q===23?Math.pow(2,-24)-Math.pow(2,-77):0,F=I?0:p-1,U=I?1:-1,z=j<0||j===0&&1/j<0?1:0;for(j=Math.abs(j),isNaN(j)||j===1/0?(M=isNaN(j)?1:0,N=B):(N=Math.floor(Math.log(j)/Math.LN2),j*(T=Math.pow(2,-N))<1&&(N--,T*=2),(j+=N+C>=1?_/T:_*Math.pow(2,1-C))*T>=2&&(N++,T/=2),N+C>=B?(M=0,N=B):N+C>=1?(M=(j*T-1)*Math.pow(2,q),N+=C):(M=j*Math.pow(2,C-1)*Math.pow(2,q),N=0));q>=8;b[O+F]=255&M,F+=U,M/=256,q-=8);for(N=N<<q|M,S+=q;S>0;b[O+F]=255&N,F+=U,N/=256,S-=8);b[O+F-U]|=128*z}},253:($,w,b)=>{var j=b(8287).Buffer;const{Transform:O}=b(8399);$.exports=class extends O{constructor(I,q={}){super(q),typeof I=="object"&&(I=(q=I).size),this.size=I||512;const{nopad:p,zeroPadding:N=!0}=q;this._zeroPadding=!p&&!!N,this._buffered=[],this._bufferedBytes=0}_transform(I,q,p){for(this._bufferedBytes+=I.length,this._buffered.push(I);this._bufferedBytes>=this.size;){this._bufferedBytes-=this.size;const N=[];let M=0;for(;M<this.size;){const T=this._buffered.shift();if(M+T.length<=this.size)N.push(T),M+=T.length;else{const S=this.size-M;N.push(T.slice(0,S)),M+=S,this._buffered.unshift(T.slice(S))}}this.push(j.concat(N,this.size))}p()}_flush(){if(this._bufferedBytes&&this._zeroPadding){const I=j.alloc(this.size-this._bufferedBytes);this._buffered.push(I),this.push(j.concat(this._buffered)),this._buffered=null}else this._bufferedBytes&&(this.push(j.concat(this._buffered)),this._buffered=null);this.push(null)}}},295:($,w,b)=>{var j=b(8287).Buffer;$.exports=function(O,I){for(var q=Math.min(O.length,I.length),p=new j(q),N=0;N<q;++N)p[N]=O[N]^I[N];return p}},320:($,w,b)=>{var j=b(8276);$.exports=function(O){return new j().update(O).digest()}},345:($,w,b)=>{$.exports=b(7007).EventEmitter},361:$=>{$.exports=function(w,b,j){this.tagname=w,this.parent=b,this.child={},this.attrsMap={},this.val=j,this.addChild=function(O){Array.isArray(this.child[O.tagname])?this.child[O.tagname].push(O):this.child[O.tagname]=[O]}}},370:($,w,b)=>{var j=b(8490),O=b(6698),I=b(6677),q=b(7011);function p(M){I.call(this,"mont",M),this.a=new j(M.a,16).toRed(this.red),this.b=new j(M.b,16).toRed(this.red),this.i4=new j(4).toRed(this.red).redInvm(),this.two=new j(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function N(M,T,S){I.BasePoint.call(this,M,"projective"),T===null&&S===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new j(T,16),this.z=new j(S,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}O(p,I),$.exports=p,p.prototype.validate=function(M){var T=M.normalize().x,S=T.redSqr(),B=S.redMul(T).redAdd(S.redMul(this.a)).redAdd(T);return B.redSqrt().redSqr().cmp(B)===0},O(N,I.BasePoint),p.prototype.decodePoint=function(M,T){return this.point(q.toArray(M,T),1)},p.prototype.point=function(M,T){return new N(this,M,T)},p.prototype.pointFromJSON=function(M){return N.fromJSON(this,M)},N.prototype.precompute=function(){},N.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},N.fromJSON=function(M,T){return new N(M,T[0],T[1]||M.one)},N.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)+">"},N.prototype.isInfinity=function(){return this.z.cmpn(0)===0},N.prototype.dbl=function(){var M=this.x.redAdd(this.z).redSqr(),T=this.x.redSub(this.z).redSqr(),S=M.redSub(T),B=M.redMul(T),C=S.redMul(T.redAdd(this.curve.a24.redMul(S)));return this.curve.point(B,C)},N.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},N.prototype.diffAdd=function(M,T){var S=this.x.redAdd(this.z),B=this.x.redSub(this.z),C=M.x.redAdd(M.z),_=M.x.redSub(M.z).redMul(S),F=C.redMul(B),U=T.z.redMul(_.redAdd(F).redSqr()),z=T.x.redMul(_.redISub(F).redSqr());return this.curve.point(U,z)},N.prototype.mul=function(M){for(var T=M.clone(),S=this,B=this.curve.point(null,null),C=[];T.cmpn(0)!==0;T.iushrn(1))C.push(T.andln(1));for(var _=C.length-1;_>=0;_--)C[_]===0?(S=S.diffAdd(B,this),B=B.dbl()):(B=S.diffAdd(B,this),S=S.dbl());return B},N.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},N.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},N.prototype.eq=function(M){return this.getX().cmp(M.getX())===0},N.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},N.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},382:function($,w,b){(function(){var j,O={}.hasOwnProperty;j=b(6286),$.exports=function(I){function q(p){q.__super__.constructor.call(this,p)}return function(p,N){for(var M in N)O.call(N,M)&&(p[M]=N[M]);function T(){this.constructor=p}T.prototype=N.prototype,p.prototype=new T,p.__super__=N.prototype}(q,I),q.prototype.document=function(p,N){var M,T,S,B,C;for(N=this.filterOptions(N),B="",T=0,S=(C=p.children).length;T<S;T++)M=C[T],B+=this.writeChildNode(M,N,0);return N.pretty&&B.slice(-N.newline.length)===N.newline&&(B=B.slice(0,-N.newline.length)),B},q}(j)}).call(this)},392:($,w,b)=>{var j=b(2861).Buffer;function O(I,q){this._block=j.alloc(I),this._finalSize=q,this._blockSize=I,this._len=0}O.prototype.update=function(I,q){typeof I=="string"&&(q=q||"utf8",I=j.from(I,q));for(var p=this._block,N=this._blockSize,M=I.length,T=this._len,S=0;S<M;){for(var B=T%N,C=Math.min(M-S,N-B),_=0;_<C;_++)p[B+_]=I[S+_];S+=C,(T+=C)%N==0&&this._update(p)}return this._len+=M,this},O.prototype.digest=function(I){var q=this._len%this._blockSize;this._block[q]=128,this._block.fill(0,q+1),q>=this._finalSize&&(this._update(this._block),this._block.fill(0));var p=8*this._len;if(p<=4294967295)this._block.writeUInt32BE(p,this._blockSize-4);else{var N=(4294967295&p)>>>0,M=(p-N)/4294967296;this._block.writeUInt32BE(M,this._blockSize-8),this._block.writeUInt32BE(N,this._blockSize-4)}this._update(this._block);var T=this._hash();return I?T.toString(I):T},O.prototype._update=function(){throw new Error("_update must be implemented by subclass")},$.exports=O},400:function($,w,b){(function(){var j,O,I,q,p,N,M,T,S,B,C,_,F,U,z,H,D,Q,X,et,nt,ut,ct,vt={}.hasOwnProperty;ct=b(9241),nt=ct.isObject,et=ct.isFunction,ut=ct.isPlainObject,X=ct.getValue,j=b(1737),_=b(1933),F=b(3906),q=b(2691),p=b(2679),z=b(1268),Q=b(2535),U=b(5915),B=b(4130),C=b(6376),N=b(4111),T=b(5529),M=b(7696),S=b(8012),I=b(4238),D=b(3976),H=b(382),O=b(8753),$.exports=function(){function t(h,l,a){var r;this.name="?xml",this.type=j.Document,h||(h={}),r={},h.writer?ut(h.writer)&&(r=h.writer,h.writer=new H):h.writer=new H,this.options=h,this.writer=h.writer,this.writerOptions=this.writer.filterOptions(r),this.stringify=new D(h),this.onDataCallback=l||function(){},this.onEndCallback=a||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return t.prototype.createChildNode=function(h){var l,a,r,v,A,W,J,K;switch(h.type){case j.CData:this.cdata(h.value);break;case j.Comment:this.comment(h.value);break;case j.Element:for(a in r={},J=h.attribs)vt.call(J,a)&&(l=J[a],r[a]=l.value);this.node(h.name,r);break;case j.Dummy:this.dummy();break;case j.Raw:this.raw(h.value);break;case j.Text:this.text(h.value);break;case j.ProcessingInstruction:this.instruction(h.target,h.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+h.constructor.name)}for(A=0,W=(K=h.children).length;A<W;A++)v=K[A],this.createChildNode(v),v.type===j.Element&&this.up();return this},t.prototype.dummy=function(){return this},t.prototype.node=function(h,l,a){var r;if(h==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(h));return this.openCurrent(),h=X(h),l==null&&(l={}),l=X(l),nt(l)||(a=(r=[l,a])[0],l=r[1]),this.currentNode=new F(this,h,l),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,a!=null&&this.text(a),this},t.prototype.element=function(h,l,a){var r,v,A,W,J,K;if(this.currentNode&&this.currentNode.type===j.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(h)||nt(h)||et(h))for(W=this.options.noValidation,this.options.noValidation=!0,(K=new _(this.options).element("TEMP_ROOT")).element(h),this.options.noValidation=W,v=0,A=(J=K.children).length;v<A;v++)r=J[v],this.createChildNode(r),r.type===j.Element&&this.up();else this.node(h,l,a);return this},t.prototype.attribute=function(h,l){var a,r;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(h));if(h!=null&&(h=X(h)),nt(h))for(a in h)vt.call(h,a)&&(r=h[a],this.attribute(a,r));else et(l)&&(l=l.apply()),this.options.keepNullAttributes&&l==null?this.currentNode.attribs[h]=new I(this,h,""):l!=null&&(this.currentNode.attribs[h]=new I(this,h,l));return this},t.prototype.text=function(h){var l;return this.openCurrent(),l=new Q(this,h),this.onData(this.writer.text(l,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.cdata=function(h){var l;return this.openCurrent(),l=new q(this,h),this.onData(this.writer.cdata(l,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.comment=function(h){var l;return this.openCurrent(),l=new p(this,h),this.onData(this.writer.comment(l,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.raw=function(h){var l;return this.openCurrent(),l=new z(this,h),this.onData(this.writer.raw(l,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.instruction=function(h,l){var a,r,v,A,W;if(this.openCurrent(),h!=null&&(h=X(h)),l!=null&&(l=X(l)),Array.isArray(h))for(a=0,A=h.length;a<A;a++)r=h[a],this.instruction(r);else if(nt(h))for(r in h)vt.call(h,r)&&(v=h[r],this.instruction(r,v));else et(l)&&(l=l.apply()),W=new U(this,h,l),this.onData(this.writer.processingInstruction(W,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},t.prototype.declaration=function(h,l,a){var r;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return r=new B(this,h,l,a),this.onData(this.writer.declaration(r,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.doctype=function(h,l,a){if(this.openCurrent(),h==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 C(this,l,a),this.currentNode.rootNodeName=h,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},t.prototype.dtdElement=function(h,l){var a;return this.openCurrent(),a=new M(this,h,l),this.onData(this.writer.dtdElement(a,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.attList=function(h,l,a,r,v){var A;return this.openCurrent(),A=new N(this,h,l,a,r,v),this.onData(this.writer.dtdAttList(A,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.entity=function(h,l){var a;return this.openCurrent(),a=new T(this,!1,h,l),this.onData(this.writer.dtdEntity(a,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.pEntity=function(h,l){var a;return this.openCurrent(),a=new T(this,!0,h,l),this.onData(this.writer.dtdEntity(a,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.notation=function(h,l){var a;return this.openCurrent(),a=new S(this,h,l),this.onData(this.writer.dtdNotation(a,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(h){var l,a,r,v;if(!h.isOpen){if(this.root||this.currentLevel!==0||h.type!==j.Element||(this.root=h),a="",h.type===j.Element){for(r in this.writerOptions.state=O.OpenTag,a=this.writer.indent(h,this.writerOptions,this.currentLevel)+"<"+h.name,v=h.attribs)vt.call(v,r)&&(l=v[r],a+=this.writer.attribute(l,this.writerOptions,this.currentLevel));a+=(h.children?">":"/>")+this.writer.endline(h,this.writerOptions,this.currentLevel),this.writerOptions.state=O.InsideTag}else this.writerOptions.state=O.OpenTag,a=this.writer.indent(h,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+h.rootNodeName,h.pubID&&h.sysID?a+=' PUBLIC "'+h.pubID+'" "'+h.sysID+'"':h.sysID&&(a+=' SYSTEM "'+h.sysID+'"'),h.children?(a+=" [",this.writerOptions.state=O.InsideTag):(this.writerOptions.state=O.CloseTag,a+=">"),a+=this.writer.endline(h,this.writerOptions,this.currentLevel);return this.onData(a,this.currentLevel),h.isOpen=!0}},t.prototype.closeNode=function(h){var l;if(!h.isClosed)return this.writerOptions.state=O.CloseTag,l=h.type===j.Element?this.writer.indent(h,this.writerOptions,this.currentLevel)+"</"+h.name+">"+this.writer.endline(h,this.writerOptions,this.currentLevel):this.writer.indent(h,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(h,this.writerOptions,this.currentLevel),this.writerOptions.state=O.None,this.onData(l,this.currentLevel),h.isClosed=!0},t.prototype.onData=function(h,l){return this.documentStarted=!0,this.onDataCallback(h,l+1)},t.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},t.prototype.debugInfo=function(h){return h==null?"":"node: <"+h+">"},t.prototype.ele=function(){return this.element.apply(this,arguments)},t.prototype.nod=function(h,l,a){return this.node(h,l,a)},t.prototype.txt=function(h){return this.text(h)},t.prototype.dat=function(h){return this.cdata(h)},t.prototype.com=function(h){return this.comment(h)},t.prototype.ins=function(h,l){return this.instruction(h,l)},t.prototype.dec=function(h,l,a){return this.declaration(h,l,a)},t.prototype.dtd=function(h,l,a){return this.doctype(h,l,a)},t.prototype.e=function(h,l,a){return this.element(h,l,a)},t.prototype.n=function(h,l,a){return this.node(h,l,a)},t.prototype.t=function(h){return this.text(h)},t.prototype.d=function(h){return this.cdata(h)},t.prototype.c=function(h){return this.comment(h)},t.prototype.r=function(h){return this.raw(h)},t.prototype.i=function(h,l){return this.instruction(h,l)},t.prototype.att=function(){return this.currentNode&&this.currentNode.type===j.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},t.prototype.a=function(){return this.currentNode&&this.currentNode.type===j.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},t.prototype.ent=function(h,l){return this.entity(h,l)},t.prototype.pent=function(h,l){return this.pEntity(h,l)},t.prototype.not=function(h,l){return this.notation(h,l)},t}()}).call(this)},414:$=>{$.exports=Math.round},453:($,w,b)=>{var j,O=b(9612),I=b(9383),q=b(1237),p=b(9290),N=b(9538),M=b(8068),T=b(9675),S=b(5345),B=b(1514),C=b(8968),_=b(6188),F=b(8002),U=b(5880),z=b(414),H=b(3093),D=Function,Q=function(gt){try{return D('"use strict"; return ('+gt+").constructor;")()}catch{}},X=b(5795),et=b(655),nt=function(){throw new T},ut=X?function(){try{return nt}catch{try{return X(arguments,"callee").get}catch{return nt}}}():nt,ct=b(4039)(),vt=b(3628),t=b(1064),h=b(8648),l=b(1002),a=b(76),r={},v=typeof Uint8Array<"u"&&vt?vt(Uint8Array):j,A={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?j:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?j:ArrayBuffer,"%ArrayIteratorPrototype%":ct&&vt?vt([][Symbol.iterator]()):j,"%AsyncFromSyncIteratorPrototype%":j,"%AsyncFunction%":r,"%AsyncGenerator%":r,"%AsyncGeneratorFunction%":r,"%AsyncIteratorPrototype%":r,"%Atomics%":typeof Atomics>"u"?j:Atomics,"%BigInt%":typeof BigInt>"u"?j:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?j:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?j:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?j:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":I,"%eval%":eval,"%EvalError%":q,"%Float16Array%":typeof Float16Array>"u"?j:Float16Array,"%Float32Array%":typeof Float32Array>"u"?j:Float32Array,"%Float64Array%":typeof Float64Array>"u"?j:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?j:FinalizationRegistry,"%Function%":D,"%GeneratorFunction%":r,"%Int8Array%":typeof Int8Array>"u"?j:Int8Array,"%Int16Array%":typeof Int16Array>"u"?j:Int16Array,"%Int32Array%":typeof Int32Array>"u"?j:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ct&&vt?vt(vt([][Symbol.iterator]())):j,"%JSON%":typeof JSON=="object"?JSON:j,"%Map%":typeof Map>"u"?j:Map,"%MapIteratorPrototype%":typeof Map<"u"&&ct&&vt?vt(new Map()[Symbol.iterator]()):j,"%Math%":Math,"%Number%":Number,"%Object%":O,"%Object.getOwnPropertyDescriptor%":X,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?j:Promise,"%Proxy%":typeof Proxy>"u"?j:Proxy,"%RangeError%":p,"%ReferenceError%":N,"%Reflect%":typeof Reflect>"u"?j:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?j:Set,"%SetIteratorPrototype%":typeof Set<"u"&&ct&&vt?vt(new Set()[Symbol.iterator]()):j,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?j:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ct&&vt?vt(""[Symbol.iterator]()):j,"%Symbol%":ct?Symbol:j,"%SyntaxError%":M,"%ThrowTypeError%":ut,"%TypedArray%":v,"%TypeError%":T,"%Uint8Array%":typeof Uint8Array>"u"?j:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?j:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?j:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?j:Uint32Array,"%URIError%":S,"%WeakMap%":typeof WeakMap>"u"?j:WeakMap,"%WeakRef%":typeof WeakRef>"u"?j:WeakRef,"%WeakSet%":typeof WeakSet>"u"?j:WeakSet,"%Function.prototype.call%":a,"%Function.prototype.apply%":l,"%Object.defineProperty%":et,"%Object.getPrototypeOf%":t,"%Math.abs%":B,"%Math.floor%":C,"%Math.max%":_,"%Math.min%":F,"%Math.pow%":U,"%Math.round%":z,"%Math.sign%":H,"%Reflect.getPrototypeOf%":h};if(vt)try{null.error}catch(gt){var W=vt(vt(gt));A["%Error.prototype%"]=W}var J=function gt(St){var Lt;if(St==="%AsyncFunction%")Lt=Q("async function () {}");else if(St==="%GeneratorFunction%")Lt=Q("function* () {}");else if(St==="%AsyncGeneratorFunction%")Lt=Q("async function* () {}");else if(St==="%AsyncGenerator%"){var At=gt("%AsyncGeneratorFunction%");At&&(Lt=At.prototype)}else if(St==="%AsyncIteratorPrototype%"){var jt=gt("%AsyncGenerator%");jt&&vt&&(Lt=vt(jt.prototype))}return A[St]=Lt,Lt},K={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},G=b(6743),Y=b(9957),at=G.call(a,Array.prototype.concat),ot=G.call(l,Array.prototype.splice),ht=G.call(a,String.prototype.replace),tt=G.call(a,String.prototype.slice),it=G.call(a,RegExp.prototype.exec),Z=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,rt=/\\(\\)?/g,wt=function(gt,St){var Lt,At=gt;if(Y(K,At)&&(At="%"+(Lt=K[At])[0]+"%"),Y(A,At)){var jt=A[At];if(jt===r&&(jt=J(At)),jt===void 0&&!St)throw new T("intrinsic "+gt+" exists, but is not available. Please file an issue!");return{alias:Lt,name:At,value:jt}}throw new M("intrinsic "+gt+" does not exist!")};$.exports=function(gt,St){if(typeof gt!="string"||gt.length===0)throw new T("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof St!="boolean")throw new T('"allowMissing" argument must be a boolean');if(it(/^%?[^%]*%?$/,gt)===null)throw new M("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Lt=function(Pt){var yt=tt(Pt,0,1),dt=tt(Pt,-1);if(yt==="%"&&dt!=="%")throw new M("invalid intrinsic syntax, expected closing `%`");if(dt==="%"&&yt!=="%")throw new M("invalid intrinsic syntax, expected opening `%`");var lt=[];return ht(Pt,Z,function(_t,qt,It,Nt){lt[lt.length]=It?ht(Nt,rt,"$1"):qt||_t}),lt}(gt),At=Lt.length>0?Lt[0]:"",jt=wt("%"+At+"%",St),Qt=jt.name,Dt=jt.value,zt=!1,ft=jt.alias;ft&&(At=ft[0],ot(Lt,at([0,1],ft)));for(var pt=1,mt=!0;pt<Lt.length;pt+=1){var Mt=Lt[pt],xt=tt(Mt,0,1),kt=tt(Mt,-1);if((xt==='"'||xt==="'"||xt==="`"||kt==='"'||kt==="'"||kt==="`")&&xt!==kt)throw new M("property names with quotes must have matching quotes");if(Mt!=="constructor"&&mt||(zt=!0),Y(A,Qt="%"+(At+="."+Mt)+"%"))Dt=A[Qt];else if(Dt!=null){if(!(Mt in Dt)){if(!St)throw new T("base intrinsic for "+gt+" exists, but the property is not available.");return}if(X&&pt+1>=Lt.length){var $t=X(Dt,Mt);Dt=(mt=!!$t)&&"get"in $t&&!("originalValue"in $t.get)?$t.get:Dt[Mt]}else mt=Y(Dt,Mt),Dt=Dt[Mt];mt&&!zt&&(A[Qt]=Dt)}}return Dt}},454:$=>{var w="%[a-f0-9]{2}",b=new RegExp("("+w+")|([^%]+?)","gi"),j=new RegExp("("+w+")+","gi");function O(q,p){try{return[decodeURIComponent(q.join(""))]}catch{}if(q.length===1)return q;p=p||1;var N=q.slice(0,p),M=q.slice(p);return Array.prototype.concat.call([],O(N),O(M))}function I(q){try{return decodeURIComponent(q)}catch{for(var p=q.match(b)||[],N=1;N<p.length;N++)p=(q=O(p,N).join("")).match(b)||[];return q}}$.exports=function(q){if(typeof q!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof q+"`");try{return q=q.replace(/\+/g," "),decodeURIComponent(q)}catch{return function(N){for(var M={"%FE%FF":"��","%FF%FE":"��"},T=j.exec(N);T;){try{M[T[0]]=decodeURIComponent(T[0])}catch{var S=I(T[0]);S!==T[0]&&(M[T[0]]=S)}T=j.exec(N)}M["%C2"]="�";for(var B=Object.keys(M),C=0;C<B.length;C++){var _=B[C];N=N.replace(new RegExp(_,"g"),M[_])}return N}(q)}}},462:($,w,b)=>{var j=b(2861).Buffer;function O(T){j.isBuffer(T)||(T=j.from(T));for(var S=T.length/4|0,B=new Array(S),C=0;C<S;C++)B[C]=T.readUInt32BE(4*C);return B}function I(T){for(;0<T.length;T++)T[0]=0}function q(T,S,B,C,_){for(var F,U,z,H,D=B[0],Q=B[1],X=B[2],et=B[3],nt=T[0]^S[0],ut=T[1]^S[1],ct=T[2]^S[2],vt=T[3]^S[3],t=4,h=1;h<_;h++)F=D[nt>>>24]^Q[ut>>>16&255]^X[ct>>>8&255]^et[255&vt]^S[t++],U=D[ut>>>24]^Q[ct>>>16&255]^X[vt>>>8&255]^et[255&nt]^S[t++],z=D[ct>>>24]^Q[vt>>>16&255]^X[nt>>>8&255]^et[255&ut]^S[t++],H=D[vt>>>24]^Q[nt>>>16&255]^X[ut>>>8&255]^et[255&ct]^S[t++],nt=F,ut=U,ct=z,vt=H;return F=(C[nt>>>24]<<24|C[ut>>>16&255]<<16|C[ct>>>8&255]<<8|C[255&vt])^S[t++],U=(C[ut>>>24]<<24|C[ct>>>16&255]<<16|C[vt>>>8&255]<<8|C[255&nt])^S[t++],z=(C[ct>>>24]<<24|C[vt>>>16&255]<<16|C[nt>>>8&255]<<8|C[255&ut])^S[t++],H=(C[vt>>>24]<<24|C[nt>>>16&255]<<16|C[ut>>>8&255]<<8|C[255&ct])^S[t++],[F>>>=0,U>>>=0,z>>>=0,H>>>=0]}var p=[0,1,2,4,8,16,32,64,128,27,54],N=function(){for(var T=new Array(256),S=0;S<256;S++)T[S]=S<128?S<<1:S<<1^283;for(var B=[],C=[],_=[[],[],[],[]],F=[[],[],[],[]],U=0,z=0,H=0;H<256;++H){var D=z^z<<1^z<<2^z<<3^z<<4;D=D>>>8^255&D^99,B[U]=D,C[D]=U;var Q=T[U],X=T[Q],et=T[X],nt=257*T[D]^16843008*D;_[0][U]=nt<<24|nt>>>8,_[1][U]=nt<<16|nt>>>16,_[2][U]=nt<<8|nt>>>24,_[3][U]=nt,nt=16843009*et^65537*X^257*Q^16843008*U,F[0][D]=nt<<24|nt>>>8,F[1][D]=nt<<16|nt>>>16,F[2][D]=nt<<8|nt>>>24,F[3][D]=nt,U===0?U=z=1:(U=Q^T[T[T[et^Q]]],z^=T[T[z]])}return{SBOX:B,INV_SBOX:C,SUB_MIX:_,INV_SUB_MIX:F}}();function M(T){this._key=O(T),this._reset()}M.blockSize=16,M.keySize=32,M.prototype.blockSize=M.blockSize,M.prototype.keySize=M.keySize,M.prototype._reset=function(){for(var T=this._key,S=T.length,B=S+6,C=4*(B+1),_=[],F=0;F<S;F++)_[F]=T[F];for(F=S;F<C;F++){var U=_[F-1];F%S==0?(U=U<<8|U>>>24,U=N.SBOX[U>>>24]<<24|N.SBOX[U>>>16&255]<<16|N.SBOX[U>>>8&255]<<8|N.SBOX[255&U],U^=p[F/S|0]<<24):S>6&&F%S==4&&(U=N.SBOX[U>>>24]<<24|N.SBOX[U>>>16&255]<<16|N.SBOX[U>>>8&255]<<8|N.SBOX[255&U]),_[F]=_[F-S]^U}for(var z=[],H=0;H<C;H++){var D=C-H,Q=_[D-(H%4?0:4)];z[H]=H<4||D<=4?Q:N.INV_SUB_MIX[0][N.SBOX[Q>>>24]]^N.INV_SUB_MIX[1][N.SBOX[Q>>>16&255]]^N.INV_SUB_MIX[2][N.SBOX[Q>>>8&255]]^N.INV_SUB_MIX[3][N.SBOX[255&Q]]}this._nRounds=B,this._keySchedule=_,this._invKeySchedule=z},M.prototype.encryptBlockRaw=function(T){return q(T=O(T),this._keySchedule,N.SUB_MIX,N.SBOX,this._nRounds)},M.prototype.encryptBlock=function(T){var S=this.encryptBlockRaw(T),B=j.allocUnsafe(16);return B.writeUInt32BE(S[0],0),B.writeUInt32BE(S[1],4),B.writeUInt32BE(S[2],8),B.writeUInt32BE(S[3],12),B},M.prototype.decryptBlock=function(T){var S=(T=O(T))[1];T[1]=T[3],T[3]=S;var B=q(T,this._invKeySchedule,N.INV_SUB_MIX,N.INV_SBOX,this._nRounds),C=j.allocUnsafe(16);return C.writeUInt32BE(B[0],0),C.writeUInt32BE(B[3],4),C.writeUInt32BE(B[2],8),C.writeUInt32BE(B[1],12),C},M.prototype.scrub=function(){I(this._keySchedule),I(this._invKeySchedule),I(this._key)},$.exports.AES=M},468:function($,w,b){(function(){var j,O,I,q,p,N,M,T,S,B,C,_,F,U,z,H,D,Q={}.hasOwnProperty;D=b(9241),H=D.isObject,z=D.isFunction,U=D.isEmpty,F=D.getValue,T=null,I=null,q=null,p=null,N=null,C=null,_=null,B=null,M=null,O=null,S=null,j=null,$.exports=function(){function X(et){this.parent=et,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,T||(T=b(3906),I=b(2691),q=b(2679),p=b(4130),N=b(6376),C=b(1268),_=b(2535),B=b(5915),M=b(1218),O=b(1737),S=b(6684),b(4797),j=b(4923))}return Object.defineProperty(X.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(X.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(X.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(X.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(X.prototype,"childNodes",{get:function(){return this.childNodeList&&this.childNodeList.nodes||(this.childNodeList=new S(this.children)),this.childNodeList}}),Object.defineProperty(X.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(X.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(X.prototype,"previousSibling",{get:function(){var et;return et=this.parent.children.indexOf(this),this.parent.children[et-1]||null}}),Object.defineProperty(X.prototype,"nextSibling",{get:function(){var et;return et=this.parent.children.indexOf(this),this.parent.children[et+1]||null}}),Object.defineProperty(X.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(X.prototype,"textContent",{get:function(){var et,nt,ut,ct,vt;if(this.nodeType===O.Element||this.nodeType===O.DocumentFragment){for(vt="",nt=0,ut=(ct=this.children).length;nt<ut;nt++)(et=ct[nt]).textContent&&(vt+=et.textContent);return vt}return null},set:function(et){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),X.prototype.setParent=function(et){var nt,ut,ct,vt,t;for(this.parent=et,et&&(this.options=et.options,this.stringify=et.stringify),t=[],ut=0,ct=(vt=this.children).length;ut<ct;ut++)nt=vt[ut],t.push(nt.setParent(this));return t},X.prototype.element=function(et,nt,ut){var ct,vt,t,h,l,a,r,v,A,W,J;if(a=null,nt===null&&ut==null&&(nt=(A=[{},null])[0],ut=A[1]),nt==null&&(nt={}),nt=F(nt),H(nt)||(ut=(W=[nt,ut])[0],nt=W[1]),et!=null&&(et=F(et)),Array.isArray(et))for(t=0,r=et.length;t<r;t++)vt=et[t],a=this.element(vt);else if(z(et))a=this.element(et.apply());else if(H(et)){for(l in et)if(Q.call(et,l))if(J=et[l],z(J)&&(J=J.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&l.indexOf(this.stringify.convertAttKey)===0)a=this.attribute(l.substr(this.stringify.convertAttKey.length),J);else if(!this.options.separateArrayItems&&Array.isArray(J)&&U(J))a=this.dummy();else if(H(J)&&U(J))a=this.element(l);else if(this.options.keepNullNodes||J!=null)if(!this.options.separateArrayItems&&Array.isArray(J))for(h=0,v=J.length;h<v;h++)vt=J[h],(ct={})[l]=vt,a=this.element(ct);else H(J)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&l.indexOf(this.stringify.convertTextKey)===0?a=this.element(J):(a=this.element(l)).element(J):a=this.element(l,J);else a=this.dummy()}else a=this.options.keepNullNodes||ut!==null?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&et.indexOf(this.stringify.convertTextKey)===0?this.text(ut):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&et.indexOf(this.stringify.convertCDataKey)===0?this.cdata(ut):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&et.indexOf(this.stringify.convertCommentKey)===0?this.comment(ut):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&et.indexOf(this.stringify.convertRawKey)===0?this.raw(ut):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&et.indexOf(this.stringify.convertPIKey)===0?this.instruction(et.substr(this.stringify.convertPIKey.length),ut):this.node(et,nt,ut):this.dummy();if(a==null)throw new Error("Could not create any elements with: "+et+". "+this.debugInfo());return a},X.prototype.insertBefore=function(et,nt,ut){var ct,vt,t,h,l;if(et!=null&&et.type)return h=nt,(t=et).setParent(this),h?(vt=children.indexOf(h),l=children.splice(vt),children.push(t),Array.prototype.push.apply(children,l)):children.push(t),t;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(et));return vt=this.parent.children.indexOf(this),l=this.parent.children.splice(vt),ct=this.parent.element(et,nt,ut),Array.prototype.push.apply(this.parent.children,l),ct},X.prototype.insertAfter=function(et,nt,ut){var ct,vt,t;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(et));return vt=this.parent.children.indexOf(this),t=this.parent.children.splice(vt+1),ct=this.parent.element(et,nt,ut),Array.prototype.push.apply(this.parent.children,t),ct},X.prototype.remove=function(){var et;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return et=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[et,et-et+1].concat([])),this.parent},X.prototype.node=function(et,nt,ut){var ct,vt;return et!=null&&(et=F(et)),nt||(nt={}),nt=F(nt),H(nt)||(ut=(vt=[nt,ut])[0],nt=vt[1]),ct=new T(this,et,nt),ut!=null&&ct.text(ut),this.children.push(ct),ct},X.prototype.text=function(et){var nt;return H(et)&&this.element(et),nt=new _(this,et),this.children.push(nt),this},X.prototype.cdata=function(et){var nt;return nt=new I(this,et),this.children.push(nt),this},X.prototype.comment=function(et){var nt;return nt=new q(this,et),this.children.push(nt),this},X.prototype.commentBefore=function(et){var nt,ut;return nt=this.parent.children.indexOf(this),ut=this.parent.children.splice(nt),this.parent.comment(et),Array.prototype.push.apply(this.parent.children,ut),this},X.prototype.commentAfter=function(et){var nt,ut;return nt=this.parent.children.indexOf(this),ut=this.parent.children.splice(nt+1),this.parent.comment(et),Array.prototype.push.apply(this.parent.children,ut),this},X.prototype.raw=function(et){var nt;return nt=new C(this,et),this.children.push(nt),this},X.prototype.dummy=function(){return new M(this)},X.prototype.instruction=function(et,nt){var ut,ct,vt,t,h;if(et!=null&&(et=F(et)),nt!=null&&(nt=F(nt)),Array.isArray(et))for(t=0,h=et.length;t<h;t++)ut=et[t],this.instruction(ut);else if(H(et))for(ut in et)Q.call(et,ut)&&(ct=et[ut],this.instruction(ut,ct));else z(nt)&&(nt=nt.apply()),vt=new B(this,et,nt),this.children.push(vt);return this},X.prototype.instructionBefore=function(et,nt){var ut,ct;return ut=this.parent.children.indexOf(this),ct=this.parent.children.splice(ut),this.parent.instruction(et,nt),Array.prototype.push.apply(this.parent.children,ct),this},X.prototype.instructionAfter=function(et,nt){var ut,ct;return ut=this.parent.children.indexOf(this),ct=this.parent.children.splice(ut+1),this.parent.instruction(et,nt),Array.prototype.push.apply(this.parent.children,ct),this},X.prototype.declaration=function(et,nt,ut){var ct,vt;return ct=this.document(),vt=new p(ct,et,nt,ut),ct.children.length===0?ct.children.unshift(vt):ct.children[0].type===O.Declaration?ct.children[0]=vt:ct.children.unshift(vt),ct.root()||ct},X.prototype.dtd=function(et,nt){var ut,ct,vt,t,h,l,a,r,v;for(ut=this.document(),ct=new N(ut,et,nt),vt=t=0,l=(r=ut.children).length;t<l;vt=++t)if(r[vt].type===O.DocType)return ut.children[vt]=ct,ct;for(vt=h=0,a=(v=ut.children).length;h<a;vt=++h)if(v[vt].isRoot)return ut.children.splice(vt,0,ct),ct;return ut.children.push(ct),ct},X.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},X.prototype.root=function(){var et;for(et=this;et;){if(et.type===O.Document)return et.rootObject;if(et.isRoot)return et;et=et.parent}},X.prototype.document=function(){var et;for(et=this;et;){if(et.type===O.Document)return et;et=et.parent}},X.prototype.end=function(et){return this.document().end(et)},X.prototype.prev=function(){var et;if((et=this.parent.children.indexOf(this))<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[et-1]},X.prototype.next=function(){var et;if((et=this.parent.children.indexOf(this))===-1||et===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[et+1]},X.prototype.importDocument=function(et){var nt;return(nt=et.root().clone()).parent=this,nt.isRoot=!1,this.children.push(nt),this},X.prototype.debugInfo=function(et){var nt,ut;return(et=et||this.name)!=null||(nt=this.parent)!=null&&nt.name?et==null?"parent: <"+this.parent.name+">":(ut=this.parent)!=null&&ut.name?"node: <"+et+">, parent: <"+this.parent.name+">":"node: <"+et+">":""},X.prototype.ele=function(et,nt,ut){return this.element(et,nt,ut)},X.prototype.nod=function(et,nt,ut){return this.node(et,nt,ut)},X.prototype.txt=function(et){return this.text(et)},X.prototype.dat=function(et){return this.cdata(et)},X.prototype.com=function(et){return this.comment(et)},X.prototype.ins=function(et,nt){return this.instruction(et,nt)},X.prototype.doc=function(){return this.document()},X.prototype.dec=function(et,nt,ut){return this.declaration(et,nt,ut)},X.prototype.e=function(et,nt,ut){return this.element(et,nt,ut)},X.prototype.n=function(et,nt,ut){return this.node(et,nt,ut)},X.prototype.t=function(et){return this.text(et)},X.prototype.d=function(et){return this.cdata(et)},X.prototype.c=function(et){return this.comment(et)},X.prototype.r=function(et){return this.raw(et)},X.prototype.i=function(et,nt){return this.instruction(et,nt)},X.prototype.u=function(){return this.up()},X.prototype.importXMLBuilder=function(et){return this.importDocument(et)},X.prototype.replaceChild=function(et,nt){throw new Error("This DOM method is not implemented."+this.debugInfo())},X.prototype.removeChild=function(et){throw new Error("This DOM method is not implemented."+this.debugInfo())},X.prototype.appendChild=function(et){throw new Error("This DOM method is not implemented."+this.debugInfo())},X.prototype.hasChildNodes=function(){return this.children.length!==0},X.prototype.cloneNode=function(et){throw new Error("This DOM method is not implemented."+this.debugInfo())},X.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},X.prototype.isSupported=function(et,nt){return!0},X.prototype.hasAttributes=function(){return this.attribs.length!==0},X.prototype.compareDocumentPosition=function(et){var nt,ut;return(nt=this)===et?0:this.document()!==et.document()?(ut=j.Disconnected|j.ImplementationSpecific,Math.random()<.5?ut|=j.Preceding:ut|=j.Following,ut):nt.isAncestor(et)?j.Contains|j.Preceding:nt.isDescendant(et)?j.Contains|j.Following:nt.isPreceding(et)?j.Preceding:j.Following},X.prototype.isSameNode=function(et){throw new Error("This DOM method is not implemented."+this.debugInfo())},X.prototype.lookupPrefix=function(et){throw new Error("This DOM method is not implemented."+this.debugInfo())},X.prototype.isDefaultNamespace=function(et){throw new Error("This DOM method is not implemented."+this.debugInfo())},X.prototype.lookupNamespaceURI=function(et){throw new Error("This DOM method is not implemented."+this.debugInfo())},X.prototype.isEqualNode=function(et){var nt,ut,ct;if(et.nodeType!==this.nodeType||et.children.length!==this.children.length)return!1;for(nt=ut=0,ct=this.children.length-1;0<=ct?ut<=ct:ut>=ct;nt=0<=ct?++ut:--ut)if(!this.children[nt].isEqualNode(et.children[nt]))return!1;return!0},X.prototype.getFeature=function(et,nt){throw new Error("This DOM method is not implemented."+this.debugInfo())},X.prototype.setUserData=function(et,nt,ut){throw new Error("This DOM method is not implemented."+this.debugInfo())},X.prototype.getUserData=function(et){throw new Error("This DOM method is not implemented."+this.debugInfo())},X.prototype.contains=function(et){return!!et&&(et===this||this.isDescendant(et))},X.prototype.isDescendant=function(et){var nt,ut,ct,vt;for(ut=0,ct=(vt=this.children).length;ut<ct;ut++)if(et===(nt=vt[ut])||nt.isDescendant(et))return!0;return!1},X.prototype.isAncestor=function(et){return et.isDescendant(this)},X.prototype.isPreceding=function(et){var nt,ut;return nt=this.treePosition(et),ut=this.treePosition(this),nt!==-1&&ut!==-1&&nt<ut},X.prototype.isFollowing=function(et){var nt,ut;return nt=this.treePosition(et),ut=this.treePosition(this),nt!==-1&&ut!==-1&&nt>ut},X.prototype.treePosition=function(et){var nt,ut;return ut=0,nt=!1,this.foreachTreeNode(this.document(),function(ct){if(ut++,!nt&&ct===et)return nt=!0}),nt?ut:-1},X.prototype.foreachTreeNode=function(et,nt){var ut,ct,vt,t,h;for(et||(et=this.document()),ct=0,vt=(t=et.children).length;ct<vt;ct++)if((h=nt(ut=t[ct]))||(h=this.foreachTreeNode(ut,nt)))return h},X}()}).call(this)},480:($,w,b)=>{var j,O=w,I=b(7952),q=b(894),p=b(7011).assert;function N(T){T.type==="short"?this.curve=new q.short(T):T.type==="edwards"?this.curve=new q.edwards(T):this.curve=new q.mont(T),this.g=this.curve.g,this.n=this.curve.n,this.hash=T.hash,p(this.g.validate(),"Invalid curve"),p(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function M(T,S){Object.defineProperty(O,T,{configurable:!0,enumerable:!0,get:function(){var B=new N(S);return Object.defineProperty(O,T,{configurable:!0,enumerable:!0,value:B}),B}})}O.PresetCurve=N,M("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:I.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),M("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:I.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),M("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:I.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),M("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:I.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"]}),M("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:I.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"]}),M("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:I.sha256,gRed:!1,g:["9"]}),M("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:I.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{j=b(4011)}catch{j=void 0}M("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:I.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",j]})},487:($,w,b)=>{var j=b(6897),O=b(655),I=b(3126),q=b(2205);$.exports=function(p){var N=I(arguments),M=p.length-(arguments.length-1);return j(N,1+(M>0?M:0),!0)},O?O($.exports,"apply",{value:q}):$.exports.apply=q},507:($,w,b)=>{var j=b(453),O=b(6556),I=b(8859),q=b(9675),p=j("%Map%",!0),N=O("Map.prototype.get",!0),M=O("Map.prototype.set",!0),T=O("Map.prototype.has",!0),S=O("Map.prototype.delete",!0),B=O("Map.prototype.size",!0);$.exports=!!p&&function(){var C,_={assert:function(F){if(!_.has(F))throw new q("Side channel does not contain "+I(F))},delete:function(F){if(C){var U=S(C,F);return B(C)===0&&(C=void 0),U}return!1},get:function(F){if(C)return N(C,F)},has:function(F){return!!C&&T(C,F)},set:function(F,U){C||(C=new p),M(C,F,U)}};return _}},528:$=>{$.exports=(w,b)=>{if(typeof w!="string"||typeof b!="string")throw new TypeError("Expected the arguments to be of type `string`");if(b==="")return[w];const j=w.indexOf(b);return j===-1?[w]:[w.slice(0,j),w.slice(j+b.length)]}},530:($,w,b)=>{var j={ECB:b(2632),CBC:b(2884),CFB:b(6383),CFB8:b(6975),CFB1:b(5264),OFB:b(6843),CTR:b(3053),GCM:b(3053)},O=b(3219);for(var I in O)O[I].module=j[O[I].mode];$.exports=O},537:($,w,b)=>{var j=b(5606),O=b(6763),I=Object.getOwnPropertyDescriptors||function(A){for(var W=Object.keys(A),J={},K=0;K<W.length;K++)J[W[K]]=Object.getOwnPropertyDescriptor(A,W[K]);return J},q=/%[sdj%]/g;w.format=function(A){if(!Q(A)){for(var W=[],J=0;J<arguments.length;J++)W.push(T(arguments[J]));return W.join(" ")}J=1;for(var K=arguments,G=K.length,Y=String(A).replace(q,function(ot){if(ot==="%%")return"%";if(J>=G)return ot;switch(ot){case"%s":return String(K[J++]);case"%d":return Number(K[J++]);case"%j":try{return JSON.stringify(K[J++])}catch{return"[Circular]"}default:return ot}}),at=K[J];J<G;at=K[++J])H(at)||!nt(at)?Y+=" "+at:Y+=" "+T(at);return Y},w.deprecate=function(A,W){if(j!==void 0&&j.noDeprecation===!0)return A;if(j===void 0)return function(){return w.deprecate(A,W).apply(this,arguments)};var J=!1;return function(){if(!J){if(j.throwDeprecation)throw new Error(W);j.traceDeprecation?O.trace(W):O.error(W),J=!0}return A.apply(this,arguments)}};var p={},N=/^$/;if(j.env.NODE_DEBUG){var M=j.env.NODE_DEBUG;M=M.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),N=new RegExp("^"+M+"$","i")}function T(A,W){var J={seen:[],stylize:B};return arguments.length>=3&&(J.depth=arguments[2]),arguments.length>=4&&(J.colors=arguments[3]),z(W)?J.showHidden=W:W&&w._extend(J,W),X(J.showHidden)&&(J.showHidden=!1),X(J.depth)&&(J.depth=2),X(J.colors)&&(J.colors=!1),X(J.customInspect)&&(J.customInspect=!0),J.colors&&(J.stylize=S),C(J,A,J.depth)}function S(A,W){var J=T.styles[W];return J?"\x1B["+T.colors[J][0]+"m"+A+"\x1B["+T.colors[J][1]+"m":A}function B(A,W){return A}function C(A,W,J){if(A.customInspect&&W&&vt(W.inspect)&&W.inspect!==w.inspect&&(!W.constructor||W.constructor.prototype!==W)){var K=W.inspect(J,A);return Q(K)||(K=C(A,K,J)),K}var G=function(rt,wt){if(X(wt))return rt.stylize("undefined","undefined");if(Q(wt)){var gt="'"+JSON.stringify(wt).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return rt.stylize(gt,"string")}return D(wt)?rt.stylize(""+wt,"number"):z(wt)?rt.stylize(""+wt,"boolean"):H(wt)?rt.stylize("null","null"):void 0}(A,W);if(G)return G;var Y=Object.keys(W),at=function(rt){var wt={};return rt.forEach(function(gt,St){wt[gt]=!0}),wt}(Y);if(A.showHidden&&(Y=Object.getOwnPropertyNames(W)),ct(W)&&(Y.indexOf("message")>=0||Y.indexOf("description")>=0))return _(W);if(Y.length===0){if(vt(W)){var ot=W.name?": "+W.name:"";return A.stylize("[Function"+ot+"]","special")}if(et(W))return A.stylize(RegExp.prototype.toString.call(W),"regexp");if(ut(W))return A.stylize(Date.prototype.toString.call(W),"date");if(ct(W))return _(W)}var ht,tt="",it=!1,Z=["{","}"];return U(W)&&(it=!0,Z=["[","]"]),vt(W)&&(tt=" [Function"+(W.name?": "+W.name:"")+"]"),et(W)&&(tt=" "+RegExp.prototype.toString.call(W)),ut(W)&&(tt=" "+Date.prototype.toUTCString.call(W)),ct(W)&&(tt=" "+_(W)),Y.length!==0||it&&W.length!=0?J<0?et(W)?A.stylize(RegExp.prototype.toString.call(W),"regexp"):A.stylize("[Object]","special"):(A.seen.push(W),ht=it?function(rt,wt,gt,St,Lt){for(var At=[],jt=0,Qt=wt.length;jt<Qt;++jt)a(wt,String(jt))?At.push(F(rt,wt,gt,St,String(jt),!0)):At.push("");return Lt.forEach(function(Dt){Dt.match(/^\d+$/)||At.push(F(rt,wt,gt,St,Dt,!0))}),At}(A,W,J,at,Y):Y.map(function(rt){return F(A,W,J,at,rt,it)}),A.seen.pop(),function(rt,wt,gt){return rt.reduce(function(St,Lt){return Lt.indexOf(`
16
+ `),St+Lt.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?gt[0]+(wt===""?"":wt+`
17
+ `)+" "+rt.join(`,
18
+ `)+" "+gt[1]:gt[0]+wt+" "+rt.join(", ")+" "+gt[1]}(ht,tt,Z)):Z[0]+tt+Z[1]}function _(A){return"["+Error.prototype.toString.call(A)+"]"}function F(A,W,J,K,G,Y){var at,ot,ht;if((ht=Object.getOwnPropertyDescriptor(W,G)||{value:W[G]}).get?ot=ht.set?A.stylize("[Getter/Setter]","special"):A.stylize("[Getter]","special"):ht.set&&(ot=A.stylize("[Setter]","special")),a(K,G)||(at="["+G+"]"),ot||(A.seen.indexOf(ht.value)<0?(ot=H(J)?C(A,ht.value,null):C(A,ht.value,J-1)).indexOf(`
19
+ `)>-1&&(ot=Y?ot.split(`
20
+ `).map(function(tt){return" "+tt}).join(`
21
+ `).slice(2):`
22
+ `+ot.split(`
23
+ `).map(function(tt){return" "+tt}).join(`
24
+ `)):ot=A.stylize("[Circular]","special")),X(at)){if(Y&&G.match(/^\d+$/))return ot;(at=JSON.stringify(""+G)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(at=at.slice(1,-1),at=A.stylize(at,"name")):(at=at.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),at=A.stylize(at,"string"))}return at+": "+ot}function U(A){return Array.isArray(A)}function z(A){return typeof A=="boolean"}function H(A){return A===null}function D(A){return typeof A=="number"}function Q(A){return typeof A=="string"}function X(A){return A===void 0}function et(A){return nt(A)&&t(A)==="[object RegExp]"}function nt(A){return typeof A=="object"&&A!==null}function ut(A){return nt(A)&&t(A)==="[object Date]"}function ct(A){return nt(A)&&(t(A)==="[object Error]"||A instanceof Error)}function vt(A){return typeof A=="function"}function t(A){return Object.prototype.toString.call(A)}function h(A){return A<10?"0"+A.toString(10):A.toString(10)}w.debuglog=function(A){if(A=A.toUpperCase(),!p[A])if(N.test(A)){var W=j.pid;p[A]=function(){var J=w.format.apply(w,arguments);O.error("%s %d: %s",A,W,J)}}else p[A]=function(){};return p[A]},w.inspect=T,T.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]},T.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},w.types=b(9032),w.isArray=U,w.isBoolean=z,w.isNull=H,w.isNullOrUndefined=function(A){return A==null},w.isNumber=D,w.isString=Q,w.isSymbol=function(A){return typeof A=="symbol"},w.isUndefined=X,w.isRegExp=et,w.types.isRegExp=et,w.isObject=nt,w.isDate=ut,w.types.isDate=ut,w.isError=ct,w.types.isNativeError=ct,w.isFunction=vt,w.isPrimitive=function(A){return A===null||typeof A=="boolean"||typeof A=="number"||typeof A=="string"||typeof A=="symbol"||A===void 0},w.isBuffer=b(1135);var l=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function a(A,W){return Object.prototype.hasOwnProperty.call(A,W)}w.log=function(){var A,W;O.log("%s - %s",(W=[h((A=new Date).getHours()),h(A.getMinutes()),h(A.getSeconds())].join(":"),[A.getDate(),l[A.getMonth()],W].join(" ")),w.format.apply(w,arguments))},w.inherits=b(6698),w._extend=function(A,W){if(!W||!nt(W))return A;for(var J=Object.keys(W),K=J.length;K--;)A[J[K]]=W[J[K]];return A};var r=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function v(A,W){if(!A){var J=new Error("Promise was rejected with a falsy value");J.reason=A,A=J}return W(A)}w.promisify=function(A){if(typeof A!="function")throw new TypeError('The "original" argument must be of type Function');if(r&&A[r]){var W;if(typeof(W=A[r])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(W,r,{value:W,enumerable:!1,writable:!1,configurable:!0}),W}function W(){for(var J,K,G=new Promise(function(ot,ht){J=ot,K=ht}),Y=[],at=0;at<arguments.length;at++)Y.push(arguments[at]);Y.push(function(ot,ht){ot?K(ot):J(ht)});try{A.apply(this,Y)}catch(ot){K(ot)}return G}return Object.setPrototypeOf(W,Object.getPrototypeOf(A)),r&&Object.defineProperty(W,r,{value:W,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(W,I(A))},w.promisify.custom=r,w.callbackify=function(A){if(typeof A!="function")throw new TypeError('The "original" argument must be of type Function');function W(){for(var J=[],K=0;K<arguments.length;K++)J.push(arguments[K]);var G=J.pop();if(typeof G!="function")throw new TypeError("The last argument must be of type Function");var Y=this,at=function(){return G.apply(Y,arguments)};A.apply(this,J).then(function(ot){j.nextTick(at.bind(null,null,ot))},function(ot){j.nextTick(v.bind(null,ot,at))})}return Object.setPrototypeOf(W,Object.getPrototypeOf(A)),Object.defineProperties(W,I(A)),W}},592:($,w,b)=>{var j=b(655),O=function(){return!!j};O.hasArrayLengthDefineBug=function(){if(!j)return null;try{return j([],"length",{value:1}).length!==1}catch{return!0}},$.exports=O},635:($,w,b)=>{const j=b(5334).buildOptions,O={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataTagName:!1,cdataPositionChar:"\\c",format:!1,indentBy:" ",supressEmptyNode:!1,tagValueProcessor:function(z){return z},attrValueProcessor:function(z){return z}},I=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","cdataTagName","cdataPositionChar","format","indentBy","supressEmptyNode","tagValueProcessor","attrValueProcessor","rootNodeName"];function q(z){this.options=j(z,O,I),this.options.ignoreAttributes||this.options.attrNodeName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=F),this.options.cdataTagName?this.isCDATA=U:this.isCDATA=function(){return!1},this.replaceCDATAstr=N,this.replaceCDATAarr=M,this.processTextOrObjNode=p,this.options.format?(this.indentate=_,this.tagEndChar=`>
25
+ `,this.newLine=`
26
+ `):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""),this.options.supressEmptyNode?(this.buildTextNode=C,this.buildObjNode=S):(this.buildTextNode=B,this.buildObjNode=T),this.buildTextValNode=B,this.buildObjectNode=T}function p(z,H,D){const Q=this.j2x(z,D+1);return z[this.options.textNodeName]!==void 0&&Object.keys(z).length===1?this.buildTextNode(Q.val,H,Q.attrStr,D):this.buildObjNode(Q.val,H,Q.attrStr,D)}function N(z,H){return z=this.options.tagValueProcessor(""+z),this.options.cdataPositionChar===""||z===""?z+"<![CDATA["+H+"]]"+this.tagEndChar:z.replace(this.options.cdataPositionChar,"<![CDATA["+H+"]]"+this.tagEndChar)}function M(z,H){if(z=this.options.tagValueProcessor(""+z),this.options.cdataPositionChar===""||z==="")return z+"<![CDATA["+H.join("]]><![CDATA[")+"]]"+this.tagEndChar;for(let D in H)z=z.replace(this.options.cdataPositionChar,"<![CDATA["+H[D]+"]]>");return z+this.newLine}function T(z,H,D,Q){return D&&z.indexOf("<")===-1?this.indentate(Q)+"<"+H+D+">"+z+"</"+H+this.tagEndChar:this.indentate(Q)+"<"+H+D+this.tagEndChar+z+this.indentate(Q)+"</"+H+this.tagEndChar}function S(z,H,D,Q){return z!==""?this.buildObjectNode(z,H,D,Q):this.indentate(Q)+"<"+H+D+"/"+this.tagEndChar}function B(z,H,D,Q){return this.indentate(Q)+"<"+H+D+">"+this.options.tagValueProcessor(z)+"</"+H+this.tagEndChar}function C(z,H,D,Q){return z!==""?this.buildTextValNode(z,H,D,Q):this.indentate(Q)+"<"+H+D+"/"+this.tagEndChar}function _(z){return this.options.indentBy.repeat(z)}function F(z){return!!z.startsWith(this.options.attributeNamePrefix)&&z.substr(this.attrPrefixLen)}function U(z){return z===this.options.cdataTagName}q.prototype.parse=function(z){return Array.isArray(z)&&this.options.rootNodeName&&this.options.rootNodeName.length>1&&(z={[this.options.rootNodeName]:z}),this.j2x(z,0).val},q.prototype.j2x=function(z,H){let D="",Q="";for(let X in z)if(z[X]!==void 0)if(z[X]===null)Q+=this.indentate(H)+"<"+X+"/"+this.tagEndChar;else if(z[X]instanceof Date)Q+=this.buildTextNode(z[X],X,"",H);else if(typeof z[X]!="object"){const et=this.isAttribute(X);et?D+=" "+et+'="'+this.options.attrValueProcessor(""+z[X])+'"':this.isCDATA(X)?z[this.options.textNodeName]?Q+=this.replaceCDATAstr(z[this.options.textNodeName],z[X]):Q+=this.replaceCDATAstr("",z[X]):X===this.options.textNodeName?z[this.options.cdataTagName]||(Q+=this.options.tagValueProcessor(""+z[X])):Q+=this.buildTextNode(z[X],X,"",H)}else if(Array.isArray(z[X]))if(this.isCDATA(X))Q+=this.indentate(H),z[this.options.textNodeName]?Q+=this.replaceCDATAarr(z[this.options.textNodeName],z[X]):Q+=this.replaceCDATAarr("",z[X]);else{const et=z[X].length;for(let nt=0;nt<et;nt++){const ut=z[X][nt];ut===void 0||(Q+=ut===null?this.indentate(H)+"<"+X+"/"+this.tagEndChar:typeof ut=="object"?this.processTextOrObjNode(ut,X,H):this.buildTextNode(ut,X,"",H))}}else if(this.options.attrNodeName&&X===this.options.attrNodeName){const et=Object.keys(z[X]),nt=et.length;for(let ut=0;ut<nt;ut++)D+=" "+et[ut]+'="'+this.options.attrValueProcessor(""+z[X][et[ut]])+'"'}else Q+=this.processTextOrObjNode(z[X],X,H);return{attrStr:D,val:Q}},$.exports=q},640:function($){(function(w){const b="(0?\\d+|0x[a-f0-9]+)",j={fourOctet:new RegExp(`^${b}\\.${b}\\.${b}\\.${b}$`,"i"),threeOctet:new RegExp(`^${b}\\.${b}\\.${b}$`,"i"),twoOctet:new RegExp(`^${b}\\.${b}$`,"i"),longValue:new RegExp(`^${b}$`,"i")},O=new RegExp("^0[0-7]+$","i"),I=new RegExp("^0x[a-f0-9]+$","i"),q="%[0-9a-z]{1,}",p="(?:[0-9a-f]+::?)+",N={zoneIndex:new RegExp(q,"i"),native:new RegExp(`^(::)?(${p})?([0-9a-f]+)?(::)?(${q})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${b}\\.${b}\\.${b}\\.${b}(${q})?)$`,"i"),transitional:new RegExp(`^((?:${p})|(?:::)(?:${p})?)${b}\\.${b}\\.${b}\\.${b}(${q})?$`,"i")};function M(_,F){if(_.indexOf("::")!==_.lastIndexOf("::"))return null;let U,z,H=0,D=-1,Q=(_.match(N.zoneIndex)||[])[0];for(Q&&(Q=Q.substring(1),_=_.replace(/%.+$/,""));(D=_.indexOf(":",D+1))>=0;)H++;if(_.substr(0,2)==="::"&&H--,_.substr(-2,2)==="::"&&H--,H>F)return null;for(z=F-H,U=":";z--;)U+="0:";return(_=_.replace("::",U))[0]===":"&&(_=_.slice(1)),_[_.length-1]===":"&&(_=_.slice(0,-1)),{parts:F=function(){const X=_.split(":"),et=[];for(let nt=0;nt<X.length;nt++)et.push(parseInt(X[nt],16));return et}(),zoneId:Q}}function T(_,F,U,z){if(_.length!==F.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let H,D=0;for(;z>0;){if(H=U-z,H<0&&(H=0),_[D]>>H!=F[D]>>H)return!1;z-=U,D+=1}return!0}function S(_){if(I.test(_))return parseInt(_,16);if(_[0]==="0"&&!isNaN(parseInt(_[1],10))){if(O.test(_))return parseInt(_,8);throw new Error(`ipaddr: cannot parse ${_} as octal`)}return parseInt(_,10)}function B(_,F){for(;_.length<F;)_=`0${_}`;return _}const C={};C.IPv4=function(){function _(F){if(F.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let U,z;for(U=0;U<F.length;U++)if(z=F[U],!(0<=z&&z<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=F}return _.prototype.SpecialRanges={unspecified:[[new _([0,0,0,0]),8]],broadcast:[[new _([255,255,255,255]),32]],multicast:[[new _([224,0,0,0]),4]],linkLocal:[[new _([169,254,0,0]),16]],loopback:[[new _([127,0,0,0]),8]],carrierGradeNat:[[new _([100,64,0,0]),10]],private:[[new _([10,0,0,0]),8],[new _([172,16,0,0]),12],[new _([192,168,0,0]),16]],reserved:[[new _([192,0,0,0]),24],[new _([192,0,2,0]),24],[new _([192,88,99,0]),24],[new _([198,18,0,0]),15],[new _([198,51,100,0]),24],[new _([203,0,113,0]),24],[new _([240,0,0,0]),4]],as112:[[new _([192,175,48,0]),24],[new _([192,31,196,0]),24]],amt:[[new _([192,52,193,0]),24]]},_.prototype.kind=function(){return"ipv4"},_.prototype.match=function(F,U){let z;if(U===void 0&&(z=F,F=z[0],U=z[1]),F.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return T(this.octets,F.octets,8,U)},_.prototype.prefixLengthFromSubnetMask=function(){let F=0,U=!1;const z={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0};let H,D,Q;for(H=3;H>=0;H-=1){if(D=this.octets[H],!(D in z)||(Q=z[D],U&&Q!==0))return null;Q!==8&&(U=!0),F+=Q}return 32-F},_.prototype.range=function(){return C.subnetMatch(this,this.SpecialRanges)},_.prototype.toByteArray=function(){return this.octets.slice(0)},_.prototype.toIPv4MappedAddress=function(){return C.IPv6.parse(`::ffff:${this.toString()}`)},_.prototype.toNormalizedString=function(){return this.toString()},_.prototype.toString=function(){return this.octets.join(".")},_}(),C.IPv4.broadcastAddressFromCIDR=function(_){try{const F=this.parseCIDR(_),U=F[0].toByteArray(),z=this.subnetMaskFromPrefixLength(F[1]).toByteArray(),H=[];let D=0;for(;D<4;)H.push(parseInt(U[D],10)|255^parseInt(z[D],10)),D++;return new this(H)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},C.IPv4.isIPv4=function(_){return this.parser(_)!==null},C.IPv4.isValid=function(_){try{return new this(this.parser(_)),!0}catch{return!1}},C.IPv4.isValidCIDR=function(_){try{return this.parseCIDR(_),!0}catch{return!1}},C.IPv4.isValidFourPartDecimal=function(_){return!(!C.IPv4.isValid(_)||!_.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},C.IPv4.networkAddressFromCIDR=function(_){let F,U,z,H,D;try{for(F=this.parseCIDR(_),z=F[0].toByteArray(),D=this.subnetMaskFromPrefixLength(F[1]).toByteArray(),H=[],U=0;U<4;)H.push(parseInt(z[U],10)&parseInt(D[U],10)),U++;return new this(H)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},C.IPv4.parse=function(_){const F=this.parser(_);if(F===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(F)},C.IPv4.parseCIDR=function(_){let F;if(F=_.match(/^(.+)\/(\d+)$/)){const U=parseInt(F[2]);if(U>=0&&U<=32){const z=[this.parse(F[1]),U];return Object.defineProperty(z,"toString",{value:function(){return this.join("/")}}),z}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},C.IPv4.parser=function(_){let F,U,z;if(F=_.match(j.fourOctet))return function(){const H=F.slice(1,6),D=[];for(let Q=0;Q<H.length;Q++)U=H[Q],D.push(S(U));return D}();if(F=_.match(j.longValue)){if(z=S(F[1]),z>4294967295||z<0)throw new Error("ipaddr: address outside defined range");return function(){const H=[];let D;for(D=0;D<=24;D+=8)H.push(z>>D&255);return H}().reverse()}return(F=_.match(j.twoOctet))?function(){const H=F.slice(1,4),D=[];if(z=S(H[1]),z>16777215||z<0)throw new Error("ipaddr: address outside defined range");return D.push(S(H[0])),D.push(z>>16&255),D.push(z>>8&255),D.push(255&z),D}():(F=_.match(j.threeOctet))?function(){const H=F.slice(1,5),D=[];if(z=S(H[2]),z>65535||z<0)throw new Error("ipaddr: address outside defined range");return D.push(S(H[0])),D.push(S(H[1])),D.push(z>>8&255),D.push(255&z),D}():null},C.IPv4.subnetMaskFromPrefixLength=function(_){if((_=parseInt(_))<0||_>32)throw new Error("ipaddr: invalid IPv4 prefix length");const F=[0,0,0,0];let U=0;const z=Math.floor(_/8);for(;U<z;)F[U]=255,U++;return z<4&&(F[z]=Math.pow(2,_%8)-1<<8-_%8),new this(F)},C.IPv6=function(){function _(F,U){let z,H;if(F.length===16)for(this.parts=[],z=0;z<=14;z+=2)this.parts.push(F[z]<<8|F[z+1]);else{if(F.length!==8)throw new Error("ipaddr: ipv6 part count should be 8 or 16");this.parts=F}for(z=0;z<this.parts.length;z++)if(H=this.parts[z],!(0<=H&&H<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");U&&(this.zoneId=U)}return _.prototype.SpecialRanges={unspecified:[new _([0,0,0,0,0,0,0,0]),128],linkLocal:[new _([65152,0,0,0,0,0,0,0]),10],multicast:[new _([65280,0,0,0,0,0,0,0]),8],loopback:[new _([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new _([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new _([0,0,0,0,0,65535,0,0]),96],discard:[new _([256,0,0,0,0,0,0,0]),64],rfc6145:[new _([0,0,0,0,65535,0,0,0]),96],rfc6052:[new _([100,65435,0,0,0,0,0,0]),96],"6to4":[new _([8194,0,0,0,0,0,0,0]),16],teredo:[new _([8193,0,0,0,0,0,0,0]),32],benchmarking:[new _([8193,2,0,0,0,0,0,0]),48],amt:[new _([8193,3,0,0,0,0,0,0]),32],as112v6:[[new _([8193,4,274,0,0,0,0,0]),48],[new _([9760,79,32768,0,0,0,0,0]),48]],deprecated:[new _([8193,16,0,0,0,0,0,0]),28],orchid2:[new _([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new _([8193,48,0,0,0,0,0,0]),28],reserved:[[new _([8193,0,0,0,0,0,0,0]),23],[new _([8193,3512,0,0,0,0,0,0]),32]]},_.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},_.prototype.kind=function(){return"ipv6"},_.prototype.match=function(F,U){let z;if(U===void 0&&(z=F,F=z[0],U=z[1]),F.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return T(this.parts,F.parts,16,U)},_.prototype.prefixLengthFromSubnetMask=function(){let F=0,U=!1;const z={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 H,D;for(let Q=7;Q>=0;Q-=1){if(H=this.parts[Q],!(H in z)||(D=z[H],U&&D!==0))return null;D!==16&&(U=!0),F+=D}return 128-F},_.prototype.range=function(){return C.subnetMatch(this,this.SpecialRanges)},_.prototype.toByteArray=function(){let F;const U=[],z=this.parts;for(let H=0;H<z.length;H++)F=z[H],U.push(F>>8),U.push(255&F);return U},_.prototype.toFixedLengthString=function(){const F=(function(){const z=[];for(let H=0;H<this.parts.length;H++)z.push(B(this.parts[H].toString(16),4));return z}).call(this).join(":");let U="";return this.zoneId&&(U=`%${this.zoneId}`),F+U},_.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");const F=this.parts.slice(-2),U=F[0],z=F[1];return new C.IPv4([U>>8,255&U,z>>8,255&z])},_.prototype.toNormalizedString=function(){const F=(function(){const z=[];for(let H=0;H<this.parts.length;H++)z.push(this.parts[H].toString(16));return z}).call(this).join(":");let U="";return this.zoneId&&(U=`%${this.zoneId}`),F+U},_.prototype.toRFC5952String=function(){const F=/((^|:)(0(:|$)){2,})/g,U=this.toNormalizedString();let z,H=0,D=-1;for(;z=F.exec(U);)z[0].length>D&&(H=z.index,D=z[0].length);return D<0?U:`${U.substring(0,H)}::${U.substring(H+D)}`},_.prototype.toString=function(){return this.toRFC5952String()},_}(),C.IPv6.broadcastAddressFromCIDR=function(_){try{const F=this.parseCIDR(_),U=F[0].toByteArray(),z=this.subnetMaskFromPrefixLength(F[1]).toByteArray(),H=[];let D=0;for(;D<16;)H.push(parseInt(U[D],10)|255^parseInt(z[D],10)),D++;return new this(H)}catch(F){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${F})`)}},C.IPv6.isIPv6=function(_){return this.parser(_)!==null},C.IPv6.isValid=function(_){if(typeof _=="string"&&_.indexOf(":")===-1)return!1;try{const F=this.parser(_);return new this(F.parts,F.zoneId),!0}catch{return!1}},C.IPv6.isValidCIDR=function(_){if(typeof _=="string"&&_.indexOf(":")===-1)return!1;try{return this.parseCIDR(_),!0}catch{return!1}},C.IPv6.networkAddressFromCIDR=function(_){let F,U,z,H,D;try{for(F=this.parseCIDR(_),z=F[0].toByteArray(),D=this.subnetMaskFromPrefixLength(F[1]).toByteArray(),H=[],U=0;U<16;)H.push(parseInt(z[U],10)&parseInt(D[U],10)),U++;return new this(H)}catch(Q){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${Q})`)}},C.IPv6.parse=function(_){const F=this.parser(_);if(F.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(F.parts,F.zoneId)},C.IPv6.parseCIDR=function(_){let F,U,z;if((U=_.match(/^(.+)\/(\d+)$/))&&(F=parseInt(U[2]),F>=0&&F<=128))return z=[this.parse(U[1]),F],Object.defineProperty(z,"toString",{value:function(){return this.join("/")}}),z;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},C.IPv6.parser=function(_){let F,U,z,H,D,Q;if(z=_.match(N.deprecatedTransitional))return this.parser(`::ffff:${z[1]}`);if(N.native.test(_))return M(_,8);if((z=_.match(N.transitional))&&(Q=z[6]||"",F=z[1],z[1].endsWith("::")||(F=F.slice(0,-1)),F=M(F+Q,6),F.parts)){for(D=[parseInt(z[2]),parseInt(z[3]),parseInt(z[4]),parseInt(z[5])],U=0;U<D.length;U++)if(H=D[U],!(0<=H&&H<=255))return null;return F.parts.push(D[0]<<8|D[1]),F.parts.push(D[2]<<8|D[3]),{parts:F.parts,zoneId:F.zoneId}}return null},C.IPv6.subnetMaskFromPrefixLength=function(_){if((_=parseInt(_))<0||_>128)throw new Error("ipaddr: invalid IPv6 prefix length");const F=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];let U=0;const z=Math.floor(_/8);for(;U<z;)F[U]=255,U++;return z<16&&(F[z]=Math.pow(2,_%8)-1<<8-_%8),new this(F)},C.fromByteArray=function(_){const F=_.length;if(F===4)return new C.IPv4(_);if(F===16)return new C.IPv6(_);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},C.isValid=function(_){return C.IPv6.isValid(_)||C.IPv4.isValid(_)},C.isValidCIDR=function(_){return C.IPv6.isValidCIDR(_)||C.IPv4.isValidCIDR(_)},C.parse=function(_){if(C.IPv6.isValid(_))return C.IPv6.parse(_);if(C.IPv4.isValid(_))return C.IPv4.parse(_);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},C.parseCIDR=function(_){try{return C.IPv6.parseCIDR(_)}catch{try{return C.IPv4.parseCIDR(_)}catch{throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},C.process=function(_){const F=this.parse(_);return F.kind()==="ipv6"&&F.isIPv4MappedAddress()?F.toIPv4Address():F},C.subnetMatch=function(_,F,U){let z,H,D,Q;for(H in U==null&&(U="unicast"),F)if(Object.prototype.hasOwnProperty.call(F,H)){for(D=F[H],!D[0]||D[0]instanceof Array||(D=[D]),z=0;z<D.length;z++)if(Q=D[z],_.kind()===Q[0].kind()&&_.match.apply(_,Q))return H}return U},$.exports?$.exports=C:w.ipaddr=C})(this)},650:($,w,b)=>{var j=b(462),O=b(2861).Buffer,I=b(6168);function q(p,N,M,T){I.call(this),this._cipher=new j.AES(N),this._prev=O.from(M),this._cache=O.allocUnsafe(0),this._secCache=O.allocUnsafe(0),this._decrypt=T,this._mode=p}b(6698)(q,I),q.prototype._update=function(p){return this._mode.encrypt(this,p,this._decrypt)},q.prototype._final=function(){this._cipher.scrub()},$.exports=q},655:$=>{var w=Object.defineProperty||!1;if(w)try{w({},"a",{value:1})}catch{w=!1}$.exports=w},672:($,w,b)=>{var j=b(4116).Buffer,O=b(1638);$.exports=function(){function I(){(function(q,p){if(!(q instanceof p))throw new TypeError("Cannot call a class as a function")})(this,I),this.head=null,this.tail=null,this.length=0}return I.prototype.push=function(q){var p={data:q,next:null};this.length>0?this.tail.next=p:this.head=p,this.tail=p,++this.length},I.prototype.unshift=function(q){var p={data:q,next:this.head};this.length===0&&(this.tail=p),this.head=p,++this.length},I.prototype.shift=function(){if(this.length!==0){var q=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,q}},I.prototype.clear=function(){this.head=this.tail=null,this.length=0},I.prototype.join=function(q){if(this.length===0)return"";for(var p=this.head,N=""+p.data;p=p.next;)N+=q+p.data;return N},I.prototype.concat=function(q){if(this.length===0)return j.alloc(0);for(var p,N,M=j.allocUnsafe(q>>>0),T=this.head,S=0;T;)p=M,N=S,T.data.copy(p,N),S+=T.data.length,T=T.next;return M},I}(),O&&O.inspect&&O.inspect.custom&&($.exports.prototype[O.inspect.custom]=function(){var I=O.inspect({length:this.length});return this.constructor.name+" "+I})},735:($,w,b)=>{var j=b(6698),O=b(82);function I(q){O.call(this,q),this.enc="pem"}j(I,O),$.exports=I,I.prototype.encode=function(q,p){for(var N=O.prototype.encode.call(this,q).toString("base64"),M=["-----BEGIN "+p.label+"-----"],T=0;T<N.length;T+=64)M.push(N.slice(T,T+64));return M.push("-----END "+p.label+"-----"),M.join(`
27
+ `)}},763:()=>{},894:($,w,b)=>{var j=w;j.base=b(6677),j.short=b(9188),j.mont=b(370),j.edwards=b(1298)},920:($,w,b)=>{var j=b(9675),O=b(8859),I=b(4803),q=b(507),p=b(2271)||q||I;$.exports=function(){var N,M={assert:function(T){if(!M.has(T))throw new j("Side channel does not contain "+O(T))},delete:function(T){return!!N&&N.delete(T)},get:function(T){return N&&N.get(T)},has:function(T){return!!N&&N.has(T)},set:function(T,S){N||(N=p()),N.set(T,S)}};return M}},993:($,w,b)=>{var j=b(9673).Reporter,O=b(9673).EncoderBuffer,I=b(9673).DecoderBuffer,q=b(3349),p=["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"],N=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(p);function M(S,B){var C={};this._baseState=C,C.enc=S,C.parent=B||null,C.children=null,C.tag=null,C.args=null,C.reverseArgs=null,C.choice=null,C.optional=!1,C.any=!1,C.obj=!1,C.use=null,C.useDecoder=null,C.key=null,C.default=null,C.explicit=null,C.implicit=null,C.contains=null,C.parent||(C.children=[],this._wrap())}$.exports=M;var T=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];M.prototype.clone=function(){var S=this._baseState,B={};T.forEach(function(_){B[_]=S[_]});var C=new this.constructor(B.parent);return C._baseState=B,C},M.prototype._wrap=function(){var S=this._baseState;N.forEach(function(B){this[B]=function(){var C=new this.constructor(this);return S.children.push(C),C[B].apply(C,arguments)}},this)},M.prototype._init=function(S){var B=this._baseState;q(B.parent===null),S.call(this),B.children=B.children.filter(function(C){return C._baseState.parent===this},this),q.equal(B.children.length,1,"Root node can have only one child")},M.prototype._useArgs=function(S){var B=this._baseState,C=S.filter(function(_){return _ instanceof this.constructor},this);S=S.filter(function(_){return!(_ instanceof this.constructor)},this),C.length!==0&&(q(B.children===null),B.children=C,C.forEach(function(_){_._baseState.parent=this},this)),S.length!==0&&(q(B.args===null),B.args=S,B.reverseArgs=S.map(function(_){if(typeof _!="object"||_.constructor!==Object)return _;var F={};return Object.keys(_).forEach(function(U){U==(0|U)&&(U|=0);var z=_[U];F[z]=U}),F}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(S){M.prototype[S]=function(){var B=this._baseState;throw new Error(S+" not implemented for encoding: "+B.enc)}}),p.forEach(function(S){M.prototype[S]=function(){var B=this._baseState,C=Array.prototype.slice.call(arguments);return q(B.tag===null),B.tag=S,this._useArgs(C),this}}),M.prototype.use=function(S){q(S);var B=this._baseState;return q(B.use===null),B.use=S,this},M.prototype.optional=function(){return this._baseState.optional=!0,this},M.prototype.def=function(S){var B=this._baseState;return q(B.default===null),B.default=S,B.optional=!0,this},M.prototype.explicit=function(S){var B=this._baseState;return q(B.explicit===null&&B.implicit===null),B.explicit=S,this},M.prototype.implicit=function(S){var B=this._baseState;return q(B.explicit===null&&B.implicit===null),B.implicit=S,this},M.prototype.obj=function(){var S=this._baseState,B=Array.prototype.slice.call(arguments);return S.obj=!0,B.length!==0&&this._useArgs(B),this},M.prototype.key=function(S){var B=this._baseState;return q(B.key===null),B.key=S,this},M.prototype.any=function(){return this._baseState.any=!0,this},M.prototype.choice=function(S){var B=this._baseState;return q(B.choice===null),B.choice=S,this._useArgs(Object.keys(S).map(function(C){return S[C]})),this},M.prototype.contains=function(S){var B=this._baseState;return q(B.use===null),B.contains=S,this},M.prototype._decode=function(S,B){var C=this._baseState;if(C.parent===null)return S.wrapResult(C.children[0]._decode(S,B));var _,F=C.default,U=!0,z=null;if(C.key!==null&&(z=S.enterKey(C.key)),C.optional){var H=null;if(C.explicit!==null?H=C.explicit:C.implicit!==null?H=C.implicit:C.tag!==null&&(H=C.tag),H!==null||C.any){if(U=this._peekTag(S,H,C.any),S.isError(U))return U}else{var D=S.save();try{C.choice===null?this._decodeGeneric(C.tag,S,B):this._decodeChoice(S,B),U=!0}catch{U=!1}S.restore(D)}}if(C.obj&&U&&(_=S.enterObject()),U){if(C.explicit!==null){var Q=this._decodeTag(S,C.explicit);if(S.isError(Q))return Q;S=Q}var X=S.offset;if(C.use===null&&C.choice===null){C.any&&(D=S.save());var et=this._decodeTag(S,C.implicit!==null?C.implicit:C.tag,C.any);if(S.isError(et))return et;C.any?F=S.raw(D):S=et}if(B&&B.track&&C.tag!==null&&B.track(S.path(),X,S.length,"tagged"),B&&B.track&&C.tag!==null&&B.track(S.path(),S.offset,S.length,"content"),C.any||(F=C.choice===null?this._decodeGeneric(C.tag,S,B):this._decodeChoice(S,B)),S.isError(F))return F;if(C.any||C.choice!==null||C.children===null||C.children.forEach(function(ut){ut._decode(S,B)}),C.contains&&(C.tag==="octstr"||C.tag==="bitstr")){var nt=new I(F);F=this._getUse(C.contains,S._reporterState.obj)._decode(nt,B)}}return C.obj&&U&&(F=S.leaveObject(_)),C.key===null||F===null&&U!==!0?z!==null&&S.exitKey(z):S.leaveKey(z,C.key,F),F},M.prototype._decodeGeneric=function(S,B,C){var _=this._baseState;return S==="seq"||S==="set"?null:S==="seqof"||S==="setof"?this._decodeList(B,S,_.args[0],C):/str$/.test(S)?this._decodeStr(B,S,C):S==="objid"&&_.args?this._decodeObjid(B,_.args[0],_.args[1],C):S==="objid"?this._decodeObjid(B,null,null,C):S==="gentime"||S==="utctime"?this._decodeTime(B,S,C):S==="null_"?this._decodeNull(B,C):S==="bool"?this._decodeBool(B,C):S==="objDesc"?this._decodeStr(B,S,C):S==="int"||S==="enum"?this._decodeInt(B,_.args&&_.args[0],C):_.use!==null?this._getUse(_.use,B._reporterState.obj)._decode(B,C):B.error("unknown tag: "+S)},M.prototype._getUse=function(S,B){var C=this._baseState;return C.useDecoder=this._use(S,B),q(C.useDecoder._baseState.parent===null),C.useDecoder=C.useDecoder._baseState.children[0],C.implicit!==C.useDecoder._baseState.implicit&&(C.useDecoder=C.useDecoder.clone(),C.useDecoder._baseState.implicit=C.implicit),C.useDecoder},M.prototype._decodeChoice=function(S,B){var C=this._baseState,_=null,F=!1;return Object.keys(C.choice).some(function(U){var z=S.save(),H=C.choice[U];try{var D=H._decode(S,B);if(S.isError(D))return!1;_={type:U,value:D},F=!0}catch{return S.restore(z),!1}return!0},this),F?_:S.error("Choice not matched")},M.prototype._createEncoderBuffer=function(S){return new O(S,this.reporter)},M.prototype._encode=function(S,B,C){var _=this._baseState;if(_.default===null||_.default!==S){var F=this._encodeValue(S,B,C);if(F!==void 0&&!this._skipDefault(F,B,C))return F}},M.prototype._encodeValue=function(S,B,C){var _=this._baseState;if(_.parent===null)return _.children[0]._encode(S,B||new j);var F=null;if(this.reporter=B,_.optional&&S===void 0){if(_.default===null)return;S=_.default}var U=null,z=!1;if(_.any)F=this._createEncoderBuffer(S);else if(_.choice)F=this._encodeChoice(S,B);else if(_.contains)U=this._getUse(_.contains,C)._encode(S,B),z=!0;else if(_.children)U=_.children.map(function(X){if(X._baseState.tag==="null_")return X._encode(null,B,S);if(X._baseState.key===null)return B.error("Child should have a key");var et=B.enterKey(X._baseState.key);if(typeof S!="object")return B.error("Child expected, but input is not object");var nt=X._encode(S[X._baseState.key],B,S);return B.leaveKey(et),nt},this).filter(function(X){return X}),U=this._createEncoderBuffer(U);else if(_.tag==="seqof"||_.tag==="setof"){if(!_.args||_.args.length!==1)return B.error("Too many args for : "+_.tag);if(!Array.isArray(S))return B.error("seqof/setof, but data is not Array");var H=this.clone();H._baseState.implicit=null,U=this._createEncoderBuffer(S.map(function(X){var et=this._baseState;return this._getUse(et.args[0],S)._encode(X,B)},H))}else _.use!==null?F=this._getUse(_.use,C)._encode(S,B):(U=this._encodePrimitive(_.tag,S),z=!0);if(!_.any&&_.choice===null){var D=_.implicit!==null?_.implicit:_.tag,Q=_.implicit===null?"universal":"context";D===null?_.use===null&&B.error("Tag could be omitted only for .use()"):_.use===null&&(F=this._encodeComposite(D,z,Q,U))}return _.explicit!==null&&(F=this._encodeComposite(_.explicit,!1,"context",F)),F},M.prototype._encodeChoice=function(S,B){var C=this._baseState,_=C.choice[S.type];return _||q(!1,S.type+" not found in "+JSON.stringify(Object.keys(C.choice))),_._encode(S.value,B)},M.prototype._encodePrimitive=function(S,B){var C=this._baseState;if(/str$/.test(S))return this._encodeStr(B,S);if(S==="objid"&&C.args)return this._encodeObjid(B,C.reverseArgs[0],C.args[1]);if(S==="objid")return this._encodeObjid(B,null,null);if(S==="gentime"||S==="utctime")return this._encodeTime(B,S);if(S==="null_")return this._encodeNull();if(S==="int"||S==="enum")return this._encodeInt(B,C.args&&C.reverseArgs[0]);if(S==="bool")return this._encodeBool(B);if(S==="objDesc")return this._encodeStr(B,S);throw new Error("Unsupported tag: "+S)},M.prototype._isNumstr=function(S){return/^[0-9 ]*$/.test(S)},M.prototype._isPrintstr=function(S){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(S)}},1002:$=>{$.exports=Function.prototype.apply},1064:($,w,b)=>{var j=b(9612);$.exports=j.getPrototypeOf||null},1069:()=>{},1083:($,w,b)=>{var j=b(1568),O=b(8835),I=$.exports;for(var q in j)j.hasOwnProperty(q)&&(I[q]=j[q]);function p(N){if(typeof N=="string"&&(N=O.parse(N)),N.protocol||(N.protocol="https:"),N.protocol!=="https:")throw new Error('Protocol "'+N.protocol+'" not supported. Expected "https:"');return N}I.request=function(N,M){return N=p(N),j.request.call(this,N,M)},I.get=function(N,M){return N=p(N),j.get.call(this,N,M)}},1093:$=>{var w=Object.prototype.toString;$.exports=function(b){var j=w.call(b),O=j==="[object Arguments]";return O||(O=j!=="[object Array]"&&b!==null&&typeof b=="object"&&typeof b.length=="number"&&b.length>=0&&w.call(b.callee)==="[object Function]"),O}},1135:$=>{$.exports=function(w){return w&&typeof w=="object"&&typeof w.copy=="function"&&typeof w.fill=="function"&&typeof w.readUInt8=="function"}},1137:($,w,b)=>{var j=b(7568);w.certificate=b(6413);var O=j.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())});w.RSAPrivateKey=O;var I=j.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});w.RSAPublicKey=I;var q=j.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=j.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(q),this.key("subjectPublicKey").bitstr())});w.PublicKey=p;var N=j.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(q),this.key("subjectPrivateKey").octstr())});w.PrivateKey=N;var M=j.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())});w.EncryptedPrivateKey=M;var T=j.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())});w.DSAPrivateKey=T,w.DSAparam=j.define("DSAparam",function(){this.int()});var S=j.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),B=j.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(S),this.key("publicKey").optional().explicit(1).bitstr())});w.ECPrivateKey=B,w.signature=j.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},1158:function($,w,b){(function(j,O){function I(t,h){if(!t)throw new Error(h||"Assertion failed")}function q(t,h){t.super_=h;var l=function(){};l.prototype=h.prototype,t.prototype=new l,t.prototype.constructor=t}function p(t,h,l){if(p.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,t!==null&&(h!=="le"&&h!=="be"||(l=h,h=10),this._init(t||0,h||10,l||"be"))}var N;typeof j=="object"?j.exports=p:O.BN=p,p.BN=p,p.wordSize=26;try{N=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:b(4688).Buffer}catch{}function M(t,h){var l=t.charCodeAt(h);return l>=65&&l<=70?l-55:l>=97&&l<=102?l-87:l-48&15}function T(t,h,l){var a=M(t,l);return l-1>=h&&(a|=M(t,l-1)<<4),a}function S(t,h,l,a){for(var r=0,v=Math.min(t.length,l),A=h;A<v;A++){var W=t.charCodeAt(A)-48;r*=a,r+=W>=49?W-49+10:W>=17?W-17+10:W}return r}p.isBN=function(t){return t instanceof p||t!==null&&typeof t=="object"&&t.constructor.wordSize===p.wordSize&&Array.isArray(t.words)},p.max=function(t,h){return t.cmp(h)>0?t:h},p.min=function(t,h){return t.cmp(h)<0?t:h},p.prototype._init=function(t,h,l){if(typeof t=="number")return this._initNumber(t,h,l);if(typeof t=="object")return this._initArray(t,h,l);h==="hex"&&(h=16),I(h===(0|h)&&h>=2&&h<=36);var a=0;(t=t.toString().replace(/\s+/g,""))[0]==="-"&&(a++,this.negative=1),a<t.length&&(h===16?this._parseHex(t,a,l):(this._parseBase(t,h,a),l==="le"&&this._initArray(this.toArray(),h,l)))},p.prototype._initNumber=function(t,h,l){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):(I(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),l==="le"&&this._initArray(this.toArray(),h,l)},p.prototype._initArray=function(t,h,l){if(I(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 a=0;a<this.length;a++)this.words[a]=0;var r,v,A=0;if(l==="be")for(a=t.length-1,r=0;a>=0;a-=3)v=t[a]|t[a-1]<<8|t[a-2]<<16,this.words[r]|=v<<A&67108863,this.words[r+1]=v>>>26-A&67108863,(A+=24)>=26&&(A-=26,r++);else if(l==="le")for(a=0,r=0;a<t.length;a+=3)v=t[a]|t[a+1]<<8|t[a+2]<<16,this.words[r]|=v<<A&67108863,this.words[r+1]=v>>>26-A&67108863,(A+=24)>=26&&(A-=26,r++);return this.strip()},p.prototype._parseHex=function(t,h,l){this.length=Math.ceil((t.length-h)/6),this.words=new Array(this.length);for(var a=0;a<this.length;a++)this.words[a]=0;var r,v=0,A=0;if(l==="be")for(a=t.length-1;a>=h;a-=2)r=T(t,h,a)<<v,this.words[A]|=67108863&r,v>=18?(v-=18,A+=1,this.words[A]|=r>>>26):v+=8;else for(a=(t.length-h)%2==0?h+1:h;a<t.length;a+=2)r=T(t,h,a)<<v,this.words[A]|=67108863&r,v>=18?(v-=18,A+=1,this.words[A]|=r>>>26):v+=8;this.strip()},p.prototype._parseBase=function(t,h,l){this.words=[0],this.length=1;for(var a=0,r=1;r<=67108863;r*=h)a++;a--,r=r/h|0;for(var v=t.length-l,A=v%a,W=Math.min(v,v-A)+l,J=0,K=l;K<W;K+=a)J=S(t,K,K+a,h),this.imuln(r),this.words[0]+J<67108864?this.words[0]+=J:this._iaddn(J);if(A!==0){var G=1;for(J=S(t,K,t.length,h),K=0;K<A;K++)G*=h;this.imuln(G),this.words[0]+J<67108864?this.words[0]+=J:this._iaddn(J)}this.strip()},p.prototype.copy=function(t){t.words=new Array(this.length);for(var h=0;h<this.length;h++)t.words[h]=this.words[h];t.length=this.length,t.negative=this.negative,t.red=this.red},p.prototype.clone=function(){var t=new p(null);return this.copy(t),t},p.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},p.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},p.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},p.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var B=["","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"],C=[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],_=[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 F(t,h,l){l.negative=h.negative^t.negative;var a=t.length+h.length|0;l.length=a,a=a-1|0;var r=0|t.words[0],v=0|h.words[0],A=r*v,W=67108863&A,J=A/67108864|0;l.words[0]=W;for(var K=1;K<a;K++){for(var G=J>>>26,Y=67108863&J,at=Math.min(K,h.length-1),ot=Math.max(0,K-t.length+1);ot<=at;ot++){var ht=K-ot|0;G+=(A=(r=0|t.words[ht])*(v=0|h.words[ot])+Y)/67108864|0,Y=67108863&A}l.words[K]=0|Y,J=0|G}return J!==0?l.words[K]=0|J:l.length--,l.strip()}p.prototype.toString=function(t,h){var l;if(h=0|h||1,(t=t||10)===16||t==="hex"){l="";for(var a=0,r=0,v=0;v<this.length;v++){var A=this.words[v],W=(16777215&(A<<a|r)).toString(16);r=A>>>24-a&16777215,(a+=2)>=26&&(a-=26,v--),l=r!==0||v!==this.length-1?B[6-W.length]+W+l:W+l}for(r!==0&&(l=r.toString(16)+l);l.length%h!=0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}if(t===(0|t)&&t>=2&&t<=36){var J=C[t],K=_[t];l="";var G=this.clone();for(G.negative=0;!G.isZero();){var Y=G.modn(K).toString(t);l=(G=G.idivn(K)).isZero()?Y+l:B[J-Y.length]+Y+l}for(this.isZero()&&(l="0"+l);l.length%h!=0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}I(!1,"Base should be between 2 and 36")},p.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&&I(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-t:t},p.prototype.toJSON=function(){return this.toString(16)},p.prototype.toBuffer=function(t,h){return I(N!==void 0),this.toArrayLike(N,t,h)},p.prototype.toArray=function(t,h){return this.toArrayLike(Array,t,h)},p.prototype.toArrayLike=function(t,h,l){var a=this.byteLength(),r=l||Math.max(1,a);I(a<=r,"byte array longer than desired length"),I(r>0,"Requested array length <= 0"),this.strip();var v,A,W=h==="le",J=new t(r),K=this.clone();if(W){for(A=0;!K.isZero();A++)v=K.andln(255),K.iushrn(8),J[A]=v;for(;A<r;A++)J[A]=0}else{for(A=0;A<r-a;A++)J[A]=0;for(A=0;!K.isZero();A++)v=K.andln(255),K.iushrn(8),J[r-A-1]=v}return J},Math.clz32?p.prototype._countBits=function(t){return 32-Math.clz32(t)}:p.prototype._countBits=function(t){var h=t,l=0;return h>=4096&&(l+=13,h>>>=13),h>=64&&(l+=7,h>>>=7),h>=8&&(l+=4,h>>>=4),h>=2&&(l+=2,h>>>=2),l+h},p.prototype._zeroBits=function(t){if(t===0)return 26;var h=t,l=0;return 8191&h||(l+=13,h>>>=13),127&h||(l+=7,h>>>=7),15&h||(l+=4,h>>>=4),3&h||(l+=2,h>>>=2),1&h||l++,l},p.prototype.bitLength=function(){var t=this.words[this.length-1],h=this._countBits(t);return 26*(this.length-1)+h},p.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,h=0;h<this.length;h++){var l=this._zeroBits(this.words[h]);if(t+=l,l!==26)break}return t},p.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},p.prototype.toTwos=function(t){return this.negative!==0?this.abs().inotn(t).iaddn(1):this.clone()},p.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},p.prototype.isNeg=function(){return this.negative!==0},p.prototype.neg=function(){return this.clone().ineg()},p.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},p.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var h=0;h<t.length;h++)this.words[h]=this.words[h]|t.words[h];return this.strip()},p.prototype.ior=function(t){return I(!(this.negative|t.negative)),this.iuor(t)},p.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},p.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},p.prototype.iuand=function(t){var h;h=this.length>t.length?t:this;for(var l=0;l<h.length;l++)this.words[l]=this.words[l]&t.words[l];return this.length=h.length,this.strip()},p.prototype.iand=function(t){return I(!(this.negative|t.negative)),this.iuand(t)},p.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},p.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},p.prototype.iuxor=function(t){var h,l;this.length>t.length?(h=this,l=t):(h=t,l=this);for(var a=0;a<l.length;a++)this.words[a]=h.words[a]^l.words[a];if(this!==h)for(;a<h.length;a++)this.words[a]=h.words[a];return this.length=h.length,this.strip()},p.prototype.ixor=function(t){return I(!(this.negative|t.negative)),this.iuxor(t)},p.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},p.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},p.prototype.inotn=function(t){I(typeof t=="number"&&t>=0);var h=0|Math.ceil(t/26),l=t%26;this._expand(h),l>0&&h--;for(var a=0;a<h;a++)this.words[a]=67108863&~this.words[a];return l>0&&(this.words[a]=~this.words[a]&67108863>>26-l),this.strip()},p.prototype.notn=function(t){return this.clone().inotn(t)},p.prototype.setn=function(t,h){I(typeof t=="number"&&t>=0);var l=t/26|0,a=t%26;return this._expand(l+1),this.words[l]=h?this.words[l]|1<<a:this.words[l]&~(1<<a),this.strip()},p.prototype.iadd=function(t){var h,l,a;if(this.negative!==0&&t.negative===0)return this.negative=0,h=this.isub(t),this.negative^=1,this._normSign();if(this.negative===0&&t.negative!==0)return t.negative=0,h=this.isub(t),t.negative=1,h._normSign();this.length>t.length?(l=this,a=t):(l=t,a=this);for(var r=0,v=0;v<a.length;v++)h=(0|l.words[v])+(0|a.words[v])+r,this.words[v]=67108863&h,r=h>>>26;for(;r!==0&&v<l.length;v++)h=(0|l.words[v])+r,this.words[v]=67108863&h,r=h>>>26;if(this.length=l.length,r!==0)this.words[this.length]=r,this.length++;else if(l!==this)for(;v<l.length;v++)this.words[v]=l.words[v];return this},p.prototype.add=function(t){var h;return t.negative!==0&&this.negative===0?(t.negative=0,h=this.sub(t),t.negative^=1,h):t.negative===0&&this.negative!==0?(this.negative=0,h=t.sub(this),this.negative=1,h):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},p.prototype.isub=function(t){if(t.negative!==0){t.negative=0;var h=this.iadd(t);return t.negative=1,h._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var l,a,r=this.cmp(t);if(r===0)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(l=this,a=t):(l=t,a=this);for(var v=0,A=0;A<a.length;A++)v=(h=(0|l.words[A])-(0|a.words[A])+v)>>26,this.words[A]=67108863&h;for(;v!==0&&A<l.length;A++)v=(h=(0|l.words[A])+v)>>26,this.words[A]=67108863&h;if(v===0&&A<l.length&&l!==this)for(;A<l.length;A++)this.words[A]=l.words[A];return this.length=Math.max(this.length,A),l!==this&&(this.negative=1),this.strip()},p.prototype.sub=function(t){return this.clone().isub(t)};var U=function(t,h,l){var a,r,v,A=t.words,W=h.words,J=l.words,K=0,G=0|A[0],Y=8191&G,at=G>>>13,ot=0|A[1],ht=8191&ot,tt=ot>>>13,it=0|A[2],Z=8191&it,rt=it>>>13,wt=0|A[3],gt=8191&wt,St=wt>>>13,Lt=0|A[4],At=8191&Lt,jt=Lt>>>13,Qt=0|A[5],Dt=8191&Qt,zt=Qt>>>13,ft=0|A[6],pt=8191&ft,mt=ft>>>13,Mt=0|A[7],xt=8191&Mt,kt=Mt>>>13,$t=0|A[8],Pt=8191&$t,yt=$t>>>13,dt=0|A[9],lt=8191&dt,_t=dt>>>13,qt=0|W[0],It=8191&qt,Nt=qt>>>13,be=0|W[1],Vt=8191&be,Jt=be>>>13,Ee=0|W[2],Ht=8191&Ee,ae=Ee>>>13,Ne=0|W[3],Gt=8191&Ne,se=Ne>>>13,qe=0|W[4],Zt=8191&qe,he=qe>>>13,Qe=0|W[5],Yt=8191&Qe,ce=Qe>>>13,Ge=0|W[6],Ut=8191&Ge,te=Ge>>>13,He=0|W[7],ne=8191&He,me=He>>>13,tr=0|W[8],ie=8191&tr,de=tr>>>13,rr=0|W[9],oe=8191&rr,ge=rr>>>13;l.negative=t.negative^h.negative,l.length=19;var We=(K+(a=Math.imul(Y,It))|0)+((8191&(r=(r=Math.imul(Y,Nt))+Math.imul(at,It)|0))<<13)|0;K=((v=Math.imul(at,Nt))+(r>>>13)|0)+(We>>>26)|0,We&=67108863,a=Math.imul(ht,It),r=(r=Math.imul(ht,Nt))+Math.imul(tt,It)|0,v=Math.imul(tt,Nt);var $e=(K+(a=a+Math.imul(Y,Vt)|0)|0)+((8191&(r=(r=r+Math.imul(Y,Jt)|0)+Math.imul(at,Vt)|0))<<13)|0;K=((v=v+Math.imul(at,Jt)|0)+(r>>>13)|0)+($e>>>26)|0,$e&=67108863,a=Math.imul(Z,It),r=(r=Math.imul(Z,Nt))+Math.imul(rt,It)|0,v=Math.imul(rt,Nt),a=a+Math.imul(ht,Vt)|0,r=(r=r+Math.imul(ht,Jt)|0)+Math.imul(tt,Vt)|0,v=v+Math.imul(tt,Jt)|0;var cr=(K+(a=a+Math.imul(Y,Ht)|0)|0)+((8191&(r=(r=r+Math.imul(Y,ae)|0)+Math.imul(at,Ht)|0))<<13)|0;K=((v=v+Math.imul(at,ae)|0)+(r>>>13)|0)+(cr>>>26)|0,cr&=67108863,a=Math.imul(gt,It),r=(r=Math.imul(gt,Nt))+Math.imul(St,It)|0,v=Math.imul(St,Nt),a=a+Math.imul(Z,Vt)|0,r=(r=r+Math.imul(Z,Jt)|0)+Math.imul(rt,Vt)|0,v=v+Math.imul(rt,Jt)|0,a=a+Math.imul(ht,Ht)|0,r=(r=r+Math.imul(ht,ae)|0)+Math.imul(tt,Ht)|0,v=v+Math.imul(tt,ae)|0;var mr=(K+(a=a+Math.imul(Y,Gt)|0)|0)+((8191&(r=(r=r+Math.imul(Y,se)|0)+Math.imul(at,Gt)|0))<<13)|0;K=((v=v+Math.imul(at,se)|0)+(r>>>13)|0)+(mr>>>26)|0,mr&=67108863,a=Math.imul(At,It),r=(r=Math.imul(At,Nt))+Math.imul(jt,It)|0,v=Math.imul(jt,Nt),a=a+Math.imul(gt,Vt)|0,r=(r=r+Math.imul(gt,Jt)|0)+Math.imul(St,Vt)|0,v=v+Math.imul(St,Jt)|0,a=a+Math.imul(Z,Ht)|0,r=(r=r+Math.imul(Z,ae)|0)+Math.imul(rt,Ht)|0,v=v+Math.imul(rt,ae)|0,a=a+Math.imul(ht,Gt)|0,r=(r=r+Math.imul(ht,se)|0)+Math.imul(tt,Gt)|0,v=v+Math.imul(tt,se)|0;var hr=(K+(a=a+Math.imul(Y,Zt)|0)|0)+((8191&(r=(r=r+Math.imul(Y,he)|0)+Math.imul(at,Zt)|0))<<13)|0;K=((v=v+Math.imul(at,he)|0)+(r>>>13)|0)+(hr>>>26)|0,hr&=67108863,a=Math.imul(Dt,It),r=(r=Math.imul(Dt,Nt))+Math.imul(zt,It)|0,v=Math.imul(zt,Nt),a=a+Math.imul(At,Vt)|0,r=(r=r+Math.imul(At,Jt)|0)+Math.imul(jt,Vt)|0,v=v+Math.imul(jt,Jt)|0,a=a+Math.imul(gt,Ht)|0,r=(r=r+Math.imul(gt,ae)|0)+Math.imul(St,Ht)|0,v=v+Math.imul(St,ae)|0,a=a+Math.imul(Z,Gt)|0,r=(r=r+Math.imul(Z,se)|0)+Math.imul(rt,Gt)|0,v=v+Math.imul(rt,se)|0,a=a+Math.imul(ht,Zt)|0,r=(r=r+Math.imul(ht,he)|0)+Math.imul(tt,Zt)|0,v=v+Math.imul(tt,he)|0;var gr=(K+(a=a+Math.imul(Y,Yt)|0)|0)+((8191&(r=(r=r+Math.imul(Y,ce)|0)+Math.imul(at,Yt)|0))<<13)|0;K=((v=v+Math.imul(at,ce)|0)+(r>>>13)|0)+(gr>>>26)|0,gr&=67108863,a=Math.imul(pt,It),r=(r=Math.imul(pt,Nt))+Math.imul(mt,It)|0,v=Math.imul(mt,Nt),a=a+Math.imul(Dt,Vt)|0,r=(r=r+Math.imul(Dt,Jt)|0)+Math.imul(zt,Vt)|0,v=v+Math.imul(zt,Jt)|0,a=a+Math.imul(At,Ht)|0,r=(r=r+Math.imul(At,ae)|0)+Math.imul(jt,Ht)|0,v=v+Math.imul(jt,ae)|0,a=a+Math.imul(gt,Gt)|0,r=(r=r+Math.imul(gt,se)|0)+Math.imul(St,Gt)|0,v=v+Math.imul(St,se)|0,a=a+Math.imul(Z,Zt)|0,r=(r=r+Math.imul(Z,he)|0)+Math.imul(rt,Zt)|0,v=v+Math.imul(rt,he)|0,a=a+Math.imul(ht,Yt)|0,r=(r=r+Math.imul(ht,ce)|0)+Math.imul(tt,Yt)|0,v=v+Math.imul(tt,ce)|0;var vr=(K+(a=a+Math.imul(Y,Ut)|0)|0)+((8191&(r=(r=r+Math.imul(Y,te)|0)+Math.imul(at,Ut)|0))<<13)|0;K=((v=v+Math.imul(at,te)|0)+(r>>>13)|0)+(vr>>>26)|0,vr&=67108863,a=Math.imul(xt,It),r=(r=Math.imul(xt,Nt))+Math.imul(kt,It)|0,v=Math.imul(kt,Nt),a=a+Math.imul(pt,Vt)|0,r=(r=r+Math.imul(pt,Jt)|0)+Math.imul(mt,Vt)|0,v=v+Math.imul(mt,Jt)|0,a=a+Math.imul(Dt,Ht)|0,r=(r=r+Math.imul(Dt,ae)|0)+Math.imul(zt,Ht)|0,v=v+Math.imul(zt,ae)|0,a=a+Math.imul(At,Gt)|0,r=(r=r+Math.imul(At,se)|0)+Math.imul(jt,Gt)|0,v=v+Math.imul(jt,se)|0,a=a+Math.imul(gt,Zt)|0,r=(r=r+Math.imul(gt,he)|0)+Math.imul(St,Zt)|0,v=v+Math.imul(St,he)|0,a=a+Math.imul(Z,Yt)|0,r=(r=r+Math.imul(Z,ce)|0)+Math.imul(rt,Yt)|0,v=v+Math.imul(rt,ce)|0,a=a+Math.imul(ht,Ut)|0,r=(r=r+Math.imul(ht,te)|0)+Math.imul(tt,Ut)|0,v=v+Math.imul(tt,te)|0;var yr=(K+(a=a+Math.imul(Y,ne)|0)|0)+((8191&(r=(r=r+Math.imul(Y,me)|0)+Math.imul(at,ne)|0))<<13)|0;K=((v=v+Math.imul(at,me)|0)+(r>>>13)|0)+(yr>>>26)|0,yr&=67108863,a=Math.imul(Pt,It),r=(r=Math.imul(Pt,Nt))+Math.imul(yt,It)|0,v=Math.imul(yt,Nt),a=a+Math.imul(xt,Vt)|0,r=(r=r+Math.imul(xt,Jt)|0)+Math.imul(kt,Vt)|0,v=v+Math.imul(kt,Jt)|0,a=a+Math.imul(pt,Ht)|0,r=(r=r+Math.imul(pt,ae)|0)+Math.imul(mt,Ht)|0,v=v+Math.imul(mt,ae)|0,a=a+Math.imul(Dt,Gt)|0,r=(r=r+Math.imul(Dt,se)|0)+Math.imul(zt,Gt)|0,v=v+Math.imul(zt,se)|0,a=a+Math.imul(At,Zt)|0,r=(r=r+Math.imul(At,he)|0)+Math.imul(jt,Zt)|0,v=v+Math.imul(jt,he)|0,a=a+Math.imul(gt,Yt)|0,r=(r=r+Math.imul(gt,ce)|0)+Math.imul(St,Yt)|0,v=v+Math.imul(St,ce)|0,a=a+Math.imul(Z,Ut)|0,r=(r=r+Math.imul(Z,te)|0)+Math.imul(rt,Ut)|0,v=v+Math.imul(rt,te)|0,a=a+Math.imul(ht,ne)|0,r=(r=r+Math.imul(ht,me)|0)+Math.imul(tt,ne)|0,v=v+Math.imul(tt,me)|0;var br=(K+(a=a+Math.imul(Y,ie)|0)|0)+((8191&(r=(r=r+Math.imul(Y,de)|0)+Math.imul(at,ie)|0))<<13)|0;K=((v=v+Math.imul(at,de)|0)+(r>>>13)|0)+(br>>>26)|0,br&=67108863,a=Math.imul(lt,It),r=(r=Math.imul(lt,Nt))+Math.imul(_t,It)|0,v=Math.imul(_t,Nt),a=a+Math.imul(Pt,Vt)|0,r=(r=r+Math.imul(Pt,Jt)|0)+Math.imul(yt,Vt)|0,v=v+Math.imul(yt,Jt)|0,a=a+Math.imul(xt,Ht)|0,r=(r=r+Math.imul(xt,ae)|0)+Math.imul(kt,Ht)|0,v=v+Math.imul(kt,ae)|0,a=a+Math.imul(pt,Gt)|0,r=(r=r+Math.imul(pt,se)|0)+Math.imul(mt,Gt)|0,v=v+Math.imul(mt,se)|0,a=a+Math.imul(Dt,Zt)|0,r=(r=r+Math.imul(Dt,he)|0)+Math.imul(zt,Zt)|0,v=v+Math.imul(zt,he)|0,a=a+Math.imul(At,Yt)|0,r=(r=r+Math.imul(At,ce)|0)+Math.imul(jt,Yt)|0,v=v+Math.imul(jt,ce)|0,a=a+Math.imul(gt,Ut)|0,r=(r=r+Math.imul(gt,te)|0)+Math.imul(St,Ut)|0,v=v+Math.imul(St,te)|0,a=a+Math.imul(Z,ne)|0,r=(r=r+Math.imul(Z,me)|0)+Math.imul(rt,ne)|0,v=v+Math.imul(rt,me)|0,a=a+Math.imul(ht,ie)|0,r=(r=r+Math.imul(ht,de)|0)+Math.imul(tt,ie)|0,v=v+Math.imul(tt,de)|0;var lr=(K+(a=a+Math.imul(Y,oe)|0)|0)+((8191&(r=(r=r+Math.imul(Y,ge)|0)+Math.imul(at,oe)|0))<<13)|0;K=((v=v+Math.imul(at,ge)|0)+(r>>>13)|0)+(lr>>>26)|0,lr&=67108863,a=Math.imul(lt,Vt),r=(r=Math.imul(lt,Jt))+Math.imul(_t,Vt)|0,v=Math.imul(_t,Jt),a=a+Math.imul(Pt,Ht)|0,r=(r=r+Math.imul(Pt,ae)|0)+Math.imul(yt,Ht)|0,v=v+Math.imul(yt,ae)|0,a=a+Math.imul(xt,Gt)|0,r=(r=r+Math.imul(xt,se)|0)+Math.imul(kt,Gt)|0,v=v+Math.imul(kt,se)|0,a=a+Math.imul(pt,Zt)|0,r=(r=r+Math.imul(pt,he)|0)+Math.imul(mt,Zt)|0,v=v+Math.imul(mt,he)|0,a=a+Math.imul(Dt,Yt)|0,r=(r=r+Math.imul(Dt,ce)|0)+Math.imul(zt,Yt)|0,v=v+Math.imul(zt,ce)|0,a=a+Math.imul(At,Ut)|0,r=(r=r+Math.imul(At,te)|0)+Math.imul(jt,Ut)|0,v=v+Math.imul(jt,te)|0,a=a+Math.imul(gt,ne)|0,r=(r=r+Math.imul(gt,me)|0)+Math.imul(St,ne)|0,v=v+Math.imul(St,me)|0,a=a+Math.imul(Z,ie)|0,r=(r=r+Math.imul(Z,de)|0)+Math.imul(rt,ie)|0,v=v+Math.imul(rt,de)|0;var wr=(K+(a=a+Math.imul(ht,oe)|0)|0)+((8191&(r=(r=r+Math.imul(ht,ge)|0)+Math.imul(tt,oe)|0))<<13)|0;K=((v=v+Math.imul(tt,ge)|0)+(r>>>13)|0)+(wr>>>26)|0,wr&=67108863,a=Math.imul(lt,Ht),r=(r=Math.imul(lt,ae))+Math.imul(_t,Ht)|0,v=Math.imul(_t,ae),a=a+Math.imul(Pt,Gt)|0,r=(r=r+Math.imul(Pt,se)|0)+Math.imul(yt,Gt)|0,v=v+Math.imul(yt,se)|0,a=a+Math.imul(xt,Zt)|0,r=(r=r+Math.imul(xt,he)|0)+Math.imul(kt,Zt)|0,v=v+Math.imul(kt,he)|0,a=a+Math.imul(pt,Yt)|0,r=(r=r+Math.imul(pt,ce)|0)+Math.imul(mt,Yt)|0,v=v+Math.imul(mt,ce)|0,a=a+Math.imul(Dt,Ut)|0,r=(r=r+Math.imul(Dt,te)|0)+Math.imul(zt,Ut)|0,v=v+Math.imul(zt,te)|0,a=a+Math.imul(At,ne)|0,r=(r=r+Math.imul(At,me)|0)+Math.imul(jt,ne)|0,v=v+Math.imul(jt,me)|0,a=a+Math.imul(gt,ie)|0,r=(r=r+Math.imul(gt,de)|0)+Math.imul(St,ie)|0,v=v+Math.imul(St,de)|0;var fr=(K+(a=a+Math.imul(Z,oe)|0)|0)+((8191&(r=(r=r+Math.imul(Z,ge)|0)+Math.imul(rt,oe)|0))<<13)|0;K=((v=v+Math.imul(rt,ge)|0)+(r>>>13)|0)+(fr>>>26)|0,fr&=67108863,a=Math.imul(lt,Gt),r=(r=Math.imul(lt,se))+Math.imul(_t,Gt)|0,v=Math.imul(_t,se),a=a+Math.imul(Pt,Zt)|0,r=(r=r+Math.imul(Pt,he)|0)+Math.imul(yt,Zt)|0,v=v+Math.imul(yt,he)|0,a=a+Math.imul(xt,Yt)|0,r=(r=r+Math.imul(xt,ce)|0)+Math.imul(kt,Yt)|0,v=v+Math.imul(kt,ce)|0,a=a+Math.imul(pt,Ut)|0,r=(r=r+Math.imul(pt,te)|0)+Math.imul(mt,Ut)|0,v=v+Math.imul(mt,te)|0,a=a+Math.imul(Dt,ne)|0,r=(r=r+Math.imul(Dt,me)|0)+Math.imul(zt,ne)|0,v=v+Math.imul(zt,me)|0,a=a+Math.imul(At,ie)|0,r=(r=r+Math.imul(At,de)|0)+Math.imul(jt,ie)|0,v=v+Math.imul(jt,de)|0;var _r=(K+(a=a+Math.imul(gt,oe)|0)|0)+((8191&(r=(r=r+Math.imul(gt,ge)|0)+Math.imul(St,oe)|0))<<13)|0;K=((v=v+Math.imul(St,ge)|0)+(r>>>13)|0)+(_r>>>26)|0,_r&=67108863,a=Math.imul(lt,Zt),r=(r=Math.imul(lt,he))+Math.imul(_t,Zt)|0,v=Math.imul(_t,he),a=a+Math.imul(Pt,Yt)|0,r=(r=r+Math.imul(Pt,ce)|0)+Math.imul(yt,Yt)|0,v=v+Math.imul(yt,ce)|0,a=a+Math.imul(xt,Ut)|0,r=(r=r+Math.imul(xt,te)|0)+Math.imul(kt,Ut)|0,v=v+Math.imul(kt,te)|0,a=a+Math.imul(pt,ne)|0,r=(r=r+Math.imul(pt,me)|0)+Math.imul(mt,ne)|0,v=v+Math.imul(mt,me)|0,a=a+Math.imul(Dt,ie)|0,r=(r=r+Math.imul(Dt,de)|0)+Math.imul(zt,ie)|0,v=v+Math.imul(zt,de)|0;var Mr=(K+(a=a+Math.imul(At,oe)|0)|0)+((8191&(r=(r=r+Math.imul(At,ge)|0)+Math.imul(jt,oe)|0))<<13)|0;K=((v=v+Math.imul(jt,ge)|0)+(r>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,a=Math.imul(lt,Yt),r=(r=Math.imul(lt,ce))+Math.imul(_t,Yt)|0,v=Math.imul(_t,ce),a=a+Math.imul(Pt,Ut)|0,r=(r=r+Math.imul(Pt,te)|0)+Math.imul(yt,Ut)|0,v=v+Math.imul(yt,te)|0,a=a+Math.imul(xt,ne)|0,r=(r=r+Math.imul(xt,me)|0)+Math.imul(kt,ne)|0,v=v+Math.imul(kt,me)|0,a=a+Math.imul(pt,ie)|0,r=(r=r+Math.imul(pt,de)|0)+Math.imul(mt,ie)|0,v=v+Math.imul(mt,de)|0;var pr=(K+(a=a+Math.imul(Dt,oe)|0)|0)+((8191&(r=(r=r+Math.imul(Dt,ge)|0)+Math.imul(zt,oe)|0))<<13)|0;K=((v=v+Math.imul(zt,ge)|0)+(r>>>13)|0)+(pr>>>26)|0,pr&=67108863,a=Math.imul(lt,Ut),r=(r=Math.imul(lt,te))+Math.imul(_t,Ut)|0,v=Math.imul(_t,te),a=a+Math.imul(Pt,ne)|0,r=(r=r+Math.imul(Pt,me)|0)+Math.imul(yt,ne)|0,v=v+Math.imul(yt,me)|0,a=a+Math.imul(xt,ie)|0,r=(r=r+Math.imul(xt,de)|0)+Math.imul(kt,ie)|0,v=v+Math.imul(kt,de)|0;var Le=(K+(a=a+Math.imul(pt,oe)|0)|0)+((8191&(r=(r=r+Math.imul(pt,ge)|0)+Math.imul(mt,oe)|0))<<13)|0;K=((v=v+Math.imul(mt,ge)|0)+(r>>>13)|0)+(Le>>>26)|0,Le&=67108863,a=Math.imul(lt,ne),r=(r=Math.imul(lt,me))+Math.imul(_t,ne)|0,v=Math.imul(_t,me),a=a+Math.imul(Pt,ie)|0,r=(r=r+Math.imul(Pt,de)|0)+Math.imul(yt,ie)|0,v=v+Math.imul(yt,de)|0;var De=(K+(a=a+Math.imul(xt,oe)|0)|0)+((8191&(r=(r=r+Math.imul(xt,ge)|0)+Math.imul(kt,oe)|0))<<13)|0;K=((v=v+Math.imul(kt,ge)|0)+(r>>>13)|0)+(De>>>26)|0,De&=67108863,a=Math.imul(lt,ie),r=(r=Math.imul(lt,de))+Math.imul(_t,ie)|0,v=Math.imul(_t,de);var xr=(K+(a=a+Math.imul(Pt,oe)|0)|0)+((8191&(r=(r=r+Math.imul(Pt,ge)|0)+Math.imul(yt,oe)|0))<<13)|0;K=((v=v+Math.imul(yt,ge)|0)+(r>>>13)|0)+(xr>>>26)|0,xr&=67108863;var Er=(K+(a=Math.imul(lt,oe))|0)+((8191&(r=(r=Math.imul(lt,ge))+Math.imul(_t,oe)|0))<<13)|0;return K=((v=Math.imul(_t,ge))+(r>>>13)|0)+(Er>>>26)|0,Er&=67108863,J[0]=We,J[1]=$e,J[2]=cr,J[3]=mr,J[4]=hr,J[5]=gr,J[6]=vr,J[7]=yr,J[8]=br,J[9]=lr,J[10]=wr,J[11]=fr,J[12]=_r,J[13]=Mr,J[14]=pr,J[15]=Le,J[16]=De,J[17]=xr,J[18]=Er,K!==0&&(J[19]=K,l.length++),l};function z(t,h,l){return new H().mulp(t,h,l)}function H(t,h){this.x=t,this.y=h}Math.imul||(U=F),p.prototype.mulTo=function(t,h){var l,a=this.length+t.length;return l=this.length===10&&t.length===10?U(this,t,h):a<63?F(this,t,h):a<1024?function(r,v,A){A.negative=v.negative^r.negative,A.length=r.length+v.length;for(var W=0,J=0,K=0;K<A.length-1;K++){var G=J;J=0;for(var Y=67108863&W,at=Math.min(K,v.length-1),ot=Math.max(0,K-r.length+1);ot<=at;ot++){var ht=K-ot,tt=(0|r.words[ht])*(0|v.words[ot]),it=67108863&tt;Y=67108863&(it=it+Y|0),J+=(G=(G=G+(tt/67108864|0)|0)+(it>>>26)|0)>>>26,G&=67108863}A.words[K]=Y,W=G,G=J}return W!==0?A.words[K]=W:A.length--,A.strip()}(this,t,h):z(this,t,h),l},H.prototype.makeRBT=function(t){for(var h=new Array(t),l=p.prototype._countBits(t)-1,a=0;a<t;a++)h[a]=this.revBin(a,l,t);return h},H.prototype.revBin=function(t,h,l){if(t===0||t===l-1)return t;for(var a=0,r=0;r<h;r++)a|=(1&t)<<h-r-1,t>>=1;return a},H.prototype.permute=function(t,h,l,a,r,v){for(var A=0;A<v;A++)a[A]=h[t[A]],r[A]=l[t[A]]},H.prototype.transform=function(t,h,l,a,r,v){this.permute(v,t,h,l,a,r);for(var A=1;A<r;A<<=1)for(var W=A<<1,J=Math.cos(2*Math.PI/W),K=Math.sin(2*Math.PI/W),G=0;G<r;G+=W)for(var Y=J,at=K,ot=0;ot<A;ot++){var ht=l[G+ot],tt=a[G+ot],it=l[G+ot+A],Z=a[G+ot+A],rt=Y*it-at*Z;Z=Y*Z+at*it,it=rt,l[G+ot]=ht+it,a[G+ot]=tt+Z,l[G+ot+A]=ht-it,a[G+ot+A]=tt-Z,ot!==W&&(rt=J*Y-K*at,at=J*at+K*Y,Y=rt)}},H.prototype.guessLen13b=function(t,h){var l=1|Math.max(h,t),a=1&l,r=0;for(l=l/2|0;l;l>>>=1)r++;return 1<<r+1+a},H.prototype.conjugate=function(t,h,l){if(!(l<=1))for(var a=0;a<l/2;a++){var r=t[a];t[a]=t[l-a-1],t[l-a-1]=r,r=h[a],h[a]=-h[l-a-1],h[l-a-1]=-r}},H.prototype.normalize13b=function(t,h){for(var l=0,a=0;a<h/2;a++){var r=8192*Math.round(t[2*a+1]/h)+Math.round(t[2*a]/h)+l;t[a]=67108863&r,l=r<67108864?0:r/67108864|0}return t},H.prototype.convert13b=function(t,h,l,a){for(var r=0,v=0;v<h;v++)r+=0|t[v],l[2*v]=8191&r,r>>>=13,l[2*v+1]=8191&r,r>>>=13;for(v=2*h;v<a;++v)l[v]=0;I(r===0),I(!(-8192&r))},H.prototype.stub=function(t){for(var h=new Array(t),l=0;l<t;l++)h[l]=0;return h},H.prototype.mulp=function(t,h,l){var a=2*this.guessLen13b(t.length,h.length),r=this.makeRBT(a),v=this.stub(a),A=new Array(a),W=new Array(a),J=new Array(a),K=new Array(a),G=new Array(a),Y=new Array(a),at=l.words;at.length=a,this.convert13b(t.words,t.length,A,a),this.convert13b(h.words,h.length,K,a),this.transform(A,v,W,J,a,r),this.transform(K,v,G,Y,a,r);for(var ot=0;ot<a;ot++){var ht=W[ot]*G[ot]-J[ot]*Y[ot];J[ot]=W[ot]*Y[ot]+J[ot]*G[ot],W[ot]=ht}return this.conjugate(W,J,a),this.transform(W,J,at,v,a,r),this.conjugate(at,v,a),this.normalize13b(at,a),l.negative=t.negative^h.negative,l.length=t.length+h.length,l.strip()},p.prototype.mul=function(t){var h=new p(null);return h.words=new Array(this.length+t.length),this.mulTo(t,h)},p.prototype.mulf=function(t){var h=new p(null);return h.words=new Array(this.length+t.length),z(this,t,h)},p.prototype.imul=function(t){return this.clone().mulTo(t,this)},p.prototype.imuln=function(t){I(typeof t=="number"),I(t<67108864);for(var h=0,l=0;l<this.length;l++){var a=(0|this.words[l])*t,r=(67108863&a)+(67108863&h);h>>=26,h+=a/67108864|0,h+=r>>>26,this.words[l]=67108863&r}return h!==0&&(this.words[l]=h,this.length++),this},p.prototype.muln=function(t){return this.clone().imuln(t)},p.prototype.sqr=function(){return this.mul(this)},p.prototype.isqr=function(){return this.imul(this.clone())},p.prototype.pow=function(t){var h=function(v){for(var A=new Array(v.bitLength()),W=0;W<A.length;W++){var J=W/26|0,K=W%26;A[W]=(v.words[J]&1<<K)>>>K}return A}(t);if(h.length===0)return new p(1);for(var l=this,a=0;a<h.length&&h[a]===0;a++,l=l.sqr());if(++a<h.length)for(var r=l.sqr();a<h.length;a++,r=r.sqr())h[a]!==0&&(l=l.mul(r));return l},p.prototype.iushln=function(t){I(typeof t=="number"&&t>=0);var h,l=t%26,a=(t-l)/26,r=67108863>>>26-l<<26-l;if(l!==0){var v=0;for(h=0;h<this.length;h++){var A=this.words[h]&r,W=(0|this.words[h])-A<<l;this.words[h]=W|v,v=A>>>26-l}v&&(this.words[h]=v,this.length++)}if(a!==0){for(h=this.length-1;h>=0;h--)this.words[h+a]=this.words[h];for(h=0;h<a;h++)this.words[h]=0;this.length+=a}return this.strip()},p.prototype.ishln=function(t){return I(this.negative===0),this.iushln(t)},p.prototype.iushrn=function(t,h,l){var a;I(typeof t=="number"&&t>=0),a=h?(h-h%26)/26:0;var r=t%26,v=Math.min((t-r)/26,this.length),A=67108863^67108863>>>r<<r,W=l;if(a-=v,a=Math.max(0,a),W){for(var J=0;J<v;J++)W.words[J]=this.words[J];W.length=v}if(v!==0)if(this.length>v)for(this.length-=v,J=0;J<this.length;J++)this.words[J]=this.words[J+v];else this.words[0]=0,this.length=1;var K=0;for(J=this.length-1;J>=0&&(K!==0||J>=a);J--){var G=0|this.words[J];this.words[J]=K<<26-r|G>>>r,K=G&A}return W&&K!==0&&(W.words[W.length++]=K),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},p.prototype.ishrn=function(t,h,l){return I(this.negative===0),this.iushrn(t,h,l)},p.prototype.shln=function(t){return this.clone().ishln(t)},p.prototype.ushln=function(t){return this.clone().iushln(t)},p.prototype.shrn=function(t){return this.clone().ishrn(t)},p.prototype.ushrn=function(t){return this.clone().iushrn(t)},p.prototype.testn=function(t){I(typeof t=="number"&&t>=0);var h=t%26,l=(t-h)/26,a=1<<h;return!(this.length<=l||!(this.words[l]&a))},p.prototype.imaskn=function(t){I(typeof t=="number"&&t>=0);var h=t%26,l=(t-h)/26;if(I(this.negative===0,"imaskn works only with positive numbers"),this.length<=l)return this;if(h!==0&&l++,this.length=Math.min(l,this.length),h!==0){var a=67108863^67108863>>>h<<h;this.words[this.length-1]&=a}return this.strip()},p.prototype.maskn=function(t){return this.clone().imaskn(t)},p.prototype.iaddn=function(t){return I(typeof t=="number"),I(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)},p.prototype._iaddn=function(t){this.words[0]+=t;for(var h=0;h<this.length&&this.words[h]>=67108864;h++)this.words[h]-=67108864,h===this.length-1?this.words[h+1]=1:this.words[h+1]++;return this.length=Math.max(this.length,h+1),this},p.prototype.isubn=function(t){if(I(typeof t=="number"),I(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 h=0;h<this.length&&this.words[h]<0;h++)this.words[h]+=67108864,this.words[h+1]-=1;return this.strip()},p.prototype.addn=function(t){return this.clone().iaddn(t)},p.prototype.subn=function(t){return this.clone().isubn(t)},p.prototype.iabs=function(){return this.negative=0,this},p.prototype.abs=function(){return this.clone().iabs()},p.prototype._ishlnsubmul=function(t,h,l){var a,r,v=t.length+l;this._expand(v);var A=0;for(a=0;a<t.length;a++){r=(0|this.words[a+l])+A;var W=(0|t.words[a])*h;A=((r-=67108863&W)>>26)-(W/67108864|0),this.words[a+l]=67108863&r}for(;a<this.length-l;a++)A=(r=(0|this.words[a+l])+A)>>26,this.words[a+l]=67108863&r;if(A===0)return this.strip();for(I(A===-1),A=0,a=0;a<this.length;a++)A=(r=-(0|this.words[a])+A)>>26,this.words[a]=67108863&r;return this.negative=1,this.strip()},p.prototype._wordDiv=function(t,h){var l=(this.length,t.length),a=this.clone(),r=t,v=0|r.words[r.length-1];(l=26-this._countBits(v))!=0&&(r=r.ushln(l),a.iushln(l),v=0|r.words[r.length-1]);var A,W=a.length-r.length;if(h!=="mod"){(A=new p(null)).length=W+1,A.words=new Array(A.length);for(var J=0;J<A.length;J++)A.words[J]=0}var K=a.clone()._ishlnsubmul(r,1,W);K.negative===0&&(a=K,A&&(A.words[W]=1));for(var G=W-1;G>=0;G--){var Y=67108864*(0|a.words[r.length+G])+(0|a.words[r.length+G-1]);for(Y=Math.min(Y/v|0,67108863),a._ishlnsubmul(r,Y,G);a.negative!==0;)Y--,a.negative=0,a._ishlnsubmul(r,1,G),a.isZero()||(a.negative^=1);A&&(A.words[G]=Y)}return A&&A.strip(),a.strip(),h!=="div"&&l!==0&&a.iushrn(l),{div:A||null,mod:a}},p.prototype.divmod=function(t,h,l){return I(!t.isZero()),this.isZero()?{div:new p(0),mod:new p(0)}:this.negative!==0&&t.negative===0?(v=this.neg().divmod(t,h),h!=="mod"&&(a=v.div.neg()),h!=="div"&&(r=v.mod.neg(),l&&r.negative!==0&&r.iadd(t)),{div:a,mod:r}):this.negative===0&&t.negative!==0?(v=this.divmod(t.neg(),h),h!=="mod"&&(a=v.div.neg()),{div:a,mod:v.mod}):this.negative&t.negative?(v=this.neg().divmod(t.neg(),h),h!=="div"&&(r=v.mod.neg(),l&&r.negative!==0&&r.isub(t)),{div:v.div,mod:r}):t.length>this.length||this.cmp(t)<0?{div:new p(0),mod:this}:t.length===1?h==="div"?{div:this.divn(t.words[0]),mod:null}:h==="mod"?{div:null,mod:new p(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new p(this.modn(t.words[0]))}:this._wordDiv(t,h);var a,r,v},p.prototype.div=function(t){return this.divmod(t,"div",!1).div},p.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},p.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},p.prototype.divRound=function(t){var h=this.divmod(t);if(h.mod.isZero())return h.div;var l=h.div.negative!==0?h.mod.isub(t):h.mod,a=t.ushrn(1),r=t.andln(1),v=l.cmp(a);return v<0||r===1&&v===0?h.div:h.div.negative!==0?h.div.isubn(1):h.div.iaddn(1)},p.prototype.modn=function(t){I(t<=67108863);for(var h=67108864%t,l=0,a=this.length-1;a>=0;a--)l=(h*l+(0|this.words[a]))%t;return l},p.prototype.idivn=function(t){I(t<=67108863);for(var h=0,l=this.length-1;l>=0;l--){var a=(0|this.words[l])+67108864*h;this.words[l]=a/t|0,h=a%t}return this.strip()},p.prototype.divn=function(t){return this.clone().idivn(t)},p.prototype.egcd=function(t){I(t.negative===0),I(!t.isZero());var h=this,l=t.clone();h=h.negative!==0?h.umod(t):h.clone();for(var a=new p(1),r=new p(0),v=new p(0),A=new p(1),W=0;h.isEven()&&l.isEven();)h.iushrn(1),l.iushrn(1),++W;for(var J=l.clone(),K=h.clone();!h.isZero();){for(var G=0,Y=1;!(h.words[0]&Y)&&G<26;++G,Y<<=1);if(G>0)for(h.iushrn(G);G-- >0;)(a.isOdd()||r.isOdd())&&(a.iadd(J),r.isub(K)),a.iushrn(1),r.iushrn(1);for(var at=0,ot=1;!(l.words[0]&ot)&&at<26;++at,ot<<=1);if(at>0)for(l.iushrn(at);at-- >0;)(v.isOdd()||A.isOdd())&&(v.iadd(J),A.isub(K)),v.iushrn(1),A.iushrn(1);h.cmp(l)>=0?(h.isub(l),a.isub(v),r.isub(A)):(l.isub(h),v.isub(a),A.isub(r))}return{a:v,b:A,gcd:l.iushln(W)}},p.prototype._invmp=function(t){I(t.negative===0),I(!t.isZero());var h=this,l=t.clone();h=h.negative!==0?h.umod(t):h.clone();for(var a,r=new p(1),v=new p(0),A=l.clone();h.cmpn(1)>0&&l.cmpn(1)>0;){for(var W=0,J=1;!(h.words[0]&J)&&W<26;++W,J<<=1);if(W>0)for(h.iushrn(W);W-- >0;)r.isOdd()&&r.iadd(A),r.iushrn(1);for(var K=0,G=1;!(l.words[0]&G)&&K<26;++K,G<<=1);if(K>0)for(l.iushrn(K);K-- >0;)v.isOdd()&&v.iadd(A),v.iushrn(1);h.cmp(l)>=0?(h.isub(l),r.isub(v)):(l.isub(h),v.isub(r))}return(a=h.cmpn(1)===0?r:v).cmpn(0)<0&&a.iadd(t),a},p.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var h=this.clone(),l=t.clone();h.negative=0,l.negative=0;for(var a=0;h.isEven()&&l.isEven();a++)h.iushrn(1),l.iushrn(1);for(;;){for(;h.isEven();)h.iushrn(1);for(;l.isEven();)l.iushrn(1);var r=h.cmp(l);if(r<0){var v=h;h=l,l=v}else if(r===0||l.cmpn(1)===0)break;h.isub(l)}return l.iushln(a)},p.prototype.invm=function(t){return this.egcd(t).a.umod(t)},p.prototype.isEven=function(){return!(1&this.words[0])},p.prototype.isOdd=function(){return!(1&~this.words[0])},p.prototype.andln=function(t){return this.words[0]&t},p.prototype.bincn=function(t){I(typeof t=="number");var h=t%26,l=(t-h)/26,a=1<<h;if(this.length<=l)return this._expand(l+1),this.words[l]|=a,this;for(var r=a,v=l;r!==0&&v<this.length;v++){var A=0|this.words[v];r=(A+=r)>>>26,A&=67108863,this.words[v]=A}return r!==0&&(this.words[v]=r,this.length++),this},p.prototype.isZero=function(){return this.length===1&&this.words[0]===0},p.prototype.cmpn=function(t){var h,l=t<0;if(this.negative!==0&&!l)return-1;if(this.negative===0&&l)return 1;if(this.strip(),this.length>1)h=1;else{l&&(t=-t),I(t<=67108863,"Number is too big");var a=0|this.words[0];h=a===t?0:a<t?-1:1}return this.negative!==0?0|-h:h},p.prototype.cmp=function(t){if(this.negative!==0&&t.negative===0)return-1;if(this.negative===0&&t.negative!==0)return 1;var h=this.ucmp(t);return this.negative!==0?0|-h:h},p.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var h=0,l=this.length-1;l>=0;l--){var a=0|this.words[l],r=0|t.words[l];if(a!==r){a<r?h=-1:a>r&&(h=1);break}}return h},p.prototype.gtn=function(t){return this.cmpn(t)===1},p.prototype.gt=function(t){return this.cmp(t)===1},p.prototype.gten=function(t){return this.cmpn(t)>=0},p.prototype.gte=function(t){return this.cmp(t)>=0},p.prototype.ltn=function(t){return this.cmpn(t)===-1},p.prototype.lt=function(t){return this.cmp(t)===-1},p.prototype.lten=function(t){return this.cmpn(t)<=0},p.prototype.lte=function(t){return this.cmp(t)<=0},p.prototype.eqn=function(t){return this.cmpn(t)===0},p.prototype.eq=function(t){return this.cmp(t)===0},p.red=function(t){return new ct(t)},p.prototype.toRed=function(t){return I(!this.red,"Already a number in reduction context"),I(this.negative===0,"red works only with positives"),t.convertTo(this)._forceRed(t)},p.prototype.fromRed=function(){return I(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},p.prototype._forceRed=function(t){return this.red=t,this},p.prototype.forceRed=function(t){return I(!this.red,"Already a number in reduction context"),this._forceRed(t)},p.prototype.redAdd=function(t){return I(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},p.prototype.redIAdd=function(t){return I(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},p.prototype.redSub=function(t){return I(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},p.prototype.redISub=function(t){return I(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},p.prototype.redShl=function(t){return I(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},p.prototype.redMul=function(t){return I(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},p.prototype.redIMul=function(t){return I(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},p.prototype.redSqr=function(){return I(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},p.prototype.redISqr=function(){return I(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},p.prototype.redSqrt=function(){return I(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},p.prototype.redInvm=function(){return I(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},p.prototype.redNeg=function(){return I(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},p.prototype.redPow=function(t){return I(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var D={k256:null,p224:null,p192:null,p25519:null};function Q(t,h){this.name=t,this.p=new p(h,16),this.n=this.p.bitLength(),this.k=new p(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function X(){Q.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function et(){Q.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function nt(){Q.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ut(){Q.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function ct(t){if(typeof t=="string"){var h=p._prime(t);this.m=h.p,this.prime=h}else I(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function vt(t){ct.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new p(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)}Q.prototype._tmp=function(){var t=new p(null);return t.words=new Array(Math.ceil(this.n/13)),t},Q.prototype.ireduce=function(t){var h,l=t;do this.split(l,this.tmp),h=(l=(l=this.imulK(l)).iadd(this.tmp)).bitLength();while(h>this.n);var a=h<this.n?-1:l.ucmp(this.p);return a===0?(l.words[0]=0,l.length=1):a>0?l.isub(this.p):l.strip!==void 0?l.strip():l._strip(),l},Q.prototype.split=function(t,h){t.iushrn(this.n,0,h)},Q.prototype.imulK=function(t){return t.imul(this.k)},q(X,Q),X.prototype.split=function(t,h){for(var l=4194303,a=Math.min(t.length,9),r=0;r<a;r++)h.words[r]=t.words[r];if(h.length=a,t.length<=9)return t.words[0]=0,void(t.length=1);var v=t.words[9];for(h.words[h.length++]=v&l,r=10;r<t.length;r++){var A=0|t.words[r];t.words[r-10]=(A&l)<<4|v>>>22,v=A}v>>>=22,t.words[r-10]=v,v===0&&t.length>10?t.length-=10:t.length-=9},X.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var h=0,l=0;l<t.length;l++){var a=0|t.words[l];h+=977*a,t.words[l]=67108863&h,h=64*a+(h/67108864|0)}return t.words[t.length-1]===0&&(t.length--,t.words[t.length-1]===0&&t.length--),t},q(et,Q),q(nt,Q),q(ut,Q),ut.prototype.imulK=function(t){for(var h=0,l=0;l<t.length;l++){var a=19*(0|t.words[l])+h,r=67108863&a;a>>>=26,t.words[l]=r,h=a}return h!==0&&(t.words[t.length++]=h),t},p._prime=function(t){if(D[t])return D[t];var h;if(t==="k256")h=new X;else if(t==="p224")h=new et;else if(t==="p192")h=new nt;else{if(t!=="p25519")throw new Error("Unknown prime "+t);h=new ut}return D[t]=h,h},ct.prototype._verify1=function(t){I(t.negative===0,"red works only with positives"),I(t.red,"red works only with red numbers")},ct.prototype._verify2=function(t,h){I(!(t.negative|h.negative),"red works only with positives"),I(t.red&&t.red===h.red,"red works only with red numbers")},ct.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},ct.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},ct.prototype.add=function(t,h){this._verify2(t,h);var l=t.add(h);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},ct.prototype.iadd=function(t,h){this._verify2(t,h);var l=t.iadd(h);return l.cmp(this.m)>=0&&l.isub(this.m),l},ct.prototype.sub=function(t,h){this._verify2(t,h);var l=t.sub(h);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},ct.prototype.isub=function(t,h){this._verify2(t,h);var l=t.isub(h);return l.cmpn(0)<0&&l.iadd(this.m),l},ct.prototype.shl=function(t,h){return this._verify1(t),this.imod(t.ushln(h))},ct.prototype.imul=function(t,h){return this._verify2(t,h),this.imod(t.imul(h))},ct.prototype.mul=function(t,h){return this._verify2(t,h),this.imod(t.mul(h))},ct.prototype.isqr=function(t){return this.imul(t,t.clone())},ct.prototype.sqr=function(t){return this.mul(t,t)},ct.prototype.sqrt=function(t){if(t.isZero())return t.clone();var h=this.m.andln(3);if(I(h%2==1),h===3){var l=this.m.add(new p(1)).iushrn(2);return this.pow(t,l)}for(var a=this.m.subn(1),r=0;!a.isZero()&&a.andln(1)===0;)r++,a.iushrn(1);I(!a.isZero());var v=new p(1).toRed(this),A=v.redNeg(),W=this.m.subn(1).iushrn(1),J=this.m.bitLength();for(J=new p(2*J*J).toRed(this);this.pow(J,W).cmp(A)!==0;)J.redIAdd(A);for(var K=this.pow(J,a),G=this.pow(t,a.addn(1).iushrn(1)),Y=this.pow(t,a),at=r;Y.cmp(v)!==0;){for(var ot=Y,ht=0;ot.cmp(v)!==0;ht++)ot=ot.redSqr();I(ht<at);var tt=this.pow(K,new p(1).iushln(at-ht-1));G=G.redMul(tt),K=tt.redSqr(),Y=Y.redMul(K),at=ht}return G},ct.prototype.invm=function(t){var h=t._invmp(this.m);return h.negative!==0?(h.negative=0,this.imod(h).redNeg()):this.imod(h)},ct.prototype.pow=function(t,h){if(h.isZero())return new p(1).toRed(this);if(h.cmpn(1)===0)return t.clone();var l=new Array(16);l[0]=new p(1).toRed(this),l[1]=t;for(var a=2;a<l.length;a++)l[a]=this.mul(l[a-1],t);var r=l[0],v=0,A=0,W=h.bitLength()%26;for(W===0&&(W=26),a=h.length-1;a>=0;a--){for(var J=h.words[a],K=W-1;K>=0;K--){var G=J>>K&1;r!==l[0]&&(r=this.sqr(r)),G!==0||v!==0?(v<<=1,v|=G,(++A==4||a===0&&K===0)&&(r=this.mul(r,l[v]),A=0,v=0)):A=0}W=26}return r},ct.prototype.convertTo=function(t){var h=t.umod(this.m);return h===t?h.clone():h},ct.prototype.convertFrom=function(t){var h=t.clone();return h.red=null,h},p.mont=function(t){return new vt(t)},q(vt,ct),vt.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},vt.prototype.convertFrom=function(t){var h=this.imod(t.mul(this.rinv));return h.red=null,h},vt.prototype.imul=function(t,h){if(t.isZero()||h.isZero())return t.words[0]=0,t.length=1,t;var l=t.imul(h),a=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=l.isub(a).iushrn(this.shift),v=r;return r.cmp(this.m)>=0?v=r.isub(this.m):r.cmpn(0)<0&&(v=r.iadd(this.m)),v._forceRed(this)},vt.prototype.mul=function(t,h){if(t.isZero()||h.isZero())return new p(0)._forceRed(this);var l=t.mul(h),a=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=l.isub(a).iushrn(this.shift),v=r;return r.cmp(this.m)>=0?v=r.isub(this.m):r.cmpn(0)<0&&(v=r.iadd(this.m)),v._forceRed(this)},vt.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}})($=b.nmd($),this)},1189:($,w,b)=>{var j=Array.prototype.slice,O=b(1093),I=Object.keys,q=I?function(N){return I(N)}:b(8875),p=Object.keys;q.shim=function(){if(Object.keys){var N=function(){var M=Object.keys(arguments);return M&&M.length===arguments.length}(1,2);N||(Object.keys=function(M){return O(M)?p(j.call(M)):p(M)})}else Object.keys=q;return Object.keys||q},$.exports=q},1200:($,w,b)=>{var j=b(8490),O=b(7011).assert;function I(q,p){this.ec=q,this.priv=null,this.pub=null,p.priv&&this._importPrivate(p.priv,p.privEnc),p.pub&&this._importPublic(p.pub,p.pubEnc)}$.exports=I,I.fromPublic=function(q,p,N){return p instanceof I?p:new I(q,{pub:p,pubEnc:N})},I.fromPrivate=function(q,p,N){return p instanceof I?p:new I(q,{priv:p,privEnc:N})},I.prototype.validate=function(){var q=this.getPublic();return q.isInfinity()?{result:!1,reason:"Invalid public key"}:q.validate()?q.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"}},I.prototype.getPublic=function(q,p){return typeof q=="string"&&(p=q,q=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),p?this.pub.encode(p,q):this.pub},I.prototype.getPrivate=function(q){return q==="hex"?this.priv.toString(16,2):this.priv},I.prototype._importPrivate=function(q,p){this.priv=new j(q,p||16),this.priv=this.priv.umod(this.ec.curve.n)},I.prototype._importPublic=function(q,p){if(q.x||q.y)return this.ec.curve.type==="mont"?O(q.x,"Need x coordinate"):this.ec.curve.type!=="short"&&this.ec.curve.type!=="edwards"||O(q.x&&q.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(q.x,q.y));this.pub=this.ec.curve.decodePoint(q,p)},I.prototype.derive=function(q){return q.validate()||O(q.validate(),"public point not validated"),q.mul(this.priv).getX()},I.prototype.sign=function(q,p,N){return this.ec.sign(q,this,p,N)},I.prototype.verify=function(q,p,N){return this.ec.verify(q,p,this,void 0,N)},I.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},1218:function($,w,b){(function(){var j,O,I={}.hasOwnProperty;O=b(468),j=b(1737),$.exports=function(q){function p(N){p.__super__.constructor.call(this,N),this.type=j.Dummy}return function(N,M){for(var T in M)I.call(M,T)&&(N[T]=M[T]);function S(){this.constructor=N}S.prototype=M.prototype,N.prototype=new S,N.__super__=M.prototype}(p,q),p.prototype.clone=function(){return Object.create(this)},p.prototype.toString=function(N){return""},p}(O)}).call(this)},1237:$=>{$.exports=EvalError},1241:($,w,b)=>{var j=b(5799),O=b(6171),I=b(3219);w.createCipher=w.Cipher=j.createCipher,w.createCipheriv=w.Cipheriv=j.createCipheriv,w.createDecipher=w.Decipher=O.createDecipher,w.createDecipheriv=w.Decipheriv=O.createDecipheriv,w.listCiphers=w.getCiphers=function(){return Object.keys(I)}},1268:function($,w,b){(function(){var j,O,I={}.hasOwnProperty;j=b(1737),O=b(468),$.exports=function(q){function p(N,M){if(p.__super__.constructor.call(this,N),M==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=j.Raw,this.value=this.stringify.raw(M)}return function(N,M){for(var T in M)I.call(M,T)&&(N[T]=M[T]);function S(){this.constructor=N}S.prototype=M.prototype,N.prototype=new S,N.__super__=M.prototype}(p,q),p.prototype.clone=function(){return Object.create(this)},p.prototype.toString=function(N){return this.options.writer.raw(this,this.options.writer.filterOptions(N))},p}(O)}).call(this)},1270:function($,w,b){var j;$=b.nmd($),function(){w&&w.nodeType,$&&$.nodeType;var O=typeof b.g=="object"&&b.g;O.global!==O&&O.window!==O&&O.self;var I,q=2147483647,p=36,N=/^xn--/,M=/[^\x20-\x7E]/,T=/[\x2E\u3002\uFF0E\uFF61]/g,S={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},B=Math.floor,C=String.fromCharCode;function _(nt){throw new RangeError(S[nt])}function F(nt,ut){for(var ct=nt.length,vt=[];ct--;)vt[ct]=ut(nt[ct]);return vt}function U(nt,ut){var ct=nt.split("@"),vt="";return ct.length>1&&(vt=ct[0]+"@",nt=ct[1]),vt+F((nt=nt.replace(T,".")).split("."),ut).join(".")}function z(nt){for(var ut,ct,vt=[],t=0,h=nt.length;t<h;)(ut=nt.charCodeAt(t++))>=55296&&ut<=56319&&t<h?(64512&(ct=nt.charCodeAt(t++)))==56320?vt.push(((1023&ut)<<10)+(1023&ct)+65536):(vt.push(ut),t--):vt.push(ut);return vt}function H(nt){return F(nt,function(ut){var ct="";return ut>65535&&(ct+=C((ut-=65536)>>>10&1023|55296),ut=56320|1023&ut),ct+C(ut)}).join("")}function D(nt,ut){return nt+22+75*(nt<26)-((ut!=0)<<5)}function Q(nt,ut,ct){var vt=0;for(nt=ct?B(nt/700):nt>>1,nt+=B(nt/ut);nt>455;vt+=p)nt=B(nt/35);return B(vt+36*nt/(nt+38))}function X(nt){var ut,ct,vt,t,h,l,a,r,v,A,W,J=[],K=nt.length,G=0,Y=128,at=72;for((ct=nt.lastIndexOf("-"))<0&&(ct=0),vt=0;vt<ct;++vt)nt.charCodeAt(vt)>=128&&_("not-basic"),J.push(nt.charCodeAt(vt));for(t=ct>0?ct+1:0;t<K;){for(h=G,l=1,a=p;t>=K&&_("invalid-input"),((r=(W=nt.charCodeAt(t++))-48<10?W-22:W-65<26?W-65:W-97<26?W-97:p)>=p||r>B((q-G)/l))&&_("overflow"),G+=r*l,!(r<(v=a<=at?1:a>=at+26?26:a-at));a+=p)l>B(q/(A=p-v))&&_("overflow"),l*=A;at=Q(G-h,ut=J.length+1,h==0),B(G/ut)>q-Y&&_("overflow"),Y+=B(G/ut),G%=ut,J.splice(G++,0,Y)}return H(J)}function et(nt){var ut,ct,vt,t,h,l,a,r,v,A,W,J,K,G,Y,at=[];for(J=(nt=z(nt)).length,ut=128,ct=0,h=72,l=0;l<J;++l)(W=nt[l])<128&&at.push(C(W));for(vt=t=at.length,t&&at.push("-");vt<J;){for(a=q,l=0;l<J;++l)(W=nt[l])>=ut&&W<a&&(a=W);for(a-ut>B((q-ct)/(K=vt+1))&&_("overflow"),ct+=(a-ut)*K,ut=a,l=0;l<J;++l)if((W=nt[l])<ut&&++ct>q&&_("overflow"),W==ut){for(r=ct,v=p;!(r<(A=v<=h?1:v>=h+26?26:v-h));v+=p)Y=r-A,G=p-A,at.push(C(D(A+Y%G,0))),r=B(Y/G);at.push(C(D(r,0))),h=Q(ct,K,vt==t),ct=0,++vt}++ct,++ut}return at.join("")}I={version:"1.4.1",ucs2:{decode:z,encode:H},decode:X,encode:et,toASCII:function(nt){return U(nt,function(ut){return M.test(ut)?"xn--"+et(ut):ut})},toUnicode:function(nt){return U(nt,function(ut){return N.test(ut)?X(ut.slice(4).toLowerCase()):ut})}},(j=(function(){return I}).call(w,b,w,$))===void 0||($.exports=j)}()},1298:($,w,b)=>{var j=b(7011),O=b(8490),I=b(6698),q=b(6677),p=j.assert;function N(T){this.twisted=(0|T.a)!=1,this.mOneA=this.twisted&&(0|T.a)==-1,this.extended=this.mOneA,q.call(this,"edwards",T),this.a=new O(T.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new O(T.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new O(T.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),p(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(0|T.c)==1}function M(T,S,B,C,_){q.BasePoint.call(this,T,"projective"),S===null&&B===null&&C===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 O(S,16),this.y=new O(B,16),this.z=C?new O(C,16):this.curve.one,this.t=_&&new O(_,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()))))}I(N,q),$.exports=N,N.prototype._mulA=function(T){return this.mOneA?T.redNeg():this.a.redMul(T)},N.prototype._mulC=function(T){return this.oneC?T:this.c.redMul(T)},N.prototype.jpoint=function(T,S,B,C){return this.point(T,S,B,C)},N.prototype.pointFromX=function(T,S){(T=new O(T,16)).red||(T=T.toRed(this.red));var B=T.redSqr(),C=this.c2.redSub(this.a.redMul(B)),_=this.one.redSub(this.c2.redMul(this.d).redMul(B)),F=C.redMul(_.redInvm()),U=F.redSqrt();if(U.redSqr().redSub(F).cmp(this.zero)!==0)throw new Error("invalid point");var z=U.fromRed().isOdd();return(S&&!z||!S&&z)&&(U=U.redNeg()),this.point(T,U)},N.prototype.pointFromY=function(T,S){(T=new O(T,16)).red||(T=T.toRed(this.red));var B=T.redSqr(),C=B.redSub(this.c2),_=B.redMul(this.d).redMul(this.c2).redSub(this.a),F=C.redMul(_.redInvm());if(F.cmp(this.zero)===0){if(S)throw new Error("invalid point");return this.point(this.zero,T)}var U=F.redSqrt();if(U.redSqr().redSub(F).cmp(this.zero)!==0)throw new Error("invalid point");return U.fromRed().isOdd()!==S&&(U=U.redNeg()),this.point(U,T)},N.prototype.validate=function(T){if(T.isInfinity())return!0;T.normalize();var S=T.x.redSqr(),B=T.y.redSqr(),C=S.redMul(this.a).redAdd(B),_=this.c2.redMul(this.one.redAdd(this.d.redMul(S).redMul(B)));return C.cmp(_)===0},I(M,q.BasePoint),N.prototype.pointFromJSON=function(T){return M.fromJSON(this,T)},N.prototype.point=function(T,S,B,C){return new M(this,T,S,B,C)},M.fromJSON=function(T,S){return new M(T,S[0],S[1],S[2])},M.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)+">"},M.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},M.prototype._extDbl=function(){var T=this.x.redSqr(),S=this.y.redSqr(),B=this.z.redSqr();B=B.redIAdd(B);var C=this.curve._mulA(T),_=this.x.redAdd(this.y).redSqr().redISub(T).redISub(S),F=C.redAdd(S),U=F.redSub(B),z=C.redSub(S),H=_.redMul(U),D=F.redMul(z),Q=_.redMul(z),X=U.redMul(F);return this.curve.point(H,D,X,Q)},M.prototype._projDbl=function(){var T,S,B,C,_,F,U=this.x.redAdd(this.y).redSqr(),z=this.x.redSqr(),H=this.y.redSqr();if(this.curve.twisted){var D=(C=this.curve._mulA(z)).redAdd(H);this.zOne?(T=U.redSub(z).redSub(H).redMul(D.redSub(this.curve.two)),S=D.redMul(C.redSub(H)),B=D.redSqr().redSub(D).redSub(D)):(_=this.z.redSqr(),F=D.redSub(_).redISub(_),T=U.redSub(z).redISub(H).redMul(F),S=D.redMul(C.redSub(H)),B=D.redMul(F))}else C=z.redAdd(H),_=this.curve._mulC(this.z).redSqr(),F=C.redSub(_).redSub(_),T=this.curve._mulC(U.redISub(C)).redMul(F),S=this.curve._mulC(C).redMul(z.redISub(H)),B=C.redMul(F);return this.curve.point(T,S,B)},M.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},M.prototype._extAdd=function(T){var S=this.y.redSub(this.x).redMul(T.y.redSub(T.x)),B=this.y.redAdd(this.x).redMul(T.y.redAdd(T.x)),C=this.t.redMul(this.curve.dd).redMul(T.t),_=this.z.redMul(T.z.redAdd(T.z)),F=B.redSub(S),U=_.redSub(C),z=_.redAdd(C),H=B.redAdd(S),D=F.redMul(U),Q=z.redMul(H),X=F.redMul(H),et=U.redMul(z);return this.curve.point(D,Q,et,X)},M.prototype._projAdd=function(T){var S,B,C=this.z.redMul(T.z),_=C.redSqr(),F=this.x.redMul(T.x),U=this.y.redMul(T.y),z=this.curve.d.redMul(F).redMul(U),H=_.redSub(z),D=_.redAdd(z),Q=this.x.redAdd(this.y).redMul(T.x.redAdd(T.y)).redISub(F).redISub(U),X=C.redMul(H).redMul(Q);return this.curve.twisted?(S=C.redMul(D).redMul(U.redSub(this.curve._mulA(F))),B=H.redMul(D)):(S=C.redMul(D).redMul(U.redSub(F)),B=this.curve._mulC(H).redMul(D)),this.curve.point(X,S,B)},M.prototype.add=function(T){return this.isInfinity()?T:T.isInfinity()?this:this.curve.extended?this._extAdd(T):this._projAdd(T)},M.prototype.mul=function(T){return this._hasDoubles(T)?this.curve._fixedNafMul(this,T):this.curve._wnafMul(this,T)},M.prototype.mulAdd=function(T,S,B){return this.curve._wnafMulAdd(1,[this,S],[T,B],2,!1)},M.prototype.jmulAdd=function(T,S,B){return this.curve._wnafMulAdd(1,[this,S],[T,B],2,!0)},M.prototype.normalize=function(){if(this.zOne)return this;var T=this.z.redInvm();return this.x=this.x.redMul(T),this.y=this.y.redMul(T),this.t&&(this.t=this.t.redMul(T)),this.z=this.curve.one,this.zOne=!0,this},M.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},M.prototype.getX=function(){return this.normalize(),this.x.fromRed()},M.prototype.getY=function(){return this.normalize(),this.y.fromRed()},M.prototype.eq=function(T){return this===T||this.getX().cmp(T.getX())===0&&this.getY().cmp(T.getY())===0},M.prototype.eqXToP=function(T){var S=T.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(S)===0)return!0;for(var B=T.clone(),C=this.curve.redN.redMul(this.z);;){if(B.iadd(this.curve.n),B.cmp(this.curve.p)>=0)return!1;if(S.redIAdd(C),this.x.cmp(S)===0)return!0}},M.prototype.toP=M.prototype.normalize,M.prototype.mixedAdd=M.prototype.add},1324:($,w,b)=>{var j=b(8287).Buffer,O=b(6729),I=b(2801);$.exports=function(M){return new p(M)};var q={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 p(M){this.curveType=q[M],this.curveType||(this.curveType={name:M}),this.curve=new O.ec(this.curveType.name),this.keys=void 0}function N(M,T,S){Array.isArray(M)||(M=M.toArray());var B=new j(M);if(S&&B.length<S){var C=new j(S-B.length);C.fill(0),B=j.concat([C,B])}return T?B.toString(T):B}q.p224=q.secp224r1,q.p256=q.secp256r1=q.prime256v1,q.p192=q.secp192r1=q.prime192v1,q.p384=q.secp384r1,q.p521=q.secp521r1,p.prototype.generateKeys=function(M,T){return this.keys=this.curve.genKeyPair(),this.getPublicKey(M,T)},p.prototype.computeSecret=function(M,T,S){return T=T||"utf8",j.isBuffer(M)||(M=new j(M,T)),N(this.curve.keyFromPublic(M).getPublic().mul(this.keys.getPrivate()).getX(),S,this.curveType.byteLength)},p.prototype.getPublicKey=function(M,T){var S=this.keys.getPublic(T==="compressed",!0);return T==="hybrid"&&(S[S.length-1]%2?S[0]=7:S[0]=6),N(S,M)},p.prototype.getPrivateKey=function(M){return N(this.keys.getPrivate(),M)},p.prototype.setPublicKey=function(M,T){return T=T||"utf8",j.isBuffer(M)||(M=new j(M,T)),this.keys._importPublic(M),this},p.prototype.setPrivateKey=function(M,T){T=T||"utf8",j.isBuffer(M)||(M=new j(M,T));var S=new I(M);return S=S.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(S),this}},1333:$=>{$.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var w={},b=Symbol("test"),j=Object(b);if(typeof b=="string"||Object.prototype.toString.call(b)!=="[object Symbol]"||Object.prototype.toString.call(j)!=="[object Symbol]")return!1;for(var O in w[b]=42,w)return!1;if(typeof Object.keys=="function"&&Object.keys(w).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(w).length!==0)return!1;var I=Object.getOwnPropertySymbols(w);if(I.length!==1||I[0]!==b||!Object.prototype.propertyIsEnumerable.call(w,b))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var q=Object.getOwnPropertyDescriptor(w,b);if(q.value!==42||q.enumerable!==!0)return!1}return!0}},1352:($,w,b)=>{var j=b(320),O=b(6011),I=b(2802),q=b(2861).Buffer,p=b(4196),N=b(2455),M=b(3382),T=q.alloc(128),S={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function B(C,_,F){var U=function(et){return et==="rmd160"||et==="ripemd160"?function(nt){return new O().update(nt).digest()}:et==="md5"?j:function(nt){return I(et).update(nt).digest()}}(C),z=C==="sha512"||C==="sha384"?128:64;_.length>z?_=U(_):_.length<z&&(_=q.concat([_,T],z));for(var H=q.allocUnsafe(z+S[C]),D=q.allocUnsafe(z+S[C]),Q=0;Q<z;Q++)H[Q]=54^_[Q],D[Q]=92^_[Q];var X=q.allocUnsafe(z+F+4);H.copy(X,0,0,z),this.ipad1=X,this.ipad2=H,this.opad=D,this.alg=C,this.blocksize=z,this.hash=U,this.size=S[C]}B.prototype.run=function(C,_){return C.copy(_,this.blocksize),this.hash(_).copy(this.opad,this.blocksize),this.hash(this.opad)},$.exports=function(C,_,F,U,z){p(F,U);var H=new B(z=z||"sha1",C=M(C,N,"Password"),(_=M(_,N,"Salt")).length),D=q.allocUnsafe(U),Q=q.allocUnsafe(_.length+4);_.copy(Q,0,0,_.length);for(var X=0,et=S[z],nt=Math.ceil(U/et),ut=1;ut<=nt;ut++){Q.writeUInt32BE(ut,_.length);for(var ct=H.run(Q,H.ipad1),vt=ct,t=1;t<F;t++){vt=H.run(vt,H.ipad2);for(var h=0;h<et;h++)ct[h]^=vt[h]}ct.copy(D,X),X+=et}return D}},1499:$=>{var w={"&":"&amp;",'"':"&quot;","'":"&apos;","<":"&lt;",">":"&gt;"};$.exports=function(b){return b&&b.replace?b.replace(/([&"<>'])/g,function(j,O){return w[O]}):b}},1514:$=>{$.exports=Math.abs},1537:($,w,b)=>{const j=b(5334),O={allowBooleanAttributes:!1},I=["allowBooleanAttributes"];function q(H,D){const Q=D;for(;D<H.length;D++)if(!(H[D]!="?"&&H[D]!=" ")){const X=H.substr(Q,D-Q);if(D>5&&X==="xml")return _("InvalidXml","XML declaration allowed only at the start of the document.",U(H,D));if(H[D]=="?"&&H[D+1]==">"){D++;break}}return D}function p(H,D){if(H.length>D+5&&H[D+1]==="-"&&H[D+2]==="-"){for(D+=3;D<H.length;D++)if(H[D]==="-"&&H[D+1]==="-"&&H[D+2]===">"){D+=2;break}}else if(H.length>D+8&&H[D+1]==="D"&&H[D+2]==="O"&&H[D+3]==="C"&&H[D+4]==="T"&&H[D+5]==="Y"&&H[D+6]==="P"&&H[D+7]==="E"){let Q=1;for(D+=8;D<H.length;D++)if(H[D]==="<")Q++;else if(H[D]===">"&&(Q--,Q===0))break}else if(H.length>D+9&&H[D+1]==="["&&H[D+2]==="C"&&H[D+3]==="D"&&H[D+4]==="A"&&H[D+5]==="T"&&H[D+6]==="A"&&H[D+7]==="["){for(D+=8;D<H.length;D++)if(H[D]==="]"&&H[D+1]==="]"&&H[D+2]===">"){D+=2;break}}return D}w.validate=function(H,D){D=j.buildOptions(D,O,I);const Q=[];let X=!1,et=!1;H[0]==="\uFEFF"&&(H=H.substr(1));for(let ut=0;ut<H.length;ut++)if(H[ut]==="<"&&H[ut+1]==="?"){if(ut+=2,ut=q(H,ut),ut.err)return ut}else{if(H[ut]!=="<"){if(H[ut]===" "||H[ut]===" "||H[ut]===`
28
+ `||H[ut]==="\r")continue;return _("InvalidChar","char '"+H[ut]+"' is not expected.",U(H,ut))}{let ct=ut;if(ut++,H[ut]==="!"){ut=p(H,ut);continue}{let vt=!1;H[ut]==="/"&&(vt=!0,ut++);let t="";for(;ut<H.length&&H[ut]!==">"&&H[ut]!==" "&&H[ut]!==" "&&H[ut]!==`
29
+ `&&H[ut]!=="\r";ut++)t+=H[ut];if(t=t.trim(),t[t.length-1]==="/"&&(t=t.substring(0,t.length-1),ut--),nt=t,!j.isName(nt)){let a;return a=t.trim().length===0?"Invalid space after '<'.":"Tag '"+t+"' is an invalid name.",_("InvalidTag",a,U(H,ut))}const h=T(H,ut);if(h===!1)return _("InvalidAttr","Attributes for '"+t+"' have open quote.",U(H,ut));let l=h.value;if(ut=h.index,l[l.length-1]==="/"){const a=ut-l.length;l=l.substring(0,l.length-1);const r=B(l,D);if(r!==!0)return _(r.err.code,r.err.msg,U(H,a+r.err.line));X=!0}else if(vt){if(!h.tagClosed)return _("InvalidTag","Closing tag '"+t+"' doesn't have proper closing.",U(H,ut));if(l.trim().length>0)return _("InvalidTag","Closing tag '"+t+"' can't have attributes or invalid starting.",U(H,ct));{const a=Q.pop();if(t!==a.tagName){let r=U(H,a.tagStartPos);return _("InvalidTag","Expected closing tag '"+a.tagName+"' (opened in line "+r.line+", col "+r.col+") instead of closing tag '"+t+"'.",U(H,ct))}Q.length==0&&(et=!0)}}else{const a=B(l,D);if(a!==!0)return _(a.err.code,a.err.msg,U(H,ut-l.length+a.err.line));if(et===!0)return _("InvalidXml","Multiple possible root nodes found.",U(H,ut));Q.push({tagName:t,tagStartPos:ct}),X=!0}for(ut++;ut<H.length;ut++)if(H[ut]==="<"){if(H[ut+1]==="!"){ut++,ut=p(H,ut);continue}if(H[ut+1]!=="?")break;if(ut=q(H,++ut),ut.err)return ut}else if(H[ut]==="&"){const a=C(H,ut);if(a==-1)return _("InvalidChar","char '&' is not expected.",U(H,ut));ut=a}H[ut]==="<"&&ut--}}}var nt;return X?Q.length==1?_("InvalidTag","Unclosed tag '"+Q[0].tagName+"'.",U(H,Q[0].tagStartPos)):!(Q.length>0)||_("InvalidXml","Invalid '"+JSON.stringify(Q.map(ut=>ut.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):_("InvalidXml","Start tag expected.",1)};const N='"',M="'";function T(H,D){let Q="",X="",et=!1;for(;D<H.length;D++){if(H[D]===N||H[D]===M)X===""?X=H[D]:X!==H[D]||(X="");else if(H[D]===">"&&X===""){et=!0;break}Q+=H[D]}return X===""&&{value:Q,index:D,tagClosed:et}}const S=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function B(H,D){const Q=j.getAllMatches(H,S),X={};for(let et=0;et<Q.length;et++){if(Q[et][1].length===0)return _("InvalidAttr","Attribute '"+Q[et][2]+"' has no space in starting.",z(Q[et]));if(Q[et][3]===void 0&&!D.allowBooleanAttributes)return _("InvalidAttr","boolean attribute '"+Q[et][2]+"' is not allowed.",z(Q[et]));const nt=Q[et][2];if(!F(nt))return _("InvalidAttr","Attribute '"+nt+"' is an invalid name.",z(Q[et]));if(X.hasOwnProperty(nt))return _("InvalidAttr","Attribute '"+nt+"' is repeated.",z(Q[et]));X[nt]=1}return!0}function C(H,D){if(H[++D]===";")return-1;if(H[D]==="#")return function(X,et){let nt=/\d/;for(X[et]==="x"&&(et++,nt=/[\da-fA-F]/);et<X.length;et++){if(X[et]===";")return et;if(!X[et].match(nt))break}return-1}(H,++D);let Q=0;for(;D<H.length;D++,Q++)if(!(H[D].match(/\w/)&&Q<20)){if(H[D]===";")break;return-1}return D}function _(H,D,Q){return{err:{code:H,msg:D,line:Q.line||Q,col:Q.col}}}function F(H){return j.isName(H)}function U(H,D){const Q=H.substring(0,D).split(/\r?\n/);return{line:Q.length,col:Q[Q.length-1].length+1}}function z(H){return H.startIndex+H[1].length}},1565:($,w,b)=>{w.randomBytes=w.rng=w.pseudoRandomBytes=w.prng=b(3209),w.createHash=w.Hash=b(7108),w.createHmac=w.Hmac=b(3507);var j=b(5715),O=Object.keys(j),I=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(O);w.getHashes=function(){return I};var q=b(8396);w.pbkdf2=q.pbkdf2,w.pbkdf2Sync=q.pbkdf2Sync;var p=b(125);w.Cipher=p.Cipher,w.createCipher=p.createCipher,w.Cipheriv=p.Cipheriv,w.createCipheriv=p.createCipheriv,w.Decipher=p.Decipher,w.createDecipher=p.createDecipher,w.Decipheriv=p.Decipheriv,w.createDecipheriv=p.createDecipheriv,w.getCiphers=p.getCiphers,w.listCiphers=p.listCiphers;var N=b(5380);w.DiffieHellmanGroup=N.DiffieHellmanGroup,w.createDiffieHellmanGroup=N.createDiffieHellmanGroup,w.getDiffieHellman=N.getDiffieHellman,w.createDiffieHellman=N.createDiffieHellman,w.DiffieHellman=N.DiffieHellman;var M=b(20);w.createSign=M.createSign,w.Sign=M.Sign,w.createVerify=M.createVerify,w.Verify=M.Verify,w.createECDH=b(1324);var T=b(7168);w.publicEncrypt=T.publicEncrypt,w.privateEncrypt=T.privateEncrypt,w.publicDecrypt=T.publicDecrypt,w.privateDecrypt=T.privateDecrypt;var S=b(6983);w.randomFill=S.randomFill,w.randomFillSync=S.randomFillSync,w.createCredentials=function(){throw new Error(`sorry, createCredentials is not implemented yet
30
+ we accept pull requests
31
+ https://github.com/browserify/crypto-browserify`)},w.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}},1568:($,w,b)=>{var j=b(5537),O=b(6917),I=b(7510),q=b(6866),p=b(8835),N=w;N.request=function(M,T){M=typeof M=="string"?p.parse(M):I(M);var S=b.g.location.protocol.search(/^https?:$/)===-1?"http:":"",B=M.protocol||S,C=M.hostname||M.host,_=M.port,F=M.path||"/";C&&C.indexOf(":")!==-1&&(C="["+C+"]"),M.url=(C?B+"//"+C:"")+(_?":"+_:"")+F,M.method=(M.method||"GET").toUpperCase(),M.headers=M.headers||{};var U=new j(M);return T&&U.on("response",T),U},N.get=function(M,T){var S=N.request(M,T);return S.end(),S},N.ClientRequest=j,N.IncomingMessage=O.IncomingMessage,N.Agent=function(){},N.Agent.defaultMaxSockets=4,N.globalAgent=new N.Agent,N.STATUS_CODES=q,N.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"]},1616:($,w,b)=>{var j=b(5606);Object.defineProperty(w,"__esModule",{value:!0}),w.default=void 0;var O,I=b(8310),q=(O=b(1565))&&O.__esModule?O:{default:O},p=function(S,B){if(S&&S.__esModule)return S;if(S===null||typeof S!="object"&&typeof S!="function")return{default:S};var C=M(B);if(C&&C.has(S))return C.get(S);var _={},F=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var U in S)if(U!=="default"&&Object.prototype.hasOwnProperty.call(S,U)){var z=F?Object.getOwnPropertyDescriptor(S,U):null;z&&(z.get||z.set)?Object.defineProperty(_,U,z):_[U]=S[U]}return _.default=S,C&&C.set(S,_),_}(b(6663)),N=b(2541);function M(S){if(typeof WeakMap!="function")return null;var B=new WeakMap,C=new WeakMap;return(M=function(_){return _?C:B})(S)}class T extends I.Transform{constructor(B,C,_,F,U,z){super(),this.emptyStream=!0,this.client=B,this.bucketName=C,this.objectName=_,this.partSize=F,this.metaData=U,this.callback=z,this.partNumber=1,this.oldParts=null,this.etags=[],this.id=null,this.on("error",H=>{z(H)})}_transform(B,C,_){this.emptyStream=!1;let F={"Content-Length":B.length},U="";if(this.client.enableSHA256||(U=q.default.createHash("md5").update(B).digest(),F["Content-MD5"]=U.toString("base64")),this.partNumber==1&&B.length<this.partSize){let D={method:"PUT",headers:Object.assign({},this.metaData,F),query:"",bucketName:this.bucketName,objectName:this.objectName};return void this.client.makeRequest(D,B,[200],"",!0,(Q,X)=>{if(Q)return _(Q);let et={etag:(0,N.sanitizeETag)(X.headers.etag),versionId:(0,N.getVersionId)(X.headers)};X.on("data",()=>{}),j.nextTick(()=>{this.callback(null,et)}),_()})}if(this.id===null)return this.once("ready",()=>{this._transform(B,C,_)}),void this.client.findUploadId(this.bucketName,this.objectName,(D,Q)=>{if(D)return this.emit("error",D);Q?(this.id=Q,this.client.listParts(this.bucketName,this.objectName,Q,(X,et)=>{if(X)return this.emit("error",X);et||(et=[]),this.oldParts=et.reduce(function(nt,ut){return nt[ut.part]||(nt[ut.part]=ut),nt},{}),this.emit("ready")})):this.client.initiateNewMultipartUpload(this.bucketName,this.objectName,this.metaData,(X,et)=>{if(X)return _(X);this.id=et,this.emit("ready")})});let z=this.partNumber++;if(this.oldParts){let D=this.oldParts[z];if(U||(U=q.default.createHash("md5").update(B).digest()),D&&U.toString("hex")===D.etag)return this.etags.push({part:z,etag:D.etag}),void _()}let H={method:"PUT",query:p.stringify({partNumber:z,uploadId:this.id}),headers:F,bucketName:this.bucketName,objectName:this.objectName};this.client.makeRequest(H,B,[200],"",!0,(D,Q)=>{if(D)return _(D);let X=Q.headers.etag;X&&(X=X.replace(/^"/,"").replace(/"$/,"")),this.etags.push({part:z,etag:X}),Q.on("data",()=>{}),_()})}_flush(B){if(this.emptyStream){let C={method:"PUT",headers:Object.assign({},this.metaData,{"Content-Length":0}),query:"",bucketName:this.bucketName,objectName:this.objectName};this.client.makeRequest(C,"",[200],"",!0,(_,F)=>{if(_)return B(_);let U={etag:(0,N.sanitizeETag)(F.headers.etag),versionId:(0,N.getVersionId)(F.headers)};F.on("data",()=>{}),j.nextTick(()=>{this.callback(null,U)}),B()})}else this.id!==null&&this.client.completeMultipartUpload(this.bucketName,this.objectName,this.id,this.etags,(C,_)=>{if(C)return B(C);j.nextTick(()=>{this.callback(null,_)}),B()})}}w.default=T},1636:$=>{$.exports={rE:"6.6.1"}},1638:()=>{},1737:function($){(function(){$.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)},1800:($,w,b)=>{var j=b(6698),O=b(2861).Buffer,I=b(6168),q=O.alloc(128),p=64;function N(M,T){I.call(this,"digest"),typeof T=="string"&&(T=O.from(T)),this._alg=M,this._key=T,T.length>p?T=M(T):T.length<p&&(T=O.concat([T,q],p));for(var S=this._ipad=O.allocUnsafe(p),B=this._opad=O.allocUnsafe(p),C=0;C<p;C++)S[C]=54^T[C],B[C]=92^T[C];this._hash=[S]}j(N,I),N.prototype._update=function(M){this._hash.push(M)},N.prototype._final=function(){var M=this._alg(O.concat(this._hash));return this._alg(O.concat([this._opad,M]))},$.exports=N},1813:$=>{$.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}}')},1816:($,w,b)=>{$.exports=q;var j=b(6248),O=Object.create(b(5622));function I(M,T){var S=this._transformState;S.transforming=!1;var B=S.writecb;if(!B)return this.emit("error",new Error("write callback called multiple times"));S.writechunk=null,S.writecb=null,T!=null&&this.push(T),B(M);var C=this._readableState;C.reading=!1,(C.needReadable||C.length<C.highWaterMark)&&this._read(C.highWaterMark)}function q(M){if(!(this instanceof q))return new q(M);j.call(this,M),this._transformState={afterTransform:I.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,M&&(typeof M.transform=="function"&&(this._transform=M.transform),typeof M.flush=="function"&&(this._flush=M.flush)),this.on("prefinish",p)}function p(){var M=this;typeof this._flush=="function"?this._flush(function(T,S){N(M,T,S)}):N(this,null,null)}function N(M,T,S){if(T)return M.emit("error",T);if(S!=null&&M.push(S),M._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(M._transformState.transforming)throw new Error("Calling transform done when still transforming");return M.push(null)}O.inherits=b(6698),O.inherits(q,j),q.prototype.push=function(M,T){return this._transformState.needTransform=!1,j.prototype.push.call(this,M,T)},q.prototype._transform=function(M,T,S){throw new Error("_transform() is not implemented")},q.prototype._write=function(M,T,S){var B=this._transformState;if(B.writecb=S,B.writechunk=M,B.writeencoding=T,!B.transforming){var C=this._readableState;(B.needTransform||C.needReadable||C.length<C.highWaterMark)&&this._read(C.highWaterMark)}},q.prototype._read=function(M){var T=this._transformState;T.writechunk!==null&&T.writecb&&!T.transforming?(T.transforming=!0,this._transform(T.writechunk,T.writeencoding,T.afterTransform)):T.needTransform=!0},q.prototype._destroy=function(M,T){var S=this;j.prototype._destroy.call(this,M,function(B){T(B),S.emit("close")})}},1911:($,w,b)=>{var j=b(7426),O=b(7766);function I(){if(!(this instanceof I))return new I;O.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}j.inherits(I,O),$.exports=I,I.blockSize=1024,I.outSize=384,I.hmacStrength=192,I.padLength=128,I.prototype._digest=function(q){return q==="hex"?j.toHex32(this.h.slice(0,12),"big"):j.split32(this.h.slice(0,12),"big")}},1912:function($,w,b){(function(){var j,O,I,q,p,N,M,T,S=function(C,_){return function(){return C.apply(_,arguments)}},B={}.hasOwnProperty;M=b(4043),I=b(7007),j=b(3177),N=b(2114),T=b(7103).setImmediate,O=b(6465).defaults,q=function(C){return typeof C=="object"&&C!=null&&Object.keys(C).length===0},p=function(C,_,F){var U,z;for(U=0,z=C.length;U<z;U++)_=(0,C[U])(_,F);return _},w.Parser=function(C){function _(F){var U,z,H;if(this.parseStringPromise=S(this.parseStringPromise,this),this.parseString=S(this.parseString,this),this.reset=S(this.reset,this),this.assignOrPush=S(this.assignOrPush,this),this.processAsync=S(this.processAsync,this),!(this instanceof w.Parser))return new w.Parser(F);for(U in this.options={},z=O[.2])B.call(z,U)&&(H=z[U],this.options[U]=H);for(U in F)B.call(F,U)&&(H=F[U],this.options[U]=H);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(N.normalize)),this.reset()}return function(F,U){for(var z in U)B.call(U,z)&&(F[z]=U[z]);function H(){this.constructor=F}H.prototype=U.prototype,F.prototype=new H,F.__super__=U.prototype}(_,C),_.prototype.processAsync=function(){var F,U;try{return this.remaining.length<=this.options.chunkSize?(F=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(F),this.saxParser.close()):(F=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(F),T(this.processAsync))}catch(z){if(U=z,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(U)}},_.prototype.assignOrPush=function(F,U,z){return U in F?(F[U]instanceof Array||(F[U]=[F[U]]),F[U].push(z)):this.options.explicitArray?F[U]=[z]:F[U]=z},_.prototype.reset=function(){var F,U,z,H,D;return this.removeAllListeners(),this.saxParser=M.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=(D=this,function(Q){if(D.saxParser.resume(),!D.saxParser.errThrown)return D.saxParser.errThrown=!0,D.emit("error",Q)}),this.saxParser.onend=function(Q){return function(){if(!Q.saxParser.ended)return Q.saxParser.ended=!0,Q.emit("end",Q.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,H=[],F=this.options.attrkey,U=this.options.charkey,this.saxParser.onopentag=function(Q){return function(X){var et,nt,ut,ct,vt;if((ut={})[U]="",!Q.options.ignoreAttrs)for(et in vt=X.attributes)B.call(vt,et)&&(F in ut||Q.options.mergeAttrs||(ut[F]={}),nt=Q.options.attrValueProcessors?p(Q.options.attrValueProcessors,X.attributes[et],et):X.attributes[et],ct=Q.options.attrNameProcessors?p(Q.options.attrNameProcessors,et):et,Q.options.mergeAttrs?Q.assignOrPush(ut,ct,nt):ut[F][ct]=nt);return ut["#name"]=Q.options.tagNameProcessors?p(Q.options.tagNameProcessors,X.name):X.name,Q.options.xmlns&&(ut[Q.options.xmlnskey]={uri:X.uri,local:X.local}),H.push(ut)}}(this),this.saxParser.onclosetag=function(Q){return function(){var X,et,nt,ut,ct,vt,t,h,l,a;if(vt=H.pop(),ct=vt["#name"],Q.options.explicitChildren&&Q.options.preserveChildrenOrder||delete vt["#name"],vt.cdata===!0&&(X=vt.cdata,delete vt.cdata),l=H[H.length-1],vt[U].match(/^\s*$/)&&!X?(et=vt[U],delete vt[U]):(Q.options.trim&&(vt[U]=vt[U].trim()),Q.options.normalize&&(vt[U]=vt[U].replace(/\s{2,}/g," ").trim()),vt[U]=Q.options.valueProcessors?p(Q.options.valueProcessors,vt[U],ct):vt[U],Object.keys(vt).length===1&&U in vt&&!Q.EXPLICIT_CHARKEY&&(vt=vt[U])),q(vt)&&(vt=Q.options.emptyTag!==""?Q.options.emptyTag:et),Q.options.validator!=null&&(a="/"+function(){var r,v,A;for(A=[],r=0,v=H.length;r<v;r++)ut=H[r],A.push(ut["#name"]);return A}().concat(ct).join("/"),function(){var r;try{return vt=Q.options.validator(a,l&&l[ct],vt)}catch(v){return r=v,Q.emit("error",r)}}()),Q.options.explicitChildren&&!Q.options.mergeAttrs&&typeof vt=="object")if(Q.options.preserveChildrenOrder){if(l){for(nt in l[Q.options.childkey]=l[Q.options.childkey]||[],t={},vt)B.call(vt,nt)&&(t[nt]=vt[nt]);l[Q.options.childkey].push(t),delete vt["#name"],Object.keys(vt).length===1&&U in vt&&!Q.EXPLICIT_CHARKEY&&(vt=vt[U])}}else ut={},Q.options.attrkey in vt&&(ut[Q.options.attrkey]=vt[Q.options.attrkey],delete vt[Q.options.attrkey]),!Q.options.charsAsChildren&&Q.options.charkey in vt&&(ut[Q.options.charkey]=vt[Q.options.charkey],delete vt[Q.options.charkey]),Object.getOwnPropertyNames(vt).length>0&&(ut[Q.options.childkey]=vt),vt=ut;return H.length>0?Q.assignOrPush(l,ct,vt):(Q.options.explicitRoot&&(h=vt,(vt={})[ct]=h),Q.resultObject=vt,Q.saxParser.ended=!0,Q.emit("end",Q.resultObject))}}(this),z=function(Q){return function(X){var et,nt;if(nt=H[H.length-1])return nt[U]+=X,Q.options.explicitChildren&&Q.options.preserveChildrenOrder&&Q.options.charsAsChildren&&(Q.options.includeWhiteChars||X.replace(/\\n/g,"").trim()!=="")&&(nt[Q.options.childkey]=nt[Q.options.childkey]||[],(et={"#name":"__text__"})[U]=X,Q.options.normalize&&(et[U]=et[U].replace(/\s{2,}/g," ").trim()),nt[Q.options.childkey].push(et)),nt}}(this),this.saxParser.ontext=z,this.saxParser.oncdata=function(Q){var X;if(X=z(Q))return X.cdata=!0}},_.prototype.parseString=function(F,U){var z;U!=null&&typeof U=="function"&&(this.on("end",function(H){return this.reset(),U(null,H)}),this.on("error",function(H){return this.reset(),U(H)}));try{return(F=F.toString()).trim()===""?(this.emit("end",null),!0):(F=j.stripBOM(F),this.options.async?(this.remaining=F,T(this.processAsync),this.saxParser):this.saxParser.write(F).close())}catch(H){if(z=H,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",z),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw z}},_.prototype.parseStringPromise=function(F){return new Promise((U=this,function(z,H){return U.parseString(F,function(D,Q){return D?H(D):z(Q)})}));var U},_}(I),w.parseString=function(C,_,F){var U,z;return F!=null?(typeof F=="function"&&(U=F),typeof _=="object"&&(z=_)):(typeof _=="function"&&(U=_),z={}),new w.Parser(z).parseString(C,U)},w.parseStringPromise=function(C,_){var F;return typeof _=="object"&&(F=_),new w.Parser(F).parseStringPromise(C)}}).call(this)},1933:function($,w,b){(function(){var j,O,I,q,p,N,M,T={}.hasOwnProperty;M=b(9241).isPlainObject,I=b(7260),O=b(3074),q=b(468),j=b(1737),N=b(3976),p=b(382),$.exports=function(S){function B(C){B.__super__.constructor.call(this,null),this.name="#document",this.type=j.Document,this.documentURI=null,this.domConfig=new O,C||(C={}),C.writer||(C.writer=new p),this.options=C,this.stringify=new N(C)}return function(C,_){for(var F in _)T.call(_,F)&&(C[F]=_[F]);function U(){this.constructor=C}U.prototype=_.prototype,C.prototype=new U,C.__super__=_.prototype}(B,S),Object.defineProperty(B.prototype,"implementation",{value:new I}),Object.defineProperty(B.prototype,"doctype",{get:function(){var C,_,F,U;for(_=0,F=(U=this.children).length;_<F;_++)if((C=U[_]).type===j.DocType)return C;return null}}),Object.defineProperty(B.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(B.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(B.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(B.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===j.Declaration?this.children[0].encoding:null}}),Object.defineProperty(B.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===j.Declaration&&this.children[0].standalone==="yes"}}),Object.defineProperty(B.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===j.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(B.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(B.prototype,"origin",{get:function(){return null}}),Object.defineProperty(B.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(B.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(B.prototype,"contentType",{get:function(){return null}}),B.prototype.end=function(C){var _;return _={},C?M(C)&&(_=C,C=this.options.writer):C=this.options.writer,C.document(this,C.filterOptions(_))},B.prototype.toString=function(C){return this.options.writer.document(this,this.options.writer.filterOptions(C))},B.prototype.createElement=function(C){throw new Error("This DOM method is not implemented."+this.debugInfo())},B.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},B.prototype.createTextNode=function(C){throw new Error("This DOM method is not implemented."+this.debugInfo())},B.prototype.createComment=function(C){throw new Error("This DOM method is not implemented."+this.debugInfo())},B.prototype.createCDATASection=function(C){throw new Error("This DOM method is not implemented."+this.debugInfo())},B.prototype.createProcessingInstruction=function(C,_){throw new Error("This DOM method is not implemented."+this.debugInfo())},B.prototype.createAttribute=function(C){throw new Error("This DOM method is not implemented."+this.debugInfo())},B.prototype.createEntityReference=function(C){throw new Error("This DOM method is not implemented."+this.debugInfo())},B.prototype.getElementsByTagName=function(C){throw new Error("This DOM method is not implemented."+this.debugInfo())},B.prototype.importNode=function(C,_){throw new Error("This DOM method is not implemented."+this.debugInfo())},B.prototype.createElementNS=function(C,_){throw new Error("This DOM method is not implemented."+this.debugInfo())},B.prototype.createAttributeNS=function(C,_){throw new Error("This DOM method is not implemented."+this.debugInfo())},B.prototype.getElementsByTagNameNS=function(C,_){throw new Error("This DOM method is not implemented."+this.debugInfo())},B.prototype.getElementById=function(C){throw new Error("This DOM method is not implemented."+this.debugInfo())},B.prototype.adoptNode=function(C){throw new Error("This DOM method is not implemented."+this.debugInfo())},B.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},B.prototype.renameNode=function(C,_,F){throw new Error("This DOM method is not implemented."+this.debugInfo())},B.prototype.getElementsByClassName=function(C){throw new Error("This DOM method is not implemented."+this.debugInfo())},B.prototype.createEvent=function(C){throw new Error("This DOM method is not implemented."+this.debugInfo())},B.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},B.prototype.createNodeIterator=function(C,_,F){throw new Error("This DOM method is not implemented."+this.debugInfo())},B.prototype.createTreeWalker=function(C,_,F){throw new Error("This DOM method is not implemented."+this.debugInfo())},B}(q)}).call(this)},1980:($,w,b)=>{var j=b(5606),O=b(8287).Buffer;Object.defineProperty(w,"__esModule",{value:!0});var I={Client:!0,CopyConditions:!0,PostPolicy:!0};w.PostPolicy=w.CopyConditions=w.Client=void 0;var q=r(b(5479)),p=r(b(1568)),N=r(b(1083)),M=r(b(8310)),T=r(b(253)),S=r(b(9123)),B=r(b(8805)),C=r(b(2268)),_=r(b(6663)),F=r(b(3480)),U=r(b(7975)),z=r(b(2543)),H=b(7019),D=b(2541),Q=b(4579),X=r(b(1616)),et=a(b(8234)),nt=a(b(6097)),ut=b(4883),ct=b(5769);Object.keys(ct).forEach(function(K){K!=="default"&&K!=="__esModule"&&(Object.prototype.hasOwnProperty.call(I,K)||K in w&&w[K]===ct[K]||Object.defineProperty(w,K,{enumerable:!0,get:function(){return ct[K]}}))});var vt=r(b(6768)),t=r(b(6150)),h=b(4348);function l(K){if(typeof WeakMap!="function")return null;var G=new WeakMap,Y=new WeakMap;return(l=function(at){return at?Y:G})(K)}function a(K,G){if(!G&&K&&K.__esModule)return K;if(K===null||typeof K!="object"&&typeof K!="function")return{default:K};var Y=l(G);if(Y&&Y.has(K))return Y.get(K);var at={},ot=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ht in K)if(ht!=="default"&&Object.prototype.hasOwnProperty.call(K,ht)){var tt=ot?Object.getOwnPropertyDescriptor(K,ht):null;tt&&(tt.get||tt.set)?Object.defineProperty(at,ht,tt):at[ht]=K[ht]}return at.default=K,Y&&Y.set(K,at),at}function r(K){return K&&K.__esModule?K:{default:K}}var v=b(6587);class A{constructor(G){if(G.secure!==void 0)throw new Error('"secure" option deprecated, "useSSL" should be used instead');if(G.useSSL===void 0&&(G.useSSL=!0),G.port||(G.port=0),!(0,D.isValidEndpoint)(G.endPoint))throw new nt.InvalidEndpointError(`Invalid endPoint : ${G.endPoint}`);if(!(0,D.isValidPort)(G.port))throw new nt.InvalidArgumentError(`Invalid port : ${G.port}`);if(!(0,D.isBoolean)(G.useSSL))throw new nt.InvalidArgumentError(`Invalid useSSL flag type : ${G.useSSL}, expected to be of type "boolean"`);if(G.region&&!(0,D.isString)(G.region))throw new nt.InvalidArgumentError(`Invalid region : ${G.region}`);var Y,at=G.endPoint.toLowerCase(),ot=G.port,ht="";if(G.useSSL===!1?(Y=p.default,ht="http:",ot===0&&(ot=80)):(Y=N.default,ht="https:",ot===0&&(ot=443)),G.transport){if(!(0,D.isObject)(G.transport))throw new nt.InvalidArgumentError('Invalid transport type : ${params.transport}, expected to be type "object"');Y=G.transport}var tt=`MinIO (${j.platform}; ${j.arch}) minio-js/${v.version}`;if(this.transport=Y,this.host=at,this.port=ot,this.protocol=ht,this.accessKey=G.accessKey,this.secretKey=G.secretKey,this.sessionToken=G.sessionToken,this.userAgent=`${tt}`,G.pathStyle===void 0?this.pathStyle=!0:this.pathStyle=G.pathStyle,this.accessKey||(this.accessKey=""),this.secretKey||(this.secretKey=""),this.anonymous=!this.accessKey||!this.secretKey,G.credentialsProvider&&(this.credentialsProvider=G.credentialsProvider,this.checkAndRefreshCreds()),this.regionMap={},G.region&&(this.region=G.region),this.partSize=67108864,G.partSize&&(this.partSize=G.partSize,this.overRidePartSize=!0),this.partSize<5242880)throw new nt.InvalidArgumentError("Part size should be greater than 5MB");if(this.partSize>5368709120)throw new nt.InvalidArgumentError("Part size should be less than 5GB");this.maximumPartSize=5368709120,this.maxObjectSize=5497558138880,this.enableSHA256=!this.anonymous&&!G.useSSL,this.s3AccelerateEndpoint=G.s3AccelerateEndpoint||null,this.reqOptions={}}getAccelerateEndPointIfSet(G,Y){if(!z.default.isEmpty(this.s3AccelerateEndpoint)&&!z.default.isEmpty(G)&&!z.default.isEmpty(Y)){if(G.indexOf(".")!==-1)throw new Error(`Transfer Acceleration is not supported for non compliant bucket:${G}`);return this.s3AccelerateEndpoint}return!1}setS3TransferAccelerate(G){this.s3AccelerateEndpoint=G}setRequestOptions(G){if(!(0,D.isObject)(G))throw new TypeError('request options should be of type "object"');this.reqOptions=z.default.pick(G,["agent","ca","cert","ciphers","clientCertEngine","crl","dhparam","ecdhCurve","family","honorCipherOrder","key","passphrase","pfx","rejectUnauthorized","secureOptions","secureProtocol","servername","sessionIdContext"])}getRequestOptions(G){var Y,at=G.method,ot=G.region,ht=G.bucketName,tt=G.objectName,it=G.headers,Z=G.query,rt={method:at,headers:{}};if(ht&&(Y=(0,D.isVirtualHostStyle)(this.host,this.protocol,ht,this.pathStyle)),this.port&&(rt.port=this.port),rt.protocol=this.protocol,tt&&(tt=`${(0,D.uriResourceEscape)(tt)}`),rt.path="/",rt.host=this.host,(0,D.isAmazonEndpoint)(rt.host)){const wt=this.getAccelerateEndPointIfSet(ht,tt);rt.host=wt?`${wt}`:(0,ut.getS3Endpoint)(ot)}return Y&&!G.pathStyle?(ht&&(rt.host=`${ht}.${rt.host}`),tt&&(rt.path=`/${tt}`)):(ht&&(rt.path=`/${ht}`),tt&&(rt.path=`/${ht}/${tt}`)),Z&&(rt.path+=`?${Z}`),rt.headers.host=rt.host,(rt.protocol==="http:"&&rt.port!==80||rt.protocol==="https:"&&rt.port!==443)&&(rt.headers.host=`${rt.host}:${rt.port}`),rt.headers["user-agent"]=this.userAgent,it&&z.default.map(it,(wt,gt)=>rt.headers[gt.toLowerCase()]=wt),rt=Object.assign({},this.reqOptions,rt)}setAppInfo(G,Y){if(!(0,D.isString)(G))throw new TypeError(`Invalid appName: ${G}`);if(G.trim()==="")throw new nt.InvalidArgumentError("Input appName cannot be empty.");if(!(0,D.isString)(Y))throw new TypeError(`Invalid appVersion: ${Y}`);if(Y.trim()==="")throw new nt.InvalidArgumentError("Input appVersion cannot be empty.");this.userAgent=`${this.userAgent} ${G}/${Y}`}calculatePartSize(G){if(!(0,D.isNumber)(G))throw new TypeError('size should be of type "number"');if(G>this.maxObjectSize)throw new TypeError(`size should not be more than ${this.maxObjectSize}`);if(this.overRidePartSize)return this.partSize;for(var Y=this.partSize;;){if(1e4*Y>G)return Y;Y+=16777216}}logHTTP(G,Y,at){if(this.logStream){if(!(0,D.isObject)(G))throw new TypeError('reqOptions should be of type "object"');if(Y&&!(0,D.isReadableStream)(Y))throw new TypeError('response should be of type "Stream"');if(at&&!(at instanceof Error))throw new TypeError('err should be of type "Error"');var ot=tt=>{z.default.forEach(tt,(it,Z)=>{if(Z=="authorization"){var rt=new RegExp("Signature=([0-9a-f]+)");it=it.replace(rt,"Signature=**REDACTED**")}this.logStream.write(`${Z}: ${it}
32
+ `)}),this.logStream.write(`
33
+ `)};if(this.logStream.write(`REQUEST: ${G.method} ${G.path}
34
+ `),ot(G.headers),Y&&(this.logStream.write(`RESPONSE: ${Y.statusCode}
35
+ `),ot(Y.headers)),at){this.logStream.write(`ERROR BODY:
36
+ `);var ht=JSON.stringify(at,null," ");this.logStream.write(`${ht}
37
+ `)}}}traceOn(G){G||(G=j.stdout),this.logStream=G}traceOff(){this.logStream=null}makeRequest(G,Y,at,ot,ht,tt){if(!(0,D.isObject)(G))throw new TypeError('options should be of type "object"');if(!(0,D.isString)(Y)&&!(0,D.isObject)(Y))throw new TypeError('payload should be of type "string" or "Buffer"');if(at.forEach(rt=>{if(!(0,D.isNumber)(rt))throw new TypeError('statusCode should be of type "number"')}),!(0,D.isString)(ot))throw new TypeError('region should be of type "string"');if(!(0,D.isBoolean)(ht))throw new TypeError('returnResponse should be of type "boolean"');if(!(0,D.isFunction)(tt))throw new TypeError('callback should be of type "function"');G.headers||(G.headers={}),G.method!=="POST"&&G.method!=="PUT"&&G.method!=="DELETE"||(G.headers["content-length"]=Y.length);var it="";this.enableSHA256&&(it=(0,D.toSha256)(Y));var Z=(0,D.readableStream)(Y);this.makeRequestStream(G,Z,it,at,ot,ht,tt)}makeRequestStream(G,Y,at,ot,ht,tt,it){if(!(0,D.isObject)(G))throw new TypeError('options should be of type "object"');if(!(0,D.isReadableStream)(Y))throw new nt.InvalidArgumentError("stream should be a readable Stream");if(!(0,D.isString)(at))throw new TypeError('sha256sum should be of type "string"');if(ot.forEach(rt=>{if(!(0,D.isNumber)(rt))throw new TypeError('statusCode should be of type "number"')}),!(0,D.isString)(ht))throw new TypeError('region should be of type "string"');if(!(0,D.isBoolean)(tt))throw new TypeError('returnResponse should be of type "boolean"');if(!(0,D.isFunction)(it))throw new TypeError('callback should be of type "function"');if(!this.enableSHA256&&at.length!==0)throw new nt.InvalidArgumentError("sha256sum expected to be empty for anonymous or https requests");if(this.enableSHA256&&at.length!==64)throw new nt.InvalidArgumentError(`Invalid sha256sum : ${at}`);var Z=(rt,wt)=>{if(rt)return it(rt);G.region=wt;var gt=this.getRequestOptions(G);if(!this.anonymous){this.enableSHA256||(at="UNSIGNED-PAYLOAD");let At=new Date;gt.headers["x-amz-date"]=(0,D.makeDateLong)(At),gt.headers["x-amz-content-sha256"]=at,this.sessionToken&&(gt.headers["x-amz-security-token"]=this.sessionToken),this.checkAndRefreshCreds();var St=(0,Q.signV4)(gt,this.accessKey,this.secretKey,wt,At);gt.headers.authorization=St}var Lt=this.transport.request(gt,At=>{if(ot.includes(At.statusCode)){if(this.logHTTP(gt,At),tt)return it(null,At);At.on("data",()=>{}),it(null)}else{delete this.regionMap[G.bucketName];var jt=et.getErrorTransformer(At);(0,D.pipesetup)(At,jt).on("error",Qt=>{this.logHTTP(gt,At,Qt),it(Qt)})}});(0,D.pipesetup)(Y,Lt).on("error",At=>{this.logHTTP(gt,null,At),it(At)})};if(ht)return Z(null,ht);this.getBucketRegion(G.bucketName,Z)}getBucketRegion(G,Y){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError(`Invalid bucket name : ${G}`);if(!(0,D.isFunction)(Y))throw new TypeError('cb should be of type "function"');if(this.region)return Y(null,this.region);if(this.regionMap[G])return Y(null,this.regionMap[G]);var at=tt=>{var it=et.getBucketRegionTransformer(),Z=D.DEFAULT_REGION;(0,D.pipesetup)(tt,it).on("error",Y).on("data",rt=>{rt&&(Z=rt)}).on("end",()=>{this.regionMap[G]=Z,Y(null,Z)})},ot="location",ht=this.pathStyle&&typeof window>"u";this.makeRequest({method:"GET",bucketName:G,query:ot,pathStyle:ht},"",[200],D.DEFAULT_REGION,!0,(tt,it)=>{if(tt){if(tt.name==="AuthorizationHeaderMalformed"){var Z=tt.Region;return Z?void this.makeRequest({method:"GET",bucketName:G,query:ot},"",[200],Z,!0,(rt,wt)=>{if(rt)return Y(rt);at(wt)}):Y(tt)}return Y(tt)}at(it)})}makeBucket(G,Y,at={},ot){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);if((0,D.isObject)(Y)&&(ot=at,at=Y,Y=""),(0,D.isFunction)(Y)&&(ot=Y,Y="",at={}),(0,D.isFunction)(at)&&(ot=at,at={}),!(0,D.isString)(Y))throw new TypeError('region should be of type "string"');if(!(0,D.isObject)(at))throw new TypeError('makeOpts should be of type "object"');if(!(0,D.isFunction)(ot))throw new TypeError('callback should be of type "function"');var ht="";if(Y&&this.region&&Y!==this.region)throw new nt.InvalidArgumentError(`Configured region ${this.region}, requested ${Y}`);if(Y&&Y!==D.DEFAULT_REGION){var tt=[];tt.push({_attr:{xmlns:"http://s3.amazonaws.com/doc/2006-03-01/"}}),tt.push({LocationConstraint:Y});var it={CreateBucketConfiguration:tt};ht=(0,S.default)(it)}var Z={};at.ObjectLocking&&(Z["x-amz-bucket-object-lock-enabled"]=!0),Y||(Y=D.DEFAULT_REGION),this.makeRequest({method:"PUT",bucketName:G,headers:Z},ht,[200],Y,!1,rt=>{if(rt&&(Y===""||Y===D.DEFAULT_REGION)){if(rt.code!=="AuthorizationHeaderMalformed"||rt.region==="")return ot&&ot(rt);this.makeRequest({method:"PUT",bucketName:G,headers:Z},ht,[200],rt.region,!1,ot)}return ot&&ot(rt)})}listBuckets(G){if(!(0,D.isFunction)(G))throw new TypeError('callback should be of type "function"');this.makeRequest({method:"GET"},"",[200],D.DEFAULT_REGION,!0,(Y,at)=>{if(Y)return G(Y);var ot,ht=et.getListBucketTransformer();(0,D.pipesetup)(at,ht).on("data",tt=>ot=tt).on("error",tt=>G(tt)).on("end",()=>G(null,ot))})}listIncompleteUploads(G,Y,at){if(Y===void 0&&(Y=""),at===void 0&&(at=!1),!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);if(!(0,D.isValidPrefix)(Y))throw new nt.InvalidPrefixError(`Invalid prefix : ${Y}`);if(!(0,D.isBoolean)(at))throw new TypeError('recursive should be of type "boolean"');var ot=at?"":"/",ht="",tt="",it=[],Z=!1,rt=M.default.Readable({objectMode:!0});return rt._read=()=>it.length?rt.push(it.shift()):Z?rt.push(null):void this.listIncompleteUploadsQuery(G,Y,ht,tt,ot).on("error",wt=>rt.emit("error",wt)).on("data",wt=>{wt.prefixes.forEach(gt=>it.push(gt)),C.default.eachSeries(wt.uploads,(gt,St)=>{this.listParts(G,gt.key,gt.uploadId,(Lt,At)=>{if(Lt)return St(Lt);gt.size=At.reduce((jt,Qt)=>jt+Qt.size,0),it.push(gt),St()})},gt=>{gt?rt.emit("error",gt):(wt.isTruncated?(ht=wt.nextKeyMarker,tt=wt.nextUploadIdMarker):Z=!0,rt._read())})}),rt}bucketExists(G,Y){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);if(!(0,D.isFunction)(Y))throw new TypeError('callback should be of type "function"');this.makeRequest({method:"HEAD",bucketName:G},"",[200],"",!1,at=>{if(at)return at.code=="NoSuchBucket"||at.code=="NotFound"?Y(null,!1):Y(at);Y(null,!0)})}removeBucket(G,Y){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);if(!(0,D.isFunction)(Y))throw new TypeError('callback should be of type "function"');this.makeRequest({method:"DELETE",bucketName:G},"",[204],"",!1,at=>{at||delete this.regionMap[G],Y(at)})}removeIncompleteUpload(G,Y,at){if(!(0,D.isValidBucketName)(G))throw new nt.isValidBucketNameError("Invalid bucket name: "+G);if(!(0,D.isValidObjectName)(Y))throw new nt.InvalidObjectNameError(`Invalid object name: ${Y}`);if(!(0,D.isFunction)(at))throw new TypeError('callback should be of type "function"');var ot;C.default.during(ht=>{this.findUploadId(G,Y,(tt,it)=>{if(tt)return ht(tt);ot=it,ht(null,it)})},ht=>{var tt=`uploadId=${ot}`;this.makeRequest({method:"DELETE",bucketName:G,objectName:Y,query:tt},"",[204],"",!1,it=>ht(it))},at)}fGetObject(G,Y,at,ot={},ht){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);if(!(0,D.isValidObjectName)(Y))throw new nt.InvalidObjectNameError(`Invalid object name: ${Y}`);if(!(0,D.isString)(at))throw new TypeError('filePath should be of type "string"');if((0,D.isFunction)(ot)&&(ht=ot,ot={}),!(0,D.isFunction)(ht))throw new TypeError('callback should be of type "function"');var tt,it,Z,rt=wt=>{if(wt)return ht(wt);q.default.rename(tt,at,ht)};C.default.waterfall([wt=>this.statObject(G,Y,ot,wt),(wt,gt)=>{Z=wt,(0,F.default)(U.default.dirname(at),gt)},(wt,gt)=>{tt=`${at}.${Z.etag}.part.minio`,q.default.stat(tt,(St,Lt)=>{var At=0;if(St)it=q.default.createWriteStream(tt,{flags:"w"});else{if(Z.size===Lt.size)return rt();At=Lt.size,it=q.default.createWriteStream(tt,{flags:"a"})}this.getPartialObject(G,Y,At,0,ot,gt)})},(wt,gt)=>{(0,D.pipesetup)(wt,it).on("error",St=>gt(St)).on("finish",gt)},wt=>q.default.stat(tt,wt),(wt,gt)=>{if(wt.size===Z.size)return gt();gt(new Error("Size mismatch between downloaded file and the object"))}],rt)}getObject(G,Y,at={},ot){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);if(!(0,D.isValidObjectName)(Y))throw new nt.InvalidObjectNameError(`Invalid object name: ${Y}`);if((0,D.isFunction)(at)&&(ot=at,at={}),!(0,D.isFunction)(ot))throw new TypeError('callback should be of type "function"');this.getPartialObject(G,Y,0,0,at,ot)}getPartialObject(G,Y,at,ot,ht={},tt){if((0,D.isFunction)(ot)&&(tt=ot,ot=0),!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);if(!(0,D.isValidObjectName)(Y))throw new nt.InvalidObjectNameError(`Invalid object name: ${Y}`);if(!(0,D.isNumber)(at))throw new TypeError('offset should be of type "number"');if(!(0,D.isNumber)(ot))throw new TypeError('length should be of type "number"');if((0,D.isFunction)(ht)&&(tt=ht,ht={}),!(0,D.isFunction)(tt))throw new TypeError('callback should be of type "function"');var it="";(at||ot)&&(at?it=`bytes=${+at}-`:(it="bytes=0-",at=0),ot&&(it+=""+(+ot+at-1)));var Z={};it!==""&&(Z.range=it);var rt=[200];it&&rt.push(206);var wt=_.default.stringify(ht);this.makeRequest({method:"GET",bucketName:G,objectName:Y,headers:Z,query:wt},"",rt,"",!0,tt)}fPutObject(G,Y,at,ot,ht){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);if(!(0,D.isValidObjectName)(Y))throw new nt.InvalidObjectNameError(`Invalid object name: ${Y}`);if(!(0,D.isString)(at))throw new TypeError('filePath should be of type "string"');if((0,D.isFunction)(ot)&&(ht=ot,ot={}),!(0,D.isObject)(ot))throw new TypeError('metaData should be of type "object"');var tt,it;ot=(0,D.insertContentType)(ot,at),ot=(0,D.prependXAMZMeta)(ot),C.default.waterfall([Z=>q.default.stat(at,Z),(Z,rt)=>{tt=Z.size;var wt=!1,gt=rt;if(rt=function(){if(!wt)return wt=!0,gt.apply(this,arguments)},tt>this.maxObjectSize)return rt(new Error(`${at} size : ${Z.size}, max allowed size : 5TB`));if(tt<=this.partSize){var St=this.getUploader(G,Y,ot,!1),Lt=et.getHashSummer(this.enableSHA256),At=tt-1;tt===0&&(At=0);var jt={start:0,end:At,autoClose:!0};(0,D.pipesetup)(q.default.createReadStream(at,jt),Lt).on("data",Qt=>{var Dt=Qt.md5sum,zt=Qt.sha256sum,ft=q.default.createReadStream(at,jt);St(ft,tt,zt,Dt,(pt,mt)=>{ht(pt,mt),rt(!0)})}).on("error",Qt=>rt(Qt))}else this.findUploadId(G,Y,rt)},(Z,rt)=>{if(Z)return this.listParts(G,Y,Z,(wt,gt)=>rt(wt,Z,gt));this.initiateNewMultipartUpload(G,Y,ot,(wt,gt)=>rt(wt,gt,[]))},(Z,rt,wt)=>{it=this.calculatePartSize(tt);var gt=this.getUploader(G,Y,ot,!0),St=rt.reduce(function(Qt,Dt){return Qt[Dt.part]||(Qt[Dt.part]=Dt),Qt},{}),Lt=[],At=1,jt=0;C.default.whilst(Qt=>{Qt(null,jt<tt)},Qt=>{var Dt=!1,zt=Qt;Qt=function(){if(!Dt)return Dt=!0,zt.apply(this,arguments)};var ft=St[At],pt=et.getHashSummer(this.enableSHA256),mt=it;mt>tt-jt&&(mt=tt-jt);var Mt={autoClose:!0,start:jt,end:jt+mt-1};(0,D.pipesetup)(q.default.createReadStream(at,Mt),pt).on("data",xt=>{var kt=O.from(xt.md5sum,"base64").toString("hex");if(ft&&kt===ft.etag)return Lt.push({part:At,etag:ft.etag}),At++,jt+=mt,Qt();var $t=q.default.createReadStream(at,Mt);gt(Z,At,$t,mt,xt.sha256sum,xt.md5sum,(Pt,yt)=>Pt?Qt(Pt):(Lt.push({part:At,etag:yt.etag}),At++,jt+=mt,Qt()))}).on("error",xt=>Qt(xt))},Qt=>{if(Qt)return wt(Qt);wt(null,Lt,Z)})},(Z,rt,wt)=>this.completeMultipartUpload(G,Y,rt,Z,wt)],(Z,...rt)=>{Z!==!0&&ht(Z,...rt)})}putObject(G,Y,at,ot,ht,tt){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);if(!(0,D.isValidObjectName)(Y))throw new nt.InvalidObjectNameError(`Invalid object name: ${Y}`);if((0,D.isFunction)(ot)?(tt=ot,ht={}):(0,D.isFunction)(ht)&&(tt=ht,ht={}),(0,D.isObject)(ot)&&(ht=ot),ht=(0,D.prependXAMZMeta)(ht),typeof at=="string"||at instanceof O)ot=at.length,at=(0,D.readableStream)(at);else if(!(0,D.isReadableStream)(at))throw new TypeError('third argument should be of type "stream.Readable" or "Buffer" or "string"');if(!(0,D.isFunction)(tt))throw new TypeError('callback should be of type "function"');if((0,D.isNumber)(ot)&&ot<0)throw new nt.InvalidArgumentError(`size cannot be negative, given size: ${ot}`);(0,D.isNumber)(ot)||(ot=this.maxObjectSize),ot=this.calculatePartSize(ot);let it=new T.default({size:ot,zeroPadding:!1}),Z=new X.default(this,G,Y,ot,ht,tt);at.pipe(it).pipe(Z)}copyObjectV1(G,Y,at,ot,ht){var tt,it,Z=G,rt=Y,wt=at;if(typeof ot=="function"&&ht===void 0?(tt=null,it=ot):(tt=ot,it=ht),!(0,D.isValidBucketName)(Z))throw new nt.InvalidBucketNameError("Invalid bucket name: "+Z);if(!(0,D.isValidObjectName)(rt))throw new nt.InvalidObjectNameError(`Invalid object name: ${rt}`);if(!(0,D.isString)(wt))throw new TypeError('srcObject should be of type "string"');if(wt==="")throw new nt.InvalidPrefixError("Empty source prefix");if(tt!==null&&!(tt instanceof W))throw new TypeError('conditions should be of type "CopyConditions"');var gt={};gt["x-amz-copy-source"]=(0,D.uriResourceEscape)(wt),tt!==null&&(tt.modified!==""&&(gt["x-amz-copy-source-if-modified-since"]=tt.modified),tt.unmodified!==""&&(gt["x-amz-copy-source-if-unmodified-since"]=tt.unmodified),tt.matchETag!==""&&(gt["x-amz-copy-source-if-match"]=tt.matchETag),tt.matchEtagExcept!==""&&(gt["x-amz-copy-source-if-none-match"]=tt.matchETagExcept)),this.makeRequest({method:"PUT",bucketName:Z,objectName:rt,headers:gt},"",[200],"",!0,(St,Lt)=>{if(St)return it(St);var At=et.getCopyObjectTransformer();(0,D.pipesetup)(Lt,At).on("error",jt=>it(jt)).on("data",jt=>it(null,jt))})}copyObjectV2(G,Y,at){if(!(G instanceof D.CopySourceOptions))throw new nt.InvalidArgumentError("sourceConfig should of type CopySourceOptions ");if(!(Y instanceof D.CopyDestinationOptions))throw new nt.InvalidArgumentError("destConfig should of type CopyDestinationOptions ");if(!Y.validate()||!Y.validate())return!1;if(!(0,D.isFunction)(at))throw new TypeError('callback should be of type "function"');const ot=Object.assign({},G.getHeaders(),Y.getHeaders()),ht=Y.Bucket,tt=Y.Object;this.makeRequest({method:"PUT",bucketName:ht,objectName:tt,headers:ot},"",[200],"",!0,(it,Z)=>{if(it)return at(it);const rt=et.getCopyObjectTransformer();(0,D.pipesetup)(Z,rt).on("error",wt=>at(wt)).on("data",wt=>{const gt=Z.headers,St={Bucket:Y.Bucket,Key:Y.Object,LastModified:wt.LastModified,MetaData:(0,D.extractMetadata)(gt),VersionId:(0,D.getVersionId)(gt),SourceVersionId:(0,D.getSourceVersionId)(gt),Etag:(0,D.sanitizeETag)(gt.etag),Size:+gt["content-length"]};return at(null,St)})})}copyObject(...G){return G[0]instanceof D.CopySourceOptions&&G[1]instanceof D.CopyDestinationOptions?this.copyObjectV2(...arguments):this.copyObjectV1(...arguments)}listObjectsQuery(G,Y,at,ot={}){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);if(!(0,D.isString)(Y))throw new TypeError('prefix should be of type "string"');if(!(0,D.isString)(at))throw new TypeError('marker should be of type "string"');let{Delimiter:ht,MaxKeys:tt,IncludeVersion:it}=ot;if(!(0,D.isObject)(ot))throw new TypeError('listQueryOpts should be of type "object"');if(!(0,D.isString)(ht))throw new TypeError('Delimiter should be of type "string"');if(!(0,D.isNumber)(tt))throw new TypeError('MaxKeys should be of type "number"');const Z=[];Z.push(`prefix=${(0,D.uriEscape)(Y)}`),Z.push(`delimiter=${(0,D.uriEscape)(ht)}`),Z.push("encoding-type=url"),it&&Z.push("versions"),at&&(at=(0,D.uriEscape)(at),it?Z.push(`key-marker=${at}`):Z.push(`marker=${at}`)),tt&&(tt>=1e3&&(tt=1e3),Z.push(`max-keys=${tt}`)),Z.sort();var rt="";Z.length>0&&(rt=`${Z.join("&")}`);var wt=et.getListObjectsTransformer();return this.makeRequest({method:"GET",bucketName:G,query:rt},"",[200],"",!0,(gt,St)=>{if(gt)return wt.emit("error",gt);(0,D.pipesetup)(St,wt)}),wt}listObjects(G,Y,at,ot={}){if(Y===void 0&&(Y=""),at===void 0&&(at=!1),!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);if(!(0,D.isValidPrefix)(Y))throw new nt.InvalidPrefixError(`Invalid prefix : ${Y}`);if(!(0,D.isString)(Y))throw new TypeError('prefix should be of type "string"');if(!(0,D.isBoolean)(at))throw new TypeError('recursive should be of type "boolean"');if(!(0,D.isObject)(ot))throw new TypeError('listOpts should be of type "object"');var ht="";const tt={Delimiter:at?"":"/",MaxKeys:1e3,IncludeVersion:ot.IncludeVersion};var it=[],Z=!1,rt=M.default.Readable({objectMode:!0});return rt._read=()=>{if(!it.length)return Z?rt.push(null):void this.listObjectsQuery(G,Y,ht,tt).on("error",wt=>rt.emit("error",wt)).on("data",wt=>{wt.isTruncated?ht=wt.nextMarker||wt.versionIdMarker:Z=!0,it=wt.objects,rt._read()});rt.push(it.shift())},rt}listObjectsV2Query(G,Y,at,ot,ht,tt){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);if(!(0,D.isString)(Y))throw new TypeError('prefix should be of type "string"');if(!(0,D.isString)(at))throw new TypeError('continuationToken should be of type "string"');if(!(0,D.isString)(ot))throw new TypeError('delimiter should be of type "string"');if(!(0,D.isNumber)(ht))throw new TypeError('maxKeys should be of type "number"');if(!(0,D.isString)(tt))throw new TypeError('startAfter should be of type "string"');var it=[];it.push("list-type=2"),it.push("encoding-type=url"),it.push(`prefix=${(0,D.uriEscape)(Y)}`),it.push(`delimiter=${(0,D.uriEscape)(ot)}`),at&&(at=(0,D.uriEscape)(at),it.push(`continuation-token=${at}`)),tt&&(tt=(0,D.uriEscape)(tt),it.push(`start-after=${tt}`)),ht&&(ht>=1e3&&(ht=1e3),it.push(`max-keys=${ht}`)),it.sort();var Z="";it.length>0&&(Z=`${it.join("&")}`);var rt=et.getListObjectsV2Transformer();return this.makeRequest({method:"GET",bucketName:G,query:Z},"",[200],"",!0,(wt,gt)=>{if(wt)return rt.emit("error",wt);(0,D.pipesetup)(gt,rt)}),rt}listObjectsV2(G,Y,at,ot){if(Y===void 0&&(Y=""),at===void 0&&(at=!1),ot===void 0&&(ot=""),!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);if(!(0,D.isValidPrefix)(Y))throw new nt.InvalidPrefixError(`Invalid prefix : ${Y}`);if(!(0,D.isString)(Y))throw new TypeError('prefix should be of type "string"');if(!(0,D.isBoolean)(at))throw new TypeError('recursive should be of type "boolean"');if(!(0,D.isString)(ot))throw new TypeError('startAfter should be of type "string"');var ht=at?"":"/",tt="",it=[],Z=!1,rt=M.default.Readable({objectMode:!0});return rt._read=()=>{if(!it.length)return Z?rt.push(null):void this.listObjectsV2Query(G,Y,tt,ht,1e3,ot).on("error",wt=>rt.emit("error",wt)).on("data",wt=>{wt.isTruncated?tt=wt.nextContinuationToken:Z=!0,it=wt.objects,rt._read()});rt.push(it.shift())},rt}statObject(G,Y,at={},ot){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);if(!(0,D.isValidObjectName)(Y))throw new nt.InvalidObjectNameError(`Invalid object name: ${Y}`);if((0,D.isFunction)(at)&&(ot=at,at={}),!(0,D.isObject)(at))throw new nt.InvalidArgumentError('statOpts should be of type "object"');if(!(0,D.isFunction)(ot))throw new TypeError('callback should be of type "function"');var ht=_.default.stringify(at);this.makeRequest({method:"HEAD",bucketName:G,objectName:Y,query:ht},"",[200],"",!0,(tt,it)=>{if(tt)return ot(tt);it.on("data",()=>{});const Z={size:+it.headers["content-length"],metaData:(0,D.extractMetadata)(it.headers),lastModified:new Date(it.headers["last-modified"]),versionId:(0,D.getVersionId)(it.headers),etag:(0,D.sanitizeETag)(it.headers.etag)};ot(null,Z)})}removeObject(G,Y,at={},ot){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);if(!(0,D.isValidObjectName)(Y))throw new nt.InvalidObjectNameError(`Invalid object name: ${Y}`);if((0,D.isFunction)(at)&&(ot=at,at={}),!(0,D.isObject)(at))throw new nt.InvalidArgumentError('removeOpts should be of type "object"');if(!(0,D.isFunction)(ot))throw new TypeError('callback should be of type "function"');const ht={};at.versionId&&(ht.versionId=`${at.versionId}`);const tt={};at.governanceBypass&&(tt["X-Amz-Bypass-Governance-Retention"]=!0);const it=_.default.stringify(ht);let Z={method:"DELETE",bucketName:G,objectName:Y,headers:tt};it&&(Z.query=it),this.makeRequest(Z,"",[200,204],"",!1,ot)}removeObjects(G,Y,at){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);if(!(0,D.isArray)(Y))throw new nt.InvalidArgumentError("objectsList should be a list");if(!(0,D.isFunction)(at))throw new TypeError('callback should be of type "function"');let ot=Y.reduce((tt,it)=>(tt.list.push(it),tt.list.length===1e3&&(tt.listOfList.push(tt.list),tt.list=[]),tt),{listOfList:[],list:[]});ot.list.length>0&&ot.listOfList.push(ot.list);const ht=new H.TextEncoder;C.default.eachSeries(ot.listOfList,(tt,it)=>{var Z=[];tt.forEach(function(St){(0,D.isObject)(St)?Z.push({Key:St.name,VersionId:St.versionId}):Z.push({Key:St})});let rt={Delete:{Quiet:!0,Object:Z}},wt=new B.default.Builder({headless:!0}).buildObject(rt);wt=ht.encode(wt);const gt={};gt["Content-MD5"]=(0,D.toMd5)(wt),this.makeRequest({method:"POST",bucketName:G,query:"delete",headers:gt},wt,[200],"",!1,St=>{if(St)return it(St);it(null)})},at)}getBucketPolicy(G,Y){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError(`Invalid bucket name: ${G}`);if(!(0,D.isFunction)(Y))throw new TypeError('callback should be of type "function"');this.makeRequest({method:"GET",bucketName:G,query:"policy"},"",[200],"",!0,(at,ot)=>{if(at)return Y(at);let ht=O.from("");(0,D.pipesetup)(ot,et.getConcater()).on("data",tt=>ht=tt).on("error",Y).on("end",()=>{Y(null,ht.toString())})})}setBucketPolicy(G,Y,at){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError(`Invalid bucket name: ${G}`);if(!(0,D.isString)(Y))throw new nt.InvalidBucketPolicyError(`Invalid bucket policy: ${Y} - must be "string"`);if(!(0,D.isFunction)(at))throw new TypeError('callback should be of type "function"');let ot="DELETE";Y&&(ot="PUT"),this.makeRequest({method:ot,bucketName:G,query:"policy"},Y,[204],"",!1,at)}presignedUrl(G,Y,at,ot,ht,tt,it){if(this.anonymous)throw new nt.AnonymousRequestError("Presigned "+G+" url cannot be generated for anonymous requests");if((0,D.isFunction)(tt)&&(it=tt,tt=new Date),(0,D.isFunction)(ht)&&(it=ht,ht={},tt=new Date),(0,D.isFunction)(ot)&&(it=ot,ht={},ot=604800,tt=new Date),!(0,D.isNumber)(ot))throw new TypeError('expires should be of type "number"');if(!(0,D.isObject)(ht))throw new TypeError('reqParams should be of type "object"');if(!(0,D.isValidDate)(tt))throw new TypeError('requestDate should be of type "Date" and valid');if(!(0,D.isFunction)(it))throw new TypeError('callback should be of type "function"');var Z=_.default.stringify(ht);this.getBucketRegion(Y,(rt,wt)=>{if(rt)return it(rt);var gt,St=this.getRequestOptions({method:G,region:wt,bucketName:Y,objectName:at,query:Z});this.checkAndRefreshCreds();try{gt=(0,Q.presignSignatureV4)(St,this.accessKey,this.secretKey,this.sessionToken,wt,tt,ot)}catch(Lt){return it(Lt)}it(null,gt)})}presignedGetObject(G,Y,at,ot,ht,tt){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);if(!(0,D.isValidObjectName)(Y))throw new nt.InvalidObjectNameError(`Invalid object name: ${Y}`);return(0,D.isFunction)(ot)&&(tt=ot,ot={},ht=new Date),["response-content-type","response-content-language","response-expires","response-cache-control","response-content-disposition","response-content-encoding"].forEach(it=>{if(ot!==void 0&&ot[it]!==void 0&&!(0,D.isString)(ot[it]))throw new TypeError(`response header ${it} should be of type "string"`)}),this.presignedUrl("GET",G,Y,at,ot,ht,tt)}presignedPutObject(G,Y,at,ot){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: ${bucketName}");if(!(0,D.isValidObjectName)(Y))throw new nt.InvalidObjectNameError("Invalid object name: ${objectName}");return this.presignedUrl("PUT",G,Y,at,ot)}newPostPolicy(){return new J}presignedPostPolicy(G,Y){if(this.anonymous)throw new nt.AnonymousRequestError("Presigned POST policy cannot be generated for anonymous requests");if(!(0,D.isObject)(G))throw new TypeError('postPolicy should be of type "object"');if(!(0,D.isFunction)(Y))throw new TypeError('cb should be of type "function"');this.getBucketRegion(G.formData.bucket,(at,ot)=>{if(at)return Y(at);var ht=new Date,tt=(0,D.makeDateLong)(ht);if(this.checkAndRefreshCreds(),!G.policy.expiration){var it=new Date;it.setSeconds(604800),G.setExpires(it)}G.policy.conditions.push(["eq","$x-amz-date",tt]),G.formData["x-amz-date"]=tt,G.policy.conditions.push(["eq","$x-amz-algorithm","AWS4-HMAC-SHA256"]),G.formData["x-amz-algorithm"]="AWS4-HMAC-SHA256",G.policy.conditions.push(["eq","$x-amz-credential",this.accessKey+"/"+(0,D.getScope)(ot,ht)]),G.formData["x-amz-credential"]=this.accessKey+"/"+(0,D.getScope)(ot,ht),this.sessionToken&&(G.policy.conditions.push(["eq","$x-amz-security-token",this.sessionToken]),G.formData["x-amz-security-token"]=this.sessionToken);var Z=O.from(JSON.stringify(G.policy)).toString("base64");G.formData.policy=Z;var rt=(0,Q.postPresignSignatureV4)(ot,ht,this.secretKey,Z);G.formData["x-amz-signature"]=rt;var wt={};wt.region=ot,wt.bucketName=G.formData.bucket;var gt=this.getRequestOptions(wt),St=this.port==80||this.port===443?"":`:${this.port.toString()}`,Lt=`${gt.protocol}//${gt.host}${St}${gt.path}`;Y(null,{postURL:Lt,formData:G.formData})})}initiateNewMultipartUpload(G,Y,at,ot){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);if(!(0,D.isValidObjectName)(Y))throw new nt.InvalidObjectNameError(`Invalid object name: ${Y}`);if(!(0,D.isObject)(at))throw new nt.InvalidObjectNameError('contentType should be of type "object"');let ht=Object.assign({},at);this.makeRequest({method:"POST",bucketName:G,objectName:Y,query:"uploads",headers:ht},"",[200],"",!0,(tt,it)=>{if(tt)return ot(tt);var Z=et.getInitiateMultipartTransformer();(0,D.pipesetup)(it,Z).on("error",rt=>ot(rt)).on("data",rt=>ot(null,rt))})}completeMultipartUpload(G,Y,at,ot,ht){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);if(!(0,D.isValidObjectName)(Y))throw new nt.InvalidObjectNameError(`Invalid object name: ${Y}`);if(!(0,D.isString)(at))throw new TypeError('uploadId should be of type "string"');if(!(0,D.isObject)(ot))throw new TypeError('etags should be of type "Array"');if(!(0,D.isFunction)(ht))throw new TypeError('cb should be of type "function"');if(!at)throw new nt.InvalidArgumentError("uploadId cannot be empty");var tt=`uploadId=${(0,D.uriEscape)(at)}`,it=[];ot.forEach(wt=>{it.push({Part:[{PartNumber:wt.part},{ETag:wt.etag}]})});var Z={CompleteMultipartUpload:it},rt=(0,S.default)(Z);this.makeRequest({method:"POST",bucketName:G,objectName:Y,query:tt},rt,[200],"",!0,(wt,gt)=>{if(wt)return ht(wt);var St=et.getCompleteMultipartTransformer();(0,D.pipesetup)(gt,St).on("error",Lt=>ht(Lt)).on("data",Lt=>{if(Lt.errCode)ht(new nt.S3Error(Lt.errMessage));else{const At={etag:Lt.etag,versionId:(0,D.getVersionId)(gt.headers)};ht(null,At)}})})}listParts(G,Y,at,ot){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);if(!(0,D.isValidObjectName)(Y))throw new nt.InvalidObjectNameError(`Invalid object name: ${Y}`);if(!(0,D.isString)(at))throw new TypeError('uploadId should be of type "string"');if(!at)throw new nt.InvalidArgumentError("uploadId cannot be empty");var ht=[],tt=it=>{this.listPartsQuery(G,Y,at,it,(Z,rt)=>{Z?ot(Z):(ht=ht.concat(rt.parts),rt.isTruncated?tt(rt.marker):ot(null,ht))})};tt(0)}listPartsQuery(G,Y,at,ot,ht){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);if(!(0,D.isValidObjectName)(Y))throw new nt.InvalidObjectNameError(`Invalid object name: ${Y}`);if(!(0,D.isString)(at))throw new TypeError('uploadId should be of type "string"');if(!(0,D.isNumber)(ot))throw new TypeError('marker should be of type "number"');if(!(0,D.isFunction)(ht))throw new TypeError('callback should be of type "function"');if(!at)throw new nt.InvalidArgumentError("uploadId cannot be empty");var tt="";ot&&ot!==0&&(tt+=`part-number-marker=${ot}&`),tt+=`uploadId=${(0,D.uriEscape)(at)}`,this.makeRequest({method:"GET",bucketName:G,objectName:Y,query:tt},"",[200],"",!0,(it,Z)=>{if(it)return ht(it);var rt=et.getListPartsTransformer();(0,D.pipesetup)(Z,rt).on("error",wt=>ht(wt)).on("data",wt=>ht(null,wt))})}listIncompleteUploadsQuery(G,Y,at,ot,ht){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);if(!(0,D.isString)(Y))throw new TypeError('prefix should be of type "string"');if(!(0,D.isString)(at))throw new TypeError('keyMarker should be of type "string"');if(!(0,D.isString)(ot))throw new TypeError('uploadIdMarker should be of type "string"');if(!(0,D.isString)(ht))throw new TypeError('delimiter should be of type "string"');var tt=[];tt.push(`prefix=${(0,D.uriEscape)(Y)}`),tt.push(`delimiter=${(0,D.uriEscape)(ht)}`),at&&(at=(0,D.uriEscape)(at),tt.push(`key-marker=${at}`)),ot&&tt.push(`upload-id-marker=${ot}`),tt.push("max-uploads=1000"),tt.sort(),tt.unshift("uploads");var it="";tt.length>0&&(it=`${tt.join("&")}`);var Z=et.getListMultipartTransformer();return this.makeRequest({method:"GET",bucketName:G,query:it},"",[200],"",!0,(rt,wt)=>{if(rt)return Z.emit("error",rt);(0,D.pipesetup)(wt,Z)}),Z}findUploadId(G,Y,at){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);if(!(0,D.isValidObjectName)(Y))throw new nt.InvalidObjectNameError(`Invalid object name: ${Y}`);if(!(0,D.isFunction)(at))throw new TypeError('cb should be of type "function"');var ot,ht=(tt,it)=>{this.listIncompleteUploadsQuery(G,Y,tt,it,"").on("error",Z=>at(Z)).on("data",Z=>{if(Z.uploads.forEach(rt=>{rt.key!==Y||ot&&!(rt.initiated.getTime()>ot.initiated.getTime())||(ot=rt)}),!Z.isTruncated)return ot?at(null,ot.uploadId):void at(null,void 0);ht(Z.nextKeyMarker,Z.nextUploadIdMarker)})};ht("","")}getUploader(G,Y,at,ot){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);if(!(0,D.isValidObjectName)(Y))throw new nt.InvalidObjectNameError(`Invalid object name: ${Y}`);if(!(0,D.isBoolean)(ot))throw new TypeError('multipart should be of type "boolean"');if(!(0,D.isObject)(at))throw new TypeError('metadata should be of type "object"');var ht=(it,Z,rt,wt,gt)=>{if(!(0,D.isReadableStream)(it))throw new TypeError('stream should be of type "Stream"');if(!(0,D.isNumber)(Z))throw new TypeError('length should be of type "number"');if(!(0,D.isString)(rt))throw new TypeError('sha256sum should be of type "string"');if(!(0,D.isString)(wt))throw new TypeError('md5sum should be of type "string"');if(!(0,D.isFunction)(gt))throw new TypeError('callback should be of type "function"')},tt=(it,Z,rt,wt,gt,St)=>{let Lt={"Content-Length":rt};ot||(Lt=Object.assign({},at,Lt)),this.enableSHA256||(Lt["Content-MD5"]=gt),this.makeRequestStream({method:"PUT",bucketName:G,objectName:Y,query:it,headers:Lt},Z,wt,[200],"",!0,(At,jt)=>{if(At)return St(At);const Qt={etag:(0,D.sanitizeETag)(jt.headers.etag),versionId:(0,D.getVersionId)(jt.headers)};jt.on("data",()=>{}),St(null,Qt)})};return ot?(it,Z,...rt)=>{if(!(0,D.isString)(it))throw new TypeError('uploadId should be of type "string"');if(!(0,D.isNumber)(Z))throw new TypeError('partNumber should be of type "number"');if(!it)throw new nt.InvalidArgumentError("Empty uploadId");if(!Z)throw new nt.InvalidArgumentError("partNumber cannot be 0");ht(...rt);var wt=`partNumber=${Z}&uploadId=${(0,D.uriEscape)(it)}`;tt(wt,...rt)}:(...it)=>{ht(...it),tt("",...it)}}setBucketNotification(G,Y,at){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);if(!(0,D.isObject)(Y))throw new TypeError('notification config should be of type "Object"');if(!(0,D.isFunction)(at))throw new TypeError('callback should be of type "function"');var ot=new B.default.Builder({rootName:"NotificationConfiguration",renderOpts:{pretty:!1},headless:!0}).buildObject(Y);this.makeRequest({method:"PUT",bucketName:G,query:"notification"},ot,[200],"",!1,at)}removeAllBucketNotification(G,Y){this.setBucketNotification(G,new ct.NotificationConfig,Y)}getBucketNotification(G,Y){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);if(!(0,D.isFunction)(Y))throw new TypeError('callback should be of type "function"');this.makeRequest({method:"GET",bucketName:G,query:"notification"},"",[200],"",!0,(at,ot)=>{if(at)return Y(at);var ht,tt=et.getBucketNotificationTransformer();(0,D.pipesetup)(ot,tt).on("data",it=>ht=it).on("error",it=>Y(it)).on("end",()=>Y(null,ht))})}listenBucketNotification(G,Y,at,ot){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError(`Invalid bucket name: ${G}`);if(!(0,D.isString)(Y))throw new TypeError("prefix must be of type string");if(!(0,D.isString)(at))throw new TypeError("suffix must be of type string");if(!(0,D.isArray)(ot))throw new TypeError("events must be of type Array");let ht=new ct.NotificationPoller(this,G,Y,at,ot);return ht.start(),ht}getBucketVersioning(G,Y){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);if(!(0,D.isFunction)(Y))throw new nt.InvalidArgumentError('callback should be of type "function"');this.makeRequest({method:"GET",bucketName:G,query:"versioning"},"",[200],"",!0,(at,ot)=>{if(at)return Y(at);let ht=O.from("");(0,D.pipesetup)(ot,et.bucketVersioningTransformer()).on("data",tt=>{ht=tt}).on("error",Y).on("end",()=>{Y(null,ht)})})}setBucketVersioning(G,Y,at){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);if(!Object.keys(Y).length)throw new nt.InvalidArgumentError('versionConfig should be of type "object"');if(!(0,D.isFunction)(at))throw new TypeError('callback should be of type "function"');var ot=new B.default.Builder({rootName:"VersioningConfiguration",renderOpts:{pretty:!1},headless:!0}).buildObject(Y);this.makeRequest({method:"PUT",bucketName:G,query:"versioning"},ot,[200],"",!1,at)}setTagging(G){const{bucketName:Y,objectName:at,tags:ot,putOpts:ht={},cb:tt}=G;let it="tagging";ht&&ht.versionId&&(it=`${it}&versionId=${ht.versionId}`);const Z=[];for(const[At,jt]of Object.entries(ot))Z.push({Key:At,Value:jt});const rt={Tagging:{TagSet:{Tag:Z}}},wt=new H.TextEncoder,gt={};let St=new B.default.Builder({headless:!0,renderOpts:{pretty:!1}}).buildObject(rt);St=wt.encode(St),gt["Content-MD5"]=(0,D.toMd5)(St);const Lt={method:"PUT",bucketName:Y,query:it,headers:gt};at&&(Lt.objectName=at),gt["Content-MD5"]=(0,D.toMd5)(St),this.makeRequest(Lt,St,[200],"",!1,tt)}setBucketTagging(G,Y,at){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);if(!(0,D.isObject)(Y))throw new nt.InvalidArgumentError('tags should be of type "object"');if(Object.keys(Y).length>10)throw new nt.InvalidArgumentError('maximum tags allowed is 10"');if(!(0,D.isFunction)(at))throw new nt.InvalidArgumentError('callback should be of type "function"');return this.setTagging({bucketName:G,tags:Y,cb:at})}setObjectTagging(G,Y,at,ot={},ht){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);if(!(0,D.isValidObjectName)(Y))throw new nt.InvalidBucketNameError("Invalid object name: "+Y);if((0,D.isFunction)(ot)&&(ht=ot,ot={}),!(0,D.isObject)(at))throw new nt.InvalidArgumentError('tags should be of type "object"');if(Object.keys(at).length>10)throw new nt.InvalidArgumentError('Maximum tags allowed is 10"');if(!(0,D.isFunction)(ht))throw new TypeError('callback should be of type "function"');return this.setTagging({bucketName:G,objectName:Y,tags:at,putOpts:ot,cb:ht})}removeTagging({bucketName:G,objectName:Y,removeOpts:at,cb:ot}){let ht="tagging";at&&Object.keys(at).length&&at.versionId&&(ht=`${ht}&versionId=${at.versionId}`);const tt={method:"DELETE",bucketName:G,objectName:Y,query:ht};Y&&(tt.objectName=Y),this.makeRequest(tt,"",[200,204],"",!0,ot)}removeBucketTagging(G,Y){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);if(!(0,D.isFunction)(Y))throw new TypeError('callback should be of type "function"');return this.removeTagging({bucketName:G,cb:Y})}removeObjectTagging(G,Y,at,ot){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);if(!(0,D.isValidObjectName)(Y))throw new nt.InvalidBucketNameError("Invalid object name: "+Y);if((0,D.isFunction)(at)&&(ot=at,at={}),at&&Object.keys(at).length&&!(0,D.isObject)(at))throw new nt.InvalidArgumentError('removeOpts should be of type "object"');if(!(0,D.isFunction)(ot))throw new TypeError('callback should be of type "function"');return this.removeTagging({bucketName:G,objectName:Y,removeOpts:at,cb:ot})}getBucketTagging(G,Y){const at={method:"GET",bucketName:G,query:"tagging"};this.makeRequest(at,"",[200],"",!0,(ot,ht)=>{var tt=et.getTagsTransformer();if(ot)return Y(ot);let it;(0,D.pipesetup)(ht,tt).on("data",Z=>it=Z).on("error",Z=>Y(Z)).on("end",()=>Y(null,it))})}getObjectTagging(G,Y,at={},ot=()=>!1){let ht="tagging";if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);if(!(0,D.isValidObjectName)(Y))throw new nt.InvalidBucketNameError("Invalid object name: "+Y);if((0,D.isFunction)(at)&&(ot=at,at={}),!(0,D.isObject)(at))throw new nt.InvalidArgumentError('getOpts should be of type "object"');if(!(0,D.isFunction)(ot))throw new TypeError('callback should be of type "function"');at&&at.versionId&&(ht=`${ht}&versionId=${at.versionId}`);const tt={method:"GET",bucketName:G,query:ht};Y&&(tt.objectName=Y),this.makeRequest(tt,"",[200],"",!0,(it,Z)=>{const rt=et.getTagsTransformer();if(it)return ot(it);let wt;(0,D.pipesetup)(Z,rt).on("data",gt=>wt=gt).on("error",gt=>ot(gt)).on("end",()=>ot(null,wt))})}applyBucketLifecycle(G,Y,at){const ot=new H.TextEncoder,ht={};let tt=new B.default.Builder({rootName:"LifecycleConfiguration",headless:!0,renderOpts:{pretty:!1}}).buildObject(Y);tt=ot.encode(tt);const it={method:"PUT",bucketName:G,query:"lifecycle",headers:ht};ht["Content-MD5"]=(0,D.toMd5)(tt),this.makeRequest(it,tt,[200],"",!1,at)}removeBucketLifecycle(G,Y){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);this.makeRequest({method:"DELETE",bucketName:G,query:"lifecycle"},"",[204],"",!1,Y)}setBucketLifecycle(G,Y=null,at){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);z.default.isEmpty(Y)?this.removeBucketLifecycle(G,at):this.applyBucketLifecycle(G,Y,at)}getBucketLifecycle(G,Y){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);const at={method:"GET",bucketName:G,query:"lifecycle"};this.makeRequest(at,"",[200],"",!0,(ot,ht)=>{const tt=et.lifecycleTransformer();if(ot)return Y(ot);let it;(0,D.pipesetup)(ht,tt).on("data",Z=>it=Z).on("error",Z=>Y(Z)).on("end",()=>Y(null,it))})}setObjectLockConfig(G,Y={},at){const ot=[D.RETENTION_MODES.COMPLIANCE,D.RETENTION_MODES.GOVERNANCE],ht=[D.RETENTION_VALIDITY_UNITS.DAYS,D.RETENTION_VALIDITY_UNITS.YEARS];if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);if(Y.mode&&!ot.includes(Y.mode))throw new TypeError(`lockConfigOpts.mode should be one of ${ot}`);if(Y.unit&&!ht.includes(Y.unit))throw new TypeError(`lockConfigOpts.unit should be one of ${ht}`);if(Y.validity&&!(0,D.isNumber)(Y.validity))throw new TypeError("lockConfigOpts.validity should be a number");let tt={ObjectLockEnabled:"Enabled"};const it=Object.keys(Y);if(it.length>0){if(z.default.difference(it,["unit","mode","validity"]).length!==0)throw new TypeError("lockConfigOpts.mode,lockConfigOpts.unit,lockConfigOpts.validity all the properties should be specified.");tt.Rule={DefaultRetention:{}},Y.mode&&(tt.Rule.DefaultRetention.Mode=Y.mode),Y.unit===D.RETENTION_VALIDITY_UNITS.DAYS?tt.Rule.DefaultRetention.Days=Y.validity:Y.unit===D.RETENTION_VALIDITY_UNITS.YEARS&&(tt.Rule.DefaultRetention.Years=Y.validity)}const Z=new B.default.Builder({rootName:"ObjectLockConfiguration",renderOpts:{pretty:!1},headless:!0}).buildObject(tt),rt={};rt["Content-MD5"]=(0,D.toMd5)(Z),this.makeRequest({method:"PUT",bucketName:G,query:"object-lock",headers:rt},Z,[200],"",!1,at)}getObjectLockConfig(G,Y){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);if(!(0,D.isFunction)(Y))throw new nt.InvalidArgumentError('callback should be of type "function"');this.makeRequest({method:"GET",bucketName:G,query:"object-lock"},"",[200],"",!0,(at,ot)=>{if(at)return Y(at);let ht=O.from("");(0,D.pipesetup)(ot,et.objectLockTransformer()).on("data",tt=>{ht=tt}).on("error",Y).on("end",()=>{Y(null,ht)})})}putObjectRetention(G,Y,at={},ot){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);if(!(0,D.isValidObjectName)(Y))throw new nt.InvalidObjectNameError(`Invalid object name: ${Y}`);if(!(0,D.isObject)(at))throw new nt.InvalidArgumentError('retentionOpts should be of type "object"');if(at.governanceBypass&&!(0,D.isBoolean)(at.governanceBypass))throw new nt.InvalidArgumentError("Invalid value for governanceBypass",at.governanceBypass);if(at.mode&&![D.RETENTION_MODES.COMPLIANCE,D.RETENTION_MODES.GOVERNANCE].includes(at.mode))throw new nt.InvalidArgumentError("Invalid object retention mode ",at.mode);if(at.retainUntilDate&&!(0,D.isString)(at.retainUntilDate))throw new nt.InvalidArgumentError("Invalid value for retainUntilDate",at.retainUntilDate);if(at.versionId&&!(0,D.isString)(at.versionId))throw new nt.InvalidArgumentError("Invalid value for versionId",at.versionId);if(!(0,D.isFunction)(ot))throw new TypeError('callback should be of type "function"');let ht="retention";const tt={};at.governanceBypass&&(tt["X-Amz-Bypass-Governance-Retention"]=!0);const it=new B.default.Builder({rootName:"Retention",renderOpts:{pretty:!1},headless:!0}),Z={};at.mode&&(Z.Mode=at.mode),at.retainUntilDate&&(Z.RetainUntilDate=at.retainUntilDate),at.versionId&&(ht+=`&versionId=${at.versionId}`);let rt=it.buildObject(Z);tt["Content-MD5"]=(0,D.toMd5)(rt),this.makeRequest({method:"PUT",bucketName:G,objectName:Y,query:ht,headers:tt},rt,[200,204],"",!1,ot)}getObjectRetention(G,Y,at,ot){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);if(!(0,D.isValidObjectName)(Y))throw new nt.InvalidObjectNameError(`Invalid object name: ${Y}`);if(!(0,D.isObject)(at))throw new nt.InvalidArgumentError('callback should be of type "object"');if(at.versionId&&!(0,D.isString)(at.versionId))throw new nt.InvalidArgumentError('VersionID should be of type "string"');if(ot&&!(0,D.isFunction)(ot))throw new nt.InvalidArgumentError('callback should be of type "function"');let ht="retention";at.versionId&&(ht+=`&versionId=${at.versionId}`),this.makeRequest({method:"GET",bucketName:G,objectName:Y,query:ht},"",[200],"",!0,(tt,it)=>{if(tt)return ot(tt);let Z=O.from("");(0,D.pipesetup)(it,et.objectRetentionTransformer()).on("data",rt=>{Z=rt}).on("error",ot).on("end",()=>{ot(null,Z)})})}setBucketEncryption(G,Y,at){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);if((0,D.isFunction)(Y)&&(at=Y,Y=null),!z.default.isEmpty(Y)&&Y.Rule.length>1)throw new nt.InvalidArgumentError("Invalid Rule length. Only one rule is allowed.: "+Y.Rule);if(at&&!(0,D.isFunction)(at))throw new TypeError('callback should be of type "function"');let ot=Y;z.default.isEmpty(Y)&&(ot={Rule:[{ApplyServerSideEncryptionByDefault:{SSEAlgorithm:"AES256"}}]});let ht=new B.default.Builder({rootName:"ServerSideEncryptionConfiguration",renderOpts:{pretty:!1},headless:!0}).buildObject(ot);const tt={};tt["Content-MD5"]=(0,D.toMd5)(ht),this.makeRequest({method:"PUT",bucketName:G,query:"encryption",headers:tt},ht,[200],"",!1,at)}getBucketEncryption(G,Y){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);if(!(0,D.isFunction)(Y))throw new nt.InvalidArgumentError('callback should be of type "function"');this.makeRequest({method:"GET",bucketName:G,query:"encryption"},"",[200],"",!0,(at,ot)=>{if(at)return Y(at);let ht=O.from("");(0,D.pipesetup)(ot,et.bucketEncryptionTransformer()).on("data",tt=>{ht=tt}).on("error",Y).on("end",()=>{Y(null,ht)})})}removeBucketEncryption(G,Y){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);if(!(0,D.isFunction)(Y))throw new nt.InvalidArgumentError('callback should be of type "function"');this.makeRequest({method:"DELETE",bucketName:G,query:"encryption"},"",[204],"",!1,Y)}setBucketReplication(G,Y={},at){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);if(!(0,D.isObject)(Y))throw new nt.InvalidArgumentError('replicationConfig should be of type "object"');if(z.default.isEmpty(Y.role))throw new nt.InvalidArgumentError("Role cannot be empty");if(Y.role&&!(0,D.isString)(Y.role))throw new nt.InvalidArgumentError("Invalid value for role",Y.role);if(z.default.isEmpty(Y.rules))throw new nt.InvalidArgumentError("Minimum one replication rule must be specified");if(!(0,D.isFunction)(at))throw new TypeError('callback should be of type "function"');const ot={},ht={ReplicationConfiguration:{Role:Y.role,Rule:Y.rules}};let tt=new B.default.Builder({renderOpts:{pretty:!1},headless:!0}).buildObject(ht);ot["Content-MD5"]=(0,D.toMd5)(tt),this.makeRequest({method:"PUT",bucketName:G,query:"replication",headers:ot},tt,[200],"",!1,at)}getBucketReplication(G,Y){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);if(!(0,D.isFunction)(Y))throw new nt.InvalidArgumentError('callback should be of type "function"');this.makeRequest({method:"GET",bucketName:G,query:"replication"},"",[200],"",!0,(at,ot)=>{if(at)return Y(at);let ht=O.from("");(0,D.pipesetup)(ot,et.replicationConfigTransformer()).on("data",tt=>{ht=tt}).on("error",Y).on("end",()=>{Y(null,ht)})})}removeBucketReplication(G,Y){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);this.makeRequest({method:"DELETE",bucketName:G,query:"replication"},"",[200,204],"",!1,Y)}getObjectLegalHold(G,Y,at={},ot){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);if(!(0,D.isValidObjectName)(Y))throw new nt.InvalidObjectNameError(`Invalid object name: ${Y}`);if((0,D.isFunction)(at)&&(ot=at,at={}),!(0,D.isObject)(at))throw new TypeError('getOpts should be of type "Object"');if(Object.keys(at).length>0&&at.versionId&&!(0,D.isString)(at.versionId))throw new TypeError("versionId should be of type string.:",at.versionId);if(!(0,D.isFunction)(ot))throw new nt.InvalidArgumentError('callback should be of type "function"');let ht="legal-hold";at.versionId&&(ht+=`&versionId=${at.versionId}`),this.makeRequest({method:"GET",bucketName:G,objectName:Y,query:ht},"",[200],"",!0,(tt,it)=>{if(tt)return ot(tt);let Z=O.from("");(0,D.pipesetup)(it,et.objectLegalHoldTransformer()).on("data",rt=>{Z=rt}).on("error",ot).on("end",()=>{ot(null,Z)})})}setObjectLegalHold(G,Y,at={},ot){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError("Invalid bucket name: "+G);if(!(0,D.isValidObjectName)(Y))throw new nt.InvalidObjectNameError(`Invalid object name: ${Y}`);const ht={status:D.LEGAL_HOLD_STATUS.ENABLED};if((0,D.isFunction)(at)&&(ot=at,at=ht),!(0,D.isObject)(at))throw new TypeError('setOpts should be of type "Object"');if(![D.LEGAL_HOLD_STATUS.ENABLED,D.LEGAL_HOLD_STATUS.DISABLED].includes(at.status))throw new TypeError("Invalid status: "+at.status);if(at.versionId&&!at.versionId.length)throw new TypeError("versionId should be of type string.:"+at.versionId);if(!(0,D.isFunction)(ot))throw new nt.InvalidArgumentError('callback should be of type "function"');z.default.isEmpty(at)&&(at={defaultOpts:ht});let tt="legal-hold";at.versionId&&(tt+=`&versionId=${at.versionId}`);let it={Status:at.status};const Z=new B.default.Builder({rootName:"LegalHold",renderOpts:{pretty:!1},headless:!0}).buildObject(it),rt={};rt["Content-MD5"]=(0,D.toMd5)(Z),this.makeRequest({method:"PUT",bucketName:G,objectName:Y,query:tt,headers:rt},Z,[200],"",!1,ot)}setCredentialsProvider(G){return to(this,null,function*(){if(!(G instanceof t.default))throw new Error("Unable to get credentials. Expected instance of CredentialProvider");this.credentialsProvider=G,yield this.checkAndRefreshCreds()})}checkAndRefreshCreds(){return to(this,null,function*(){if(this.credentialsProvider)return yield this.fetchCredentials()})}fetchCredentials(){return to(this,null,function*(){if(!this.credentialsProvider)throw new Error("Unable to get credentials. Expected instance of BaseCredentialsProvider");{const G=yield this.credentialsProvider.getCredentials();if(!G)throw new Error("Unable to get credentials. Expected instance of BaseCredentialsProvider");this.accessKey=G.getAccessKey(),this.secretKey=G.getSecretKey(),this.sessionToken=G.getSessionToken()}})}abortMultipartUpload(G,Y,at,ot){const ht={method:"DELETE",bucketName:G,objectName:Y,query:`uploadId=${at}`};this.makeRequest(ht,"",[204],"",!1,ot)}uploadPartCopy(G,Y){const{bucketName:at,objectName:ot,uploadID:ht,partNumber:tt,headers:it}=G,Z={method:"PUT",bucketName:at,objectName:ot,query:`uploadId=${ht}&partNumber=${tt}`,headers:it};return this.makeRequest(Z,"",[200],"",!0,(rt,wt)=>{let gt=O.from("");if(rt)return Y(rt);(0,D.pipesetup)(wt,et.uploadPartTransformer()).on("data",St=>{gt=St}).on("error",Y).on("end",()=>{let St={etag:(0,D.sanitizeETag)(gt.ETag),key:ot,part:tt};Y(null,St)})})}composeObject(G={},Y=[],at){const ot=this,ht=Y.length;if(!(0,D.isArray)(Y))throw new nt.InvalidArgumentError("sourceConfig should an array of CopySourceOptions ");if(!(G instanceof D.CopyDestinationOptions))throw new nt.InvalidArgumentError("destConfig should of type CopyDestinationOptions ");if(ht<1||ht>D.PART_CONSTRAINTS.MAX_PARTS_COUNT)throw new nt.InvalidArgumentError(`"There must be as least one and up to ${D.PART_CONSTRAINTS.MAX_PARTS_COUNT} source objects.`);if(!(0,D.isFunction)(at))throw new TypeError('callback should be of type "function"');for(let wt=0;wt<ht;wt++)if(!Y[wt].validate())return!1;if(!G.validate())return!1;const tt=[];let it=0,Z=0;const rt=Y.map(wt=>ot.statObject(wt.Bucket,wt.Object,(gt=>{let St={};return z.default.isEmpty(gt.VersionID)||(St={versionId:gt.VersionID}),St})(wt)));return Promise.all(rt).then(wt=>{const gt=wt.map((jt,Qt)=>{const Dt=Y[Qt];let zt=jt.size;if(Dt.MatchRange){const ft=Dt.Start,pt=Dt.End;if(pt>=zt||ft<0)throw new nt.InvalidArgumentError(`CopySrcOptions ${Qt} has invalid segment-to-copy [${ft}, ${pt}] (size is ${zt})`);zt=pt-ft+1}if(zt<D.PART_CONSTRAINTS.ABS_MIN_PART_SIZE&&Qt<ht-1)throw new nt.InvalidArgumentError(`CopySrcOptions ${Qt} is too small (${zt}) and it is not the last part.`);if(it+=zt,it>D.PART_CONSTRAINTS.MAX_MULTIPART_PUT_OBJECT_SIZE)throw new nt.InvalidArgumentError(`Cannot compose an object of size ${it} (> 5TiB)`);if(tt[Qt]=zt,Z+=(0,D.partsRequired)(zt),Z>D.PART_CONSTRAINTS.MAX_PARTS_COUNT)throw new nt.InvalidArgumentError(`Your proposed compose object requires more than ${D.PART_CONSTRAINTS.MAX_PARTS_COUNT} parts`);return jt});if(Z===1&&it<=D.PART_CONSTRAINTS.MAX_PART_SIZE||it===0)return this.copyObject(Y[0],G,at);for(let jt=0;jt<ht;jt++)Y[jt].MatchETag=gt[jt].etag;const St=gt.map((jt,Qt)=>(0,D.calculateEvenSplits)(tt[Qt],Y[Qt])),Lt=jt=>{const Qt=function(Dt){const zt=[];return St.forEach((ft,pt)=>{const{startIndex:mt,endIndex:Mt,objInfo:xt}=ft;let kt=pt+1;const $t=Array.from(mt),Pt=Y[pt].getHeaders();$t.forEach((yt,dt)=>{let lt=Mt[dt];const _t=`${xt.Bucket}/${xt.Object}`;Pt["x-amz-copy-source"]=`${_t}`,Pt["x-amz-copy-source-range"]=`bytes=${yt}-${lt}`;const qt={bucketName:G.Bucket,objectName:G.Object,uploadID:Dt,partNumber:kt,headers:Pt,sourceObj:_t};zt.push(qt)})}),zt}(jt);C.default.map(Qt,ot.uploadPartCopy.bind(ot),(Dt,zt)=>{if(Dt)return this.abortMultipartUpload(G.Bucket,G.Object,jt,at);const ft=zt.map(pt=>({etag:pt.etag,part:pt.part}));return ot.completeMultipartUpload(G.Bucket,G.Object,jt,ft,at)})},At=G.getHeaders();ot.initiateNewMultipartUpload(G.Bucket,G.Object,At,(jt,Qt)=>{if(jt)return at(jt,null);Lt(Qt)})}).catch(wt=>{at(wt,null)})}selectObjectContent(G,Y,at={},ot){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError(`Invalid bucket name: ${G}`);if(!(0,D.isValidObjectName)(Y))throw new nt.InvalidObjectNameError(`Invalid object name: ${Y}`);if(z.default.isEmpty(at))throw new TypeError("valid select configuration is required");if(!(0,D.isString)(at.expression))throw new TypeError('sqlExpression should be of type "string"');if(z.default.isEmpty(at.inputSerialization))throw new TypeError("inputSerialization is required");if(!(0,D.isObject)(at.inputSerialization))throw new TypeError('inputSerialization should be of type "object"');if(z.default.isEmpty(at.outputSerialization))throw new TypeError("outputSerialization is required");if(!(0,D.isObject)(at.outputSerialization))throw new TypeError('outputSerialization should be of type "object"');if(!(0,D.isFunction)(ot))throw new TypeError('callback should be of type "function"');const ht=[{Expression:at.expression},{ExpressionType:at.expressionType||"SQL"},{InputSerialization:[at.inputSerialization]},{OutputSerialization:[at.outputSerialization]}];at.requestProgress&&ht.push({RequestProgress:at.requestProgress}),at.scanRange&&ht.push({ScanRange:at.scanRange});const tt=new B.default.Builder({rootName:"SelectObjectContentRequest",renderOpts:{pretty:!1},headless:!0}).buildObject(ht);this.makeRequest({method:"POST",bucketName:G,objectName:Y,query:"select&select-type=2"},tt,[200],"",!0,(it,Z)=>{if(it)return ot(it);let rt;(0,D.pipesetup)(Z,et.selectObjectContentTransformer()).on("data",wt=>{rt=(0,h.parseSelectObjectContentResponse)(wt)}).on("error",ot).on("end",()=>{ot(null,rt)})})}get extensions(){return this.clientExtensions||(this.clientExtensions=new vt.default(this)),this.clientExtensions}}w.Client=A,A.prototype.makeBucket=(0,D.promisify)(A.prototype.makeBucket),A.prototype.listBuckets=(0,D.promisify)(A.prototype.listBuckets),A.prototype.bucketExists=(0,D.promisify)(A.prototype.bucketExists),A.prototype.removeBucket=(0,D.promisify)(A.prototype.removeBucket),A.prototype.getObject=(0,D.promisify)(A.prototype.getObject),A.prototype.getPartialObject=(0,D.promisify)(A.prototype.getPartialObject),A.prototype.fGetObject=(0,D.promisify)(A.prototype.fGetObject),A.prototype.putObject=(0,D.promisify)(A.prototype.putObject),A.prototype.fPutObject=(0,D.promisify)(A.prototype.fPutObject),A.prototype.copyObject=(0,D.promisify)(A.prototype.copyObject),A.prototype.statObject=(0,D.promisify)(A.prototype.statObject),A.prototype.removeObject=(0,D.promisify)(A.prototype.removeObject),A.prototype.removeObjects=(0,D.promisify)(A.prototype.removeObjects),A.prototype.presignedUrl=(0,D.promisify)(A.prototype.presignedUrl),A.prototype.presignedGetObject=(0,D.promisify)(A.prototype.presignedGetObject),A.prototype.presignedPutObject=(0,D.promisify)(A.prototype.presignedPutObject),A.prototype.presignedPostPolicy=(0,D.promisify)(A.prototype.presignedPostPolicy),A.prototype.getBucketNotification=(0,D.promisify)(A.prototype.getBucketNotification),A.prototype.setBucketNotification=(0,D.promisify)(A.prototype.setBucketNotification),A.prototype.removeAllBucketNotification=(0,D.promisify)(A.prototype.removeAllBucketNotification),A.prototype.getBucketPolicy=(0,D.promisify)(A.prototype.getBucketPolicy),A.prototype.setBucketPolicy=(0,D.promisify)(A.prototype.setBucketPolicy),A.prototype.removeIncompleteUpload=(0,D.promisify)(A.prototype.removeIncompleteUpload),A.prototype.getBucketVersioning=(0,D.promisify)(A.prototype.getBucketVersioning),A.prototype.setBucketVersioning=(0,D.promisify)(A.prototype.setBucketVersioning),A.prototype.setBucketTagging=(0,D.promisify)(A.prototype.setBucketTagging),A.prototype.removeBucketTagging=(0,D.promisify)(A.prototype.removeBucketTagging),A.prototype.getBucketTagging=(0,D.promisify)(A.prototype.getBucketTagging),A.prototype.setObjectTagging=(0,D.promisify)(A.prototype.setObjectTagging),A.prototype.removeObjectTagging=(0,D.promisify)(A.prototype.removeObjectTagging),A.prototype.getObjectTagging=(0,D.promisify)(A.prototype.getObjectTagging),A.prototype.setBucketLifecycle=(0,D.promisify)(A.prototype.setBucketLifecycle),A.prototype.getBucketLifecycle=(0,D.promisify)(A.prototype.getBucketLifecycle),A.prototype.removeBucketLifecycle=(0,D.promisify)(A.prototype.removeBucketLifecycle),A.prototype.setObjectLockConfig=(0,D.promisify)(A.prototype.setObjectLockConfig),A.prototype.getObjectLockConfig=(0,D.promisify)(A.prototype.getObjectLockConfig),A.prototype.putObjectRetention=(0,D.promisify)(A.prototype.putObjectRetention),A.prototype.getObjectRetention=(0,D.promisify)(A.prototype.getObjectRetention),A.prototype.setBucketEncryption=(0,D.promisify)(A.prototype.setBucketEncryption),A.prototype.getBucketEncryption=(0,D.promisify)(A.prototype.getBucketEncryption),A.prototype.removeBucketEncryption=(0,D.promisify)(A.prototype.removeBucketEncryption),A.prototype.setBucketReplication=(0,D.promisify)(A.prototype.setBucketReplication),A.prototype.getBucketReplication=(0,D.promisify)(A.prototype.getBucketReplication),A.prototype.removeBucketReplication=(0,D.promisify)(A.prototype.removeBucketReplication),A.prototype.setObjectLegalHold=(0,D.promisify)(A.prototype.setObjectLegalHold),A.prototype.getObjectLegalHold=(0,D.promisify)(A.prototype.getObjectLegalHold),A.prototype.composeObject=(0,D.promisify)(A.prototype.composeObject),A.prototype.selectObjectContent=(0,D.promisify)(A.prototype.selectObjectContent);class W{constructor(){this.modified="",this.unmodified="",this.matchETag="",this.matchETagExcept=""}setModified(G){if(!(G instanceof Date))throw new TypeError("date must be of type Date");this.modified=G.toUTCString()}setUnmodified(G){if(!(G instanceof Date))throw new TypeError("date must be of type Date");this.unmodified=G.toUTCString()}setMatchETag(G){this.matchETag=G}setMatchETagExcept(G){this.matchETagExcept=G}}w.CopyConditions=W;class J{constructor(){this.policy={conditions:[]},this.formData={}}setExpires(G){if(!G)throw new nt.InvalidDateError("Invalid date : cannot be null");this.policy.expiration=G.toISOString()}setKey(G){if(!(0,D.isValidObjectName)(G))throw new nt.InvalidObjectNameError(`Invalid object name : ${G}`);this.policy.conditions.push(["eq","$key",G]),this.formData.key=G}setKeyStartsWith(G){if(!(0,D.isValidPrefix)(G))throw new nt.InvalidPrefixError(`Invalid prefix : ${G}`);this.policy.conditions.push(["starts-with","$key",G]),this.formData.key=G}setBucket(G){if(!(0,D.isValidBucketName)(G))throw new nt.InvalidBucketNameError(`Invalid bucket name : ${G}`);this.policy.conditions.push(["eq","$bucket",G]),this.formData.bucket=G}setContentType(G){if(!G)throw new Error("content-type cannot be null");this.policy.conditions.push(["eq","$Content-Type",G]),this.formData["Content-Type"]=G}setContentTypeStartsWith(G){if(!G)throw new Error("content-type cannot be null");this.policy.conditions.push(["starts-with","$Content-Type",G]),this.formData["Content-Type"]=G}setContentDisposition(G){if(!G)throw new Error("content-disposition cannot be null");this.policy.conditions.push(["eq","$Content-Disposition",G]),this.formData["Content-Disposition"]=G}setContentLengthRange(G,Y){if(G>Y)throw new Error("min cannot be more than max");if(G<0)throw new Error("min should be > 0");if(Y<0)throw new Error("max should be > 0");this.policy.conditions.push(["content-length-range",G,Y])}setUserMetaData(G){if(!(0,D.isObject)(G))throw new TypeError('metadata should be of type "object"');Object.entries(G).forEach(([Y,at])=>{const ot=`x-amz-meta-${Y}`;this.policy.conditions.push(["eq",`$${ot}`,at]),this.formData[ot]=at})}}w.PostPolicy=J},2010:($,w,b)=>{var j=b(6698),O=b(7568),I=O.base,q=O.bignum,p=O.constants.der;function N(B){this.enc="der",this.name=B.name,this.entity=B,this.tree=new M,this.tree._init(B.body)}function M(B){I.Node.call(this,"der",B)}function T(B,C){var _=B.readUInt8(C);if(B.isError(_))return _;var F=p.tagClass[_>>6],U=!(32&_);if(31&~_)_&=31;else{var z=_;for(_=0;!(128&~z);){if(z=B.readUInt8(C),B.isError(z))return z;_<<=7,_|=127&z}}return{cls:F,primitive:U,tag:_,tagStr:p.tag[_]}}function S(B,C,_){var F=B.readUInt8(_);if(B.isError(F))return F;if(!C&&F===128)return null;if(!(128&F))return F;var U=127&F;if(U>4)return B.error("length octect is too long");F=0;for(var z=0;z<U;z++){F<<=8;var H=B.readUInt8(_);if(B.isError(H))return H;F|=H}return F}$.exports=N,N.prototype.decode=function(B,C){return B instanceof I.DecoderBuffer||(B=new I.DecoderBuffer(B,C)),this.tree._decode(B,C)},j(M,I.Node),M.prototype._peekTag=function(B,C,_){if(B.isEmpty())return!1;var F=B.save(),U=T(B,'Failed to peek tag: "'+C+'"');return B.isError(U)?U:(B.restore(F),U.tag===C||U.tagStr===C||U.tagStr+"of"===C||_)},M.prototype._decodeTag=function(B,C,_){var F=T(B,'Failed to decode tag of "'+C+'"');if(B.isError(F))return F;var U=S(B,F.primitive,'Failed to get length of "'+C+'"');if(B.isError(U))return U;if(!_&&F.tag!==C&&F.tagStr!==C&&F.tagStr+"of"!==C)return B.error('Failed to match tag: "'+C+'"');if(F.primitive||U!==null)return B.skip(U,'Failed to match body of: "'+C+'"');var z=B.save(),H=this._skipUntilEnd(B,'Failed to skip indefinite length body: "'+this.tag+'"');return B.isError(H)?H:(U=B.offset-z.offset,B.restore(z),B.skip(U,'Failed to match body of: "'+C+'"'))},M.prototype._skipUntilEnd=function(B,C){for(;;){var _=T(B,C);if(B.isError(_))return _;var F,U=S(B,_.primitive,C);if(B.isError(U))return U;if(F=_.primitive||U!==null?B.skip(U):this._skipUntilEnd(B,C),B.isError(F))return F;if(_.tagStr==="end")break}},M.prototype._decodeList=function(B,C,_,F){for(var U=[];!B.isEmpty();){var z=this._peekTag(B,"end");if(B.isError(z))return z;var H=_.decode(B,"der",F);if(B.isError(H)&&z)break;U.push(H)}return U},M.prototype._decodeStr=function(B,C){if(C==="bitstr"){var _=B.readUInt8();return B.isError(_)?_:{unused:_,data:B.raw()}}if(C==="bmpstr"){var F=B.raw();if(F.length%2==1)return B.error("Decoding of string type: bmpstr length mismatch");for(var U="",z=0;z<F.length/2;z++)U+=String.fromCharCode(F.readUInt16BE(2*z));return U}if(C==="numstr"){var H=B.raw().toString("ascii");return this._isNumstr(H)?H:B.error("Decoding of string type: numstr unsupported characters")}if(C==="octstr"||C==="objDesc")return B.raw();if(C==="printstr"){var D=B.raw().toString("ascii");return this._isPrintstr(D)?D:B.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(C)?B.raw().toString():B.error("Decoding of string type: "+C+" unsupported")},M.prototype._decodeObjid=function(B,C,_){for(var F,U=[],z=0;!B.isEmpty();){var H=B.readUInt8();z<<=7,z|=127&H,128&H||(U.push(z),z=0)}128&H&&U.push(z);var D=U[0]/40|0,Q=U[0]%40;if(F=_?U:[D,Q].concat(U.slice(1)),C){var X=C[F.join(" ")];X===void 0&&(X=C[F.join(".")]),X!==void 0&&(F=X)}return F},M.prototype._decodeTime=function(B,C){var _=B.raw().toString();if(C==="gentime")var F=0|_.slice(0,4),U=0|_.slice(4,6),z=0|_.slice(6,8),H=0|_.slice(8,10),D=0|_.slice(10,12),Q=0|_.slice(12,14);else{if(C!=="utctime")return B.error("Decoding "+C+" time is not supported yet");F=0|_.slice(0,2),U=0|_.slice(2,4),z=0|_.slice(4,6),H=0|_.slice(6,8),D=0|_.slice(8,10),Q=0|_.slice(10,12),F=F<70?2e3+F:1900+F}return Date.UTC(F,U-1,z,H,D,Q,0)},M.prototype._decodeNull=function(B){return null},M.prototype._decodeBool=function(B){var C=B.readUInt8();return B.isError(C)?C:C!==0},M.prototype._decodeInt=function(B,C){var _=B.raw(),F=new q(_);return C&&(F=C[F.toString(10)]||F),F},M.prototype._use=function(B,C){return typeof B=="function"&&(B=B(C)),B._getDecoder("der").tree}},2061:$=>{$.exports=function(w,b){for(var j=w.length,O=-1;++O<j;)w[O]^=b[O];return w}},2114:function($,w){(function(){var b;b=new RegExp(/(?!xmlns)^.*:/),w.normalize=function(j){return j.toLowerCase()},w.firstCharLowerCase=function(j){return j.charAt(0).toLowerCase()+j.slice(1)},w.stripPrefix=function(j){return j.replace(b,"")},w.parseNumbers=function(j){return isNaN(j)||(j=j%1==0?parseInt(j,10):parseFloat(j)),j},w.parseBooleans=function(j){return/^(?:true|false)$/i.test(j)&&(j=j.toLowerCase()==="true"),j}}).call(this)},2153:($,w,b)=>{var j=w;j._reverse=function(O){var I={};return Object.keys(O).forEach(function(q){(0|q)==q&&(q|=0);var p=O[q];I[p]=q}),I},j.der=b(4598)},2205:($,w,b)=>{var j=b(6743),O=b(1002),I=b(3144);$.exports=function(){return I(j,O,arguments)}},2211:($,w,b)=>{var j=b(3349),O=b(6698),I=b(7626),q=b(2808);function p(){this.tmp=new Array(2),this.keys=null}function N(T){q.call(this,T);var S=new p;this._desState=S,this.deriveKeys(S,T.key)}O(N,q),$.exports=N,N.create=function(T){return new N(T)};var M=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];N.prototype.deriveKeys=function(T,S){T.keys=new Array(32),j.equal(S.length,this.blockSize,"Invalid key length");var B=I.readUInt32BE(S,0),C=I.readUInt32BE(S,4);I.pc1(B,C,T.tmp,0),B=T.tmp[0],C=T.tmp[1];for(var _=0;_<T.keys.length;_+=2){var F=M[_>>>1];B=I.r28shl(B,F),C=I.r28shl(C,F),I.pc2(B,C,T.keys,_)}},N.prototype._update=function(T,S,B,C){var _=this._desState,F=I.readUInt32BE(T,S),U=I.readUInt32BE(T,S+4);I.ip(F,U,_.tmp,0),F=_.tmp[0],U=_.tmp[1],this.type==="encrypt"?this._encrypt(_,F,U,_.tmp,0):this._decrypt(_,F,U,_.tmp,0),F=_.tmp[0],U=_.tmp[1],I.writeUInt32BE(B,F,C),I.writeUInt32BE(B,U,C+4)},N.prototype._pad=function(T,S){if(this.padding===!1)return!1;for(var B=T.length-S,C=S;C<T.length;C++)T[C]=B;return!0},N.prototype._unpad=function(T){if(this.padding===!1)return T;for(var S=T[T.length-1],B=T.length-S;B<T.length;B++)j.equal(T[B],S);return T.slice(0,T.length-S)},N.prototype._encrypt=function(T,S,B,C,_){for(var F=S,U=B,z=0;z<T.keys.length;z+=2){var H=T.keys[z],D=T.keys[z+1];I.expand(U,T.tmp,0),H^=T.tmp[0],D^=T.tmp[1];var Q=I.substitute(H,D),X=U;U=(F^I.permute(Q))>>>0,F=X}I.rip(U,F,C,_)},N.prototype._decrypt=function(T,S,B,C,_){for(var F=B,U=S,z=T.keys.length-2;z>=0;z-=2){var H=T.keys[z],D=T.keys[z+1];I.expand(F,T.tmp,0),H^=T.tmp[0],D^=T.tmp[1];var Q=I.substitute(H,D),X=F;F=(U^I.permute(Q))>>>0,U=X}I.rip(F,U,C,_)}},2244:($,w,b)=>{var j=b(1158),O=b(5037);function I(q){this.rand=q||new O.Rand}$.exports=I,I.create=function(q){return new I(q)},I.prototype._randbelow=function(q){var p=q.bitLength(),N=Math.ceil(p/8);do var M=new j(this.rand.generate(N));while(M.cmp(q)>=0);return M},I.prototype._randrange=function(q,p){var N=p.sub(q);return q.add(this._randbelow(N))},I.prototype.test=function(q,p,N){var M=q.bitLength(),T=j.mont(q),S=new j(1).toRed(T);p||(p=Math.max(1,M/48|0));for(var B=q.subn(1),C=0;!B.testn(C);C++);for(var _=q.shrn(C),F=B.toRed(T);p>0;p--){var U=this._randrange(new j(2),B);N&&N(U);var z=U.toRed(T).redPow(_);if(z.cmp(S)!==0&&z.cmp(F)!==0){for(var H=1;H<C;H++){if((z=z.redSqr()).cmp(S)===0)return!1;if(z.cmp(F)===0)break}if(H===C)return!1}}return!0},I.prototype.getDivisor=function(q,p){var N=q.bitLength(),M=j.mont(q),T=new j(1).toRed(M);p||(p=Math.max(1,N/48|0));for(var S=q.subn(1),B=0;!S.testn(B);B++);for(var C=q.shrn(B),_=S.toRed(M);p>0;p--){var F=this._randrange(new j(2),S),U=q.gcd(F);if(U.cmpn(1)!==0)return U;var z=F.toRed(M).redPow(C);if(z.cmp(T)!==0&&z.cmp(_)!==0){for(var H=1;H<B;H++){if((z=z.redSqr()).cmp(T)===0)return z.fromRed().subn(1).gcd(q);if(z.cmp(_)===0)break}if(H===B)return(z=z.redSqr()).fromRed().subn(1).gcd(q)}}return!1}},2268:($,w,b)=>{b.r(w),b.d(w,{all:()=>be,allLimit:()=>Vt,allSeries:()=>Jt,any:()=>pr,anyLimit:()=>Le,anySeries:()=>De,apply:()=>I,applyEach:()=>v,applyEachSeries:()=>J,asyncify:()=>C,auto:()=>Y,autoInject:()=>it,cargo:()=>gt,cargoQueue:()=>St,compose:()=>jt,concat:()=>zt,concatLimit:()=>Dt,concatSeries:()=>ft,constant:()=>pt,default:()=>Ii,detect:()=>Mt,detectLimit:()=>xt,detectSeries:()=>kt,dir:()=>Pt,doDuring:()=>yt,doUntil:()=>dt,doWhilst:()=>yt,during:()=>Pn,each:()=>_t,eachLimit:()=>qt,eachOf:()=>a,eachOfLimit:()=>t,eachOfSeries:()=>A,eachSeries:()=>It,ensureAsync:()=>Nt,every:()=>be,everyLimit:()=>Vt,everySeries:()=>Jt,filter:()=>Ne,filterLimit:()=>Gt,filterSeries:()=>se,find:()=>Mt,findLimit:()=>xt,findSeries:()=>kt,flatMap:()=>zt,flatMapLimit:()=>Dt,flatMapSeries:()=>ft,foldl:()=>Lt,foldr:()=>$e,forEach:()=>_t,forEachLimit:()=>qt,forEachOf:()=>a,forEachOfLimit:()=>t,forEachOfSeries:()=>A,forEachSeries:()=>It,forever:()=>qe,groupBy:()=>he,groupByLimit:()=>Zt,groupBySeries:()=>Qe,inject:()=>Lt,log:()=>Yt,map:()=>r,mapLimit:()=>Qt,mapSeries:()=>W,mapValues:()=>Ge,mapValuesLimit:()=>ce,mapValuesSeries:()=>Ut,memoize:()=>te,nextTick:()=>He,parallel:()=>me,parallelLimit:()=>tr,priorityQueue:()=>ge,queue:()=>ie,race:()=>We,reduce:()=>Lt,reduceRight:()=>$e,reflect:()=>cr,reflectAll:()=>mr,reject:()=>gr,rejectLimit:()=>vr,rejectSeries:()=>yr,retry:()=>fr,retryable:()=>_r,select:()=>Ne,selectLimit:()=>Gt,selectSeries:()=>se,seq:()=>At,series:()=>Mr,setImmediate:()=>B,some:()=>pr,someLimit:()=>Le,someSeries:()=>De,sortBy:()=>xr,timeout:()=>Er,times:()=>En,timesLimit:()=>yn,timesSeries:()=>Oi,transform:()=>Lr,tryEach:()=>pi,unmemoize:()=>Bn,until:()=>ti,waterfall:()=>Jr,whilst:()=>Pn,wrapSync:()=>C});var j=b(5606),O=b(6763);function I(Bt,...Ot){return(...Ct)=>Bt(...Ot,...Ct)}function q(Bt){return function(...Ot){var Ct=Ot.pop();return Bt.call(this,Ot,Ct)}}var p=typeof queueMicrotask=="function"&&queueMicrotask,N=typeof setImmediate=="function"&&setImmediate,M=typeof j=="object"&&typeof j.nextTick=="function";function T(Bt){setTimeout(Bt,0)}function S(Bt){return(Ot,...Ct)=>Bt(()=>Ot(...Ct))}var B=S(p?queueMicrotask:N?setImmediate:M?j.nextTick:T);function C(Bt){return U(Bt)?function(...Ot){const Ct=Ot.pop();return _(Bt.apply(this,Ot),Ct)}:q(function(Ot,Ct){var Wt;try{Wt=Bt.apply(this,Ot)}catch(le){return Ct(le)}if(Wt&&typeof Wt.then=="function")return _(Wt,Ct);Ct(null,Wt)})}function _(Bt,Ot){return Bt.then(Ct=>{F(Ot,null,Ct)},Ct=>{F(Ot,Ct&&(Ct instanceof Error||Ct.message)?Ct:new Error(Ct))})}function F(Bt,Ot,Ct){try{Bt(Ot,Ct)}catch(Wt){B(le=>{throw le},Wt)}}function U(Bt){return Bt[Symbol.toStringTag]==="AsyncFunction"}function z(Bt){if(typeof Bt!="function")throw new Error("expected a function");return U(Bt)?C(Bt):Bt}function H(Bt,Ot){if(Ot||(Ot=Bt.length),!Ot)throw new Error("arity is undefined");return function(...Ct){return typeof Ct[Ot-1]=="function"?Bt.apply(this,Ct):new Promise((Wt,le)=>{Ct[Ot-1]=(Xt,...pe)=>{if(Xt)return le(Xt);Wt(pe.length>1?pe:pe[0])},Bt.apply(this,Ct)})}}function D(Bt){return function(Ot,...Ct){return H(function(Wt){var le=this;return Bt(Ot,(Xt,pe)=>{z(Xt).apply(le,Ct.concat(pe))},Wt)})}}function Q(Bt,Ot,Ct,Wt){Ot=Ot||[];var le=[],Xt=0,pe=z(Ct);return Bt(Ot,(fe,xe,je)=>{var Ye=Xt++;pe(fe,(Xe,ar)=>{le[Ye]=ar,je(Xe)})},fe=>{Wt(fe,le)})}function X(Bt){return Bt&&typeof Bt.length=="number"&&Bt.length>=0&&Bt.length%1==0}const et={};function nt(Bt){function Ot(...Ct){if(Bt!==null){var Wt=Bt;Bt=null,Wt.apply(this,Ct)}}return Object.assign(Ot,Bt),Ot}function ut(Bt){return function(...Ot){if(Bt===null)throw new Error("Callback was already called.");var Ct=Bt;Bt=null,Ct.apply(this,Ot)}}function ct(Bt,Ot,Ct,Wt){let le=!1,Xt=!1,pe=!1,fe=0,xe=0;function je(){fe>=Ot||pe||le||(pe=!0,Bt.next().then(({value:ar,done:Pe})=>{if(!Xt&&!le){if(pe=!1,Pe)return le=!0,void(fe<=0&&Wt(null));fe++,Ct(ar,xe,Ye),xe++,je()}}).catch(Xe))}function Ye(ar,Pe){if(fe-=1,!Xt)return ar?Xe(ar):ar===!1?(le=!0,void(Xt=!0)):Pe===et||le&&fe<=0?(le=!0,Wt(null)):void je()}function Xe(ar){Xt||(pe=!1,le=!0,Wt(ar))}je()}var vt=Bt=>(Ot,Ct,Wt)=>{if(Wt=nt(Wt),Bt<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!Ot)return Wt(null);if(Ot[Symbol.toStringTag]==="AsyncGenerator")return ct(Ot,Bt,Ct,Wt);if(function(Xe){return typeof Xe[Symbol.asyncIterator]=="function"}(Ot))return ct(Ot[Symbol.asyncIterator](),Bt,Ct,Wt);var le=function(Xe){if(X(Xe))return function(Ce){var Ve=-1,kr=Ce.length;return function(){return++Ve<kr?{value:Ce[Ve],key:Ve}:null}}(Xe);var ar,Pe,Cr,Oe,Re=function(Ce){return Ce[Symbol.iterator]&&Ce[Symbol.iterator]()}(Xe);return Re?function(Ce){var Ve=-1;return function(){var kr=Ce.next();return kr.done?null:(Ve++,{value:kr.value,key:Ve})}}(Re):(Pe=(ar=Xe)?Object.keys(ar):[],Cr=-1,Oe=Pe.length,function Ce(){var Ve=Pe[++Cr];return Ve==="__proto__"?Ce():Cr<Oe?{value:ar[Ve],key:Ve}:null})}(Ot),Xt=!1,pe=!1,fe=0,xe=!1;function je(Xe,ar){if(!pe)if(fe-=1,Xe)Xt=!0,Wt(Xe);else if(Xe===!1)Xt=!0,pe=!0;else{if(ar===et||Xt&&fe<=0)return Xt=!0,Wt(null);xe||Ye()}}function Ye(){for(xe=!0;fe<Bt&&!Xt;){var Xe=le();if(Xe===null)return Xt=!0,void(fe<=0&&Wt(null));fe+=1,Ct(Xe.value,Xe.key,ut(je))}xe=!1}Ye()},t=H(function(Bt,Ot,Ct,Wt){return vt(Ot)(Bt,z(Ct),Wt)},4);function h(Bt,Ot,Ct){Ct=nt(Ct);var Wt=0,le=0,{length:Xt}=Bt,pe=!1;function fe(xe,je){xe===!1&&(pe=!0),pe!==!0&&(xe?Ct(xe):++le!==Xt&&je!==et||Ct(null))}for(Xt===0&&Ct(null);Wt<Xt;Wt++)Ot(Bt[Wt],Wt,ut(fe))}function l(Bt,Ot,Ct){return t(Bt,1/0,Ot,Ct)}var a=H(function(Bt,Ot,Ct){return(X(Bt)?h:l)(Bt,z(Ot),Ct)},3),r=H(function(Bt,Ot,Ct){return Q(a,Bt,Ot,Ct)},3),v=D(r),A=H(function(Bt,Ot,Ct){return t(Bt,1,Ot,Ct)},3),W=H(function(Bt,Ot,Ct){return Q(A,Bt,Ot,Ct)},3),J=D(W);const K=Symbol("promiseCallback");function G(){let Bt,Ot;function Ct(Wt,...le){if(Wt)return Ot(Wt);Bt(le.length>1?le:le[0])}return Ct[K]=new Promise((Wt,le)=>{Bt=Wt,Ot=le}),Ct}function Y(Bt,Ot,Ct){typeof Ot!="number"&&(Ct=Ot,Ot=null),Ct=nt(Ct||G());var Wt=Object.keys(Bt).length;if(!Wt)return Ct(null);Ot||(Ot=Wt);var le={},Xt=0,pe=!1,fe=!1,xe=Object.create(null),je=[],Ye=[],Xe={};function ar(Oe,Re){je.push(()=>function(Ce,Ve){if(!fe){var kr=ut((Or,...Hr)=>{if(Xt--,Or!==!1)if(Hr.length<2&&([Hr]=Hr),Or){var un={};if(Object.keys(le).forEach(Yr=>{un[Yr]=le[Yr]}),un[Ce]=Hr,fe=!0,xe=Object.create(null),pe)return;Ct(Or,un)}else le[Ce]=Hr,(xe[Ce]||[]).forEach(Yr=>Yr()),Pe();else pe=!0});Xt++;var jr=z(Ve[Ve.length-1]);Ve.length>1?jr(le,kr):jr(kr)}}(Oe,Re))}function Pe(){if(!pe){if(je.length===0&&Xt===0)return Ct(null,le);for(;je.length&&Xt<Ot;)je.shift()()}}function Cr(Oe){var Re=[];return Object.keys(Bt).forEach(Ce=>{const Ve=Bt[Ce];Array.isArray(Ve)&&Ve.indexOf(Oe)>=0&&Re.push(Ce)}),Re}return Object.keys(Bt).forEach(Oe=>{var Re=Bt[Oe];if(!Array.isArray(Re))return ar(Oe,[Re]),void Ye.push(Oe);var Ce=Re.slice(0,Re.length-1),Ve=Ce.length;if(Ve===0)return ar(Oe,Re),void Ye.push(Oe);Xe[Oe]=Ve,Ce.forEach(kr=>{if(!Bt[kr])throw new Error("async.auto task `"+Oe+"` has a non-existent dependency `"+kr+"` in "+Ce.join(", "));var jr,Or;(Or=xe[jr=kr])||(Or=xe[jr]=[]),Or.push(()=>{--Ve==0&&ar(Oe,Re)})})}),function(){for(var Oe=0;Ye.length;)Oe++,Cr(Ye.pop()).forEach(Re=>{--Xe[Re]==0&&Ye.push(Re)});if(Oe!==Wt)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}(),Pe(),Ct[K]}var at=/^(?:async\s)?(?:function)?\s*(?:\w+\s*)?\(([^)]+)\)(?:\s*{)/,ot=/^(?:async\s)?\s*(?:\(\s*)?((?:[^)=\s]\s*)*)(?:\)\s*)?=>/,ht=/,/,tt=/(=.+)?(\s*)$/;function it(Bt,Ot){var Ct={};return Object.keys(Bt).forEach(Wt=>{var le,Xt=Bt[Wt],pe=U(Xt),fe=!pe&&Xt.length===1||pe&&Xt.length===0;if(Array.isArray(Xt))le=[...Xt],Xt=le.pop(),Ct[Wt]=le.concat(le.length>0?xe:Xt);else if(fe)Ct[Wt]=Xt;else{if(le=function(je){const Ye=function(Pe){let Cr="",Oe=0,Re=Pe.indexOf("*/");for(;Oe<Pe.length;)if(Pe[Oe]==="/"&&Pe[Oe+1]==="/"){let Ce=Pe.indexOf(`
38
+ `,Oe);Oe=Ce===-1?Pe.length:Ce}else if(Re!==-1&&Pe[Oe]==="/"&&Pe[Oe+1]==="*"){let Ce=Pe.indexOf("*/",Oe);Ce!==-1?(Oe=Ce+2,Re=Pe.indexOf("*/",Oe)):(Cr+=Pe[Oe],Oe++)}else Cr+=Pe[Oe],Oe++;return Cr}(je.toString());let Xe=Ye.match(at);if(Xe||(Xe=Ye.match(ot)),!Xe)throw new Error(`could not parse args in autoInject
39
+ Source:
40
+ `+Ye);let[,ar]=Xe;return ar.replace(/\s/g,"").split(ht).map(Pe=>Pe.replace(tt,"").trim())}(Xt),Xt.length===0&&!pe&&le.length===0)throw new Error("autoInject task functions require explicit parameters.");pe||le.pop(),Ct[Wt]=le.concat(xe)}function xe(je,Ye){var Xe=le.map(ar=>je[ar]);Xe.push(Ye),z(Xt)(...Xe)}}),Y(Ct,Ot)}class Z{constructor(){this.head=this.tail=null,this.length=0}removeLink(Ot){return Ot.prev?Ot.prev.next=Ot.next:this.head=Ot.next,Ot.next?Ot.next.prev=Ot.prev:this.tail=Ot.prev,Ot.prev=Ot.next=null,this.length-=1,Ot}empty(){for(;this.head;)this.shift();return this}insertAfter(Ot,Ct){Ct.prev=Ot,Ct.next=Ot.next,Ot.next?Ot.next.prev=Ct:this.tail=Ct,Ot.next=Ct,this.length+=1}insertBefore(Ot,Ct){Ct.prev=Ot.prev,Ct.next=Ot,Ot.prev?Ot.prev.next=Ct:this.head=Ct,Ot.prev=Ct,this.length+=1}unshift(Ot){this.head?this.insertBefore(this.head,Ot):rt(this,Ot)}push(Ot){this.tail?this.insertAfter(this.tail,Ot):rt(this,Ot)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var Ot=this.head;Ot;)yield Ot.data,Ot=Ot.next}remove(Ot){for(var Ct=this.head;Ct;){var{next:Wt}=Ct;Ot(Ct)&&this.removeLink(Ct),Ct=Wt}return this}}function rt(Bt,Ot){Bt.length=1,Bt.head=Bt.tail=Ot}function wt(Bt,Ot,Ct){if(Ot==null)Ot=1;else if(Ot===0)throw new RangeError("Concurrency must not be zero");var Wt=z(Bt),le=0,Xt=[];const pe={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function fe(Re,Ce){return Re?Ce?void(pe[Re]=pe[Re].filter(Ve=>Ve!==Ce)):pe[Re]=[]:Object.keys(pe).forEach(Ve=>pe[Ve]=[])}function xe(Re,...Ce){pe[Re].forEach(Ve=>Ve(...Ce))}var je=!1;function Ye(Re,Ce,Ve,kr){if(kr!=null&&typeof kr!="function")throw new Error("task callback must be a function");var jr,Or;function Hr(Yr,...Sn){return Yr?Ve?Or(Yr):jr():Sn.length<=1?jr(Sn[0]):void jr(Sn)}Oe.started=!0;var un=Oe._createTaskItem(Re,Ve?Hr:kr||Hr);if(Ce?Oe._tasks.unshift(un):Oe._tasks.push(un),je||(je=!0,B(()=>{je=!1,Oe.process()})),Ve||!kr)return new Promise((Yr,Sn)=>{jr=Yr,Or=Sn})}function Xe(Re){return function(Ce,...Ve){le-=1;for(var kr=0,jr=Re.length;kr<jr;kr++){var Or=Re[kr],Hr=Xt.indexOf(Or);Hr===0?Xt.shift():Hr>0&&Xt.splice(Hr,1),Or.callback(Ce,...Ve),Ce!=null&&xe("error",Ce,Or.data)}le<=Oe.concurrency-Oe.buffer&&xe("unsaturated"),Oe.idle()&&xe("drain"),Oe.process()}}function ar(Re){return!(Re.length!==0||!Oe.idle()||(B(()=>xe("drain")),0))}const Pe=Re=>Ce=>{if(!Ce)return new Promise((Ve,kr)=>{(function(jr){const Or=(...Hr)=>{fe(jr,Or),((un,Yr)=>{if(un)return kr(un);Ve(Yr)})(...Hr)};pe[jr].push(Or)})(Re)});fe(Re),function(Ve,kr){pe[Ve].push(kr)}(Re,Ce)};var Cr=!1,Oe={_tasks:new Z,_createTaskItem:(Re,Ce)=>({data:Re,callback:Ce}),*[Symbol.iterator](){yield*nu(Oe._tasks[Symbol.iterator]())},concurrency:Ot,payload:Ct,buffer:Ot/4,started:!1,paused:!1,push(Re,Ce){return Array.isArray(Re)?ar(Re)?void 0:Re.map(Ve=>Ye(Ve,!1,!1,Ce)):Ye(Re,!1,!1,Ce)},pushAsync(Re,Ce){return Array.isArray(Re)?ar(Re)?void 0:Re.map(Ve=>Ye(Ve,!1,!0,Ce)):Ye(Re,!1,!0,Ce)},kill(){fe(),Oe._tasks.empty()},unshift(Re,Ce){return Array.isArray(Re)?ar(Re)?void 0:Re.map(Ve=>Ye(Ve,!0,!1,Ce)):Ye(Re,!0,!1,Ce)},unshiftAsync(Re,Ce){return Array.isArray(Re)?ar(Re)?void 0:Re.map(Ve=>Ye(Ve,!0,!0,Ce)):Ye(Re,!0,!0,Ce)},remove(Re){Oe._tasks.remove(Re)},process(){if(!Cr){for(Cr=!0;!Oe.paused&&le<Oe.concurrency&&Oe._tasks.length;){var Re=[],Ce=[],Ve=Oe._tasks.length;Oe.payload&&(Ve=Math.min(Ve,Oe.payload));for(var kr=0;kr<Ve;kr++){var jr=Oe._tasks.shift();Re.push(jr),Xt.push(jr),Ce.push(jr.data)}le+=1,Oe._tasks.length===0&&xe("empty"),le===Oe.concurrency&&xe("saturated");var Or=ut(Xe(Re));Wt(Ce,Or)}Cr=!1}},length:()=>Oe._tasks.length,running:()=>le,workersList:()=>Xt,idle:()=>Oe._tasks.length+le===0,pause(){Oe.paused=!0},resume(){Oe.paused!==!1&&(Oe.paused=!1,B(Oe.process))}};return Object.defineProperties(Oe,{saturated:{writable:!1,value:Pe("saturated")},unsaturated:{writable:!1,value:Pe("unsaturated")},empty:{writable:!1,value:Pe("empty")},drain:{writable:!1,value:Pe("drain")},error:{writable:!1,value:Pe("error")}}),Oe}function gt(Bt,Ot){return wt(Bt,1,Ot)}function St(Bt,Ot,Ct){return wt(Bt,Ot,Ct)}var Lt=H(function(Bt,Ot,Ct,Wt){Wt=nt(Wt);var le=z(Ct);return A(Bt,(Xt,pe,fe)=>{le(Ot,Xt,(xe,je)=>{Ot=je,fe(xe)})},Xt=>Wt(Xt,Ot))},4);function At(...Bt){var Ot=Bt.map(z);return function(...Ct){var Wt=this,le=Ct[Ct.length-1];return typeof le=="function"?Ct.pop():le=G(),Lt(Ot,Ct,(Xt,pe,fe)=>{pe.apply(Wt,Xt.concat((xe,...je)=>{fe(xe,je)}))},(Xt,pe)=>le(Xt,...pe)),le[K]}}function jt(...Bt){return At(...Bt.reverse())}var Qt=H(function(Bt,Ot,Ct,Wt){return Q(vt(Ot),Bt,Ct,Wt)},4),Dt=H(function(Bt,Ot,Ct,Wt){var le=z(Ct);return Qt(Bt,Ot,(Xt,pe)=>{le(Xt,(fe,...xe)=>fe?pe(fe):pe(fe,xe))},(Xt,pe)=>{for(var fe=[],xe=0;xe<pe.length;xe++)pe[xe]&&(fe=fe.concat(...pe[xe]));return Wt(Xt,fe)})},4),zt=H(function(Bt,Ot,Ct){return Dt(Bt,1/0,Ot,Ct)},3),ft=H(function(Bt,Ot,Ct){return Dt(Bt,1,Ot,Ct)},3);function pt(...Bt){return function(...Ot){return Ot.pop()(null,...Bt)}}function mt(Bt,Ot){return(Ct,Wt,le,Xt)=>{var pe,fe=!1;const xe=z(le);Ct(Wt,(je,Ye,Xe)=>{xe(je,(ar,Pe)=>ar||ar===!1?Xe(ar):Bt(Pe)&&!pe?(fe=!0,pe=Ot(!0,je),Xe(null,et)):void Xe())},je=>{if(je)return Xt(je);Xt(null,fe?pe:Ot(!1))})}}var Mt=H(function(Bt,Ot,Ct){return mt(Wt=>Wt,(Wt,le)=>le)(a,Bt,Ot,Ct)},3),xt=H(function(Bt,Ot,Ct,Wt){return mt(le=>le,(le,Xt)=>Xt)(vt(Ot),Bt,Ct,Wt)},4),kt=H(function(Bt,Ot,Ct){return mt(Wt=>Wt,(Wt,le)=>le)(vt(1),Bt,Ot,Ct)},3);function $t(Bt){return(Ot,...Ct)=>z(Ot)(...Ct,(Wt,...le)=>{typeof O=="object"&&(Wt?O.error&&O.error(Wt):O[Bt]&&le.forEach(Xt=>O[Bt](Xt)))})}var Pt=$t("dir"),yt=H(function(Bt,Ot,Ct){Ct=ut(Ct);var Wt,le=z(Bt),Xt=z(Ot);function pe(xe,...je){if(xe)return Ct(xe);xe!==!1&&(Wt=je,Xt(...je,fe))}function fe(xe,je){return xe?Ct(xe):xe!==!1?je?void le(pe):Ct(null,...Wt):void 0}return fe(null,!0)},3);function dt(Bt,Ot,Ct){const Wt=z(Ot);return yt(Bt,(...le)=>{const Xt=le.pop();Wt(...le,(pe,fe)=>Xt(pe,!fe))},Ct)}function lt(Bt){return(Ot,Ct,Wt)=>Bt(Ot,Wt)}var _t=H(function(Bt,Ot,Ct){return a(Bt,lt(z(Ot)),Ct)},3),qt=H(function(Bt,Ot,Ct,Wt){return vt(Ot)(Bt,lt(z(Ct)),Wt)},4),It=H(function(Bt,Ot,Ct){return qt(Bt,1,Ot,Ct)},3);function Nt(Bt){return U(Bt)?Bt:function(...Ot){var Ct=Ot.pop(),Wt=!0;Ot.push((...le)=>{Wt?B(()=>Ct(...le)):Ct(...le)}),Bt.apply(this,Ot),Wt=!1}}var be=H(function(Bt,Ot,Ct){return mt(Wt=>!Wt,Wt=>!Wt)(a,Bt,Ot,Ct)},3),Vt=H(function(Bt,Ot,Ct,Wt){return mt(le=>!le,le=>!le)(vt(Ot),Bt,Ct,Wt)},4),Jt=H(function(Bt,Ot,Ct){return mt(Wt=>!Wt,Wt=>!Wt)(A,Bt,Ot,Ct)},3);function Ee(Bt,Ot,Ct,Wt){var le=new Array(Ot.length);Bt(Ot,(Xt,pe,fe)=>{Ct(Xt,(xe,je)=>{le[pe]=!!je,fe(xe)})},Xt=>{if(Xt)return Wt(Xt);for(var pe=[],fe=0;fe<Ot.length;fe++)le[fe]&&pe.push(Ot[fe]);Wt(null,pe)})}function Ht(Bt,Ot,Ct,Wt){var le=[];Bt(Ot,(Xt,pe,fe)=>{Ct(Xt,(xe,je)=>{if(xe)return fe(xe);je&&le.push({index:pe,value:Xt}),fe(xe)})},Xt=>{if(Xt)return Wt(Xt);Wt(null,le.sort((pe,fe)=>pe.index-fe.index).map(pe=>pe.value))})}function ae(Bt,Ot,Ct,Wt){return(X(Ot)?Ee:Ht)(Bt,Ot,z(Ct),Wt)}var Ne=H(function(Bt,Ot,Ct){return ae(a,Bt,Ot,Ct)},3),Gt=H(function(Bt,Ot,Ct,Wt){return ae(vt(Ot),Bt,Ct,Wt)},4),se=H(function(Bt,Ot,Ct){return ae(A,Bt,Ot,Ct)},3),qe=H(function(Bt,Ot){var Ct=ut(Ot),Wt=z(Nt(Bt));return function le(Xt){if(Xt)return Ct(Xt);Xt!==!1&&Wt(le)}()},2),Zt=H(function(Bt,Ot,Ct,Wt){var le=z(Ct);return Qt(Bt,Ot,(Xt,pe)=>{le(Xt,(fe,xe)=>fe?pe(fe):pe(fe,{key:xe,val:Xt}))},(Xt,pe)=>{for(var fe={},{hasOwnProperty:xe}=Object.prototype,je=0;je<pe.length;je++)if(pe[je]){var{key:Ye}=pe[je],{val:Xe}=pe[je];xe.call(fe,Ye)?fe[Ye].push(Xe):fe[Ye]=[Xe]}return Wt(Xt,fe)})},4);function he(Bt,Ot,Ct){return Zt(Bt,1/0,Ot,Ct)}function Qe(Bt,Ot,Ct){return Zt(Bt,1,Ot,Ct)}var Yt=$t("log"),ce=H(function(Bt,Ot,Ct,Wt){Wt=nt(Wt);var le={},Xt=z(Ct);return vt(Ot)(Bt,(pe,fe,xe)=>{Xt(pe,fe,(je,Ye)=>{if(je)return xe(je);le[fe]=Ye,xe(je)})},pe=>Wt(pe,le))},4);function Ge(Bt,Ot,Ct){return ce(Bt,1/0,Ot,Ct)}function Ut(Bt,Ot,Ct){return ce(Bt,1,Ot,Ct)}function te(Bt,Ot=Ct=>Ct){var Ct=Object.create(null),Wt=Object.create(null),le=z(Bt),Xt=q((pe,fe)=>{var xe=Ot(...pe);xe in Ct?B(()=>fe(null,...Ct[xe])):xe in Wt?Wt[xe].push(fe):(Wt[xe]=[fe],le(...pe,(je,...Ye)=>{je||(Ct[xe]=Ye);var Xe=Wt[xe];delete Wt[xe];for(var ar=0,Pe=Xe.length;ar<Pe;ar++)Xe[ar](je,...Ye)}))});return Xt.memo=Ct,Xt.unmemoized=Bt,Xt}var He=S(M?j.nextTick:N?setImmediate:T),ne=H((Bt,Ot,Ct)=>{var Wt=X(Ot)?[]:{};Bt(Ot,(le,Xt,pe)=>{z(le)((fe,...xe)=>{xe.length<2&&([xe]=xe),Wt[Xt]=xe,pe(fe)})},le=>Ct(le,Wt))},3);function me(Bt,Ot){return ne(a,Bt,Ot)}function tr(Bt,Ot,Ct){return ne(vt(Ot),Bt,Ct)}function ie(Bt,Ot){var Ct=z(Bt);return wt((Wt,le)=>{Ct(Wt[0],le)},Ot,1)}class de{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(Ot){let Ct;for(;Ot>0&&oe(this.heap[Ot],this.heap[Ct=rr(Ot)]);){let Wt=this.heap[Ot];this.heap[Ot]=this.heap[Ct],this.heap[Ct]=Wt,Ot=Ct}}percDown(Ot){let Ct;for(;(Ct=1+(Ot<<1))<this.heap.length&&(Ct+1<this.heap.length&&oe(this.heap[Ct+1],this.heap[Ct])&&(Ct+=1),!oe(this.heap[Ot],this.heap[Ct]));){let Wt=this.heap[Ot];this.heap[Ot]=this.heap[Ct],this.heap[Ct]=Wt,Ot=Ct}}push(Ot){Ot.pushCount=++this.pushCount,this.heap.push(Ot),this.percUp(this.heap.length-1)}unshift(Ot){return this.heap.push(Ot)}shift(){let[Ot]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),Ot}toArray(){return[...this]}*[Symbol.iterator](){for(let Ot=0;Ot<this.heap.length;Ot++)yield this.heap[Ot].data}remove(Ot){let Ct=0;for(let Wt=0;Wt<this.heap.length;Wt++)Ot(this.heap[Wt])||(this.heap[Ct]=this.heap[Wt],Ct++);this.heap.splice(Ct);for(let Wt=rr(this.heap.length-1);Wt>=0;Wt--)this.percDown(Wt);return this}}function rr(Bt){return(Bt+1>>1)-1}function oe(Bt,Ot){return Bt.priority!==Ot.priority?Bt.priority<Ot.priority:Bt.pushCount<Ot.pushCount}function ge(Bt,Ot){var Ct=ie(Bt,Ot),{push:Wt,pushAsync:le}=Ct;function Xt(pe,fe){return Array.isArray(pe)?pe.map(xe=>({data:xe,priority:fe})):{data:pe,priority:fe}}return Ct._tasks=new de,Ct._createTaskItem=({data:pe,priority:fe},xe)=>({data:pe,priority:fe,callback:xe}),Ct.push=function(pe,fe=0,xe){return Wt(Xt(pe,fe),xe)},Ct.pushAsync=function(pe,fe=0,xe){return le(Xt(pe,fe),xe)},delete Ct.unshift,delete Ct.unshiftAsync,Ct}var We=H(function(Bt,Ot){if(Ot=nt(Ot),!Array.isArray(Bt))return Ot(new TypeError("First argument to race must be an array of functions"));if(!Bt.length)return Ot();for(var Ct=0,Wt=Bt.length;Ct<Wt;Ct++)z(Bt[Ct])(Ot)},2);function $e(Bt,Ot,Ct,Wt){var le=[...Bt].reverse();return Lt(le,Ot,Ct,Wt)}function cr(Bt){var Ot=z(Bt);return q(function(Ct,Wt){return Ct.push((le,...Xt)=>{let pe={};if(le&&(pe.error=le),Xt.length>0){var fe=Xt;Xt.length<=1&&([fe]=Xt),pe.value=fe}Wt(null,pe)}),Ot.apply(this,Ct)})}function mr(Bt){var Ot;return Array.isArray(Bt)?Ot=Bt.map(cr):(Ot={},Object.keys(Bt).forEach(Ct=>{Ot[Ct]=cr.call(this,Bt[Ct])})),Ot}function hr(Bt,Ot,Ct,Wt){const le=z(Ct);return ae(Bt,Ot,(Xt,pe)=>{le(Xt,(fe,xe)=>{pe(fe,!xe)})},Wt)}var gr=H(function(Bt,Ot,Ct){return hr(a,Bt,Ot,Ct)},3),vr=H(function(Bt,Ot,Ct,Wt){return hr(vt(Ot),Bt,Ct,Wt)},4),yr=H(function(Bt,Ot,Ct){return hr(A,Bt,Ot,Ct)},3);function br(Bt){return function(){return Bt}}const lr=5,wr=0;function fr(Bt,Ot,Ct){var Wt={times:lr,intervalFunc:br(wr)};if(arguments.length<3&&typeof Bt=="function"?(Ct=Ot||G(),Ot=Bt):(function(pe,fe){if(typeof fe=="object")pe.times=+fe.times||lr,pe.intervalFunc=typeof fe.interval=="function"?fe.interval:br(+fe.interval||wr),pe.errorFilter=fe.errorFilter;else{if(typeof fe!="number"&&typeof fe!="string")throw new Error("Invalid arguments for async.retry");pe.times=+fe||lr}}(Wt,Bt),Ct=Ct||G()),typeof Ot!="function")throw new Error("Invalid arguments for async.retry");var le=z(Ot),Xt=1;return function pe(){le((fe,...xe)=>{fe!==!1&&(fe&&Xt++<Wt.times&&(typeof Wt.errorFilter!="function"||Wt.errorFilter(fe))?setTimeout(pe,Wt.intervalFunc(Xt-1)):Ct(fe,...xe))})}(),Ct[K]}function _r(Bt,Ot){Ot||(Ot=Bt,Bt=null);let Ct=Bt&&Bt.arity||Ot.length;U(Ot)&&(Ct+=1);var Wt=z(Ot);return q((le,Xt)=>{function pe(fe){Wt(...le,fe)}return(le.length<Ct-1||Xt==null)&&(le.push(Xt),Xt=G()),Bt?fr(Bt,pe,Xt):fr(pe,Xt),Xt[K]})}function Mr(Bt,Ot){return ne(A,Bt,Ot)}var pr=H(function(Bt,Ot,Ct){return mt(Boolean,Wt=>Wt)(a,Bt,Ot,Ct)},3),Le=H(function(Bt,Ot,Ct,Wt){return mt(Boolean,le=>le)(vt(Ot),Bt,Ct,Wt)},4),De=H(function(Bt,Ot,Ct){return mt(Boolean,Wt=>Wt)(A,Bt,Ot,Ct)},3),xr=H(function(Bt,Ot,Ct){var Wt=z(Ot);return r(Bt,(Xt,pe)=>{Wt(Xt,(fe,xe)=>{if(fe)return pe(fe);pe(fe,{value:Xt,criteria:xe})})},(Xt,pe)=>{if(Xt)return Ct(Xt);Ct(null,pe.sort(le).map(fe=>fe.value))});function le(Xt,pe){var fe=Xt.criteria,xe=pe.criteria;return fe<xe?-1:fe>xe?1:0}},3);function Er(Bt,Ot,Ct){var Wt=z(Bt);return q((le,Xt)=>{var pe,fe=!1;le.push((...xe)=>{fe||(Xt(...xe),clearTimeout(pe))}),pe=setTimeout(function(){var xe=Bt.name||"anonymous",je=new Error('Callback function "'+xe+'" timed out.');je.code="ETIMEDOUT",Ct&&(je.info=Ct),fe=!0,Xt(je)},Ot),Wt(...le)})}function yn(Bt,Ot,Ct,Wt){var le=z(Ct);return Qt(function(Xt){for(var pe=Array(Xt);Xt--;)pe[Xt]=Xt;return pe}(Bt),Ot,le,Wt)}function En(Bt,Ot,Ct){return yn(Bt,1/0,Ot,Ct)}function Oi(Bt,Ot,Ct){return yn(Bt,1,Ot,Ct)}function Lr(Bt,Ot,Ct,Wt){arguments.length<=3&&typeof Ot=="function"&&(Wt=Ct,Ct=Ot,Ot=Array.isArray(Bt)?[]:{}),Wt=nt(Wt||G());var le=z(Ct);return a(Bt,(Xt,pe,fe)=>{le(Ot,Xt,pe,fe)},Xt=>Wt(Xt,Ot)),Wt[K]}var pi=H(function(Bt,Ot){var Ct,Wt=null;return It(Bt,(le,Xt)=>{z(le)((pe,...fe)=>{if(pe===!1)return Xt(pe);fe.length<2?[Ct]=fe:Ct=fe,Wt=pe,Xt(pe?null:{})})},()=>Ot(Wt,Ct))});function Bn(Bt){return(...Ot)=>(Bt.unmemoized||Bt)(...Ot)}var Pn=H(function(Bt,Ot,Ct){Ct=ut(Ct);var Wt=z(Ot),le=z(Bt),Xt=[];function pe(xe,...je){if(xe)return Ct(xe);Xt=je,xe!==!1&&le(fe)}function fe(xe,je){return xe?Ct(xe):xe!==!1?je?void Wt(pe):Ct(null,...Xt):void 0}return le(fe)},3);function ti(Bt,Ot,Ct){const Wt=z(Bt);return Pn(le=>Wt((Xt,pe)=>le(Xt,!pe)),Ot,Ct)}var Jr=H(function(Bt,Ot){if(Ot=nt(Ot),!Array.isArray(Bt))return Ot(new Error("First argument to waterfall must be an array of functions"));if(!Bt.length)return Ot();var Ct=0;function Wt(Xt){z(Bt[Ct++])(...Xt,ut(le))}function le(Xt,...pe){if(Xt!==!1)return Xt||Ct===Bt.length?Ot(Xt,...pe):void Wt(pe)}Wt([])}),Ii={apply:I,applyEach:v,applyEachSeries:J,asyncify:C,auto:Y,autoInject:it,cargo:gt,cargoQueue:St,compose:jt,concat:zt,concatLimit:Dt,concatSeries:ft,constant:pt,detect:Mt,detectLimit:xt,detectSeries:kt,dir:Pt,doUntil:dt,doWhilst:yt,each:_t,eachLimit:qt,eachOf:a,eachOfLimit:t,eachOfSeries:A,eachSeries:It,ensureAsync:Nt,every:be,everyLimit:Vt,everySeries:Jt,filter:Ne,filterLimit:Gt,filterSeries:se,forever:qe,groupBy:he,groupByLimit:Zt,groupBySeries:Qe,log:Yt,map:r,mapLimit:Qt,mapSeries:W,mapValues:Ge,mapValuesLimit:ce,mapValuesSeries:Ut,memoize:te,nextTick:He,parallel:me,parallelLimit:tr,priorityQueue:ge,queue:ie,race:We,reduce:Lt,reduceRight:$e,reflect:cr,reflectAll:mr,reject:gr,rejectLimit:vr,rejectSeries:yr,retry:fr,retryable:_r,seq:At,series:Mr,setImmediate:B,some:pr,someLimit:Le,someSeries:De,sortBy:xr,timeout:Er,times:En,timesLimit:yn,timesSeries:Oi,transform:Lr,tryEach:pi,unmemoize:Bn,until:ti,waterfall:Jr,whilst:Pn,all:be,allLimit:Vt,allSeries:Jt,any:pr,anyLimit:Le,anySeries:De,find:Mt,findLimit:xt,findSeries:kt,flatMap:zt,flatMapLimit:Dt,flatMapSeries:ft,forEach:_t,forEachSeries:It,forEachLimit:qt,forEachOf:a,forEachOfSeries:A,forEachOfLimit:t,inject:Lt,foldl:Lt,foldr:$e,select:Ne,selectLimit:Gt,selectSeries:se,wrapSync:C,during:Pn,doDuring:yt}},2271:($,w,b)=>{var j=b(453),O=b(6556),I=b(8859),q=b(507),p=b(9675),N=j("%WeakMap%",!0),M=O("WeakMap.prototype.get",!0),T=O("WeakMap.prototype.set",!0),S=O("WeakMap.prototype.has",!0),B=O("WeakMap.prototype.delete",!0);$.exports=N?function(){var C,_,F={assert:function(U){if(!F.has(U))throw new p("Side channel does not contain "+I(U))},delete:function(U){if(N&&U&&(typeof U=="object"||typeof U=="function")){if(C)return B(C,U)}else if(q&&_)return _.delete(U);return!1},get:function(U){return N&&U&&(typeof U=="object"||typeof U=="function")&&C?M(C,U):_&&_.get(U)},has:function(U){return N&&U&&(typeof U=="object"||typeof U=="function")&&C?S(C,U):!!_&&_.has(U)},set:function(U,z){N&&U&&(typeof U=="object"||typeof U=="function")?(C||(C=new N),T(C,U,z)):q&&(_||(_=q()),_.set(U,z))}};return F}:q},2287:($,w,b)=>{var j=b(7426),O=b(6166),I=b(6225),q=b(3349),p=j.sum32,N=j.sum32_4,M=j.sum32_5,T=I.ch32,S=I.maj32,B=I.s0_256,C=I.s1_256,_=I.g0_256,F=I.g1_256,U=O.BlockHash,z=[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 H(){if(!(this instanceof H))return new H;U.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=z,this.W=new Array(64)}j.inherits(H,U),$.exports=H,H.blockSize=512,H.outSize=256,H.hmacStrength=192,H.padLength=64,H.prototype._update=function(D,Q){for(var X=this.W,et=0;et<16;et++)X[et]=D[Q+et];for(;et<X.length;et++)X[et]=N(F(X[et-2]),X[et-7],_(X[et-15]),X[et-16]);var nt=this.h[0],ut=this.h[1],ct=this.h[2],vt=this.h[3],t=this.h[4],h=this.h[5],l=this.h[6],a=this.h[7];for(q(this.k.length===X.length),et=0;et<X.length;et++){var r=M(a,C(t),T(t,h,l),this.k[et],X[et]),v=p(B(nt),S(nt,ut,ct));a=l,l=h,h=t,t=p(vt,r),vt=ct,ct=ut,ut=nt,nt=p(r,v)}this.h[0]=p(this.h[0],nt),this.h[1]=p(this.h[1],ut),this.h[2]=p(this.h[2],ct),this.h[3]=p(this.h[3],vt),this.h[4]=p(this.h[4],t),this.h[5]=p(this.h[5],h),this.h[6]=p(this.h[6],l),this.h[7]=p(this.h[7],a)},H.prototype._digest=function(D){return D==="hex"?j.toHex32(this.h,"big"):j.split32(this.h,"big")}},2299:($,w,b)=>{function j(it,Z){return function(rt){if(Array.isArray(rt))return rt}(it)||function(rt,wt){var gt=rt==null?null:typeof Symbol<"u"&&rt[Symbol.iterator]||rt["@@iterator"];if(gt!=null){var St,Lt,At,jt,Qt=[],Dt=!0,zt=!1;try{if(At=(gt=gt.call(rt)).next,wt===0){if(Object(gt)!==gt)return;Dt=!1}else for(;!(Dt=(St=At.call(gt)).done)&&(Qt.push(St.value),Qt.length!==wt);Dt=!0);}catch(ft){zt=!0,Lt=ft}finally{try{if(!Dt&&gt.return!=null&&(jt=gt.return(),Object(jt)!==jt))return}finally{if(zt)throw Lt}}return Qt}}(it,Z)||function(rt,wt){if(rt){if(typeof rt=="string")return O(rt,wt);var gt=Object.prototype.toString.call(rt).slice(8,-1);return gt==="Object"&&rt.constructor&&(gt=rt.constructor.name),gt==="Map"||gt==="Set"?Array.from(rt):gt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(gt)?O(rt,wt):void 0}}(it,Z)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
41
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function O(it,Z){(Z==null||Z>it.length)&&(Z=it.length);for(var rt=0,wt=new Array(Z);rt<Z;rt++)wt[rt]=it[rt];return wt}function I(it){return I=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},I(it)}var q=/a/g.flags!==void 0,p=function(it){var Z=[];return it.forEach(function(rt){return Z.push(rt)}),Z},N=function(it){var Z=[];return it.forEach(function(rt,wt){return Z.push([wt,rt])}),Z},M=Object.is?Object.is:b(7653),T=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},S=Number.isNaN?Number.isNaN:b(4133);function B(it){return it.call.bind(it)}var C=B(Object.prototype.hasOwnProperty),_=B(Object.prototype.propertyIsEnumerable),F=B(Object.prototype.toString),U=b(537).types,z=U.isAnyArrayBuffer,H=U.isArrayBufferView,D=U.isDate,Q=U.isMap,X=U.isRegExp,et=U.isSet,nt=U.isNativeError,ut=U.isBoxedPrimitive,ct=U.isNumberObject,vt=U.isStringObject,t=U.isBooleanObject,h=U.isBigIntObject,l=U.isSymbolObject,a=U.isFloat32Array,r=U.isFloat64Array;function v(it){if(it.length===0||it.length>10)return!0;for(var Z=0;Z<it.length;Z++){var rt=it.charCodeAt(Z);if(rt<48||rt>57)return!0}return it.length===10&&it>=Math.pow(2,32)}function A(it){return Object.keys(it).filter(v).concat(T(it).filter(Object.prototype.propertyIsEnumerable.bind(it)))}function W(it,Z){if(it===Z)return 0;for(var rt=it.length,wt=Z.length,gt=0,St=Math.min(rt,wt);gt<St;++gt)if(it[gt]!==Z[gt]){rt=it[gt],wt=Z[gt];break}return rt<wt?-1:wt<rt?1:0}function J(it,Z,rt,wt){if(it===Z)return it!==0||!rt||M(it,Z);if(rt){if(I(it)!=="object")return typeof it=="number"&&S(it)&&S(Z);if(I(Z)!=="object"||it===null||Z===null||Object.getPrototypeOf(it)!==Object.getPrototypeOf(Z))return!1}else{if(it===null||I(it)!=="object")return(Z===null||I(Z)!=="object")&&it==Z;if(Z===null||I(Z)!=="object")return!1}var gt,St,Lt,At,jt=F(it);if(jt!==F(Z))return!1;if(Array.isArray(it)){if(it.length!==Z.length)return!1;var Qt=A(it),Dt=A(Z);return Qt.length===Dt.length&&G(it,Z,rt,wt,1,Qt)}if(jt==="[object Object]"&&(!Q(it)&&Q(Z)||!et(it)&&et(Z)))return!1;if(D(it)){if(!D(Z)||Date.prototype.getTime.call(it)!==Date.prototype.getTime.call(Z))return!1}else if(X(it)){if(!X(Z)||(Lt=it,At=Z,!(q?Lt.source===At.source&&Lt.flags===At.flags:RegExp.prototype.toString.call(Lt)===RegExp.prototype.toString.call(At))))return!1}else if(nt(it)||it instanceof Error){if(it.message!==Z.message||it.name!==Z.name)return!1}else{if(H(it)){if(rt||!a(it)&&!r(it)){if(!function(pt,mt){return pt.byteLength===mt.byteLength&&W(new Uint8Array(pt.buffer,pt.byteOffset,pt.byteLength),new Uint8Array(mt.buffer,mt.byteOffset,mt.byteLength))===0}(it,Z))return!1}else if(!function(pt,mt){if(pt.byteLength!==mt.byteLength)return!1;for(var Mt=0;Mt<pt.byteLength;Mt++)if(pt[Mt]!==mt[Mt])return!1;return!0}(it,Z))return!1;var zt=A(it),ft=A(Z);return zt.length===ft.length&&G(it,Z,rt,wt,0,zt)}if(et(it))return!(!et(Z)||it.size!==Z.size)&&G(it,Z,rt,wt,2);if(Q(it))return!(!Q(Z)||it.size!==Z.size)&&G(it,Z,rt,wt,3);if(z(it)){if(St=Z,(gt=it).byteLength!==St.byteLength||W(new Uint8Array(gt),new Uint8Array(St))!==0)return!1}else if(ut(it)&&!function(pt,mt){return ct(pt)?ct(mt)&&M(Number.prototype.valueOf.call(pt),Number.prototype.valueOf.call(mt)):vt(pt)?vt(mt)&&String.prototype.valueOf.call(pt)===String.prototype.valueOf.call(mt):t(pt)?t(mt)&&Boolean.prototype.valueOf.call(pt)===Boolean.prototype.valueOf.call(mt):h(pt)?h(mt)&&BigInt.prototype.valueOf.call(pt)===BigInt.prototype.valueOf.call(mt):l(mt)&&Symbol.prototype.valueOf.call(pt)===Symbol.prototype.valueOf.call(mt)}(it,Z))return!1}return G(it,Z,rt,wt,0)}function K(it,Z){return Z.filter(function(rt){return _(it,rt)})}function G(it,Z,rt,wt,gt,St){if(arguments.length===5){St=Object.keys(it);var Lt=Object.keys(Z);if(St.length!==Lt.length)return!1}for(var At=0;At<St.length;At++)if(!C(Z,St[At]))return!1;if(rt&&arguments.length===5){var jt=T(it);if(jt.length!==0){var Qt=0;for(At=0;At<jt.length;At++){var Dt=jt[At];if(_(it,Dt)){if(!_(Z,Dt))return!1;St.push(Dt),Qt++}else if(_(Z,Dt))return!1}var zt=T(Z);if(jt.length!==zt.length&&K(Z,zt).length!==Qt)return!1}else{var ft=T(Z);if(ft.length!==0&&K(Z,ft).length!==0)return!1}}if(St.length===0&&(gt===0||gt===1&&it.length===0||it.size===0))return!0;if(wt===void 0)wt={val1:new Map,val2:new Map,position:0};else{var pt=wt.val1.get(it);if(pt!==void 0){var mt=wt.val2.get(Z);if(mt!==void 0)return pt===mt}wt.position++}wt.val1.set(it,wt.position),wt.val2.set(Z,wt.position);var Mt=function(xt,kt,$t,Pt,yt,dt){var lt=0;if(dt===2){if(!function(Nt,be,Vt,Jt){for(var Ee=null,Ht=p(Nt),ae=0;ae<Ht.length;ae++){var Ne=Ht[ae];if(I(Ne)==="object"&&Ne!==null)Ee===null&&(Ee=new Set),Ee.add(Ne);else if(!be.has(Ne)){if(Vt||!ot(Nt,be,Ne))return!1;Ee===null&&(Ee=new Set),Ee.add(Ne)}}if(Ee!==null){for(var Gt=p(be),se=0;se<Gt.length;se++){var qe=Gt[se];if(I(qe)==="object"&&qe!==null){if(!Y(Ee,qe,Vt,Jt))return!1}else if(!Vt&&!Nt.has(qe)&&!Y(Ee,qe,Vt,Jt))return!1}return Ee.size===0}return!0}(xt,kt,$t,yt))return!1}else if(dt===3){if(!function(Nt,be,Vt,Jt){for(var Ee=null,Ht=N(Nt),ae=0;ae<Ht.length;ae++){var Ne=j(Ht[ae],2),Gt=Ne[0],se=Ne[1];if(I(Gt)==="object"&&Gt!==null)Ee===null&&(Ee=new Set),Ee.add(Gt);else{var qe=be.get(Gt);if(qe===void 0&&!be.has(Gt)||!J(se,qe,Vt,Jt)){if(Vt||!ht(Nt,be,Gt,se,Jt))return!1;Ee===null&&(Ee=new Set),Ee.add(Gt)}}}if(Ee!==null){for(var Zt=N(be),he=0;he<Zt.length;he++){var Qe=j(Zt[he],2),Yt=Qe[0],ce=Qe[1];if(I(Yt)==="object"&&Yt!==null){if(!tt(Ee,Nt,Yt,ce,Vt,Jt))return!1}else if(!(Vt||Nt.has(Yt)&&J(Nt.get(Yt),ce,!1,Jt)||tt(Ee,Nt,Yt,ce,!1,Jt)))return!1}return Ee.size===0}return!0}(xt,kt,$t,yt))return!1}else if(dt===1)for(;lt<xt.length;lt++){if(!C(xt,lt)){if(C(kt,lt))return!1;for(var _t=Object.keys(xt);lt<_t.length;lt++){var qt=_t[lt];if(!C(kt,qt)||!J(xt[qt],kt[qt],$t,yt))return!1}return _t.length===Object.keys(kt).length}if(!C(kt,lt)||!J(xt[lt],kt[lt],$t,yt))return!1}for(lt=0;lt<Pt.length;lt++){var It=Pt[lt];if(!J(xt[It],kt[It],$t,yt))return!1}return!0}(it,Z,rt,St,wt,gt);return wt.val1.delete(it),wt.val2.delete(Z),Mt}function Y(it,Z,rt,wt){for(var gt=p(it),St=0;St<gt.length;St++){var Lt=gt[St];if(J(Z,Lt,rt,wt))return it.delete(Lt),!0}return!1}function at(it){switch(I(it)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":it=+it;case"number":if(S(it))return!1}return!0}function ot(it,Z,rt){var wt=at(rt);return wt??(Z.has(wt)&&!it.has(wt))}function ht(it,Z,rt,wt,gt){var St=at(rt);if(St!=null)return St;var Lt=Z.get(St);return!(Lt===void 0&&!Z.has(St)||!J(wt,Lt,!1,gt))&&!it.has(St)&&J(wt,Lt,!1,gt)}function tt(it,Z,rt,wt,gt,St){for(var Lt=p(it),At=0;At<Lt.length;At++){var jt=Lt[At];if(J(rt,jt,gt,St)&&J(wt,Z.get(jt),gt,St))return it.delete(jt),!0}return!1}$.exports={isDeepEqual:function(it,Z){return J(it,Z,!1)},isDeepStrictEqual:function(it,Z){return J(it,Z,!0)}}},2344:function($,w,b){(function(j,O){function I(t,h){if(!t)throw new Error(h||"Assertion failed")}function q(t,h){t.super_=h;var l=function(){};l.prototype=h.prototype,t.prototype=new l,t.prototype.constructor=t}function p(t,h,l){if(p.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,t!==null&&(h!=="le"&&h!=="be"||(l=h,h=10),this._init(t||0,h||10,l||"be"))}var N;typeof j=="object"?j.exports=p:O.BN=p,p.BN=p,p.wordSize=26;try{N=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:b(8982).Buffer}catch{}function M(t,h){var l=t.charCodeAt(h);return l>=65&&l<=70?l-55:l>=97&&l<=102?l-87:l-48&15}function T(t,h,l){var a=M(t,l);return l-1>=h&&(a|=M(t,l-1)<<4),a}function S(t,h,l,a){for(var r=0,v=Math.min(t.length,l),A=h;A<v;A++){var W=t.charCodeAt(A)-48;r*=a,r+=W>=49?W-49+10:W>=17?W-17+10:W}return r}p.isBN=function(t){return t instanceof p||t!==null&&typeof t=="object"&&t.constructor.wordSize===p.wordSize&&Array.isArray(t.words)},p.max=function(t,h){return t.cmp(h)>0?t:h},p.min=function(t,h){return t.cmp(h)<0?t:h},p.prototype._init=function(t,h,l){if(typeof t=="number")return this._initNumber(t,h,l);if(typeof t=="object")return this._initArray(t,h,l);h==="hex"&&(h=16),I(h===(0|h)&&h>=2&&h<=36);var a=0;(t=t.toString().replace(/\s+/g,""))[0]==="-"&&(a++,this.negative=1),a<t.length&&(h===16?this._parseHex(t,a,l):(this._parseBase(t,h,a),l==="le"&&this._initArray(this.toArray(),h,l)))},p.prototype._initNumber=function(t,h,l){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):(I(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),l==="le"&&this._initArray(this.toArray(),h,l)},p.prototype._initArray=function(t,h,l){if(I(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 a=0;a<this.length;a++)this.words[a]=0;var r,v,A=0;if(l==="be")for(a=t.length-1,r=0;a>=0;a-=3)v=t[a]|t[a-1]<<8|t[a-2]<<16,this.words[r]|=v<<A&67108863,this.words[r+1]=v>>>26-A&67108863,(A+=24)>=26&&(A-=26,r++);else if(l==="le")for(a=0,r=0;a<t.length;a+=3)v=t[a]|t[a+1]<<8|t[a+2]<<16,this.words[r]|=v<<A&67108863,this.words[r+1]=v>>>26-A&67108863,(A+=24)>=26&&(A-=26,r++);return this.strip()},p.prototype._parseHex=function(t,h,l){this.length=Math.ceil((t.length-h)/6),this.words=new Array(this.length);for(var a=0;a<this.length;a++)this.words[a]=0;var r,v=0,A=0;if(l==="be")for(a=t.length-1;a>=h;a-=2)r=T(t,h,a)<<v,this.words[A]|=67108863&r,v>=18?(v-=18,A+=1,this.words[A]|=r>>>26):v+=8;else for(a=(t.length-h)%2==0?h+1:h;a<t.length;a+=2)r=T(t,h,a)<<v,this.words[A]|=67108863&r,v>=18?(v-=18,A+=1,this.words[A]|=r>>>26):v+=8;this.strip()},p.prototype._parseBase=function(t,h,l){this.words=[0],this.length=1;for(var a=0,r=1;r<=67108863;r*=h)a++;a--,r=r/h|0;for(var v=t.length-l,A=v%a,W=Math.min(v,v-A)+l,J=0,K=l;K<W;K+=a)J=S(t,K,K+a,h),this.imuln(r),this.words[0]+J<67108864?this.words[0]+=J:this._iaddn(J);if(A!==0){var G=1;for(J=S(t,K,t.length,h),K=0;K<A;K++)G*=h;this.imuln(G),this.words[0]+J<67108864?this.words[0]+=J:this._iaddn(J)}this.strip()},p.prototype.copy=function(t){t.words=new Array(this.length);for(var h=0;h<this.length;h++)t.words[h]=this.words[h];t.length=this.length,t.negative=this.negative,t.red=this.red},p.prototype.clone=function(){var t=new p(null);return this.copy(t),t},p.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},p.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},p.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},p.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var B=["","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"],C=[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],_=[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 F(t,h,l){l.negative=h.negative^t.negative;var a=t.length+h.length|0;l.length=a,a=a-1|0;var r=0|t.words[0],v=0|h.words[0],A=r*v,W=67108863&A,J=A/67108864|0;l.words[0]=W;for(var K=1;K<a;K++){for(var G=J>>>26,Y=67108863&J,at=Math.min(K,h.length-1),ot=Math.max(0,K-t.length+1);ot<=at;ot++){var ht=K-ot|0;G+=(A=(r=0|t.words[ht])*(v=0|h.words[ot])+Y)/67108864|0,Y=67108863&A}l.words[K]=0|Y,J=0|G}return J!==0?l.words[K]=0|J:l.length--,l.strip()}p.prototype.toString=function(t,h){var l;if(h=0|h||1,(t=t||10)===16||t==="hex"){l="";for(var a=0,r=0,v=0;v<this.length;v++){var A=this.words[v],W=(16777215&(A<<a|r)).toString(16);r=A>>>24-a&16777215,(a+=2)>=26&&(a-=26,v--),l=r!==0||v!==this.length-1?B[6-W.length]+W+l:W+l}for(r!==0&&(l=r.toString(16)+l);l.length%h!=0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}if(t===(0|t)&&t>=2&&t<=36){var J=C[t],K=_[t];l="";var G=this.clone();for(G.negative=0;!G.isZero();){var Y=G.modn(K).toString(t);l=(G=G.idivn(K)).isZero()?Y+l:B[J-Y.length]+Y+l}for(this.isZero()&&(l="0"+l);l.length%h!=0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}I(!1,"Base should be between 2 and 36")},p.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&&I(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-t:t},p.prototype.toJSON=function(){return this.toString(16)},p.prototype.toBuffer=function(t,h){return I(N!==void 0),this.toArrayLike(N,t,h)},p.prototype.toArray=function(t,h){return this.toArrayLike(Array,t,h)},p.prototype.toArrayLike=function(t,h,l){var a=this.byteLength(),r=l||Math.max(1,a);I(a<=r,"byte array longer than desired length"),I(r>0,"Requested array length <= 0"),this.strip();var v,A,W=h==="le",J=new t(r),K=this.clone();if(W){for(A=0;!K.isZero();A++)v=K.andln(255),K.iushrn(8),J[A]=v;for(;A<r;A++)J[A]=0}else{for(A=0;A<r-a;A++)J[A]=0;for(A=0;!K.isZero();A++)v=K.andln(255),K.iushrn(8),J[r-A-1]=v}return J},Math.clz32?p.prototype._countBits=function(t){return 32-Math.clz32(t)}:p.prototype._countBits=function(t){var h=t,l=0;return h>=4096&&(l+=13,h>>>=13),h>=64&&(l+=7,h>>>=7),h>=8&&(l+=4,h>>>=4),h>=2&&(l+=2,h>>>=2),l+h},p.prototype._zeroBits=function(t){if(t===0)return 26;var h=t,l=0;return 8191&h||(l+=13,h>>>=13),127&h||(l+=7,h>>>=7),15&h||(l+=4,h>>>=4),3&h||(l+=2,h>>>=2),1&h||l++,l},p.prototype.bitLength=function(){var t=this.words[this.length-1],h=this._countBits(t);return 26*(this.length-1)+h},p.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,h=0;h<this.length;h++){var l=this._zeroBits(this.words[h]);if(t+=l,l!==26)break}return t},p.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},p.prototype.toTwos=function(t){return this.negative!==0?this.abs().inotn(t).iaddn(1):this.clone()},p.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},p.prototype.isNeg=function(){return this.negative!==0},p.prototype.neg=function(){return this.clone().ineg()},p.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},p.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var h=0;h<t.length;h++)this.words[h]=this.words[h]|t.words[h];return this.strip()},p.prototype.ior=function(t){return I(!(this.negative|t.negative)),this.iuor(t)},p.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},p.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},p.prototype.iuand=function(t){var h;h=this.length>t.length?t:this;for(var l=0;l<h.length;l++)this.words[l]=this.words[l]&t.words[l];return this.length=h.length,this.strip()},p.prototype.iand=function(t){return I(!(this.negative|t.negative)),this.iuand(t)},p.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},p.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},p.prototype.iuxor=function(t){var h,l;this.length>t.length?(h=this,l=t):(h=t,l=this);for(var a=0;a<l.length;a++)this.words[a]=h.words[a]^l.words[a];if(this!==h)for(;a<h.length;a++)this.words[a]=h.words[a];return this.length=h.length,this.strip()},p.prototype.ixor=function(t){return I(!(this.negative|t.negative)),this.iuxor(t)},p.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},p.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},p.prototype.inotn=function(t){I(typeof t=="number"&&t>=0);var h=0|Math.ceil(t/26),l=t%26;this._expand(h),l>0&&h--;for(var a=0;a<h;a++)this.words[a]=67108863&~this.words[a];return l>0&&(this.words[a]=~this.words[a]&67108863>>26-l),this.strip()},p.prototype.notn=function(t){return this.clone().inotn(t)},p.prototype.setn=function(t,h){I(typeof t=="number"&&t>=0);var l=t/26|0,a=t%26;return this._expand(l+1),this.words[l]=h?this.words[l]|1<<a:this.words[l]&~(1<<a),this.strip()},p.prototype.iadd=function(t){var h,l,a;if(this.negative!==0&&t.negative===0)return this.negative=0,h=this.isub(t),this.negative^=1,this._normSign();if(this.negative===0&&t.negative!==0)return t.negative=0,h=this.isub(t),t.negative=1,h._normSign();this.length>t.length?(l=this,a=t):(l=t,a=this);for(var r=0,v=0;v<a.length;v++)h=(0|l.words[v])+(0|a.words[v])+r,this.words[v]=67108863&h,r=h>>>26;for(;r!==0&&v<l.length;v++)h=(0|l.words[v])+r,this.words[v]=67108863&h,r=h>>>26;if(this.length=l.length,r!==0)this.words[this.length]=r,this.length++;else if(l!==this)for(;v<l.length;v++)this.words[v]=l.words[v];return this},p.prototype.add=function(t){var h;return t.negative!==0&&this.negative===0?(t.negative=0,h=this.sub(t),t.negative^=1,h):t.negative===0&&this.negative!==0?(this.negative=0,h=t.sub(this),this.negative=1,h):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},p.prototype.isub=function(t){if(t.negative!==0){t.negative=0;var h=this.iadd(t);return t.negative=1,h._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var l,a,r=this.cmp(t);if(r===0)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(l=this,a=t):(l=t,a=this);for(var v=0,A=0;A<a.length;A++)v=(h=(0|l.words[A])-(0|a.words[A])+v)>>26,this.words[A]=67108863&h;for(;v!==0&&A<l.length;A++)v=(h=(0|l.words[A])+v)>>26,this.words[A]=67108863&h;if(v===0&&A<l.length&&l!==this)for(;A<l.length;A++)this.words[A]=l.words[A];return this.length=Math.max(this.length,A),l!==this&&(this.negative=1),this.strip()},p.prototype.sub=function(t){return this.clone().isub(t)};var U=function(t,h,l){var a,r,v,A=t.words,W=h.words,J=l.words,K=0,G=0|A[0],Y=8191&G,at=G>>>13,ot=0|A[1],ht=8191&ot,tt=ot>>>13,it=0|A[2],Z=8191&it,rt=it>>>13,wt=0|A[3],gt=8191&wt,St=wt>>>13,Lt=0|A[4],At=8191&Lt,jt=Lt>>>13,Qt=0|A[5],Dt=8191&Qt,zt=Qt>>>13,ft=0|A[6],pt=8191&ft,mt=ft>>>13,Mt=0|A[7],xt=8191&Mt,kt=Mt>>>13,$t=0|A[8],Pt=8191&$t,yt=$t>>>13,dt=0|A[9],lt=8191&dt,_t=dt>>>13,qt=0|W[0],It=8191&qt,Nt=qt>>>13,be=0|W[1],Vt=8191&be,Jt=be>>>13,Ee=0|W[2],Ht=8191&Ee,ae=Ee>>>13,Ne=0|W[3],Gt=8191&Ne,se=Ne>>>13,qe=0|W[4],Zt=8191&qe,he=qe>>>13,Qe=0|W[5],Yt=8191&Qe,ce=Qe>>>13,Ge=0|W[6],Ut=8191&Ge,te=Ge>>>13,He=0|W[7],ne=8191&He,me=He>>>13,tr=0|W[8],ie=8191&tr,de=tr>>>13,rr=0|W[9],oe=8191&rr,ge=rr>>>13;l.negative=t.negative^h.negative,l.length=19;var We=(K+(a=Math.imul(Y,It))|0)+((8191&(r=(r=Math.imul(Y,Nt))+Math.imul(at,It)|0))<<13)|0;K=((v=Math.imul(at,Nt))+(r>>>13)|0)+(We>>>26)|0,We&=67108863,a=Math.imul(ht,It),r=(r=Math.imul(ht,Nt))+Math.imul(tt,It)|0,v=Math.imul(tt,Nt);var $e=(K+(a=a+Math.imul(Y,Vt)|0)|0)+((8191&(r=(r=r+Math.imul(Y,Jt)|0)+Math.imul(at,Vt)|0))<<13)|0;K=((v=v+Math.imul(at,Jt)|0)+(r>>>13)|0)+($e>>>26)|0,$e&=67108863,a=Math.imul(Z,It),r=(r=Math.imul(Z,Nt))+Math.imul(rt,It)|0,v=Math.imul(rt,Nt),a=a+Math.imul(ht,Vt)|0,r=(r=r+Math.imul(ht,Jt)|0)+Math.imul(tt,Vt)|0,v=v+Math.imul(tt,Jt)|0;var cr=(K+(a=a+Math.imul(Y,Ht)|0)|0)+((8191&(r=(r=r+Math.imul(Y,ae)|0)+Math.imul(at,Ht)|0))<<13)|0;K=((v=v+Math.imul(at,ae)|0)+(r>>>13)|0)+(cr>>>26)|0,cr&=67108863,a=Math.imul(gt,It),r=(r=Math.imul(gt,Nt))+Math.imul(St,It)|0,v=Math.imul(St,Nt),a=a+Math.imul(Z,Vt)|0,r=(r=r+Math.imul(Z,Jt)|0)+Math.imul(rt,Vt)|0,v=v+Math.imul(rt,Jt)|0,a=a+Math.imul(ht,Ht)|0,r=(r=r+Math.imul(ht,ae)|0)+Math.imul(tt,Ht)|0,v=v+Math.imul(tt,ae)|0;var mr=(K+(a=a+Math.imul(Y,Gt)|0)|0)+((8191&(r=(r=r+Math.imul(Y,se)|0)+Math.imul(at,Gt)|0))<<13)|0;K=((v=v+Math.imul(at,se)|0)+(r>>>13)|0)+(mr>>>26)|0,mr&=67108863,a=Math.imul(At,It),r=(r=Math.imul(At,Nt))+Math.imul(jt,It)|0,v=Math.imul(jt,Nt),a=a+Math.imul(gt,Vt)|0,r=(r=r+Math.imul(gt,Jt)|0)+Math.imul(St,Vt)|0,v=v+Math.imul(St,Jt)|0,a=a+Math.imul(Z,Ht)|0,r=(r=r+Math.imul(Z,ae)|0)+Math.imul(rt,Ht)|0,v=v+Math.imul(rt,ae)|0,a=a+Math.imul(ht,Gt)|0,r=(r=r+Math.imul(ht,se)|0)+Math.imul(tt,Gt)|0,v=v+Math.imul(tt,se)|0;var hr=(K+(a=a+Math.imul(Y,Zt)|0)|0)+((8191&(r=(r=r+Math.imul(Y,he)|0)+Math.imul(at,Zt)|0))<<13)|0;K=((v=v+Math.imul(at,he)|0)+(r>>>13)|0)+(hr>>>26)|0,hr&=67108863,a=Math.imul(Dt,It),r=(r=Math.imul(Dt,Nt))+Math.imul(zt,It)|0,v=Math.imul(zt,Nt),a=a+Math.imul(At,Vt)|0,r=(r=r+Math.imul(At,Jt)|0)+Math.imul(jt,Vt)|0,v=v+Math.imul(jt,Jt)|0,a=a+Math.imul(gt,Ht)|0,r=(r=r+Math.imul(gt,ae)|0)+Math.imul(St,Ht)|0,v=v+Math.imul(St,ae)|0,a=a+Math.imul(Z,Gt)|0,r=(r=r+Math.imul(Z,se)|0)+Math.imul(rt,Gt)|0,v=v+Math.imul(rt,se)|0,a=a+Math.imul(ht,Zt)|0,r=(r=r+Math.imul(ht,he)|0)+Math.imul(tt,Zt)|0,v=v+Math.imul(tt,he)|0;var gr=(K+(a=a+Math.imul(Y,Yt)|0)|0)+((8191&(r=(r=r+Math.imul(Y,ce)|0)+Math.imul(at,Yt)|0))<<13)|0;K=((v=v+Math.imul(at,ce)|0)+(r>>>13)|0)+(gr>>>26)|0,gr&=67108863,a=Math.imul(pt,It),r=(r=Math.imul(pt,Nt))+Math.imul(mt,It)|0,v=Math.imul(mt,Nt),a=a+Math.imul(Dt,Vt)|0,r=(r=r+Math.imul(Dt,Jt)|0)+Math.imul(zt,Vt)|0,v=v+Math.imul(zt,Jt)|0,a=a+Math.imul(At,Ht)|0,r=(r=r+Math.imul(At,ae)|0)+Math.imul(jt,Ht)|0,v=v+Math.imul(jt,ae)|0,a=a+Math.imul(gt,Gt)|0,r=(r=r+Math.imul(gt,se)|0)+Math.imul(St,Gt)|0,v=v+Math.imul(St,se)|0,a=a+Math.imul(Z,Zt)|0,r=(r=r+Math.imul(Z,he)|0)+Math.imul(rt,Zt)|0,v=v+Math.imul(rt,he)|0,a=a+Math.imul(ht,Yt)|0,r=(r=r+Math.imul(ht,ce)|0)+Math.imul(tt,Yt)|0,v=v+Math.imul(tt,ce)|0;var vr=(K+(a=a+Math.imul(Y,Ut)|0)|0)+((8191&(r=(r=r+Math.imul(Y,te)|0)+Math.imul(at,Ut)|0))<<13)|0;K=((v=v+Math.imul(at,te)|0)+(r>>>13)|0)+(vr>>>26)|0,vr&=67108863,a=Math.imul(xt,It),r=(r=Math.imul(xt,Nt))+Math.imul(kt,It)|0,v=Math.imul(kt,Nt),a=a+Math.imul(pt,Vt)|0,r=(r=r+Math.imul(pt,Jt)|0)+Math.imul(mt,Vt)|0,v=v+Math.imul(mt,Jt)|0,a=a+Math.imul(Dt,Ht)|0,r=(r=r+Math.imul(Dt,ae)|0)+Math.imul(zt,Ht)|0,v=v+Math.imul(zt,ae)|0,a=a+Math.imul(At,Gt)|0,r=(r=r+Math.imul(At,se)|0)+Math.imul(jt,Gt)|0,v=v+Math.imul(jt,se)|0,a=a+Math.imul(gt,Zt)|0,r=(r=r+Math.imul(gt,he)|0)+Math.imul(St,Zt)|0,v=v+Math.imul(St,he)|0,a=a+Math.imul(Z,Yt)|0,r=(r=r+Math.imul(Z,ce)|0)+Math.imul(rt,Yt)|0,v=v+Math.imul(rt,ce)|0,a=a+Math.imul(ht,Ut)|0,r=(r=r+Math.imul(ht,te)|0)+Math.imul(tt,Ut)|0,v=v+Math.imul(tt,te)|0;var yr=(K+(a=a+Math.imul(Y,ne)|0)|0)+((8191&(r=(r=r+Math.imul(Y,me)|0)+Math.imul(at,ne)|0))<<13)|0;K=((v=v+Math.imul(at,me)|0)+(r>>>13)|0)+(yr>>>26)|0,yr&=67108863,a=Math.imul(Pt,It),r=(r=Math.imul(Pt,Nt))+Math.imul(yt,It)|0,v=Math.imul(yt,Nt),a=a+Math.imul(xt,Vt)|0,r=(r=r+Math.imul(xt,Jt)|0)+Math.imul(kt,Vt)|0,v=v+Math.imul(kt,Jt)|0,a=a+Math.imul(pt,Ht)|0,r=(r=r+Math.imul(pt,ae)|0)+Math.imul(mt,Ht)|0,v=v+Math.imul(mt,ae)|0,a=a+Math.imul(Dt,Gt)|0,r=(r=r+Math.imul(Dt,se)|0)+Math.imul(zt,Gt)|0,v=v+Math.imul(zt,se)|0,a=a+Math.imul(At,Zt)|0,r=(r=r+Math.imul(At,he)|0)+Math.imul(jt,Zt)|0,v=v+Math.imul(jt,he)|0,a=a+Math.imul(gt,Yt)|0,r=(r=r+Math.imul(gt,ce)|0)+Math.imul(St,Yt)|0,v=v+Math.imul(St,ce)|0,a=a+Math.imul(Z,Ut)|0,r=(r=r+Math.imul(Z,te)|0)+Math.imul(rt,Ut)|0,v=v+Math.imul(rt,te)|0,a=a+Math.imul(ht,ne)|0,r=(r=r+Math.imul(ht,me)|0)+Math.imul(tt,ne)|0,v=v+Math.imul(tt,me)|0;var br=(K+(a=a+Math.imul(Y,ie)|0)|0)+((8191&(r=(r=r+Math.imul(Y,de)|0)+Math.imul(at,ie)|0))<<13)|0;K=((v=v+Math.imul(at,de)|0)+(r>>>13)|0)+(br>>>26)|0,br&=67108863,a=Math.imul(lt,It),r=(r=Math.imul(lt,Nt))+Math.imul(_t,It)|0,v=Math.imul(_t,Nt),a=a+Math.imul(Pt,Vt)|0,r=(r=r+Math.imul(Pt,Jt)|0)+Math.imul(yt,Vt)|0,v=v+Math.imul(yt,Jt)|0,a=a+Math.imul(xt,Ht)|0,r=(r=r+Math.imul(xt,ae)|0)+Math.imul(kt,Ht)|0,v=v+Math.imul(kt,ae)|0,a=a+Math.imul(pt,Gt)|0,r=(r=r+Math.imul(pt,se)|0)+Math.imul(mt,Gt)|0,v=v+Math.imul(mt,se)|0,a=a+Math.imul(Dt,Zt)|0,r=(r=r+Math.imul(Dt,he)|0)+Math.imul(zt,Zt)|0,v=v+Math.imul(zt,he)|0,a=a+Math.imul(At,Yt)|0,r=(r=r+Math.imul(At,ce)|0)+Math.imul(jt,Yt)|0,v=v+Math.imul(jt,ce)|0,a=a+Math.imul(gt,Ut)|0,r=(r=r+Math.imul(gt,te)|0)+Math.imul(St,Ut)|0,v=v+Math.imul(St,te)|0,a=a+Math.imul(Z,ne)|0,r=(r=r+Math.imul(Z,me)|0)+Math.imul(rt,ne)|0,v=v+Math.imul(rt,me)|0,a=a+Math.imul(ht,ie)|0,r=(r=r+Math.imul(ht,de)|0)+Math.imul(tt,ie)|0,v=v+Math.imul(tt,de)|0;var lr=(K+(a=a+Math.imul(Y,oe)|0)|0)+((8191&(r=(r=r+Math.imul(Y,ge)|0)+Math.imul(at,oe)|0))<<13)|0;K=((v=v+Math.imul(at,ge)|0)+(r>>>13)|0)+(lr>>>26)|0,lr&=67108863,a=Math.imul(lt,Vt),r=(r=Math.imul(lt,Jt))+Math.imul(_t,Vt)|0,v=Math.imul(_t,Jt),a=a+Math.imul(Pt,Ht)|0,r=(r=r+Math.imul(Pt,ae)|0)+Math.imul(yt,Ht)|0,v=v+Math.imul(yt,ae)|0,a=a+Math.imul(xt,Gt)|0,r=(r=r+Math.imul(xt,se)|0)+Math.imul(kt,Gt)|0,v=v+Math.imul(kt,se)|0,a=a+Math.imul(pt,Zt)|0,r=(r=r+Math.imul(pt,he)|0)+Math.imul(mt,Zt)|0,v=v+Math.imul(mt,he)|0,a=a+Math.imul(Dt,Yt)|0,r=(r=r+Math.imul(Dt,ce)|0)+Math.imul(zt,Yt)|0,v=v+Math.imul(zt,ce)|0,a=a+Math.imul(At,Ut)|0,r=(r=r+Math.imul(At,te)|0)+Math.imul(jt,Ut)|0,v=v+Math.imul(jt,te)|0,a=a+Math.imul(gt,ne)|0,r=(r=r+Math.imul(gt,me)|0)+Math.imul(St,ne)|0,v=v+Math.imul(St,me)|0,a=a+Math.imul(Z,ie)|0,r=(r=r+Math.imul(Z,de)|0)+Math.imul(rt,ie)|0,v=v+Math.imul(rt,de)|0;var wr=(K+(a=a+Math.imul(ht,oe)|0)|0)+((8191&(r=(r=r+Math.imul(ht,ge)|0)+Math.imul(tt,oe)|0))<<13)|0;K=((v=v+Math.imul(tt,ge)|0)+(r>>>13)|0)+(wr>>>26)|0,wr&=67108863,a=Math.imul(lt,Ht),r=(r=Math.imul(lt,ae))+Math.imul(_t,Ht)|0,v=Math.imul(_t,ae),a=a+Math.imul(Pt,Gt)|0,r=(r=r+Math.imul(Pt,se)|0)+Math.imul(yt,Gt)|0,v=v+Math.imul(yt,se)|0,a=a+Math.imul(xt,Zt)|0,r=(r=r+Math.imul(xt,he)|0)+Math.imul(kt,Zt)|0,v=v+Math.imul(kt,he)|0,a=a+Math.imul(pt,Yt)|0,r=(r=r+Math.imul(pt,ce)|0)+Math.imul(mt,Yt)|0,v=v+Math.imul(mt,ce)|0,a=a+Math.imul(Dt,Ut)|0,r=(r=r+Math.imul(Dt,te)|0)+Math.imul(zt,Ut)|0,v=v+Math.imul(zt,te)|0,a=a+Math.imul(At,ne)|0,r=(r=r+Math.imul(At,me)|0)+Math.imul(jt,ne)|0,v=v+Math.imul(jt,me)|0,a=a+Math.imul(gt,ie)|0,r=(r=r+Math.imul(gt,de)|0)+Math.imul(St,ie)|0,v=v+Math.imul(St,de)|0;var fr=(K+(a=a+Math.imul(Z,oe)|0)|0)+((8191&(r=(r=r+Math.imul(Z,ge)|0)+Math.imul(rt,oe)|0))<<13)|0;K=((v=v+Math.imul(rt,ge)|0)+(r>>>13)|0)+(fr>>>26)|0,fr&=67108863,a=Math.imul(lt,Gt),r=(r=Math.imul(lt,se))+Math.imul(_t,Gt)|0,v=Math.imul(_t,se),a=a+Math.imul(Pt,Zt)|0,r=(r=r+Math.imul(Pt,he)|0)+Math.imul(yt,Zt)|0,v=v+Math.imul(yt,he)|0,a=a+Math.imul(xt,Yt)|0,r=(r=r+Math.imul(xt,ce)|0)+Math.imul(kt,Yt)|0,v=v+Math.imul(kt,ce)|0,a=a+Math.imul(pt,Ut)|0,r=(r=r+Math.imul(pt,te)|0)+Math.imul(mt,Ut)|0,v=v+Math.imul(mt,te)|0,a=a+Math.imul(Dt,ne)|0,r=(r=r+Math.imul(Dt,me)|0)+Math.imul(zt,ne)|0,v=v+Math.imul(zt,me)|0,a=a+Math.imul(At,ie)|0,r=(r=r+Math.imul(At,de)|0)+Math.imul(jt,ie)|0,v=v+Math.imul(jt,de)|0;var _r=(K+(a=a+Math.imul(gt,oe)|0)|0)+((8191&(r=(r=r+Math.imul(gt,ge)|0)+Math.imul(St,oe)|0))<<13)|0;K=((v=v+Math.imul(St,ge)|0)+(r>>>13)|0)+(_r>>>26)|0,_r&=67108863,a=Math.imul(lt,Zt),r=(r=Math.imul(lt,he))+Math.imul(_t,Zt)|0,v=Math.imul(_t,he),a=a+Math.imul(Pt,Yt)|0,r=(r=r+Math.imul(Pt,ce)|0)+Math.imul(yt,Yt)|0,v=v+Math.imul(yt,ce)|0,a=a+Math.imul(xt,Ut)|0,r=(r=r+Math.imul(xt,te)|0)+Math.imul(kt,Ut)|0,v=v+Math.imul(kt,te)|0,a=a+Math.imul(pt,ne)|0,r=(r=r+Math.imul(pt,me)|0)+Math.imul(mt,ne)|0,v=v+Math.imul(mt,me)|0,a=a+Math.imul(Dt,ie)|0,r=(r=r+Math.imul(Dt,de)|0)+Math.imul(zt,ie)|0,v=v+Math.imul(zt,de)|0;var Mr=(K+(a=a+Math.imul(At,oe)|0)|0)+((8191&(r=(r=r+Math.imul(At,ge)|0)+Math.imul(jt,oe)|0))<<13)|0;K=((v=v+Math.imul(jt,ge)|0)+(r>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,a=Math.imul(lt,Yt),r=(r=Math.imul(lt,ce))+Math.imul(_t,Yt)|0,v=Math.imul(_t,ce),a=a+Math.imul(Pt,Ut)|0,r=(r=r+Math.imul(Pt,te)|0)+Math.imul(yt,Ut)|0,v=v+Math.imul(yt,te)|0,a=a+Math.imul(xt,ne)|0,r=(r=r+Math.imul(xt,me)|0)+Math.imul(kt,ne)|0,v=v+Math.imul(kt,me)|0,a=a+Math.imul(pt,ie)|0,r=(r=r+Math.imul(pt,de)|0)+Math.imul(mt,ie)|0,v=v+Math.imul(mt,de)|0;var pr=(K+(a=a+Math.imul(Dt,oe)|0)|0)+((8191&(r=(r=r+Math.imul(Dt,ge)|0)+Math.imul(zt,oe)|0))<<13)|0;K=((v=v+Math.imul(zt,ge)|0)+(r>>>13)|0)+(pr>>>26)|0,pr&=67108863,a=Math.imul(lt,Ut),r=(r=Math.imul(lt,te))+Math.imul(_t,Ut)|0,v=Math.imul(_t,te),a=a+Math.imul(Pt,ne)|0,r=(r=r+Math.imul(Pt,me)|0)+Math.imul(yt,ne)|0,v=v+Math.imul(yt,me)|0,a=a+Math.imul(xt,ie)|0,r=(r=r+Math.imul(xt,de)|0)+Math.imul(kt,ie)|0,v=v+Math.imul(kt,de)|0;var Le=(K+(a=a+Math.imul(pt,oe)|0)|0)+((8191&(r=(r=r+Math.imul(pt,ge)|0)+Math.imul(mt,oe)|0))<<13)|0;K=((v=v+Math.imul(mt,ge)|0)+(r>>>13)|0)+(Le>>>26)|0,Le&=67108863,a=Math.imul(lt,ne),r=(r=Math.imul(lt,me))+Math.imul(_t,ne)|0,v=Math.imul(_t,me),a=a+Math.imul(Pt,ie)|0,r=(r=r+Math.imul(Pt,de)|0)+Math.imul(yt,ie)|0,v=v+Math.imul(yt,de)|0;var De=(K+(a=a+Math.imul(xt,oe)|0)|0)+((8191&(r=(r=r+Math.imul(xt,ge)|0)+Math.imul(kt,oe)|0))<<13)|0;K=((v=v+Math.imul(kt,ge)|0)+(r>>>13)|0)+(De>>>26)|0,De&=67108863,a=Math.imul(lt,ie),r=(r=Math.imul(lt,de))+Math.imul(_t,ie)|0,v=Math.imul(_t,de);var xr=(K+(a=a+Math.imul(Pt,oe)|0)|0)+((8191&(r=(r=r+Math.imul(Pt,ge)|0)+Math.imul(yt,oe)|0))<<13)|0;K=((v=v+Math.imul(yt,ge)|0)+(r>>>13)|0)+(xr>>>26)|0,xr&=67108863;var Er=(K+(a=Math.imul(lt,oe))|0)+((8191&(r=(r=Math.imul(lt,ge))+Math.imul(_t,oe)|0))<<13)|0;return K=((v=Math.imul(_t,ge))+(r>>>13)|0)+(Er>>>26)|0,Er&=67108863,J[0]=We,J[1]=$e,J[2]=cr,J[3]=mr,J[4]=hr,J[5]=gr,J[6]=vr,J[7]=yr,J[8]=br,J[9]=lr,J[10]=wr,J[11]=fr,J[12]=_r,J[13]=Mr,J[14]=pr,J[15]=Le,J[16]=De,J[17]=xr,J[18]=Er,K!==0&&(J[19]=K,l.length++),l};function z(t,h,l){return new H().mulp(t,h,l)}function H(t,h){this.x=t,this.y=h}Math.imul||(U=F),p.prototype.mulTo=function(t,h){var l,a=this.length+t.length;return l=this.length===10&&t.length===10?U(this,t,h):a<63?F(this,t,h):a<1024?function(r,v,A){A.negative=v.negative^r.negative,A.length=r.length+v.length;for(var W=0,J=0,K=0;K<A.length-1;K++){var G=J;J=0;for(var Y=67108863&W,at=Math.min(K,v.length-1),ot=Math.max(0,K-r.length+1);ot<=at;ot++){var ht=K-ot,tt=(0|r.words[ht])*(0|v.words[ot]),it=67108863&tt;Y=67108863&(it=it+Y|0),J+=(G=(G=G+(tt/67108864|0)|0)+(it>>>26)|0)>>>26,G&=67108863}A.words[K]=Y,W=G,G=J}return W!==0?A.words[K]=W:A.length--,A.strip()}(this,t,h):z(this,t,h),l},H.prototype.makeRBT=function(t){for(var h=new Array(t),l=p.prototype._countBits(t)-1,a=0;a<t;a++)h[a]=this.revBin(a,l,t);return h},H.prototype.revBin=function(t,h,l){if(t===0||t===l-1)return t;for(var a=0,r=0;r<h;r++)a|=(1&t)<<h-r-1,t>>=1;return a},H.prototype.permute=function(t,h,l,a,r,v){for(var A=0;A<v;A++)a[A]=h[t[A]],r[A]=l[t[A]]},H.prototype.transform=function(t,h,l,a,r,v){this.permute(v,t,h,l,a,r);for(var A=1;A<r;A<<=1)for(var W=A<<1,J=Math.cos(2*Math.PI/W),K=Math.sin(2*Math.PI/W),G=0;G<r;G+=W)for(var Y=J,at=K,ot=0;ot<A;ot++){var ht=l[G+ot],tt=a[G+ot],it=l[G+ot+A],Z=a[G+ot+A],rt=Y*it-at*Z;Z=Y*Z+at*it,it=rt,l[G+ot]=ht+it,a[G+ot]=tt+Z,l[G+ot+A]=ht-it,a[G+ot+A]=tt-Z,ot!==W&&(rt=J*Y-K*at,at=J*at+K*Y,Y=rt)}},H.prototype.guessLen13b=function(t,h){var l=1|Math.max(h,t),a=1&l,r=0;for(l=l/2|0;l;l>>>=1)r++;return 1<<r+1+a},H.prototype.conjugate=function(t,h,l){if(!(l<=1))for(var a=0;a<l/2;a++){var r=t[a];t[a]=t[l-a-1],t[l-a-1]=r,r=h[a],h[a]=-h[l-a-1],h[l-a-1]=-r}},H.prototype.normalize13b=function(t,h){for(var l=0,a=0;a<h/2;a++){var r=8192*Math.round(t[2*a+1]/h)+Math.round(t[2*a]/h)+l;t[a]=67108863&r,l=r<67108864?0:r/67108864|0}return t},H.prototype.convert13b=function(t,h,l,a){for(var r=0,v=0;v<h;v++)r+=0|t[v],l[2*v]=8191&r,r>>>=13,l[2*v+1]=8191&r,r>>>=13;for(v=2*h;v<a;++v)l[v]=0;I(r===0),I(!(-8192&r))},H.prototype.stub=function(t){for(var h=new Array(t),l=0;l<t;l++)h[l]=0;return h},H.prototype.mulp=function(t,h,l){var a=2*this.guessLen13b(t.length,h.length),r=this.makeRBT(a),v=this.stub(a),A=new Array(a),W=new Array(a),J=new Array(a),K=new Array(a),G=new Array(a),Y=new Array(a),at=l.words;at.length=a,this.convert13b(t.words,t.length,A,a),this.convert13b(h.words,h.length,K,a),this.transform(A,v,W,J,a,r),this.transform(K,v,G,Y,a,r);for(var ot=0;ot<a;ot++){var ht=W[ot]*G[ot]-J[ot]*Y[ot];J[ot]=W[ot]*Y[ot]+J[ot]*G[ot],W[ot]=ht}return this.conjugate(W,J,a),this.transform(W,J,at,v,a,r),this.conjugate(at,v,a),this.normalize13b(at,a),l.negative=t.negative^h.negative,l.length=t.length+h.length,l.strip()},p.prototype.mul=function(t){var h=new p(null);return h.words=new Array(this.length+t.length),this.mulTo(t,h)},p.prototype.mulf=function(t){var h=new p(null);return h.words=new Array(this.length+t.length),z(this,t,h)},p.prototype.imul=function(t){return this.clone().mulTo(t,this)},p.prototype.imuln=function(t){I(typeof t=="number"),I(t<67108864);for(var h=0,l=0;l<this.length;l++){var a=(0|this.words[l])*t,r=(67108863&a)+(67108863&h);h>>=26,h+=a/67108864|0,h+=r>>>26,this.words[l]=67108863&r}return h!==0&&(this.words[l]=h,this.length++),this},p.prototype.muln=function(t){return this.clone().imuln(t)},p.prototype.sqr=function(){return this.mul(this)},p.prototype.isqr=function(){return this.imul(this.clone())},p.prototype.pow=function(t){var h=function(v){for(var A=new Array(v.bitLength()),W=0;W<A.length;W++){var J=W/26|0,K=W%26;A[W]=(v.words[J]&1<<K)>>>K}return A}(t);if(h.length===0)return new p(1);for(var l=this,a=0;a<h.length&&h[a]===0;a++,l=l.sqr());if(++a<h.length)for(var r=l.sqr();a<h.length;a++,r=r.sqr())h[a]!==0&&(l=l.mul(r));return l},p.prototype.iushln=function(t){I(typeof t=="number"&&t>=0);var h,l=t%26,a=(t-l)/26,r=67108863>>>26-l<<26-l;if(l!==0){var v=0;for(h=0;h<this.length;h++){var A=this.words[h]&r,W=(0|this.words[h])-A<<l;this.words[h]=W|v,v=A>>>26-l}v&&(this.words[h]=v,this.length++)}if(a!==0){for(h=this.length-1;h>=0;h--)this.words[h+a]=this.words[h];for(h=0;h<a;h++)this.words[h]=0;this.length+=a}return this.strip()},p.prototype.ishln=function(t){return I(this.negative===0),this.iushln(t)},p.prototype.iushrn=function(t,h,l){var a;I(typeof t=="number"&&t>=0),a=h?(h-h%26)/26:0;var r=t%26,v=Math.min((t-r)/26,this.length),A=67108863^67108863>>>r<<r,W=l;if(a-=v,a=Math.max(0,a),W){for(var J=0;J<v;J++)W.words[J]=this.words[J];W.length=v}if(v!==0)if(this.length>v)for(this.length-=v,J=0;J<this.length;J++)this.words[J]=this.words[J+v];else this.words[0]=0,this.length=1;var K=0;for(J=this.length-1;J>=0&&(K!==0||J>=a);J--){var G=0|this.words[J];this.words[J]=K<<26-r|G>>>r,K=G&A}return W&&K!==0&&(W.words[W.length++]=K),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},p.prototype.ishrn=function(t,h,l){return I(this.negative===0),this.iushrn(t,h,l)},p.prototype.shln=function(t){return this.clone().ishln(t)},p.prototype.ushln=function(t){return this.clone().iushln(t)},p.prototype.shrn=function(t){return this.clone().ishrn(t)},p.prototype.ushrn=function(t){return this.clone().iushrn(t)},p.prototype.testn=function(t){I(typeof t=="number"&&t>=0);var h=t%26,l=(t-h)/26,a=1<<h;return!(this.length<=l||!(this.words[l]&a))},p.prototype.imaskn=function(t){I(typeof t=="number"&&t>=0);var h=t%26,l=(t-h)/26;if(I(this.negative===0,"imaskn works only with positive numbers"),this.length<=l)return this;if(h!==0&&l++,this.length=Math.min(l,this.length),h!==0){var a=67108863^67108863>>>h<<h;this.words[this.length-1]&=a}return this.strip()},p.prototype.maskn=function(t){return this.clone().imaskn(t)},p.prototype.iaddn=function(t){return I(typeof t=="number"),I(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)},p.prototype._iaddn=function(t){this.words[0]+=t;for(var h=0;h<this.length&&this.words[h]>=67108864;h++)this.words[h]-=67108864,h===this.length-1?this.words[h+1]=1:this.words[h+1]++;return this.length=Math.max(this.length,h+1),this},p.prototype.isubn=function(t){if(I(typeof t=="number"),I(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 h=0;h<this.length&&this.words[h]<0;h++)this.words[h]+=67108864,this.words[h+1]-=1;return this.strip()},p.prototype.addn=function(t){return this.clone().iaddn(t)},p.prototype.subn=function(t){return this.clone().isubn(t)},p.prototype.iabs=function(){return this.negative=0,this},p.prototype.abs=function(){return this.clone().iabs()},p.prototype._ishlnsubmul=function(t,h,l){var a,r,v=t.length+l;this._expand(v);var A=0;for(a=0;a<t.length;a++){r=(0|this.words[a+l])+A;var W=(0|t.words[a])*h;A=((r-=67108863&W)>>26)-(W/67108864|0),this.words[a+l]=67108863&r}for(;a<this.length-l;a++)A=(r=(0|this.words[a+l])+A)>>26,this.words[a+l]=67108863&r;if(A===0)return this.strip();for(I(A===-1),A=0,a=0;a<this.length;a++)A=(r=-(0|this.words[a])+A)>>26,this.words[a]=67108863&r;return this.negative=1,this.strip()},p.prototype._wordDiv=function(t,h){var l=(this.length,t.length),a=this.clone(),r=t,v=0|r.words[r.length-1];(l=26-this._countBits(v))!=0&&(r=r.ushln(l),a.iushln(l),v=0|r.words[r.length-1]);var A,W=a.length-r.length;if(h!=="mod"){(A=new p(null)).length=W+1,A.words=new Array(A.length);for(var J=0;J<A.length;J++)A.words[J]=0}var K=a.clone()._ishlnsubmul(r,1,W);K.negative===0&&(a=K,A&&(A.words[W]=1));for(var G=W-1;G>=0;G--){var Y=67108864*(0|a.words[r.length+G])+(0|a.words[r.length+G-1]);for(Y=Math.min(Y/v|0,67108863),a._ishlnsubmul(r,Y,G);a.negative!==0;)Y--,a.negative=0,a._ishlnsubmul(r,1,G),a.isZero()||(a.negative^=1);A&&(A.words[G]=Y)}return A&&A.strip(),a.strip(),h!=="div"&&l!==0&&a.iushrn(l),{div:A||null,mod:a}},p.prototype.divmod=function(t,h,l){return I(!t.isZero()),this.isZero()?{div:new p(0),mod:new p(0)}:this.negative!==0&&t.negative===0?(v=this.neg().divmod(t,h),h!=="mod"&&(a=v.div.neg()),h!=="div"&&(r=v.mod.neg(),l&&r.negative!==0&&r.iadd(t)),{div:a,mod:r}):this.negative===0&&t.negative!==0?(v=this.divmod(t.neg(),h),h!=="mod"&&(a=v.div.neg()),{div:a,mod:v.mod}):this.negative&t.negative?(v=this.neg().divmod(t.neg(),h),h!=="div"&&(r=v.mod.neg(),l&&r.negative!==0&&r.isub(t)),{div:v.div,mod:r}):t.length>this.length||this.cmp(t)<0?{div:new p(0),mod:this}:t.length===1?h==="div"?{div:this.divn(t.words[0]),mod:null}:h==="mod"?{div:null,mod:new p(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new p(this.modn(t.words[0]))}:this._wordDiv(t,h);var a,r,v},p.prototype.div=function(t){return this.divmod(t,"div",!1).div},p.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},p.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},p.prototype.divRound=function(t){var h=this.divmod(t);if(h.mod.isZero())return h.div;var l=h.div.negative!==0?h.mod.isub(t):h.mod,a=t.ushrn(1),r=t.andln(1),v=l.cmp(a);return v<0||r===1&&v===0?h.div:h.div.negative!==0?h.div.isubn(1):h.div.iaddn(1)},p.prototype.modn=function(t){I(t<=67108863);for(var h=67108864%t,l=0,a=this.length-1;a>=0;a--)l=(h*l+(0|this.words[a]))%t;return l},p.prototype.idivn=function(t){I(t<=67108863);for(var h=0,l=this.length-1;l>=0;l--){var a=(0|this.words[l])+67108864*h;this.words[l]=a/t|0,h=a%t}return this.strip()},p.prototype.divn=function(t){return this.clone().idivn(t)},p.prototype.egcd=function(t){I(t.negative===0),I(!t.isZero());var h=this,l=t.clone();h=h.negative!==0?h.umod(t):h.clone();for(var a=new p(1),r=new p(0),v=new p(0),A=new p(1),W=0;h.isEven()&&l.isEven();)h.iushrn(1),l.iushrn(1),++W;for(var J=l.clone(),K=h.clone();!h.isZero();){for(var G=0,Y=1;!(h.words[0]&Y)&&G<26;++G,Y<<=1);if(G>0)for(h.iushrn(G);G-- >0;)(a.isOdd()||r.isOdd())&&(a.iadd(J),r.isub(K)),a.iushrn(1),r.iushrn(1);for(var at=0,ot=1;!(l.words[0]&ot)&&at<26;++at,ot<<=1);if(at>0)for(l.iushrn(at);at-- >0;)(v.isOdd()||A.isOdd())&&(v.iadd(J),A.isub(K)),v.iushrn(1),A.iushrn(1);h.cmp(l)>=0?(h.isub(l),a.isub(v),r.isub(A)):(l.isub(h),v.isub(a),A.isub(r))}return{a:v,b:A,gcd:l.iushln(W)}},p.prototype._invmp=function(t){I(t.negative===0),I(!t.isZero());var h=this,l=t.clone();h=h.negative!==0?h.umod(t):h.clone();for(var a,r=new p(1),v=new p(0),A=l.clone();h.cmpn(1)>0&&l.cmpn(1)>0;){for(var W=0,J=1;!(h.words[0]&J)&&W<26;++W,J<<=1);if(W>0)for(h.iushrn(W);W-- >0;)r.isOdd()&&r.iadd(A),r.iushrn(1);for(var K=0,G=1;!(l.words[0]&G)&&K<26;++K,G<<=1);if(K>0)for(l.iushrn(K);K-- >0;)v.isOdd()&&v.iadd(A),v.iushrn(1);h.cmp(l)>=0?(h.isub(l),r.isub(v)):(l.isub(h),v.isub(r))}return(a=h.cmpn(1)===0?r:v).cmpn(0)<0&&a.iadd(t),a},p.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var h=this.clone(),l=t.clone();h.negative=0,l.negative=0;for(var a=0;h.isEven()&&l.isEven();a++)h.iushrn(1),l.iushrn(1);for(;;){for(;h.isEven();)h.iushrn(1);for(;l.isEven();)l.iushrn(1);var r=h.cmp(l);if(r<0){var v=h;h=l,l=v}else if(r===0||l.cmpn(1)===0)break;h.isub(l)}return l.iushln(a)},p.prototype.invm=function(t){return this.egcd(t).a.umod(t)},p.prototype.isEven=function(){return!(1&this.words[0])},p.prototype.isOdd=function(){return!(1&~this.words[0])},p.prototype.andln=function(t){return this.words[0]&t},p.prototype.bincn=function(t){I(typeof t=="number");var h=t%26,l=(t-h)/26,a=1<<h;if(this.length<=l)return this._expand(l+1),this.words[l]|=a,this;for(var r=a,v=l;r!==0&&v<this.length;v++){var A=0|this.words[v];r=(A+=r)>>>26,A&=67108863,this.words[v]=A}return r!==0&&(this.words[v]=r,this.length++),this},p.prototype.isZero=function(){return this.length===1&&this.words[0]===0},p.prototype.cmpn=function(t){var h,l=t<0;if(this.negative!==0&&!l)return-1;if(this.negative===0&&l)return 1;if(this.strip(),this.length>1)h=1;else{l&&(t=-t),I(t<=67108863,"Number is too big");var a=0|this.words[0];h=a===t?0:a<t?-1:1}return this.negative!==0?0|-h:h},p.prototype.cmp=function(t){if(this.negative!==0&&t.negative===0)return-1;if(this.negative===0&&t.negative!==0)return 1;var h=this.ucmp(t);return this.negative!==0?0|-h:h},p.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var h=0,l=this.length-1;l>=0;l--){var a=0|this.words[l],r=0|t.words[l];if(a!==r){a<r?h=-1:a>r&&(h=1);break}}return h},p.prototype.gtn=function(t){return this.cmpn(t)===1},p.prototype.gt=function(t){return this.cmp(t)===1},p.prototype.gten=function(t){return this.cmpn(t)>=0},p.prototype.gte=function(t){return this.cmp(t)>=0},p.prototype.ltn=function(t){return this.cmpn(t)===-1},p.prototype.lt=function(t){return this.cmp(t)===-1},p.prototype.lten=function(t){return this.cmpn(t)<=0},p.prototype.lte=function(t){return this.cmp(t)<=0},p.prototype.eqn=function(t){return this.cmpn(t)===0},p.prototype.eq=function(t){return this.cmp(t)===0},p.red=function(t){return new ct(t)},p.prototype.toRed=function(t){return I(!this.red,"Already a number in reduction context"),I(this.negative===0,"red works only with positives"),t.convertTo(this)._forceRed(t)},p.prototype.fromRed=function(){return I(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},p.prototype._forceRed=function(t){return this.red=t,this},p.prototype.forceRed=function(t){return I(!this.red,"Already a number in reduction context"),this._forceRed(t)},p.prototype.redAdd=function(t){return I(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},p.prototype.redIAdd=function(t){return I(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},p.prototype.redSub=function(t){return I(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},p.prototype.redISub=function(t){return I(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},p.prototype.redShl=function(t){return I(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},p.prototype.redMul=function(t){return I(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},p.prototype.redIMul=function(t){return I(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},p.prototype.redSqr=function(){return I(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},p.prototype.redISqr=function(){return I(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},p.prototype.redSqrt=function(){return I(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},p.prototype.redInvm=function(){return I(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},p.prototype.redNeg=function(){return I(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},p.prototype.redPow=function(t){return I(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var D={k256:null,p224:null,p192:null,p25519:null};function Q(t,h){this.name=t,this.p=new p(h,16),this.n=this.p.bitLength(),this.k=new p(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function X(){Q.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function et(){Q.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function nt(){Q.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ut(){Q.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function ct(t){if(typeof t=="string"){var h=p._prime(t);this.m=h.p,this.prime=h}else I(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function vt(t){ct.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new p(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)}Q.prototype._tmp=function(){var t=new p(null);return t.words=new Array(Math.ceil(this.n/13)),t},Q.prototype.ireduce=function(t){var h,l=t;do this.split(l,this.tmp),h=(l=(l=this.imulK(l)).iadd(this.tmp)).bitLength();while(h>this.n);var a=h<this.n?-1:l.ucmp(this.p);return a===0?(l.words[0]=0,l.length=1):a>0?l.isub(this.p):l.strip!==void 0?l.strip():l._strip(),l},Q.prototype.split=function(t,h){t.iushrn(this.n,0,h)},Q.prototype.imulK=function(t){return t.imul(this.k)},q(X,Q),X.prototype.split=function(t,h){for(var l=4194303,a=Math.min(t.length,9),r=0;r<a;r++)h.words[r]=t.words[r];if(h.length=a,t.length<=9)return t.words[0]=0,void(t.length=1);var v=t.words[9];for(h.words[h.length++]=v&l,r=10;r<t.length;r++){var A=0|t.words[r];t.words[r-10]=(A&l)<<4|v>>>22,v=A}v>>>=22,t.words[r-10]=v,v===0&&t.length>10?t.length-=10:t.length-=9},X.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var h=0,l=0;l<t.length;l++){var a=0|t.words[l];h+=977*a,t.words[l]=67108863&h,h=64*a+(h/67108864|0)}return t.words[t.length-1]===0&&(t.length--,t.words[t.length-1]===0&&t.length--),t},q(et,Q),q(nt,Q),q(ut,Q),ut.prototype.imulK=function(t){for(var h=0,l=0;l<t.length;l++){var a=19*(0|t.words[l])+h,r=67108863&a;a>>>=26,t.words[l]=r,h=a}return h!==0&&(t.words[t.length++]=h),t},p._prime=function(t){if(D[t])return D[t];var h;if(t==="k256")h=new X;else if(t==="p224")h=new et;else if(t==="p192")h=new nt;else{if(t!=="p25519")throw new Error("Unknown prime "+t);h=new ut}return D[t]=h,h},ct.prototype._verify1=function(t){I(t.negative===0,"red works only with positives"),I(t.red,"red works only with red numbers")},ct.prototype._verify2=function(t,h){I(!(t.negative|h.negative),"red works only with positives"),I(t.red&&t.red===h.red,"red works only with red numbers")},ct.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},ct.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},ct.prototype.add=function(t,h){this._verify2(t,h);var l=t.add(h);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},ct.prototype.iadd=function(t,h){this._verify2(t,h);var l=t.iadd(h);return l.cmp(this.m)>=0&&l.isub(this.m),l},ct.prototype.sub=function(t,h){this._verify2(t,h);var l=t.sub(h);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},ct.prototype.isub=function(t,h){this._verify2(t,h);var l=t.isub(h);return l.cmpn(0)<0&&l.iadd(this.m),l},ct.prototype.shl=function(t,h){return this._verify1(t),this.imod(t.ushln(h))},ct.prototype.imul=function(t,h){return this._verify2(t,h),this.imod(t.imul(h))},ct.prototype.mul=function(t,h){return this._verify2(t,h),this.imod(t.mul(h))},ct.prototype.isqr=function(t){return this.imul(t,t.clone())},ct.prototype.sqr=function(t){return this.mul(t,t)},ct.prototype.sqrt=function(t){if(t.isZero())return t.clone();var h=this.m.andln(3);if(I(h%2==1),h===3){var l=this.m.add(new p(1)).iushrn(2);return this.pow(t,l)}for(var a=this.m.subn(1),r=0;!a.isZero()&&a.andln(1)===0;)r++,a.iushrn(1);I(!a.isZero());var v=new p(1).toRed(this),A=v.redNeg(),W=this.m.subn(1).iushrn(1),J=this.m.bitLength();for(J=new p(2*J*J).toRed(this);this.pow(J,W).cmp(A)!==0;)J.redIAdd(A);for(var K=this.pow(J,a),G=this.pow(t,a.addn(1).iushrn(1)),Y=this.pow(t,a),at=r;Y.cmp(v)!==0;){for(var ot=Y,ht=0;ot.cmp(v)!==0;ht++)ot=ot.redSqr();I(ht<at);var tt=this.pow(K,new p(1).iushln(at-ht-1));G=G.redMul(tt),K=tt.redSqr(),Y=Y.redMul(K),at=ht}return G},ct.prototype.invm=function(t){var h=t._invmp(this.m);return h.negative!==0?(h.negative=0,this.imod(h).redNeg()):this.imod(h)},ct.prototype.pow=function(t,h){if(h.isZero())return new p(1).toRed(this);if(h.cmpn(1)===0)return t.clone();var l=new Array(16);l[0]=new p(1).toRed(this),l[1]=t;for(var a=2;a<l.length;a++)l[a]=this.mul(l[a-1],t);var r=l[0],v=0,A=0,W=h.bitLength()%26;for(W===0&&(W=26),a=h.length-1;a>=0;a--){for(var J=h.words[a],K=W-1;K>=0;K--){var G=J>>K&1;r!==l[0]&&(r=this.sqr(r)),G!==0||v!==0?(v<<=1,v|=G,(++A==4||a===0&&K===0)&&(r=this.mul(r,l[v]),A=0,v=0)):A=0}W=26}return r},ct.prototype.convertTo=function(t){var h=t.umod(this.m);return h===t?h.clone():h},ct.prototype.convertFrom=function(t){var h=t.clone();return h.red=null,h},p.mont=function(t){return new vt(t)},q(vt,ct),vt.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},vt.prototype.convertFrom=function(t){var h=this.imod(t.mul(this.rinv));return h.red=null,h},vt.prototype.imul=function(t,h){if(t.isZero()||h.isZero())return t.words[0]=0,t.length=1,t;var l=t.imul(h),a=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=l.isub(a).iushrn(this.shift),v=r;return r.cmp(this.m)>=0?v=r.isub(this.m):r.cmpn(0)<0&&(v=r.iadd(this.m)),v._forceRed(this)},vt.prototype.mul=function(t,h){if(t.isZero()||h.isZero())return new p(0)._forceRed(this);var l=t.mul(h),a=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=l.isub(a).iushrn(this.shift),v=r;return r.cmp(this.m)>=0?v=r.isub(this.m):r.cmpn(0)<0&&(v=r.iadd(this.m)),v._forceRed(this)},vt.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}})($=b.nmd($),this)},2356:($,w,b)=>{var j=b(462),O=b(2861).Buffer,I=b(6168),q=b(6698),p=b(5892),N=b(295),M=b(5122);function T(S,B,C,_){I.call(this);var F=O.alloc(4,0);this._cipher=new j.AES(B);var U=this._cipher.encryptBlock(F);this._ghash=new p(U),C=function(z,H,D){if(H.length===12)return z._finID=O.concat([H,O.from([0,0,0,1])]),O.concat([H,O.from([0,0,0,2])]);var Q=new p(D),X=H.length,et=X%16;Q.update(H),et&&(et=16-et,Q.update(O.alloc(et,0))),Q.update(O.alloc(8,0));var nt=8*X,ut=O.alloc(8);ut.writeUIntBE(nt,0,8),Q.update(ut),z._finID=Q.state;var ct=O.from(z._finID);return M(ct),ct}(this,C,U),this._prev=O.from(C),this._cache=O.allocUnsafe(0),this._secCache=O.allocUnsafe(0),this._decrypt=_,this._alen=0,this._len=0,this._mode=S,this._authTag=null,this._called=!1}q(T,I),T.prototype._update=function(S){if(!this._called&&this._alen){var B=16-this._alen%16;B<16&&(B=O.alloc(B,0),this._ghash.update(B))}this._called=!0;var C=this._mode.encrypt(this,S);return this._decrypt?this._ghash.update(S):this._ghash.update(C),this._len+=S.length,C},T.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var S=N(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(B,C){var _=0;B.length!==C.length&&_++;for(var F=Math.min(B.length,C.length),U=0;U<F;++U)_+=B[U]^C[U];return _}(S,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=S,this._cipher.scrub()},T.prototype.getAuthTag=function(){if(this._decrypt||!O.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},T.prototype.setAuthTag=function(S){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=S},T.prototype.setAAD=function(S){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(S),this._alen+=S.length},$.exports=T},2438:($,w)=>{w["des-ecb"]={key:8,iv:0},w["des-cbc"]=w.des={key:8,iv:8},w["des-ede3-cbc"]=w.des3={key:24,iv:8},w["des-ede3"]={key:24,iv:0},w["des-ede-cbc"]={key:16,iv:8},w["des-ede"]={key:16,iv:0}},2455:($,w,b)=>{var j,O=b(5606);j=b.g.process&&b.g.process.browser?"utf-8":b.g.process&&b.g.process.version?parseInt(O.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",$.exports=j},2464:($,w,b)=>{var j=b(8452),O=b(6642);$.exports=function(){var I=O();return j(Number,{isNaN:I},{isNaN:function(){return Number.isNaN!==I}}),I}},2509:function($,w,b){(function(j,O){function I(t,h){if(!t)throw new Error(h||"Assertion failed")}function q(t,h){t.super_=h;var l=function(){};l.prototype=h.prototype,t.prototype=new l,t.prototype.constructor=t}function p(t,h,l){if(p.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,t!==null&&(h!=="le"&&h!=="be"||(l=h,h=10),this._init(t||0,h||10,l||"be"))}var N;typeof j=="object"?j.exports=p:O.BN=p,p.BN=p,p.wordSize=26;try{N=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:b(1069).Buffer}catch{}function M(t,h){var l=t.charCodeAt(h);return l>=65&&l<=70?l-55:l>=97&&l<=102?l-87:l-48&15}function T(t,h,l){var a=M(t,l);return l-1>=h&&(a|=M(t,l-1)<<4),a}function S(t,h,l,a){for(var r=0,v=Math.min(t.length,l),A=h;A<v;A++){var W=t.charCodeAt(A)-48;r*=a,r+=W>=49?W-49+10:W>=17?W-17+10:W}return r}p.isBN=function(t){return t instanceof p||t!==null&&typeof t=="object"&&t.constructor.wordSize===p.wordSize&&Array.isArray(t.words)},p.max=function(t,h){return t.cmp(h)>0?t:h},p.min=function(t,h){return t.cmp(h)<0?t:h},p.prototype._init=function(t,h,l){if(typeof t=="number")return this._initNumber(t,h,l);if(typeof t=="object")return this._initArray(t,h,l);h==="hex"&&(h=16),I(h===(0|h)&&h>=2&&h<=36);var a=0;(t=t.toString().replace(/\s+/g,""))[0]==="-"&&(a++,this.negative=1),a<t.length&&(h===16?this._parseHex(t,a,l):(this._parseBase(t,h,a),l==="le"&&this._initArray(this.toArray(),h,l)))},p.prototype._initNumber=function(t,h,l){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):(I(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),l==="le"&&this._initArray(this.toArray(),h,l)},p.prototype._initArray=function(t,h,l){if(I(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 a=0;a<this.length;a++)this.words[a]=0;var r,v,A=0;if(l==="be")for(a=t.length-1,r=0;a>=0;a-=3)v=t[a]|t[a-1]<<8|t[a-2]<<16,this.words[r]|=v<<A&67108863,this.words[r+1]=v>>>26-A&67108863,(A+=24)>=26&&(A-=26,r++);else if(l==="le")for(a=0,r=0;a<t.length;a+=3)v=t[a]|t[a+1]<<8|t[a+2]<<16,this.words[r]|=v<<A&67108863,this.words[r+1]=v>>>26-A&67108863,(A+=24)>=26&&(A-=26,r++);return this.strip()},p.prototype._parseHex=function(t,h,l){this.length=Math.ceil((t.length-h)/6),this.words=new Array(this.length);for(var a=0;a<this.length;a++)this.words[a]=0;var r,v=0,A=0;if(l==="be")for(a=t.length-1;a>=h;a-=2)r=T(t,h,a)<<v,this.words[A]|=67108863&r,v>=18?(v-=18,A+=1,this.words[A]|=r>>>26):v+=8;else for(a=(t.length-h)%2==0?h+1:h;a<t.length;a+=2)r=T(t,h,a)<<v,this.words[A]|=67108863&r,v>=18?(v-=18,A+=1,this.words[A]|=r>>>26):v+=8;this.strip()},p.prototype._parseBase=function(t,h,l){this.words=[0],this.length=1;for(var a=0,r=1;r<=67108863;r*=h)a++;a--,r=r/h|0;for(var v=t.length-l,A=v%a,W=Math.min(v,v-A)+l,J=0,K=l;K<W;K+=a)J=S(t,K,K+a,h),this.imuln(r),this.words[0]+J<67108864?this.words[0]+=J:this._iaddn(J);if(A!==0){var G=1;for(J=S(t,K,t.length,h),K=0;K<A;K++)G*=h;this.imuln(G),this.words[0]+J<67108864?this.words[0]+=J:this._iaddn(J)}this.strip()},p.prototype.copy=function(t){t.words=new Array(this.length);for(var h=0;h<this.length;h++)t.words[h]=this.words[h];t.length=this.length,t.negative=this.negative,t.red=this.red},p.prototype.clone=function(){var t=new p(null);return this.copy(t),t},p.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},p.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},p.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},p.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var B=["","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"],C=[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],_=[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 F(t,h,l){l.negative=h.negative^t.negative;var a=t.length+h.length|0;l.length=a,a=a-1|0;var r=0|t.words[0],v=0|h.words[0],A=r*v,W=67108863&A,J=A/67108864|0;l.words[0]=W;for(var K=1;K<a;K++){for(var G=J>>>26,Y=67108863&J,at=Math.min(K,h.length-1),ot=Math.max(0,K-t.length+1);ot<=at;ot++){var ht=K-ot|0;G+=(A=(r=0|t.words[ht])*(v=0|h.words[ot])+Y)/67108864|0,Y=67108863&A}l.words[K]=0|Y,J=0|G}return J!==0?l.words[K]=0|J:l.length--,l.strip()}p.prototype.toString=function(t,h){var l;if(h=0|h||1,(t=t||10)===16||t==="hex"){l="";for(var a=0,r=0,v=0;v<this.length;v++){var A=this.words[v],W=(16777215&(A<<a|r)).toString(16);r=A>>>24-a&16777215,(a+=2)>=26&&(a-=26,v--),l=r!==0||v!==this.length-1?B[6-W.length]+W+l:W+l}for(r!==0&&(l=r.toString(16)+l);l.length%h!=0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}if(t===(0|t)&&t>=2&&t<=36){var J=C[t],K=_[t];l="";var G=this.clone();for(G.negative=0;!G.isZero();){var Y=G.modn(K).toString(t);l=(G=G.idivn(K)).isZero()?Y+l:B[J-Y.length]+Y+l}for(this.isZero()&&(l="0"+l);l.length%h!=0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}I(!1,"Base should be between 2 and 36")},p.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&&I(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-t:t},p.prototype.toJSON=function(){return this.toString(16)},p.prototype.toBuffer=function(t,h){return I(N!==void 0),this.toArrayLike(N,t,h)},p.prototype.toArray=function(t,h){return this.toArrayLike(Array,t,h)},p.prototype.toArrayLike=function(t,h,l){var a=this.byteLength(),r=l||Math.max(1,a);I(a<=r,"byte array longer than desired length"),I(r>0,"Requested array length <= 0"),this.strip();var v,A,W=h==="le",J=new t(r),K=this.clone();if(W){for(A=0;!K.isZero();A++)v=K.andln(255),K.iushrn(8),J[A]=v;for(;A<r;A++)J[A]=0}else{for(A=0;A<r-a;A++)J[A]=0;for(A=0;!K.isZero();A++)v=K.andln(255),K.iushrn(8),J[r-A-1]=v}return J},Math.clz32?p.prototype._countBits=function(t){return 32-Math.clz32(t)}:p.prototype._countBits=function(t){var h=t,l=0;return h>=4096&&(l+=13,h>>>=13),h>=64&&(l+=7,h>>>=7),h>=8&&(l+=4,h>>>=4),h>=2&&(l+=2,h>>>=2),l+h},p.prototype._zeroBits=function(t){if(t===0)return 26;var h=t,l=0;return 8191&h||(l+=13,h>>>=13),127&h||(l+=7,h>>>=7),15&h||(l+=4,h>>>=4),3&h||(l+=2,h>>>=2),1&h||l++,l},p.prototype.bitLength=function(){var t=this.words[this.length-1],h=this._countBits(t);return 26*(this.length-1)+h},p.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,h=0;h<this.length;h++){var l=this._zeroBits(this.words[h]);if(t+=l,l!==26)break}return t},p.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},p.prototype.toTwos=function(t){return this.negative!==0?this.abs().inotn(t).iaddn(1):this.clone()},p.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},p.prototype.isNeg=function(){return this.negative!==0},p.prototype.neg=function(){return this.clone().ineg()},p.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},p.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var h=0;h<t.length;h++)this.words[h]=this.words[h]|t.words[h];return this.strip()},p.prototype.ior=function(t){return I(!(this.negative|t.negative)),this.iuor(t)},p.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},p.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},p.prototype.iuand=function(t){var h;h=this.length>t.length?t:this;for(var l=0;l<h.length;l++)this.words[l]=this.words[l]&t.words[l];return this.length=h.length,this.strip()},p.prototype.iand=function(t){return I(!(this.negative|t.negative)),this.iuand(t)},p.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},p.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},p.prototype.iuxor=function(t){var h,l;this.length>t.length?(h=this,l=t):(h=t,l=this);for(var a=0;a<l.length;a++)this.words[a]=h.words[a]^l.words[a];if(this!==h)for(;a<h.length;a++)this.words[a]=h.words[a];return this.length=h.length,this.strip()},p.prototype.ixor=function(t){return I(!(this.negative|t.negative)),this.iuxor(t)},p.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},p.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},p.prototype.inotn=function(t){I(typeof t=="number"&&t>=0);var h=0|Math.ceil(t/26),l=t%26;this._expand(h),l>0&&h--;for(var a=0;a<h;a++)this.words[a]=67108863&~this.words[a];return l>0&&(this.words[a]=~this.words[a]&67108863>>26-l),this.strip()},p.prototype.notn=function(t){return this.clone().inotn(t)},p.prototype.setn=function(t,h){I(typeof t=="number"&&t>=0);var l=t/26|0,a=t%26;return this._expand(l+1),this.words[l]=h?this.words[l]|1<<a:this.words[l]&~(1<<a),this.strip()},p.prototype.iadd=function(t){var h,l,a;if(this.negative!==0&&t.negative===0)return this.negative=0,h=this.isub(t),this.negative^=1,this._normSign();if(this.negative===0&&t.negative!==0)return t.negative=0,h=this.isub(t),t.negative=1,h._normSign();this.length>t.length?(l=this,a=t):(l=t,a=this);for(var r=0,v=0;v<a.length;v++)h=(0|l.words[v])+(0|a.words[v])+r,this.words[v]=67108863&h,r=h>>>26;for(;r!==0&&v<l.length;v++)h=(0|l.words[v])+r,this.words[v]=67108863&h,r=h>>>26;if(this.length=l.length,r!==0)this.words[this.length]=r,this.length++;else if(l!==this)for(;v<l.length;v++)this.words[v]=l.words[v];return this},p.prototype.add=function(t){var h;return t.negative!==0&&this.negative===0?(t.negative=0,h=this.sub(t),t.negative^=1,h):t.negative===0&&this.negative!==0?(this.negative=0,h=t.sub(this),this.negative=1,h):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},p.prototype.isub=function(t){if(t.negative!==0){t.negative=0;var h=this.iadd(t);return t.negative=1,h._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var l,a,r=this.cmp(t);if(r===0)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(l=this,a=t):(l=t,a=this);for(var v=0,A=0;A<a.length;A++)v=(h=(0|l.words[A])-(0|a.words[A])+v)>>26,this.words[A]=67108863&h;for(;v!==0&&A<l.length;A++)v=(h=(0|l.words[A])+v)>>26,this.words[A]=67108863&h;if(v===0&&A<l.length&&l!==this)for(;A<l.length;A++)this.words[A]=l.words[A];return this.length=Math.max(this.length,A),l!==this&&(this.negative=1),this.strip()},p.prototype.sub=function(t){return this.clone().isub(t)};var U=function(t,h,l){var a,r,v,A=t.words,W=h.words,J=l.words,K=0,G=0|A[0],Y=8191&G,at=G>>>13,ot=0|A[1],ht=8191&ot,tt=ot>>>13,it=0|A[2],Z=8191&it,rt=it>>>13,wt=0|A[3],gt=8191&wt,St=wt>>>13,Lt=0|A[4],At=8191&Lt,jt=Lt>>>13,Qt=0|A[5],Dt=8191&Qt,zt=Qt>>>13,ft=0|A[6],pt=8191&ft,mt=ft>>>13,Mt=0|A[7],xt=8191&Mt,kt=Mt>>>13,$t=0|A[8],Pt=8191&$t,yt=$t>>>13,dt=0|A[9],lt=8191&dt,_t=dt>>>13,qt=0|W[0],It=8191&qt,Nt=qt>>>13,be=0|W[1],Vt=8191&be,Jt=be>>>13,Ee=0|W[2],Ht=8191&Ee,ae=Ee>>>13,Ne=0|W[3],Gt=8191&Ne,se=Ne>>>13,qe=0|W[4],Zt=8191&qe,he=qe>>>13,Qe=0|W[5],Yt=8191&Qe,ce=Qe>>>13,Ge=0|W[6],Ut=8191&Ge,te=Ge>>>13,He=0|W[7],ne=8191&He,me=He>>>13,tr=0|W[8],ie=8191&tr,de=tr>>>13,rr=0|W[9],oe=8191&rr,ge=rr>>>13;l.negative=t.negative^h.negative,l.length=19;var We=(K+(a=Math.imul(Y,It))|0)+((8191&(r=(r=Math.imul(Y,Nt))+Math.imul(at,It)|0))<<13)|0;K=((v=Math.imul(at,Nt))+(r>>>13)|0)+(We>>>26)|0,We&=67108863,a=Math.imul(ht,It),r=(r=Math.imul(ht,Nt))+Math.imul(tt,It)|0,v=Math.imul(tt,Nt);var $e=(K+(a=a+Math.imul(Y,Vt)|0)|0)+((8191&(r=(r=r+Math.imul(Y,Jt)|0)+Math.imul(at,Vt)|0))<<13)|0;K=((v=v+Math.imul(at,Jt)|0)+(r>>>13)|0)+($e>>>26)|0,$e&=67108863,a=Math.imul(Z,It),r=(r=Math.imul(Z,Nt))+Math.imul(rt,It)|0,v=Math.imul(rt,Nt),a=a+Math.imul(ht,Vt)|0,r=(r=r+Math.imul(ht,Jt)|0)+Math.imul(tt,Vt)|0,v=v+Math.imul(tt,Jt)|0;var cr=(K+(a=a+Math.imul(Y,Ht)|0)|0)+((8191&(r=(r=r+Math.imul(Y,ae)|0)+Math.imul(at,Ht)|0))<<13)|0;K=((v=v+Math.imul(at,ae)|0)+(r>>>13)|0)+(cr>>>26)|0,cr&=67108863,a=Math.imul(gt,It),r=(r=Math.imul(gt,Nt))+Math.imul(St,It)|0,v=Math.imul(St,Nt),a=a+Math.imul(Z,Vt)|0,r=(r=r+Math.imul(Z,Jt)|0)+Math.imul(rt,Vt)|0,v=v+Math.imul(rt,Jt)|0,a=a+Math.imul(ht,Ht)|0,r=(r=r+Math.imul(ht,ae)|0)+Math.imul(tt,Ht)|0,v=v+Math.imul(tt,ae)|0;var mr=(K+(a=a+Math.imul(Y,Gt)|0)|0)+((8191&(r=(r=r+Math.imul(Y,se)|0)+Math.imul(at,Gt)|0))<<13)|0;K=((v=v+Math.imul(at,se)|0)+(r>>>13)|0)+(mr>>>26)|0,mr&=67108863,a=Math.imul(At,It),r=(r=Math.imul(At,Nt))+Math.imul(jt,It)|0,v=Math.imul(jt,Nt),a=a+Math.imul(gt,Vt)|0,r=(r=r+Math.imul(gt,Jt)|0)+Math.imul(St,Vt)|0,v=v+Math.imul(St,Jt)|0,a=a+Math.imul(Z,Ht)|0,r=(r=r+Math.imul(Z,ae)|0)+Math.imul(rt,Ht)|0,v=v+Math.imul(rt,ae)|0,a=a+Math.imul(ht,Gt)|0,r=(r=r+Math.imul(ht,se)|0)+Math.imul(tt,Gt)|0,v=v+Math.imul(tt,se)|0;var hr=(K+(a=a+Math.imul(Y,Zt)|0)|0)+((8191&(r=(r=r+Math.imul(Y,he)|0)+Math.imul(at,Zt)|0))<<13)|0;K=((v=v+Math.imul(at,he)|0)+(r>>>13)|0)+(hr>>>26)|0,hr&=67108863,a=Math.imul(Dt,It),r=(r=Math.imul(Dt,Nt))+Math.imul(zt,It)|0,v=Math.imul(zt,Nt),a=a+Math.imul(At,Vt)|0,r=(r=r+Math.imul(At,Jt)|0)+Math.imul(jt,Vt)|0,v=v+Math.imul(jt,Jt)|0,a=a+Math.imul(gt,Ht)|0,r=(r=r+Math.imul(gt,ae)|0)+Math.imul(St,Ht)|0,v=v+Math.imul(St,ae)|0,a=a+Math.imul(Z,Gt)|0,r=(r=r+Math.imul(Z,se)|0)+Math.imul(rt,Gt)|0,v=v+Math.imul(rt,se)|0,a=a+Math.imul(ht,Zt)|0,r=(r=r+Math.imul(ht,he)|0)+Math.imul(tt,Zt)|0,v=v+Math.imul(tt,he)|0;var gr=(K+(a=a+Math.imul(Y,Yt)|0)|0)+((8191&(r=(r=r+Math.imul(Y,ce)|0)+Math.imul(at,Yt)|0))<<13)|0;K=((v=v+Math.imul(at,ce)|0)+(r>>>13)|0)+(gr>>>26)|0,gr&=67108863,a=Math.imul(pt,It),r=(r=Math.imul(pt,Nt))+Math.imul(mt,It)|0,v=Math.imul(mt,Nt),a=a+Math.imul(Dt,Vt)|0,r=(r=r+Math.imul(Dt,Jt)|0)+Math.imul(zt,Vt)|0,v=v+Math.imul(zt,Jt)|0,a=a+Math.imul(At,Ht)|0,r=(r=r+Math.imul(At,ae)|0)+Math.imul(jt,Ht)|0,v=v+Math.imul(jt,ae)|0,a=a+Math.imul(gt,Gt)|0,r=(r=r+Math.imul(gt,se)|0)+Math.imul(St,Gt)|0,v=v+Math.imul(St,se)|0,a=a+Math.imul(Z,Zt)|0,r=(r=r+Math.imul(Z,he)|0)+Math.imul(rt,Zt)|0,v=v+Math.imul(rt,he)|0,a=a+Math.imul(ht,Yt)|0,r=(r=r+Math.imul(ht,ce)|0)+Math.imul(tt,Yt)|0,v=v+Math.imul(tt,ce)|0;var vr=(K+(a=a+Math.imul(Y,Ut)|0)|0)+((8191&(r=(r=r+Math.imul(Y,te)|0)+Math.imul(at,Ut)|0))<<13)|0;K=((v=v+Math.imul(at,te)|0)+(r>>>13)|0)+(vr>>>26)|0,vr&=67108863,a=Math.imul(xt,It),r=(r=Math.imul(xt,Nt))+Math.imul(kt,It)|0,v=Math.imul(kt,Nt),a=a+Math.imul(pt,Vt)|0,r=(r=r+Math.imul(pt,Jt)|0)+Math.imul(mt,Vt)|0,v=v+Math.imul(mt,Jt)|0,a=a+Math.imul(Dt,Ht)|0,r=(r=r+Math.imul(Dt,ae)|0)+Math.imul(zt,Ht)|0,v=v+Math.imul(zt,ae)|0,a=a+Math.imul(At,Gt)|0,r=(r=r+Math.imul(At,se)|0)+Math.imul(jt,Gt)|0,v=v+Math.imul(jt,se)|0,a=a+Math.imul(gt,Zt)|0,r=(r=r+Math.imul(gt,he)|0)+Math.imul(St,Zt)|0,v=v+Math.imul(St,he)|0,a=a+Math.imul(Z,Yt)|0,r=(r=r+Math.imul(Z,ce)|0)+Math.imul(rt,Yt)|0,v=v+Math.imul(rt,ce)|0,a=a+Math.imul(ht,Ut)|0,r=(r=r+Math.imul(ht,te)|0)+Math.imul(tt,Ut)|0,v=v+Math.imul(tt,te)|0;var yr=(K+(a=a+Math.imul(Y,ne)|0)|0)+((8191&(r=(r=r+Math.imul(Y,me)|0)+Math.imul(at,ne)|0))<<13)|0;K=((v=v+Math.imul(at,me)|0)+(r>>>13)|0)+(yr>>>26)|0,yr&=67108863,a=Math.imul(Pt,It),r=(r=Math.imul(Pt,Nt))+Math.imul(yt,It)|0,v=Math.imul(yt,Nt),a=a+Math.imul(xt,Vt)|0,r=(r=r+Math.imul(xt,Jt)|0)+Math.imul(kt,Vt)|0,v=v+Math.imul(kt,Jt)|0,a=a+Math.imul(pt,Ht)|0,r=(r=r+Math.imul(pt,ae)|0)+Math.imul(mt,Ht)|0,v=v+Math.imul(mt,ae)|0,a=a+Math.imul(Dt,Gt)|0,r=(r=r+Math.imul(Dt,se)|0)+Math.imul(zt,Gt)|0,v=v+Math.imul(zt,se)|0,a=a+Math.imul(At,Zt)|0,r=(r=r+Math.imul(At,he)|0)+Math.imul(jt,Zt)|0,v=v+Math.imul(jt,he)|0,a=a+Math.imul(gt,Yt)|0,r=(r=r+Math.imul(gt,ce)|0)+Math.imul(St,Yt)|0,v=v+Math.imul(St,ce)|0,a=a+Math.imul(Z,Ut)|0,r=(r=r+Math.imul(Z,te)|0)+Math.imul(rt,Ut)|0,v=v+Math.imul(rt,te)|0,a=a+Math.imul(ht,ne)|0,r=(r=r+Math.imul(ht,me)|0)+Math.imul(tt,ne)|0,v=v+Math.imul(tt,me)|0;var br=(K+(a=a+Math.imul(Y,ie)|0)|0)+((8191&(r=(r=r+Math.imul(Y,de)|0)+Math.imul(at,ie)|0))<<13)|0;K=((v=v+Math.imul(at,de)|0)+(r>>>13)|0)+(br>>>26)|0,br&=67108863,a=Math.imul(lt,It),r=(r=Math.imul(lt,Nt))+Math.imul(_t,It)|0,v=Math.imul(_t,Nt),a=a+Math.imul(Pt,Vt)|0,r=(r=r+Math.imul(Pt,Jt)|0)+Math.imul(yt,Vt)|0,v=v+Math.imul(yt,Jt)|0,a=a+Math.imul(xt,Ht)|0,r=(r=r+Math.imul(xt,ae)|0)+Math.imul(kt,Ht)|0,v=v+Math.imul(kt,ae)|0,a=a+Math.imul(pt,Gt)|0,r=(r=r+Math.imul(pt,se)|0)+Math.imul(mt,Gt)|0,v=v+Math.imul(mt,se)|0,a=a+Math.imul(Dt,Zt)|0,r=(r=r+Math.imul(Dt,he)|0)+Math.imul(zt,Zt)|0,v=v+Math.imul(zt,he)|0,a=a+Math.imul(At,Yt)|0,r=(r=r+Math.imul(At,ce)|0)+Math.imul(jt,Yt)|0,v=v+Math.imul(jt,ce)|0,a=a+Math.imul(gt,Ut)|0,r=(r=r+Math.imul(gt,te)|0)+Math.imul(St,Ut)|0,v=v+Math.imul(St,te)|0,a=a+Math.imul(Z,ne)|0,r=(r=r+Math.imul(Z,me)|0)+Math.imul(rt,ne)|0,v=v+Math.imul(rt,me)|0,a=a+Math.imul(ht,ie)|0,r=(r=r+Math.imul(ht,de)|0)+Math.imul(tt,ie)|0,v=v+Math.imul(tt,de)|0;var lr=(K+(a=a+Math.imul(Y,oe)|0)|0)+((8191&(r=(r=r+Math.imul(Y,ge)|0)+Math.imul(at,oe)|0))<<13)|0;K=((v=v+Math.imul(at,ge)|0)+(r>>>13)|0)+(lr>>>26)|0,lr&=67108863,a=Math.imul(lt,Vt),r=(r=Math.imul(lt,Jt))+Math.imul(_t,Vt)|0,v=Math.imul(_t,Jt),a=a+Math.imul(Pt,Ht)|0,r=(r=r+Math.imul(Pt,ae)|0)+Math.imul(yt,Ht)|0,v=v+Math.imul(yt,ae)|0,a=a+Math.imul(xt,Gt)|0,r=(r=r+Math.imul(xt,se)|0)+Math.imul(kt,Gt)|0,v=v+Math.imul(kt,se)|0,a=a+Math.imul(pt,Zt)|0,r=(r=r+Math.imul(pt,he)|0)+Math.imul(mt,Zt)|0,v=v+Math.imul(mt,he)|0,a=a+Math.imul(Dt,Yt)|0,r=(r=r+Math.imul(Dt,ce)|0)+Math.imul(zt,Yt)|0,v=v+Math.imul(zt,ce)|0,a=a+Math.imul(At,Ut)|0,r=(r=r+Math.imul(At,te)|0)+Math.imul(jt,Ut)|0,v=v+Math.imul(jt,te)|0,a=a+Math.imul(gt,ne)|0,r=(r=r+Math.imul(gt,me)|0)+Math.imul(St,ne)|0,v=v+Math.imul(St,me)|0,a=a+Math.imul(Z,ie)|0,r=(r=r+Math.imul(Z,de)|0)+Math.imul(rt,ie)|0,v=v+Math.imul(rt,de)|0;var wr=(K+(a=a+Math.imul(ht,oe)|0)|0)+((8191&(r=(r=r+Math.imul(ht,ge)|0)+Math.imul(tt,oe)|0))<<13)|0;K=((v=v+Math.imul(tt,ge)|0)+(r>>>13)|0)+(wr>>>26)|0,wr&=67108863,a=Math.imul(lt,Ht),r=(r=Math.imul(lt,ae))+Math.imul(_t,Ht)|0,v=Math.imul(_t,ae),a=a+Math.imul(Pt,Gt)|0,r=(r=r+Math.imul(Pt,se)|0)+Math.imul(yt,Gt)|0,v=v+Math.imul(yt,se)|0,a=a+Math.imul(xt,Zt)|0,r=(r=r+Math.imul(xt,he)|0)+Math.imul(kt,Zt)|0,v=v+Math.imul(kt,he)|0,a=a+Math.imul(pt,Yt)|0,r=(r=r+Math.imul(pt,ce)|0)+Math.imul(mt,Yt)|0,v=v+Math.imul(mt,ce)|0,a=a+Math.imul(Dt,Ut)|0,r=(r=r+Math.imul(Dt,te)|0)+Math.imul(zt,Ut)|0,v=v+Math.imul(zt,te)|0,a=a+Math.imul(At,ne)|0,r=(r=r+Math.imul(At,me)|0)+Math.imul(jt,ne)|0,v=v+Math.imul(jt,me)|0,a=a+Math.imul(gt,ie)|0,r=(r=r+Math.imul(gt,de)|0)+Math.imul(St,ie)|0,v=v+Math.imul(St,de)|0;var fr=(K+(a=a+Math.imul(Z,oe)|0)|0)+((8191&(r=(r=r+Math.imul(Z,ge)|0)+Math.imul(rt,oe)|0))<<13)|0;K=((v=v+Math.imul(rt,ge)|0)+(r>>>13)|0)+(fr>>>26)|0,fr&=67108863,a=Math.imul(lt,Gt),r=(r=Math.imul(lt,se))+Math.imul(_t,Gt)|0,v=Math.imul(_t,se),a=a+Math.imul(Pt,Zt)|0,r=(r=r+Math.imul(Pt,he)|0)+Math.imul(yt,Zt)|0,v=v+Math.imul(yt,he)|0,a=a+Math.imul(xt,Yt)|0,r=(r=r+Math.imul(xt,ce)|0)+Math.imul(kt,Yt)|0,v=v+Math.imul(kt,ce)|0,a=a+Math.imul(pt,Ut)|0,r=(r=r+Math.imul(pt,te)|0)+Math.imul(mt,Ut)|0,v=v+Math.imul(mt,te)|0,a=a+Math.imul(Dt,ne)|0,r=(r=r+Math.imul(Dt,me)|0)+Math.imul(zt,ne)|0,v=v+Math.imul(zt,me)|0,a=a+Math.imul(At,ie)|0,r=(r=r+Math.imul(At,de)|0)+Math.imul(jt,ie)|0,v=v+Math.imul(jt,de)|0;var _r=(K+(a=a+Math.imul(gt,oe)|0)|0)+((8191&(r=(r=r+Math.imul(gt,ge)|0)+Math.imul(St,oe)|0))<<13)|0;K=((v=v+Math.imul(St,ge)|0)+(r>>>13)|0)+(_r>>>26)|0,_r&=67108863,a=Math.imul(lt,Zt),r=(r=Math.imul(lt,he))+Math.imul(_t,Zt)|0,v=Math.imul(_t,he),a=a+Math.imul(Pt,Yt)|0,r=(r=r+Math.imul(Pt,ce)|0)+Math.imul(yt,Yt)|0,v=v+Math.imul(yt,ce)|0,a=a+Math.imul(xt,Ut)|0,r=(r=r+Math.imul(xt,te)|0)+Math.imul(kt,Ut)|0,v=v+Math.imul(kt,te)|0,a=a+Math.imul(pt,ne)|0,r=(r=r+Math.imul(pt,me)|0)+Math.imul(mt,ne)|0,v=v+Math.imul(mt,me)|0,a=a+Math.imul(Dt,ie)|0,r=(r=r+Math.imul(Dt,de)|0)+Math.imul(zt,ie)|0,v=v+Math.imul(zt,de)|0;var Mr=(K+(a=a+Math.imul(At,oe)|0)|0)+((8191&(r=(r=r+Math.imul(At,ge)|0)+Math.imul(jt,oe)|0))<<13)|0;K=((v=v+Math.imul(jt,ge)|0)+(r>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,a=Math.imul(lt,Yt),r=(r=Math.imul(lt,ce))+Math.imul(_t,Yt)|0,v=Math.imul(_t,ce),a=a+Math.imul(Pt,Ut)|0,r=(r=r+Math.imul(Pt,te)|0)+Math.imul(yt,Ut)|0,v=v+Math.imul(yt,te)|0,a=a+Math.imul(xt,ne)|0,r=(r=r+Math.imul(xt,me)|0)+Math.imul(kt,ne)|0,v=v+Math.imul(kt,me)|0,a=a+Math.imul(pt,ie)|0,r=(r=r+Math.imul(pt,de)|0)+Math.imul(mt,ie)|0,v=v+Math.imul(mt,de)|0;var pr=(K+(a=a+Math.imul(Dt,oe)|0)|0)+((8191&(r=(r=r+Math.imul(Dt,ge)|0)+Math.imul(zt,oe)|0))<<13)|0;K=((v=v+Math.imul(zt,ge)|0)+(r>>>13)|0)+(pr>>>26)|0,pr&=67108863,a=Math.imul(lt,Ut),r=(r=Math.imul(lt,te))+Math.imul(_t,Ut)|0,v=Math.imul(_t,te),a=a+Math.imul(Pt,ne)|0,r=(r=r+Math.imul(Pt,me)|0)+Math.imul(yt,ne)|0,v=v+Math.imul(yt,me)|0,a=a+Math.imul(xt,ie)|0,r=(r=r+Math.imul(xt,de)|0)+Math.imul(kt,ie)|0,v=v+Math.imul(kt,de)|0;var Le=(K+(a=a+Math.imul(pt,oe)|0)|0)+((8191&(r=(r=r+Math.imul(pt,ge)|0)+Math.imul(mt,oe)|0))<<13)|0;K=((v=v+Math.imul(mt,ge)|0)+(r>>>13)|0)+(Le>>>26)|0,Le&=67108863,a=Math.imul(lt,ne),r=(r=Math.imul(lt,me))+Math.imul(_t,ne)|0,v=Math.imul(_t,me),a=a+Math.imul(Pt,ie)|0,r=(r=r+Math.imul(Pt,de)|0)+Math.imul(yt,ie)|0,v=v+Math.imul(yt,de)|0;var De=(K+(a=a+Math.imul(xt,oe)|0)|0)+((8191&(r=(r=r+Math.imul(xt,ge)|0)+Math.imul(kt,oe)|0))<<13)|0;K=((v=v+Math.imul(kt,ge)|0)+(r>>>13)|0)+(De>>>26)|0,De&=67108863,a=Math.imul(lt,ie),r=(r=Math.imul(lt,de))+Math.imul(_t,ie)|0,v=Math.imul(_t,de);var xr=(K+(a=a+Math.imul(Pt,oe)|0)|0)+((8191&(r=(r=r+Math.imul(Pt,ge)|0)+Math.imul(yt,oe)|0))<<13)|0;K=((v=v+Math.imul(yt,ge)|0)+(r>>>13)|0)+(xr>>>26)|0,xr&=67108863;var Er=(K+(a=Math.imul(lt,oe))|0)+((8191&(r=(r=Math.imul(lt,ge))+Math.imul(_t,oe)|0))<<13)|0;return K=((v=Math.imul(_t,ge))+(r>>>13)|0)+(Er>>>26)|0,Er&=67108863,J[0]=We,J[1]=$e,J[2]=cr,J[3]=mr,J[4]=hr,J[5]=gr,J[6]=vr,J[7]=yr,J[8]=br,J[9]=lr,J[10]=wr,J[11]=fr,J[12]=_r,J[13]=Mr,J[14]=pr,J[15]=Le,J[16]=De,J[17]=xr,J[18]=Er,K!==0&&(J[19]=K,l.length++),l};function z(t,h,l){return new H().mulp(t,h,l)}function H(t,h){this.x=t,this.y=h}Math.imul||(U=F),p.prototype.mulTo=function(t,h){var l,a=this.length+t.length;return l=this.length===10&&t.length===10?U(this,t,h):a<63?F(this,t,h):a<1024?function(r,v,A){A.negative=v.negative^r.negative,A.length=r.length+v.length;for(var W=0,J=0,K=0;K<A.length-1;K++){var G=J;J=0;for(var Y=67108863&W,at=Math.min(K,v.length-1),ot=Math.max(0,K-r.length+1);ot<=at;ot++){var ht=K-ot,tt=(0|r.words[ht])*(0|v.words[ot]),it=67108863&tt;Y=67108863&(it=it+Y|0),J+=(G=(G=G+(tt/67108864|0)|0)+(it>>>26)|0)>>>26,G&=67108863}A.words[K]=Y,W=G,G=J}return W!==0?A.words[K]=W:A.length--,A.strip()}(this,t,h):z(this,t,h),l},H.prototype.makeRBT=function(t){for(var h=new Array(t),l=p.prototype._countBits(t)-1,a=0;a<t;a++)h[a]=this.revBin(a,l,t);return h},H.prototype.revBin=function(t,h,l){if(t===0||t===l-1)return t;for(var a=0,r=0;r<h;r++)a|=(1&t)<<h-r-1,t>>=1;return a},H.prototype.permute=function(t,h,l,a,r,v){for(var A=0;A<v;A++)a[A]=h[t[A]],r[A]=l[t[A]]},H.prototype.transform=function(t,h,l,a,r,v){this.permute(v,t,h,l,a,r);for(var A=1;A<r;A<<=1)for(var W=A<<1,J=Math.cos(2*Math.PI/W),K=Math.sin(2*Math.PI/W),G=0;G<r;G+=W)for(var Y=J,at=K,ot=0;ot<A;ot++){var ht=l[G+ot],tt=a[G+ot],it=l[G+ot+A],Z=a[G+ot+A],rt=Y*it-at*Z;Z=Y*Z+at*it,it=rt,l[G+ot]=ht+it,a[G+ot]=tt+Z,l[G+ot+A]=ht-it,a[G+ot+A]=tt-Z,ot!==W&&(rt=J*Y-K*at,at=J*at+K*Y,Y=rt)}},H.prototype.guessLen13b=function(t,h){var l=1|Math.max(h,t),a=1&l,r=0;for(l=l/2|0;l;l>>>=1)r++;return 1<<r+1+a},H.prototype.conjugate=function(t,h,l){if(!(l<=1))for(var a=0;a<l/2;a++){var r=t[a];t[a]=t[l-a-1],t[l-a-1]=r,r=h[a],h[a]=-h[l-a-1],h[l-a-1]=-r}},H.prototype.normalize13b=function(t,h){for(var l=0,a=0;a<h/2;a++){var r=8192*Math.round(t[2*a+1]/h)+Math.round(t[2*a]/h)+l;t[a]=67108863&r,l=r<67108864?0:r/67108864|0}return t},H.prototype.convert13b=function(t,h,l,a){for(var r=0,v=0;v<h;v++)r+=0|t[v],l[2*v]=8191&r,r>>>=13,l[2*v+1]=8191&r,r>>>=13;for(v=2*h;v<a;++v)l[v]=0;I(r===0),I(!(-8192&r))},H.prototype.stub=function(t){for(var h=new Array(t),l=0;l<t;l++)h[l]=0;return h},H.prototype.mulp=function(t,h,l){var a=2*this.guessLen13b(t.length,h.length),r=this.makeRBT(a),v=this.stub(a),A=new Array(a),W=new Array(a),J=new Array(a),K=new Array(a),G=new Array(a),Y=new Array(a),at=l.words;at.length=a,this.convert13b(t.words,t.length,A,a),this.convert13b(h.words,h.length,K,a),this.transform(A,v,W,J,a,r),this.transform(K,v,G,Y,a,r);for(var ot=0;ot<a;ot++){var ht=W[ot]*G[ot]-J[ot]*Y[ot];J[ot]=W[ot]*Y[ot]+J[ot]*G[ot],W[ot]=ht}return this.conjugate(W,J,a),this.transform(W,J,at,v,a,r),this.conjugate(at,v,a),this.normalize13b(at,a),l.negative=t.negative^h.negative,l.length=t.length+h.length,l.strip()},p.prototype.mul=function(t){var h=new p(null);return h.words=new Array(this.length+t.length),this.mulTo(t,h)},p.prototype.mulf=function(t){var h=new p(null);return h.words=new Array(this.length+t.length),z(this,t,h)},p.prototype.imul=function(t){return this.clone().mulTo(t,this)},p.prototype.imuln=function(t){I(typeof t=="number"),I(t<67108864);for(var h=0,l=0;l<this.length;l++){var a=(0|this.words[l])*t,r=(67108863&a)+(67108863&h);h>>=26,h+=a/67108864|0,h+=r>>>26,this.words[l]=67108863&r}return h!==0&&(this.words[l]=h,this.length++),this},p.prototype.muln=function(t){return this.clone().imuln(t)},p.prototype.sqr=function(){return this.mul(this)},p.prototype.isqr=function(){return this.imul(this.clone())},p.prototype.pow=function(t){var h=function(v){for(var A=new Array(v.bitLength()),W=0;W<A.length;W++){var J=W/26|0,K=W%26;A[W]=(v.words[J]&1<<K)>>>K}return A}(t);if(h.length===0)return new p(1);for(var l=this,a=0;a<h.length&&h[a]===0;a++,l=l.sqr());if(++a<h.length)for(var r=l.sqr();a<h.length;a++,r=r.sqr())h[a]!==0&&(l=l.mul(r));return l},p.prototype.iushln=function(t){I(typeof t=="number"&&t>=0);var h,l=t%26,a=(t-l)/26,r=67108863>>>26-l<<26-l;if(l!==0){var v=0;for(h=0;h<this.length;h++){var A=this.words[h]&r,W=(0|this.words[h])-A<<l;this.words[h]=W|v,v=A>>>26-l}v&&(this.words[h]=v,this.length++)}if(a!==0){for(h=this.length-1;h>=0;h--)this.words[h+a]=this.words[h];for(h=0;h<a;h++)this.words[h]=0;this.length+=a}return this.strip()},p.prototype.ishln=function(t){return I(this.negative===0),this.iushln(t)},p.prototype.iushrn=function(t,h,l){var a;I(typeof t=="number"&&t>=0),a=h?(h-h%26)/26:0;var r=t%26,v=Math.min((t-r)/26,this.length),A=67108863^67108863>>>r<<r,W=l;if(a-=v,a=Math.max(0,a),W){for(var J=0;J<v;J++)W.words[J]=this.words[J];W.length=v}if(v!==0)if(this.length>v)for(this.length-=v,J=0;J<this.length;J++)this.words[J]=this.words[J+v];else this.words[0]=0,this.length=1;var K=0;for(J=this.length-1;J>=0&&(K!==0||J>=a);J--){var G=0|this.words[J];this.words[J]=K<<26-r|G>>>r,K=G&A}return W&&K!==0&&(W.words[W.length++]=K),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},p.prototype.ishrn=function(t,h,l){return I(this.negative===0),this.iushrn(t,h,l)},p.prototype.shln=function(t){return this.clone().ishln(t)},p.prototype.ushln=function(t){return this.clone().iushln(t)},p.prototype.shrn=function(t){return this.clone().ishrn(t)},p.prototype.ushrn=function(t){return this.clone().iushrn(t)},p.prototype.testn=function(t){I(typeof t=="number"&&t>=0);var h=t%26,l=(t-h)/26,a=1<<h;return!(this.length<=l||!(this.words[l]&a))},p.prototype.imaskn=function(t){I(typeof t=="number"&&t>=0);var h=t%26,l=(t-h)/26;if(I(this.negative===0,"imaskn works only with positive numbers"),this.length<=l)return this;if(h!==0&&l++,this.length=Math.min(l,this.length),h!==0){var a=67108863^67108863>>>h<<h;this.words[this.length-1]&=a}return this.strip()},p.prototype.maskn=function(t){return this.clone().imaskn(t)},p.prototype.iaddn=function(t){return I(typeof t=="number"),I(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)},p.prototype._iaddn=function(t){this.words[0]+=t;for(var h=0;h<this.length&&this.words[h]>=67108864;h++)this.words[h]-=67108864,h===this.length-1?this.words[h+1]=1:this.words[h+1]++;return this.length=Math.max(this.length,h+1),this},p.prototype.isubn=function(t){if(I(typeof t=="number"),I(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 h=0;h<this.length&&this.words[h]<0;h++)this.words[h]+=67108864,this.words[h+1]-=1;return this.strip()},p.prototype.addn=function(t){return this.clone().iaddn(t)},p.prototype.subn=function(t){return this.clone().isubn(t)},p.prototype.iabs=function(){return this.negative=0,this},p.prototype.abs=function(){return this.clone().iabs()},p.prototype._ishlnsubmul=function(t,h,l){var a,r,v=t.length+l;this._expand(v);var A=0;for(a=0;a<t.length;a++){r=(0|this.words[a+l])+A;var W=(0|t.words[a])*h;A=((r-=67108863&W)>>26)-(W/67108864|0),this.words[a+l]=67108863&r}for(;a<this.length-l;a++)A=(r=(0|this.words[a+l])+A)>>26,this.words[a+l]=67108863&r;if(A===0)return this.strip();for(I(A===-1),A=0,a=0;a<this.length;a++)A=(r=-(0|this.words[a])+A)>>26,this.words[a]=67108863&r;return this.negative=1,this.strip()},p.prototype._wordDiv=function(t,h){var l=(this.length,t.length),a=this.clone(),r=t,v=0|r.words[r.length-1];(l=26-this._countBits(v))!=0&&(r=r.ushln(l),a.iushln(l),v=0|r.words[r.length-1]);var A,W=a.length-r.length;if(h!=="mod"){(A=new p(null)).length=W+1,A.words=new Array(A.length);for(var J=0;J<A.length;J++)A.words[J]=0}var K=a.clone()._ishlnsubmul(r,1,W);K.negative===0&&(a=K,A&&(A.words[W]=1));for(var G=W-1;G>=0;G--){var Y=67108864*(0|a.words[r.length+G])+(0|a.words[r.length+G-1]);for(Y=Math.min(Y/v|0,67108863),a._ishlnsubmul(r,Y,G);a.negative!==0;)Y--,a.negative=0,a._ishlnsubmul(r,1,G),a.isZero()||(a.negative^=1);A&&(A.words[G]=Y)}return A&&A.strip(),a.strip(),h!=="div"&&l!==0&&a.iushrn(l),{div:A||null,mod:a}},p.prototype.divmod=function(t,h,l){return I(!t.isZero()),this.isZero()?{div:new p(0),mod:new p(0)}:this.negative!==0&&t.negative===0?(v=this.neg().divmod(t,h),h!=="mod"&&(a=v.div.neg()),h!=="div"&&(r=v.mod.neg(),l&&r.negative!==0&&r.iadd(t)),{div:a,mod:r}):this.negative===0&&t.negative!==0?(v=this.divmod(t.neg(),h),h!=="mod"&&(a=v.div.neg()),{div:a,mod:v.mod}):this.negative&t.negative?(v=this.neg().divmod(t.neg(),h),h!=="div"&&(r=v.mod.neg(),l&&r.negative!==0&&r.isub(t)),{div:v.div,mod:r}):t.length>this.length||this.cmp(t)<0?{div:new p(0),mod:this}:t.length===1?h==="div"?{div:this.divn(t.words[0]),mod:null}:h==="mod"?{div:null,mod:new p(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new p(this.modn(t.words[0]))}:this._wordDiv(t,h);var a,r,v},p.prototype.div=function(t){return this.divmod(t,"div",!1).div},p.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},p.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},p.prototype.divRound=function(t){var h=this.divmod(t);if(h.mod.isZero())return h.div;var l=h.div.negative!==0?h.mod.isub(t):h.mod,a=t.ushrn(1),r=t.andln(1),v=l.cmp(a);return v<0||r===1&&v===0?h.div:h.div.negative!==0?h.div.isubn(1):h.div.iaddn(1)},p.prototype.modn=function(t){I(t<=67108863);for(var h=67108864%t,l=0,a=this.length-1;a>=0;a--)l=(h*l+(0|this.words[a]))%t;return l},p.prototype.idivn=function(t){I(t<=67108863);for(var h=0,l=this.length-1;l>=0;l--){var a=(0|this.words[l])+67108864*h;this.words[l]=a/t|0,h=a%t}return this.strip()},p.prototype.divn=function(t){return this.clone().idivn(t)},p.prototype.egcd=function(t){I(t.negative===0),I(!t.isZero());var h=this,l=t.clone();h=h.negative!==0?h.umod(t):h.clone();for(var a=new p(1),r=new p(0),v=new p(0),A=new p(1),W=0;h.isEven()&&l.isEven();)h.iushrn(1),l.iushrn(1),++W;for(var J=l.clone(),K=h.clone();!h.isZero();){for(var G=0,Y=1;!(h.words[0]&Y)&&G<26;++G,Y<<=1);if(G>0)for(h.iushrn(G);G-- >0;)(a.isOdd()||r.isOdd())&&(a.iadd(J),r.isub(K)),a.iushrn(1),r.iushrn(1);for(var at=0,ot=1;!(l.words[0]&ot)&&at<26;++at,ot<<=1);if(at>0)for(l.iushrn(at);at-- >0;)(v.isOdd()||A.isOdd())&&(v.iadd(J),A.isub(K)),v.iushrn(1),A.iushrn(1);h.cmp(l)>=0?(h.isub(l),a.isub(v),r.isub(A)):(l.isub(h),v.isub(a),A.isub(r))}return{a:v,b:A,gcd:l.iushln(W)}},p.prototype._invmp=function(t){I(t.negative===0),I(!t.isZero());var h=this,l=t.clone();h=h.negative!==0?h.umod(t):h.clone();for(var a,r=new p(1),v=new p(0),A=l.clone();h.cmpn(1)>0&&l.cmpn(1)>0;){for(var W=0,J=1;!(h.words[0]&J)&&W<26;++W,J<<=1);if(W>0)for(h.iushrn(W);W-- >0;)r.isOdd()&&r.iadd(A),r.iushrn(1);for(var K=0,G=1;!(l.words[0]&G)&&K<26;++K,G<<=1);if(K>0)for(l.iushrn(K);K-- >0;)v.isOdd()&&v.iadd(A),v.iushrn(1);h.cmp(l)>=0?(h.isub(l),r.isub(v)):(l.isub(h),v.isub(r))}return(a=h.cmpn(1)===0?r:v).cmpn(0)<0&&a.iadd(t),a},p.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var h=this.clone(),l=t.clone();h.negative=0,l.negative=0;for(var a=0;h.isEven()&&l.isEven();a++)h.iushrn(1),l.iushrn(1);for(;;){for(;h.isEven();)h.iushrn(1);for(;l.isEven();)l.iushrn(1);var r=h.cmp(l);if(r<0){var v=h;h=l,l=v}else if(r===0||l.cmpn(1)===0)break;h.isub(l)}return l.iushln(a)},p.prototype.invm=function(t){return this.egcd(t).a.umod(t)},p.prototype.isEven=function(){return!(1&this.words[0])},p.prototype.isOdd=function(){return!(1&~this.words[0])},p.prototype.andln=function(t){return this.words[0]&t},p.prototype.bincn=function(t){I(typeof t=="number");var h=t%26,l=(t-h)/26,a=1<<h;if(this.length<=l)return this._expand(l+1),this.words[l]|=a,this;for(var r=a,v=l;r!==0&&v<this.length;v++){var A=0|this.words[v];r=(A+=r)>>>26,A&=67108863,this.words[v]=A}return r!==0&&(this.words[v]=r,this.length++),this},p.prototype.isZero=function(){return this.length===1&&this.words[0]===0},p.prototype.cmpn=function(t){var h,l=t<0;if(this.negative!==0&&!l)return-1;if(this.negative===0&&l)return 1;if(this.strip(),this.length>1)h=1;else{l&&(t=-t),I(t<=67108863,"Number is too big");var a=0|this.words[0];h=a===t?0:a<t?-1:1}return this.negative!==0?0|-h:h},p.prototype.cmp=function(t){if(this.negative!==0&&t.negative===0)return-1;if(this.negative===0&&t.negative!==0)return 1;var h=this.ucmp(t);return this.negative!==0?0|-h:h},p.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var h=0,l=this.length-1;l>=0;l--){var a=0|this.words[l],r=0|t.words[l];if(a!==r){a<r?h=-1:a>r&&(h=1);break}}return h},p.prototype.gtn=function(t){return this.cmpn(t)===1},p.prototype.gt=function(t){return this.cmp(t)===1},p.prototype.gten=function(t){return this.cmpn(t)>=0},p.prototype.gte=function(t){return this.cmp(t)>=0},p.prototype.ltn=function(t){return this.cmpn(t)===-1},p.prototype.lt=function(t){return this.cmp(t)===-1},p.prototype.lten=function(t){return this.cmpn(t)<=0},p.prototype.lte=function(t){return this.cmp(t)<=0},p.prototype.eqn=function(t){return this.cmpn(t)===0},p.prototype.eq=function(t){return this.cmp(t)===0},p.red=function(t){return new ct(t)},p.prototype.toRed=function(t){return I(!this.red,"Already a number in reduction context"),I(this.negative===0,"red works only with positives"),t.convertTo(this)._forceRed(t)},p.prototype.fromRed=function(){return I(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},p.prototype._forceRed=function(t){return this.red=t,this},p.prototype.forceRed=function(t){return I(!this.red,"Already a number in reduction context"),this._forceRed(t)},p.prototype.redAdd=function(t){return I(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},p.prototype.redIAdd=function(t){return I(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},p.prototype.redSub=function(t){return I(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},p.prototype.redISub=function(t){return I(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},p.prototype.redShl=function(t){return I(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},p.prototype.redMul=function(t){return I(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},p.prototype.redIMul=function(t){return I(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},p.prototype.redSqr=function(){return I(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},p.prototype.redISqr=function(){return I(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},p.prototype.redSqrt=function(){return I(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},p.prototype.redInvm=function(){return I(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},p.prototype.redNeg=function(){return I(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},p.prototype.redPow=function(t){return I(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var D={k256:null,p224:null,p192:null,p25519:null};function Q(t,h){this.name=t,this.p=new p(h,16),this.n=this.p.bitLength(),this.k=new p(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function X(){Q.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function et(){Q.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function nt(){Q.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ut(){Q.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function ct(t){if(typeof t=="string"){var h=p._prime(t);this.m=h.p,this.prime=h}else I(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function vt(t){ct.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new p(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)}Q.prototype._tmp=function(){var t=new p(null);return t.words=new Array(Math.ceil(this.n/13)),t},Q.prototype.ireduce=function(t){var h,l=t;do this.split(l,this.tmp),h=(l=(l=this.imulK(l)).iadd(this.tmp)).bitLength();while(h>this.n);var a=h<this.n?-1:l.ucmp(this.p);return a===0?(l.words[0]=0,l.length=1):a>0?l.isub(this.p):l.strip!==void 0?l.strip():l._strip(),l},Q.prototype.split=function(t,h){t.iushrn(this.n,0,h)},Q.prototype.imulK=function(t){return t.imul(this.k)},q(X,Q),X.prototype.split=function(t,h){for(var l=4194303,a=Math.min(t.length,9),r=0;r<a;r++)h.words[r]=t.words[r];if(h.length=a,t.length<=9)return t.words[0]=0,void(t.length=1);var v=t.words[9];for(h.words[h.length++]=v&l,r=10;r<t.length;r++){var A=0|t.words[r];t.words[r-10]=(A&l)<<4|v>>>22,v=A}v>>>=22,t.words[r-10]=v,v===0&&t.length>10?t.length-=10:t.length-=9},X.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var h=0,l=0;l<t.length;l++){var a=0|t.words[l];h+=977*a,t.words[l]=67108863&h,h=64*a+(h/67108864|0)}return t.words[t.length-1]===0&&(t.length--,t.words[t.length-1]===0&&t.length--),t},q(et,Q),q(nt,Q),q(ut,Q),ut.prototype.imulK=function(t){for(var h=0,l=0;l<t.length;l++){var a=19*(0|t.words[l])+h,r=67108863&a;a>>>=26,t.words[l]=r,h=a}return h!==0&&(t.words[t.length++]=h),t},p._prime=function(t){if(D[t])return D[t];var h;if(t==="k256")h=new X;else if(t==="p224")h=new et;else if(t==="p192")h=new nt;else{if(t!=="p25519")throw new Error("Unknown prime "+t);h=new ut}return D[t]=h,h},ct.prototype._verify1=function(t){I(t.negative===0,"red works only with positives"),I(t.red,"red works only with red numbers")},ct.prototype._verify2=function(t,h){I(!(t.negative|h.negative),"red works only with positives"),I(t.red&&t.red===h.red,"red works only with red numbers")},ct.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},ct.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},ct.prototype.add=function(t,h){this._verify2(t,h);var l=t.add(h);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},ct.prototype.iadd=function(t,h){this._verify2(t,h);var l=t.iadd(h);return l.cmp(this.m)>=0&&l.isub(this.m),l},ct.prototype.sub=function(t,h){this._verify2(t,h);var l=t.sub(h);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},ct.prototype.isub=function(t,h){this._verify2(t,h);var l=t.isub(h);return l.cmpn(0)<0&&l.iadd(this.m),l},ct.prototype.shl=function(t,h){return this._verify1(t),this.imod(t.ushln(h))},ct.prototype.imul=function(t,h){return this._verify2(t,h),this.imod(t.imul(h))},ct.prototype.mul=function(t,h){return this._verify2(t,h),this.imod(t.mul(h))},ct.prototype.isqr=function(t){return this.imul(t,t.clone())},ct.prototype.sqr=function(t){return this.mul(t,t)},ct.prototype.sqrt=function(t){if(t.isZero())return t.clone();var h=this.m.andln(3);if(I(h%2==1),h===3){var l=this.m.add(new p(1)).iushrn(2);return this.pow(t,l)}for(var a=this.m.subn(1),r=0;!a.isZero()&&a.andln(1)===0;)r++,a.iushrn(1);I(!a.isZero());var v=new p(1).toRed(this),A=v.redNeg(),W=this.m.subn(1).iushrn(1),J=this.m.bitLength();for(J=new p(2*J*J).toRed(this);this.pow(J,W).cmp(A)!==0;)J.redIAdd(A);for(var K=this.pow(J,a),G=this.pow(t,a.addn(1).iushrn(1)),Y=this.pow(t,a),at=r;Y.cmp(v)!==0;){for(var ot=Y,ht=0;ot.cmp(v)!==0;ht++)ot=ot.redSqr();I(ht<at);var tt=this.pow(K,new p(1).iushln(at-ht-1));G=G.redMul(tt),K=tt.redSqr(),Y=Y.redMul(K),at=ht}return G},ct.prototype.invm=function(t){var h=t._invmp(this.m);return h.negative!==0?(h.negative=0,this.imod(h).redNeg()):this.imod(h)},ct.prototype.pow=function(t,h){if(h.isZero())return new p(1).toRed(this);if(h.cmpn(1)===0)return t.clone();var l=new Array(16);l[0]=new p(1).toRed(this),l[1]=t;for(var a=2;a<l.length;a++)l[a]=this.mul(l[a-1],t);var r=l[0],v=0,A=0,W=h.bitLength()%26;for(W===0&&(W=26),a=h.length-1;a>=0;a--){for(var J=h.words[a],K=W-1;K>=0;K--){var G=J>>K&1;r!==l[0]&&(r=this.sqr(r)),G!==0||v!==0?(v<<=1,v|=G,(++A==4||a===0&&K===0)&&(r=this.mul(r,l[v]),A=0,v=0)):A=0}W=26}return r},ct.prototype.convertTo=function(t){var h=t.umod(this.m);return h===t?h.clone():h},ct.prototype.convertFrom=function(t){var h=t.clone();return h.red=null,h},p.mont=function(t){return new vt(t)},q(vt,ct),vt.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},vt.prototype.convertFrom=function(t){var h=this.imod(t.mul(this.rinv));return h.red=null,h},vt.prototype.imul=function(t,h){if(t.isZero()||h.isZero())return t.words[0]=0,t.length=1,t;var l=t.imul(h),a=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=l.isub(a).iushrn(this.shift),v=r;return r.cmp(this.m)>=0?v=r.isub(this.m):r.cmpn(0)<0&&(v=r.iadd(this.m)),v._forceRed(this)},vt.prototype.mul=function(t,h){if(t.isZero()||h.isZero())return new p(0)._forceRed(this);var l=t.mul(h),a=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=l.isub(a).iushrn(this.shift),v=r;return r.cmp(this.m)>=0?v=r.isub(this.m):r.cmpn(0)<0&&(v=r.iadd(this.m)),v._forceRed(this)},vt.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}})($=b.nmd($),this)},2527:function($){(function(){$.exports=function(){function w(b){this.arr=b||[]}return Object.defineProperty(w.prototype,"length",{get:function(){return this.arr.length}}),w.prototype.item=function(b){return this.arr[b]||null},w.prototype.contains=function(b){return this.arr.indexOf(b)!==-1},w}()}).call(this)},2535:function($,w,b){(function(){var j,O,I={}.hasOwnProperty;j=b(1737),O=b(7457),$.exports=function(q){function p(N,M){if(p.__super__.constructor.call(this,N),M==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=j.Text,this.value=this.stringify.text(M)}return function(N,M){for(var T in M)I.call(M,T)&&(N[T]=M[T]);function S(){this.constructor=N}S.prototype=M.prototype,N.prototype=new S,N.__super__=M.prototype}(p,q),Object.defineProperty(p.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(p.prototype,"wholeText",{get:function(){var N,M,T;for(T="",M=this.previousSibling;M;)T=M.data+T,M=M.previousSibling;for(T+=this.data,N=this.nextSibling;N;)T+=N.data,N=N.nextSibling;return T}}),p.prototype.clone=function(){return Object.create(this)},p.prototype.toString=function(N){return this.options.writer.text(this,this.options.writer.filterOptions(N))},p.prototype.splitText=function(N){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.replaceWholeText=function(N){throw new Error("This DOM method is not implemented."+this.debugInfo())},p}(O)}).call(this)},2541:($,w,b)=>{var j=b(8287).Buffer;Object.defineProperty(w,"__esModule",{value:!0}),w.SelectResults=w.RETENTION_VALIDITY_UNITS=w.RETENTION_MODES=w.PART_CONSTRAINTS=w.LEGAL_HOLD_STATUS=w.ENCRYPTION_TYPES=w.DEFAULT_REGION=w.CopySourceOptions=w.CopyDestinationOptions=void 0,w.calculateEvenSplits=function(tt,it){if(tt===0)return null;const Z=at(tt);ot=new Array(Z),ht=new Array(Z);let rt=it.Start;(N.default.isEmpty(it.Start)||rt===-1)&&(rt=0);const wt=Math.trunc(tt/Z),gt=tt%Z;let St=rt;for(let Lt=0;Lt<Z;Lt++){let At=wt;Lt<gt&&At++;const jt=St;let Qt=jt+At-1;St=Qt+1,ot[Lt]=jt,ht[Lt]=Qt}return{startIndex:ot,endIndex:ht,objInfo:it}},w.extractMetadata=function(tt){var it={};for(var Z in tt)(r(Z)||v(Z)||a(Z))&&(Z.toLowerCase().startsWith("x-amz-meta-")?it[Z.slice(11,Z.length)]=tt[Z]:it[Z]=tt[Z]);return it},w.getScope=function(tt,it,Z="s3"){return`${l(it)}/${tt}/${Z}/aws4_request`},w.getSourceVersionId=function(tt={}){return tt["x-amz-copy-source-version-id"]||null},w.getVersionId=function(tt={}){return tt["x-amz-version-id"]||null},w.insertContentType=function(tt,it){for(var Z in tt)if(Z.toLowerCase()==="content-type")return tt;var rt=Object.assign({},tt);return rt["content-type"]=X(it),rt},w.isAmazonEndpoint=H,w.isAmzHeader=a,w.isArray=function(tt){return Array.isArray(tt)},w.isBoolean=function(tt){return typeof tt=="boolean"},w.isFunction=vt,w.isNumber=ct,w.isObject=h,w.isReadableStream=function(tt){return h(tt)&&vt(tt._read)},w.isStorageclassHeader=v,w.isString=t,w.isSupportedHeader=r,w.isValidBucketName=et,w.isValidDate=function(tt){return tt instanceof Date&&!isNaN(tt)},w.isValidDomain=Q,w.isValidEndpoint=function(tt){return Q(tt)||D(tt)},w.isValidIP=D,w.isValidObjectName=nt,w.isValidPort=function(tt){return!!ct(tt)&&!(tt<0)&&(tt===0||tt>=1&&tt<=65535)},w.isValidPrefix=ut,w.isVirtualHostStyle=function(tt,it,Z,rt){return!(it==="https:"&&Z.indexOf(".")>-1)&&(H(tt)||!rt)},w.makeDateLong=function(tt){return(tt=(tt=tt||new Date).toISOString()).slice(0,4)+tt.slice(5,7)+tt.slice(8,13)+tt.slice(14,16)+tt.slice(17,19)+"Z"},w.makeDateShort=l,w.partsRequired=w.parseXml=void 0,w.pipesetup=function(...tt){return tt.reduce((it,Z)=>(it.on("error",rt=>Z.emit("error",rt)),it.pipe(Z)))},w.prependXAMZMeta=function(tt){var it=Object.assign({},tt);for(var Z in tt)a(Z)||r(Z)||v(Z)||(it["X-Amz-Meta-"+Z]=it[Z],delete it[Z]);return it},w.probeContentType=X,w.promisify=function(tt){return function(){if(typeof arguments[arguments.length-1]=="function")return tt.apply(this,arguments);let it=[...arguments];return new Promise((Z,rt)=>{it.push((wt,gt)=>{if(wt)return rt(wt);Z(gt)}),tt.apply(this,it)})}},w.readableStream=function(tt){var it=new O.default.Readable;return it._read=()=>{},it.push(tt),it.push(null),it},w.removeDirAndFiles=function tt(it,Z){Z===void 0&&(Z=!0);try{var rt=F.readdirSync(it)}catch{return}if(rt.length>0)for(var wt=0;wt<rt.length;wt++){var gt=U.join(it,rt[wt]);F.statSync(gt).isFile()?F.unlinkSync(gt):tt(gt)}Z&&F.rmdirSync(it)},w.sanitizeETag=function(tt=""){var it={'"':"","&quot;":"","&#34;":"","&QUOT;":"","&#x00022":""};return tt.replace(/^("|&quot;|&#34;)|("|&quot;|&#34;)$/g,Z=>it[Z])},w.toSha256=w.toMd5=w.toArray=w.sanitizeObjectKey=void 0,w.uriEscape=z,w.uriResourceEscape=function(tt){return z(tt).replace(/%2F/g,"/")};var O=B(b(8310)),I=B(b(6049)),q=B(b(8513)),p=b(8038),N=B(b(2543)),M=function(tt,it){if(tt&&tt.__esModule)return tt;if(tt===null||typeof tt!="object"&&typeof tt!="function")return{default:tt};var Z=S(it);if(Z&&Z.has(tt))return Z.get(tt);var rt={},wt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var gt in tt)if(gt!=="default"&&Object.prototype.hasOwnProperty.call(tt,gt)){var St=wt?Object.getOwnPropertyDescriptor(tt,gt):null;St&&(St.get||St.set)?Object.defineProperty(rt,gt,St):rt[gt]=tt[gt]}return rt.default=tt,Z&&Z.set(tt,rt),rt}(b(6097)),T=B(b(6663));function S(tt){if(typeof WeakMap!="function")return null;var it=new WeakMap,Z=new WeakMap;return(S=function(rt){return rt?Z:it})(tt)}function B(tt){return tt&&tt.__esModule?tt:{default:tt}}var C=b(1565);const _=b(640),F=b(5479),U=b(7975);function z(tt){return tt.split("").reduce((it,Z)=>{let rt=j.from(Z);if(rt.length===1&&("A"<=Z&&Z<="Z"||"a"<=Z&&Z<="z"||"0"<=Z&&Z<="9"||Z==="_"||Z==="."||Z==="~"||Z==="-"))return it+Z;for(var wt=0;wt<rt.length;wt++)it=it+"%"+rt[wt].toString(16).toUpperCase();return it},"")}function H(tt){return tt==="s3.amazonaws.com"||tt==="s3.cn-north-1.amazonaws.com.cn"}function D(tt){return _.isValid(tt)}function Q(tt){if(!t(tt)||tt.length===0||tt.length>255||tt[0]==="-"||tt.slice(-1)==="-"||tt[0]==="_"||tt.slice(-1)==="_"||tt[0]===".")return!1;var it="`~!@#$%^&*()+={}[]|\\\"';:><?/".split("");for(var Z in it)if(tt.indexOf(it[Z])>-1)return!1;return!0}function X(tt){let it=I.default.lookup(tt);return it||(it="application/octet-stream"),it}function et(tt){return!(!t(tt)||tt.length<3||tt.length>63||tt.indexOf("..")>-1||tt.match(/[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/)||!tt.match(/^[a-z0-9][a-z0-9.-]+[a-z0-9]$/))}function nt(tt){return!!ut(tt)&&tt.length!==0}function ut(tt){return!(!t(tt)||tt.length>1024)}function ct(tt){return typeof tt=="number"}function vt(tt){return typeof tt=="function"}function t(tt){return typeof tt=="string"}function h(tt){return typeof tt=="object"&&tt!==null}function l(tt){return(tt=(tt=tt||new Date).toISOString()).slice(0,4)+tt.slice(5,7)+tt.slice(8,10)}function a(tt){var it=tt.toLowerCase();return it.startsWith("x-amz-meta-")||it==="x-amz-acl"||it.startsWith("x-amz-server-side-encryption-")||it==="x-amz-server-side-encryption"}function r(tt){return["content-type","cache-control","content-encoding","content-disposition","content-language","x-amz-website-redirect-location"].indexOf(tt.toLowerCase())>-1}function v(tt){return tt.toLowerCase()==="x-amz-storage-class"}const A={GOVERNANCE:"GOVERNANCE",COMPLIANCE:"COMPLIANCE"};w.RETENTION_MODES=A,w.RETENTION_VALIDITY_UNITS={DAYS:"Days",YEARS:"Years"},w.LEGAL_HOLD_STATUS={ENABLED:"ON",DISABLED:"OFF"},w.toMd5=tt=>{let it=(Z=>j.from(j.from(Z)))(tt);return it=p.isBrowser?it.toString():it,C.createHash("md5").update(it).digest().toString("base64")},w.toSha256=tt=>C.createHash("sha256").update(tt).digest("hex"),w.toArray=tt=>Array.isArray(tt)?tt:[tt],w.sanitizeObjectKey=tt=>{let it=(tt||"").replace(/\+/g," ");return decodeURIComponent(it)};const W={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};w.PART_CONSTRAINTS=W;const J={SSEC:"SSE-C",KMS:"KMS"};w.ENCRYPTION_TYPES=J;const K="X-Amz-Server-Side-Encryption",G=K,Y=K+"-Aws-Kms-Key-Id";w.CopySourceOptions=class{constructor({Bucket:tt="",Object:it="",VersionID:Z="",MatchETag:rt="",NoMatchETag:wt="",MatchModifiedSince:gt=null,MatchUnmodifiedSince:St=null,MatchRange:Lt=!1,Start:At=0,End:jt=0,Encryption:Qt={}}={}){this.Bucket=tt,this.Object=it,this.VersionID=Z,this.MatchETag=rt,this.NoMatchETag=wt,this.MatchModifiedSince=gt,this.MatchUnmodifiedSince=St,this.MatchRange=Lt,this.Start=At,this.End=jt,this.Encryption=Qt}validate(){if(!et(this.Bucket))throw new M.InvalidBucketNameError("Invalid Source bucket name: "+this.Bucket);if(!nt(this.Object))throw new M.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 M.InvalidObjectNameError("Source start must be non-negative, and start must be at most end.");if(this.MatchRange&&!ct(this.Start)||!ct(this.End))throw new M.InvalidObjectNameError("MatchRange is specified. But Invalid Start and End values are specified. ");return!0}getHeaders(){let tt={};return tt["x-amz-copy-source"]=encodeURI(this.Bucket+"/"+this.Object),N.default.isEmpty(this.VersionID)||(tt["x-amz-copy-source"]=encodeURI(this.Bucket+"/"+this.Object)+"?versionId="+this.VersionID),N.default.isEmpty(this.MatchETag)||(tt["x-amz-copy-source-if-match"]=this.MatchETag),N.default.isEmpty(this.NoMatchETag)||(tt["x-amz-copy-source-if-none-match"]=this.NoMatchETag),N.default.isEmpty(this.MatchModifiedSince)||(tt["x-amz-copy-source-if-modified-since"]=this.MatchModifiedSince),N.default.isEmpty(this.MatchUnmodifiedSince)||(tt["x-amz-copy-source-if-unmodified-since"]=this.MatchUnmodifiedSince),tt}},w.CopyDestinationOptions=class{constructor({Bucket:tt="",Object:it="",Encryption:Z=null,UserMetadata:rt=null,UserTags:wt=null,LegalHold:gt=null,RetainUntilDate:St=null,Mode:Lt=null}){this.Bucket=tt,this.Object=it,this.Encryption=Z,this.UserMetadata=rt,this.UserTags=wt,this.LegalHold=gt,this.Mode=Lt,this.RetainUntilDate=St}getHeaders(){const tt={},it=this.UserTags;if(N.default.isEmpty(it)||(tt["X-Amz-Tagging-Directive"]="REPLACE",tt["X-Amz-Tagging"]=h(it)?T.default.stringify(it):t(it)?it:""),N.default.isEmpty(this.Mode)||(tt["X-Amz-Object-Lock-Mode"]=this.Mode),N.default.isEmpty(this.RetainUntilDate)||(tt["X-Amz-Object-Lock-Retain-Until-Date"]=this.RetainUntilDate),N.default.isEmpty(this.LegalHold)||(tt["X-Amz-Object-Lock-Legal-Hold"]=this.LegalHold),N.default.isEmpty(this.UserMetadata)||Object.keys(this.UserMetadata).forEach(Z=>{tt[`X-Amz-Meta-${Z}`]=this.UserMetadata[Z]}),!N.default.isEmpty(this.Encryption)){const Z=function(rt){const wt=rt.type,gt={};if(!N.default.isEmpty(wt)){if(wt===J.SSEC)return{[gt[G]]:"AES256"};if(wt===J.KMS)return{[G]:rt.SSEAlgorithm,[Y]:rt.KMSMasterKeyID}}return gt}(this.Encryption);Object.keys(Z).forEach(rt=>{tt[rt]=Z[rt]})}return tt}validate(){if(!et(this.Bucket))throw new M.InvalidBucketNameError("Invalid Destination bucket name: "+this.Bucket);if(!nt(this.Object))throw new M.InvalidObjectNameError(`Invalid Destination object name: ${this.Object}`);if(!N.default.isEmpty(this.UserMetadata)&&!h(this.UserMetadata))throw new M.InvalidObjectNameError("Destination UserMetadata should be an object with key value pairs");if(!N.default.isEmpty(this.Mode)&&![A.GOVERNANCE,A.COMPLIANCE].includes(this.Mode))throw new M.InvalidObjectNameError("Invalid Mode specified for destination object it should be one of [GOVERNANCE,COMPLIANCE]");if(!N.default.isEmpty(this.Encryption)&&N.default.isEmpty(this.Encryption))throw new M.InvalidObjectNameError("Invalid Encryption configuration for destination object ");return!0}};const at=tt=>{let it=W.MAX_MULTIPART_PUT_OBJECT_SIZE/(W.MAX_PARTS_COUNT-1),Z=tt/it;return tt%it>0&&Z++,Z=Math.trunc(Z),Z};w.partsRequired=at;let ot=[],ht=[];w.parseXml=tt=>{let it=null;if(it=q.default.parse(tt),it.Error)throw it.Error;return it},w.SelectResults=class{constructor({records:tt,response:it,stats:Z,progress:rt}){this.records=tt,this.response=it,this.stats=Z,this.progress=rt}setStats(tt){this.stats=tt}getStats(){return this.stats}setProgress(tt){this.progress=tt}getProgress(){return this.progress}setResponse(tt){this.response=tt}getResponse(){return this.response}setRecords(tt){this.records=tt}getRecords(){return this.records}},w.DEFAULT_REGION="us-east-1"},2543:function($,w,b){var j;$=b.nmd($),(function(){var O,I="Expected a function",q="__lodash_hash_undefined__",p="__lodash_placeholder__",N=32,M=128,T=1/0,S=9007199254740991,B=NaN,C=4294967295,_=[["ary",M],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",N],["partialRight",64],["rearg",256]],F="[object Arguments]",U="[object Array]",z="[object Boolean]",H="[object Date]",D="[object Error]",Q="[object Function]",X="[object GeneratorFunction]",et="[object Map]",nt="[object Number]",ut="[object Object]",ct="[object Promise]",vt="[object RegExp]",t="[object Set]",h="[object String]",l="[object Symbol]",a="[object WeakMap]",r="[object ArrayBuffer]",v="[object DataView]",A="[object Float32Array]",W="[object Float64Array]",J="[object Int8Array]",K="[object Int16Array]",G="[object Int32Array]",Y="[object Uint8Array]",at="[object Uint8ClampedArray]",ot="[object Uint16Array]",ht="[object Uint32Array]",tt=/\b__p \+= '';/g,it=/\b(__p \+=) '' \+/g,Z=/(__e\(.*?\)|\b__t\)) \+\n'';/g,rt=/&(?:amp|lt|gt|quot|#39);/g,wt=/[&<>"']/g,gt=RegExp(rt.source),St=RegExp(wt.source),Lt=/<%-([\s\S]+?)%>/g,At=/<%([\s\S]+?)%>/g,jt=/<%=([\s\S]+?)%>/g,Qt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Dt=/^\w*$/,zt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ft=/[\\^$.*+?()[\]{}|]/g,pt=RegExp(ft.source),mt=/^\s+/,Mt=/\s/,xt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,kt=/\{\n\/\* \[wrapped with (.+)\] \*/,$t=/,? & /,Pt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,yt=/[()=,{}\[\]\/\s]/,dt=/\\(\\)?/g,lt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_t=/\w*$/,qt=/^[-+]0x[0-9a-f]+$/i,It=/^0b[01]+$/i,Nt=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,Vt=/^(?:0|[1-9]\d*)$/,Jt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ee=/($^)/,Ht=/['\n\r\u2028\u2029\\]/g,ae="\\ud800-\\udfff",Ne="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Gt="\\u2700-\\u27bf",se="a-z\\xdf-\\xf6\\xf8-\\xff",qe="A-Z\\xc0-\\xd6\\xd8-\\xde",Zt="\\ufe0e\\ufe0f",he="\\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",Qe="["+ae+"]",Yt="["+he+"]",ce="["+Ne+"]",Ge="\\d+",Ut="["+Gt+"]",te="["+se+"]",He="[^"+ae+he+Ge+Gt+se+qe+"]",ne="\\ud83c[\\udffb-\\udfff]",me="[^"+ae+"]",tr="(?:\\ud83c[\\udde6-\\uddff]){2}",ie="[\\ud800-\\udbff][\\udc00-\\udfff]",de="["+qe+"]",rr="\\u200d",oe="(?:"+te+"|"+He+")",ge="(?:"+de+"|"+He+")",We="(?:['’](?:d|ll|m|re|s|t|ve))?",$e="(?:['’](?:D|LL|M|RE|S|T|VE))?",cr="(?:"+ce+"|"+ne+")?",mr="["+Zt+"]?",hr=mr+cr+"(?:"+rr+"(?:"+[me,tr,ie].join("|")+")"+mr+cr+")*",gr="(?:"+[Ut,tr,ie].join("|")+")"+hr,vr="(?:"+[me+ce+"?",ce,tr,ie,Qe].join("|")+")",yr=RegExp("['’]","g"),br=RegExp(ce,"g"),lr=RegExp(ne+"(?="+ne+")|"+vr+hr,"g"),wr=RegExp([de+"?"+te+"+"+We+"(?="+[Yt,de,"$"].join("|")+")",ge+"+"+$e+"(?="+[Yt,de+oe,"$"].join("|")+")",de+"?"+oe+"+"+We,de+"+"+$e,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ge,gr].join("|"),"g"),fr=RegExp("["+rr+ae+Ne+Zt+"]"),_r=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Mr=["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"],pr=-1,Le={};Le[A]=Le[W]=Le[J]=Le[K]=Le[G]=Le[Y]=Le[at]=Le[ot]=Le[ht]=!0,Le[F]=Le[U]=Le[r]=Le[z]=Le[v]=Le[H]=Le[D]=Le[Q]=Le[et]=Le[nt]=Le[ut]=Le[vt]=Le[t]=Le[h]=Le[a]=!1;var De={};De[F]=De[U]=De[r]=De[v]=De[z]=De[H]=De[A]=De[W]=De[J]=De[K]=De[G]=De[et]=De[nt]=De[ut]=De[vt]=De[t]=De[h]=De[l]=De[Y]=De[at]=De[ot]=De[ht]=!0,De[D]=De[Q]=De[a]=!1;var xr={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Er=parseFloat,yn=parseInt,En=typeof b.g=="object"&&b.g&&b.g.Object===Object&&b.g,Oi=typeof self=="object"&&self&&self.Object===Object&&self,Lr=En||Oi||Function("return this")(),pi=w&&!w.nodeType&&w,Bn=pi&&$&&!$.nodeType&&$,Pn=Bn&&Bn.exports===pi,ti=Pn&&En.process,Jr=function(){try{return Bn&&Bn.require&&Bn.require("util").types||ti&&ti.binding&&ti.binding("util")}catch{}}(),Ii=Jr&&Jr.isArrayBuffer,Bt=Jr&&Jr.isDate,Ot=Jr&&Jr.isMap,Ct=Jr&&Jr.isRegExp,Wt=Jr&&Jr.isSet,le=Jr&&Jr.isTypedArray;function Xt(ue,we,Me){switch(Me.length){case 0:return ue.call(we);case 1:return ue.call(we,Me[0]);case 2:return ue.call(we,Me[0],Me[1]);case 3:return ue.call(we,Me[0],Me[1],Me[2])}return ue.apply(we,Me)}function pe(ue,we,Me,Te){for(var er=-1,dr=ue==null?0:ue.length;++er<dr;){var qr=ue[er];we(Te,qr,Me(qr),ue)}return Te}function fe(ue,we){for(var Me=-1,Te=ue==null?0:ue.length;++Me<Te&&we(ue[Me],Me,ue)!==!1;);return ue}function xe(ue,we){for(var Me=ue==null?0:ue.length;Me--&&we(ue[Me],Me,ue)!==!1;);return ue}function je(ue,we){for(var Me=-1,Te=ue==null?0:ue.length;++Me<Te;)if(!we(ue[Me],Me,ue))return!1;return!0}function Ye(ue,we){for(var Me=-1,Te=ue==null?0:ue.length,er=0,dr=[];++Me<Te;){var qr=ue[Me];we(qr,Me,ue)&&(dr[er++]=qr)}return dr}function Xe(ue,we){return!(ue==null||!ue.length)&&Or(ue,we,0)>-1}function ar(ue,we,Me){for(var Te=-1,er=ue==null?0:ue.length;++Te<er;)if(Me(we,ue[Te]))return!0;return!1}function Pe(ue,we){for(var Me=-1,Te=ue==null?0:ue.length,er=Array(Te);++Me<Te;)er[Me]=we(ue[Me],Me,ue);return er}function Cr(ue,we){for(var Me=-1,Te=we.length,er=ue.length;++Me<Te;)ue[er+Me]=we[Me];return ue}function Oe(ue,we,Me,Te){var er=-1,dr=ue==null?0:ue.length;for(Te&&dr&&(Me=ue[++er]);++er<dr;)Me=we(Me,ue[er],er,ue);return Me}function Re(ue,we,Me,Te){var er=ue==null?0:ue.length;for(Te&&er&&(Me=ue[--er]);er--;)Me=we(Me,ue[er],er,ue);return Me}function Ce(ue,we){for(var Me=-1,Te=ue==null?0:ue.length;++Me<Te;)if(we(ue[Me],Me,ue))return!0;return!1}var Ve=Sn("length");function kr(ue,we,Me){var Te;return Me(ue,function(er,dr,qr){if(we(er,dr,qr))return Te=dr,!1}),Te}function jr(ue,we,Me,Te){for(var er=ue.length,dr=Me+(Te?1:-1);Te?dr--:++dr<er;)if(we(ue[dr],dr,ue))return dr;return-1}function Or(ue,we,Me){return we==we?function(Te,er,dr){for(var qr=dr-1,bn=Te.length;++qr<bn;)if(Te[qr]===er)return qr;return-1}(ue,we,Me):jr(ue,un,Me)}function Hr(ue,we,Me,Te){for(var er=Me-1,dr=ue.length;++er<dr;)if(Te(ue[er],we))return er;return-1}function un(ue){return ue!=ue}function Yr(ue,we){var Me=ue==null?0:ue.length;return Me?Eo(ue,we)/Me:B}function Sn(ue){return function(we){return we==null?O:we[ue]}}function xo(ue){return function(we){return ue==null?O:ue[we]}}function Aa(ue,we,Me,Te,er){return er(ue,function(dr,qr,bn){Me=Te?(Te=!1,dr):we(Me,dr,qr,bn)}),Me}function Eo(ue,we){for(var Me,Te=-1,er=ue.length;++Te<er;){var dr=we(ue[Te]);dr!==O&&(Me=Me===O?dr:Me+dr)}return Me}function So(ue,we){for(var Me=-1,Te=Array(ue);++Me<ue;)Te[Me]=we(Me);return Te}function Ta(ue){return ue&&ue.slice(0,ja(ue)+1).replace(mt,"")}function nn(ue){return function(we){return ue(we)}}function ko(ue,we){return Pe(we,function(Me){return ue[Me]})}function di(ue,we){return ue.has(we)}function Oa(ue,we){for(var Me=-1,Te=ue.length;++Me<Te&&Or(we,ue[Me],0)>-1;);return Me}function Ia(ue,we){for(var Me=ue.length;Me--&&Or(we,ue[Me],0)>-1;);return Me}var xu=xo({À:"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"}),Eu=xo({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Su(ue){return"\\"+xr[ue]}function ei(ue){return fr.test(ue)}function Ao(ue){var we=-1,Me=Array(ue.size);return ue.forEach(function(Te,er){Me[++we]=[er,Te]}),Me}function Ra(ue,we){return function(Me){return ue(we(Me))}}function Dn(ue,we){for(var Me=-1,Te=ue.length,er=0,dr=[];++Me<Te;){var qr=ue[Me];qr!==we&&qr!==p||(ue[Me]=p,dr[er++]=Me)}return dr}function Ri(ue){var we=-1,Me=Array(ue.size);return ue.forEach(function(Te){Me[++we]=Te}),Me}function ku(ue){var we=-1,Me=Array(ue.size);return ue.forEach(function(Te){Me[++we]=[Te,Te]}),Me}function ri(ue){return ei(ue)?function(we){for(var Me=lr.lastIndex=0;lr.test(we);)++Me;return Me}(ue):Ve(ue)}function mn(ue){return ei(ue)?function(we){return we.match(lr)||[]}(ue):function(we){return we.split("")}(ue)}function ja(ue){for(var we=ue.length;we--&&Mt.test(ue.charAt(we)););return we}var Au=xo({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),ji=function ue(we){var Me,Te=(we=we==null?Lr:ji.defaults(Lr.Object(),we,ji.pick(Lr,Mr))).Array,er=we.Date,dr=we.Error,qr=we.Function,bn=we.Math,Ir=we.Object,To=we.RegExp,Tu=we.String,cn=we.TypeError,Ni=Te.prototype,Ou=qr.prototype,ni=Ir.prototype,Bi=we["__core-js_shared__"],Pi=Ou.toString,Tr=ni.hasOwnProperty,Iu=0,Na=(Me=/[^.]+$/.exec(Bi&&Bi.keys&&Bi.keys.IE_PROTO||""))?"Symbol(src)_1."+Me:"",Di=ni.toString,Ru=Pi.call(Ir),ju=Lr._,Nu=To("^"+Pi.call(Tr).replace(ft,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Li=Pn?we.Buffer:O,Ln=we.Symbol,qi=we.Uint8Array,Ca=Li?Li.allocUnsafe:O,Fi=Ra(Ir.getPrototypeOf,Ir),Ba=Ir.create,Pa=ni.propertyIsEnumerable,Ui=Ni.splice,Da=Ln?Ln.isConcatSpreadable:O,mi=Ln?Ln.iterator:O,Vn=Ln?Ln.toStringTag:O,$i=function(){try{var P=Gn(Ir,"defineProperty");return P({},"",{}),P}catch{}}(),Cu=we.clearTimeout!==Lr.clearTimeout&&we.clearTimeout,Bu=er&&er.now!==Lr.Date.now&&er.now,Pu=we.setTimeout!==Lr.setTimeout&&we.setTimeout,zi=bn.ceil,Hi=bn.floor,Oo=Ir.getOwnPropertySymbols,Du=Li?Li.isBuffer:O,La=we.isFinite,Lu=Ni.join,qu=Ra(Ir.keys,Ir),Fr=bn.max,Vr=bn.min,Fu=er.now,Uu=we.parseInt,qa=bn.random,$u=Ni.reverse,Io=Gn(we,"DataView"),gi=Gn(we,"Map"),Ro=Gn(we,"Promise"),ii=Gn(we,"Set"),vi=Gn(we,"WeakMap"),yi=Gn(Ir,"create"),Vi=vi&&new vi,oi={},zu=Xn(Io),Hu=Xn(gi),Vu=Xn(Ro),Ku=Xn(ii),Wu=Xn(vi),Ki=Ln?Ln.prototype:O,bi=Ki?Ki.valueOf:O,Fa=Ki?Ki.toString:O;function Tt(P){if(Br(P)&&!ir(P)&&!(P instanceof ur)){if(P instanceof ln)return P;if(Tr.call(P,"__wrapped__"))return Us(P)}return new ln(P)}var ai=function(){function P(){}return function(V){if(!Nr(V))return{};if(Ba)return Ba(V);P.prototype=V;var st=new P;return P.prototype=O,st}}();function Wi(){}function ln(P,V){this.__wrapped__=P,this.__actions__=[],this.__chain__=!!V,this.__index__=0,this.__values__=O}function ur(P){this.__wrapped__=P,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=C,this.__views__=[]}function Kn(P){var V=-1,st=P==null?0:P.length;for(this.clear();++V<st;){var bt=P[V];this.set(bt[0],bt[1])}}function kn(P){var V=-1,st=P==null?0:P.length;for(this.clear();++V<st;){var bt=P[V];this.set(bt[0],bt[1])}}function An(P){var V=-1,st=P==null?0:P.length;for(this.clear();++V<st;){var bt=P[V];this.set(bt[0],bt[1])}}function Wn(P){var V=-1,st=P==null?0:P.length;for(this.__data__=new An;++V<st;)this.add(P[V])}function gn(P){var V=this.__data__=new kn(P);this.size=V.size}function Ua(P,V){var st=ir(P),bt=!st&&Yn(P),Et=!st&&!bt&&zn(P),Rt=!st&&!bt&&!Et&&li(P),Ft=st||bt||Et||Rt,Kt=Ft?So(P.length,Tu):[],ee=Kt.length;for(var ve in P)!V&&!Tr.call(P,ve)||Ft&&(ve=="length"||Et&&(ve=="offset"||ve=="parent")||Rt&&(ve=="buffer"||ve=="byteLength"||ve=="byteOffset")||Rn(ve,ee))||Kt.push(ve);return Kt}function $a(P){var V=P.length;return V?P[$o(0,V-1)]:O}function Ju(P,V){return uo(Zr(P),Jn(V,0,P.length))}function Qu(P){return uo(Zr(P))}function jo(P,V,st){(st!==O&&!vn(P[V],st)||st===O&&!(V in P))&&Tn(P,V,st)}function wi(P,V,st){var bt=P[V];Tr.call(P,V)&&vn(bt,st)&&(st!==O||V in P)||Tn(P,V,st)}function Ji(P,V){for(var st=P.length;st--;)if(vn(P[st][0],V))return st;return-1}function Gu(P,V,st,bt){return qn(P,function(Et,Rt,Ft){V(bt,Et,st(Et),Ft)}),bt}function za(P,V){return P&&_n(V,$r(V),P)}function Tn(P,V,st){V=="__proto__"&&$i?$i(P,V,{configurable:!0,enumerable:!0,value:st,writable:!0}):P[V]=st}function No(P,V){for(var st=-1,bt=V.length,Et=Te(bt),Rt=P==null;++st<bt;)Et[st]=Rt?O:ga(P,V[st]);return Et}function Jn(P,V,st){return P==P&&(st!==O&&(P=P<=st?P:st),V!==O&&(P=P>=V?P:V)),P}function hn(P,V,st,bt,Et,Rt){var Ft,Kt=1&V,ee=2&V,ve=4&V;if(st&&(Ft=Et?st(P,bt,Et,Rt):st(P)),Ft!==O)return Ft;if(!Nr(P))return P;var ye=ir(P);if(ye){if(Ft=function(_e){var ke=_e.length,Ue=new _e.constructor(ke);return ke&&typeof _e[0]=="string"&&Tr.call(_e,"index")&&(Ue.index=_e.index,Ue.input=_e.input),Ue}(P),!Kt)return Zr(P,Ft)}else{var Se=Kr(P),Ie=Se==Q||Se==X;if(zn(P))return ps(P,Kt);if(Se==ut||Se==F||Ie&&!Et){if(Ft=ee||Ie?{}:js(P),!Kt)return ee?function(_e,ke){return _n(_e,Is(_e),ke)}(P,function(_e,ke){return _e&&_n(ke,en(ke),_e)}(Ft,P)):function(_e,ke){return _n(_e,ra(_e),ke)}(P,za(Ft,P))}else{if(!De[Se])return Et?P:{};Ft=function(_e,ke,Ue){var Ae,nr=_e.constructor;switch(ke){case r:return Qo(_e);case z:case H:return new nr(+_e);case v:return function(Ze,Sr){var Fe=Sr?Qo(Ze.buffer):Ze.buffer;return new Ze.constructor(Fe,Ze.byteOffset,Ze.byteLength)}(_e,Ue);case A:case W:case J:case K:case G:case Y:case at:case ot:case ht:return ds(_e,Ue);case et:return new nr;case nt:case h:return new nr(_e);case vt:return function(Ze){var Sr=new Ze.constructor(Ze.source,_t.exec(Ze));return Sr.lastIndex=Ze.lastIndex,Sr}(_e);case t:return new nr;case l:return Ae=_e,bi?Ir(bi.call(Ae)):{}}}(P,Se,Kt)}}Rt||(Rt=new gn);var Be=Rt.get(P);if(Be)return Be;Rt.set(P,Ft),au(P)?P.forEach(function(_e){Ft.add(hn(_e,V,st,_e,P,Rt))}):iu(P)&&P.forEach(function(_e,ke){Ft.set(ke,hn(_e,V,st,ke,P,Rt))});var ze=ye?O:(ve?ee?Zo:Yo:ee?en:$r)(P);return fe(ze||P,function(_e,ke){ze&&(_e=P[ke=_e]),wi(Ft,ke,hn(_e,V,st,ke,P,Rt))}),Ft}function Ha(P,V,st){var bt=st.length;if(P==null)return!bt;for(P=Ir(P);bt--;){var Et=st[bt],Rt=V[Et],Ft=P[Et];if(Ft===O&&!(Et in P)||!Rt(Ft))return!1}return!0}function Va(P,V,st){if(typeof P!="function")throw new cn(I);return Ai(function(){P.apply(O,st)},V)}function _i(P,V,st,bt){var Et=-1,Rt=Xe,Ft=!0,Kt=P.length,ee=[],ve=V.length;if(!Kt)return ee;st&&(V=Pe(V,nn(st))),bt?(Rt=ar,Ft=!1):V.length>=200&&(Rt=di,Ft=!1,V=new Wn(V));t:for(;++Et<Kt;){var ye=P[Et],Se=st==null?ye:st(ye);if(ye=bt||ye!==0?ye:0,Ft&&Se==Se){for(var Ie=ve;Ie--;)if(V[Ie]===Se)continue t;ee.push(ye)}else Rt(V,Se,bt)||ee.push(ye)}return ee}Tt.templateSettings={escape:Lt,evaluate:At,interpolate:jt,variable:"",imports:{_:Tt}},Tt.prototype=Wi.prototype,Tt.prototype.constructor=Tt,ln.prototype=ai(Wi.prototype),ln.prototype.constructor=ln,ur.prototype=ai(Wi.prototype),ur.prototype.constructor=ur,Kn.prototype.clear=function(){this.__data__=yi?yi(null):{},this.size=0},Kn.prototype.delete=function(P){var V=this.has(P)&&delete this.__data__[P];return this.size-=V?1:0,V},Kn.prototype.get=function(P){var V=this.__data__;if(yi){var st=V[P];return st===q?O:st}return Tr.call(V,P)?V[P]:O},Kn.prototype.has=function(P){var V=this.__data__;return yi?V[P]!==O:Tr.call(V,P)},Kn.prototype.set=function(P,V){var st=this.__data__;return this.size+=this.has(P)?0:1,st[P]=yi&&V===O?q:V,this},kn.prototype.clear=function(){this.__data__=[],this.size=0},kn.prototype.delete=function(P){var V=this.__data__,st=Ji(V,P);return!(st<0||(st==V.length-1?V.pop():Ui.call(V,st,1),--this.size,0))},kn.prototype.get=function(P){var V=this.__data__,st=Ji(V,P);return st<0?O:V[st][1]},kn.prototype.has=function(P){return Ji(this.__data__,P)>-1},kn.prototype.set=function(P,V){var st=this.__data__,bt=Ji(st,P);return bt<0?(++this.size,st.push([P,V])):st[bt][1]=V,this},An.prototype.clear=function(){this.size=0,this.__data__={hash:new Kn,map:new(gi||kn),string:new Kn}},An.prototype.delete=function(P){var V=so(this,P).delete(P);return this.size-=V?1:0,V},An.prototype.get=function(P){return so(this,P).get(P)},An.prototype.has=function(P){return so(this,P).has(P)},An.prototype.set=function(P,V){var st=so(this,P),bt=st.size;return st.set(P,V),this.size+=st.size==bt?0:1,this},Wn.prototype.add=Wn.prototype.push=function(P){return this.__data__.set(P,q),this},Wn.prototype.has=function(P){return this.__data__.has(P)},gn.prototype.clear=function(){this.__data__=new kn,this.size=0},gn.prototype.delete=function(P){var V=this.__data__,st=V.delete(P);return this.size=V.size,st},gn.prototype.get=function(P){return this.__data__.get(P)},gn.prototype.has=function(P){return this.__data__.has(P)},gn.prototype.set=function(P,V){var st=this.__data__;if(st instanceof kn){var bt=st.__data__;if(!gi||bt.length<199)return bt.push([P,V]),this.size=++st.size,this;st=this.__data__=new An(bt)}return st.set(P,V),this.size=st.size,this};var qn=ys(wn),Ka=ys(Bo,!0);function Xu(P,V){var st=!0;return qn(P,function(bt,Et,Rt){return st=!!V(bt,Et,Rt)}),st}function Qi(P,V,st){for(var bt=-1,Et=P.length;++bt<Et;){var Rt=P[bt],Ft=V(Rt);if(Ft!=null&&(Kt===O?Ft==Ft&&!sn(Ft):st(Ft,Kt)))var Kt=Ft,ee=Rt}return ee}function Wa(P,V){var st=[];return qn(P,function(bt,Et,Rt){V(bt,Et,Rt)&&st.push(bt)}),st}function zr(P,V,st,bt,Et){var Rt=-1,Ft=P.length;for(st||(st=uc),Et||(Et=[]);++Rt<Ft;){var Kt=P[Rt];V>0&&st(Kt)?V>1?zr(Kt,V-1,st,bt,Et):Cr(Et,Kt):bt||(Et[Et.length]=Kt)}return Et}var Co=bs(),Ja=bs(!0);function wn(P,V){return P&&Co(P,V,$r)}function Bo(P,V){return P&&Ja(P,V,$r)}function Gi(P,V){return Ye(V,function(st){return jn(P[st])})}function Qn(P,V){for(var st=0,bt=(V=Un(V,P)).length;P!=null&&st<bt;)P=P[Mn(V[st++])];return st&&st==bt?P:O}function Qa(P,V,st){var bt=V(P);return ir(P)?bt:Cr(bt,st(P))}function Qr(P){return P==null?P===O?"[object Undefined]":"[object Null]":Vn&&Vn in Ir(P)?function(V){var st=Tr.call(V,Vn),bt=V[Vn];try{V[Vn]=O;var Et=!0}catch{}var Rt=Di.call(V);return Et&&(st?V[Vn]=bt:delete V[Vn]),Rt}(P):function(V){return Di.call(V)}(P)}function Po(P,V){return P>V}function Yu(P,V){return P!=null&&Tr.call(P,V)}function Zu(P,V){return P!=null&&V in Ir(P)}function Do(P,V,st){for(var bt=st?ar:Xe,Et=P[0].length,Rt=P.length,Ft=Rt,Kt=Te(Rt),ee=1/0,ve=[];Ft--;){var ye=P[Ft];Ft&&V&&(ye=Pe(ye,nn(V))),ee=Vr(ye.length,ee),Kt[Ft]=!st&&(V||Et>=120&&ye.length>=120)?new Wn(Ft&&ye):O}ye=P[0];var Se=-1,Ie=Kt[0];t:for(;++Se<Et&&ve.length<ee;){var Be=ye[Se],ze=V?V(Be):Be;if(Be=st||Be!==0?Be:0,!(Ie?di(Ie,ze):bt(ve,ze,st))){for(Ft=Rt;--Ft;){var _e=Kt[Ft];if(!(_e?di(_e,ze):bt(P[Ft],ze,st)))continue t}Ie&&Ie.push(ze),ve.push(Be)}}return ve}function Mi(P,V,st){var bt=(P=Ps(P,V=Un(V,P)))==null?P:P[Mn(pn(V))];return bt==null?O:Xt(bt,P,st)}function Ga(P){return Br(P)&&Qr(P)==F}function xi(P,V,st,bt,Et){return P===V||(P==null||V==null||!Br(P)&&!Br(V)?P!=P&&V!=V:function(Rt,Ft,Kt,ee,ve,ye){var Se=ir(Rt),Ie=ir(Ft),Be=Se?U:Kr(Rt),ze=Ie?U:Kr(Ft),_e=(Be=Be==F?ut:Be)==ut,ke=(ze=ze==F?ut:ze)==ut,Ue=Be==ze;if(Ue&&zn(Rt)){if(!zn(Ft))return!1;Se=!0,_e=!1}if(Ue&&!_e)return ye||(ye=new gn),Se||li(Rt)?Os(Rt,Ft,Kt,ee,ve,ye):function(Fe,Je,Ur,Dr,Xr,Rr,Wr){switch(Ur){case v:if(Fe.byteLength!=Je.byteLength||Fe.byteOffset!=Je.byteOffset)return!1;Fe=Fe.buffer,Je=Je.buffer;case r:return!(Fe.byteLength!=Je.byteLength||!Rr(new qi(Fe),new qi(Je)));case z:case H:case nt:return vn(+Fe,+Je);case D:return Fe.name==Je.name&&Fe.message==Je.message;case vt:case h:return Fe==Je+"";case et:var xn=Ao;case t:var Hn=1&Dr;if(xn||(xn=Ri),Fe.size!=Je.size&&!Hn)return!1;var Zn=Wr.get(Fe);if(Zn)return Zn==Je;Dr|=2,Wr.set(Fe,Je);var Cn=Os(xn(Fe),xn(Je),Dr,Xr,Rr,Wr);return Wr.delete(Fe),Cn;case l:if(bi)return bi.call(Fe)==bi.call(Je)}return!1}(Rt,Ft,Be,Kt,ee,ve,ye);if(!(1&Kt)){var Ae=_e&&Tr.call(Rt,"__wrapped__"),nr=ke&&Tr.call(Ft,"__wrapped__");if(Ae||nr){var Ze=Ae?Rt.value():Rt,Sr=nr?Ft.value():Ft;return ye||(ye=new gn),ve(Ze,Sr,Kt,ee,ye)}}return!!Ue&&(ye||(ye=new gn),function(Fe,Je,Ur,Dr,Xr,Rr){var Wr=1&Ur,xn=Yo(Fe),Hn=xn.length;if(Hn!=Yo(Je).length&&!Wr)return!1;for(var Zn=Hn;Zn--;){var Cn=xn[Zn];if(!(Wr?Cn in Je:Tr.call(Je,Cn)))return!1}var wu=Rr.get(Fe),_u=Rr.get(Je);if(wu&&_u)return wu==Je&&_u==Fe;var yo=!0;Rr.set(Fe,Je),Rr.set(Je,Fe);for(var ka=Wr;++Zn<Hn;){var bo=Fe[Cn=xn[Zn]],wo=Je[Cn];if(Dr)var Mu=Wr?Dr(wo,bo,Cn,Je,Fe,Rr):Dr(bo,wo,Cn,Fe,Je,Rr);if(!(Mu===O?bo===wo||Xr(bo,wo,Ur,Dr,Rr):Mu)){yo=!1;break}ka||(ka=Cn=="constructor")}if(yo&&!ka){var _o=Fe.constructor,Mo=Je.constructor;_o==Mo||!("constructor"in Fe)||!("constructor"in Je)||typeof _o=="function"&&_o instanceof _o&&typeof Mo=="function"&&Mo instanceof Mo||(yo=!1)}return Rr.delete(Fe),Rr.delete(Je),yo}(Rt,Ft,Kt,ee,ve,ye))}(P,V,st,bt,xi,Et))}function Lo(P,V,st,bt){var Et=st.length,Rt=Et,Ft=!bt;if(P==null)return!Rt;for(P=Ir(P);Et--;){var Kt=st[Et];if(Ft&&Kt[2]?Kt[1]!==P[Kt[0]]:!(Kt[0]in P))return!1}for(;++Et<Rt;){var ee=(Kt=st[Et])[0],ve=P[ee],ye=Kt[1];if(Ft&&Kt[2]){if(ve===O&&!(ee in P))return!1}else{var Se=new gn;if(bt)var Ie=bt(ve,ye,ee,P,V,Se);if(!(Ie===O?xi(ye,ve,3,bt,Se):Ie))return!1}}return!0}function Xa(P){return!(!Nr(P)||(V=P,Na&&Na in V))&&(jn(P)?Nu:Nt).test(Xn(P));var V}function Ya(P){return typeof P=="function"?P:P==null?rn:typeof P=="object"?ir(P)?es(P[0],P[1]):ts(P):bu(P)}function qo(P){if(!ki(P))return qu(P);var V=[];for(var st in Ir(P))Tr.call(P,st)&&st!="constructor"&&V.push(st);return V}function Fo(P,V){return P<V}function Za(P,V){var st=-1,bt=tn(P)?Te(P.length):[];return qn(P,function(Et,Rt,Ft){bt[++st]=V(Et,Rt,Ft)}),bt}function ts(P){var V=ea(P);return V.length==1&&V[0][2]?Cs(V[0][0],V[0][1]):function(st){return st===P||Lo(st,P,V)}}function es(P,V){return na(P)&&Ns(V)?Cs(Mn(P),V):function(st){var bt=ga(st,P);return bt===O&&bt===V?va(st,P):xi(V,bt,3)}}function Xi(P,V,st,bt,Et){P!==V&&Co(V,function(Rt,Ft){if(Et||(Et=new gn),Nr(Rt))(function(ee,ve,ye,Se,Ie,Be,ze){var _e=oa(ee,ye),ke=oa(ve,ye),Ue=ze.get(ke);if(Ue)jo(ee,ye,Ue);else{var Ae=Be?Be(_e,ke,ye+"",ee,ve,ze):O,nr=Ae===O;if(nr){var Ze=ir(ke),Sr=!Ze&&zn(ke),Fe=!Ze&&!Sr&&li(ke);Ae=ke,Ze||Sr||Fe?ir(_e)?Ae=_e:Pr(_e)?Ae=Zr(_e):Sr?(nr=!1,Ae=ps(ke,!0)):Fe?(nr=!1,Ae=ds(ke,!0)):Ae=[]:Ti(ke)||Yn(ke)?(Ae=_e,Yn(_e)?Ae=cu(_e):Nr(_e)&&!jn(_e)||(Ae=js(ke))):nr=!1}nr&&(ze.set(ke,Ae),Ie(Ae,ke,Se,Be,ze),ze.delete(ke)),jo(ee,ye,Ae)}})(P,V,Ft,st,Xi,bt,Et);else{var Kt=bt?bt(oa(P,Ft),Rt,Ft+"",P,V,Et):O;Kt===O&&(Kt=Rt),jo(P,Ft,Kt)}},en)}function rs(P,V){var st=P.length;if(st)return Rn(V+=V<0?st:0,st)?P[V]:O}function ns(P,V,st){V=V.length?Pe(V,function(Rt){return ir(Rt)?function(Ft){return Qn(Ft,Rt.length===1?Rt[0]:Rt)}:Rt}):[rn];var bt=-1;V=Pe(V,nn(Ke()));var Et=Za(P,function(Rt,Ft,Kt){var ee=Pe(V,function(ve){return ve(Rt)});return{criteria:ee,index:++bt,value:Rt}});return function(Rt){var Ft=Rt.length;for(Rt.sort(function(Kt,ee){return function(ve,ye,Se){for(var Ie=-1,Be=ve.criteria,ze=ye.criteria,_e=Be.length,ke=Se.length;++Ie<_e;){var Ue=ms(Be[Ie],ze[Ie]);if(Ue)return Ie>=ke?Ue:Ue*(Se[Ie]=="desc"?-1:1)}return ve.index-ye.index}(Kt,ee,st)});Ft--;)Rt[Ft]=Rt[Ft].value;return Rt}(Et)}function is(P,V,st){for(var bt=-1,Et=V.length,Rt={};++bt<Et;){var Ft=V[bt],Kt=Qn(P,Ft);st(Kt,Ft)&&Ei(Rt,Un(Ft,P),Kt)}return Rt}function Uo(P,V,st,bt){var Et=bt?Hr:Or,Rt=-1,Ft=V.length,Kt=P;for(P===V&&(V=Zr(V)),st&&(Kt=Pe(P,nn(st)));++Rt<Ft;)for(var ee=0,ve=V[Rt],ye=st?st(ve):ve;(ee=Et(Kt,ye,ee,bt))>-1;)Kt!==P&&Ui.call(Kt,ee,1),Ui.call(P,ee,1);return P}function os(P,V){for(var st=P?V.length:0,bt=st-1;st--;){var Et=V[st];if(st==bt||Et!==Rt){var Rt=Et;Rn(Et)?Ui.call(P,Et,1):Vo(P,Et)}}return P}function $o(P,V){return P+Hi(qa()*(V-P+1))}function zo(P,V){var st="";if(!P||V<1||V>S)return st;do V%2&&(st+=P),(V=Hi(V/2))&&(P+=P);while(V);return st}function sr(P,V){return sa(Bs(P,V,rn),P+"")}function tc(P){return $a(hi(P))}function ec(P,V){var st=hi(P);return uo(st,Jn(V,0,st.length))}function Ei(P,V,st,bt){if(!Nr(P))return P;for(var Et=-1,Rt=(V=Un(V,P)).length,Ft=Rt-1,Kt=P;Kt!=null&&++Et<Rt;){var ee=Mn(V[Et]),ve=st;if(ee==="__proto__"||ee==="constructor"||ee==="prototype")return P;if(Et!=Ft){var ye=Kt[ee];(ve=bt?bt(ye,ee,Kt):O)===O&&(ve=Nr(ye)?ye:Rn(V[Et+1])?[]:{})}wi(Kt,ee,ve),Kt=Kt[ee]}return P}var as=Vi?function(P,V){return Vi.set(P,V),P}:rn,rc=$i?function(P,V){return $i(P,"toString",{configurable:!0,enumerable:!1,value:ba(V),writable:!0})}:rn;function nc(P){return uo(hi(P))}function fn(P,V,st){var bt=-1,Et=P.length;V<0&&(V=-V>Et?0:Et+V),(st=st>Et?Et:st)<0&&(st+=Et),Et=V>st?0:st-V>>>0,V>>>=0;for(var Rt=Te(Et);++bt<Et;)Rt[bt]=P[bt+V];return Rt}function ic(P,V){var st;return qn(P,function(bt,Et,Rt){return!(st=V(bt,Et,Rt))}),!!st}function Yi(P,V,st){var bt=0,Et=P==null?bt:P.length;if(typeof V=="number"&&V==V&&Et<=2147483647){for(;bt<Et;){var Rt=bt+Et>>>1,Ft=P[Rt];Ft!==null&&!sn(Ft)&&(st?Ft<=V:Ft<V)?bt=Rt+1:Et=Rt}return Et}return Ho(P,V,rn,st)}function Ho(P,V,st,bt){var Et=0,Rt=P==null?0:P.length;if(Rt===0)return 0;for(var Ft=(V=st(V))!=V,Kt=V===null,ee=sn(V),ve=V===O;Et<Rt;){var ye=Hi((Et+Rt)/2),Se=st(P[ye]),Ie=Se!==O,Be=Se===null,ze=Se==Se,_e=sn(Se);if(Ft)var ke=bt||ze;else ke=ve?ze&&(bt||Ie):Kt?ze&&Ie&&(bt||!Be):ee?ze&&Ie&&!Be&&(bt||!_e):!Be&&!_e&&(bt?Se<=V:Se<V);ke?Et=ye+1:Rt=ye}return Vr(Rt,4294967294)}function ss(P,V){for(var st=-1,bt=P.length,Et=0,Rt=[];++st<bt;){var Ft=P[st],Kt=V?V(Ft):Ft;if(!st||!vn(Kt,ee)){var ee=Kt;Rt[Et++]=Ft===0?0:Ft}}return Rt}function us(P){return typeof P=="number"?P:sn(P)?B:+P}function an(P){if(typeof P=="string")return P;if(ir(P))return Pe(P,an)+"";if(sn(P))return Fa?Fa.call(P):"";var V=P+"";return V=="0"&&1/P==-1/0?"-0":V}function Fn(P,V,st){var bt=-1,Et=Xe,Rt=P.length,Ft=!0,Kt=[],ee=Kt;if(st)Ft=!1,Et=ar;else if(Rt>=200){var ve=V?null:ac(P);if(ve)return Ri(ve);Ft=!1,Et=di,ee=new Wn}else ee=V?[]:Kt;t:for(;++bt<Rt;){var ye=P[bt],Se=V?V(ye):ye;if(ye=st||ye!==0?ye:0,Ft&&Se==Se){for(var Ie=ee.length;Ie--;)if(ee[Ie]===Se)continue t;V&&ee.push(Se),Kt.push(ye)}else Et(ee,Se,st)||(ee!==Kt&&ee.push(Se),Kt.push(ye))}return Kt}function Vo(P,V){return(P=Ps(P,V=Un(V,P)))==null||delete P[Mn(pn(V))]}function cs(P,V,st,bt){return Ei(P,V,st(Qn(P,V)),bt)}function Zi(P,V,st,bt){for(var Et=P.length,Rt=bt?Et:-1;(bt?Rt--:++Rt<Et)&&V(P[Rt],Rt,P););return st?fn(P,bt?0:Rt,bt?Rt+1:Et):fn(P,bt?Rt+1:0,bt?Et:Rt)}function ls(P,V){var st=P;return st instanceof ur&&(st=st.value()),Oe(V,function(bt,Et){return Et.func.apply(Et.thisArg,Cr([bt],Et.args))},st)}function Ko(P,V,st){var bt=P.length;if(bt<2)return bt?Fn(P[0]):[];for(var Et=-1,Rt=Te(bt);++Et<bt;)for(var Ft=P[Et],Kt=-1;++Kt<bt;)Kt!=Et&&(Rt[Et]=_i(Rt[Et]||Ft,P[Kt],V,st));return Fn(zr(Rt,1),V,st)}function hs(P,V,st){for(var bt=-1,Et=P.length,Rt=V.length,Ft={};++bt<Et;){var Kt=bt<Rt?V[bt]:O;st(Ft,P[bt],Kt)}return Ft}function Wo(P){return Pr(P)?P:[]}function Jo(P){return typeof P=="function"?P:rn}function Un(P,V){return ir(P)?P:na(P,V)?[P]:Fs(Ar(P))}var oc=sr;function $n(P,V,st){var bt=P.length;return st=st===O?bt:st,!V&&st>=bt?P:fn(P,V,st)}var fs=Cu||function(P){return Lr.clearTimeout(P)};function ps(P,V){if(V)return P.slice();var st=P.length,bt=Ca?Ca(st):new P.constructor(st);return P.copy(bt),bt}function Qo(P){var V=new P.constructor(P.byteLength);return new qi(V).set(new qi(P)),V}function ds(P,V){var st=V?Qo(P.buffer):P.buffer;return new P.constructor(st,P.byteOffset,P.length)}function ms(P,V){if(P!==V){var st=P!==O,bt=P===null,Et=P==P,Rt=sn(P),Ft=V!==O,Kt=V===null,ee=V==V,ve=sn(V);if(!Kt&&!ve&&!Rt&&P>V||Rt&&Ft&&ee&&!Kt&&!ve||bt&&Ft&&ee||!st&&ee||!Et)return 1;if(!bt&&!Rt&&!ve&&P<V||ve&&st&&Et&&!bt&&!Rt||Kt&&st&&Et||!Ft&&Et||!ee)return-1}return 0}function gs(P,V,st,bt){for(var Et=-1,Rt=P.length,Ft=st.length,Kt=-1,ee=V.length,ve=Fr(Rt-Ft,0),ye=Te(ee+ve),Se=!bt;++Kt<ee;)ye[Kt]=V[Kt];for(;++Et<Ft;)(Se||Et<Rt)&&(ye[st[Et]]=P[Et]);for(;ve--;)ye[Kt++]=P[Et++];return ye}function vs(P,V,st,bt){for(var Et=-1,Rt=P.length,Ft=-1,Kt=st.length,ee=-1,ve=V.length,ye=Fr(Rt-Kt,0),Se=Te(ye+ve),Ie=!bt;++Et<ye;)Se[Et]=P[Et];for(var Be=Et;++ee<ve;)Se[Be+ee]=V[ee];for(;++Ft<Kt;)(Ie||Et<Rt)&&(Se[Be+st[Ft]]=P[Et++]);return Se}function Zr(P,V){var st=-1,bt=P.length;for(V||(V=Te(bt));++st<bt;)V[st]=P[st];return V}function _n(P,V,st,bt){var Et=!st;st||(st={});for(var Rt=-1,Ft=V.length;++Rt<Ft;){var Kt=V[Rt],ee=bt?bt(st[Kt],P[Kt],Kt,st,P):O;ee===O&&(ee=P[Kt]),Et?Tn(st,Kt,ee):wi(st,Kt,ee)}return st}function eo(P,V){return function(st,bt){var Et=ir(st)?pe:Gu,Rt=V?V():{};return Et(st,P,Ke(bt,2),Rt)}}function si(P){return sr(function(V,st){var bt=-1,Et=st.length,Rt=Et>1?st[Et-1]:O,Ft=Et>2?st[2]:O;for(Rt=P.length>3&&typeof Rt=="function"?(Et--,Rt):O,Ft&&Gr(st[0],st[1],Ft)&&(Rt=Et<3?O:Rt,Et=1),V=Ir(V);++bt<Et;){var Kt=st[bt];Kt&&P(V,Kt,bt,Rt)}return V})}function ys(P,V){return function(st,bt){if(st==null)return st;if(!tn(st))return P(st,bt);for(var Et=st.length,Rt=V?Et:-1,Ft=Ir(st);(V?Rt--:++Rt<Et)&&bt(Ft[Rt],Rt,Ft)!==!1;);return st}}function bs(P){return function(V,st,bt){for(var Et=-1,Rt=Ir(V),Ft=bt(V),Kt=Ft.length;Kt--;){var ee=Ft[P?Kt:++Et];if(st(Rt[ee],ee,Rt)===!1)break}return V}}function ws(P){return function(V){var st=ei(V=Ar(V))?mn(V):O,bt=st?st[0]:V.charAt(0),Et=st?$n(st,1).join(""):V.slice(1);return bt[P]()+Et}}function ui(P){return function(V){return Oe(vu(gu(V).replace(yr,"")),P,"")}}function Si(P){return function(){var V=arguments;switch(V.length){case 0:return new P;case 1:return new P(V[0]);case 2:return new P(V[0],V[1]);case 3:return new P(V[0],V[1],V[2]);case 4:return new P(V[0],V[1],V[2],V[3]);case 5:return new P(V[0],V[1],V[2],V[3],V[4]);case 6:return new P(V[0],V[1],V[2],V[3],V[4],V[5]);case 7:return new P(V[0],V[1],V[2],V[3],V[4],V[5],V[6])}var st=ai(P.prototype),bt=P.apply(st,V);return Nr(bt)?bt:st}}function _s(P){return function(V,st,bt){var Et=Ir(V);if(!tn(V)){var Rt=Ke(st,3);V=$r(V),st=function(Kt){return Rt(Et[Kt],Kt,Et)}}var Ft=P(V,st,bt);return Ft>-1?Et[Rt?V[Ft]:Ft]:O}}function Ms(P){return In(function(V){var st=V.length,bt=st,Et=ln.prototype.thru;for(P&&V.reverse();bt--;){var Rt=V[bt];if(typeof Rt!="function")throw new cn(I);if(Et&&!Ft&&ao(Rt)=="wrapper")var Ft=new ln([],!0)}for(bt=Ft?bt:st;++bt<st;){var Kt=ao(Rt=V[bt]),ee=Kt=="wrapper"?ta(Rt):O;Ft=ee&&ia(ee[0])&&ee[1]==424&&!ee[4].length&&ee[9]==1?Ft[ao(ee[0])].apply(Ft,ee[3]):Rt.length==1&&ia(Rt)?Ft[Kt]():Ft.thru(Rt)}return function(){var ve=arguments,ye=ve[0];if(Ft&&ve.length==1&&ir(ye))return Ft.plant(ye).value();for(var Se=0,Ie=st?V[Se].apply(this,ve):ye;++Se<st;)Ie=V[Se].call(this,Ie);return Ie}})}function ro(P,V,st,bt,Et,Rt,Ft,Kt,ee,ve){var ye=V&M,Se=1&V,Ie=2&V,Be=24&V,ze=512&V,_e=Ie?O:Si(P);return function ke(){for(var Ue=arguments.length,Ae=Te(Ue),nr=Ue;nr--;)Ae[nr]=arguments[nr];if(Be)var Ze=ci(ke),Sr=function(Dr,Xr){for(var Rr=Dr.length,Wr=0;Rr--;)Dr[Rr]===Xr&&++Wr;return Wr}(Ae,Ze);if(bt&&(Ae=gs(Ae,bt,Et,Be)),Rt&&(Ae=vs(Ae,Rt,Ft,Be)),Ue-=Sr,Be&&Ue<ve){var Fe=Dn(Ae,Ze);return Ss(P,V,ro,ke.placeholder,st,Ae,Fe,Kt,ee,ve-Ue)}var Je=Se?st:this,Ur=Ie?Je[P]:P;return Ue=Ae.length,Kt?Ae=function(Dr,Xr){for(var Rr=Dr.length,Wr=Vr(Xr.length,Rr),xn=Zr(Dr);Wr--;){var Hn=Xr[Wr];Dr[Wr]=Rn(Hn,Rr)?xn[Hn]:O}return Dr}(Ae,Kt):ze&&Ue>1&&Ae.reverse(),ye&&ee<Ue&&(Ae.length=ee),this&&this!==Lr&&this instanceof ke&&(Ur=_e||Si(Ur)),Ur.apply(Je,Ae)}}function xs(P,V){return function(st,bt){return function(Et,Rt,Ft,Kt){return wn(Et,function(ee,ve,ye){Rt(Kt,Ft(ee),ve,ye)}),Kt}(st,P,V(bt),{})}}function no(P,V){return function(st,bt){var Et;if(st===O&&bt===O)return V;if(st!==O&&(Et=st),bt!==O){if(Et===O)return bt;typeof st=="string"||typeof bt=="string"?(st=an(st),bt=an(bt)):(st=us(st),bt=us(bt)),Et=P(st,bt)}return Et}}function Go(P){return In(function(V){return V=Pe(V,nn(Ke())),sr(function(st){var bt=this;return P(V,function(Et){return Xt(Et,bt,st)})})})}function io(P,V){var st=(V=V===O?" ":an(V)).length;if(st<2)return st?zo(V,P):V;var bt=zo(V,zi(P/ri(V)));return ei(V)?$n(mn(bt),0,P).join(""):bt.slice(0,P)}function Es(P){return function(V,st,bt){return bt&&typeof bt!="number"&&Gr(V,st,bt)&&(st=bt=O),V=Nn(V),st===O?(st=V,V=0):st=Nn(st),function(Et,Rt,Ft,Kt){for(var ee=-1,ve=Fr(zi((Rt-Et)/(Ft||1)),0),ye=Te(ve);ve--;)ye[Kt?ve:++ee]=Et,Et+=Ft;return ye}(V,st,bt=bt===O?V<st?1:-1:Nn(bt),P)}}function oo(P){return function(V,st){return typeof V=="string"&&typeof st=="string"||(V=dn(V),st=dn(st)),P(V,st)}}function Ss(P,V,st,bt,Et,Rt,Ft,Kt,ee,ve){var ye=8&V;V|=ye?N:64,4&(V&=~(ye?64:N))||(V&=-4);var Se=[P,V,Et,ye?Rt:O,ye?Ft:O,ye?O:Rt,ye?O:Ft,Kt,ee,ve],Ie=st.apply(O,Se);return ia(P)&&Ds(Ie,Se),Ie.placeholder=bt,Ls(Ie,P,V)}function Xo(P){var V=bn[P];return function(st,bt){if(st=dn(st),(bt=bt==null?0:Vr(or(bt),292))&&La(st)){var Et=(Ar(st)+"e").split("e");return+((Et=(Ar(V(Et[0]+"e"+(+Et[1]+bt)))+"e").split("e"))[0]+"e"+(+Et[1]-bt))}return V(st)}}var ac=ii&&1/Ri(new ii([,-0]))[1]==T?function(P){return new ii(P)}:Ma;function ks(P){return function(V){var st=Kr(V);return st==et?Ao(V):st==t?ku(V):function(bt,Et){return Pe(Et,function(Rt){return[Rt,bt[Rt]]})}(V,P(V))}}function On(P,V,st,bt,Et,Rt,Ft,Kt){var ee=2&V;if(!ee&&typeof P!="function")throw new cn(I);var ve=bt?bt.length:0;if(ve||(V&=-97,bt=Et=O),Ft=Ft===O?Ft:Fr(or(Ft),0),Kt=Kt===O?Kt:or(Kt),ve-=Et?Et.length:0,64&V){var ye=bt,Se=Et;bt=Et=O}var Ie=ee?O:ta(P),Be=[P,V,st,bt,Et,ye,Se,Rt,Ft,Kt];if(Ie&&function(_e,ke){var Ue=_e[1],Ae=ke[1],nr=Ue|Ae,Ze=nr<131,Sr=Ae==M&&Ue==8||Ae==M&&Ue==256&&_e[7].length<=ke[8]||Ae==384&&ke[7].length<=ke[8]&&Ue==8;if(!Ze&&!Sr)return _e;1&Ae&&(_e[2]=ke[2],nr|=1&Ue?0:4);var Fe=ke[3];if(Fe){var Je=_e[3];_e[3]=Je?gs(Je,Fe,ke[4]):Fe,_e[4]=Je?Dn(_e[3],p):ke[4]}(Fe=ke[5])&&(Je=_e[5],_e[5]=Je?vs(Je,Fe,ke[6]):Fe,_e[6]=Je?Dn(_e[5],p):ke[6]),(Fe=ke[7])&&(_e[7]=Fe),Ae&M&&(_e[8]=_e[8]==null?ke[8]:Vr(_e[8],ke[8])),_e[9]==null&&(_e[9]=ke[9]),_e[0]=ke[0],_e[1]=nr}(Be,Ie),P=Be[0],V=Be[1],st=Be[2],bt=Be[3],Et=Be[4],!(Kt=Be[9]=Be[9]===O?ee?0:P.length:Fr(Be[9]-ve,0))&&24&V&&(V&=-25),V&&V!=1)ze=V==8||V==16?function(_e,ke,Ue){var Ae=Si(_e);return function nr(){for(var Ze=arguments.length,Sr=Te(Ze),Fe=Ze,Je=ci(nr);Fe--;)Sr[Fe]=arguments[Fe];var Ur=Ze<3&&Sr[0]!==Je&&Sr[Ze-1]!==Je?[]:Dn(Sr,Je);return(Ze-=Ur.length)<Ue?Ss(_e,ke,ro,nr.placeholder,O,Sr,Ur,O,O,Ue-Ze):Xt(this&&this!==Lr&&this instanceof nr?Ae:_e,this,Sr)}}(P,V,Kt):V!=N&&V!=33||Et.length?ro.apply(O,Be):function(_e,ke,Ue,Ae){var nr=1&ke,Ze=Si(_e);return function Sr(){for(var Fe=-1,Je=arguments.length,Ur=-1,Dr=Ae.length,Xr=Te(Dr+Je),Rr=this&&this!==Lr&&this instanceof Sr?Ze:_e;++Ur<Dr;)Xr[Ur]=Ae[Ur];for(;Je--;)Xr[Ur++]=arguments[++Fe];return Xt(Rr,nr?Ue:this,Xr)}}(P,V,st,bt);else var ze=function(_e,ke,Ue){var Ae=1&ke,nr=Si(_e);return function Ze(){return(this&&this!==Lr&&this instanceof Ze?nr:_e).apply(Ae?Ue:this,arguments)}}(P,V,st);return Ls((Ie?as:Ds)(ze,Be),P,V)}function As(P,V,st,bt){return P===O||vn(P,ni[st])&&!Tr.call(bt,st)?V:P}function Ts(P,V,st,bt,Et,Rt){return Nr(P)&&Nr(V)&&(Rt.set(V,P),Xi(P,V,O,Ts,Rt),Rt.delete(V)),P}function sc(P){return Ti(P)?O:P}function Os(P,V,st,bt,Et,Rt){var Ft=1&st,Kt=P.length,ee=V.length;if(Kt!=ee&&!(Ft&&ee>Kt))return!1;var ve=Rt.get(P),ye=Rt.get(V);if(ve&&ye)return ve==V&&ye==P;var Se=-1,Ie=!0,Be=2&st?new Wn:O;for(Rt.set(P,V),Rt.set(V,P);++Se<Kt;){var ze=P[Se],_e=V[Se];if(bt)var ke=Ft?bt(_e,ze,Se,V,P,Rt):bt(ze,_e,Se,P,V,Rt);if(ke!==O){if(ke)continue;Ie=!1;break}if(Be){if(!Ce(V,function(Ue,Ae){if(!di(Be,Ae)&&(ze===Ue||Et(ze,Ue,st,bt,Rt)))return Be.push(Ae)})){Ie=!1;break}}else if(ze!==_e&&!Et(ze,_e,st,bt,Rt)){Ie=!1;break}}return Rt.delete(P),Rt.delete(V),Ie}function In(P){return sa(Bs(P,O,Hs),P+"")}function Yo(P){return Qa(P,$r,ra)}function Zo(P){return Qa(P,en,Is)}var ta=Vi?function(P){return Vi.get(P)}:Ma;function ao(P){for(var V=P.name+"",st=oi[V],bt=Tr.call(oi,V)?st.length:0;bt--;){var Et=st[bt],Rt=Et.func;if(Rt==null||Rt==P)return Et.name}return V}function ci(P){return(Tr.call(Tt,"placeholder")?Tt:P).placeholder}function Ke(){var P=Tt.iteratee||wa;return P=P===wa?Ya:P,arguments.length?P(arguments[0],arguments[1]):P}function so(P,V){var st,bt,Et=P.__data__;return((bt=typeof(st=V))=="string"||bt=="number"||bt=="symbol"||bt=="boolean"?st!=="__proto__":st===null)?Et[typeof V=="string"?"string":"hash"]:Et.map}function ea(P){for(var V=$r(P),st=V.length;st--;){var bt=V[st],Et=P[bt];V[st]=[bt,Et,Ns(Et)]}return V}function Gn(P,V){var st=function(bt,Et){return bt==null?O:bt[Et]}(P,V);return Xa(st)?st:O}var ra=Oo?function(P){return P==null?[]:(P=Ir(P),Ye(Oo(P),function(V){return Pa.call(P,V)}))}:xa,Is=Oo?function(P){for(var V=[];P;)Cr(V,ra(P)),P=Fi(P);return V}:xa,Kr=Qr;function Rs(P,V,st){for(var bt=-1,Et=(V=Un(V,P)).length,Rt=!1;++bt<Et;){var Ft=Mn(V[bt]);if(!(Rt=P!=null&&st(P,Ft)))break;P=P[Ft]}return Rt||++bt!=Et?Rt:!!(Et=P==null?0:P.length)&&mo(Et)&&Rn(Ft,Et)&&(ir(P)||Yn(P))}function js(P){return typeof P.constructor!="function"||ki(P)?{}:ai(Fi(P))}function uc(P){return ir(P)||Yn(P)||!!(Da&&P&&P[Da])}function Rn(P,V){var st=typeof P;return!!(V=V??S)&&(st=="number"||st!="symbol"&&Vt.test(P))&&P>-1&&P%1==0&&P<V}function Gr(P,V,st){if(!Nr(st))return!1;var bt=typeof V;return!!(bt=="number"?tn(st)&&Rn(V,st.length):bt=="string"&&V in st)&&vn(st[V],P)}function na(P,V){if(ir(P))return!1;var st=typeof P;return!(st!="number"&&st!="symbol"&&st!="boolean"&&P!=null&&!sn(P))||Dt.test(P)||!Qt.test(P)||V!=null&&P in Ir(V)}function ia(P){var V=ao(P),st=Tt[V];if(typeof st!="function"||!(V in ur.prototype))return!1;if(P===st)return!0;var bt=ta(st);return!!bt&&P===bt[0]}(Io&&Kr(new Io(new ArrayBuffer(1)))!=v||gi&&Kr(new gi)!=et||Ro&&Kr(Ro.resolve())!=ct||ii&&Kr(new ii)!=t||vi&&Kr(new vi)!=a)&&(Kr=function(P){var V=Qr(P),st=V==ut?P.constructor:O,bt=st?Xn(st):"";if(bt)switch(bt){case zu:return v;case Hu:return et;case Vu:return ct;case Ku:return t;case Wu:return a}return V});var cc=Bi?jn:Ea;function ki(P){var V=P&&P.constructor;return P===(typeof V=="function"&&V.prototype||ni)}function Ns(P){return P==P&&!Nr(P)}function Cs(P,V){return function(st){return st!=null&&st[P]===V&&(V!==O||P in Ir(st))}}function Bs(P,V,st){return V=Fr(V===O?P.length-1:V,0),function(){for(var bt=arguments,Et=-1,Rt=Fr(bt.length-V,0),Ft=Te(Rt);++Et<Rt;)Ft[Et]=bt[V+Et];Et=-1;for(var Kt=Te(V+1);++Et<V;)Kt[Et]=bt[Et];return Kt[V]=st(Ft),Xt(P,this,Kt)}}function Ps(P,V){return V.length<2?P:Qn(P,fn(V,0,-1))}function oa(P,V){if((V!=="constructor"||typeof P[V]!="function")&&V!="__proto__")return P[V]}var Ds=qs(as),Ai=Pu||function(P,V){return Lr.setTimeout(P,V)},sa=qs(rc);function Ls(P,V,st){var bt=V+"";return sa(P,function(Et,Rt){var Ft=Rt.length;if(!Ft)return Et;var Kt=Ft-1;return Rt[Kt]=(Ft>1?"& ":"")+Rt[Kt],Rt=Rt.join(Ft>2?", ":" "),Et.replace(xt,`{
42
+ /* [wrapped with `+Rt+`] */
43
+ `)}(bt,function(Et,Rt){return fe(_,function(Ft){var Kt="_."+Ft[0];Rt&Ft[1]&&!Xe(Et,Kt)&&Et.push(Kt)}),Et.sort()}(function(Et){var Rt=Et.match(kt);return Rt?Rt[1].split($t):[]}(bt),st)))}function qs(P){var V=0,st=0;return function(){var bt=Fu(),Et=16-(bt-st);if(st=bt,Et>0){if(++V>=800)return arguments[0]}else V=0;return P.apply(O,arguments)}}function uo(P,V){var st=-1,bt=P.length,Et=bt-1;for(V=V===O?bt:V;++st<V;){var Rt=$o(st,Et),Ft=P[Rt];P[Rt]=P[st],P[st]=Ft}return P.length=V,P}var ua,ca,Fs=(ua=fo(function(P){var V=[];return P.charCodeAt(0)===46&&V.push(""),P.replace(zt,function(st,bt,Et,Rt){V.push(Et?Rt.replace(dt,"$1"):bt||st)}),V},function(P){return ca.size===500&&ca.clear(),P}),ca=ua.cache,ua);function Mn(P){if(typeof P=="string"||sn(P))return P;var V=P+"";return V=="0"&&1/P==-1/0?"-0":V}function Xn(P){if(P!=null){try{return Pi.call(P)}catch{}try{return P+""}catch{}}return""}function Us(P){if(P instanceof ur)return P.clone();var V=new ln(P.__wrapped__,P.__chain__);return V.__actions__=Zr(P.__actions__),V.__index__=P.__index__,V.__values__=P.__values__,V}var lc=sr(function(P,V){return Pr(P)?_i(P,zr(V,1,Pr,!0)):[]}),hc=sr(function(P,V){var st=pn(V);return Pr(st)&&(st=O),Pr(P)?_i(P,zr(V,1,Pr,!0),Ke(st,2)):[]}),fc=sr(function(P,V){var st=pn(V);return Pr(st)&&(st=O),Pr(P)?_i(P,zr(V,1,Pr,!0),O,st):[]});function $s(P,V,st){var bt=P==null?0:P.length;if(!bt)return-1;var Et=st==null?0:or(st);return Et<0&&(Et=Fr(bt+Et,0)),jr(P,Ke(V,3),Et)}function zs(P,V,st){var bt=P==null?0:P.length;if(!bt)return-1;var Et=bt-1;return st!==O&&(Et=or(st),Et=st<0?Fr(bt+Et,0):Vr(Et,bt-1)),jr(P,Ke(V,3),Et,!0)}function Hs(P){return P!=null&&P.length?zr(P,1):[]}function Vs(P){return P&&P.length?P[0]:O}var pc=sr(function(P){var V=Pe(P,Wo);return V.length&&V[0]===P[0]?Do(V):[]}),dc=sr(function(P){var V=pn(P),st=Pe(P,Wo);return V===pn(st)?V=O:st.pop(),st.length&&st[0]===P[0]?Do(st,Ke(V,2)):[]}),mc=sr(function(P){var V=pn(P),st=Pe(P,Wo);return(V=typeof V=="function"?V:O)&&st.pop(),st.length&&st[0]===P[0]?Do(st,O,V):[]});function pn(P){var V=P==null?0:P.length;return V?P[V-1]:O}var gc=sr(Ks);function Ks(P,V){return P&&P.length&&V&&V.length?Uo(P,V):P}var vc=In(function(P,V){var st=P==null?0:P.length,bt=No(P,V);return os(P,Pe(V,function(Et){return Rn(Et,st)?+Et:Et}).sort(ms)),bt});function la(P){return P==null?P:$u.call(P)}var yc=sr(function(P){return Fn(zr(P,1,Pr,!0))}),bc=sr(function(P){var V=pn(P);return Pr(V)&&(V=O),Fn(zr(P,1,Pr,!0),Ke(V,2))}),wc=sr(function(P){var V=pn(P);return V=typeof V=="function"?V:O,Fn(zr(P,1,Pr,!0),O,V)});function ha(P){if(!P||!P.length)return[];var V=0;return P=Ye(P,function(st){if(Pr(st))return V=Fr(st.length,V),!0}),So(V,function(st){return Pe(P,Sn(st))})}function Ws(P,V){if(!P||!P.length)return[];var st=ha(P);return V==null?st:Pe(st,function(bt){return Xt(V,O,bt)})}var _c=sr(function(P,V){return Pr(P)?_i(P,V):[]}),Mc=sr(function(P){return Ko(Ye(P,Pr))}),xc=sr(function(P){var V=pn(P);return Pr(V)&&(V=O),Ko(Ye(P,Pr),Ke(V,2))}),Ec=sr(function(P){var V=pn(P);return V=typeof V=="function"?V:O,Ko(Ye(P,Pr),O,V)}),Sc=sr(ha),kc=sr(function(P){var V=P.length,st=V>1?P[V-1]:O;return st=typeof st=="function"?(P.pop(),st):O,Ws(P,st)});function Js(P){var V=Tt(P);return V.__chain__=!0,V}function co(P,V){return V(P)}var Ac=In(function(P){var V=P.length,st=V?P[0]:0,bt=this.__wrapped__,Et=function(Rt){return No(Rt,P)};return!(V>1||this.__actions__.length)&&bt instanceof ur&&Rn(st)?((bt=bt.slice(st,+st+(V?1:0))).__actions__.push({func:co,args:[Et],thisArg:O}),new ln(bt,this.__chain__).thru(function(Rt){return V&&!Rt.length&&Rt.push(O),Rt})):this.thru(Et)}),Tc=eo(function(P,V,st){Tr.call(P,st)?++P[st]:Tn(P,st,1)}),Oc=_s($s),Ic=_s(zs);function Qs(P,V){return(ir(P)?fe:qn)(P,Ke(V,3))}function Gs(P,V){return(ir(P)?xe:Ka)(P,Ke(V,3))}var Rc=eo(function(P,V,st){Tr.call(P,st)?P[st].push(V):Tn(P,st,[V])}),jc=sr(function(P,V,st){var bt=-1,Et=typeof V=="function",Rt=tn(P)?Te(P.length):[];return qn(P,function(Ft){Rt[++bt]=Et?Xt(V,Ft,st):Mi(Ft,V,st)}),Rt}),Nc=eo(function(P,V,st){Tn(P,st,V)});function lo(P,V){return(ir(P)?Pe:Za)(P,Ke(V,3))}var Cc=eo(function(P,V,st){P[st?0:1].push(V)},function(){return[[],[]]}),Bc=sr(function(P,V){if(P==null)return[];var st=V.length;return st>1&&Gr(P,V[0],V[1])?V=[]:st>2&&Gr(V[0],V[1],V[2])&&(V=[V[0]]),ns(P,zr(V,1),[])}),ho=Bu||function(){return Lr.Date.now()};function Xs(P,V,st){return V=st?O:V,V=P&&V==null?P.length:V,On(P,M,O,O,O,O,V)}function Ys(P,V){var st;if(typeof V!="function")throw new cn(I);return P=or(P),function(){return--P>0&&(st=V.apply(this,arguments)),P<=1&&(V=O),st}}var fa=sr(function(P,V,st){var bt=1;if(st.length){var Et=Dn(st,ci(fa));bt|=N}return On(P,bt,V,st,Et)}),Zs=sr(function(P,V,st){var bt=3;if(st.length){var Et=Dn(st,ci(Zs));bt|=N}return On(V,bt,P,st,Et)});function tu(P,V,st){var bt,Et,Rt,Ft,Kt,ee,ve=0,ye=!1,Se=!1,Ie=!0;if(typeof P!="function")throw new cn(I);function Be(Ae){var nr=bt,Ze=Et;return bt=Et=O,ve=Ae,Ft=P.apply(Ze,nr)}function ze(Ae){var nr=Ae-ee;return ee===O||nr>=V||nr<0||Se&&Ae-ve>=Rt}function _e(){var Ae=ho();if(ze(Ae))return ke(Ae);Kt=Ai(_e,function(nr){var Ze=V-(nr-ee);return Se?Vr(Ze,Rt-(nr-ve)):Ze}(Ae))}function ke(Ae){return Kt=O,Ie&&bt?Be(Ae):(bt=Et=O,Ft)}function Ue(){var Ae=ho(),nr=ze(Ae);if(bt=arguments,Et=this,ee=Ae,nr){if(Kt===O)return function(Ze){return ve=Ze,Kt=Ai(_e,V),ye?Be(Ze):Ft}(ee);if(Se)return fs(Kt),Kt=Ai(_e,V),Be(ee)}return Kt===O&&(Kt=Ai(_e,V)),Ft}return V=dn(V)||0,Nr(st)&&(ye=!!st.leading,Rt=(Se="maxWait"in st)?Fr(dn(st.maxWait)||0,V):Rt,Ie="trailing"in st?!!st.trailing:Ie),Ue.cancel=function(){Kt!==O&&fs(Kt),ve=0,bt=ee=Et=Kt=O},Ue.flush=function(){return Kt===O?Ft:ke(ho())},Ue}var Pc=sr(function(P,V){return Va(P,1,V)}),Dc=sr(function(P,V,st){return Va(P,dn(V)||0,st)});function fo(P,V){if(typeof P!="function"||V!=null&&typeof V!="function")throw new cn(I);var st=function(){var bt=arguments,Et=V?V.apply(this,bt):bt[0],Rt=st.cache;if(Rt.has(Et))return Rt.get(Et);var Ft=P.apply(this,bt);return st.cache=Rt.set(Et,Ft)||Rt,Ft};return st.cache=new(fo.Cache||An),st}function po(P){if(typeof P!="function")throw new cn(I);return function(){var V=arguments;switch(V.length){case 0:return!P.call(this);case 1:return!P.call(this,V[0]);case 2:return!P.call(this,V[0],V[1]);case 3:return!P.call(this,V[0],V[1],V[2])}return!P.apply(this,V)}}fo.Cache=An;var Lc=oc(function(P,V){var st=(V=V.length==1&&ir(V[0])?Pe(V[0],nn(Ke())):Pe(zr(V,1),nn(Ke()))).length;return sr(function(bt){for(var Et=-1,Rt=Vr(bt.length,st);++Et<Rt;)bt[Et]=V[Et].call(this,bt[Et]);return Xt(P,this,bt)})}),pa=sr(function(P,V){var st=Dn(V,ci(pa));return On(P,N,O,V,st)}),eu=sr(function(P,V){var st=Dn(V,ci(eu));return On(P,64,O,V,st)}),qc=In(function(P,V){return On(P,256,O,O,O,V)});function vn(P,V){return P===V||P!=P&&V!=V}var Fc=oo(Po),Uc=oo(function(P,V){return P>=V}),Yn=Ga(function(){return arguments}())?Ga:function(P){return Br(P)&&Tr.call(P,"callee")&&!Pa.call(P,"callee")},ir=Te.isArray,$c=Ii?nn(Ii):function(P){return Br(P)&&Qr(P)==r};function tn(P){return P!=null&&mo(P.length)&&!jn(P)}function Pr(P){return Br(P)&&tn(P)}var zn=Du||Ea,zc=Bt?nn(Bt):function(P){return Br(P)&&Qr(P)==H};function da(P){if(!Br(P))return!1;var V=Qr(P);return V==D||V=="[object DOMException]"||typeof P.message=="string"&&typeof P.name=="string"&&!Ti(P)}function jn(P){if(!Nr(P))return!1;var V=Qr(P);return V==Q||V==X||V=="[object AsyncFunction]"||V=="[object Proxy]"}function ru(P){return typeof P=="number"&&P==or(P)}function mo(P){return typeof P=="number"&&P>-1&&P%1==0&&P<=S}function Nr(P){var V=typeof P;return P!=null&&(V=="object"||V=="function")}function Br(P){return P!=null&&typeof P=="object"}var iu=Ot?nn(Ot):function(P){return Br(P)&&Kr(P)==et};function ou(P){return typeof P=="number"||Br(P)&&Qr(P)==nt}function Ti(P){if(!Br(P)||Qr(P)!=ut)return!1;var V=Fi(P);if(V===null)return!0;var st=Tr.call(V,"constructor")&&V.constructor;return typeof st=="function"&&st instanceof st&&Pi.call(st)==Ru}var ma=Ct?nn(Ct):function(P){return Br(P)&&Qr(P)==vt},au=Wt?nn(Wt):function(P){return Br(P)&&Kr(P)==t};function go(P){return typeof P=="string"||!ir(P)&&Br(P)&&Qr(P)==h}function sn(P){return typeof P=="symbol"||Br(P)&&Qr(P)==l}var li=le?nn(le):function(P){return Br(P)&&mo(P.length)&&!!Le[Qr(P)]},Hc=oo(Fo),Vc=oo(function(P,V){return P<=V});function su(P){if(!P)return[];if(tn(P))return go(P)?mn(P):Zr(P);if(mi&&P[mi])return function(st){for(var bt,Et=[];!(bt=st.next()).done;)Et.push(bt.value);return Et}(P[mi]());var V=Kr(P);return(V==et?Ao:V==t?Ri:hi)(P)}function Nn(P){return P?(P=dn(P))===T||P===-1/0?17976931348623157e292*(P<0?-1:1):P==P?P:0:P===0?P:0}function or(P){var V=Nn(P),st=V%1;return V==V?st?V-st:V:0}function uu(P){return P?Jn(or(P),0,C):0}function dn(P){if(typeof P=="number")return P;if(sn(P))return B;if(Nr(P)){var V=typeof P.valueOf=="function"?P.valueOf():P;P=Nr(V)?V+"":V}if(typeof P!="string")return P===0?P:+P;P=Ta(P);var st=It.test(P);return st||be.test(P)?yn(P.slice(2),st?2:8):qt.test(P)?B:+P}function cu(P){return _n(P,en(P))}function Ar(P){return P==null?"":an(P)}var Kc=si(function(P,V){if(ki(V)||tn(V))_n(V,$r(V),P);else for(var st in V)Tr.call(V,st)&&wi(P,st,V[st])}),lu=si(function(P,V){_n(V,en(V),P)}),vo=si(function(P,V,st,bt){_n(V,en(V),P,bt)}),Wc=si(function(P,V,st,bt){_n(V,$r(V),P,bt)}),Jc=In(No),Qc=sr(function(P,V){P=Ir(P);var st=-1,bt=V.length,Et=bt>2?V[2]:O;for(Et&&Gr(V[0],V[1],Et)&&(bt=1);++st<bt;)for(var Rt=V[st],Ft=en(Rt),Kt=-1,ee=Ft.length;++Kt<ee;){var ve=Ft[Kt],ye=P[ve];(ye===O||vn(ye,ni[ve])&&!Tr.call(P,ve))&&(P[ve]=Rt[ve])}return P}),Gc=sr(function(P){return P.push(O,Ts),Xt(hu,O,P)});function ga(P,V,st){var bt=P==null?O:Qn(P,V);return bt===O?st:bt}function va(P,V){return P!=null&&Rs(P,V,Zu)}var Xc=xs(function(P,V,st){V!=null&&typeof V.toString!="function"&&(V=Di.call(V)),P[V]=st},ba(rn)),Yc=xs(function(P,V,st){V!=null&&typeof V.toString!="function"&&(V=Di.call(V)),Tr.call(P,V)?P[V].push(st):P[V]=[st]},Ke),Zc=sr(Mi);function $r(P){return tn(P)?Ua(P):qo(P)}function en(P){return tn(P)?Ua(P,!0):function(V){if(!Nr(V))return function(Rt){var Ft=[];if(Rt!=null)for(var Kt in Ir(Rt))Ft.push(Kt);return Ft}(V);var st=ki(V),bt=[];for(var Et in V)(Et!="constructor"||!st&&Tr.call(V,Et))&&bt.push(Et);return bt}(P)}var tl=si(function(P,V,st){Xi(P,V,st)}),hu=si(function(P,V,st,bt){Xi(P,V,st,bt)}),el=In(function(P,V){var st={};if(P==null)return st;var bt=!1;V=Pe(V,function(Rt){return Rt=Un(Rt,P),bt||(bt=Rt.length>1),Rt}),_n(P,Zo(P),st),bt&&(st=hn(st,7,sc));for(var Et=V.length;Et--;)Vo(st,V[Et]);return st}),rl=In(function(P,V){return P==null?{}:function(st,bt){return is(st,bt,function(Et,Rt){return va(st,Rt)})}(P,V)});function fu(P,V){if(P==null)return{};var st=Pe(Zo(P),function(bt){return[bt]});return V=Ke(V),is(P,st,function(bt,Et){return V(bt,Et[0])})}var pu=ks($r),du=ks(en);function hi(P){return P==null?[]:ko(P,$r(P))}var nl=ui(function(P,V,st){return V=V.toLowerCase(),P+(st?mu(V):V)});function mu(P){return ya(Ar(P).toLowerCase())}function gu(P){return(P=Ar(P))&&P.replace(Jt,xu).replace(br,"")}var il=ui(function(P,V,st){return P+(st?"-":"")+V.toLowerCase()}),ol=ui(function(P,V,st){return P+(st?" ":"")+V.toLowerCase()}),al=ws("toLowerCase"),ul=ui(function(P,V,st){return P+(st?"_":"")+V.toLowerCase()}),cl=ui(function(P,V,st){return P+(st?" ":"")+ya(V)}),ll=ui(function(P,V,st){return P+(st?" ":"")+V.toUpperCase()}),ya=ws("toUpperCase");function vu(P,V,st){return P=Ar(P),(V=st?O:V)===O?function(bt){return _r.test(bt)}(P)?function(bt){return bt.match(wr)||[]}(P):function(bt){return bt.match(Pt)||[]}(P):P.match(V)||[]}var yu=sr(function(P,V){try{return Xt(P,O,V)}catch(st){return da(st)?st:new dr(st)}}),hl=In(function(P,V){return fe(V,function(st){st=Mn(st),Tn(P,st,fa(P[st],P))}),P});function ba(P){return function(){return P}}var fl=Ms(),pl=Ms(!0);function rn(P){return P}function wa(P){return Ya(typeof P=="function"?P:hn(P,1))}var dl=sr(function(P,V){return function(st){return Mi(st,P,V)}}),ml=sr(function(P,V){return function(st){return Mi(P,st,V)}});function _a(P,V,st){var bt=$r(V),Et=Gi(V,bt);st!=null||Nr(V)&&(Et.length||!bt.length)||(st=V,V=P,P=this,Et=Gi(V,$r(V)));var Rt=!(Nr(st)&&"chain"in st&&!st.chain),Ft=jn(P);return fe(Et,function(Kt){var ee=V[Kt];P[Kt]=ee,Ft&&(P.prototype[Kt]=function(){var ve=this.__chain__;if(Rt||ve){var ye=P(this.__wrapped__);return(ye.__actions__=Zr(this.__actions__)).push({func:ee,args:arguments,thisArg:P}),ye.__chain__=ve,ye}return ee.apply(P,Cr([this.value()],arguments))})}),P}function Ma(){}var gl=Go(Pe),vl=Go(je),yl=Go(Ce);function bu(P){return na(P)?Sn(Mn(P)):function(V){return function(st){return Qn(st,V)}}(P)}var bl=Es(),wl=Es(!0);function xa(){return[]}function Ea(){return!1}var Sa,_l=no(function(P,V){return P+V},0),Ml=Xo("ceil"),xl=no(function(P,V){return P/V},1),El=Xo("floor"),Sl=no(function(P,V){return P*V},1),kl=Xo("round"),Al=no(function(P,V){return P-V},0);return Tt.after=function(P,V){if(typeof V!="function")throw new cn(I);return P=or(P),function(){if(--P<1)return V.apply(this,arguments)}},Tt.ary=Xs,Tt.assign=Kc,Tt.assignIn=lu,Tt.assignInWith=vo,Tt.assignWith=Wc,Tt.at=Jc,Tt.before=Ys,Tt.bind=fa,Tt.bindAll=hl,Tt.bindKey=Zs,Tt.castArray=function(){if(!arguments.length)return[];var P=arguments[0];return ir(P)?P:[P]},Tt.chain=Js,Tt.chunk=function(P,V,st){V=(st?Gr(P,V,st):V===O)?1:Fr(or(V),0);var bt=P==null?0:P.length;if(!bt||V<1)return[];for(var Et=0,Rt=0,Ft=Te(zi(bt/V));Et<bt;)Ft[Rt++]=fn(P,Et,Et+=V);return Ft},Tt.compact=function(P){for(var V=-1,st=P==null?0:P.length,bt=0,Et=[];++V<st;){var Rt=P[V];Rt&&(Et[bt++]=Rt)}return Et},Tt.concat=function(){var P=arguments.length;if(!P)return[];for(var V=Te(P-1),st=arguments[0],bt=P;bt--;)V[bt-1]=arguments[bt];return Cr(ir(st)?Zr(st):[st],zr(V,1))},Tt.cond=function(P){var V=P==null?0:P.length,st=Ke();return P=V?Pe(P,function(bt){if(typeof bt[1]!="function")throw new cn(I);return[st(bt[0]),bt[1]]}):[],sr(function(bt){for(var Et=-1;++Et<V;){var Rt=P[Et];if(Xt(Rt[0],this,bt))return Xt(Rt[1],this,bt)}})},Tt.conforms=function(P){return function(V){var st=$r(V);return function(bt){return Ha(bt,V,st)}}(hn(P,1))},Tt.constant=ba,Tt.countBy=Tc,Tt.create=function(P,V){var st=ai(P);return V==null?st:za(st,V)},Tt.curry=function P(V,st,bt){var Et=On(V,8,O,O,O,O,O,st=bt?O:st);return Et.placeholder=P.placeholder,Et},Tt.curryRight=function P(V,st,bt){var Et=On(V,16,O,O,O,O,O,st=bt?O:st);return Et.placeholder=P.placeholder,Et},Tt.debounce=tu,Tt.defaults=Qc,Tt.defaultsDeep=Gc,Tt.defer=Pc,Tt.delay=Dc,Tt.difference=lc,Tt.differenceBy=hc,Tt.differenceWith=fc,Tt.drop=function(P,V,st){var bt=P==null?0:P.length;return bt?fn(P,(V=st||V===O?1:or(V))<0?0:V,bt):[]},Tt.dropRight=function(P,V,st){var bt=P==null?0:P.length;return bt?fn(P,0,(V=bt-(V=st||V===O?1:or(V)))<0?0:V):[]},Tt.dropRightWhile=function(P,V){return P&&P.length?Zi(P,Ke(V,3),!0,!0):[]},Tt.dropWhile=function(P,V){return P&&P.length?Zi(P,Ke(V,3),!0):[]},Tt.fill=function(P,V,st,bt){var Et=P==null?0:P.length;return Et?(st&&typeof st!="number"&&Gr(P,V,st)&&(st=0,bt=Et),function(Rt,Ft,Kt,ee){var ve=Rt.length;for((Kt=or(Kt))<0&&(Kt=-Kt>ve?0:ve+Kt),(ee=ee===O||ee>ve?ve:or(ee))<0&&(ee+=ve),ee=Kt>ee?0:uu(ee);Kt<ee;)Rt[Kt++]=Ft;return Rt}(P,V,st,bt)):[]},Tt.filter=function(P,V){return(ir(P)?Ye:Wa)(P,Ke(V,3))},Tt.flatMap=function(P,V){return zr(lo(P,V),1)},Tt.flatMapDeep=function(P,V){return zr(lo(P,V),T)},Tt.flatMapDepth=function(P,V,st){return st=st===O?1:or(st),zr(lo(P,V),st)},Tt.flatten=Hs,Tt.flattenDeep=function(P){return P!=null&&P.length?zr(P,T):[]},Tt.flattenDepth=function(P,V){return P!=null&&P.length?zr(P,V=V===O?1:or(V)):[]},Tt.flip=function(P){return On(P,512)},Tt.flow=fl,Tt.flowRight=pl,Tt.fromPairs=function(P){for(var V=-1,st=P==null?0:P.length,bt={};++V<st;){var Et=P[V];bt[Et[0]]=Et[1]}return bt},Tt.functions=function(P){return P==null?[]:Gi(P,$r(P))},Tt.functionsIn=function(P){return P==null?[]:Gi(P,en(P))},Tt.groupBy=Rc,Tt.initial=function(P){return P!=null&&P.length?fn(P,0,-1):[]},Tt.intersection=pc,Tt.intersectionBy=dc,Tt.intersectionWith=mc,Tt.invert=Xc,Tt.invertBy=Yc,Tt.invokeMap=jc,Tt.iteratee=wa,Tt.keyBy=Nc,Tt.keys=$r,Tt.keysIn=en,Tt.map=lo,Tt.mapKeys=function(P,V){var st={};return V=Ke(V,3),wn(P,function(bt,Et,Rt){Tn(st,V(bt,Et,Rt),bt)}),st},Tt.mapValues=function(P,V){var st={};return V=Ke(V,3),wn(P,function(bt,Et,Rt){Tn(st,Et,V(bt,Et,Rt))}),st},Tt.matches=function(P){return ts(hn(P,1))},Tt.matchesProperty=function(P,V){return es(P,hn(V,1))},Tt.memoize=fo,Tt.merge=tl,Tt.mergeWith=hu,Tt.method=dl,Tt.methodOf=ml,Tt.mixin=_a,Tt.negate=po,Tt.nthArg=function(P){return P=or(P),sr(function(V){return rs(V,P)})},Tt.omit=el,Tt.omitBy=function(P,V){return fu(P,po(Ke(V)))},Tt.once=function(P){return Ys(2,P)},Tt.orderBy=function(P,V,st,bt){return P==null?[]:(ir(V)||(V=V==null?[]:[V]),ir(st=bt?O:st)||(st=st==null?[]:[st]),ns(P,V,st))},Tt.over=gl,Tt.overArgs=Lc,Tt.overEvery=vl,Tt.overSome=yl,Tt.partial=pa,Tt.partialRight=eu,Tt.partition=Cc,Tt.pick=rl,Tt.pickBy=fu,Tt.property=bu,Tt.propertyOf=function(P){return function(V){return P==null?O:Qn(P,V)}},Tt.pull=gc,Tt.pullAll=Ks,Tt.pullAllBy=function(P,V,st){return P&&P.length&&V&&V.length?Uo(P,V,Ke(st,2)):P},Tt.pullAllWith=function(P,V,st){return P&&P.length&&V&&V.length?Uo(P,V,O,st):P},Tt.pullAt=vc,Tt.range=bl,Tt.rangeRight=wl,Tt.rearg=qc,Tt.reject=function(P,V){return(ir(P)?Ye:Wa)(P,po(Ke(V,3)))},Tt.remove=function(P,V){var st=[];if(!P||!P.length)return st;var bt=-1,Et=[],Rt=P.length;for(V=Ke(V,3);++bt<Rt;){var Ft=P[bt];V(Ft,bt,P)&&(st.push(Ft),Et.push(bt))}return os(P,Et),st},Tt.rest=function(P,V){if(typeof P!="function")throw new cn(I);return sr(P,V=V===O?V:or(V))},Tt.reverse=la,Tt.sampleSize=function(P,V,st){return V=(st?Gr(P,V,st):V===O)?1:or(V),(ir(P)?Ju:ec)(P,V)},Tt.set=function(P,V,st){return P==null?P:Ei(P,V,st)},Tt.setWith=function(P,V,st,bt){return bt=typeof bt=="function"?bt:O,P==null?P:Ei(P,V,st,bt)},Tt.shuffle=function(P){return(ir(P)?Qu:nc)(P)},Tt.slice=function(P,V,st){var bt=P==null?0:P.length;return bt?(st&&typeof st!="number"&&Gr(P,V,st)?(V=0,st=bt):(V=V==null?0:or(V),st=st===O?bt:or(st)),fn(P,V,st)):[]},Tt.sortBy=Bc,Tt.sortedUniq=function(P){return P&&P.length?ss(P):[]},Tt.sortedUniqBy=function(P,V){return P&&P.length?ss(P,Ke(V,2)):[]},Tt.split=function(P,V,st){return st&&typeof st!="number"&&Gr(P,V,st)&&(V=st=O),(st=st===O?C:st>>>0)?(P=Ar(P))&&(typeof V=="string"||V!=null&&!ma(V))&&!(V=an(V))&&ei(P)?$n(mn(P),0,st):P.split(V,st):[]},Tt.spread=function(P,V){if(typeof P!="function")throw new cn(I);return V=V==null?0:Fr(or(V),0),sr(function(st){var bt=st[V],Et=$n(st,0,V);return bt&&Cr(Et,bt),Xt(P,this,Et)})},Tt.tail=function(P){var V=P==null?0:P.length;return V?fn(P,1,V):[]},Tt.take=function(P,V,st){return P&&P.length?fn(P,0,(V=st||V===O?1:or(V))<0?0:V):[]},Tt.takeRight=function(P,V,st){var bt=P==null?0:P.length;return bt?fn(P,(V=bt-(V=st||V===O?1:or(V)))<0?0:V,bt):[]},Tt.takeRightWhile=function(P,V){return P&&P.length?Zi(P,Ke(V,3),!1,!0):[]},Tt.takeWhile=function(P,V){return P&&P.length?Zi(P,Ke(V,3)):[]},Tt.tap=function(P,V){return V(P),P},Tt.throttle=function(P,V,st){var bt=!0,Et=!0;if(typeof P!="function")throw new cn(I);return Nr(st)&&(bt="leading"in st?!!st.leading:bt,Et="trailing"in st?!!st.trailing:Et),tu(P,V,{leading:bt,maxWait:V,trailing:Et})},Tt.thru=co,Tt.toArray=su,Tt.toPairs=pu,Tt.toPairsIn=du,Tt.toPath=function(P){return ir(P)?Pe(P,Mn):sn(P)?[P]:Zr(Fs(Ar(P)))},Tt.toPlainObject=cu,Tt.transform=function(P,V,st){var bt=ir(P),Et=bt||zn(P)||li(P);if(V=Ke(V,4),st==null){var Rt=P&&P.constructor;st=Et?bt?new Rt:[]:Nr(P)&&jn(Rt)?ai(Fi(P)):{}}return(Et?fe:wn)(P,function(Ft,Kt,ee){return V(st,Ft,Kt,ee)}),st},Tt.unary=function(P){return Xs(P,1)},Tt.union=yc,Tt.unionBy=bc,Tt.unionWith=wc,Tt.uniq=function(P){return P&&P.length?Fn(P):[]},Tt.uniqBy=function(P,V){return P&&P.length?Fn(P,Ke(V,2)):[]},Tt.uniqWith=function(P,V){return V=typeof V=="function"?V:O,P&&P.length?Fn(P,O,V):[]},Tt.unset=function(P,V){return P==null||Vo(P,V)},Tt.unzip=ha,Tt.unzipWith=Ws,Tt.update=function(P,V,st){return P==null?P:cs(P,V,Jo(st))},Tt.updateWith=function(P,V,st,bt){return bt=typeof bt=="function"?bt:O,P==null?P:cs(P,V,Jo(st),bt)},Tt.values=hi,Tt.valuesIn=function(P){return P==null?[]:ko(P,en(P))},Tt.without=_c,Tt.words=vu,Tt.wrap=function(P,V){return pa(Jo(V),P)},Tt.xor=Mc,Tt.xorBy=xc,Tt.xorWith=Ec,Tt.zip=Sc,Tt.zipObject=function(P,V){return hs(P||[],V||[],wi)},Tt.zipObjectDeep=function(P,V){return hs(P||[],V||[],Ei)},Tt.zipWith=kc,Tt.entries=pu,Tt.entriesIn=du,Tt.extend=lu,Tt.extendWith=vo,_a(Tt,Tt),Tt.add=_l,Tt.attempt=yu,Tt.camelCase=nl,Tt.capitalize=mu,Tt.ceil=Ml,Tt.clamp=function(P,V,st){return st===O&&(st=V,V=O),st!==O&&(st=(st=dn(st))==st?st:0),V!==O&&(V=(V=dn(V))==V?V:0),Jn(dn(P),V,st)},Tt.clone=function(P){return hn(P,4)},Tt.cloneDeep=function(P){return hn(P,5)},Tt.cloneDeepWith=function(P,V){return hn(P,5,V=typeof V=="function"?V:O)},Tt.cloneWith=function(P,V){return hn(P,4,V=typeof V=="function"?V:O)},Tt.conformsTo=function(P,V){return V==null||Ha(P,V,$r(V))},Tt.deburr=gu,Tt.defaultTo=function(P,V){return P==null||P!=P?V:P},Tt.divide=xl,Tt.endsWith=function(P,V,st){P=Ar(P),V=an(V);var bt=P.length,Et=st=st===O?bt:Jn(or(st),0,bt);return(st-=V.length)>=0&&P.slice(st,Et)==V},Tt.eq=vn,Tt.escape=function(P){return(P=Ar(P))&&St.test(P)?P.replace(wt,Eu):P},Tt.escapeRegExp=function(P){return(P=Ar(P))&&pt.test(P)?P.replace(ft,"\\$&"):P},Tt.every=function(P,V,st){var bt=ir(P)?je:Xu;return st&&Gr(P,V,st)&&(V=O),bt(P,Ke(V,3))},Tt.find=Oc,Tt.findIndex=$s,Tt.findKey=function(P,V){return kr(P,Ke(V,3),wn)},Tt.findLast=Ic,Tt.findLastIndex=zs,Tt.findLastKey=function(P,V){return kr(P,Ke(V,3),Bo)},Tt.floor=El,Tt.forEach=Qs,Tt.forEachRight=Gs,Tt.forIn=function(P,V){return P==null?P:Co(P,Ke(V,3),en)},Tt.forInRight=function(P,V){return P==null?P:Ja(P,Ke(V,3),en)},Tt.forOwn=function(P,V){return P&&wn(P,Ke(V,3))},Tt.forOwnRight=function(P,V){return P&&Bo(P,Ke(V,3))},Tt.get=ga,Tt.gt=Fc,Tt.gte=Uc,Tt.has=function(P,V){return P!=null&&Rs(P,V,Yu)},Tt.hasIn=va,Tt.head=Vs,Tt.identity=rn,Tt.includes=function(P,V,st,bt){P=tn(P)?P:hi(P),st=st&&!bt?or(st):0;var Et=P.length;return st<0&&(st=Fr(Et+st,0)),go(P)?st<=Et&&P.indexOf(V,st)>-1:!!Et&&Or(P,V,st)>-1},Tt.indexOf=function(P,V,st){var bt=P==null?0:P.length;if(!bt)return-1;var Et=st==null?0:or(st);return Et<0&&(Et=Fr(bt+Et,0)),Or(P,V,Et)},Tt.inRange=function(P,V,st){return V=Nn(V),st===O?(st=V,V=0):st=Nn(st),function(bt,Et,Rt){return bt>=Vr(Et,Rt)&&bt<Fr(Et,Rt)}(P=dn(P),V,st)},Tt.invoke=Zc,Tt.isArguments=Yn,Tt.isArray=ir,Tt.isArrayBuffer=$c,Tt.isArrayLike=tn,Tt.isArrayLikeObject=Pr,Tt.isBoolean=function(P){return P===!0||P===!1||Br(P)&&Qr(P)==z},Tt.isBuffer=zn,Tt.isDate=zc,Tt.isElement=function(P){return Br(P)&&P.nodeType===1&&!Ti(P)},Tt.isEmpty=function(P){if(P==null)return!0;if(tn(P)&&(ir(P)||typeof P=="string"||typeof P.splice=="function"||zn(P)||li(P)||Yn(P)))return!P.length;var V=Kr(P);if(V==et||V==t)return!P.size;if(ki(P))return!qo(P).length;for(var st in P)if(Tr.call(P,st))return!1;return!0},Tt.isEqual=function(P,V){return xi(P,V)},Tt.isEqualWith=function(P,V,st){var bt=(st=typeof st=="function"?st:O)?st(P,V):O;return bt===O?xi(P,V,O,st):!!bt},Tt.isError=da,Tt.isFinite=function(P){return typeof P=="number"&&La(P)},Tt.isFunction=jn,Tt.isInteger=ru,Tt.isLength=mo,Tt.isMap=iu,Tt.isMatch=function(P,V){return P===V||Lo(P,V,ea(V))},Tt.isMatchWith=function(P,V,st){return st=typeof st=="function"?st:O,Lo(P,V,ea(V),st)},Tt.isNaN=function(P){return ou(P)&&P!=+P},Tt.isNative=function(P){if(cc(P))throw new dr("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Xa(P)},Tt.isNil=function(P){return P==null},Tt.isNull=function(P){return P===null},Tt.isNumber=ou,Tt.isObject=Nr,Tt.isObjectLike=Br,Tt.isPlainObject=Ti,Tt.isRegExp=ma,Tt.isSafeInteger=function(P){return ru(P)&&P>=-9007199254740991&&P<=S},Tt.isSet=au,Tt.isString=go,Tt.isSymbol=sn,Tt.isTypedArray=li,Tt.isUndefined=function(P){return P===O},Tt.isWeakMap=function(P){return Br(P)&&Kr(P)==a},Tt.isWeakSet=function(P){return Br(P)&&Qr(P)=="[object WeakSet]"},Tt.join=function(P,V){return P==null?"":Lu.call(P,V)},Tt.kebabCase=il,Tt.last=pn,Tt.lastIndexOf=function(P,V,st){var bt=P==null?0:P.length;if(!bt)return-1;var Et=bt;return st!==O&&(Et=(Et=or(st))<0?Fr(bt+Et,0):Vr(Et,bt-1)),V==V?function(Rt,Ft,Kt){for(var ee=Kt+1;ee--;)if(Rt[ee]===Ft)return ee;return ee}(P,V,Et):jr(P,un,Et,!0)},Tt.lowerCase=ol,Tt.lowerFirst=al,Tt.lt=Hc,Tt.lte=Vc,Tt.max=function(P){return P&&P.length?Qi(P,rn,Po):O},Tt.maxBy=function(P,V){return P&&P.length?Qi(P,Ke(V,2),Po):O},Tt.mean=function(P){return Yr(P,rn)},Tt.meanBy=function(P,V){return Yr(P,Ke(V,2))},Tt.min=function(P){return P&&P.length?Qi(P,rn,Fo):O},Tt.minBy=function(P,V){return P&&P.length?Qi(P,Ke(V,2),Fo):O},Tt.stubArray=xa,Tt.stubFalse=Ea,Tt.stubObject=function(){return{}},Tt.stubString=function(){return""},Tt.stubTrue=function(){return!0},Tt.multiply=Sl,Tt.nth=function(P,V){return P&&P.length?rs(P,or(V)):O},Tt.noConflict=function(){return Lr._===this&&(Lr._=ju),this},Tt.noop=Ma,Tt.now=ho,Tt.pad=function(P,V,st){P=Ar(P);var bt=(V=or(V))?ri(P):0;if(!V||bt>=V)return P;var Et=(V-bt)/2;return io(Hi(Et),st)+P+io(zi(Et),st)},Tt.padEnd=function(P,V,st){P=Ar(P);var bt=(V=or(V))?ri(P):0;return V&&bt<V?P+io(V-bt,st):P},Tt.padStart=function(P,V,st){P=Ar(P);var bt=(V=or(V))?ri(P):0;return V&&bt<V?io(V-bt,st)+P:P},Tt.parseInt=function(P,V,st){return st||V==null?V=0:V&&(V=+V),Uu(Ar(P).replace(mt,""),V||0)},Tt.random=function(P,V,st){if(st&&typeof st!="boolean"&&Gr(P,V,st)&&(V=st=O),st===O&&(typeof V=="boolean"?(st=V,V=O):typeof P=="boolean"&&(st=P,P=O)),P===O&&V===O?(P=0,V=1):(P=Nn(P),V===O?(V=P,P=0):V=Nn(V)),P>V){var bt=P;P=V,V=bt}if(st||P%1||V%1){var Et=qa();return Vr(P+Et*(V-P+Er("1e-"+((Et+"").length-1))),V)}return $o(P,V)},Tt.reduce=function(P,V,st){var bt=ir(P)?Oe:Aa,Et=arguments.length<3;return bt(P,Ke(V,4),st,Et,qn)},Tt.reduceRight=function(P,V,st){var bt=ir(P)?Re:Aa,Et=arguments.length<3;return bt(P,Ke(V,4),st,Et,Ka)},Tt.repeat=function(P,V,st){return V=(st?Gr(P,V,st):V===O)?1:or(V),zo(Ar(P),V)},Tt.replace=function(){var P=arguments,V=Ar(P[0]);return P.length<3?V:V.replace(P[1],P[2])},Tt.result=function(P,V,st){var bt=-1,Et=(V=Un(V,P)).length;for(Et||(Et=1,P=O);++bt<Et;){var Rt=P==null?O:P[Mn(V[bt])];Rt===O&&(bt=Et,Rt=st),P=jn(Rt)?Rt.call(P):Rt}return P},Tt.round=kl,Tt.runInContext=ue,Tt.sample=function(P){return(ir(P)?$a:tc)(P)},Tt.size=function(P){if(P==null)return 0;if(tn(P))return go(P)?ri(P):P.length;var V=Kr(P);return V==et||V==t?P.size:qo(P).length},Tt.snakeCase=ul,Tt.some=function(P,V,st){var bt=ir(P)?Ce:ic;return st&&Gr(P,V,st)&&(V=O),bt(P,Ke(V,3))},Tt.sortedIndex=function(P,V){return Yi(P,V)},Tt.sortedIndexBy=function(P,V,st){return Ho(P,V,Ke(st,2))},Tt.sortedIndexOf=function(P,V){var st=P==null?0:P.length;if(st){var bt=Yi(P,V);if(bt<st&&vn(P[bt],V))return bt}return-1},Tt.sortedLastIndex=function(P,V){return Yi(P,V,!0)},Tt.sortedLastIndexBy=function(P,V,st){return Ho(P,V,Ke(st,2),!0)},Tt.sortedLastIndexOf=function(P,V){if(P!=null&&P.length){var st=Yi(P,V,!0)-1;if(vn(P[st],V))return st}return-1},Tt.startCase=cl,Tt.startsWith=function(P,V,st){return P=Ar(P),st=st==null?0:Jn(or(st),0,P.length),V=an(V),P.slice(st,st+V.length)==V},Tt.subtract=Al,Tt.sum=function(P){return P&&P.length?Eo(P,rn):0},Tt.sumBy=function(P,V){return P&&P.length?Eo(P,Ke(V,2)):0},Tt.template=function(P,V,st){var bt=Tt.templateSettings;st&&Gr(P,V,st)&&(V=O),P=Ar(P),V=vo({},V,bt,As);var Et,Rt,Ft=vo({},V.imports,bt.imports,As),Kt=$r(Ft),ee=ko(Ft,Kt),ve=0,ye=V.interpolate||Ee,Se="__p += '",Ie=To((V.escape||Ee).source+"|"+ye.source+"|"+(ye===jt?lt:Ee).source+"|"+(V.evaluate||Ee).source+"|$","g"),Be="//# sourceURL="+(Tr.call(V,"sourceURL")?(V.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++pr+"]")+`
44
+ `;P.replace(Ie,function(ke,Ue,Ae,nr,Ze,Sr){return Ae||(Ae=nr),Se+=P.slice(ve,Sr).replace(Ht,Su),Ue&&(Et=!0,Se+=`' +
45
+ __e(`+Ue+`) +
46
+ '`),Ze&&(Rt=!0,Se+=`';
47
+ `+Ze+`;
48
+ __p += '`),Ae&&(Se+=`' +
49
+ ((__t = (`+Ae+`)) == null ? '' : __t) +
50
+ '`),ve=Sr+ke.length,ke}),Se+=`';
51
+ `;var ze=Tr.call(V,"variable")&&V.variable;if(ze){if(yt.test(ze))throw new dr("Invalid `variable` option passed into `_.template`")}else Se=`with (obj) {
52
+ `+Se+`
53
+ }
54
+ `;Se=(Rt?Se.replace(tt,""):Se).replace(it,"$1").replace(Z,"$1;"),Se="function("+(ze||"obj")+`) {
55
+ `+(ze?"":`obj || (obj = {});
56
+ `)+"var __t, __p = ''"+(Et?", __e = _.escape":"")+(Rt?`, __j = Array.prototype.join;
57
+ function print() { __p += __j.call(arguments, '') }
58
+ `:`;
59
+ `)+Se+`return __p
60
+ }`;var _e=yu(function(){return qr(Kt,Be+"return "+Se).apply(O,ee)});if(_e.source=Se,da(_e))throw _e;return _e},Tt.times=function(P,V){if((P=or(P))<1||P>S)return[];var st=C,bt=Vr(P,C);V=Ke(V),P-=C;for(var Et=So(bt,V);++st<P;)V(st);return Et},Tt.toFinite=Nn,Tt.toInteger=or,Tt.toLength=uu,Tt.toLower=function(P){return Ar(P).toLowerCase()},Tt.toNumber=dn,Tt.toSafeInteger=function(P){return P?Jn(or(P),-9007199254740991,S):P===0?P:0},Tt.toString=Ar,Tt.toUpper=function(P){return Ar(P).toUpperCase()},Tt.trim=function(P,V,st){if((P=Ar(P))&&(st||V===O))return Ta(P);if(!P||!(V=an(V)))return P;var bt=mn(P),Et=mn(V);return $n(bt,Oa(bt,Et),Ia(bt,Et)+1).join("")},Tt.trimEnd=function(P,V,st){if((P=Ar(P))&&(st||V===O))return P.slice(0,ja(P)+1);if(!P||!(V=an(V)))return P;var bt=mn(P);return $n(bt,0,Ia(bt,mn(V))+1).join("")},Tt.trimStart=function(P,V,st){if((P=Ar(P))&&(st||V===O))return P.replace(mt,"");if(!P||!(V=an(V)))return P;var bt=mn(P);return $n(bt,Oa(bt,mn(V))).join("")},Tt.truncate=function(P,V){var st=30,bt="...";if(Nr(V)){var Et="separator"in V?V.separator:Et;st="length"in V?or(V.length):st,bt="omission"in V?an(V.omission):bt}var Rt=(P=Ar(P)).length;if(ei(P)){var Ft=mn(P);Rt=Ft.length}if(st>=Rt)return P;var Kt=st-ri(bt);if(Kt<1)return bt;var ee=Ft?$n(Ft,0,Kt).join(""):P.slice(0,Kt);if(Et===O)return ee+bt;if(Ft&&(Kt+=ee.length-Kt),ma(Et)){if(P.slice(Kt).search(Et)){var ve,ye=ee;for(Et.global||(Et=To(Et.source,Ar(_t.exec(Et))+"g")),Et.lastIndex=0;ve=Et.exec(ye);)var Se=ve.index;ee=ee.slice(0,Se===O?Kt:Se)}}else if(P.indexOf(an(Et),Kt)!=Kt){var Ie=ee.lastIndexOf(Et);Ie>-1&&(ee=ee.slice(0,Ie))}return ee+bt},Tt.unescape=function(P){return(P=Ar(P))&&gt.test(P)?P.replace(rt,Au):P},Tt.uniqueId=function(P){var V=++Iu;return Ar(P)+V},Tt.upperCase=ll,Tt.upperFirst=ya,Tt.each=Qs,Tt.eachRight=Gs,Tt.first=Vs,_a(Tt,(Sa={},wn(Tt,function(P,V){Tr.call(Tt.prototype,V)||(Sa[V]=P)}),Sa),{chain:!1}),Tt.VERSION="4.17.21",fe(["bind","bindKey","curry","curryRight","partial","partialRight"],function(P){Tt[P].placeholder=Tt}),fe(["drop","take"],function(P,V){ur.prototype[P]=function(st){st=st===O?1:Fr(or(st),0);var bt=this.__filtered__&&!V?new ur(this):this.clone();return bt.__filtered__?bt.__takeCount__=Vr(st,bt.__takeCount__):bt.__views__.push({size:Vr(st,C),type:P+(bt.__dir__<0?"Right":"")}),bt},ur.prototype[P+"Right"]=function(st){return this.reverse()[P](st).reverse()}}),fe(["filter","map","takeWhile"],function(P,V){var st=V+1,bt=st==1||st==3;ur.prototype[P]=function(Et){var Rt=this.clone();return Rt.__iteratees__.push({iteratee:Ke(Et,3),type:st}),Rt.__filtered__=Rt.__filtered__||bt,Rt}}),fe(["head","last"],function(P,V){var st="take"+(V?"Right":"");ur.prototype[P]=function(){return this[st](1).value()[0]}}),fe(["initial","tail"],function(P,V){var st="drop"+(V?"":"Right");ur.prototype[P]=function(){return this.__filtered__?new ur(this):this[st](1)}}),ur.prototype.compact=function(){return this.filter(rn)},ur.prototype.find=function(P){return this.filter(P).head()},ur.prototype.findLast=function(P){return this.reverse().find(P)},ur.prototype.invokeMap=sr(function(P,V){return typeof P=="function"?new ur(this):this.map(function(st){return Mi(st,P,V)})}),ur.prototype.reject=function(P){return this.filter(po(Ke(P)))},ur.prototype.slice=function(P,V){P=or(P);var st=this;return st.__filtered__&&(P>0||V<0)?new ur(st):(P<0?st=st.takeRight(-P):P&&(st=st.drop(P)),V!==O&&(st=(V=or(V))<0?st.dropRight(-V):st.take(V-P)),st)},ur.prototype.takeRightWhile=function(P){return this.reverse().takeWhile(P).reverse()},ur.prototype.toArray=function(){return this.take(C)},wn(ur.prototype,function(P,V){var st=/^(?:filter|find|map|reject)|While$/.test(V),bt=/^(?:head|last)$/.test(V),Et=Tt[bt?"take"+(V=="last"?"Right":""):V],Rt=bt||/^find/.test(V);Et&&(Tt.prototype[V]=function(){var Ft=this.__wrapped__,Kt=bt?[1]:arguments,ee=Ft instanceof ur,ve=Kt[0],ye=ee||ir(Ft),Se=function(Ue){var Ae=Et.apply(Tt,Cr([Ue],Kt));return bt&&Ie?Ae[0]:Ae};ye&&st&&typeof ve=="function"&&ve.length!=1&&(ee=ye=!1);var Ie=this.__chain__,Be=!!this.__actions__.length,ze=Rt&&!Ie,_e=ee&&!Be;if(!Rt&&ye){Ft=_e?Ft:new ur(this);var ke=P.apply(Ft,Kt);return ke.__actions__.push({func:co,args:[Se],thisArg:O}),new ln(ke,Ie)}return ze&&_e?P.apply(this,Kt):(ke=this.thru(Se),ze?bt?ke.value()[0]:ke.value():ke)})}),fe(["pop","push","shift","sort","splice","unshift"],function(P){var V=Ni[P],st=/^(?:push|sort|unshift)$/.test(P)?"tap":"thru",bt=/^(?:pop|shift)$/.test(P);Tt.prototype[P]=function(){var Et=arguments;if(bt&&!this.__chain__){var Rt=this.value();return V.apply(ir(Rt)?Rt:[],Et)}return this[st](function(Ft){return V.apply(ir(Ft)?Ft:[],Et)})}}),wn(ur.prototype,function(P,V){var st=Tt[V];if(st){var bt=st.name+"";Tr.call(oi,bt)||(oi[bt]=[]),oi[bt].push({name:V,func:st})}}),oi[ro(O,2).name]=[{name:"wrapper",func:O}],ur.prototype.clone=function(){var P=new ur(this.__wrapped__);return P.__actions__=Zr(this.__actions__),P.__dir__=this.__dir__,P.__filtered__=this.__filtered__,P.__iteratees__=Zr(this.__iteratees__),P.__takeCount__=this.__takeCount__,P.__views__=Zr(this.__views__),P},ur.prototype.reverse=function(){if(this.__filtered__){var P=new ur(this);P.__dir__=-1,P.__filtered__=!0}else(P=this.clone()).__dir__*=-1;return P},ur.prototype.value=function(){var P=this.__wrapped__.value(),V=this.__dir__,st=ir(P),bt=V<0,Et=st?P.length:0,Rt=function(Sr,Fe,Je){for(var Ur=-1,Dr=Je.length;++Ur<Dr;){var Xr=Je[Ur],Rr=Xr.size;switch(Xr.type){case"drop":Sr+=Rr;break;case"dropRight":Fe-=Rr;break;case"take":Fe=Vr(Fe,Sr+Rr);break;case"takeRight":Sr=Fr(Sr,Fe-Rr)}}return{start:Sr,end:Fe}}(0,Et,this.__views__),Ft=Rt.start,Kt=Rt.end,ee=Kt-Ft,ve=bt?Kt:Ft-1,ye=this.__iteratees__,Se=ye.length,Ie=0,Be=Vr(ee,this.__takeCount__);if(!st||!bt&&Et==ee&&Be==ee)return ls(P,this.__actions__);var ze=[];t:for(;ee--&&Ie<Be;){for(var _e=-1,ke=P[ve+=V];++_e<Se;){var Ue=ye[_e],Ae=Ue.iteratee,nr=Ue.type,Ze=Ae(ke);if(nr==2)ke=Ze;else if(!Ze){if(nr==1)continue t;break t}}ze[Ie++]=ke}return ze},Tt.prototype.at=Ac,Tt.prototype.chain=function(){return Js(this)},Tt.prototype.commit=function(){return new ln(this.value(),this.__chain__)},Tt.prototype.next=function(){this.__values__===O&&(this.__values__=su(this.value()));var P=this.__index__>=this.__values__.length;return{done:P,value:P?O:this.__values__[this.__index__++]}},Tt.prototype.plant=function(P){for(var V,st=this;st instanceof Wi;){var bt=Us(st);bt.__index__=0,bt.__values__=O,V?Et.__wrapped__=bt:V=bt;var Et=bt;st=st.__wrapped__}return Et.__wrapped__=P,V},Tt.prototype.reverse=function(){var P=this.__wrapped__;if(P instanceof ur){var V=P;return this.__actions__.length&&(V=new ur(this)),(V=V.reverse()).__actions__.push({func:co,args:[la],thisArg:O}),new ln(V,this.__chain__)}return this.thru(la)},Tt.prototype.toJSON=Tt.prototype.valueOf=Tt.prototype.value=function(){return ls(this.__wrapped__,this.__actions__)},Tt.prototype.first=Tt.prototype.head,mi&&(Tt.prototype[mi]=function(){return this}),Tt}();Lr._=ji,(j=(function(){return ji}).call(w,b,w,$))===O||($.exports=j)}).call(this)},2632:($,w)=>{w.encrypt=function(b,j){return b._cipher.encryptBlock(j)},w.decrypt=function(b,j){return b._cipher.decryptBlock(j)}},2634:()=>{},2642:($,w,b)=>{var j=b(7720),O=Object.prototype.hasOwnProperty,I=Array.isArray,q={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:j.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},p=function(T){return T.replace(/&#(\d+);/g,function(S,B){return String.fromCharCode(parseInt(B,10))})},N=function(T,S,B){if(T&&typeof T=="string"&&S.comma&&T.indexOf(",")>-1)return T.split(",");if(S.throwOnLimitExceeded&&B>=S.arrayLimit)throw new RangeError("Array limit exceeded. Only "+S.arrayLimit+" element"+(S.arrayLimit===1?"":"s")+" allowed in an array.");return T},M=function(T,S,B,C){if(T){var _=B.allowDots?T.replace(/\.([^.[]+)/g,"[$1]"):T,F=/(\[[^[\]]*])/g,U=B.depth>0&&/(\[[^[\]]*])/.exec(_),z=U?_.slice(0,U.index):_,H=[];if(z){if(!B.plainObjects&&O.call(Object.prototype,z)&&!B.allowPrototypes)return;H.push(z)}for(var D=0;B.depth>0&&(U=F.exec(_))!==null&&D<B.depth;){if(D+=1,!B.plainObjects&&O.call(Object.prototype,U[1].slice(1,-1))&&!B.allowPrototypes)return;H.push(U[1])}if(U){if(B.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+B.depth+" and strictDepth is true");H.push("["+_.slice(U.index)+"]")}return function(Q,X,et,nt){var ut=0;if(Q.length>0&&Q[Q.length-1]==="[]"){var ct=Q.slice(0,-1).join("");ut=Array.isArray(X)&&X[ct]?X[ct].length:0}for(var vt=nt?X:N(X,et,ut),t=Q.length-1;t>=0;--t){var h,l=Q[t];if(l==="[]"&&et.parseArrays)h=et.allowEmptyArrays&&(vt===""||et.strictNullHandling&&vt===null)?[]:j.combine([],vt);else{h=et.plainObjects?{__proto__:null}:{};var a=l.charAt(0)==="["&&l.charAt(l.length-1)==="]"?l.slice(1,-1):l,r=et.decodeDotInKeys?a.replace(/%2E/g,"."):a,v=parseInt(r,10);et.parseArrays||r!==""?!isNaN(v)&&l!==r&&String(v)===r&&v>=0&&et.parseArrays&&v<=et.arrayLimit?(h=[])[v]=vt:r!=="__proto__"&&(h[r]=vt):h={0:vt}}vt=h}return vt}(H,S,B,C)}};$.exports=function(T,S){var B=function(D){if(!D)return q;if(D.allowEmptyArrays!==void 0&&typeof D.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(D.decodeDotInKeys!==void 0&&typeof D.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(D.decoder!==null&&D.decoder!==void 0&&typeof D.decoder!="function")throw new TypeError("Decoder has to be a function.");if(D.charset!==void 0&&D.charset!=="utf-8"&&D.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(D.throwOnLimitExceeded!==void 0&&typeof D.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var Q=D.charset===void 0?q.charset:D.charset,X=D.duplicates===void 0?q.duplicates:D.duplicates;if(X!=="combine"&&X!=="first"&&X!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:D.allowDots===void 0?D.decodeDotInKeys===!0||q.allowDots:!!D.allowDots,allowEmptyArrays:typeof D.allowEmptyArrays=="boolean"?!!D.allowEmptyArrays:q.allowEmptyArrays,allowPrototypes:typeof D.allowPrototypes=="boolean"?D.allowPrototypes:q.allowPrototypes,allowSparse:typeof D.allowSparse=="boolean"?D.allowSparse:q.allowSparse,arrayLimit:typeof D.arrayLimit=="number"?D.arrayLimit:q.arrayLimit,charset:Q,charsetSentinel:typeof D.charsetSentinel=="boolean"?D.charsetSentinel:q.charsetSentinel,comma:typeof D.comma=="boolean"?D.comma:q.comma,decodeDotInKeys:typeof D.decodeDotInKeys=="boolean"?D.decodeDotInKeys:q.decodeDotInKeys,decoder:typeof D.decoder=="function"?D.decoder:q.decoder,delimiter:typeof D.delimiter=="string"||j.isRegExp(D.delimiter)?D.delimiter:q.delimiter,depth:typeof D.depth=="number"||D.depth===!1?+D.depth:q.depth,duplicates:X,ignoreQueryPrefix:D.ignoreQueryPrefix===!0,interpretNumericEntities:typeof D.interpretNumericEntities=="boolean"?D.interpretNumericEntities:q.interpretNumericEntities,parameterLimit:typeof D.parameterLimit=="number"?D.parameterLimit:q.parameterLimit,parseArrays:D.parseArrays!==!1,plainObjects:typeof D.plainObjects=="boolean"?D.plainObjects:q.plainObjects,strictDepth:typeof D.strictDepth=="boolean"?!!D.strictDepth:q.strictDepth,strictNullHandling:typeof D.strictNullHandling=="boolean"?D.strictNullHandling:q.strictNullHandling,throwOnLimitExceeded:typeof D.throwOnLimitExceeded=="boolean"&&D.throwOnLimitExceeded}}(S);if(T===""||T==null)return B.plainObjects?{__proto__:null}:{};for(var C=typeof T=="string"?function(D,Q){var X={__proto__:null},et=Q.ignoreQueryPrefix?D.replace(/^\?/,""):D;et=et.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var nt=Q.parameterLimit===1/0?void 0:Q.parameterLimit,ut=et.split(Q.delimiter,Q.throwOnLimitExceeded?nt+1:nt);if(Q.throwOnLimitExceeded&&ut.length>nt)throw new RangeError("Parameter limit exceeded. Only "+nt+" parameter"+(nt===1?"":"s")+" allowed.");var ct,vt=-1,t=Q.charset;if(Q.charsetSentinel)for(ct=0;ct<ut.length;++ct)ut[ct].indexOf("utf8=")===0&&(ut[ct]==="utf8=%E2%9C%93"?t="utf-8":ut[ct]==="utf8=%26%2310003%3B"&&(t="iso-8859-1"),vt=ct,ct=ut.length);for(ct=0;ct<ut.length;++ct)if(ct!==vt){var h,l,a=ut[ct],r=a.indexOf("]="),v=r===-1?a.indexOf("="):r+1;v===-1?(h=Q.decoder(a,q.decoder,t,"key"),l=Q.strictNullHandling?null:""):(h=Q.decoder(a.slice(0,v),q.decoder,t,"key"),l=j.maybeMap(N(a.slice(v+1),Q,I(X[h])?X[h].length:0),function(W){return Q.decoder(W,q.decoder,t,"value")})),l&&Q.interpretNumericEntities&&t==="iso-8859-1"&&(l=p(String(l))),a.indexOf("[]=")>-1&&(l=I(l)?[l]:l);var A=O.call(X,h);A&&Q.duplicates==="combine"?X[h]=j.combine(X[h],l):A&&Q.duplicates!=="last"||(X[h]=l)}return X}(T,B):T,_=B.plainObjects?{__proto__:null}:{},F=Object.keys(C),U=0;U<F.length;++U){var z=F[U],H=M(z,C[z],B,typeof T=="string");_=j.merge(_,H,B)}return B.allowSparse===!0?_:j.compact(_)}},2668:()=>{},2679:function($,w,b){(function(){var j,O,I={}.hasOwnProperty;j=b(1737),O=b(7457),$.exports=function(q){function p(N,M){if(p.__super__.constructor.call(this,N),M==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=j.Comment,this.value=this.stringify.comment(M)}return function(N,M){for(var T in M)I.call(M,T)&&(N[T]=M[T]);function S(){this.constructor=N}S.prototype=M.prototype,N.prototype=new S,N.__super__=M.prototype}(p,q),p.prototype.clone=function(){return Object.create(this)},p.prototype.toString=function(N){return this.options.writer.comment(this,this.options.writer.filterOptions(N))},p}(O)}).call(this)},2682:($,w,b)=>{var j=b(9600),O=Object.prototype.toString,I=Object.prototype.hasOwnProperty;$.exports=function(q,p,N){if(!j(p))throw new TypeError("iterator must be a function");var M,T;arguments.length>=3&&(M=N),T=q,O.call(T)==="[object Array]"?function(S,B,C){for(var _=0,F=S.length;_<F;_++)I.call(S,_)&&(C==null?B(S[_],_,S):B.call(C,S[_],_,S))}(q,p,M):typeof q=="string"?function(S,B,C){for(var _=0,F=S.length;_<F;_++)C==null?B(S.charAt(_),_,S):B.call(C,S.charAt(_),_,S)}(q,p,M):function(S,B,C){for(var _ in S)I.call(S,_)&&(C==null?B(S[_],_,S):B.call(C,S[_],_,S))}(q,p,M)}},2691:function($,w,b){(function(){var j,O,I={}.hasOwnProperty;j=b(1737),O=b(7457),$.exports=function(q){function p(N,M){if(p.__super__.constructor.call(this,N),M==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=j.CData,this.value=this.stringify.cdata(M)}return function(N,M){for(var T in M)I.call(M,T)&&(N[T]=M[T]);function S(){this.constructor=N}S.prototype=M.prototype,N.prototype=new S,N.__super__=M.prototype}(p,q),p.prototype.clone=function(){return Object.create(this)},p.prototype.toString=function(N){return this.options.writer.cdata(this,this.options.writer.filterOptions(N))},p}(O)}).call(this)},2723:($,w,b)=>{var j=b(7952),O=b(4367),I=b(3349);function q(p){if(!(this instanceof q))return new q(p);this.hash=p.hash,this.predResist=!!p.predResist,this.outLen=this.hash.outSize,this.minEntropy=p.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var N=O.toArray(p.entropy,p.entropyEnc||"hex"),M=O.toArray(p.nonce,p.nonceEnc||"hex"),T=O.toArray(p.pers,p.persEnc||"hex");I(N.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(N,M,T)}$.exports=q,q.prototype._init=function(p,N,M){var T=p.concat(N).concat(M);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var S=0;S<this.V.length;S++)this.K[S]=0,this.V[S]=1;this._update(T),this._reseed=1,this.reseedInterval=281474976710656},q.prototype._hmac=function(){return new j.hmac(this.hash,this.K)},q.prototype._update=function(p){var N=this._hmac().update(this.V).update([0]);p&&(N=N.update(p)),this.K=N.digest(),this.V=this._hmac().update(this.V).digest(),p&&(this.K=this._hmac().update(this.V).update([1]).update(p).digest(),this.V=this._hmac().update(this.V).digest())},q.prototype.reseed=function(p,N,M,T){typeof N!="string"&&(T=M,M=N,N=null),p=O.toArray(p,N),M=O.toArray(M,T),I(p.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(p.concat(M||[])),this._reseed=1},q.prototype.generate=function(p,N,M,T){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof N!="string"&&(T=M,M=N,N=null),M&&(M=O.toArray(M,T||"hex"),this._update(M));for(var S=[];S.length<p;)this.V=this._hmac().update(this.V).digest(),S=S.concat(this.V);var B=S.slice(0,p);return this._update(M),this._reseed++,O.encode(B,N)}},2726:($,w,b)=>{function j(S,B){var C=Object.keys(S);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(S);B&&(_=_.filter(function(F){return Object.getOwnPropertyDescriptor(S,F).enumerable})),C.push.apply(C,_)}return C}function O(S){for(var B=1;B<arguments.length;B++){var C=arguments[B]!=null?arguments[B]:{};B%2?j(Object(C),!0).forEach(function(_){I(S,_,C[_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(S,Object.getOwnPropertyDescriptors(C)):j(Object(C)).forEach(function(_){Object.defineProperty(S,_,Object.getOwnPropertyDescriptor(C,_))})}return S}function I(S,B,C){return(B=p(B))in S?Object.defineProperty(S,B,{value:C,enumerable:!0,configurable:!0,writable:!0}):S[B]=C,S}function q(S,B){for(var C=0;C<B.length;C++){var _=B[C];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(S,p(_.key),_)}}function p(S){var B=function(C){if(typeof C!="object"||C===null)return C;var _=C[Symbol.toPrimitive];if(_!==void 0){var F=_.call(C,"string");if(typeof F!="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(C)}(S);return typeof B=="symbol"?B:String(B)}var N=b(8287).Buffer,M=b(5340).inspect,T=M&&M.custom||"inspect";$.exports=function(){function S(){(function(_,F){if(!(_ instanceof F))throw new TypeError("Cannot call a class as a function")})(this,S),this.head=null,this.tail=null,this.length=0}var B,C;return B=S,(C=[{key:"push",value:function(_){var F={data:_,next:null};this.length>0?this.tail.next=F:this.head=F,this.tail=F,++this.length}},{key:"unshift",value:function(_){var F={data:_,next:this.head};this.length===0&&(this.tail=F),this.head=F,++this.length}},{key:"shift",value:function(){if(this.length!==0){var _=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,_}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(_){if(this.length===0)return"";for(var F=this.head,U=""+F.data;F=F.next;)U+=_+F.data;return U}},{key:"concat",value:function(_){if(this.length===0)return N.alloc(0);for(var F,U,z,H=N.allocUnsafe(_>>>0),D=this.head,Q=0;D;)F=D.data,U=H,z=Q,N.prototype.copy.call(F,U,z),Q+=D.data.length,D=D.next;return H}},{key:"consume",value:function(_,F){var U;return _<this.head.data.length?(U=this.head.data.slice(0,_),this.head.data=this.head.data.slice(_)):U=_===this.head.data.length?this.shift():F?this._getString(_):this._getBuffer(_),U}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(_){var F=this.head,U=1,z=F.data;for(_-=z.length;F=F.next;){var H=F.data,D=_>H.length?H.length:_;if(D===H.length?z+=H:z+=H.slice(0,_),(_-=D)==0){D===H.length?(++U,F.next?this.head=F.next:this.head=this.tail=null):(this.head=F,F.data=H.slice(D));break}++U}return this.length-=U,z}},{key:"_getBuffer",value:function(_){var F=N.allocUnsafe(_),U=this.head,z=1;for(U.data.copy(F),_-=U.data.length;U=U.next;){var H=U.data,D=_>H.length?H.length:_;if(H.copy(F,F.length-_,0,D),(_-=D)==0){D===H.length?(++z,U.next?this.head=U.next:this.head=this.tail=null):(this.head=U,U.data=H.slice(D));break}++z}return this.length-=z,F}},{key:T,value:function(_,F){return M(this,O(O({},F),{},{depth:0,customInspect:!1}))}}])&&q(B.prototype,C),Object.defineProperty(B,"prototype",{writable:!1}),S}()},2791:function($,w,b){var j=b(5606);(function(O){if(!O.setImmediate){var I,q,p,N,M,T=1,S={},B=!1,C=O.document,_=Object.getPrototypeOf&&Object.getPrototypeOf(O);_=_&&_.setTimeout?_:O,{}.toString.call(O.process)==="[object process]"?I=function(z){j.nextTick(function(){U(z)})}:function(){if(O.postMessage&&!O.importScripts){var z=!0,H=O.onmessage;return O.onmessage=function(){z=!1},O.postMessage("","*"),O.onmessage=H,z}}()?(N="setImmediate$"+Math.random()+"$",M=function(z){z.source===O&&typeof z.data=="string"&&z.data.indexOf(N)===0&&U(+z.data.slice(N.length))},O.addEventListener?O.addEventListener("message",M,!1):O.attachEvent("onmessage",M),I=function(z){O.postMessage(N+z,"*")}):O.MessageChannel?((p=new MessageChannel).port1.onmessage=function(z){U(z.data)},I=function(z){p.port2.postMessage(z)}):C&&"onreadystatechange"in C.createElement("script")?(q=C.documentElement,I=function(z){var H=C.createElement("script");H.onreadystatechange=function(){U(z),H.onreadystatechange=null,q.removeChild(H),H=null},q.appendChild(H)}):I=function(z){setTimeout(U,0,z)},_.setImmediate=function(z){typeof z!="function"&&(z=new Function(""+z));for(var H=new Array(arguments.length-1),D=0;D<H.length;D++)H[D]=arguments[D+1];var Q={callback:z,args:H};return S[T]=Q,I(T),T++},_.clearImmediate=F}function F(z){delete S[z]}function U(z){if(B)setTimeout(U,0,z);else{var H=S[z];if(H){B=!0;try{(function(D){var Q=D.callback,X=D.args;switch(X.length){case 0:Q();break;case 1:Q(X[0]);break;case 2:Q(X[0],X[1]);break;case 3:Q(X[0],X[1],X[2]);break;default:Q.apply(void 0,X)}})(H)}finally{F(z),B=!1}}}}})(typeof self>"u"?b.g===void 0?this:b.g:self)},2801:function($,w,b){(function(j,O){function I(t,h){if(!t)throw new Error(h||"Assertion failed")}function q(t,h){t.super_=h;var l=function(){};l.prototype=h.prototype,t.prototype=new l,t.prototype.constructor=t}function p(t,h,l){if(p.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,t!==null&&(h!=="le"&&h!=="be"||(l=h,h=10),this._init(t||0,h||10,l||"be"))}var N;typeof j=="object"?j.exports=p:O.BN=p,p.BN=p,p.wordSize=26;try{N=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:b(7965).Buffer}catch{}function M(t,h){var l=t.charCodeAt(h);return l>=65&&l<=70?l-55:l>=97&&l<=102?l-87:l-48&15}function T(t,h,l){var a=M(t,l);return l-1>=h&&(a|=M(t,l-1)<<4),a}function S(t,h,l,a){for(var r=0,v=Math.min(t.length,l),A=h;A<v;A++){var W=t.charCodeAt(A)-48;r*=a,r+=W>=49?W-49+10:W>=17?W-17+10:W}return r}p.isBN=function(t){return t instanceof p||t!==null&&typeof t=="object"&&t.constructor.wordSize===p.wordSize&&Array.isArray(t.words)},p.max=function(t,h){return t.cmp(h)>0?t:h},p.min=function(t,h){return t.cmp(h)<0?t:h},p.prototype._init=function(t,h,l){if(typeof t=="number")return this._initNumber(t,h,l);if(typeof t=="object")return this._initArray(t,h,l);h==="hex"&&(h=16),I(h===(0|h)&&h>=2&&h<=36);var a=0;(t=t.toString().replace(/\s+/g,""))[0]==="-"&&(a++,this.negative=1),a<t.length&&(h===16?this._parseHex(t,a,l):(this._parseBase(t,h,a),l==="le"&&this._initArray(this.toArray(),h,l)))},p.prototype._initNumber=function(t,h,l){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):(I(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),l==="le"&&this._initArray(this.toArray(),h,l)},p.prototype._initArray=function(t,h,l){if(I(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 a=0;a<this.length;a++)this.words[a]=0;var r,v,A=0;if(l==="be")for(a=t.length-1,r=0;a>=0;a-=3)v=t[a]|t[a-1]<<8|t[a-2]<<16,this.words[r]|=v<<A&67108863,this.words[r+1]=v>>>26-A&67108863,(A+=24)>=26&&(A-=26,r++);else if(l==="le")for(a=0,r=0;a<t.length;a+=3)v=t[a]|t[a+1]<<8|t[a+2]<<16,this.words[r]|=v<<A&67108863,this.words[r+1]=v>>>26-A&67108863,(A+=24)>=26&&(A-=26,r++);return this.strip()},p.prototype._parseHex=function(t,h,l){this.length=Math.ceil((t.length-h)/6),this.words=new Array(this.length);for(var a=0;a<this.length;a++)this.words[a]=0;var r,v=0,A=0;if(l==="be")for(a=t.length-1;a>=h;a-=2)r=T(t,h,a)<<v,this.words[A]|=67108863&r,v>=18?(v-=18,A+=1,this.words[A]|=r>>>26):v+=8;else for(a=(t.length-h)%2==0?h+1:h;a<t.length;a+=2)r=T(t,h,a)<<v,this.words[A]|=67108863&r,v>=18?(v-=18,A+=1,this.words[A]|=r>>>26):v+=8;this.strip()},p.prototype._parseBase=function(t,h,l){this.words=[0],this.length=1;for(var a=0,r=1;r<=67108863;r*=h)a++;a--,r=r/h|0;for(var v=t.length-l,A=v%a,W=Math.min(v,v-A)+l,J=0,K=l;K<W;K+=a)J=S(t,K,K+a,h),this.imuln(r),this.words[0]+J<67108864?this.words[0]+=J:this._iaddn(J);if(A!==0){var G=1;for(J=S(t,K,t.length,h),K=0;K<A;K++)G*=h;this.imuln(G),this.words[0]+J<67108864?this.words[0]+=J:this._iaddn(J)}this.strip()},p.prototype.copy=function(t){t.words=new Array(this.length);for(var h=0;h<this.length;h++)t.words[h]=this.words[h];t.length=this.length,t.negative=this.negative,t.red=this.red},p.prototype.clone=function(){var t=new p(null);return this.copy(t),t},p.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},p.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},p.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},p.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var B=["","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"],C=[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],_=[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 F(t,h,l){l.negative=h.negative^t.negative;var a=t.length+h.length|0;l.length=a,a=a-1|0;var r=0|t.words[0],v=0|h.words[0],A=r*v,W=67108863&A,J=A/67108864|0;l.words[0]=W;for(var K=1;K<a;K++){for(var G=J>>>26,Y=67108863&J,at=Math.min(K,h.length-1),ot=Math.max(0,K-t.length+1);ot<=at;ot++){var ht=K-ot|0;G+=(A=(r=0|t.words[ht])*(v=0|h.words[ot])+Y)/67108864|0,Y=67108863&A}l.words[K]=0|Y,J=0|G}return J!==0?l.words[K]=0|J:l.length--,l.strip()}p.prototype.toString=function(t,h){var l;if(h=0|h||1,(t=t||10)===16||t==="hex"){l="";for(var a=0,r=0,v=0;v<this.length;v++){var A=this.words[v],W=(16777215&(A<<a|r)).toString(16);r=A>>>24-a&16777215,(a+=2)>=26&&(a-=26,v--),l=r!==0||v!==this.length-1?B[6-W.length]+W+l:W+l}for(r!==0&&(l=r.toString(16)+l);l.length%h!=0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}if(t===(0|t)&&t>=2&&t<=36){var J=C[t],K=_[t];l="";var G=this.clone();for(G.negative=0;!G.isZero();){var Y=G.modn(K).toString(t);l=(G=G.idivn(K)).isZero()?Y+l:B[J-Y.length]+Y+l}for(this.isZero()&&(l="0"+l);l.length%h!=0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}I(!1,"Base should be between 2 and 36")},p.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&&I(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-t:t},p.prototype.toJSON=function(){return this.toString(16)},p.prototype.toBuffer=function(t,h){return I(N!==void 0),this.toArrayLike(N,t,h)},p.prototype.toArray=function(t,h){return this.toArrayLike(Array,t,h)},p.prototype.toArrayLike=function(t,h,l){var a=this.byteLength(),r=l||Math.max(1,a);I(a<=r,"byte array longer than desired length"),I(r>0,"Requested array length <= 0"),this.strip();var v,A,W=h==="le",J=new t(r),K=this.clone();if(W){for(A=0;!K.isZero();A++)v=K.andln(255),K.iushrn(8),J[A]=v;for(;A<r;A++)J[A]=0}else{for(A=0;A<r-a;A++)J[A]=0;for(A=0;!K.isZero();A++)v=K.andln(255),K.iushrn(8),J[r-A-1]=v}return J},Math.clz32?p.prototype._countBits=function(t){return 32-Math.clz32(t)}:p.prototype._countBits=function(t){var h=t,l=0;return h>=4096&&(l+=13,h>>>=13),h>=64&&(l+=7,h>>>=7),h>=8&&(l+=4,h>>>=4),h>=2&&(l+=2,h>>>=2),l+h},p.prototype._zeroBits=function(t){if(t===0)return 26;var h=t,l=0;return 8191&h||(l+=13,h>>>=13),127&h||(l+=7,h>>>=7),15&h||(l+=4,h>>>=4),3&h||(l+=2,h>>>=2),1&h||l++,l},p.prototype.bitLength=function(){var t=this.words[this.length-1],h=this._countBits(t);return 26*(this.length-1)+h},p.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,h=0;h<this.length;h++){var l=this._zeroBits(this.words[h]);if(t+=l,l!==26)break}return t},p.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},p.prototype.toTwos=function(t){return this.negative!==0?this.abs().inotn(t).iaddn(1):this.clone()},p.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},p.prototype.isNeg=function(){return this.negative!==0},p.prototype.neg=function(){return this.clone().ineg()},p.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},p.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var h=0;h<t.length;h++)this.words[h]=this.words[h]|t.words[h];return this.strip()},p.prototype.ior=function(t){return I(!(this.negative|t.negative)),this.iuor(t)},p.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},p.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},p.prototype.iuand=function(t){var h;h=this.length>t.length?t:this;for(var l=0;l<h.length;l++)this.words[l]=this.words[l]&t.words[l];return this.length=h.length,this.strip()},p.prototype.iand=function(t){return I(!(this.negative|t.negative)),this.iuand(t)},p.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},p.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},p.prototype.iuxor=function(t){var h,l;this.length>t.length?(h=this,l=t):(h=t,l=this);for(var a=0;a<l.length;a++)this.words[a]=h.words[a]^l.words[a];if(this!==h)for(;a<h.length;a++)this.words[a]=h.words[a];return this.length=h.length,this.strip()},p.prototype.ixor=function(t){return I(!(this.negative|t.negative)),this.iuxor(t)},p.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},p.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},p.prototype.inotn=function(t){I(typeof t=="number"&&t>=0);var h=0|Math.ceil(t/26),l=t%26;this._expand(h),l>0&&h--;for(var a=0;a<h;a++)this.words[a]=67108863&~this.words[a];return l>0&&(this.words[a]=~this.words[a]&67108863>>26-l),this.strip()},p.prototype.notn=function(t){return this.clone().inotn(t)},p.prototype.setn=function(t,h){I(typeof t=="number"&&t>=0);var l=t/26|0,a=t%26;return this._expand(l+1),this.words[l]=h?this.words[l]|1<<a:this.words[l]&~(1<<a),this.strip()},p.prototype.iadd=function(t){var h,l,a;if(this.negative!==0&&t.negative===0)return this.negative=0,h=this.isub(t),this.negative^=1,this._normSign();if(this.negative===0&&t.negative!==0)return t.negative=0,h=this.isub(t),t.negative=1,h._normSign();this.length>t.length?(l=this,a=t):(l=t,a=this);for(var r=0,v=0;v<a.length;v++)h=(0|l.words[v])+(0|a.words[v])+r,this.words[v]=67108863&h,r=h>>>26;for(;r!==0&&v<l.length;v++)h=(0|l.words[v])+r,this.words[v]=67108863&h,r=h>>>26;if(this.length=l.length,r!==0)this.words[this.length]=r,this.length++;else if(l!==this)for(;v<l.length;v++)this.words[v]=l.words[v];return this},p.prototype.add=function(t){var h;return t.negative!==0&&this.negative===0?(t.negative=0,h=this.sub(t),t.negative^=1,h):t.negative===0&&this.negative!==0?(this.negative=0,h=t.sub(this),this.negative=1,h):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},p.prototype.isub=function(t){if(t.negative!==0){t.negative=0;var h=this.iadd(t);return t.negative=1,h._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var l,a,r=this.cmp(t);if(r===0)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(l=this,a=t):(l=t,a=this);for(var v=0,A=0;A<a.length;A++)v=(h=(0|l.words[A])-(0|a.words[A])+v)>>26,this.words[A]=67108863&h;for(;v!==0&&A<l.length;A++)v=(h=(0|l.words[A])+v)>>26,this.words[A]=67108863&h;if(v===0&&A<l.length&&l!==this)for(;A<l.length;A++)this.words[A]=l.words[A];return this.length=Math.max(this.length,A),l!==this&&(this.negative=1),this.strip()},p.prototype.sub=function(t){return this.clone().isub(t)};var U=function(t,h,l){var a,r,v,A=t.words,W=h.words,J=l.words,K=0,G=0|A[0],Y=8191&G,at=G>>>13,ot=0|A[1],ht=8191&ot,tt=ot>>>13,it=0|A[2],Z=8191&it,rt=it>>>13,wt=0|A[3],gt=8191&wt,St=wt>>>13,Lt=0|A[4],At=8191&Lt,jt=Lt>>>13,Qt=0|A[5],Dt=8191&Qt,zt=Qt>>>13,ft=0|A[6],pt=8191&ft,mt=ft>>>13,Mt=0|A[7],xt=8191&Mt,kt=Mt>>>13,$t=0|A[8],Pt=8191&$t,yt=$t>>>13,dt=0|A[9],lt=8191&dt,_t=dt>>>13,qt=0|W[0],It=8191&qt,Nt=qt>>>13,be=0|W[1],Vt=8191&be,Jt=be>>>13,Ee=0|W[2],Ht=8191&Ee,ae=Ee>>>13,Ne=0|W[3],Gt=8191&Ne,se=Ne>>>13,qe=0|W[4],Zt=8191&qe,he=qe>>>13,Qe=0|W[5],Yt=8191&Qe,ce=Qe>>>13,Ge=0|W[6],Ut=8191&Ge,te=Ge>>>13,He=0|W[7],ne=8191&He,me=He>>>13,tr=0|W[8],ie=8191&tr,de=tr>>>13,rr=0|W[9],oe=8191&rr,ge=rr>>>13;l.negative=t.negative^h.negative,l.length=19;var We=(K+(a=Math.imul(Y,It))|0)+((8191&(r=(r=Math.imul(Y,Nt))+Math.imul(at,It)|0))<<13)|0;K=((v=Math.imul(at,Nt))+(r>>>13)|0)+(We>>>26)|0,We&=67108863,a=Math.imul(ht,It),r=(r=Math.imul(ht,Nt))+Math.imul(tt,It)|0,v=Math.imul(tt,Nt);var $e=(K+(a=a+Math.imul(Y,Vt)|0)|0)+((8191&(r=(r=r+Math.imul(Y,Jt)|0)+Math.imul(at,Vt)|0))<<13)|0;K=((v=v+Math.imul(at,Jt)|0)+(r>>>13)|0)+($e>>>26)|0,$e&=67108863,a=Math.imul(Z,It),r=(r=Math.imul(Z,Nt))+Math.imul(rt,It)|0,v=Math.imul(rt,Nt),a=a+Math.imul(ht,Vt)|0,r=(r=r+Math.imul(ht,Jt)|0)+Math.imul(tt,Vt)|0,v=v+Math.imul(tt,Jt)|0;var cr=(K+(a=a+Math.imul(Y,Ht)|0)|0)+((8191&(r=(r=r+Math.imul(Y,ae)|0)+Math.imul(at,Ht)|0))<<13)|0;K=((v=v+Math.imul(at,ae)|0)+(r>>>13)|0)+(cr>>>26)|0,cr&=67108863,a=Math.imul(gt,It),r=(r=Math.imul(gt,Nt))+Math.imul(St,It)|0,v=Math.imul(St,Nt),a=a+Math.imul(Z,Vt)|0,r=(r=r+Math.imul(Z,Jt)|0)+Math.imul(rt,Vt)|0,v=v+Math.imul(rt,Jt)|0,a=a+Math.imul(ht,Ht)|0,r=(r=r+Math.imul(ht,ae)|0)+Math.imul(tt,Ht)|0,v=v+Math.imul(tt,ae)|0;var mr=(K+(a=a+Math.imul(Y,Gt)|0)|0)+((8191&(r=(r=r+Math.imul(Y,se)|0)+Math.imul(at,Gt)|0))<<13)|0;K=((v=v+Math.imul(at,se)|0)+(r>>>13)|0)+(mr>>>26)|0,mr&=67108863,a=Math.imul(At,It),r=(r=Math.imul(At,Nt))+Math.imul(jt,It)|0,v=Math.imul(jt,Nt),a=a+Math.imul(gt,Vt)|0,r=(r=r+Math.imul(gt,Jt)|0)+Math.imul(St,Vt)|0,v=v+Math.imul(St,Jt)|0,a=a+Math.imul(Z,Ht)|0,r=(r=r+Math.imul(Z,ae)|0)+Math.imul(rt,Ht)|0,v=v+Math.imul(rt,ae)|0,a=a+Math.imul(ht,Gt)|0,r=(r=r+Math.imul(ht,se)|0)+Math.imul(tt,Gt)|0,v=v+Math.imul(tt,se)|0;var hr=(K+(a=a+Math.imul(Y,Zt)|0)|0)+((8191&(r=(r=r+Math.imul(Y,he)|0)+Math.imul(at,Zt)|0))<<13)|0;K=((v=v+Math.imul(at,he)|0)+(r>>>13)|0)+(hr>>>26)|0,hr&=67108863,a=Math.imul(Dt,It),r=(r=Math.imul(Dt,Nt))+Math.imul(zt,It)|0,v=Math.imul(zt,Nt),a=a+Math.imul(At,Vt)|0,r=(r=r+Math.imul(At,Jt)|0)+Math.imul(jt,Vt)|0,v=v+Math.imul(jt,Jt)|0,a=a+Math.imul(gt,Ht)|0,r=(r=r+Math.imul(gt,ae)|0)+Math.imul(St,Ht)|0,v=v+Math.imul(St,ae)|0,a=a+Math.imul(Z,Gt)|0,r=(r=r+Math.imul(Z,se)|0)+Math.imul(rt,Gt)|0,v=v+Math.imul(rt,se)|0,a=a+Math.imul(ht,Zt)|0,r=(r=r+Math.imul(ht,he)|0)+Math.imul(tt,Zt)|0,v=v+Math.imul(tt,he)|0;var gr=(K+(a=a+Math.imul(Y,Yt)|0)|0)+((8191&(r=(r=r+Math.imul(Y,ce)|0)+Math.imul(at,Yt)|0))<<13)|0;K=((v=v+Math.imul(at,ce)|0)+(r>>>13)|0)+(gr>>>26)|0,gr&=67108863,a=Math.imul(pt,It),r=(r=Math.imul(pt,Nt))+Math.imul(mt,It)|0,v=Math.imul(mt,Nt),a=a+Math.imul(Dt,Vt)|0,r=(r=r+Math.imul(Dt,Jt)|0)+Math.imul(zt,Vt)|0,v=v+Math.imul(zt,Jt)|0,a=a+Math.imul(At,Ht)|0,r=(r=r+Math.imul(At,ae)|0)+Math.imul(jt,Ht)|0,v=v+Math.imul(jt,ae)|0,a=a+Math.imul(gt,Gt)|0,r=(r=r+Math.imul(gt,se)|0)+Math.imul(St,Gt)|0,v=v+Math.imul(St,se)|0,a=a+Math.imul(Z,Zt)|0,r=(r=r+Math.imul(Z,he)|0)+Math.imul(rt,Zt)|0,v=v+Math.imul(rt,he)|0,a=a+Math.imul(ht,Yt)|0,r=(r=r+Math.imul(ht,ce)|0)+Math.imul(tt,Yt)|0,v=v+Math.imul(tt,ce)|0;var vr=(K+(a=a+Math.imul(Y,Ut)|0)|0)+((8191&(r=(r=r+Math.imul(Y,te)|0)+Math.imul(at,Ut)|0))<<13)|0;K=((v=v+Math.imul(at,te)|0)+(r>>>13)|0)+(vr>>>26)|0,vr&=67108863,a=Math.imul(xt,It),r=(r=Math.imul(xt,Nt))+Math.imul(kt,It)|0,v=Math.imul(kt,Nt),a=a+Math.imul(pt,Vt)|0,r=(r=r+Math.imul(pt,Jt)|0)+Math.imul(mt,Vt)|0,v=v+Math.imul(mt,Jt)|0,a=a+Math.imul(Dt,Ht)|0,r=(r=r+Math.imul(Dt,ae)|0)+Math.imul(zt,Ht)|0,v=v+Math.imul(zt,ae)|0,a=a+Math.imul(At,Gt)|0,r=(r=r+Math.imul(At,se)|0)+Math.imul(jt,Gt)|0,v=v+Math.imul(jt,se)|0,a=a+Math.imul(gt,Zt)|0,r=(r=r+Math.imul(gt,he)|0)+Math.imul(St,Zt)|0,v=v+Math.imul(St,he)|0,a=a+Math.imul(Z,Yt)|0,r=(r=r+Math.imul(Z,ce)|0)+Math.imul(rt,Yt)|0,v=v+Math.imul(rt,ce)|0,a=a+Math.imul(ht,Ut)|0,r=(r=r+Math.imul(ht,te)|0)+Math.imul(tt,Ut)|0,v=v+Math.imul(tt,te)|0;var yr=(K+(a=a+Math.imul(Y,ne)|0)|0)+((8191&(r=(r=r+Math.imul(Y,me)|0)+Math.imul(at,ne)|0))<<13)|0;K=((v=v+Math.imul(at,me)|0)+(r>>>13)|0)+(yr>>>26)|0,yr&=67108863,a=Math.imul(Pt,It),r=(r=Math.imul(Pt,Nt))+Math.imul(yt,It)|0,v=Math.imul(yt,Nt),a=a+Math.imul(xt,Vt)|0,r=(r=r+Math.imul(xt,Jt)|0)+Math.imul(kt,Vt)|0,v=v+Math.imul(kt,Jt)|0,a=a+Math.imul(pt,Ht)|0,r=(r=r+Math.imul(pt,ae)|0)+Math.imul(mt,Ht)|0,v=v+Math.imul(mt,ae)|0,a=a+Math.imul(Dt,Gt)|0,r=(r=r+Math.imul(Dt,se)|0)+Math.imul(zt,Gt)|0,v=v+Math.imul(zt,se)|0,a=a+Math.imul(At,Zt)|0,r=(r=r+Math.imul(At,he)|0)+Math.imul(jt,Zt)|0,v=v+Math.imul(jt,he)|0,a=a+Math.imul(gt,Yt)|0,r=(r=r+Math.imul(gt,ce)|0)+Math.imul(St,Yt)|0,v=v+Math.imul(St,ce)|0,a=a+Math.imul(Z,Ut)|0,r=(r=r+Math.imul(Z,te)|0)+Math.imul(rt,Ut)|0,v=v+Math.imul(rt,te)|0,a=a+Math.imul(ht,ne)|0,r=(r=r+Math.imul(ht,me)|0)+Math.imul(tt,ne)|0,v=v+Math.imul(tt,me)|0;var br=(K+(a=a+Math.imul(Y,ie)|0)|0)+((8191&(r=(r=r+Math.imul(Y,de)|0)+Math.imul(at,ie)|0))<<13)|0;K=((v=v+Math.imul(at,de)|0)+(r>>>13)|0)+(br>>>26)|0,br&=67108863,a=Math.imul(lt,It),r=(r=Math.imul(lt,Nt))+Math.imul(_t,It)|0,v=Math.imul(_t,Nt),a=a+Math.imul(Pt,Vt)|0,r=(r=r+Math.imul(Pt,Jt)|0)+Math.imul(yt,Vt)|0,v=v+Math.imul(yt,Jt)|0,a=a+Math.imul(xt,Ht)|0,r=(r=r+Math.imul(xt,ae)|0)+Math.imul(kt,Ht)|0,v=v+Math.imul(kt,ae)|0,a=a+Math.imul(pt,Gt)|0,r=(r=r+Math.imul(pt,se)|0)+Math.imul(mt,Gt)|0,v=v+Math.imul(mt,se)|0,a=a+Math.imul(Dt,Zt)|0,r=(r=r+Math.imul(Dt,he)|0)+Math.imul(zt,Zt)|0,v=v+Math.imul(zt,he)|0,a=a+Math.imul(At,Yt)|0,r=(r=r+Math.imul(At,ce)|0)+Math.imul(jt,Yt)|0,v=v+Math.imul(jt,ce)|0,a=a+Math.imul(gt,Ut)|0,r=(r=r+Math.imul(gt,te)|0)+Math.imul(St,Ut)|0,v=v+Math.imul(St,te)|0,a=a+Math.imul(Z,ne)|0,r=(r=r+Math.imul(Z,me)|0)+Math.imul(rt,ne)|0,v=v+Math.imul(rt,me)|0,a=a+Math.imul(ht,ie)|0,r=(r=r+Math.imul(ht,de)|0)+Math.imul(tt,ie)|0,v=v+Math.imul(tt,de)|0;var lr=(K+(a=a+Math.imul(Y,oe)|0)|0)+((8191&(r=(r=r+Math.imul(Y,ge)|0)+Math.imul(at,oe)|0))<<13)|0;K=((v=v+Math.imul(at,ge)|0)+(r>>>13)|0)+(lr>>>26)|0,lr&=67108863,a=Math.imul(lt,Vt),r=(r=Math.imul(lt,Jt))+Math.imul(_t,Vt)|0,v=Math.imul(_t,Jt),a=a+Math.imul(Pt,Ht)|0,r=(r=r+Math.imul(Pt,ae)|0)+Math.imul(yt,Ht)|0,v=v+Math.imul(yt,ae)|0,a=a+Math.imul(xt,Gt)|0,r=(r=r+Math.imul(xt,se)|0)+Math.imul(kt,Gt)|0,v=v+Math.imul(kt,se)|0,a=a+Math.imul(pt,Zt)|0,r=(r=r+Math.imul(pt,he)|0)+Math.imul(mt,Zt)|0,v=v+Math.imul(mt,he)|0,a=a+Math.imul(Dt,Yt)|0,r=(r=r+Math.imul(Dt,ce)|0)+Math.imul(zt,Yt)|0,v=v+Math.imul(zt,ce)|0,a=a+Math.imul(At,Ut)|0,r=(r=r+Math.imul(At,te)|0)+Math.imul(jt,Ut)|0,v=v+Math.imul(jt,te)|0,a=a+Math.imul(gt,ne)|0,r=(r=r+Math.imul(gt,me)|0)+Math.imul(St,ne)|0,v=v+Math.imul(St,me)|0,a=a+Math.imul(Z,ie)|0,r=(r=r+Math.imul(Z,de)|0)+Math.imul(rt,ie)|0,v=v+Math.imul(rt,de)|0;var wr=(K+(a=a+Math.imul(ht,oe)|0)|0)+((8191&(r=(r=r+Math.imul(ht,ge)|0)+Math.imul(tt,oe)|0))<<13)|0;K=((v=v+Math.imul(tt,ge)|0)+(r>>>13)|0)+(wr>>>26)|0,wr&=67108863,a=Math.imul(lt,Ht),r=(r=Math.imul(lt,ae))+Math.imul(_t,Ht)|0,v=Math.imul(_t,ae),a=a+Math.imul(Pt,Gt)|0,r=(r=r+Math.imul(Pt,se)|0)+Math.imul(yt,Gt)|0,v=v+Math.imul(yt,se)|0,a=a+Math.imul(xt,Zt)|0,r=(r=r+Math.imul(xt,he)|0)+Math.imul(kt,Zt)|0,v=v+Math.imul(kt,he)|0,a=a+Math.imul(pt,Yt)|0,r=(r=r+Math.imul(pt,ce)|0)+Math.imul(mt,Yt)|0,v=v+Math.imul(mt,ce)|0,a=a+Math.imul(Dt,Ut)|0,r=(r=r+Math.imul(Dt,te)|0)+Math.imul(zt,Ut)|0,v=v+Math.imul(zt,te)|0,a=a+Math.imul(At,ne)|0,r=(r=r+Math.imul(At,me)|0)+Math.imul(jt,ne)|0,v=v+Math.imul(jt,me)|0,a=a+Math.imul(gt,ie)|0,r=(r=r+Math.imul(gt,de)|0)+Math.imul(St,ie)|0,v=v+Math.imul(St,de)|0;var fr=(K+(a=a+Math.imul(Z,oe)|0)|0)+((8191&(r=(r=r+Math.imul(Z,ge)|0)+Math.imul(rt,oe)|0))<<13)|0;K=((v=v+Math.imul(rt,ge)|0)+(r>>>13)|0)+(fr>>>26)|0,fr&=67108863,a=Math.imul(lt,Gt),r=(r=Math.imul(lt,se))+Math.imul(_t,Gt)|0,v=Math.imul(_t,se),a=a+Math.imul(Pt,Zt)|0,r=(r=r+Math.imul(Pt,he)|0)+Math.imul(yt,Zt)|0,v=v+Math.imul(yt,he)|0,a=a+Math.imul(xt,Yt)|0,r=(r=r+Math.imul(xt,ce)|0)+Math.imul(kt,Yt)|0,v=v+Math.imul(kt,ce)|0,a=a+Math.imul(pt,Ut)|0,r=(r=r+Math.imul(pt,te)|0)+Math.imul(mt,Ut)|0,v=v+Math.imul(mt,te)|0,a=a+Math.imul(Dt,ne)|0,r=(r=r+Math.imul(Dt,me)|0)+Math.imul(zt,ne)|0,v=v+Math.imul(zt,me)|0,a=a+Math.imul(At,ie)|0,r=(r=r+Math.imul(At,de)|0)+Math.imul(jt,ie)|0,v=v+Math.imul(jt,de)|0;var _r=(K+(a=a+Math.imul(gt,oe)|0)|0)+((8191&(r=(r=r+Math.imul(gt,ge)|0)+Math.imul(St,oe)|0))<<13)|0;K=((v=v+Math.imul(St,ge)|0)+(r>>>13)|0)+(_r>>>26)|0,_r&=67108863,a=Math.imul(lt,Zt),r=(r=Math.imul(lt,he))+Math.imul(_t,Zt)|0,v=Math.imul(_t,he),a=a+Math.imul(Pt,Yt)|0,r=(r=r+Math.imul(Pt,ce)|0)+Math.imul(yt,Yt)|0,v=v+Math.imul(yt,ce)|0,a=a+Math.imul(xt,Ut)|0,r=(r=r+Math.imul(xt,te)|0)+Math.imul(kt,Ut)|0,v=v+Math.imul(kt,te)|0,a=a+Math.imul(pt,ne)|0,r=(r=r+Math.imul(pt,me)|0)+Math.imul(mt,ne)|0,v=v+Math.imul(mt,me)|0,a=a+Math.imul(Dt,ie)|0,r=(r=r+Math.imul(Dt,de)|0)+Math.imul(zt,ie)|0,v=v+Math.imul(zt,de)|0;var Mr=(K+(a=a+Math.imul(At,oe)|0)|0)+((8191&(r=(r=r+Math.imul(At,ge)|0)+Math.imul(jt,oe)|0))<<13)|0;K=((v=v+Math.imul(jt,ge)|0)+(r>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,a=Math.imul(lt,Yt),r=(r=Math.imul(lt,ce))+Math.imul(_t,Yt)|0,v=Math.imul(_t,ce),a=a+Math.imul(Pt,Ut)|0,r=(r=r+Math.imul(Pt,te)|0)+Math.imul(yt,Ut)|0,v=v+Math.imul(yt,te)|0,a=a+Math.imul(xt,ne)|0,r=(r=r+Math.imul(xt,me)|0)+Math.imul(kt,ne)|0,v=v+Math.imul(kt,me)|0,a=a+Math.imul(pt,ie)|0,r=(r=r+Math.imul(pt,de)|0)+Math.imul(mt,ie)|0,v=v+Math.imul(mt,de)|0;var pr=(K+(a=a+Math.imul(Dt,oe)|0)|0)+((8191&(r=(r=r+Math.imul(Dt,ge)|0)+Math.imul(zt,oe)|0))<<13)|0;K=((v=v+Math.imul(zt,ge)|0)+(r>>>13)|0)+(pr>>>26)|0,pr&=67108863,a=Math.imul(lt,Ut),r=(r=Math.imul(lt,te))+Math.imul(_t,Ut)|0,v=Math.imul(_t,te),a=a+Math.imul(Pt,ne)|0,r=(r=r+Math.imul(Pt,me)|0)+Math.imul(yt,ne)|0,v=v+Math.imul(yt,me)|0,a=a+Math.imul(xt,ie)|0,r=(r=r+Math.imul(xt,de)|0)+Math.imul(kt,ie)|0,v=v+Math.imul(kt,de)|0;var Le=(K+(a=a+Math.imul(pt,oe)|0)|0)+((8191&(r=(r=r+Math.imul(pt,ge)|0)+Math.imul(mt,oe)|0))<<13)|0;K=((v=v+Math.imul(mt,ge)|0)+(r>>>13)|0)+(Le>>>26)|0,Le&=67108863,a=Math.imul(lt,ne),r=(r=Math.imul(lt,me))+Math.imul(_t,ne)|0,v=Math.imul(_t,me),a=a+Math.imul(Pt,ie)|0,r=(r=r+Math.imul(Pt,de)|0)+Math.imul(yt,ie)|0,v=v+Math.imul(yt,de)|0;var De=(K+(a=a+Math.imul(xt,oe)|0)|0)+((8191&(r=(r=r+Math.imul(xt,ge)|0)+Math.imul(kt,oe)|0))<<13)|0;K=((v=v+Math.imul(kt,ge)|0)+(r>>>13)|0)+(De>>>26)|0,De&=67108863,a=Math.imul(lt,ie),r=(r=Math.imul(lt,de))+Math.imul(_t,ie)|0,v=Math.imul(_t,de);var xr=(K+(a=a+Math.imul(Pt,oe)|0)|0)+((8191&(r=(r=r+Math.imul(Pt,ge)|0)+Math.imul(yt,oe)|0))<<13)|0;K=((v=v+Math.imul(yt,ge)|0)+(r>>>13)|0)+(xr>>>26)|0,xr&=67108863;var Er=(K+(a=Math.imul(lt,oe))|0)+((8191&(r=(r=Math.imul(lt,ge))+Math.imul(_t,oe)|0))<<13)|0;return K=((v=Math.imul(_t,ge))+(r>>>13)|0)+(Er>>>26)|0,Er&=67108863,J[0]=We,J[1]=$e,J[2]=cr,J[3]=mr,J[4]=hr,J[5]=gr,J[6]=vr,J[7]=yr,J[8]=br,J[9]=lr,J[10]=wr,J[11]=fr,J[12]=_r,J[13]=Mr,J[14]=pr,J[15]=Le,J[16]=De,J[17]=xr,J[18]=Er,K!==0&&(J[19]=K,l.length++),l};function z(t,h,l){return new H().mulp(t,h,l)}function H(t,h){this.x=t,this.y=h}Math.imul||(U=F),p.prototype.mulTo=function(t,h){var l,a=this.length+t.length;return l=this.length===10&&t.length===10?U(this,t,h):a<63?F(this,t,h):a<1024?function(r,v,A){A.negative=v.negative^r.negative,A.length=r.length+v.length;for(var W=0,J=0,K=0;K<A.length-1;K++){var G=J;J=0;for(var Y=67108863&W,at=Math.min(K,v.length-1),ot=Math.max(0,K-r.length+1);ot<=at;ot++){var ht=K-ot,tt=(0|r.words[ht])*(0|v.words[ot]),it=67108863&tt;Y=67108863&(it=it+Y|0),J+=(G=(G=G+(tt/67108864|0)|0)+(it>>>26)|0)>>>26,G&=67108863}A.words[K]=Y,W=G,G=J}return W!==0?A.words[K]=W:A.length--,A.strip()}(this,t,h):z(this,t,h),l},H.prototype.makeRBT=function(t){for(var h=new Array(t),l=p.prototype._countBits(t)-1,a=0;a<t;a++)h[a]=this.revBin(a,l,t);return h},H.prototype.revBin=function(t,h,l){if(t===0||t===l-1)return t;for(var a=0,r=0;r<h;r++)a|=(1&t)<<h-r-1,t>>=1;return a},H.prototype.permute=function(t,h,l,a,r,v){for(var A=0;A<v;A++)a[A]=h[t[A]],r[A]=l[t[A]]},H.prototype.transform=function(t,h,l,a,r,v){this.permute(v,t,h,l,a,r);for(var A=1;A<r;A<<=1)for(var W=A<<1,J=Math.cos(2*Math.PI/W),K=Math.sin(2*Math.PI/W),G=0;G<r;G+=W)for(var Y=J,at=K,ot=0;ot<A;ot++){var ht=l[G+ot],tt=a[G+ot],it=l[G+ot+A],Z=a[G+ot+A],rt=Y*it-at*Z;Z=Y*Z+at*it,it=rt,l[G+ot]=ht+it,a[G+ot]=tt+Z,l[G+ot+A]=ht-it,a[G+ot+A]=tt-Z,ot!==W&&(rt=J*Y-K*at,at=J*at+K*Y,Y=rt)}},H.prototype.guessLen13b=function(t,h){var l=1|Math.max(h,t),a=1&l,r=0;for(l=l/2|0;l;l>>>=1)r++;return 1<<r+1+a},H.prototype.conjugate=function(t,h,l){if(!(l<=1))for(var a=0;a<l/2;a++){var r=t[a];t[a]=t[l-a-1],t[l-a-1]=r,r=h[a],h[a]=-h[l-a-1],h[l-a-1]=-r}},H.prototype.normalize13b=function(t,h){for(var l=0,a=0;a<h/2;a++){var r=8192*Math.round(t[2*a+1]/h)+Math.round(t[2*a]/h)+l;t[a]=67108863&r,l=r<67108864?0:r/67108864|0}return t},H.prototype.convert13b=function(t,h,l,a){for(var r=0,v=0;v<h;v++)r+=0|t[v],l[2*v]=8191&r,r>>>=13,l[2*v+1]=8191&r,r>>>=13;for(v=2*h;v<a;++v)l[v]=0;I(r===0),I(!(-8192&r))},H.prototype.stub=function(t){for(var h=new Array(t),l=0;l<t;l++)h[l]=0;return h},H.prototype.mulp=function(t,h,l){var a=2*this.guessLen13b(t.length,h.length),r=this.makeRBT(a),v=this.stub(a),A=new Array(a),W=new Array(a),J=new Array(a),K=new Array(a),G=new Array(a),Y=new Array(a),at=l.words;at.length=a,this.convert13b(t.words,t.length,A,a),this.convert13b(h.words,h.length,K,a),this.transform(A,v,W,J,a,r),this.transform(K,v,G,Y,a,r);for(var ot=0;ot<a;ot++){var ht=W[ot]*G[ot]-J[ot]*Y[ot];J[ot]=W[ot]*Y[ot]+J[ot]*G[ot],W[ot]=ht}return this.conjugate(W,J,a),this.transform(W,J,at,v,a,r),this.conjugate(at,v,a),this.normalize13b(at,a),l.negative=t.negative^h.negative,l.length=t.length+h.length,l.strip()},p.prototype.mul=function(t){var h=new p(null);return h.words=new Array(this.length+t.length),this.mulTo(t,h)},p.prototype.mulf=function(t){var h=new p(null);return h.words=new Array(this.length+t.length),z(this,t,h)},p.prototype.imul=function(t){return this.clone().mulTo(t,this)},p.prototype.imuln=function(t){I(typeof t=="number"),I(t<67108864);for(var h=0,l=0;l<this.length;l++){var a=(0|this.words[l])*t,r=(67108863&a)+(67108863&h);h>>=26,h+=a/67108864|0,h+=r>>>26,this.words[l]=67108863&r}return h!==0&&(this.words[l]=h,this.length++),this},p.prototype.muln=function(t){return this.clone().imuln(t)},p.prototype.sqr=function(){return this.mul(this)},p.prototype.isqr=function(){return this.imul(this.clone())},p.prototype.pow=function(t){var h=function(v){for(var A=new Array(v.bitLength()),W=0;W<A.length;W++){var J=W/26|0,K=W%26;A[W]=(v.words[J]&1<<K)>>>K}return A}(t);if(h.length===0)return new p(1);for(var l=this,a=0;a<h.length&&h[a]===0;a++,l=l.sqr());if(++a<h.length)for(var r=l.sqr();a<h.length;a++,r=r.sqr())h[a]!==0&&(l=l.mul(r));return l},p.prototype.iushln=function(t){I(typeof t=="number"&&t>=0);var h,l=t%26,a=(t-l)/26,r=67108863>>>26-l<<26-l;if(l!==0){var v=0;for(h=0;h<this.length;h++){var A=this.words[h]&r,W=(0|this.words[h])-A<<l;this.words[h]=W|v,v=A>>>26-l}v&&(this.words[h]=v,this.length++)}if(a!==0){for(h=this.length-1;h>=0;h--)this.words[h+a]=this.words[h];for(h=0;h<a;h++)this.words[h]=0;this.length+=a}return this.strip()},p.prototype.ishln=function(t){return I(this.negative===0),this.iushln(t)},p.prototype.iushrn=function(t,h,l){var a;I(typeof t=="number"&&t>=0),a=h?(h-h%26)/26:0;var r=t%26,v=Math.min((t-r)/26,this.length),A=67108863^67108863>>>r<<r,W=l;if(a-=v,a=Math.max(0,a),W){for(var J=0;J<v;J++)W.words[J]=this.words[J];W.length=v}if(v!==0)if(this.length>v)for(this.length-=v,J=0;J<this.length;J++)this.words[J]=this.words[J+v];else this.words[0]=0,this.length=1;var K=0;for(J=this.length-1;J>=0&&(K!==0||J>=a);J--){var G=0|this.words[J];this.words[J]=K<<26-r|G>>>r,K=G&A}return W&&K!==0&&(W.words[W.length++]=K),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},p.prototype.ishrn=function(t,h,l){return I(this.negative===0),this.iushrn(t,h,l)},p.prototype.shln=function(t){return this.clone().ishln(t)},p.prototype.ushln=function(t){return this.clone().iushln(t)},p.prototype.shrn=function(t){return this.clone().ishrn(t)},p.prototype.ushrn=function(t){return this.clone().iushrn(t)},p.prototype.testn=function(t){I(typeof t=="number"&&t>=0);var h=t%26,l=(t-h)/26,a=1<<h;return!(this.length<=l||!(this.words[l]&a))},p.prototype.imaskn=function(t){I(typeof t=="number"&&t>=0);var h=t%26,l=(t-h)/26;if(I(this.negative===0,"imaskn works only with positive numbers"),this.length<=l)return this;if(h!==0&&l++,this.length=Math.min(l,this.length),h!==0){var a=67108863^67108863>>>h<<h;this.words[this.length-1]&=a}return this.strip()},p.prototype.maskn=function(t){return this.clone().imaskn(t)},p.prototype.iaddn=function(t){return I(typeof t=="number"),I(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)},p.prototype._iaddn=function(t){this.words[0]+=t;for(var h=0;h<this.length&&this.words[h]>=67108864;h++)this.words[h]-=67108864,h===this.length-1?this.words[h+1]=1:this.words[h+1]++;return this.length=Math.max(this.length,h+1),this},p.prototype.isubn=function(t){if(I(typeof t=="number"),I(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 h=0;h<this.length&&this.words[h]<0;h++)this.words[h]+=67108864,this.words[h+1]-=1;return this.strip()},p.prototype.addn=function(t){return this.clone().iaddn(t)},p.prototype.subn=function(t){return this.clone().isubn(t)},p.prototype.iabs=function(){return this.negative=0,this},p.prototype.abs=function(){return this.clone().iabs()},p.prototype._ishlnsubmul=function(t,h,l){var a,r,v=t.length+l;this._expand(v);var A=0;for(a=0;a<t.length;a++){r=(0|this.words[a+l])+A;var W=(0|t.words[a])*h;A=((r-=67108863&W)>>26)-(W/67108864|0),this.words[a+l]=67108863&r}for(;a<this.length-l;a++)A=(r=(0|this.words[a+l])+A)>>26,this.words[a+l]=67108863&r;if(A===0)return this.strip();for(I(A===-1),A=0,a=0;a<this.length;a++)A=(r=-(0|this.words[a])+A)>>26,this.words[a]=67108863&r;return this.negative=1,this.strip()},p.prototype._wordDiv=function(t,h){var l=(this.length,t.length),a=this.clone(),r=t,v=0|r.words[r.length-1];(l=26-this._countBits(v))!=0&&(r=r.ushln(l),a.iushln(l),v=0|r.words[r.length-1]);var A,W=a.length-r.length;if(h!=="mod"){(A=new p(null)).length=W+1,A.words=new Array(A.length);for(var J=0;J<A.length;J++)A.words[J]=0}var K=a.clone()._ishlnsubmul(r,1,W);K.negative===0&&(a=K,A&&(A.words[W]=1));for(var G=W-1;G>=0;G--){var Y=67108864*(0|a.words[r.length+G])+(0|a.words[r.length+G-1]);for(Y=Math.min(Y/v|0,67108863),a._ishlnsubmul(r,Y,G);a.negative!==0;)Y--,a.negative=0,a._ishlnsubmul(r,1,G),a.isZero()||(a.negative^=1);A&&(A.words[G]=Y)}return A&&A.strip(),a.strip(),h!=="div"&&l!==0&&a.iushrn(l),{div:A||null,mod:a}},p.prototype.divmod=function(t,h,l){return I(!t.isZero()),this.isZero()?{div:new p(0),mod:new p(0)}:this.negative!==0&&t.negative===0?(v=this.neg().divmod(t,h),h!=="mod"&&(a=v.div.neg()),h!=="div"&&(r=v.mod.neg(),l&&r.negative!==0&&r.iadd(t)),{div:a,mod:r}):this.negative===0&&t.negative!==0?(v=this.divmod(t.neg(),h),h!=="mod"&&(a=v.div.neg()),{div:a,mod:v.mod}):this.negative&t.negative?(v=this.neg().divmod(t.neg(),h),h!=="div"&&(r=v.mod.neg(),l&&r.negative!==0&&r.isub(t)),{div:v.div,mod:r}):t.length>this.length||this.cmp(t)<0?{div:new p(0),mod:this}:t.length===1?h==="div"?{div:this.divn(t.words[0]),mod:null}:h==="mod"?{div:null,mod:new p(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new p(this.modn(t.words[0]))}:this._wordDiv(t,h);var a,r,v},p.prototype.div=function(t){return this.divmod(t,"div",!1).div},p.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},p.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},p.prototype.divRound=function(t){var h=this.divmod(t);if(h.mod.isZero())return h.div;var l=h.div.negative!==0?h.mod.isub(t):h.mod,a=t.ushrn(1),r=t.andln(1),v=l.cmp(a);return v<0||r===1&&v===0?h.div:h.div.negative!==0?h.div.isubn(1):h.div.iaddn(1)},p.prototype.modn=function(t){I(t<=67108863);for(var h=67108864%t,l=0,a=this.length-1;a>=0;a--)l=(h*l+(0|this.words[a]))%t;return l},p.prototype.idivn=function(t){I(t<=67108863);for(var h=0,l=this.length-1;l>=0;l--){var a=(0|this.words[l])+67108864*h;this.words[l]=a/t|0,h=a%t}return this.strip()},p.prototype.divn=function(t){return this.clone().idivn(t)},p.prototype.egcd=function(t){I(t.negative===0),I(!t.isZero());var h=this,l=t.clone();h=h.negative!==0?h.umod(t):h.clone();for(var a=new p(1),r=new p(0),v=new p(0),A=new p(1),W=0;h.isEven()&&l.isEven();)h.iushrn(1),l.iushrn(1),++W;for(var J=l.clone(),K=h.clone();!h.isZero();){for(var G=0,Y=1;!(h.words[0]&Y)&&G<26;++G,Y<<=1);if(G>0)for(h.iushrn(G);G-- >0;)(a.isOdd()||r.isOdd())&&(a.iadd(J),r.isub(K)),a.iushrn(1),r.iushrn(1);for(var at=0,ot=1;!(l.words[0]&ot)&&at<26;++at,ot<<=1);if(at>0)for(l.iushrn(at);at-- >0;)(v.isOdd()||A.isOdd())&&(v.iadd(J),A.isub(K)),v.iushrn(1),A.iushrn(1);h.cmp(l)>=0?(h.isub(l),a.isub(v),r.isub(A)):(l.isub(h),v.isub(a),A.isub(r))}return{a:v,b:A,gcd:l.iushln(W)}},p.prototype._invmp=function(t){I(t.negative===0),I(!t.isZero());var h=this,l=t.clone();h=h.negative!==0?h.umod(t):h.clone();for(var a,r=new p(1),v=new p(0),A=l.clone();h.cmpn(1)>0&&l.cmpn(1)>0;){for(var W=0,J=1;!(h.words[0]&J)&&W<26;++W,J<<=1);if(W>0)for(h.iushrn(W);W-- >0;)r.isOdd()&&r.iadd(A),r.iushrn(1);for(var K=0,G=1;!(l.words[0]&G)&&K<26;++K,G<<=1);if(K>0)for(l.iushrn(K);K-- >0;)v.isOdd()&&v.iadd(A),v.iushrn(1);h.cmp(l)>=0?(h.isub(l),r.isub(v)):(l.isub(h),v.isub(r))}return(a=h.cmpn(1)===0?r:v).cmpn(0)<0&&a.iadd(t),a},p.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var h=this.clone(),l=t.clone();h.negative=0,l.negative=0;for(var a=0;h.isEven()&&l.isEven();a++)h.iushrn(1),l.iushrn(1);for(;;){for(;h.isEven();)h.iushrn(1);for(;l.isEven();)l.iushrn(1);var r=h.cmp(l);if(r<0){var v=h;h=l,l=v}else if(r===0||l.cmpn(1)===0)break;h.isub(l)}return l.iushln(a)},p.prototype.invm=function(t){return this.egcd(t).a.umod(t)},p.prototype.isEven=function(){return!(1&this.words[0])},p.prototype.isOdd=function(){return!(1&~this.words[0])},p.prototype.andln=function(t){return this.words[0]&t},p.prototype.bincn=function(t){I(typeof t=="number");var h=t%26,l=(t-h)/26,a=1<<h;if(this.length<=l)return this._expand(l+1),this.words[l]|=a,this;for(var r=a,v=l;r!==0&&v<this.length;v++){var A=0|this.words[v];r=(A+=r)>>>26,A&=67108863,this.words[v]=A}return r!==0&&(this.words[v]=r,this.length++),this},p.prototype.isZero=function(){return this.length===1&&this.words[0]===0},p.prototype.cmpn=function(t){var h,l=t<0;if(this.negative!==0&&!l)return-1;if(this.negative===0&&l)return 1;if(this.strip(),this.length>1)h=1;else{l&&(t=-t),I(t<=67108863,"Number is too big");var a=0|this.words[0];h=a===t?0:a<t?-1:1}return this.negative!==0?0|-h:h},p.prototype.cmp=function(t){if(this.negative!==0&&t.negative===0)return-1;if(this.negative===0&&t.negative!==0)return 1;var h=this.ucmp(t);return this.negative!==0?0|-h:h},p.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var h=0,l=this.length-1;l>=0;l--){var a=0|this.words[l],r=0|t.words[l];if(a!==r){a<r?h=-1:a>r&&(h=1);break}}return h},p.prototype.gtn=function(t){return this.cmpn(t)===1},p.prototype.gt=function(t){return this.cmp(t)===1},p.prototype.gten=function(t){return this.cmpn(t)>=0},p.prototype.gte=function(t){return this.cmp(t)>=0},p.prototype.ltn=function(t){return this.cmpn(t)===-1},p.prototype.lt=function(t){return this.cmp(t)===-1},p.prototype.lten=function(t){return this.cmpn(t)<=0},p.prototype.lte=function(t){return this.cmp(t)<=0},p.prototype.eqn=function(t){return this.cmpn(t)===0},p.prototype.eq=function(t){return this.cmp(t)===0},p.red=function(t){return new ct(t)},p.prototype.toRed=function(t){return I(!this.red,"Already a number in reduction context"),I(this.negative===0,"red works only with positives"),t.convertTo(this)._forceRed(t)},p.prototype.fromRed=function(){return I(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},p.prototype._forceRed=function(t){return this.red=t,this},p.prototype.forceRed=function(t){return I(!this.red,"Already a number in reduction context"),this._forceRed(t)},p.prototype.redAdd=function(t){return I(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},p.prototype.redIAdd=function(t){return I(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},p.prototype.redSub=function(t){return I(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},p.prototype.redISub=function(t){return I(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},p.prototype.redShl=function(t){return I(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},p.prototype.redMul=function(t){return I(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},p.prototype.redIMul=function(t){return I(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},p.prototype.redSqr=function(){return I(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},p.prototype.redISqr=function(){return I(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},p.prototype.redSqrt=function(){return I(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},p.prototype.redInvm=function(){return I(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},p.prototype.redNeg=function(){return I(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},p.prototype.redPow=function(t){return I(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var D={k256:null,p224:null,p192:null,p25519:null};function Q(t,h){this.name=t,this.p=new p(h,16),this.n=this.p.bitLength(),this.k=new p(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function X(){Q.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function et(){Q.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function nt(){Q.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ut(){Q.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function ct(t){if(typeof t=="string"){var h=p._prime(t);this.m=h.p,this.prime=h}else I(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function vt(t){ct.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new p(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)}Q.prototype._tmp=function(){var t=new p(null);return t.words=new Array(Math.ceil(this.n/13)),t},Q.prototype.ireduce=function(t){var h,l=t;do this.split(l,this.tmp),h=(l=(l=this.imulK(l)).iadd(this.tmp)).bitLength();while(h>this.n);var a=h<this.n?-1:l.ucmp(this.p);return a===0?(l.words[0]=0,l.length=1):a>0?l.isub(this.p):l.strip!==void 0?l.strip():l._strip(),l},Q.prototype.split=function(t,h){t.iushrn(this.n,0,h)},Q.prototype.imulK=function(t){return t.imul(this.k)},q(X,Q),X.prototype.split=function(t,h){for(var l=4194303,a=Math.min(t.length,9),r=0;r<a;r++)h.words[r]=t.words[r];if(h.length=a,t.length<=9)return t.words[0]=0,void(t.length=1);var v=t.words[9];for(h.words[h.length++]=v&l,r=10;r<t.length;r++){var A=0|t.words[r];t.words[r-10]=(A&l)<<4|v>>>22,v=A}v>>>=22,t.words[r-10]=v,v===0&&t.length>10?t.length-=10:t.length-=9},X.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var h=0,l=0;l<t.length;l++){var a=0|t.words[l];h+=977*a,t.words[l]=67108863&h,h=64*a+(h/67108864|0)}return t.words[t.length-1]===0&&(t.length--,t.words[t.length-1]===0&&t.length--),t},q(et,Q),q(nt,Q),q(ut,Q),ut.prototype.imulK=function(t){for(var h=0,l=0;l<t.length;l++){var a=19*(0|t.words[l])+h,r=67108863&a;a>>>=26,t.words[l]=r,h=a}return h!==0&&(t.words[t.length++]=h),t},p._prime=function(t){if(D[t])return D[t];var h;if(t==="k256")h=new X;else if(t==="p224")h=new et;else if(t==="p192")h=new nt;else{if(t!=="p25519")throw new Error("Unknown prime "+t);h=new ut}return D[t]=h,h},ct.prototype._verify1=function(t){I(t.negative===0,"red works only with positives"),I(t.red,"red works only with red numbers")},ct.prototype._verify2=function(t,h){I(!(t.negative|h.negative),"red works only with positives"),I(t.red&&t.red===h.red,"red works only with red numbers")},ct.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},ct.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},ct.prototype.add=function(t,h){this._verify2(t,h);var l=t.add(h);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},ct.prototype.iadd=function(t,h){this._verify2(t,h);var l=t.iadd(h);return l.cmp(this.m)>=0&&l.isub(this.m),l},ct.prototype.sub=function(t,h){this._verify2(t,h);var l=t.sub(h);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},ct.prototype.isub=function(t,h){this._verify2(t,h);var l=t.isub(h);return l.cmpn(0)<0&&l.iadd(this.m),l},ct.prototype.shl=function(t,h){return this._verify1(t),this.imod(t.ushln(h))},ct.prototype.imul=function(t,h){return this._verify2(t,h),this.imod(t.imul(h))},ct.prototype.mul=function(t,h){return this._verify2(t,h),this.imod(t.mul(h))},ct.prototype.isqr=function(t){return this.imul(t,t.clone())},ct.prototype.sqr=function(t){return this.mul(t,t)},ct.prototype.sqrt=function(t){if(t.isZero())return t.clone();var h=this.m.andln(3);if(I(h%2==1),h===3){var l=this.m.add(new p(1)).iushrn(2);return this.pow(t,l)}for(var a=this.m.subn(1),r=0;!a.isZero()&&a.andln(1)===0;)r++,a.iushrn(1);I(!a.isZero());var v=new p(1).toRed(this),A=v.redNeg(),W=this.m.subn(1).iushrn(1),J=this.m.bitLength();for(J=new p(2*J*J).toRed(this);this.pow(J,W).cmp(A)!==0;)J.redIAdd(A);for(var K=this.pow(J,a),G=this.pow(t,a.addn(1).iushrn(1)),Y=this.pow(t,a),at=r;Y.cmp(v)!==0;){for(var ot=Y,ht=0;ot.cmp(v)!==0;ht++)ot=ot.redSqr();I(ht<at);var tt=this.pow(K,new p(1).iushln(at-ht-1));G=G.redMul(tt),K=tt.redSqr(),Y=Y.redMul(K),at=ht}return G},ct.prototype.invm=function(t){var h=t._invmp(this.m);return h.negative!==0?(h.negative=0,this.imod(h).redNeg()):this.imod(h)},ct.prototype.pow=function(t,h){if(h.isZero())return new p(1).toRed(this);if(h.cmpn(1)===0)return t.clone();var l=new Array(16);l[0]=new p(1).toRed(this),l[1]=t;for(var a=2;a<l.length;a++)l[a]=this.mul(l[a-1],t);var r=l[0],v=0,A=0,W=h.bitLength()%26;for(W===0&&(W=26),a=h.length-1;a>=0;a--){for(var J=h.words[a],K=W-1;K>=0;K--){var G=J>>K&1;r!==l[0]&&(r=this.sqr(r)),G!==0||v!==0?(v<<=1,v|=G,(++A==4||a===0&&K===0)&&(r=this.mul(r,l[v]),A=0,v=0)):A=0}W=26}return r},ct.prototype.convertTo=function(t){var h=t.umod(this.m);return h===t?h.clone():h},ct.prototype.convertFrom=function(t){var h=t.clone();return h.red=null,h},p.mont=function(t){return new vt(t)},q(vt,ct),vt.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},vt.prototype.convertFrom=function(t){var h=this.imod(t.mul(this.rinv));return h.red=null,h},vt.prototype.imul=function(t,h){if(t.isZero()||h.isZero())return t.words[0]=0,t.length=1,t;var l=t.imul(h),a=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=l.isub(a).iushrn(this.shift),v=r;return r.cmp(this.m)>=0?v=r.isub(this.m):r.cmpn(0)<0&&(v=r.iadd(this.m)),v._forceRed(this)},vt.prototype.mul=function(t,h){if(t.isZero()||h.isZero())return new p(0)._forceRed(this);var l=t.mul(h),a=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=l.isub(a).iushrn(this.shift),v=r;return r.cmp(this.m)>=0?v=r.isub(this.m):r.cmpn(0)<0&&(v=r.iadd(this.m)),v._forceRed(this)},vt.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}})($=b.nmd($),this)},2802:($,w,b)=>{var j=$.exports=function(O){O=O.toLowerCase();var I=j[O];if(!I)throw new Error(O+" is not supported (we accept pull requests)");return new I};j.sha=b(7816),j.sha1=b(3737),j.sha224=b(6710),j.sha256=b(4107),j.sha384=b(2827),j.sha512=b(2890)},2808:($,w,b)=>{var j=b(3349);function O(I){this.options=I,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=I.padding!==!1}$.exports=O,O.prototype._init=function(){},O.prototype.update=function(I){return I.length===0?[]:this.type==="decrypt"?this._updateDecrypt(I):this._updateEncrypt(I)},O.prototype._buffer=function(I,q){for(var p=Math.min(this.buffer.length-this.bufferOff,I.length-q),N=0;N<p;N++)this.buffer[this.bufferOff+N]=I[q+N];return this.bufferOff+=p,p},O.prototype._flushBuffer=function(I,q){return this._update(this.buffer,0,I,q),this.bufferOff=0,this.blockSize},O.prototype._updateEncrypt=function(I){var q=0,p=0,N=(this.bufferOff+I.length)/this.blockSize|0,M=new Array(N*this.blockSize);this.bufferOff!==0&&(q+=this._buffer(I,q),this.bufferOff===this.buffer.length&&(p+=this._flushBuffer(M,p)));for(var T=I.length-(I.length-q)%this.blockSize;q<T;q+=this.blockSize)this._update(I,q,M,p),p+=this.blockSize;for(;q<I.length;q++,this.bufferOff++)this.buffer[this.bufferOff]=I[q];return M},O.prototype._updateDecrypt=function(I){for(var q=0,p=0,N=Math.ceil((this.bufferOff+I.length)/this.blockSize)-1,M=new Array(N*this.blockSize);N>0;N--)q+=this._buffer(I,q),p+=this._flushBuffer(M,p);return q+=this._buffer(I,q),M},O.prototype.final=function(I){var q,p;return I&&(q=this.update(I)),p=this.type==="encrypt"?this._finalEncrypt():this._finalDecrypt(),q?q.concat(p):p},O.prototype._pad=function(I,q){if(q===0)return!1;for(;q<I.length;)I[q++]=0;return!0},O.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var I=new Array(this.blockSize);return this._update(this.buffer,0,I,0),I},O.prototype._unpad=function(I){return I},O.prototype._finalDecrypt=function(){j.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var I=new Array(this.blockSize);return this._flushBuffer(I,0),this._unpad(I)}},2827:($,w,b)=>{var j=b(6698),O=b(2890),I=b(392),q=b(2861).Buffer,p=new Array(160);function N(){this.init(),this._w=p,I.call(this,128,112)}j(N,O),N.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},N.prototype._hash=function(){var M=q.allocUnsafe(48);function T(S,B,C){M.writeInt32BE(S,C),M.writeInt32BE(B,C+4)}return T(this._ah,this._al,0),T(this._bh,this._bl,8),T(this._ch,this._cl,16),T(this._dh,this._dl,24),T(this._eh,this._el,32),T(this._fh,this._fl,40),M},$.exports=N},2853:($,w,b)=>{var j=w;j.der=b(2010),j.pem=b(8903)},2861:($,w,b)=>{var j=b(8287),O=j.Buffer;function I(p,N){for(var M in p)N[M]=p[M]}function q(p,N,M){return O(p,N,M)}O.from&&O.alloc&&O.allocUnsafe&&O.allocUnsafeSlow?$.exports=j:(I(j,w),w.Buffer=q),q.prototype=Object.create(O.prototype),I(O,q),q.from=function(p,N,M){if(typeof p=="number")throw new TypeError("Argument must not be a number");return O(p,N,M)},q.alloc=function(p,N,M){if(typeof p!="number")throw new TypeError("Argument must be a number");var T=O(p);return N!==void 0?typeof M=="string"?T.fill(N,M):T.fill(N):T.fill(0),T},q.allocUnsafe=function(p){if(typeof p!="number")throw new TypeError("Argument must be a number");return O(p)},q.allocUnsafeSlow=function(p){if(typeof p!="number")throw new TypeError("Argument must be a number");return j.SlowBuffer(p)}},2884:($,w,b)=>{var j=b(295);w.encrypt=function(O,I){var q=j(I,O._prev);return O._prev=O._cipher.encryptBlock(q),O._prev},w.decrypt=function(O,I){var q=O._prev;O._prev=I;var p=O._cipher.decryptBlock(I);return j(p,q)}},2890:($,w,b)=>{var j=b(6698),O=b(392),I=b(2861).Buffer,q=[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],p=new Array(160);function N(){this.init(),this._w=p,O.call(this,128,112)}function M(H,D,Q){return Q^H&(D^Q)}function T(H,D,Q){return H&D|Q&(H|D)}function S(H,D){return(H>>>28|D<<4)^(D>>>2|H<<30)^(D>>>7|H<<25)}function B(H,D){return(H>>>14|D<<18)^(H>>>18|D<<14)^(D>>>9|H<<23)}function C(H,D){return(H>>>1|D<<31)^(H>>>8|D<<24)^H>>>7}function _(H,D){return(H>>>1|D<<31)^(H>>>8|D<<24)^(H>>>7|D<<25)}function F(H,D){return(H>>>19|D<<13)^(D>>>29|H<<3)^H>>>6}function U(H,D){return(H>>>19|D<<13)^(D>>>29|H<<3)^(H>>>6|D<<26)}function z(H,D){return H>>>0<D>>>0?1:0}j(N,O),N.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},N.prototype._update=function(H){for(var D=this._w,Q=0|this._ah,X=0|this._bh,et=0|this._ch,nt=0|this._dh,ut=0|this._eh,ct=0|this._fh,vt=0|this._gh,t=0|this._hh,h=0|this._al,l=0|this._bl,a=0|this._cl,r=0|this._dl,v=0|this._el,A=0|this._fl,W=0|this._gl,J=0|this._hl,K=0;K<32;K+=2)D[K]=H.readInt32BE(4*K),D[K+1]=H.readInt32BE(4*K+4);for(;K<160;K+=2){var G=D[K-30],Y=D[K-30+1],at=C(G,Y),ot=_(Y,G),ht=F(G=D[K-4],Y=D[K-4+1]),tt=U(Y,G),it=D[K-14],Z=D[K-14+1],rt=D[K-32],wt=D[K-32+1],gt=ot+Z|0,St=at+it+z(gt,ot)|0;St=(St=St+ht+z(gt=gt+tt|0,tt)|0)+rt+z(gt=gt+wt|0,wt)|0,D[K]=St,D[K+1]=gt}for(var Lt=0;Lt<160;Lt+=2){St=D[Lt],gt=D[Lt+1];var At=T(Q,X,et),jt=T(h,l,a),Qt=S(Q,h),Dt=S(h,Q),zt=B(ut,v),ft=B(v,ut),pt=q[Lt],mt=q[Lt+1],Mt=M(ut,ct,vt),xt=M(v,A,W),kt=J+ft|0,$t=t+zt+z(kt,J)|0;$t=($t=($t=$t+Mt+z(kt=kt+xt|0,xt)|0)+pt+z(kt=kt+mt|0,mt)|0)+St+z(kt=kt+gt|0,gt)|0;var Pt=Dt+jt|0,yt=Qt+At+z(Pt,Dt)|0;t=vt,J=W,vt=ct,W=A,ct=ut,A=v,ut=nt+$t+z(v=r+kt|0,r)|0,nt=et,r=a,et=X,a=l,X=Q,l=h,Q=$t+yt+z(h=kt+Pt|0,kt)|0}this._al=this._al+h|0,this._bl=this._bl+l|0,this._cl=this._cl+a|0,this._dl=this._dl+r|0,this._el=this._el+v|0,this._fl=this._fl+A|0,this._gl=this._gl+W|0,this._hl=this._hl+J|0,this._ah=this._ah+Q+z(this._al,h)|0,this._bh=this._bh+X+z(this._bl,l)|0,this._ch=this._ch+et+z(this._cl,a)|0,this._dh=this._dh+nt+z(this._dl,r)|0,this._eh=this._eh+ut+z(this._el,v)|0,this._fh=this._fh+ct+z(this._fl,A)|0,this._gh=this._gh+vt+z(this._gl,W)|0,this._hh=this._hh+t+z(this._hl,J)|0},N.prototype._hash=function(){var H=I.allocUnsafe(64);function D(Q,X,et){H.writeInt32BE(Q,et),H.writeInt32BE(X,et+4)}return D(this._ah,this._al,0),D(this._bh,this._bl,8),D(this._ch,this._cl,16),D(this._dh,this._dl,24),D(this._eh,this._el,32),D(this._fh,this._fl,40),D(this._gh,this._gl,48),D(this._hh,this._hl,56),H},$.exports=N},2951:$=>{$.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"}}')},2955:($,w,b)=>{var j,O=b(5606);function I(D,Q,X){return(Q=function(et){var nt=function(ut){if(typeof ut!="object"||ut===null)return ut;var ct=ut[Symbol.toPrimitive];if(ct!==void 0){var vt=ct.call(ut,"string");if(typeof vt!="object")return vt;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(ut)}(et);return typeof nt=="symbol"?nt:String(nt)}(Q))in D?Object.defineProperty(D,Q,{value:X,enumerable:!0,configurable:!0,writable:!0}):D[Q]=X,D}var q=b(6238),p=Symbol("lastResolve"),N=Symbol("lastReject"),M=Symbol("error"),T=Symbol("ended"),S=Symbol("lastPromise"),B=Symbol("handlePromise"),C=Symbol("stream");function _(D,Q){return{value:D,done:Q}}function F(D){var Q=D[p];if(Q!==null){var X=D[C].read();X!==null&&(D[S]=null,D[p]=null,D[N]=null,Q(_(X,!1)))}}function U(D){O.nextTick(F,D)}var z=Object.getPrototypeOf(function(){}),H=Object.setPrototypeOf((I(j={get stream(){return this[C]},next:function(){var D=this,Q=this[M];if(Q!==null)return Promise.reject(Q);if(this[T])return Promise.resolve(_(void 0,!0));if(this[C].destroyed)return new Promise(function(ut,ct){O.nextTick(function(){D[M]?ct(D[M]):ut(_(void 0,!0))})});var X,et=this[S];if(et)X=new Promise(function(ut,ct){return function(vt,t){ut.then(function(){ct[T]?vt(_(void 0,!0)):ct[B](vt,t)},t)}}(et,this));else{var nt=this[C].read();if(nt!==null)return Promise.resolve(_(nt,!1));X=new Promise(this[B])}return this[S]=X,X}},Symbol.asyncIterator,function(){return this}),I(j,"return",function(){var D=this;return new Promise(function(Q,X){D[C].destroy(null,function(et){et?X(et):Q(_(void 0,!0))})})}),j),z);$.exports=function(D){var Q,X=Object.create(H,(I(Q={},C,{value:D,writable:!0}),I(Q,p,{value:null,writable:!0}),I(Q,N,{value:null,writable:!0}),I(Q,M,{value:null,writable:!0}),I(Q,T,{value:D._readableState.endEmitted,writable:!0}),I(Q,B,{value:function(et,nt){var ut=X[C].read();ut?(X[S]=null,X[p]=null,X[N]=null,et(_(ut,!1))):(X[p]=et,X[N]=nt)},writable:!0}),Q));return X[S]=null,q(D,function(et){if(et&&et.code!=="ERR_STREAM_PREMATURE_CLOSE"){var nt=X[N];return nt!==null&&(X[S]=null,X[p]=null,X[N]=null,nt(et)),void(X[M]=et)}var ut=X[p];ut!==null&&(X[S]=null,X[p]=null,X[N]=null,ut(_(void 0,!0))),X[T]=!0}),D.on("readable",U.bind(null,X)),X}},3003:$=>{$.exports=function(w){return w!=w}},3053:($,w,b)=>{var j=b(295),O=b(2861).Buffer,I=b(5122);function q(p){var N=p._cipher.encryptBlockRaw(p._prev);return I(p._prev),N}w.encrypt=function(p,N){var M=Math.ceil(N.length/16),T=p._cache.length;p._cache=O.concat([p._cache,O.allocUnsafe(16*M)]);for(var S=0;S<M;S++){var B=q(p),C=T+16*S;p._cache.writeUInt32BE(B[0],C+0),p._cache.writeUInt32BE(B[1],C+4),p._cache.writeUInt32BE(B[2],C+8),p._cache.writeUInt32BE(B[3],C+12)}var _=p._cache.slice(0,N.length);return p._cache=p._cache.slice(N.length),j(N,_)}},3055:$=>{$.exports=function(w,b){for(var j={},O=Object.keys(w),I=Array.isArray(b),q=0;q<O.length;q++){var p=O[q],N=w[p];(I?b.indexOf(p)!==-1:b(p,N,w))&&(j[p]=N)}return j}},3074:function($,w,b){(function(){var j,O;j=b(5660),O=b(2527),$.exports=function(){function I(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new j,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(I.prototype,"parameterNames",{get:function(){return new O(Object.keys(this.defaultParams))}}),I.prototype.getParameter=function(q){return this.params.hasOwnProperty(q)?this.params[q]:null},I.prototype.canSetParameter=function(q,p){return!0},I.prototype.setParameter=function(q,p){return p!=null?this.params[q]=p:delete this.params[q]},I}()}).call(this)},3093:($,w,b)=>{var j=b(4459);$.exports=function(O){return j(O)||O===0?O:O<0?-1:1}},3126:($,w,b)=>{var j=b(6743),O=b(9675),I=b(76),q=b(3144);$.exports=function(p){if(p.length<1||typeof p[0]!="function")throw new O("a function is required");return q(j,I,p)}},3141:($,w,b)=>{var j=b(2861).Buffer,O=j.isEncoding||function(_){switch((_=""+_)&&_.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 I(_){var F;switch(this.encoding=function(U){var z=function(H){if(!H)return"utf8";for(var D;;)switch(H){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 H;default:if(D)return;H=(""+H).toLowerCase(),D=!0}}(U);if(typeof z!="string"&&(j.isEncoding===O||!O(U)))throw new Error("Unknown encoding: "+U);return z||U}(_),this.encoding){case"utf16le":this.text=N,this.end=M,F=4;break;case"utf8":this.fillLast=p,F=4;break;case"base64":this.text=T,this.end=S,F=3;break;default:return this.write=B,void(this.end=C)}this.lastNeed=0,this.lastTotal=0,this.lastChar=j.allocUnsafe(F)}function q(_){return _<=127?0:_>>5==6?2:_>>4==14?3:_>>3==30?4:_>>6==2?-1:-2}function p(_){var F=this.lastTotal-this.lastNeed,U=function(z,H){if((192&H[0])!=128)return z.lastNeed=0,"�";if(z.lastNeed>1&&H.length>1){if((192&H[1])!=128)return z.lastNeed=1,"�";if(z.lastNeed>2&&H.length>2&&(192&H[2])!=128)return z.lastNeed=2,"�"}}(this,_);return U!==void 0?U:this.lastNeed<=_.length?(_.copy(this.lastChar,F,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(_.copy(this.lastChar,F,0,_.length),void(this.lastNeed-=_.length))}function N(_,F){if((_.length-F)%2==0){var U=_.toString("utf16le",F);if(U){var z=U.charCodeAt(U.length-1);if(z>=55296&&z<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=_[_.length-2],this.lastChar[1]=_[_.length-1],U.slice(0,-1)}return U}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=_[_.length-1],_.toString("utf16le",F,_.length-1)}function M(_){var F=_&&_.length?this.write(_):"";if(this.lastNeed){var U=this.lastTotal-this.lastNeed;return F+this.lastChar.toString("utf16le",0,U)}return F}function T(_,F){var U=(_.length-F)%3;return U===0?_.toString("base64",F):(this.lastNeed=3-U,this.lastTotal=3,U===1?this.lastChar[0]=_[_.length-1]:(this.lastChar[0]=_[_.length-2],this.lastChar[1]=_[_.length-1]),_.toString("base64",F,_.length-U))}function S(_){var F=_&&_.length?this.write(_):"";return this.lastNeed?F+this.lastChar.toString("base64",0,3-this.lastNeed):F}function B(_){return _.toString(this.encoding)}function C(_){return _&&_.length?this.write(_):""}w.I=I,I.prototype.write=function(_){if(_.length===0)return"";var F,U;if(this.lastNeed){if((F=this.fillLast(_))===void 0)return"";U=this.lastNeed,this.lastNeed=0}else U=0;return U<_.length?F?F+this.text(_,U):this.text(_,U):F||""},I.prototype.end=function(_){var F=_&&_.length?this.write(_):"";return this.lastNeed?F+"�":F},I.prototype.text=function(_,F){var U=function(H,D,Q){var X=D.length-1;if(X<Q)return 0;var et=q(D[X]);return et>=0?(et>0&&(H.lastNeed=et-1),et):--X<Q||et===-2?0:(et=q(D[X]))>=0?(et>0&&(H.lastNeed=et-2),et):--X<Q||et===-2?0:(et=q(D[X]))>=0?(et>0&&(et===2?et=0:H.lastNeed=et-3),et):0}(this,_,F);if(!this.lastNeed)return _.toString("utf8",F);this.lastTotal=U;var z=_.length-(U-this.lastNeed);return _.copy(this.lastChar,0,z),_.toString("utf8",F,z)},I.prototype.fillLast=function(_){if(this.lastNeed<=_.length)return _.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);_.copy(this.lastChar,this.lastTotal-this.lastNeed,0,_.length),this.lastNeed-=_.length}},3144:($,w,b)=>{var j=b(6743),O=b(1002),I=b(76),q=b(7119);$.exports=q||j.call(I,O)},3177:function($,w){(function(){w.stripBOM=function(b){return b[0]==="\uFEFF"?b.substring(1):b}}).call(this)},3209:($,w,b)=>{var j=b(5606),O=65536,I=b(2861).Buffer,q=b.g.crypto||b.g.msCrypto;q&&q.getRandomValues?$.exports=function(p,N){if(p>4294967295)throw new RangeError("requested too many random bytes");var M=I.allocUnsafe(p);if(p>0)if(p>O)for(var T=0;T<p;T+=O)q.getRandomValues(M.slice(T,T+O));else q.getRandomValues(M);return typeof N=="function"?j.nextTick(function(){N(null,M)}):M}:$.exports=function(){throw new Error(`Secure random number generation is not supported by this browser.
61
+ Use Chrome, Firefox or Internet Explorer 11`)}},3219:$=>{$.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"}}')},3225:($,w,b)=>{var j=b(5606);j===void 0||!j.version||j.version.indexOf("v0.")===0||j.version.indexOf("v1.")===0&&j.version.indexOf("v1.8.")!==0?$.exports={nextTick:function(O,I,q,p){if(typeof O!="function")throw new TypeError('"callback" argument must be a function');var N,M,T=arguments.length;switch(T){case 0:case 1:return j.nextTick(O);case 2:return j.nextTick(function(){O.call(null,I)});case 3:return j.nextTick(function(){O.call(null,I,q)});case 4:return j.nextTick(function(){O.call(null,I,q,p)});default:for(N=new Array(T-1),M=0;M<N.length;)N[M++]=arguments[M];return j.nextTick(function(){O.apply(null,N)})}}}:$.exports=j},3241:$=>{$.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"}}')},3349:$=>{function w(b,j){if(!b)throw new Error(j||"Assertion failed")}$.exports=w,w.equal=function(b,j,O){if(b!=j)throw new Error(O||"Assertion failed: "+b+" != "+j)}},3382:($,w,b)=>{var j=b(2861).Buffer;$.exports=function(O,I,q){if(j.isBuffer(O))return O;if(typeof O=="string")return j.from(O,I);if(ArrayBuffer.isView(O))return j.from(O.buffer);throw new TypeError(q+" must be a string, a Buffer, a typed array or a DataView")}},3389:($,w,b)=>{var j=b(3349),O=b(6698),I={};function q(p){j.equal(p.length,8,"Invalid IV length"),this.iv=new Array(8);for(var N=0;N<this.iv.length;N++)this.iv[N]=p[N]}w.instantiate=function(p){function N(B){p.call(this,B),this._cbcInit()}O(N,p);for(var M=Object.keys(I),T=0;T<M.length;T++){var S=M[T];N.prototype[S]=I[S]}return N.create=function(B){return new N(B)},N},I._cbcInit=function(){var p=new q(this.options.iv);this._cbcState=p},I._update=function(p,N,M,T){var S=this._cbcState,B=this.constructor.super_.prototype,C=S.iv;if(this.type==="encrypt"){for(var _=0;_<this.blockSize;_++)C[_]^=p[N+_];for(B._update.call(this,C,0,M,T),_=0;_<this.blockSize;_++)C[_]=M[T+_]}else{for(B._update.call(this,p,N,M,T),_=0;_<this.blockSize;_++)M[T+_]^=C[_];for(_=0;_<this.blockSize;_++)C[_]=p[N+_]}}},3480:($,w,b)=>{var j=b(7975),O=b(763),I=parseInt("0777",8);function q(p,N,M,T){typeof N=="function"?(M=N,N={}):N&&typeof N=="object"||(N={mode:N});var S=N.mode,B=N.fs||O;S===void 0&&(S=I),T||(T=null);var C=M||function(){};p=j.resolve(p),B.mkdir(p,S,function(_){if(!_)return C(null,T=T||p);if(_.code==="ENOENT"){if(j.dirname(p)===p)return C(_);q(j.dirname(p),N,function(F,U){F?C(F,U):q(p,N,C,U)})}else B.stat(p,function(F,U){F||!U.isDirectory()?C(_,T):C(null,T)})})}$.exports=q.mkdirp=q.mkdirP=q,q.sync=function p(N,M,T){M&&typeof M=="object"||(M={mode:M});var S=M.mode,B=M.fs||O;S===void 0&&(S=I),T||(T=null),N=j.resolve(N);try{B.mkdirSync(N,S),T=T||N}catch(_){if(_.code==="ENOENT")T=p(j.dirname(N),M,T),p(N,M,T);else{var C;try{C=B.statSync(N)}catch{throw _}if(!C.isDirectory())throw _}}return T}},3507:($,w,b)=>{var j=b(6698),O=b(1800),I=b(6168),q=b(2861).Buffer,p=b(320),N=b(6011),M=b(2802),T=q.alloc(128);function S(B,C){I.call(this,"digest"),typeof C=="string"&&(C=q.from(C));var _=B==="sha512"||B==="sha384"?128:64;this._alg=B,this._key=C,C.length>_?C=(B==="rmd160"?new N:M(B)).update(C).digest():C.length<_&&(C=q.concat([C,T],_));for(var F=this._ipad=q.allocUnsafe(_),U=this._opad=q.allocUnsafe(_),z=0;z<_;z++)F[z]=54^C[z],U[z]=92^C[z];this._hash=B==="rmd160"?new N:M(B),this._hash.update(F)}j(S,I),S.prototype._update=function(B){this._hash.update(B)},S.prototype._final=function(){var B=this._hash.digest();return(this._alg==="rmd160"?new N:M(this._alg)).update(this._opad).update(B).digest()},$.exports=function(B,C){return(B=B.toLowerCase())==="rmd160"||B==="ripemd160"?new S("rmd160",C):B==="md5"?new O(p,C):new S(B,C)}},3600:($,w,b)=>{$.exports=O;var j=b(4610);function O(I){if(!(this instanceof O))return new O(I);j.call(this,I)}b(6698)(O,j),O.prototype._transform=function(I,q,p){p(null,I)}},3628:($,w,b)=>{var j=b(8648),O=b(1064),I=b(7176);$.exports=j?function(q){return j(q)}:O?function(q){if(!q||typeof q!="object"&&typeof q!="function")throw new TypeError("getProto: not an object");return O(q)}:I?function(q){return I(q)}:null},3737:($,w,b)=>{var j=b(6698),O=b(392),I=b(2861).Buffer,q=[1518500249,1859775393,-1894007588,-899497514],p=new Array(80);function N(){this.init(),this._w=p,O.call(this,64,56)}function M(B){return B<<5|B>>>27}function T(B){return B<<30|B>>>2}function S(B,C,_,F){return B===0?C&_|~C&F:B===2?C&_|C&F|_&F:C^_^F}j(N,O),N.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},N.prototype._update=function(B){for(var C,_=this._w,F=0|this._a,U=0|this._b,z=0|this._c,H=0|this._d,D=0|this._e,Q=0;Q<16;++Q)_[Q]=B.readInt32BE(4*Q);for(;Q<80;++Q)_[Q]=(C=_[Q-3]^_[Q-8]^_[Q-14]^_[Q-16])<<1|C>>>31;for(var X=0;X<80;++X){var et=~~(X/20),nt=M(F)+S(et,U,z,H)+D+_[X]+q[et]|0;D=H,H=z,z=T(U),U=F,F=nt}this._a=F+this._a|0,this._b=U+this._b|0,this._c=z+this._c|0,this._d=H+this._d|0,this._e=D+this._e|0},N.prototype._hash=function(){var B=I.allocUnsafe(20);return B.writeInt32BE(0|this._a,0),B.writeInt32BE(0|this._b,4),B.writeInt32BE(0|this._c,8),B.writeInt32BE(0|this._d,12),B.writeInt32BE(0|this._e,16),B},$.exports=N},3776:()=>{},3832:($,w,b)=>{var j,O,I=b(2861).Buffer,q=b(4196),p=b(2455),N=b(1352),M=b(3382),T=b.g.crypto&&b.g.crypto.subtle,S={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"},B=[];function C(){return O||(O=b.g.process&&b.g.process.nextTick?b.g.process.nextTick:b.g.queueMicrotask?b.g.queueMicrotask:b.g.setImmediate?b.g.setImmediate:b.g.setTimeout)}function _(F,U,z,H,D){return T.importKey("raw",F,{name:"PBKDF2"},!1,["deriveBits"]).then(function(Q){return T.deriveBits({name:"PBKDF2",salt:U,iterations:z,hash:{name:D}},Q,H<<3)}).then(function(Q){return I.from(Q)})}$.exports=function(F,U,z,H,D,Q){typeof D=="function"&&(Q=D,D=void 0);var X=S[(D=D||"sha1").toLowerCase()];if(X&&typeof b.g.Promise=="function"){if(q(z,H),F=M(F,p,"Password"),U=M(U,p,"Salt"),typeof Q!="function")throw new Error("No callback provided to pbkdf2");(function(et,nt){et.then(function(ut){C()(function(){nt(null,ut)})},function(ut){C()(function(){nt(ut)})})})(function(et){if(b.g.process&&!b.g.process.browser||!T||!T.importKey||!T.deriveBits)return Promise.resolve(!1);if(B[et]!==void 0)return B[et];var nt=_(j=j||I.alloc(8),j,10,128,et).then(function(){return!0}).catch(function(){return!1});return B[et]=nt,nt}(X).then(function(et){return et?_(F,U,z,H,X):N(F,U,z,H,D)}),Q)}else C()(function(){var et;try{et=N(F,U,z,H,D)}catch(nt){return Q(nt)}Q(null,et)})}},3906:function($,w,b){(function(){var j,O,I,q,p,N,M,T,S={}.hasOwnProperty;T=b(9241),M=T.isObject,N=T.isFunction,p=T.getValue,q=b(468),j=b(1737),O=b(4238),I=b(4797),$.exports=function(B){function C(_,F,U){var z,H,D,Q;if(C.__super__.constructor.call(this,_),F==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(F),this.type=j.Element,this.attribs={},this.schemaTypeInfo=null,U!=null&&this.attribute(U),_.type===j.Document&&(this.isRoot=!0,this.documentObject=_,_.rootObject=this,_.children)){for(H=0,D=(Q=_.children).length;H<D;H++)if((z=Q[H]).type===j.DocType){z.name=this.name;break}}}return function(_,F){for(var U in F)S.call(F,U)&&(_[U]=F[U]);function z(){this.constructor=_}z.prototype=F.prototype,_.prototype=new z,_.__super__=F.prototype}(C,B),Object.defineProperty(C.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(C.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(C.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(C.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(C.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(C.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(C.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(C.prototype,"attributes",{get:function(){return this.attributeMap&&this.attributeMap.nodes||(this.attributeMap=new I(this.attribs)),this.attributeMap}}),C.prototype.clone=function(){var _,F,U,z;for(F in(U=Object.create(this)).isRoot&&(U.documentObject=null),U.attribs={},z=this.attribs)S.call(z,F)&&(_=z[F],U.attribs[F]=_.clone());return U.children=[],this.children.forEach(function(H){var D;return(D=H.clone()).parent=U,U.children.push(D)}),U},C.prototype.attribute=function(_,F){var U,z;if(_!=null&&(_=p(_)),M(_))for(U in _)S.call(_,U)&&(z=_[U],this.attribute(U,z));else N(F)&&(F=F.apply()),this.options.keepNullAttributes&&F==null?this.attribs[_]=new O(this,_,""):F!=null&&(this.attribs[_]=new O(this,_,F));return this},C.prototype.removeAttribute=function(_){var F,U,z;if(_==null)throw new Error("Missing attribute name. "+this.debugInfo());if(_=p(_),Array.isArray(_))for(U=0,z=_.length;U<z;U++)F=_[U],delete this.attribs[F];else delete this.attribs[_];return this},C.prototype.toString=function(_){return this.options.writer.element(this,this.options.writer.filterOptions(_))},C.prototype.att=function(_,F){return this.attribute(_,F)},C.prototype.a=function(_,F){return this.attribute(_,F)},C.prototype.getAttribute=function(_){return this.attribs.hasOwnProperty(_)?this.attribs[_].value:null},C.prototype.setAttribute=function(_,F){throw new Error("This DOM method is not implemented."+this.debugInfo())},C.prototype.getAttributeNode=function(_){return this.attribs.hasOwnProperty(_)?this.attribs[_]:null},C.prototype.setAttributeNode=function(_){throw new Error("This DOM method is not implemented."+this.debugInfo())},C.prototype.removeAttributeNode=function(_){throw new Error("This DOM method is not implemented."+this.debugInfo())},C.prototype.getElementsByTagName=function(_){throw new Error("This DOM method is not implemented."+this.debugInfo())},C.prototype.getAttributeNS=function(_,F){throw new Error("This DOM method is not implemented."+this.debugInfo())},C.prototype.setAttributeNS=function(_,F,U){throw new Error("This DOM method is not implemented."+this.debugInfo())},C.prototype.removeAttributeNS=function(_,F){throw new Error("This DOM method is not implemented."+this.debugInfo())},C.prototype.getAttributeNodeNS=function(_,F){throw new Error("This DOM method is not implemented."+this.debugInfo())},C.prototype.setAttributeNodeNS=function(_){throw new Error("This DOM method is not implemented."+this.debugInfo())},C.prototype.getElementsByTagNameNS=function(_,F){throw new Error("This DOM method is not implemented."+this.debugInfo())},C.prototype.hasAttribute=function(_){return this.attribs.hasOwnProperty(_)},C.prototype.hasAttributeNS=function(_,F){throw new Error("This DOM method is not implemented."+this.debugInfo())},C.prototype.setIdAttribute=function(_,F){return this.attribs.hasOwnProperty(_)?this.attribs[_].isId:F},C.prototype.setIdAttributeNS=function(_,F,U){throw new Error("This DOM method is not implemented."+this.debugInfo())},C.prototype.setIdAttributeNode=function(_,F){throw new Error("This DOM method is not implemented."+this.debugInfo())},C.prototype.getElementsByTagName=function(_){throw new Error("This DOM method is not implemented."+this.debugInfo())},C.prototype.getElementsByTagNameNS=function(_,F){throw new Error("This DOM method is not implemented."+this.debugInfo())},C.prototype.getElementsByClassName=function(_){throw new Error("This DOM method is not implemented."+this.debugInfo())},C.prototype.isEqualNode=function(_){var F,U,z;if(!C.__super__.isEqualNode.apply(this,arguments).isEqualNode(_)||_.namespaceURI!==this.namespaceURI||_.prefix!==this.prefix||_.localName!==this.localName||_.attribs.length!==this.attribs.length)return!1;for(F=U=0,z=this.attribs.length-1;0<=z?U<=z:U>=z;F=0<=z?++U:--U)if(!this.attribs[F].isEqualNode(_.attribs[F]))return!1;return!0},C}(q)}).call(this)},3917:($,w,b)=>{var j=b(7426),O=b(6166),I=b(6225),q=j.rotl32,p=j.sum32,N=j.sum32_5,M=I.ft_1,T=O.BlockHash,S=[1518500249,1859775393,2400959708,3395469782];function B(){if(!(this instanceof B))return new B;T.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}j.inherits(B,T),$.exports=B,B.blockSize=512,B.outSize=160,B.hmacStrength=80,B.padLength=64,B.prototype._update=function(C,_){for(var F=this.W,U=0;U<16;U++)F[U]=C[_+U];for(;U<F.length;U++)F[U]=q(F[U-3]^F[U-8]^F[U-14]^F[U-16],1);var z=this.h[0],H=this.h[1],D=this.h[2],Q=this.h[3],X=this.h[4];for(U=0;U<F.length;U++){var et=~~(U/20),nt=N(q(z,5),M(et,H,D,Q),X,F[U],S[et]);X=Q,Q=D,D=q(H,30),H=z,z=nt}this.h[0]=p(this.h[0],z),this.h[1]=p(this.h[1],H),this.h[2]=p(this.h[2],D),this.h[3]=p(this.h[3],Q),this.h[4]=p(this.h[4],X)},B.prototype._digest=function(C){return C==="hex"?j.toHex32(this.h,"big"):j.split32(this.h,"big")}},3918:($,w,b)=>{var j=b(5606);function O(t,h){var l=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);h&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),l.push.apply(l,a)}return l}function I(t){for(var h=1;h<arguments.length;h++){var l=arguments[h]!=null?arguments[h]:{};h%2?O(Object(l),!0).forEach(function(a){var r,v,A;r=t,v=a,A=l[a],(v=p(v))in r?Object.defineProperty(r,v,{value:A,enumerable:!0,configurable:!0,writable:!0}):r[v]=A}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(l)):O(Object(l)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(l,a))})}return t}function q(t,h){for(var l=0;l<h.length;l++){var a=h[l];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,p(a.key),a)}}function p(t){var h=function(l){if(F(l)!=="object"||l===null)return l;var a=l[Symbol.toPrimitive];if(a!==void 0){var r=a.call(l,"string");if(F(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(t);return F(h)==="symbol"?h:String(h)}function N(t,h){if(h&&(F(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return M(t)}function M(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function T(t){var h=typeof Map=="function"?new Map:void 0;return T=function(l){if(l===null||(a=l,Function.toString.call(a).indexOf("[native code]")===-1))return l;var a;if(typeof l!="function")throw new TypeError("Super expression must either be null or a function");if(h!==void 0){if(h.has(l))return h.get(l);h.set(l,r)}function r(){return S(l,arguments,_(this).constructor)}return r.prototype=Object.create(l.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),C(r,l)},T(t)}function S(t,h,l){return S=B()?Reflect.construct.bind():function(a,r,v){var A=[null];A.push.apply(A,r);var W=new(Function.bind.apply(a,A));return v&&C(W,v.prototype),W},S.apply(null,arguments)}function B(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function C(t,h){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,a){return l.__proto__=a,l},C(t,h)}function _(t){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(h){return h.__proto__||Object.getPrototypeOf(h)},_(t)}function F(t){return F=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},F(t)}var U=b(537).inspect,z=b(9597).codes.ERR_INVALID_ARG_TYPE;function H(t,h,l){return(l===void 0||l>t.length)&&(l=t.length),t.substring(l-h.length,l)===h}var D="",Q="",X="",et="",nt={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function ut(t){var h=Object.keys(t),l=Object.create(Object.getPrototypeOf(t));return h.forEach(function(a){l[a]=t[a]}),Object.defineProperty(l,"message",{value:t.message}),l}function ct(t){return U(t,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var vt=function(t,h){(function(J,K){if(typeof K!="function"&&K!==null)throw new TypeError("Super expression must either be null or a function");J.prototype=Object.create(K&&K.prototype,{constructor:{value:J,writable:!0,configurable:!0}}),Object.defineProperty(J,"prototype",{writable:!1}),K&&C(J,K)})(W,t);var l,a,r,v,A=(l=W,a=B(),function(){var J,K=_(l);if(a){var G=_(this).constructor;J=Reflect.construct(K,arguments,G)}else J=K.apply(this,arguments);return N(this,J)});function W(J){var K;if(function(St,Lt){if(!(St instanceof Lt))throw new TypeError("Cannot call a class as a function")}(this,W),F(J)!=="object"||J===null)throw new z("options","Object",J);var G=J.message,Y=J.operator,at=J.stackStartFn,ot=J.actual,ht=J.expected,tt=Error.stackTraceLimit;if(Error.stackTraceLimit=0,G!=null)K=A.call(this,String(G));else if(j.stderr&&j.stderr.isTTY&&(j.stderr&&j.stderr.getColorDepth&&j.stderr.getColorDepth()!==1?(D="\x1B[34m",Q="\x1B[32m",et="\x1B[39m",X="\x1B[31m"):(D="",Q="",et="",X="")),F(ot)==="object"&&ot!==null&&F(ht)==="object"&&ht!==null&&"stack"in ot&&ot instanceof Error&&"stack"in ht&&ht instanceof Error&&(ot=ut(ot),ht=ut(ht)),Y==="deepStrictEqual"||Y==="strictEqual")K=A.call(this,function(St,Lt,At){var jt="",Qt="",Dt=0,zt="",ft=!1,pt=ct(St),mt=pt.split(`
62
+ `),Mt=ct(Lt).split(`
63
+ `),xt=0,kt="";if(At==="strictEqual"&&F(St)==="object"&&F(Lt)==="object"&&St!==null&&Lt!==null&&(At="strictEqualObject"),mt.length===1&&Mt.length===1&&mt[0]!==Mt[0]){var $t=mt[0].length+Mt[0].length;if($t<=10){if(!(F(St)==="object"&&St!==null||F(Lt)==="object"&&Lt!==null||St===0&&Lt===0))return"".concat(nt[At],`
64
+
65
+ `)+"".concat(mt[0]," !== ").concat(Mt[0],`
66
+ `)}else if(At!=="strictEqualObject"&&$t<(j.stderr&&j.stderr.isTTY?j.stderr.columns:80)){for(;mt[0][xt]===Mt[0][xt];)xt++;xt>2&&(kt=`
67
+ `.concat(function(Ee,Ht){if(Ht=Math.floor(Ht),Ee.length==0||Ht==0)return"";var ae=Ee.length*Ht;for(Ht=Math.floor(Math.log(Ht)/Math.log(2));Ht;)Ee+=Ee,Ht--;return Ee+Ee.substring(0,ae-Ee.length)}(" ",xt),"^"),xt=0)}}for(var Pt=mt[mt.length-1],yt=Mt[Mt.length-1];Pt===yt&&(xt++<2?zt=`
68
+ `.concat(Pt).concat(zt):jt=Pt,mt.pop(),Mt.pop(),mt.length!==0&&Mt.length!==0);)Pt=mt[mt.length-1],yt=Mt[Mt.length-1];var dt=Math.max(mt.length,Mt.length);if(dt===0){var lt=pt.split(`
69
+ `);if(lt.length>30)for(lt[26]="".concat(D,"...").concat(et);lt.length>27;)lt.pop();return"".concat(nt.notIdentical,`
70
+
71
+ `).concat(lt.join(`
72
+ `),`
73
+ `)}xt>3&&(zt=`
74
+ `.concat(D,"...").concat(et).concat(zt),ft=!0),jt!==""&&(zt=`
75
+ `.concat(jt).concat(zt),jt="");var _t=0,qt=nt[At]+`
76
+ `.concat(Q,"+ actual").concat(et," ").concat(X,"- expected").concat(et),It=" ".concat(D,"...").concat(et," Lines skipped");for(xt=0;xt<dt;xt++){var Nt=xt-Dt;if(mt.length<xt+1)Nt>1&&xt>2&&(Nt>4?(Qt+=`
77
+ `.concat(D,"...").concat(et),ft=!0):Nt>3&&(Qt+=`
78
+ `.concat(Mt[xt-2]),_t++),Qt+=`
79
+ `.concat(Mt[xt-1]),_t++),Dt=xt,jt+=`
80
+ `.concat(X,"-").concat(et," ").concat(Mt[xt]),_t++;else if(Mt.length<xt+1)Nt>1&&xt>2&&(Nt>4?(Qt+=`
81
+ `.concat(D,"...").concat(et),ft=!0):Nt>3&&(Qt+=`
82
+ `.concat(mt[xt-2]),_t++),Qt+=`
83
+ `.concat(mt[xt-1]),_t++),Dt=xt,Qt+=`
84
+ `.concat(Q,"+").concat(et," ").concat(mt[xt]),_t++;else{var be=Mt[xt],Vt=mt[xt],Jt=Vt!==be&&(!H(Vt,",")||Vt.slice(0,-1)!==be);Jt&&H(be,",")&&be.slice(0,-1)===Vt&&(Jt=!1,Vt+=","),Jt?(Nt>1&&xt>2&&(Nt>4?(Qt+=`
85
+ `.concat(D,"...").concat(et),ft=!0):Nt>3&&(Qt+=`
86
+ `.concat(mt[xt-2]),_t++),Qt+=`
87
+ `.concat(mt[xt-1]),_t++),Dt=xt,Qt+=`
88
+ `.concat(Q,"+").concat(et," ").concat(Vt),jt+=`
89
+ `.concat(X,"-").concat(et," ").concat(be),_t+=2):(Qt+=jt,jt="",Nt!==1&&xt!==0||(Qt+=`
90
+ `.concat(Vt),_t++))}if(_t>20&&xt<dt-2)return"".concat(qt).concat(It,`
91
+ `).concat(Qt,`
92
+ `).concat(D,"...").concat(et).concat(jt,`
93
+ `)+"".concat(D,"...").concat(et)}return"".concat(qt).concat(ft?It:"",`
94
+ `).concat(Qt).concat(jt).concat(zt).concat(kt)}(ot,ht,Y));else if(Y==="notDeepStrictEqual"||Y==="notStrictEqual"){var it=nt[Y],Z=ct(ot).split(`
95
+ `);if(Y==="notStrictEqual"&&F(ot)==="object"&&ot!==null&&(it=nt.notStrictEqualObject),Z.length>30)for(Z[26]="".concat(D,"...").concat(et);Z.length>27;)Z.pop();K=Z.length===1?A.call(this,"".concat(it," ").concat(Z[0])):A.call(this,"".concat(it,`
96
+
97
+ `).concat(Z.join(`
98
+ `),`
99
+ `))}else{var rt=ct(ot),wt="",gt=nt[Y];Y==="notDeepEqual"||Y==="notEqual"?(rt="".concat(nt[Y],`
100
+
101
+ `).concat(rt)).length>1024&&(rt="".concat(rt.slice(0,1021),"...")):(wt="".concat(ct(ht)),rt.length>512&&(rt="".concat(rt.slice(0,509),"...")),wt.length>512&&(wt="".concat(wt.slice(0,509),"...")),Y==="deepEqual"||Y==="equal"?rt="".concat(gt,`
102
+
103
+ `).concat(rt,`
104
+
105
+ should equal
106
+
107
+ `):wt=" ".concat(Y," ").concat(wt)),K=A.call(this,"".concat(rt).concat(wt))}return Error.stackTraceLimit=tt,K.generatedMessage=!G,Object.defineProperty(M(K),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),K.code="ERR_ASSERTION",K.actual=ot,K.expected=ht,K.operator=Y,Error.captureStackTrace&&Error.captureStackTrace(M(K),at),K.stack,K.name="AssertionError",N(K)}return r=W,(v=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:h,value:function(J,K){return U(this,I(I({},K),{},{customInspect:!1,depth:0}))}}])&&q(r.prototype,v),Object.defineProperty(r,"prototype",{writable:!1}),W}(T(Error),U.custom);$.exports=vt},3976:function($){(function(){var w=function(j,O){return function(){return j.apply(O,arguments)}},b={}.hasOwnProperty;$.exports=function(){function j(O){var I,q,p;for(I in this.assertLegalName=w(this.assertLegalName,this),this.assertLegalChar=w(this.assertLegalChar,this),O||(O={}),this.options=O,this.options.version||(this.options.version="1.0"),q=O.stringify||{})b.call(q,I)&&(p=q[I],this[I]=p)}return j.prototype.name=function(O){return this.options.noValidation?O:this.assertLegalName(""+O||"")},j.prototype.text=function(O){return this.options.noValidation?O:this.assertLegalChar(this.textEscape(""+O||""))},j.prototype.cdata=function(O){return this.options.noValidation?O:(O=(O=""+O||"").replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(O))},j.prototype.comment=function(O){if(this.options.noValidation)return O;if((O=""+O||"").match(/--/))throw new Error("Comment text cannot contain double-hypen: "+O);return this.assertLegalChar(O)},j.prototype.raw=function(O){return this.options.noValidation?O:""+O||""},j.prototype.attValue=function(O){return this.options.noValidation?O:this.assertLegalChar(this.attEscape(O=""+O||""))},j.prototype.insTarget=function(O){return this.options.noValidation?O:this.assertLegalChar(""+O||"")},j.prototype.insValue=function(O){if(this.options.noValidation)return O;if((O=""+O||"").match(/\?>/))throw new Error("Invalid processing instruction value: "+O);return this.assertLegalChar(O)},j.prototype.xmlVersion=function(O){if(this.options.noValidation)return O;if(!(O=""+O||"").match(/1\.[0-9]+/))throw new Error("Invalid version number: "+O);return O},j.prototype.xmlEncoding=function(O){if(this.options.noValidation)return O;if(!(O=""+O||"").match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+O);return this.assertLegalChar(O)},j.prototype.xmlStandalone=function(O){return this.options.noValidation?O:O?"yes":"no"},j.prototype.dtdPubID=function(O){return this.options.noValidation?O:this.assertLegalChar(""+O||"")},j.prototype.dtdSysID=function(O){return this.options.noValidation?O:this.assertLegalChar(""+O||"")},j.prototype.dtdElementValue=function(O){return this.options.noValidation?O:this.assertLegalChar(""+O||"")},j.prototype.dtdAttType=function(O){return this.options.noValidation?O:this.assertLegalChar(""+O||"")},j.prototype.dtdAttDefault=function(O){return this.options.noValidation?O:this.assertLegalChar(""+O||"")},j.prototype.dtdEntityValue=function(O){return this.options.noValidation?O:this.assertLegalChar(""+O||"")},j.prototype.dtdNData=function(O){return this.options.noValidation?O:this.assertLegalChar(""+O||"")},j.prototype.convertAttKey="@",j.prototype.convertPIKey="?",j.prototype.convertTextKey="#text",j.prototype.convertCDataKey="#cdata",j.prototype.convertCommentKey="#comment",j.prototype.convertRawKey="#raw",j.prototype.assertLegalChar=function(O){var I,q;if(this.options.noValidation)return O;if(I="",this.options.version==="1.0"){if(I=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,q=O.match(I))throw new Error("Invalid character in string: "+O+" at index "+q.index)}else if(this.options.version==="1.1"&&(I=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,q=O.match(I)))throw new Error("Invalid character in string: "+O+" at index "+q.index);return O},j.prototype.assertLegalName=function(O){var I;if(this.options.noValidation)return O;if(this.assertLegalChar(O),I=/^([: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])*$/,!O.match(I))throw new Error("Invalid character in name");return O},j.prototype.textEscape=function(O){var I;return this.options.noValidation?O:(I=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,O.replace(I,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},j.prototype.attEscape=function(O){var I;return this.options.noValidation?O:(I=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,O.replace(I,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},j}()}).call(this)},4011:$=>{$.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"]]}}},4025:($,w,b)=>{var j=b(8287).Buffer,O=[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 I(N){if(j.isBuffer(N))return N;var M=typeof j.alloc=="function"&&typeof j.from=="function";if(typeof N=="number")return M?j.alloc(N):new j(N);if(typeof N=="string")return M?j.from(N):new j(N);throw new Error("input must be buffer, number, or string, received "+typeof N)}function q(N,M){N=I(N),j.isBuffer(M)&&(M=M.readUInt32BE(0));for(var T=~M,S=0;S<N.length;S++)T=O[255&(T^N[S])]^T>>>8;return~T}function p(){return N=q.apply(null,arguments),(M=I(4)).writeInt32BE(N,0),M;var N,M}typeof Int32Array<"u"&&(O=new Int32Array(O)),p.signed=function(){return q.apply(null,arguments)},p.unsigned=function(){return q.apply(null,arguments)>>>0},$.exports=p},4035:($,w,b)=>{var j,O=b(6556),I=b(9092)(),q=b(9957),p=b(5795);if(I){var N=O("RegExp.prototype.exec"),M={},T=function(){throw M},S={toString:T,valueOf:T};typeof Symbol.toPrimitive=="symbol"&&(S[Symbol.toPrimitive]=T),j=function(C){if(!C||typeof C!="object")return!1;var _=p(C,"lastIndex");if(!_||!q(_,"value"))return!1;try{N(C,S)}catch(F){return F===M}}}else{var B=O("Object.prototype.toString");j=function(C){return!(!C||typeof C!="object"&&typeof C!="function")&&B(C)==="[object RegExp]"}}$.exports=j},4039:($,w,b)=>{var j=typeof Symbol<"u"&&Symbol,O=b(1333);$.exports=function(){return typeof j=="function"&&typeof Symbol=="function"&&typeof j("foo")=="symbol"&&typeof Symbol("bar")=="symbol"&&O()}},4043:($,w,b)=>{var j=b(8287).Buffer;(function(O){O.parser=function(Z,rt){return new p(Z,rt)},O.SAXParser=p,O.SAXStream=M,O.createStream=function(Z,rt){return new M(Z,rt)},O.MAX_BUFFER_LENGTH=65536;var I,q=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function p(Z,rt){if(!(this instanceof p))return new p(Z,rt);var wt=this;(function(gt){for(var St=0,Lt=q.length;St<Lt;St++)gt[q[St]]=""})(wt),wt.q=wt.c="",wt.bufferCheckPosition=O.MAX_BUFFER_LENGTH,wt.opt=rt||{},wt.opt.lowercase=wt.opt.lowercase||wt.opt.lowercasetags,wt.looseCase=wt.opt.lowercase?"toLowerCase":"toUpperCase",wt.tags=[],wt.closed=wt.closedRoot=wt.sawRoot=!1,wt.tag=wt.error=null,wt.strict=!!Z,wt.noscript=!(!Z&&!wt.opt.noscript),wt.state=t.BEGIN,wt.strictEntities=wt.opt.strictEntities,wt.ENTITIES=wt.strictEntities?Object.create(O.XML_ENTITIES):Object.create(O.ENTITIES),wt.attribList=[],wt.opt.xmlns&&(wt.ns=Object.create(_)),wt.opt.unquotedAttributeValues===void 0&&(wt.opt.unquotedAttributeValues=!Z),wt.trackPosition=wt.opt.position!==!1,wt.trackPosition&&(wt.position=wt.line=wt.column=0),l(wt,"onready")}O.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 rt(){}return rt.prototype=Z,new rt}),Object.keys||(Object.keys=function(Z){var rt=[];for(var wt in Z)Z.hasOwnProperty(wt)&&rt.push(wt);return rt}),p.prototype={end:function(){W(this)},write:function(Z){var rt=this;if(this.error)throw this.error;if(rt.closed)return A(rt,"Cannot write after close. Assign an onready handler.");if(Z===null)return W(rt);typeof Z=="object"&&(Z=Z.toString());for(var wt=0,gt="";gt=it(Z,wt++),rt.c=gt,gt;)switch(rt.trackPosition&&(rt.position++,gt===`
108
+ `?(rt.line++,rt.column=0):rt.column++),rt.state){case t.BEGIN:if(rt.state=t.BEGIN_WHITESPACE,gt==="\uFEFF")continue;tt(rt,gt);continue;case t.BEGIN_WHITESPACE:tt(rt,gt);continue;case t.TEXT:if(rt.sawRoot&&!rt.closedRoot){for(var St=wt-1;gt&&gt!=="<"&&gt!=="&";)(gt=it(Z,wt++))&&rt.trackPosition&&(rt.position++,gt===`
109
+ `?(rt.line++,rt.column=0):rt.column++);rt.textNode+=Z.substring(St,wt-1)}gt!=="<"||rt.sawRoot&&rt.closedRoot&&!rt.strict?(D(gt)||rt.sawRoot&&!rt.closedRoot||J(rt,"Text data outside of root node."),gt==="&"?rt.state=t.TEXT_ENTITY:rt.textNode+=gt):(rt.state=t.OPEN_WAKA,rt.startTagPosition=rt.position);continue;case t.SCRIPT:gt==="<"?rt.state=t.SCRIPT_ENDING:rt.script+=gt;continue;case t.SCRIPT_ENDING:gt==="/"?rt.state=t.CLOSE_TAG:(rt.script+="<"+gt,rt.state=t.SCRIPT);continue;case t.OPEN_WAKA:if(gt==="!")rt.state=t.SGML_DECL,rt.sgmlDecl="";else if(!D(gt))if(et(F,gt))rt.state=t.OPEN_TAG,rt.tagName=gt;else if(gt==="/")rt.state=t.CLOSE_TAG,rt.tagName="";else if(gt==="?")rt.state=t.PROC_INST,rt.procInstName=rt.procInstBody="";else{if(J(rt,"Unencoded <"),rt.startTagPosition+1<rt.position){var Lt=rt.position-rt.startTagPosition;gt=new Array(Lt).join(" ")+gt}rt.textNode+="<"+gt,rt.state=t.TEXT}continue;case t.SGML_DECL:if(rt.sgmlDecl+gt==="--"){rt.state=t.COMMENT,rt.comment="",rt.sgmlDecl="";continue}rt.doctype&&rt.doctype!==!0&&rt.sgmlDecl?(rt.state=t.DOCTYPE_DTD,rt.doctype+="<!"+rt.sgmlDecl+gt,rt.sgmlDecl=""):(rt.sgmlDecl+gt).toUpperCase()===T?(a(rt,"onopencdata"),rt.state=t.CDATA,rt.sgmlDecl="",rt.cdata=""):(rt.sgmlDecl+gt).toUpperCase()===S?(rt.state=t.DOCTYPE,(rt.doctype||rt.sawRoot)&&J(rt,"Inappropriately located doctype declaration"),rt.doctype="",rt.sgmlDecl=""):gt===">"?(a(rt,"onsgmldeclaration",rt.sgmlDecl),rt.sgmlDecl="",rt.state=t.TEXT):(Q(gt)&&(rt.state=t.SGML_DECL_QUOTED),rt.sgmlDecl+=gt);continue;case t.SGML_DECL_QUOTED:gt===rt.q&&(rt.state=t.SGML_DECL,rt.q=""),rt.sgmlDecl+=gt;continue;case t.DOCTYPE:gt===">"?(rt.state=t.TEXT,a(rt,"ondoctype",rt.doctype),rt.doctype=!0):(rt.doctype+=gt,gt==="["?rt.state=t.DOCTYPE_DTD:Q(gt)&&(rt.state=t.DOCTYPE_QUOTED,rt.q=gt));continue;case t.DOCTYPE_QUOTED:rt.doctype+=gt,gt===rt.q&&(rt.q="",rt.state=t.DOCTYPE);continue;case t.DOCTYPE_DTD:gt==="]"?(rt.doctype+=gt,rt.state=t.DOCTYPE):gt==="<"?(rt.state=t.OPEN_WAKA,rt.startTagPosition=rt.position):Q(gt)?(rt.doctype+=gt,rt.state=t.DOCTYPE_DTD_QUOTED,rt.q=gt):rt.doctype+=gt;continue;case t.DOCTYPE_DTD_QUOTED:rt.doctype+=gt,gt===rt.q&&(rt.state=t.DOCTYPE_DTD,rt.q="");continue;case t.COMMENT:gt==="-"?rt.state=t.COMMENT_ENDING:rt.comment+=gt;continue;case t.COMMENT_ENDING:gt==="-"?(rt.state=t.COMMENT_ENDED,rt.comment=v(rt.opt,rt.comment),rt.comment&&a(rt,"oncomment",rt.comment),rt.comment=""):(rt.comment+="-"+gt,rt.state=t.COMMENT);continue;case t.COMMENT_ENDED:gt!==">"?(J(rt,"Malformed comment"),rt.comment+="--"+gt,rt.state=t.COMMENT):rt.doctype&&rt.doctype!==!0?rt.state=t.DOCTYPE_DTD:rt.state=t.TEXT;continue;case t.CDATA:gt==="]"?rt.state=t.CDATA_ENDING:rt.cdata+=gt;continue;case t.CDATA_ENDING:gt==="]"?rt.state=t.CDATA_ENDING_2:(rt.cdata+="]"+gt,rt.state=t.CDATA);continue;case t.CDATA_ENDING_2:gt===">"?(rt.cdata&&a(rt,"oncdata",rt.cdata),a(rt,"onclosecdata"),rt.cdata="",rt.state=t.TEXT):gt==="]"?rt.cdata+="]":(rt.cdata+="]]"+gt,rt.state=t.CDATA);continue;case t.PROC_INST:gt==="?"?rt.state=t.PROC_INST_ENDING:D(gt)?rt.state=t.PROC_INST_BODY:rt.procInstName+=gt;continue;case t.PROC_INST_BODY:if(!rt.procInstBody&&D(gt))continue;gt==="?"?rt.state=t.PROC_INST_ENDING:rt.procInstBody+=gt;continue;case t.PROC_INST_ENDING:gt===">"?(a(rt,"onprocessinginstruction",{name:rt.procInstName,body:rt.procInstBody}),rt.procInstName=rt.procInstBody="",rt.state=t.TEXT):(rt.procInstBody+="?"+gt,rt.state=t.PROC_INST_BODY);continue;case t.OPEN_TAG:et(U,gt)?rt.tagName+=gt:(K(rt),gt===">"?at(rt):gt==="/"?rt.state=t.OPEN_TAG_SLASH:(D(gt)||J(rt,"Invalid character in tag name"),rt.state=t.ATTRIB));continue;case t.OPEN_TAG_SLASH:gt===">"?(at(rt,!0),ot(rt)):(J(rt,"Forward-slash in opening tag not followed by >"),rt.state=t.ATTRIB);continue;case t.ATTRIB:if(D(gt))continue;gt===">"?at(rt):gt==="/"?rt.state=t.OPEN_TAG_SLASH:et(F,gt)?(rt.attribName=gt,rt.attribValue="",rt.state=t.ATTRIB_NAME):J(rt,"Invalid attribute name");continue;case t.ATTRIB_NAME:gt==="="?rt.state=t.ATTRIB_VALUE:gt===">"?(J(rt,"Attribute without value"),rt.attribValue=rt.attribName,Y(rt),at(rt)):D(gt)?rt.state=t.ATTRIB_NAME_SAW_WHITE:et(U,gt)?rt.attribName+=gt:J(rt,"Invalid attribute name");continue;case t.ATTRIB_NAME_SAW_WHITE:if(gt==="=")rt.state=t.ATTRIB_VALUE;else{if(D(gt))continue;J(rt,"Attribute without value"),rt.tag.attributes[rt.attribName]="",rt.attribValue="",a(rt,"onattribute",{name:rt.attribName,value:""}),rt.attribName="",gt===">"?at(rt):et(F,gt)?(rt.attribName=gt,rt.state=t.ATTRIB_NAME):(J(rt,"Invalid attribute name"),rt.state=t.ATTRIB)}continue;case t.ATTRIB_VALUE:if(D(gt))continue;Q(gt)?(rt.q=gt,rt.state=t.ATTRIB_VALUE_QUOTED):(rt.opt.unquotedAttributeValues||A(rt,"Unquoted attribute value"),rt.state=t.ATTRIB_VALUE_UNQUOTED,rt.attribValue=gt);continue;case t.ATTRIB_VALUE_QUOTED:if(gt!==rt.q){gt==="&"?rt.state=t.ATTRIB_VALUE_ENTITY_Q:rt.attribValue+=gt;continue}Y(rt),rt.q="",rt.state=t.ATTRIB_VALUE_CLOSED;continue;case t.ATTRIB_VALUE_CLOSED:D(gt)?rt.state=t.ATTRIB:gt===">"?at(rt):gt==="/"?rt.state=t.OPEN_TAG_SLASH:et(F,gt)?(J(rt,"No whitespace between attributes"),rt.attribName=gt,rt.attribValue="",rt.state=t.ATTRIB_NAME):J(rt,"Invalid attribute name");continue;case t.ATTRIB_VALUE_UNQUOTED:if(!X(gt)){gt==="&"?rt.state=t.ATTRIB_VALUE_ENTITY_U:rt.attribValue+=gt;continue}Y(rt),gt===">"?at(rt):rt.state=t.ATTRIB;continue;case t.CLOSE_TAG:if(rt.tagName)gt===">"?ot(rt):et(U,gt)?rt.tagName+=gt:rt.script?(rt.script+="</"+rt.tagName,rt.tagName="",rt.state=t.SCRIPT):(D(gt)||J(rt,"Invalid tagname in closing tag"),rt.state=t.CLOSE_TAG_SAW_WHITE);else{if(D(gt))continue;nt(F,gt)?rt.script?(rt.script+="</"+gt,rt.state=t.SCRIPT):J(rt,"Invalid tagname in closing tag."):rt.tagName=gt}continue;case t.CLOSE_TAG_SAW_WHITE:if(D(gt))continue;gt===">"?ot(rt):J(rt,"Invalid characters in closing tag");continue;case t.TEXT_ENTITY:case t.ATTRIB_VALUE_ENTITY_Q:case t.ATTRIB_VALUE_ENTITY_U:var At,jt;switch(rt.state){case t.TEXT_ENTITY:At=t.TEXT,jt="textNode";break;case t.ATTRIB_VALUE_ENTITY_Q:At=t.ATTRIB_VALUE_QUOTED,jt="attribValue";break;case t.ATTRIB_VALUE_ENTITY_U:At=t.ATTRIB_VALUE_UNQUOTED,jt="attribValue"}if(gt===";"){var Qt=ht(rt);rt.opt.unparsedEntities&&!Object.values(O.XML_ENTITIES).includes(Qt)?(rt.entity="",rt.state=At,rt.write(Qt)):(rt[jt]+=Qt,rt.entity="",rt.state=At)}else et(rt.entity.length?H:z,gt)?rt.entity+=gt:(J(rt,"Invalid character in entity name"),rt[jt]+="&"+rt.entity+gt,rt.entity="",rt.state=At);continue;default:throw new Error(rt,"Unknown state: "+rt.state)}return rt.position>=rt.bufferCheckPosition&&function(Dt){for(var zt=Math.max(O.MAX_BUFFER_LENGTH,10),ft=0,pt=0,mt=q.length;pt<mt;pt++){var Mt=Dt[q[pt]].length;if(Mt>zt)switch(q[pt]){case"textNode":r(Dt);break;case"cdata":a(Dt,"oncdata",Dt.cdata),Dt.cdata="";break;case"script":a(Dt,"onscript",Dt.script),Dt.script="";break;default:A(Dt,"Max buffer length exceeded: "+q[pt])}ft=Math.max(ft,Mt)}var xt=O.MAX_BUFFER_LENGTH-ft;Dt.bufferCheckPosition=xt+Dt.position}(rt),rt},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){var Z;r(Z=this),Z.cdata!==""&&(a(Z,"oncdata",Z.cdata),Z.cdata=""),Z.script!==""&&(a(Z,"onscript",Z.script),Z.script="")}};try{I=b(8310).Stream}catch{I=function(){}}I||(I=function(){});var N=O.EVENTS.filter(function(Z){return Z!=="error"&&Z!=="end"});function M(Z,rt){if(!(this instanceof M))return new M(Z,rt);I.apply(this),this._parser=new p(Z,rt),this.writable=!0,this.readable=!0;var wt=this;this._parser.onend=function(){wt.emit("end")},this._parser.onerror=function(gt){wt.emit("error",gt),wt._parser.error=null},this._decoder=null,N.forEach(function(gt){Object.defineProperty(wt,"on"+gt,{get:function(){return wt._parser["on"+gt]},set:function(St){if(!St)return wt.removeAllListeners(gt),wt._parser["on"+gt]=St,St;wt.on(gt,St)},enumerable:!0,configurable:!1})})}M.prototype=Object.create(I.prototype,{constructor:{value:M}}),M.prototype.write=function(Z){if(typeof j=="function"&&typeof j.isBuffer=="function"&&j.isBuffer(Z)){if(!this._decoder){var rt=b(3141).I;this._decoder=new rt("utf8")}Z=this._decoder.write(Z)}return this._parser.write(Z.toString()),this.emit("data",Z),!0},M.prototype.end=function(Z){return Z&&Z.length&&this.write(Z),this._parser.end(),!0},M.prototype.on=function(Z,rt){var wt=this;return wt._parser["on"+Z]||N.indexOf(Z)===-1||(wt._parser["on"+Z]=function(){var gt=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);gt.splice(0,0,Z),wt.emit.apply(wt,gt)}),I.prototype.on.call(wt,Z,rt)};var T="[CDATA[",S="DOCTYPE",B="http://www.w3.org/XML/1998/namespace",C="http://www.w3.org/2000/xmlns/",_={xml:B,xmlns:C},F=/[:_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]/,U=/[:_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-]/,z=/[#:_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]/,H=/[#:_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 D(Z){return Z===" "||Z===`
110
+ `||Z==="\r"||Z===" "}function Q(Z){return Z==='"'||Z==="'"}function X(Z){return Z===">"||D(Z)}function et(Z,rt){return Z.test(rt)}function nt(Z,rt){return!et(Z,rt)}var ut,ct,vt,t=0;for(var h in O.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++},O.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},O.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(O.ENTITIES).forEach(function(Z){var rt=O.ENTITIES[Z],wt=typeof rt=="number"?String.fromCharCode(rt):rt;O.ENTITIES[Z]=wt}),O.STATE)O.STATE[O.STATE[h]]=h;function l(Z,rt,wt){Z[rt]&&Z[rt](wt)}function a(Z,rt,wt){Z.textNode&&r(Z),l(Z,rt,wt)}function r(Z){Z.textNode=v(Z.opt,Z.textNode),Z.textNode&&l(Z,"ontext",Z.textNode),Z.textNode=""}function v(Z,rt){return Z.trim&&(rt=rt.trim()),Z.normalize&&(rt=rt.replace(/\s+/g," ")),rt}function A(Z,rt){return r(Z),Z.trackPosition&&(rt+=`
111
+ Line: `+Z.line+`
112
+ Column: `+Z.column+`
113
+ Char: `+Z.c),rt=new Error(rt),Z.error=rt,l(Z,"onerror",rt),Z}function W(Z){return Z.sawRoot&&!Z.closedRoot&&J(Z,"Unclosed root tag"),Z.state!==t.BEGIN&&Z.state!==t.BEGIN_WHITESPACE&&Z.state!==t.TEXT&&A(Z,"Unexpected end"),r(Z),Z.c="",Z.closed=!0,l(Z,"onend"),p.call(Z,Z.strict,Z.opt),Z}function J(Z,rt){if(typeof Z!="object"||!(Z instanceof p))throw new Error("bad call to strictFail");Z.strict&&A(Z,rt)}function K(Z){Z.strict||(Z.tagName=Z.tagName[Z.looseCase]());var rt=Z.tags[Z.tags.length-1]||Z,wt=Z.tag={name:Z.tagName,attributes:{}};Z.opt.xmlns&&(wt.ns=rt.ns),Z.attribList.length=0,a(Z,"onopentagstart",wt)}function G(Z,rt){var wt=Z.indexOf(":")<0?["",Z]:Z.split(":"),gt=wt[0],St=wt[1];return rt&&Z==="xmlns"&&(gt="xmlns",St=""),{prefix:gt,local:St}}function Y(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 rt=G(Z.attribName,!0),wt=rt.prefix,gt=rt.local;if(wt==="xmlns")if(gt==="xml"&&Z.attribValue!==B)J(Z,"xml: prefix must be bound to "+B+`
114
+ Actual: `+Z.attribValue);else if(gt==="xmlns"&&Z.attribValue!==C)J(Z,"xmlns: prefix must be bound to "+C+`
115
+ Actual: `+Z.attribValue);else{var St=Z.tag,Lt=Z.tags[Z.tags.length-1]||Z;St.ns===Lt.ns&&(St.ns=Object.create(Lt.ns)),St.ns[gt]=Z.attribValue}Z.attribList.push([Z.attribName,Z.attribValue])}else Z.tag.attributes[Z.attribName]=Z.attribValue,a(Z,"onattribute",{name:Z.attribName,value:Z.attribValue});Z.attribName=Z.attribValue=""}}function at(Z,rt){if(Z.opt.xmlns){var wt=Z.tag,gt=G(Z.tagName);wt.prefix=gt.prefix,wt.local=gt.local,wt.uri=wt.ns[gt.prefix]||"",wt.prefix&&!wt.uri&&(J(Z,"Unbound namespace prefix: "+JSON.stringify(Z.tagName)),wt.uri=gt.prefix);var St=Z.tags[Z.tags.length-1]||Z;wt.ns&&St.ns!==wt.ns&&Object.keys(wt.ns).forEach(function(xt){a(Z,"onopennamespace",{prefix:xt,uri:wt.ns[xt]})});for(var Lt=0,At=Z.attribList.length;Lt<At;Lt++){var jt=Z.attribList[Lt],Qt=jt[0],Dt=jt[1],zt=G(Qt,!0),ft=zt.prefix,pt=zt.local,mt=ft===""?"":wt.ns[ft]||"",Mt={name:Qt,value:Dt,prefix:ft,local:pt,uri:mt};ft&&ft!=="xmlns"&&!mt&&(J(Z,"Unbound namespace prefix: "+JSON.stringify(ft)),Mt.uri=ft),Z.tag.attributes[Qt]=Mt,a(Z,"onattribute",Mt)}Z.attribList.length=0}Z.tag.isSelfClosing=!!rt,Z.sawRoot=!0,Z.tags.push(Z.tag),a(Z,"onopentag",Z.tag),rt||(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 ot(Z){if(!Z.tagName)return J(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);a(Z,"onscript",Z.script),Z.script=""}var rt=Z.tags.length,wt=Z.tagName;Z.strict||(wt=wt[Z.looseCase]());for(var gt=wt;rt--&&Z.tags[rt].name!==gt;)J(Z,"Unexpected close tag");if(rt<0)return J(Z,"Unmatched closing tag: "+Z.tagName),Z.textNode+="</"+Z.tagName+">",void(Z.state=t.TEXT);Z.tagName=wt;for(var St=Z.tags.length;St-- >rt;){var Lt=Z.tag=Z.tags.pop();Z.tagName=Z.tag.name,a(Z,"onclosetag",Z.tagName);var At={};for(var jt in Lt.ns)At[jt]=Lt.ns[jt];var Qt=Z.tags[Z.tags.length-1]||Z;Z.opt.xmlns&&Lt.ns!==Qt.ns&&Object.keys(Lt.ns).forEach(function(Dt){var zt=Lt.ns[Dt];a(Z,"onclosenamespace",{prefix:Dt,uri:zt})})}rt===0&&(Z.closedRoot=!0),Z.tagName=Z.attribValue=Z.attribName="",Z.attribList.length=0,Z.state=t.TEXT}function ht(Z){var rt,wt=Z.entity,gt=wt.toLowerCase(),St="";return Z.ENTITIES[wt]?Z.ENTITIES[wt]:Z.ENTITIES[gt]?Z.ENTITIES[gt]:((wt=gt).charAt(0)==="#"&&(wt.charAt(1)==="x"?(wt=wt.slice(2),St=(rt=parseInt(wt,16)).toString(16)):(wt=wt.slice(1),St=(rt=parseInt(wt,10)).toString(10))),wt=wt.replace(/^0+/,""),isNaN(rt)||St.toLowerCase()!==wt?(J(Z,"Invalid character entity"),"&"+Z.entity+";"):String.fromCodePoint(rt))}function tt(Z,rt){rt==="<"?(Z.state=t.OPEN_WAKA,Z.startTagPosition=Z.position):D(rt)||(J(Z,"Non-whitespace before first tag."),Z.textNode=rt,Z.state=t.TEXT)}function it(Z,rt){var wt="";return rt<Z.length&&(wt=Z.charAt(rt)),wt}t=O.STATE,String.fromCodePoint||(ut=String.fromCharCode,ct=Math.floor,vt=function(){var Z,rt,wt=[],gt=-1,St=arguments.length;if(!St)return"";for(var Lt="";++gt<St;){var At=Number(arguments[gt]);if(!isFinite(At)||At<0||At>1114111||ct(At)!==At)throw RangeError("Invalid code point: "+At);At<=65535?wt.push(At):(Z=55296+((At-=65536)>>10),rt=At%1024+56320,wt.push(Z,rt)),(gt+1===St||wt.length>16384)&&(Lt+=ut.apply(null,wt),wt.length=0)}return Lt},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:vt,configurable:!0,writable:!0}):String.fromCodePoint=vt)})(w)},4050:($,w,b)=>{var j=b(6168),O=b(9560),I=b(6698),q=b(2861).Buffer,p={"des-ede3-cbc":O.CBC.instantiate(O.EDE),"des-ede3":O.EDE,"des-ede-cbc":O.CBC.instantiate(O.EDE),"des-ede":O.EDE,"des-cbc":O.CBC.instantiate(O.DES),"des-ecb":O.DES};function N(M){j.call(this);var T,S=M.mode.toLowerCase(),B=p[S];T=M.decrypt?"decrypt":"encrypt";var C=M.key;q.isBuffer(C)||(C=q.from(C)),S!=="des-ede"&&S!=="des-ede-cbc"||(C=q.concat([C,C.slice(0,8)]));var _=M.iv;q.isBuffer(_)||(_=q.from(_)),this._des=B.create({key:C,iv:_,type:T})}p.des=p["des-cbc"],p.des3=p["des-ede3-cbc"],$.exports=N,I(N,j),N.prototype._update=function(M){return q.from(this._des.update(M))},N.prototype._final=function(){return q.from(this._des.final())}},4101:($,w,b)=>{var j=/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,O=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,I=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,q=b(8078),p=b(1241),N=b(2861).Buffer;$.exports=function(M,T){var S,B=M.toString(),C=B.match(j);if(C){var _="aes"+C[1],F=N.from(C[2],"hex"),U=N.from(C[3].replace(/[\r\n]/g,""),"base64"),z=q(T,F.slice(0,8),parseInt(C[1],10)).key,H=[],D=p.createDecipheriv(_,z,F);H.push(D.update(U)),H.push(D.final()),S=N.concat(H)}else{var Q=B.match(I);S=N.from(Q[2].replace(/[\r\n]/g,""),"base64")}return{tag:B.match(O)[1],data:S}}},4107:($,w,b)=>{var j=b(6698),O=b(392),I=b(2861).Buffer,q=[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],p=new Array(64);function N(){this.init(),this._w=p,O.call(this,64,56)}function M(_,F,U){return U^_&(F^U)}function T(_,F,U){return _&F|U&(_|F)}function S(_){return(_>>>2|_<<30)^(_>>>13|_<<19)^(_>>>22|_<<10)}function B(_){return(_>>>6|_<<26)^(_>>>11|_<<21)^(_>>>25|_<<7)}function C(_){return(_>>>7|_<<25)^(_>>>18|_<<14)^_>>>3}j(N,O),N.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},N.prototype._update=function(_){for(var F,U=this._w,z=0|this._a,H=0|this._b,D=0|this._c,Q=0|this._d,X=0|this._e,et=0|this._f,nt=0|this._g,ut=0|this._h,ct=0;ct<16;++ct)U[ct]=_.readInt32BE(4*ct);for(;ct<64;++ct)U[ct]=0|(((F=U[ct-2])>>>17|F<<15)^(F>>>19|F<<13)^F>>>10)+U[ct-7]+C(U[ct-15])+U[ct-16];for(var vt=0;vt<64;++vt){var t=ut+B(X)+M(X,et,nt)+q[vt]+U[vt]|0,h=S(z)+T(z,H,D)|0;ut=nt,nt=et,et=X,X=Q+t|0,Q=D,D=H,H=z,z=t+h|0}this._a=z+this._a|0,this._b=H+this._b|0,this._c=D+this._c|0,this._d=Q+this._d|0,this._e=X+this._e|0,this._f=et+this._f|0,this._g=nt+this._g|0,this._h=ut+this._h|0},N.prototype._hash=function(){var _=I.allocUnsafe(32);return _.writeInt32BE(this._a,0),_.writeInt32BE(this._b,4),_.writeInt32BE(this._c,8),_.writeInt32BE(this._d,12),_.writeInt32BE(this._e,16),_.writeInt32BE(this._f,20),_.writeInt32BE(this._g,24),_.writeInt32BE(this._h,28),_},$.exports=N},4111:function($,w,b){(function(){var j,O,I={}.hasOwnProperty;O=b(468),j=b(1737),$.exports=function(q){function p(N,M,T,S,B,C){if(p.__super__.constructor.call(this,N),M==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(T==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(M));if(!S)throw new Error("Missing DTD attribute type. "+this.debugInfo(M));if(!B)throw new Error("Missing DTD attribute default. "+this.debugInfo(M));if(B.indexOf("#")!==0&&(B="#"+B),!B.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(M));if(C&&!B.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(M));this.elementName=this.stringify.name(M),this.type=j.AttributeDeclaration,this.attributeName=this.stringify.name(T),this.attributeType=this.stringify.dtdAttType(S),C&&(this.defaultValue=this.stringify.dtdAttDefault(C)),this.defaultValueType=B}return function(N,M){for(var T in M)I.call(M,T)&&(N[T]=M[T]);function S(){this.constructor=N}S.prototype=M.prototype,N.prototype=new S,N.__super__=M.prototype}(p,q),p.prototype.toString=function(N){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(N))},p}(O)}).call(this)},4116:($,w,b)=>{var j=b(8287),O=j.Buffer;function I(p,N){for(var M in p)N[M]=p[M]}function q(p,N,M){return O(p,N,M)}O.from&&O.alloc&&O.allocUnsafe&&O.allocUnsafeSlow?$.exports=j:(I(j,w),w.Buffer=q),I(O,q),q.from=function(p,N,M){if(typeof p=="number")throw new TypeError("Argument must not be a number");return O(p,N,M)},q.alloc=function(p,N,M){if(typeof p!="number")throw new TypeError("Argument must be a number");var T=O(p);return N!==void 0?typeof M=="string"?T.fill(N,M):T.fill(N):T.fill(0),T},q.allocUnsafe=function(p){if(typeof p!="number")throw new TypeError("Argument must be a number");return O(p)},q.allocUnsafeSlow=function(p){if(typeof p!="number")throw new TypeError("Argument must be a number");return j.SlowBuffer(p)}},4130:function($,w,b){(function(){var j,O,I,q={}.hasOwnProperty;I=b(9241).isObject,O=b(468),j=b(1737),$.exports=function(p){function N(M,T,S,B){var C;N.__super__.constructor.call(this,M),I(T)&&(T=(C=T).version,S=C.encoding,B=C.standalone),T||(T="1.0"),this.type=j.Declaration,this.version=this.stringify.xmlVersion(T),S!=null&&(this.encoding=this.stringify.xmlEncoding(S)),B!=null&&(this.standalone=this.stringify.xmlStandalone(B))}return function(M,T){for(var S in T)q.call(T,S)&&(M[S]=T[S]);function B(){this.constructor=M}B.prototype=T.prototype,M.prototype=new B,M.__super__=T.prototype}(N,p),N.prototype.toString=function(M){return this.options.writer.declaration(this,this.options.writer.filterOptions(M))},N}(O)}).call(this)},4133:($,w,b)=>{var j=b(487),O=b(8452),I=b(3003),q=b(6642),p=b(2464),N=j(q(),Number);O(N,{getPolyfill:q,implementation:I,shim:p}),$.exports=N},4148:($,w,b)=>{var j=b(5606),O=b(6763);function I(ot){return I=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ht){return typeof ht}:function(ht){return ht&&typeof Symbol=="function"&&ht.constructor===Symbol&&ht!==Symbol.prototype?"symbol":typeof ht},I(ot)}function q(ot,ht){for(var tt=0;tt<ht.length;tt++){var it=ht[tt];it.enumerable=it.enumerable||!1,it.configurable=!0,"value"in it&&(it.writable=!0),Object.defineProperty(ot,(Z=function(rt){if(I(rt)!=="object"||rt===null)return rt;var wt=rt[Symbol.toPrimitive];if(wt!==void 0){var gt=wt.call(rt,"string");if(I(gt)!=="object")return gt;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(rt)}(it.key),I(Z)==="symbol"?Z:String(Z)),it)}var Z}function p(ot,ht,tt){return ht&&q(ot.prototype,ht),tt&&q(ot,tt),Object.defineProperty(ot,"prototype",{writable:!1}),ot}var N,M,T=b(9597).codes,S=T.ERR_AMBIGUOUS_ARGUMENT,B=T.ERR_INVALID_ARG_TYPE,C=T.ERR_INVALID_ARG_VALUE,_=T.ERR_INVALID_RETURN_VALUE,F=T.ERR_MISSING_ARGS,U=b(3918),z=b(537).inspect,H=b(537).types,D=H.isPromise,Q=H.isRegExp,X=b(9133)(),et=b(9394)(),nt=b(8075)("RegExp.prototype.test");function ut(){var ot=b(2299);N=ot.isDeepEqual,M=ot.isDeepStrictEqual}var ct=!1,vt=$.exports=a,t={};function h(ot){throw ot.message instanceof Error?ot.message:new U(ot)}function l(ot,ht,tt,it){if(!tt){var Z=!1;if(ht===0)Z=!0,it="No value argument passed to `assert.ok()`";else if(it instanceof Error)throw it;var rt=new U({actual:tt,expected:!0,message:it,operator:"==",stackStartFn:ot});throw rt.generatedMessage=Z,rt}}function a(){for(var ot=arguments.length,ht=new Array(ot),tt=0;tt<ot;tt++)ht[tt]=arguments[tt];l.apply(void 0,[a,ht.length].concat(ht))}vt.fail=function ot(ht,tt,it,Z,rt){var wt,gt=arguments.length;if(gt===0?wt="Failed":gt===1?(it=ht,ht=void 0):(ct===!1&&(ct=!0,(j.emitWarning?j.emitWarning:O.warn.bind(O))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),gt===2&&(Z="!=")),it instanceof Error)throw it;var St={actual:ht,expected:tt,operator:Z===void 0?"fail":Z,stackStartFn:rt||ot};it!==void 0&&(St.message=it);var Lt=new U(St);throw wt&&(Lt.message=wt,Lt.generatedMessage=!0),Lt},vt.AssertionError=U,vt.ok=a,vt.equal=function ot(ht,tt,it){if(arguments.length<2)throw new F("actual","expected");ht!=tt&&h({actual:ht,expected:tt,message:it,operator:"==",stackStartFn:ot})},vt.notEqual=function ot(ht,tt,it){if(arguments.length<2)throw new F("actual","expected");ht==tt&&h({actual:ht,expected:tt,message:it,operator:"!=",stackStartFn:ot})},vt.deepEqual=function ot(ht,tt,it){if(arguments.length<2)throw new F("actual","expected");N===void 0&&ut(),N(ht,tt)||h({actual:ht,expected:tt,message:it,operator:"deepEqual",stackStartFn:ot})},vt.notDeepEqual=function ot(ht,tt,it){if(arguments.length<2)throw new F("actual","expected");N===void 0&&ut(),N(ht,tt)&&h({actual:ht,expected:tt,message:it,operator:"notDeepEqual",stackStartFn:ot})},vt.deepStrictEqual=function ot(ht,tt,it){if(arguments.length<2)throw new F("actual","expected");N===void 0&&ut(),M(ht,tt)||h({actual:ht,expected:tt,message:it,operator:"deepStrictEqual",stackStartFn:ot})},vt.notDeepStrictEqual=function ot(ht,tt,it){if(arguments.length<2)throw new F("actual","expected");N===void 0&&ut(),M(ht,tt)&&h({actual:ht,expected:tt,message:it,operator:"notDeepStrictEqual",stackStartFn:ot})},vt.strictEqual=function ot(ht,tt,it){if(arguments.length<2)throw new F("actual","expected");et(ht,tt)||h({actual:ht,expected:tt,message:it,operator:"strictEqual",stackStartFn:ot})},vt.notStrictEqual=function ot(ht,tt,it){if(arguments.length<2)throw new F("actual","expected");et(ht,tt)&&h({actual:ht,expected:tt,message:it,operator:"notStrictEqual",stackStartFn:ot})};var r=p(function ot(ht,tt,it){var Z=this;(function(rt,wt){if(!(rt instanceof wt))throw new TypeError("Cannot call a class as a function")})(this,ot),tt.forEach(function(rt){rt in ht&&(it!==void 0&&typeof it[rt]=="string"&&Q(ht[rt])&&nt(ht[rt],it[rt])?Z[rt]=it[rt]:Z[rt]=ht[rt])})});function v(ot,ht,tt,it){if(typeof ht!="function"){if(Q(ht))return nt(ht,ot);if(arguments.length===2)throw new B("expected",["Function","RegExp"],ht);if(I(ot)!=="object"||ot===null){var Z=new U({actual:ot,expected:ht,message:tt,operator:"deepStrictEqual",stackStartFn:it});throw Z.operator=it.name,Z}var rt=Object.keys(ht);if(ht instanceof Error)rt.push("name","message");else if(rt.length===0)throw new C("error",ht,"may not be an empty object");return N===void 0&&ut(),rt.forEach(function(wt){typeof ot[wt]=="string"&&Q(ht[wt])&&nt(ht[wt],ot[wt])||function(gt,St,Lt,At,jt,Qt){if(!(Lt in gt)||!M(gt[Lt],St[Lt])){if(!At){var Dt=new r(gt,jt),zt=new r(St,jt,gt),ft=new U({actual:Dt,expected:zt,operator:"deepStrictEqual",stackStartFn:Qt});throw ft.actual=gt,ft.expected=St,ft.operator=Qt.name,ft}h({actual:gt,expected:St,message:At,operator:Qt.name,stackStartFn:Qt})}}(ot,ht,wt,tt,rt,it)}),!0}return ht.prototype!==void 0&&ot instanceof ht||!Error.isPrototypeOf(ht)&&ht.call({},ot)===!0}function A(ot){if(typeof ot!="function")throw new B("fn","Function",ot);try{ot()}catch(ht){return ht}return t}function W(ot){return D(ot)||ot!==null&&I(ot)==="object"&&typeof ot.then=="function"&&typeof ot.catch=="function"}function J(ot){return Promise.resolve().then(function(){var ht;if(typeof ot=="function"){if(!W(ht=ot()))throw new _("instance of Promise","promiseFn",ht)}else{if(!W(ot))throw new B("promiseFn",["Function","Promise"],ot);ht=ot}return Promise.resolve().then(function(){return ht}).then(function(){return t}).catch(function(tt){return tt})})}function K(ot,ht,tt,it){if(typeof tt=="string"){if(arguments.length===4)throw new B("error",["Object","Error","Function","RegExp"],tt);if(I(ht)==="object"&&ht!==null){if(ht.message===tt)throw new S("error/message",'The error message "'.concat(ht.message,'" is identical to the message.'))}else if(ht===tt)throw new S("error/message",'The error "'.concat(ht,'" is identical to the message.'));it=tt,tt=void 0}else if(tt!=null&&I(tt)!=="object"&&typeof tt!="function")throw new B("error",["Object","Error","Function","RegExp"],tt);if(ht===t){var Z="";tt&&tt.name&&(Z+=" (".concat(tt.name,")")),Z+=it?": ".concat(it):".";var rt=ot.name==="rejects"?"rejection":"exception";h({actual:void 0,expected:tt,operator:ot.name,message:"Missing expected ".concat(rt).concat(Z),stackStartFn:ot})}if(tt&&!v(ht,tt,it,ot))throw ht}function G(ot,ht,tt,it){if(ht!==t){if(typeof tt=="string"&&(it=tt,tt=void 0),!tt||v(ht,tt)){var Z=it?": ".concat(it):".",rt=ot.name==="doesNotReject"?"rejection":"exception";h({actual:ht,expected:tt,operator:ot.name,message:"Got unwanted ".concat(rt).concat(Z,`
116
+ `)+'Actual message: "'.concat(ht&&ht.message,'"'),stackStartFn:ot})}throw ht}}function Y(ot,ht,tt,it,Z){if(!Q(ht))throw new B("regexp","RegExp",ht);var rt=Z==="match";if(typeof ot!="string"||nt(ht,ot)!==rt){if(tt instanceof Error)throw tt;var wt=!tt;tt=tt||(typeof ot!="string"?'The "string" argument must be of type string. Received type '+"".concat(I(ot)," (").concat(z(ot),")"):(rt?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(z(ht),`. Input:
117
+
118
+ `).concat(z(ot),`
119
+ `));var gt=new U({actual:ot,expected:ht,message:tt,operator:Z,stackStartFn:it});throw gt.generatedMessage=wt,gt}}function at(){for(var ot=arguments.length,ht=new Array(ot),tt=0;tt<ot;tt++)ht[tt]=arguments[tt];l.apply(void 0,[at,ht.length].concat(ht))}vt.throws=function ot(ht){for(var tt=arguments.length,it=new Array(tt>1?tt-1:0),Z=1;Z<tt;Z++)it[Z-1]=arguments[Z];K.apply(void 0,[ot,A(ht)].concat(it))},vt.rejects=function ot(ht){for(var tt=arguments.length,it=new Array(tt>1?tt-1:0),Z=1;Z<tt;Z++)it[Z-1]=arguments[Z];return J(ht).then(function(rt){return K.apply(void 0,[ot,rt].concat(it))})},vt.doesNotThrow=function ot(ht){for(var tt=arguments.length,it=new Array(tt>1?tt-1:0),Z=1;Z<tt;Z++)it[Z-1]=arguments[Z];G.apply(void 0,[ot,A(ht)].concat(it))},vt.doesNotReject=function ot(ht){for(var tt=arguments.length,it=new Array(tt>1?tt-1:0),Z=1;Z<tt;Z++)it[Z-1]=arguments[Z];return J(ht).then(function(rt){return G.apply(void 0,[ot,rt].concat(it))})},vt.ifError=function ot(ht){if(ht!=null){var tt="ifError got unwanted exception: ";I(ht)==="object"&&typeof ht.message=="string"?ht.message.length===0&&ht.constructor?tt+=ht.constructor.name:tt+=ht.message:tt+=z(ht);var it=new U({actual:ht,expected:null,operator:"ifError",message:tt,stackStartFn:ot}),Z=ht.stack;if(typeof Z=="string"){var rt=Z.split(`
120
+ `);rt.shift();for(var wt=it.stack.split(`
121
+ `),gt=0;gt<rt.length;gt++){var St=wt.indexOf(rt[gt]);if(St!==-1){wt=wt.slice(0,St);break}}it.stack="".concat(wt.join(`
122
+ `),`
123
+ `).concat(rt.join(`
124
+ `))}throw it}},vt.match=function ot(ht,tt,it){Y(ht,tt,it,ot,"match")},vt.doesNotMatch=function ot(ht,tt,it){Y(ht,tt,it,ot,"doesNotMatch")},vt.strict=X(at,vt,{equal:vt.strictEqual,deepEqual:vt.deepStrictEqual,notEqual:vt.notStrictEqual,notDeepEqual:vt.notDeepStrictEqual}),vt.strict.strict=vt.strict},4196:$=>{var w=Math.pow(2,30)-1;$.exports=function(b,j){if(typeof b!="number")throw new TypeError("Iterations not a number");if(b<0)throw new TypeError("Bad iterations");if(typeof j!="number")throw new TypeError("Key length not a number");if(j<0||j>w||j!=j)throw new TypeError("Bad key length")}},4238:function($,w,b){(function(){var j;j=b(1737),b(468),$.exports=function(){function O(I,q,p){if(this.parent=I,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),q==null)throw new Error("Missing attribute name. "+this.debugInfo(q));this.name=this.stringify.name(q),this.value=this.stringify.attValue(p),this.type=j.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(O.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(O.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(O.prototype,"textContent",{get:function(){return this.value},set:function(I){return this.value=I||""}}),Object.defineProperty(O.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(O.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(O.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(O.prototype,"specified",{get:function(){return!0}}),O.prototype.clone=function(){return Object.create(this)},O.prototype.toString=function(I){return this.options.writer.attribute(this,this.options.writer.filterOptions(I))},O.prototype.debugInfo=function(I){return(I=I||this.name)==null?"parent: <"+this.parent.name+">":"attribute: {"+I+"}, parent: <"+this.parent.name+">"},O.prototype.isEqualNode=function(I){return I.namespaceURI===this.namespaceURI&&I.prefix===this.prefix&&I.localName===this.localName&&I.value===this.value},O}()}).call(this)},4280:$=>{$.exports=w=>encodeURIComponent(w).replace(/[!'()*]/g,b=>`%${b.charCodeAt(0).toString(16).toUpperCase()}`)},4348:($,w,b)=>{var j=b(8287).Buffer,O=b(6763);Object.defineProperty(w,"__esModule",{value:!0}),w.parseBucketEncryptionConfig=function(C){return(0,N.parseXml)(C)},w.parseBucketNotification=function(C){var _={TopicConfiguration:[],QueueConfiguration:[],CloudFunctionConfiguration:[]},F=function(H){var D=[];return H&&(0,N.toArray)(H).forEach(Q=>{D.push(Q)}),D},U=function(H){var D=[];return H&&(H=(0,N.toArray)(H))[0].S3Key&&(H[0].S3Key=(0,N.toArray)(H[0].S3Key),H[0].S3Key[0].FilterRule&&(0,N.toArray)(H[0].S3Key[0].FilterRule).forEach(Q=>{var X=(0,N.toArray)(Q.Name)[0],et=(0,N.toArray)(Q.Value)[0];D.push({Name:X,Value:et})})),D},z=(0,N.parseXml)(C);return(z=z.NotificationConfiguration).TopicConfiguration&&(0,N.toArray)(z.TopicConfiguration).forEach(H=>{var D=(0,N.toArray)(H.Id)[0],Q=(0,N.toArray)(H.Topic)[0],X=F(H.Event),et=U(H.Filter);_.TopicConfiguration.push({Id:D,Topic:Q,Event:X,Filter:et})}),z.QueueConfiguration&&(0,N.toArray)(z.QueueConfiguration).forEach(H=>{var D=(0,N.toArray)(H.Id)[0],Q=(0,N.toArray)(H.Queue)[0],X=F(H.Event),et=U(H.Filter);_.QueueConfiguration.push({Id:D,Queue:Q,Event:X,Filter:et})}),z.CloudFunctionConfiguration&&(0,N.toArray)(z.CloudFunctionConfiguration).forEach(H=>{var D=(0,N.toArray)(H.Id)[0],Q=(0,N.toArray)(H.CloudFunction)[0],X=F(H.Event),et=U(H.Filter);_.CloudFunctionConfiguration.push({Id:D,CloudFunction:Q,Event:X,Filter:et})}),_},w.parseBucketRegion=function(C){return(0,N.parseXml)(C).LocationConstraint},w.parseBucketVersioningConfig=function(C){return(0,N.parseXml)(C).VersioningConfiguration},w.parseCompleteMultipart=function(C){var _=(0,N.parseXml)(C).CompleteMultipartUploadResult;return _.Location?{location:(0,N.toArray)(_.Location)[0],bucket:(0,N.toArray)(_.Bucket)[0],key:_.Key,etag:_.ETag.replace(/^"/g,"").replace(/"$/g,"").replace(/^&quot;/g,"").replace(/&quot;$/g,"").replace(/^&#34;/g,"").replace(/&#34;$/g,"")}:_.Code&&_.Message?{errCode:(0,N.toArray)(_.Code)[0],errMessage:(0,N.toArray)(_.Message)[0]}:void 0},w.parseCopyObject=function(C){var _={etag:"",lastModified:""},F=(0,N.parseXml)(C);if(!F.CopyObjectResult)throw new p.InvalidXMLError('Missing tag: "CopyObjectResult"');return(F=F.CopyObjectResult).ETag&&(_.etag=F.ETag.replace(/^"/g,"").replace(/"$/g,"").replace(/^&quot;/g,"").replace(/&quot;$/g,"").replace(/^&#34;/g,"").replace(/&#34;$/g,"")),F.LastModified&&(_.lastModified=new Date(F.LastModified)),_},w.parseError=function(C,_){var F={},U=I.default.parse(C);U.Error&&(F=U.Error);var z=new p.S3Error;return q.default.each(F,(H,D)=>{z[D.toLowerCase()]=H}),q.default.each(_,(H,D)=>{z[D]=H}),z},w.parseInitiateMultipart=function(C){var _=(0,N.parseXml)(C);if(!_.InitiateMultipartUploadResult)throw new p.InvalidXMLError('Missing tag: "InitiateMultipartUploadResult"');if((_=_.InitiateMultipartUploadResult).UploadId)return _.UploadId;throw new p.InvalidXMLError('Missing tag: "UploadId"')},w.parseLifecycleConfig=function(C){return(0,N.parseXml)(C).LifecycleConfiguration},w.parseListBucket=function(C){var _=[],F=(0,N.parseXml)(C);if(!F.ListAllMyBucketsResult)throw new p.InvalidXMLError('Missing tag: "ListAllMyBucketsResult"');return(F=F.ListAllMyBucketsResult).Buckets&&F.Buckets.Bucket&&(0,N.toArray)(F.Buckets.Bucket).forEach(U=>{var z=U.Name,H=new Date(U.CreationDate);_.push({name:z,creationDate:H})}),_},w.parseListMultipart=function(C){var _={uploads:[],prefixes:[],isTruncated:!1},F=(0,N.parseXml)(C);if(!F.ListMultipartUploadsResult)throw new p.InvalidXMLError('Missing tag: "ListMultipartUploadsResult"');return(F=F.ListMultipartUploadsResult).IsTruncated&&(_.isTruncated=F.IsTruncated),F.NextKeyMarker&&(_.nextKeyMarker=F.NextKeyMarker),F.NextUploadIdMarker&&(_.nextUploadIdMarker=F.nextUploadIdMarker),F.CommonPrefixes&&(0,N.toArray)(F.CommonPrefixes).forEach(U=>{_.prefixes.push({prefix:(0,N.sanitizeObjectKey)((0,N.toArray)(U.Prefix)[0])})}),F.Upload&&(0,N.toArray)(F.Upload).forEach(U=>{var z=U.Key,H=U.UploadId,D={id:U.Initiator.ID,displayName:U.Initiator.DisplayName},Q={id:U.Owner.ID,displayName:U.Owner.DisplayName},X=U.StorageClass,et=new Date(U.Initiated);_.uploads.push({key:z,uploadId:H,initiator:D,owner:Q,storageClass:X,initiated:et})}),_},w.parseListObjects=function(C){var _={objects:[],isTruncated:!1};let F,U,z=!1;const H=(0,N.parseXml)(C),D=et=>{et&&(0,N.toArray)(et).forEach(nt=>{_.objects.push({prefix:(0,N.sanitizeObjectKey)((0,N.toArray)(nt.Prefix)[0]),size:0})})},Q=H.ListBucketResult,X=H.ListVersionsResult;return Q&&(Q.IsTruncated&&(z=Q.IsTruncated),Q.Contents&&(0,N.toArray)(Q.Contents).forEach(et=>{const nt=(0,N.sanitizeObjectKey)((0,N.toArray)(et.Key)[0]),ut=new Date((0,N.toArray)(et.LastModified)[0]),ct=(0,N.sanitizeETag)((0,N.toArray)(et.ETag)[0]),vt=et.Size;_.objects.push({name:nt,lastModified:ut,etag:ct,size:vt})}),Q.NextMarker&&(F=Q.NextMarker),D(Q.CommonPrefixes)),X&&(X.IsTruncated&&(z=X.IsTruncated),X.Version&&(0,N.toArray)(X.Version).forEach(et=>{_.objects.push(B(et))}),X.DeleteMarker&&(0,N.toArray)(X.DeleteMarker).forEach(et=>{_.objects.push(B(et,{IsDeleteMarker:!0}))}),X.NextKeyMarker&&(U=X.NextKeyMarker),X.NextVersionIdMarker&&(_.versionIdMarker=X.NextVersionIdMarker),D(X.CommonPrefixes)),_.isTruncated=z,z&&(_.nextMarker=U||F),_},w.parseListObjectsV2=function(C){var _={objects:[],isTruncated:!1},F=(0,N.parseXml)(C);if(!F.ListBucketResult)throw new p.InvalidXMLError('Missing tag: "ListBucketResult"');return(F=F.ListBucketResult).IsTruncated&&(_.isTruncated=F.IsTruncated),F.NextContinuationToken&&(_.nextContinuationToken=F.NextContinuationToken),F.Contents&&(0,N.toArray)(F.Contents).forEach(U=>{var z=(0,N.sanitizeObjectKey)((0,N.toArray)(U.Key)[0]),H=new Date(U.LastModified),D=(0,N.sanitizeETag)(U.ETag),Q=U.Size;_.objects.push({name:z,lastModified:H,etag:D,size:Q})}),F.CommonPrefixes&&(0,N.toArray)(F.CommonPrefixes).forEach(U=>{_.objects.push({prefix:(0,N.sanitizeObjectKey)((0,N.toArray)(U.Prefix)[0]),size:0})}),_},w.parseListObjectsV2WithMetadata=function(C){var _={objects:[],isTruncated:!1},F=(0,N.parseXml)(C);if(!F.ListBucketResult)throw new p.InvalidXMLError('Missing tag: "ListBucketResult"');return(F=F.ListBucketResult).IsTruncated&&(_.isTruncated=F.IsTruncated),F.NextContinuationToken&&(_.nextContinuationToken=F.NextContinuationToken),F.Contents&&(0,N.toArray)(F.Contents).forEach(U=>{var z,H=(0,N.sanitizeObjectKey)(U.Key),D=new Date(U.LastModified),Q=(0,N.sanitizeETag)(U.ETag),X=U.Size;z=U.UserMetadata!=null?(0,N.toArray)(U.UserMetadata)[0]:null,_.objects.push({name:H,lastModified:D,etag:Q,size:X,metadata:z})}),F.CommonPrefixes&&(0,N.toArray)(F.CommonPrefixes).forEach(U=>{_.objects.push({prefix:(0,N.sanitizeObjectKey)((0,N.toArray)(U.Prefix)[0]),size:0})}),_},w.parseListParts=function(C){var _=(0,N.parseXml)(C),F={isTruncated:!1,parts:[],marker:void 0};if(!_.ListPartsResult)throw new p.InvalidXMLError('Missing tag: "ListPartsResult"');return(_=_.ListPartsResult).IsTruncated&&(F.isTruncated=_.IsTruncated),_.NextPartNumberMarker&&(F.marker=+(0,N.toArray)(_.NextPartNumberMarker)[0]),_.Part&&(0,N.toArray)(_.Part).forEach(U=>{var z=+(0,N.toArray)(U.PartNumber)[0],H=new Date(U.LastModified),D=U.ETag.replace(/^"/g,"").replace(/"$/g,"").replace(/^&quot;/g,"").replace(/&quot;$/g,"").replace(/^&#34;/g,"").replace(/&#34;$/g,"");F.parts.push({part:z,lastModified:H,etag:D})}),F},w.parseObjectLegalHoldConfig=function(C){return(0,N.parseXml)(C).LegalHold},w.parseObjectLockConfig=function(C){const _=(0,N.parseXml)(C);let F={};if(_.ObjectLockConfiguration){let U;if(F={objectLockEnabled:_.ObjectLockConfiguration.ObjectLockEnabled},_.ObjectLockConfiguration&&_.ObjectLockConfiguration.Rule&&_.ObjectLockConfiguration.Rule.DefaultRetention&&(U=_.ObjectLockConfiguration.Rule.DefaultRetention||{},F.mode=U.Mode),U){const z=U.Years;z?(F.validity=z,F.unit=N.RETENTION_VALIDITY_UNITS.YEARS):(F.validity=U.Days,F.unit=N.RETENTION_VALIDITY_UNITS.DAYS)}return F}},w.parseObjectRetentionConfig=function(C){const _=(0,N.parseXml)(C).Retention;return{mode:_.Mode,retainUntilDate:_.RetainUntilDate}},w.parseReplicationConfig=function(C){const _=(0,N.parseXml)(C);return{ReplicationConfiguration:{role:_.ReplicationConfiguration.Role,rules:(0,N.toArray)(_.ReplicationConfiguration.Rule)}}},w.parseSelectObjectContentResponse=function(C){function _(H){const D=j.from(H.read(1)).readUInt8(),Q=(j.from(H.read(D)).toString()||"").split(":");return Q.length>=1?Q[1]:""}function F(H){const D=j.from(H.read(2)).readUInt16BE();return j.from(H.read(D)).toString()}const U=new N.SelectResults({}),z=(0,N.readableStream)(C);for(;z._readableState.length;){let H;const D=j.from(z.read(4));H=S(D);const Q=j.from(z.read(4));H=S(Q,H);const X=H.readInt32BE(),et=j.from(z.read(4));H=S(et,H);const nt=D.readInt32BE(),ut=Q.readInt32BE(),ct=et.readInt32BE();if(ct!==X)throw new Error(`Header Checksum Mismatch, Prelude CRC of ${ct} does not equal expected CRC of ${X}`);const vt={};if(ut>0){const a=j.from(z.read(ut));H=S(a,H);const r=(0,N.readableStream)(a);for(;r._readableState.length;){let v=_(r);r.read(1),vt[v]=F(r)}}let t;const h=nt-ut-16;if(h>0){const a=j.from(z.read(h));H=S(a,H);const r=j.from(z.read(4)).readInt32BE(),v=H.readInt32BE();if(r!==v)throw new Error(`Message Checksum Mismatch, Message CRC of ${r} does not equal expected CRC of ${v}`);t=(0,N.readableStream)(a)}const l=vt["message-type"];switch(l){case"error":{const a=vt["error-code"]+':"'+vt["error-message"]+'"';throw new Error(a)}case"event":{const a=vt["content-type"];switch(vt["event-type"]){case"End":return U.setResponse(C),U;case"Records":{const r=t.read(h);U.setRecords(r);break}case"Progress":switch(a){case"text/xml":{const r=t.read(h);U.setProgress(r.toString());break}default:throw new Error(`Unexpected content-type ${a} sent for event-type Progress`)}break;case"Stats":switch(a){case"text/xml":{const r=t.read(h);U.setStats(r.toString());break}default:throw new Error(`Unexpected content-type ${a} sent for event-type Stats`)}break;default:{const r=`Un implemented event detected ${l}.`;O.warn(r)}}}}}},w.parseTagging=function(C){const _=(0,N.parseXml)(C);let F=[];if(_.Tagging&&_.Tagging.TagSet&&_.Tagging.TagSet.Tag){const U=_.Tagging.TagSet.Tag;(0,N.isObject)(U)?F.push(U):F=U}return F},w.uploadPartParser=function(C){return(0,N.parseXml)(C).CopyPartResult};var I=T(b(8513)),q=T(b(2543)),p=function(C,_){if(C&&C.__esModule)return C;if(C===null||typeof C!="object"&&typeof C!="function")return{default:C};var F=M(_);if(F&&F.has(C))return F.get(C);var U={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var H in C)if(H!=="default"&&Object.prototype.hasOwnProperty.call(C,H)){var D=z?Object.getOwnPropertyDescriptor(C,H):null;D&&(D.get||D.set)?Object.defineProperty(U,H,D):U[H]=C[H]}return U.default=C,F&&F.set(C,U),U}(b(6097)),N=b(2541);function M(C){if(typeof WeakMap!="function")return null;var _=new WeakMap,F=new WeakMap;return(M=function(U){return U?F:_})(C)}function T(C){return C&&C.__esModule?C:{default:C}}var S=b(4025);const B=(C,_={})=>{let{Key:F,LastModified:U,ETag:z,Size:H,VersionId:D,IsLatest:Q}=C;return(0,N.isObject)(_)||(_={}),{name:(0,N.sanitizeObjectKey)((0,N.toArray)(F)[0]),lastModified:new Date((0,N.toArray)(U)[0]),etag:(0,N.sanitizeETag)((0,N.toArray)(z)[0]),size:H,versionId:D,isLatest:Q,isDeleteMarker:!!_.IsDeleteMarker&&_.IsDeleteMarker}}},4367:($,w)=>{var b=w;function j(I){return I.length===1?"0"+I:I}function O(I){for(var q="",p=0;p<I.length;p++)q+=j(I[p].toString(16));return q}b.toArray=function(I,q){if(Array.isArray(I))return I.slice();if(!I)return[];var p=[];if(typeof I!="string"){for(var N=0;N<I.length;N++)p[N]=0|I[N];return p}if(q==="hex")for((I=I.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(I="0"+I),N=0;N<I.length;N+=2)p.push(parseInt(I[N]+I[N+1],16));else for(N=0;N<I.length;N++){var M=I.charCodeAt(N),T=M>>8,S=255&M;T?p.push(T,S):p.push(S)}return p},b.zero2=j,b.toHex=O,b.encode=function(I,q){return q==="hex"?O(I):I}},4459:$=>{$.exports=Number.isNaN||function(w){return w!=w}},4579:($,w,b)=>{Object.defineProperty(w,"__esModule",{value:!0}),w.postPresignSignatureV4=function(U,z,H,D){if(!(0,I.isString)(U))throw new TypeError('region should be of type "string"');if(!(0,I.isObject)(z))throw new TypeError('date should be of type "object"');if(!(0,I.isString)(H))throw new TypeError('secretKey should be of type "string"');if(!(0,I.isString)(D))throw new TypeError('policyBase64 should be of type "string"');const Q=C(z,U,H);return j.default.createHmac("sha256",Q).update(D).digest("hex").toLowerCase()},w.presignSignatureV4=function(U,z,H,D,Q,X,et){if(!(0,I.isObject)(U))throw new TypeError('request should be of type "object"');if(!(0,I.isString)(z))throw new TypeError('accessKey should be of type "string"');if(!(0,I.isString)(H))throw new TypeError('secretKey should be of type "string"');if(!(0,I.isString)(Q))throw new TypeError('region should be of type "string"');if(!z)throw new q.AccessKeyRequiredError("accessKey is required for presigning");if(!H)throw new q.SecretKeyRequiredError("secretKey is required for presigning");if(!(0,I.isNumber)(et))throw new TypeError('expires should be of type "number"');if(et<1)throw new q.ExpiresParamError("expires param cannot be less than 1 seconds");if(et>604800)throw new q.ExpiresParamError("expires param cannot be greater than 7 days");const nt=(0,I.makeDateLong)(X),ut=B(U.headers),ct=S(z,Q,X),vt=[];vt.push(`X-Amz-Algorithm=${M}`),vt.push(`X-Amz-Credential=${(0,I.uriEscape)(ct)}`),vt.push(`X-Amz-Date=${nt}`),vt.push(`X-Amz-Expires=${et}`),vt.push(`X-Amz-SignedHeaders=${(0,I.uriEscape)(ut.join(";").toLowerCase())}`),D&&vt.push(`X-Amz-Security-Token=${(0,I.uriEscape)(D)}`);const t=U.path.split("?")[0];let h=U.path.split("?")[1];h=h?h+"&"+vt.join("&"):vt.join("&");const l=t+"?"+h,a=_(T(U.method,l,U.headers,ut,"UNSIGNED-PAYLOAD"),X,Q),r=C(X,Q,H),v=j.default.createHmac("sha256",r).update(a).digest("hex").toLowerCase();return U.protocol+"//"+U.headers.host+l+`&X-Amz-Signature=${v}`},w.signV4=F,w.signV4ByServiceName=function(U,z,H,D,Q,X="s3"){return F(U,z,H,D,Q,X)};var j=N(b(1565)),O=N(b(2543)),I=b(2541),q=function(U,z){if(U&&U.__esModule)return U;if(U===null||typeof U!="object"&&typeof U!="function")return{default:U};var H=p(z);if(H&&H.has(U))return H.get(U);var D={},Q=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var X in U)if(X!=="default"&&Object.prototype.hasOwnProperty.call(U,X)){var et=Q?Object.getOwnPropertyDescriptor(U,X):null;et&&(et.get||et.set)?Object.defineProperty(D,X,et):D[X]=U[X]}return D.default=U,H&&H.set(U,D),D}(b(6097));function p(U){if(typeof WeakMap!="function")return null;var z=new WeakMap,H=new WeakMap;return(p=function(D){return D?H:z})(U)}function N(U){return U&&U.__esModule?U:{default:U}}const M="AWS4-HMAC-SHA256";function T(U,z,H,D,Q){if(!(0,I.isString)(U))throw new TypeError('method should be of type "string"');if(!(0,I.isString)(z))throw new TypeError('path should be of type "string"');if(!(0,I.isObject)(H))throw new TypeError('headers should be of type "object"');if(!(0,I.isArray)(D))throw new TypeError('signedHeaders should be of type "array"');if(!(0,I.isString)(Q))throw new TypeError('hashedPayload should be of type "string"');const X=D.reduce((ct,vt)=>{const t=`${H[vt]}`.replace(/ +/g," ");return ct.push(`${vt.toLowerCase()}:${t}`),ct},[]),et=z.split("?")[0];let nt=z.split("?")[1];nt||(nt=""),nt&&(nt=nt.split("&").sort().map(ct=>ct.indexOf("=")===-1?ct+"=":ct).join("&"));const ut=[];return ut.push(U.toUpperCase()),ut.push(et),ut.push(nt),ut.push(X.join(`
125
+ `)+`
126
+ `),ut.push(D.join(";").toLowerCase()),ut.push(Q),ut.join(`
127
+ `)}function S(U,z,H,D="s3"){if(!(0,I.isString)(U))throw new TypeError('accessKey should be of type "string"');if(!(0,I.isString)(z))throw new TypeError('region should be of type "string"');if(!(0,I.isObject)(H))throw new TypeError('requestDate should be of type "object"');return`${U}/${(0,I.getScope)(z,H,D)}`}function B(U){if(!(0,I.isObject)(U))throw new TypeError('request should be of type "object"');const z=["authorization","content-length","content-type","user-agent"];return O.default.map(U,(H,D)=>D).filter(H=>z.indexOf(H)===-1).sort()}function C(U,z,H,D="s3"){if(!(0,I.isObject)(U))throw new TypeError('date should be of type "object"');if(!(0,I.isString)(z))throw new TypeError('region should be of type "string"');if(!(0,I.isString)(H))throw new TypeError('secretKey should be of type "string"');const Q=(0,I.makeDateShort)(U);let X=j.default.createHmac("sha256","AWS4"+H).update(Q).digest(),et=j.default.createHmac("sha256",X).update(z).digest(),nt=j.default.createHmac("sha256",et).update(D).digest();return j.default.createHmac("sha256",nt).update("aws4_request").digest()}function _(U,z,H,D="s3"){if(!(0,I.isString)(U))throw new TypeError('canonicalRequest should be of type "string"');if(!(0,I.isObject)(z))throw new TypeError('requestDate should be of type "object"');if(!(0,I.isString)(H))throw new TypeError('region should be of type "string"');const Q=j.default.createHash("sha256").update(U).digest("hex"),X=(0,I.getScope)(H,z,D),et=[];return et.push(M),et.push((0,I.makeDateLong)(z)),et.push(X),et.push(Q),et.join(`
128
+ `)}function F(U,z,H,D,Q,X="s3"){if(!(0,I.isObject)(U))throw new TypeError('request should be of type "object"');if(!(0,I.isString)(z))throw new TypeError('accessKey should be of type "string"');if(!(0,I.isString)(H))throw new TypeError('secretKey should be of type "string"');if(!(0,I.isString)(D))throw new TypeError('region should be of type "string"');if(!z)throw new q.AccessKeyRequiredError("accessKey is required for signing");if(!H)throw new q.SecretKeyRequiredError("secretKey is required for signing");const et=U.headers["x-amz-content-sha256"],nt=B(U.headers),ut=X||"s3",ct=_(T(U.method,U.path,U.headers,nt,et),Q,D,ut),vt=C(Q,D,H,ut),t=S(z,D,Q,ut),h=j.default.createHmac("sha256",vt).update(ct).digest("hex").toLowerCase();return`${M} Credential=${t}, SignedHeaders=${nt.join(";").toLowerCase()}, Signature=${h}`}},4589:$=>{$.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"}')},4598:($,w,b)=>{var j=b(2153);w.tagClass={0:"universal",1:"application",2:"context",3:"private"},w.tagClassByName=j._reverse(w.tagClass),w.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"},w.tagByName=j._reverse(w.tag)},4610:($,w,b)=>{$.exports=T;var j=b(6048).F,O=j.ERR_METHOD_NOT_IMPLEMENTED,I=j.ERR_MULTIPLE_CALLBACK,q=j.ERR_TRANSFORM_ALREADY_TRANSFORMING,p=j.ERR_TRANSFORM_WITH_LENGTH_0,N=b(5382);function M(C,_){var F=this._transformState;F.transforming=!1;var U=F.writecb;if(U===null)return this.emit("error",new I);F.writechunk=null,F.writecb=null,_!=null&&this.push(_),U(C);var z=this._readableState;z.reading=!1,(z.needReadable||z.length<z.highWaterMark)&&this._read(z.highWaterMark)}function T(C){if(!(this instanceof T))return new T(C);N.call(this,C),this._transformState={afterTransform:M.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,C&&(typeof C.transform=="function"&&(this._transform=C.transform),typeof C.flush=="function"&&(this._flush=C.flush)),this.on("prefinish",S)}function S(){var C=this;typeof this._flush!="function"||this._readableState.destroyed?B(this,null,null):this._flush(function(_,F){B(C,_,F)})}function B(C,_,F){if(_)return C.emit("error",_);if(F!=null&&C.push(F),C._writableState.length)throw new p;if(C._transformState.transforming)throw new q;return C.push(null)}b(6698)(T,N),T.prototype.push=function(C,_){return this._transformState.needTransform=!1,N.prototype.push.call(this,C,_)},T.prototype._transform=function(C,_,F){F(new O("_transform()"))},T.prototype._write=function(C,_,F){var U=this._transformState;if(U.writecb=F,U.writechunk=C,U.writeencoding=_,!U.transforming){var z=this._readableState;(U.needTransform||z.needReadable||z.length<z.highWaterMark)&&this._read(z.highWaterMark)}},T.prototype._read=function(C){var _=this._transformState;_.writechunk===null||_.transforming?_.needTransform=!0:(_.transforming=!0,this._transform(_.writechunk,_.writeencoding,_.afterTransform))},T.prototype._destroy=function(C,_){N.prototype._destroy.call(this,C,function(F){_(F)})}},4634:$=>{var w={}.toString;$.exports=Array.isArray||function(b){return w.call(b)=="[object Array]"}},4643:($,w,b)=>{var j=b(6763);function O(I){try{if(!b.g.localStorage)return!1}catch{return!1}var q=b.g.localStorage[I];return q!=null&&String(q).toLowerCase()==="true"}$.exports=function(I,q){if(O("noDeprecation"))return I;var p=!1;return function(){if(!p){if(O("throwDeprecation"))throw new Error(q);O("traceDeprecation")?j.trace(q):j.warn(q),p=!0}return I.apply(this,arguments)}}},4669:($,w,b)=>{var j=w;j.der=b(82),j.pem=b(735)},4688:()=>{},4729:($,w,b)=>{var j=b(2861).Buffer,O=b(8310).Transform;function I(N){O.call(this),this._block=j.allocUnsafe(N),this._blockSize=N,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}b(6698)(I,O),I.prototype._transform=function(N,M,T){var S=null;try{this.update(N,M)}catch(B){S=B}T(S)},I.prototype._flush=function(N){var M=null;try{this.push(this.digest())}catch(T){M=T}N(M)};var q=typeof Uint8Array<"u",p=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(j.prototype instanceof Uint8Array||j.TYPED_ARRAY_SUPPORT);I.prototype.update=function(N,M){if(this._finalized)throw new Error("Digest already called");N=function(F,U){if(F instanceof j)return F;if(typeof F=="string")return j.from(F,U);if(p&&ArrayBuffer.isView(F)){if(F.byteLength===0)return j.alloc(0);var z=j.from(F.buffer,F.byteOffset,F.byteLength);if(z.byteLength===F.byteLength)return z}if(q&&F instanceof Uint8Array||j.isBuffer(F)&&F.constructor&&typeof F.constructor.isBuffer=="function"&&F.constructor.isBuffer(F))return j.from(F);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}(N,M);for(var T=this._block,S=0;this._blockOffset+N.length-S>=this._blockSize;){for(var B=this._blockOffset;B<this._blockSize;)T[B++]=N[S++];this._update(),this._blockOffset=0}for(;S<N.length;)T[this._blockOffset++]=N[S++];for(var C=0,_=8*N.length;_>0;++C)this._length[C]+=_,(_=this._length[C]/4294967296|0)>0&&(this._length[C]-=4294967296*_);return this},I.prototype._update=function(){throw new Error("_update is not implemented")},I.prototype.digest=function(N){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var M=this._digest();N!==void 0&&(M=M.toString(N)),this._block.fill(0),this._blockOffset=0;for(var T=0;T<4;++T)this._length[T]=0;return M},I.prototype._digest=function(){throw new Error("_digest is not implemented")},$.exports=I},4765:$=>{var w=String.prototype.replace,b=/%20/g,j="RFC3986";$.exports={default:j,formatters:{RFC1738:function(O){return w.call(O,b,"+")},RFC3986:function(O){return String(O)}},RFC1738:"RFC1738",RFC3986:j}},4797:function($){(function(){$.exports=function(){function w(b){this.nodes=b}return Object.defineProperty(w.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),w.prototype.clone=function(){return this.nodes=null},w.prototype.getNamedItem=function(b){return this.nodes[b]},w.prototype.setNamedItem=function(b){var j;return j=this.nodes[b.nodeName],this.nodes[b.nodeName]=b,j||null},w.prototype.removeNamedItem=function(b){var j;return j=this.nodes[b],delete this.nodes[b],j||null},w.prototype.item=function(b){return this.nodes[Object.keys(this.nodes)[b]]||null},w.prototype.getNamedItemNS=function(b,j){throw new Error("This DOM method is not implemented.")},w.prototype.setNamedItemNS=function(b){throw new Error("This DOM method is not implemented.")},w.prototype.removeNamedItemNS=function(b,j){throw new Error("This DOM method is not implemented.")},w}()}).call(this)},4803:($,w,b)=>{var j=b(8859),O=b(9675),I=function(q,p,N){for(var M,T=q;(M=T.next)!=null;T=M)if(M.key===p)return T.next=M.next,N||(M.next=q.next,q.next=M),M};$.exports=function(){var q,p={assert:function(N){if(!p.has(N))throw new O("Side channel does not contain "+j(N))},delete:function(N){var M=q&&q.next,T=function(S,B){if(S)return I(S,B,!0)}(q,N);return T&&M&&M===T&&(q=void 0),!!T},get:function(N){return function(M,T){if(M){var S=I(M,T);return S&&S.value}}(q,N)},has:function(N){return function(M,T){return!!M&&!!I(M,T)}(q,N)},set:function(N,M){q||(q={next:void 0}),function(T,S,B){var C=I(T,S);C?C.value=B:T.next={key:S,next:T.next,value:B}}(q,N,M)}};return p}},4847:($,w,b)=>{var j=b(2861).Buffer,O=b(9404),I=b(6729).ec,q=b(8170),p=b(4589);function N(M,T){if(M.cmpn(0)<=0)throw new Error("invalid sig");if(M.cmp(T)>=0)throw new Error("invalid sig")}$.exports=function(M,T,S,B,C){var _=q(S);if(_.type==="ec"){if(B!=="ecdsa"&&B!=="ecdsa/rsa")throw new Error("wrong public key type");return function(X,et,nt){var ut=p[nt.data.algorithm.curve.join(".")];if(!ut)throw new Error("unknown curve "+nt.data.algorithm.curve.join("."));var ct=new I(ut),vt=nt.data.subjectPrivateKey.data;return ct.verify(et,X,vt)}(M,T,_)}if(_.type==="dsa"){if(B!=="dsa")throw new Error("wrong public key type");return function(X,et,nt){var ut=nt.data.p,ct=nt.data.q,vt=nt.data.g,t=nt.data.pub_key,h=q.signature.decode(X,"der"),l=h.s,a=h.r;N(l,ct),N(a,ct);var r=O.mont(ut),v=l.invm(ct);return vt.toRed(r).redPow(new O(et).mul(v).mod(ct)).fromRed().mul(t.toRed(r).redPow(a.mul(v).mod(ct)).fromRed()).mod(ut).mod(ct).cmp(a)===0}(M,T,_)}if(B!=="rsa"&&B!=="ecdsa/rsa")throw new Error("wrong public key type");T=j.concat([C,T]);for(var F=_.modulus.byteLength(),U=[1],z=0;T.length+U.length+2<F;)U.push(255),z+=1;U.push(0);for(var H=-1;++H<T.length;)U.push(T[H]);U=j.from(U);var D=O.mont(_.modulus);M=(M=new O(M).toRed(D)).redPow(new O(_.publicExponent)),M=j.from(M.fromRed().toArray());var Q=z<8?1:0;for(F=Math.min(M.length,U.length),M.length!==U.length&&(Q=1),H=-1;++H<F;)Q|=M[H]^U[H];return Q===0}},4883:($,w,b)=>{Object.defineProperty(w,"__esModule",{value:!0}),w.getS3Endpoint=function(I){if(!(0,j.isString)(I))throw new TypeError(`Invalid region: ${I}`);var q=O[I];return q||"s3.amazonaws.com"};var j=b(2541);let O={"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"}},4910:($,w,b)=>{var j=b(8287).Buffer,O=b(6473),I=new(b(2244)),q=new O(24),p=new O(11),N=new O(10),M=new O(3),T=new O(7),S=b(4934),B=b(3209);function C(H,D){return D=D||"utf8",j.isBuffer(H)||(H=new j(H,D)),this._pub=new O(H),this}function _(H,D){return D=D||"utf8",j.isBuffer(H)||(H=new j(H,D)),this._priv=new O(H),this}$.exports=U;var F={};function U(H,D,Q){this.setGenerator(D),this.__prime=new O(H),this._prime=O.mont(this.__prime),this._primeLen=H.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,Q?(this.setPublicKey=C,this.setPrivateKey=_):this._primeCode=8}function z(H,D){var Q=new j(H.toArray());return D?Q.toString(D):Q}Object.defineProperty(U.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=function(H,D){var Q=D.toString("hex"),X=[Q,H.toString(16)].join("_");if(X in F)return F[X];var et,nt=0;if(H.isEven()||!S.simpleSieve||!S.fermatTest(H)||!I.test(H))return nt+=1,nt+=Q==="02"||Q==="05"?8:4,F[X]=nt,nt;switch(I.test(H.shrn(1))||(nt+=2),Q){case"02":H.mod(q).cmp(p)&&(nt+=8);break;case"05":(et=H.mod(N)).cmp(M)&&et.cmp(T)&&(nt+=8);break;default:nt+=4}return F[X]=nt,nt}(this.__prime,this.__gen)),this._primeCode}}),U.prototype.generateKeys=function(){return this._priv||(this._priv=new O(B(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},U.prototype.computeSecret=function(H){var D=(H=(H=new O(H)).toRed(this._prime)).redPow(this._priv).fromRed(),Q=new j(D.toArray()),X=this.getPrime();if(Q.length<X.length){var et=new j(X.length-Q.length);et.fill(0),Q=j.concat([et,Q])}return Q},U.prototype.getPublicKey=function(H){return z(this._pub,H)},U.prototype.getPrivateKey=function(H){return z(this._priv,H)},U.prototype.getPrime=function(H){return z(this.__prime,H)},U.prototype.getGenerator=function(H){return z(this._gen,H)},U.prototype.setGenerator=function(H,D){return D=D||"utf8",j.isBuffer(H)||(H=new j(H,D)),this.__gen=H,this._gen=new O(H),this}},4923:function($){(function(){$.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},4934:($,w,b)=>{var j=b(3209);$.exports=H,H.simpleSieve=U,H.fermatTest=z;var O=b(6473),I=new O(24),q=new(b(2244)),p=new O(1),N=new O(2),M=new O(5),T=(new O(16),new O(8),new O(10)),S=new O(3),B=(new O(7),new O(11)),C=new O(4),_=(new O(12),null);function F(){if(_!==null)return _;var D=[];D[0]=2;for(var Q=1,X=3;X<1048576;X+=2){for(var et=Math.ceil(Math.sqrt(X)),nt=0;nt<Q&&D[nt]<=et&&X%D[nt]!=0;nt++);Q!==nt&&D[nt]<=et||(D[Q++]=X)}return _=D,D}function U(D){for(var Q=F(),X=0;X<Q.length;X++)if(D.modn(Q[X])===0)return D.cmpn(Q[X])===0;return!0}function z(D){var Q=O.mont(D);return N.toRed(Q).redPow(D.subn(1)).fromRed().cmpn(1)===0}function H(D,Q){if(D<16)return new O(Q===2||Q===5?[140,123]:[140,39]);var X,et;for(Q=new O(Q);;){for(X=new O(j(Math.ceil(D/8)));X.bitLength()>D;)X.ishrn(1);if(X.isEven()&&X.iadd(p),X.testn(1)||X.iadd(N),Q.cmp(N)){if(!Q.cmp(M))for(;X.mod(T).cmp(S);)X.iadd(C)}else for(;X.mod(I).cmp(B);)X.iadd(C);if(U(et=X.shrn(1))&&U(X)&&z(et)&&z(X)&&q.test(et)&&q.test(X))return X}}},5037:($,w,b)=>{var j;function O(q){this.rand=q}if($.exports=function(q){return j||(j=new O(null)),j.generate(q)},$.exports.Rand=O,O.prototype.generate=function(q){return this._rand(q)},O.prototype._rand=function(q){if(this.rand.getBytes)return this.rand.getBytes(q);for(var p=new Uint8Array(q),N=0;N<p.length;N++)p[N]=this.rand.getByte();return p},typeof self=="object")self.crypto&&self.crypto.getRandomValues?O.prototype._rand=function(q){var p=new Uint8Array(q);return self.crypto.getRandomValues(p),p}:self.msCrypto&&self.msCrypto.getRandomValues?O.prototype._rand=function(q){var p=new Uint8Array(q);return self.msCrypto.getRandomValues(p),p}:typeof window=="object"&&(O.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var I=b(3776);if(typeof I.randomBytes!="function")throw new Error("Not supported");O.prototype._rand=function(q){return I.randomBytes(q)}}catch{}},5122:$=>{$.exports=function(w){for(var b,j=w.length;j--;){if((b=w.readUInt8(j))!==255){b++,w.writeUInt8(b,j);break}w.writeUInt8(0,j)}}},5157:$=>{$.exports=function(){throw new Error("Readable.from is not available in the browser")}},5242:($,w,b)=>{$.exports=I;var j=b(1816),O=Object.create(b(5622));function I(q){if(!(this instanceof I))return new I(q);j.call(this,q)}O.inherits=b(6698),O.inherits(I,j),I.prototype._transform=function(q,p,N){N(null,q)}},5264:($,w,b)=>{var j=b(2861).Buffer;function O(q,p,N){for(var M,T,S=-1,B=0;++S<8;)M=p&1<<7-S?128:0,B+=(128&(T=q._cipher.encryptBlock(q._prev)[0]^M))>>S%8,q._prev=I(q._prev,N?M:T);return B}function I(q,p){var N=q.length,M=-1,T=j.allocUnsafe(q.length);for(q=j.concat([q,j.from([p])]);++M<N;)T[M]=q[M]<<1|q[M+1]>>7;return T}w.encrypt=function(q,p,N){for(var M=p.length,T=j.allocUnsafe(M),S=-1;++S<M;)T[S]=O(q,p[S],N);return T}},5279:($,w,b)=>{var j=b(3349),O=b(6698),I=b(2808),q=b(2211);function p(M,T){j.equal(T.length,24,"Invalid key length");var S=T.slice(0,8),B=T.slice(8,16),C=T.slice(16,24);this.ciphers=M==="encrypt"?[q.create({type:"encrypt",key:S}),q.create({type:"decrypt",key:B}),q.create({type:"encrypt",key:C})]:[q.create({type:"decrypt",key:C}),q.create({type:"encrypt",key:B}),q.create({type:"decrypt",key:S})]}function N(M){I.call(this,M);var T=new p(this.type,this.options.key);this._edeState=T}O(N,I),$.exports=N,N.create=function(M){return new N(M)},N.prototype._update=function(M,T,S,B){var C=this._edeState;C.ciphers[0]._update(M,T,S,B),C.ciphers[1]._update(S,B,S,B),C.ciphers[2]._update(S,B,S,B)},N.prototype._pad=q.prototype._pad,N.prototype._unpad=q.prototype._unpad},5291:($,w,b)=>{var j=b(6048).F.ERR_INVALID_OPT_VALUE;$.exports={getHighWaterMark:function(O,I,q,p){var N=function(M,T,S){return M.highWaterMark!=null?M.highWaterMark:T?M[S]:null}(I,p,q);if(N!=null){if(!isFinite(N)||Math.floor(N)!==N||N<0)throw new j(p?q:"highWaterMark",N);return Math.floor(N)}return O.objectMode?16:16384}}},5334:($,w)=>{const 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",j="["+b+"]["+b+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",O=new RegExp("^"+j+"$");w.isExist=function(I){return I!==void 0},w.isEmptyObject=function(I){return Object.keys(I).length===0},w.merge=function(I,q,p){if(q){const N=Object.keys(q),M=N.length;for(let T=0;T<M;T++)I[N[T]]=p==="strict"?[q[N[T]]]:q[N[T]]}},w.getValue=function(I){return w.isExist(I)?I:""},w.buildOptions=function(I,q,p){let N={};if(!I)return q;for(let M=0;M<p.length;M++)I[p[M]]!==void 0?N[p[M]]=I[p[M]]:N[p[M]]=q[p[M]];return N},w.isTagNameInArrayMode=function(I,q,p){return q!==!1&&(q instanceof RegExp?q.test(I):typeof q=="function"?!!q(I,p):q==="strict")},w.isName=function(I){return O.exec(I)!=null},w.getAllMatches=function(I,q){const p=[];let N=q.exec(I);for(;N;){const M=[];M.startIndex=q.lastIndex-N[0].length;const T=N.length;for(let S=0;S<T;S++)M.push(N[S]);p.push(M),N=q.exec(I)}return p},w.nameRegexp=j},5340:()=>{},5345:$=>{$.exports=URIError},5359:($,w,b)=>{var j=b(2861).Buffer,O=b(3507),I=b(7332),q=b(6729).ec,p=b(9404),N=b(8170),M=b(4589);function T(_,F,U,z){if((_=j.from(_.toArray())).length<F.byteLength()){var H=j.alloc(F.byteLength()-_.length);_=j.concat([H,_])}var D=U.length,Q=function(nt,ut){nt=(nt=S(nt,ut)).mod(ut);var ct=j.from(nt.toArray());if(ct.length<ut.byteLength()){var vt=j.alloc(ut.byteLength()-ct.length);ct=j.concat([vt,ct])}return ct}(U,F),X=j.alloc(D);X.fill(1);var et=j.alloc(D);return et=O(z,et).update(X).update(j.from([0])).update(_).update(Q).digest(),X=O(z,et).update(X).digest(),{k:et=O(z,et).update(X).update(j.from([1])).update(_).update(Q).digest(),v:X=O(z,et).update(X).digest()}}function S(_,F){var U=new p(_),z=(_.length<<3)-F.bitLength();return z>0&&U.ishrn(z),U}function B(_,F,U){var z,H;do{for(z=j.alloc(0);8*z.length<_.bitLength();)F.v=O(U,F.k).update(F.v).digest(),z=j.concat([z,F.v]);H=S(z,_),F.k=O(U,F.k).update(F.v).update(j.from([0])).digest(),F.v=O(U,F.k).update(F.v).digest()}while(H.cmp(_)!==-1);return H}function C(_,F,U,z){return _.toRed(p.mont(U)).redPow(F).fromRed().mod(z)}$.exports=function(_,F,U,z,H){var D=N(F);if(D.curve){if(z!=="ecdsa"&&z!=="ecdsa/rsa")throw new Error("wrong private key type");return function(nt,ut){var ct=M[ut.curve.join(".")];if(!ct)throw new Error("unknown curve "+ut.curve.join("."));var vt=new q(ct).keyFromPrivate(ut.privateKey).sign(nt);return j.from(vt.toDER())}(_,D)}if(D.type==="dsa"){if(z!=="dsa")throw new Error("wrong private key type");return function(nt,ut,ct){for(var vt,t=ut.params.priv_key,h=ut.params.p,l=ut.params.q,a=ut.params.g,r=new p(0),v=S(nt,l).mod(l),A=!1,W=T(t,l,nt,ct);A===!1;)r=C(a,vt=B(l,W,ct),h,l),(A=vt.invm(l).imul(v.add(t.mul(r))).mod(l)).cmpn(0)===0&&(A=!1,r=new p(0));return function(J,K){J=J.toArray(),K=K.toArray(),128&J[0]&&(J=[0].concat(J)),128&K[0]&&(K=[0].concat(K));var G=[48,J.length+K.length+4,2,J.length];return G=G.concat(J,[2,K.length],K),j.from(G)}(r,A)}(_,D,U)}if(z!=="rsa"&&z!=="ecdsa/rsa")throw new Error("wrong private key type");if(F.padding!==void 0&&F.padding!==1)throw new Error("illegal or unsupported padding mode");_=j.concat([H,_]);for(var Q=D.modulus.byteLength(),X=[0,1];_.length+X.length+1<Q;)X.push(255);X.push(0);for(var et=-1;++et<_.length;)X.push(_[et]);return I(X,D)},$.exports.getKey=T,$.exports.makeKey=B},5373:($,w,b)=>{var j=b(8636),O=b(2642),I=b(4765);$.exports={formats:I,parse:O,stringify:j}},5380:($,w,b)=>{var j=b(8287).Buffer,O=b(4934),I=b(3241),q=b(4910),p={binary:!0,hex:!0,base64:!0};w.DiffieHellmanGroup=w.createDiffieHellmanGroup=w.getDiffieHellman=function(N){var M=new j(I[N].prime,"hex"),T=new j(I[N].gen,"hex");return new q(M,T)},w.createDiffieHellman=w.DiffieHellman=function N(M,T,S,B){return j.isBuffer(T)||p[T]===void 0?N(M,"binary",T,S):(T=T||"binary",B=B||"binary",S=S||new j([2]),j.isBuffer(S)||(S=new j(S,B)),typeof M=="number"?new q(O(M,S),S,!0):(j.isBuffer(M)||(M=new j(M,T)),new q(M,S,!0)))}},5382:($,w,b)=>{var j=b(5606),O=Object.keys||function(C){var _=[];for(var F in C)_.push(F);return _};$.exports=T;var I=b(5412),q=b(6708);b(6698)(T,I);for(var p=O(q.prototype),N=0;N<p.length;N++){var M=p[N];T.prototype[M]||(T.prototype[M]=q.prototype[M])}function T(C){if(!(this instanceof T))return new T(C);I.call(this,C),q.call(this,C),this.allowHalfOpen=!0,C&&(C.readable===!1&&(this.readable=!1),C.writable===!1&&(this.writable=!1),C.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",S)))}function S(){this._writableState.ended||j.nextTick(B,this)}function B(C){C.end()}Object.defineProperty(T.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(T.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(T.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(C){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=C,this._writableState.destroyed=C)}})},5412:($,w,b)=>{var j,O=b(5606);$.exports=ct,ct.ReadableState=ut,b(7007).EventEmitter;var I,q=function(tt,it){return tt.listeners(it).length},p=b(345),N=b(8287).Buffer,M=(b.g!==void 0?b.g:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},T=b(9838);I=T&&T.debuglog?T.debuglog("stream"):function(){};var S,B,C,_=b(2726),F=b(5896),U=b(5291).getHighWaterMark,z=b(6048).F,H=z.ERR_INVALID_ARG_TYPE,D=z.ERR_STREAM_PUSH_AFTER_EOF,Q=z.ERR_METHOD_NOT_IMPLEMENTED,X=z.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;b(6698)(ct,p);var et=F.errorOrDestroy,nt=["error","close","destroy","pause","resume"];function ut(tt,it,Z){j=j||b(5382),tt=tt||{},typeof Z!="boolean"&&(Z=it instanceof j),this.objectMode=!!tt.objectMode,Z&&(this.objectMode=this.objectMode||!!tt.readableObjectMode),this.highWaterMark=U(this,tt,"readableHighWaterMark",Z),this.buffer=new _,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=tt.emitClose!==!1,this.autoDestroy=!!tt.autoDestroy,this.destroyed=!1,this.defaultEncoding=tt.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,tt.encoding&&(S||(S=b(3141).I),this.decoder=new S(tt.encoding),this.encoding=tt.encoding)}function ct(tt){if(j=j||b(5382),!(this instanceof ct))return new ct(tt);var it=this instanceof j;this._readableState=new ut(tt,this,it),this.readable=!0,tt&&(typeof tt.read=="function"&&(this._read=tt.read),typeof tt.destroy=="function"&&(this._destroy=tt.destroy)),p.call(this)}function vt(tt,it,Z,rt,wt){I("readableAddChunk",it);var gt,St=tt._readableState;if(it===null)St.reading=!1,function(Lt,At){if(I("onEofChunk"),!At.ended){if(At.decoder){var jt=At.decoder.end();jt&&jt.length&&(At.buffer.push(jt),At.length+=At.objectMode?1:jt.length)}At.ended=!0,At.sync?a(Lt):(At.needReadable=!1,At.emittedReadable||(At.emittedReadable=!0,r(Lt)))}}(tt,St);else if(wt||(gt=function(Lt,At){var jt,Qt;return Qt=At,N.isBuffer(Qt)||Qt instanceof M||typeof At=="string"||At===void 0||Lt.objectMode||(jt=new H("chunk",["string","Buffer","Uint8Array"],At)),jt}(St,it)),gt)et(tt,gt);else if(St.objectMode||it&&it.length>0)if(typeof it=="string"||St.objectMode||Object.getPrototypeOf(it)===N.prototype||(it=function(Lt){return N.from(Lt)}(it)),rt)St.endEmitted?et(tt,new X):t(tt,St,it,!0);else if(St.ended)et(tt,new D);else{if(St.destroyed)return!1;St.reading=!1,St.decoder&&!Z?(it=St.decoder.write(it),St.objectMode||it.length!==0?t(tt,St,it,!1):v(tt,St)):t(tt,St,it,!1)}else rt||(St.reading=!1,v(tt,St));return!St.ended&&(St.length<St.highWaterMark||St.length===0)}function t(tt,it,Z,rt){it.flowing&&it.length===0&&!it.sync?(it.awaitDrain=0,tt.emit("data",Z)):(it.length+=it.objectMode?1:Z.length,rt?it.buffer.unshift(Z):it.buffer.push(Z),it.needReadable&&a(tt)),v(tt,it)}Object.defineProperty(ct.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(tt){this._readableState&&(this._readableState.destroyed=tt)}}),ct.prototype.destroy=F.destroy,ct.prototype._undestroy=F.undestroy,ct.prototype._destroy=function(tt,it){it(tt)},ct.prototype.push=function(tt,it){var Z,rt=this._readableState;return rt.objectMode?Z=!0:typeof tt=="string"&&((it=it||rt.defaultEncoding)!==rt.encoding&&(tt=N.from(tt,it),it=""),Z=!0),vt(this,tt,it,!1,Z)},ct.prototype.unshift=function(tt){return vt(this,tt,null,!0,!1)},ct.prototype.isPaused=function(){return this._readableState.flowing===!1},ct.prototype.setEncoding=function(tt){S||(S=b(3141).I);var it=new S(tt);this._readableState.decoder=it,this._readableState.encoding=this._readableState.decoder.encoding;for(var Z=this._readableState.buffer.head,rt="";Z!==null;)rt+=it.write(Z.data),Z=Z.next;return this._readableState.buffer.clear(),rt!==""&&this._readableState.buffer.push(rt),this._readableState.length=rt.length,this};var h=1073741824;function l(tt,it){return tt<=0||it.length===0&&it.ended?0:it.objectMode?1:tt!=tt?it.flowing&&it.length?it.buffer.head.data.length:it.length:(tt>it.highWaterMark&&(it.highWaterMark=function(Z){return Z>=h?Z=h:(Z--,Z|=Z>>>1,Z|=Z>>>2,Z|=Z>>>4,Z|=Z>>>8,Z|=Z>>>16,Z++),Z}(tt)),tt<=it.length?tt:it.ended?it.length:(it.needReadable=!0,0))}function a(tt){var it=tt._readableState;I("emitReadable",it.needReadable,it.emittedReadable),it.needReadable=!1,it.emittedReadable||(I("emitReadable",it.flowing),it.emittedReadable=!0,O.nextTick(r,tt))}function r(tt){var it=tt._readableState;I("emitReadable_",it.destroyed,it.length,it.ended),it.destroyed||!it.length&&!it.ended||(tt.emit("readable"),it.emittedReadable=!1),it.needReadable=!it.flowing&&!it.ended&&it.length<=it.highWaterMark,G(tt)}function v(tt,it){it.readingMore||(it.readingMore=!0,O.nextTick(A,tt,it))}function A(tt,it){for(;!it.reading&&!it.ended&&(it.length<it.highWaterMark||it.flowing&&it.length===0);){var Z=it.length;if(I("maybeReadMore read 0"),tt.read(0),Z===it.length)break}it.readingMore=!1}function W(tt){var it=tt._readableState;it.readableListening=tt.listenerCount("readable")>0,it.resumeScheduled&&!it.paused?it.flowing=!0:tt.listenerCount("data")>0&&tt.resume()}function J(tt){I("readable nexttick read 0"),tt.read(0)}function K(tt,it){I("resume",it.reading),it.reading||tt.read(0),it.resumeScheduled=!1,tt.emit("resume"),G(tt),it.flowing&&!it.reading&&tt.read(0)}function G(tt){var it=tt._readableState;for(I("flow",it.flowing);it.flowing&&tt.read()!==null;);}function Y(tt,it){return it.length===0?null:(it.objectMode?Z=it.buffer.shift():!tt||tt>=it.length?(Z=it.decoder?it.buffer.join(""):it.buffer.length===1?it.buffer.first():it.buffer.concat(it.length),it.buffer.clear()):Z=it.buffer.consume(tt,it.decoder),Z);var Z}function at(tt){var it=tt._readableState;I("endReadable",it.endEmitted),it.endEmitted||(it.ended=!0,O.nextTick(ot,it,tt))}function ot(tt,it){if(I("endReadableNT",tt.endEmitted,tt.length),!tt.endEmitted&&tt.length===0&&(tt.endEmitted=!0,it.readable=!1,it.emit("end"),tt.autoDestroy)){var Z=it._writableState;(!Z||Z.autoDestroy&&Z.finished)&&it.destroy()}}function ht(tt,it){for(var Z=0,rt=tt.length;Z<rt;Z++)if(tt[Z]===it)return Z;return-1}ct.prototype.read=function(tt){I("read",tt),tt=parseInt(tt,10);var it=this._readableState,Z=tt;if(tt!==0&&(it.emittedReadable=!1),tt===0&&it.needReadable&&((it.highWaterMark!==0?it.length>=it.highWaterMark:it.length>0)||it.ended))return I("read: emitReadable",it.length,it.ended),it.length===0&&it.ended?at(this):a(this),null;if((tt=l(tt,it))===0&&it.ended)return it.length===0&&at(this),null;var rt,wt=it.needReadable;return I("need readable",wt),(it.length===0||it.length-tt<it.highWaterMark)&&I("length less than watermark",wt=!0),it.ended||it.reading?I("reading or ended",wt=!1):wt&&(I("do read"),it.reading=!0,it.sync=!0,it.length===0&&(it.needReadable=!0),this._read(it.highWaterMark),it.sync=!1,it.reading||(tt=l(Z,it))),(rt=tt>0?Y(tt,it):null)===null?(it.needReadable=it.length<=it.highWaterMark,tt=0):(it.length-=tt,it.awaitDrain=0),it.length===0&&(it.ended||(it.needReadable=!0),Z!==tt&&it.ended&&at(this)),rt!==null&&this.emit("data",rt),rt},ct.prototype._read=function(tt){et(this,new Q("_read()"))},ct.prototype.pipe=function(tt,it){var Z=this,rt=this._readableState;switch(rt.pipesCount){case 0:rt.pipes=tt;break;case 1:rt.pipes=[rt.pipes,tt];break;default:rt.pipes.push(tt)}rt.pipesCount+=1,I("pipe count=%d opts=%j",rt.pipesCount,it);var wt=it&&it.end===!1||tt===O.stdout||tt===O.stderr?zt:gt;function gt(){I("onend"),tt.end()}rt.endEmitted?O.nextTick(wt):Z.once("end",wt),tt.on("unpipe",function ft(pt,mt){I("onunpipe"),pt===Z&&mt&&mt.hasUnpiped===!1&&(mt.hasUnpiped=!0,I("cleanup"),tt.removeListener("close",Qt),tt.removeListener("finish",Dt),tt.removeListener("drain",St),tt.removeListener("error",jt),tt.removeListener("unpipe",ft),Z.removeListener("end",gt),Z.removeListener("end",zt),Z.removeListener("data",At),Lt=!0,!rt.awaitDrain||tt._writableState&&!tt._writableState.needDrain||St())});var St=function(ft){return function(){var pt=ft._readableState;I("pipeOnDrain",pt.awaitDrain),pt.awaitDrain&&pt.awaitDrain--,pt.awaitDrain===0&&q(ft,"data")&&(pt.flowing=!0,G(ft))}}(Z);tt.on("drain",St);var Lt=!1;function At(ft){I("ondata");var pt=tt.write(ft);I("dest.write",pt),pt===!1&&((rt.pipesCount===1&&rt.pipes===tt||rt.pipesCount>1&&ht(rt.pipes,tt)!==-1)&&!Lt&&(I("false write response, pause",rt.awaitDrain),rt.awaitDrain++),Z.pause())}function jt(ft){I("onerror",ft),zt(),tt.removeListener("error",jt),q(tt,"error")===0&&et(tt,ft)}function Qt(){tt.removeListener("finish",Dt),zt()}function Dt(){I("onfinish"),tt.removeListener("close",Qt),zt()}function zt(){I("unpipe"),Z.unpipe(tt)}return Z.on("data",At),function(ft,pt,mt){if(typeof ft.prependListener=="function")return ft.prependListener(pt,mt);ft._events&&ft._events[pt]?Array.isArray(ft._events[pt])?ft._events[pt].unshift(mt):ft._events[pt]=[mt,ft._events[pt]]:ft.on(pt,mt)}(tt,"error",jt),tt.once("close",Qt),tt.once("finish",Dt),tt.emit("pipe",Z),rt.flowing||(I("pipe resume"),Z.resume()),tt},ct.prototype.unpipe=function(tt){var it=this._readableState,Z={hasUnpiped:!1};if(it.pipesCount===0)return this;if(it.pipesCount===1)return tt&&tt!==it.pipes||(tt||(tt=it.pipes),it.pipes=null,it.pipesCount=0,it.flowing=!1,tt&&tt.emit("unpipe",this,Z)),this;if(!tt){var rt=it.pipes,wt=it.pipesCount;it.pipes=null,it.pipesCount=0,it.flowing=!1;for(var gt=0;gt<wt;gt++)rt[gt].emit("unpipe",this,{hasUnpiped:!1});return this}var St=ht(it.pipes,tt);return St===-1||(it.pipes.splice(St,1),it.pipesCount-=1,it.pipesCount===1&&(it.pipes=it.pipes[0]),tt.emit("unpipe",this,Z)),this},ct.prototype.on=function(tt,it){var Z=p.prototype.on.call(this,tt,it),rt=this._readableState;return tt==="data"?(rt.readableListening=this.listenerCount("readable")>0,rt.flowing!==!1&&this.resume()):tt==="readable"&&(rt.endEmitted||rt.readableListening||(rt.readableListening=rt.needReadable=!0,rt.flowing=!1,rt.emittedReadable=!1,I("on readable",rt.length,rt.reading),rt.length?a(this):rt.reading||O.nextTick(J,this))),Z},ct.prototype.addListener=ct.prototype.on,ct.prototype.removeListener=function(tt,it){var Z=p.prototype.removeListener.call(this,tt,it);return tt==="readable"&&O.nextTick(W,this),Z},ct.prototype.removeAllListeners=function(tt){var it=p.prototype.removeAllListeners.apply(this,arguments);return tt!=="readable"&&tt!==void 0||O.nextTick(W,this),it},ct.prototype.resume=function(){var tt=this._readableState;return tt.flowing||(I("resume"),tt.flowing=!tt.readableListening,function(it,Z){Z.resumeScheduled||(Z.resumeScheduled=!0,O.nextTick(K,it,Z))}(this,tt)),tt.paused=!1,this},ct.prototype.pause=function(){return I("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(I("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},ct.prototype.wrap=function(tt){var it=this,Z=this._readableState,rt=!1;for(var wt in tt.on("end",function(){if(I("wrapped end"),Z.decoder&&!Z.ended){var St=Z.decoder.end();St&&St.length&&it.push(St)}it.push(null)}),tt.on("data",function(St){I("wrapped data"),Z.decoder&&(St=Z.decoder.write(St)),Z.objectMode&&St==null||(Z.objectMode||St&&St.length)&&(it.push(St)||(rt=!0,tt.pause()))}),tt)this[wt]===void 0&&typeof tt[wt]=="function"&&(this[wt]=function(St){return function(){return tt[St].apply(tt,arguments)}}(wt));for(var gt=0;gt<nt.length;gt++)tt.on(nt[gt],this.emit.bind(this,nt[gt]));return this._read=function(St){I("wrapped _read",St),rt&&(rt=!1,tt.resume())},this},typeof Symbol=="function"&&(ct.prototype[Symbol.asyncIterator]=function(){return B===void 0&&(B=b(2955)),B(this)}),Object.defineProperty(ct.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(ct.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(ct.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(tt){this._readableState&&(this._readableState.flowing=tt)}}),ct._fromList=Y,Object.defineProperty(ct.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol=="function"&&(ct.from=function(tt,it){return C===void 0&&(C=b(5157)),C(ct,tt,it)})},5479:()=>{},5529:function($,w,b){(function(){var j,O,I,q={}.hasOwnProperty;I=b(9241).isObject,O=b(468),j=b(1737),$.exports=function(p){function N(M,T,S,B){if(N.__super__.constructor.call(this,M),S==null)throw new Error("Missing DTD entity name. "+this.debugInfo(S));if(B==null)throw new Error("Missing DTD entity value. "+this.debugInfo(S));if(this.pe=!!T,this.name=this.stringify.name(S),this.type=j.EntityDeclaration,I(B)){if(!B.pubID&&!B.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(S));if(B.pubID&&!B.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(S));if(this.internal=!1,B.pubID!=null&&(this.pubID=this.stringify.dtdPubID(B.pubID)),B.sysID!=null&&(this.sysID=this.stringify.dtdSysID(B.sysID)),B.nData!=null&&(this.nData=this.stringify.dtdNData(B.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(S))}else this.value=this.stringify.dtdEntityValue(B),this.internal=!0}return function(M,T){for(var S in T)q.call(T,S)&&(M[S]=T[S]);function B(){this.constructor=M}B.prototype=T.prototype,M.prototype=new B,M.__super__=T.prototype}(N,p),Object.defineProperty(N.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(N.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(N.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(N.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(N.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(N.prototype,"xmlVersion",{get:function(){return null}}),N.prototype.toString=function(M){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(M))},N}(O)}).call(this)},5537:($,w,b)=>{var j=b(8287).Buffer,O=b(5606),I=b(6688),q=b(6698),p=b(6917),N=b(8399),M=p.IncomingMessage,T=p.readyStates,S=$.exports=function(C){var _,F=this;N.Writable.call(F),F._opts=C,F._body=[],F._headers={},C.auth&&F.setHeader("Authorization","Basic "+j.from(C.auth).toString("base64")),Object.keys(C.headers).forEach(function(z){F.setHeader(z,C.headers[z])});var U=!0;if(C.mode==="disable-fetch"||"requestTimeout"in C&&!I.abortController)U=!1,_=!0;else if(C.mode==="prefer-streaming")_=!1;else if(C.mode==="allow-wrong-content-type")_=!I.overrideMimeType;else{if(C.mode&&C.mode!=="default"&&C.mode!=="prefer-fast")throw new Error("Invalid value for opts.mode");_=!0}F._mode=function(z,H){return I.fetch&&H?"fetch":I.mozchunkedarraybuffer?"moz-chunked-arraybuffer":I.msstream?"ms-stream":I.arraybuffer&&z?"arraybuffer":"text"}(_,U),F._fetchTimer=null,F._socketTimeout=null,F._socketTimer=null,F.on("finish",function(){F._onFinish()})};q(S,N.Writable),S.prototype.setHeader=function(C,_){var F=C.toLowerCase();B.indexOf(F)===-1&&(this._headers[F]={name:C,value:_})},S.prototype.getHeader=function(C){var _=this._headers[C.toLowerCase()];return _?_.value:null},S.prototype.removeHeader=function(C){delete this._headers[C.toLowerCase()]},S.prototype._onFinish=function(){var C=this;if(!C._destroyed){var _=C._opts;"timeout"in _&&_.timeout!==0&&C.setTimeout(_.timeout);var F=C._headers,U=null;_.method!=="GET"&&_.method!=="HEAD"&&(U=new Blob(C._body,{type:(F["content-type"]||{}).value||""}));var z=[];if(Object.keys(F).forEach(function(X){var et=F[X].name,nt=F[X].value;Array.isArray(nt)?nt.forEach(function(ut){z.push([et,ut])}):z.push([et,nt])}),C._mode==="fetch"){var H=null;if(I.abortController){var D=new AbortController;H=D.signal,C._fetchAbortController=D,"requestTimeout"in _&&_.requestTimeout!==0&&(C._fetchTimer=b.g.setTimeout(function(){C.emit("requestTimeout"),C._fetchAbortController&&C._fetchAbortController.abort()},_.requestTimeout))}b.g.fetch(C._opts.url,{method:C._opts.method,headers:z,body:U||void 0,mode:"cors",credentials:_.withCredentials?"include":"same-origin",signal:H}).then(function(X){C._fetchResponse=X,C._resetTimers(!1),C._connect()},function(X){C._resetTimers(!0),C._destroyed||C.emit("error",X)})}else{var Q=C._xhr=new b.g.XMLHttpRequest;try{Q.open(C._opts.method,C._opts.url,!0)}catch(X){return void O.nextTick(function(){C.emit("error",X)})}"responseType"in Q&&(Q.responseType=C._mode),"withCredentials"in Q&&(Q.withCredentials=!!_.withCredentials),C._mode==="text"&&"overrideMimeType"in Q&&Q.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in _&&(Q.timeout=_.requestTimeout,Q.ontimeout=function(){C.emit("requestTimeout")}),z.forEach(function(X){Q.setRequestHeader(X[0],X[1])}),C._response=null,Q.onreadystatechange=function(){switch(Q.readyState){case T.LOADING:case T.DONE:C._onXHRProgress()}},C._mode==="moz-chunked-arraybuffer"&&(Q.onprogress=function(){C._onXHRProgress()}),Q.onerror=function(){C._destroyed||(C._resetTimers(!0),C.emit("error",new Error("XHR error")))};try{Q.send(U)}catch(X){return void O.nextTick(function(){C.emit("error",X)})}}}},S.prototype._onXHRProgress=function(){var C=this;C._resetTimers(!1),function(_){try{var F=_.status;return F!==null&&F!==0}catch{return!1}}(C._xhr)&&!C._destroyed&&(C._response||C._connect(),C._response._onXHRProgress(C._resetTimers.bind(C)))},S.prototype._connect=function(){var C=this;C._destroyed||(C._response=new M(C._xhr,C._fetchResponse,C._mode,C._resetTimers.bind(C)),C._response.on("error",function(_){C.emit("error",_)}),C.emit("response",C._response))},S.prototype._write=function(C,_,F){this._body.push(C),F()},S.prototype._resetTimers=function(C){var _=this;b.g.clearTimeout(_._socketTimer),_._socketTimer=null,C?(b.g.clearTimeout(_._fetchTimer),_._fetchTimer=null):_._socketTimeout&&(_._socketTimer=b.g.setTimeout(function(){_.emit("timeout")},_._socketTimeout))},S.prototype.abort=S.prototype.destroy=function(C){var _=this;_._destroyed=!0,_._resetTimers(!0),_._response&&(_._response._destroyed=!0),_._xhr?_._xhr.abort():_._fetchAbortController&&_._fetchAbortController.abort(),C&&_.emit("error",C)},S.prototype.end=function(C,_,F){typeof C=="function"&&(F=C,C=void 0),N.Writable.prototype.end.call(this,C,_,F)},S.prototype.setTimeout=function(C,_){var F=this;_&&F.once("timeout",_),F._socketTimeout=C,F._resetTimers(!1)},S.prototype.flushHeaders=function(){},S.prototype.setNoDelay=function(){},S.prototype.setSocketKeepAlive=function(){};var B=["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"]},5540:($,w,b)=>{const j=function(B){return String.fromCharCode(B)},O={nilChar:j(176),missingChar:j(201),nilPremitive:j(175),missingPremitive:j(200),emptyChar:j(178),emptyValue:j(177),boundryChar:j(179),objStart:j(198),arrStart:j(204),arrayEnd:j(185)},I=[O.nilChar,O.nilPremitive,O.missingChar,O.missingPremitive,O.boundryChar,O.emptyChar,O.emptyValue,O.arrayEnd,O.objStart,O.arrStart],q=function(B,C,_){if(typeof C=="string")return B&&B[0]&&B[0].val!==void 0?p(B[0].val):p(B);{const U=(F=B)===void 0?O.missingChar:F===null?O.nilChar:!(F.child&&Object.keys(F.child).length===0&&(!F.attrsMap||Object.keys(F.attrsMap).length===0))||O.emptyChar;if(U===!0){let z="";if(Array.isArray(C)){z+=O.arrStart;const H=C[0],D=B.length;if(typeof H=="string")for(let Q=0;Q<D;Q++){const X=p(B[Q].val);z=N(z,X)}else for(let Q=0;Q<D;Q++){const X=q(B[Q],H,_);z=N(z,X)}z+=O.arrayEnd}else{z+=O.objStart;const H=Object.keys(C);Array.isArray(B)&&(B=B[0]);for(let D in H){const Q=H[D];let X;X=!_.ignoreAttributes&&B.attrsMap&&B.attrsMap[Q]?q(B.attrsMap[Q],C[Q],_):Q===_.textNodeName?q(B.val,C[Q],_):q(B.child[Q],C[Q],_),z=N(z,X)}}return z}return U}var F},p=function(B){switch(B){case void 0:return O.missingPremitive;case null:return O.nilPremitive;case"":return O.emptyValue;default:return B}},N=function(B,C){return M(C[0])||M(B[B.length-1])||(B+=O.boundryChar),B+C},M=function(B){return I.indexOf(B)!==-1},T=b(7765),S=b(5334).buildOptions;w.convert2nimn=function(B,C,_){return _=S(_,T.defaultOptions,T.props),q(B,C,_)}},5567:($,w,b)=>{$.exports=b(7007).EventEmitter},5579:$=>{$.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"}')},5606:$=>{var w,b,j=$.exports={};function O(){throw new Error("setTimeout has not been defined")}function I(){throw new Error("clearTimeout has not been defined")}function q(F){if(w===setTimeout)return setTimeout(F,0);if((w===O||!w)&&setTimeout)return w=setTimeout,setTimeout(F,0);try{return w(F,0)}catch{try{return w.call(null,F,0)}catch{return w.call(this,F,0)}}}(function(){try{w=typeof setTimeout=="function"?setTimeout:O}catch{w=O}try{b=typeof clearTimeout=="function"?clearTimeout:I}catch{b=I}})();var p,N=[],M=!1,T=-1;function S(){M&&p&&(M=!1,p.length?N=p.concat(N):T=-1,N.length&&B())}function B(){if(!M){var F=q(S);M=!0;for(var U=N.length;U;){for(p=N,N=[];++T<U;)p&&p[T].run();T=-1,U=N.length}p=null,M=!1,function(z){if(b===clearTimeout)return clearTimeout(z);if((b===I||!b)&&clearTimeout)return b=clearTimeout,clearTimeout(z);try{return b(z)}catch{try{return b.call(null,z)}catch{return b.call(this,z)}}}(F)}}function C(F,U){this.fun=F,this.array=U}function _(){}j.nextTick=function(F){var U=new Array(arguments.length-1);if(arguments.length>1)for(var z=1;z<arguments.length;z++)U[z-1]=arguments[z];N.push(new C(F,U)),N.length!==1||M||q(B)},C.prototype.run=function(){this.fun.apply(null,this.array)},j.title="browser",j.browser=!0,j.env={},j.argv=[],j.version="",j.versions={},j.on=_,j.addListener=_,j.once=_,j.off=_,j.removeListener=_,j.removeAllListeners=_,j.emit=_,j.prependListener=_,j.prependOnceListener=_,j.listeners=function(F){return[]},j.binding=function(F){throw new Error("process.binding is not supported")},j.cwd=function(){return"/"},j.chdir=function(F){throw new Error("process.chdir is not supported")},j.umask=function(){return 0}},5622:($,w,b)=>{function j(O){return Object.prototype.toString.call(O)}w.isArray=function(O){return Array.isArray?Array.isArray(O):j(O)==="[object Array]"},w.isBoolean=function(O){return typeof O=="boolean"},w.isNull=function(O){return O===null},w.isNullOrUndefined=function(O){return O==null},w.isNumber=function(O){return typeof O=="number"},w.isString=function(O){return typeof O=="string"},w.isSymbol=function(O){return typeof O=="symbol"},w.isUndefined=function(O){return O===void 0},w.isRegExp=function(O){return j(O)==="[object RegExp]"},w.isObject=function(O){return typeof O=="object"&&O!==null},w.isDate=function(O){return j(O)==="[object Date]"},w.isError=function(O){return j(O)==="[object Error]"||O instanceof Error},w.isFunction=function(O){return typeof O=="function"},w.isPrimitive=function(O){return O===null||typeof O=="boolean"||typeof O=="number"||typeof O=="string"||typeof O=="symbol"||O===void 0},w.isBuffer=b(8287).Buffer.isBuffer},5660:function($){(function(){$.exports=function(){function w(){}return w.prototype.handleError=function(b){throw new Error(b)},w}()}).call(this)},5680:($,w,b)=>{var j=b(5767);$.exports=function(O){return!!j(O)}},5715:($,w,b)=>{$.exports=b(2951)},5767:($,w,b)=>{var j=b(2682),O=b(9209),I=b(487),q=b(6556),p=b(5795),N=b(3628),M=q("Object.prototype.toString"),T=b(9092)(),S=typeof globalThis>"u"?b.g:globalThis,B=O(),C=q("String.prototype.slice"),_=q("Array.prototype.indexOf",!0)||function(U,z){for(var H=0;H<U.length;H+=1)if(U[H]===z)return H;return-1},F={__proto__:null};j(B,T&&p&&N?function(U){var z=new S[U];if(Symbol.toStringTag in z&&N){var H=N(z),D=p(H,Symbol.toStringTag);if(!D&&H){var Q=N(H);D=p(Q,Symbol.toStringTag)}F["$"+U]=I(D.get)}}:function(U){var z=new S[U],H=z.slice||z.set;H&&(F["$"+U]=I(H))}),$.exports=function(U){if(!U||typeof U!="object")return!1;if(!T){var z=C(M(U),8,-1);return _(B,z)>-1?z:z==="Object"&&function(H){var D=!1;return j(F,function(Q,X){if(!D)try{Q(H),D=C(X,1)}catch{}}),D}(U)}return p?function(H){var D=!1;return j(F,function(Q,X){if(!D)try{"$"+Q(H)===X&&(D=C(X,1))}catch{}}),D}(U):null}},5769:($,w,b)=>{var j=b(5606);Object.defineProperty(w,"__esModule",{value:!0}),w.buildARN=w.TopicConfig=w.QueueConfig=w.ObjectRemovedDeleteMarkerCreated=w.ObjectRemovedDelete=w.ObjectRemovedAll=w.ObjectReducedRedundancyLostObject=w.ObjectCreatedPut=w.ObjectCreatedPost=w.ObjectCreatedCopy=w.ObjectCreatedCompleteMultipartUpload=w.ObjectCreatedAll=w.NotificationPoller=w.NotificationConfig=w.CloudFunctionConfig=void 0;var O=b(7007),I=function(C,_){if(C&&C.__esModule)return C;if(C===null||typeof C!="object"&&typeof C!="function")return{default:C};var F=p(_);if(F&&F.has(C))return F.get(C);var U={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var H in C)if(H!=="default"&&Object.prototype.hasOwnProperty.call(C,H)){var D=z?Object.getOwnPropertyDescriptor(C,H):null;D&&(D.get||D.set)?Object.defineProperty(U,H,D):U[H]=C[H]}return U.default=C,F&&F.set(C,U),U}(b(8234)),q=b(2541);function p(C){if(typeof WeakMap!="function")return null;var _=new WeakMap,F=new WeakMap;return(p=function(U){return U?F:_})(C)}w.NotificationConfig=class{add(C){let _="";C instanceof M&&(_="TopicConfiguration"),C instanceof T&&(_="QueueConfiguration"),C instanceof S&&(_="CloudFunctionConfiguration"),this[_]||(this[_]=[]),this[_].push(C)}};class N{setId(_){this.Id=_}addEvent(_){this.Event||(this.Event=[]),this.Event.push(_)}addFilterSuffix(_){this.Filter||(this.Filter={S3Key:{FilterRule:[]}}),this.Filter.S3Key.FilterRule.push({Name:"suffix",Value:_})}addFilterPrefix(_){this.Filter||(this.Filter={S3Key:{FilterRule:[]}}),this.Filter.S3Key.FilterRule.push({Name:"prefix",Value:_})}}class M extends N{constructor(_){super(),this.Topic=_}}w.TopicConfig=M;class T extends N{constructor(_){super(),this.Queue=_}}w.QueueConfig=T;class S extends N{constructor(_){super(),this.CloudFunction=_}}w.CloudFunctionConfig=S,w.buildARN=(C,_,F,U,z)=>"arn:"+C+":"+_+":"+F+":"+U+":"+z,w.ObjectCreatedAll="s3:ObjectCreated:*",w.ObjectCreatedPut="s3:ObjectCreated:Put",w.ObjectCreatedPost="s3:ObjectCreated:Post",w.ObjectCreatedCopy="s3:ObjectCreated:Copy",w.ObjectCreatedCompleteMultipartUpload="s3:ObjectCreated:CompleteMultipartUpload",w.ObjectRemovedAll="s3:ObjectRemoved:*",w.ObjectRemovedDelete="s3:ObjectRemoved:Delete",w.ObjectRemovedDeleteMarkerCreated="s3:ObjectRemoved:DeleteMarkerCreated",w.ObjectReducedRedundancyLostObject="s3:ReducedRedundancyLostObject";class B extends O.EventEmitter{constructor(_,F,U,z,H){super(),this.client=_,this.bucketName=F,this.prefix=U,this.suffix=z,this.events=H,this.ending=!1}start(){this.ending=!1,j.nextTick(()=>{this.checkForChanges()})}stop(){this.ending=!0}checkForChanges(){if(this.ending)return;var _=[];if(this.prefix){var F=(0,q.uriEscape)(this.prefix);_.push(`prefix=${F}`)}if(this.suffix){var U=(0,q.uriEscape)(this.suffix);_.push(`suffix=${U}`)}this.events&&this.events.forEach(D=>_.push("events="+(0,q.uriEscape)(D))),_.sort();var z="";_.length>0&&(z=`${_.join("&")}`);const H=this.client.region||q.DEFAULT_REGION;this.client.makeRequest({method:"GET",bucketName:this.bucketName,query:z},"",[200],H,!0,(D,Q)=>{if(D)return this.emit("error",D);let X=I.getNotificationTransformer();(0,q.pipesetup)(Q,X).on("data",et=>{let nt=et.Records;nt||(nt=[]),nt.forEach(ut=>{this.emit("notification",ut)}),this.ending&&Q.destroy()}).on("error",et=>this.emit("error",et)).on("end",()=>{j.nextTick(()=>{this.checkForChanges()})})})}}w.NotificationPoller=B},5795:($,w,b)=>{var j=b(6549);if(j)try{j([],"length")}catch{j=null}$.exports=j},5799:($,w,b)=>{var j=b(530),O=b(2356),I=b(2861).Buffer,q=b(650),p=b(6168),N=b(462),M=b(8078);function T(_,F,U){p.call(this),this._cache=new B,this._cipher=new N.AES(F),this._prev=I.from(U),this._mode=_,this._autopadding=!0}b(6698)(T,p),T.prototype._update=function(_){var F,U;this._cache.add(_);for(var z=[];F=this._cache.get();)U=this._mode.encrypt(this,F),z.push(U);return I.concat(z)};var S=I.alloc(16,16);function B(){this.cache=I.allocUnsafe(0)}function C(_,F,U){var z=j[_.toLowerCase()];if(!z)throw new TypeError("invalid suite type");if(typeof F=="string"&&(F=I.from(F)),F.length!==z.key/8)throw new TypeError("invalid key length "+F.length);if(typeof U=="string"&&(U=I.from(U)),z.mode!=="GCM"&&U.length!==z.iv)throw new TypeError("invalid iv length "+U.length);return z.type==="stream"?new q(z.module,F,U):z.type==="auth"?new O(z.module,F,U):new T(z.module,F,U)}T.prototype._final=function(){var _=this._cache.flush();if(this._autopadding)return _=this._mode.encrypt(this,_),this._cipher.scrub(),_;if(!_.equals(S))throw this._cipher.scrub(),new Error("data not multiple of block length")},T.prototype.setAutoPadding=function(_){return this._autopadding=!!_,this},B.prototype.add=function(_){this.cache=I.concat([this.cache,_])},B.prototype.get=function(){if(this.cache.length>15){var _=this.cache.slice(0,16);return this.cache=this.cache.slice(16),_}return null},B.prototype.flush=function(){for(var _=16-this.cache.length,F=I.allocUnsafe(_),U=-1;++U<_;)F.writeUInt8(_,U);return I.concat([this.cache,F])},w.createCipheriv=C,w.createCipher=function(_,F){var U=j[_.toLowerCase()];if(!U)throw new TypeError("invalid suite type");var z=M(F,!1,U.key,U.iv);return C(_,z.key,z.iv)}},5880:$=>{$.exports=Math.pow},5892:($,w,b)=>{var j=b(2861).Buffer,O=j.alloc(16,0);function I(p){var N=j.allocUnsafe(16);return N.writeUInt32BE(p[0]>>>0,0),N.writeUInt32BE(p[1]>>>0,4),N.writeUInt32BE(p[2]>>>0,8),N.writeUInt32BE(p[3]>>>0,12),N}function q(p){this.h=p,this.state=j.alloc(16,0),this.cache=j.allocUnsafe(0)}q.prototype.ghash=function(p){for(var N=-1;++N<p.length;)this.state[N]^=p[N];this._multiply()},q.prototype._multiply=function(){for(var p,N,M,T=[(p=this.h).readUInt32BE(0),p.readUInt32BE(4),p.readUInt32BE(8),p.readUInt32BE(12)],S=[0,0,0,0],B=-1;++B<128;){for(this.state[~~(B/8)]&1<<7-B%8&&(S[0]^=T[0],S[1]^=T[1],S[2]^=T[2],S[3]^=T[3]),M=!!(1&T[3]),N=3;N>0;N--)T[N]=T[N]>>>1|(1&T[N-1])<<31;T[0]=T[0]>>>1,M&&(T[0]=T[0]^-520093696)}this.state=I(S)},q.prototype.update=function(p){var N;for(this.cache=j.concat([this.cache,p]);this.cache.length>=16;)N=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(N)},q.prototype.final=function(p,N){return this.cache.length&&this.ghash(j.concat([this.cache,O],16)),this.ghash(I([0,p,0,N])),this.state},$.exports=q},5896:($,w,b)=>{var j=b(5606);function O(p,N){q(p,N),I(p)}function I(p){p._writableState&&!p._writableState.emitClose||p._readableState&&!p._readableState.emitClose||p.emit("close")}function q(p,N){p.emit("error",N)}$.exports={destroy:function(p,N){var M=this,T=this._readableState&&this._readableState.destroyed,S=this._writableState&&this._writableState.destroyed;return T||S?(N?N(p):p&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,j.nextTick(q,this,p)):j.nextTick(q,this,p)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(p||null,function(B){!N&&B?M._writableState?M._writableState.errorEmitted?j.nextTick(I,M):(M._writableState.errorEmitted=!0,j.nextTick(O,M,B)):j.nextTick(O,M,B):N?(j.nextTick(I,M),N(B)):j.nextTick(I,M)}),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(p,N){var M=p._readableState,T=p._writableState;M&&M.autoDestroy||T&&T.autoDestroy?p.destroy(N):p.emit("error",N)}}},5915:function($,w,b){(function(){var j,O,I={}.hasOwnProperty;j=b(1737),O=b(7457),$.exports=function(q){function p(N,M,T){if(p.__super__.constructor.call(this,N),M==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=j.ProcessingInstruction,this.target=this.stringify.insTarget(M),this.name=this.target,T&&(this.value=this.stringify.insValue(T))}return function(N,M){for(var T in M)I.call(M,T)&&(N[T]=M[T]);function S(){this.constructor=N}S.prototype=M.prototype,N.prototype=new S,N.__super__=M.prototype}(p,q),p.prototype.clone=function(){return Object.create(this)},p.prototype.toString=function(N){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(N))},p.prototype.isEqualNode=function(N){return!!p.__super__.isEqualNode.apply(this,arguments).isEqualNode(N)&&N.target===this.target},p}(O)}).call(this)},6011:($,w,b)=>{var j=b(8287).Buffer,O=b(6698),I=b(4729),q=new Array(16),p=[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],N=[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],M=[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],T=[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],S=[0,1518500249,1859775393,2400959708,2840853838],B=[1352829926,1548603684,1836072691,2053994217,0];function C(){I.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function _(Q,X){return Q<<X|Q>>>32-X}function F(Q,X,et,nt,ut,ct,vt,t){return _(Q+(X^et^nt)+ct+vt|0,t)+ut|0}function U(Q,X,et,nt,ut,ct,vt,t){return _(Q+(X&et|~X&nt)+ct+vt|0,t)+ut|0}function z(Q,X,et,nt,ut,ct,vt,t){return _(Q+((X|~et)^nt)+ct+vt|0,t)+ut|0}function H(Q,X,et,nt,ut,ct,vt,t){return _(Q+(X&nt|et&~nt)+ct+vt|0,t)+ut|0}function D(Q,X,et,nt,ut,ct,vt,t){return _(Q+(X^(et|~nt))+ct+vt|0,t)+ut|0}O(C,I),C.prototype._update=function(){for(var Q=q,X=0;X<16;++X)Q[X]=this._block.readInt32LE(4*X);for(var et=0|this._a,nt=0|this._b,ut=0|this._c,ct=0|this._d,vt=0|this._e,t=0|this._a,h=0|this._b,l=0|this._c,a=0|this._d,r=0|this._e,v=0;v<80;v+=1){var A,W;v<16?(A=F(et,nt,ut,ct,vt,Q[p[v]],S[0],M[v]),W=D(t,h,l,a,r,Q[N[v]],B[0],T[v])):v<32?(A=U(et,nt,ut,ct,vt,Q[p[v]],S[1],M[v]),W=H(t,h,l,a,r,Q[N[v]],B[1],T[v])):v<48?(A=z(et,nt,ut,ct,vt,Q[p[v]],S[2],M[v]),W=z(t,h,l,a,r,Q[N[v]],B[2],T[v])):v<64?(A=H(et,nt,ut,ct,vt,Q[p[v]],S[3],M[v]),W=U(t,h,l,a,r,Q[N[v]],B[3],T[v])):(A=D(et,nt,ut,ct,vt,Q[p[v]],S[4],M[v]),W=F(t,h,l,a,r,Q[N[v]],B[4],T[v])),et=vt,vt=ct,ct=_(ut,10),ut=nt,nt=A,t=r,r=a,a=_(l,10),l=h,h=W}var J=this._b+ut+a|0;this._b=this._c+ct+r|0,this._c=this._d+vt+t|0,this._d=this._e+et+h|0,this._e=this._a+nt+l|0,this._a=J},C.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 Q=j.alloc?j.alloc(20):new j(20);return Q.writeInt32LE(this._a,0),Q.writeInt32LE(this._b,4),Q.writeInt32LE(this._c,8),Q.writeInt32LE(this._d,12),Q.writeInt32LE(this._e,16),Q},$.exports=C},6048:$=>{var w={};function b(O,I,q){q||(q=Error);var p=function(N){var M,T;function S(B,C,_){return N.call(this,function(F,U,z){return typeof I=="string"?I:I(F,U,z)}(B,C,_))||this}return T=N,(M=S).prototype=Object.create(T.prototype),M.prototype.constructor=M,M.__proto__=T,S}(q);p.prototype.name=q.name,p.prototype.code=O,w[O]=p}function j(O,I){if(Array.isArray(O)){var q=O.length;return O=O.map(function(p){return String(p)}),q>2?"one of ".concat(I," ").concat(O.slice(0,q-1).join(", "),", or ")+O[q-1]:q===2?"one of ".concat(I," ").concat(O[0]," or ").concat(O[1]):"of ".concat(I," ").concat(O[0])}return"of ".concat(I," ").concat(String(O))}b("ERR_INVALID_OPT_VALUE",function(O,I){return'The value "'+I+'" is invalid for option "'+O+'"'},TypeError),b("ERR_INVALID_ARG_TYPE",function(O,I,q){var p,N,M,T,S;if(typeof I=="string"&&(N="not ",I.substr(0,4)===N)?(p="must not be",I=I.replace(/^not /,"")):p="must be",function(C,_,F){return(F===void 0||F>C.length)&&(F=C.length),C.substring(F-9,F)===_}(O," argument"))M="The ".concat(O," ").concat(p," ").concat(j(I,"type"));else{var B=(typeof S!="number"&&(S=0),S+1>(T=O).length||T.indexOf(".",S)===-1?"argument":"property");M='The "'.concat(O,'" ').concat(B," ").concat(p," ").concat(j(I,"type"))}return M+". Received type ".concat(typeof q)},TypeError),b("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),b("ERR_METHOD_NOT_IMPLEMENTED",function(O){return"The "+O+" method is not implemented"}),b("ERR_STREAM_PREMATURE_CLOSE","Premature close"),b("ERR_STREAM_DESTROYED",function(O){return"Cannot call "+O+" after a stream was destroyed"}),b("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),b("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),b("ERR_STREAM_WRITE_AFTER_END","write after end"),b("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),b("ERR_UNKNOWN_ENCODING",function(O){return"Unknown encoding: "+O},TypeError),b("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),$.exports.F=w},6049:($,w,b)=>{var j,O,I,q=b(7598),p=b(7975).extname,N=/^\s*([^;\s]*)(?:;|\s|$)/,M=/^text\//i;function T(S){if(!S||typeof S!="string")return!1;var B=N.exec(S),C=B&&q[B[1].toLowerCase()];return C&&C.charset?C.charset:!(!B||!M.test(B[1]))&&"UTF-8"}w.charset=T,w.charsets={lookup:T},w.contentType=function(S){if(!S||typeof S!="string")return!1;var B=S.indexOf("/")===-1?w.lookup(S):S;if(!B)return!1;if(B.indexOf("charset")===-1){var C=w.charset(B);C&&(B+="; charset="+C.toLowerCase())}return B},w.extension=function(S){if(!S||typeof S!="string")return!1;var B=N.exec(S),C=B&&w.extensions[B[1].toLowerCase()];return!(!C||!C.length)&&C[0]},w.extensions=Object.create(null),w.lookup=function(S){if(!S||typeof S!="string")return!1;var B=p("x."+S).toLowerCase().substr(1);return B&&w.types[B]||!1},w.types=Object.create(null),j=w.extensions,O=w.types,I=["nginx","apache",void 0,"iana"],Object.keys(q).forEach(function(S){var B=q[S],C=B.extensions;if(C&&C.length){j[S]=C;for(var _=0;_<C.length;_++){var F=C[_];if(O[F]){var U=I.indexOf(q[O[F]].source),z=I.indexOf(B.source);if(O[F]!=="application/octet-stream"&&(U>z||U===z&&O[F].substr(0,12)==="application/"))continue}O[F]=S}}})},6089:()=>{},6097:($,w,b)=>{Object.defineProperty(w,"__esModule",{value:!0}),w.SecretKeyRequiredError=w.S3Error=w.InvalidXMLError=w.InvalidPrefixError=w.InvalidPortError=w.InvalidObjectNameError=w.InvalidEndpointError=w.InvalidDateError=w.InvalidBucketPolicyError=w.InvalidBucketNameError=w.InvalidArgumentError=w.IncorrectSizeError=w.ExpiresParamError=w.AnonymousRequestError=w.AccessKeyRequiredError=void 0;var j,O=(j=b(7307))&&j.__esModule?j:{default:j};class I extends O.default{constructor(X){super(X)}}w.AnonymousRequestError=I;class q extends O.default{constructor(X){super(X)}}w.InvalidArgumentError=q;class p extends O.default{constructor(X){super(X)}}w.InvalidPortError=p;class N extends O.default{constructor(X){super(X)}}w.InvalidEndpointError=N;class M extends O.default{constructor(X){super(X)}}w.InvalidBucketNameError=M;class T extends O.default{constructor(X){super(X)}}w.InvalidObjectNameError=T;class S extends O.default{constructor(X){super(X)}}w.AccessKeyRequiredError=S;class B extends O.default{constructor(X){super(X)}}w.SecretKeyRequiredError=B;class C extends O.default{constructor(X){super(X)}}w.ExpiresParamError=C;class _ extends O.default{constructor(X){super(X)}}w.InvalidDateError=_;class F extends O.default{constructor(X){super(X)}}w.InvalidPrefixError=F;class U extends O.default{constructor(X){super(X)}}w.InvalidBucketPolicyError=U;class z extends O.default{constructor(X){super(X)}}w.IncorrectSizeError=z;class H extends O.default{constructor(X){super(X)}}w.InvalidXMLError=H;class D extends O.default{constructor(X){super(X)}}w.S3Error=D},6150:($,w,b)=>{Object.defineProperty(w,"__esModule",{value:!0}),w.default=void 0;var j,O=(j=b(8226))&&j.__esModule?j:{default:j};w.default=class{constructor({accessKey:I,secretKey:q,sessionToken:p}){this.credentials=new O.default({accessKey:I,secretKey:q,sessionToken:p})}getCredentials(){return this.credentials.get()}setCredentials(I){if(!(I instanceof O.default))throw new Error("Unable to set Credentials . it should be an instance of Credentials class");this.credentials=I}setAccessKey(I){this.credentials.setAccessKey(I)}getAccessKey(){return this.credentials.getAccessKey()}setSecretKey(I){this.credentials.setSecretKey(I)}getSecretKey(){return this.credentials.getSecretKey()}setSessionToken(I){this.credentials.setSessionToken(I)}getSessionToken(){return this.credentials.getSessionToken()}}},6166:($,w,b)=>{var j=b(7426),O=b(3349);function I(){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}w.BlockHash=I,I.prototype.update=function(q,p){if(q=j.toArray(q,p),this.pending?this.pending=this.pending.concat(q):this.pending=q,this.pendingTotal+=q.length,this.pending.length>=this._delta8){var N=(q=this.pending).length%this._delta8;this.pending=q.slice(q.length-N,q.length),this.pending.length===0&&(this.pending=null),q=j.join32(q,0,q.length-N,this.endian);for(var M=0;M<q.length;M+=this._delta32)this._update(q,M,M+this._delta32)}return this},I.prototype.digest=function(q){return this.update(this._pad()),O(this.pending===null),this._digest(q)},I.prototype._pad=function(){var q=this.pendingTotal,p=this._delta8,N=p-(q+this.padLength)%p,M=new Array(N+this.padLength);M[0]=128;for(var T=1;T<N;T++)M[T]=0;if(q<<=3,this.endian==="big"){for(var S=8;S<this.padLength;S++)M[T++]=0;M[T++]=0,M[T++]=0,M[T++]=0,M[T++]=0,M[T++]=q>>>24&255,M[T++]=q>>>16&255,M[T++]=q>>>8&255,M[T++]=255&q}else for(M[T++]=255&q,M[T++]=q>>>8&255,M[T++]=q>>>16&255,M[T++]=q>>>24&255,M[T++]=0,M[T++]=0,M[T++]=0,M[T++]=0,S=8;S<this.padLength;S++)M[T++]=0;return M}},6168:($,w,b)=>{var j=b(2861).Buffer,O=b(8310).Transform,I=b(3141).I;function q(M){O.call(this),this.hashMode=typeof M=="string",this.hashMode?this[M]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}b(6698)(q,O);var p=typeof Uint8Array<"u",N=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(j.prototype instanceof Uint8Array||j.TYPED_ARRAY_SUPPORT);q.prototype.update=function(M,T,S){var B=function(_,F){if(_ instanceof j)return _;if(typeof _=="string")return j.from(_,F);if(N&&ArrayBuffer.isView(_)){if(_.byteLength===0)return j.alloc(0);var U=j.from(_.buffer,_.byteOffset,_.byteLength);if(U.byteLength===_.byteLength)return U}if(p&&_ instanceof Uint8Array||j.isBuffer(_)&&_.constructor&&typeof _.constructor.isBuffer=="function"&&_.constructor.isBuffer(_))return j.from(_);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}(M,T),C=this._update(B);return this.hashMode?this:(S&&(C=this._toString(C,S)),C)},q.prototype.setAutoPadding=function(){},q.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},q.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},q.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},q.prototype._transform=function(M,T,S){var B;try{this.hashMode?this._update(M):this.push(this._update(M))}catch(C){B=C}finally{S(B)}},q.prototype._flush=function(M){var T;try{this.push(this.__final())}catch(S){T=S}M(T)},q.prototype._finalOrDigest=function(M){var T=this.__final()||j.alloc(0);return M&&(T=this._toString(T,M,!0)),T},q.prototype._toString=function(M,T,S){if(this._decoder||(this._decoder=new I(T),this._encoding=T),this._encoding!==T)throw new Error("can’t switch encodings");var B=this._decoder.write(M);return S&&(B+=this._decoder.end()),B},$.exports=q},6171:($,w,b)=>{var j=b(2356),O=b(2861).Buffer,I=b(530),q=b(650),p=b(6168),N=b(462),M=b(8078);function T(C,_,F){p.call(this),this._cache=new S,this._last=void 0,this._cipher=new N.AES(_),this._prev=O.from(F),this._mode=C,this._autopadding=!0}function S(){this.cache=O.allocUnsafe(0)}function B(C,_,F){var U=I[C.toLowerCase()];if(!U)throw new TypeError("invalid suite type");if(typeof F=="string"&&(F=O.from(F)),U.mode!=="GCM"&&F.length!==U.iv)throw new TypeError("invalid iv length "+F.length);if(typeof _=="string"&&(_=O.from(_)),_.length!==U.key/8)throw new TypeError("invalid key length "+_.length);return U.type==="stream"?new q(U.module,_,F,!0):U.type==="auth"?new j(U.module,_,F,!0):new T(U.module,_,F)}b(6698)(T,p),T.prototype._update=function(C){var _,F;this._cache.add(C);for(var U=[];_=this._cache.get(this._autopadding);)F=this._mode.decrypt(this,_),U.push(F);return O.concat(U)},T.prototype._final=function(){var C=this._cache.flush();if(this._autopadding)return function(_){var F=_[15];if(F<1||F>16)throw new Error("unable to decrypt data");for(var U=-1;++U<F;)if(_[U+(16-F)]!==F)throw new Error("unable to decrypt data");if(F!==16)return _.slice(0,16-F)}(this._mode.decrypt(this,C));if(C)throw new Error("data not multiple of block length")},T.prototype.setAutoPadding=function(C){return this._autopadding=!!C,this},S.prototype.add=function(C){this.cache=O.concat([this.cache,C])},S.prototype.get=function(C){var _;if(C){if(this.cache.length>16)return _=this.cache.slice(0,16),this.cache=this.cache.slice(16),_}else if(this.cache.length>=16)return _=this.cache.slice(0,16),this.cache=this.cache.slice(16),_;return null},S.prototype.flush=function(){if(this.cache.length)return this.cache},w.createDecipher=function(C,_){var F=I[C.toLowerCase()];if(!F)throw new TypeError("invalid suite type");var U=M(_,!1,F.key,F.iv);return B(C,U.key,U.iv)},w.createDecipheriv=B},6188:$=>{$.exports=Math.max},6225:($,w,b)=>{var j=b(7426).rotr32;function O(p,N,M){return p&N^~p&M}function I(p,N,M){return p&N^p&M^N&M}function q(p,N,M){return p^N^M}w.ft_1=function(p,N,M,T){return p===0?O(N,M,T):p===1||p===3?q(N,M,T):p===2?I(N,M,T):void 0},w.ch32=O,w.maj32=I,w.p32=q,w.s0_256=function(p){return j(p,2)^j(p,13)^j(p,22)},w.s1_256=function(p){return j(p,6)^j(p,11)^j(p,25)},w.g0_256=function(p){return j(p,7)^j(p,18)^p>>>3},w.g1_256=function(p){return j(p,17)^j(p,19)^p>>>10}},6229:($,w,b)=>{w.sha1=b(3917),w.sha224=b(7714),w.sha256=b(2287),w.sha384=b(1911),w.sha512=b(7766)},6238:($,w,b)=>{var j=b(6048).F.ERR_STREAM_PREMATURE_CLOSE;function O(){}$.exports=function I(q,p,N){if(typeof p=="function")return I(q,null,p);p||(p={}),N=function(D){var Q=!1;return function(){if(!Q){Q=!0;for(var X=arguments.length,et=new Array(X),nt=0;nt<X;nt++)et[nt]=arguments[nt];D.apply(this,et)}}}(N||O);var M=p.readable||p.readable!==!1&&q.readable,T=p.writable||p.writable!==!1&&q.writable,S=function(){q.writable||C()},B=q._writableState&&q._writableState.finished,C=function(){T=!1,B=!0,M||N.call(q)},_=q._readableState&&q._readableState.endEmitted,F=function(){M=!1,_=!0,T||N.call(q)},U=function(D){N.call(q,D)},z=function(){var D;return M&&!_?(q._readableState&&q._readableState.ended||(D=new j),N.call(q,D)):T&&!B?(q._writableState&&q._writableState.ended||(D=new j),N.call(q,D)):void 0},H=function(){q.req.on("finish",C)};return function(D){return D.setHeader&&typeof D.abort=="function"}(q)?(q.on("complete",C),q.on("abort",z),q.req?H():q.on("request",H)):T&&!q._writableState&&(q.on("end",S),q.on("close",S)),q.on("end",F),q.on("finish",C),p.error!==!1&&q.on("error",U),q.on("close",z),function(){q.removeListener("complete",C),q.removeListener("abort",z),q.removeListener("request",H),q.req&&q.req.removeListener("finish",C),q.removeListener("end",S),q.removeListener("close",S),q.removeListener("finish",C),q.removeListener("end",F),q.removeListener("error",U),q.removeListener("close",z)}}},6248:($,w,b)=>{var j=b(3225),O=Object.keys||function(_){var F=[];for(var U in _)F.push(U);return F};$.exports=S;var I=Object.create(b(5622));I.inherits=b(6698);var q=b(206),p=b(7314);I.inherits(S,q);for(var N=O(p.prototype),M=0;M<N.length;M++){var T=N[M];S.prototype[T]||(S.prototype[T]=p.prototype[T])}function S(_){if(!(this instanceof S))return new S(_);q.call(this,_),p.call(this,_),_&&_.readable===!1&&(this.readable=!1),_&&_.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,_&&_.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",B)}function B(){this.allowHalfOpen||this._writableState.ended||j.nextTick(C,this)}function C(_){_.end()}Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(S.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(_){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=_,this._writableState.destroyed=_)}}),S.prototype._destroy=function(_,F){this.push(null),this.end(),j.nextTick(F,_)}},6278:($,w,b)=>{var j=b(3225);function O(I,q){I.emit("error",q)}$.exports={destroy:function(I,q){var p=this,N=this._readableState&&this._readableState.destroyed,M=this._writableState&&this._writableState.destroyed;return N||M?(q?q(I):I&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,j.nextTick(O,this,I)):j.nextTick(O,this,I)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(I||null,function(T){!q&&T?p._writableState?p._writableState.errorEmitted||(p._writableState.errorEmitted=!0,j.nextTick(O,p,T)):j.nextTick(O,p,T):q&&q(T)}),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)}}},6286:function($,w,b){(function(){var j,O,I,q={}.hasOwnProperty;I=b(9241).assign,j=b(1737),b(4130),b(6376),b(2691),b(2679),b(3906),b(1268),b(2535),b(5915),b(1218),b(4111),b(7696),b(5529),b(8012),O=b(8753),$.exports=function(){function p(N){var M,T,S;for(M in N||(N={}),this.options=N,T=N.writer||{})q.call(T,M)&&(S=T[M],this["_"+M]=this[M],this[M]=S)}return p.prototype.filterOptions=function(N){var M,T,S,B,C,_,F,U;return N||(N={}),N=I({},this.options,N),(M={writer:this}).pretty=N.pretty||!1,M.allowEmpty=N.allowEmpty||!1,M.indent=(T=N.indent)!=null?T:" ",M.newline=(S=N.newline)!=null?S:`
129
+ `,M.offset=(B=N.offset)!=null?B:0,M.dontPrettyTextNodes=(C=(_=N.dontPrettyTextNodes)!=null?_:N.dontprettytextnodes)!=null?C:0,M.spaceBeforeSlash=(F=(U=N.spaceBeforeSlash)!=null?U:N.spacebeforeslash)!=null?F:"",M.spaceBeforeSlash===!0&&(M.spaceBeforeSlash=" "),M.suppressPrettyCount=0,M.user={},M.state=O.None,M},p.prototype.indent=function(N,M,T){var S;return!M.pretty||M.suppressPrettyCount?"":M.pretty&&(S=(T||0)+M.offset+1)>0?new Array(S).join(M.indent):""},p.prototype.endline=function(N,M,T){return!M.pretty||M.suppressPrettyCount?"":M.newline},p.prototype.attribute=function(N,M,T){var S;return this.openAttribute(N,M,T),S=" "+N.name+'="'+N.value+'"',this.closeAttribute(N,M,T),S},p.prototype.cdata=function(N,M,T){var S;return this.openNode(N,M,T),M.state=O.OpenTag,S=this.indent(N,M,T)+"<![CDATA[",M.state=O.InsideTag,S+=N.value,M.state=O.CloseTag,S+="]]>"+this.endline(N,M,T),M.state=O.None,this.closeNode(N,M,T),S},p.prototype.comment=function(N,M,T){var S;return this.openNode(N,M,T),M.state=O.OpenTag,S=this.indent(N,M,T)+"<!-- ",M.state=O.InsideTag,S+=N.value,M.state=O.CloseTag,S+=" -->"+this.endline(N,M,T),M.state=O.None,this.closeNode(N,M,T),S},p.prototype.declaration=function(N,M,T){var S;return this.openNode(N,M,T),M.state=O.OpenTag,S=this.indent(N,M,T)+"<?xml",M.state=O.InsideTag,S+=' version="'+N.version+'"',N.encoding!=null&&(S+=' encoding="'+N.encoding+'"'),N.standalone!=null&&(S+=' standalone="'+N.standalone+'"'),M.state=O.CloseTag,S+=M.spaceBeforeSlash+"?>",S+=this.endline(N,M,T),M.state=O.None,this.closeNode(N,M,T),S},p.prototype.docType=function(N,M,T){var S,B,C,_,F;if(T||(T=0),this.openNode(N,M,T),M.state=O.OpenTag,_=this.indent(N,M,T),_+="<!DOCTYPE "+N.root().name,N.pubID&&N.sysID?_+=' PUBLIC "'+N.pubID+'" "'+N.sysID+'"':N.sysID&&(_+=' SYSTEM "'+N.sysID+'"'),N.children.length>0){for(_+=" [",_+=this.endline(N,M,T),M.state=O.InsideTag,B=0,C=(F=N.children).length;B<C;B++)S=F[B],_+=this.writeChildNode(S,M,T+1);M.state=O.CloseTag,_+="]"}return M.state=O.CloseTag,_+=M.spaceBeforeSlash+">",_+=this.endline(N,M,T),M.state=O.None,this.closeNode(N,M,T),_},p.prototype.element=function(N,M,T){var S,B,C,_,F,U,z,H,D,Q,X,et,nt,ut;for(D in T||(T=0),Q=!1,X="",this.openNode(N,M,T),M.state=O.OpenTag,X+=this.indent(N,M,T)+"<"+N.name,et=N.attribs)q.call(et,D)&&(S=et[D],X+=this.attribute(S,M,T));if(_=(C=N.children.length)===0?null:N.children[0],C===0||N.children.every(function(ct){return(ct.type===j.Text||ct.type===j.Raw)&&ct.value===""}))M.allowEmpty?(X+=">",M.state=O.CloseTag,X+="</"+N.name+">"+this.endline(N,M,T)):(M.state=O.CloseTag,X+=M.spaceBeforeSlash+"/>"+this.endline(N,M,T));else if(!M.pretty||C!==1||_.type!==j.Text&&_.type!==j.Raw||_.value==null){if(M.dontPrettyTextNodes){for(F=0,z=(nt=N.children).length;F<z;F++)if(((B=nt[F]).type===j.Text||B.type===j.Raw)&&B.value!=null){M.suppressPrettyCount++,Q=!0;break}}for(X+=">"+this.endline(N,M,T),M.state=O.InsideTag,U=0,H=(ut=N.children).length;U<H;U++)B=ut[U],X+=this.writeChildNode(B,M,T+1);M.state=O.CloseTag,X+=this.indent(N,M,T)+"</"+N.name+">",Q&&M.suppressPrettyCount--,X+=this.endline(N,M,T),M.state=O.None}else X+=">",M.state=O.InsideTag,M.suppressPrettyCount++,Q=!0,X+=this.writeChildNode(_,M,T+1),M.suppressPrettyCount--,Q=!1,M.state=O.CloseTag,X+="</"+N.name+">"+this.endline(N,M,T);return this.closeNode(N,M,T),X},p.prototype.writeChildNode=function(N,M,T){switch(N.type){case j.CData:return this.cdata(N,M,T);case j.Comment:return this.comment(N,M,T);case j.Element:return this.element(N,M,T);case j.Raw:return this.raw(N,M,T);case j.Text:return this.text(N,M,T);case j.ProcessingInstruction:return this.processingInstruction(N,M,T);case j.Dummy:return"";case j.Declaration:return this.declaration(N,M,T);case j.DocType:return this.docType(N,M,T);case j.AttributeDeclaration:return this.dtdAttList(N,M,T);case j.ElementDeclaration:return this.dtdElement(N,M,T);case j.EntityDeclaration:return this.dtdEntity(N,M,T);case j.NotationDeclaration:return this.dtdNotation(N,M,T);default:throw new Error("Unknown XML node type: "+N.constructor.name)}},p.prototype.processingInstruction=function(N,M,T){var S;return this.openNode(N,M,T),M.state=O.OpenTag,S=this.indent(N,M,T)+"<?",M.state=O.InsideTag,S+=N.target,N.value&&(S+=" "+N.value),M.state=O.CloseTag,S+=M.spaceBeforeSlash+"?>",S+=this.endline(N,M,T),M.state=O.None,this.closeNode(N,M,T),S},p.prototype.raw=function(N,M,T){var S;return this.openNode(N,M,T),M.state=O.OpenTag,S=this.indent(N,M,T),M.state=O.InsideTag,S+=N.value,M.state=O.CloseTag,S+=this.endline(N,M,T),M.state=O.None,this.closeNode(N,M,T),S},p.prototype.text=function(N,M,T){var S;return this.openNode(N,M,T),M.state=O.OpenTag,S=this.indent(N,M,T),M.state=O.InsideTag,S+=N.value,M.state=O.CloseTag,S+=this.endline(N,M,T),M.state=O.None,this.closeNode(N,M,T),S},p.prototype.dtdAttList=function(N,M,T){var S;return this.openNode(N,M,T),M.state=O.OpenTag,S=this.indent(N,M,T)+"<!ATTLIST",M.state=O.InsideTag,S+=" "+N.elementName+" "+N.attributeName+" "+N.attributeType,N.defaultValueType!=="#DEFAULT"&&(S+=" "+N.defaultValueType),N.defaultValue&&(S+=' "'+N.defaultValue+'"'),M.state=O.CloseTag,S+=M.spaceBeforeSlash+">"+this.endline(N,M,T),M.state=O.None,this.closeNode(N,M,T),S},p.prototype.dtdElement=function(N,M,T){var S;return this.openNode(N,M,T),M.state=O.OpenTag,S=this.indent(N,M,T)+"<!ELEMENT",M.state=O.InsideTag,S+=" "+N.name+" "+N.value,M.state=O.CloseTag,S+=M.spaceBeforeSlash+">"+this.endline(N,M,T),M.state=O.None,this.closeNode(N,M,T),S},p.prototype.dtdEntity=function(N,M,T){var S;return this.openNode(N,M,T),M.state=O.OpenTag,S=this.indent(N,M,T)+"<!ENTITY",M.state=O.InsideTag,N.pe&&(S+=" %"),S+=" "+N.name,N.value?S+=' "'+N.value+'"':(N.pubID&&N.sysID?S+=' PUBLIC "'+N.pubID+'" "'+N.sysID+'"':N.sysID&&(S+=' SYSTEM "'+N.sysID+'"'),N.nData&&(S+=" NDATA "+N.nData)),M.state=O.CloseTag,S+=M.spaceBeforeSlash+">"+this.endline(N,M,T),M.state=O.None,this.closeNode(N,M,T),S},p.prototype.dtdNotation=function(N,M,T){var S;return this.openNode(N,M,T),M.state=O.OpenTag,S=this.indent(N,M,T)+"<!NOTATION",M.state=O.InsideTag,S+=" "+N.name,N.pubID&&N.sysID?S+=' PUBLIC "'+N.pubID+'" "'+N.sysID+'"':N.pubID?S+=' PUBLIC "'+N.pubID+'"':N.sysID&&(S+=' SYSTEM "'+N.sysID+'"'),M.state=O.CloseTag,S+=M.spaceBeforeSlash+">"+this.endline(N,M,T),M.state=O.None,this.closeNode(N,M,T),S},p.prototype.openNode=function(N,M,T){},p.prototype.closeNode=function(N,M,T){},p.prototype.openAttribute=function(N,M,T){},p.prototype.closeAttribute=function(N,M,T){},p}()}).call(this)},6376:function($,w,b){(function(){var j,O,I,q,p,N,M,T,S={}.hasOwnProperty;T=b(9241).isObject,M=b(468),j=b(1737),O=b(4111),q=b(5529),I=b(7696),p=b(8012),N=b(4797),$.exports=function(B){function C(_,F,U){var z,H,D,Q,X,et;if(C.__super__.constructor.call(this,_),this.type=j.DocType,_.children){for(H=0,D=(Q=_.children).length;H<D;H++)if((z=Q[H]).type===j.Element){this.name=z.name;break}}this.documentObject=_,T(F)&&(F=(X=F).pubID,U=X.sysID),U==null&&(U=(et=[F,U])[0],F=et[1]),F!=null&&(this.pubID=this.stringify.dtdPubID(F)),U!=null&&(this.sysID=this.stringify.dtdSysID(U))}return function(_,F){for(var U in F)S.call(F,U)&&(_[U]=F[U]);function z(){this.constructor=_}z.prototype=F.prototype,_.prototype=new z,_.__super__=F.prototype}(C,B),Object.defineProperty(C.prototype,"entities",{get:function(){var _,F,U,z,H;for(z={},F=0,U=(H=this.children).length;F<U;F++)(_=H[F]).type!==j.EntityDeclaration||_.pe||(z[_.name]=_);return new N(z)}}),Object.defineProperty(C.prototype,"notations",{get:function(){var _,F,U,z,H;for(z={},F=0,U=(H=this.children).length;F<U;F++)(_=H[F]).type===j.NotationDeclaration&&(z[_.name]=_);return new N(z)}}),Object.defineProperty(C.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(C.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(C.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),C.prototype.element=function(_,F){var U;return U=new I(this,_,F),this.children.push(U),this},C.prototype.attList=function(_,F,U,z,H){var D;return D=new O(this,_,F,U,z,H),this.children.push(D),this},C.prototype.entity=function(_,F){var U;return U=new q(this,!1,_,F),this.children.push(U),this},C.prototype.pEntity=function(_,F){var U;return U=new q(this,!0,_,F),this.children.push(U),this},C.prototype.notation=function(_,F){var U;return U=new p(this,_,F),this.children.push(U),this},C.prototype.toString=function(_){return this.options.writer.docType(this,this.options.writer.filterOptions(_))},C.prototype.ele=function(_,F){return this.element(_,F)},C.prototype.att=function(_,F,U,z,H){return this.attList(_,F,U,z,H)},C.prototype.ent=function(_,F){return this.entity(_,F)},C.prototype.pent=function(_,F){return this.pEntity(_,F)},C.prototype.not=function(_,F){return this.notation(_,F)},C.prototype.up=function(){return this.root()||this.documentObject},C.prototype.isEqualNode=function(_){return!!C.__super__.isEqualNode.apply(this,arguments).isEqualNode(_)&&_.name===this.name&&_.publicId===this.publicId&&_.systemId===this.systemId},C}(M)}).call(this)},6383:($,w,b)=>{var j=b(2861).Buffer,O=b(295);function I(q,p,N){var M=p.length,T=O(p,q._cache);return q._cache=q._cache.slice(M),q._prev=j.concat([q._prev,N?p:T]),T}w.encrypt=function(q,p,N){for(var M,T=j.allocUnsafe(0);p.length;){if(q._cache.length===0&&(q._cache=q._cipher.encryptBlock(q._prev),q._prev=j.allocUnsafe(0)),!(q._cache.length<=p.length)){T=j.concat([T,I(q,p,N)]);break}M=q._cache.length,T=j.concat([T,I(q,p.slice(0,M),N)]),p=p.slice(M)}return T}},6413:($,w,b)=>{var j=b(7568),O=j.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),I=j.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),q=j.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),p=j.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(q),this.key("subjectPublicKey").bitstr())}),N=j.define("RelativeDistinguishedName",function(){this.setof(I)}),M=j.define("RDNSequence",function(){this.seqof(N)}),T=j.define("Name",function(){this.choice({rdnSequence:this.use(M)})}),S=j.define("Validity",function(){this.seq().obj(this.key("notBefore").use(O),this.key("notAfter").use(O))}),B=j.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),C=j.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(q),this.key("issuer").use(T),this.key("validity").use(S),this.key("subject").use(T),this.key("subjectPublicKeyInfo").use(p),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(B).optional())}),_=j.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(C),this.key("signatureAlgorithm").use(q),this.key("signatureValue").bitstr())});$.exports=_},6427:($,w,b)=>{var j=b(8393).Buffer,O=j.isEncoding||function(_){switch((_=""+_)&&_.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 I(_){var F;switch(this.encoding=function(U){var z=function(H){if(!H)return"utf8";for(var D;;)switch(H){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 H;default:if(D)return;H=(""+H).toLowerCase(),D=!0}}(U);if(typeof z!="string"&&(j.isEncoding===O||!O(U)))throw new Error("Unknown encoding: "+U);return z||U}(_),this.encoding){case"utf16le":this.text=N,this.end=M,F=4;break;case"utf8":this.fillLast=p,F=4;break;case"base64":this.text=T,this.end=S,F=3;break;default:return this.write=B,void(this.end=C)}this.lastNeed=0,this.lastTotal=0,this.lastChar=j.allocUnsafe(F)}function q(_){return _<=127?0:_>>5==6?2:_>>4==14?3:_>>3==30?4:_>>6==2?-1:-2}function p(_){var F=this.lastTotal-this.lastNeed,U=function(z,H){if((192&H[0])!=128)return z.lastNeed=0,"�";if(z.lastNeed>1&&H.length>1){if((192&H[1])!=128)return z.lastNeed=1,"�";if(z.lastNeed>2&&H.length>2&&(192&H[2])!=128)return z.lastNeed=2,"�"}}(this,_);return U!==void 0?U:this.lastNeed<=_.length?(_.copy(this.lastChar,F,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(_.copy(this.lastChar,F,0,_.length),void(this.lastNeed-=_.length))}function N(_,F){if((_.length-F)%2==0){var U=_.toString("utf16le",F);if(U){var z=U.charCodeAt(U.length-1);if(z>=55296&&z<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=_[_.length-2],this.lastChar[1]=_[_.length-1],U.slice(0,-1)}return U}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=_[_.length-1],_.toString("utf16le",F,_.length-1)}function M(_){var F=_&&_.length?this.write(_):"";if(this.lastNeed){var U=this.lastTotal-this.lastNeed;return F+this.lastChar.toString("utf16le",0,U)}return F}function T(_,F){var U=(_.length-F)%3;return U===0?_.toString("base64",F):(this.lastNeed=3-U,this.lastTotal=3,U===1?this.lastChar[0]=_[_.length-1]:(this.lastChar[0]=_[_.length-2],this.lastChar[1]=_[_.length-1]),_.toString("base64",F,_.length-U))}function S(_){var F=_&&_.length?this.write(_):"";return this.lastNeed?F+this.lastChar.toString("base64",0,3-this.lastNeed):F}function B(_){return _.toString(this.encoding)}function C(_){return _&&_.length?this.write(_):""}w.I=I,I.prototype.write=function(_){if(_.length===0)return"";var F,U;if(this.lastNeed){if((F=this.fillLast(_))===void 0)return"";U=this.lastNeed,this.lastNeed=0}else U=0;return U<_.length?F?F+this.text(_,U):this.text(_,U):F||""},I.prototype.end=function(_){var F=_&&_.length?this.write(_):"";return this.lastNeed?F+"�":F},I.prototype.text=function(_,F){var U=function(H,D,Q){var X=D.length-1;if(X<Q)return 0;var et=q(D[X]);return et>=0?(et>0&&(H.lastNeed=et-1),et):--X<Q||et===-2?0:(et=q(D[X]))>=0?(et>0&&(H.lastNeed=et-2),et):--X<Q||et===-2?0:(et=q(D[X]))>=0?(et>0&&(et===2?et=0:H.lastNeed=et-3),et):0}(this,_,F);if(!this.lastNeed)return _.toString("utf8",F);this.lastTotal=U;var z=_.length-(U-this.lastNeed);return _.copy(this.lastChar,0,z),_.toString("utf8",F,z)},I.prototype.fillLast=function(_){if(this.lastNeed<=_.length)return _.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);_.copy(this.lastChar,this.lastTotal-this.lastNeed,0,_.length),this.lastNeed-=_.length}},6465:function($,w){(function(){w.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:`
130
+ `},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},6473:function($,w,b){(function(j,O){function I(t,h){if(!t)throw new Error(h||"Assertion failed")}function q(t,h){t.super_=h;var l=function(){};l.prototype=h.prototype,t.prototype=new l,t.prototype.constructor=t}function p(t,h,l){if(p.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,t!==null&&(h!=="le"&&h!=="be"||(l=h,h=10),this._init(t||0,h||10,l||"be"))}var N;typeof j=="object"?j.exports=p:O.BN=p,p.BN=p,p.wordSize=26;try{N=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:b(6089).Buffer}catch{}function M(t,h){var l=t.charCodeAt(h);return l>=65&&l<=70?l-55:l>=97&&l<=102?l-87:l-48&15}function T(t,h,l){var a=M(t,l);return l-1>=h&&(a|=M(t,l-1)<<4),a}function S(t,h,l,a){for(var r=0,v=Math.min(t.length,l),A=h;A<v;A++){var W=t.charCodeAt(A)-48;r*=a,r+=W>=49?W-49+10:W>=17?W-17+10:W}return r}p.isBN=function(t){return t instanceof p||t!==null&&typeof t=="object"&&t.constructor.wordSize===p.wordSize&&Array.isArray(t.words)},p.max=function(t,h){return t.cmp(h)>0?t:h},p.min=function(t,h){return t.cmp(h)<0?t:h},p.prototype._init=function(t,h,l){if(typeof t=="number")return this._initNumber(t,h,l);if(typeof t=="object")return this._initArray(t,h,l);h==="hex"&&(h=16),I(h===(0|h)&&h>=2&&h<=36);var a=0;(t=t.toString().replace(/\s+/g,""))[0]==="-"&&(a++,this.negative=1),a<t.length&&(h===16?this._parseHex(t,a,l):(this._parseBase(t,h,a),l==="le"&&this._initArray(this.toArray(),h,l)))},p.prototype._initNumber=function(t,h,l){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):(I(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),l==="le"&&this._initArray(this.toArray(),h,l)},p.prototype._initArray=function(t,h,l){if(I(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 a=0;a<this.length;a++)this.words[a]=0;var r,v,A=0;if(l==="be")for(a=t.length-1,r=0;a>=0;a-=3)v=t[a]|t[a-1]<<8|t[a-2]<<16,this.words[r]|=v<<A&67108863,this.words[r+1]=v>>>26-A&67108863,(A+=24)>=26&&(A-=26,r++);else if(l==="le")for(a=0,r=0;a<t.length;a+=3)v=t[a]|t[a+1]<<8|t[a+2]<<16,this.words[r]|=v<<A&67108863,this.words[r+1]=v>>>26-A&67108863,(A+=24)>=26&&(A-=26,r++);return this.strip()},p.prototype._parseHex=function(t,h,l){this.length=Math.ceil((t.length-h)/6),this.words=new Array(this.length);for(var a=0;a<this.length;a++)this.words[a]=0;var r,v=0,A=0;if(l==="be")for(a=t.length-1;a>=h;a-=2)r=T(t,h,a)<<v,this.words[A]|=67108863&r,v>=18?(v-=18,A+=1,this.words[A]|=r>>>26):v+=8;else for(a=(t.length-h)%2==0?h+1:h;a<t.length;a+=2)r=T(t,h,a)<<v,this.words[A]|=67108863&r,v>=18?(v-=18,A+=1,this.words[A]|=r>>>26):v+=8;this.strip()},p.prototype._parseBase=function(t,h,l){this.words=[0],this.length=1;for(var a=0,r=1;r<=67108863;r*=h)a++;a--,r=r/h|0;for(var v=t.length-l,A=v%a,W=Math.min(v,v-A)+l,J=0,K=l;K<W;K+=a)J=S(t,K,K+a,h),this.imuln(r),this.words[0]+J<67108864?this.words[0]+=J:this._iaddn(J);if(A!==0){var G=1;for(J=S(t,K,t.length,h),K=0;K<A;K++)G*=h;this.imuln(G),this.words[0]+J<67108864?this.words[0]+=J:this._iaddn(J)}this.strip()},p.prototype.copy=function(t){t.words=new Array(this.length);for(var h=0;h<this.length;h++)t.words[h]=this.words[h];t.length=this.length,t.negative=this.negative,t.red=this.red},p.prototype.clone=function(){var t=new p(null);return this.copy(t),t},p.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},p.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},p.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},p.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var B=["","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"],C=[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],_=[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 F(t,h,l){l.negative=h.negative^t.negative;var a=t.length+h.length|0;l.length=a,a=a-1|0;var r=0|t.words[0],v=0|h.words[0],A=r*v,W=67108863&A,J=A/67108864|0;l.words[0]=W;for(var K=1;K<a;K++){for(var G=J>>>26,Y=67108863&J,at=Math.min(K,h.length-1),ot=Math.max(0,K-t.length+1);ot<=at;ot++){var ht=K-ot|0;G+=(A=(r=0|t.words[ht])*(v=0|h.words[ot])+Y)/67108864|0,Y=67108863&A}l.words[K]=0|Y,J=0|G}return J!==0?l.words[K]=0|J:l.length--,l.strip()}p.prototype.toString=function(t,h){var l;if(h=0|h||1,(t=t||10)===16||t==="hex"){l="";for(var a=0,r=0,v=0;v<this.length;v++){var A=this.words[v],W=(16777215&(A<<a|r)).toString(16);r=A>>>24-a&16777215,(a+=2)>=26&&(a-=26,v--),l=r!==0||v!==this.length-1?B[6-W.length]+W+l:W+l}for(r!==0&&(l=r.toString(16)+l);l.length%h!=0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}if(t===(0|t)&&t>=2&&t<=36){var J=C[t],K=_[t];l="";var G=this.clone();for(G.negative=0;!G.isZero();){var Y=G.modn(K).toString(t);l=(G=G.idivn(K)).isZero()?Y+l:B[J-Y.length]+Y+l}for(this.isZero()&&(l="0"+l);l.length%h!=0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}I(!1,"Base should be between 2 and 36")},p.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&&I(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-t:t},p.prototype.toJSON=function(){return this.toString(16)},p.prototype.toBuffer=function(t,h){return I(N!==void 0),this.toArrayLike(N,t,h)},p.prototype.toArray=function(t,h){return this.toArrayLike(Array,t,h)},p.prototype.toArrayLike=function(t,h,l){var a=this.byteLength(),r=l||Math.max(1,a);I(a<=r,"byte array longer than desired length"),I(r>0,"Requested array length <= 0"),this.strip();var v,A,W=h==="le",J=new t(r),K=this.clone();if(W){for(A=0;!K.isZero();A++)v=K.andln(255),K.iushrn(8),J[A]=v;for(;A<r;A++)J[A]=0}else{for(A=0;A<r-a;A++)J[A]=0;for(A=0;!K.isZero();A++)v=K.andln(255),K.iushrn(8),J[r-A-1]=v}return J},Math.clz32?p.prototype._countBits=function(t){return 32-Math.clz32(t)}:p.prototype._countBits=function(t){var h=t,l=0;return h>=4096&&(l+=13,h>>>=13),h>=64&&(l+=7,h>>>=7),h>=8&&(l+=4,h>>>=4),h>=2&&(l+=2,h>>>=2),l+h},p.prototype._zeroBits=function(t){if(t===0)return 26;var h=t,l=0;return 8191&h||(l+=13,h>>>=13),127&h||(l+=7,h>>>=7),15&h||(l+=4,h>>>=4),3&h||(l+=2,h>>>=2),1&h||l++,l},p.prototype.bitLength=function(){var t=this.words[this.length-1],h=this._countBits(t);return 26*(this.length-1)+h},p.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,h=0;h<this.length;h++){var l=this._zeroBits(this.words[h]);if(t+=l,l!==26)break}return t},p.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},p.prototype.toTwos=function(t){return this.negative!==0?this.abs().inotn(t).iaddn(1):this.clone()},p.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},p.prototype.isNeg=function(){return this.negative!==0},p.prototype.neg=function(){return this.clone().ineg()},p.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},p.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var h=0;h<t.length;h++)this.words[h]=this.words[h]|t.words[h];return this.strip()},p.prototype.ior=function(t){return I(!(this.negative|t.negative)),this.iuor(t)},p.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},p.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},p.prototype.iuand=function(t){var h;h=this.length>t.length?t:this;for(var l=0;l<h.length;l++)this.words[l]=this.words[l]&t.words[l];return this.length=h.length,this.strip()},p.prototype.iand=function(t){return I(!(this.negative|t.negative)),this.iuand(t)},p.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},p.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},p.prototype.iuxor=function(t){var h,l;this.length>t.length?(h=this,l=t):(h=t,l=this);for(var a=0;a<l.length;a++)this.words[a]=h.words[a]^l.words[a];if(this!==h)for(;a<h.length;a++)this.words[a]=h.words[a];return this.length=h.length,this.strip()},p.prototype.ixor=function(t){return I(!(this.negative|t.negative)),this.iuxor(t)},p.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},p.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},p.prototype.inotn=function(t){I(typeof t=="number"&&t>=0);var h=0|Math.ceil(t/26),l=t%26;this._expand(h),l>0&&h--;for(var a=0;a<h;a++)this.words[a]=67108863&~this.words[a];return l>0&&(this.words[a]=~this.words[a]&67108863>>26-l),this.strip()},p.prototype.notn=function(t){return this.clone().inotn(t)},p.prototype.setn=function(t,h){I(typeof t=="number"&&t>=0);var l=t/26|0,a=t%26;return this._expand(l+1),this.words[l]=h?this.words[l]|1<<a:this.words[l]&~(1<<a),this.strip()},p.prototype.iadd=function(t){var h,l,a;if(this.negative!==0&&t.negative===0)return this.negative=0,h=this.isub(t),this.negative^=1,this._normSign();if(this.negative===0&&t.negative!==0)return t.negative=0,h=this.isub(t),t.negative=1,h._normSign();this.length>t.length?(l=this,a=t):(l=t,a=this);for(var r=0,v=0;v<a.length;v++)h=(0|l.words[v])+(0|a.words[v])+r,this.words[v]=67108863&h,r=h>>>26;for(;r!==0&&v<l.length;v++)h=(0|l.words[v])+r,this.words[v]=67108863&h,r=h>>>26;if(this.length=l.length,r!==0)this.words[this.length]=r,this.length++;else if(l!==this)for(;v<l.length;v++)this.words[v]=l.words[v];return this},p.prototype.add=function(t){var h;return t.negative!==0&&this.negative===0?(t.negative=0,h=this.sub(t),t.negative^=1,h):t.negative===0&&this.negative!==0?(this.negative=0,h=t.sub(this),this.negative=1,h):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},p.prototype.isub=function(t){if(t.negative!==0){t.negative=0;var h=this.iadd(t);return t.negative=1,h._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var l,a,r=this.cmp(t);if(r===0)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(l=this,a=t):(l=t,a=this);for(var v=0,A=0;A<a.length;A++)v=(h=(0|l.words[A])-(0|a.words[A])+v)>>26,this.words[A]=67108863&h;for(;v!==0&&A<l.length;A++)v=(h=(0|l.words[A])+v)>>26,this.words[A]=67108863&h;if(v===0&&A<l.length&&l!==this)for(;A<l.length;A++)this.words[A]=l.words[A];return this.length=Math.max(this.length,A),l!==this&&(this.negative=1),this.strip()},p.prototype.sub=function(t){return this.clone().isub(t)};var U=function(t,h,l){var a,r,v,A=t.words,W=h.words,J=l.words,K=0,G=0|A[0],Y=8191&G,at=G>>>13,ot=0|A[1],ht=8191&ot,tt=ot>>>13,it=0|A[2],Z=8191&it,rt=it>>>13,wt=0|A[3],gt=8191&wt,St=wt>>>13,Lt=0|A[4],At=8191&Lt,jt=Lt>>>13,Qt=0|A[5],Dt=8191&Qt,zt=Qt>>>13,ft=0|A[6],pt=8191&ft,mt=ft>>>13,Mt=0|A[7],xt=8191&Mt,kt=Mt>>>13,$t=0|A[8],Pt=8191&$t,yt=$t>>>13,dt=0|A[9],lt=8191&dt,_t=dt>>>13,qt=0|W[0],It=8191&qt,Nt=qt>>>13,be=0|W[1],Vt=8191&be,Jt=be>>>13,Ee=0|W[2],Ht=8191&Ee,ae=Ee>>>13,Ne=0|W[3],Gt=8191&Ne,se=Ne>>>13,qe=0|W[4],Zt=8191&qe,he=qe>>>13,Qe=0|W[5],Yt=8191&Qe,ce=Qe>>>13,Ge=0|W[6],Ut=8191&Ge,te=Ge>>>13,He=0|W[7],ne=8191&He,me=He>>>13,tr=0|W[8],ie=8191&tr,de=tr>>>13,rr=0|W[9],oe=8191&rr,ge=rr>>>13;l.negative=t.negative^h.negative,l.length=19;var We=(K+(a=Math.imul(Y,It))|0)+((8191&(r=(r=Math.imul(Y,Nt))+Math.imul(at,It)|0))<<13)|0;K=((v=Math.imul(at,Nt))+(r>>>13)|0)+(We>>>26)|0,We&=67108863,a=Math.imul(ht,It),r=(r=Math.imul(ht,Nt))+Math.imul(tt,It)|0,v=Math.imul(tt,Nt);var $e=(K+(a=a+Math.imul(Y,Vt)|0)|0)+((8191&(r=(r=r+Math.imul(Y,Jt)|0)+Math.imul(at,Vt)|0))<<13)|0;K=((v=v+Math.imul(at,Jt)|0)+(r>>>13)|0)+($e>>>26)|0,$e&=67108863,a=Math.imul(Z,It),r=(r=Math.imul(Z,Nt))+Math.imul(rt,It)|0,v=Math.imul(rt,Nt),a=a+Math.imul(ht,Vt)|0,r=(r=r+Math.imul(ht,Jt)|0)+Math.imul(tt,Vt)|0,v=v+Math.imul(tt,Jt)|0;var cr=(K+(a=a+Math.imul(Y,Ht)|0)|0)+((8191&(r=(r=r+Math.imul(Y,ae)|0)+Math.imul(at,Ht)|0))<<13)|0;K=((v=v+Math.imul(at,ae)|0)+(r>>>13)|0)+(cr>>>26)|0,cr&=67108863,a=Math.imul(gt,It),r=(r=Math.imul(gt,Nt))+Math.imul(St,It)|0,v=Math.imul(St,Nt),a=a+Math.imul(Z,Vt)|0,r=(r=r+Math.imul(Z,Jt)|0)+Math.imul(rt,Vt)|0,v=v+Math.imul(rt,Jt)|0,a=a+Math.imul(ht,Ht)|0,r=(r=r+Math.imul(ht,ae)|0)+Math.imul(tt,Ht)|0,v=v+Math.imul(tt,ae)|0;var mr=(K+(a=a+Math.imul(Y,Gt)|0)|0)+((8191&(r=(r=r+Math.imul(Y,se)|0)+Math.imul(at,Gt)|0))<<13)|0;K=((v=v+Math.imul(at,se)|0)+(r>>>13)|0)+(mr>>>26)|0,mr&=67108863,a=Math.imul(At,It),r=(r=Math.imul(At,Nt))+Math.imul(jt,It)|0,v=Math.imul(jt,Nt),a=a+Math.imul(gt,Vt)|0,r=(r=r+Math.imul(gt,Jt)|0)+Math.imul(St,Vt)|0,v=v+Math.imul(St,Jt)|0,a=a+Math.imul(Z,Ht)|0,r=(r=r+Math.imul(Z,ae)|0)+Math.imul(rt,Ht)|0,v=v+Math.imul(rt,ae)|0,a=a+Math.imul(ht,Gt)|0,r=(r=r+Math.imul(ht,se)|0)+Math.imul(tt,Gt)|0,v=v+Math.imul(tt,se)|0;var hr=(K+(a=a+Math.imul(Y,Zt)|0)|0)+((8191&(r=(r=r+Math.imul(Y,he)|0)+Math.imul(at,Zt)|0))<<13)|0;K=((v=v+Math.imul(at,he)|0)+(r>>>13)|0)+(hr>>>26)|0,hr&=67108863,a=Math.imul(Dt,It),r=(r=Math.imul(Dt,Nt))+Math.imul(zt,It)|0,v=Math.imul(zt,Nt),a=a+Math.imul(At,Vt)|0,r=(r=r+Math.imul(At,Jt)|0)+Math.imul(jt,Vt)|0,v=v+Math.imul(jt,Jt)|0,a=a+Math.imul(gt,Ht)|0,r=(r=r+Math.imul(gt,ae)|0)+Math.imul(St,Ht)|0,v=v+Math.imul(St,ae)|0,a=a+Math.imul(Z,Gt)|0,r=(r=r+Math.imul(Z,se)|0)+Math.imul(rt,Gt)|0,v=v+Math.imul(rt,se)|0,a=a+Math.imul(ht,Zt)|0,r=(r=r+Math.imul(ht,he)|0)+Math.imul(tt,Zt)|0,v=v+Math.imul(tt,he)|0;var gr=(K+(a=a+Math.imul(Y,Yt)|0)|0)+((8191&(r=(r=r+Math.imul(Y,ce)|0)+Math.imul(at,Yt)|0))<<13)|0;K=((v=v+Math.imul(at,ce)|0)+(r>>>13)|0)+(gr>>>26)|0,gr&=67108863,a=Math.imul(pt,It),r=(r=Math.imul(pt,Nt))+Math.imul(mt,It)|0,v=Math.imul(mt,Nt),a=a+Math.imul(Dt,Vt)|0,r=(r=r+Math.imul(Dt,Jt)|0)+Math.imul(zt,Vt)|0,v=v+Math.imul(zt,Jt)|0,a=a+Math.imul(At,Ht)|0,r=(r=r+Math.imul(At,ae)|0)+Math.imul(jt,Ht)|0,v=v+Math.imul(jt,ae)|0,a=a+Math.imul(gt,Gt)|0,r=(r=r+Math.imul(gt,se)|0)+Math.imul(St,Gt)|0,v=v+Math.imul(St,se)|0,a=a+Math.imul(Z,Zt)|0,r=(r=r+Math.imul(Z,he)|0)+Math.imul(rt,Zt)|0,v=v+Math.imul(rt,he)|0,a=a+Math.imul(ht,Yt)|0,r=(r=r+Math.imul(ht,ce)|0)+Math.imul(tt,Yt)|0,v=v+Math.imul(tt,ce)|0;var vr=(K+(a=a+Math.imul(Y,Ut)|0)|0)+((8191&(r=(r=r+Math.imul(Y,te)|0)+Math.imul(at,Ut)|0))<<13)|0;K=((v=v+Math.imul(at,te)|0)+(r>>>13)|0)+(vr>>>26)|0,vr&=67108863,a=Math.imul(xt,It),r=(r=Math.imul(xt,Nt))+Math.imul(kt,It)|0,v=Math.imul(kt,Nt),a=a+Math.imul(pt,Vt)|0,r=(r=r+Math.imul(pt,Jt)|0)+Math.imul(mt,Vt)|0,v=v+Math.imul(mt,Jt)|0,a=a+Math.imul(Dt,Ht)|0,r=(r=r+Math.imul(Dt,ae)|0)+Math.imul(zt,Ht)|0,v=v+Math.imul(zt,ae)|0,a=a+Math.imul(At,Gt)|0,r=(r=r+Math.imul(At,se)|0)+Math.imul(jt,Gt)|0,v=v+Math.imul(jt,se)|0,a=a+Math.imul(gt,Zt)|0,r=(r=r+Math.imul(gt,he)|0)+Math.imul(St,Zt)|0,v=v+Math.imul(St,he)|0,a=a+Math.imul(Z,Yt)|0,r=(r=r+Math.imul(Z,ce)|0)+Math.imul(rt,Yt)|0,v=v+Math.imul(rt,ce)|0,a=a+Math.imul(ht,Ut)|0,r=(r=r+Math.imul(ht,te)|0)+Math.imul(tt,Ut)|0,v=v+Math.imul(tt,te)|0;var yr=(K+(a=a+Math.imul(Y,ne)|0)|0)+((8191&(r=(r=r+Math.imul(Y,me)|0)+Math.imul(at,ne)|0))<<13)|0;K=((v=v+Math.imul(at,me)|0)+(r>>>13)|0)+(yr>>>26)|0,yr&=67108863,a=Math.imul(Pt,It),r=(r=Math.imul(Pt,Nt))+Math.imul(yt,It)|0,v=Math.imul(yt,Nt),a=a+Math.imul(xt,Vt)|0,r=(r=r+Math.imul(xt,Jt)|0)+Math.imul(kt,Vt)|0,v=v+Math.imul(kt,Jt)|0,a=a+Math.imul(pt,Ht)|0,r=(r=r+Math.imul(pt,ae)|0)+Math.imul(mt,Ht)|0,v=v+Math.imul(mt,ae)|0,a=a+Math.imul(Dt,Gt)|0,r=(r=r+Math.imul(Dt,se)|0)+Math.imul(zt,Gt)|0,v=v+Math.imul(zt,se)|0,a=a+Math.imul(At,Zt)|0,r=(r=r+Math.imul(At,he)|0)+Math.imul(jt,Zt)|0,v=v+Math.imul(jt,he)|0,a=a+Math.imul(gt,Yt)|0,r=(r=r+Math.imul(gt,ce)|0)+Math.imul(St,Yt)|0,v=v+Math.imul(St,ce)|0,a=a+Math.imul(Z,Ut)|0,r=(r=r+Math.imul(Z,te)|0)+Math.imul(rt,Ut)|0,v=v+Math.imul(rt,te)|0,a=a+Math.imul(ht,ne)|0,r=(r=r+Math.imul(ht,me)|0)+Math.imul(tt,ne)|0,v=v+Math.imul(tt,me)|0;var br=(K+(a=a+Math.imul(Y,ie)|0)|0)+((8191&(r=(r=r+Math.imul(Y,de)|0)+Math.imul(at,ie)|0))<<13)|0;K=((v=v+Math.imul(at,de)|0)+(r>>>13)|0)+(br>>>26)|0,br&=67108863,a=Math.imul(lt,It),r=(r=Math.imul(lt,Nt))+Math.imul(_t,It)|0,v=Math.imul(_t,Nt),a=a+Math.imul(Pt,Vt)|0,r=(r=r+Math.imul(Pt,Jt)|0)+Math.imul(yt,Vt)|0,v=v+Math.imul(yt,Jt)|0,a=a+Math.imul(xt,Ht)|0,r=(r=r+Math.imul(xt,ae)|0)+Math.imul(kt,Ht)|0,v=v+Math.imul(kt,ae)|0,a=a+Math.imul(pt,Gt)|0,r=(r=r+Math.imul(pt,se)|0)+Math.imul(mt,Gt)|0,v=v+Math.imul(mt,se)|0,a=a+Math.imul(Dt,Zt)|0,r=(r=r+Math.imul(Dt,he)|0)+Math.imul(zt,Zt)|0,v=v+Math.imul(zt,he)|0,a=a+Math.imul(At,Yt)|0,r=(r=r+Math.imul(At,ce)|0)+Math.imul(jt,Yt)|0,v=v+Math.imul(jt,ce)|0,a=a+Math.imul(gt,Ut)|0,r=(r=r+Math.imul(gt,te)|0)+Math.imul(St,Ut)|0,v=v+Math.imul(St,te)|0,a=a+Math.imul(Z,ne)|0,r=(r=r+Math.imul(Z,me)|0)+Math.imul(rt,ne)|0,v=v+Math.imul(rt,me)|0,a=a+Math.imul(ht,ie)|0,r=(r=r+Math.imul(ht,de)|0)+Math.imul(tt,ie)|0,v=v+Math.imul(tt,de)|0;var lr=(K+(a=a+Math.imul(Y,oe)|0)|0)+((8191&(r=(r=r+Math.imul(Y,ge)|0)+Math.imul(at,oe)|0))<<13)|0;K=((v=v+Math.imul(at,ge)|0)+(r>>>13)|0)+(lr>>>26)|0,lr&=67108863,a=Math.imul(lt,Vt),r=(r=Math.imul(lt,Jt))+Math.imul(_t,Vt)|0,v=Math.imul(_t,Jt),a=a+Math.imul(Pt,Ht)|0,r=(r=r+Math.imul(Pt,ae)|0)+Math.imul(yt,Ht)|0,v=v+Math.imul(yt,ae)|0,a=a+Math.imul(xt,Gt)|0,r=(r=r+Math.imul(xt,se)|0)+Math.imul(kt,Gt)|0,v=v+Math.imul(kt,se)|0,a=a+Math.imul(pt,Zt)|0,r=(r=r+Math.imul(pt,he)|0)+Math.imul(mt,Zt)|0,v=v+Math.imul(mt,he)|0,a=a+Math.imul(Dt,Yt)|0,r=(r=r+Math.imul(Dt,ce)|0)+Math.imul(zt,Yt)|0,v=v+Math.imul(zt,ce)|0,a=a+Math.imul(At,Ut)|0,r=(r=r+Math.imul(At,te)|0)+Math.imul(jt,Ut)|0,v=v+Math.imul(jt,te)|0,a=a+Math.imul(gt,ne)|0,r=(r=r+Math.imul(gt,me)|0)+Math.imul(St,ne)|0,v=v+Math.imul(St,me)|0,a=a+Math.imul(Z,ie)|0,r=(r=r+Math.imul(Z,de)|0)+Math.imul(rt,ie)|0,v=v+Math.imul(rt,de)|0;var wr=(K+(a=a+Math.imul(ht,oe)|0)|0)+((8191&(r=(r=r+Math.imul(ht,ge)|0)+Math.imul(tt,oe)|0))<<13)|0;K=((v=v+Math.imul(tt,ge)|0)+(r>>>13)|0)+(wr>>>26)|0,wr&=67108863,a=Math.imul(lt,Ht),r=(r=Math.imul(lt,ae))+Math.imul(_t,Ht)|0,v=Math.imul(_t,ae),a=a+Math.imul(Pt,Gt)|0,r=(r=r+Math.imul(Pt,se)|0)+Math.imul(yt,Gt)|0,v=v+Math.imul(yt,se)|0,a=a+Math.imul(xt,Zt)|0,r=(r=r+Math.imul(xt,he)|0)+Math.imul(kt,Zt)|0,v=v+Math.imul(kt,he)|0,a=a+Math.imul(pt,Yt)|0,r=(r=r+Math.imul(pt,ce)|0)+Math.imul(mt,Yt)|0,v=v+Math.imul(mt,ce)|0,a=a+Math.imul(Dt,Ut)|0,r=(r=r+Math.imul(Dt,te)|0)+Math.imul(zt,Ut)|0,v=v+Math.imul(zt,te)|0,a=a+Math.imul(At,ne)|0,r=(r=r+Math.imul(At,me)|0)+Math.imul(jt,ne)|0,v=v+Math.imul(jt,me)|0,a=a+Math.imul(gt,ie)|0,r=(r=r+Math.imul(gt,de)|0)+Math.imul(St,ie)|0,v=v+Math.imul(St,de)|0;var fr=(K+(a=a+Math.imul(Z,oe)|0)|0)+((8191&(r=(r=r+Math.imul(Z,ge)|0)+Math.imul(rt,oe)|0))<<13)|0;K=((v=v+Math.imul(rt,ge)|0)+(r>>>13)|0)+(fr>>>26)|0,fr&=67108863,a=Math.imul(lt,Gt),r=(r=Math.imul(lt,se))+Math.imul(_t,Gt)|0,v=Math.imul(_t,se),a=a+Math.imul(Pt,Zt)|0,r=(r=r+Math.imul(Pt,he)|0)+Math.imul(yt,Zt)|0,v=v+Math.imul(yt,he)|0,a=a+Math.imul(xt,Yt)|0,r=(r=r+Math.imul(xt,ce)|0)+Math.imul(kt,Yt)|0,v=v+Math.imul(kt,ce)|0,a=a+Math.imul(pt,Ut)|0,r=(r=r+Math.imul(pt,te)|0)+Math.imul(mt,Ut)|0,v=v+Math.imul(mt,te)|0,a=a+Math.imul(Dt,ne)|0,r=(r=r+Math.imul(Dt,me)|0)+Math.imul(zt,ne)|0,v=v+Math.imul(zt,me)|0,a=a+Math.imul(At,ie)|0,r=(r=r+Math.imul(At,de)|0)+Math.imul(jt,ie)|0,v=v+Math.imul(jt,de)|0;var _r=(K+(a=a+Math.imul(gt,oe)|0)|0)+((8191&(r=(r=r+Math.imul(gt,ge)|0)+Math.imul(St,oe)|0))<<13)|0;K=((v=v+Math.imul(St,ge)|0)+(r>>>13)|0)+(_r>>>26)|0,_r&=67108863,a=Math.imul(lt,Zt),r=(r=Math.imul(lt,he))+Math.imul(_t,Zt)|0,v=Math.imul(_t,he),a=a+Math.imul(Pt,Yt)|0,r=(r=r+Math.imul(Pt,ce)|0)+Math.imul(yt,Yt)|0,v=v+Math.imul(yt,ce)|0,a=a+Math.imul(xt,Ut)|0,r=(r=r+Math.imul(xt,te)|0)+Math.imul(kt,Ut)|0,v=v+Math.imul(kt,te)|0,a=a+Math.imul(pt,ne)|0,r=(r=r+Math.imul(pt,me)|0)+Math.imul(mt,ne)|0,v=v+Math.imul(mt,me)|0,a=a+Math.imul(Dt,ie)|0,r=(r=r+Math.imul(Dt,de)|0)+Math.imul(zt,ie)|0,v=v+Math.imul(zt,de)|0;var Mr=(K+(a=a+Math.imul(At,oe)|0)|0)+((8191&(r=(r=r+Math.imul(At,ge)|0)+Math.imul(jt,oe)|0))<<13)|0;K=((v=v+Math.imul(jt,ge)|0)+(r>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,a=Math.imul(lt,Yt),r=(r=Math.imul(lt,ce))+Math.imul(_t,Yt)|0,v=Math.imul(_t,ce),a=a+Math.imul(Pt,Ut)|0,r=(r=r+Math.imul(Pt,te)|0)+Math.imul(yt,Ut)|0,v=v+Math.imul(yt,te)|0,a=a+Math.imul(xt,ne)|0,r=(r=r+Math.imul(xt,me)|0)+Math.imul(kt,ne)|0,v=v+Math.imul(kt,me)|0,a=a+Math.imul(pt,ie)|0,r=(r=r+Math.imul(pt,de)|0)+Math.imul(mt,ie)|0,v=v+Math.imul(mt,de)|0;var pr=(K+(a=a+Math.imul(Dt,oe)|0)|0)+((8191&(r=(r=r+Math.imul(Dt,ge)|0)+Math.imul(zt,oe)|0))<<13)|0;K=((v=v+Math.imul(zt,ge)|0)+(r>>>13)|0)+(pr>>>26)|0,pr&=67108863,a=Math.imul(lt,Ut),r=(r=Math.imul(lt,te))+Math.imul(_t,Ut)|0,v=Math.imul(_t,te),a=a+Math.imul(Pt,ne)|0,r=(r=r+Math.imul(Pt,me)|0)+Math.imul(yt,ne)|0,v=v+Math.imul(yt,me)|0,a=a+Math.imul(xt,ie)|0,r=(r=r+Math.imul(xt,de)|0)+Math.imul(kt,ie)|0,v=v+Math.imul(kt,de)|0;var Le=(K+(a=a+Math.imul(pt,oe)|0)|0)+((8191&(r=(r=r+Math.imul(pt,ge)|0)+Math.imul(mt,oe)|0))<<13)|0;K=((v=v+Math.imul(mt,ge)|0)+(r>>>13)|0)+(Le>>>26)|0,Le&=67108863,a=Math.imul(lt,ne),r=(r=Math.imul(lt,me))+Math.imul(_t,ne)|0,v=Math.imul(_t,me),a=a+Math.imul(Pt,ie)|0,r=(r=r+Math.imul(Pt,de)|0)+Math.imul(yt,ie)|0,v=v+Math.imul(yt,de)|0;var De=(K+(a=a+Math.imul(xt,oe)|0)|0)+((8191&(r=(r=r+Math.imul(xt,ge)|0)+Math.imul(kt,oe)|0))<<13)|0;K=((v=v+Math.imul(kt,ge)|0)+(r>>>13)|0)+(De>>>26)|0,De&=67108863,a=Math.imul(lt,ie),r=(r=Math.imul(lt,de))+Math.imul(_t,ie)|0,v=Math.imul(_t,de);var xr=(K+(a=a+Math.imul(Pt,oe)|0)|0)+((8191&(r=(r=r+Math.imul(Pt,ge)|0)+Math.imul(yt,oe)|0))<<13)|0;K=((v=v+Math.imul(yt,ge)|0)+(r>>>13)|0)+(xr>>>26)|0,xr&=67108863;var Er=(K+(a=Math.imul(lt,oe))|0)+((8191&(r=(r=Math.imul(lt,ge))+Math.imul(_t,oe)|0))<<13)|0;return K=((v=Math.imul(_t,ge))+(r>>>13)|0)+(Er>>>26)|0,Er&=67108863,J[0]=We,J[1]=$e,J[2]=cr,J[3]=mr,J[4]=hr,J[5]=gr,J[6]=vr,J[7]=yr,J[8]=br,J[9]=lr,J[10]=wr,J[11]=fr,J[12]=_r,J[13]=Mr,J[14]=pr,J[15]=Le,J[16]=De,J[17]=xr,J[18]=Er,K!==0&&(J[19]=K,l.length++),l};function z(t,h,l){return new H().mulp(t,h,l)}function H(t,h){this.x=t,this.y=h}Math.imul||(U=F),p.prototype.mulTo=function(t,h){var l,a=this.length+t.length;return l=this.length===10&&t.length===10?U(this,t,h):a<63?F(this,t,h):a<1024?function(r,v,A){A.negative=v.negative^r.negative,A.length=r.length+v.length;for(var W=0,J=0,K=0;K<A.length-1;K++){var G=J;J=0;for(var Y=67108863&W,at=Math.min(K,v.length-1),ot=Math.max(0,K-r.length+1);ot<=at;ot++){var ht=K-ot,tt=(0|r.words[ht])*(0|v.words[ot]),it=67108863&tt;Y=67108863&(it=it+Y|0),J+=(G=(G=G+(tt/67108864|0)|0)+(it>>>26)|0)>>>26,G&=67108863}A.words[K]=Y,W=G,G=J}return W!==0?A.words[K]=W:A.length--,A.strip()}(this,t,h):z(this,t,h),l},H.prototype.makeRBT=function(t){for(var h=new Array(t),l=p.prototype._countBits(t)-1,a=0;a<t;a++)h[a]=this.revBin(a,l,t);return h},H.prototype.revBin=function(t,h,l){if(t===0||t===l-1)return t;for(var a=0,r=0;r<h;r++)a|=(1&t)<<h-r-1,t>>=1;return a},H.prototype.permute=function(t,h,l,a,r,v){for(var A=0;A<v;A++)a[A]=h[t[A]],r[A]=l[t[A]]},H.prototype.transform=function(t,h,l,a,r,v){this.permute(v,t,h,l,a,r);for(var A=1;A<r;A<<=1)for(var W=A<<1,J=Math.cos(2*Math.PI/W),K=Math.sin(2*Math.PI/W),G=0;G<r;G+=W)for(var Y=J,at=K,ot=0;ot<A;ot++){var ht=l[G+ot],tt=a[G+ot],it=l[G+ot+A],Z=a[G+ot+A],rt=Y*it-at*Z;Z=Y*Z+at*it,it=rt,l[G+ot]=ht+it,a[G+ot]=tt+Z,l[G+ot+A]=ht-it,a[G+ot+A]=tt-Z,ot!==W&&(rt=J*Y-K*at,at=J*at+K*Y,Y=rt)}},H.prototype.guessLen13b=function(t,h){var l=1|Math.max(h,t),a=1&l,r=0;for(l=l/2|0;l;l>>>=1)r++;return 1<<r+1+a},H.prototype.conjugate=function(t,h,l){if(!(l<=1))for(var a=0;a<l/2;a++){var r=t[a];t[a]=t[l-a-1],t[l-a-1]=r,r=h[a],h[a]=-h[l-a-1],h[l-a-1]=-r}},H.prototype.normalize13b=function(t,h){for(var l=0,a=0;a<h/2;a++){var r=8192*Math.round(t[2*a+1]/h)+Math.round(t[2*a]/h)+l;t[a]=67108863&r,l=r<67108864?0:r/67108864|0}return t},H.prototype.convert13b=function(t,h,l,a){for(var r=0,v=0;v<h;v++)r+=0|t[v],l[2*v]=8191&r,r>>>=13,l[2*v+1]=8191&r,r>>>=13;for(v=2*h;v<a;++v)l[v]=0;I(r===0),I(!(-8192&r))},H.prototype.stub=function(t){for(var h=new Array(t),l=0;l<t;l++)h[l]=0;return h},H.prototype.mulp=function(t,h,l){var a=2*this.guessLen13b(t.length,h.length),r=this.makeRBT(a),v=this.stub(a),A=new Array(a),W=new Array(a),J=new Array(a),K=new Array(a),G=new Array(a),Y=new Array(a),at=l.words;at.length=a,this.convert13b(t.words,t.length,A,a),this.convert13b(h.words,h.length,K,a),this.transform(A,v,W,J,a,r),this.transform(K,v,G,Y,a,r);for(var ot=0;ot<a;ot++){var ht=W[ot]*G[ot]-J[ot]*Y[ot];J[ot]=W[ot]*Y[ot]+J[ot]*G[ot],W[ot]=ht}return this.conjugate(W,J,a),this.transform(W,J,at,v,a,r),this.conjugate(at,v,a),this.normalize13b(at,a),l.negative=t.negative^h.negative,l.length=t.length+h.length,l.strip()},p.prototype.mul=function(t){var h=new p(null);return h.words=new Array(this.length+t.length),this.mulTo(t,h)},p.prototype.mulf=function(t){var h=new p(null);return h.words=new Array(this.length+t.length),z(this,t,h)},p.prototype.imul=function(t){return this.clone().mulTo(t,this)},p.prototype.imuln=function(t){I(typeof t=="number"),I(t<67108864);for(var h=0,l=0;l<this.length;l++){var a=(0|this.words[l])*t,r=(67108863&a)+(67108863&h);h>>=26,h+=a/67108864|0,h+=r>>>26,this.words[l]=67108863&r}return h!==0&&(this.words[l]=h,this.length++),this},p.prototype.muln=function(t){return this.clone().imuln(t)},p.prototype.sqr=function(){return this.mul(this)},p.prototype.isqr=function(){return this.imul(this.clone())},p.prototype.pow=function(t){var h=function(v){for(var A=new Array(v.bitLength()),W=0;W<A.length;W++){var J=W/26|0,K=W%26;A[W]=(v.words[J]&1<<K)>>>K}return A}(t);if(h.length===0)return new p(1);for(var l=this,a=0;a<h.length&&h[a]===0;a++,l=l.sqr());if(++a<h.length)for(var r=l.sqr();a<h.length;a++,r=r.sqr())h[a]!==0&&(l=l.mul(r));return l},p.prototype.iushln=function(t){I(typeof t=="number"&&t>=0);var h,l=t%26,a=(t-l)/26,r=67108863>>>26-l<<26-l;if(l!==0){var v=0;for(h=0;h<this.length;h++){var A=this.words[h]&r,W=(0|this.words[h])-A<<l;this.words[h]=W|v,v=A>>>26-l}v&&(this.words[h]=v,this.length++)}if(a!==0){for(h=this.length-1;h>=0;h--)this.words[h+a]=this.words[h];for(h=0;h<a;h++)this.words[h]=0;this.length+=a}return this.strip()},p.prototype.ishln=function(t){return I(this.negative===0),this.iushln(t)},p.prototype.iushrn=function(t,h,l){var a;I(typeof t=="number"&&t>=0),a=h?(h-h%26)/26:0;var r=t%26,v=Math.min((t-r)/26,this.length),A=67108863^67108863>>>r<<r,W=l;if(a-=v,a=Math.max(0,a),W){for(var J=0;J<v;J++)W.words[J]=this.words[J];W.length=v}if(v!==0)if(this.length>v)for(this.length-=v,J=0;J<this.length;J++)this.words[J]=this.words[J+v];else this.words[0]=0,this.length=1;var K=0;for(J=this.length-1;J>=0&&(K!==0||J>=a);J--){var G=0|this.words[J];this.words[J]=K<<26-r|G>>>r,K=G&A}return W&&K!==0&&(W.words[W.length++]=K),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},p.prototype.ishrn=function(t,h,l){return I(this.negative===0),this.iushrn(t,h,l)},p.prototype.shln=function(t){return this.clone().ishln(t)},p.prototype.ushln=function(t){return this.clone().iushln(t)},p.prototype.shrn=function(t){return this.clone().ishrn(t)},p.prototype.ushrn=function(t){return this.clone().iushrn(t)},p.prototype.testn=function(t){I(typeof t=="number"&&t>=0);var h=t%26,l=(t-h)/26,a=1<<h;return!(this.length<=l||!(this.words[l]&a))},p.prototype.imaskn=function(t){I(typeof t=="number"&&t>=0);var h=t%26,l=(t-h)/26;if(I(this.negative===0,"imaskn works only with positive numbers"),this.length<=l)return this;if(h!==0&&l++,this.length=Math.min(l,this.length),h!==0){var a=67108863^67108863>>>h<<h;this.words[this.length-1]&=a}return this.strip()},p.prototype.maskn=function(t){return this.clone().imaskn(t)},p.prototype.iaddn=function(t){return I(typeof t=="number"),I(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)},p.prototype._iaddn=function(t){this.words[0]+=t;for(var h=0;h<this.length&&this.words[h]>=67108864;h++)this.words[h]-=67108864,h===this.length-1?this.words[h+1]=1:this.words[h+1]++;return this.length=Math.max(this.length,h+1),this},p.prototype.isubn=function(t){if(I(typeof t=="number"),I(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 h=0;h<this.length&&this.words[h]<0;h++)this.words[h]+=67108864,this.words[h+1]-=1;return this.strip()},p.prototype.addn=function(t){return this.clone().iaddn(t)},p.prototype.subn=function(t){return this.clone().isubn(t)},p.prototype.iabs=function(){return this.negative=0,this},p.prototype.abs=function(){return this.clone().iabs()},p.prototype._ishlnsubmul=function(t,h,l){var a,r,v=t.length+l;this._expand(v);var A=0;for(a=0;a<t.length;a++){r=(0|this.words[a+l])+A;var W=(0|t.words[a])*h;A=((r-=67108863&W)>>26)-(W/67108864|0),this.words[a+l]=67108863&r}for(;a<this.length-l;a++)A=(r=(0|this.words[a+l])+A)>>26,this.words[a+l]=67108863&r;if(A===0)return this.strip();for(I(A===-1),A=0,a=0;a<this.length;a++)A=(r=-(0|this.words[a])+A)>>26,this.words[a]=67108863&r;return this.negative=1,this.strip()},p.prototype._wordDiv=function(t,h){var l=(this.length,t.length),a=this.clone(),r=t,v=0|r.words[r.length-1];(l=26-this._countBits(v))!=0&&(r=r.ushln(l),a.iushln(l),v=0|r.words[r.length-1]);var A,W=a.length-r.length;if(h!=="mod"){(A=new p(null)).length=W+1,A.words=new Array(A.length);for(var J=0;J<A.length;J++)A.words[J]=0}var K=a.clone()._ishlnsubmul(r,1,W);K.negative===0&&(a=K,A&&(A.words[W]=1));for(var G=W-1;G>=0;G--){var Y=67108864*(0|a.words[r.length+G])+(0|a.words[r.length+G-1]);for(Y=Math.min(Y/v|0,67108863),a._ishlnsubmul(r,Y,G);a.negative!==0;)Y--,a.negative=0,a._ishlnsubmul(r,1,G),a.isZero()||(a.negative^=1);A&&(A.words[G]=Y)}return A&&A.strip(),a.strip(),h!=="div"&&l!==0&&a.iushrn(l),{div:A||null,mod:a}},p.prototype.divmod=function(t,h,l){return I(!t.isZero()),this.isZero()?{div:new p(0),mod:new p(0)}:this.negative!==0&&t.negative===0?(v=this.neg().divmod(t,h),h!=="mod"&&(a=v.div.neg()),h!=="div"&&(r=v.mod.neg(),l&&r.negative!==0&&r.iadd(t)),{div:a,mod:r}):this.negative===0&&t.negative!==0?(v=this.divmod(t.neg(),h),h!=="mod"&&(a=v.div.neg()),{div:a,mod:v.mod}):this.negative&t.negative?(v=this.neg().divmod(t.neg(),h),h!=="div"&&(r=v.mod.neg(),l&&r.negative!==0&&r.isub(t)),{div:v.div,mod:r}):t.length>this.length||this.cmp(t)<0?{div:new p(0),mod:this}:t.length===1?h==="div"?{div:this.divn(t.words[0]),mod:null}:h==="mod"?{div:null,mod:new p(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new p(this.modn(t.words[0]))}:this._wordDiv(t,h);var a,r,v},p.prototype.div=function(t){return this.divmod(t,"div",!1).div},p.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},p.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},p.prototype.divRound=function(t){var h=this.divmod(t);if(h.mod.isZero())return h.div;var l=h.div.negative!==0?h.mod.isub(t):h.mod,a=t.ushrn(1),r=t.andln(1),v=l.cmp(a);return v<0||r===1&&v===0?h.div:h.div.negative!==0?h.div.isubn(1):h.div.iaddn(1)},p.prototype.modn=function(t){I(t<=67108863);for(var h=67108864%t,l=0,a=this.length-1;a>=0;a--)l=(h*l+(0|this.words[a]))%t;return l},p.prototype.idivn=function(t){I(t<=67108863);for(var h=0,l=this.length-1;l>=0;l--){var a=(0|this.words[l])+67108864*h;this.words[l]=a/t|0,h=a%t}return this.strip()},p.prototype.divn=function(t){return this.clone().idivn(t)},p.prototype.egcd=function(t){I(t.negative===0),I(!t.isZero());var h=this,l=t.clone();h=h.negative!==0?h.umod(t):h.clone();for(var a=new p(1),r=new p(0),v=new p(0),A=new p(1),W=0;h.isEven()&&l.isEven();)h.iushrn(1),l.iushrn(1),++W;for(var J=l.clone(),K=h.clone();!h.isZero();){for(var G=0,Y=1;!(h.words[0]&Y)&&G<26;++G,Y<<=1);if(G>0)for(h.iushrn(G);G-- >0;)(a.isOdd()||r.isOdd())&&(a.iadd(J),r.isub(K)),a.iushrn(1),r.iushrn(1);for(var at=0,ot=1;!(l.words[0]&ot)&&at<26;++at,ot<<=1);if(at>0)for(l.iushrn(at);at-- >0;)(v.isOdd()||A.isOdd())&&(v.iadd(J),A.isub(K)),v.iushrn(1),A.iushrn(1);h.cmp(l)>=0?(h.isub(l),a.isub(v),r.isub(A)):(l.isub(h),v.isub(a),A.isub(r))}return{a:v,b:A,gcd:l.iushln(W)}},p.prototype._invmp=function(t){I(t.negative===0),I(!t.isZero());var h=this,l=t.clone();h=h.negative!==0?h.umod(t):h.clone();for(var a,r=new p(1),v=new p(0),A=l.clone();h.cmpn(1)>0&&l.cmpn(1)>0;){for(var W=0,J=1;!(h.words[0]&J)&&W<26;++W,J<<=1);if(W>0)for(h.iushrn(W);W-- >0;)r.isOdd()&&r.iadd(A),r.iushrn(1);for(var K=0,G=1;!(l.words[0]&G)&&K<26;++K,G<<=1);if(K>0)for(l.iushrn(K);K-- >0;)v.isOdd()&&v.iadd(A),v.iushrn(1);h.cmp(l)>=0?(h.isub(l),r.isub(v)):(l.isub(h),v.isub(r))}return(a=h.cmpn(1)===0?r:v).cmpn(0)<0&&a.iadd(t),a},p.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var h=this.clone(),l=t.clone();h.negative=0,l.negative=0;for(var a=0;h.isEven()&&l.isEven();a++)h.iushrn(1),l.iushrn(1);for(;;){for(;h.isEven();)h.iushrn(1);for(;l.isEven();)l.iushrn(1);var r=h.cmp(l);if(r<0){var v=h;h=l,l=v}else if(r===0||l.cmpn(1)===0)break;h.isub(l)}return l.iushln(a)},p.prototype.invm=function(t){return this.egcd(t).a.umod(t)},p.prototype.isEven=function(){return!(1&this.words[0])},p.prototype.isOdd=function(){return!(1&~this.words[0])},p.prototype.andln=function(t){return this.words[0]&t},p.prototype.bincn=function(t){I(typeof t=="number");var h=t%26,l=(t-h)/26,a=1<<h;if(this.length<=l)return this._expand(l+1),this.words[l]|=a,this;for(var r=a,v=l;r!==0&&v<this.length;v++){var A=0|this.words[v];r=(A+=r)>>>26,A&=67108863,this.words[v]=A}return r!==0&&(this.words[v]=r,this.length++),this},p.prototype.isZero=function(){return this.length===1&&this.words[0]===0},p.prototype.cmpn=function(t){var h,l=t<0;if(this.negative!==0&&!l)return-1;if(this.negative===0&&l)return 1;if(this.strip(),this.length>1)h=1;else{l&&(t=-t),I(t<=67108863,"Number is too big");var a=0|this.words[0];h=a===t?0:a<t?-1:1}return this.negative!==0?0|-h:h},p.prototype.cmp=function(t){if(this.negative!==0&&t.negative===0)return-1;if(this.negative===0&&t.negative!==0)return 1;var h=this.ucmp(t);return this.negative!==0?0|-h:h},p.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var h=0,l=this.length-1;l>=0;l--){var a=0|this.words[l],r=0|t.words[l];if(a!==r){a<r?h=-1:a>r&&(h=1);break}}return h},p.prototype.gtn=function(t){return this.cmpn(t)===1},p.prototype.gt=function(t){return this.cmp(t)===1},p.prototype.gten=function(t){return this.cmpn(t)>=0},p.prototype.gte=function(t){return this.cmp(t)>=0},p.prototype.ltn=function(t){return this.cmpn(t)===-1},p.prototype.lt=function(t){return this.cmp(t)===-1},p.prototype.lten=function(t){return this.cmpn(t)<=0},p.prototype.lte=function(t){return this.cmp(t)<=0},p.prototype.eqn=function(t){return this.cmpn(t)===0},p.prototype.eq=function(t){return this.cmp(t)===0},p.red=function(t){return new ct(t)},p.prototype.toRed=function(t){return I(!this.red,"Already a number in reduction context"),I(this.negative===0,"red works only with positives"),t.convertTo(this)._forceRed(t)},p.prototype.fromRed=function(){return I(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},p.prototype._forceRed=function(t){return this.red=t,this},p.prototype.forceRed=function(t){return I(!this.red,"Already a number in reduction context"),this._forceRed(t)},p.prototype.redAdd=function(t){return I(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},p.prototype.redIAdd=function(t){return I(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},p.prototype.redSub=function(t){return I(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},p.prototype.redISub=function(t){return I(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},p.prototype.redShl=function(t){return I(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},p.prototype.redMul=function(t){return I(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},p.prototype.redIMul=function(t){return I(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},p.prototype.redSqr=function(){return I(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},p.prototype.redISqr=function(){return I(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},p.prototype.redSqrt=function(){return I(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},p.prototype.redInvm=function(){return I(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},p.prototype.redNeg=function(){return I(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},p.prototype.redPow=function(t){return I(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var D={k256:null,p224:null,p192:null,p25519:null};function Q(t,h){this.name=t,this.p=new p(h,16),this.n=this.p.bitLength(),this.k=new p(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function X(){Q.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function et(){Q.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function nt(){Q.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ut(){Q.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function ct(t){if(typeof t=="string"){var h=p._prime(t);this.m=h.p,this.prime=h}else I(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function vt(t){ct.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new p(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)}Q.prototype._tmp=function(){var t=new p(null);return t.words=new Array(Math.ceil(this.n/13)),t},Q.prototype.ireduce=function(t){var h,l=t;do this.split(l,this.tmp),h=(l=(l=this.imulK(l)).iadd(this.tmp)).bitLength();while(h>this.n);var a=h<this.n?-1:l.ucmp(this.p);return a===0?(l.words[0]=0,l.length=1):a>0?l.isub(this.p):l.strip!==void 0?l.strip():l._strip(),l},Q.prototype.split=function(t,h){t.iushrn(this.n,0,h)},Q.prototype.imulK=function(t){return t.imul(this.k)},q(X,Q),X.prototype.split=function(t,h){for(var l=4194303,a=Math.min(t.length,9),r=0;r<a;r++)h.words[r]=t.words[r];if(h.length=a,t.length<=9)return t.words[0]=0,void(t.length=1);var v=t.words[9];for(h.words[h.length++]=v&l,r=10;r<t.length;r++){var A=0|t.words[r];t.words[r-10]=(A&l)<<4|v>>>22,v=A}v>>>=22,t.words[r-10]=v,v===0&&t.length>10?t.length-=10:t.length-=9},X.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var h=0,l=0;l<t.length;l++){var a=0|t.words[l];h+=977*a,t.words[l]=67108863&h,h=64*a+(h/67108864|0)}return t.words[t.length-1]===0&&(t.length--,t.words[t.length-1]===0&&t.length--),t},q(et,Q),q(nt,Q),q(ut,Q),ut.prototype.imulK=function(t){for(var h=0,l=0;l<t.length;l++){var a=19*(0|t.words[l])+h,r=67108863&a;a>>>=26,t.words[l]=r,h=a}return h!==0&&(t.words[t.length++]=h),t},p._prime=function(t){if(D[t])return D[t];var h;if(t==="k256")h=new X;else if(t==="p224")h=new et;else if(t==="p192")h=new nt;else{if(t!=="p25519")throw new Error("Unknown prime "+t);h=new ut}return D[t]=h,h},ct.prototype._verify1=function(t){I(t.negative===0,"red works only with positives"),I(t.red,"red works only with red numbers")},ct.prototype._verify2=function(t,h){I(!(t.negative|h.negative),"red works only with positives"),I(t.red&&t.red===h.red,"red works only with red numbers")},ct.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},ct.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},ct.prototype.add=function(t,h){this._verify2(t,h);var l=t.add(h);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},ct.prototype.iadd=function(t,h){this._verify2(t,h);var l=t.iadd(h);return l.cmp(this.m)>=0&&l.isub(this.m),l},ct.prototype.sub=function(t,h){this._verify2(t,h);var l=t.sub(h);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},ct.prototype.isub=function(t,h){this._verify2(t,h);var l=t.isub(h);return l.cmpn(0)<0&&l.iadd(this.m),l},ct.prototype.shl=function(t,h){return this._verify1(t),this.imod(t.ushln(h))},ct.prototype.imul=function(t,h){return this._verify2(t,h),this.imod(t.imul(h))},ct.prototype.mul=function(t,h){return this._verify2(t,h),this.imod(t.mul(h))},ct.prototype.isqr=function(t){return this.imul(t,t.clone())},ct.prototype.sqr=function(t){return this.mul(t,t)},ct.prototype.sqrt=function(t){if(t.isZero())return t.clone();var h=this.m.andln(3);if(I(h%2==1),h===3){var l=this.m.add(new p(1)).iushrn(2);return this.pow(t,l)}for(var a=this.m.subn(1),r=0;!a.isZero()&&a.andln(1)===0;)r++,a.iushrn(1);I(!a.isZero());var v=new p(1).toRed(this),A=v.redNeg(),W=this.m.subn(1).iushrn(1),J=this.m.bitLength();for(J=new p(2*J*J).toRed(this);this.pow(J,W).cmp(A)!==0;)J.redIAdd(A);for(var K=this.pow(J,a),G=this.pow(t,a.addn(1).iushrn(1)),Y=this.pow(t,a),at=r;Y.cmp(v)!==0;){for(var ot=Y,ht=0;ot.cmp(v)!==0;ht++)ot=ot.redSqr();I(ht<at);var tt=this.pow(K,new p(1).iushln(at-ht-1));G=G.redMul(tt),K=tt.redSqr(),Y=Y.redMul(K),at=ht}return G},ct.prototype.invm=function(t){var h=t._invmp(this.m);return h.negative!==0?(h.negative=0,this.imod(h).redNeg()):this.imod(h)},ct.prototype.pow=function(t,h){if(h.isZero())return new p(1).toRed(this);if(h.cmpn(1)===0)return t.clone();var l=new Array(16);l[0]=new p(1).toRed(this),l[1]=t;for(var a=2;a<l.length;a++)l[a]=this.mul(l[a-1],t);var r=l[0],v=0,A=0,W=h.bitLength()%26;for(W===0&&(W=26),a=h.length-1;a>=0;a--){for(var J=h.words[a],K=W-1;K>=0;K--){var G=J>>K&1;r!==l[0]&&(r=this.sqr(r)),G!==0||v!==0?(v<<=1,v|=G,(++A==4||a===0&&K===0)&&(r=this.mul(r,l[v]),A=0,v=0)):A=0}W=26}return r},ct.prototype.convertTo=function(t){var h=t.umod(this.m);return h===t?h.clone():h},ct.prototype.convertFrom=function(t){var h=t.clone();return h.red=null,h},p.mont=function(t){return new vt(t)},q(vt,ct),vt.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},vt.prototype.convertFrom=function(t){var h=this.imod(t.mul(this.rinv));return h.red=null,h},vt.prototype.imul=function(t,h){if(t.isZero()||h.isZero())return t.words[0]=0,t.length=1,t;var l=t.imul(h),a=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=l.isub(a).iushrn(this.shift),v=r;return r.cmp(this.m)>=0?v=r.isub(this.m):r.cmpn(0)<0&&(v=r.iadd(this.m)),v._forceRed(this)},vt.prototype.mul=function(t,h){if(t.isZero()||h.isZero())return new p(0)._forceRed(this);var l=t.mul(h),a=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=l.isub(a).iushrn(this.shift),v=r;return r.cmp(this.m)>=0?v=r.isub(this.m):r.cmpn(0)<0&&(v=r.iadd(this.m)),v._forceRed(this)},vt.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}})($=b.nmd($),this)},6549:$=>{$.exports=Object.getOwnPropertyDescriptor},6556:($,w,b)=>{var j=b(453),O=b(3126),I=O([j("%String.prototype.indexOf%")]);$.exports=function(q,p){var N=j(q,!!p);return typeof N=="function"&&I(q,".prototype.")>-1?O([N]):N}},6576:($,w,b)=>{var j=b(9394),O=b(8452);$.exports=function(){var I=j();return O(Object,{is:I},{is:function(){return Object.is!==I}}),I}},6578:$=>{$.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},6587:$=>{$.exports=JSON.parse('{"_from":"minio@<=7.0.32","_id":"minio@7.0.32","_inBundle":false,"_integrity":"sha1-/takZ5xZVNPvxt9H9z9+cSREbiw=","_location":"/minio","_phantomChildren":{},"_requested":{"type":"range","registry":true,"raw":"minio@<=7.0.32","name":"minio","escapedName":"minio","rawSpec":"<=7.0.32","saveSpec":null,"fetchSpec":"<=7.0.32"},"_requiredBy":["/"],"_resolved":"https://packages.glodon.com:443/artifactory/api/npm/npm-proxy/minio/-/minio-7.0.32.tgz","_shasum":"fed6a4679c5954d3efc6df47f73f7e7124446e2c","_spec":"minio@<=7.0.32","_where":"/Users/ranran/projects/minio-js","author":{"name":"MinIO, Inc.","url":"https://min.io"},"bugs":{"url":"https://github.com/minio/minio-js/issues"},"bundleDependencies":false,"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"},"deprecated":false,"description":"S3 Compatible Cloud Storage client","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"},"engines":{"node":">8 <=18"},"homepage":"https://github.com/minio/minio-js#readme","keywords":["api","amazon","minio","cloud","s3","storage"],"license":"Apache-2.0","main":"./dist/main/minio.js","name":"minio","repository":{"type":"git","url":"git+https://github.com/minio/minio-js.git"},"scripts":{"browserify":"gulp browserify","compile":"gulp compile","functional":"gulp functionalTest","lint":"gulp lint","lint-fix":"gulp lint --fix","prepare":"npm run compile","prepublishOnly":"gulp test","test":"gulp test"},"version":"7.0.32"}')},6642:($,w,b)=>{var j=b(3003);$.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:j}},6661:($,w,b)=>{var j=b(7011),O=j.assert,I=j.parseBytes,q=j.cachedProperty;function p(N,M){this.eddsa=N,this._secret=I(M.secret),N.isPoint(M.pub)?this._pub=M.pub:this._pubBytes=I(M.pub)}p.fromPublic=function(N,M){return M instanceof p?M:new p(N,{pub:M})},p.fromSecret=function(N,M){return M instanceof p?M:new p(N,{secret:M})},p.prototype.secret=function(){return this._secret},q(p,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),q(p,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),q(p,"privBytes",function(){var N=this.eddsa,M=this.hash(),T=N.encodingLength-1,S=M.slice(0,N.encodingLength);return S[0]&=248,S[T]&=127,S[T]|=64,S}),q(p,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),q(p,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),q(p,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),p.prototype.sign=function(N){return O(this._secret,"KeyPair can only verify"),this.eddsa.sign(N,this)},p.prototype.verify=function(N,M){return this.eddsa.verify(N,M,this)},p.prototype.getSecret=function(N){return O(this._secret,"KeyPair is public only"),j.encode(this.secret(),N)},p.prototype.getPublic=function(N){return j.encode(this.pubBytes(),N)},$.exports=p},6663:($,w,b)=>{const j=b(4280),O=b(454),I=b(528),q=b(3055),p=Symbol("encodeFragmentIdentifier");function N(U){if(typeof U!="string"||U.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function M(U,z){return z.encode?z.strict?j(U):encodeURIComponent(U):U}function T(U,z){return z.decode?O(U):U}function S(U){return Array.isArray(U)?U.sort():typeof U=="object"?S(Object.keys(U)).sort((z,H)=>Number(z)-Number(H)).map(z=>U[z]):U}function B(U){const z=U.indexOf("#");return z!==-1&&(U=U.slice(0,z)),U}function C(U){const z=(U=B(U)).indexOf("?");return z===-1?"":U.slice(z+1)}function _(U,z){return z.parseNumbers&&!Number.isNaN(Number(U))&&typeof U=="string"&&U.trim()!==""?U=Number(U):!z.parseBooleans||U===null||U.toLowerCase()!=="true"&&U.toLowerCase()!=="false"||(U=U.toLowerCase()==="true"),U}function F(U,z){N((z=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},z)).arrayFormatSeparator);const H=function(Q){let X;switch(Q.arrayFormat){case"index":return(et,nt,ut)=>{X=/\[(\d*)\]$/.exec(et),et=et.replace(/\[\d*\]$/,""),X?(ut[et]===void 0&&(ut[et]={}),ut[et][X[1]]=nt):ut[et]=nt};case"bracket":return(et,nt,ut)=>{X=/(\[\])$/.exec(et),et=et.replace(/\[\]$/,""),X?ut[et]!==void 0?ut[et]=[].concat(ut[et],nt):ut[et]=[nt]:ut[et]=nt};case"colon-list-separator":return(et,nt,ut)=>{X=/(:list)$/.exec(et),et=et.replace(/:list$/,""),X?ut[et]!==void 0?ut[et]=[].concat(ut[et],nt):ut[et]=[nt]:ut[et]=nt};case"comma":case"separator":return(et,nt,ut)=>{const ct=typeof nt=="string"&&nt.includes(Q.arrayFormatSeparator),vt=typeof nt=="string"&&!ct&&T(nt,Q).includes(Q.arrayFormatSeparator);nt=vt?T(nt,Q):nt;const t=ct||vt?nt.split(Q.arrayFormatSeparator).map(h=>T(h,Q)):nt===null?nt:T(nt,Q);ut[et]=t};case"bracket-separator":return(et,nt,ut)=>{const ct=/(\[\])$/.test(et);if(et=et.replace(/\[\]$/,""),!ct)return void(ut[et]=nt&&T(nt,Q));const vt=nt===null?[]:nt.split(Q.arrayFormatSeparator).map(t=>T(t,Q));ut[et]!==void 0?ut[et]=[].concat(ut[et],vt):ut[et]=vt};default:return(et,nt,ut)=>{ut[et]!==void 0?ut[et]=[].concat(ut[et],nt):ut[et]=nt}}}(z),D=Object.create(null);if(typeof U!="string"||!(U=U.trim().replace(/^[?#&]/,"")))return D;for(const Q of U.split("&")){if(Q==="")continue;let[X,et]=I(z.decode?Q.replace(/\+/g," "):Q,"=");et=et===void 0?null:["comma","separator","bracket-separator"].includes(z.arrayFormat)?et:T(et,z),H(T(X,z),et,D)}for(const Q of Object.keys(D)){const X=D[Q];if(typeof X=="object"&&X!==null)for(const et of Object.keys(X))X[et]=_(X[et],z);else D[Q]=_(X,z)}return z.sort===!1?D:(z.sort===!0?Object.keys(D).sort():Object.keys(D).sort(z.sort)).reduce((Q,X)=>{const et=D[X];return et&&typeof et=="object"&&!Array.isArray(et)?Q[X]=S(et):Q[X]=et,Q},Object.create(null))}w.extract=C,w.parse=F,w.stringify=(U,z)=>{if(!U)return"";N((z=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},z)).arrayFormatSeparator);const H=et=>z.skipNull&&U[et]==null||z.skipEmptyString&&U[et]==="",D=function(et){switch(et.arrayFormat){case"index":return nt=>(ut,ct)=>{const vt=ut.length;return ct===void 0||et.skipNull&&ct===null||et.skipEmptyString&&ct===""?ut:ct===null?[...ut,[M(nt,et),"[",vt,"]"].join("")]:[...ut,[M(nt,et),"[",M(vt,et),"]=",M(ct,et)].join("")]};case"bracket":return nt=>(ut,ct)=>ct===void 0||et.skipNull&&ct===null||et.skipEmptyString&&ct===""?ut:ct===null?[...ut,[M(nt,et),"[]"].join("")]:[...ut,[M(nt,et),"[]=",M(ct,et)].join("")];case"colon-list-separator":return nt=>(ut,ct)=>ct===void 0||et.skipNull&&ct===null||et.skipEmptyString&&ct===""?ut:ct===null?[...ut,[M(nt,et),":list="].join("")]:[...ut,[M(nt,et),":list=",M(ct,et)].join("")];case"comma":case"separator":case"bracket-separator":{const nt=et.arrayFormat==="bracket-separator"?"[]=":"=";return ut=>(ct,vt)=>vt===void 0||et.skipNull&&vt===null||et.skipEmptyString&&vt===""?ct:(vt=vt===null?"":vt,ct.length===0?[[M(ut,et),nt,M(vt,et)].join("")]:[[ct,M(vt,et)].join(et.arrayFormatSeparator)])}default:return nt=>(ut,ct)=>ct===void 0||et.skipNull&&ct===null||et.skipEmptyString&&ct===""?ut:ct===null?[...ut,M(nt,et)]:[...ut,[M(nt,et),"=",M(ct,et)].join("")]}}(z),Q={};for(const et of Object.keys(U))H(et)||(Q[et]=U[et]);const X=Object.keys(Q);return z.sort!==!1&&X.sort(z.sort),X.map(et=>{const nt=U[et];return nt===void 0?"":nt===null?M(et,z):Array.isArray(nt)?nt.length===0&&z.arrayFormat==="bracket-separator"?M(et,z)+"[]":nt.reduce(D(et),[]).join("&"):M(et,z)+"="+M(nt,z)}).filter(et=>et.length>0).join("&")},w.parseUrl=(U,z)=>{z=Object.assign({decode:!0},z);const[H,D]=I(U,"#");return Object.assign({url:H.split("?")[0]||"",query:F(C(U),z)},z&&z.parseFragmentIdentifier&&D?{fragmentIdentifier:T(D,z)}:{})},w.stringifyUrl=(U,z)=>{z=Object.assign({encode:!0,strict:!0,[p]:!0},z);const H=B(U.url).split("?")[0]||"",D=w.extract(U.url),Q=w.parse(D,{sort:!1}),X=Object.assign(Q,U.query);let et=w.stringify(X,z);et&&(et=`?${et}`);let nt=function(ut){let ct="";const vt=ut.indexOf("#");return vt!==-1&&(ct=ut.slice(vt)),ct}(U.url);return U.fragmentIdentifier&&(nt=`#${z[p]?M(U.fragmentIdentifier,z):U.fragmentIdentifier}`),`${H}${et}${nt}`},w.pick=(U,z,H)=>{H=Object.assign({parseFragmentIdentifier:!0,[p]:!1},H);const{url:D,query:Q,fragmentIdentifier:X}=w.parseUrl(U,H);return w.stringifyUrl({url:D,query:q(Q,z),fragmentIdentifier:X},H)},w.exclude=(U,z,H)=>{const D=Array.isArray(z)?Q=>!z.includes(Q):(Q,X)=>!z(Q,X);return w.pick(U,D,H)}},6677:($,w,b)=>{var j=b(8490),O=b(7011),I=O.getNAF,q=O.getJSF,p=O.assert;function N(T,S){this.type=T,this.p=new j(S.p,16),this.red=S.prime?j.red(S.prime):j.mont(this.p),this.zero=new j(0).toRed(this.red),this.one=new j(1).toRed(this.red),this.two=new j(2).toRed(this.red),this.n=S.n&&new j(S.n,16),this.g=S.g&&this.pointFromJSON(S.g,S.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 B=this.n&&this.p.div(this.n);!B||B.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function M(T,S){this.curve=T,this.type=S,this.precomputed=null}$.exports=N,N.prototype.point=function(){throw new Error("Not implemented")},N.prototype.validate=function(){throw new Error("Not implemented")},N.prototype._fixedNafMul=function(T,S){p(T.precomputed);var B=T._getDoubles(),C=I(S,1,this._bitLength),_=(1<<B.step+1)-(B.step%2==0?2:1);_/=3;var F,U,z=[];for(F=0;F<C.length;F+=B.step){U=0;for(var H=F+B.step-1;H>=F;H--)U=(U<<1)+C[H];z.push(U)}for(var D=this.jpoint(null,null,null),Q=this.jpoint(null,null,null),X=_;X>0;X--){for(F=0;F<z.length;F++)(U=z[F])===X?Q=Q.mixedAdd(B.points[F]):U===-X&&(Q=Q.mixedAdd(B.points[F].neg()));D=D.add(Q)}return D.toP()},N.prototype._wnafMul=function(T,S){var B=4,C=T._getNAFPoints(B);B=C.wnd;for(var _=C.points,F=I(S,B,this._bitLength),U=this.jpoint(null,null,null),z=F.length-1;z>=0;z--){for(var H=0;z>=0&&F[z]===0;z--)H++;if(z>=0&&H++,U=U.dblp(H),z<0)break;var D=F[z];p(D!==0),U=T.type==="affine"?D>0?U.mixedAdd(_[D-1>>1]):U.mixedAdd(_[-D-1>>1].neg()):D>0?U.add(_[D-1>>1]):U.add(_[-D-1>>1].neg())}return T.type==="affine"?U.toP():U},N.prototype._wnafMulAdd=function(T,S,B,C,_){var F,U,z,H=this._wnafT1,D=this._wnafT2,Q=this._wnafT3,X=0;for(F=0;F<C;F++){var et=(z=S[F])._getNAFPoints(T);H[F]=et.wnd,D[F]=et.points}for(F=C-1;F>=1;F-=2){var nt=F-1,ut=F;if(H[nt]===1&&H[ut]===1){var ct=[S[nt],null,null,S[ut]];S[nt].y.cmp(S[ut].y)===0?(ct[1]=S[nt].add(S[ut]),ct[2]=S[nt].toJ().mixedAdd(S[ut].neg())):S[nt].y.cmp(S[ut].y.redNeg())===0?(ct[1]=S[nt].toJ().mixedAdd(S[ut]),ct[2]=S[nt].add(S[ut].neg())):(ct[1]=S[nt].toJ().mixedAdd(S[ut]),ct[2]=S[nt].toJ().mixedAdd(S[ut].neg()));var vt=[-3,-1,-5,-7,0,7,5,1,3],t=q(B[nt],B[ut]);for(X=Math.max(t[0].length,X),Q[nt]=new Array(X),Q[ut]=new Array(X),U=0;U<X;U++){var h=0|t[0][U],l=0|t[1][U];Q[nt][U]=vt[3*(h+1)+(l+1)],Q[ut][U]=0,D[nt]=ct}}else Q[nt]=I(B[nt],H[nt],this._bitLength),Q[ut]=I(B[ut],H[ut],this._bitLength),X=Math.max(Q[nt].length,X),X=Math.max(Q[ut].length,X)}var a=this.jpoint(null,null,null),r=this._wnafT4;for(F=X;F>=0;F--){for(var v=0;F>=0;){var A=!0;for(U=0;U<C;U++)r[U]=0|Q[U][F],r[U]!==0&&(A=!1);if(!A)break;v++,F--}if(F>=0&&v++,a=a.dblp(v),F<0)break;for(U=0;U<C;U++){var W=r[U];W!==0&&(W>0?z=D[U][W-1>>1]:W<0&&(z=D[U][-W-1>>1].neg()),a=z.type==="affine"?a.mixedAdd(z):a.add(z))}}for(F=0;F<C;F++)D[F]=null;return _?a:a.toP()},N.BasePoint=M,M.prototype.eq=function(){throw new Error("Not implemented")},M.prototype.validate=function(){return this.curve.validate(this)},N.prototype.decodePoint=function(T,S){T=O.toArray(T,S);var B=this.p.byteLength();if((T[0]===4||T[0]===6||T[0]===7)&&T.length-1==2*B)return T[0]===6?p(T[T.length-1]%2==0):T[0]===7&&p(T[T.length-1]%2==1),this.point(T.slice(1,1+B),T.slice(1+B,1+2*B));if((T[0]===2||T[0]===3)&&T.length-1===B)return this.pointFromX(T.slice(1,1+B),T[0]===3);throw new Error("Unknown point format")},M.prototype.encodeCompressed=function(T){return this.encode(T,!0)},M.prototype._encode=function(T){var S=this.curve.p.byteLength(),B=this.getX().toArray("be",S);return T?[this.getY().isEven()?2:3].concat(B):[4].concat(B,this.getY().toArray("be",S))},M.prototype.encode=function(T,S){return O.encode(this._encode(S),T)},M.prototype.precompute=function(T){if(this.precomputed)return this;var S={doubles:null,naf:null,beta:null};return S.naf=this._getNAFPoints(8),S.doubles=this._getDoubles(4,T),S.beta=this._getBeta(),this.precomputed=S,this},M.prototype._hasDoubles=function(T){if(!this.precomputed)return!1;var S=this.precomputed.doubles;return!!S&&S.points.length>=Math.ceil((T.bitLength()+1)/S.step)},M.prototype._getDoubles=function(T,S){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var B=[this],C=this,_=0;_<S;_+=T){for(var F=0;F<T;F++)C=C.dbl();B.push(C)}return{step:T,points:B}},M.prototype._getNAFPoints=function(T){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var S=[this],B=(1<<T)-1,C=B===1?null:this.dbl(),_=1;_<B;_++)S[_]=S[_-1].add(C);return{wnd:T,points:S}},M.prototype._getBeta=function(){return null},M.prototype.dblp=function(T){for(var S=this,B=0;B<T;B++)S=S.dbl();return S}},6684:function($){(function(){$.exports=function(){function w(b){this.nodes=b}return Object.defineProperty(w.prototype,"length",{get:function(){return this.nodes.length||0}}),w.prototype.clone=function(){return this.nodes=null},w.prototype.item=function(b){return this.nodes[b]||null},w}()}).call(this)},6688:($,w,b)=>{var j;function O(){if(j!==void 0)return j;if(b.g.XMLHttpRequest){j=new b.g.XMLHttpRequest;try{j.open("GET",b.g.XDomainRequest?"/":"https://example.com")}catch{j=null}}else j=null;return j}function I(p){var N=O();if(!N)return!1;try{return N.responseType=p,N.responseType===p}catch{}return!1}function q(p){return typeof p=="function"}w.fetch=q(b.g.fetch)&&q(b.g.ReadableStream),w.writableStream=q(b.g.WritableStream),w.abortController=q(b.g.AbortController),w.arraybuffer=w.fetch||I("arraybuffer"),w.msstream=!w.fetch&&I("ms-stream"),w.mozchunkedarraybuffer=!w.fetch&&I("moz-chunked-arraybuffer"),w.overrideMimeType=w.fetch||!!O()&&q(O().overrideMimeType),j=null},6698:$=>{typeof Object.create=="function"?$.exports=function(w,b){b&&(w.super_=b,w.prototype=Object.create(b.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}))}:$.exports=function(w,b){if(b){w.super_=b;var j=function(){};j.prototype=b.prototype,w.prototype=new j,w.prototype.constructor=w}}},6708:($,w,b)=>{var j,O=b(5606);function I(v){var A=this;this.next=null,this.entry=null,this.finish=function(){(function(W,J){var K=W.entry;for(W.entry=null;K;){var G=K.callback;J.pendingcb--,G(void 0),K=K.next}J.corkedRequestsFree.next=W})(A,v)}}$.exports=ct,ct.WritableState=ut;var q,p={deprecate:b(4643)},N=b(345),M=b(8287).Buffer,T=(b.g!==void 0?b.g:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},S=b(5896),B=b(5291).getHighWaterMark,C=b(6048).F,_=C.ERR_INVALID_ARG_TYPE,F=C.ERR_METHOD_NOT_IMPLEMENTED,U=C.ERR_MULTIPLE_CALLBACK,z=C.ERR_STREAM_CANNOT_PIPE,H=C.ERR_STREAM_DESTROYED,D=C.ERR_STREAM_NULL_VALUES,Q=C.ERR_STREAM_WRITE_AFTER_END,X=C.ERR_UNKNOWN_ENCODING,et=S.errorOrDestroy;function nt(){}function ut(v,A,W){j=j||b(5382),v=v||{},typeof W!="boolean"&&(W=A instanceof j),this.objectMode=!!v.objectMode,W&&(this.objectMode=this.objectMode||!!v.writableObjectMode),this.highWaterMark=B(this,v,"writableHighWaterMark",W),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var J=v.decodeStrings===!1;this.decodeStrings=!J,this.defaultEncoding=v.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(K){(function(G,Y){var at=G._writableState,ot=at.sync,ht=at.writecb;if(typeof ht!="function")throw new U;if(function(it){it.writing=!1,it.writecb=null,it.length-=it.writelen,it.writelen=0}(at),Y)(function(it,Z,rt,wt,gt){--Z.pendingcb,rt?(O.nextTick(gt,wt),O.nextTick(r,it,Z),it._writableState.errorEmitted=!0,et(it,wt)):(gt(wt),it._writableState.errorEmitted=!0,et(it,wt),r(it,Z))})(G,at,ot,Y,ht);else{var tt=l(at)||G.destroyed;tt||at.corked||at.bufferProcessing||!at.bufferedRequest||h(G,at),ot?O.nextTick(t,G,at,tt,ht):t(G,at,tt,ht)}})(A,K)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=v.emitClose!==!1,this.autoDestroy=!!v.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new I(this)}function ct(v){var A=this instanceof(j=j||b(5382));if(!A&&!q.call(ct,this))return new ct(v);this._writableState=new ut(v,this,A),this.writable=!0,v&&(typeof v.write=="function"&&(this._write=v.write),typeof v.writev=="function"&&(this._writev=v.writev),typeof v.destroy=="function"&&(this._destroy=v.destroy),typeof v.final=="function"&&(this._final=v.final)),N.call(this)}function vt(v,A,W,J,K,G,Y){A.writelen=J,A.writecb=Y,A.writing=!0,A.sync=!0,A.destroyed?A.onwrite(new H("write")):W?v._writev(K,A.onwrite):v._write(K,G,A.onwrite),A.sync=!1}function t(v,A,W,J){W||function(K,G){G.length===0&&G.needDrain&&(G.needDrain=!1,K.emit("drain"))}(v,A),A.pendingcb--,J(),r(v,A)}function h(v,A){A.bufferProcessing=!0;var W=A.bufferedRequest;if(v._writev&&W&&W.next){var J=A.bufferedRequestCount,K=new Array(J),G=A.corkedRequestsFree;G.entry=W;for(var Y=0,at=!0;W;)K[Y]=W,W.isBuf||(at=!1),W=W.next,Y+=1;K.allBuffers=at,vt(v,A,!0,A.length,K,"",G.finish),A.pendingcb++,A.lastBufferedRequest=null,G.next?(A.corkedRequestsFree=G.next,G.next=null):A.corkedRequestsFree=new I(A),A.bufferedRequestCount=0}else{for(;W;){var ot=W.chunk,ht=W.encoding,tt=W.callback;if(vt(v,A,!1,A.objectMode?1:ot.length,ot,ht,tt),W=W.next,A.bufferedRequestCount--,A.writing)break}W===null&&(A.lastBufferedRequest=null)}A.bufferedRequest=W,A.bufferProcessing=!1}function l(v){return v.ending&&v.length===0&&v.bufferedRequest===null&&!v.finished&&!v.writing}function a(v,A){v._final(function(W){A.pendingcb--,W&&et(v,W),A.prefinished=!0,v.emit("prefinish"),r(v,A)})}function r(v,A){var W=l(A);if(W&&(function(K,G){G.prefinished||G.finalCalled||(typeof K._final!="function"||G.destroyed?(G.prefinished=!0,K.emit("prefinish")):(G.pendingcb++,G.finalCalled=!0,O.nextTick(a,K,G)))}(v,A),A.pendingcb===0&&(A.finished=!0,v.emit("finish"),A.autoDestroy))){var J=v._readableState;(!J||J.autoDestroy&&J.endEmitted)&&v.destroy()}return W}b(6698)(ct,N),ut.prototype.getBuffer=function(){for(var v=this.bufferedRequest,A=[];v;)A.push(v),v=v.next;return A},function(){try{Object.defineProperty(ut.prototype,"buffer",{get:p.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"?(q=Function.prototype[Symbol.hasInstance],Object.defineProperty(ct,Symbol.hasInstance,{value:function(v){return!!q.call(this,v)||this===ct&&v&&v._writableState instanceof ut}})):q=function(v){return v instanceof this},ct.prototype.pipe=function(){et(this,new z)},ct.prototype.write=function(v,A,W){var J,K=this._writableState,G=!1,Y=!K.objectMode&&(J=v,M.isBuffer(J)||J instanceof T);return Y&&!M.isBuffer(v)&&(v=function(at){return M.from(at)}(v)),typeof A=="function"&&(W=A,A=null),Y?A="buffer":A||(A=K.defaultEncoding),typeof W!="function"&&(W=nt),K.ending?function(at,ot){var ht=new Q;et(at,ht),O.nextTick(ot,ht)}(this,W):(Y||function(at,ot,ht,tt){var it;return ht===null?it=new D:typeof ht=="string"||ot.objectMode||(it=new _("chunk",["string","Buffer"],ht)),!it||(et(at,it),O.nextTick(tt,it),!1)}(this,K,v,W))&&(K.pendingcb++,G=function(at,ot,ht,tt,it,Z){if(!ht){var rt=function(Lt,At,jt){return Lt.objectMode||Lt.decodeStrings===!1||typeof At!="string"||(At=M.from(At,jt)),At}(ot,tt,it);tt!==rt&&(ht=!0,it="buffer",tt=rt)}var wt=ot.objectMode?1:tt.length;ot.length+=wt;var gt=ot.length<ot.highWaterMark;if(gt||(ot.needDrain=!0),ot.writing||ot.corked){var St=ot.lastBufferedRequest;ot.lastBufferedRequest={chunk:tt,encoding:it,isBuf:ht,callback:Z,next:null},St?St.next=ot.lastBufferedRequest:ot.bufferedRequest=ot.lastBufferedRequest,ot.bufferedRequestCount+=1}else vt(at,ot,!1,wt,tt,it,Z);return gt}(this,K,Y,v,A,W)),G},ct.prototype.cork=function(){this._writableState.corked++},ct.prototype.uncork=function(){var v=this._writableState;v.corked&&(v.corked--,v.writing||v.corked||v.bufferProcessing||!v.bufferedRequest||h(this,v))},ct.prototype.setDefaultEncoding=function(v){if(typeof v=="string"&&(v=v.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((v+"").toLowerCase())>-1))throw new X(v);return this._writableState.defaultEncoding=v,this},Object.defineProperty(ct.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(ct.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),ct.prototype._write=function(v,A,W){W(new F("_write()"))},ct.prototype._writev=null,ct.prototype.end=function(v,A,W){var J=this._writableState;return typeof v=="function"?(W=v,v=null,A=null):typeof A=="function"&&(W=A,A=null),v!=null&&this.write(v,A),J.corked&&(J.corked=1,this.uncork()),J.ending||function(K,G,Y){G.ending=!0,r(K,G),Y&&(G.finished?O.nextTick(Y):K.once("finish",Y)),G.ended=!0,K.writable=!1}(this,J,W),this},Object.defineProperty(ct.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(ct.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(v){this._writableState&&(this._writableState.destroyed=v)}}),ct.prototype.destroy=S.destroy,ct.prototype._undestroy=S.undestroy,ct.prototype._destroy=function(v,A){A(v)}},6710:($,w,b)=>{var j=b(6698),O=b(4107),I=b(392),q=b(2861).Buffer,p=new Array(64);function N(){this.init(),this._w=p,I.call(this,64,56)}j(N,O),N.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},N.prototype._hash=function(){var M=q.allocUnsafe(28);return M.writeInt32BE(this._a,0),M.writeInt32BE(this._b,4),M.writeInt32BE(this._c,8),M.writeInt32BE(this._d,12),M.writeInt32BE(this._e,16),M.writeInt32BE(this._f,20),M.writeInt32BE(this._g,24),M},$.exports=N},6712:function($,w,b){(function(){var j,O,I,q,p,N={}.hasOwnProperty;j=b(9665),O=b(6465).defaults,q=function(M){return typeof M=="string"&&(M.indexOf("&")>=0||M.indexOf(">")>=0||M.indexOf("<")>=0)},p=function(M){return"<![CDATA["+I(M)+"]]>"},I=function(M){return M.replace("]]>","]]]]><![CDATA[>")},w.Builder=function(){function M(T){var S,B,C;for(S in this.options={},B=O[.2])N.call(B,S)&&(C=B[S],this.options[S]=C);for(S in T)N.call(T,S)&&(C=T[S],this.options[S]=C)}return M.prototype.buildObject=function(T){var S,B,C,_,F,U;return S=this.options.attrkey,B=this.options.charkey,Object.keys(T).length===1&&this.options.rootName===O[.2].rootName?T=T[F=Object.keys(T)[0]]:F=this.options.rootName,U=this,C=function(z,H){var D,Q,X,et,nt,ut;if(typeof H!="object")U.options.cdata&&q(H)?z.raw(p(H)):z.txt(H);else if(Array.isArray(H)){for(et in H)if(N.call(H,et))for(nt in Q=H[et])X=Q[nt],z=C(z.ele(nt),X).up()}else for(nt in H)if(N.call(H,nt))if(Q=H[nt],nt===S){if(typeof Q=="object")for(D in Q)ut=Q[D],z=z.att(D,ut)}else if(nt===B)z=U.options.cdata&&q(Q)?z.raw(p(Q)):z.txt(Q);else if(Array.isArray(Q))for(et in Q)N.call(Q,et)&&(z=typeof(X=Q[et])=="string"?U.options.cdata&&q(X)?z.ele(nt).raw(p(X)).up():z.ele(nt,X).up():C(z.ele(nt),X).up());else typeof Q=="object"?z=C(z.ele(nt),Q).up():typeof Q=="string"&&U.options.cdata&&q(Q)?z=z.ele(nt).raw(p(Q)).up():(Q==null&&(Q=""),z=z.ele(nt,Q.toString()).up());return z},_=j.create(F,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),C(_,T).end(this.options.renderOpts)},M}()}).call(this)},6729:($,w,b)=>{var j=w;j.version=b(1636).rE,j.utils=b(7011),j.rand=b(5037),j.curve=b(894),j.curves=b(480),j.ec=b(7447),j.eddsa=b(8650)},6737:($,w,b)=>{(w=$.exports=b(206)).Stream=w,w.Readable=w,w.Writable=b(7314),w.Duplex=b(6248),w.Transform=b(1816),w.PassThrough=b(5242)},6743:($,w,b)=>{var j=b(9353);$.exports=Function.prototype.bind||j},6763:($,w,b)=>{var j=b(537),O=b(4148);function I(){return new Date().getTime()}var q,p=Array.prototype.slice,N={};q=b.g!==void 0&&b.g.console?b.g.console:typeof window<"u"&&window.console?window.console:{};for(var M=[[function(){},"log"],[function(){q.log.apply(q,arguments)},"info"],[function(){q.log.apply(q,arguments)},"warn"],[function(){q.warn.apply(q,arguments)},"error"],[function(_){N[_]=I()},"time"],[function(_){var F=N[_];if(!F)throw new Error("No such label: "+_);delete N[_];var U=I()-F;q.log(_+": "+U+"ms")},"timeEnd"],[function(){var _=new Error;_.name="Trace",_.message=j.format.apply(null,arguments),q.error(_.stack)},"trace"],[function(_){q.log(j.inspect(_)+`
131
+ `)},"dir"],[function(_){if(!_){var F=p.call(arguments,1);O.ok(!1,j.format.apply(null,F))}},"assert"]],T=0;T<M.length;T++){var S=M[T],B=S[0],C=S[1];q[C]||(q[C]=B)}$.exports=q},6768:($,w,b)=>{Object.defineProperty(w,"__esModule",{value:!0}),w.default=void 0;var j,O=(j=b(8310))&&j.__esModule?j:{default:j},I=M(b(8234)),q=M(b(6097)),p=b(2541);function N(T){if(typeof WeakMap!="function")return null;var S=new WeakMap,B=new WeakMap;return(N=function(C){return C?B:S})(T)}function M(T,S){if(!S&&T&&T.__esModule)return T;if(T===null||typeof T!="object"&&typeof T!="function")return{default:T};var B=N(S);if(B&&B.has(T))return B.get(T);var C={},_=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var F in T)if(F!=="default"&&Object.prototype.hasOwnProperty.call(T,F)){var U=_?Object.getOwnPropertyDescriptor(T,F):null;U&&(U.get||U.set)?Object.defineProperty(C,F,U):C[F]=T[F]}return C.default=T,B&&B.set(T,C),C}w.default=class{constructor(T){this.client=T}listObjectsV2WithMetadata(T,S,B,C){if(S===void 0&&(S=""),B===void 0&&(B=!1),C===void 0&&(C=""),!(0,p.isValidBucketName)(T))throw new q.InvalidBucketNameError("Invalid bucket name: "+T);if(!(0,p.isValidPrefix)(S))throw new q.InvalidPrefixError(`Invalid prefix : ${S}`);if(!(0,p.isString)(S))throw new TypeError('prefix should be of type "string"');if(!(0,p.isBoolean)(B))throw new TypeError('recursive should be of type "boolean"');if(!(0,p.isString)(C))throw new TypeError('startAfter should be of type "string"');var _=B?"":"/",F="",U=[],z=!1,H=O.default.Readable({objectMode:!0});return H._read=()=>{if(!U.length)return z?H.push(null):void this.listObjectsV2WithMetadataQuery(T,S,F,_,1e3,C).on("error",D=>H.emit("error",D)).on("data",D=>{D.isTruncated?F=D.nextContinuationToken:z=!0,U=D.objects,H._read()});H.push(U.shift())},H}listObjectsV2WithMetadataQuery(T,S,B,C,_,F){if(!(0,p.isValidBucketName)(T))throw new q.InvalidBucketNameError("Invalid bucket name: "+T);if(!(0,p.isString)(S))throw new TypeError('prefix should be of type "string"');if(!(0,p.isString)(B))throw new TypeError('continuationToken should be of type "string"');if(!(0,p.isString)(C))throw new TypeError('delimiter should be of type "string"');if(!(0,p.isNumber)(_))throw new TypeError('maxKeys should be of type "number"');if(!(0,p.isString)(F))throw new TypeError('startAfter should be of type "string"');var U=[];U.push("list-type=2"),U.push("encoding-type=url"),U.push(`prefix=${(0,p.uriEscape)(S)}`),U.push(`delimiter=${(0,p.uriEscape)(C)}`),U.push("metadata=true"),B&&(B=(0,p.uriEscape)(B),U.push(`continuation-token=${B}`)),F&&(F=(0,p.uriEscape)(F),U.push(`start-after=${F}`)),_&&(_>=1e3&&(_=1e3),U.push(`max-keys=${_}`)),U.sort();var z="";U.length>0&&(z=`${U.join("&")}`);var H=I.getListObjectsV2WithMetadataTransformer();return this.client.makeRequest({method:"GET",bucketName:T,query:z},"",[200],"",!0,(D,Q)=>{if(D)return H.emit("error",D);(0,p.pipesetup)(Q,H)}),H}}},6775:function($,w,b){(function(){var j,O,I,q={}.hasOwnProperty;j=b(1737),I=b(6286),O=b(8753),$.exports=function(p){function N(M,T){this.stream=M,N.__super__.constructor.call(this,T)}return function(M,T){for(var S in T)q.call(T,S)&&(M[S]=T[S]);function B(){this.constructor=M}B.prototype=T.prototype,M.prototype=new B,M.__super__=T.prototype}(N,p),N.prototype.endline=function(M,T,S){return M.isLastRootNode&&T.state===O.CloseTag?"":N.__super__.endline.call(this,M,T,S)},N.prototype.document=function(M,T){var S,B,C,_,F,U,z,H,D;for(B=C=0,F=(z=M.children).length;C<F;B=++C)(S=z[B]).isLastRootNode=B===M.children.length-1;for(T=this.filterOptions(T),D=[],_=0,U=(H=M.children).length;_<U;_++)S=H[_],D.push(this.writeChildNode(S,T,0));return D},N.prototype.attribute=function(M,T,S){return this.stream.write(N.__super__.attribute.call(this,M,T,S))},N.prototype.cdata=function(M,T,S){return this.stream.write(N.__super__.cdata.call(this,M,T,S))},N.prototype.comment=function(M,T,S){return this.stream.write(N.__super__.comment.call(this,M,T,S))},N.prototype.declaration=function(M,T,S){return this.stream.write(N.__super__.declaration.call(this,M,T,S))},N.prototype.docType=function(M,T,S){var B,C,_,F;if(S||(S=0),this.openNode(M,T,S),T.state=O.OpenTag,this.stream.write(this.indent(M,T,S)),this.stream.write("<!DOCTYPE "+M.root().name),M.pubID&&M.sysID?this.stream.write(' PUBLIC "'+M.pubID+'" "'+M.sysID+'"'):M.sysID&&this.stream.write(' SYSTEM "'+M.sysID+'"'),M.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(M,T,S)),T.state=O.InsideTag,C=0,_=(F=M.children).length;C<_;C++)B=F[C],this.writeChildNode(B,T,S+1);T.state=O.CloseTag,this.stream.write("]")}return T.state=O.CloseTag,this.stream.write(T.spaceBeforeSlash+">"),this.stream.write(this.endline(M,T,S)),T.state=O.None,this.closeNode(M,T,S)},N.prototype.element=function(M,T,S){var B,C,_,F,U,z,H,D,Q;for(H in S||(S=0),this.openNode(M,T,S),T.state=O.OpenTag,this.stream.write(this.indent(M,T,S)+"<"+M.name),D=M.attribs)q.call(D,H)&&(B=D[H],this.attribute(B,T,S));if(F=(_=M.children.length)===0?null:M.children[0],_===0||M.children.every(function(X){return(X.type===j.Text||X.type===j.Raw)&&X.value===""}))T.allowEmpty?(this.stream.write(">"),T.state=O.CloseTag,this.stream.write("</"+M.name+">")):(T.state=O.CloseTag,this.stream.write(T.spaceBeforeSlash+"/>"));else if(!T.pretty||_!==1||F.type!==j.Text&&F.type!==j.Raw||F.value==null){for(this.stream.write(">"+this.endline(M,T,S)),T.state=O.InsideTag,U=0,z=(Q=M.children).length;U<z;U++)C=Q[U],this.writeChildNode(C,T,S+1);T.state=O.CloseTag,this.stream.write(this.indent(M,T,S)+"</"+M.name+">")}else this.stream.write(">"),T.state=O.InsideTag,T.suppressPrettyCount++,this.writeChildNode(F,T,S+1),T.suppressPrettyCount--,T.state=O.CloseTag,this.stream.write("</"+M.name+">");return this.stream.write(this.endline(M,T,S)),T.state=O.None,this.closeNode(M,T,S)},N.prototype.processingInstruction=function(M,T,S){return this.stream.write(N.__super__.processingInstruction.call(this,M,T,S))},N.prototype.raw=function(M,T,S){return this.stream.write(N.__super__.raw.call(this,M,T,S))},N.prototype.text=function(M,T,S){return this.stream.write(N.__super__.text.call(this,M,T,S))},N.prototype.dtdAttList=function(M,T,S){return this.stream.write(N.__super__.dtdAttList.call(this,M,T,S))},N.prototype.dtdElement=function(M,T,S){return this.stream.write(N.__super__.dtdElement.call(this,M,T,S))},N.prototype.dtdEntity=function(M,T,S){return this.stream.write(N.__super__.dtdEntity.call(this,M,T,S))},N.prototype.dtdNotation=function(M,T,S){return this.stream.write(N.__super__.dtdNotation.call(this,M,T,S))},N}(I)}).call(this)},6784:($,w,b)=>{var j=b(7426),O=b(6166),I=j.rotl32,q=j.sum32,p=j.sum32_3,N=j.sum32_4,M=O.BlockHash;function T(){if(!(this instanceof T))return new T;M.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function S(H,D,Q,X){return H<=15?D^Q^X:H<=31?D&Q|~D&X:H<=47?(D|~Q)^X:H<=63?D&X|Q&~X:D^(Q|~X)}function B(H){return H<=15?0:H<=31?1518500249:H<=47?1859775393:H<=63?2400959708:2840853838}function C(H){return H<=15?1352829926:H<=31?1548603684:H<=47?1836072691:H<=63?2053994217:0}j.inherits(T,M),w.ripemd160=T,T.blockSize=512,T.outSize=160,T.hmacStrength=192,T.padLength=64,T.prototype._update=function(H,D){for(var Q=this.h[0],X=this.h[1],et=this.h[2],nt=this.h[3],ut=this.h[4],ct=Q,vt=X,t=et,h=nt,l=ut,a=0;a<80;a++){var r=q(I(N(Q,S(a,X,et,nt),H[_[a]+D],B(a)),U[a]),ut);Q=ut,ut=nt,nt=I(et,10),et=X,X=r,r=q(I(N(ct,S(79-a,vt,t,h),H[F[a]+D],C(a)),z[a]),l),ct=l,l=h,h=I(t,10),t=vt,vt=r}r=p(this.h[1],et,h),this.h[1]=p(this.h[2],nt,l),this.h[2]=p(this.h[3],ut,ct),this.h[3]=p(this.h[4],Q,vt),this.h[4]=p(this.h[0],X,t),this.h[0]=r},T.prototype._digest=function(H){return H==="hex"?j.toHex32(this.h,"little"):j.split32(this.h,"little")};var _=[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],F=[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],U=[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],z=[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]},6815:($,w,b)=>{var j=b(5606),O=b(8399).Transform,I=b(6698);function q(M){O.call(this,M),this._destroyed=!1}function p(M,T,S){S(null,M)}function N(M){return function(T,S,B){return typeof T=="function"&&(B=S,S=T,T={}),typeof S!="function"&&(S=p),typeof B!="function"&&(B=null),M(T,S,B)}}I(q,O),q.prototype.destroy=function(M){if(!this._destroyed){this._destroyed=!0;var T=this;j.nextTick(function(){M&&T.emit("error",M),T.emit("close")})}},$.exports=N(function(M,T,S){var B=new q(M);return B._transform=T,S&&(B._flush=S),B}),$.exports.ctor=N(function(M,T,S){function B(C){if(!(this instanceof B))return new B(C);this.options=Object.assign({},M,C),q.call(this,this.options)}return I(B,q),B.prototype._transform=T,S&&(B.prototype._flush=S),B}),$.exports.obj=N(function(M,T,S){var B=new q(Object.assign({objectMode:!0,highWaterMark:16},M));return B._transform=T,S&&(B._flush=S),B})},6843:($,w,b)=>{var j=b(8287).Buffer,O=b(295);function I(q){return q._prev=q._cipher.encryptBlock(q._prev),q._prev}w.encrypt=function(q,p){for(;q._cache.length<p.length;)q._cache=j.concat([q._cache,I(q)]);var N=q._cache.slice(0,p.length);return q._cache=q._cache.slice(p.length),O(p,N)}},6866:$=>{$.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"}},6897:($,w,b)=>{var j=b(453),O=b(41),I=b(592)(),q=b(5795),p=b(9675),N=j("%Math.floor%");$.exports=function(M,T){if(typeof M!="function")throw new p("`fn` is not a function");if(typeof T!="number"||T<0||T>4294967295||N(T)!==T)throw new p("`length` must be a positive 32-bit integer");var S=arguments.length>2&&!!arguments[2],B=!0,C=!0;if("length"in M&&q){var _=q(M,"length");_&&!_.configurable&&(B=!1),_&&!_.writable&&(C=!1)}return(B||C||!S)&&(I?O(M,"length",T,!0,!0):O(M,"length",T)),M}},6917:($,w,b)=>{var j=b(5606),O=b(8287).Buffer,I=b(6688),q=b(6698),p=b(8399),N=w.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},M=w.IncomingMessage=function(T,S,B,C){var _=this;if(p.Readable.call(_),_._mode=B,_.headers={},_.rawHeaders=[],_.trailers={},_.rawTrailers=[],_.on("end",function(){j.nextTick(function(){_.emit("close")})}),B==="fetch"){if(_._fetchResponse=S,_.url=S.url,_.statusCode=S.status,_.statusMessage=S.statusText,S.headers.forEach(function(D,Q){_.headers[Q.toLowerCase()]=D,_.rawHeaders.push(Q,D)}),I.writableStream){var F=new WritableStream({write:function(D){return C(!1),new Promise(function(Q,X){_._destroyed?X():_.push(O.from(D))?Q():_._resumeFetch=Q})},close:function(){C(!0),_._destroyed||_.push(null)},abort:function(D){C(!0),_._destroyed||_.emit("error",D)}});try{return void S.body.pipeTo(F).catch(function(D){C(!0),_._destroyed||_.emit("error",D)})}catch{}}var U=S.body.getReader();(function D(){U.read().then(function(Q){_._destroyed||(C(Q.done),Q.done?_.push(null):(_.push(O.from(Q.value)),D()))}).catch(function(Q){C(!0),_._destroyed||_.emit("error",Q)})})()}else if(_._xhr=T,_._pos=0,_.url=T.responseURL,_.statusCode=T.status,_.statusMessage=T.statusText,T.getAllResponseHeaders().split(/\r?\n/).forEach(function(D){var Q=D.match(/^([^:]+):\s*(.*)/);if(Q){var X=Q[1].toLowerCase();X==="set-cookie"?(_.headers[X]===void 0&&(_.headers[X]=[]),_.headers[X].push(Q[2])):_.headers[X]!==void 0?_.headers[X]+=", "+Q[2]:_.headers[X]=Q[2],_.rawHeaders.push(Q[1],Q[2])}}),_._charset="x-user-defined",!I.overrideMimeType){var z=_.rawHeaders["mime-type"];if(z){var H=z.match(/;\s*charset=([^;])(;|$)/);H&&(_._charset=H[1].toLowerCase())}_._charset||(_._charset="utf-8")}};q(M,p.Readable),M.prototype._read=function(){var T=this._resumeFetch;T&&(this._resumeFetch=null,T())},M.prototype._onXHRProgress=function(T){var S=this,B=S._xhr,C=null;switch(S._mode){case"text":if((C=B.responseText).length>S._pos){var _=C.substr(S._pos);if(S._charset==="x-user-defined"){for(var F=O.alloc(_.length),U=0;U<_.length;U++)F[U]=255&_.charCodeAt(U);S.push(F)}else S.push(_,S._charset);S._pos=C.length}break;case"arraybuffer":if(B.readyState!==N.DONE||!B.response)break;C=B.response,S.push(O.from(new Uint8Array(C)));break;case"moz-chunked-arraybuffer":if(C=B.response,B.readyState!==N.LOADING||!C)break;S.push(O.from(new Uint8Array(C)));break;case"ms-stream":if(C=B.response,B.readyState!==N.LOADING)break;var z=new b.g.MSStreamReader;z.onprogress=function(){z.result.byteLength>S._pos&&(S.push(O.from(new Uint8Array(z.result.slice(S._pos)))),S._pos=z.result.byteLength)},z.onload=function(){T(!0),S.push(null)},z.readAsArrayBuffer(C)}S._xhr.readyState===N.DONE&&S._mode!=="ms-stream"&&(T(!0),S.push(null))}},6975:($,w,b)=>{var j=b(2861).Buffer;function O(I,q,p){var N=I._cipher.encryptBlock(I._prev)[0]^q;return I._prev=j.concat([I._prev.slice(1),j.from([p?q:N])]),N}w.encrypt=function(I,q,p){for(var N=q.length,M=j.allocUnsafe(N),T=-1;++T<N;)M[T]=O(I,q[T],p);return M}},6983:($,w,b)=>{var j=b(5606);function O(){throw new Error(`secure random number generation not supported by this browser
132
+ use chrome, FireFox or Internet Explorer 11`)}var I=b(2861),q=b(3209),p=I.Buffer,N=I.kMaxLength,M=b.g.crypto||b.g.msCrypto,T=Math.pow(2,32)-1;function S(_,F){if(typeof _!="number"||_!=_)throw new TypeError("offset must be a number");if(_>T||_<0)throw new TypeError("offset must be a uint32");if(_>N||_>F)throw new RangeError("offset out of range")}function B(_,F,U){if(typeof _!="number"||_!=_)throw new TypeError("size must be a number");if(_>T||_<0)throw new TypeError("size must be a uint32");if(_+F>U||_>N)throw new RangeError("buffer too small")}function C(_,F,U,z){if(j.browser){var H=_.buffer,D=new Uint8Array(H,F,U);return M.getRandomValues(D),z?void j.nextTick(function(){z(null,_)}):_}if(!z)return q(U).copy(_,F),_;q(U,function(Q,X){if(Q)return z(Q);X.copy(_,F),z(null,_)})}M&&M.getRandomValues||!j.browser?(w.randomFill=function(_,F,U,z){if(!(p.isBuffer(_)||_ instanceof b.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof F=="function")z=F,F=0,U=_.length;else if(typeof U=="function")z=U,U=_.length-F;else if(typeof z!="function")throw new TypeError('"cb" argument must be a function');return S(F,_.length),B(U,F,_.length),C(_,F,U,z)},w.randomFillSync=function(_,F,U){if(F===void 0&&(F=0),!(p.isBuffer(_)||_ instanceof b.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return S(F,_.length),U===void 0&&(U=_.length-F),B(U,F,_.length),C(_,F,U)}):(w.randomFill=O,w.randomFillSync=O)},7007:($,w,b)=>{var j,O=b(6763),I=typeof Reflect=="object"?Reflect:null,q=I&&typeof I.apply=="function"?I.apply:function(D,Q,X){return Function.prototype.apply.call(D,Q,X)};j=I&&typeof I.ownKeys=="function"?I.ownKeys:Object.getOwnPropertySymbols?function(D){return Object.getOwnPropertyNames(D).concat(Object.getOwnPropertySymbols(D))}:function(D){return Object.getOwnPropertyNames(D)};var p=Number.isNaN||function(D){return D!=D};function N(){N.init.call(this)}$.exports=N,$.exports.once=function(D,Q){return new Promise(function(X,et){function nt(ct){D.removeListener(Q,ut),et(ct)}function ut(){typeof D.removeListener=="function"&&D.removeListener("error",nt),X([].slice.call(arguments))}H(D,Q,ut,{once:!0}),Q!=="error"&&function(ct,vt){typeof ct.on=="function"&&H(ct,"error",vt,{once:!0})}(D,nt)})},N.EventEmitter=N,N.prototype._events=void 0,N.prototype._eventsCount=0,N.prototype._maxListeners=void 0;var M=10;function T(D){if(typeof D!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof D)}function S(D){return D._maxListeners===void 0?N.defaultMaxListeners:D._maxListeners}function B(D,Q,X,et){var nt,ut,ct,vt;if(T(X),(ut=D._events)===void 0?(ut=D._events=Object.create(null),D._eventsCount=0):(ut.newListener!==void 0&&(D.emit("newListener",Q,X.listener?X.listener:X),ut=D._events),ct=ut[Q]),ct===void 0)ct=ut[Q]=X,++D._eventsCount;else if(typeof ct=="function"?ct=ut[Q]=et?[X,ct]:[ct,X]:et?ct.unshift(X):ct.push(X),(nt=S(D))>0&&ct.length>nt&&!ct.warned){ct.warned=!0;var t=new Error("Possible EventEmitter memory leak detected. "+ct.length+" "+String(Q)+" listeners added. Use emitter.setMaxListeners() to increase limit");t.name="MaxListenersExceededWarning",t.emitter=D,t.type=Q,t.count=ct.length,vt=t,O&&O.warn&&O.warn(vt)}return D}function C(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _(D,Q,X){var et={fired:!1,wrapFn:void 0,target:D,type:Q,listener:X},nt=C.bind(et);return nt.listener=X,et.wrapFn=nt,nt}function F(D,Q,X){var et=D._events;if(et===void 0)return[];var nt=et[Q];return nt===void 0?[]:typeof nt=="function"?X?[nt.listener||nt]:[nt]:X?function(ut){for(var ct=new Array(ut.length),vt=0;vt<ct.length;++vt)ct[vt]=ut[vt].listener||ut[vt];return ct}(nt):z(nt,nt.length)}function U(D){var Q=this._events;if(Q!==void 0){var X=Q[D];if(typeof X=="function")return 1;if(X!==void 0)return X.length}return 0}function z(D,Q){for(var X=new Array(Q),et=0;et<Q;++et)X[et]=D[et];return X}function H(D,Q,X,et){if(typeof D.on=="function")et.once?D.once(Q,X):D.on(Q,X);else{if(typeof D.addEventListener!="function")throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof D);D.addEventListener(Q,function nt(ut){et.once&&D.removeEventListener(Q,nt),X(ut)})}}Object.defineProperty(N,"defaultMaxListeners",{enumerable:!0,get:function(){return M},set:function(D){if(typeof D!="number"||D<0||p(D))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+D+".");M=D}}),N.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},N.prototype.setMaxListeners=function(D){if(typeof D!="number"||D<0||p(D))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+D+".");return this._maxListeners=D,this},N.prototype.getMaxListeners=function(){return S(this)},N.prototype.emit=function(D){for(var Q=[],X=1;X<arguments.length;X++)Q.push(arguments[X]);var et=D==="error",nt=this._events;if(nt!==void 0)et=et&&nt.error===void 0;else if(!et)return!1;if(et){var ut;if(Q.length>0&&(ut=Q[0]),ut instanceof Error)throw ut;var ct=new Error("Unhandled error."+(ut?" ("+ut.message+")":""));throw ct.context=ut,ct}var vt=nt[D];if(vt===void 0)return!1;if(typeof vt=="function")q(vt,this,Q);else{var t=vt.length,h=z(vt,t);for(X=0;X<t;++X)q(h[X],this,Q)}return!0},N.prototype.addListener=function(D,Q){return B(this,D,Q,!1)},N.prototype.on=N.prototype.addListener,N.prototype.prependListener=function(D,Q){return B(this,D,Q,!0)},N.prototype.once=function(D,Q){return T(Q),this.on(D,_(this,D,Q)),this},N.prototype.prependOnceListener=function(D,Q){return T(Q),this.prependListener(D,_(this,D,Q)),this},N.prototype.removeListener=function(D,Q){var X,et,nt,ut,ct;if(T(Q),(et=this._events)===void 0)return this;if((X=et[D])===void 0)return this;if(X===Q||X.listener===Q)--this._eventsCount==0?this._events=Object.create(null):(delete et[D],et.removeListener&&this.emit("removeListener",D,X.listener||Q));else if(typeof X!="function"){for(nt=-1,ut=X.length-1;ut>=0;ut--)if(X[ut]===Q||X[ut].listener===Q){ct=X[ut].listener,nt=ut;break}if(nt<0)return this;nt===0?X.shift():function(vt,t){for(;t+1<vt.length;t++)vt[t]=vt[t+1];vt.pop()}(X,nt),X.length===1&&(et[D]=X[0]),et.removeListener!==void 0&&this.emit("removeListener",D,ct||Q)}return this},N.prototype.off=N.prototype.removeListener,N.prototype.removeAllListeners=function(D){var Q,X,et;if((X=this._events)===void 0)return this;if(X.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):X[D]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete X[D]),this;if(arguments.length===0){var nt,ut=Object.keys(X);for(et=0;et<ut.length;++et)(nt=ut[et])!=="removeListener"&&this.removeAllListeners(nt);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(Q=X[D])=="function")this.removeListener(D,Q);else if(Q!==void 0)for(et=Q.length-1;et>=0;et--)this.removeListener(D,Q[et]);return this},N.prototype.listeners=function(D){return F(this,D,!0)},N.prototype.rawListeners=function(D){return F(this,D,!1)},N.listenerCount=function(D,Q){return typeof D.listenerCount=="function"?D.listenerCount(Q):U.call(D,Q)},N.prototype.listenerCount=U,N.prototype.eventNames=function(){return this._eventsCount>0?j(this._events):[]}},7011:($,w,b)=>{var j=w,O=b(8490),I=b(3349),q=b(4367);j.assert=I,j.toArray=q.toArray,j.zero2=q.zero2,j.toHex=q.toHex,j.encode=q.encode,j.getNAF=function(p,N,M){var T,S=new Array(Math.max(p.bitLength(),M)+1);for(T=0;T<S.length;T+=1)S[T]=0;var B=1<<N+1,C=p.clone();for(T=0;T<S.length;T++){var _,F=C.andln(B-1);C.isOdd()?(_=F>(B>>1)-1?(B>>1)-F:F,C.isubn(_)):_=0,S[T]=_,C.iushrn(1)}return S},j.getJSF=function(p,N){var M=[[],[]];p=p.clone(),N=N.clone();for(var T,S=0,B=0;p.cmpn(-S)>0||N.cmpn(-B)>0;){var C,_,F=p.andln(3)+S&3,U=N.andln(3)+B&3;F===3&&(F=-1),U===3&&(U=-1),C=1&F?(T=p.andln(7)+S&7)!=3&&T!==5||U!==2?F:-F:0,M[0].push(C),_=1&U?(T=N.andln(7)+B&7)!=3&&T!==5||F!==2?U:-U:0,M[1].push(_),2*S===C+1&&(S=1-S),2*B===_+1&&(B=1-B),p.iushrn(1),N.iushrn(1)}return M},j.cachedProperty=function(p,N,M){var T="_"+N;p.prototype[N]=function(){return this[T]!==void 0?this[T]:this[T]=M.call(this)}},j.parseBytes=function(p){return typeof p=="string"?j.toArray(p,"hex"):p},j.intFromLE=function(p){return new O(p,"hex","le")}},7019:($,w,b)=>{w.TextEncoder=typeof TextEncoder<"u"?TextEncoder:b(537).TextEncoder,w.TextDecoder=typeof TextDecoder<"u"?TextDecoder:b(537).TextDecoder},7103:function($,w,b){var j=b.g!==void 0&&b.g||typeof self<"u"&&self||window,O=Function.prototype.apply;function I(q,p){this._id=q,this._clearFn=p}w.setTimeout=function(){return new I(O.call(setTimeout,j,arguments),clearTimeout)},w.setInterval=function(){return new I(O.call(setInterval,j,arguments),clearInterval)},w.clearTimeout=w.clearInterval=function(q){q&&q.close()},I.prototype.unref=I.prototype.ref=function(){},I.prototype.close=function(){this._clearFn.call(j,this._id)},w.enroll=function(q,p){clearTimeout(q._idleTimeoutId),q._idleTimeout=p},w.unenroll=function(q){clearTimeout(q._idleTimeoutId),q._idleTimeout=-1},w._unrefActive=w.active=function(q){clearTimeout(q._idleTimeoutId);var p=q._idleTimeout;p>=0&&(q._idleTimeoutId=setTimeout(function(){q._onTimeout&&q._onTimeout()},p))},b(2791),w.setImmediate=typeof self<"u"&&self.setImmediate||b.g!==void 0&&b.g.setImmediate||this&&this.setImmediate,w.clearImmediate=typeof self<"u"&&self.clearImmediate||b.g!==void 0&&b.g.clearImmediate||this&&this.clearImmediate},7108:($,w,b)=>{var j=b(6698),O=b(8276),I=b(6011),q=b(2802),p=b(6168);function N(M){p.call(this,"digest"),this._hash=M}j(N,p),N.prototype._update=function(M){this._hash.update(M)},N.prototype._final=function(){return this._hash.digest()},$.exports=function(M){return(M=M.toLowerCase())==="md5"?new O:M==="rmd160"||M==="ripemd160"?new I:new N(q(M))}},7119:$=>{$.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply},7168:($,w,b)=>{w.publicEncrypt=b(8902),w.privateDecrypt=b(7362),w.privateEncrypt=function(j,O){return w.publicEncrypt(j,O,!0)},w.publicDecrypt=function(j,O){return w.privateDecrypt(j,O,!0)}},7176:($,w,b)=>{var j,O=b(3126),I=b(5795);try{j=[].__proto__===Array.prototype}catch(M){if(!M||typeof M!="object"||!("code"in M)||M.code!=="ERR_PROTO_ACCESS")throw M}var q=!!j&&I&&I(Object.prototype,"__proto__"),p=Object,N=p.getPrototypeOf;$.exports=q&&typeof q.get=="function"?O([q.get]):typeof N=="function"&&function(M){return N(M==null?M:p(M))}},7227:($,w,b)=>{var j=b(6698),O=b(9673).Reporter,I=b(8287).Buffer;function q(N,M){O.call(this,M),I.isBuffer(N)?(this.base=N,this.offset=0,this.length=N.length):this.error("Input not Buffer")}function p(N,M){if(Array.isArray(N))this.length=0,this.value=N.map(function(T){return T instanceof p||(T=new p(T,M)),this.length+=T.length,T},this);else if(typeof N=="number"){if(!(0<=N&&N<=255))return M.error("non-byte EncoderBuffer value");this.value=N,this.length=1}else if(typeof N=="string")this.value=N,this.length=I.byteLength(N);else{if(!I.isBuffer(N))return M.error("Unsupported type: "+typeof N);this.value=N,this.length=N.length}}j(q,O),w.t=q,q.prototype.save=function(){return{offset:this.offset,reporter:O.prototype.save.call(this)}},q.prototype.restore=function(N){var M=new q(this.base);return M.offset=N.offset,M.length=this.offset,this.offset=N.offset,O.prototype.restore.call(this,N.reporter),M},q.prototype.isEmpty=function(){return this.offset===this.length},q.prototype.readUInt8=function(N){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(N||"DecoderBuffer overrun")},q.prototype.skip=function(N,M){if(!(this.offset+N<=this.length))return this.error(M||"DecoderBuffer overrun");var T=new q(this.base);return T._reporterState=this._reporterState,T.offset=this.offset,T.length=this.offset+N,this.offset+=N,T},q.prototype.raw=function(N){return this.base.slice(N?N.offset:this.offset,this.length)},w.d=p,p.prototype.join=function(N,M){return N||(N=new I(this.length)),M||(M=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(T){T.join(N,M),M+=T.length}):(typeof this.value=="number"?N[M]=this.value:typeof this.value=="string"?N.write(this.value,M):I.isBuffer(this.value)&&this.value.copy(N,M),M+=this.length)),N}},7244:($,w,b)=>{var j=b(9092)(),O=b(6556)("Object.prototype.toString"),I=function(N){return!(j&&N&&typeof N=="object"&&Symbol.toStringTag in N)&&O(N)==="[object Arguments]"},q=function(N){return!!I(N)||N!==null&&typeof N=="object"&&"length"in N&&typeof N.length=="number"&&N.length>=0&&O(N)!=="[object Array]"&&"callee"in N&&O(N.callee)==="[object Function]"},p=function(){return I(arguments)}();I.isLegacyArguments=q,$.exports=p?I:q},7260:function($){(function(){$.exports=function(){function w(){}return w.prototype.hasFeature=function(b,j){return!0},w.prototype.createDocumentType=function(b,j,O){throw new Error("This DOM method is not implemented.")},w.prototype.createDocument=function(b,j,O){throw new Error("This DOM method is not implemented.")},w.prototype.createHTMLDocument=function(b){throw new Error("This DOM method is not implemented.")},w.prototype.getFeature=function(b,j){throw new Error("This DOM method is not implemented.")},w}()}).call(this)},7307:($,w,b)=>{function j(I,q){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!q||typeof q!="object"&&typeof q!="function"?I:q}b.r(w),b.d(w,{default:()=>O});const O=function(I){function q(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";(function(M,T){if(!(M instanceof T))throw new TypeError("Cannot call a class as a function")})(this,q);var N=j(this,(q.__proto__||Object.getPrototypeOf(q)).call(this,p));return Object.defineProperty(N,"message",{configurable:!0,enumerable:!1,value:p,writable:!0}),Object.defineProperty(N,"name",{configurable:!0,enumerable:!1,value:N.constructor.name,writable:!0}),Error.hasOwnProperty("captureStackTrace")?(Error.captureStackTrace(N,N.constructor),j(N)):(Object.defineProperty(N,"stack",{configurable:!0,enumerable:!1,value:new Error(p).stack,writable:!0}),N)}return function(p,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);p.prototype=Object.create(N&&N.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(p,N):p.__proto__=N)}(q,I),q}(function(I){function q(){I.apply(this,arguments)}return q.prototype=Object.create(I.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(q,I):q.__proto__=I,q}(Error))},7314:($,w,b)=>{var j=b(5606),O=b(3225);function I(ut){var ct=this;this.next=null,this.entry=null,this.finish=function(){(function(vt,t){var h=vt.entry;for(vt.entry=null;h;){var l=h.callback;t.pendingcb--,l(void 0),h=h.next}t.corkedRequestsFree.next=vt})(ct,ut)}}$.exports=z;var q,p=!j.browser&&["v0.10","v0.9."].indexOf(j.version.slice(0,5))>-1?setImmediate:O.nextTick;z.WritableState=U;var N=Object.create(b(5622));N.inherits=b(6698);var M,T={deprecate:b(4643)},S=b(5567),B=b(4116).Buffer,C=(b.g!==void 0?b.g:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},_=b(6278);function F(){}function U(ut,ct){q=q||b(6248),ut=ut||{};var vt=ct instanceof q;this.objectMode=!!ut.objectMode,vt&&(this.objectMode=this.objectMode||!!ut.writableObjectMode);var t=ut.highWaterMark,h=ut.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=t||t===0?t:vt&&(h||h===0)?h:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=ut.decodeStrings===!1;this.decodeStrings=!a,this.defaultEncoding=ut.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(r){(function(v,A){var W=v._writableState,J=W.sync,K=W.writecb;if(function(Y){Y.writing=!1,Y.writecb=null,Y.length-=Y.writelen,Y.writelen=0}(W),A)(function(Y,at,ot,ht,tt){--at.pendingcb,ot?(O.nextTick(tt,ht),O.nextTick(nt,Y,at),Y._writableState.errorEmitted=!0,Y.emit("error",ht)):(tt(ht),Y._writableState.errorEmitted=!0,Y.emit("error",ht),nt(Y,at))})(v,W,J,A,K);else{var G=X(W);G||W.corked||W.bufferProcessing||!W.bufferedRequest||Q(v,W),J?p(D,v,W,G,K):D(v,W,G,K)}})(ct,r)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new I(this)}function z(ut){if(q=q||b(6248),!(M.call(z,this)||this instanceof q))return new z(ut);this._writableState=new U(ut,this),this.writable=!0,ut&&(typeof ut.write=="function"&&(this._write=ut.write),typeof ut.writev=="function"&&(this._writev=ut.writev),typeof ut.destroy=="function"&&(this._destroy=ut.destroy),typeof ut.final=="function"&&(this._final=ut.final)),S.call(this)}function H(ut,ct,vt,t,h,l,a){ct.writelen=t,ct.writecb=a,ct.writing=!0,ct.sync=!0,vt?ut._writev(h,ct.onwrite):ut._write(h,l,ct.onwrite),ct.sync=!1}function D(ut,ct,vt,t){vt||function(h,l){l.length===0&&l.needDrain&&(l.needDrain=!1,h.emit("drain"))}(ut,ct),ct.pendingcb--,t(),nt(ut,ct)}function Q(ut,ct){ct.bufferProcessing=!0;var vt=ct.bufferedRequest;if(ut._writev&&vt&&vt.next){var t=ct.bufferedRequestCount,h=new Array(t),l=ct.corkedRequestsFree;l.entry=vt;for(var a=0,r=!0;vt;)h[a]=vt,vt.isBuf||(r=!1),vt=vt.next,a+=1;h.allBuffers=r,H(ut,ct,!0,ct.length,h,"",l.finish),ct.pendingcb++,ct.lastBufferedRequest=null,l.next?(ct.corkedRequestsFree=l.next,l.next=null):ct.corkedRequestsFree=new I(ct),ct.bufferedRequestCount=0}else{for(;vt;){var v=vt.chunk,A=vt.encoding,W=vt.callback;if(H(ut,ct,!1,ct.objectMode?1:v.length,v,A,W),vt=vt.next,ct.bufferedRequestCount--,ct.writing)break}vt===null&&(ct.lastBufferedRequest=null)}ct.bufferedRequest=vt,ct.bufferProcessing=!1}function X(ut){return ut.ending&&ut.length===0&&ut.bufferedRequest===null&&!ut.finished&&!ut.writing}function et(ut,ct){ut._final(function(vt){ct.pendingcb--,vt&&ut.emit("error",vt),ct.prefinished=!0,ut.emit("prefinish"),nt(ut,ct)})}function nt(ut,ct){var vt=X(ct);return vt&&(function(t,h){h.prefinished||h.finalCalled||(typeof t._final=="function"?(h.pendingcb++,h.finalCalled=!0,O.nextTick(et,t,h)):(h.prefinished=!0,t.emit("prefinish")))}(ut,ct),ct.pendingcb===0&&(ct.finished=!0,ut.emit("finish"))),vt}N.inherits(z,S),U.prototype.getBuffer=function(){for(var ut=this.bufferedRequest,ct=[];ut;)ct.push(ut),ut=ut.next;return ct},function(){try{Object.defineProperty(U.prototype,"buffer",{get:T.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"?(M=Function.prototype[Symbol.hasInstance],Object.defineProperty(z,Symbol.hasInstance,{value:function(ut){return!!M.call(this,ut)||this===z&&ut&&ut._writableState instanceof U}})):M=function(ut){return ut instanceof this},z.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},z.prototype.write=function(ut,ct,vt){var t,h=this._writableState,l=!1,a=!h.objectMode&&(t=ut,B.isBuffer(t)||t instanceof C);return a&&!B.isBuffer(ut)&&(ut=function(r){return B.from(r)}(ut)),typeof ct=="function"&&(vt=ct,ct=null),a?ct="buffer":ct||(ct=h.defaultEncoding),typeof vt!="function"&&(vt=F),h.ended?function(r,v){var A=new Error("write after end");r.emit("error",A),O.nextTick(v,A)}(this,vt):(a||function(r,v,A,W){var J=!0,K=!1;return A===null?K=new TypeError("May not write null values to stream"):typeof A=="string"||A===void 0||v.objectMode||(K=new TypeError("Invalid non-string/buffer chunk")),K&&(r.emit("error",K),O.nextTick(W,K),J=!1),J}(this,h,ut,vt))&&(h.pendingcb++,l=function(r,v,A,W,J,K){if(!A){var G=function(ht,tt,it){return ht.objectMode||ht.decodeStrings===!1||typeof tt!="string"||(tt=B.from(tt,it)),tt}(v,W,J);W!==G&&(A=!0,J="buffer",W=G)}var Y=v.objectMode?1:W.length;v.length+=Y;var at=v.length<v.highWaterMark;if(at||(v.needDrain=!0),v.writing||v.corked){var ot=v.lastBufferedRequest;v.lastBufferedRequest={chunk:W,encoding:J,isBuf:A,callback:K,next:null},ot?ot.next=v.lastBufferedRequest:v.bufferedRequest=v.lastBufferedRequest,v.bufferedRequestCount+=1}else H(r,v,!1,Y,W,J,K);return at}(this,h,a,ut,ct,vt)),l},z.prototype.cork=function(){this._writableState.corked++},z.prototype.uncork=function(){var ut=this._writableState;ut.corked&&(ut.corked--,ut.writing||ut.corked||ut.bufferProcessing||!ut.bufferedRequest||Q(this,ut))},z.prototype.setDefaultEncoding=function(ut){if(typeof ut=="string"&&(ut=ut.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((ut+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+ut);return this._writableState.defaultEncoding=ut,this},Object.defineProperty(z.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),z.prototype._write=function(ut,ct,vt){vt(new Error("_write() is not implemented"))},z.prototype._writev=null,z.prototype.end=function(ut,ct,vt){var t=this._writableState;typeof ut=="function"?(vt=ut,ut=null,ct=null):typeof ct=="function"&&(vt=ct,ct=null),ut!=null&&this.write(ut,ct),t.corked&&(t.corked=1,this.uncork()),t.ending||function(h,l,a){l.ending=!0,nt(h,l),a&&(l.finished?O.nextTick(a):h.once("finish",a)),l.ended=!0,h.writable=!1}(this,t,vt)},Object.defineProperty(z.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(ut){this._writableState&&(this._writableState.destroyed=ut)}}),z.prototype.destroy=_.destroy,z.prototype._undestroy=_.undestroy,z.prototype._destroy=function(ut,ct){this.end(),ct(ut)}},7332:($,w,b)=>{var j=b(9404),O=b(3209),I=b(2861).Buffer;function q(N){var M,T=N.modulus.byteLength();do M=new j(O(T));while(M.cmp(N.modulus)>=0||!M.umod(N.prime1)||!M.umod(N.prime2));return M}function p(N,M){var T=function(X){var et=q(X);return{blinder:et.toRed(j.mont(X.modulus)).redPow(new j(X.publicExponent)).fromRed(),unblinder:et.invm(X.modulus)}}(M),S=M.modulus.byteLength(),B=new j(N).mul(T.blinder).umod(M.modulus),C=B.toRed(j.mont(M.prime1)),_=B.toRed(j.mont(M.prime2)),F=M.coefficient,U=M.prime1,z=M.prime2,H=C.redPow(M.exponent1).fromRed(),D=_.redPow(M.exponent2).fromRed(),Q=H.isub(D).imul(F).umod(U).imul(z);return D.iadd(Q).imul(T.unblinder).umod(M.modulus).toArrayLike(I,"be",S)}p.getr=q,$.exports=p},7362:($,w,b)=>{var j=b(8170),O=b(8206),I=b(2061),q=b(2509),p=b(7332),N=b(7108),M=b(9247),T=b(2861).Buffer;$.exports=function(S,B,C){var _;_=S.padding?S.padding:C?1:4;var F,U=j(S),z=U.modulus.byteLength();if(B.length>z||new q(B).cmp(U.modulus)>=0)throw new Error("decryption error");F=C?M(new q(B),U):p(B,U);var H=T.alloc(z-F.length);if(F=T.concat([H,F],z),_===4)return function(D,Q){var X=D.modulus.byteLength(),et=N("sha1").update(T.alloc(0)).digest(),nt=et.length;if(Q[0]!==0)throw new Error("decryption error");var ut=Q.slice(1,nt+1),ct=Q.slice(nt+1),vt=I(ut,O(ct,nt)),t=I(ct,O(vt,X-nt-1));if(function(l,a){l=T.from(l),a=T.from(a);var r=0,v=l.length;l.length!==a.length&&(r++,v=Math.min(l.length,a.length));for(var A=-1;++A<v;)r+=l[A]^a[A];return r}(et,t.slice(0,nt)))throw new Error("decryption error");for(var h=nt;t[h]===0;)h++;if(t[h++]!==1)throw new Error("decryption error");return t.slice(h)}(U,F);if(_===1)return function(D,Q,X){for(var et=Q.slice(0,2),nt=2,ut=0;Q[nt++]!==0;)if(nt>=Q.length){ut++;break}var ct=Q.slice(2,nt-1);if((et.toString("hex")!=="0002"&&!X||et.toString("hex")!=="0001"&&X)&&ut++,ct.length<8&&ut++,ut)throw new Error("decryption error");return Q.slice(nt)}(0,F,C);if(_===3)return F;throw new Error("unknown padding")}},7363:($,w,b)=>{var j=b(7568),O=b(6698);function I(q,p){this.name=q,this.body=p,this.decoders={},this.encoders={}}w.define=function(q,p){return new I(q,p)},I.prototype._createNamed=function(q){var p;try{p=b(8961).runInThisContext("(function "+this.name+`(entity) {
133
+ this._initNamed(entity);
134
+ })`)}catch{p=function(M){this._initNamed(M)}}return O(p,q),p.prototype._initNamed=function(N){q.call(this,N)},new p(this)},I.prototype._getDecoder=function(q){return q=q||"der",this.decoders.hasOwnProperty(q)||(this.decoders[q]=this._createNamed(j.decoders[q])),this.decoders[q]},I.prototype.decode=function(q,p,N){return this._getDecoder(p).decode(q,N)},I.prototype._getEncoder=function(q){return q=q||"der",this.encoders.hasOwnProperty(q)||(this.encoders[q]=this._createNamed(j.encoders[q])),this.encoders[q]},I.prototype.encode=function(q,p,N){return this._getEncoder(p).encode(q,N)}},7426:($,w,b)=>{var j=b(3349),O=b(6698);function I(M,T){return(64512&M.charCodeAt(T))==55296&&!(T<0||T+1>=M.length)&&(64512&M.charCodeAt(T+1))==56320}function q(M){return(M>>>24|M>>>8&65280|M<<8&16711680|(255&M)<<24)>>>0}function p(M){return M.length===1?"0"+M:M}function N(M){return M.length===7?"0"+M:M.length===6?"00"+M:M.length===5?"000"+M:M.length===4?"0000"+M:M.length===3?"00000"+M:M.length===2?"000000"+M:M.length===1?"0000000"+M:M}w.inherits=O,w.toArray=function(M,T){if(Array.isArray(M))return M.slice();if(!M)return[];var S=[];if(typeof M=="string")if(T){if(T==="hex")for((M=M.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(M="0"+M),C=0;C<M.length;C+=2)S.push(parseInt(M[C]+M[C+1],16))}else for(var B=0,C=0;C<M.length;C++){var _=M.charCodeAt(C);_<128?S[B++]=_:_<2048?(S[B++]=_>>6|192,S[B++]=63&_|128):I(M,C)?(_=65536+((1023&_)<<10)+(1023&M.charCodeAt(++C)),S[B++]=_>>18|240,S[B++]=_>>12&63|128,S[B++]=_>>6&63|128,S[B++]=63&_|128):(S[B++]=_>>12|224,S[B++]=_>>6&63|128,S[B++]=63&_|128)}else for(C=0;C<M.length;C++)S[C]=0|M[C];return S},w.toHex=function(M){for(var T="",S=0;S<M.length;S++)T+=p(M[S].toString(16));return T},w.htonl=q,w.toHex32=function(M,T){for(var S="",B=0;B<M.length;B++){var C=M[B];T==="little"&&(C=q(C)),S+=N(C.toString(16))}return S},w.zero2=p,w.zero8=N,w.join32=function(M,T,S,B){var C=S-T;j(C%4==0);for(var _=new Array(C/4),F=0,U=T;F<_.length;F++,U+=4){var z;z=B==="big"?M[U]<<24|M[U+1]<<16|M[U+2]<<8|M[U+3]:M[U+3]<<24|M[U+2]<<16|M[U+1]<<8|M[U],_[F]=z>>>0}return _},w.split32=function(M,T){for(var S=new Array(4*M.length),B=0,C=0;B<M.length;B++,C+=4){var _=M[B];T==="big"?(S[C]=_>>>24,S[C+1]=_>>>16&255,S[C+2]=_>>>8&255,S[C+3]=255&_):(S[C+3]=_>>>24,S[C+2]=_>>>16&255,S[C+1]=_>>>8&255,S[C]=255&_)}return S},w.rotr32=function(M,T){return M>>>T|M<<32-T},w.rotl32=function(M,T){return M<<T|M>>>32-T},w.sum32=function(M,T){return M+T>>>0},w.sum32_3=function(M,T,S){return M+T+S>>>0},w.sum32_4=function(M,T,S,B){return M+T+S+B>>>0},w.sum32_5=function(M,T,S,B,C){return M+T+S+B+C>>>0},w.sum64=function(M,T,S,B){var C=M[T],_=B+M[T+1]>>>0,F=(_<B?1:0)+S+C;M[T]=F>>>0,M[T+1]=_},w.sum64_hi=function(M,T,S,B){return(T+B>>>0<T?1:0)+M+S>>>0},w.sum64_lo=function(M,T,S,B){return T+B>>>0},w.sum64_4_hi=function(M,T,S,B,C,_,F,U){var z=0,H=T;return z+=(H=H+B>>>0)<T?1:0,z+=(H=H+_>>>0)<_?1:0,M+S+C+F+(z+=(H=H+U>>>0)<U?1:0)>>>0},w.sum64_4_lo=function(M,T,S,B,C,_,F,U){return T+B+_+U>>>0},w.sum64_5_hi=function(M,T,S,B,C,_,F,U,z,H){var D=0,Q=T;return D+=(Q=Q+B>>>0)<T?1:0,D+=(Q=Q+_>>>0)<_?1:0,D+=(Q=Q+U>>>0)<U?1:0,M+S+C+F+z+(D+=(Q=Q+H>>>0)<H?1:0)>>>0},w.sum64_5_lo=function(M,T,S,B,C,_,F,U,z,H){return T+B+_+U+H>>>0},w.rotr64_hi=function(M,T,S){return(T<<32-S|M>>>S)>>>0},w.rotr64_lo=function(M,T,S){return(M<<32-S|T>>>S)>>>0},w.shr64_hi=function(M,T,S){return M>>>S},w.shr64_lo=function(M,T,S){return(M<<32-S|T>>>S)>>>0}},7447:($,w,b)=>{var j=b(8490),O=b(2723),I=b(7011),q=b(480),p=b(5037),N=I.assert,M=b(1200),T=b(8545);function S(B){if(!(this instanceof S))return new S(B);typeof B=="string"&&(N(Object.prototype.hasOwnProperty.call(q,B),"Unknown curve "+B),B=q[B]),B instanceof q.PresetCurve&&(B={curve:B}),this.curve=B.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=B.curve.g,this.g.precompute(B.curve.n.bitLength()+1),this.hash=B.hash||B.curve.hash}$.exports=S,S.prototype.keyPair=function(B){return new M(this,B)},S.prototype.keyFromPrivate=function(B,C){return M.fromPrivate(this,B,C)},S.prototype.keyFromPublic=function(B,C){return M.fromPublic(this,B,C)},S.prototype.genKeyPair=function(B){B||(B={});for(var C=new O({hash:this.hash,pers:B.pers,persEnc:B.persEnc||"utf8",entropy:B.entropy||p(this.hash.hmacStrength),entropyEnc:B.entropy&&B.entropyEnc||"utf8",nonce:this.n.toArray()}),_=this.n.byteLength(),F=this.n.sub(new j(2));;){var U=new j(C.generate(_));if(!(U.cmp(F)>0))return U.iaddn(1),this.keyFromPrivate(U)}},S.prototype._truncateToN=function(B,C,_){var F;if(j.isBN(B)||typeof B=="number")F=(B=new j(B,16)).byteLength();else if(typeof B=="object")F=B.length,B=new j(B,16);else{var U=B.toString();F=U.length+1>>>1,B=new j(U,16)}typeof _!="number"&&(_=8*F);var z=_-this.n.bitLength();return z>0&&(B=B.ushrn(z)),!C&&B.cmp(this.n)>=0?B.sub(this.n):B},S.prototype.sign=function(B,C,_,F){if(typeof _=="object"&&(F=_,_=null),F||(F={}),typeof B!="string"&&typeof B!="number"&&!j.isBN(B)){N(typeof B=="object"&&B&&typeof B.length=="number","Expected message to be an array-like, a hex string, or a BN instance"),N(B.length>>>0===B.length);for(var U=0;U<B.length;U++)N((255&B[U])===B[U])}C=this.keyFromPrivate(C,_),B=this._truncateToN(B,!1,F.msgBitLength),N(!B.isNeg(),"Can not sign a negative message");var z=this.n.byteLength(),H=C.getPrivate().toArray("be",z),D=B.toArray("be",z);N(new j(D).eq(B),"Can not sign message");for(var Q=new O({hash:this.hash,entropy:H,nonce:D,pers:F.pers,persEnc:F.persEnc||"utf8"}),X=this.n.sub(new j(1)),et=0;;et++){var nt=F.k?F.k(et):new j(Q.generate(this.n.byteLength()));if(!((nt=this._truncateToN(nt,!0)).cmpn(1)<=0||nt.cmp(X)>=0)){var ut=this.g.mul(nt);if(!ut.isInfinity()){var ct=ut.getX(),vt=ct.umod(this.n);if(vt.cmpn(0)!==0){var t=nt.invm(this.n).mul(vt.mul(C.getPrivate()).iadd(B));if((t=t.umod(this.n)).cmpn(0)!==0){var h=(ut.getY().isOdd()?1:0)|(ct.cmp(vt)!==0?2:0);return F.canonical&&t.cmp(this.nh)>0&&(t=this.n.sub(t),h^=1),new T({r:vt,s:t,recoveryParam:h})}}}}}},S.prototype.verify=function(B,C,_,F,U){U||(U={}),B=this._truncateToN(B,!1,U.msgBitLength),_=this.keyFromPublic(_,F);var z=(C=new T(C,"hex")).r,H=C.s;if(z.cmpn(1)<0||z.cmp(this.n)>=0||H.cmpn(1)<0||H.cmp(this.n)>=0)return!1;var D,Q=H.invm(this.n),X=Q.mul(B).umod(this.n),et=Q.mul(z).umod(this.n);return this.curve._maxwellTrick?!(D=this.g.jmulAdd(X,_.getPublic(),et)).isInfinity()&&D.eqXToP(z):!(D=this.g.mulAdd(X,_.getPublic(),et)).isInfinity()&&D.getX().umod(this.n).cmp(z)===0},S.prototype.recoverPubKey=function(B,C,_,F){N((3&_)===_,"The recovery param is more than two bits"),C=new T(C,F);var U=this.n,z=new j(B),H=C.r,D=C.s,Q=1&_,X=_>>1;if(H.cmp(this.curve.p.umod(this.curve.n))>=0&&X)throw new Error("Unable to find sencond key candinate");H=X?this.curve.pointFromX(H.add(this.curve.n),Q):this.curve.pointFromX(H,Q);var et=C.r.invm(U),nt=U.sub(z).mul(et).umod(U),ut=D.mul(et).umod(U);return this.g.mulAdd(nt,H,ut)},S.prototype.getKeyRecoveryParam=function(B,C,_,F){if((C=new T(C,F)).recoveryParam!==null)return C.recoveryParam;for(var U=0;U<4;U++){var z;try{z=this.recoverPubKey(B,C,U)}catch{continue}if(z.eq(_))return U}throw new Error("Unable to find valid recovery factor")}},7457:function($,w,b){(function(){var j,O={}.hasOwnProperty;j=b(468),$.exports=function(I){function q(p){q.__super__.constructor.call(this,p),this.value=""}return function(p,N){for(var M in N)O.call(N,M)&&(p[M]=N[M]);function T(){this.constructor=p}T.prototype=N.prototype,p.prototype=new T,p.__super__=N.prototype}(q,I),Object.defineProperty(q.prototype,"data",{get:function(){return this.value},set:function(p){return this.value=p||""}}),Object.defineProperty(q.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(q.prototype,"textContent",{get:function(){return this.value},set:function(p){return this.value=p||""}}),q.prototype.clone=function(){return Object.create(this)},q.prototype.substringData=function(p,N){throw new Error("This DOM method is not implemented."+this.debugInfo())},q.prototype.appendData=function(p){throw new Error("This DOM method is not implemented."+this.debugInfo())},q.prototype.insertData=function(p,N){throw new Error("This DOM method is not implemented."+this.debugInfo())},q.prototype.deleteData=function(p,N){throw new Error("This DOM method is not implemented."+this.debugInfo())},q.prototype.replaceData=function(p,N,M){throw new Error("This DOM method is not implemented."+this.debugInfo())},q.prototype.isEqualNode=function(p){return!!q.__super__.isEqualNode.apply(this,arguments).isEqualNode(p)&&p.data===this.data},q}(j)}).call(this)},7510:$=>{$.exports=function(){for(var b={},j=0;j<arguments.length;j++){var O=arguments[j];for(var I in O)w.call(O,I)&&(b[I]=O[I])}return b};var w=Object.prototype.hasOwnProperty},7526:($,w)=>{w.byteLength=function(M){var T=p(M),S=T[0],B=T[1];return 3*(S+B)/4-B},w.toByteArray=function(M){var T,S,B=p(M),C=B[0],_=B[1],F=new O(function(H,D,Q){return 3*(D+Q)/4-Q}(0,C,_)),U=0,z=_>0?C-4:C;for(S=0;S<z;S+=4)T=j[M.charCodeAt(S)]<<18|j[M.charCodeAt(S+1)]<<12|j[M.charCodeAt(S+2)]<<6|j[M.charCodeAt(S+3)],F[U++]=T>>16&255,F[U++]=T>>8&255,F[U++]=255&T;return _===2&&(T=j[M.charCodeAt(S)]<<2|j[M.charCodeAt(S+1)]>>4,F[U++]=255&T),_===1&&(T=j[M.charCodeAt(S)]<<10|j[M.charCodeAt(S+1)]<<4|j[M.charCodeAt(S+2)]>>2,F[U++]=T>>8&255,F[U++]=255&T),F},w.fromByteArray=function(M){for(var T,S=M.length,B=S%3,C=[],_=16383,F=0,U=S-B;F<U;F+=_)C.push(N(M,F,F+_>U?U:F+_));return B===1?(T=M[S-1],C.push(b[T>>2]+b[T<<4&63]+"==")):B===2&&(T=(M[S-2]<<8)+M[S-1],C.push(b[T>>10]+b[T>>4&63]+b[T<<2&63]+"=")),C.join("")};for(var b=[],j=[],O=typeof Uint8Array<"u"?Uint8Array:Array,I="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",q=0;q<64;++q)b[q]=I[q],j[I.charCodeAt(q)]=q;function p(M){var T=M.length;if(T%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var S=M.indexOf("=");return S===-1&&(S=T),[S,S===T?0:4-S%4]}function N(M,T,S){for(var B,C,_=[],F=T;F<S;F+=3)B=(M[F]<<16&16711680)+(M[F+1]<<8&65280)+(255&M[F+2]),_.push(b[(C=B)>>18&63]+b[C>>12&63]+b[C>>6&63]+b[63&C]);return _.join("")}j["-".charCodeAt(0)]=62,j["_".charCodeAt(0)]=63},7568:($,w,b)=>{var j=w;j.bignum=b(2344),j.define=b(7363).define,j.base=b(9673),j.constants=b(2153),j.decoders=b(2853),j.encoders=b(4669)},7598:($,w,b)=>{$.exports=b(1813)},7626:($,w)=>{w.readUInt32BE=function(I,q){return(I[0+q]<<24|I[1+q]<<16|I[2+q]<<8|I[3+q])>>>0},w.writeUInt32BE=function(I,q,p){I[0+p]=q>>>24,I[1+p]=q>>>16&255,I[2+p]=q>>>8&255,I[3+p]=255&q},w.ip=function(I,q,p,N){for(var M=0,T=0,S=6;S>=0;S-=2){for(var B=0;B<=24;B+=8)M<<=1,M|=q>>>B+S&1;for(B=0;B<=24;B+=8)M<<=1,M|=I>>>B+S&1}for(S=6;S>=0;S-=2){for(B=1;B<=25;B+=8)T<<=1,T|=q>>>B+S&1;for(B=1;B<=25;B+=8)T<<=1,T|=I>>>B+S&1}p[N+0]=M>>>0,p[N+1]=T>>>0},w.rip=function(I,q,p,N){for(var M=0,T=0,S=0;S<4;S++)for(var B=24;B>=0;B-=8)M<<=1,M|=q>>>B+S&1,M<<=1,M|=I>>>B+S&1;for(S=4;S<8;S++)for(B=24;B>=0;B-=8)T<<=1,T|=q>>>B+S&1,T<<=1,T|=I>>>B+S&1;p[N+0]=M>>>0,p[N+1]=T>>>0},w.pc1=function(I,q,p,N){for(var M=0,T=0,S=7;S>=5;S--){for(var B=0;B<=24;B+=8)M<<=1,M|=q>>B+S&1;for(B=0;B<=24;B+=8)M<<=1,M|=I>>B+S&1}for(B=0;B<=24;B+=8)M<<=1,M|=q>>B+S&1;for(S=1;S<=3;S++){for(B=0;B<=24;B+=8)T<<=1,T|=q>>B+S&1;for(B=0;B<=24;B+=8)T<<=1,T|=I>>B+S&1}for(B=0;B<=24;B+=8)T<<=1,T|=I>>B+S&1;p[N+0]=M>>>0,p[N+1]=T>>>0},w.r28shl=function(I,q){return I<<q&268435455|I>>>28-q};var b=[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];w.pc2=function(I,q,p,N){for(var M=0,T=0,S=b.length>>>1,B=0;B<S;B++)M<<=1,M|=I>>>b[B]&1;for(B=S;B<b.length;B++)T<<=1,T|=q>>>b[B]&1;p[N+0]=M>>>0,p[N+1]=T>>>0},w.expand=function(I,q,p){var N=0,M=0;N=(1&I)<<5|I>>>27;for(var T=23;T>=15;T-=4)N<<=6,N|=I>>>T&63;for(T=11;T>=3;T-=4)M|=I>>>T&63,M<<=6;M|=(31&I)<<1|I>>>31,q[p+0]=N>>>0,q[p+1]=M>>>0};var j=[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];w.substitute=function(I,q){for(var p=0,N=0;N<4;N++)p<<=4,p|=j[64*N+(I>>>18-6*N&63)];for(N=0;N<4;N++)p<<=4,p|=j[256+64*N+(q>>>18-6*N&63)];return p>>>0};var O=[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];w.permute=function(I){for(var q=0,p=0;p<O.length;p++)q<<=1,q|=I>>>O[p]&1;return q>>>0},w.padSplit=function(I,q,p){for(var N=I.toString(2);N.length<q;)N="0"+N;for(var M=[],T=0;T<q;T+=p)M.push(N.slice(T,T+p));return M.join(" ")}},7653:($,w,b)=>{var j=b(8452),O=b(487),I=b(9211),q=b(9394),p=b(6576),N=O(q(),Object);j(N,{getPolyfill:q,implementation:I,shim:p}),$.exports=N},7696:function($,w,b){(function(){var j,O,I={}.hasOwnProperty;O=b(468),j=b(1737),$.exports=function(q){function p(N,M,T){if(p.__super__.constructor.call(this,N),M==null)throw new Error("Missing DTD element name. "+this.debugInfo());T||(T="(#PCDATA)"),Array.isArray(T)&&(T="("+T.join(",")+")"),this.name=this.stringify.name(M),this.type=j.ElementDeclaration,this.value=this.stringify.dtdElementValue(T)}return function(N,M){for(var T in M)I.call(M,T)&&(N[T]=M[T]);function S(){this.constructor=N}S.prototype=M.prototype,N.prototype=new S,N.__super__=M.prototype}(p,q),p.prototype.toString=function(N){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(N))},p}(O)}).call(this)},7714:($,w,b)=>{var j=b(7426),O=b(2287);function I(){if(!(this instanceof I))return new I;O.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}j.inherits(I,O),$.exports=I,I.blockSize=512,I.outSize=224,I.hmacStrength=192,I.padLength=64,I.prototype._digest=function(q){return q==="hex"?j.toHex32(this.h.slice(0,7),"big"):j.split32(this.h.slice(0,7),"big")}},7720:($,w,b)=>{var j=b(4765),O=Object.prototype.hasOwnProperty,I=Array.isArray,q=function(){for(var M=[],T=0;T<256;++T)M.push("%"+((T<16?"0":"")+T.toString(16)).toUpperCase());return M}(),p=function(M,T){for(var S=T&&T.plainObjects?{__proto__:null}:{},B=0;B<M.length;++B)M[B]!==void 0&&(S[B]=M[B]);return S},N=1024;$.exports={arrayToObject:p,assign:function(M,T){return Object.keys(T).reduce(function(S,B){return S[B]=T[B],S},M)},combine:function(M,T){return[].concat(M,T)},compact:function(M){for(var T=[{obj:{o:M},prop:"o"}],S=[],B=0;B<T.length;++B)for(var C=T[B],_=C.obj[C.prop],F=Object.keys(_),U=0;U<F.length;++U){var z=F[U],H=_[z];typeof H=="object"&&H!==null&&S.indexOf(H)===-1&&(T.push({obj:_,prop:z}),S.push(H))}return function(D){for(;D.length>1;){var Q=D.pop(),X=Q.obj[Q.prop];if(I(X)){for(var et=[],nt=0;nt<X.length;++nt)X[nt]!==void 0&&et.push(X[nt]);Q.obj[Q.prop]=et}}}(T),M},decode:function(M,T,S){var B=M.replace(/\+/g," ");if(S==="iso-8859-1")return B.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(B)}catch{return B}},encode:function(M,T,S,B,C){if(M.length===0)return M;var _=M;if(typeof M=="symbol"?_=Symbol.prototype.toString.call(M):typeof M!="string"&&(_=String(M)),S==="iso-8859-1")return escape(_).replace(/%u[0-9a-f]{4}/gi,function(X){return"%26%23"+parseInt(X.slice(2),16)+"%3B"});for(var F="",U=0;U<_.length;U+=N){for(var z=_.length>=N?_.slice(U,U+N):_,H=[],D=0;D<z.length;++D){var Q=z.charCodeAt(D);Q===45||Q===46||Q===95||Q===126||Q>=48&&Q<=57||Q>=65&&Q<=90||Q>=97&&Q<=122||C===j.RFC1738&&(Q===40||Q===41)?H[H.length]=z.charAt(D):Q<128?H[H.length]=q[Q]:Q<2048?H[H.length]=q[192|Q>>6]+q[128|63&Q]:Q<55296||Q>=57344?H[H.length]=q[224|Q>>12]+q[128|Q>>6&63]+q[128|63&Q]:(D+=1,Q=65536+((1023&Q)<<10|1023&z.charCodeAt(D)),H[H.length]=q[240|Q>>18]+q[128|Q>>12&63]+q[128|Q>>6&63]+q[128|63&Q])}F+=H.join("")}return F},isBuffer:function(M){return!(!M||typeof M!="object"||!(M.constructor&&M.constructor.isBuffer&&M.constructor.isBuffer(M)))},isRegExp:function(M){return Object.prototype.toString.call(M)==="[object RegExp]"},maybeMap:function(M,T){if(I(M)){for(var S=[],B=0;B<M.length;B+=1)S.push(T(M[B]));return S}return T(M)},merge:function M(T,S,B){if(!S)return T;if(typeof S!="object"&&typeof S!="function"){if(I(T))T.push(S);else{if(!T||typeof T!="object")return[T,S];(B&&(B.plainObjects||B.allowPrototypes)||!O.call(Object.prototype,S))&&(T[S]=!0)}return T}if(!T||typeof T!="object")return[T].concat(S);var C=T;return I(T)&&!I(S)&&(C=p(T,B)),I(T)&&I(S)?(S.forEach(function(_,F){if(O.call(T,F)){var U=T[F];U&&typeof U=="object"&&_&&typeof _=="object"?T[F]=M(U,_,B):T.push(_)}else T[F]=_}),T):Object.keys(S).reduce(function(_,F){var U=S[F];return O.call(_,F)?_[F]=M(_[F],U,B):_[F]=U,_},C)}}},7758:($,w,b)=>{var j,O=b(6048).F,I=O.ERR_MISSING_ARGS,q=O.ERR_STREAM_DESTROYED;function p(T){if(T)throw T}function N(T){T()}function M(T,S){return T.pipe(S)}$.exports=function(){for(var T=arguments.length,S=new Array(T),B=0;B<T;B++)S[B]=arguments[B];var C,_=function(U){return U.length?typeof U[U.length-1]!="function"?p:U.pop():p}(S);if(Array.isArray(S[0])&&(S=S[0]),S.length<2)throw new I("streams");var F=S.map(function(U,z){var H=z<S.length-1;return function(D,Q,X,et){et=function(ct){var vt=!1;return function(){vt||(vt=!0,ct.apply(void 0,arguments))}}(et);var nt=!1;D.on("close",function(){nt=!0}),j===void 0&&(j=b(6238)),j(D,{readable:Q,writable:X},function(ct){if(ct)return et(ct);nt=!0,et()});var ut=!1;return function(ct){if(!nt&&!ut)return ut=!0,function(vt){return vt.setHeader&&typeof vt.abort=="function"}(D)?D.abort():typeof D.destroy=="function"?D.destroy():void et(ct||new q("pipe"))}}(U,H,z>0,function(D){C||(C=D),D&&F.forEach(N),H||(F.forEach(N),_(C))})});return S.reduce(M)}},7765:($,w,b)=>{const j=b(5334),O=b(5334).buildOptions,I=b(361),q=b(7983);"<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,j.nameRegexp),!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const p={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(U,z){return U},attrValueProcessor:function(U,z){return U},stopNodes:[],alwaysCreateTextNode:!1};w.defaultOptions=p;const N=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","ignoreNameSpace","allowBooleanAttributes","parseNodeValue","parseAttributeValue","arrayMode","trimValues","cdataTagName","cdataPositionChar","tagValueProcessor","attrValueProcessor","parseTrueNumberOnly","numParseOptions","stopNodes","alwaysCreateTextNode"];function M(U,z,H){return z&&(H.trimValues&&(z=z.trim()),z=S(z=H.tagValueProcessor(z,U),H.parseNodeValue,H.numParseOptions)),z}function T(U,z){if(z.ignoreNameSpace){const H=U.split(":"),D=U.charAt(0)==="/"?"/":"";if(H[0]==="xmlns")return"";H.length===2&&(U=D+H[1])}return U}function S(U,z,H){if(z&&typeof U=="string"){const D=U.trim();return D==="true"||D!=="false"&&q(U,H)}return j.isExist(U)?U:""}w.props=N;const B=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])(.*?)\\3)?`,"g");function C(U,z){if(!z.ignoreAttributes&&typeof U=="string"){U=U.replace(/\r?\n/g," ");const H=j.getAllMatches(U,B),D=H.length,Q={};for(let X=0;X<D;X++){const et=T(H[X][1],z);et.length&&(H[X][4]!==void 0?(z.trimValues&&(H[X][4]=H[X][4].trim()),H[X][4]=z.attrValueProcessor(H[X][4],et),Q[z.attributeNamePrefix+et]=S(H[X][4],z.parseAttributeValue,z.numParseOptions)):z.allowBooleanAttributes&&(Q[z.attributeNamePrefix+et]=!0))}if(!Object.keys(Q).length)return;if(z.attrNodeName){const X={};return X[z.attrNodeName]=Q,X}return Q}}function _(U,z){let H,D="";for(let Q=z;Q<U.length;Q++){let X=U[Q];if(H)X===H&&(H="");else if(X==='"'||X==="'")H=X;else{if(X===">")return{data:D,index:Q};X===" "&&(X=" ")}D+=X}}function F(U,z,H,D){const Q=U.indexOf(z,H);if(Q===-1)throw new Error(D);return Q+z.length-1}w.getTraversalObj=function(U,z){U=U.replace(/\r\n?/g,`
135
+ `),z=O(z,p,N);const H=new I("!xml");let D=H,Q="";for(let X=0;X<U.length;X++)if(U[X]==="<")if(U[X+1]==="/"){const et=F(U,">",X,"Closing Tag is not closed.");let nt=U.substring(X+2,et).trim();if(z.ignoreNameSpace){const ut=nt.indexOf(":");ut!==-1&&(nt=nt.substr(ut+1))}D&&(D.val?D.val=j.getValue(D.val)+""+M(nt,Q,z):D.val=M(nt,Q,z)),z.stopNodes.length&&z.stopNodes.includes(D.tagname)&&(D.child=[],D.attrsMap==null&&(D.attrsMap={}),D.val=U.substr(D.startIndex+1,X-D.startIndex-1)),D=D.parent,Q="",X=et}else if(U[X+1]==="?")X=F(U,"?>",X,"Pi Tag is not closed.");else if(U.substr(X+1,3)==="!--")X=F(U,"-->",X,"Comment is not closed.");else if(U.substr(X+1,2)==="!D"){const et=F(U,">",X,"DOCTYPE is not closed.");X=U.substring(X,et).indexOf("[")>=0?U.indexOf("]>",X)+1:et}else if(U.substr(X+1,2)==="!["){const et=F(U,"]]>",X,"CDATA is not closed.")-2,nt=U.substring(X+9,et);if(Q&&(D.val=j.getValue(D.val)+""+M(D.tagname,Q,z),Q=""),z.cdataTagName){const ut=new I(z.cdataTagName,D,nt);D.addChild(ut),D.val=j.getValue(D.val)+z.cdataPositionChar,nt&&(ut.val=nt)}else D.val=(D.val||"")+(nt||"");X=et+2}else{const et=_(U,X+1);let nt=et.data;const ut=et.index,ct=nt.indexOf(" ");let vt=nt,t=!0;if(ct!==-1&&(vt=nt.substr(0,ct).replace(/\s\s*$/,""),nt=nt.substr(ct+1)),z.ignoreNameSpace){const h=vt.indexOf(":");h!==-1&&(vt=vt.substr(h+1),t=vt!==et.data.substr(h+1))}if(D&&Q&&D.tagname!=="!xml"&&(D.val=j.getValue(D.val)+""+M(D.tagname,Q,z)),nt.length>0&&nt.lastIndexOf("/")===nt.length-1){vt[vt.length-1]==="/"?(vt=vt.substr(0,vt.length-1),nt=vt):nt=nt.substr(0,nt.length-1);const h=new I(vt,D,"");vt!==nt&&(h.attrsMap=C(nt,z)),D.addChild(h)}else{const h=new I(vt,D);z.stopNodes.length&&z.stopNodes.includes(h.tagname)&&(h.startIndex=ut),vt!==nt&&t&&(h.attrsMap=C(nt,z)),D.addChild(h),D=h}Q="",X=ut}else Q+=U[X];return H}},7766:($,w,b)=>{var j=b(7426),O=b(6166),I=b(3349),q=j.rotr64_hi,p=j.rotr64_lo,N=j.shr64_hi,M=j.shr64_lo,T=j.sum64,S=j.sum64_hi,B=j.sum64_lo,C=j.sum64_4_hi,_=j.sum64_4_lo,F=j.sum64_5_hi,U=j.sum64_5_lo,z=O.BlockHash,H=[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 D(){if(!(this instanceof D))return new D;z.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=H,this.W=new Array(160)}function Q(a,r,v,A,W){var J=a&v^~a&W;return J<0&&(J+=4294967296),J}function X(a,r,v,A,W,J){var K=r&A^~r&J;return K<0&&(K+=4294967296),K}function et(a,r,v,A,W){var J=a&v^a&W^v&W;return J<0&&(J+=4294967296),J}function nt(a,r,v,A,W,J){var K=r&A^r&J^A&J;return K<0&&(K+=4294967296),K}function ut(a,r){var v=q(a,r,28)^q(r,a,2)^q(r,a,7);return v<0&&(v+=4294967296),v}function ct(a,r){var v=p(a,r,28)^p(r,a,2)^p(r,a,7);return v<0&&(v+=4294967296),v}function vt(a,r){var v=p(a,r,14)^p(a,r,18)^p(r,a,9);return v<0&&(v+=4294967296),v}function t(a,r){var v=q(a,r,1)^q(a,r,8)^N(a,r,7);return v<0&&(v+=4294967296),v}function h(a,r){var v=p(a,r,1)^p(a,r,8)^M(a,r,7);return v<0&&(v+=4294967296),v}function l(a,r){var v=p(a,r,19)^p(r,a,29)^M(a,r,6);return v<0&&(v+=4294967296),v}j.inherits(D,z),$.exports=D,D.blockSize=1024,D.outSize=512,D.hmacStrength=192,D.padLength=128,D.prototype._prepareBlock=function(a,r){for(var v=this.W,A=0;A<32;A++)v[A]=a[r+A];for(;A<v.length;A+=2){var W=(tt=v[A-4],it=v[A-3],Z=void 0,(Z=q(tt,it,19)^q(it,tt,29)^N(tt,it,6))<0&&(Z+=4294967296),Z),J=l(v[A-4],v[A-3]),K=v[A-14],G=v[A-13],Y=t(v[A-30],v[A-29]),at=h(v[A-30],v[A-29]),ot=v[A-32],ht=v[A-31];v[A]=C(W,J,K,G,Y,at,ot,ht),v[A+1]=_(W,J,K,G,Y,at,ot,ht)}var tt,it,Z},D.prototype._update=function(a,r){this._prepareBlock(a,r);var v,A,W,J=this.W,K=this.h[0],G=this.h[1],Y=this.h[2],at=this.h[3],ot=this.h[4],ht=this.h[5],tt=this.h[6],it=this.h[7],Z=this.h[8],rt=this.h[9],wt=this.h[10],gt=this.h[11],St=this.h[12],Lt=this.h[13],At=this.h[14],jt=this.h[15];I(this.k.length===J.length);for(var Qt=0;Qt<J.length;Qt+=2){var Dt=At,zt=jt,ft=(W=void 0,(W=q(v=Z,A=rt,14)^q(v,A,18)^q(A,v,9))<0&&(W+=4294967296),W),pt=vt(Z,rt),mt=Q(Z,0,wt,0,St),Mt=X(0,rt,0,gt,0,Lt),xt=this.k[Qt],kt=this.k[Qt+1],$t=J[Qt],Pt=J[Qt+1],yt=F(Dt,zt,ft,pt,mt,Mt,xt,kt,$t,Pt),dt=U(Dt,zt,ft,pt,mt,Mt,xt,kt,$t,Pt);Dt=ut(K,G),zt=ct(K,G),ft=et(K,0,Y,0,ot),pt=nt(0,G,0,at,0,ht);var lt=S(Dt,zt,ft,pt),_t=B(Dt,zt,ft,pt);At=St,jt=Lt,St=wt,Lt=gt,wt=Z,gt=rt,Z=S(tt,it,yt,dt),rt=B(it,it,yt,dt),tt=ot,it=ht,ot=Y,ht=at,Y=K,at=G,K=S(yt,dt,lt,_t),G=B(yt,dt,lt,_t)}T(this.h,0,K,G),T(this.h,2,Y,at),T(this.h,4,ot,ht),T(this.h,6,tt,it),T(this.h,8,Z,rt),T(this.h,10,wt,gt),T(this.h,12,St,Lt),T(this.h,14,At,jt)},D.prototype._digest=function(a){return a==="hex"?j.toHex32(this.h,"big"):j.split32(this.h,"big")}},7771:($,w,b)=>{var j=b(8287).Buffer,O=b(537),I=b(8310).Transform;$.exports=function(p){return new q(p)};var q=$.exports.JSONStream=function(p){p=p||{},I.call(this,p),this._writableState.objectMode=!1,this._readableState.objectMode=!0,this._async=p.async||!1};O.inherits(q,I),q.prototype._transform=function(p,N,M){j.isBuffer(p)||(p=new j(p)),this._buffer&&(p=j.concat([this._buffer,p]));for(var T=0,S=0;++T<=p.length;)if(p[T]===10||T===p.length){var B;try{B=JSON.parse(p.slice(S,T))}catch{}B&&(this.push(B),B=null),p[T]===10&&(S=++T)}return this._buffer=p.slice(S),this._async?void setImmediate(M):void M()}},7790:()=>{},7816:($,w,b)=>{var j=b(6698),O=b(392),I=b(2861).Buffer,q=[1518500249,1859775393,-1894007588,-899497514],p=new Array(80);function N(){this.init(),this._w=p,O.call(this,64,56)}function M(S){return S<<30|S>>>2}function T(S,B,C,_){return S===0?B&C|~B&_:S===2?B&C|B&_|C&_:B^C^_}j(N,O),N.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},N.prototype._update=function(S){for(var B,C=this._w,_=0|this._a,F=0|this._b,U=0|this._c,z=0|this._d,H=0|this._e,D=0;D<16;++D)C[D]=S.readInt32BE(4*D);for(;D<80;++D)C[D]=C[D-3]^C[D-8]^C[D-14]^C[D-16];for(var Q=0;Q<80;++Q){var X=~~(Q/20),et=0|((B=_)<<5|B>>>27)+T(X,F,U,z)+H+C[Q]+q[X];H=z,z=U,U=M(F),F=_,_=et}this._a=_+this._a|0,this._b=F+this._b|0,this._c=U+this._c|0,this._d=z+this._d|0,this._e=H+this._e|0},N.prototype._hash=function(){var S=I.allocUnsafe(20);return S.writeInt32BE(0|this._a,0),S.writeInt32BE(0|this._b,4),S.writeInt32BE(0|this._c,8),S.writeInt32BE(0|this._d,12),S.writeInt32BE(0|this._e,16),S},$.exports=N},7952:($,w,b)=>{var j=w;j.utils=b(7426),j.common=b(6166),j.sha=b(6229),j.ripemd=b(6784),j.hmac=b(8948),j.sha1=j.sha.sha1,j.sha256=j.sha.sha256,j.sha224=j.sha.sha224,j.sha384=j.sha.sha384,j.sha512=j.sha.sha512,j.ripemd160=j.ripemd.ripemd160},7965:()=>{},7975:($,w,b)=>{var j=b(5606);function O(p){if(typeof p!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(p))}function I(p,N){for(var M,T="",S=0,B=-1,C=0,_=0;_<=p.length;++_){if(_<p.length)M=p.charCodeAt(_);else{if(M===47)break;M=47}if(M===47){if(!(B===_-1||C===1))if(B!==_-1&&C===2){if(T.length<2||S!==2||T.charCodeAt(T.length-1)!==46||T.charCodeAt(T.length-2)!==46){if(T.length>2){var F=T.lastIndexOf("/");if(F!==T.length-1){F===-1?(T="",S=0):S=(T=T.slice(0,F)).length-1-T.lastIndexOf("/"),B=_,C=0;continue}}else if(T.length===2||T.length===1){T="",S=0,B=_,C=0;continue}}N&&(T.length>0?T+="/..":T="..",S=2)}else T.length>0?T+="/"+p.slice(B+1,_):T=p.slice(B+1,_),S=_-B-1;B=_,C=0}else M===46&&C!==-1?++C:C=-1}return T}var q={resolve:function(){for(var p,N="",M=!1,T=arguments.length-1;T>=-1&&!M;T--){var S;T>=0?S=arguments[T]:(p===void 0&&(p=j.cwd()),S=p),O(S),S.length!==0&&(N=S+"/"+N,M=S.charCodeAt(0)===47)}return N=I(N,!M),M?N.length>0?"/"+N:"/":N.length>0?N:"."},normalize:function(p){if(O(p),p.length===0)return".";var N=p.charCodeAt(0)===47,M=p.charCodeAt(p.length-1)===47;return(p=I(p,!N)).length!==0||N||(p="."),p.length>0&&M&&(p+="/"),N?"/"+p:p},isAbsolute:function(p){return O(p),p.length>0&&p.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var p,N=0;N<arguments.length;++N){var M=arguments[N];O(M),M.length>0&&(p===void 0?p=M:p+="/"+M)}return p===void 0?".":q.normalize(p)},relative:function(p,N){if(O(p),O(N),p===N||(p=q.resolve(p))===(N=q.resolve(N)))return"";for(var M=1;M<p.length&&p.charCodeAt(M)===47;++M);for(var T=p.length,S=T-M,B=1;B<N.length&&N.charCodeAt(B)===47;++B);for(var C=N.length-B,_=S<C?S:C,F=-1,U=0;U<=_;++U){if(U===_){if(C>_){if(N.charCodeAt(B+U)===47)return N.slice(B+U+1);if(U===0)return N.slice(B+U)}else S>_&&(p.charCodeAt(M+U)===47?F=U:U===0&&(F=0));break}var z=p.charCodeAt(M+U);if(z!==N.charCodeAt(B+U))break;z===47&&(F=U)}var H="";for(U=M+F+1;U<=T;++U)U!==T&&p.charCodeAt(U)!==47||(H.length===0?H+="..":H+="/..");return H.length>0?H+N.slice(B+F):(B+=F,N.charCodeAt(B)===47&&++B,N.slice(B))},_makeLong:function(p){return p},dirname:function(p){if(O(p),p.length===0)return".";for(var N=p.charCodeAt(0),M=N===47,T=-1,S=!0,B=p.length-1;B>=1;--B)if((N=p.charCodeAt(B))===47){if(!S){T=B;break}}else S=!1;return T===-1?M?"/":".":M&&T===1?"//":p.slice(0,T)},basename:function(p,N){if(N!==void 0&&typeof N!="string")throw new TypeError('"ext" argument must be a string');O(p);var M,T=0,S=-1,B=!0;if(N!==void 0&&N.length>0&&N.length<=p.length){if(N.length===p.length&&N===p)return"";var C=N.length-1,_=-1;for(M=p.length-1;M>=0;--M){var F=p.charCodeAt(M);if(F===47){if(!B){T=M+1;break}}else _===-1&&(B=!1,_=M+1),C>=0&&(F===N.charCodeAt(C)?--C==-1&&(S=M):(C=-1,S=_))}return T===S?S=_:S===-1&&(S=p.length),p.slice(T,S)}for(M=p.length-1;M>=0;--M)if(p.charCodeAt(M)===47){if(!B){T=M+1;break}}else S===-1&&(B=!1,S=M+1);return S===-1?"":p.slice(T,S)},extname:function(p){O(p);for(var N=-1,M=0,T=-1,S=!0,B=0,C=p.length-1;C>=0;--C){var _=p.charCodeAt(C);if(_!==47)T===-1&&(S=!1,T=C+1),_===46?N===-1?N=C:B!==1&&(B=1):N!==-1&&(B=-1);else if(!S){M=C+1;break}}return N===-1||T===-1||B===0||B===1&&N===T-1&&N===M+1?"":p.slice(N,T)},format:function(p){if(p===null||typeof p!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof p);return function(N,M){var T=M.dir||M.root,S=M.base||(M.name||"")+(M.ext||"");return T?T===M.root?T+S:T+"/"+S:S}(0,p)},parse:function(p){O(p);var N={root:"",dir:"",base:"",ext:"",name:""};if(p.length===0)return N;var M,T=p.charCodeAt(0),S=T===47;S?(N.root="/",M=1):M=0;for(var B=-1,C=0,_=-1,F=!0,U=p.length-1,z=0;U>=M;--U)if((T=p.charCodeAt(U))!==47)_===-1&&(F=!1,_=U+1),T===46?B===-1?B=U:z!==1&&(z=1):B!==-1&&(z=-1);else if(!F){C=U+1;break}return B===-1||_===-1||z===0||z===1&&B===_-1&&B===C+1?_!==-1&&(N.base=N.name=C===0&&S?p.slice(1,_):p.slice(C,_)):(C===0&&S?(N.name=p.slice(1,B),N.base=p.slice(1,_)):(N.name=p.slice(C,B),N.base=p.slice(C,_)),N.ext=p.slice(B,_)),C>0?N.dir=p.slice(0,C-1):S&&(N.dir="/"),N},sep:"/",delimiter:":",win32:null,posix:null};q.posix=q,$.exports=q},7983:$=>{const w=/^[-+]?0x[a-fA-F0-9]+$/,b=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,j={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};$.exports=function(O,I={}){if(I=Object.assign({},j,I),!O||typeof O!="string")return O;let q=O.trim();if(I.skipLike!==void 0&&I.skipLike.test(q))return O;if(O==="0")return 0;if(I.hex&&w.test(q))return function(N){if(parseInt)return parseInt(N,16);if(Number.parseInt)return Number.parseInt(N,16);if(window&&window.parseInt)return window.parseInt(N,16);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}(q);if(q.search(/[eE]/)!==-1){const N=q.match(/^([-\+])?(0*)([0-9]*(\.[0-9]*)?[eE][-\+]?[0-9]+)$/);if(N){if(I.leadingZeros)q=(N[1]||"")+N[3];else if(N[2]!=="0"||N[3][0]!==".")return O;return I.eNotation?Number(q):O}return O}{const N=b.exec(q);if(N){const M=N[1],T=N[2];let S=((p=N[3])&&p.indexOf(".")!==-1&&((p=p.replace(/0+$/,""))==="."?p="0":p[0]==="."?p="0"+p:p[p.length-1]==="."&&(p=p.substr(0,p.length-1))),p);if(!I.leadingZeros&&T.length>0&&M&&q[2]!=="."||!I.leadingZeros&&T.length>0&&!M&&q[1]!==".")return O;if(I.leadingZeros&&T===O)return 0;{const B=Number(q),C=""+B;return C.search(/[eE]/)!==-1?I.eNotation?B:O:q.indexOf(".")!==-1?C==="0"&&S===""||C===S||M&&C==="-"+S?B:O:T?S===C||M+S===C?B:O:q===C||q===M+C?B:O}}return O}var p}},8002:$=>{$.exports=Math.min},8012:function($,w,b){(function(){var j,O,I={}.hasOwnProperty;O=b(468),j=b(1737),$.exports=function(q){function p(N,M,T){if(p.__super__.constructor.call(this,N),M==null)throw new Error("Missing DTD notation name. "+this.debugInfo(M));if(!T.pubID&&!T.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(M));this.name=this.stringify.name(M),this.type=j.NotationDeclaration,T.pubID!=null&&(this.pubID=this.stringify.dtdPubID(T.pubID)),T.sysID!=null&&(this.sysID=this.stringify.dtdSysID(T.sysID))}return function(N,M){for(var T in M)I.call(M,T)&&(N[T]=M[T]);function S(){this.constructor=N}S.prototype=M.prototype,N.prototype=new S,N.__super__=M.prototype}(p,q),Object.defineProperty(p.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(p.prototype,"systemId",{get:function(){return this.sysID}}),p.prototype.toString=function(N){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(N))},p}(O)}).call(this)},8038:($,w,b)=>{var j=b(5606);Object.defineProperty(w,"__esModule",{value:!0});var O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(N){return typeof N}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},I=typeof window<"u"&&window.document!==void 0,q=(typeof self>"u"?"undefined":O(self))==="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope",p=j!==void 0&&j.versions!=null&&j.versions.node!=null;w.isBrowser=I,w.isWebWorker=q,w.isNode=p,w.isJsDom=function(){return typeof window<"u"&&window.name==="nodejs"||navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")}},8068:$=>{$.exports=SyntaxError},8075:($,w,b)=>{var j=b(453),O=b(487),I=O(j("String.prototype.indexOf"));$.exports=function(q,p){var N=j(q,!!p);return typeof N=="function"&&I(q,".prototype.")>-1?O(N):N}},8078:($,w,b)=>{var j=b(2861).Buffer,O=b(8276);$.exports=function(I,q,p,N){if(j.isBuffer(I)||(I=j.from(I,"binary")),q&&(j.isBuffer(q)||(q=j.from(q,"binary")),q.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var M=p/8,T=j.alloc(M),S=j.alloc(N||0),B=j.alloc(0);M>0||N>0;){var C=new O;C.update(B),C.update(I),q&&C.update(q),B=C.digest();var _=0;if(M>0){var F=T.length-M;_=Math.min(M,B.length),B.copy(T,F,0,_),M-=_}if(_<B.length&&N>0){var U=S.length-N,z=Math.min(N,B.length-_);B.copy(S,U,_,_+z),N-=z}}return B.fill(0),{key:T,iv:S}}},8170:($,w,b)=>{var j=b(1137),O=b(5579),I=b(4101),q=b(1241),p=b(8396),N=b(2861).Buffer;function M(T){var S;typeof T!="object"||N.isBuffer(T)||(S=T.passphrase,T=T.key),typeof T=="string"&&(T=N.from(T));var B,C,_=I(T,S),F=_.tag,U=_.data;switch(F){case"CERTIFICATE":C=j.certificate.decode(U,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(C||(C=j.PublicKey.decode(U,"der")),B=C.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return j.RSAPublicKey.decode(C.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return C.subjectPrivateKey=C.subjectPublicKey,{type:"ec",data:C};case"1.2.840.10040.4.1":return C.algorithm.params.pub_key=j.DSAparam.decode(C.subjectPublicKey.data,"der"),{type:"dsa",data:C.algorithm.params};default:throw new Error("unknown key id "+B)}case"ENCRYPTED PRIVATE KEY":U=function(z,H){var D=z.algorithm.decrypt.kde.kdeparams.salt,Q=parseInt(z.algorithm.decrypt.kde.kdeparams.iters.toString(),10),X=O[z.algorithm.decrypt.cipher.algo.join(".")],et=z.algorithm.decrypt.cipher.iv,nt=z.subjectPrivateKey,ut=parseInt(X.split("-")[1],10)/8,ct=p.pbkdf2Sync(H,D,Q,ut,"sha1"),vt=q.createDecipheriv(X,ct,et),t=[];return t.push(vt.update(nt)),t.push(vt.final()),N.concat(t)}(U=j.EncryptedPrivateKey.decode(U,"der"),S);case"PRIVATE KEY":switch(B=(C=j.PrivateKey.decode(U,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return j.RSAPrivateKey.decode(C.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:C.algorithm.curve,privateKey:j.ECPrivateKey.decode(C.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return C.algorithm.params.priv_key=j.DSAparam.decode(C.subjectPrivateKey,"der"),{type:"dsa",params:C.algorithm.params};default:throw new Error("unknown key id "+B)}case"RSA PUBLIC KEY":return j.RSAPublicKey.decode(U,"der");case"RSA PRIVATE KEY":return j.RSAPrivateKey.decode(U,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:j.DSAPrivateKey.decode(U,"der")};case"EC PRIVATE KEY":return{curve:(U=j.ECPrivateKey.decode(U,"der")).parameters.value,privateKey:U.privateKey};default:throw new Error("unknown key type "+F)}}M.signature=j.signature,$.exports=M},8184:($,w,b)=>{var j,O=b(6556),I=b(9721)(/^\s*(?:function)?\*/),q=b(9092)(),p=b(3628),N=O("Object.prototype.toString"),M=O("Function.prototype.toString");$.exports=function(T){if(typeof T!="function")return!1;if(I(M(T)))return!0;if(!q)return N(T)==="[object GeneratorFunction]";if(!p)return!1;if(j===void 0){var S=function(){if(!q)return!1;try{return Function("return function*() {}")()}catch{}}();j=!!S&&p(S)}return p(T)===j}},8206:($,w,b)=>{var j=b(7108),O=b(2861).Buffer;function I(q){var p=O.allocUnsafe(4);return p.writeUInt32BE(q,0),p}$.exports=function(q,p){for(var N,M=O.alloc(0),T=0;M.length<p;)N=I(T++),M=O.concat([M,j("sha1").update(q).update(N).digest()]);return M.slice(0,p)}},8226:($,w)=>{Object.defineProperty(w,"__esModule",{value:!0}),w.default=void 0,w.default=class{constructor({accessKey:b,secretKey:j,sessionToken:O}){this.accessKey=b,this.secretKey=j,this.sessionToken=O}setAccessKey(b){this.accessKey=b}getAccessKey(){return this.accessKey}setSecretKey(b){this.secretKey=b}getSecretKey(){return this.secretKey}setSessionToken(b){this.sessionToken=b}getSessionToken(){return this.sessionToken}get(){return{accessKey:this.accessKey,secretKey:this.secretKey,sessionToken:this.sessionToken}}}},8234:($,w,b)=>{var j=b(8287).Buffer;Object.defineProperty(w,"__esModule",{value:!0}),w.bucketEncryptionTransformer=function(){return _(O.parseBucketEncryptionConfig)},w.bucketVersioningTransformer=function(){return _(O.parseBucketVersioningConfig)},w.getBucketNotificationTransformer=function(){return _(O.parseBucketNotification)},w.getBucketRegionTransformer=function(){return _(O.parseBucketRegion)},w.getCompleteMultipartTransformer=function(){return _(O.parseCompleteMultipart)},w.getConcater=_,w.getCopyObjectTransformer=function(){return _(O.parseCopyObject)},w.getErrorTransformer=function(F){var U,z,H=F.statusCode;H===301?(U="MovedPermanently",z="Moved Permanently"):H===307?(U="TemporaryRedirect",z="Are you using the correct endpoint URL?"):H===403?(U="AccessDenied",z="Valid and authorized credentials required"):H===404?(U="NotFound",z="Not Found"):H===405||H===501?(U="MethodNotAllowed",z="Method Not Allowed"):(U="UnknownError",z=`${H}`);var D={};return D.amzRequestid=F.headersSent?F.getHeader("x-amz-request-id"):null,D.amzId2=F.headersSent?F.getHeader("x-amz-id-2"):null,D.amzBucketRegion=F.headersSent?F.getHeader("x-amz-bucket-region"):null,_(Q=>{let X,et=()=>{var nt=new T.S3Error(z);return nt.code=U,I.each(D,(ut,ct)=>{nt[ct]=ut}),nt};if(!Q)return et();try{X=O.parseError(Q,D)}catch{return et()}return X},!0)},w.getHashSummer=function(F){var U=p.default.createHash("md5"),z=p.default.createHash("sha256");return q.default.obj(function(H,D,Q){F?z.update(H):U.update(H),Q()},function(H){var D="",Q="";F?Q=z.digest("hex"):D=U.digest("base64");var X={md5sum:D,sha256sum:Q};this.push(X),this.push(null),H()})},w.getInitiateMultipartTransformer=function(){return _(O.parseInitiateMultipart)},w.getListBucketTransformer=function(){return _(O.parseListBucket)},w.getListMultipartTransformer=function(){return _(O.parseListMultipart)},w.getListObjectsTransformer=function(){return _(O.parseListObjects)},w.getListObjectsV2Transformer=function(){return _(O.parseListObjectsV2)},w.getListObjectsV2WithMetadataTransformer=function(){return _(O.parseListObjectsV2WithMetadata)},w.getListPartsTransformer=function(){return _(O.parseListParts)},w.getNotificationTransformer=function(){return new N.default},w.getTagsTransformer=function(){return _(O.parseTagging)},w.lifecycleTransformer=function(){return _(O.parseLifecycleConfig)},w.objectLegalHoldTransformer=function(){return _(O.parseObjectLegalHoldConfig)},w.objectLockTransformer=function(){return _(O.parseObjectLockConfig)},w.objectRetentionTransformer=function(){return _(O.parseObjectRetentionConfig)},w.replicationConfigTransformer=function(){return _(O.parseReplicationConfig)},w.selectObjectContentTransformer=function(){return _()},w.uploadPartTransformer=function(){return _(O.uploadPartParser)};var O=C(b(4348)),I=C(b(2543)),q=S(b(6815)),p=S(b(1565)),N=S(b(7771)),M=b(2541),T=C(b(6097));function S(F){return F&&F.__esModule?F:{default:F}}function B(F){if(typeof WeakMap!="function")return null;var U=new WeakMap,z=new WeakMap;return(B=function(H){return H?z:U})(F)}function C(F,U){if(!U&&F&&F.__esModule)return F;if(F===null||typeof F!="object"&&typeof F!="function")return{default:F};var z=B(U);if(z&&z.has(F))return z.get(F);var H={},D=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Q in F)if(Q!=="default"&&Object.prototype.hasOwnProperty.call(F,Q)){var X=D?Object.getOwnPropertyDescriptor(F,Q):null;X&&(X.get||X.set)?Object.defineProperty(H,Q,X):H[Q]=F[Q]}return H.default=F,z&&z.set(F,H),H}function _(F,U){var z=!1,H=[];if(F&&!(0,M.isFunction)(F))throw new TypeError('parser should be of type "function"');return F&&(z=!0),(0,q.default)({objectMode:z},function(D,Q,X){H.push(D),X()},function(D){if(U)return D(F(j.concat(H).toString())),void this.push(null);H.length&&(F?this.push(F(j.concat(H).toString())):this.push(j.concat(H))),D()})}},8276:($,w,b)=>{var j=b(6698),O=b(4729),I=b(2861).Buffer,q=new Array(16);function p(){O.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function N(C,_){return C<<_|C>>>32-_}function M(C,_,F,U,z,H,D){return N(C+(_&F|~_&U)+z+H|0,D)+_|0}function T(C,_,F,U,z,H,D){return N(C+(_&U|F&~U)+z+H|0,D)+_|0}function S(C,_,F,U,z,H,D){return N(C+(_^F^U)+z+H|0,D)+_|0}function B(C,_,F,U,z,H,D){return N(C+(F^(_|~U))+z+H|0,D)+_|0}j(p,O),p.prototype._update=function(){for(var C=q,_=0;_<16;++_)C[_]=this._block.readInt32LE(4*_);var F=this._a,U=this._b,z=this._c,H=this._d;F=M(F,U,z,H,C[0],3614090360,7),H=M(H,F,U,z,C[1],3905402710,12),z=M(z,H,F,U,C[2],606105819,17),U=M(U,z,H,F,C[3],3250441966,22),F=M(F,U,z,H,C[4],4118548399,7),H=M(H,F,U,z,C[5],1200080426,12),z=M(z,H,F,U,C[6],2821735955,17),U=M(U,z,H,F,C[7],4249261313,22),F=M(F,U,z,H,C[8],1770035416,7),H=M(H,F,U,z,C[9],2336552879,12),z=M(z,H,F,U,C[10],4294925233,17),U=M(U,z,H,F,C[11],2304563134,22),F=M(F,U,z,H,C[12],1804603682,7),H=M(H,F,U,z,C[13],4254626195,12),z=M(z,H,F,U,C[14],2792965006,17),F=T(F,U=M(U,z,H,F,C[15],1236535329,22),z,H,C[1],4129170786,5),H=T(H,F,U,z,C[6],3225465664,9),z=T(z,H,F,U,C[11],643717713,14),U=T(U,z,H,F,C[0],3921069994,20),F=T(F,U,z,H,C[5],3593408605,5),H=T(H,F,U,z,C[10],38016083,9),z=T(z,H,F,U,C[15],3634488961,14),U=T(U,z,H,F,C[4],3889429448,20),F=T(F,U,z,H,C[9],568446438,5),H=T(H,F,U,z,C[14],3275163606,9),z=T(z,H,F,U,C[3],4107603335,14),U=T(U,z,H,F,C[8],1163531501,20),F=T(F,U,z,H,C[13],2850285829,5),H=T(H,F,U,z,C[2],4243563512,9),z=T(z,H,F,U,C[7],1735328473,14),F=S(F,U=T(U,z,H,F,C[12],2368359562,20),z,H,C[5],4294588738,4),H=S(H,F,U,z,C[8],2272392833,11),z=S(z,H,F,U,C[11],1839030562,16),U=S(U,z,H,F,C[14],4259657740,23),F=S(F,U,z,H,C[1],2763975236,4),H=S(H,F,U,z,C[4],1272893353,11),z=S(z,H,F,U,C[7],4139469664,16),U=S(U,z,H,F,C[10],3200236656,23),F=S(F,U,z,H,C[13],681279174,4),H=S(H,F,U,z,C[0],3936430074,11),z=S(z,H,F,U,C[3],3572445317,16),U=S(U,z,H,F,C[6],76029189,23),F=S(F,U,z,H,C[9],3654602809,4),H=S(H,F,U,z,C[12],3873151461,11),z=S(z,H,F,U,C[15],530742520,16),F=B(F,U=S(U,z,H,F,C[2],3299628645,23),z,H,C[0],4096336452,6),H=B(H,F,U,z,C[7],1126891415,10),z=B(z,H,F,U,C[14],2878612391,15),U=B(U,z,H,F,C[5],4237533241,21),F=B(F,U,z,H,C[12],1700485571,6),H=B(H,F,U,z,C[3],2399980690,10),z=B(z,H,F,U,C[10],4293915773,15),U=B(U,z,H,F,C[1],2240044497,21),F=B(F,U,z,H,C[8],1873313359,6),H=B(H,F,U,z,C[15],4264355552,10),z=B(z,H,F,U,C[6],2734768916,15),U=B(U,z,H,F,C[13],1309151649,21),F=B(F,U,z,H,C[4],4149444226,6),H=B(H,F,U,z,C[11],3174756917,10),z=B(z,H,F,U,C[2],718787259,15),U=B(U,z,H,F,C[9],3951481745,21),this._a=this._a+F|0,this._b=this._b+U|0,this._c=this._c+z|0,this._d=this._d+H|0},p.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 C=I.allocUnsafe(16);return C.writeInt32LE(this._a,0),C.writeInt32LE(this._b,4),C.writeInt32LE(this._c,8),C.writeInt32LE(this._d,12),C},$.exports=p},8287:($,w,b)=>{var j=b(6763);const O=b(7526),I=b(251),q=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;w.Buffer=M,w.SlowBuffer=function(ft){return+ft!=ft&&(ft=0),M.alloc(+ft)},w.INSPECT_MAX_BYTES=50;const p=2147483647;function N(ft){if(ft>p)throw new RangeError('The value "'+ft+'" is invalid for option "size"');const pt=new Uint8Array(ft);return Object.setPrototypeOf(pt,M.prototype),pt}function M(ft,pt,mt){if(typeof ft=="number"){if(typeof pt=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return B(ft)}return T(ft,pt,mt)}function T(ft,pt,mt){if(typeof ft=="string")return function(kt,$t){if(typeof $t=="string"&&$t!==""||($t="utf8"),!M.isEncoding($t))throw new TypeError("Unknown encoding: "+$t);const Pt=0|U(kt,$t);let yt=N(Pt);const dt=yt.write(kt,$t);return dt!==Pt&&(yt=yt.slice(0,dt)),yt}(ft,pt);if(ArrayBuffer.isView(ft))return function(kt){if(At(kt,Uint8Array)){const $t=new Uint8Array(kt);return _($t.buffer,$t.byteOffset,$t.byteLength)}return C(kt)}(ft);if(ft==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ft);if(At(ft,ArrayBuffer)||ft&&At(ft.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(At(ft,SharedArrayBuffer)||ft&&At(ft.buffer,SharedArrayBuffer)))return _(ft,pt,mt);if(typeof ft=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const Mt=ft.valueOf&&ft.valueOf();if(Mt!=null&&Mt!==ft)return M.from(Mt,pt,mt);const xt=function(kt){if(M.isBuffer(kt)){const $t=0|F(kt.length),Pt=N($t);return Pt.length===0||kt.copy(Pt,0,0,$t),Pt}return kt.length!==void 0?typeof kt.length!="number"||jt(kt.length)?N(0):C(kt):kt.type==="Buffer"&&Array.isArray(kt.data)?C(kt.data):void 0}(ft);if(xt)return xt;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof ft[Symbol.toPrimitive]=="function")return M.from(ft[Symbol.toPrimitive]("string"),pt,mt);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ft)}function S(ft){if(typeof ft!="number")throw new TypeError('"size" argument must be of type number');if(ft<0)throw new RangeError('The value "'+ft+'" is invalid for option "size"')}function B(ft){return S(ft),N(ft<0?0:0|F(ft))}function C(ft){const pt=ft.length<0?0:0|F(ft.length),mt=N(pt);for(let Mt=0;Mt<pt;Mt+=1)mt[Mt]=255&ft[Mt];return mt}function _(ft,pt,mt){if(pt<0||ft.byteLength<pt)throw new RangeError('"offset" is outside of buffer bounds');if(ft.byteLength<pt+(mt||0))throw new RangeError('"length" is outside of buffer bounds');let Mt;return Mt=pt===void 0&&mt===void 0?new Uint8Array(ft):mt===void 0?new Uint8Array(ft,pt):new Uint8Array(ft,pt,mt),Object.setPrototypeOf(Mt,M.prototype),Mt}function F(ft){if(ft>=p)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+p.toString(16)+" bytes");return 0|ft}function U(ft,pt){if(M.isBuffer(ft))return ft.length;if(ArrayBuffer.isView(ft)||At(ft,ArrayBuffer))return ft.byteLength;if(typeof ft!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof ft);const mt=ft.length,Mt=arguments.length>2&&arguments[2]===!0;if(!Mt&&mt===0)return 0;let xt=!1;for(;;)switch(pt){case"ascii":case"latin1":case"binary":return mt;case"utf8":case"utf-8":return gt(ft).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*mt;case"hex":return mt>>>1;case"base64":return St(ft).length;default:if(xt)return Mt?-1:gt(ft).length;pt=(""+pt).toLowerCase(),xt=!0}}function z(ft,pt,mt){let Mt=!1;if((pt===void 0||pt<0)&&(pt=0),pt>this.length||((mt===void 0||mt>this.length)&&(mt=this.length),mt<=0)||(mt>>>=0)<=(pt>>>=0))return"";for(ft||(ft="utf8");;)switch(ft){case"hex":return r(this,pt,mt);case"utf8":case"utf-8":return t(this,pt,mt);case"ascii":return l(this,pt,mt);case"latin1":case"binary":return a(this,pt,mt);case"base64":return vt(this,pt,mt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return v(this,pt,mt);default:if(Mt)throw new TypeError("Unknown encoding: "+ft);ft=(ft+"").toLowerCase(),Mt=!0}}function H(ft,pt,mt){const Mt=ft[pt];ft[pt]=ft[mt],ft[mt]=Mt}function D(ft,pt,mt,Mt,xt){if(ft.length===0)return-1;if(typeof mt=="string"?(Mt=mt,mt=0):mt>2147483647?mt=2147483647:mt<-2147483648&&(mt=-2147483648),jt(mt=+mt)&&(mt=xt?0:ft.length-1),mt<0&&(mt=ft.length+mt),mt>=ft.length){if(xt)return-1;mt=ft.length-1}else if(mt<0){if(!xt)return-1;mt=0}if(typeof pt=="string"&&(pt=M.from(pt,Mt)),M.isBuffer(pt))return pt.length===0?-1:Q(ft,pt,mt,Mt,xt);if(typeof pt=="number")return pt&=255,typeof Uint8Array.prototype.indexOf=="function"?xt?Uint8Array.prototype.indexOf.call(ft,pt,mt):Uint8Array.prototype.lastIndexOf.call(ft,pt,mt):Q(ft,[pt],mt,Mt,xt);throw new TypeError("val must be string, number or Buffer")}function Q(ft,pt,mt,Mt,xt){let kt,$t=1,Pt=ft.length,yt=pt.length;if(Mt!==void 0&&((Mt=String(Mt).toLowerCase())==="ucs2"||Mt==="ucs-2"||Mt==="utf16le"||Mt==="utf-16le")){if(ft.length<2||pt.length<2)return-1;$t=2,Pt/=2,yt/=2,mt/=2}function dt(lt,_t){return $t===1?lt[_t]:lt.readUInt16BE(_t*$t)}if(xt){let lt=-1;for(kt=mt;kt<Pt;kt++)if(dt(ft,kt)===dt(pt,lt===-1?0:kt-lt)){if(lt===-1&&(lt=kt),kt-lt+1===yt)return lt*$t}else lt!==-1&&(kt-=kt-lt),lt=-1}else for(mt+yt>Pt&&(mt=Pt-yt),kt=mt;kt>=0;kt--){let lt=!0;for(let _t=0;_t<yt;_t++)if(dt(ft,kt+_t)!==dt(pt,_t)){lt=!1;break}if(lt)return kt}return-1}function X(ft,pt,mt,Mt){mt=Number(mt)||0;const xt=ft.length-mt;Mt?(Mt=Number(Mt))>xt&&(Mt=xt):Mt=xt;const kt=pt.length;let $t;for(Mt>kt/2&&(Mt=kt/2),$t=0;$t<Mt;++$t){const Pt=parseInt(pt.substr(2*$t,2),16);if(jt(Pt))return $t;ft[mt+$t]=Pt}return $t}function et(ft,pt,mt,Mt){return Lt(gt(pt,ft.length-mt),ft,mt,Mt)}function nt(ft,pt,mt,Mt){return Lt(function(xt){const kt=[];for(let $t=0;$t<xt.length;++$t)kt.push(255&xt.charCodeAt($t));return kt}(pt),ft,mt,Mt)}function ut(ft,pt,mt,Mt){return Lt(St(pt),ft,mt,Mt)}function ct(ft,pt,mt,Mt){return Lt(function(xt,kt){let $t,Pt,yt;const dt=[];for(let lt=0;lt<xt.length&&!((kt-=2)<0);++lt)$t=xt.charCodeAt(lt),Pt=$t>>8,yt=$t%256,dt.push(yt),dt.push(Pt);return dt}(pt,ft.length-mt),ft,mt,Mt)}function vt(ft,pt,mt){return pt===0&&mt===ft.length?O.fromByteArray(ft):O.fromByteArray(ft.slice(pt,mt))}function t(ft,pt,mt){mt=Math.min(ft.length,mt);const Mt=[];let xt=pt;for(;xt<mt;){const kt=ft[xt];let $t=null,Pt=kt>239?4:kt>223?3:kt>191?2:1;if(xt+Pt<=mt){let yt,dt,lt,_t;switch(Pt){case 1:kt<128&&($t=kt);break;case 2:yt=ft[xt+1],(192&yt)==128&&(_t=(31&kt)<<6|63&yt,_t>127&&($t=_t));break;case 3:yt=ft[xt+1],dt=ft[xt+2],(192&yt)==128&&(192&dt)==128&&(_t=(15&kt)<<12|(63&yt)<<6|63&dt,_t>2047&&(_t<55296||_t>57343)&&($t=_t));break;case 4:yt=ft[xt+1],dt=ft[xt+2],lt=ft[xt+3],(192&yt)==128&&(192&dt)==128&&(192&lt)==128&&(_t=(15&kt)<<18|(63&yt)<<12|(63&dt)<<6|63&lt,_t>65535&&_t<1114112&&($t=_t))}}$t===null?($t=65533,Pt=1):$t>65535&&($t-=65536,Mt.push($t>>>10&1023|55296),$t=56320|1023&$t),Mt.push($t),xt+=Pt}return function(kt){const $t=kt.length;if($t<=h)return String.fromCharCode.apply(String,kt);let Pt="",yt=0;for(;yt<$t;)Pt+=String.fromCharCode.apply(String,kt.slice(yt,yt+=h));return Pt}(Mt)}w.kMaxLength=p,M.TYPED_ARRAY_SUPPORT=function(){try{const ft=new Uint8Array(1),pt={foo:function(){return 42}};return Object.setPrototypeOf(pt,Uint8Array.prototype),Object.setPrototypeOf(ft,pt),ft.foo()===42}catch{return!1}}(),M.TYPED_ARRAY_SUPPORT||j===void 0||typeof j.error!="function"||j.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(M.prototype,"parent",{enumerable:!0,get:function(){if(M.isBuffer(this))return this.buffer}}),Object.defineProperty(M.prototype,"offset",{enumerable:!0,get:function(){if(M.isBuffer(this))return this.byteOffset}}),M.poolSize=8192,M.from=function(ft,pt,mt){return T(ft,pt,mt)},Object.setPrototypeOf(M.prototype,Uint8Array.prototype),Object.setPrototypeOf(M,Uint8Array),M.alloc=function(ft,pt,mt){return function(Mt,xt,kt){return S(Mt),Mt<=0?N(Mt):xt!==void 0?typeof kt=="string"?N(Mt).fill(xt,kt):N(Mt).fill(xt):N(Mt)}(ft,pt,mt)},M.allocUnsafe=function(ft){return B(ft)},M.allocUnsafeSlow=function(ft){return B(ft)},M.isBuffer=function(ft){return ft!=null&&ft._isBuffer===!0&&ft!==M.prototype},M.compare=function(ft,pt){if(At(ft,Uint8Array)&&(ft=M.from(ft,ft.offset,ft.byteLength)),At(pt,Uint8Array)&&(pt=M.from(pt,pt.offset,pt.byteLength)),!M.isBuffer(ft)||!M.isBuffer(pt))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(ft===pt)return 0;let mt=ft.length,Mt=pt.length;for(let xt=0,kt=Math.min(mt,Mt);xt<kt;++xt)if(ft[xt]!==pt[xt]){mt=ft[xt],Mt=pt[xt];break}return mt<Mt?-1:Mt<mt?1:0},M.isEncoding=function(ft){switch(String(ft).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}},M.concat=function(ft,pt){if(!Array.isArray(ft))throw new TypeError('"list" argument must be an Array of Buffers');if(ft.length===0)return M.alloc(0);let mt;if(pt===void 0)for(pt=0,mt=0;mt<ft.length;++mt)pt+=ft[mt].length;const Mt=M.allocUnsafe(pt);let xt=0;for(mt=0;mt<ft.length;++mt){let kt=ft[mt];if(At(kt,Uint8Array))xt+kt.length>Mt.length?(M.isBuffer(kt)||(kt=M.from(kt)),kt.copy(Mt,xt)):Uint8Array.prototype.set.call(Mt,kt,xt);else{if(!M.isBuffer(kt))throw new TypeError('"list" argument must be an Array of Buffers');kt.copy(Mt,xt)}xt+=kt.length}return Mt},M.byteLength=U,M.prototype._isBuffer=!0,M.prototype.swap16=function(){const ft=this.length;if(ft%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let pt=0;pt<ft;pt+=2)H(this,pt,pt+1);return this},M.prototype.swap32=function(){const ft=this.length;if(ft%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let pt=0;pt<ft;pt+=4)H(this,pt,pt+3),H(this,pt+1,pt+2);return this},M.prototype.swap64=function(){const ft=this.length;if(ft%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let pt=0;pt<ft;pt+=8)H(this,pt,pt+7),H(this,pt+1,pt+6),H(this,pt+2,pt+5),H(this,pt+3,pt+4);return this},M.prototype.toString=function(){const ft=this.length;return ft===0?"":arguments.length===0?t(this,0,ft):z.apply(this,arguments)},M.prototype.toLocaleString=M.prototype.toString,M.prototype.equals=function(ft){if(!M.isBuffer(ft))throw new TypeError("Argument must be a Buffer");return this===ft||M.compare(this,ft)===0},M.prototype.inspect=function(){let ft="";const pt=w.INSPECT_MAX_BYTES;return ft=this.toString("hex",0,pt).replace(/(.{2})/g,"$1 ").trim(),this.length>pt&&(ft+=" ... "),"<Buffer "+ft+">"},q&&(M.prototype[q]=M.prototype.inspect),M.prototype.compare=function(ft,pt,mt,Mt,xt){if(At(ft,Uint8Array)&&(ft=M.from(ft,ft.offset,ft.byteLength)),!M.isBuffer(ft))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof ft);if(pt===void 0&&(pt=0),mt===void 0&&(mt=ft?ft.length:0),Mt===void 0&&(Mt=0),xt===void 0&&(xt=this.length),pt<0||mt>ft.length||Mt<0||xt>this.length)throw new RangeError("out of range index");if(Mt>=xt&&pt>=mt)return 0;if(Mt>=xt)return-1;if(pt>=mt)return 1;if(this===ft)return 0;let kt=(xt>>>=0)-(Mt>>>=0),$t=(mt>>>=0)-(pt>>>=0);const Pt=Math.min(kt,$t),yt=this.slice(Mt,xt),dt=ft.slice(pt,mt);for(let lt=0;lt<Pt;++lt)if(yt[lt]!==dt[lt]){kt=yt[lt],$t=dt[lt];break}return kt<$t?-1:$t<kt?1:0},M.prototype.includes=function(ft,pt,mt){return this.indexOf(ft,pt,mt)!==-1},M.prototype.indexOf=function(ft,pt,mt){return D(this,ft,pt,mt,!0)},M.prototype.lastIndexOf=function(ft,pt,mt){return D(this,ft,pt,mt,!1)},M.prototype.write=function(ft,pt,mt,Mt){if(pt===void 0)Mt="utf8",mt=this.length,pt=0;else if(mt===void 0&&typeof pt=="string")Mt=pt,mt=this.length,pt=0;else{if(!isFinite(pt))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");pt>>>=0,isFinite(mt)?(mt>>>=0,Mt===void 0&&(Mt="utf8")):(Mt=mt,mt=void 0)}const xt=this.length-pt;if((mt===void 0||mt>xt)&&(mt=xt),ft.length>0&&(mt<0||pt<0)||pt>this.length)throw new RangeError("Attempt to write outside buffer bounds");Mt||(Mt="utf8");let kt=!1;for(;;)switch(Mt){case"hex":return X(this,ft,pt,mt);case"utf8":case"utf-8":return et(this,ft,pt,mt);case"ascii":case"latin1":case"binary":return nt(this,ft,pt,mt);case"base64":return ut(this,ft,pt,mt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ct(this,ft,pt,mt);default:if(kt)throw new TypeError("Unknown encoding: "+Mt);Mt=(""+Mt).toLowerCase(),kt=!0}},M.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const h=4096;function l(ft,pt,mt){let Mt="";mt=Math.min(ft.length,mt);for(let xt=pt;xt<mt;++xt)Mt+=String.fromCharCode(127&ft[xt]);return Mt}function a(ft,pt,mt){let Mt="";mt=Math.min(ft.length,mt);for(let xt=pt;xt<mt;++xt)Mt+=String.fromCharCode(ft[xt]);return Mt}function r(ft,pt,mt){const Mt=ft.length;(!pt||pt<0)&&(pt=0),(!mt||mt<0||mt>Mt)&&(mt=Mt);let xt="";for(let kt=pt;kt<mt;++kt)xt+=Qt[ft[kt]];return xt}function v(ft,pt,mt){const Mt=ft.slice(pt,mt);let xt="";for(let kt=0;kt<Mt.length-1;kt+=2)xt+=String.fromCharCode(Mt[kt]+256*Mt[kt+1]);return xt}function A(ft,pt,mt){if(ft%1!=0||ft<0)throw new RangeError("offset is not uint");if(ft+pt>mt)throw new RangeError("Trying to access beyond buffer length")}function W(ft,pt,mt,Mt,xt,kt){if(!M.isBuffer(ft))throw new TypeError('"buffer" argument must be a Buffer instance');if(pt>xt||pt<kt)throw new RangeError('"value" argument is out of bounds');if(mt+Mt>ft.length)throw new RangeError("Index out of range")}function J(ft,pt,mt,Mt,xt){it(pt,Mt,xt,ft,mt,7);let kt=Number(pt&BigInt(4294967295));ft[mt++]=kt,kt>>=8,ft[mt++]=kt,kt>>=8,ft[mt++]=kt,kt>>=8,ft[mt++]=kt;let $t=Number(pt>>BigInt(32)&BigInt(4294967295));return ft[mt++]=$t,$t>>=8,ft[mt++]=$t,$t>>=8,ft[mt++]=$t,$t>>=8,ft[mt++]=$t,mt}function K(ft,pt,mt,Mt,xt){it(pt,Mt,xt,ft,mt,7);let kt=Number(pt&BigInt(4294967295));ft[mt+7]=kt,kt>>=8,ft[mt+6]=kt,kt>>=8,ft[mt+5]=kt,kt>>=8,ft[mt+4]=kt;let $t=Number(pt>>BigInt(32)&BigInt(4294967295));return ft[mt+3]=$t,$t>>=8,ft[mt+2]=$t,$t>>=8,ft[mt+1]=$t,$t>>=8,ft[mt]=$t,mt+8}function G(ft,pt,mt,Mt,xt,kt){if(mt+Mt>ft.length)throw new RangeError("Index out of range");if(mt<0)throw new RangeError("Index out of range")}function Y(ft,pt,mt,Mt,xt){return pt=+pt,mt>>>=0,xt||G(ft,0,mt,4),I.write(ft,pt,mt,Mt,23,4),mt+4}function at(ft,pt,mt,Mt,xt){return pt=+pt,mt>>>=0,xt||G(ft,0,mt,8),I.write(ft,pt,mt,Mt,52,8),mt+8}M.prototype.slice=function(ft,pt){const mt=this.length;(ft=~~ft)<0?(ft+=mt)<0&&(ft=0):ft>mt&&(ft=mt),(pt=pt===void 0?mt:~~pt)<0?(pt+=mt)<0&&(pt=0):pt>mt&&(pt=mt),pt<ft&&(pt=ft);const Mt=this.subarray(ft,pt);return Object.setPrototypeOf(Mt,M.prototype),Mt},M.prototype.readUintLE=M.prototype.readUIntLE=function(ft,pt,mt){ft>>>=0,pt>>>=0,mt||A(ft,pt,this.length);let Mt=this[ft],xt=1,kt=0;for(;++kt<pt&&(xt*=256);)Mt+=this[ft+kt]*xt;return Mt},M.prototype.readUintBE=M.prototype.readUIntBE=function(ft,pt,mt){ft>>>=0,pt>>>=0,mt||A(ft,pt,this.length);let Mt=this[ft+--pt],xt=1;for(;pt>0&&(xt*=256);)Mt+=this[ft+--pt]*xt;return Mt},M.prototype.readUint8=M.prototype.readUInt8=function(ft,pt){return ft>>>=0,pt||A(ft,1,this.length),this[ft]},M.prototype.readUint16LE=M.prototype.readUInt16LE=function(ft,pt){return ft>>>=0,pt||A(ft,2,this.length),this[ft]|this[ft+1]<<8},M.prototype.readUint16BE=M.prototype.readUInt16BE=function(ft,pt){return ft>>>=0,pt||A(ft,2,this.length),this[ft]<<8|this[ft+1]},M.prototype.readUint32LE=M.prototype.readUInt32LE=function(ft,pt){return ft>>>=0,pt||A(ft,4,this.length),(this[ft]|this[ft+1]<<8|this[ft+2]<<16)+16777216*this[ft+3]},M.prototype.readUint32BE=M.prototype.readUInt32BE=function(ft,pt){return ft>>>=0,pt||A(ft,4,this.length),16777216*this[ft]+(this[ft+1]<<16|this[ft+2]<<8|this[ft+3])},M.prototype.readBigUInt64LE=Dt(function(ft){Z(ft>>>=0,"offset");const pt=this[ft],mt=this[ft+7];pt!==void 0&&mt!==void 0||rt(ft,this.length-8);const Mt=pt+256*this[++ft]+65536*this[++ft]+this[++ft]*Ci(2,24),xt=this[++ft]+256*this[++ft]+65536*this[++ft]+mt*Ci(2,24);return BigInt(Mt)+(BigInt(xt)<<BigInt(32))}),M.prototype.readBigUInt64BE=Dt(function(ft){Z(ft>>>=0,"offset");const pt=this[ft],mt=this[ft+7];pt!==void 0&&mt!==void 0||rt(ft,this.length-8);const Mt=pt*Ci(2,24)+65536*this[++ft]+256*this[++ft]+this[++ft],xt=this[++ft]*Ci(2,24)+65536*this[++ft]+256*this[++ft]+mt;return(BigInt(Mt)<<BigInt(32))+BigInt(xt)}),M.prototype.readIntLE=function(ft,pt,mt){ft>>>=0,pt>>>=0,mt||A(ft,pt,this.length);let Mt=this[ft],xt=1,kt=0;for(;++kt<pt&&(xt*=256);)Mt+=this[ft+kt]*xt;return xt*=128,Mt>=xt&&(Mt-=Math.pow(2,8*pt)),Mt},M.prototype.readIntBE=function(ft,pt,mt){ft>>>=0,pt>>>=0,mt||A(ft,pt,this.length);let Mt=pt,xt=1,kt=this[ft+--Mt];for(;Mt>0&&(xt*=256);)kt+=this[ft+--Mt]*xt;return xt*=128,kt>=xt&&(kt-=Math.pow(2,8*pt)),kt},M.prototype.readInt8=function(ft,pt){return ft>>>=0,pt||A(ft,1,this.length),128&this[ft]?-1*(255-this[ft]+1):this[ft]},M.prototype.readInt16LE=function(ft,pt){ft>>>=0,pt||A(ft,2,this.length);const mt=this[ft]|this[ft+1]<<8;return 32768&mt?4294901760|mt:mt},M.prototype.readInt16BE=function(ft,pt){ft>>>=0,pt||A(ft,2,this.length);const mt=this[ft+1]|this[ft]<<8;return 32768&mt?4294901760|mt:mt},M.prototype.readInt32LE=function(ft,pt){return ft>>>=0,pt||A(ft,4,this.length),this[ft]|this[ft+1]<<8|this[ft+2]<<16|this[ft+3]<<24},M.prototype.readInt32BE=function(ft,pt){return ft>>>=0,pt||A(ft,4,this.length),this[ft]<<24|this[ft+1]<<16|this[ft+2]<<8|this[ft+3]},M.prototype.readBigInt64LE=Dt(function(ft){Z(ft>>>=0,"offset");const pt=this[ft],mt=this[ft+7];pt!==void 0&&mt!==void 0||rt(ft,this.length-8);const Mt=this[ft+4]+256*this[ft+5]+65536*this[ft+6]+(mt<<24);return(BigInt(Mt)<<BigInt(32))+BigInt(pt+256*this[++ft]+65536*this[++ft]+this[++ft]*16777216)}),M.prototype.readBigInt64BE=Dt(function(ft){Z(ft>>>=0,"offset");const pt=this[ft],mt=this[ft+7];pt!==void 0&&mt!==void 0||rt(ft,this.length-8);const Mt=(pt<<24)+65536*this[++ft]+256*this[++ft]+this[++ft];return(BigInt(Mt)<<BigInt(32))+BigInt(this[++ft]*16777216+65536*this[++ft]+256*this[++ft]+mt)}),M.prototype.readFloatLE=function(ft,pt){return ft>>>=0,pt||A(ft,4,this.length),I.read(this,ft,!0,23,4)},M.prototype.readFloatBE=function(ft,pt){return ft>>>=0,pt||A(ft,4,this.length),I.read(this,ft,!1,23,4)},M.prototype.readDoubleLE=function(ft,pt){return ft>>>=0,pt||A(ft,8,this.length),I.read(this,ft,!0,52,8)},M.prototype.readDoubleBE=function(ft,pt){return ft>>>=0,pt||A(ft,8,this.length),I.read(this,ft,!1,52,8)},M.prototype.writeUintLE=M.prototype.writeUIntLE=function(ft,pt,mt,Mt){ft=+ft,pt>>>=0,mt>>>=0,Mt||W(this,ft,pt,mt,Math.pow(2,8*mt)-1,0);let xt=1,kt=0;for(this[pt]=255&ft;++kt<mt&&(xt*=256);)this[pt+kt]=ft/xt&255;return pt+mt},M.prototype.writeUintBE=M.prototype.writeUIntBE=function(ft,pt,mt,Mt){ft=+ft,pt>>>=0,mt>>>=0,Mt||W(this,ft,pt,mt,Math.pow(2,8*mt)-1,0);let xt=mt-1,kt=1;for(this[pt+xt]=255&ft;--xt>=0&&(kt*=256);)this[pt+xt]=ft/kt&255;return pt+mt},M.prototype.writeUint8=M.prototype.writeUInt8=function(ft,pt,mt){return ft=+ft,pt>>>=0,mt||W(this,ft,pt,1,255,0),this[pt]=255&ft,pt+1},M.prototype.writeUint16LE=M.prototype.writeUInt16LE=function(ft,pt,mt){return ft=+ft,pt>>>=0,mt||W(this,ft,pt,2,65535,0),this[pt]=255&ft,this[pt+1]=ft>>>8,pt+2},M.prototype.writeUint16BE=M.prototype.writeUInt16BE=function(ft,pt,mt){return ft=+ft,pt>>>=0,mt||W(this,ft,pt,2,65535,0),this[pt]=ft>>>8,this[pt+1]=255&ft,pt+2},M.prototype.writeUint32LE=M.prototype.writeUInt32LE=function(ft,pt,mt){return ft=+ft,pt>>>=0,mt||W(this,ft,pt,4,4294967295,0),this[pt+3]=ft>>>24,this[pt+2]=ft>>>16,this[pt+1]=ft>>>8,this[pt]=255&ft,pt+4},M.prototype.writeUint32BE=M.prototype.writeUInt32BE=function(ft,pt,mt){return ft=+ft,pt>>>=0,mt||W(this,ft,pt,4,4294967295,0),this[pt]=ft>>>24,this[pt+1]=ft>>>16,this[pt+2]=ft>>>8,this[pt+3]=255&ft,pt+4},M.prototype.writeBigUInt64LE=Dt(function(ft,pt=0){return J(this,ft,pt,BigInt(0),BigInt("0xffffffffffffffff"))}),M.prototype.writeBigUInt64BE=Dt(function(ft,pt=0){return K(this,ft,pt,BigInt(0),BigInt("0xffffffffffffffff"))}),M.prototype.writeIntLE=function(ft,pt,mt,Mt){if(ft=+ft,pt>>>=0,!Mt){const Pt=Math.pow(2,8*mt-1);W(this,ft,pt,mt,Pt-1,-Pt)}let xt=0,kt=1,$t=0;for(this[pt]=255&ft;++xt<mt&&(kt*=256);)ft<0&&$t===0&&this[pt+xt-1]!==0&&($t=1),this[pt+xt]=(ft/kt|0)-$t&255;return pt+mt},M.prototype.writeIntBE=function(ft,pt,mt,Mt){if(ft=+ft,pt>>>=0,!Mt){const Pt=Math.pow(2,8*mt-1);W(this,ft,pt,mt,Pt-1,-Pt)}let xt=mt-1,kt=1,$t=0;for(this[pt+xt]=255&ft;--xt>=0&&(kt*=256);)ft<0&&$t===0&&this[pt+xt+1]!==0&&($t=1),this[pt+xt]=(ft/kt|0)-$t&255;return pt+mt},M.prototype.writeInt8=function(ft,pt,mt){return ft=+ft,pt>>>=0,mt||W(this,ft,pt,1,127,-128),ft<0&&(ft=255+ft+1),this[pt]=255&ft,pt+1},M.prototype.writeInt16LE=function(ft,pt,mt){return ft=+ft,pt>>>=0,mt||W(this,ft,pt,2,32767,-32768),this[pt]=255&ft,this[pt+1]=ft>>>8,pt+2},M.prototype.writeInt16BE=function(ft,pt,mt){return ft=+ft,pt>>>=0,mt||W(this,ft,pt,2,32767,-32768),this[pt]=ft>>>8,this[pt+1]=255&ft,pt+2},M.prototype.writeInt32LE=function(ft,pt,mt){return ft=+ft,pt>>>=0,mt||W(this,ft,pt,4,2147483647,-2147483648),this[pt]=255&ft,this[pt+1]=ft>>>8,this[pt+2]=ft>>>16,this[pt+3]=ft>>>24,pt+4},M.prototype.writeInt32BE=function(ft,pt,mt){return ft=+ft,pt>>>=0,mt||W(this,ft,pt,4,2147483647,-2147483648),ft<0&&(ft=4294967295+ft+1),this[pt]=ft>>>24,this[pt+1]=ft>>>16,this[pt+2]=ft>>>8,this[pt+3]=255&ft,pt+4},M.prototype.writeBigInt64LE=Dt(function(ft,pt=0){return J(this,ft,pt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),M.prototype.writeBigInt64BE=Dt(function(ft,pt=0){return K(this,ft,pt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),M.prototype.writeFloatLE=function(ft,pt,mt){return Y(this,ft,pt,!0,mt)},M.prototype.writeFloatBE=function(ft,pt,mt){return Y(this,ft,pt,!1,mt)},M.prototype.writeDoubleLE=function(ft,pt,mt){return at(this,ft,pt,!0,mt)},M.prototype.writeDoubleBE=function(ft,pt,mt){return at(this,ft,pt,!1,mt)},M.prototype.copy=function(ft,pt,mt,Mt){if(!M.isBuffer(ft))throw new TypeError("argument should be a Buffer");if(mt||(mt=0),Mt||Mt===0||(Mt=this.length),pt>=ft.length&&(pt=ft.length),pt||(pt=0),Mt>0&&Mt<mt&&(Mt=mt),Mt===mt||ft.length===0||this.length===0)return 0;if(pt<0)throw new RangeError("targetStart out of bounds");if(mt<0||mt>=this.length)throw new RangeError("Index out of range");if(Mt<0)throw new RangeError("sourceEnd out of bounds");Mt>this.length&&(Mt=this.length),ft.length-pt<Mt-mt&&(Mt=ft.length-pt+mt);const xt=Mt-mt;return this===ft&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(pt,mt,Mt):Uint8Array.prototype.set.call(ft,this.subarray(mt,Mt),pt),xt},M.prototype.fill=function(ft,pt,mt,Mt){if(typeof ft=="string"){if(typeof pt=="string"?(Mt=pt,pt=0,mt=this.length):typeof mt=="string"&&(Mt=mt,mt=this.length),Mt!==void 0&&typeof Mt!="string")throw new TypeError("encoding must be a string");if(typeof Mt=="string"&&!M.isEncoding(Mt))throw new TypeError("Unknown encoding: "+Mt);if(ft.length===1){const kt=ft.charCodeAt(0);(Mt==="utf8"&&kt<128||Mt==="latin1")&&(ft=kt)}}else typeof ft=="number"?ft&=255:typeof ft=="boolean"&&(ft=Number(ft));if(pt<0||this.length<pt||this.length<mt)throw new RangeError("Out of range index");if(mt<=pt)return this;let xt;if(pt>>>=0,mt=mt===void 0?this.length:mt>>>0,ft||(ft=0),typeof ft=="number")for(xt=pt;xt<mt;++xt)this[xt]=ft;else{const kt=M.isBuffer(ft)?ft:M.from(ft,Mt),$t=kt.length;if($t===0)throw new TypeError('The value "'+ft+'" is invalid for argument "value"');for(xt=0;xt<mt-pt;++xt)this[xt+pt]=kt[xt%$t]}return this};const ot={};function ht(ft,pt,mt){ot[ft]=class extends mt{constructor(){super(),Object.defineProperty(this,"message",{value:pt.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${ft}]`,this.stack,delete this.name}get code(){return ft}set code(Mt){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:Mt,writable:!0})}toString(){return`${this.name} [${ft}]: ${this.message}`}}}function tt(ft){let pt="",mt=ft.length;const Mt=ft[0]==="-"?1:0;for(;mt>=Mt+4;mt-=3)pt=`_${ft.slice(mt-3,mt)}${pt}`;return`${ft.slice(0,mt)}${pt}`}function it(ft,pt,mt,Mt,xt,kt){if(ft>mt||ft<pt){const $t=typeof pt=="bigint"?"n":"";let Pt;throw Pt=kt>3?pt===0||pt===BigInt(0)?`>= 0${$t} and < 2${$t} ** ${8*(kt+1)}${$t}`:`>= -(2${$t} ** ${8*(kt+1)-1}${$t}) and < 2 ** ${8*(kt+1)-1}${$t}`:`>= ${pt}${$t} and <= ${mt}${$t}`,new ot.ERR_OUT_OF_RANGE("value",Pt,ft)}(function($t,Pt,yt){Z(Pt,"offset"),$t[Pt]!==void 0&&$t[Pt+yt]!==void 0||rt(Pt,$t.length-(yt+1))})(Mt,xt,kt)}function Z(ft,pt){if(typeof ft!="number")throw new ot.ERR_INVALID_ARG_TYPE(pt,"number",ft)}function rt(ft,pt,mt){throw Math.floor(ft)!==ft?(Z(ft,mt),new ot.ERR_OUT_OF_RANGE(mt||"offset","an integer",ft)):pt<0?new ot.ERR_BUFFER_OUT_OF_BOUNDS:new ot.ERR_OUT_OF_RANGE(mt||"offset",`>= ${mt?1:0} and <= ${pt}`,ft)}ht("ERR_BUFFER_OUT_OF_BOUNDS",function(ft){return ft?`${ft} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ht("ERR_INVALID_ARG_TYPE",function(ft,pt){return`The "${ft}" argument must be of type number. Received type ${typeof pt}`},TypeError),ht("ERR_OUT_OF_RANGE",function(ft,pt,mt){let Mt=`The value of "${ft}" is out of range.`,xt=mt;return Number.isInteger(mt)&&Math.abs(mt)>4294967296?xt=tt(String(mt)):typeof mt=="bigint"&&(xt=String(mt),(mt>Ci(BigInt(2),BigInt(32))||mt<-Ci(BigInt(2),BigInt(32)))&&(xt=tt(xt)),xt+="n"),Mt+=` It must be ${pt}. Received ${xt}`,Mt},RangeError);const wt=/[^+/0-9A-Za-z-_]/g;function gt(ft,pt){let mt;pt=pt||1/0;const Mt=ft.length;let xt=null;const kt=[];for(let $t=0;$t<Mt;++$t){if(mt=ft.charCodeAt($t),mt>55295&&mt<57344){if(!xt){if(mt>56319){(pt-=3)>-1&&kt.push(239,191,189);continue}if($t+1===Mt){(pt-=3)>-1&&kt.push(239,191,189);continue}xt=mt;continue}if(mt<56320){(pt-=3)>-1&&kt.push(239,191,189),xt=mt;continue}mt=65536+(xt-55296<<10|mt-56320)}else xt&&(pt-=3)>-1&&kt.push(239,191,189);if(xt=null,mt<128){if((pt-=1)<0)break;kt.push(mt)}else if(mt<2048){if((pt-=2)<0)break;kt.push(mt>>6|192,63&mt|128)}else if(mt<65536){if((pt-=3)<0)break;kt.push(mt>>12|224,mt>>6&63|128,63&mt|128)}else{if(!(mt<1114112))throw new Error("Invalid code point");if((pt-=4)<0)break;kt.push(mt>>18|240,mt>>12&63|128,mt>>6&63|128,63&mt|128)}}return kt}function St(ft){return O.toByteArray(function(pt){if((pt=(pt=pt.split("=")[0]).trim().replace(wt,"")).length<2)return"";for(;pt.length%4!=0;)pt+="=";return pt}(ft))}function Lt(ft,pt,mt,Mt){let xt;for(xt=0;xt<Mt&&!(xt+mt>=pt.length||xt>=ft.length);++xt)pt[xt+mt]=ft[xt];return xt}function At(ft,pt){return ft instanceof pt||ft!=null&&ft.constructor!=null&&ft.constructor.name!=null&&ft.constructor.name===pt.name}function jt(ft){return ft!=ft}const Qt=function(){const ft="0123456789abcdef",pt=new Array(256);for(let mt=0;mt<16;++mt){const Mt=16*mt;for(let xt=0;xt<16;++xt)pt[Mt+xt]=ft[mt]+ft[xt]}return pt}();function Dt(ft){return typeof BigInt>"u"?zt:ft}function zt(){throw new Error("BigInt not supported")}},8292:($,w,b)=>{const j=b(5334),O=b(5334).buildOptions,I=b(7765),q=function(p,N,M){let T="{";const S=Object.keys(p.child);for(let C=0;C<S.length;C++){const _=S[C];if(p.child[_]&&p.child[_].length>1){T+='"'+_+'" : [ ';for(let F in p.child[_])T+=q(p.child[_][F],N)+" , ";T=T.substr(0,T.length-1)+" ] "}else T+='"'+_+'" : '+q(p.child[_][0],N)+" ,"}return j.merge(T,p.attrsMap),j.isEmptyObject(T)?j.isExist(p.val)?p.val:"":(j.isExist(p.val)&&(typeof p.val!="string"||p.val!==""&&p.val!==N.cdataPositionChar)&&(T+='"'+N.textNodeName+'" : '+((B=p.val)!==!0&&B!==!1&&isNaN(B)?'"'+B+'"':B)),T[T.length-1]===","&&(T=T.substr(0,T.length-2)),T+"}");var B};w.convertToJsonString=function(p,N){return(N=O(N,I.defaultOptions,I.props)).indentBy=N.indentBy||"",q(p,N)}},8310:($,w,b)=>{$.exports=O;var j=b(7007).EventEmitter;function O(){j.call(this)}b(6698)(O,j),O.Readable=b(5412),O.Writable=b(6708),O.Duplex=b(5382),O.Transform=b(4610),O.PassThrough=b(3600),O.finished=b(6238),O.pipeline=b(7758),O.Stream=O,O.prototype.pipe=function(I,q){var p=this;function N(F){I.writable&&I.write(F)===!1&&p.pause&&p.pause()}function M(){p.readable&&p.resume&&p.resume()}p.on("data",N),I.on("drain",M),I._isStdio||q&&q.end===!1||(p.on("end",S),p.on("close",B));var T=!1;function S(){T||(T=!0,I.end())}function B(){T||(T=!0,typeof I.destroy=="function"&&I.destroy())}function C(F){if(_(),j.listenerCount(this,"error")===0)throw F}function _(){p.removeListener("data",N),I.removeListener("drain",M),p.removeListener("end",S),p.removeListener("close",B),p.removeListener("error",C),I.removeListener("error",C),p.removeListener("end",_),p.removeListener("close",_),I.removeListener("close",_)}return p.on("error",C),I.on("error",C),p.on("end",_),p.on("close",_),I.on("close",_),I.emit("pipe",p),I}},8393:($,w,b)=>{var j=b(8287),O=j.Buffer;function I(p,N){for(var M in p)N[M]=p[M]}function q(p,N,M){return O(p,N,M)}O.from&&O.alloc&&O.allocUnsafe&&O.allocUnsafeSlow?$.exports=j:(I(j,w),w.Buffer=q),I(O,q),q.from=function(p,N,M){if(typeof p=="number")throw new TypeError("Argument must not be a number");return O(p,N,M)},q.alloc=function(p,N,M){if(typeof p!="number")throw new TypeError("Argument must be a number");var T=O(p);return N!==void 0?typeof M=="string"?T.fill(N,M):T.fill(N):T.fill(0),T},q.allocUnsafe=function(p){if(typeof p!="number")throw new TypeError("Argument must be a number");return O(p)},q.allocUnsafeSlow=function(p){if(typeof p!="number")throw new TypeError("Argument must be a number");return j.SlowBuffer(p)}},8396:($,w,b)=>{w.pbkdf2=b(3832),w.pbkdf2Sync=b(1352)},8399:($,w,b)=>{(w=$.exports=b(5412)).Stream=w,w.Readable=w,w.Writable=b(6708),w.Duplex=b(5382),w.Transform=b(4610),w.PassThrough=b(3600),w.finished=b(6238),w.pipeline=b(7758)},8403:($,w,b)=>{var j=b(1189),O=b(1333)(),I=b(6556),q=b(9612),p=I("Array.prototype.push"),N=I("Object.prototype.propertyIsEnumerable"),M=O?q.getOwnPropertySymbols:null;$.exports=function(T,S){if(T==null)throw new TypeError("target must be an object");var B=q(T);if(arguments.length===1)return B;for(var C=1;C<arguments.length;++C){var _=q(arguments[C]),F=j(_),U=O&&(q.getOwnPropertySymbols||M);if(U)for(var z=U(_),H=0;H<z.length;++H){var D=z[H];N(_,D)&&p(F,D)}for(var Q=0;Q<F.length;++Q){var X=F[Q];if(N(_,X)){var et=_[X];B[X]=et}}}return B}},8452:($,w,b)=>{var j=b(1189),O=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",I=Object.prototype.toString,q=Array.prototype.concat,p=b(41),N=b(592)(),M=function(S,B,C,_){if(B in S){if(_===!0){if(S[B]===C)return}else if(typeof(F=_)!="function"||I.call(F)!=="[object Function]"||!_())return}var F;N?p(S,B,C,!0):p(S,B,C)},T=function(S,B){var C=arguments.length>2?arguments[2]:{},_=j(B);O&&(_=q.call(_,Object.getOwnPropertySymbols(B)));for(var F=0;F<_.length;F+=1)M(S,_[F],B[_[F]],C[_[F]])};T.supportsDescriptors=!!N,$.exports=T},8490:function($,w,b){(function(j,O){function I(t,h){if(!t)throw new Error(h||"Assertion failed")}function q(t,h){t.super_=h;var l=function(){};l.prototype=h.prototype,t.prototype=new l,t.prototype.constructor=t}function p(t,h,l){if(p.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,t!==null&&(h!=="le"&&h!=="be"||(l=h,h=10),this._init(t||0,h||10,l||"be"))}var N;typeof j=="object"?j.exports=p:O.BN=p,p.BN=p,p.wordSize=26;try{N=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:b(9368).Buffer}catch{}function M(t,h){var l=t.charCodeAt(h);return l>=65&&l<=70?l-55:l>=97&&l<=102?l-87:l-48&15}function T(t,h,l){var a=M(t,l);return l-1>=h&&(a|=M(t,l-1)<<4),a}function S(t,h,l,a){for(var r=0,v=Math.min(t.length,l),A=h;A<v;A++){var W=t.charCodeAt(A)-48;r*=a,r+=W>=49?W-49+10:W>=17?W-17+10:W}return r}p.isBN=function(t){return t instanceof p||t!==null&&typeof t=="object"&&t.constructor.wordSize===p.wordSize&&Array.isArray(t.words)},p.max=function(t,h){return t.cmp(h)>0?t:h},p.min=function(t,h){return t.cmp(h)<0?t:h},p.prototype._init=function(t,h,l){if(typeof t=="number")return this._initNumber(t,h,l);if(typeof t=="object")return this._initArray(t,h,l);h==="hex"&&(h=16),I(h===(0|h)&&h>=2&&h<=36);var a=0;(t=t.toString().replace(/\s+/g,""))[0]==="-"&&(a++,this.negative=1),a<t.length&&(h===16?this._parseHex(t,a,l):(this._parseBase(t,h,a),l==="le"&&this._initArray(this.toArray(),h,l)))},p.prototype._initNumber=function(t,h,l){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):(I(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),l==="le"&&this._initArray(this.toArray(),h,l)},p.prototype._initArray=function(t,h,l){if(I(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 a=0;a<this.length;a++)this.words[a]=0;var r,v,A=0;if(l==="be")for(a=t.length-1,r=0;a>=0;a-=3)v=t[a]|t[a-1]<<8|t[a-2]<<16,this.words[r]|=v<<A&67108863,this.words[r+1]=v>>>26-A&67108863,(A+=24)>=26&&(A-=26,r++);else if(l==="le")for(a=0,r=0;a<t.length;a+=3)v=t[a]|t[a+1]<<8|t[a+2]<<16,this.words[r]|=v<<A&67108863,this.words[r+1]=v>>>26-A&67108863,(A+=24)>=26&&(A-=26,r++);return this.strip()},p.prototype._parseHex=function(t,h,l){this.length=Math.ceil((t.length-h)/6),this.words=new Array(this.length);for(var a=0;a<this.length;a++)this.words[a]=0;var r,v=0,A=0;if(l==="be")for(a=t.length-1;a>=h;a-=2)r=T(t,h,a)<<v,this.words[A]|=67108863&r,v>=18?(v-=18,A+=1,this.words[A]|=r>>>26):v+=8;else for(a=(t.length-h)%2==0?h+1:h;a<t.length;a+=2)r=T(t,h,a)<<v,this.words[A]|=67108863&r,v>=18?(v-=18,A+=1,this.words[A]|=r>>>26):v+=8;this.strip()},p.prototype._parseBase=function(t,h,l){this.words=[0],this.length=1;for(var a=0,r=1;r<=67108863;r*=h)a++;a--,r=r/h|0;for(var v=t.length-l,A=v%a,W=Math.min(v,v-A)+l,J=0,K=l;K<W;K+=a)J=S(t,K,K+a,h),this.imuln(r),this.words[0]+J<67108864?this.words[0]+=J:this._iaddn(J);if(A!==0){var G=1;for(J=S(t,K,t.length,h),K=0;K<A;K++)G*=h;this.imuln(G),this.words[0]+J<67108864?this.words[0]+=J:this._iaddn(J)}this.strip()},p.prototype.copy=function(t){t.words=new Array(this.length);for(var h=0;h<this.length;h++)t.words[h]=this.words[h];t.length=this.length,t.negative=this.negative,t.red=this.red},p.prototype.clone=function(){var t=new p(null);return this.copy(t),t},p.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},p.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},p.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},p.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var B=["","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"],C=[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],_=[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 F(t,h,l){l.negative=h.negative^t.negative;var a=t.length+h.length|0;l.length=a,a=a-1|0;var r=0|t.words[0],v=0|h.words[0],A=r*v,W=67108863&A,J=A/67108864|0;l.words[0]=W;for(var K=1;K<a;K++){for(var G=J>>>26,Y=67108863&J,at=Math.min(K,h.length-1),ot=Math.max(0,K-t.length+1);ot<=at;ot++){var ht=K-ot|0;G+=(A=(r=0|t.words[ht])*(v=0|h.words[ot])+Y)/67108864|0,Y=67108863&A}l.words[K]=0|Y,J=0|G}return J!==0?l.words[K]=0|J:l.length--,l.strip()}p.prototype.toString=function(t,h){var l;if(h=0|h||1,(t=t||10)===16||t==="hex"){l="";for(var a=0,r=0,v=0;v<this.length;v++){var A=this.words[v],W=(16777215&(A<<a|r)).toString(16);r=A>>>24-a&16777215,(a+=2)>=26&&(a-=26,v--),l=r!==0||v!==this.length-1?B[6-W.length]+W+l:W+l}for(r!==0&&(l=r.toString(16)+l);l.length%h!=0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}if(t===(0|t)&&t>=2&&t<=36){var J=C[t],K=_[t];l="";var G=this.clone();for(G.negative=0;!G.isZero();){var Y=G.modn(K).toString(t);l=(G=G.idivn(K)).isZero()?Y+l:B[J-Y.length]+Y+l}for(this.isZero()&&(l="0"+l);l.length%h!=0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}I(!1,"Base should be between 2 and 36")},p.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&&I(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-t:t},p.prototype.toJSON=function(){return this.toString(16)},p.prototype.toBuffer=function(t,h){return I(N!==void 0),this.toArrayLike(N,t,h)},p.prototype.toArray=function(t,h){return this.toArrayLike(Array,t,h)},p.prototype.toArrayLike=function(t,h,l){var a=this.byteLength(),r=l||Math.max(1,a);I(a<=r,"byte array longer than desired length"),I(r>0,"Requested array length <= 0"),this.strip();var v,A,W=h==="le",J=new t(r),K=this.clone();if(W){for(A=0;!K.isZero();A++)v=K.andln(255),K.iushrn(8),J[A]=v;for(;A<r;A++)J[A]=0}else{for(A=0;A<r-a;A++)J[A]=0;for(A=0;!K.isZero();A++)v=K.andln(255),K.iushrn(8),J[r-A-1]=v}return J},Math.clz32?p.prototype._countBits=function(t){return 32-Math.clz32(t)}:p.prototype._countBits=function(t){var h=t,l=0;return h>=4096&&(l+=13,h>>>=13),h>=64&&(l+=7,h>>>=7),h>=8&&(l+=4,h>>>=4),h>=2&&(l+=2,h>>>=2),l+h},p.prototype._zeroBits=function(t){if(t===0)return 26;var h=t,l=0;return 8191&h||(l+=13,h>>>=13),127&h||(l+=7,h>>>=7),15&h||(l+=4,h>>>=4),3&h||(l+=2,h>>>=2),1&h||l++,l},p.prototype.bitLength=function(){var t=this.words[this.length-1],h=this._countBits(t);return 26*(this.length-1)+h},p.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,h=0;h<this.length;h++){var l=this._zeroBits(this.words[h]);if(t+=l,l!==26)break}return t},p.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},p.prototype.toTwos=function(t){return this.negative!==0?this.abs().inotn(t).iaddn(1):this.clone()},p.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},p.prototype.isNeg=function(){return this.negative!==0},p.prototype.neg=function(){return this.clone().ineg()},p.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},p.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var h=0;h<t.length;h++)this.words[h]=this.words[h]|t.words[h];return this.strip()},p.prototype.ior=function(t){return I(!(this.negative|t.negative)),this.iuor(t)},p.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},p.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},p.prototype.iuand=function(t){var h;h=this.length>t.length?t:this;for(var l=0;l<h.length;l++)this.words[l]=this.words[l]&t.words[l];return this.length=h.length,this.strip()},p.prototype.iand=function(t){return I(!(this.negative|t.negative)),this.iuand(t)},p.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},p.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},p.prototype.iuxor=function(t){var h,l;this.length>t.length?(h=this,l=t):(h=t,l=this);for(var a=0;a<l.length;a++)this.words[a]=h.words[a]^l.words[a];if(this!==h)for(;a<h.length;a++)this.words[a]=h.words[a];return this.length=h.length,this.strip()},p.prototype.ixor=function(t){return I(!(this.negative|t.negative)),this.iuxor(t)},p.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},p.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},p.prototype.inotn=function(t){I(typeof t=="number"&&t>=0);var h=0|Math.ceil(t/26),l=t%26;this._expand(h),l>0&&h--;for(var a=0;a<h;a++)this.words[a]=67108863&~this.words[a];return l>0&&(this.words[a]=~this.words[a]&67108863>>26-l),this.strip()},p.prototype.notn=function(t){return this.clone().inotn(t)},p.prototype.setn=function(t,h){I(typeof t=="number"&&t>=0);var l=t/26|0,a=t%26;return this._expand(l+1),this.words[l]=h?this.words[l]|1<<a:this.words[l]&~(1<<a),this.strip()},p.prototype.iadd=function(t){var h,l,a;if(this.negative!==0&&t.negative===0)return this.negative=0,h=this.isub(t),this.negative^=1,this._normSign();if(this.negative===0&&t.negative!==0)return t.negative=0,h=this.isub(t),t.negative=1,h._normSign();this.length>t.length?(l=this,a=t):(l=t,a=this);for(var r=0,v=0;v<a.length;v++)h=(0|l.words[v])+(0|a.words[v])+r,this.words[v]=67108863&h,r=h>>>26;for(;r!==0&&v<l.length;v++)h=(0|l.words[v])+r,this.words[v]=67108863&h,r=h>>>26;if(this.length=l.length,r!==0)this.words[this.length]=r,this.length++;else if(l!==this)for(;v<l.length;v++)this.words[v]=l.words[v];return this},p.prototype.add=function(t){var h;return t.negative!==0&&this.negative===0?(t.negative=0,h=this.sub(t),t.negative^=1,h):t.negative===0&&this.negative!==0?(this.negative=0,h=t.sub(this),this.negative=1,h):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},p.prototype.isub=function(t){if(t.negative!==0){t.negative=0;var h=this.iadd(t);return t.negative=1,h._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var l,a,r=this.cmp(t);if(r===0)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(l=this,a=t):(l=t,a=this);for(var v=0,A=0;A<a.length;A++)v=(h=(0|l.words[A])-(0|a.words[A])+v)>>26,this.words[A]=67108863&h;for(;v!==0&&A<l.length;A++)v=(h=(0|l.words[A])+v)>>26,this.words[A]=67108863&h;if(v===0&&A<l.length&&l!==this)for(;A<l.length;A++)this.words[A]=l.words[A];return this.length=Math.max(this.length,A),l!==this&&(this.negative=1),this.strip()},p.prototype.sub=function(t){return this.clone().isub(t)};var U=function(t,h,l){var a,r,v,A=t.words,W=h.words,J=l.words,K=0,G=0|A[0],Y=8191&G,at=G>>>13,ot=0|A[1],ht=8191&ot,tt=ot>>>13,it=0|A[2],Z=8191&it,rt=it>>>13,wt=0|A[3],gt=8191&wt,St=wt>>>13,Lt=0|A[4],At=8191&Lt,jt=Lt>>>13,Qt=0|A[5],Dt=8191&Qt,zt=Qt>>>13,ft=0|A[6],pt=8191&ft,mt=ft>>>13,Mt=0|A[7],xt=8191&Mt,kt=Mt>>>13,$t=0|A[8],Pt=8191&$t,yt=$t>>>13,dt=0|A[9],lt=8191&dt,_t=dt>>>13,qt=0|W[0],It=8191&qt,Nt=qt>>>13,be=0|W[1],Vt=8191&be,Jt=be>>>13,Ee=0|W[2],Ht=8191&Ee,ae=Ee>>>13,Ne=0|W[3],Gt=8191&Ne,se=Ne>>>13,qe=0|W[4],Zt=8191&qe,he=qe>>>13,Qe=0|W[5],Yt=8191&Qe,ce=Qe>>>13,Ge=0|W[6],Ut=8191&Ge,te=Ge>>>13,He=0|W[7],ne=8191&He,me=He>>>13,tr=0|W[8],ie=8191&tr,de=tr>>>13,rr=0|W[9],oe=8191&rr,ge=rr>>>13;l.negative=t.negative^h.negative,l.length=19;var We=(K+(a=Math.imul(Y,It))|0)+((8191&(r=(r=Math.imul(Y,Nt))+Math.imul(at,It)|0))<<13)|0;K=((v=Math.imul(at,Nt))+(r>>>13)|0)+(We>>>26)|0,We&=67108863,a=Math.imul(ht,It),r=(r=Math.imul(ht,Nt))+Math.imul(tt,It)|0,v=Math.imul(tt,Nt);var $e=(K+(a=a+Math.imul(Y,Vt)|0)|0)+((8191&(r=(r=r+Math.imul(Y,Jt)|0)+Math.imul(at,Vt)|0))<<13)|0;K=((v=v+Math.imul(at,Jt)|0)+(r>>>13)|0)+($e>>>26)|0,$e&=67108863,a=Math.imul(Z,It),r=(r=Math.imul(Z,Nt))+Math.imul(rt,It)|0,v=Math.imul(rt,Nt),a=a+Math.imul(ht,Vt)|0,r=(r=r+Math.imul(ht,Jt)|0)+Math.imul(tt,Vt)|0,v=v+Math.imul(tt,Jt)|0;var cr=(K+(a=a+Math.imul(Y,Ht)|0)|0)+((8191&(r=(r=r+Math.imul(Y,ae)|0)+Math.imul(at,Ht)|0))<<13)|0;K=((v=v+Math.imul(at,ae)|0)+(r>>>13)|0)+(cr>>>26)|0,cr&=67108863,a=Math.imul(gt,It),r=(r=Math.imul(gt,Nt))+Math.imul(St,It)|0,v=Math.imul(St,Nt),a=a+Math.imul(Z,Vt)|0,r=(r=r+Math.imul(Z,Jt)|0)+Math.imul(rt,Vt)|0,v=v+Math.imul(rt,Jt)|0,a=a+Math.imul(ht,Ht)|0,r=(r=r+Math.imul(ht,ae)|0)+Math.imul(tt,Ht)|0,v=v+Math.imul(tt,ae)|0;var mr=(K+(a=a+Math.imul(Y,Gt)|0)|0)+((8191&(r=(r=r+Math.imul(Y,se)|0)+Math.imul(at,Gt)|0))<<13)|0;K=((v=v+Math.imul(at,se)|0)+(r>>>13)|0)+(mr>>>26)|0,mr&=67108863,a=Math.imul(At,It),r=(r=Math.imul(At,Nt))+Math.imul(jt,It)|0,v=Math.imul(jt,Nt),a=a+Math.imul(gt,Vt)|0,r=(r=r+Math.imul(gt,Jt)|0)+Math.imul(St,Vt)|0,v=v+Math.imul(St,Jt)|0,a=a+Math.imul(Z,Ht)|0,r=(r=r+Math.imul(Z,ae)|0)+Math.imul(rt,Ht)|0,v=v+Math.imul(rt,ae)|0,a=a+Math.imul(ht,Gt)|0,r=(r=r+Math.imul(ht,se)|0)+Math.imul(tt,Gt)|0,v=v+Math.imul(tt,se)|0;var hr=(K+(a=a+Math.imul(Y,Zt)|0)|0)+((8191&(r=(r=r+Math.imul(Y,he)|0)+Math.imul(at,Zt)|0))<<13)|0;K=((v=v+Math.imul(at,he)|0)+(r>>>13)|0)+(hr>>>26)|0,hr&=67108863,a=Math.imul(Dt,It),r=(r=Math.imul(Dt,Nt))+Math.imul(zt,It)|0,v=Math.imul(zt,Nt),a=a+Math.imul(At,Vt)|0,r=(r=r+Math.imul(At,Jt)|0)+Math.imul(jt,Vt)|0,v=v+Math.imul(jt,Jt)|0,a=a+Math.imul(gt,Ht)|0,r=(r=r+Math.imul(gt,ae)|0)+Math.imul(St,Ht)|0,v=v+Math.imul(St,ae)|0,a=a+Math.imul(Z,Gt)|0,r=(r=r+Math.imul(Z,se)|0)+Math.imul(rt,Gt)|0,v=v+Math.imul(rt,se)|0,a=a+Math.imul(ht,Zt)|0,r=(r=r+Math.imul(ht,he)|0)+Math.imul(tt,Zt)|0,v=v+Math.imul(tt,he)|0;var gr=(K+(a=a+Math.imul(Y,Yt)|0)|0)+((8191&(r=(r=r+Math.imul(Y,ce)|0)+Math.imul(at,Yt)|0))<<13)|0;K=((v=v+Math.imul(at,ce)|0)+(r>>>13)|0)+(gr>>>26)|0,gr&=67108863,a=Math.imul(pt,It),r=(r=Math.imul(pt,Nt))+Math.imul(mt,It)|0,v=Math.imul(mt,Nt),a=a+Math.imul(Dt,Vt)|0,r=(r=r+Math.imul(Dt,Jt)|0)+Math.imul(zt,Vt)|0,v=v+Math.imul(zt,Jt)|0,a=a+Math.imul(At,Ht)|0,r=(r=r+Math.imul(At,ae)|0)+Math.imul(jt,Ht)|0,v=v+Math.imul(jt,ae)|0,a=a+Math.imul(gt,Gt)|0,r=(r=r+Math.imul(gt,se)|0)+Math.imul(St,Gt)|0,v=v+Math.imul(St,se)|0,a=a+Math.imul(Z,Zt)|0,r=(r=r+Math.imul(Z,he)|0)+Math.imul(rt,Zt)|0,v=v+Math.imul(rt,he)|0,a=a+Math.imul(ht,Yt)|0,r=(r=r+Math.imul(ht,ce)|0)+Math.imul(tt,Yt)|0,v=v+Math.imul(tt,ce)|0;var vr=(K+(a=a+Math.imul(Y,Ut)|0)|0)+((8191&(r=(r=r+Math.imul(Y,te)|0)+Math.imul(at,Ut)|0))<<13)|0;K=((v=v+Math.imul(at,te)|0)+(r>>>13)|0)+(vr>>>26)|0,vr&=67108863,a=Math.imul(xt,It),r=(r=Math.imul(xt,Nt))+Math.imul(kt,It)|0,v=Math.imul(kt,Nt),a=a+Math.imul(pt,Vt)|0,r=(r=r+Math.imul(pt,Jt)|0)+Math.imul(mt,Vt)|0,v=v+Math.imul(mt,Jt)|0,a=a+Math.imul(Dt,Ht)|0,r=(r=r+Math.imul(Dt,ae)|0)+Math.imul(zt,Ht)|0,v=v+Math.imul(zt,ae)|0,a=a+Math.imul(At,Gt)|0,r=(r=r+Math.imul(At,se)|0)+Math.imul(jt,Gt)|0,v=v+Math.imul(jt,se)|0,a=a+Math.imul(gt,Zt)|0,r=(r=r+Math.imul(gt,he)|0)+Math.imul(St,Zt)|0,v=v+Math.imul(St,he)|0,a=a+Math.imul(Z,Yt)|0,r=(r=r+Math.imul(Z,ce)|0)+Math.imul(rt,Yt)|0,v=v+Math.imul(rt,ce)|0,a=a+Math.imul(ht,Ut)|0,r=(r=r+Math.imul(ht,te)|0)+Math.imul(tt,Ut)|0,v=v+Math.imul(tt,te)|0;var yr=(K+(a=a+Math.imul(Y,ne)|0)|0)+((8191&(r=(r=r+Math.imul(Y,me)|0)+Math.imul(at,ne)|0))<<13)|0;K=((v=v+Math.imul(at,me)|0)+(r>>>13)|0)+(yr>>>26)|0,yr&=67108863,a=Math.imul(Pt,It),r=(r=Math.imul(Pt,Nt))+Math.imul(yt,It)|0,v=Math.imul(yt,Nt),a=a+Math.imul(xt,Vt)|0,r=(r=r+Math.imul(xt,Jt)|0)+Math.imul(kt,Vt)|0,v=v+Math.imul(kt,Jt)|0,a=a+Math.imul(pt,Ht)|0,r=(r=r+Math.imul(pt,ae)|0)+Math.imul(mt,Ht)|0,v=v+Math.imul(mt,ae)|0,a=a+Math.imul(Dt,Gt)|0,r=(r=r+Math.imul(Dt,se)|0)+Math.imul(zt,Gt)|0,v=v+Math.imul(zt,se)|0,a=a+Math.imul(At,Zt)|0,r=(r=r+Math.imul(At,he)|0)+Math.imul(jt,Zt)|0,v=v+Math.imul(jt,he)|0,a=a+Math.imul(gt,Yt)|0,r=(r=r+Math.imul(gt,ce)|0)+Math.imul(St,Yt)|0,v=v+Math.imul(St,ce)|0,a=a+Math.imul(Z,Ut)|0,r=(r=r+Math.imul(Z,te)|0)+Math.imul(rt,Ut)|0,v=v+Math.imul(rt,te)|0,a=a+Math.imul(ht,ne)|0,r=(r=r+Math.imul(ht,me)|0)+Math.imul(tt,ne)|0,v=v+Math.imul(tt,me)|0;var br=(K+(a=a+Math.imul(Y,ie)|0)|0)+((8191&(r=(r=r+Math.imul(Y,de)|0)+Math.imul(at,ie)|0))<<13)|0;K=((v=v+Math.imul(at,de)|0)+(r>>>13)|0)+(br>>>26)|0,br&=67108863,a=Math.imul(lt,It),r=(r=Math.imul(lt,Nt))+Math.imul(_t,It)|0,v=Math.imul(_t,Nt),a=a+Math.imul(Pt,Vt)|0,r=(r=r+Math.imul(Pt,Jt)|0)+Math.imul(yt,Vt)|0,v=v+Math.imul(yt,Jt)|0,a=a+Math.imul(xt,Ht)|0,r=(r=r+Math.imul(xt,ae)|0)+Math.imul(kt,Ht)|0,v=v+Math.imul(kt,ae)|0,a=a+Math.imul(pt,Gt)|0,r=(r=r+Math.imul(pt,se)|0)+Math.imul(mt,Gt)|0,v=v+Math.imul(mt,se)|0,a=a+Math.imul(Dt,Zt)|0,r=(r=r+Math.imul(Dt,he)|0)+Math.imul(zt,Zt)|0,v=v+Math.imul(zt,he)|0,a=a+Math.imul(At,Yt)|0,r=(r=r+Math.imul(At,ce)|0)+Math.imul(jt,Yt)|0,v=v+Math.imul(jt,ce)|0,a=a+Math.imul(gt,Ut)|0,r=(r=r+Math.imul(gt,te)|0)+Math.imul(St,Ut)|0,v=v+Math.imul(St,te)|0,a=a+Math.imul(Z,ne)|0,r=(r=r+Math.imul(Z,me)|0)+Math.imul(rt,ne)|0,v=v+Math.imul(rt,me)|0,a=a+Math.imul(ht,ie)|0,r=(r=r+Math.imul(ht,de)|0)+Math.imul(tt,ie)|0,v=v+Math.imul(tt,de)|0;var lr=(K+(a=a+Math.imul(Y,oe)|0)|0)+((8191&(r=(r=r+Math.imul(Y,ge)|0)+Math.imul(at,oe)|0))<<13)|0;K=((v=v+Math.imul(at,ge)|0)+(r>>>13)|0)+(lr>>>26)|0,lr&=67108863,a=Math.imul(lt,Vt),r=(r=Math.imul(lt,Jt))+Math.imul(_t,Vt)|0,v=Math.imul(_t,Jt),a=a+Math.imul(Pt,Ht)|0,r=(r=r+Math.imul(Pt,ae)|0)+Math.imul(yt,Ht)|0,v=v+Math.imul(yt,ae)|0,a=a+Math.imul(xt,Gt)|0,r=(r=r+Math.imul(xt,se)|0)+Math.imul(kt,Gt)|0,v=v+Math.imul(kt,se)|0,a=a+Math.imul(pt,Zt)|0,r=(r=r+Math.imul(pt,he)|0)+Math.imul(mt,Zt)|0,v=v+Math.imul(mt,he)|0,a=a+Math.imul(Dt,Yt)|0,r=(r=r+Math.imul(Dt,ce)|0)+Math.imul(zt,Yt)|0,v=v+Math.imul(zt,ce)|0,a=a+Math.imul(At,Ut)|0,r=(r=r+Math.imul(At,te)|0)+Math.imul(jt,Ut)|0,v=v+Math.imul(jt,te)|0,a=a+Math.imul(gt,ne)|0,r=(r=r+Math.imul(gt,me)|0)+Math.imul(St,ne)|0,v=v+Math.imul(St,me)|0,a=a+Math.imul(Z,ie)|0,r=(r=r+Math.imul(Z,de)|0)+Math.imul(rt,ie)|0,v=v+Math.imul(rt,de)|0;var wr=(K+(a=a+Math.imul(ht,oe)|0)|0)+((8191&(r=(r=r+Math.imul(ht,ge)|0)+Math.imul(tt,oe)|0))<<13)|0;K=((v=v+Math.imul(tt,ge)|0)+(r>>>13)|0)+(wr>>>26)|0,wr&=67108863,a=Math.imul(lt,Ht),r=(r=Math.imul(lt,ae))+Math.imul(_t,Ht)|0,v=Math.imul(_t,ae),a=a+Math.imul(Pt,Gt)|0,r=(r=r+Math.imul(Pt,se)|0)+Math.imul(yt,Gt)|0,v=v+Math.imul(yt,se)|0,a=a+Math.imul(xt,Zt)|0,r=(r=r+Math.imul(xt,he)|0)+Math.imul(kt,Zt)|0,v=v+Math.imul(kt,he)|0,a=a+Math.imul(pt,Yt)|0,r=(r=r+Math.imul(pt,ce)|0)+Math.imul(mt,Yt)|0,v=v+Math.imul(mt,ce)|0,a=a+Math.imul(Dt,Ut)|0,r=(r=r+Math.imul(Dt,te)|0)+Math.imul(zt,Ut)|0,v=v+Math.imul(zt,te)|0,a=a+Math.imul(At,ne)|0,r=(r=r+Math.imul(At,me)|0)+Math.imul(jt,ne)|0,v=v+Math.imul(jt,me)|0,a=a+Math.imul(gt,ie)|0,r=(r=r+Math.imul(gt,de)|0)+Math.imul(St,ie)|0,v=v+Math.imul(St,de)|0;var fr=(K+(a=a+Math.imul(Z,oe)|0)|0)+((8191&(r=(r=r+Math.imul(Z,ge)|0)+Math.imul(rt,oe)|0))<<13)|0;K=((v=v+Math.imul(rt,ge)|0)+(r>>>13)|0)+(fr>>>26)|0,fr&=67108863,a=Math.imul(lt,Gt),r=(r=Math.imul(lt,se))+Math.imul(_t,Gt)|0,v=Math.imul(_t,se),a=a+Math.imul(Pt,Zt)|0,r=(r=r+Math.imul(Pt,he)|0)+Math.imul(yt,Zt)|0,v=v+Math.imul(yt,he)|0,a=a+Math.imul(xt,Yt)|0,r=(r=r+Math.imul(xt,ce)|0)+Math.imul(kt,Yt)|0,v=v+Math.imul(kt,ce)|0,a=a+Math.imul(pt,Ut)|0,r=(r=r+Math.imul(pt,te)|0)+Math.imul(mt,Ut)|0,v=v+Math.imul(mt,te)|0,a=a+Math.imul(Dt,ne)|0,r=(r=r+Math.imul(Dt,me)|0)+Math.imul(zt,ne)|0,v=v+Math.imul(zt,me)|0,a=a+Math.imul(At,ie)|0,r=(r=r+Math.imul(At,de)|0)+Math.imul(jt,ie)|0,v=v+Math.imul(jt,de)|0;var _r=(K+(a=a+Math.imul(gt,oe)|0)|0)+((8191&(r=(r=r+Math.imul(gt,ge)|0)+Math.imul(St,oe)|0))<<13)|0;K=((v=v+Math.imul(St,ge)|0)+(r>>>13)|0)+(_r>>>26)|0,_r&=67108863,a=Math.imul(lt,Zt),r=(r=Math.imul(lt,he))+Math.imul(_t,Zt)|0,v=Math.imul(_t,he),a=a+Math.imul(Pt,Yt)|0,r=(r=r+Math.imul(Pt,ce)|0)+Math.imul(yt,Yt)|0,v=v+Math.imul(yt,ce)|0,a=a+Math.imul(xt,Ut)|0,r=(r=r+Math.imul(xt,te)|0)+Math.imul(kt,Ut)|0,v=v+Math.imul(kt,te)|0,a=a+Math.imul(pt,ne)|0,r=(r=r+Math.imul(pt,me)|0)+Math.imul(mt,ne)|0,v=v+Math.imul(mt,me)|0,a=a+Math.imul(Dt,ie)|0,r=(r=r+Math.imul(Dt,de)|0)+Math.imul(zt,ie)|0,v=v+Math.imul(zt,de)|0;var Mr=(K+(a=a+Math.imul(At,oe)|0)|0)+((8191&(r=(r=r+Math.imul(At,ge)|0)+Math.imul(jt,oe)|0))<<13)|0;K=((v=v+Math.imul(jt,ge)|0)+(r>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,a=Math.imul(lt,Yt),r=(r=Math.imul(lt,ce))+Math.imul(_t,Yt)|0,v=Math.imul(_t,ce),a=a+Math.imul(Pt,Ut)|0,r=(r=r+Math.imul(Pt,te)|0)+Math.imul(yt,Ut)|0,v=v+Math.imul(yt,te)|0,a=a+Math.imul(xt,ne)|0,r=(r=r+Math.imul(xt,me)|0)+Math.imul(kt,ne)|0,v=v+Math.imul(kt,me)|0,a=a+Math.imul(pt,ie)|0,r=(r=r+Math.imul(pt,de)|0)+Math.imul(mt,ie)|0,v=v+Math.imul(mt,de)|0;var pr=(K+(a=a+Math.imul(Dt,oe)|0)|0)+((8191&(r=(r=r+Math.imul(Dt,ge)|0)+Math.imul(zt,oe)|0))<<13)|0;K=((v=v+Math.imul(zt,ge)|0)+(r>>>13)|0)+(pr>>>26)|0,pr&=67108863,a=Math.imul(lt,Ut),r=(r=Math.imul(lt,te))+Math.imul(_t,Ut)|0,v=Math.imul(_t,te),a=a+Math.imul(Pt,ne)|0,r=(r=r+Math.imul(Pt,me)|0)+Math.imul(yt,ne)|0,v=v+Math.imul(yt,me)|0,a=a+Math.imul(xt,ie)|0,r=(r=r+Math.imul(xt,de)|0)+Math.imul(kt,ie)|0,v=v+Math.imul(kt,de)|0;var Le=(K+(a=a+Math.imul(pt,oe)|0)|0)+((8191&(r=(r=r+Math.imul(pt,ge)|0)+Math.imul(mt,oe)|0))<<13)|0;K=((v=v+Math.imul(mt,ge)|0)+(r>>>13)|0)+(Le>>>26)|0,Le&=67108863,a=Math.imul(lt,ne),r=(r=Math.imul(lt,me))+Math.imul(_t,ne)|0,v=Math.imul(_t,me),a=a+Math.imul(Pt,ie)|0,r=(r=r+Math.imul(Pt,de)|0)+Math.imul(yt,ie)|0,v=v+Math.imul(yt,de)|0;var De=(K+(a=a+Math.imul(xt,oe)|0)|0)+((8191&(r=(r=r+Math.imul(xt,ge)|0)+Math.imul(kt,oe)|0))<<13)|0;K=((v=v+Math.imul(kt,ge)|0)+(r>>>13)|0)+(De>>>26)|0,De&=67108863,a=Math.imul(lt,ie),r=(r=Math.imul(lt,de))+Math.imul(_t,ie)|0,v=Math.imul(_t,de);var xr=(K+(a=a+Math.imul(Pt,oe)|0)|0)+((8191&(r=(r=r+Math.imul(Pt,ge)|0)+Math.imul(yt,oe)|0))<<13)|0;K=((v=v+Math.imul(yt,ge)|0)+(r>>>13)|0)+(xr>>>26)|0,xr&=67108863;var Er=(K+(a=Math.imul(lt,oe))|0)+((8191&(r=(r=Math.imul(lt,ge))+Math.imul(_t,oe)|0))<<13)|0;return K=((v=Math.imul(_t,ge))+(r>>>13)|0)+(Er>>>26)|0,Er&=67108863,J[0]=We,J[1]=$e,J[2]=cr,J[3]=mr,J[4]=hr,J[5]=gr,J[6]=vr,J[7]=yr,J[8]=br,J[9]=lr,J[10]=wr,J[11]=fr,J[12]=_r,J[13]=Mr,J[14]=pr,J[15]=Le,J[16]=De,J[17]=xr,J[18]=Er,K!==0&&(J[19]=K,l.length++),l};function z(t,h,l){return new H().mulp(t,h,l)}function H(t,h){this.x=t,this.y=h}Math.imul||(U=F),p.prototype.mulTo=function(t,h){var l,a=this.length+t.length;return l=this.length===10&&t.length===10?U(this,t,h):a<63?F(this,t,h):a<1024?function(r,v,A){A.negative=v.negative^r.negative,A.length=r.length+v.length;for(var W=0,J=0,K=0;K<A.length-1;K++){var G=J;J=0;for(var Y=67108863&W,at=Math.min(K,v.length-1),ot=Math.max(0,K-r.length+1);ot<=at;ot++){var ht=K-ot,tt=(0|r.words[ht])*(0|v.words[ot]),it=67108863&tt;Y=67108863&(it=it+Y|0),J+=(G=(G=G+(tt/67108864|0)|0)+(it>>>26)|0)>>>26,G&=67108863}A.words[K]=Y,W=G,G=J}return W!==0?A.words[K]=W:A.length--,A.strip()}(this,t,h):z(this,t,h),l},H.prototype.makeRBT=function(t){for(var h=new Array(t),l=p.prototype._countBits(t)-1,a=0;a<t;a++)h[a]=this.revBin(a,l,t);return h},H.prototype.revBin=function(t,h,l){if(t===0||t===l-1)return t;for(var a=0,r=0;r<h;r++)a|=(1&t)<<h-r-1,t>>=1;return a},H.prototype.permute=function(t,h,l,a,r,v){for(var A=0;A<v;A++)a[A]=h[t[A]],r[A]=l[t[A]]},H.prototype.transform=function(t,h,l,a,r,v){this.permute(v,t,h,l,a,r);for(var A=1;A<r;A<<=1)for(var W=A<<1,J=Math.cos(2*Math.PI/W),K=Math.sin(2*Math.PI/W),G=0;G<r;G+=W)for(var Y=J,at=K,ot=0;ot<A;ot++){var ht=l[G+ot],tt=a[G+ot],it=l[G+ot+A],Z=a[G+ot+A],rt=Y*it-at*Z;Z=Y*Z+at*it,it=rt,l[G+ot]=ht+it,a[G+ot]=tt+Z,l[G+ot+A]=ht-it,a[G+ot+A]=tt-Z,ot!==W&&(rt=J*Y-K*at,at=J*at+K*Y,Y=rt)}},H.prototype.guessLen13b=function(t,h){var l=1|Math.max(h,t),a=1&l,r=0;for(l=l/2|0;l;l>>>=1)r++;return 1<<r+1+a},H.prototype.conjugate=function(t,h,l){if(!(l<=1))for(var a=0;a<l/2;a++){var r=t[a];t[a]=t[l-a-1],t[l-a-1]=r,r=h[a],h[a]=-h[l-a-1],h[l-a-1]=-r}},H.prototype.normalize13b=function(t,h){for(var l=0,a=0;a<h/2;a++){var r=8192*Math.round(t[2*a+1]/h)+Math.round(t[2*a]/h)+l;t[a]=67108863&r,l=r<67108864?0:r/67108864|0}return t},H.prototype.convert13b=function(t,h,l,a){for(var r=0,v=0;v<h;v++)r+=0|t[v],l[2*v]=8191&r,r>>>=13,l[2*v+1]=8191&r,r>>>=13;for(v=2*h;v<a;++v)l[v]=0;I(r===0),I(!(-8192&r))},H.prototype.stub=function(t){for(var h=new Array(t),l=0;l<t;l++)h[l]=0;return h},H.prototype.mulp=function(t,h,l){var a=2*this.guessLen13b(t.length,h.length),r=this.makeRBT(a),v=this.stub(a),A=new Array(a),W=new Array(a),J=new Array(a),K=new Array(a),G=new Array(a),Y=new Array(a),at=l.words;at.length=a,this.convert13b(t.words,t.length,A,a),this.convert13b(h.words,h.length,K,a),this.transform(A,v,W,J,a,r),this.transform(K,v,G,Y,a,r);for(var ot=0;ot<a;ot++){var ht=W[ot]*G[ot]-J[ot]*Y[ot];J[ot]=W[ot]*Y[ot]+J[ot]*G[ot],W[ot]=ht}return this.conjugate(W,J,a),this.transform(W,J,at,v,a,r),this.conjugate(at,v,a),this.normalize13b(at,a),l.negative=t.negative^h.negative,l.length=t.length+h.length,l.strip()},p.prototype.mul=function(t){var h=new p(null);return h.words=new Array(this.length+t.length),this.mulTo(t,h)},p.prototype.mulf=function(t){var h=new p(null);return h.words=new Array(this.length+t.length),z(this,t,h)},p.prototype.imul=function(t){return this.clone().mulTo(t,this)},p.prototype.imuln=function(t){I(typeof t=="number"),I(t<67108864);for(var h=0,l=0;l<this.length;l++){var a=(0|this.words[l])*t,r=(67108863&a)+(67108863&h);h>>=26,h+=a/67108864|0,h+=r>>>26,this.words[l]=67108863&r}return h!==0&&(this.words[l]=h,this.length++),this},p.prototype.muln=function(t){return this.clone().imuln(t)},p.prototype.sqr=function(){return this.mul(this)},p.prototype.isqr=function(){return this.imul(this.clone())},p.prototype.pow=function(t){var h=function(v){for(var A=new Array(v.bitLength()),W=0;W<A.length;W++){var J=W/26|0,K=W%26;A[W]=(v.words[J]&1<<K)>>>K}return A}(t);if(h.length===0)return new p(1);for(var l=this,a=0;a<h.length&&h[a]===0;a++,l=l.sqr());if(++a<h.length)for(var r=l.sqr();a<h.length;a++,r=r.sqr())h[a]!==0&&(l=l.mul(r));return l},p.prototype.iushln=function(t){I(typeof t=="number"&&t>=0);var h,l=t%26,a=(t-l)/26,r=67108863>>>26-l<<26-l;if(l!==0){var v=0;for(h=0;h<this.length;h++){var A=this.words[h]&r,W=(0|this.words[h])-A<<l;this.words[h]=W|v,v=A>>>26-l}v&&(this.words[h]=v,this.length++)}if(a!==0){for(h=this.length-1;h>=0;h--)this.words[h+a]=this.words[h];for(h=0;h<a;h++)this.words[h]=0;this.length+=a}return this.strip()},p.prototype.ishln=function(t){return I(this.negative===0),this.iushln(t)},p.prototype.iushrn=function(t,h,l){var a;I(typeof t=="number"&&t>=0),a=h?(h-h%26)/26:0;var r=t%26,v=Math.min((t-r)/26,this.length),A=67108863^67108863>>>r<<r,W=l;if(a-=v,a=Math.max(0,a),W){for(var J=0;J<v;J++)W.words[J]=this.words[J];W.length=v}if(v!==0)if(this.length>v)for(this.length-=v,J=0;J<this.length;J++)this.words[J]=this.words[J+v];else this.words[0]=0,this.length=1;var K=0;for(J=this.length-1;J>=0&&(K!==0||J>=a);J--){var G=0|this.words[J];this.words[J]=K<<26-r|G>>>r,K=G&A}return W&&K!==0&&(W.words[W.length++]=K),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},p.prototype.ishrn=function(t,h,l){return I(this.negative===0),this.iushrn(t,h,l)},p.prototype.shln=function(t){return this.clone().ishln(t)},p.prototype.ushln=function(t){return this.clone().iushln(t)},p.prototype.shrn=function(t){return this.clone().ishrn(t)},p.prototype.ushrn=function(t){return this.clone().iushrn(t)},p.prototype.testn=function(t){I(typeof t=="number"&&t>=0);var h=t%26,l=(t-h)/26,a=1<<h;return!(this.length<=l||!(this.words[l]&a))},p.prototype.imaskn=function(t){I(typeof t=="number"&&t>=0);var h=t%26,l=(t-h)/26;if(I(this.negative===0,"imaskn works only with positive numbers"),this.length<=l)return this;if(h!==0&&l++,this.length=Math.min(l,this.length),h!==0){var a=67108863^67108863>>>h<<h;this.words[this.length-1]&=a}return this.strip()},p.prototype.maskn=function(t){return this.clone().imaskn(t)},p.prototype.iaddn=function(t){return I(typeof t=="number"),I(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)},p.prototype._iaddn=function(t){this.words[0]+=t;for(var h=0;h<this.length&&this.words[h]>=67108864;h++)this.words[h]-=67108864,h===this.length-1?this.words[h+1]=1:this.words[h+1]++;return this.length=Math.max(this.length,h+1),this},p.prototype.isubn=function(t){if(I(typeof t=="number"),I(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 h=0;h<this.length&&this.words[h]<0;h++)this.words[h]+=67108864,this.words[h+1]-=1;return this.strip()},p.prototype.addn=function(t){return this.clone().iaddn(t)},p.prototype.subn=function(t){return this.clone().isubn(t)},p.prototype.iabs=function(){return this.negative=0,this},p.prototype.abs=function(){return this.clone().iabs()},p.prototype._ishlnsubmul=function(t,h,l){var a,r,v=t.length+l;this._expand(v);var A=0;for(a=0;a<t.length;a++){r=(0|this.words[a+l])+A;var W=(0|t.words[a])*h;A=((r-=67108863&W)>>26)-(W/67108864|0),this.words[a+l]=67108863&r}for(;a<this.length-l;a++)A=(r=(0|this.words[a+l])+A)>>26,this.words[a+l]=67108863&r;if(A===0)return this.strip();for(I(A===-1),A=0,a=0;a<this.length;a++)A=(r=-(0|this.words[a])+A)>>26,this.words[a]=67108863&r;return this.negative=1,this.strip()},p.prototype._wordDiv=function(t,h){var l=(this.length,t.length),a=this.clone(),r=t,v=0|r.words[r.length-1];(l=26-this._countBits(v))!=0&&(r=r.ushln(l),a.iushln(l),v=0|r.words[r.length-1]);var A,W=a.length-r.length;if(h!=="mod"){(A=new p(null)).length=W+1,A.words=new Array(A.length);for(var J=0;J<A.length;J++)A.words[J]=0}var K=a.clone()._ishlnsubmul(r,1,W);K.negative===0&&(a=K,A&&(A.words[W]=1));for(var G=W-1;G>=0;G--){var Y=67108864*(0|a.words[r.length+G])+(0|a.words[r.length+G-1]);for(Y=Math.min(Y/v|0,67108863),a._ishlnsubmul(r,Y,G);a.negative!==0;)Y--,a.negative=0,a._ishlnsubmul(r,1,G),a.isZero()||(a.negative^=1);A&&(A.words[G]=Y)}return A&&A.strip(),a.strip(),h!=="div"&&l!==0&&a.iushrn(l),{div:A||null,mod:a}},p.prototype.divmod=function(t,h,l){return I(!t.isZero()),this.isZero()?{div:new p(0),mod:new p(0)}:this.negative!==0&&t.negative===0?(v=this.neg().divmod(t,h),h!=="mod"&&(a=v.div.neg()),h!=="div"&&(r=v.mod.neg(),l&&r.negative!==0&&r.iadd(t)),{div:a,mod:r}):this.negative===0&&t.negative!==0?(v=this.divmod(t.neg(),h),h!=="mod"&&(a=v.div.neg()),{div:a,mod:v.mod}):this.negative&t.negative?(v=this.neg().divmod(t.neg(),h),h!=="div"&&(r=v.mod.neg(),l&&r.negative!==0&&r.isub(t)),{div:v.div,mod:r}):t.length>this.length||this.cmp(t)<0?{div:new p(0),mod:this}:t.length===1?h==="div"?{div:this.divn(t.words[0]),mod:null}:h==="mod"?{div:null,mod:new p(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new p(this.modn(t.words[0]))}:this._wordDiv(t,h);var a,r,v},p.prototype.div=function(t){return this.divmod(t,"div",!1).div},p.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},p.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},p.prototype.divRound=function(t){var h=this.divmod(t);if(h.mod.isZero())return h.div;var l=h.div.negative!==0?h.mod.isub(t):h.mod,a=t.ushrn(1),r=t.andln(1),v=l.cmp(a);return v<0||r===1&&v===0?h.div:h.div.negative!==0?h.div.isubn(1):h.div.iaddn(1)},p.prototype.modn=function(t){I(t<=67108863);for(var h=67108864%t,l=0,a=this.length-1;a>=0;a--)l=(h*l+(0|this.words[a]))%t;return l},p.prototype.idivn=function(t){I(t<=67108863);for(var h=0,l=this.length-1;l>=0;l--){var a=(0|this.words[l])+67108864*h;this.words[l]=a/t|0,h=a%t}return this.strip()},p.prototype.divn=function(t){return this.clone().idivn(t)},p.prototype.egcd=function(t){I(t.negative===0),I(!t.isZero());var h=this,l=t.clone();h=h.negative!==0?h.umod(t):h.clone();for(var a=new p(1),r=new p(0),v=new p(0),A=new p(1),W=0;h.isEven()&&l.isEven();)h.iushrn(1),l.iushrn(1),++W;for(var J=l.clone(),K=h.clone();!h.isZero();){for(var G=0,Y=1;!(h.words[0]&Y)&&G<26;++G,Y<<=1);if(G>0)for(h.iushrn(G);G-- >0;)(a.isOdd()||r.isOdd())&&(a.iadd(J),r.isub(K)),a.iushrn(1),r.iushrn(1);for(var at=0,ot=1;!(l.words[0]&ot)&&at<26;++at,ot<<=1);if(at>0)for(l.iushrn(at);at-- >0;)(v.isOdd()||A.isOdd())&&(v.iadd(J),A.isub(K)),v.iushrn(1),A.iushrn(1);h.cmp(l)>=0?(h.isub(l),a.isub(v),r.isub(A)):(l.isub(h),v.isub(a),A.isub(r))}return{a:v,b:A,gcd:l.iushln(W)}},p.prototype._invmp=function(t){I(t.negative===0),I(!t.isZero());var h=this,l=t.clone();h=h.negative!==0?h.umod(t):h.clone();for(var a,r=new p(1),v=new p(0),A=l.clone();h.cmpn(1)>0&&l.cmpn(1)>0;){for(var W=0,J=1;!(h.words[0]&J)&&W<26;++W,J<<=1);if(W>0)for(h.iushrn(W);W-- >0;)r.isOdd()&&r.iadd(A),r.iushrn(1);for(var K=0,G=1;!(l.words[0]&G)&&K<26;++K,G<<=1);if(K>0)for(l.iushrn(K);K-- >0;)v.isOdd()&&v.iadd(A),v.iushrn(1);h.cmp(l)>=0?(h.isub(l),r.isub(v)):(l.isub(h),v.isub(r))}return(a=h.cmpn(1)===0?r:v).cmpn(0)<0&&a.iadd(t),a},p.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var h=this.clone(),l=t.clone();h.negative=0,l.negative=0;for(var a=0;h.isEven()&&l.isEven();a++)h.iushrn(1),l.iushrn(1);for(;;){for(;h.isEven();)h.iushrn(1);for(;l.isEven();)l.iushrn(1);var r=h.cmp(l);if(r<0){var v=h;h=l,l=v}else if(r===0||l.cmpn(1)===0)break;h.isub(l)}return l.iushln(a)},p.prototype.invm=function(t){return this.egcd(t).a.umod(t)},p.prototype.isEven=function(){return!(1&this.words[0])},p.prototype.isOdd=function(){return!(1&~this.words[0])},p.prototype.andln=function(t){return this.words[0]&t},p.prototype.bincn=function(t){I(typeof t=="number");var h=t%26,l=(t-h)/26,a=1<<h;if(this.length<=l)return this._expand(l+1),this.words[l]|=a,this;for(var r=a,v=l;r!==0&&v<this.length;v++){var A=0|this.words[v];r=(A+=r)>>>26,A&=67108863,this.words[v]=A}return r!==0&&(this.words[v]=r,this.length++),this},p.prototype.isZero=function(){return this.length===1&&this.words[0]===0},p.prototype.cmpn=function(t){var h,l=t<0;if(this.negative!==0&&!l)return-1;if(this.negative===0&&l)return 1;if(this.strip(),this.length>1)h=1;else{l&&(t=-t),I(t<=67108863,"Number is too big");var a=0|this.words[0];h=a===t?0:a<t?-1:1}return this.negative!==0?0|-h:h},p.prototype.cmp=function(t){if(this.negative!==0&&t.negative===0)return-1;if(this.negative===0&&t.negative!==0)return 1;var h=this.ucmp(t);return this.negative!==0?0|-h:h},p.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var h=0,l=this.length-1;l>=0;l--){var a=0|this.words[l],r=0|t.words[l];if(a!==r){a<r?h=-1:a>r&&(h=1);break}}return h},p.prototype.gtn=function(t){return this.cmpn(t)===1},p.prototype.gt=function(t){return this.cmp(t)===1},p.prototype.gten=function(t){return this.cmpn(t)>=0},p.prototype.gte=function(t){return this.cmp(t)>=0},p.prototype.ltn=function(t){return this.cmpn(t)===-1},p.prototype.lt=function(t){return this.cmp(t)===-1},p.prototype.lten=function(t){return this.cmpn(t)<=0},p.prototype.lte=function(t){return this.cmp(t)<=0},p.prototype.eqn=function(t){return this.cmpn(t)===0},p.prototype.eq=function(t){return this.cmp(t)===0},p.red=function(t){return new ct(t)},p.prototype.toRed=function(t){return I(!this.red,"Already a number in reduction context"),I(this.negative===0,"red works only with positives"),t.convertTo(this)._forceRed(t)},p.prototype.fromRed=function(){return I(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},p.prototype._forceRed=function(t){return this.red=t,this},p.prototype.forceRed=function(t){return I(!this.red,"Already a number in reduction context"),this._forceRed(t)},p.prototype.redAdd=function(t){return I(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},p.prototype.redIAdd=function(t){return I(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},p.prototype.redSub=function(t){return I(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},p.prototype.redISub=function(t){return I(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},p.prototype.redShl=function(t){return I(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},p.prototype.redMul=function(t){return I(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},p.prototype.redIMul=function(t){return I(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},p.prototype.redSqr=function(){return I(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},p.prototype.redISqr=function(){return I(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},p.prototype.redSqrt=function(){return I(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},p.prototype.redInvm=function(){return I(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},p.prototype.redNeg=function(){return I(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},p.prototype.redPow=function(t){return I(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var D={k256:null,p224:null,p192:null,p25519:null};function Q(t,h){this.name=t,this.p=new p(h,16),this.n=this.p.bitLength(),this.k=new p(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function X(){Q.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function et(){Q.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function nt(){Q.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ut(){Q.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function ct(t){if(typeof t=="string"){var h=p._prime(t);this.m=h.p,this.prime=h}else I(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function vt(t){ct.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new p(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)}Q.prototype._tmp=function(){var t=new p(null);return t.words=new Array(Math.ceil(this.n/13)),t},Q.prototype.ireduce=function(t){var h,l=t;do this.split(l,this.tmp),h=(l=(l=this.imulK(l)).iadd(this.tmp)).bitLength();while(h>this.n);var a=h<this.n?-1:l.ucmp(this.p);return a===0?(l.words[0]=0,l.length=1):a>0?l.isub(this.p):l.strip!==void 0?l.strip():l._strip(),l},Q.prototype.split=function(t,h){t.iushrn(this.n,0,h)},Q.prototype.imulK=function(t){return t.imul(this.k)},q(X,Q),X.prototype.split=function(t,h){for(var l=4194303,a=Math.min(t.length,9),r=0;r<a;r++)h.words[r]=t.words[r];if(h.length=a,t.length<=9)return t.words[0]=0,void(t.length=1);var v=t.words[9];for(h.words[h.length++]=v&l,r=10;r<t.length;r++){var A=0|t.words[r];t.words[r-10]=(A&l)<<4|v>>>22,v=A}v>>>=22,t.words[r-10]=v,v===0&&t.length>10?t.length-=10:t.length-=9},X.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var h=0,l=0;l<t.length;l++){var a=0|t.words[l];h+=977*a,t.words[l]=67108863&h,h=64*a+(h/67108864|0)}return t.words[t.length-1]===0&&(t.length--,t.words[t.length-1]===0&&t.length--),t},q(et,Q),q(nt,Q),q(ut,Q),ut.prototype.imulK=function(t){for(var h=0,l=0;l<t.length;l++){var a=19*(0|t.words[l])+h,r=67108863&a;a>>>=26,t.words[l]=r,h=a}return h!==0&&(t.words[t.length++]=h),t},p._prime=function(t){if(D[t])return D[t];var h;if(t==="k256")h=new X;else if(t==="p224")h=new et;else if(t==="p192")h=new nt;else{if(t!=="p25519")throw new Error("Unknown prime "+t);h=new ut}return D[t]=h,h},ct.prototype._verify1=function(t){I(t.negative===0,"red works only with positives"),I(t.red,"red works only with red numbers")},ct.prototype._verify2=function(t,h){I(!(t.negative|h.negative),"red works only with positives"),I(t.red&&t.red===h.red,"red works only with red numbers")},ct.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},ct.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},ct.prototype.add=function(t,h){this._verify2(t,h);var l=t.add(h);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},ct.prototype.iadd=function(t,h){this._verify2(t,h);var l=t.iadd(h);return l.cmp(this.m)>=0&&l.isub(this.m),l},ct.prototype.sub=function(t,h){this._verify2(t,h);var l=t.sub(h);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},ct.prototype.isub=function(t,h){this._verify2(t,h);var l=t.isub(h);return l.cmpn(0)<0&&l.iadd(this.m),l},ct.prototype.shl=function(t,h){return this._verify1(t),this.imod(t.ushln(h))},ct.prototype.imul=function(t,h){return this._verify2(t,h),this.imod(t.imul(h))},ct.prototype.mul=function(t,h){return this._verify2(t,h),this.imod(t.mul(h))},ct.prototype.isqr=function(t){return this.imul(t,t.clone())},ct.prototype.sqr=function(t){return this.mul(t,t)},ct.prototype.sqrt=function(t){if(t.isZero())return t.clone();var h=this.m.andln(3);if(I(h%2==1),h===3){var l=this.m.add(new p(1)).iushrn(2);return this.pow(t,l)}for(var a=this.m.subn(1),r=0;!a.isZero()&&a.andln(1)===0;)r++,a.iushrn(1);I(!a.isZero());var v=new p(1).toRed(this),A=v.redNeg(),W=this.m.subn(1).iushrn(1),J=this.m.bitLength();for(J=new p(2*J*J).toRed(this);this.pow(J,W).cmp(A)!==0;)J.redIAdd(A);for(var K=this.pow(J,a),G=this.pow(t,a.addn(1).iushrn(1)),Y=this.pow(t,a),at=r;Y.cmp(v)!==0;){for(var ot=Y,ht=0;ot.cmp(v)!==0;ht++)ot=ot.redSqr();I(ht<at);var tt=this.pow(K,new p(1).iushln(at-ht-1));G=G.redMul(tt),K=tt.redSqr(),Y=Y.redMul(K),at=ht}return G},ct.prototype.invm=function(t){var h=t._invmp(this.m);return h.negative!==0?(h.negative=0,this.imod(h).redNeg()):this.imod(h)},ct.prototype.pow=function(t,h){if(h.isZero())return new p(1).toRed(this);if(h.cmpn(1)===0)return t.clone();var l=new Array(16);l[0]=new p(1).toRed(this),l[1]=t;for(var a=2;a<l.length;a++)l[a]=this.mul(l[a-1],t);var r=l[0],v=0,A=0,W=h.bitLength()%26;for(W===0&&(W=26),a=h.length-1;a>=0;a--){for(var J=h.words[a],K=W-1;K>=0;K--){var G=J>>K&1;r!==l[0]&&(r=this.sqr(r)),G!==0||v!==0?(v<<=1,v|=G,(++A==4||a===0&&K===0)&&(r=this.mul(r,l[v]),A=0,v=0)):A=0}W=26}return r},ct.prototype.convertTo=function(t){var h=t.umod(this.m);return h===t?h.clone():h},ct.prototype.convertFrom=function(t){var h=t.clone();return h.red=null,h},p.mont=function(t){return new vt(t)},q(vt,ct),vt.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},vt.prototype.convertFrom=function(t){var h=this.imod(t.mul(this.rinv));return h.red=null,h},vt.prototype.imul=function(t,h){if(t.isZero()||h.isZero())return t.words[0]=0,t.length=1,t;var l=t.imul(h),a=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=l.isub(a).iushrn(this.shift),v=r;return r.cmp(this.m)>=0?v=r.isub(this.m):r.cmpn(0)<0&&(v=r.iadd(this.m)),v._forceRed(this)},vt.prototype.mul=function(t,h){if(t.isZero()||h.isZero())return new p(0)._forceRed(this);var l=t.mul(h),a=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=l.isub(a).iushrn(this.shift),v=r;return r.cmp(this.m)>=0?v=r.isub(this.m):r.cmpn(0)<0&&(v=r.iadd(this.m)),v._forceRed(this)},vt.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}})($=b.nmd($),this)},8513:($,w,b)=>{b(6763);const j=b(9780),O=b(7765),I=b(7765),q=b(5334).buildOptions,p=b(1537);w.parse=function(N,M={},T){if(T){T===!0&&(T={});const C=p.validate(N,T);if(C!==!0)throw Error(C.err.msg)}M.parseTrueNumberOnly&&M.parseNodeValue!==!1&&!M.numParseOptions&&(M.numParseOptions={leadingZeros:!1});let S=q(M,I.defaultOptions,I.props);const B=O.getTraversalObj(N,S);return j.convertToJson(B,S)},w.convertTonimn=b(5540).convert2nimn,w.getTraversalObj=O.getTraversalObj,w.convertToJson=j.convertToJson,w.convertToJsonString=b(8292).convertToJsonString,w.validate=p.validate,w.j2xParser=b(635),w.parseToNimn=function(N,M,T){return w.convertTonimn(w.getTraversalObj(N,T),M,T)}},8545:($,w,b)=>{var j=b(8490),O=b(7011),I=O.assert;function q(S,B){if(S instanceof q)return S;this._importDER(S,B)||(I(S.r&&S.s,"Signature without r or s"),this.r=new j(S.r,16),this.s=new j(S.s,16),S.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=S.recoveryParam)}function p(){this.place=0}function N(S,B){var C=S[B.place++];if(!(128&C))return C;var _=15&C;if(_===0||_>4||S[B.place]===0)return!1;for(var F=0,U=0,z=B.place;U<_;U++,z++)F<<=8,F|=S[z],F>>>=0;return!(F<=127)&&(B.place=z,F)}function M(S){for(var B=0,C=S.length-1;!S[B]&&!(128&S[B+1])&&B<C;)B++;return B===0?S:S.slice(B)}function T(S,B){if(B<128)S.push(B);else{var C=1+(Math.log(B)/Math.LN2>>>3);for(S.push(128|C);--C;)S.push(B>>>(C<<3)&255);S.push(B)}}$.exports=q,q.prototype._importDER=function(S,B){S=O.toArray(S,B);var C=new p;if(S[C.place++]!==48)return!1;var _=N(S,C);if(_===!1||_+C.place!==S.length||S[C.place++]!==2)return!1;var F=N(S,C);if(F===!1||128&S[C.place])return!1;var U=S.slice(C.place,F+C.place);if(C.place+=F,S[C.place++]!==2)return!1;var z=N(S,C);if(z===!1||S.length!==z+C.place||128&S[C.place])return!1;var H=S.slice(C.place,z+C.place);if(U[0]===0){if(!(128&U[1]))return!1;U=U.slice(1)}if(H[0]===0){if(!(128&H[1]))return!1;H=H.slice(1)}return this.r=new j(U),this.s=new j(H),this.recoveryParam=null,!0},q.prototype.toDER=function(S){var B=this.r.toArray(),C=this.s.toArray();for(128&B[0]&&(B=[0].concat(B)),128&C[0]&&(C=[0].concat(C)),B=M(B),C=M(C);!(C[0]||128&C[1]);)C=C.slice(1);var _=[2];T(_,B.length),(_=_.concat(B)).push(2),T(_,C.length);var F=_.concat(C),U=[48];return T(U,F.length),U=U.concat(F),O.encode(U,S)}},8636:($,w,b)=>{var j=b(920),O=b(7720),I=b(4765),q=Object.prototype.hasOwnProperty,p={brackets:function(U){return U+"[]"},comma:"comma",indices:function(U,z){return U+"["+z+"]"},repeat:function(U){return U}},N=Array.isArray,M=Array.prototype.push,T=function(U,z){M.apply(U,N(z)?z:[z])},S=Date.prototype.toISOString,B=I.default,C={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:O.encode,encodeValuesOnly:!1,filter:void 0,format:B,formatter:I.formatters[B],indices:!1,serializeDate:function(U){return S.call(U)},skipNulls:!1,strictNullHandling:!1},_={},F=function U(z,H,D,Q,X,et,nt,ut,ct,vt,t,h,l,a,r,v,A,W){for(var J,K=z,G=W,Y=0,at=!1;(G=G.get(_))!==void 0&&!at;){var ot=G.get(z);if(Y+=1,ot!==void 0){if(ot===Y)throw new RangeError("Cyclic object value");at=!0}G.get(_)===void 0&&(Y=0)}if(typeof vt=="function"?K=vt(H,K):K instanceof Date?K=l(K):D==="comma"&&N(K)&&(K=O.maybeMap(K,function(Qt){return Qt instanceof Date?l(Qt):Qt})),K===null){if(et)return ct&&!v?ct(H,C.encoder,A,"key",a):H;K=""}if(typeof(J=K)=="string"||typeof J=="number"||typeof J=="boolean"||typeof J=="symbol"||typeof J=="bigint"||O.isBuffer(K))return ct?[r(v?H:ct(H,C.encoder,A,"key",a))+"="+r(ct(K,C.encoder,A,"value",a))]:[r(H)+"="+r(String(K))];var ht,tt=[];if(K===void 0)return tt;if(D==="comma"&&N(K))v&&ct&&(K=O.maybeMap(K,ct)),ht=[{value:K.length>0?K.join(",")||null:void 0}];else if(N(vt))ht=vt;else{var it=Object.keys(K);ht=t?it.sort(t):it}var Z=ut?String(H).replace(/\./g,"%2E"):String(H),rt=Q&&N(K)&&K.length===1?Z+"[]":Z;if(X&&N(K)&&K.length===0)return rt+"[]";for(var wt=0;wt<ht.length;++wt){var gt=ht[wt],St=typeof gt=="object"&&gt&&gt.value!==void 0?gt.value:K[gt];if(!nt||St!==null){var Lt=h&&ut?String(gt).replace(/\./g,"%2E"):String(gt),At=N(K)?typeof D=="function"?D(rt,Lt):rt:rt+(h?"."+Lt:"["+Lt+"]");W.set(z,Y);var jt=j();jt.set(_,W),T(tt,U(St,At,D,Q,X,et,nt,ut,D==="comma"&&v&&N(K)?null:ct,vt,t,h,l,a,r,v,A,jt))}}return tt};$.exports=function(U,z){var H,D=U,Q=function(a){if(!a)return C;if(a.allowEmptyArrays!==void 0&&typeof a.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(a.encodeDotInKeys!==void 0&&typeof a.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(a.encoder!==null&&a.encoder!==void 0&&typeof a.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=a.charset||C.charset;if(a.charset!==void 0&&a.charset!=="utf-8"&&a.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var v=I.default;if(a.format!==void 0){if(!q.call(I.formatters,a.format))throw new TypeError("Unknown format option provided.");v=a.format}var A,W=I.formatters[v],J=C.filter;if((typeof a.filter=="function"||N(a.filter))&&(J=a.filter),A=a.arrayFormat in p?a.arrayFormat:"indices"in a?a.indices?"indices":"repeat":C.arrayFormat,"commaRoundTrip"in a&&typeof a.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var K=a.allowDots===void 0?a.encodeDotInKeys===!0||C.allowDots:!!a.allowDots;return{addQueryPrefix:typeof a.addQueryPrefix=="boolean"?a.addQueryPrefix:C.addQueryPrefix,allowDots:K,allowEmptyArrays:typeof a.allowEmptyArrays=="boolean"?!!a.allowEmptyArrays:C.allowEmptyArrays,arrayFormat:A,charset:r,charsetSentinel:typeof a.charsetSentinel=="boolean"?a.charsetSentinel:C.charsetSentinel,commaRoundTrip:!!a.commaRoundTrip,delimiter:a.delimiter===void 0?C.delimiter:a.delimiter,encode:typeof a.encode=="boolean"?a.encode:C.encode,encodeDotInKeys:typeof a.encodeDotInKeys=="boolean"?a.encodeDotInKeys:C.encodeDotInKeys,encoder:typeof a.encoder=="function"?a.encoder:C.encoder,encodeValuesOnly:typeof a.encodeValuesOnly=="boolean"?a.encodeValuesOnly:C.encodeValuesOnly,filter:J,format:v,formatter:W,serializeDate:typeof a.serializeDate=="function"?a.serializeDate:C.serializeDate,skipNulls:typeof a.skipNulls=="boolean"?a.skipNulls:C.skipNulls,sort:typeof a.sort=="function"?a.sort:null,strictNullHandling:typeof a.strictNullHandling=="boolean"?a.strictNullHandling:C.strictNullHandling}}(z);typeof Q.filter=="function"?D=(0,Q.filter)("",D):N(Q.filter)&&(H=Q.filter);var X=[];if(typeof D!="object"||D===null)return"";var et=p[Q.arrayFormat],nt=et==="comma"&&Q.commaRoundTrip;H||(H=Object.keys(D)),Q.sort&&H.sort(Q.sort);for(var ut=j(),ct=0;ct<H.length;++ct){var vt=H[ct],t=D[vt];Q.skipNulls&&t===null||T(X,F(t,vt,et,nt,Q.allowEmptyArrays,Q.strictNullHandling,Q.skipNulls,Q.encodeDotInKeys,Q.encode?Q.encoder:null,Q.filter,Q.sort,Q.allowDots,Q.serializeDate,Q.format,Q.formatter,Q.encodeValuesOnly,Q.charset,ut))}var h=X.join(Q.delimiter),l=Q.addQueryPrefix===!0?"?":"";return Q.charsetSentinel&&(Q.charset==="iso-8859-1"?l+="utf8=%26%2310003%3B&":l+="utf8=%E2%9C%93&"),h.length>0?l+h:""}},8648:$=>{$.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null},8650:($,w,b)=>{var j=b(7952),O=b(480),I=b(7011),q=I.assert,p=I.parseBytes,N=b(6661),M=b(220);function T(S){if(q(S==="ed25519","only tested with ed25519 so far"),!(this instanceof T))return new T(S);S=O[S].curve,this.curve=S,this.g=S.g,this.g.precompute(S.n.bitLength()+1),this.pointClass=S.point().constructor,this.encodingLength=Math.ceil(S.n.bitLength()/8),this.hash=j.sha512}$.exports=T,T.prototype.sign=function(S,B){S=p(S);var C=this.keyFromSecret(B),_=this.hashInt(C.messagePrefix(),S),F=this.g.mul(_),U=this.encodePoint(F),z=this.hashInt(U,C.pubBytes(),S).mul(C.priv()),H=_.add(z).umod(this.curve.n);return this.makeSignature({R:F,S:H,Rencoded:U})},T.prototype.verify=function(S,B,C){if(S=p(S),(B=this.makeSignature(B)).S().gte(B.eddsa.curve.n)||B.S().isNeg())return!1;var _=this.keyFromPublic(C),F=this.hashInt(B.Rencoded(),_.pubBytes(),S),U=this.g.mul(B.S());return B.R().add(_.pub().mul(F)).eq(U)},T.prototype.hashInt=function(){for(var S=this.hash(),B=0;B<arguments.length;B++)S.update(arguments[B]);return I.intFromLE(S.digest()).umod(this.curve.n)},T.prototype.keyFromPublic=function(S){return N.fromPublic(this,S)},T.prototype.keyFromSecret=function(S){return N.fromSecret(this,S)},T.prototype.makeSignature=function(S){return S instanceof M?S:new M(this,S)},T.prototype.encodePoint=function(S){var B=S.getY().toArray("le",this.encodingLength);return B[this.encodingLength-1]|=S.getX().isOdd()?128:0,B},T.prototype.decodePoint=function(S){var B=(S=I.parseBytes(S)).length-1,C=S.slice(0,B).concat(-129&S[B]),_=!!(128&S[B]),F=I.intFromLE(C);return this.curve.pointFromY(F,_)},T.prototype.encodeInt=function(S){return S.toArray("le",this.encodingLength)},T.prototype.decodeInt=function(S){return I.intFromLE(S)},T.prototype.isPoint=function(S){return S instanceof this.pointClass}},8753:function($){(function(){$.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},8805:function($,w,b){(function(){var j,O,I,q,p={}.hasOwnProperty;O=b(6465),j=b(6712),I=b(1912),q=b(2114),w.defaults=O.defaults,w.processors=q,w.ValidationError=function(){function N(M){this.message=M}return function(M,T){for(var S in T)p.call(T,S)&&(M[S]=T[S]);function B(){this.constructor=M}B.prototype=T.prototype,M.prototype=new B,M.__super__=T.prototype}(N,Error),N}(),w.Builder=j.Builder,w.Parser=I.Parser,w.parseString=I.parseString,w.parseStringPromise=I.parseStringPromise}).call(this)},8835:($,w,b)=>{var j=b(1270);function O(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var I=/^([a-z0-9.+-]+:)/i,q=/:[0-9]*$/,p=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,N=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",`
136
+ `," "]),M=["'"].concat(N),T=["%","/","?",";","#"].concat(M),S=["/","?","#"],B=/^[+a-z0-9A-Z_-]{0,63}$/,C=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,_={javascript:!0,"javascript:":!0},F={javascript:!0,"javascript:":!0},U={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},z=b(5373);function H(D,Q,X){if(D&&typeof D=="object"&&D instanceof O)return D;var et=new O;return et.parse(D,Q,X),et}O.prototype.parse=function(D,Q,X){if(typeof D!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof D);var et=D.indexOf("?"),nt=et!==-1&&et<D.indexOf("#")?"?":"#",ut=D.split(nt);ut[0]=ut[0].replace(/\\/g,"/");var ct=D=ut.join(nt);if(ct=ct.trim(),!X&&D.split("#").length===1){var vt=p.exec(ct);if(vt)return this.path=ct,this.href=ct,this.pathname=vt[1],vt[2]?(this.search=vt[2],this.query=Q?z.parse(this.search.substr(1)):this.search.substr(1)):Q&&(this.search="",this.query={}),this}var t=I.exec(ct);if(t){var h=(t=t[0]).toLowerCase();this.protocol=h,ct=ct.substr(t.length)}if(X||t||ct.match(/^\/\/[^@/]+@[^@/]+/)){var l=ct.substr(0,2)==="//";!l||t&&F[t]||(ct=ct.substr(2),this.slashes=!0)}if(!F[t]&&(l||t&&!U[t])){for(var a,r,v=-1,A=0;A<S.length;A++)(W=ct.indexOf(S[A]))!==-1&&(v===-1||W<v)&&(v=W);for((r=v===-1?ct.lastIndexOf("@"):ct.lastIndexOf("@",v))!==-1&&(a=ct.slice(0,r),ct=ct.slice(r+1),this.auth=decodeURIComponent(a)),v=-1,A=0;A<T.length;A++){var W;(W=ct.indexOf(T[A]))!==-1&&(v===-1||W<v)&&(v=W)}v===-1&&(v=ct.length),this.host=ct.slice(0,v),ct=ct.slice(v),this.parseHost(),this.hostname=this.hostname||"";var J=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!J)for(var K=this.hostname.split(/\./),G=(A=0,K.length);A<G;A++){var Y=K[A];if(Y&&!Y.match(B)){for(var at="",ot=0,ht=Y.length;ot<ht;ot++)Y.charCodeAt(ot)>127?at+="x":at+=Y[ot];if(!at.match(B)){var tt=K.slice(0,A),it=K.slice(A+1),Z=Y.match(C);Z&&(tt.push(Z[1]),it.unshift(Z[2])),it.length&&(ct="/"+it.join(".")+ct),this.hostname=tt.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),J||(this.hostname=j.toASCII(this.hostname));var rt=this.port?":"+this.port:"",wt=this.hostname||"";this.host=wt+rt,this.href+=this.host,J&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),ct[0]!=="/"&&(ct="/"+ct))}if(!_[h])for(A=0,G=M.length;A<G;A++){var gt=M[A];if(ct.indexOf(gt)!==-1){var St=encodeURIComponent(gt);St===gt&&(St=escape(gt)),ct=ct.split(gt).join(St)}}var Lt=ct.indexOf("#");Lt!==-1&&(this.hash=ct.substr(Lt),ct=ct.slice(0,Lt));var At=ct.indexOf("?");if(At!==-1?(this.search=ct.substr(At),this.query=ct.substr(At+1),Q&&(this.query=z.parse(this.query)),ct=ct.slice(0,At)):Q&&(this.search="",this.query={}),ct&&(this.pathname=ct),U[h]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){rt=this.pathname||"";var jt=this.search||"";this.path=rt+jt}return this.href=this.format(),this},O.prototype.format=function(){var D=this.auth||"";D&&(D=(D=encodeURIComponent(D)).replace(/%3A/i,":"),D+="@");var Q=this.protocol||"",X=this.pathname||"",et=this.hash||"",nt=!1,ut="";this.host?nt=D+this.host:this.hostname&&(nt=D+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(nt+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(ut=z.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var ct=this.search||ut&&"?"+ut||"";return Q&&Q.substr(-1)!==":"&&(Q+=":"),this.slashes||(!Q||U[Q])&&nt!==!1?(nt="//"+(nt||""),X&&X.charAt(0)!=="/"&&(X="/"+X)):nt||(nt=""),et&&et.charAt(0)!=="#"&&(et="#"+et),ct&&ct.charAt(0)!=="?"&&(ct="?"+ct),Q+nt+(X=X.replace(/[?#]/g,function(vt){return encodeURIComponent(vt)}))+(ct=ct.replace("#","%23"))+et},O.prototype.resolve=function(D){return this.resolveObject(H(D,!1,!0)).format()},O.prototype.resolveObject=function(D){if(typeof D=="string"){var Q=new O;Q.parse(D,!1,!0),D=Q}for(var X=new O,et=Object.keys(this),nt=0;nt<et.length;nt++){var ut=et[nt];X[ut]=this[ut]}if(X.hash=D.hash,D.href==="")return X.href=X.format(),X;if(D.slashes&&!D.protocol){for(var ct=Object.keys(D),vt=0;vt<ct.length;vt++){var t=ct[vt];t!=="protocol"&&(X[t]=D[t])}return U[X.protocol]&&X.hostname&&!X.pathname&&(X.pathname="/",X.path=X.pathname),X.href=X.format(),X}if(D.protocol&&D.protocol!==X.protocol){if(!U[D.protocol]){for(var h=Object.keys(D),l=0;l<h.length;l++){var a=h[l];X[a]=D[a]}return X.href=X.format(),X}if(X.protocol=D.protocol,D.host||F[D.protocol])X.pathname=D.pathname;else{for(var r=(D.pathname||"").split("/");r.length&&!(D.host=r.shift()););D.host||(D.host=""),D.hostname||(D.hostname=""),r[0]!==""&&r.unshift(""),r.length<2&&r.unshift(""),X.pathname=r.join("/")}if(X.search=D.search,X.query=D.query,X.host=D.host||"",X.auth=D.auth,X.hostname=D.hostname||D.host,X.port=D.port,X.pathname||X.search){var v=X.pathname||"",A=X.search||"";X.path=v+A}return X.slashes=X.slashes||D.slashes,X.href=X.format(),X}var W=X.pathname&&X.pathname.charAt(0)==="/",J=D.host||D.pathname&&D.pathname.charAt(0)==="/",K=J||W||X.host&&D.pathname,G=K,Y=X.pathname&&X.pathname.split("/")||[],at=(r=D.pathname&&D.pathname.split("/")||[],X.protocol&&!U[X.protocol]);if(at&&(X.hostname="",X.port=null,X.host&&(Y[0]===""?Y[0]=X.host:Y.unshift(X.host)),X.host="",D.protocol&&(D.hostname=null,D.port=null,D.host&&(r[0]===""?r[0]=D.host:r.unshift(D.host)),D.host=null),K=K&&(r[0]===""||Y[0]==="")),J)X.host=D.host||D.host===""?D.host:X.host,X.hostname=D.hostname||D.hostname===""?D.hostname:X.hostname,X.search=D.search,X.query=D.query,Y=r;else if(r.length)Y||(Y=[]),Y.pop(),Y=Y.concat(r),X.search=D.search,X.query=D.query;else if(D.search!=null)return at&&(X.host=Y.shift(),X.hostname=X.host,(Z=!!(X.host&&X.host.indexOf("@")>0)&&X.host.split("@"))&&(X.auth=Z.shift(),X.hostname=Z.shift(),X.host=X.hostname)),X.search=D.search,X.query=D.query,X.pathname===null&&X.search===null||(X.path=(X.pathname?X.pathname:"")+(X.search?X.search:"")),X.href=X.format(),X;if(!Y.length)return X.pathname=null,X.search?X.path="/"+X.search:X.path=null,X.href=X.format(),X;for(var ot=Y.slice(-1)[0],ht=(X.host||D.host||Y.length>1)&&(ot==="."||ot==="..")||ot==="",tt=0,it=Y.length;it>=0;it--)(ot=Y[it])==="."?Y.splice(it,1):ot===".."?(Y.splice(it,1),tt++):tt&&(Y.splice(it,1),tt--);if(!K&&!G)for(;tt--;tt)Y.unshift("..");!K||Y[0]===""||Y[0]&&Y[0].charAt(0)==="/"||Y.unshift(""),ht&&Y.join("/").substr(-1)!=="/"&&Y.push("");var Z,rt=Y[0]===""||Y[0]&&Y[0].charAt(0)==="/";return at&&(X.hostname=rt?"":Y.length?Y.shift():"",X.host=X.hostname,(Z=!!(X.host&&X.host.indexOf("@")>0)&&X.host.split("@"))&&(X.auth=Z.shift(),X.hostname=Z.shift(),X.host=X.hostname)),(K=K||X.host&&Y.length)&&!rt&&Y.unshift(""),Y.length>0?X.pathname=Y.join("/"):(X.pathname=null,X.path=null),X.pathname===null&&X.search===null||(X.path=(X.pathname?X.pathname:"")+(X.search?X.search:"")),X.auth=D.auth||X.auth,X.slashes=X.slashes||D.slashes,X.href=X.format(),X},O.prototype.parseHost=function(){var D=this.host,Q=q.exec(D);Q&&((Q=Q[0])!==":"&&(this.port=Q.substr(1)),D=D.substr(0,D.length-Q.length)),D&&(this.hostname=D)},w.parse=H,w.resolve=function(D,Q){return H(D,!1,!0).resolve(Q)},w.resolveObject=function(D,Q){return D?H(D,!1,!0).resolveObject(Q):Q},w.format=function(D){return typeof D=="string"&&(D=H(D)),D instanceof O?D.format():O.prototype.format.call(D)},w.Url=O},8859:($,w,b)=>{var j=typeof Map=="function"&&Map.prototype,O=Object.getOwnPropertyDescriptor&&j?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,I=j&&O&&typeof O.get=="function"?O.get:null,q=j&&Map.prototype.forEach,p=typeof Set=="function"&&Set.prototype,N=Object.getOwnPropertyDescriptor&&p?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,M=p&&N&&typeof N.get=="function"?N.get:null,T=p&&Set.prototype.forEach,S=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap.prototype.has:null,B=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet.prototype.has:null,C=typeof WeakRef=="function"&&WeakRef.prototype?WeakRef.prototype.deref:null,_=Boolean.prototype.valueOf,F=Object.prototype.toString,U=Function.prototype.toString,z=String.prototype.match,H=String.prototype.slice,D=String.prototype.replace,Q=String.prototype.toUpperCase,X=String.prototype.toLowerCase,et=RegExp.prototype.test,nt=Array.prototype.concat,ut=Array.prototype.join,ct=Array.prototype.slice,vt=Math.floor,t=typeof BigInt=="function"?BigInt.prototype.valueOf:null,h=Object.getOwnPropertySymbols,l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,a=typeof Symbol=="function"&&typeof Symbol.iterator=="object",r=typeof Symbol=="function"&&Symbol.toStringTag?Symbol.toStringTag:null,v=Object.prototype.propertyIsEnumerable,A=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(mt){return mt.__proto__}:null);function W(mt,Mt){if(mt===1/0||mt===-1/0||mt!=mt||mt&&mt>-1e3&&mt<1e3||et.call(/e/,Mt))return Mt;var xt=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof mt=="number"){var kt=mt<0?-vt(-mt):vt(mt);if(kt!==mt){var $t=String(kt),Pt=H.call(Mt,$t.length+1);return D.call($t,xt,"$&_")+"."+D.call(D.call(Pt,/([0-9]{3})/g,"$&_"),/_$/,"")}}return D.call(Mt,xt,"$&_")}var J=b(2634),K=J.custom,G=rt(K)?K:null,Y={__proto__:null,double:'"',single:"'"},at={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function ot(mt,Mt,xt){var kt=xt.quoteStyle||Mt,$t=Y[kt];return $t+mt+$t}function ht(mt){return D.call(String(mt),/"/g,"&quot;")}function tt(mt){return!r||!(typeof mt=="object"&&(r in mt||mt[r]!==void 0))}function it(mt){return St(mt)==="[object Array]"&&tt(mt)}function Z(mt){return St(mt)==="[object RegExp]"&&tt(mt)}function rt(mt){if(a)return mt&&typeof mt=="object"&&mt instanceof Symbol;if(typeof mt=="symbol")return!0;if(!mt||typeof mt!="object"||!l)return!1;try{return l.call(mt),!0}catch{}return!1}$.exports=function mt(Mt,xt,kt,$t){var Pt=xt||{};if(gt(Pt,"quoteStyle")&&!gt(Y,Pt.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(gt(Pt,"maxStringLength")&&(typeof Pt.maxStringLength=="number"?Pt.maxStringLength<0&&Pt.maxStringLength!==1/0:Pt.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var yt=!gt(Pt,"customInspect")||Pt.customInspect;if(typeof yt!="boolean"&&yt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(gt(Pt,"indent")&&Pt.indent!==null&&Pt.indent!==" "&&!(parseInt(Pt.indent,10)===Pt.indent&&Pt.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(gt(Pt,"numericSeparator")&&typeof Pt.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var dt=Pt.numericSeparator;if(Mt===void 0)return"undefined";if(Mt===null)return"null";if(typeof Mt=="boolean")return Mt?"true":"false";if(typeof Mt=="string")return At(Mt,Pt);if(typeof Mt=="number"){if(Mt===0)return 1/0/Mt>0?"0":"-0";var lt=String(Mt);return dt?W(Mt,lt):lt}if(typeof Mt=="bigint"){var _t=String(Mt)+"n";return dt?W(Mt,_t):_t}var qt=Pt.depth===void 0?5:Pt.depth;if(kt===void 0&&(kt=0),kt>=qt&&qt>0&&typeof Mt=="object")return it(Mt)?"[Array]":"[Object]";var It,Nt=function(Ut,te){var He;if(Ut.indent===" ")He=" ";else{if(!(typeof Ut.indent=="number"&&Ut.indent>0))return null;He=ut.call(Array(Ut.indent+1)," ")}return{base:He,prev:ut.call(Array(te+1),He)}}(Pt,kt);if($t===void 0)$t=[];else if(Lt($t,Mt)>=0)return"[Circular]";function be(Ut,te,He){if(te&&($t=ct.call($t)).push(te),He){var ne={depth:Pt.depth};return gt(Pt,"quoteStyle")&&(ne.quoteStyle=Pt.quoteStyle),mt(Ut,ne,kt+1,$t)}return mt(Ut,Pt,kt+1,$t)}if(typeof Mt=="function"&&!Z(Mt)){var Vt=function(Ut){if(Ut.name)return Ut.name;var te=z.call(U.call(Ut),/^function\s*([\w$]+)/);return te?te[1]:null}(Mt),Jt=pt(Mt,be);return"[Function"+(Vt?": "+Vt:" (anonymous)")+"]"+(Jt.length>0?" { "+ut.call(Jt,", ")+" }":"")}if(rt(Mt)){var Ee=a?D.call(String(Mt),/^(Symbol\(.*\))_[^)]*$/,"$1"):l.call(Mt);return typeof Mt!="object"||a?Ee:Qt(Ee)}if((It=Mt)&&typeof It=="object"&&(typeof HTMLElement<"u"&&It instanceof HTMLElement||typeof It.nodeName=="string"&&typeof It.getAttribute=="function")){for(var Ht="<"+X.call(String(Mt.nodeName)),ae=Mt.attributes||[],Ne=0;Ne<ae.length;Ne++)Ht+=" "+ae[Ne].name+"="+ot(ht(ae[Ne].value),"double",Pt);return Ht+=">",Mt.childNodes&&Mt.childNodes.length&&(Ht+="..."),Ht+"</"+X.call(String(Mt.nodeName))+">"}if(it(Mt)){if(Mt.length===0)return"[]";var Gt=pt(Mt,be);return Nt&&!function(Ut){for(var te=0;te<Ut.length;te++)if(Lt(Ut[te],`
137
+ `)>=0)return!1;return!0}(Gt)?"["+ft(Gt,Nt)+"]":"[ "+ut.call(Gt,", ")+" ]"}if(function(Ut){return St(Ut)==="[object Error]"&&tt(Ut)}(Mt)){var se=pt(Mt,be);return"cause"in Error.prototype||!("cause"in Mt)||v.call(Mt,"cause")?se.length===0?"["+String(Mt)+"]":"{ ["+String(Mt)+"] "+ut.call(se,", ")+" }":"{ ["+String(Mt)+"] "+ut.call(nt.call("[cause]: "+be(Mt.cause),se),", ")+" }"}if(typeof Mt=="object"&&yt){if(G&&typeof Mt[G]=="function"&&J)return J(Mt,{depth:qt-kt});if(yt!=="symbol"&&typeof Mt.inspect=="function")return Mt.inspect()}if(function(Ut){if(!I||!Ut||typeof Ut!="object")return!1;try{I.call(Ut);try{M.call(Ut)}catch{return!0}return Ut instanceof Map}catch{}return!1}(Mt)){var qe=[];return q&&q.call(Mt,function(Ut,te){qe.push(be(te,Mt,!0)+" => "+be(Ut,Mt))}),zt("Map",I.call(Mt),qe,Nt)}if(function(Ut){if(!M||!Ut||typeof Ut!="object")return!1;try{M.call(Ut);try{I.call(Ut)}catch{return!0}return Ut instanceof Set}catch{}return!1}(Mt)){var Zt=[];return T&&T.call(Mt,function(Ut){Zt.push(be(Ut,Mt))}),zt("Set",M.call(Mt),Zt,Nt)}if(function(Ut){if(!S||!Ut||typeof Ut!="object")return!1;try{S.call(Ut,S);try{B.call(Ut,B)}catch{return!0}return Ut instanceof WeakMap}catch{}return!1}(Mt))return Dt("WeakMap");if(function(Ut){if(!B||!Ut||typeof Ut!="object")return!1;try{B.call(Ut,B);try{S.call(Ut,S)}catch{return!0}return Ut instanceof WeakSet}catch{}return!1}(Mt))return Dt("WeakSet");if(function(Ut){if(!C||!Ut||typeof Ut!="object")return!1;try{return C.call(Ut),!0}catch{}return!1}(Mt))return Dt("WeakRef");if(function(Ut){return St(Ut)==="[object Number]"&&tt(Ut)}(Mt))return Qt(be(Number(Mt)));if(function(Ut){if(!Ut||typeof Ut!="object"||!t)return!1;try{return t.call(Ut),!0}catch{}return!1}(Mt))return Qt(be(t.call(Mt)));if(function(Ut){return St(Ut)==="[object Boolean]"&&tt(Ut)}(Mt))return Qt(_.call(Mt));if(function(Ut){return St(Ut)==="[object String]"&&tt(Ut)}(Mt))return Qt(be(String(Mt)));if(typeof window<"u"&&Mt===window)return"{ [object Window] }";if(typeof globalThis<"u"&&Mt===globalThis||b.g!==void 0&&Mt===b.g)return"{ [object globalThis] }";if(!function(Ut){return St(Ut)==="[object Date]"&&tt(Ut)}(Mt)&&!Z(Mt)){var he=pt(Mt,be),Qe=A?A(Mt)===Object.prototype:Mt instanceof Object||Mt.constructor===Object,Yt=Mt instanceof Object?"":"null prototype",ce=!Qe&&r&&Object(Mt)===Mt&&r in Mt?H.call(St(Mt),8,-1):Yt?"Object":"",Ge=(Qe||typeof Mt.constructor!="function"?"":Mt.constructor.name?Mt.constructor.name+" ":"")+(ce||Yt?"["+ut.call(nt.call([],ce||[],Yt||[]),": ")+"] ":"");return he.length===0?Ge+"{}":Nt?Ge+"{"+ft(he,Nt)+"}":Ge+"{ "+ut.call(he,", ")+" }"}return String(Mt)};var wt=Object.prototype.hasOwnProperty||function(mt){return mt in this};function gt(mt,Mt){return wt.call(mt,Mt)}function St(mt){return F.call(mt)}function Lt(mt,Mt){if(mt.indexOf)return mt.indexOf(Mt);for(var xt=0,kt=mt.length;xt<kt;xt++)if(mt[xt]===Mt)return xt;return-1}function At(mt,Mt){if(mt.length>Mt.maxStringLength){var xt=mt.length-Mt.maxStringLength,kt="... "+xt+" more character"+(xt>1?"s":"");return At(H.call(mt,0,Mt.maxStringLength),Mt)+kt}var $t=at[Mt.quoteStyle||"single"];return $t.lastIndex=0,ot(D.call(D.call(mt,$t,"\\$1"),/[\x00-\x1f]/g,jt),"single",Mt)}function jt(mt){var Mt=mt.charCodeAt(0),xt={8:"b",9:"t",10:"n",12:"f",13:"r"}[Mt];return xt?"\\"+xt:"\\x"+(Mt<16?"0":"")+Q.call(Mt.toString(16))}function Qt(mt){return"Object("+mt+")"}function Dt(mt){return mt+" { ? }"}function zt(mt,Mt,xt,kt){return mt+" ("+Mt+") {"+(kt?ft(xt,kt):ut.call(xt,", "))+"}"}function ft(mt,Mt){if(mt.length===0)return"";var xt=`
138
+ `+Mt.prev+Mt.base;return xt+ut.call(mt,","+xt)+`
139
+ `+Mt.prev}function pt(mt,Mt){var xt=it(mt),kt=[];if(xt){kt.length=mt.length;for(var $t=0;$t<mt.length;$t++)kt[$t]=gt(mt,$t)?Mt(mt[$t],mt):""}var Pt,yt=typeof h=="function"?h(mt):[];if(a){Pt={};for(var dt=0;dt<yt.length;dt++)Pt["$"+yt[dt]]=yt[dt]}for(var lt in mt)gt(mt,lt)&&(xt&&String(Number(lt))===lt&&lt<mt.length||a&&Pt["$"+lt]instanceof Symbol||(et.call(/[^\w$]/,lt)?kt.push(Mt(lt,mt)+": "+Mt(mt[lt],mt)):kt.push(lt+": "+Mt(mt[lt],mt))));if(typeof h=="function")for(var _t=0;_t<yt.length;_t++)v.call(mt,yt[_t])&&kt.push("["+Mt(yt[_t])+"]: "+Mt(mt[yt[_t]],mt));return kt}},8875:($,w,b)=>{var j;if(!Object.keys){var O=Object.prototype.hasOwnProperty,I=Object.prototype.toString,q=b(1093),p=Object.prototype.propertyIsEnumerable,N=!p.call({toString:null},"toString"),M=p.call(function(){},"prototype"),T=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],S=function(_){var F=_.constructor;return F&&F.prototype===_},B={$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},C=function(){if(typeof window>"u")return!1;for(var _ in window)try{if(!B["$"+_]&&O.call(window,_)&&window[_]!==null&&typeof window[_]=="object")try{S(window[_])}catch{return!0}}catch{return!0}return!1}();j=function(_){var F=_!==null&&typeof _=="object",U=I.call(_)==="[object Function]",z=q(_),H=F&&I.call(_)==="[object String]",D=[];if(!F&&!U&&!z)throw new TypeError("Object.keys called on a non-object");var Q=M&&U;if(H&&_.length>0&&!O.call(_,0))for(var X=0;X<_.length;++X)D.push(String(X));if(z&&_.length>0)for(var et=0;et<_.length;++et)D.push(String(et));else for(var nt in _)Q&&nt==="prototype"||!O.call(_,nt)||D.push(String(nt));if(N)for(var ut=function(vt){if(typeof window>"u"||!C)return S(vt);try{return S(vt)}catch{return!1}}(_),ct=0;ct<T.length;++ct)ut&&T[ct]==="constructor"||!O.call(_,T[ct])||D.push(T[ct]);return D}}$.exports=j},8902:($,w,b)=>{var j=b(8170),O=b(3209),I=b(7108),q=b(8206),p=b(2061),N=b(2509),M=b(9247),T=b(7332),S=b(2861).Buffer;$.exports=function(B,C,_){var F;F=B.padding?B.padding:_?1:4;var U,z=j(B);if(F===4)U=function(H,D){var Q=H.modulus.byteLength(),X=D.length,et=I("sha1").update(S.alloc(0)).digest(),nt=et.length,ut=2*nt;if(X>Q-ut-2)throw new Error("message too long");var ct=S.alloc(Q-X-ut-2),vt=Q-nt-1,t=O(nt),h=p(S.concat([et,ct,S.alloc(1,1),D],vt),q(t,vt)),l=p(t,q(h,nt));return new N(S.concat([S.alloc(1),l,h],Q))}(z,C);else if(F===1)U=function(H,D,Q){var X,et=D.length,nt=H.modulus.byteLength();if(et>nt-11)throw new Error("message too long");return X=Q?S.alloc(nt-et-3,255):function(ut){for(var ct,vt=S.allocUnsafe(ut),t=0,h=O(2*ut),l=0;t<ut;)l===h.length&&(h=O(2*ut),l=0),(ct=h[l++])&&(vt[t++]=ct);return vt}(nt-et-3),new N(S.concat([S.from([0,Q?1:2]),X,S.alloc(1),D],nt))}(z,C,_);else{if(F!==3)throw new Error("unknown padding");if((U=new N(C)).cmp(z.modulus)>=0)throw new Error("data too long for modulus")}return _?T(U,z):M(U,z)}},8903:($,w,b)=>{var j=b(6698),O=b(8287).Buffer,I=b(2010);function q(p){I.call(this,p),this.enc="pem"}j(q,I),$.exports=q,q.prototype.decode=function(p,N){for(var M=p.toString().split(/[\r\n]+/g),T=N.label.toUpperCase(),S=/^-----(BEGIN|END) ([^-]+)-----$/,B=-1,C=-1,_=0;_<M.length;_++){var F=M[_].match(S);if(F!==null&&F[2]===T){if(B!==-1){if(F[1]!=="END")break;C=_;break}if(F[1]!=="BEGIN")break;B=_}}if(B===-1||C===-1)throw new Error("PEM section not found for: "+T);var U=M.slice(B+1,C).join("");U.replace(/[^a-z0-9\+\/=]+/gi,"");var z=new O(U,"base64");return I.prototype.decode.call(this,z,N)}},8948:($,w,b)=>{var j=b(7426),O=b(3349);function I(q,p,N){if(!(this instanceof I))return new I(q,p,N);this.Hash=q,this.blockSize=q.blockSize/8,this.outSize=q.outSize/8,this.inner=null,this.outer=null,this._init(j.toArray(p,N))}$.exports=I,I.prototype._init=function(q){q.length>this.blockSize&&(q=new this.Hash().update(q).digest()),O(q.length<=this.blockSize);for(var p=q.length;p<this.blockSize;p++)q.push(0);for(p=0;p<q.length;p++)q[p]^=54;for(this.inner=new this.Hash().update(q),p=0;p<q.length;p++)q[p]^=106;this.outer=new this.Hash().update(q)},I.prototype.update=function(q,p){return this.inner.update(q,p),this},I.prototype.digest=function(q){return this.outer.update(this.inner.digest()),this.outer.digest(q)}},8961:(__unused_webpack_module,exports)=>{var indexOf=function($,w){if($.indexOf)return $.indexOf(w);for(var b=0;b<$.length;b++)if($[b]===w)return b;return-1},Object_keys=function($){if(Object.keys)return Object.keys($);var w=[];for(var b in $)w.push(b);return w},forEach=function($,w){if($.forEach)return $.forEach(w);for(var b=0;b<$.length;b++)w($[b],b,$)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function($,w,b){Object.defineProperty($,w,{writable:!0,enumerable:!1,configurable:!0,value:b})}}catch{return function(w,b,j){w[b]=j}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function($){if(!(this instanceof Script))return new Script($);this.code=$};Script.prototype.runInContext=function($){if(!($ instanceof Context))throw new TypeError("needs a 'context' argument.");var w=document.createElement("iframe");w.style||(w.style={}),w.style.display="none",document.body.appendChild(w);var b=w.contentWindow,j=b.eval,O=b.execScript;!j&&O&&(O.call(b,"null"),j=b.eval),forEach(Object_keys($),function(p){b[p]=$[p]}),forEach(globals,function(p){$[p]&&(b[p]=$[p])});var I=Object_keys(b),q=j.call(b,this.code);return forEach(Object_keys(b),function(p){(p in $||indexOf(I,p)===-1)&&($[p]=b[p])}),forEach(globals,function(p){p in $||defineProp($,p,b[p])}),document.body.removeChild(w),q},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function($){var w=Script.createContext($),b=this.runInContext(w);return $&&forEach(Object_keys(w),function(j){$[j]=w[j]}),b},forEach(Object_keys(Script.prototype),function($){exports[$]=Script[$]=function(w){var b=Script(w);return b[$].apply(b,[].slice.call(arguments,1))}}),exports.isContext=function($){return $ instanceof Context},exports.createScript=function($){return exports.Script($)},exports.createContext=Script.createContext=function($){var w=new Context;return typeof $=="object"&&forEach(Object_keys($),function(b){w[b]=$[b]}),w}},8968:$=>{$.exports=Math.floor},8982:()=>{},9032:($,w,b)=>{var j=b(7244),O=b(8184),I=b(5767),q=b(5680);function p(A){return A.call.bind(A)}var N=typeof BigInt<"u",M=typeof Symbol<"u",T=p(Object.prototype.toString),S=p(Number.prototype.valueOf),B=p(String.prototype.valueOf),C=p(Boolean.prototype.valueOf);if(N)var _=p(BigInt.prototype.valueOf);if(M)var F=p(Symbol.prototype.valueOf);function U(A,W){if(typeof A!="object")return!1;try{return W(A),!0}catch{return!1}}function z(A){return T(A)==="[object Map]"}function H(A){return T(A)==="[object Set]"}function D(A){return T(A)==="[object WeakMap]"}function Q(A){return T(A)==="[object WeakSet]"}function X(A){return T(A)==="[object ArrayBuffer]"}function et(A){return typeof ArrayBuffer<"u"&&(X.working?X(A):A instanceof ArrayBuffer)}function nt(A){return T(A)==="[object DataView]"}function ut(A){return typeof DataView<"u"&&(nt.working?nt(A):A instanceof DataView)}w.isArgumentsObject=j,w.isGeneratorFunction=O,w.isTypedArray=q,w.isPromise=function(A){return typeof Promise<"u"&&A instanceof Promise||A!==null&&typeof A=="object"&&typeof A.then=="function"&&typeof A.catch=="function"},w.isArrayBufferView=function(A){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(A):q(A)||ut(A)},w.isUint8Array=function(A){return I(A)==="Uint8Array"},w.isUint8ClampedArray=function(A){return I(A)==="Uint8ClampedArray"},w.isUint16Array=function(A){return I(A)==="Uint16Array"},w.isUint32Array=function(A){return I(A)==="Uint32Array"},w.isInt8Array=function(A){return I(A)==="Int8Array"},w.isInt16Array=function(A){return I(A)==="Int16Array"},w.isInt32Array=function(A){return I(A)==="Int32Array"},w.isFloat32Array=function(A){return I(A)==="Float32Array"},w.isFloat64Array=function(A){return I(A)==="Float64Array"},w.isBigInt64Array=function(A){return I(A)==="BigInt64Array"},w.isBigUint64Array=function(A){return I(A)==="BigUint64Array"},z.working=typeof Map<"u"&&z(new Map),w.isMap=function(A){return typeof Map<"u"&&(z.working?z(A):A instanceof Map)},H.working=typeof Set<"u"&&H(new Set),w.isSet=function(A){return typeof Set<"u"&&(H.working?H(A):A instanceof Set)},D.working=typeof WeakMap<"u"&&D(new WeakMap),w.isWeakMap=function(A){return typeof WeakMap<"u"&&(D.working?D(A):A instanceof WeakMap)},Q.working=typeof WeakSet<"u"&&Q(new WeakSet),w.isWeakSet=function(A){return Q(A)},X.working=typeof ArrayBuffer<"u"&&X(new ArrayBuffer),w.isArrayBuffer=et,nt.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&nt(new DataView(new ArrayBuffer(1),0,1)),w.isDataView=ut;var ct=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function vt(A){return T(A)==="[object SharedArrayBuffer]"}function t(A){return ct!==void 0&&(vt.working===void 0&&(vt.working=vt(new ct)),vt.working?vt(A):A instanceof ct)}function h(A){return U(A,S)}function l(A){return U(A,B)}function a(A){return U(A,C)}function r(A){return N&&U(A,_)}function v(A){return M&&U(A,F)}w.isSharedArrayBuffer=t,w.isAsyncFunction=function(A){return T(A)==="[object AsyncFunction]"},w.isMapIterator=function(A){return T(A)==="[object Map Iterator]"},w.isSetIterator=function(A){return T(A)==="[object Set Iterator]"},w.isGeneratorObject=function(A){return T(A)==="[object Generator]"},w.isWebAssemblyCompiledModule=function(A){return T(A)==="[object WebAssembly.Module]"},w.isNumberObject=h,w.isStringObject=l,w.isBooleanObject=a,w.isBigIntObject=r,w.isSymbolObject=v,w.isBoxedPrimitive=function(A){return h(A)||l(A)||a(A)||r(A)||v(A)},w.isAnyArrayBuffer=function(A){return typeof Uint8Array<"u"&&(et(A)||t(A))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(A){Object.defineProperty(w,A,{enumerable:!1,value:function(){throw new Error(A+" is not supported in userland")}})})},9092:($,w,b)=>{var j=b(1333);$.exports=function(){return j()&&!!Symbol.toStringTag}},9123:($,w,b)=>{var j=b(5606),O=b(1499),I=b(8310).Stream;function q(N,M,T){T=T||0;var S,B,C=(S=M,new Array(T||0).join(S||"")),_=N;if(typeof N=="object"&&(_=N[B=Object.keys(N)[0]])&&_._elem)return _._elem.name=B,_._elem.icount=T,_._elem.indent=M,_._elem.indents=C,_._elem.interrupt=_,_._elem;var F,U=[],z=[];function H(D){Object.keys(D).forEach(function(Q){U.push(function(X,et){return X+'="'+O(et)+'"'}(Q,D[Q]))})}switch(typeof _){case"object":if(_===null)break;_._attr&&H(_._attr),_._cdata&&z.push(("<![CDATA["+_._cdata).replace(/\]\]>/g,"]]]]><![CDATA[>")+"]]>"),_.forEach&&(F=!1,z.push(""),_.forEach(function(D){typeof D=="object"?Object.keys(D)[0]=="_attr"?H(D._attr):z.push(q(D,M,T+1)):(z.pop(),F=!0,z.push(O(D)))}),F||z.push(""));break;default:z.push(O(_))}return{name:B,interrupt:!1,attributes:U,content:z,icount:T,indents:C,indent:M}}function p(N,M,T){if(typeof M!="object")return N(!1,M);var S=M.interrupt?1:M.content.length;function B(){for(;M.content.length;){var _=M.content.shift();if(_!==void 0){if(C(_))return;p(N,_)}}N(!1,(S>1?M.indents:"")+(M.name?"</"+M.name+">":"")+(M.indent&&!T?`
140
+ `:"")),T&&T()}function C(_){return!!_.interrupt&&(_.interrupt.append=N,_.interrupt.end=B,_.interrupt=!1,N(!0),!0)}if(N(!1,M.indents+(M.name?"<"+M.name:"")+(M.attributes.length?" "+M.attributes.join(" "):"")+(S?M.name?">":"":M.name?"/>":"")+(M.indent&&S>1?`
141
+ `:"")),!S)return N(!1,M.indent?`
142
+ `:"");C(M)||B()}$.exports=function(N,M){typeof M!="object"&&(M={indent:M});var T,S,B=M.stream?new I:null,C="",_=!1,F=M.indent?M.indent===!0?" ":M.indent:"",U=!0;function z(X){U?j.nextTick(X):X()}function H(X,et){if(et!==void 0&&(C+=et),X&&!_&&(B=B||new I,_=!0),X&&_){var nt=C;z(function(){B.emit("data",nt)}),C=""}}function D(X,et){p(H,q(X,F,F?1:0),et)}function Q(){if(B){var X=C;z(function(){B.emit("data",X),B.emit("end"),B.readable=!1,B.emit("close")})}}return z(function(){U=!1}),M.declaration&&(S={version:"1.0",encoding:(T=M.declaration).encoding||"UTF-8"},T.standalone&&(S.standalone=T.standalone),D({"?xml":{_attr:S}}),C=C.replace("/>","?>")),N&&N.forEach?N.forEach(function(X,et){var nt;et+1===N.length&&(nt=Q),D(X,nt)}):D(N,Q),B?(B.readable=!0,B):C},$.exports.element=$.exports.Element=function(){return{_elem:q(Array.prototype.slice.call(arguments)),push:function(N){if(!this.append)throw new Error("not assigned to a parent!");var M=this,T=this._elem.indent;p(this.append,q(N,T,this._elem.icount+(T?1:0)),function(){M.append(!0)})},close:function(N){N!==void 0&&this.push(N),this.end&&this.end()}}}},9133:($,w,b)=>{var j=b(8403);$.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var O="abcdefghijklmnopqrst",I=O.split(""),q={},p=0;p<I.length;++p)q[I[p]]=I[p];var N=Object.assign({},q),M="";for(var T in N)M+=T;return O!==M}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var O=Object.preventExtensions({1:2});try{Object.assign(O,"xy")}catch{return O[1]==="y"}return!1}()?j:Object.assign:j}},9188:($,w,b)=>{var j=b(7011),O=b(8490),I=b(6698),q=b(6677),p=j.assert;function N(S){q.call(this,"short",S),this.a=new O(S.a,16).toRed(this.red),this.b=new O(S.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(S),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function M(S,B,C,_){q.BasePoint.call(this,S,"affine"),B===null&&C===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new O(B,16),this.y=new O(C,16),_&&(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 T(S,B,C,_){q.BasePoint.call(this,S,"jacobian"),B===null&&C===null&&_===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new O(0)):(this.x=new O(B,16),this.y=new O(C,16),this.z=new O(_,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}I(N,q),$.exports=N,N.prototype._getEndomorphism=function(S){if(this.zeroA&&this.g&&this.n&&this.p.modn(3)===1){var B,C;if(S.beta)B=new O(S.beta,16).toRed(this.red);else{var _=this._getEndoRoots(this.p);B=(B=_[0].cmp(_[1])<0?_[0]:_[1]).toRed(this.red)}if(S.lambda)C=new O(S.lambda,16);else{var F=this._getEndoRoots(this.n);this.g.mul(F[0]).x.cmp(this.g.x.redMul(B))===0?C=F[0]:(C=F[1],p(this.g.mul(C).x.cmp(this.g.x.redMul(B))===0))}return{beta:B,lambda:C,basis:S.basis?S.basis.map(function(U){return{a:new O(U.a,16),b:new O(U.b,16)}}):this._getEndoBasis(C)}}},N.prototype._getEndoRoots=function(S){var B=S===this.p?this.red:O.mont(S),C=new O(2).toRed(B).redInvm(),_=C.redNeg(),F=new O(3).toRed(B).redNeg().redSqrt().redMul(C);return[_.redAdd(F).fromRed(),_.redSub(F).fromRed()]},N.prototype._getEndoBasis=function(S){for(var B,C,_,F,U,z,H,D,Q,X=this.n.ushrn(Math.floor(this.n.bitLength()/2)),et=S,nt=this.n.clone(),ut=new O(1),ct=new O(0),vt=new O(0),t=new O(1),h=0;et.cmpn(0)!==0;){var l=nt.div(et);D=nt.sub(l.mul(et)),Q=vt.sub(l.mul(ut));var a=t.sub(l.mul(ct));if(!_&&D.cmp(X)<0)B=H.neg(),C=ut,_=D.neg(),F=Q;else if(_&&++h==2)break;H=D,nt=et,et=D,vt=ut,ut=Q,t=ct,ct=a}U=D.neg(),z=Q;var r=_.sqr().add(F.sqr());return U.sqr().add(z.sqr()).cmp(r)>=0&&(U=B,z=C),_.negative&&(_=_.neg(),F=F.neg()),U.negative&&(U=U.neg(),z=z.neg()),[{a:_,b:F},{a:U,b:z}]},N.prototype._endoSplit=function(S){var B=this.endo.basis,C=B[0],_=B[1],F=_.b.mul(S).divRound(this.n),U=C.b.neg().mul(S).divRound(this.n),z=F.mul(C.a),H=U.mul(_.a),D=F.mul(C.b),Q=U.mul(_.b);return{k1:S.sub(z).sub(H),k2:D.add(Q).neg()}},N.prototype.pointFromX=function(S,B){(S=new O(S,16)).red||(S=S.toRed(this.red));var C=S.redSqr().redMul(S).redIAdd(S.redMul(this.a)).redIAdd(this.b),_=C.redSqrt();if(_.redSqr().redSub(C).cmp(this.zero)!==0)throw new Error("invalid point");var F=_.fromRed().isOdd();return(B&&!F||!B&&F)&&(_=_.redNeg()),this.point(S,_)},N.prototype.validate=function(S){if(S.inf)return!0;var B=S.x,C=S.y,_=this.a.redMul(B),F=B.redSqr().redMul(B).redIAdd(_).redIAdd(this.b);return C.redSqr().redISub(F).cmpn(0)===0},N.prototype._endoWnafMulAdd=function(S,B,C){for(var _=this._endoWnafT1,F=this._endoWnafT2,U=0;U<S.length;U++){var z=this._endoSplit(B[U]),H=S[U],D=H._getBeta();z.k1.negative&&(z.k1.ineg(),H=H.neg(!0)),z.k2.negative&&(z.k2.ineg(),D=D.neg(!0)),_[2*U]=H,_[2*U+1]=D,F[2*U]=z.k1,F[2*U+1]=z.k2}for(var Q=this._wnafMulAdd(1,_,F,2*U,C),X=0;X<2*U;X++)_[X]=null,F[X]=null;return Q},I(M,q.BasePoint),N.prototype.point=function(S,B,C){return new M(this,S,B,C)},N.prototype.pointFromJSON=function(S,B){return M.fromJSON(this,S,B)},M.prototype._getBeta=function(){if(this.curve.endo){var S=this.precomputed;if(S&&S.beta)return S.beta;var B=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(S){var C=this.curve,_=function(F){return C.point(F.x.redMul(C.endo.beta),F.y)};S.beta=B,B.precomputed={beta:null,naf:S.naf&&{wnd:S.naf.wnd,points:S.naf.points.map(_)},doubles:S.doubles&&{step:S.doubles.step,points:S.doubles.points.map(_)}}}return B}},M.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]},M.fromJSON=function(S,B,C){typeof B=="string"&&(B=JSON.parse(B));var _=S.point(B[0],B[1],C);if(!B[2])return _;function F(z){return S.point(z[0],z[1],C)}var U=B[2];return _.precomputed={beta:null,doubles:U.doubles&&{step:U.doubles.step,points:[_].concat(U.doubles.points.map(F))},naf:U.naf&&{wnd:U.naf.wnd,points:[_].concat(U.naf.points.map(F))}},_},M.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)+">"},M.prototype.isInfinity=function(){return this.inf},M.prototype.add=function(S){if(this.inf)return S;if(S.inf)return this;if(this.eq(S))return this.dbl();if(this.neg().eq(S))return this.curve.point(null,null);if(this.x.cmp(S.x)===0)return this.curve.point(null,null);var B=this.y.redSub(S.y);B.cmpn(0)!==0&&(B=B.redMul(this.x.redSub(S.x).redInvm()));var C=B.redSqr().redISub(this.x).redISub(S.x),_=B.redMul(this.x.redSub(C)).redISub(this.y);return this.curve.point(C,_)},M.prototype.dbl=function(){if(this.inf)return this;var S=this.y.redAdd(this.y);if(S.cmpn(0)===0)return this.curve.point(null,null);var B=this.curve.a,C=this.x.redSqr(),_=S.redInvm(),F=C.redAdd(C).redIAdd(C).redIAdd(B).redMul(_),U=F.redSqr().redISub(this.x.redAdd(this.x)),z=F.redMul(this.x.redSub(U)).redISub(this.y);return this.curve.point(U,z)},M.prototype.getX=function(){return this.x.fromRed()},M.prototype.getY=function(){return this.y.fromRed()},M.prototype.mul=function(S){return S=new O(S,16),this.isInfinity()?this:this._hasDoubles(S)?this.curve._fixedNafMul(this,S):this.curve.endo?this.curve._endoWnafMulAdd([this],[S]):this.curve._wnafMul(this,S)},M.prototype.mulAdd=function(S,B,C){var _=[this,B],F=[S,C];return this.curve.endo?this.curve._endoWnafMulAdd(_,F):this.curve._wnafMulAdd(1,_,F,2)},M.prototype.jmulAdd=function(S,B,C){var _=[this,B],F=[S,C];return this.curve.endo?this.curve._endoWnafMulAdd(_,F,!0):this.curve._wnafMulAdd(1,_,F,2,!0)},M.prototype.eq=function(S){return this===S||this.inf===S.inf&&(this.inf||this.x.cmp(S.x)===0&&this.y.cmp(S.y)===0)},M.prototype.neg=function(S){if(this.inf)return this;var B=this.curve.point(this.x,this.y.redNeg());if(S&&this.precomputed){var C=this.precomputed,_=function(F){return F.neg()};B.precomputed={naf:C.naf&&{wnd:C.naf.wnd,points:C.naf.points.map(_)},doubles:C.doubles&&{step:C.doubles.step,points:C.doubles.points.map(_)}}}return B},M.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},I(T,q.BasePoint),N.prototype.jpoint=function(S,B,C){return new T(this,S,B,C)},T.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var S=this.z.redInvm(),B=S.redSqr(),C=this.x.redMul(B),_=this.y.redMul(B).redMul(S);return this.curve.point(C,_)},T.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},T.prototype.add=function(S){if(this.isInfinity())return S;if(S.isInfinity())return this;var B=S.z.redSqr(),C=this.z.redSqr(),_=this.x.redMul(B),F=S.x.redMul(C),U=this.y.redMul(B.redMul(S.z)),z=S.y.redMul(C.redMul(this.z)),H=_.redSub(F),D=U.redSub(z);if(H.cmpn(0)===0)return D.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var Q=H.redSqr(),X=Q.redMul(H),et=_.redMul(Q),nt=D.redSqr().redIAdd(X).redISub(et).redISub(et),ut=D.redMul(et.redISub(nt)).redISub(U.redMul(X)),ct=this.z.redMul(S.z).redMul(H);return this.curve.jpoint(nt,ut,ct)},T.prototype.mixedAdd=function(S){if(this.isInfinity())return S.toJ();if(S.isInfinity())return this;var B=this.z.redSqr(),C=this.x,_=S.x.redMul(B),F=this.y,U=S.y.redMul(B).redMul(this.z),z=C.redSub(_),H=F.redSub(U);if(z.cmpn(0)===0)return H.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var D=z.redSqr(),Q=D.redMul(z),X=C.redMul(D),et=H.redSqr().redIAdd(Q).redISub(X).redISub(X),nt=H.redMul(X.redISub(et)).redISub(F.redMul(Q)),ut=this.z.redMul(z);return this.curve.jpoint(et,nt,ut)},T.prototype.dblp=function(S){if(S===0)return this;if(this.isInfinity())return this;if(!S)return this.dbl();var B;if(this.curve.zeroA||this.curve.threeA){var C=this;for(B=0;B<S;B++)C=C.dbl();return C}var _=this.curve.a,F=this.curve.tinv,U=this.x,z=this.y,H=this.z,D=H.redSqr().redSqr(),Q=z.redAdd(z);for(B=0;B<S;B++){var X=U.redSqr(),et=Q.redSqr(),nt=et.redSqr(),ut=X.redAdd(X).redIAdd(X).redIAdd(_.redMul(D)),ct=U.redMul(et),vt=ut.redSqr().redISub(ct.redAdd(ct)),t=ct.redISub(vt),h=ut.redMul(t);h=h.redIAdd(h).redISub(nt);var l=Q.redMul(H);B+1<S&&(D=D.redMul(nt)),U=vt,H=l,Q=h}return this.curve.jpoint(U,Q.redMul(F),H)},T.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},T.prototype._zeroDbl=function(){var S,B,C;if(this.zOne){var _=this.x.redSqr(),F=this.y.redSqr(),U=F.redSqr(),z=this.x.redAdd(F).redSqr().redISub(_).redISub(U);z=z.redIAdd(z);var H=_.redAdd(_).redIAdd(_),D=H.redSqr().redISub(z).redISub(z),Q=U.redIAdd(U);Q=(Q=Q.redIAdd(Q)).redIAdd(Q),S=D,B=H.redMul(z.redISub(D)).redISub(Q),C=this.y.redAdd(this.y)}else{var X=this.x.redSqr(),et=this.y.redSqr(),nt=et.redSqr(),ut=this.x.redAdd(et).redSqr().redISub(X).redISub(nt);ut=ut.redIAdd(ut);var ct=X.redAdd(X).redIAdd(X),vt=ct.redSqr(),t=nt.redIAdd(nt);t=(t=t.redIAdd(t)).redIAdd(t),S=vt.redISub(ut).redISub(ut),B=ct.redMul(ut.redISub(S)).redISub(t),C=(C=this.y.redMul(this.z)).redIAdd(C)}return this.curve.jpoint(S,B,C)},T.prototype._threeDbl=function(){var S,B,C;if(this.zOne){var _=this.x.redSqr(),F=this.y.redSqr(),U=F.redSqr(),z=this.x.redAdd(F).redSqr().redISub(_).redISub(U);z=z.redIAdd(z);var H=_.redAdd(_).redIAdd(_).redIAdd(this.curve.a),D=H.redSqr().redISub(z).redISub(z);S=D;var Q=U.redIAdd(U);Q=(Q=Q.redIAdd(Q)).redIAdd(Q),B=H.redMul(z.redISub(D)).redISub(Q),C=this.y.redAdd(this.y)}else{var X=this.z.redSqr(),et=this.y.redSqr(),nt=this.x.redMul(et),ut=this.x.redSub(X).redMul(this.x.redAdd(X));ut=ut.redAdd(ut).redIAdd(ut);var ct=nt.redIAdd(nt),vt=(ct=ct.redIAdd(ct)).redAdd(ct);S=ut.redSqr().redISub(vt),C=this.y.redAdd(this.z).redSqr().redISub(et).redISub(X);var t=et.redSqr();t=(t=(t=t.redIAdd(t)).redIAdd(t)).redIAdd(t),B=ut.redMul(ct.redISub(S)).redISub(t)}return this.curve.jpoint(S,B,C)},T.prototype._dbl=function(){var S=this.curve.a,B=this.x,C=this.y,_=this.z,F=_.redSqr().redSqr(),U=B.redSqr(),z=C.redSqr(),H=U.redAdd(U).redIAdd(U).redIAdd(S.redMul(F)),D=B.redAdd(B),Q=(D=D.redIAdd(D)).redMul(z),X=H.redSqr().redISub(Q.redAdd(Q)),et=Q.redISub(X),nt=z.redSqr();nt=(nt=(nt=nt.redIAdd(nt)).redIAdd(nt)).redIAdd(nt);var ut=H.redMul(et).redISub(nt),ct=C.redAdd(C).redMul(_);return this.curve.jpoint(X,ut,ct)},T.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var S=this.x.redSqr(),B=this.y.redSqr(),C=this.z.redSqr(),_=B.redSqr(),F=S.redAdd(S).redIAdd(S),U=F.redSqr(),z=this.x.redAdd(B).redSqr().redISub(S).redISub(_),H=(z=(z=(z=z.redIAdd(z)).redAdd(z).redIAdd(z)).redISub(U)).redSqr(),D=_.redIAdd(_);D=(D=(D=D.redIAdd(D)).redIAdd(D)).redIAdd(D);var Q=F.redIAdd(z).redSqr().redISub(U).redISub(H).redISub(D),X=B.redMul(Q);X=(X=X.redIAdd(X)).redIAdd(X);var et=this.x.redMul(H).redISub(X);et=(et=et.redIAdd(et)).redIAdd(et);var nt=this.y.redMul(Q.redMul(D.redISub(Q)).redISub(z.redMul(H)));nt=(nt=(nt=nt.redIAdd(nt)).redIAdd(nt)).redIAdd(nt);var ut=this.z.redAdd(z).redSqr().redISub(C).redISub(H);return this.curve.jpoint(et,nt,ut)},T.prototype.mul=function(S,B){return S=new O(S,B),this.curve._wnafMul(this,S)},T.prototype.eq=function(S){if(S.type==="affine")return this.eq(S.toJ());if(this===S)return!0;var B=this.z.redSqr(),C=S.z.redSqr();if(this.x.redMul(C).redISub(S.x.redMul(B)).cmpn(0)!==0)return!1;var _=B.redMul(this.z),F=C.redMul(S.z);return this.y.redMul(F).redISub(S.y.redMul(_)).cmpn(0)===0},T.prototype.eqXToP=function(S){var B=this.z.redSqr(),C=S.toRed(this.curve.red).redMul(B);if(this.x.cmp(C)===0)return!0;for(var _=S.clone(),F=this.curve.redN.redMul(B);;){if(_.iadd(this.curve.n),_.cmp(this.curve.p)>=0)return!1;if(C.redIAdd(F),this.x.cmp(C)===0)return!0}},T.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)+">"},T.prototype.isInfinity=function(){return this.z.cmpn(0)===0}},9209:($,w,b)=>{var j=b(6578),O=typeof globalThis>"u"?b.g:globalThis;$.exports=function(){for(var I=[],q=0;q<j.length;q++)typeof O[j[q]]=="function"&&(I[I.length]=j[q]);return I}},9211:$=>{var w=function(b){return b!=b};$.exports=function(b,j){return b===0&&j===0?1/b==1/j:b===j||!(!w(b)||!w(j))}},9220:($,w,b)=>{var j=b(6698);function O(q){this._reporterState={obj:null,path:[],options:q||{},errors:[]}}function I(q,p){this.path=q,this.rethrow(p)}w.a=O,O.prototype.isError=function(q){return q instanceof I},O.prototype.save=function(){var q=this._reporterState;return{obj:q.obj,pathLen:q.path.length}},O.prototype.restore=function(q){var p=this._reporterState;p.obj=q.obj,p.path=p.path.slice(0,q.pathLen)},O.prototype.enterKey=function(q){return this._reporterState.path.push(q)},O.prototype.exitKey=function(q){var p=this._reporterState;p.path=p.path.slice(0,q-1)},O.prototype.leaveKey=function(q,p,N){var M=this._reporterState;this.exitKey(q),M.obj!==null&&(M.obj[p]=N)},O.prototype.path=function(){return this._reporterState.path.join("/")},O.prototype.enterObject=function(){var q=this._reporterState,p=q.obj;return q.obj={},p},O.prototype.leaveObject=function(q){var p=this._reporterState,N=p.obj;return p.obj=q,N},O.prototype.error=function(q){var p,N=this._reporterState,M=q instanceof I;if(p=M?q:new I(N.path.map(function(T){return"["+JSON.stringify(T)+"]"}).join(""),q.message||q,q.stack),!N.options.partial)throw p;return M||N.errors.push(p),p},O.prototype.wrapResult=function(q){var p=this._reporterState;return p.options.partial?{result:this.isError(q)?null:q,errors:p.errors}:q},j(I,Error),I.prototype.rethrow=function(q){if(this.message=q+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,I),!this.stack)try{throw new Error(this.message)}catch(p){this.stack=p.stack}return this}},9241:function($){(function(){var w,b,j,O,I,q,p,N=[].slice,M={}.hasOwnProperty;w=function(){var T,S,B,C,_,F;if(F=arguments[0],_=2<=arguments.length?N.call(arguments,1):[],I(Object.assign))Object.assign.apply(null,arguments);else for(T=0,B=_.length;T<B;T++)if((C=_[T])!=null)for(S in C)M.call(C,S)&&(F[S]=C[S]);return F},I=function(T){return!!T&&Object.prototype.toString.call(T)==="[object Function]"},q=function(T){var S;return!!T&&((S=typeof T)=="function"||S==="object")},j=function(T){return I(Array.isArray)?Array.isArray(T):Object.prototype.toString.call(T)==="[object Array]"},O=function(T){var S;if(j(T))return!T.length;for(S in T)if(M.call(T,S))return!1;return!0},p=function(T){var S,B;return q(T)&&(B=Object.getPrototypeOf(T))&&(S=B.constructor)&&typeof S=="function"&&S instanceof S&&Function.prototype.toString.call(S)===Function.prototype.toString.call(Object)},b=function(T){return I(T.valueOf)?T.valueOf():T},$.exports.assign=w,$.exports.isFunction=I,$.exports.isObject=q,$.exports.isArray=j,$.exports.isEmpty=O,$.exports.isPlainObject=p,$.exports.getValue=b}).call(this)},9247:($,w,b)=>{var j=b(2509),O=b(2861).Buffer;$.exports=function(I,q){return O.from(I.toRed(j.mont(q.modulus)).redPow(new j(q.publicExponent)).fromRed().toArray())}},9290:$=>{$.exports=RangeError},9353:$=>{var w=Object.prototype.toString,b=Math.max,j=function(O,I){for(var q=[],p=0;p<O.length;p+=1)q[p]=O[p];for(var N=0;N<I.length;N+=1)q[N+O.length]=I[N];return q};$.exports=function(O){var I=this;if(typeof I!="function"||w.apply(I)!=="[object Function]")throw new TypeError("Function.prototype.bind called on incompatible "+I);for(var q,p=function(B){for(var C=[],_=1,F=0;_<B.length;_+=1,F+=1)C[F]=B[_];return C}(arguments),N=b(0,I.length-p.length),M=[],T=0;T<N;T++)M[T]="$"+T;if(q=Function("binder","return function ("+function(B){for(var C="",_=0;_<B.length;_+=1)C+=B[_],_+1<B.length&&(C+=",");return C}(M)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof q){var B=I.apply(this,j(p,arguments));return Object(B)===B?B:this}return I.apply(O,j(p,arguments))}),I.prototype){var S=function(){};S.prototype=I.prototype,q.prototype=new S,S.prototype=null}return q}},9368:()=>{},9383:$=>{$.exports=Error},9394:($,w,b)=>{var j=b(9211);$.exports=function(){return typeof Object.is=="function"?Object.is:j}},9404:function($,w,b){(function(j,O){function I(l,a){if(!l)throw new Error(a||"Assertion failed")}function q(l,a){l.super_=a;var r=function(){};r.prototype=a.prototype,l.prototype=new r,l.prototype.constructor=l}function p(l,a,r){if(p.isBN(l))return l;this.negative=0,this.words=null,this.length=0,this.red=null,l!==null&&(a!=="le"&&a!=="be"||(r=a,a=10),this._init(l||0,a||10,r||"be"))}var N;typeof j=="object"?j.exports=p:O.BN=p,p.BN=p,p.wordSize=26;try{N=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:b(7790).Buffer}catch{}function M(l,a){var r=l.charCodeAt(a);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void I(!1,"Invalid character in "+l)}function T(l,a,r){var v=M(l,r);return r-1>=a&&(v|=M(l,r-1)<<4),v}function S(l,a,r,v){for(var A=0,W=0,J=Math.min(l.length,r),K=a;K<J;K++){var G=l.charCodeAt(K)-48;A*=v,W=G>=49?G-49+10:G>=17?G-17+10:G,I(G>=0&&W<v,"Invalid character"),A+=W}return A}function B(l,a){l.words=a.words,l.length=a.length,l.negative=a.negative,l.red=a.red}if(p.isBN=function(l){return l instanceof p||l!==null&&typeof l=="object"&&l.constructor.wordSize===p.wordSize&&Array.isArray(l.words)},p.max=function(l,a){return l.cmp(a)>0?l:a},p.min=function(l,a){return l.cmp(a)<0?l:a},p.prototype._init=function(l,a,r){if(typeof l=="number")return this._initNumber(l,a,r);if(typeof l=="object")return this._initArray(l,a,r);a==="hex"&&(a=16),I(a===(0|a)&&a>=2&&a<=36);var v=0;(l=l.toString().replace(/\s+/g,""))[0]==="-"&&(v++,this.negative=1),v<l.length&&(a===16?this._parseHex(l,v,r):(this._parseBase(l,a,v),r==="le"&&this._initArray(this.toArray(),a,r)))},p.prototype._initNumber=function(l,a,r){l<0&&(this.negative=1,l=-l),l<67108864?(this.words=[67108863&l],this.length=1):l<4503599627370496?(this.words=[67108863&l,l/67108864&67108863],this.length=2):(I(l<9007199254740992),this.words=[67108863&l,l/67108864&67108863,1],this.length=3),r==="le"&&this._initArray(this.toArray(),a,r)},p.prototype._initArray=function(l,a,r){if(I(typeof l.length=="number"),l.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(l.length/3),this.words=new Array(this.length);for(var v=0;v<this.length;v++)this.words[v]=0;var A,W,J=0;if(r==="be")for(v=l.length-1,A=0;v>=0;v-=3)W=l[v]|l[v-1]<<8|l[v-2]<<16,this.words[A]|=W<<J&67108863,this.words[A+1]=W>>>26-J&67108863,(J+=24)>=26&&(J-=26,A++);else if(r==="le")for(v=0,A=0;v<l.length;v+=3)W=l[v]|l[v+1]<<8|l[v+2]<<16,this.words[A]|=W<<J&67108863,this.words[A+1]=W>>>26-J&67108863,(J+=24)>=26&&(J-=26,A++);return this._strip()},p.prototype._parseHex=function(l,a,r){this.length=Math.ceil((l.length-a)/6),this.words=new Array(this.length);for(var v=0;v<this.length;v++)this.words[v]=0;var A,W=0,J=0;if(r==="be")for(v=l.length-1;v>=a;v-=2)A=T(l,a,v)<<W,this.words[J]|=67108863&A,W>=18?(W-=18,J+=1,this.words[J]|=A>>>26):W+=8;else for(v=(l.length-a)%2==0?a+1:a;v<l.length;v+=2)A=T(l,a,v)<<W,this.words[J]|=67108863&A,W>=18?(W-=18,J+=1,this.words[J]|=A>>>26):W+=8;this._strip()},p.prototype._parseBase=function(l,a,r){this.words=[0],this.length=1;for(var v=0,A=1;A<=67108863;A*=a)v++;v--,A=A/a|0;for(var W=l.length-r,J=W%v,K=Math.min(W,W-J)+r,G=0,Y=r;Y<K;Y+=v)G=S(l,Y,Y+v,a),this.imuln(A),this.words[0]+G<67108864?this.words[0]+=G:this._iaddn(G);if(J!==0){var at=1;for(G=S(l,Y,l.length,a),Y=0;Y<J;Y++)at*=a;this.imuln(at),this.words[0]+G<67108864?this.words[0]+=G:this._iaddn(G)}this._strip()},p.prototype.copy=function(l){l.words=new Array(this.length);for(var a=0;a<this.length;a++)l.words[a]=this.words[a];l.length=this.length,l.negative=this.negative,l.red=this.red},p.prototype._move=function(l){B(l,this)},p.prototype.clone=function(){var l=new p(null);return this.copy(l),l},p.prototype._expand=function(l){for(;this.length<l;)this.words[this.length++]=0;return this},p.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},p.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{p.prototype[Symbol.for("nodejs.util.inspect.custom")]=C}catch{p.prototype.inspect=C}else p.prototype.inspect=C;function C(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var _=["","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"],F=[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 z(l,a,r){r.negative=a.negative^l.negative;var v=l.length+a.length|0;r.length=v,v=v-1|0;var A=0|l.words[0],W=0|a.words[0],J=A*W,K=67108863&J,G=J/67108864|0;r.words[0]=K;for(var Y=1;Y<v;Y++){for(var at=G>>>26,ot=67108863&G,ht=Math.min(Y,a.length-1),tt=Math.max(0,Y-l.length+1);tt<=ht;tt++){var it=Y-tt|0;at+=(J=(A=0|l.words[it])*(W=0|a.words[tt])+ot)/67108864|0,ot=67108863&J}r.words[Y]=0|ot,G=0|at}return G!==0?r.words[Y]=0|G:r.length--,r._strip()}p.prototype.toString=function(l,a){var r;if(a=0|a||1,(l=l||10)===16||l==="hex"){r="";for(var v=0,A=0,W=0;W<this.length;W++){var J=this.words[W],K=(16777215&(J<<v|A)).toString(16);A=J>>>24-v&16777215,(v+=2)>=26&&(v-=26,W--),r=A!==0||W!==this.length-1?_[6-K.length]+K+r:K+r}for(A!==0&&(r=A.toString(16)+r);r.length%a!=0;)r="0"+r;return this.negative!==0&&(r="-"+r),r}if(l===(0|l)&&l>=2&&l<=36){var G=F[l],Y=U[l];r="";var at=this.clone();for(at.negative=0;!at.isZero();){var ot=at.modrn(Y).toString(l);r=(at=at.idivn(Y)).isZero()?ot+r:_[G-ot.length]+ot+r}for(this.isZero()&&(r="0"+r);r.length%a!=0;)r="0"+r;return this.negative!==0&&(r="-"+r),r}I(!1,"Base should be between 2 and 36")},p.prototype.toNumber=function(){var l=this.words[0];return this.length===2?l+=67108864*this.words[1]:this.length===3&&this.words[2]===1?l+=4503599627370496+67108864*this.words[1]:this.length>2&&I(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-l:l},p.prototype.toJSON=function(){return this.toString(16,2)},N&&(p.prototype.toBuffer=function(l,a){return this.toArrayLike(N,l,a)}),p.prototype.toArray=function(l,a){return this.toArrayLike(Array,l,a)},p.prototype.toArrayLike=function(l,a,r){this._strip();var v=this.byteLength(),A=r||Math.max(1,v);I(v<=A,"byte array longer than desired length"),I(A>0,"Requested array length <= 0");var W=function(J,K){return J.allocUnsafe?J.allocUnsafe(K):new J(K)}(l,A);return this["_toArrayLike"+(a==="le"?"LE":"BE")](W,v),W},p.prototype._toArrayLikeLE=function(l,a){for(var r=0,v=0,A=0,W=0;A<this.length;A++){var J=this.words[A]<<W|v;l[r++]=255&J,r<l.length&&(l[r++]=J>>8&255),r<l.length&&(l[r++]=J>>16&255),W===6?(r<l.length&&(l[r++]=J>>24&255),v=0,W=0):(v=J>>>24,W+=2)}if(r<l.length)for(l[r++]=v;r<l.length;)l[r++]=0},p.prototype._toArrayLikeBE=function(l,a){for(var r=l.length-1,v=0,A=0,W=0;A<this.length;A++){var J=this.words[A]<<W|v;l[r--]=255&J,r>=0&&(l[r--]=J>>8&255),r>=0&&(l[r--]=J>>16&255),W===6?(r>=0&&(l[r--]=J>>24&255),v=0,W=0):(v=J>>>24,W+=2)}if(r>=0)for(l[r--]=v;r>=0;)l[r--]=0},Math.clz32?p.prototype._countBits=function(l){return 32-Math.clz32(l)}:p.prototype._countBits=function(l){var a=l,r=0;return a>=4096&&(r+=13,a>>>=13),a>=64&&(r+=7,a>>>=7),a>=8&&(r+=4,a>>>=4),a>=2&&(r+=2,a>>>=2),r+a},p.prototype._zeroBits=function(l){if(l===0)return 26;var a=l,r=0;return 8191&a||(r+=13,a>>>=13),127&a||(r+=7,a>>>=7),15&a||(r+=4,a>>>=4),3&a||(r+=2,a>>>=2),1&a||r++,r},p.prototype.bitLength=function(){var l=this.words[this.length-1],a=this._countBits(l);return 26*(this.length-1)+a},p.prototype.zeroBits=function(){if(this.isZero())return 0;for(var l=0,a=0;a<this.length;a++){var r=this._zeroBits(this.words[a]);if(l+=r,r!==26)break}return l},p.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},p.prototype.toTwos=function(l){return this.negative!==0?this.abs().inotn(l).iaddn(1):this.clone()},p.prototype.fromTwos=function(l){return this.testn(l-1)?this.notn(l).iaddn(1).ineg():this.clone()},p.prototype.isNeg=function(){return this.negative!==0},p.prototype.neg=function(){return this.clone().ineg()},p.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},p.prototype.iuor=function(l){for(;this.length<l.length;)this.words[this.length++]=0;for(var a=0;a<l.length;a++)this.words[a]=this.words[a]|l.words[a];return this._strip()},p.prototype.ior=function(l){return I(!(this.negative|l.negative)),this.iuor(l)},p.prototype.or=function(l){return this.length>l.length?this.clone().ior(l):l.clone().ior(this)},p.prototype.uor=function(l){return this.length>l.length?this.clone().iuor(l):l.clone().iuor(this)},p.prototype.iuand=function(l){var a;a=this.length>l.length?l:this;for(var r=0;r<a.length;r++)this.words[r]=this.words[r]&l.words[r];return this.length=a.length,this._strip()},p.prototype.iand=function(l){return I(!(this.negative|l.negative)),this.iuand(l)},p.prototype.and=function(l){return this.length>l.length?this.clone().iand(l):l.clone().iand(this)},p.prototype.uand=function(l){return this.length>l.length?this.clone().iuand(l):l.clone().iuand(this)},p.prototype.iuxor=function(l){var a,r;this.length>l.length?(a=this,r=l):(a=l,r=this);for(var v=0;v<r.length;v++)this.words[v]=a.words[v]^r.words[v];if(this!==a)for(;v<a.length;v++)this.words[v]=a.words[v];return this.length=a.length,this._strip()},p.prototype.ixor=function(l){return I(!(this.negative|l.negative)),this.iuxor(l)},p.prototype.xor=function(l){return this.length>l.length?this.clone().ixor(l):l.clone().ixor(this)},p.prototype.uxor=function(l){return this.length>l.length?this.clone().iuxor(l):l.clone().iuxor(this)},p.prototype.inotn=function(l){I(typeof l=="number"&&l>=0);var a=0|Math.ceil(l/26),r=l%26;this._expand(a),r>0&&a--;for(var v=0;v<a;v++)this.words[v]=67108863&~this.words[v];return r>0&&(this.words[v]=~this.words[v]&67108863>>26-r),this._strip()},p.prototype.notn=function(l){return this.clone().inotn(l)},p.prototype.setn=function(l,a){I(typeof l=="number"&&l>=0);var r=l/26|0,v=l%26;return this._expand(r+1),this.words[r]=a?this.words[r]|1<<v:this.words[r]&~(1<<v),this._strip()},p.prototype.iadd=function(l){var a,r,v;if(this.negative!==0&&l.negative===0)return this.negative=0,a=this.isub(l),this.negative^=1,this._normSign();if(this.negative===0&&l.negative!==0)return l.negative=0,a=this.isub(l),l.negative=1,a._normSign();this.length>l.length?(r=this,v=l):(r=l,v=this);for(var A=0,W=0;W<v.length;W++)a=(0|r.words[W])+(0|v.words[W])+A,this.words[W]=67108863&a,A=a>>>26;for(;A!==0&&W<r.length;W++)a=(0|r.words[W])+A,this.words[W]=67108863&a,A=a>>>26;if(this.length=r.length,A!==0)this.words[this.length]=A,this.length++;else if(r!==this)for(;W<r.length;W++)this.words[W]=r.words[W];return this},p.prototype.add=function(l){var a;return l.negative!==0&&this.negative===0?(l.negative=0,a=this.sub(l),l.negative^=1,a):l.negative===0&&this.negative!==0?(this.negative=0,a=l.sub(this),this.negative=1,a):this.length>l.length?this.clone().iadd(l):l.clone().iadd(this)},p.prototype.isub=function(l){if(l.negative!==0){l.negative=0;var a=this.iadd(l);return l.negative=1,a._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(l),this.negative=1,this._normSign();var r,v,A=this.cmp(l);if(A===0)return this.negative=0,this.length=1,this.words[0]=0,this;A>0?(r=this,v=l):(r=l,v=this);for(var W=0,J=0;J<v.length;J++)W=(a=(0|r.words[J])-(0|v.words[J])+W)>>26,this.words[J]=67108863&a;for(;W!==0&&J<r.length;J++)W=(a=(0|r.words[J])+W)>>26,this.words[J]=67108863&a;if(W===0&&J<r.length&&r!==this)for(;J<r.length;J++)this.words[J]=r.words[J];return this.length=Math.max(this.length,J),r!==this&&(this.negative=1),this._strip()},p.prototype.sub=function(l){return this.clone().isub(l)};var H=function(l,a,r){var v,A,W,J=l.words,K=a.words,G=r.words,Y=0,at=0|J[0],ot=8191&at,ht=at>>>13,tt=0|J[1],it=8191&tt,Z=tt>>>13,rt=0|J[2],wt=8191&rt,gt=rt>>>13,St=0|J[3],Lt=8191&St,At=St>>>13,jt=0|J[4],Qt=8191&jt,Dt=jt>>>13,zt=0|J[5],ft=8191&zt,pt=zt>>>13,mt=0|J[6],Mt=8191&mt,xt=mt>>>13,kt=0|J[7],$t=8191&kt,Pt=kt>>>13,yt=0|J[8],dt=8191&yt,lt=yt>>>13,_t=0|J[9],qt=8191&_t,It=_t>>>13,Nt=0|K[0],be=8191&Nt,Vt=Nt>>>13,Jt=0|K[1],Ee=8191&Jt,Ht=Jt>>>13,ae=0|K[2],Ne=8191&ae,Gt=ae>>>13,se=0|K[3],qe=8191&se,Zt=se>>>13,he=0|K[4],Qe=8191&he,Yt=he>>>13,ce=0|K[5],Ge=8191&ce,Ut=ce>>>13,te=0|K[6],He=8191&te,ne=te>>>13,me=0|K[7],tr=8191&me,ie=me>>>13,de=0|K[8],rr=8191&de,oe=de>>>13,ge=0|K[9],We=8191&ge,$e=ge>>>13;r.negative=l.negative^a.negative,r.length=19;var cr=(Y+(v=Math.imul(ot,be))|0)+((8191&(A=(A=Math.imul(ot,Vt))+Math.imul(ht,be)|0))<<13)|0;Y=((W=Math.imul(ht,Vt))+(A>>>13)|0)+(cr>>>26)|0,cr&=67108863,v=Math.imul(it,be),A=(A=Math.imul(it,Vt))+Math.imul(Z,be)|0,W=Math.imul(Z,Vt);var mr=(Y+(v=v+Math.imul(ot,Ee)|0)|0)+((8191&(A=(A=A+Math.imul(ot,Ht)|0)+Math.imul(ht,Ee)|0))<<13)|0;Y=((W=W+Math.imul(ht,Ht)|0)+(A>>>13)|0)+(mr>>>26)|0,mr&=67108863,v=Math.imul(wt,be),A=(A=Math.imul(wt,Vt))+Math.imul(gt,be)|0,W=Math.imul(gt,Vt),v=v+Math.imul(it,Ee)|0,A=(A=A+Math.imul(it,Ht)|0)+Math.imul(Z,Ee)|0,W=W+Math.imul(Z,Ht)|0;var hr=(Y+(v=v+Math.imul(ot,Ne)|0)|0)+((8191&(A=(A=A+Math.imul(ot,Gt)|0)+Math.imul(ht,Ne)|0))<<13)|0;Y=((W=W+Math.imul(ht,Gt)|0)+(A>>>13)|0)+(hr>>>26)|0,hr&=67108863,v=Math.imul(Lt,be),A=(A=Math.imul(Lt,Vt))+Math.imul(At,be)|0,W=Math.imul(At,Vt),v=v+Math.imul(wt,Ee)|0,A=(A=A+Math.imul(wt,Ht)|0)+Math.imul(gt,Ee)|0,W=W+Math.imul(gt,Ht)|0,v=v+Math.imul(it,Ne)|0,A=(A=A+Math.imul(it,Gt)|0)+Math.imul(Z,Ne)|0,W=W+Math.imul(Z,Gt)|0;var gr=(Y+(v=v+Math.imul(ot,qe)|0)|0)+((8191&(A=(A=A+Math.imul(ot,Zt)|0)+Math.imul(ht,qe)|0))<<13)|0;Y=((W=W+Math.imul(ht,Zt)|0)+(A>>>13)|0)+(gr>>>26)|0,gr&=67108863,v=Math.imul(Qt,be),A=(A=Math.imul(Qt,Vt))+Math.imul(Dt,be)|0,W=Math.imul(Dt,Vt),v=v+Math.imul(Lt,Ee)|0,A=(A=A+Math.imul(Lt,Ht)|0)+Math.imul(At,Ee)|0,W=W+Math.imul(At,Ht)|0,v=v+Math.imul(wt,Ne)|0,A=(A=A+Math.imul(wt,Gt)|0)+Math.imul(gt,Ne)|0,W=W+Math.imul(gt,Gt)|0,v=v+Math.imul(it,qe)|0,A=(A=A+Math.imul(it,Zt)|0)+Math.imul(Z,qe)|0,W=W+Math.imul(Z,Zt)|0;var vr=(Y+(v=v+Math.imul(ot,Qe)|0)|0)+((8191&(A=(A=A+Math.imul(ot,Yt)|0)+Math.imul(ht,Qe)|0))<<13)|0;Y=((W=W+Math.imul(ht,Yt)|0)+(A>>>13)|0)+(vr>>>26)|0,vr&=67108863,v=Math.imul(ft,be),A=(A=Math.imul(ft,Vt))+Math.imul(pt,be)|0,W=Math.imul(pt,Vt),v=v+Math.imul(Qt,Ee)|0,A=(A=A+Math.imul(Qt,Ht)|0)+Math.imul(Dt,Ee)|0,W=W+Math.imul(Dt,Ht)|0,v=v+Math.imul(Lt,Ne)|0,A=(A=A+Math.imul(Lt,Gt)|0)+Math.imul(At,Ne)|0,W=W+Math.imul(At,Gt)|0,v=v+Math.imul(wt,qe)|0,A=(A=A+Math.imul(wt,Zt)|0)+Math.imul(gt,qe)|0,W=W+Math.imul(gt,Zt)|0,v=v+Math.imul(it,Qe)|0,A=(A=A+Math.imul(it,Yt)|0)+Math.imul(Z,Qe)|0,W=W+Math.imul(Z,Yt)|0;var yr=(Y+(v=v+Math.imul(ot,Ge)|0)|0)+((8191&(A=(A=A+Math.imul(ot,Ut)|0)+Math.imul(ht,Ge)|0))<<13)|0;Y=((W=W+Math.imul(ht,Ut)|0)+(A>>>13)|0)+(yr>>>26)|0,yr&=67108863,v=Math.imul(Mt,be),A=(A=Math.imul(Mt,Vt))+Math.imul(xt,be)|0,W=Math.imul(xt,Vt),v=v+Math.imul(ft,Ee)|0,A=(A=A+Math.imul(ft,Ht)|0)+Math.imul(pt,Ee)|0,W=W+Math.imul(pt,Ht)|0,v=v+Math.imul(Qt,Ne)|0,A=(A=A+Math.imul(Qt,Gt)|0)+Math.imul(Dt,Ne)|0,W=W+Math.imul(Dt,Gt)|0,v=v+Math.imul(Lt,qe)|0,A=(A=A+Math.imul(Lt,Zt)|0)+Math.imul(At,qe)|0,W=W+Math.imul(At,Zt)|0,v=v+Math.imul(wt,Qe)|0,A=(A=A+Math.imul(wt,Yt)|0)+Math.imul(gt,Qe)|0,W=W+Math.imul(gt,Yt)|0,v=v+Math.imul(it,Ge)|0,A=(A=A+Math.imul(it,Ut)|0)+Math.imul(Z,Ge)|0,W=W+Math.imul(Z,Ut)|0;var br=(Y+(v=v+Math.imul(ot,He)|0)|0)+((8191&(A=(A=A+Math.imul(ot,ne)|0)+Math.imul(ht,He)|0))<<13)|0;Y=((W=W+Math.imul(ht,ne)|0)+(A>>>13)|0)+(br>>>26)|0,br&=67108863,v=Math.imul($t,be),A=(A=Math.imul($t,Vt))+Math.imul(Pt,be)|0,W=Math.imul(Pt,Vt),v=v+Math.imul(Mt,Ee)|0,A=(A=A+Math.imul(Mt,Ht)|0)+Math.imul(xt,Ee)|0,W=W+Math.imul(xt,Ht)|0,v=v+Math.imul(ft,Ne)|0,A=(A=A+Math.imul(ft,Gt)|0)+Math.imul(pt,Ne)|0,W=W+Math.imul(pt,Gt)|0,v=v+Math.imul(Qt,qe)|0,A=(A=A+Math.imul(Qt,Zt)|0)+Math.imul(Dt,qe)|0,W=W+Math.imul(Dt,Zt)|0,v=v+Math.imul(Lt,Qe)|0,A=(A=A+Math.imul(Lt,Yt)|0)+Math.imul(At,Qe)|0,W=W+Math.imul(At,Yt)|0,v=v+Math.imul(wt,Ge)|0,A=(A=A+Math.imul(wt,Ut)|0)+Math.imul(gt,Ge)|0,W=W+Math.imul(gt,Ut)|0,v=v+Math.imul(it,He)|0,A=(A=A+Math.imul(it,ne)|0)+Math.imul(Z,He)|0,W=W+Math.imul(Z,ne)|0;var lr=(Y+(v=v+Math.imul(ot,tr)|0)|0)+((8191&(A=(A=A+Math.imul(ot,ie)|0)+Math.imul(ht,tr)|0))<<13)|0;Y=((W=W+Math.imul(ht,ie)|0)+(A>>>13)|0)+(lr>>>26)|0,lr&=67108863,v=Math.imul(dt,be),A=(A=Math.imul(dt,Vt))+Math.imul(lt,be)|0,W=Math.imul(lt,Vt),v=v+Math.imul($t,Ee)|0,A=(A=A+Math.imul($t,Ht)|0)+Math.imul(Pt,Ee)|0,W=W+Math.imul(Pt,Ht)|0,v=v+Math.imul(Mt,Ne)|0,A=(A=A+Math.imul(Mt,Gt)|0)+Math.imul(xt,Ne)|0,W=W+Math.imul(xt,Gt)|0,v=v+Math.imul(ft,qe)|0,A=(A=A+Math.imul(ft,Zt)|0)+Math.imul(pt,qe)|0,W=W+Math.imul(pt,Zt)|0,v=v+Math.imul(Qt,Qe)|0,A=(A=A+Math.imul(Qt,Yt)|0)+Math.imul(Dt,Qe)|0,W=W+Math.imul(Dt,Yt)|0,v=v+Math.imul(Lt,Ge)|0,A=(A=A+Math.imul(Lt,Ut)|0)+Math.imul(At,Ge)|0,W=W+Math.imul(At,Ut)|0,v=v+Math.imul(wt,He)|0,A=(A=A+Math.imul(wt,ne)|0)+Math.imul(gt,He)|0,W=W+Math.imul(gt,ne)|0,v=v+Math.imul(it,tr)|0,A=(A=A+Math.imul(it,ie)|0)+Math.imul(Z,tr)|0,W=W+Math.imul(Z,ie)|0;var wr=(Y+(v=v+Math.imul(ot,rr)|0)|0)+((8191&(A=(A=A+Math.imul(ot,oe)|0)+Math.imul(ht,rr)|0))<<13)|0;Y=((W=W+Math.imul(ht,oe)|0)+(A>>>13)|0)+(wr>>>26)|0,wr&=67108863,v=Math.imul(qt,be),A=(A=Math.imul(qt,Vt))+Math.imul(It,be)|0,W=Math.imul(It,Vt),v=v+Math.imul(dt,Ee)|0,A=(A=A+Math.imul(dt,Ht)|0)+Math.imul(lt,Ee)|0,W=W+Math.imul(lt,Ht)|0,v=v+Math.imul($t,Ne)|0,A=(A=A+Math.imul($t,Gt)|0)+Math.imul(Pt,Ne)|0,W=W+Math.imul(Pt,Gt)|0,v=v+Math.imul(Mt,qe)|0,A=(A=A+Math.imul(Mt,Zt)|0)+Math.imul(xt,qe)|0,W=W+Math.imul(xt,Zt)|0,v=v+Math.imul(ft,Qe)|0,A=(A=A+Math.imul(ft,Yt)|0)+Math.imul(pt,Qe)|0,W=W+Math.imul(pt,Yt)|0,v=v+Math.imul(Qt,Ge)|0,A=(A=A+Math.imul(Qt,Ut)|0)+Math.imul(Dt,Ge)|0,W=W+Math.imul(Dt,Ut)|0,v=v+Math.imul(Lt,He)|0,A=(A=A+Math.imul(Lt,ne)|0)+Math.imul(At,He)|0,W=W+Math.imul(At,ne)|0,v=v+Math.imul(wt,tr)|0,A=(A=A+Math.imul(wt,ie)|0)+Math.imul(gt,tr)|0,W=W+Math.imul(gt,ie)|0,v=v+Math.imul(it,rr)|0,A=(A=A+Math.imul(it,oe)|0)+Math.imul(Z,rr)|0,W=W+Math.imul(Z,oe)|0;var fr=(Y+(v=v+Math.imul(ot,We)|0)|0)+((8191&(A=(A=A+Math.imul(ot,$e)|0)+Math.imul(ht,We)|0))<<13)|0;Y=((W=W+Math.imul(ht,$e)|0)+(A>>>13)|0)+(fr>>>26)|0,fr&=67108863,v=Math.imul(qt,Ee),A=(A=Math.imul(qt,Ht))+Math.imul(It,Ee)|0,W=Math.imul(It,Ht),v=v+Math.imul(dt,Ne)|0,A=(A=A+Math.imul(dt,Gt)|0)+Math.imul(lt,Ne)|0,W=W+Math.imul(lt,Gt)|0,v=v+Math.imul($t,qe)|0,A=(A=A+Math.imul($t,Zt)|0)+Math.imul(Pt,qe)|0,W=W+Math.imul(Pt,Zt)|0,v=v+Math.imul(Mt,Qe)|0,A=(A=A+Math.imul(Mt,Yt)|0)+Math.imul(xt,Qe)|0,W=W+Math.imul(xt,Yt)|0,v=v+Math.imul(ft,Ge)|0,A=(A=A+Math.imul(ft,Ut)|0)+Math.imul(pt,Ge)|0,W=W+Math.imul(pt,Ut)|0,v=v+Math.imul(Qt,He)|0,A=(A=A+Math.imul(Qt,ne)|0)+Math.imul(Dt,He)|0,W=W+Math.imul(Dt,ne)|0,v=v+Math.imul(Lt,tr)|0,A=(A=A+Math.imul(Lt,ie)|0)+Math.imul(At,tr)|0,W=W+Math.imul(At,ie)|0,v=v+Math.imul(wt,rr)|0,A=(A=A+Math.imul(wt,oe)|0)+Math.imul(gt,rr)|0,W=W+Math.imul(gt,oe)|0;var _r=(Y+(v=v+Math.imul(it,We)|0)|0)+((8191&(A=(A=A+Math.imul(it,$e)|0)+Math.imul(Z,We)|0))<<13)|0;Y=((W=W+Math.imul(Z,$e)|0)+(A>>>13)|0)+(_r>>>26)|0,_r&=67108863,v=Math.imul(qt,Ne),A=(A=Math.imul(qt,Gt))+Math.imul(It,Ne)|0,W=Math.imul(It,Gt),v=v+Math.imul(dt,qe)|0,A=(A=A+Math.imul(dt,Zt)|0)+Math.imul(lt,qe)|0,W=W+Math.imul(lt,Zt)|0,v=v+Math.imul($t,Qe)|0,A=(A=A+Math.imul($t,Yt)|0)+Math.imul(Pt,Qe)|0,W=W+Math.imul(Pt,Yt)|0,v=v+Math.imul(Mt,Ge)|0,A=(A=A+Math.imul(Mt,Ut)|0)+Math.imul(xt,Ge)|0,W=W+Math.imul(xt,Ut)|0,v=v+Math.imul(ft,He)|0,A=(A=A+Math.imul(ft,ne)|0)+Math.imul(pt,He)|0,W=W+Math.imul(pt,ne)|0,v=v+Math.imul(Qt,tr)|0,A=(A=A+Math.imul(Qt,ie)|0)+Math.imul(Dt,tr)|0,W=W+Math.imul(Dt,ie)|0,v=v+Math.imul(Lt,rr)|0,A=(A=A+Math.imul(Lt,oe)|0)+Math.imul(At,rr)|0,W=W+Math.imul(At,oe)|0;var Mr=(Y+(v=v+Math.imul(wt,We)|0)|0)+((8191&(A=(A=A+Math.imul(wt,$e)|0)+Math.imul(gt,We)|0))<<13)|0;Y=((W=W+Math.imul(gt,$e)|0)+(A>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,v=Math.imul(qt,qe),A=(A=Math.imul(qt,Zt))+Math.imul(It,qe)|0,W=Math.imul(It,Zt),v=v+Math.imul(dt,Qe)|0,A=(A=A+Math.imul(dt,Yt)|0)+Math.imul(lt,Qe)|0,W=W+Math.imul(lt,Yt)|0,v=v+Math.imul($t,Ge)|0,A=(A=A+Math.imul($t,Ut)|0)+Math.imul(Pt,Ge)|0,W=W+Math.imul(Pt,Ut)|0,v=v+Math.imul(Mt,He)|0,A=(A=A+Math.imul(Mt,ne)|0)+Math.imul(xt,He)|0,W=W+Math.imul(xt,ne)|0,v=v+Math.imul(ft,tr)|0,A=(A=A+Math.imul(ft,ie)|0)+Math.imul(pt,tr)|0,W=W+Math.imul(pt,ie)|0,v=v+Math.imul(Qt,rr)|0,A=(A=A+Math.imul(Qt,oe)|0)+Math.imul(Dt,rr)|0,W=W+Math.imul(Dt,oe)|0;var pr=(Y+(v=v+Math.imul(Lt,We)|0)|0)+((8191&(A=(A=A+Math.imul(Lt,$e)|0)+Math.imul(At,We)|0))<<13)|0;Y=((W=W+Math.imul(At,$e)|0)+(A>>>13)|0)+(pr>>>26)|0,pr&=67108863,v=Math.imul(qt,Qe),A=(A=Math.imul(qt,Yt))+Math.imul(It,Qe)|0,W=Math.imul(It,Yt),v=v+Math.imul(dt,Ge)|0,A=(A=A+Math.imul(dt,Ut)|0)+Math.imul(lt,Ge)|0,W=W+Math.imul(lt,Ut)|0,v=v+Math.imul($t,He)|0,A=(A=A+Math.imul($t,ne)|0)+Math.imul(Pt,He)|0,W=W+Math.imul(Pt,ne)|0,v=v+Math.imul(Mt,tr)|0,A=(A=A+Math.imul(Mt,ie)|0)+Math.imul(xt,tr)|0,W=W+Math.imul(xt,ie)|0,v=v+Math.imul(ft,rr)|0,A=(A=A+Math.imul(ft,oe)|0)+Math.imul(pt,rr)|0,W=W+Math.imul(pt,oe)|0;var Le=(Y+(v=v+Math.imul(Qt,We)|0)|0)+((8191&(A=(A=A+Math.imul(Qt,$e)|0)+Math.imul(Dt,We)|0))<<13)|0;Y=((W=W+Math.imul(Dt,$e)|0)+(A>>>13)|0)+(Le>>>26)|0,Le&=67108863,v=Math.imul(qt,Ge),A=(A=Math.imul(qt,Ut))+Math.imul(It,Ge)|0,W=Math.imul(It,Ut),v=v+Math.imul(dt,He)|0,A=(A=A+Math.imul(dt,ne)|0)+Math.imul(lt,He)|0,W=W+Math.imul(lt,ne)|0,v=v+Math.imul($t,tr)|0,A=(A=A+Math.imul($t,ie)|0)+Math.imul(Pt,tr)|0,W=W+Math.imul(Pt,ie)|0,v=v+Math.imul(Mt,rr)|0,A=(A=A+Math.imul(Mt,oe)|0)+Math.imul(xt,rr)|0,W=W+Math.imul(xt,oe)|0;var De=(Y+(v=v+Math.imul(ft,We)|0)|0)+((8191&(A=(A=A+Math.imul(ft,$e)|0)+Math.imul(pt,We)|0))<<13)|0;Y=((W=W+Math.imul(pt,$e)|0)+(A>>>13)|0)+(De>>>26)|0,De&=67108863,v=Math.imul(qt,He),A=(A=Math.imul(qt,ne))+Math.imul(It,He)|0,W=Math.imul(It,ne),v=v+Math.imul(dt,tr)|0,A=(A=A+Math.imul(dt,ie)|0)+Math.imul(lt,tr)|0,W=W+Math.imul(lt,ie)|0,v=v+Math.imul($t,rr)|0,A=(A=A+Math.imul($t,oe)|0)+Math.imul(Pt,rr)|0,W=W+Math.imul(Pt,oe)|0;var xr=(Y+(v=v+Math.imul(Mt,We)|0)|0)+((8191&(A=(A=A+Math.imul(Mt,$e)|0)+Math.imul(xt,We)|0))<<13)|0;Y=((W=W+Math.imul(xt,$e)|0)+(A>>>13)|0)+(xr>>>26)|0,xr&=67108863,v=Math.imul(qt,tr),A=(A=Math.imul(qt,ie))+Math.imul(It,tr)|0,W=Math.imul(It,ie),v=v+Math.imul(dt,rr)|0,A=(A=A+Math.imul(dt,oe)|0)+Math.imul(lt,rr)|0,W=W+Math.imul(lt,oe)|0;var Er=(Y+(v=v+Math.imul($t,We)|0)|0)+((8191&(A=(A=A+Math.imul($t,$e)|0)+Math.imul(Pt,We)|0))<<13)|0;Y=((W=W+Math.imul(Pt,$e)|0)+(A>>>13)|0)+(Er>>>26)|0,Er&=67108863,v=Math.imul(qt,rr),A=(A=Math.imul(qt,oe))+Math.imul(It,rr)|0,W=Math.imul(It,oe);var yn=(Y+(v=v+Math.imul(dt,We)|0)|0)+((8191&(A=(A=A+Math.imul(dt,$e)|0)+Math.imul(lt,We)|0))<<13)|0;Y=((W=W+Math.imul(lt,$e)|0)+(A>>>13)|0)+(yn>>>26)|0,yn&=67108863;var En=(Y+(v=Math.imul(qt,We))|0)+((8191&(A=(A=Math.imul(qt,$e))+Math.imul(It,We)|0))<<13)|0;return Y=((W=Math.imul(It,$e))+(A>>>13)|0)+(En>>>26)|0,En&=67108863,G[0]=cr,G[1]=mr,G[2]=hr,G[3]=gr,G[4]=vr,G[5]=yr,G[6]=br,G[7]=lr,G[8]=wr,G[9]=fr,G[10]=_r,G[11]=Mr,G[12]=pr,G[13]=Le,G[14]=De,G[15]=xr,G[16]=Er,G[17]=yn,G[18]=En,Y!==0&&(G[19]=Y,r.length++),r};function D(l,a,r){r.negative=a.negative^l.negative,r.length=l.length+a.length;for(var v=0,A=0,W=0;W<r.length-1;W++){var J=A;A=0;for(var K=67108863&v,G=Math.min(W,a.length-1),Y=Math.max(0,W-l.length+1);Y<=G;Y++){var at=W-Y,ot=(0|l.words[at])*(0|a.words[Y]),ht=67108863&ot;K=67108863&(ht=ht+K|0),A+=(J=(J=J+(ot/67108864|0)|0)+(ht>>>26)|0)>>>26,J&=67108863}r.words[W]=K,v=J,J=A}return v!==0?r.words[W]=v:r.length--,r._strip()}function Q(l,a,r){return D(l,a,r)}Math.imul||(H=z),p.prototype.mulTo=function(l,a){var r=this.length+l.length;return this.length===10&&l.length===10?H(this,l,a):r<63?z(this,l,a):r<1024?D(this,l,a):Q(this,l,a)},p.prototype.mul=function(l){var a=new p(null);return a.words=new Array(this.length+l.length),this.mulTo(l,a)},p.prototype.mulf=function(l){var a=new p(null);return a.words=new Array(this.length+l.length),Q(this,l,a)},p.prototype.imul=function(l){return this.clone().mulTo(l,this)},p.prototype.imuln=function(l){var a=l<0;a&&(l=-l),I(typeof l=="number"),I(l<67108864);for(var r=0,v=0;v<this.length;v++){var A=(0|this.words[v])*l,W=(67108863&A)+(67108863&r);r>>=26,r+=A/67108864|0,r+=W>>>26,this.words[v]=67108863&W}return r!==0&&(this.words[v]=r,this.length++),a?this.ineg():this},p.prototype.muln=function(l){return this.clone().imuln(l)},p.prototype.sqr=function(){return this.mul(this)},p.prototype.isqr=function(){return this.imul(this.clone())},p.prototype.pow=function(l){var a=function(W){for(var J=new Array(W.bitLength()),K=0;K<J.length;K++){var G=K/26|0,Y=K%26;J[K]=W.words[G]>>>Y&1}return J}(l);if(a.length===0)return new p(1);for(var r=this,v=0;v<a.length&&a[v]===0;v++,r=r.sqr());if(++v<a.length)for(var A=r.sqr();v<a.length;v++,A=A.sqr())a[v]!==0&&(r=r.mul(A));return r},p.prototype.iushln=function(l){I(typeof l=="number"&&l>=0);var a,r=l%26,v=(l-r)/26,A=67108863>>>26-r<<26-r;if(r!==0){var W=0;for(a=0;a<this.length;a++){var J=this.words[a]&A,K=(0|this.words[a])-J<<r;this.words[a]=K|W,W=J>>>26-r}W&&(this.words[a]=W,this.length++)}if(v!==0){for(a=this.length-1;a>=0;a--)this.words[a+v]=this.words[a];for(a=0;a<v;a++)this.words[a]=0;this.length+=v}return this._strip()},p.prototype.ishln=function(l){return I(this.negative===0),this.iushln(l)},p.prototype.iushrn=function(l,a,r){var v;I(typeof l=="number"&&l>=0),v=a?(a-a%26)/26:0;var A=l%26,W=Math.min((l-A)/26,this.length),J=67108863^67108863>>>A<<A,K=r;if(v-=W,v=Math.max(0,v),K){for(var G=0;G<W;G++)K.words[G]=this.words[G];K.length=W}if(W!==0)if(this.length>W)for(this.length-=W,G=0;G<this.length;G++)this.words[G]=this.words[G+W];else this.words[0]=0,this.length=1;var Y=0;for(G=this.length-1;G>=0&&(Y!==0||G>=v);G--){var at=0|this.words[G];this.words[G]=Y<<26-A|at>>>A,Y=at&J}return K&&Y!==0&&(K.words[K.length++]=Y),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},p.prototype.ishrn=function(l,a,r){return I(this.negative===0),this.iushrn(l,a,r)},p.prototype.shln=function(l){return this.clone().ishln(l)},p.prototype.ushln=function(l){return this.clone().iushln(l)},p.prototype.shrn=function(l){return this.clone().ishrn(l)},p.prototype.ushrn=function(l){return this.clone().iushrn(l)},p.prototype.testn=function(l){I(typeof l=="number"&&l>=0);var a=l%26,r=(l-a)/26,v=1<<a;return!(this.length<=r||!(this.words[r]&v))},p.prototype.imaskn=function(l){I(typeof l=="number"&&l>=0);var a=l%26,r=(l-a)/26;if(I(this.negative===0,"imaskn works only with positive numbers"),this.length<=r)return this;if(a!==0&&r++,this.length=Math.min(r,this.length),a!==0){var v=67108863^67108863>>>a<<a;this.words[this.length-1]&=v}return this._strip()},p.prototype.maskn=function(l){return this.clone().imaskn(l)},p.prototype.iaddn=function(l){return I(typeof l=="number"),I(l<67108864),l<0?this.isubn(-l):this.negative!==0?this.length===1&&(0|this.words[0])<=l?(this.words[0]=l-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(l),this.negative=1,this):this._iaddn(l)},p.prototype._iaddn=function(l){this.words[0]+=l;for(var a=0;a<this.length&&this.words[a]>=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},p.prototype.isubn=function(l){if(I(typeof l=="number"),I(l<67108864),l<0)return this.iaddn(-l);if(this.negative!==0)return this.negative=0,this.iaddn(l),this.negative=1,this;if(this.words[0]-=l,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var a=0;a<this.length&&this.words[a]<0;a++)this.words[a]+=67108864,this.words[a+1]-=1;return this._strip()},p.prototype.addn=function(l){return this.clone().iaddn(l)},p.prototype.subn=function(l){return this.clone().isubn(l)},p.prototype.iabs=function(){return this.negative=0,this},p.prototype.abs=function(){return this.clone().iabs()},p.prototype._ishlnsubmul=function(l,a,r){var v,A,W=l.length+r;this._expand(W);var J=0;for(v=0;v<l.length;v++){A=(0|this.words[v+r])+J;var K=(0|l.words[v])*a;J=((A-=67108863&K)>>26)-(K/67108864|0),this.words[v+r]=67108863&A}for(;v<this.length-r;v++)J=(A=(0|this.words[v+r])+J)>>26,this.words[v+r]=67108863&A;if(J===0)return this._strip();for(I(J===-1),J=0,v=0;v<this.length;v++)J=(A=-(0|this.words[v])+J)>>26,this.words[v]=67108863&A;return this.negative=1,this._strip()},p.prototype._wordDiv=function(l,a){var r=(this.length,l.length),v=this.clone(),A=l,W=0|A.words[A.length-1];(r=26-this._countBits(W))!=0&&(A=A.ushln(r),v.iushln(r),W=0|A.words[A.length-1]);var J,K=v.length-A.length;if(a!=="mod"){(J=new p(null)).length=K+1,J.words=new Array(J.length);for(var G=0;G<J.length;G++)J.words[G]=0}var Y=v.clone()._ishlnsubmul(A,1,K);Y.negative===0&&(v=Y,J&&(J.words[K]=1));for(var at=K-1;at>=0;at--){var ot=67108864*(0|v.words[A.length+at])+(0|v.words[A.length+at-1]);for(ot=Math.min(ot/W|0,67108863),v._ishlnsubmul(A,ot,at);v.negative!==0;)ot--,v.negative=0,v._ishlnsubmul(A,1,at),v.isZero()||(v.negative^=1);J&&(J.words[at]=ot)}return J&&J._strip(),v._strip(),a!=="div"&&r!==0&&v.iushrn(r),{div:J||null,mod:v}},p.prototype.divmod=function(l,a,r){return I(!l.isZero()),this.isZero()?{div:new p(0),mod:new p(0)}:this.negative!==0&&l.negative===0?(W=this.neg().divmod(l,a),a!=="mod"&&(v=W.div.neg()),a!=="div"&&(A=W.mod.neg(),r&&A.negative!==0&&A.iadd(l)),{div:v,mod:A}):this.negative===0&&l.negative!==0?(W=this.divmod(l.neg(),a),a!=="mod"&&(v=W.div.neg()),{div:v,mod:W.mod}):this.negative&l.negative?(W=this.neg().divmod(l.neg(),a),a!=="div"&&(A=W.mod.neg(),r&&A.negative!==0&&A.isub(l)),{div:W.div,mod:A}):l.length>this.length||this.cmp(l)<0?{div:new p(0),mod:this}:l.length===1?a==="div"?{div:this.divn(l.words[0]),mod:null}:a==="mod"?{div:null,mod:new p(this.modrn(l.words[0]))}:{div:this.divn(l.words[0]),mod:new p(this.modrn(l.words[0]))}:this._wordDiv(l,a);var v,A,W},p.prototype.div=function(l){return this.divmod(l,"div",!1).div},p.prototype.mod=function(l){return this.divmod(l,"mod",!1).mod},p.prototype.umod=function(l){return this.divmod(l,"mod",!0).mod},p.prototype.divRound=function(l){var a=this.divmod(l);if(a.mod.isZero())return a.div;var r=a.div.negative!==0?a.mod.isub(l):a.mod,v=l.ushrn(1),A=l.andln(1),W=r.cmp(v);return W<0||A===1&&W===0?a.div:a.div.negative!==0?a.div.isubn(1):a.div.iaddn(1)},p.prototype.modrn=function(l){var a=l<0;a&&(l=-l),I(l<=67108863);for(var r=67108864%l,v=0,A=this.length-1;A>=0;A--)v=(r*v+(0|this.words[A]))%l;return a?-v:v},p.prototype.modn=function(l){return this.modrn(l)},p.prototype.idivn=function(l){var a=l<0;a&&(l=-l),I(l<=67108863);for(var r=0,v=this.length-1;v>=0;v--){var A=(0|this.words[v])+67108864*r;this.words[v]=A/l|0,r=A%l}return this._strip(),a?this.ineg():this},p.prototype.divn=function(l){return this.clone().idivn(l)},p.prototype.egcd=function(l){I(l.negative===0),I(!l.isZero());var a=this,r=l.clone();a=a.negative!==0?a.umod(l):a.clone();for(var v=new p(1),A=new p(0),W=new p(0),J=new p(1),K=0;a.isEven()&&r.isEven();)a.iushrn(1),r.iushrn(1),++K;for(var G=r.clone(),Y=a.clone();!a.isZero();){for(var at=0,ot=1;!(a.words[0]&ot)&&at<26;++at,ot<<=1);if(at>0)for(a.iushrn(at);at-- >0;)(v.isOdd()||A.isOdd())&&(v.iadd(G),A.isub(Y)),v.iushrn(1),A.iushrn(1);for(var ht=0,tt=1;!(r.words[0]&tt)&&ht<26;++ht,tt<<=1);if(ht>0)for(r.iushrn(ht);ht-- >0;)(W.isOdd()||J.isOdd())&&(W.iadd(G),J.isub(Y)),W.iushrn(1),J.iushrn(1);a.cmp(r)>=0?(a.isub(r),v.isub(W),A.isub(J)):(r.isub(a),W.isub(v),J.isub(A))}return{a:W,b:J,gcd:r.iushln(K)}},p.prototype._invmp=function(l){I(l.negative===0),I(!l.isZero());var a=this,r=l.clone();a=a.negative!==0?a.umod(l):a.clone();for(var v,A=new p(1),W=new p(0),J=r.clone();a.cmpn(1)>0&&r.cmpn(1)>0;){for(var K=0,G=1;!(a.words[0]&G)&&K<26;++K,G<<=1);if(K>0)for(a.iushrn(K);K-- >0;)A.isOdd()&&A.iadd(J),A.iushrn(1);for(var Y=0,at=1;!(r.words[0]&at)&&Y<26;++Y,at<<=1);if(Y>0)for(r.iushrn(Y);Y-- >0;)W.isOdd()&&W.iadd(J),W.iushrn(1);a.cmp(r)>=0?(a.isub(r),A.isub(W)):(r.isub(a),W.isub(A))}return(v=a.cmpn(1)===0?A:W).cmpn(0)<0&&v.iadd(l),v},p.prototype.gcd=function(l){if(this.isZero())return l.abs();if(l.isZero())return this.abs();var a=this.clone(),r=l.clone();a.negative=0,r.negative=0;for(var v=0;a.isEven()&&r.isEven();v++)a.iushrn(1),r.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;r.isEven();)r.iushrn(1);var A=a.cmp(r);if(A<0){var W=a;a=r,r=W}else if(A===0||r.cmpn(1)===0)break;a.isub(r)}return r.iushln(v)},p.prototype.invm=function(l){return this.egcd(l).a.umod(l)},p.prototype.isEven=function(){return!(1&this.words[0])},p.prototype.isOdd=function(){return!(1&~this.words[0])},p.prototype.andln=function(l){return this.words[0]&l},p.prototype.bincn=function(l){I(typeof l=="number");var a=l%26,r=(l-a)/26,v=1<<a;if(this.length<=r)return this._expand(r+1),this.words[r]|=v,this;for(var A=v,W=r;A!==0&&W<this.length;W++){var J=0|this.words[W];A=(J+=A)>>>26,J&=67108863,this.words[W]=J}return A!==0&&(this.words[W]=A,this.length++),this},p.prototype.isZero=function(){return this.length===1&&this.words[0]===0},p.prototype.cmpn=function(l){var a,r=l<0;if(this.negative!==0&&!r)return-1;if(this.negative===0&&r)return 1;if(this._strip(),this.length>1)a=1;else{r&&(l=-l),I(l<=67108863,"Number is too big");var v=0|this.words[0];a=v===l?0:v<l?-1:1}return this.negative!==0?0|-a:a},p.prototype.cmp=function(l){if(this.negative!==0&&l.negative===0)return-1;if(this.negative===0&&l.negative!==0)return 1;var a=this.ucmp(l);return this.negative!==0?0|-a:a},p.prototype.ucmp=function(l){if(this.length>l.length)return 1;if(this.length<l.length)return-1;for(var a=0,r=this.length-1;r>=0;r--){var v=0|this.words[r],A=0|l.words[r];if(v!==A){v<A?a=-1:v>A&&(a=1);break}}return a},p.prototype.gtn=function(l){return this.cmpn(l)===1},p.prototype.gt=function(l){return this.cmp(l)===1},p.prototype.gten=function(l){return this.cmpn(l)>=0},p.prototype.gte=function(l){return this.cmp(l)>=0},p.prototype.ltn=function(l){return this.cmpn(l)===-1},p.prototype.lt=function(l){return this.cmp(l)===-1},p.prototype.lten=function(l){return this.cmpn(l)<=0},p.prototype.lte=function(l){return this.cmp(l)<=0},p.prototype.eqn=function(l){return this.cmpn(l)===0},p.prototype.eq=function(l){return this.cmp(l)===0},p.red=function(l){return new t(l)},p.prototype.toRed=function(l){return I(!this.red,"Already a number in reduction context"),I(this.negative===0,"red works only with positives"),l.convertTo(this)._forceRed(l)},p.prototype.fromRed=function(){return I(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},p.prototype._forceRed=function(l){return this.red=l,this},p.prototype.forceRed=function(l){return I(!this.red,"Already a number in reduction context"),this._forceRed(l)},p.prototype.redAdd=function(l){return I(this.red,"redAdd works only with red numbers"),this.red.add(this,l)},p.prototype.redIAdd=function(l){return I(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,l)},p.prototype.redSub=function(l){return I(this.red,"redSub works only with red numbers"),this.red.sub(this,l)},p.prototype.redISub=function(l){return I(this.red,"redISub works only with red numbers"),this.red.isub(this,l)},p.prototype.redShl=function(l){return I(this.red,"redShl works only with red numbers"),this.red.shl(this,l)},p.prototype.redMul=function(l){return I(this.red,"redMul works only with red numbers"),this.red._verify2(this,l),this.red.mul(this,l)},p.prototype.redIMul=function(l){return I(this.red,"redMul works only with red numbers"),this.red._verify2(this,l),this.red.imul(this,l)},p.prototype.redSqr=function(){return I(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},p.prototype.redISqr=function(){return I(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},p.prototype.redSqrt=function(){return I(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},p.prototype.redInvm=function(){return I(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},p.prototype.redNeg=function(){return I(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},p.prototype.redPow=function(l){return I(this.red&&!l.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,l)};var X={k256:null,p224:null,p192:null,p25519:null};function et(l,a){this.name=l,this.p=new p(a,16),this.n=this.p.bitLength(),this.k=new p(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function nt(){et.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ut(){et.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ct(){et.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function vt(){et.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function t(l){if(typeof l=="string"){var a=p._prime(l);this.m=a.p,this.prime=a}else I(l.gtn(1),"modulus must be greater than 1"),this.m=l,this.prime=null}function h(l){t.call(this,l),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new p(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)}et.prototype._tmp=function(){var l=new p(null);return l.words=new Array(Math.ceil(this.n/13)),l},et.prototype.ireduce=function(l){var a,r=l;do this.split(r,this.tmp),a=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(a>this.n);var v=a<this.n?-1:r.ucmp(this.p);return v===0?(r.words[0]=0,r.length=1):v>0?r.isub(this.p):r.strip!==void 0?r.strip():r._strip(),r},et.prototype.split=function(l,a){l.iushrn(this.n,0,a)},et.prototype.imulK=function(l){return l.imul(this.k)},q(nt,et),nt.prototype.split=function(l,a){for(var r=4194303,v=Math.min(l.length,9),A=0;A<v;A++)a.words[A]=l.words[A];if(a.length=v,l.length<=9)return l.words[0]=0,void(l.length=1);var W=l.words[9];for(a.words[a.length++]=W&r,A=10;A<l.length;A++){var J=0|l.words[A];l.words[A-10]=(J&r)<<4|W>>>22,W=J}W>>>=22,l.words[A-10]=W,W===0&&l.length>10?l.length-=10:l.length-=9},nt.prototype.imulK=function(l){l.words[l.length]=0,l.words[l.length+1]=0,l.length+=2;for(var a=0,r=0;r<l.length;r++){var v=0|l.words[r];a+=977*v,l.words[r]=67108863&a,a=64*v+(a/67108864|0)}return l.words[l.length-1]===0&&(l.length--,l.words[l.length-1]===0&&l.length--),l},q(ut,et),q(ct,et),q(vt,et),vt.prototype.imulK=function(l){for(var a=0,r=0;r<l.length;r++){var v=19*(0|l.words[r])+a,A=67108863&v;v>>>=26,l.words[r]=A,a=v}return a!==0&&(l.words[l.length++]=a),l},p._prime=function(l){if(X[l])return X[l];var a;if(l==="k256")a=new nt;else if(l==="p224")a=new ut;else if(l==="p192")a=new ct;else{if(l!=="p25519")throw new Error("Unknown prime "+l);a=new vt}return X[l]=a,a},t.prototype._verify1=function(l){I(l.negative===0,"red works only with positives"),I(l.red,"red works only with red numbers")},t.prototype._verify2=function(l,a){I(!(l.negative|a.negative),"red works only with positives"),I(l.red&&l.red===a.red,"red works only with red numbers")},t.prototype.imod=function(l){return this.prime?this.prime.ireduce(l)._forceRed(this):(B(l,l.umod(this.m)._forceRed(this)),l)},t.prototype.neg=function(l){return l.isZero()?l.clone():this.m.sub(l)._forceRed(this)},t.prototype.add=function(l,a){this._verify2(l,a);var r=l.add(a);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},t.prototype.iadd=function(l,a){this._verify2(l,a);var r=l.iadd(a);return r.cmp(this.m)>=0&&r.isub(this.m),r},t.prototype.sub=function(l,a){this._verify2(l,a);var r=l.sub(a);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},t.prototype.isub=function(l,a){this._verify2(l,a);var r=l.isub(a);return r.cmpn(0)<0&&r.iadd(this.m),r},t.prototype.shl=function(l,a){return this._verify1(l),this.imod(l.ushln(a))},t.prototype.imul=function(l,a){return this._verify2(l,a),this.imod(l.imul(a))},t.prototype.mul=function(l,a){return this._verify2(l,a),this.imod(l.mul(a))},t.prototype.isqr=function(l){return this.imul(l,l.clone())},t.prototype.sqr=function(l){return this.mul(l,l)},t.prototype.sqrt=function(l){if(l.isZero())return l.clone();var a=this.m.andln(3);if(I(a%2==1),a===3){var r=this.m.add(new p(1)).iushrn(2);return this.pow(l,r)}for(var v=this.m.subn(1),A=0;!v.isZero()&&v.andln(1)===0;)A++,v.iushrn(1);I(!v.isZero());var W=new p(1).toRed(this),J=W.redNeg(),K=this.m.subn(1).iushrn(1),G=this.m.bitLength();for(G=new p(2*G*G).toRed(this);this.pow(G,K).cmp(J)!==0;)G.redIAdd(J);for(var Y=this.pow(G,v),at=this.pow(l,v.addn(1).iushrn(1)),ot=this.pow(l,v),ht=A;ot.cmp(W)!==0;){for(var tt=ot,it=0;tt.cmp(W)!==0;it++)tt=tt.redSqr();I(it<ht);var Z=this.pow(Y,new p(1).iushln(ht-it-1));at=at.redMul(Z),Y=Z.redSqr(),ot=ot.redMul(Y),ht=it}return at},t.prototype.invm=function(l){var a=l._invmp(this.m);return a.negative!==0?(a.negative=0,this.imod(a).redNeg()):this.imod(a)},t.prototype.pow=function(l,a){if(a.isZero())return new p(1).toRed(this);if(a.cmpn(1)===0)return l.clone();var r=new Array(16);r[0]=new p(1).toRed(this),r[1]=l;for(var v=2;v<r.length;v++)r[v]=this.mul(r[v-1],l);var A=r[0],W=0,J=0,K=a.bitLength()%26;for(K===0&&(K=26),v=a.length-1;v>=0;v--){for(var G=a.words[v],Y=K-1;Y>=0;Y--){var at=G>>Y&1;A!==r[0]&&(A=this.sqr(A)),at!==0||W!==0?(W<<=1,W|=at,(++J==4||v===0&&Y===0)&&(A=this.mul(A,r[W]),J=0,W=0)):J=0}K=26}return A},t.prototype.convertTo=function(l){var a=l.umod(this.m);return a===l?a.clone():a},t.prototype.convertFrom=function(l){var a=l.clone();return a.red=null,a},p.mont=function(l){return new h(l)},q(h,t),h.prototype.convertTo=function(l){return this.imod(l.ushln(this.shift))},h.prototype.convertFrom=function(l){var a=this.imod(l.mul(this.rinv));return a.red=null,a},h.prototype.imul=function(l,a){if(l.isZero()||a.isZero())return l.words[0]=0,l.length=1,l;var r=l.imul(a),v=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),A=r.isub(v).iushrn(this.shift),W=A;return A.cmp(this.m)>=0?W=A.isub(this.m):A.cmpn(0)<0&&(W=A.iadd(this.m)),W._forceRed(this)},h.prototype.mul=function(l,a){if(l.isZero()||a.isZero())return new p(0)._forceRed(this);var r=l.mul(a),v=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),A=r.isub(v).iushrn(this.shift),W=A;return A.cmp(this.m)>=0?W=A.isub(this.m):A.cmpn(0)<0&&(W=A.iadd(this.m)),W._forceRed(this)},h.prototype.invm=function(l){return this.imod(l._invmp(this.m).mul(this.r2))._forceRed(this)}})($=b.nmd($),this)},9538:$=>{$.exports=ReferenceError},9560:($,w,b)=>{w.utils=b(7626),w.Cipher=b(2808),w.DES=b(2211),w.CBC=b(3389),w.EDE=b(5279)},9597:($,w,b)=>{function j(S){return j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(B){return typeof B}:function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},j(S)}function O(S,B){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(C,_){return C.__proto__=_,C},O(S,B)}function I(S){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(B){return B.__proto__||Object.getPrototypeOf(B)},I(S)}var q,p,N={};function M(S,B,C){C||(C=Error);var _=function(F){(function(X,et){if(typeof et!="function"&&et!==null)throw new TypeError("Super expression must either be null or a function");X.prototype=Object.create(et&&et.prototype,{constructor:{value:X,writable:!0,configurable:!0}}),Object.defineProperty(X,"prototype",{writable:!1}),et&&O(X,et)})(Q,F);var U,z,H,D=(z=Q,H=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var X,et=I(z);if(H){var nt=I(this).constructor;X=Reflect.construct(et,arguments,nt)}else X=et.apply(this,arguments);return function(ut,ct){if(ct&&(j(ct)==="object"||typeof ct=="function"))return ct;if(ct!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(vt){if(vt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return vt}(ut)}(this,X)});function Q(X,et,nt){var ut;return function(ct,vt){if(!(ct instanceof vt))throw new TypeError("Cannot call a class as a function")}(this,Q),ut=D.call(this,function(ct,vt,t){return typeof B=="string"?B:B(ct,vt,t)}(X,et,nt)),ut.code=S,ut}return U=Q,Object.defineProperty(U,"prototype",{writable:!1}),U}(C);N[S]=_}function T(S,B){if(Array.isArray(S)){var C=S.length;return S=S.map(function(_){return String(_)}),C>2?"one of ".concat(B," ").concat(S.slice(0,C-1).join(", "),", or ")+S[C-1]:C===2?"one of ".concat(B," ").concat(S[0]," or ").concat(S[1]):"of ".concat(B," ").concat(S[0])}return"of ".concat(B," ").concat(String(S))}M("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),M("ERR_INVALID_ARG_TYPE",function(S,B,C){var _,F,U,z,H;if(q===void 0&&(q=b(4148)),q(typeof S=="string","'name' must be a string"),typeof B=="string"&&(F="not ",B.substr(0,4)===F)?(_="must not be",B=B.replace(/^not /,"")):_="must be",function(Q,X,et){return(et===void 0||et>Q.length)&&(et=Q.length),Q.substring(et-9,et)===X}(S," argument"))U="The ".concat(S," ").concat(_," ").concat(T(B,"type"));else{var D=(typeof H!="number"&&(H=0),H+1>(z=S).length||z.indexOf(".",H)===-1?"argument":"property");U='The "'.concat(S,'" ').concat(D," ").concat(_," ").concat(T(B,"type"))}return U+". Received type ".concat(j(C))},TypeError),M("ERR_INVALID_ARG_VALUE",function(S,B){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";p===void 0&&(p=b(537));var _=p.inspect(B);return _.length>128&&(_="".concat(_.slice(0,128),"...")),"The argument '".concat(S,"' ").concat(C,". Received ").concat(_)},TypeError),M("ERR_INVALID_RETURN_VALUE",function(S,B,C){var _;return _=C&&C.constructor&&C.constructor.name?"instance of ".concat(C.constructor.name):"type ".concat(j(C)),"Expected ".concat(S,' to be returned from the "').concat(B,'"')+" function but got ".concat(_,".")},TypeError),M("ERR_MISSING_ARGS",function(){for(var S=arguments.length,B=new Array(S),C=0;C<S;C++)B[C]=arguments[C];q===void 0&&(q=b(4148)),q(B.length>0,"At least one arg needs to be specified");var _="The ",F=B.length;switch(B=B.map(function(U){return'"'.concat(U,'"')}),F){case 1:_+="".concat(B[0]," argument");break;case 2:_+="".concat(B[0]," and ").concat(B[1]," arguments");break;default:_+=B.slice(0,F-1).join(", "),_+=", and ".concat(B[F-1]," arguments")}return"".concat(_," must be specified")},TypeError),$.exports.codes=N},9600:$=>{var w,b,j=Function.prototype.toString,O=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply;if(typeof O=="function"&&typeof Object.defineProperty=="function")try{w=Object.defineProperty({},"length",{get:function(){throw b}}),b={},O(function(){throw 42},null,w)}catch(C){C!==b&&(O=null)}else O=null;var I=/^\s*class\b/,q=function(C){try{var _=j.call(C);return I.test(_)}catch{return!1}},p=function(C){try{return!q(C)&&(j.call(C),!0)}catch{return!1}},N=Object.prototype.toString,M=typeof Symbol=="function"&&!!Symbol.toStringTag,T=!(0 in[,]),S=function(){return!1};if(typeof document=="object"){var B=document.all;N.call(B)===N.call(document.all)&&(S=function(C){if((T||!C)&&(C===void 0||typeof C=="object"))try{var _=N.call(C);return(_==="[object HTMLAllCollection]"||_==="[object HTML document.all class]"||_==="[object HTMLCollection]"||_==="[object Object]")&&C("")==null}catch{}return!1})}$.exports=O?function(C){if(S(C))return!0;if(!C||typeof C!="function"&&typeof C!="object")return!1;try{O(C,null,w)}catch(_){if(_!==b)return!1}return!q(C)&&p(C)}:function(C){if(S(C))return!0;if(!C||typeof C!="function"&&typeof C!="object")return!1;if(M)return p(C);if(q(C))return!1;var _=N.call(C);return!(_!=="[object Function]"&&_!=="[object GeneratorFunction]"&&!/^\[object HTML/.test(_))&&p(C)}},9612:$=>{$.exports=Object},9665:function($,w,b){(function(){var j,O,I,q,p,N,M,T,S,B;B=b(9241),T=B.assign,S=B.isFunction,I=b(7260),q=b(1933),p=b(400),M=b(382),N=b(6775),j=b(1737),O=b(8753),$.exports.create=function(C,_,F,U){var z,H;if(C==null)throw new Error("Root element needs a name.");return U=T({},_,F,U),H=(z=new q(U)).element(C),U.headless||(z.declaration(U),U.pubID==null&&U.sysID==null||z.dtd(U)),H},$.exports.begin=function(C,_,F){var U;return S(C)&&(_=(U=[C,_])[0],F=U[1],C={}),_?new p(C,_,F):new q(C)},$.exports.stringWriter=function(C){return new M(C)},$.exports.streamWriter=function(C,_){return new N(C,_)},$.exports.implementation=new I,$.exports.nodeType=j,$.exports.writerState=O}).call(this)},9673:($,w,b)=>{var j=w;j.Reporter=b(9220).a,j.DecoderBuffer=b(7227).t,j.EncoderBuffer=b(7227).d,j.Node=b(993)},9675:$=>{$.exports=TypeError},9721:($,w,b)=>{var j=b(6556),O=b(4035),I=j("RegExp.prototype.exec"),q=b(9675);$.exports=function(p){if(!O(p))throw new q("`regex` must be a RegExp");return function(N){return I(p,N)!==null}}},9780:($,w,b)=>{const j=b(5334),O=function(I,q,p){const N={};if(!q.alwaysCreateTextNode&&(!I.child||j.isEmptyObject(I.child))&&(!I.attrsMap||j.isEmptyObject(I.attrsMap)))return j.isExist(I.val)?I.val:"";if(j.isExist(I.val)&&(typeof I.val!="string"||I.val!==""&&I.val!==q.cdataPositionChar)){const T=j.isTagNameInArrayMode(I.tagname,q.arrayMode,p);N[q.textNodeName]=T?[I.val]:I.val}j.merge(N,I.attrsMap,q.arrayMode);const M=Object.keys(I.child);for(let T=0;T<M.length;T++){const S=M[T];if(I.child[S]&&I.child[S].length>1){N[S]=[];for(let B in I.child[S])I.child[S].hasOwnProperty(B)&&N[S].push(O(I.child[S][B],q,S))}else{const B=O(I.child[S][0],q,S),C=q.arrayMode===!0&&typeof B=="object"||j.isTagNameInArrayMode(S,q.arrayMode,p);N[S]=C?[B]:B}}return N};w.convertToJson=O},9838:()=>{},9957:($,w,b)=>{var j=Function.prototype.call,O=Object.prototype.hasOwnProperty,I=b(6743);$.exports=I.call(j,O)}},__webpack_module_cache__={};function __webpack_require__($){var w=__webpack_module_cache__[$];if(w!==void 0)return w.exports;var b=__webpack_module_cache__[$]={id:$,loaded:!1,exports:{}};return __webpack_modules__[$].call(b.exports,b,b.exports,__webpack_require__),b.loaded=!0,b.exports}__webpack_require__.d=($,w)=>{for(var b in w)__webpack_require__.o(w,b)&&!__webpack_require__.o($,b)&&Object.defineProperty($,b,{enumerable:!0,get:w[b]})},__webpack_require__.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),__webpack_require__.o=($,w)=>Object.prototype.hasOwnProperty.call($,w),__webpack_require__.r=$=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty($,Symbol.toStringTag,{value:"Module"}),Object.defineProperty($,"__esModule",{value:!0})},__webpack_require__.nmd=$=>($.paths=[],$.children||($.children=[]),$);var __webpack_exports__={};return(()=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Minio:()=>w,initMinio:()=>j,putObjectBuffer:()=>O});var $=__webpack_require__(8287).Buffer;const w=__webpack_require__(1980);let b=null;function j(I){if(!I)throw new Error("Minio的配置不能为空");b=I;const q=(I.endPoint||"").split(":");q[0]&&(b.endPoint=q[0]),q[1]&&(b.port=Number(q[1]))}function O(I,q,p,N,M){if(!b)throw new Error("请先初始化Minio");let T=$.from(p);new(__webpack_require__(1980)).Client(b).putObject(I,q,T,N,M)}})(),__webpack_exports__})())})(o);var minioExports=o.exports,n$1=($=>($[$.Robot=1]="Robot",$[$.User=2]="User",$[$.System=3]="System",$))(n$1||{}),dayjs_min={exports:{}};(function($,w){(function(b,j){$.exports=j()})(commonjsGlobal,function(){var b=1e3,j=6e4,O=36e5,I="millisecond",q="second",p="minute",N="hour",M="day",T="week",S="month",B="quarter",C="year",_="date",F="Invalid Date",U=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,z=/\[([^\]]+)]|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,H={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(a){var r=["th","st","nd","rd"],v=a%100;return"["+a+(r[(v-20)%10]||r[v]||r[0])+"]"}},D=function(a,r,v){var A=String(a);return!A||A.length>=r?a:""+Array(r+1-A.length).join(v)+a},Q={s:D,z:function(a){var r=-a.utcOffset(),v=Math.abs(r),A=Math.floor(v/60),W=v%60;return(r<=0?"+":"-")+D(A,2,"0")+":"+D(W,2,"0")},m:function a(r,v){if(r.date()<v.date())return-a(v,r);var A=12*(v.year()-r.year())+(v.month()-r.month()),W=r.clone().add(A,S),J=v-W<0,K=r.clone().add(A+(J?-1:1),S);return+(-(A+(v-W)/(J?W-K:K-W))||0)},a:function(a){return a<0?Math.ceil(a)||0:Math.floor(a)},p:function(a){return{M:S,y:C,w:T,d:M,D:_,h:N,m:p,s:q,ms:I,Q:B}[a]||String(a||"").toLowerCase().replace(/s$/,"")},u:function(a){return a===void 0}},X="en",et={};et[X]=H;var nt="$isDayjsObject",ut=function(a){return a instanceof h||!(!a||!a[nt])},ct=function a(r,v,A){var W;if(!r)return X;if(typeof r=="string"){var J=r.toLowerCase();et[J]&&(W=J),v&&(et[J]=v,W=J);var K=r.split("-");if(!W&&K.length>1)return a(K[0])}else{var G=r.name;et[G]=r,W=G}return!A&&W&&(X=W),W||!A&&X},vt=function(a,r){if(ut(a))return a.clone();var v=typeof r=="object"?r:{};return v.date=a,v.args=arguments,new h(v)},t=Q;t.l=ct,t.i=ut,t.w=function(a,r){return vt(a,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})};var h=function(){function a(v){this.$L=ct(v.locale,null,!0),this.parse(v),this.$x=this.$x||v.x||{},this[nt]=!0}var r=a.prototype;return r.parse=function(v){this.$d=function(A){var W=A.date,J=A.utc;if(W===null)return new Date(NaN);if(t.u(W))return new Date;if(W instanceof Date)return new Date(W);if(typeof W=="string"&&!/Z$/i.test(W)){var K=W.match(U);if(K){var G=K[2]-1||0,Y=(K[7]||"0").substring(0,3);return J?new Date(Date.UTC(K[1],G,K[3]||1,K[4]||0,K[5]||0,K[6]||0,Y)):new Date(K[1],G,K[3]||1,K[4]||0,K[5]||0,K[6]||0,Y)}}return new Date(W)}(v),this.init()},r.init=function(){var v=this.$d;this.$y=v.getFullYear(),this.$M=v.getMonth(),this.$D=v.getDate(),this.$W=v.getDay(),this.$H=v.getHours(),this.$m=v.getMinutes(),this.$s=v.getSeconds(),this.$ms=v.getMilliseconds()},r.$utils=function(){return t},r.isValid=function(){return this.$d.toString()!==F},r.isSame=function(v,A){var W=vt(v);return this.startOf(A)<=W&&W<=this.endOf(A)},r.isAfter=function(v,A){return vt(v)<this.startOf(A)},r.isBefore=function(v,A){return this.endOf(A)<vt(v)},r.$g=function(v,A,W){return t.u(v)?this[A]:this.set(W,v)},r.unix=function(){return Math.floor(this.valueOf()/1e3)},r.valueOf=function(){return this.$d.getTime()},r.startOf=function(v,A){var W=this,J=!!t.u(A)||A,K=t.p(v),G=function(rt,wt){var gt=t.w(W.$u?Date.UTC(W.$y,wt,rt):new Date(W.$y,wt,rt),W);return J?gt:gt.endOf(M)},Y=function(rt,wt){return t.w(W.toDate()[rt].apply(W.toDate("s"),(J?[0,0,0,0]:[23,59,59,999]).slice(wt)),W)},at=this.$W,ot=this.$M,ht=this.$D,tt="set"+(this.$u?"UTC":"");switch(K){case C:return J?G(1,0):G(31,11);case S:return J?G(1,ot):G(0,ot+1);case T:var it=this.$locale().weekStart||0,Z=(at<it?at+7:at)-it;return G(J?ht-Z:ht+(6-Z),ot);case M:case _:return Y(tt+"Hours",0);case N:return Y(tt+"Minutes",1);case p:return Y(tt+"Seconds",2);case q:return Y(tt+"Milliseconds",3);default:return this.clone()}},r.endOf=function(v){return this.startOf(v,!1)},r.$set=function(v,A){var W,J=t.p(v),K="set"+(this.$u?"UTC":""),G=(W={},W[M]=K+"Date",W[_]=K+"Date",W[S]=K+"Month",W[C]=K+"FullYear",W[N]=K+"Hours",W[p]=K+"Minutes",W[q]=K+"Seconds",W[I]=K+"Milliseconds",W)[J],Y=J===M?this.$D+(A-this.$W):A;if(J===S||J===C){var at=this.clone().set(_,1);at.$d[G](Y),at.init(),this.$d=at.set(_,Math.min(this.$D,at.daysInMonth())).$d}else G&&this.$d[G](Y);return this.init(),this},r.set=function(v,A){return this.clone().$set(v,A)},r.get=function(v){return this[t.p(v)]()},r.add=function(v,A){var W,J=this;v=Number(v);var K=t.p(A),G=function(ot){var ht=vt(J);return t.w(ht.date(ht.date()+Math.round(ot*v)),J)};if(K===S)return this.set(S,this.$M+v);if(K===C)return this.set(C,this.$y+v);if(K===M)return G(1);if(K===T)return G(7);var Y=(W={},W[p]=j,W[N]=O,W[q]=b,W)[K]||1,at=this.$d.getTime()+v*Y;return t.w(at,this)},r.subtract=function(v,A){return this.add(-1*v,A)},r.format=function(v){var A=this,W=this.$locale();if(!this.isValid())return W.invalidDate||F;var J=v||"YYYY-MM-DDTHH:mm:ssZ",K=t.z(this),G=this.$H,Y=this.$m,at=this.$M,ot=W.weekdays,ht=W.months,tt=W.meridiem,it=function(wt,gt,St,Lt){return wt&&(wt[gt]||wt(A,J))||St[gt].slice(0,Lt)},Z=function(wt){return t.s(G%12||12,wt,"0")},rt=tt||function(wt,gt,St){var Lt=wt<12?"AM":"PM";return St?Lt.toLowerCase():Lt};return J.replace(z,function(wt,gt){return gt||function(St){switch(St){case"YY":return String(A.$y).slice(-2);case"YYYY":return t.s(A.$y,4,"0");case"M":return at+1;case"MM":return t.s(at+1,2,"0");case"MMM":return it(W.monthsShort,at,ht,3);case"MMMM":return it(ht,at);case"D":return A.$D;case"DD":return t.s(A.$D,2,"0");case"d":return String(A.$W);case"dd":return it(W.weekdaysMin,A.$W,ot,2);case"ddd":return it(W.weekdaysShort,A.$W,ot,3);case"dddd":return ot[A.$W];case"H":return String(G);case"HH":return t.s(G,2,"0");case"h":return Z(1);case"hh":return Z(2);case"a":return rt(G,Y,!0);case"A":return rt(G,Y,!1);case"m":return String(Y);case"mm":return t.s(Y,2,"0");case"s":return String(A.$s);case"ss":return t.s(A.$s,2,"0");case"SSS":return t.s(A.$ms,3,"0");case"Z":return K}return null}(wt)||K.replace(":","")})},r.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},r.diff=function(v,A,W){var J,K=this,G=t.p(A),Y=vt(v),at=(Y.utcOffset()-this.utcOffset())*j,ot=this-Y,ht=function(){return t.m(K,Y)};switch(G){case C:J=ht()/12;break;case S:J=ht();break;case B:J=ht()/3;break;case T:J=(ot-at)/6048e5;break;case M:J=(ot-at)/864e5;break;case N:J=ot/O;break;case p:J=ot/j;break;case q:J=ot/b;break;default:J=ot}return W?J:t.a(J)},r.daysInMonth=function(){return this.endOf(S).$D},r.$locale=function(){return et[this.$L]},r.locale=function(v,A){if(!v)return this.$L;var W=this.clone(),J=ct(v,A,!0);return J&&(W.$L=J),W},r.clone=function(){return t.w(this.$d,this)},r.toDate=function(){return new Date(this.valueOf())},r.toJSON=function(){return this.isValid()?this.toISOString():null},r.toISOString=function(){return this.$d.toISOString()},r.toString=function(){return this.$d.toUTCString()},a}(),l=h.prototype;return vt.prototype=l,[["$ms",I],["$s",q],["$m",p],["$H",N],["$W",M],["$M",S],["$y",C],["$D",_]].forEach(function(a){l[a[1]]=function(r){return this.$g(r,a[0],a[1])}}),vt.extend=function(a,r){return a.$i||(a(r,h,vt),a.$i=!0),vt},vt.locale=ct,vt.isDayjs=ut,vt.unix=function(a){return vt(1e3*a)},vt.en=et[X],vt.Ls=et,vt.p={},vt})})(dayjs_min);var dayjs_minExports=dayjs_min.exports;const dayjs=getDefaultExportFromCjs(dayjs_minExports);typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const i$2=[];for(let $=0;$<256;++$)i$2.push(($+256).toString(16).slice(1));var buffer={},base64Js={};base64Js.byteLength=byteLength$1,base64Js.toByteArray=toByteArray,base64Js.fromByteArray=fromByteArray;for(var lookup$2=[],revLookup=[],Arr=typeof Uint8Array<"u"?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i$1=0,len=code.length;i$1<len;++i$1)lookup$2[i$1]=code[i$1],revLookup[code.charCodeAt(i$1)]=i$1;revLookup["-".charCodeAt(0)]=62,revLookup["_".charCodeAt(0)]=63;function getLens($){var w=$.length;if(w%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var b=$.indexOf("=");b===-1&&(b=w);var j=b===w?0:4-b%4;return[b,j]}function byteLength$1($){var w=getLens($),b=w[0],j=w[1];return(b+j)*3/4-j}function _byteLength($,w,b){return(w+b)*3/4-b}function toByteArray($){var w,b=getLens($),j=b[0],O=b[1],I=new Arr(_byteLength($,j,O)),q=0,p=O>0?j-4:j,N;for(N=0;N<p;N+=4)w=revLookup[$.charCodeAt(N)]<<18|revLookup[$.charCodeAt(N+1)]<<12|revLookup[$.charCodeAt(N+2)]<<6|revLookup[$.charCodeAt(N+3)],I[q++]=w>>16&255,I[q++]=w>>8&255,I[q++]=w&255;return O===2&&(w=revLookup[$.charCodeAt(N)]<<2|revLookup[$.charCodeAt(N+1)]>>4,I[q++]=w&255),O===1&&(w=revLookup[$.charCodeAt(N)]<<10|revLookup[$.charCodeAt(N+1)]<<4|revLookup[$.charCodeAt(N+2)]>>2,I[q++]=w>>8&255,I[q++]=w&255),I}function tripletToBase64($){return lookup$2[$>>18&63]+lookup$2[$>>12&63]+lookup$2[$>>6&63]+lookup$2[$&63]}function encodeChunk($,w,b){for(var j,O=[],I=w;I<b;I+=3)j=($[I]<<16&16711680)+($[I+1]<<8&65280)+($[I+2]&255),O.push(tripletToBase64(j));return O.join("")}function fromByteArray($){for(var w,b=$.length,j=b%3,O=[],I=16383,q=0,p=b-j;q<p;q+=I)O.push(encodeChunk($,q,q+I>p?p:q+I));return j===1?(w=$[b-1],O.push(lookup$2[w>>2]+lookup$2[w<<4&63]+"==")):j===2&&(w=($[b-2]<<8)+$[b-1],O.push(lookup$2[w>>10]+lookup$2[w>>4&63]+lookup$2[w<<2&63]+"=")),O.join("")}var ieee754={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ieee754.read=function($,w,b,j,O){var I,q,p=O*8-j-1,N=(1<<p)-1,M=N>>1,T=-7,S=b?O-1:0,B=b?-1:1,C=$[w+S];for(S+=B,I=C&(1<<-T)-1,C>>=-T,T+=p;T>0;I=I*256+$[w+S],S+=B,T-=8);for(q=I&(1<<-T)-1,I>>=-T,T+=j;T>0;q=q*256+$[w+S],S+=B,T-=8);if(I===0)I=1-M;else{if(I===N)return q?NaN:(C?-1:1)*(1/0);q=q+Math.pow(2,j),I=I-M}return(C?-1:1)*q*Math.pow(2,I-j)},ieee754.write=function($,w,b,j,O,I){var q,p,N,M=I*8-O-1,T=(1<<M)-1,S=T>>1,B=O===23?Math.pow(2,-24)-Math.pow(2,-77):0,C=j?0:I-1,_=j?1:-1,F=w<0||w===0&&1/w<0?1:0;for(w=Math.abs(w),isNaN(w)||w===1/0?(p=isNaN(w)?1:0,q=T):(q=Math.floor(Math.log(w)/Math.LN2),w*(N=Math.pow(2,-q))<1&&(q--,N*=2),q+S>=1?w+=B/N:w+=B*Math.pow(2,1-S),w*N>=2&&(q++,N/=2),q+S>=T?(p=0,q=T):q+S>=1?(p=(w*N-1)*Math.pow(2,O),q=q+S):(p=w*Math.pow(2,S-1)*Math.pow(2,O),q=0));O>=8;$[b+C]=p&255,C+=_,p/=256,O-=8);for(q=q<<O|p,M+=O;M>0;$[b+C]=q&255,C+=_,q/=256,M-=8);$[b+C-_]|=F*128};/*!
143
+ * The buffer module from node.js, for the browser.
144
+ *
145
+ * @author Feross Aboukhadijeh <https://feross.org>
146
+ * @license MIT
147
+ */(function($){const w=base64Js,b=ieee754,j=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;$.Buffer=p,$.SlowBuffer=H,$.INSPECT_MAX_BYTES=50;const O=2147483647;$.kMaxLength=O,p.TYPED_ARRAY_SUPPORT=I(),!p.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 I(){try{const yt=new Uint8Array(1),dt={foo:function(){return 42}};return Object.setPrototypeOf(dt,Uint8Array.prototype),Object.setPrototypeOf(yt,dt),yt.foo()===42}catch{return!1}}Object.defineProperty(p.prototype,"parent",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.buffer}}),Object.defineProperty(p.prototype,"offset",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.byteOffset}});function q(yt){if(yt>O)throw new RangeError('The value "'+yt+'" is invalid for option "size"');const dt=new Uint8Array(yt);return Object.setPrototypeOf(dt,p.prototype),dt}function p(yt,dt,lt){if(typeof yt=="number"){if(typeof dt=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return S(yt)}return N(yt,dt,lt)}p.poolSize=8192;function N(yt,dt,lt){if(typeof yt=="string")return B(yt,dt);if(ArrayBuffer.isView(yt))return _(yt);if(yt==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof yt);if(Mt(yt,ArrayBuffer)||yt&&Mt(yt.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Mt(yt,SharedArrayBuffer)||yt&&Mt(yt.buffer,SharedArrayBuffer)))return F(yt,dt,lt);if(typeof yt=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const _t=yt.valueOf&&yt.valueOf();if(_t!=null&&_t!==yt)return p.from(_t,dt,lt);const qt=U(yt);if(qt)return qt;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof yt[Symbol.toPrimitive]=="function")return p.from(yt[Symbol.toPrimitive]("string"),dt,lt);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof yt)}p.from=function(yt,dt,lt){return N(yt,dt,lt)},Object.setPrototypeOf(p.prototype,Uint8Array.prototype),Object.setPrototypeOf(p,Uint8Array);function M(yt){if(typeof yt!="number")throw new TypeError('"size" argument must be of type number');if(yt<0)throw new RangeError('The value "'+yt+'" is invalid for option "size"')}function T(yt,dt,lt){return M(yt),yt<=0?q(yt):dt!==void 0?typeof lt=="string"?q(yt).fill(dt,lt):q(yt).fill(dt):q(yt)}p.alloc=function(yt,dt,lt){return T(yt,dt,lt)};function S(yt){return M(yt),q(yt<0?0:z(yt)|0)}p.allocUnsafe=function(yt){return S(yt)},p.allocUnsafeSlow=function(yt){return S(yt)};function B(yt,dt){if((typeof dt!="string"||dt==="")&&(dt="utf8"),!p.isEncoding(dt))throw new TypeError("Unknown encoding: "+dt);const lt=D(yt,dt)|0;let _t=q(lt);const qt=_t.write(yt,dt);return qt!==lt&&(_t=_t.slice(0,qt)),_t}function C(yt){const dt=yt.length<0?0:z(yt.length)|0,lt=q(dt);for(let _t=0;_t<dt;_t+=1)lt[_t]=yt[_t]&255;return lt}function _(yt){if(Mt(yt,Uint8Array)){const dt=new Uint8Array(yt);return F(dt.buffer,dt.byteOffset,dt.byteLength)}return C(yt)}function F(yt,dt,lt){if(dt<0||yt.byteLength<dt)throw new RangeError('"offset" is outside of buffer bounds');if(yt.byteLength<dt+(lt||0))throw new RangeError('"length" is outside of buffer bounds');let _t;return dt===void 0&&lt===void 0?_t=new Uint8Array(yt):lt===void 0?_t=new Uint8Array(yt,dt):_t=new Uint8Array(yt,dt,lt),Object.setPrototypeOf(_t,p.prototype),_t}function U(yt){if(p.isBuffer(yt)){const dt=z(yt.length)|0,lt=q(dt);return lt.length===0||yt.copy(lt,0,0,dt),lt}if(yt.length!==void 0)return typeof yt.length!="number"||xt(yt.length)?q(0):C(yt);if(yt.type==="Buffer"&&Array.isArray(yt.data))return C(yt.data)}function z(yt){if(yt>=O)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+O.toString(16)+" bytes");return yt|0}function H(yt){return+yt!=yt&&(yt=0),p.alloc(+yt)}p.isBuffer=function(dt){return dt!=null&&dt._isBuffer===!0&&dt!==p.prototype},p.compare=function(dt,lt){if(Mt(dt,Uint8Array)&&(dt=p.from(dt,dt.offset,dt.byteLength)),Mt(lt,Uint8Array)&&(lt=p.from(lt,lt.offset,lt.byteLength)),!p.isBuffer(dt)||!p.isBuffer(lt))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(dt===lt)return 0;let _t=dt.length,qt=lt.length;for(let It=0,Nt=Math.min(_t,qt);It<Nt;++It)if(dt[It]!==lt[It]){_t=dt[It],qt=lt[It];break}return _t<qt?-1:qt<_t?1:0},p.isEncoding=function(dt){switch(String(dt).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}},p.concat=function(dt,lt){if(!Array.isArray(dt))throw new TypeError('"list" argument must be an Array of Buffers');if(dt.length===0)return p.alloc(0);let _t;if(lt===void 0)for(lt=0,_t=0;_t<dt.length;++_t)lt+=dt[_t].length;const qt=p.allocUnsafe(lt);let It=0;for(_t=0;_t<dt.length;++_t){let Nt=dt[_t];if(Mt(Nt,Uint8Array))It+Nt.length>qt.length?(p.isBuffer(Nt)||(Nt=p.from(Nt)),Nt.copy(qt,It)):Uint8Array.prototype.set.call(qt,Nt,It);else if(p.isBuffer(Nt))Nt.copy(qt,It);else throw new TypeError('"list" argument must be an Array of Buffers');It+=Nt.length}return qt};function D(yt,dt){if(p.isBuffer(yt))return yt.length;if(ArrayBuffer.isView(yt)||Mt(yt,ArrayBuffer))return yt.byteLength;if(typeof yt!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof yt);const lt=yt.length,_t=arguments.length>2&&arguments[2]===!0;if(!_t&&lt===0)return 0;let qt=!1;for(;;)switch(dt){case"ascii":case"latin1":case"binary":return lt;case"utf8":case"utf-8":return Dt(yt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return lt*2;case"hex":return lt>>>1;case"base64":return pt(yt).length;default:if(qt)return _t?-1:Dt(yt).length;dt=(""+dt).toLowerCase(),qt=!0}}p.byteLength=D;function Q(yt,dt,lt){let _t=!1;if((dt===void 0||dt<0)&&(dt=0),dt>this.length||((lt===void 0||lt>this.length)&&(lt=this.length),lt<=0)||(lt>>>=0,dt>>>=0,lt<=dt))return"";for(yt||(yt="utf8");;)switch(yt){case"hex":return J(this,dt,lt);case"utf8":case"utf-8":return a(this,dt,lt);case"ascii":return A(this,dt,lt);case"latin1":case"binary":return W(this,dt,lt);case"base64":return l(this,dt,lt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,dt,lt);default:if(_t)throw new TypeError("Unknown encoding: "+yt);yt=(yt+"").toLowerCase(),_t=!0}}p.prototype._isBuffer=!0;function X(yt,dt,lt){const _t=yt[dt];yt[dt]=yt[lt],yt[lt]=_t}p.prototype.swap16=function(){const dt=this.length;if(dt%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let lt=0;lt<dt;lt+=2)X(this,lt,lt+1);return this},p.prototype.swap32=function(){const dt=this.length;if(dt%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let lt=0;lt<dt;lt+=4)X(this,lt,lt+3),X(this,lt+1,lt+2);return this},p.prototype.swap64=function(){const dt=this.length;if(dt%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let lt=0;lt<dt;lt+=8)X(this,lt,lt+7),X(this,lt+1,lt+6),X(this,lt+2,lt+5),X(this,lt+3,lt+4);return this},p.prototype.toString=function(){const dt=this.length;return dt===0?"":arguments.length===0?a(this,0,dt):Q.apply(this,arguments)},p.prototype.toLocaleString=p.prototype.toString,p.prototype.equals=function(dt){if(!p.isBuffer(dt))throw new TypeError("Argument must be a Buffer");return this===dt?!0:p.compare(this,dt)===0},p.prototype.inspect=function(){let dt="";const lt=$.INSPECT_MAX_BYTES;return dt=this.toString("hex",0,lt).replace(/(.{2})/g,"$1 ").trim(),this.length>lt&&(dt+=" ... "),"<Buffer "+dt+">"},j&&(p.prototype[j]=p.prototype.inspect),p.prototype.compare=function(dt,lt,_t,qt,It){if(Mt(dt,Uint8Array)&&(dt=p.from(dt,dt.offset,dt.byteLength)),!p.isBuffer(dt))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof dt);if(lt===void 0&&(lt=0),_t===void 0&&(_t=dt?dt.length:0),qt===void 0&&(qt=0),It===void 0&&(It=this.length),lt<0||_t>dt.length||qt<0||It>this.length)throw new RangeError("out of range index");if(qt>=It&&lt>=_t)return 0;if(qt>=It)return-1;if(lt>=_t)return 1;if(lt>>>=0,_t>>>=0,qt>>>=0,It>>>=0,this===dt)return 0;let Nt=It-qt,be=_t-lt;const Vt=Math.min(Nt,be),Jt=this.slice(qt,It),Ee=dt.slice(lt,_t);for(let Ht=0;Ht<Vt;++Ht)if(Jt[Ht]!==Ee[Ht]){Nt=Jt[Ht],be=Ee[Ht];break}return Nt<be?-1:be<Nt?1:0};function et(yt,dt,lt,_t,qt){if(yt.length===0)return-1;if(typeof lt=="string"?(_t=lt,lt=0):lt>2147483647?lt=2147483647:lt<-2147483648&&(lt=-2147483648),lt=+lt,xt(lt)&&(lt=qt?0:yt.length-1),lt<0&&(lt=yt.length+lt),lt>=yt.length){if(qt)return-1;lt=yt.length-1}else if(lt<0)if(qt)lt=0;else return-1;if(typeof dt=="string"&&(dt=p.from(dt,_t)),p.isBuffer(dt))return dt.length===0?-1:nt(yt,dt,lt,_t,qt);if(typeof dt=="number")return dt=dt&255,typeof Uint8Array.prototype.indexOf=="function"?qt?Uint8Array.prototype.indexOf.call(yt,dt,lt):Uint8Array.prototype.lastIndexOf.call(yt,dt,lt):nt(yt,[dt],lt,_t,qt);throw new TypeError("val must be string, number or Buffer")}function nt(yt,dt,lt,_t,qt){let It=1,Nt=yt.length,be=dt.length;if(_t!==void 0&&(_t=String(_t).toLowerCase(),_t==="ucs2"||_t==="ucs-2"||_t==="utf16le"||_t==="utf-16le")){if(yt.length<2||dt.length<2)return-1;It=2,Nt/=2,be/=2,lt/=2}function Vt(Ee,Ht){return It===1?Ee[Ht]:Ee.readUInt16BE(Ht*It)}let Jt;if(qt){let Ee=-1;for(Jt=lt;Jt<Nt;Jt++)if(Vt(yt,Jt)===Vt(dt,Ee===-1?0:Jt-Ee)){if(Ee===-1&&(Ee=Jt),Jt-Ee+1===be)return Ee*It}else Ee!==-1&&(Jt-=Jt-Ee),Ee=-1}else for(lt+be>Nt&&(lt=Nt-be),Jt=lt;Jt>=0;Jt--){let Ee=!0;for(let Ht=0;Ht<be;Ht++)if(Vt(yt,Jt+Ht)!==Vt(dt,Ht)){Ee=!1;break}if(Ee)return Jt}return-1}p.prototype.includes=function(dt,lt,_t){return this.indexOf(dt,lt,_t)!==-1},p.prototype.indexOf=function(dt,lt,_t){return et(this,dt,lt,_t,!0)},p.prototype.lastIndexOf=function(dt,lt,_t){return et(this,dt,lt,_t,!1)};function ut(yt,dt,lt,_t){lt=Number(lt)||0;const qt=yt.length-lt;_t?(_t=Number(_t),_t>qt&&(_t=qt)):_t=qt;const It=dt.length;_t>It/2&&(_t=It/2);let Nt;for(Nt=0;Nt<_t;++Nt){const be=parseInt(dt.substr(Nt*2,2),16);if(xt(be))return Nt;yt[lt+Nt]=be}return Nt}function ct(yt,dt,lt,_t){return mt(Dt(dt,yt.length-lt),yt,lt,_t)}function vt(yt,dt,lt,_t){return mt(zt(dt),yt,lt,_t)}function t(yt,dt,lt,_t){return mt(pt(dt),yt,lt,_t)}function h(yt,dt,lt,_t){return mt(ft(dt,yt.length-lt),yt,lt,_t)}p.prototype.write=function(dt,lt,_t,qt){if(lt===void 0)qt="utf8",_t=this.length,lt=0;else if(_t===void 0&&typeof lt=="string")qt=lt,_t=this.length,lt=0;else if(isFinite(lt))lt=lt>>>0,isFinite(_t)?(_t=_t>>>0,qt===void 0&&(qt="utf8")):(qt=_t,_t=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const It=this.length-lt;if((_t===void 0||_t>It)&&(_t=It),dt.length>0&&(_t<0||lt<0)||lt>this.length)throw new RangeError("Attempt to write outside buffer bounds");qt||(qt="utf8");let Nt=!1;for(;;)switch(qt){case"hex":return ut(this,dt,lt,_t);case"utf8":case"utf-8":return ct(this,dt,lt,_t);case"ascii":case"latin1":case"binary":return vt(this,dt,lt,_t);case"base64":return t(this,dt,lt,_t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h(this,dt,lt,_t);default:if(Nt)throw new TypeError("Unknown encoding: "+qt);qt=(""+qt).toLowerCase(),Nt=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function l(yt,dt,lt){return dt===0&&lt===yt.length?w.fromByteArray(yt):w.fromByteArray(yt.slice(dt,lt))}function a(yt,dt,lt){lt=Math.min(yt.length,lt);const _t=[];let qt=dt;for(;qt<lt;){const It=yt[qt];let Nt=null,be=It>239?4:It>223?3:It>191?2:1;if(qt+be<=lt){let Vt,Jt,Ee,Ht;switch(be){case 1:It<128&&(Nt=It);break;case 2:Vt=yt[qt+1],(Vt&192)===128&&(Ht=(It&31)<<6|Vt&63,Ht>127&&(Nt=Ht));break;case 3:Vt=yt[qt+1],Jt=yt[qt+2],(Vt&192)===128&&(Jt&192)===128&&(Ht=(It&15)<<12|(Vt&63)<<6|Jt&63,Ht>2047&&(Ht<55296||Ht>57343)&&(Nt=Ht));break;case 4:Vt=yt[qt+1],Jt=yt[qt+2],Ee=yt[qt+3],(Vt&192)===128&&(Jt&192)===128&&(Ee&192)===128&&(Ht=(It&15)<<18|(Vt&63)<<12|(Jt&63)<<6|Ee&63,Ht>65535&&Ht<1114112&&(Nt=Ht))}}Nt===null?(Nt=65533,be=1):Nt>65535&&(Nt-=65536,_t.push(Nt>>>10&1023|55296),Nt=56320|Nt&1023),_t.push(Nt),qt+=be}return v(_t)}const r=4096;function v(yt){const dt=yt.length;if(dt<=r)return String.fromCharCode.apply(String,yt);let lt="",_t=0;for(;_t<dt;)lt+=String.fromCharCode.apply(String,yt.slice(_t,_t+=r));return lt}function A(yt,dt,lt){let _t="";lt=Math.min(yt.length,lt);for(let qt=dt;qt<lt;++qt)_t+=String.fromCharCode(yt[qt]&127);return _t}function W(yt,dt,lt){let _t="";lt=Math.min(yt.length,lt);for(let qt=dt;qt<lt;++qt)_t+=String.fromCharCode(yt[qt]);return _t}function J(yt,dt,lt){const _t=yt.length;(!dt||dt<0)&&(dt=0),(!lt||lt<0||lt>_t)&&(lt=_t);let qt="";for(let It=dt;It<lt;++It)qt+=kt[yt[It]];return qt}function K(yt,dt,lt){const _t=yt.slice(dt,lt);let qt="";for(let It=0;It<_t.length-1;It+=2)qt+=String.fromCharCode(_t[It]+_t[It+1]*256);return qt}p.prototype.slice=function(dt,lt){const _t=this.length;dt=~~dt,lt=lt===void 0?_t:~~lt,dt<0?(dt+=_t,dt<0&&(dt=0)):dt>_t&&(dt=_t),lt<0?(lt+=_t,lt<0&&(lt=0)):lt>_t&&(lt=_t),lt<dt&&(lt=dt);const qt=this.subarray(dt,lt);return Object.setPrototypeOf(qt,p.prototype),qt};function G(yt,dt,lt){if(yt%1!==0||yt<0)throw new RangeError("offset is not uint");if(yt+dt>lt)throw new RangeError("Trying to access beyond buffer length")}p.prototype.readUintLE=p.prototype.readUIntLE=function(dt,lt,_t){dt=dt>>>0,lt=lt>>>0,_t||G(dt,lt,this.length);let qt=this[dt],It=1,Nt=0;for(;++Nt<lt&&(It*=256);)qt+=this[dt+Nt]*It;return qt},p.prototype.readUintBE=p.prototype.readUIntBE=function(dt,lt,_t){dt=dt>>>0,lt=lt>>>0,_t||G(dt,lt,this.length);let qt=this[dt+--lt],It=1;for(;lt>0&&(It*=256);)qt+=this[dt+--lt]*It;return qt},p.prototype.readUint8=p.prototype.readUInt8=function(dt,lt){return dt=dt>>>0,lt||G(dt,1,this.length),this[dt]},p.prototype.readUint16LE=p.prototype.readUInt16LE=function(dt,lt){return dt=dt>>>0,lt||G(dt,2,this.length),this[dt]|this[dt+1]<<8},p.prototype.readUint16BE=p.prototype.readUInt16BE=function(dt,lt){return dt=dt>>>0,lt||G(dt,2,this.length),this[dt]<<8|this[dt+1]},p.prototype.readUint32LE=p.prototype.readUInt32LE=function(dt,lt){return dt=dt>>>0,lt||G(dt,4,this.length),(this[dt]|this[dt+1]<<8|this[dt+2]<<16)+this[dt+3]*16777216},p.prototype.readUint32BE=p.prototype.readUInt32BE=function(dt,lt){return dt=dt>>>0,lt||G(dt,4,this.length),this[dt]*16777216+(this[dt+1]<<16|this[dt+2]<<8|this[dt+3])},p.prototype.readBigUInt64LE=$t(function(dt){dt=dt>>>0,Lt(dt,"offset");const lt=this[dt],_t=this[dt+7];(lt===void 0||_t===void 0)&&At(dt,this.length-8);const qt=lt+this[++dt]*2**8+this[++dt]*2**16+this[++dt]*2**24,It=this[++dt]+this[++dt]*2**8+this[++dt]*2**16+_t*2**24;return BigInt(qt)+(BigInt(It)<<BigInt(32))}),p.prototype.readBigUInt64BE=$t(function(dt){dt=dt>>>0,Lt(dt,"offset");const lt=this[dt],_t=this[dt+7];(lt===void 0||_t===void 0)&&At(dt,this.length-8);const qt=lt*2**24+this[++dt]*2**16+this[++dt]*2**8+this[++dt],It=this[++dt]*2**24+this[++dt]*2**16+this[++dt]*2**8+_t;return(BigInt(qt)<<BigInt(32))+BigInt(It)}),p.prototype.readIntLE=function(dt,lt,_t){dt=dt>>>0,lt=lt>>>0,_t||G(dt,lt,this.length);let qt=this[dt],It=1,Nt=0;for(;++Nt<lt&&(It*=256);)qt+=this[dt+Nt]*It;return It*=128,qt>=It&&(qt-=Math.pow(2,8*lt)),qt},p.prototype.readIntBE=function(dt,lt,_t){dt=dt>>>0,lt=lt>>>0,_t||G(dt,lt,this.length);let qt=lt,It=1,Nt=this[dt+--qt];for(;qt>0&&(It*=256);)Nt+=this[dt+--qt]*It;return It*=128,Nt>=It&&(Nt-=Math.pow(2,8*lt)),Nt},p.prototype.readInt8=function(dt,lt){return dt=dt>>>0,lt||G(dt,1,this.length),this[dt]&128?(255-this[dt]+1)*-1:this[dt]},p.prototype.readInt16LE=function(dt,lt){dt=dt>>>0,lt||G(dt,2,this.length);const _t=this[dt]|this[dt+1]<<8;return _t&32768?_t|4294901760:_t},p.prototype.readInt16BE=function(dt,lt){dt=dt>>>0,lt||G(dt,2,this.length);const _t=this[dt+1]|this[dt]<<8;return _t&32768?_t|4294901760:_t},p.prototype.readInt32LE=function(dt,lt){return dt=dt>>>0,lt||G(dt,4,this.length),this[dt]|this[dt+1]<<8|this[dt+2]<<16|this[dt+3]<<24},p.prototype.readInt32BE=function(dt,lt){return dt=dt>>>0,lt||G(dt,4,this.length),this[dt]<<24|this[dt+1]<<16|this[dt+2]<<8|this[dt+3]},p.prototype.readBigInt64LE=$t(function(dt){dt=dt>>>0,Lt(dt,"offset");const lt=this[dt],_t=this[dt+7];(lt===void 0||_t===void 0)&&At(dt,this.length-8);const qt=this[dt+4]+this[dt+5]*2**8+this[dt+6]*2**16+(_t<<24);return(BigInt(qt)<<BigInt(32))+BigInt(lt+this[++dt]*2**8+this[++dt]*2**16+this[++dt]*2**24)}),p.prototype.readBigInt64BE=$t(function(dt){dt=dt>>>0,Lt(dt,"offset");const lt=this[dt],_t=this[dt+7];(lt===void 0||_t===void 0)&&At(dt,this.length-8);const qt=(lt<<24)+this[++dt]*2**16+this[++dt]*2**8+this[++dt];return(BigInt(qt)<<BigInt(32))+BigInt(this[++dt]*2**24+this[++dt]*2**16+this[++dt]*2**8+_t)}),p.prototype.readFloatLE=function(dt,lt){return dt=dt>>>0,lt||G(dt,4,this.length),b.read(this,dt,!0,23,4)},p.prototype.readFloatBE=function(dt,lt){return dt=dt>>>0,lt||G(dt,4,this.length),b.read(this,dt,!1,23,4)},p.prototype.readDoubleLE=function(dt,lt){return dt=dt>>>0,lt||G(dt,8,this.length),b.read(this,dt,!0,52,8)},p.prototype.readDoubleBE=function(dt,lt){return dt=dt>>>0,lt||G(dt,8,this.length),b.read(this,dt,!1,52,8)};function Y(yt,dt,lt,_t,qt,It){if(!p.isBuffer(yt))throw new TypeError('"buffer" argument must be a Buffer instance');if(dt>qt||dt<It)throw new RangeError('"value" argument is out of bounds');if(lt+_t>yt.length)throw new RangeError("Index out of range")}p.prototype.writeUintLE=p.prototype.writeUIntLE=function(dt,lt,_t,qt){if(dt=+dt,lt=lt>>>0,_t=_t>>>0,!qt){const be=Math.pow(2,8*_t)-1;Y(this,dt,lt,_t,be,0)}let It=1,Nt=0;for(this[lt]=dt&255;++Nt<_t&&(It*=256);)this[lt+Nt]=dt/It&255;return lt+_t},p.prototype.writeUintBE=p.prototype.writeUIntBE=function(dt,lt,_t,qt){if(dt=+dt,lt=lt>>>0,_t=_t>>>0,!qt){const be=Math.pow(2,8*_t)-1;Y(this,dt,lt,_t,be,0)}let It=_t-1,Nt=1;for(this[lt+It]=dt&255;--It>=0&&(Nt*=256);)this[lt+It]=dt/Nt&255;return lt+_t},p.prototype.writeUint8=p.prototype.writeUInt8=function(dt,lt,_t){return dt=+dt,lt=lt>>>0,_t||Y(this,dt,lt,1,255,0),this[lt]=dt&255,lt+1},p.prototype.writeUint16LE=p.prototype.writeUInt16LE=function(dt,lt,_t){return dt=+dt,lt=lt>>>0,_t||Y(this,dt,lt,2,65535,0),this[lt]=dt&255,this[lt+1]=dt>>>8,lt+2},p.prototype.writeUint16BE=p.prototype.writeUInt16BE=function(dt,lt,_t){return dt=+dt,lt=lt>>>0,_t||Y(this,dt,lt,2,65535,0),this[lt]=dt>>>8,this[lt+1]=dt&255,lt+2},p.prototype.writeUint32LE=p.prototype.writeUInt32LE=function(dt,lt,_t){return dt=+dt,lt=lt>>>0,_t||Y(this,dt,lt,4,4294967295,0),this[lt+3]=dt>>>24,this[lt+2]=dt>>>16,this[lt+1]=dt>>>8,this[lt]=dt&255,lt+4},p.prototype.writeUint32BE=p.prototype.writeUInt32BE=function(dt,lt,_t){return dt=+dt,lt=lt>>>0,_t||Y(this,dt,lt,4,4294967295,0),this[lt]=dt>>>24,this[lt+1]=dt>>>16,this[lt+2]=dt>>>8,this[lt+3]=dt&255,lt+4};function at(yt,dt,lt,_t,qt){St(dt,_t,qt,yt,lt,7);let It=Number(dt&BigInt(4294967295));yt[lt++]=It,It=It>>8,yt[lt++]=It,It=It>>8,yt[lt++]=It,It=It>>8,yt[lt++]=It;let Nt=Number(dt>>BigInt(32)&BigInt(4294967295));return yt[lt++]=Nt,Nt=Nt>>8,yt[lt++]=Nt,Nt=Nt>>8,yt[lt++]=Nt,Nt=Nt>>8,yt[lt++]=Nt,lt}function ot(yt,dt,lt,_t,qt){St(dt,_t,qt,yt,lt,7);let It=Number(dt&BigInt(4294967295));yt[lt+7]=It,It=It>>8,yt[lt+6]=It,It=It>>8,yt[lt+5]=It,It=It>>8,yt[lt+4]=It;let Nt=Number(dt>>BigInt(32)&BigInt(4294967295));return yt[lt+3]=Nt,Nt=Nt>>8,yt[lt+2]=Nt,Nt=Nt>>8,yt[lt+1]=Nt,Nt=Nt>>8,yt[lt]=Nt,lt+8}p.prototype.writeBigUInt64LE=$t(function(dt,lt=0){return at(this,dt,lt,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeBigUInt64BE=$t(function(dt,lt=0){return ot(this,dt,lt,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeIntLE=function(dt,lt,_t,qt){if(dt=+dt,lt=lt>>>0,!qt){const Vt=Math.pow(2,8*_t-1);Y(this,dt,lt,_t,Vt-1,-Vt)}let It=0,Nt=1,be=0;for(this[lt]=dt&255;++It<_t&&(Nt*=256);)dt<0&&be===0&&this[lt+It-1]!==0&&(be=1),this[lt+It]=(dt/Nt>>0)-be&255;return lt+_t},p.prototype.writeIntBE=function(dt,lt,_t,qt){if(dt=+dt,lt=lt>>>0,!qt){const Vt=Math.pow(2,8*_t-1);Y(this,dt,lt,_t,Vt-1,-Vt)}let It=_t-1,Nt=1,be=0;for(this[lt+It]=dt&255;--It>=0&&(Nt*=256);)dt<0&&be===0&&this[lt+It+1]!==0&&(be=1),this[lt+It]=(dt/Nt>>0)-be&255;return lt+_t},p.prototype.writeInt8=function(dt,lt,_t){return dt=+dt,lt=lt>>>0,_t||Y(this,dt,lt,1,127,-128),dt<0&&(dt=255+dt+1),this[lt]=dt&255,lt+1},p.prototype.writeInt16LE=function(dt,lt,_t){return dt=+dt,lt=lt>>>0,_t||Y(this,dt,lt,2,32767,-32768),this[lt]=dt&255,this[lt+1]=dt>>>8,lt+2},p.prototype.writeInt16BE=function(dt,lt,_t){return dt=+dt,lt=lt>>>0,_t||Y(this,dt,lt,2,32767,-32768),this[lt]=dt>>>8,this[lt+1]=dt&255,lt+2},p.prototype.writeInt32LE=function(dt,lt,_t){return dt=+dt,lt=lt>>>0,_t||Y(this,dt,lt,4,2147483647,-2147483648),this[lt]=dt&255,this[lt+1]=dt>>>8,this[lt+2]=dt>>>16,this[lt+3]=dt>>>24,lt+4},p.prototype.writeInt32BE=function(dt,lt,_t){return dt=+dt,lt=lt>>>0,_t||Y(this,dt,lt,4,2147483647,-2147483648),dt<0&&(dt=4294967295+dt+1),this[lt]=dt>>>24,this[lt+1]=dt>>>16,this[lt+2]=dt>>>8,this[lt+3]=dt&255,lt+4},p.prototype.writeBigInt64LE=$t(function(dt,lt=0){return at(this,dt,lt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),p.prototype.writeBigInt64BE=$t(function(dt,lt=0){return ot(this,dt,lt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ht(yt,dt,lt,_t,qt,It){if(lt+_t>yt.length)throw new RangeError("Index out of range");if(lt<0)throw new RangeError("Index out of range")}function tt(yt,dt,lt,_t,qt){return dt=+dt,lt=lt>>>0,qt||ht(yt,dt,lt,4),b.write(yt,dt,lt,_t,23,4),lt+4}p.prototype.writeFloatLE=function(dt,lt,_t){return tt(this,dt,lt,!0,_t)},p.prototype.writeFloatBE=function(dt,lt,_t){return tt(this,dt,lt,!1,_t)};function it(yt,dt,lt,_t,qt){return dt=+dt,lt=lt>>>0,qt||ht(yt,dt,lt,8),b.write(yt,dt,lt,_t,52,8),lt+8}p.prototype.writeDoubleLE=function(dt,lt,_t){return it(this,dt,lt,!0,_t)},p.prototype.writeDoubleBE=function(dt,lt,_t){return it(this,dt,lt,!1,_t)},p.prototype.copy=function(dt,lt,_t,qt){if(!p.isBuffer(dt))throw new TypeError("argument should be a Buffer");if(_t||(_t=0),!qt&&qt!==0&&(qt=this.length),lt>=dt.length&&(lt=dt.length),lt||(lt=0),qt>0&&qt<_t&&(qt=_t),qt===_t||dt.length===0||this.length===0)return 0;if(lt<0)throw new RangeError("targetStart out of bounds");if(_t<0||_t>=this.length)throw new RangeError("Index out of range");if(qt<0)throw new RangeError("sourceEnd out of bounds");qt>this.length&&(qt=this.length),dt.length-lt<qt-_t&&(qt=dt.length-lt+_t);const It=qt-_t;return this===dt&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(lt,_t,qt):Uint8Array.prototype.set.call(dt,this.subarray(_t,qt),lt),It},p.prototype.fill=function(dt,lt,_t,qt){if(typeof dt=="string"){if(typeof lt=="string"?(qt=lt,lt=0,_t=this.length):typeof _t=="string"&&(qt=_t,_t=this.length),qt!==void 0&&typeof qt!="string")throw new TypeError("encoding must be a string");if(typeof qt=="string"&&!p.isEncoding(qt))throw new TypeError("Unknown encoding: "+qt);if(dt.length===1){const Nt=dt.charCodeAt(0);(qt==="utf8"&&Nt<128||qt==="latin1")&&(dt=Nt)}}else typeof dt=="number"?dt=dt&255:typeof dt=="boolean"&&(dt=Number(dt));if(lt<0||this.length<lt||this.length<_t)throw new RangeError("Out of range index");if(_t<=lt)return this;lt=lt>>>0,_t=_t===void 0?this.length:_t>>>0,dt||(dt=0);let It;if(typeof dt=="number")for(It=lt;It<_t;++It)this[It]=dt;else{const Nt=p.isBuffer(dt)?dt:p.from(dt,qt),be=Nt.length;if(be===0)throw new TypeError('The value "'+dt+'" is invalid for argument "value"');for(It=0;It<_t-lt;++It)this[It+lt]=Nt[It%be]}return this};const Z={};function rt(yt,dt,lt){Z[yt]=class extends lt{constructor(){super(),Object.defineProperty(this,"message",{value:dt.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${yt}]`,this.stack,delete this.name}get code(){return yt}set code(qt){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:qt,writable:!0})}toString(){return`${this.name} [${yt}]: ${this.message}`}}}rt("ERR_BUFFER_OUT_OF_BOUNDS",function(yt){return yt?`${yt} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),rt("ERR_INVALID_ARG_TYPE",function(yt,dt){return`The "${yt}" argument must be of type number. Received type ${typeof dt}`},TypeError),rt("ERR_OUT_OF_RANGE",function(yt,dt,lt){let _t=`The value of "${yt}" is out of range.`,qt=lt;return Number.isInteger(lt)&&Math.abs(lt)>2**32?qt=wt(String(lt)):typeof lt=="bigint"&&(qt=String(lt),(lt>BigInt(2)**BigInt(32)||lt<-(BigInt(2)**BigInt(32)))&&(qt=wt(qt)),qt+="n"),_t+=` It must be ${dt}. Received ${qt}`,_t},RangeError);function wt(yt){let dt="",lt=yt.length;const _t=yt[0]==="-"?1:0;for(;lt>=_t+4;lt-=3)dt=`_${yt.slice(lt-3,lt)}${dt}`;return`${yt.slice(0,lt)}${dt}`}function gt(yt,dt,lt){Lt(dt,"offset"),(yt[dt]===void 0||yt[dt+lt]===void 0)&&At(dt,yt.length-(lt+1))}function St(yt,dt,lt,_t,qt,It){if(yt>lt||yt<dt){const Nt=typeof dt=="bigint"?"n":"";let be;throw It>3?dt===0||dt===BigInt(0)?be=`>= 0${Nt} and < 2${Nt} ** ${(It+1)*8}${Nt}`:be=`>= -(2${Nt} ** ${(It+1)*8-1}${Nt}) and < 2 ** ${(It+1)*8-1}${Nt}`:be=`>= ${dt}${Nt} and <= ${lt}${Nt}`,new Z.ERR_OUT_OF_RANGE("value",be,yt)}gt(_t,qt,It)}function Lt(yt,dt){if(typeof yt!="number")throw new Z.ERR_INVALID_ARG_TYPE(dt,"number",yt)}function At(yt,dt,lt){throw Math.floor(yt)!==yt?(Lt(yt,lt),new Z.ERR_OUT_OF_RANGE(lt||"offset","an integer",yt)):dt<0?new Z.ERR_BUFFER_OUT_OF_BOUNDS:new Z.ERR_OUT_OF_RANGE(lt||"offset",`>= ${lt?1:0} and <= ${dt}`,yt)}const jt=/[^+/0-9A-Za-z-_]/g;function Qt(yt){if(yt=yt.split("=")[0],yt=yt.trim().replace(jt,""),yt.length<2)return"";for(;yt.length%4!==0;)yt=yt+"=";return yt}function Dt(yt,dt){dt=dt||1/0;let lt;const _t=yt.length;let qt=null;const It=[];for(let Nt=0;Nt<_t;++Nt){if(lt=yt.charCodeAt(Nt),lt>55295&&lt<57344){if(!qt){if(lt>56319){(dt-=3)>-1&&It.push(239,191,189);continue}else if(Nt+1===_t){(dt-=3)>-1&&It.push(239,191,189);continue}qt=lt;continue}if(lt<56320){(dt-=3)>-1&&It.push(239,191,189),qt=lt;continue}lt=(qt-55296<<10|lt-56320)+65536}else qt&&(dt-=3)>-1&&It.push(239,191,189);if(qt=null,lt<128){if((dt-=1)<0)break;It.push(lt)}else if(lt<2048){if((dt-=2)<0)break;It.push(lt>>6|192,lt&63|128)}else if(lt<65536){if((dt-=3)<0)break;It.push(lt>>12|224,lt>>6&63|128,lt&63|128)}else if(lt<1114112){if((dt-=4)<0)break;It.push(lt>>18|240,lt>>12&63|128,lt>>6&63|128,lt&63|128)}else throw new Error("Invalid code point")}return It}function zt(yt){const dt=[];for(let lt=0;lt<yt.length;++lt)dt.push(yt.charCodeAt(lt)&255);return dt}function ft(yt,dt){let lt,_t,qt;const It=[];for(let Nt=0;Nt<yt.length&&!((dt-=2)<0);++Nt)lt=yt.charCodeAt(Nt),_t=lt>>8,qt=lt%256,It.push(qt),It.push(_t);return It}function pt(yt){return w.toByteArray(Qt(yt))}function mt(yt,dt,lt,_t){let qt;for(qt=0;qt<_t&&!(qt+lt>=dt.length||qt>=yt.length);++qt)dt[qt+lt]=yt[qt];return qt}function Mt(yt,dt){return yt instanceof dt||yt!=null&&yt.constructor!=null&&yt.constructor.name!=null&&yt.constructor.name===dt.name}function xt(yt){return yt!==yt}const kt=function(){const yt="0123456789abcdef",dt=new Array(256);for(let lt=0;lt<16;++lt){const _t=lt*16;for(let qt=0;qt<16;++qt)dt[_t+qt]=yt[lt]+yt[qt]}return dt}();function $t(yt){return typeof BigInt>"u"?Pt:yt}function Pt(){throw new Error("BigInt not supported")}})(buffer),window.Buffer=buffer.Buffer,globalThis.Buffer=buffer.Buffer;var s=($,w,b)=>new Promise((j,O)=>{var I=N=>{try{p(b.next(N))}catch(M){O(M)}},q=N=>{try{p(b.throw(N))}catch(M){O(M)}},p=N=>N.done?j(N.value):Promise.resolve(N.value).then(I,q);p((b=b.apply($,w)).next())});class m extends R{constructor(w,b){super(w??axios$1.create(),b)}getKnowledge(w,b){return s(this,null,function*(){return this.get("/knowledge",{docId:w,name:b})})}postKnowledge(w){return s(this,null,function*(){return this.post("/knowledge",w)})}getKnowledgeId(w){return s(this,null,function*(){return this.get(`/knowledge/${w}`)})}patchKnowledgeId(w,b){return s(this,null,function*(){return this.patch(`/knowledge/${w}`,b)})}delKnowledgeId(w){return s(this,null,function*(){return this.delete(`/knowledge/${w}`)})}getKnowledgeIdFile(w){return s(this,null,function*(){return this.get(`/knowledge/${w}/file`)})}getKnowledgeIdFileList(w,b){return s(this,null,function*(){return this.listPaged(`/knowledge/${w}/file`,b)})}postKnowledgeIdFile(w,b){return s(this,null,function*(){return this.post(`/knowledge/${w}/file`,b)})}getUploadTicket(w){return s(this,null,function*(){return this.get("/upload/ticket",w)})}delKnowledgeIdFileFid(w,b){return s(this,null,function*(){return this.delete(`/knowledge/${w}/file/${b}`)})}patchKnowledgeIdFileFid(w,b,j){return s(this,null,function*(){return this.patch(`/knowledge/${w}/file/${b}`,j)})}listSessions(w,b){return s(this,null,function*(){return this.get(`/application/${w}/sessionsa`,b)})}postSession(w,b){return s(this,null,function*(){return this.post(`/application/${w}/sessions`,b)})}getSession(w,b){return s(this,null,function*(){return this.get(`/application/${w}/sessions/${b}`)})}patchSessionsId(w,b,j){return s(this,null,function*(){return this.patch(`/application/${w}/sessions/${b}`,j)})}delSessionsId(w,b){return s(this,null,function*(){return this.delete(`/application/${w}/sessions/${b}`)})}getSessionKnowledgeFile(w,b,j){return s(this,null,function*(){return this.get(`/application/${w}session/${b}/file/${j}`)})}postSessionKnowledgeFile(w,b,j){return s(this,null,function*(){return this.post(`/application/${w}session/${b}/file`,j)})}postComments(w){return s(this,null,function*(){return this.post("/comments",w)})}getChatHistorySessionId(w,b,j){return s(this,null,function*(){return this.get(`application/${w}/chatHistory/${b}`,j)})}postChatHistorySessionId(w,b){return s(this,null,function*(){return this.post(`/chatHistory/${w}`,b)})}getApplications(w){return s(this,null,function*(){return this.get("/applications",w)})}postApplication(w){return s(this,null,function*(){return this.post("/applications",w)})}getApplicationId(w){return s(this,null,function*(){return this.get(`/applications/${w}`)})}patchApplicationId(w,b){return s(this,null,function*(){return this.patch(`/applications/${w}`,b)})}delApplicationId(w){return s(this,null,function*(){return this.delete(`/applications/${w}`)})}getApplicationIdSessions(w){return s(this,null,function*(){return this.get(`/applications/${w}/session`)})}patchFileId(w,b){return s(this,null,function*(){return this.patch(`/file/${w}`,b)})}getCvforceResource(w){return s(this,null,function*(){return this.get("/cvforce/resource",w)})}postKnowledgeIdComposedFiles(w,b){return s(this,null,function*(){return this.post(`/knowledge/${w}/composedFiles`,b)})}getTokensApplicationId(w,b){return s(this,null,function*(){return this.get(`/tokens/${w}`,b)})}getTokens(w){return s(this,null,function*(){return this.get("/tokens",w)})}uploadMinioFile(w,b){return s(this,null,function*(){return new Promise((j,O)=>{const I=new FileReader;I.readAsArrayBuffer(b),I.onload=q=>{minioExports.initMinio({endPoint:w.endpoints[0],useSSL:w.useSSL,accessKey:w.accessKey,secretKey:w.secretKey});const p=Buffer.from(q.target.result),N={"Content-Type":"application/octet-stream"};minioExports.putObjectBuffer(w.bucket,w.fileKeys[0],p,N,M=>{if(M)throw console.error(M),Error(M);j(w.fileKeys[0])})}})})}uploadFile(w,b){return s(this,null,function*(){const j={files:[b.name],isv:"minio",knowledgeId:w};return this.getUploadTicket(j).then(O=>this.uploadMinioFile(O.minio,b)).catch(O=>{throw Error(O)})})}uploadFiles(w,b){return s(this,null,function*(){const j={files:b.map(O=>O.name),isv:"minio",knowledgeId:w};return this.getUploadTicket(j).then(O=>Promise.all(b.map(I=>this.uploadMinioFile(O.minio,I)))).catch(O=>{throw Error(O)})})}getAecModels(){return s(this,null,function*(){return this.get("/aecModels")})}postTextFilter(w){return s(this,null,function*(){return this.post("/textFilter",w)})}getTenantModel(){return s(this,null,function*(){return this.get("/tenantModel")})}getPrompts(w,b){return s(this,null,function*(){return this.get(`application/${w}/promptVariables`,b)})}postPrompt(w,b){return s(this,null,function*(){return this.post(`application/${w}/promptVariables`,b)})}patchPromptId(w,b,j){return s(this,null,function*(){return this.patch(`application/${w}/promptVariables/${b}`,j)})}delPromptId(w,b){return s(this,null,function*(){return this.delete(`application/${w}/promptVariables/${b}`)})}getSessionPrompts(w){return s(this,null,function*(){return this.get(`session/${w}/promptVariables`)})}patchSessionPromptId(w,b,j){return s(this,null,function*(){return this.patch(`session/${b}/promptVariables/${w}`,j)})}getApplicationIdSessionIdPromptVariables(w,b){return s(this,null,function*(){return this.get(`/application/${w}/session/${b}/promptVariables`)})}patchApplicationIdSessionpromptVariablesId(w,b,j,O){return s(this,null,function*(){return this.patch(`/application/${w}/session/${b}/promptVariables/${j}`,O)})}getPresetApplication(w){return s(this,null,function*(){return this.get("presetApplication",w)})}postKnowledgeConfig(w){return s(this,null,function*(){return this.post("/knowledgeConfig",w)})}getKnowledgeConfig(w){return s(this,null,function*(){return this.get(`/knowledgeConfig/${w}`)})}patchKnowledgeConfig(w,b){return s(this,null,function*(){return this.patch(`/knowledgeConfig/${w}`,b)})}getKnowledgeIdFileId(w,b){return s(this,null,function*(){return this.get(`/knowledge/${w}/file/${b}`)})}getKnowledgeIdFileIdData(w,b,j){return s(this,null,function*(){return this.listPaged(`/knowledge/${w}/file/${b}/data`,j)})}postKnowledgeIdFileIdData(w,b,j){return s(this,null,function*(){return this.post(`/knowledge/${w}/file/${b}/data`,{data:j})})}patchKnowledgeIdFileIdData(w,b,j,O){return s(this,null,function*(){return this.patch(`/knowledge/${w}/file/${b}/data/${j}`,{data:O})})}delKnowledgeIdFileIdDataDid(w,b,j){return s(this,null,function*(){return this.delete(`/knowledge/${w}/file/${b}/data/${j}`)})}getPresetKnowledge(w){return s(this,null,function*(){return this.get("/presetKnowledge",w)})}patchSessionsIdContext(w){return s(this,null,function*(){return this.patch(`/sessions/${w}/context`,{})})}postResourceToken(w){return s(this,null,function*(){return this.post("/resourceToken",w)})}getApplicationIdSession(w){return s(this,null,function*(){return this.get(`/application/${w}/session`)})}patchApplicationIdSessionsIdContext(w,b){return s(this,null,function*(){return this.patch(`/application/${w}/sessions/${b}/context`,{})})}postApplicationIdSessions(w,b){return s(this,null,function*(){return this.post(`/application/${w}/sessions`,b)})}getApplicationIdChatHistorySessionId(w,b){return s(this,null,function*(){return this.get(`/application/${w}/chatHistory/${b}`)})}postApplicationIdChatHistorySessionIdComments(w,b,j){return s(this,null,function*(){return this.post(`/application/${w}/sessions/${b}/comments`,j)})}getApplicationIdPrompts(w,b){return s(this,null,function*(){return this.get(`/application/${w}/promptVariables`,b)})}postKnowledgeSourceFile(w,b,j){return s(this,null,function*(){return this.post(`/knowledge/${w}/sourceFile/${b}`,j)})}getMetadata(w){return s(this,null,function*(){return this.get("/metadata",w)})}postGeneques(w){return s(this,null,function*(){return this.post("/geneques",w)})}getBaseModel(w){return s(this,null,function*(){return this.get("/baseModelInfo",{serviceId:w})})}}var n=($=>($[$.Robot=1]="Robot",$[$.User=2]="User",$[$.System=3]="System",$))(n||{}),L=($=>($[$.Idle=0]="Idle",$[$.Quoted=1]="Quoted",$))(L||{}),k=($=>($[$.Dialog=0]="Dialog",$[$.Text=1]="Text",$[$.Agent=2]="Agent",$[$.All=3]="All",$))(k||{});function getCVForceService($,w,b){console.log("getCVForceService apiBase",$);const j=M=>{var T;return w&&(isExpired(w)&&b(403,"aiotToken is timeout"),M.headers=(T=M.headers)!==null&&T!==void 0?T:{},M.headers=Object.assign(Object.assign({},M.headers),{Authorization:w?`Bearer ${w}`:""})),M};function O(M,T=!0){const S=`${$}${M}`,B=axios$1.create({baseURL:S});return T&&B.interceptors.request.use(j),B}const I=(M,T)=>{M===401&&b(M,"aiotToken is invalid")},q=(M,T)=>{M!==10001&&M!==10215&&b(M,T)},p=O("/data/v1");return new m(p,{onHttpStatusError:I,onAppStatusError:q})}const PACKET_TYPES=Object.create(null);PACKET_TYPES.open="0",PACKET_TYPES.close="1",PACKET_TYPES.ping="2",PACKET_TYPES.pong="3",PACKET_TYPES.message="4",PACKET_TYPES.upgrade="5",PACKET_TYPES.noop="6";const PACKET_TYPES_REVERSE=Object.create(null);Object.keys(PACKET_TYPES).forEach($=>{PACKET_TYPES_REVERSE[PACKET_TYPES[$]]=$});const ERROR_PACKET={type:"error",data:"parser error"},withNativeBlob$1=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",withNativeArrayBuffer$2=typeof ArrayBuffer=="function",isView$1=$=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView($):$&&$.buffer instanceof ArrayBuffer,encodePacket=({type:$,data:w},b,j)=>withNativeBlob$1&&w instanceof Blob?b?j(w):encodeBlobAsBase64(w,j):withNativeArrayBuffer$2&&(w instanceof ArrayBuffer||isView$1(w))?b?j(w):encodeBlobAsBase64(new Blob([w]),j):j(PACKET_TYPES[$]+(w||"")),encodeBlobAsBase64=($,w)=>{const b=new FileReader;return b.onload=function(){const j=b.result.split(",")[1];w("b"+(j||""))},b.readAsDataURL($)};function toArray($){return $ instanceof Uint8Array?$:$ instanceof ArrayBuffer?new Uint8Array($):new Uint8Array($.buffer,$.byteOffset,$.byteLength)}let TEXT_ENCODER;function encodePacketToBinary($,w){if(withNativeBlob$1&&$.data instanceof Blob)return $.data.arrayBuffer().then(toArray).then(w);if(withNativeArrayBuffer$2&&($.data instanceof ArrayBuffer||isView$1($.data)))return w(toArray($.data));encodePacket($,!1,b=>{TEXT_ENCODER||(TEXT_ENCODER=new TextEncoder),w(TEXT_ENCODER.encode(b))})}const chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lookup$1=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let $=0;$<chars.length;$++)lookup$1[chars.charCodeAt($)]=$;const decode$1=$=>{let w=$.length*.75,b=$.length,j,O=0,I,q,p,N;$[$.length-1]==="="&&(w--,$[$.length-2]==="="&&w--);const M=new ArrayBuffer(w),T=new Uint8Array(M);for(j=0;j<b;j+=4)I=lookup$1[$.charCodeAt(j)],q=lookup$1[$.charCodeAt(j+1)],p=lookup$1[$.charCodeAt(j+2)],N=lookup$1[$.charCodeAt(j+3)],T[O++]=I<<2|q>>4,T[O++]=(q&15)<<4|p>>2,T[O++]=(p&3)<<6|N&63;return M},withNativeArrayBuffer$1=typeof ArrayBuffer=="function",decodePacket=($,w)=>{if(typeof $!="string")return{type:"message",data:mapBinary($,w)};const b=$.charAt(0);return b==="b"?{type:"message",data:decodeBase64Packet($.substring(1),w)}:PACKET_TYPES_REVERSE[b]?$.length>1?{type:PACKET_TYPES_REVERSE[b],data:$.substring(1)}:{type:PACKET_TYPES_REVERSE[b]}:ERROR_PACKET},decodeBase64Packet=($,w)=>{if(withNativeArrayBuffer$1){const b=decode$1($);return mapBinary(b,w)}else return{base64:!0,data:$}},mapBinary=($,w)=>{switch(w){case"blob":return $ instanceof Blob?$:new Blob([$]);case"arraybuffer":default:return $ instanceof ArrayBuffer?$:$.buffer}},SEPARATOR=String.fromCharCode(30),encodePayload=($,w)=>{const b=$.length,j=new Array(b);let O=0;$.forEach((I,q)=>{encodePacket(I,!1,p=>{j[q]=p,++O===b&&w(j.join(SEPARATOR))})})},decodePayload=($,w)=>{const b=$.split(SEPARATOR),j=[];for(let O=0;O<b.length;O++){const I=decodePacket(b[O],w);if(j.push(I),I.type==="error")break}return j};function createPacketEncoderStream(){return new TransformStream({transform($,w){encodePacketToBinary($,b=>{const j=b.length;let O;if(j<126)O=new Uint8Array(1),new DataView(O.buffer).setUint8(0,j);else if(j<65536){O=new Uint8Array(3);const I=new DataView(O.buffer);I.setUint8(0,126),I.setUint16(1,j)}else{O=new Uint8Array(9);const I=new DataView(O.buffer);I.setUint8(0,127),I.setBigUint64(1,BigInt(j))}$.data&&typeof $.data!="string"&&(O[0]|=128),w.enqueue(O),w.enqueue(b)})}})}let TEXT_DECODER;function totalLength($){return $.reduce((w,b)=>w+b.length,0)}function concatChunks($,w){if($[0].length===w)return $.shift();const b=new Uint8Array(w);let j=0;for(let O=0;O<w;O++)b[O]=$[0][j++],j===$[0].length&&($.shift(),j=0);return $.length&&j<$[0].length&&($[0]=$[0].slice(j)),b}function createPacketDecoderStream($,w){TEXT_DECODER||(TEXT_DECODER=new TextDecoder);const b=[];let j=0,O=-1,I=!1;return new TransformStream({transform(q,p){for(b.push(q);;){if(j===0){if(totalLength(b)<1)break;const N=concatChunks(b,1);I=(N[0]&128)===128,O=N[0]&127,O<126?j=3:O===126?j=1:j=2}else if(j===1){if(totalLength(b)<2)break;const N=concatChunks(b,2);O=new DataView(N.buffer,N.byteOffset,N.length).getUint16(0),j=3}else if(j===2){if(totalLength(b)<8)break;const N=concatChunks(b,8),M=new DataView(N.buffer,N.byteOffset,N.length),T=M.getUint32(0);if(T>Math.pow(2,53-32)-1){p.enqueue(ERROR_PACKET);break}O=T*Math.pow(2,32)+M.getUint32(4),j=3}else{if(totalLength(b)<O)break;const N=concatChunks(b,O);p.enqueue(decodePacket(I?N:TEXT_DECODER.decode(N),w)),j=0}if(O===0||O>$){p.enqueue(ERROR_PACKET);break}}}})}const protocol$1=4;function Emitter($){if($)return mixin($)}function mixin($){for(var w in Emitter.prototype)$[w]=Emitter.prototype[w];return $}Emitter.prototype.on=Emitter.prototype.addEventListener=function($,w){return this._callbacks=this._callbacks||{},(this._callbacks["$"+$]=this._callbacks["$"+$]||[]).push(w),this},Emitter.prototype.once=function($,w){function b(){this.off($,b),w.apply(this,arguments)}return b.fn=w,this.on($,b),this},Emitter.prototype.off=Emitter.prototype.removeListener=Emitter.prototype.removeAllListeners=Emitter.prototype.removeEventListener=function($,w){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var b=this._callbacks["$"+$];if(!b)return this;if(arguments.length==1)return delete this._callbacks["$"+$],this;for(var j,O=0;O<b.length;O++)if(j=b[O],j===w||j.fn===w){b.splice(O,1);break}return b.length===0&&delete this._callbacks["$"+$],this},Emitter.prototype.emit=function($){this._callbacks=this._callbacks||{};for(var w=new Array(arguments.length-1),b=this._callbacks["$"+$],j=1;j<arguments.length;j++)w[j-1]=arguments[j];if(b){b=b.slice(0);for(var j=0,O=b.length;j<O;++j)b[j].apply(this,w)}return this},Emitter.prototype.emitReserved=Emitter.prototype.emit,Emitter.prototype.listeners=function($){return this._callbacks=this._callbacks||{},this._callbacks["$"+$]||[]},Emitter.prototype.hasListeners=function($){return!!this.listeners($).length};const globalThisShim=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function pick($,...w){return w.reduce((b,j)=>($.hasOwnProperty(j)&&(b[j]=$[j]),b),{})}const NATIVE_SET_TIMEOUT=globalThisShim.setTimeout,NATIVE_CLEAR_TIMEOUT=globalThisShim.clearTimeout;function installTimerFunctions($,w){w.useNativeTimers?($.setTimeoutFn=NATIVE_SET_TIMEOUT.bind(globalThisShim),$.clearTimeoutFn=NATIVE_CLEAR_TIMEOUT.bind(globalThisShim)):($.setTimeoutFn=globalThisShim.setTimeout.bind(globalThisShim),$.clearTimeoutFn=globalThisShim.clearTimeout.bind(globalThisShim))}const BASE64_OVERHEAD=1.33;function byteLength($){return typeof $=="string"?utf8Length($):Math.ceil(($.byteLength||$.size)*BASE64_OVERHEAD)}function utf8Length($){let w=0,b=0;for(let j=0,O=$.length;j<O;j++)w=$.charCodeAt(j),w<128?b+=1:w<2048?b+=2:w<55296||w>=57344?b+=3:(j++,b+=4);return b}function encode$1($){let w="";for(let b in $)$.hasOwnProperty(b)&&(w.length&&(w+="&"),w+=encodeURIComponent(b)+"="+encodeURIComponent($[b]));return w}function decode($){let w={},b=$.split("&");for(let j=0,O=b.length;j<O;j++){let I=b[j].split("=");w[decodeURIComponent(I[0])]=decodeURIComponent(I[1])}return w}class TransportError extends Error{constructor(w,b,j){super(w),this.description=b,this.context=j,this.type="TransportError"}}class Transport extends Emitter{constructor(w){super(),this.writable=!1,installTimerFunctions(this,w),this.opts=w,this.query=w.query,this.socket=w.socket}onError(w,b,j){return super.emitReserved("error",new TransportError(w,b,j)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(w){this.readyState==="open"&&this.write(w)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(w){const b=decodePacket(w,this.socket.binaryType);this.onPacket(b)}onPacket(w){super.emitReserved("packet",w)}onClose(w){this.readyState="closed",super.emitReserved("close",w)}pause(w){}createUri(w,b={}){return w+"://"+this._hostname()+this._port()+this.opts.path+this._query(b)}_hostname(){const w=this.opts.hostname;return w.indexOf(":")===-1?w:"["+w+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(w){const b=encode$1(w);return b.length?"?"+b:""}}const alphabet="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),length=64,map={};let seed=0,i=0,prev;function encode($){let w="";do w=alphabet[$%length]+w,$=Math.floor($/length);while($>0);return w}function yeast(){const $=encode(+new Date);return $!==prev?(seed=0,prev=$):$+"."+encode(seed++)}for(;i<length;i++)map[alphabet[i]]=i;let value=!1;try{value=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch($){}const hasCORS=value;function XHR($){const w=$.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!w||hasCORS))return new XMLHttpRequest}catch{}if(!w)try{return new globalThisShim[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function createCookieJar(){}function empty(){}const hasXHR2=function(){return new XHR({xdomain:!1}).responseType!=null}();class Polling extends Transport{constructor(w){if(super(w),this.polling=!1,typeof location<"u"){const j=location.protocol==="https:";let O=location.port;O||(O=j?"443":"80"),this.xd=typeof location<"u"&&w.hostname!==location.hostname||O!==w.port}const b=w&&w.forceBase64;this.supportsBinary=hasXHR2&&!b,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(w){this.readyState="pausing";const b=()=>{this.readyState="paused",w()};if(this.polling||!this.writable){let j=0;this.polling&&(j++,this.once("pollComplete",function(){--j||b()})),this.writable||(j++,this.once("drain",function(){--j||b()}))}else b()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(w){const b=j=>{if(this.readyState==="opening"&&j.type==="open"&&this.onOpen(),j.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(j)};decodePayload(w,this.socket.binaryType).forEach(b),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const w=()=>{this.write([{type:"close"}])};this.readyState==="open"?w():this.once("open",w)}write(w){this.writable=!1,encodePayload(w,b=>{this.doWrite(b,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const w=this.opts.secure?"https":"http",b=this.query||{};return this.opts.timestampRequests!==!1&&(b[this.opts.timestampParam]=yeast()),!this.supportsBinary&&!b.sid&&(b.b64=1),this.createUri(w,b)}request(w={}){return Object.assign(w,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Request(this.uri(),w)}doWrite(w,b){const j=this.request({method:"POST",data:w});j.on("success",b),j.on("error",(O,I)=>{this.onError("xhr post error",O,I)})}doPoll(){const w=this.request();w.on("data",this.onData.bind(this)),w.on("error",(b,j)=>{this.onError("xhr poll error",b,j)}),this.pollXhr=w}}class Request extends Emitter{constructor(w,b){super(),installTimerFunctions(this,b),this.opts=b,this.method=b.method||"GET",this.uri=w,this.data=b.data!==void 0?b.data:null,this.create()}create(){var w;const b=pick(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");b.xdomain=!!this.opts.xd;const j=this.xhr=new XHR(b);try{j.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){j.setDisableHeaderCheck&&j.setDisableHeaderCheck(!0);for(let O in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(O)&&j.setRequestHeader(O,this.opts.extraHeaders[O])}}catch{}if(this.method==="POST")try{j.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{j.setRequestHeader("Accept","*/*")}catch{}(w=this.opts.cookieJar)===null||w===void 0||w.addCookies(j),"withCredentials"in j&&(j.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(j.timeout=this.opts.requestTimeout),j.onreadystatechange=()=>{var O;j.readyState===3&&((O=this.opts.cookieJar)===null||O===void 0||O.parseCookies(j)),j.readyState===4&&(j.status===200||j.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof j.status=="number"?j.status:0)},0))},j.send(this.data)}catch(O){this.setTimeoutFn(()=>{this.onError(O)},0);return}typeof document<"u"&&(this.index=Request.requestsCount++,Request.requests[this.index]=this)}onError(w){this.emitReserved("error",w,this.xhr),this.cleanup(!0)}cleanup(w){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=empty,w)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Request.requests[this.index],this.xhr=null}}onLoad(){const w=this.xhr.responseText;w!==null&&(this.emitReserved("data",w),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(Request.requestsCount=0,Request.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",unloadHandler);else if(typeof addEventListener=="function"){const $="onpagehide"in globalThisShim?"pagehide":"unload";addEventListener($,unloadHandler,!1)}}function unloadHandler(){for(let $ in Request.requests)Request.requests.hasOwnProperty($)&&Request.requests[$].abort()}const nextTick=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?w=>Promise.resolve().then(w):(w,b)=>b(w,0))(),WebSocket=globalThisShim.WebSocket||globalThisShim.MozWebSocket,usingBrowserWebSocket=!0,defaultBinaryType="arraybuffer",isReactNative=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class WS extends Transport{constructor(w){super(w),this.supportsBinary=!w.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const w=this.uri(),b=this.opts.protocols,j=isReactNative?{}:pick(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(j.headers=this.opts.extraHeaders);try{this.ws=usingBrowserWebSocket&&!isReactNative?b?new WebSocket(w,b):new WebSocket(w):new WebSocket(w,b,j)}catch(O){return this.emitReserved("error",O)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=w=>this.onClose({description:"websocket connection closed",context:w}),this.ws.onmessage=w=>this.onData(w.data),this.ws.onerror=w=>this.onError("websocket error",w)}write(w){this.writable=!1;for(let b=0;b<w.length;b++){const j=w[b],O=b===w.length-1;encodePacket(j,this.supportsBinary,I=>{const q={};try{usingBrowserWebSocket&&this.ws.send(I)}catch{}O&&nextTick(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const w=this.opts.secure?"wss":"ws",b=this.query||{};return this.opts.timestampRequests&&(b[this.opts.timestampParam]=yeast()),this.supportsBinary||(b.b64=1),this.createUri(w,b)}check(){return!!WebSocket}}class WT extends Transport{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(w=>{this.onError("webtransport error",w)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(w=>{const b=createPacketDecoderStream(Number.MAX_SAFE_INTEGER,this.socket.binaryType),j=w.readable.pipeThrough(b).getReader(),O=createPacketEncoderStream();O.readable.pipeTo(w.writable),this.writer=O.writable.getWriter();const I=()=>{j.read().then(({done:p,value:N})=>{p||(this.onPacket(N),I())}).catch(p=>{})};I();const q={type:"open"};this.query.sid&&(q.data=`{"sid":"${this.query.sid}"}`),this.writer.write(q).then(()=>this.onOpen())})}))}write(w){this.writable=!1;for(let b=0;b<w.length;b++){const j=w[b],O=b===w.length-1;this.writer.write(j).then(()=>{O&&nextTick(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var w;(w=this.transport)===null||w===void 0||w.close()}}const transports={websocket:WS,webtransport:WT,polling:Polling},re=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,parts=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function parse($){if($.length>2e3)throw"URI too long";const w=$,b=$.indexOf("["),j=$.indexOf("]");b!=-1&&j!=-1&&($=$.substring(0,b)+$.substring(b,j).replace(/:/g,";")+$.substring(j,$.length));let O=re.exec($||""),I={},q=14;for(;q--;)I[parts[q]]=O[q]||"";return b!=-1&&j!=-1&&(I.source=w,I.host=I.host.substring(1,I.host.length-1).replace(/;/g,":"),I.authority=I.authority.replace("[","").replace("]","").replace(/;/g,":"),I.ipv6uri=!0),I.pathNames=pathNames(I,I.path),I.queryKey=queryKey(I,I.query),I}function pathNames($,w){const b=/\/{2,9}/g,j=w.replace(b,"/").split("/");return(w.slice(0,1)=="/"||w.length===0)&&j.splice(0,1),w.slice(-1)=="/"&&j.splice(j.length-1,1),j}function queryKey($,w){const b={};return w.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(j,O,I){O&&(b[O]=I)}),b}let Socket$1=class fi extends Emitter{constructor(w,b={}){super(),this.binaryType=defaultBinaryType,this.writeBuffer=[],w&&typeof w=="object"&&(b=w,w=null),w?(w=parse(w),b.hostname=w.host,b.secure=w.protocol==="https"||w.protocol==="wss",b.port=w.port,w.query&&(b.query=w.query)):b.host&&(b.hostname=parse(b.host).host),installTimerFunctions(this,b),this.secure=b.secure!=null?b.secure:typeof location<"u"&&location.protocol==="https:",b.hostname&&!b.port&&(b.port=this.secure?"443":"80"),this.hostname=b.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=b.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=b.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},b),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=decode(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(w){const b=Object.assign({},this.opts.query);b.EIO=protocol$1,b.transport=w,this.id&&(b.sid=this.id);const j=Object.assign({},this.opts,{query:b,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[w]);return new transports[w](j)}open(){let w;if(this.opts.rememberUpgrade&&fi.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)w="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else w=this.transports[0];this.readyState="opening";try{w=this.createTransport(w)}catch{this.transports.shift(),this.open();return}w.open(),this.setTransport(w)}setTransport(w){this.transport&&this.transport.removeAllListeners(),this.transport=w,w.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",b=>this.onClose("transport close",b))}probe(w){let b=this.createTransport(w),j=!1;fi.priorWebsocketSuccess=!1;const O=()=>{j||(b.send([{type:"ping",data:"probe"}]),b.once("packet",S=>{if(!j)if(S.type==="pong"&&S.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",b),!b)return;fi.priorWebsocketSuccess=b.name==="websocket",this.transport.pause(()=>{j||this.readyState!=="closed"&&(T(),this.setTransport(b),b.send([{type:"upgrade"}]),this.emitReserved("upgrade",b),b=null,this.upgrading=!1,this.flush())})}else{const B=new Error("probe error");B.transport=b.name,this.emitReserved("upgradeError",B)}}))};function I(){j||(j=!0,T(),b.close(),b=null)}const q=S=>{const B=new Error("probe error: "+S);B.transport=b.name,I(),this.emitReserved("upgradeError",B)};function p(){q("transport closed")}function N(){q("socket closed")}function M(S){b&&S.name!==b.name&&I()}const T=()=>{b.removeListener("open",O),b.removeListener("error",q),b.removeListener("close",p),this.off("close",N),this.off("upgrading",M)};b.once("open",O),b.once("error",q),b.once("close",p),this.once("close",N),this.once("upgrading",M),this.upgrades.indexOf("webtransport")!==-1&&w!=="webtransport"?this.setTimeoutFn(()=>{j||b.open()},200):b.open()}onOpen(){if(this.readyState="open",fi.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let w=0;const b=this.upgrades.length;for(;w<b;w++)this.probe(this.upgrades[w])}}onPacket(w){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",w),this.emitReserved("heartbeat"),this.resetPingTimeout(),w.type){case"open":this.onHandshake(JSON.parse(w.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const b=new Error("server error");b.code=w.data,this.onError(b);break;case"message":this.emitReserved("data",w.data),this.emitReserved("message",w.data);break}}onHandshake(w){this.emitReserved("handshake",w),this.id=w.sid,this.transport.query.sid=w.sid,this.upgrades=this.filterUpgrades(w.upgrades),this.pingInterval=w.pingInterval,this.pingTimeout=w.pingTimeout,this.maxPayload=w.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 w=this.getWritablePackets();this.transport.send(w),this.prevBufferLen=w.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let b=1;for(let j=0;j<this.writeBuffer.length;j++){const O=this.writeBuffer[j].data;if(O&&(b+=byteLength(O)),j>0&&b>this.maxPayload)return this.writeBuffer.slice(0,j);b+=2}return this.writeBuffer}write(w,b,j){return this.sendPacket("message",w,b,j),this}send(w,b,j){return this.sendPacket("message",w,b,j),this}sendPacket(w,b,j,O){if(typeof b=="function"&&(O=b,b=void 0),typeof j=="function"&&(O=j,j=null),this.readyState==="closing"||this.readyState==="closed")return;j=j||{},j.compress=j.compress!==!1;const I={type:w,data:b,options:j};this.emitReserved("packetCreate",I),this.writeBuffer.push(I),O&&this.once("flush",O),this.flush()}close(){const w=()=>{this.onClose("forced close"),this.transport.close()},b=()=>{this.off("upgrade",b),this.off("upgradeError",b),w()},j=()=>{this.once("upgrade",b),this.once("upgradeError",b)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?j():w()}):this.upgrading?j():w()),this}onError(w){fi.priorWebsocketSuccess=!1,this.emitReserved("error",w),this.onClose("transport error",w)}onClose(w,b){(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",w,b),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(w){const b=[];let j=0;const O=w.length;for(;j<O;j++)~this.transports.indexOf(w[j])&&b.push(w[j]);return b}};Socket$1.protocol=protocol$1;function url($,w="",b){let j=$;b=b||typeof location<"u"&&location,$==null&&($=b.protocol+"//"+b.host),typeof $=="string"&&($.charAt(0)==="/"&&($.charAt(1)==="/"?$=b.protocol+$:$=b.host+$),/^(https?|wss?):\/\//.test($)||(typeof b<"u"?$=b.protocol+"//"+$:$="https://"+$),j=parse($)),j.port||(/^(http|ws)$/.test(j.protocol)?j.port="80":/^(http|ws)s$/.test(j.protocol)&&(j.port="443")),j.path=j.path||"/";const I=j.host.indexOf(":")!==-1?"["+j.host+"]":j.host;return j.id=j.protocol+"://"+I+":"+j.port+w,j.href=j.protocol+"://"+I+(b&&b.port===j.port?"":":"+j.port),j}const withNativeArrayBuffer=typeof ArrayBuffer=="function",isView=$=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView($):$.buffer instanceof ArrayBuffer,toString=Object.prototype.toString,withNativeBlob=typeof Blob=="function"||typeof Blob<"u"&&toString.call(Blob)==="[object BlobConstructor]",withNativeFile=typeof File=="function"||typeof File<"u"&&toString.call(File)==="[object FileConstructor]";function isBinary($){return withNativeArrayBuffer&&($ instanceof ArrayBuffer||isView($))||withNativeBlob&&$ instanceof Blob||withNativeFile&&$ instanceof File}function hasBinary($,w){if(!$||typeof $!="object")return!1;if(Array.isArray($)){for(let b=0,j=$.length;b<j;b++)if(hasBinary($[b]))return!0;return!1}if(isBinary($))return!0;if($.toJSON&&typeof $.toJSON=="function"&&arguments.length===1)return hasBinary($.toJSON(),!0);for(const b in $)if(Object.prototype.hasOwnProperty.call($,b)&&hasBinary($[b]))return!0;return!1}function deconstructPacket($){const w=[],b=$.data,j=$;return j.data=_deconstructPacket(b,w),j.attachments=w.length,{packet:j,buffers:w}}function _deconstructPacket($,w){if(!$)return $;if(isBinary($)){const b={_placeholder:!0,num:w.length};return w.push($),b}else if(Array.isArray($)){const b=new Array($.length);for(let j=0;j<$.length;j++)b[j]=_deconstructPacket($[j],w);return b}else if(typeof $=="object"&&!($ instanceof Date)){const b={};for(const j in $)Object.prototype.hasOwnProperty.call($,j)&&(b[j]=_deconstructPacket($[j],w));return b}return $}function reconstructPacket($,w){return $.data=_reconstructPacket($.data,w),delete $.attachments,$}function _reconstructPacket($,w){if(!$)return $;if($&&$._placeholder===!0){if(typeof $.num=="number"&&$.num>=0&&$.num<w.length)return w[$.num];throw new Error("illegal attachments")}else if(Array.isArray($))for(let b=0;b<$.length;b++)$[b]=_reconstructPacket($[b],w);else if(typeof $=="object")for(const b in $)Object.prototype.hasOwnProperty.call($,b)&&($[b]=_reconstructPacket($[b],w));return $}const RESERVED_EVENTS$1=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],protocol=5;var PacketType;(function($){$[$.CONNECT=0]="CONNECT",$[$.DISCONNECT=1]="DISCONNECT",$[$.EVENT=2]="EVENT",$[$.ACK=3]="ACK",$[$.CONNECT_ERROR=4]="CONNECT_ERROR",$[$.BINARY_EVENT=5]="BINARY_EVENT",$[$.BINARY_ACK=6]="BINARY_ACK"})(PacketType||(PacketType={}));class Encoder{constructor(w){this.replacer=w}encode(w){return(w.type===PacketType.EVENT||w.type===PacketType.ACK)&&hasBinary(w)?this.encodeAsBinary({type:w.type===PacketType.EVENT?PacketType.BINARY_EVENT:PacketType.BINARY_ACK,nsp:w.nsp,data:w.data,id:w.id}):[this.encodeAsString(w)]}encodeAsString(w){let b=""+w.type;return(w.type===PacketType.BINARY_EVENT||w.type===PacketType.BINARY_ACK)&&(b+=w.attachments+"-"),w.nsp&&w.nsp!=="/"&&(b+=w.nsp+","),w.id!=null&&(b+=w.id),w.data!=null&&(b+=JSON.stringify(w.data,this.replacer)),b}encodeAsBinary(w){const b=deconstructPacket(w),j=this.encodeAsString(b.packet),O=b.buffers;return O.unshift(j),O}}function isObject($){return Object.prototype.toString.call($)==="[object Object]"}class Decoder extends Emitter{constructor(w){super(),this.reviver=w}add(w){let b;if(typeof w=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");b=this.decodeString(w);const j=b.type===PacketType.BINARY_EVENT;j||b.type===PacketType.BINARY_ACK?(b.type=j?PacketType.EVENT:PacketType.ACK,this.reconstructor=new BinaryReconstructor(b),b.attachments===0&&super.emitReserved("decoded",b)):super.emitReserved("decoded",b)}else if(isBinary(w)||w.base64)if(this.reconstructor)b=this.reconstructor.takeBinaryData(w),b&&(this.reconstructor=null,super.emitReserved("decoded",b));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+w)}decodeString(w){let b=0;const j={type:Number(w.charAt(0))};if(PacketType[j.type]===void 0)throw new Error("unknown packet type "+j.type);if(j.type===PacketType.BINARY_EVENT||j.type===PacketType.BINARY_ACK){const I=b+1;for(;w.charAt(++b)!=="-"&&b!=w.length;);const q=w.substring(I,b);if(q!=Number(q)||w.charAt(b)!=="-")throw new Error("Illegal attachments");j.attachments=Number(q)}if(w.charAt(b+1)==="/"){const I=b+1;for(;++b&&!(w.charAt(b)===","||b===w.length););j.nsp=w.substring(I,b)}else j.nsp="/";const O=w.charAt(b+1);if(O!==""&&Number(O)==O){const I=b+1;for(;++b;){const q=w.charAt(b);if(q==null||Number(q)!=q){--b;break}if(b===w.length)break}j.id=Number(w.substring(I,b+1))}if(w.charAt(++b)){const I=this.tryParse(w.substr(b));if(Decoder.isPayloadValid(j.type,I))j.data=I;else throw new Error("invalid payload")}return j}tryParse(w){try{return JSON.parse(w,this.reviver)}catch{return!1}}static isPayloadValid(w,b){switch(w){case PacketType.CONNECT:return isObject(b);case PacketType.DISCONNECT:return b===void 0;case PacketType.CONNECT_ERROR:return typeof b=="string"||isObject(b);case PacketType.EVENT:case PacketType.BINARY_EVENT:return Array.isArray(b)&&(typeof b[0]=="number"||typeof b[0]=="string"&&RESERVED_EVENTS$1.indexOf(b[0])===-1);case PacketType.ACK:case PacketType.BINARY_ACK:return Array.isArray(b)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class BinaryReconstructor{constructor(w){this.packet=w,this.buffers=[],this.reconPack=w}takeBinaryData(w){if(this.buffers.push(w),this.buffers.length===this.reconPack.attachments){const b=reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),b}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const parser=Object.freeze(Object.defineProperty({__proto__:null,Decoder,Encoder,get PacketType(){return PacketType},protocol},Symbol.toStringTag,{value:"Module"}));function on($,w,b){return $.on(w,b),function(){$.off(w,b)}}const RESERVED_EVENTS=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Socket extends Emitter{constructor(w,b,j){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=w,this.nsp=b,j&&j.auth&&(this.auth=j.auth),this._opts=Object.assign({},j),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const w=this.io;this.subs=[on(w,"open",this.onopen.bind(this)),on(w,"packet",this.onpacket.bind(this)),on(w,"error",this.onerror.bind(this)),on(w,"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(...w){return w.unshift("message"),this.emit.apply(this,w),this}emit(w,...b){if(RESERVED_EVENTS.hasOwnProperty(w))throw new Error('"'+w.toString()+'" is a reserved event name');if(b.unshift(w),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(b),this;const j={type:PacketType.EVENT,data:b};if(j.options={},j.options.compress=this.flags.compress!==!1,typeof b[b.length-1]=="function"){const q=this.ids++,p=b.pop();this._registerAckCallback(q,p),j.id=q}const O=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!O||!this.connected)||(this.connected?(this.notifyOutgoingListeners(j),this.packet(j)):this.sendBuffer.push(j)),this.flags={},this}_registerAckCallback(w,b){var j;const O=(j=this.flags.timeout)!==null&&j!==void 0?j:this._opts.ackTimeout;if(O===void 0){this.acks[w]=b;return}const I=this.io.setTimeoutFn(()=>{delete this.acks[w];for(let p=0;p<this.sendBuffer.length;p++)this.sendBuffer[p].id===w&&this.sendBuffer.splice(p,1);b.call(this,new Error("operation has timed out"))},O),q=(...p)=>{this.io.clearTimeoutFn(I),b.apply(this,p)};q.withError=!0,this.acks[w]=q}emitWithAck(w,...b){return new Promise((j,O)=>{const I=(q,p)=>q?O(q):j(p);I.withError=!0,b.push(I),this.emit(w,...b)})}_addToQueue(w){let b;typeof w[w.length-1]=="function"&&(b=w.pop());const j={id:this._queueSeq++,tryCount:0,pending:!1,args:w,flags:Object.assign({fromQueue:!0},this.flags)};w.push((O,...I)=>j!==this._queue[0]?void 0:(O!==null?j.tryCount>this._opts.retries&&(this._queue.shift(),b&&b(O)):(this._queue.shift(),b&&b(null,...I)),j.pending=!1,this._drainQueue())),this._queue.push(j),this._drainQueue()}_drainQueue(w=!1){if(!this.connected||this._queue.length===0)return;const b=this._queue[0];b.pending&&!w||(b.pending=!0,b.tryCount++,this.flags=b.flags,this.emit.apply(this,b.args))}packet(w){w.nsp=this.nsp,this.io._packet(w)}onopen(){typeof this.auth=="function"?this.auth(w=>{this._sendConnectPacket(w)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(w){this.packet({type:PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},w):w})}onerror(w){this.connected||this.emitReserved("connect_error",w)}onclose(w,b){this.connected=!1,delete this.id,this.emitReserved("disconnect",w,b),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(w=>{if(!this.sendBuffer.some(j=>String(j.id)===w)){const j=this.acks[w];delete this.acks[w],j.withError&&j.call(this,new Error("socket has been disconnected"))}})}onpacket(w){if(w.nsp===this.nsp)switch(w.type){case PacketType.CONNECT:w.data&&w.data.sid?this.onconnect(w.data.sid,w.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 PacketType.EVENT:case PacketType.BINARY_EVENT:this.onevent(w);break;case PacketType.ACK:case PacketType.BINARY_ACK:this.onack(w);break;case PacketType.DISCONNECT:this.ondisconnect();break;case PacketType.CONNECT_ERROR:this.destroy();const j=new Error(w.data.message);j.data=w.data.data,this.emitReserved("connect_error",j);break}}onevent(w){const b=w.data||[];w.id!=null&&b.push(this.ack(w.id)),this.connected?this.emitEvent(b):this.receiveBuffer.push(Object.freeze(b))}emitEvent(w){if(this._anyListeners&&this._anyListeners.length){const b=this._anyListeners.slice();for(const j of b)j.apply(this,w)}super.emit.apply(this,w),this._pid&&w.length&&typeof w[w.length-1]=="string"&&(this._lastOffset=w[w.length-1])}ack(w){const b=this;let j=!1;return function(...O){j||(j=!0,b.packet({type:PacketType.ACK,id:w,data:O}))}}onack(w){const b=this.acks[w.id];typeof b=="function"&&(delete this.acks[w.id],b.withError&&w.data.unshift(null),b.apply(this,w.data))}onconnect(w,b){this.id=w,this.recovered=b&&this._pid===b,this._pid=b,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(w=>this.emitEvent(w)),this.receiveBuffer=[],this.sendBuffer.forEach(w=>{this.notifyOutgoingListeners(w),this.packet(w)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(w=>w()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:PacketType.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(w){return this.flags.compress=w,this}get volatile(){return this.flags.volatile=!0,this}timeout(w){return this.flags.timeout=w,this}onAny(w){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(w),this}prependAny(w){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(w),this}offAny(w){if(!this._anyListeners)return this;if(w){const b=this._anyListeners;for(let j=0;j<b.length;j++)if(w===b[j])return b.splice(j,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(w){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(w),this}prependAnyOutgoing(w){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(w),this}offAnyOutgoing(w){if(!this._anyOutgoingListeners)return this;if(w){const b=this._anyOutgoingListeners;for(let j=0;j<b.length;j++)if(w===b[j])return b.splice(j,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(w){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const b=this._anyOutgoingListeners.slice();for(const j of b)j.apply(this,w.data)}}}function Backoff($){$=$||{},this.ms=$.min||100,this.max=$.max||1e4,this.factor=$.factor||2,this.jitter=$.jitter>0&&$.jitter<=1?$.jitter:0,this.attempts=0}Backoff.prototype.duration=function(){var $=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var w=Math.random(),b=Math.floor(w*this.jitter*$);$=Math.floor(w*10)&1?$+b:$-b}return Math.min($,this.max)|0},Backoff.prototype.reset=function(){this.attempts=0},Backoff.prototype.setMin=function($){this.ms=$},Backoff.prototype.setMax=function($){this.max=$},Backoff.prototype.setJitter=function($){this.jitter=$};class Manager extends Emitter{constructor(w,b){var j;super(),this.nsps={},this.subs=[],w&&typeof w=="object"&&(b=w,w=void 0),b=b||{},b.path=b.path||"/socket.io",this.opts=b,installTimerFunctions(this,b),this.reconnection(b.reconnection!==!1),this.reconnectionAttempts(b.reconnectionAttempts||1/0),this.reconnectionDelay(b.reconnectionDelay||1e3),this.reconnectionDelayMax(b.reconnectionDelayMax||5e3),this.randomizationFactor((j=b.randomizationFactor)!==null&&j!==void 0?j:.5),this.backoff=new Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(b.timeout==null?2e4:b.timeout),this._readyState="closed",this.uri=w;const O=b.parser||parser;this.encoder=new O.Encoder,this.decoder=new O.Decoder,this._autoConnect=b.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(w){return arguments.length?(this._reconnection=!!w,this):this._reconnection}reconnectionAttempts(w){return w===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=w,this)}reconnectionDelay(w){var b;return w===void 0?this._reconnectionDelay:(this._reconnectionDelay=w,(b=this.backoff)===null||b===void 0||b.setMin(w),this)}randomizationFactor(w){var b;return w===void 0?this._randomizationFactor:(this._randomizationFactor=w,(b=this.backoff)===null||b===void 0||b.setJitter(w),this)}reconnectionDelayMax(w){var b;return w===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=w,(b=this.backoff)===null||b===void 0||b.setMax(w),this)}timeout(w){return arguments.length?(this._timeout=w,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(w){if(~this._readyState.indexOf("open"))return this;this.engine=new Socket$1(this.uri,this.opts);const b=this.engine,j=this;this._readyState="opening",this.skipReconnect=!1;const O=on(b,"open",function(){j.onopen(),w&&w()}),I=p=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",p),w?w(p):this.maybeReconnectOnOpen()},q=on(b,"error",I);if(this._timeout!==!1){const p=this._timeout,N=this.setTimeoutFn(()=>{O(),I(new Error("timeout")),b.close()},p);this.opts.autoUnref&&N.unref(),this.subs.push(()=>{this.clearTimeoutFn(N)})}return this.subs.push(O),this.subs.push(q),this}connect(w){return this.open(w)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const w=this.engine;this.subs.push(on(w,"ping",this.onping.bind(this)),on(w,"data",this.ondata.bind(this)),on(w,"error",this.onerror.bind(this)),on(w,"close",this.onclose.bind(this)),on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(w){try{this.decoder.add(w)}catch(b){this.onclose("parse error",b)}}ondecoded(w){nextTick(()=>{this.emitReserved("packet",w)},this.setTimeoutFn)}onerror(w){this.emitReserved("error",w)}socket(w,b){let j=this.nsps[w];return j?this._autoConnect&&!j.active&&j.connect():(j=new Socket(this,w,b),this.nsps[w]=j),j}_destroy(w){const b=Object.keys(this.nsps);for(const j of b)if(this.nsps[j].active)return;this._close()}_packet(w){const b=this.encoder.encode(w);for(let j=0;j<b.length;j++)this.engine.write(b[j],w.options)}cleanup(){this.subs.forEach(w=>w()),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(w,b){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",w,b),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const w=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const b=this.backoff.duration();this._reconnecting=!0;const j=this.setTimeoutFn(()=>{w.skipReconnect||(this.emitReserved("reconnect_attempt",w.backoff.attempts),!w.skipReconnect&&w.open(O=>{O?(w._reconnecting=!1,w.reconnect(),this.emitReserved("reconnect_error",O)):w.onreconnect()}))},b);this.opts.autoUnref&&j.unref(),this.subs.push(()=>{this.clearTimeoutFn(j)})}}onreconnect(){const w=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",w)}}const cache={};function lookup($,w){typeof $=="object"&&(w=$,$=void 0),w=w||{};const b=url($,w.path||"/socket.io"),j=b.source,O=b.id,I=b.path,q=cache[O]&&I in cache[O].nsps,p=w.forceNew||w["force new connection"]||w.multiplex===!1||q;let N;return p?N=new Manager(j,w):(cache[O]||(cache[O]=new Manager(j,w)),N=cache[O]),b.query&&!w.query&&(w.query=b.queryKey),N.socket(b.path,w)}Object.assign(lookup,{Manager,Socket,io:lookup,connect:lookup});var UserMode;(function($){$[$.Normal=0]="Normal",$[$.Debug=1]="Debug"})(UserMode||(UserMode={}));let getRandomValues;const rnds8=new Uint8Array(16);function rng(){if(!getRandomValues&&(getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!getRandomValues))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}const byteToHex=[];for(let $=0;$<256;++$)byteToHex.push(($+256).toString(16).slice(1));function unsafeStringify($,w=0){return byteToHex[$[w+0]]+byteToHex[$[w+1]]+byteToHex[$[w+2]]+byteToHex[$[w+3]]+"-"+byteToHex[$[w+4]]+byteToHex[$[w+5]]+"-"+byteToHex[$[w+6]]+byteToHex[$[w+7]]+"-"+byteToHex[$[w+8]]+byteToHex[$[w+9]]+"-"+byteToHex[$[w+10]]+byteToHex[$[w+11]]+byteToHex[$[w+12]]+byteToHex[$[w+13]]+byteToHex[$[w+14]]+byteToHex[$[w+15]]}const randomUUID=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),native={randomUUID};function v4($,w,b){if(native.randomUUID&&!w&&!$)return native.randomUUID();$=$||{};const j=$.random||($.rng||rng)();if(j[6]=j[6]&15|64,j[8]=j[8]&63|128,w){b=b||0;for(let O=0;O<16;++O)w[b+O]=j[O];return w}return unsafeStringify(j)}const logger$4=new Logger("[EventBus] ");class EventBus{constructor(w=!1){Object.defineProperty(this,"eventListenerMap",{enumerable:!0,configurable:!0,writable:!0,value:{}}),w&&logger$4.disable()}getEventListenerMap(){return Object.assign({},this.eventListenerMap)}on(w,b,j=!1){this.eventListenerMap[w]||(this.eventListenerMap[w]=[]),j?this.eventListenerMap[w].push({fn:b,once:!0}):this.eventListenerMap[w].push(b),logger$4.log(`add event ${w} listener ${j?", call once":""}`)}once(w,b){this.on(w,b,!0)}off(w,b){if(this.eventListenerMap[w]){const j=this.eventListenerMap[w].findIndex(O=>{if(typeof O=="function"&&b===O)return!0;if(O=O,O.fn===b)return!0});j<0?logger$4.log(`event ${w} listener ${b.name} is not found`):(this.eventListenerMap[w].splice(j,1),logger$4.log(`remove event ${w} listener`))}else logger$4.log(`event ${w} listeners is empty`)}emit(w,b){if(!this.eventListenerMap[w]){logger$4.log(`event ${w} listeners is empty`);return}const j=[];for(let O=0;O<this.eventListenerMap[w].length;O++){const I=this.eventListenerMap[w][O];typeof I=="function"?I(b):j.push(I)}j.forEach(O=>{O&&(O.fn(b),this.off(w,O.fn))}),logger$4.log(`event ${w} is fired, has ${this.eventListenerMap[w].length} listeners`)}removeAllListeners(){this.eventListenerMap={}}}const logger$3=new Logger("[AgentClient] ");var SessionErrors;(function($){$.DataRequestFailed="data request error",$.SocketConnectionFailed="socket error",$.IdUndefined="session id is not defined",$.SendingEmptyContent="failed at sending empty content",$.Frozen="session is frozen",$.UserModeError="failed at setting socket user mode",$.Inactive="session is inactive"})(SessionErrors||(SessionErrors={})),SessionErrors.IdUndefined+"",SessionErrors.SendingEmptyContent+"",SessionErrors.Frozen+"";class Session{constructor(w,b="",j,O,I){Object.defineProperty(this,"token",{enumerable:!0,configurable:!0,writable:!0,value:w}),Object.defineProperty(this,"lazyload",{enumerable:!0,configurable:!0,writable:!0,value:O}),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 EventBus}),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,"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,"_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}),console.log("session constructor",j),this._applicationId=parseJWT(w).rid||exports.configuration.applicationId,this.cvforceApi=this.getService(),I&&(this._application=I),this.event.emit("init",{applicationId:this._applicationId,sessionId:b}),this.loadApplicationInfo().then(()=>{var q;if(b)this._id=b,this.event.emit("data:loading"),j?(this.data=j,O||(this._dataLoading=!0,this.cvforceApi.getSession(this.applicationId,b).then(p=>__awaiter(this,void 0,void 0,function*(){this.data=p,this._promptVariables=yield this.cvforceApi.getApplicationIdSessionIdPromptVariables(this.applicationId,b),this.setPromptVariables(j.promptVariables||[]),this.event.emit("data:loaded",this.data),this.event.emit("data:updated",this.data),this._ready=!0,this.event.emit("ready")})).then(()=>__awaiter(this,void 0,void 0,function*(){yield this.fetchMessages(),this._dataLoaded=!0})))):(this._dataLoading=!0,this.cvforceApi.getSession(this.applicationId,b).then(p=>__awaiter(this,void 0,void 0,function*(){this.data=p,this._promptVariables=yield this.cvforceApi.getApplicationIdSessionIdPromptVariables(this.applicationId,b),this.event.emit("data:loaded",this.data),this._ready=!0,this.event.emit("ready")})).then(()=>__awaiter(this,void 0,void 0,function*(){O||(yield this.fetchMessages(),this._dataLoaded=!0)})));else{const p=(j==null?void 0:j.name)||"新建会话";this.event.emit("data:creating",{applicationId:this._applicationId,name:p}),this.event.emit("data:loading"),this.cvforceApi.postSession(this.applicationId,{name:p,netOpen:j==null?void 0:j.netOpen,knowledgeList:(q=j==null?void 0:j.knowledges)===null||q===void 0?void 0:q.map(N=>N.id),applicationId:this._applicationId}).then(N=>__awaiter(this,void 0,void 0,function*(){this._id=N.id,this.data=N,this._promptVariables=yield this.cvforceApi.getApplicationIdSessionIdPromptVariables(this.applicationId,this._id),yield this.setKnowledges((j==null?void 0:j.knowledges)||[]),j!=null&&j.promptVariables&&this.setPromptVariables(j.promptVariables||[]),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")}))}})}get id(){return this._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.cvforceApi.getApplicationId(this._applicationId).then(w=>(this._application=w,w));throw Error("application id is not defined")}get ready(){return this._ready}get frozen(){return this._frozen}set frozen(w){w===!1&&this.inactivating&&this.socket&&(console.log("[frozen] socket disconnect",this._id),this.socket.disconnect(),this.socket=null,this.event.emit("inactivated")),this._frozen=w,this.event.emit("frozen",w)}get knowledges(){if(!this.data)throw Error("session data is not loaded");return this.data.knowledges||[]}setKnowledges(w){return __awaiter(this,void 0,void 0,function*(){var b;if(((b=this._application)===null||b===void 0?void 0:b.type)===k.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:w}),this.data.knowledges=w,this.event.emit("data:updated",this.data),this.event.emit("data:updated:knowledges",{knowledges:w}),w})}validateConfigs(){if(!this._id)throw Error("session id is not defined");if(!this.data)throw Error("session data is not loaded");const w=this.promptVariables.filter(b=>b.status===L.Quoted).filter(b=>!b.value);if(w.length)throw Error(`在提示词中被引用的变量值不能为空, 请检查以下变量: ${w.map(b=>b.key).join(", ")}`)}get promptVariables(){return this._promptVariables.filter(w=>w.key!=="query")}setPromptVariables(w){return __awaiter(this,void 0,void 0,function*(){var b;if(((b=this._application)===null||b===void 0?void 0:b.type)===k.Agent){console.warn("Agent Application Sessions are disabled to setPromptVariables.");return}if(yield Promise.all(w.filter(j=>j.key!=="query").map(j=>{if(!this.data)throw Error("session data is not loaded");if(!(!j.id||!j.key))return this.cvforceApi.patchApplicationIdSessionpromptVariablesId(this._applicationId,this.data.id,j.id,{value:j.value})})),!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}),!0})}getService(){return getCVForceService(exports.configuration.apiRoot,this.token,(w,b)=>{const j=new Error(SessionErrors.DataRequestFailed);logger$3.error(j),this.event.emit("error",j)})}addEventListener(w,b,j=!1){if(typeof b!="function")throw Error("event listener is not a function");if(j){this.event.once(w,b);return}this.event.on(w,b)}removeEventListener(w,b){this.event.off(w,b)}fetchMessages(){return __awaiter(this,arguments,void 0,function*(w={}){var b;const j={pageSize:this._loadingMessagesSize};if(this._id){w=Object.assign(Object.assign({},j),w),this.event.emit("history:loading"),logger$3.log("history:loading"),(w.endTime||w.startTime)&&(this.event.emit("history:moreloading",w),logger$3.log("history:moreloading",w)),this._loadingMessages=!0;const O=yield this.cvforceApi.getChatHistorySessionId(this._applicationId,this._id,w),I=O.map((p,N)=>{var M,T;let S=[],B;return typeof((M=p.agentHistoryList)===null||M===void 0?void 0:M.agentList)=="string"&&(S=JSON.parse(p.agentHistoryList.agentList).reduce((_,F)=>(_[F.data.step-1]||(_[F.data.step-1]=[]),_[F.data.step-1].push(F),_),[])),N===O.length-1&&(B=(T=this.data)===null||T===void 0?void 0:T.lastRelatedQuestion),Object.assign(Object.assign({},p),{actions:S,relatedQuesion:B})});if(!w.endTime&&!w.startTime)this.messages=I;else if(w.endTime&&!w.startTime){const p=this.messages.findIndex(N=>N.ts===w.endTime);this.messages.splice(0,p+1),this.messages=[...I,...this.messages]}else if(!w.endTime&&w.startTime){const p=this.messages.findLastIndex(N=>N.ts===w.endTime);this.messages.splice(p,this.messages.length-p-1),this.messages=[...this.messages,...I]}else{const p=this.messages.findIndex(M=>M.ts===w.endTime),N=this.messages.findLastIndex(M=>M.ts===w.endTime);this.messages.splice(p,N-p+1,...I)}const q=this.messages[this.messages.length-1];return q&&!q.relatedQuesion&&(q.relatedQuesion=(b=this.data)===null||b===void 0?void 0:b.lastRelatedQuestion),this.event.emit("history:moreloaded",I),logger$3.log("history:loaded",this.messages),this.event.emit("history:loaded",this.messages),this._loadingMessages=!1,I}else{const O=new Error(SessionErrors.IdUndefined);return logger$3.error(O),this.event.emit("error",O),!1}})}rename(w){return __awaiter(this,void 0,void 0,function*(){if(!this._id)throw Error("session is not created yet");if(w.trim()==="")throw Error("name is empty");return this.data=yield this.cvforceApi.patchSessionsId(this.applicationId,this._id,{name:w}),this.event.emit("data:updated",this.data),this.event.emit("data:updated:name",{name:w}),!0})}pushMessage(w){return __awaiter(this,void 0,void 0,function*(){this.messages.push(w),logger$3.log("history:add",w),this.event.emit("history:add",w),this.event.emit("message:new",w),this.event.emit("message:updated",w)})}reloadSessionInfo(){if(!this._id)throw Error("session is not created yet");return this._dataLoading=!0,this.cvforceApi.getSession(this.applicationId,this._id).then(w=>__awaiter(this,void 0,void 0,function*(){if(this.data=w,!this._id)throw Error("session is not created yet");this._promptVariables=yield this.cvforceApi.getApplicationIdSessionIdPromptVariables(this.applicationId,this._id),this.event.emit("data:loaded",this.data),this.event.emit("data:updated",this.data),this._ready=!0,this.event.emit("ready")})).then(()=>__awaiter(this,void 0,void 0,function*(){yield this.fetchMessages(),this._dataLoaded=!0}))}reload(){return __awaiter(this,void 0,void 0,function*(){return yield this.reloadSessionInfo(),this.socket?(this.inactivate(!0),this.activate()):this.activate()})}delete(){return __awaiter(this,void 0,void 0,function*(){if(!this.id){const w=new Error(SessionErrors.IdUndefined);return logger$3.error(w),this.event.emit("error",w),!1}return this.event.emit("data:deleting"),yield this.cvforceApi.delSessionsId(this.applicationId,this.id),this.event.emit("data:deleted"),this.destroy()})}activate(){return __awaiter(this,void 0,void 0,function*(){if(console.log("activate session"),!this._id)throw Error("session is not avalible. id is undefined");const w=this._id;!this._dataLoading&&!this._dataLoaded&&(this._dataLoading=!0,yield this.cvforceApi.getSession(this.applicationId,w).then(b=>__awaiter(this,void 0,void 0,function*(){this.data=b,this._promptVariables=yield this.cvforceApi.getApplicationIdSessionIdPromptVariables(this.applicationId,w),this.event.emit("data:loaded",this.data),this.event.emit("data:updated",this.data),this._ready=!0,this.event.emit("ready")})),yield this.fetchMessages(),this._dataLoaded=!0),this.inactivating=!1,this.frozen=!0,yield this.prepareConnection(),this.event.emit("activated",this.socket),this.active=!0})}inactivate(w=!1){return console.log("[inactivate]"),console.log("last message: ",this.messages[this.messages.length-1]),this.socket?this._frozen?(w||(this.inactivating=!0),console.log("this._frozen: ",this._frozen),console.log("immediately: ",w),console.log("inactivating: ",this.inactivating),!0):(console.log("[inactivate] socket disconnect",this._id),this.socket.close(),this.socket=null,this.event.emit("inactivated"),this.active=!1,!0):!0}send(w){return __awaiter(this,arguments,void 0,function*(b,j={stream:!1}){var O;try{this.validateConfigs()}catch(C){console.error(C)}const{stream:I=!1,referenceFirst:q=!1}=j,p=b.uuid||v4(),N=((O=b.text)===null||O===void 0?void 0:O.trim())||"",M=b.fileIds;if(!N&&!(M!=null&&M.length)){const C=new Error(SessionErrors.SendingEmptyContent);return logger$3.error(C),this.event.emit("error",C),!1}if(!this._id){const C=new Error(SessionErrors.IdUndefined);return logger$3.error(C),this.event.emit("error",C),!1}if(this.frozen){const C=new Error(SessionErrors.Frozen);return logger$3.error(C),this.event.emit("error",C),!1}this.frozen=!0,this._stopAnswer=!1;const T={sessionId:this._id,role:2,content:N,messageId:p,reference:[],searchReference:[],messageTime:""},S={content:N,stream:I,requestId:p,fileIds:M,referenceFirst:q};this.pushMessage(T),this.event.emit("question:content",N);const B=C=>__awaiter(this,void 0,void 0,function*(){if(C.role!==n.Robot)return;switch(this.removeEventListener("answer:finish",B),this._id&&C.content&&C.index&&C.index<0&&(this.data=yield this.cvforceApi.patchSessionsId(this.applicationId,this._id,{finialMessage:C.content}),this.event.emit("data:updated",this.data),this.event.emit("data:updated:finialMessage",{finialMessage:C.content})),yield this.fillMessageReference(C),C.code){case 11915:C.content="请您换个问题问我吧~",C.index=-1,C.isSensitive=!0,C.isLoading=!1,C.sessionId=this._id||"",this.event.emit("message:error",C);break;case 200:C.index=-1,C.isLoading=!1;break;default:C.content=C.message||"未知错误",C.isLoading=!1,C.index=-1,this.event.emit("message:error",C)}const _=yield this.getRelatedQuesion(C);C=Object.assign(Object.assign({},C),_),C.isLoading=!1;let F=this.messages[this.messages.length-1];if(F&&F.role===n.Robot){const U=Object.assign(Object.assign({},F),C);this.messages[this.messages.length-1]=U,this.event.emit("message:updated",U)}else this.pushMessage(C);this.frozen=!1});return this.addEventListener("answer:finish",B),this.sendQuestion(S,Object.assign(Object.assign({},j),{stream:I,referenceFirst:q})),T})}getRelatedQuesion(w){return __awaiter(this,void 0,void 0,function*(){var b;if(!w.content||w.isSensitive||w.code!==200)return w;this.event.emit("message:relatedQuesion:loading",w);const j=yield this.cvforceApi.postGeneques({content:w.content}).catch(q=>null);if(!j){const q=[],p=Object.assign(Object.assign({},w),{relatedQuesion:q,index:-3,isLoading:!1});return this.event.emit("message:relatedQuesion:loaded",{relatedQuesion:q}),p}const O=(b=j.content)===null||b===void 0?void 0:b.split("*").map(removeNewlines).map(removeLeadingAndTrailingBackslashes).filter(q=>!!q),I=Object.assign(Object.assign({},w),{relatedQuesion:O,index:-3,isLoading:!1});return this.event.emit("message:relatedQuesion:loaded",I),this._id&&this.cvforceApi.patchSessionsId(this._applicationId,this._id,{lastRelatedQuestion:O}),I})}fillMessageReference(w){return __awaiter(this,void 0,void 0,function*(){var b;return(b=w.reference)===null||b===void 0||b.forEach((j,O)=>__awaiter(this,void 0,void 0,function*(){const I=yield this.cvforceApi.getKnowledgeIdFileId(j.knowledgeId,j.docId);w.reference[O]=Object.assign(Object.assign({},j),I)})),w})}answerAgain(){return __awaiter(this,arguments,void 0,function*(w={stream:!1}){const b=this.messages[this.messages.length-1];if(!b)throw Error("message list is empty");this._stopAnswer=!1;const{stream:j=!1}=w;let O;b.role!==n.User&&(O=w.oldMessageId||b.messageId,this.messages.splice(this.messages.length-1,1),this.event.emit("message:remove",b),this.event.emit("history:remove",b));const I=this.messages[this.messages.length-1],q={content:I.content,fileIds:I.fileIds,requestId:I.messageId,stream:j,oldMessageId:O},p=N=>__awaiter(this,void 0,void 0,function*(){if(console.log("handleAnswerFinish",N),N.role===n.Robot&&N.index===-1){switch(this._id&&N.content&&N.index&&N.index<0&&(this.data=yield this.cvforceApi.patchSessionsId(this.applicationId,this._id,{finialMessage:N.content}),this.event.emit("data:updated",this.data),this.event.emit("data:updated:finialMessage",{finialMessage:N.content})),yield this.fillMessageReference(N),N.code){case 11915:N.content="请您换个问题问我吧~",N.index=-1,N.isSensitive=!0,N.isLoading=!1,N.sessionId=this._id||"",this.event.emit("message:error",N);break;case 200:N.index=-1,N.isLoading=!1;break;default:N.content=N.message||"未知错误",N.isLoading=!1,N.index=-1,this.event.emit("message:error",N)}const M=yield this.getRelatedQuesion(N);this.event.emit("message:updated",M),this.removeEventListener("message:content",p)}});this.addEventListener("message:content",p),this.sendQuestion(q,Object.assign(Object.assign({},w),{stream:j}))})}setTop(w){return __awaiter(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:w}),this.event.emit("data:updated",this.data),this.event.emit("data:updated:top",{top:w})})}suspend(){var w;this.stopAnswer(),this.frozen=!1,this._stopAnswer=!0;let b=this.messages[this.messages.length-1];const j={messageId:v4(),isLoading:!1,index:-2,messageTime:dayjs(new Date).format("YYYY-MM-DD HH:ss:mm"),content:"",role:n.System,sessionId:"",reference:[],searchReference:[]};if(b&&!b.messageId){if(b.index===-2)return;if(b.actions){const O=b.actions[((w=b.actions)===null||w===void 0?void 0:w.length)-1];if(O){const I=O[O.length-1];if(I&&(I.type==="BEFORE_CALL"||I.type==="FUNCTION_CALL")){const{pluginName:q,pluginCode:p,funcCode:N,funcName:M}=I.data;O.push({data:{pluginName:q,pluginCode:p,funcCode:N,funcName:M,step:I.data.step+1},type:"ABORT"}),this.event.emit("message:action",{messageId:b.messageId,action:O})}}}b=Object.assign(Object.assign({},b),j),this.event.emit("message:content",b),this.event.emit("message:updated",b)}else this.pushMessage(j),this.event.emit("message:content",j);return this}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 w;return this._ready=!1,this.event.removeAllListeners(),console.log("[destroy] socket disconnect",this._id),(w=this.socket)===null||w===void 0||w.disconnect(),this.socket=null,this.event.emit("destroy",{applicationId:this._applicationId,sessionId:this._id}),this._id||""}}const logger$2=new Logger("[AgentClient] ");class AgentSession extends Session{constructor(w,b="",j,O,I){super(w,b,j,O,I)}prepareConnection(){return console.log("prepareConnection"),new Promise(w=>__awaiter(this,void 0,void 0,function*(){this.socket&&w(!0);const b={version:"1.0",stream:"false",appId:this._applicationId,sessionId:this._id,Authorization:`${this.token}`,userMode:exports.configuration.debug?UserMode.Debug:UserMode.Normal},j=new URL(exports.configuration.apiRoot),O=yield lookup(j.origin,{path:j.pathname.replace("api","socketio")+"/copilot",query:b,transports:["websocket"]});O.on("connect",()=>{logger$2.log("socket:connect"),this.event.emit("socket:connect"),O.emit("init")}),O.on("disconnect",()=>{logger$2.log("socket:disconnect"),this.event.emit("socket:disconnect")}),O.on("ready",I=>{if(I.code===200){logger$2.log("ready");const q=exports.configuration.debug?UserMode.Debug:UserMode.Normal;q===UserMode.Debug&&q!==I.userMode&&console.warn(SessionErrors.UserModeError),this._ready||(this._ready=!0,this.event.emit("ready")),this.frozen=!1,w(!0)}else{this._ready&&(this._ready=!1);const q=new Error(SessionErrors.SocketConnectionFailed);logger$2.error("error",q),this.event.emit("error",q),w(!1)}}),O.on("action",(I,q)=>__awaiter(this,void 0,void 0,function*(){if(this._stopAnswer||!this._id)return;const{type:p,data:{runnerIsClient:N,pluginCode:M,funcCode:T,parameters:S,requestBody:B}}=I,C=this.messages[this.messages.length-1];if(!C.messageId)C.actions||(C.actions=[]),C.actions[I.data.step-1]||(C.actions[I.data.step-1]=[]),C.actions[I.data.step-1].push(I),this.event.emit("message:action",{messageId:C.messageId,action:I}),this.event.emit("message:updated",C);else{const _={messageId:"",content:"",role:n.Robot,sessionId:this._id,reference:[],searchReference:[],isLoading:!0,messageTime:"",actions:[[I]]};this.pushMessage(_),this.event.emit("message:action",{messageId:_.messageId,action:I})}if(this.inactivating){const _=new Error(SessionErrors.Inactive);logger$2.warn("error",_),this.event.emit("error",_)}else if(p==="FUNCTION_CALL"&&N){if(logger$2.log(`calling function ${T} of plugin ${M} with argument:
148
+ ${JSON.stringify(S)}`),!exports.configuration.plugins[M]){q({code:404,message:"对不起,没有找到插件。"});return}const _=exports.configuration.plugins[M].functions[T];typeof _!="function"&&q({code:404,message:"对不起,没有找到插件方法。"});let F=S==null?void 0:S.query;try{F=JSON.parse(S==null?void 0:S.query)}catch{}_(F,(...U)=>{this._stopAnswer||q(...U)})}})),O.on("answer",I=>{if(!this._stopAnswer)if(I.data.code!==200&&(I.data.index=-1,this.event.emit("error",I.data)),I.data.index===-1){let q=this.messages[this.messages.length-1];if(q&&!q.messageId)q=Object.assign(Object.assign({},q),I.data),this.event.emit("message:content",q),this.event.emit("message:updated",q),this.event.emit("answer:finish",q);else{const p=Object.assign({messageId:"",content:"",role:n.Robot,sessionId:this._id,reference:[],searchReference:[],isLoading:!1,messageTime:"",actions:[]},I.data);this.event.emit("message:content",p),this.pushMessage(p),this.event.emit("answer:finish",p)}}else{let q=this.messages[this.messages.length-1];q&&!q.messageId?(q=Object.assign(Object.assign({},q),I.data),this.messages[this.messages.length-1]=q,this.event.emit("message:content",q),this.event.emit("message:updated",q)):(this.pushMessage(I.data),this.event.emit("message:content",I.data))}}),O.on("reference",I=>__awaiter(this,void 0,void 0,function*(){if(this._stopAnswer)return;if(!this._id){const S=new Error(SessionErrors.IdUndefined);logger$2.error(S),this.event.emit("error",S),this.frozen=!1;return}const{type:q,data:p,requestId:N}=I,M=this.messages.findIndex(S=>S.messageId===N&&S.role===n.User);if(M<0)return;const T=M+1;if(T>=this.messages.length){const S={messageId:"",content:"",role:n.Robot,sessionId:this._id,reference:[],searchReference:[],isLoading:!0,messageTime:"",actions:[]};this.pushMessage(S)}q==="KG"?(this.messages[T]=Object.assign(Object.assign({},this.messages[T]),{reference:p.knowledgeReference}),yield this.fillMessageReference(this.messages[T]),this.event.emit("message:reference",p.knowledgeReference),this.event.emit("message:updated",this.messages[T])):q==="WEB_SEARCH"&&(this.messages[T]=Object.assign(Object.assign({},this.messages[T]),{searchReference:p.knowledgeReference}),this.event.emit("message:searchreference",p.searchReference),this.event.emit("message:updated",this.messages[T]))})),this.socket=O,O.open()}))}sendQuestion(w,b){return __awaiter(this,void 0,void 0,function*(){var j,O;if(!this.active){if(yield this.activate(),!this.socket){const I=new Error(SessionErrors.SocketConnectionFailed);return logger$2.warn("error",I),this.event.emit("error",I),!1}(j=this.socket)===null||j===void 0||j.emit("question",w)}(O=this.socket)===null||O===void 0||O.emit("question",w)})}stopAnswer(){var w;(w=this.socket)===null||w===void 0||w.emit("stop_answer")}}function getBytes($,w){return __awaiter(this,void 0,void 0,function*(){const b=$.getReader();let j;for(;!(j=yield b.read()).done;)w(j.value)})}var ControlChars;(function($){$[$.NewLine=10]="NewLine",$[$.CarriageReturn=13]="CarriageReturn",$[$.Space=32]="Space",$[$.Colon=58]="Colon"})(ControlChars||(ControlChars={}));function getLines($){let w,b,j,O=!1,I;return function(p){w===void 0?(w=p,b=0,j=-1,I=!1):w=concat(w,p);const N=w.length;let M=0;for(;b<N;){O&&(w[b]===ControlChars.NewLine&&(M=++b),O=!1);let T=-1;for(;b<N&&T===-1;++b)switch(w[b]){case ControlChars.Colon:j===-1&&(j=b-M);break;case ControlChars.CarriageReturn:O=!1,b+4<N&&w[b+1]===ControlChars.NewLine&&w[b+2]!==ControlChars.CarriageReturn&&w[b-1]!==ControlChars.NewLine&&w[b-2]!==ControlChars.CarriageReturn&&(I=!0);case ControlChars.NewLine:T=b;break}if(T===-1)break;$(w.subarray(M,T),j,I),M=b,j=-1,I=!1}M===N?w=void 0:M!==0&&(w=w.subarray(M),b-=M)}}function getMessages($,w,b){let j=newMessage();const O=new TextDecoder;return function(q,p,N){if(q.length===0)b==null||b(j),j=newMessage();else if(p>0){const M=O.decode(q.subarray(0,p)),T=p+(q[p+1]===ControlChars.Space?2:1);let S=O.decode(q.subarray(T));switch(N&&(S+=`
149
+ `),M){case"data":j.data=j.data?j.data+`
150
+ `+S:S;break;case"event":j.event=S;break;case"id":$(j.id=S);break;case"retry":const B=parseInt(S,10);isNaN(B)||w(j.retry=B);break}}}}function concat($,w){const b=new Uint8Array($.length+w.length);return b.set($),b.set(w,$.length),b}function newMessage(){return{data:"",event:"",id:"",retry:void 0}}const EventStreamContentType="text/event-stream",DefaultRetryInterval=1e3,LastEventId="last-event-id";function fetchEventSource($,w){var{signal:b,headers:j,onopen:O,onmessage:I,onclose:q,onerror:p,openWhenHidden:N,fetch:M}=w,T=__rest(w,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((S,B)=>{const C=Object.assign({},j);C.accept||(C.accept=EventStreamContentType);let _;function F(){_.abort(),document.hidden||X()}N||document.addEventListener("visibilitychange",F);let U=DefaultRetryInterval,z=0;function H(){document.removeEventListener("visibilitychange",F),window.clearTimeout(z),_.abort()}b==null||b.addEventListener("abort",()=>{H(),S()});const D=M??window.fetch,Q=O??defaultOnOpen;function X(){return __awaiter(this,void 0,void 0,function*(){var et;_=new AbortController;try{const nt=yield D($,Object.assign(Object.assign({},T),{headers:C,signal:_.signal}));yield Q(nt),yield getBytes(nt.body,getLines(getMessages(ut=>{ut?C[LastEventId]=ut:delete C[LastEventId]},ut=>{U=ut},I))),q==null||q(),H(),S()}catch(nt){if(!_.signal.aborted)try{const ut=(et=p==null?void 0:p(nt))!==null&&et!==void 0?et:U;window.clearTimeout(z),z=window.setTimeout(X,ut)}catch(ut){H(),B(ut)}}})}X()})}function defaultOnOpen($){const w=$.headers.get("content-type");if(!(w!=null&&w.startsWith(EventStreamContentType)))throw new Error(`Expected content-type to be ${EventStreamContentType}, Actual: ${w}`)}const logger$1=new Logger("[DialogClient] ");class DialogSession extends Session{constructor(w,b="",j,O,I){super(w,b,j,O,I),Object.defineProperty(this,"ctrl",{enumerable:!0,configurable:!0,writable:!0,value:new AbortController})}prepareConnection(){return new Promise(w=>__awaiter(this,void 0,void 0,function*(){this._ready||(this._ready=!0,this.event.emit("ready")),this.frozen=!1,w(!0)}))}postChatV2EventSource(w,b,j,O,I,q){return __awaiter(this,void 0,void 0,function*(){const p={code:0,content:"",role:n$1.Robot,sessionId:"",reference:[],searchReference:[],messageTime:"",llmModel:"",comment:{isAgree:0},isReplying:!1},N=Object.assign(Object.assign({},j),{stream:!0});fetchEventSource(`${exports.configuration.apiRoot}/chat/v2/chat?applicationId=${w}&sessionId=${b}`,{method:"POST",headers:{Authorization:`Bearer ${this.token}`,"Content-Type":"application/json"},body:JSON.stringify(N),openWhenHidden:!0,signal:O,onopen(M){return M.ok&&I!=null&&I.onopen&&I.onopen(),Promise.resolve()},onmessage(M){if(!M.data.includes('{"code": ')){let S={};try{S=JSON.parse(M.data)}catch{}(S==null?void 0:S.mtype)==="search"?p.searchReference.push(S):p.content=p.content+M.data;const B={content:p.content,role:1,reference:p.reference,searchReference:p.searchReference,messageId:p.messageId,sessionId:b,messageTime:dayjs(new Date).format("YYYY-MM-DD HH:mm:ss"),comment:{isAgree:0},isReplying:!0};return(I==null?void 0:I.onmessage)&&I.onmessage(B)}const T=JSON.parse(M.data);if(p.reference=T.data.reference,p.searchReference=T.data.searchReference,p.messageTime=T.data.messageTime,p.messageId=T.data.messageId,p.llmModel=T.data.llmModel,p.content=T.data.content,p.code=T.code,T.code===200){const S={code:p.code,content:p.content,role:1,reference:p.reference,searchReference:p.searchReference,messageId:p.messageId,sessionId:b,messageTime:p.messageTime,isReplying:!0};I!=null&&I.onmessage&&I.onmessage(S)}else return q&&q({code:T.code,message:T.message})},onerror(){I!=null&&I.onerror&&I.onerror()},onclose(){const M={code:p.code,content:p.content,role:1,reference:p.reference,searchReference:p.searchReference,messageId:p.messageId,sessionId:b,messageTime:p.messageTime,comment:{isAgree:0},isReplying:!1,index:-1};I!=null&&I.onclose&&I.onclose(M)}})})}postChatV3EventSource(w,b,j,O,I,q){return __awaiter(this,void 0,void 0,function*(){const p={code:0,content:"",role:n$1.Robot,sessionId:"",reference:[],searchReference:[],messageTime:"",llmModel:"",comment:{isAgree:0},isReplying:!1,reasoningContent:"",thinkingSecs:"",thinkingStatus:""},N=Object.assign(Object.assign({},j),{stream:!0});fetchEventSource(`${exports.configuration.apiRoot}/chat/v3/chat?applicationId=${w}&sessionId=${b}`,{method:"POST",headers:{Authorization:`Bearer ${this.token}`,"Content-Type":"application/json"},body:JSON.stringify(N),openWhenHidden:!0,signal:O,onopen(M){return M.ok&&I!=null&&I.onopen&&I.onopen(),Promise.resolve()},onmessage(M){if(!M.data&&!M.event&&!M.id&&!M.retry)return;let T={};try{T=JSON.parse(M.data)}catch{console.error("parse eventData to JSON failed. ",M.data)}if(T.code!==200)return q&&q({code:T.code,message:T.message});const S=T.data.type,B=T.data.payload;if(p.isReplying=!0,S==="search"&&p.searchReference.push(B),S==="thinking"){p.thinkingStatus="start";const _=B.choices[0];p.reasoningContent=p.reasoningContent+_.delta.reasoningContent}if(S==="thinkingOver"){p.thinkingStatus="end";const C=B.thinkingSecs;p.thinkingSecs=C}if(S==="text"){const _=B.choices[0];p.content=p.content+_.delta.content}if(S==="reference"&&(p.reference=B),S==="result"){const C=B.messageId,_=B.llmModel,F=B.messageTime;p.messageId=C,p.llmModel=_,p.messageTime=F,p.sessionId=b}S==="over"?p.index=-1:(p.code=T.code,p.message=T.message),I!=null&&I.onmessage&&I.onmessage(p)},onerror(){I!=null&&I.onerror&&I.onerror()},onclose(){const M=Object.assign(Object.assign({},p),{isReplying:!1});I!=null&&I.onclose&&I.onclose(M)}})})}sendQuestion(w,b){return __awaiter(this,void 0,void 0,function*(){var j;const{content:O,fileIds:I,oldMessageId:q}=w,{stream:p,referenceFirst:N}=b;if(this.active||(yield this.activate()),this._id){let M={content:O,fileIds:I,referenceFirst:N,oldMessageId:q,promptVariables:this.promptVariables.reduce((T,S)=>Object.assign(Object.assign({},T),{[S.key]:S.value}),{}),knowledges:(j=this.knowledges)===null||j===void 0?void 0:j.map(T=>T.id)};this.postChatV3EventSource(this._applicationId,this._id,M,this.ctrl.signal,{onopen:()=>{logger$1.log("open",this.ctrl)},onmessage:T=>{if(this._stopAnswer)return;let S=this.messages[this.messages.length-1];S&&S.role===n.Robot?(S=Object.assign(Object.assign({},S),T),this.messages[this.messages.length-1]=S,this.event.emit("message:content",S),this.event.emit("message:updated",S)):(this.pushMessage(T),this.event.emit("message:content",T))},onclose:T=>__awaiter(this,void 0,void 0,function*(){this._stopAnswer||(logger$1.log(T,"onclose"),this.event.emit("answer:finish",T),console.log("onclose",T))}),onerror:()=>{this._stopAnswer||(this.event.emit("message:error",""),this.frozen=!1)}})}})}stopAnswer(){this.ctrl.abort()}}const logger=new Logger("[BotClient] ");class BotClient{constructor(w,b,j=!0){if(Object.defineProperty(this,"_token",{enumerable:!0,configurable:!0,writable:!0,value:w}),Object.defineProperty(this,"lazyload",{enumerable:!0,configurable:!0,writable:!0,value:j}),Object.defineProperty(this,"event",{enumerable:!0,configurable:!0,writable:!0,value:new EventBus}),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:[]}),configure(b),this._applicationId=parseJWT(w).rid||exports.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(w){this._ready=w}get questionContextMaxLength(){return this.checkReady(),this._questionContextMaxLength}get promptVariables(){return this.checkReady(),this._promptVariables}get knowledges(){var w;return this.checkReady(),(w=this._application)===null||w===void 0?void 0:w.arrange[0].knowledges}get sessions(){return this.checkReady(),this._sessions}set sessions(w){this.checkReady(),this._sessions=w,this.event.emit("sessions:updated",w)}loadApplication(){return __awaiter(this,void 0,void 0,function*(){var w,b;this._application=yield this.cvforceApi.getApplicationId(this._applicationId);const j=(b=(w=this._application.arrange)===null||w===void 0?void 0:w[0])===null||b===void 0?void 0:b.llmModel;return j&&(this._questionContextMaxLength=yield this.cvforceApi.getBaseModel(j).then(O=>O.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:getCVForceService(exports.configuration.apiRoot,this.token,(w,b)=>logger.error(b))}get token(){return this._token}set token(w){this.checkReady(),this._token=w,this.ready=!1;const b=parseJWT(w).rid;this._applicationId!==b&&(this._applicationId=b,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 w;return this.checkReady(),((w=this._activeSession)===null||w===void 0?void 0:w.id)||""}set activeSession(w){this.checkReady(),this.loadSession(w).then(b=>{this._activeSession&&this._activeSession.id!==w&&this._activeSession.inactivate(),this._activeSession=b})}createSession(w,b,j,O,I){return __awaiter(this,void 0,void 0,function*(){return new Promise((q,p)=>{const N=M=>__awaiter(this,void 0,void 0,function*(){if(M===k.Agent)q(new AgentSession(w,b,j,O,I));else if(M===k.Dialog)q(new DialogSession(w,b,j,O,I));else throw Error(`不支持的应用类型:${M}`)});if(this.ready){if(!this._application)throw Error("client is not ready");N(this._application.type)}else this.event.on("ready",()=>{if(!this._application)throw Error("_application is null");N(this._application.type)},!0)})})}getSessions(w){return __awaiter(this,void 0,void 0,function*(){return new Promise((b,j)=>{const O=()=>this.cvforceApi.listSessions(this._applicationId,w).then(I=>{const q=[];return I.forEach(p=>__awaiter(this,void 0,void 0,function*(){const N=this._sessions.find(M=>p.id===M.id);if(N)N.data=p,q.push(N);else{const M=yield this.createSession(this.token,p.id,p,this.lazyload,this._application||void 0);q.push(M)}})),this.sessions=q,q});if(this.ready){if(!this._application)throw Error("_application is null");b(O())}else this.event.on("ready",()=>{if(!this._application)throw Error("_application is null");b(O())},!0)})})}loadSession(){return __awaiter(this,arguments,void 0,function*(w="",b){this.checkReady();let j=this.sessions.find(O=>O.id===w);if(j||(j=yield this.createSession(this.token,w,b)),this._activeSession){if(this._activeSession===j)return j;this._activeSession.inactivate()}return j.id?(j.activate(),this._activeSession=j):j.addEventListener("data:loaded",()=>{j==null||j.activate(),this._activeSession=j}),j})}reload(){return this.loadApplication().then(()=>{this.event.emit("ready")})}reloadSession(w){return __awaiter(this,void 0,void 0,function*(){yield this.reload();let b=w?this._sessions.find(j=>j.id===w):this._activeSession;if(!b){console.warn("reloadSession session failed.");return}return yield b.reload(),b})}setTop(w,b){return __awaiter(this,arguments,void 0,function*(j,O,I="top_time desc, sort_status desc, updated_at desc"){let q=j?this._sessions.find(p=>p.id===j):this._activeSession;if(!q){console.warn("setTop session failed.");return}return yield q.setTop(O),this.getSessions({order:I})})}addEventListener(w,b,j=!1){if(typeof b!="function")throw Error("event listener is not a function");if(j){this.event.once(w,b);return}this.event.on(w,b)}removeEventListener(w,b){this.event.off(w,b)}removeSession(w,b){return __awaiter(this,void 0,void 0,function*(){this.checkReady();let j=-1;if(typeof w=="string"?j=this._sessions.findIndex(O=>O.id===w):j=this._sessions.findIndex(O=>O===w),j>-1){const O=this._sessions[j];b&&(yield O.delete()),this._sessions.splice(j,1)}else console.warn("session delete failed, session is not exist.")})}clean(){this._sessions.forEach(w=>w.destroy()),this.sessions=[]}}class AgentPlugin{constructor(w,b={},j){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=w,b&&(this.functions=b)}fetchData(){this.description="描述",this.loaded=!0}checkFunctions(){}}exports.AgentPlugin=AgentPlugin,exports.BotClient=BotClient,exports.Session=Session,exports.configure=configure,Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"})});