diff --git a/.cspell.json b/.cspell.json
index e3ba5996..1acd5c3f 100644
--- a/.cspell.json
+++ b/.cspell.json
@@ -1,7 +1,16 @@
{
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
"version": "0.2",
- "ignorePaths": ["**/*.json", "**/*.css", "node_modules", "**/*.log", "**/tests/**", "dist/**"],
+ "ignorePaths": [
+ "**/*.json",
+ "**/*.css",
+ "node_modules",
+ "**/*.log",
+ "tests/**",
+ "dist/**",
+ "eslint.config.mjs",
+ "output.html"
+ ],
"useGitignore": true,
"language": "en",
"words": [
diff --git a/.github/workflows/compute.yml b/.github/workflows/compute.yml
index f9c3d440..cc29a544 100644
--- a/.github/workflows/compute.yml
+++ b/.github/workflows/compute.yml
@@ -15,6 +15,8 @@ on:
description: "Auth Token"
ref:
description: "Ref"
+ signature:
+ description: "Payload signature from the kernel"
jobs:
compute:
diff --git a/.github/workflows/update-configuration.yml b/.github/workflows/update-configuration.yml
index f6658ca5..b4984cca 100644
--- a/.github/workflows/update-configuration.yml
+++ b/.github/workflows/update-configuration.yml
@@ -13,4 +13,5 @@ jobs:
steps:
- uses: ubiquity-os/action-deploy-plugin@main
env:
- GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
+ APP_ID: ${{ secrets.APP_ID }}
+ APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
diff --git a/.prettierignore b/.prettierignore
index b322ce3e..5931db13 100644
--- a/.prettierignore
+++ b/.prettierignore
@@ -1,3 +1,3 @@
output.html
-tests/__mocks__/results/output-reward-split.html
+tests/__mocks__/*
dist
\ No newline at end of file
diff --git a/README.md b/README.md
index bd820bab..f4b16636 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# `@ubiquity-os/conversation-rewards`
+# `@ubiquity-os/text-conversation-rewards`
As of 28 February: test driven development to aggregate all necessary information based on a URL to an issue.
@@ -12,11 +12,6 @@ Be sure to review all `*.test.*` files for implementation details.
```json
{
"userName": {
- "total": 40.5,
- "task": {
- "reward": 37.5,
- "multiplier": 1
- },
"comments": [
{
"content": "comment content",
@@ -37,7 +32,16 @@ Be sure to review all `*.test.*` files for implementation details.
"relevance": 0.5
}
}
- ]
+ ],
+ "total": 40.5,
+ "task": {
+ "reward": 37.5,
+ "multiplier": 1
+ },
+ "feeRate": 0.1,
+ "permitUrl": "https://example.com/permit",
+ "userId": 123,
+ "evaluationCommentHtml": "
Evaluation comment
"
}
}
```
@@ -83,76 +87,258 @@ with:
redeemTask: true
dataPurge: {}
formattingEvaluator:
+ wordCountExponent: 0.85
multipliers:
- - role: [ISSUE_SPECIFICATION]
+ - role: ["ISSUE_SPECIFICATION"]
multiplier: 1
rewards:
- regex:
- "\\b\\w+\\b": 0.1
- scores: # Scores can be set for each item differently
- br: 0
- code: 1
- p: 1
- em: 0
- img: 0
- strong: 0
- blockquote: 0
- h1: 1
- h2: 1
- h3: 1
- h4: 1
- h5: 1
- h6: 1
- a: 1
- li: 1
- ul: 1
- td: 1
- hr: 0
- - role: [ISSUE_AUTHOR]
+ html:
+ br: { score: 0, countWords: true }
+ code: { score: 5, countWords: false }
+ p: { score: 0, countWords: true }
+ em: { score: 0, countWords: true }
+ img: { score: 5, countWords: true }
+ strong: { score: 0, countWords: false }
+ blockquote: { score: 0, countWords: false }
+ h1: { score: 1, countWords: true }
+ h2: { score: 1, countWords: true }
+ h3: { score: 1, countWords: true }
+ h4: { score: 1, countWords: true }
+ h5: { score: 1, countWords: true }
+ h6: { score: 1, countWords: true }
+ a: { score: 5, countWords: true }
+ li: { score: 0.5, countWords: true }
+ ul: { score: 1, countWords: true }
+ td: { score: 0, countWords: true }
+ hr: { score: 0, countWords: true }
+ pre: { score: 0, countWords: false }
+ ol: { score: 1, countWords: true }
+ wordValue: 0.1
+ - role: ["ISSUE_AUTHOR"]
multiplier: 1
rewards:
- regex:
- "\\b\\w+\\b": 0.2
- - role: [ISSUE_ASSIGNEE]
+ html:
+ br: { score: 0, countWords: true }
+ code: { score: 5, countWords: false }
+ p: { score: 0, countWords: true }
+ em: { score: 0, countWords: true }
+ img: { score: 5, countWords: true }
+ strong: { score: 0, countWords: false }
+ blockquote: { score: 0, countWords: false }
+ h1: { score: 1, countWords: true }
+ h2: { score: 1, countWords: true }
+ h3: { score: 1, countWords: true }
+ h4: { score: 1, countWords: true }
+ h5: { score: 1, countWords: true }
+ h6: { score: 1, countWords: true }
+ a: { score: 5, countWords: true }
+ li: { score: 0.5, countWords: true }
+ ul: { score: 1, countWords: true }
+ td: { score: 0, countWords: true }
+ hr: { score: 0, countWords: true }
+ pre: { score: 0, countWords: false }
+ ol: { score: 1, countWords: true }
+ wordValue: 0.2
+ - role: ["ISSUE_ASSIGNEE"]
multiplier: 0
rewards:
- regex:
- "\\b\\w+\\b": 0
- - role: [ISSUE_COLLABORATOR]
+ html:
+ br: { score: 0, countWords: true }
+ code: { score: 5, countWords: false }
+ p: { score: 0, countWords: true }
+ em: { score: 0, countWords: true }
+ img: { score: 5, countWords: true }
+ strong: { score: 0, countWords: false }
+ blockquote: { score: 0, countWords: false }
+ h1: { score: 1, countWords: true }
+ h2: { score: 1, countWords: true }
+ h3: { score: 1, countWords: true }
+ h4: { score: 1, countWords: true }
+ h5: { score: 1, countWords: true }
+ h6: { score: 1, countWords: true }
+ a: { score: 5, countWords: true }
+ li: { score: 0.5, countWords: true }
+ ul: { score: 1, countWords: true }
+ td: { score: 0, countWords: true }
+ hr: { score: 0, countWords: true }
+ pre: { score: 0, countWords: false }
+ ol: { score: 1, countWords: true }
+ wordValue: 0
+ - role: ["ISSUE_COLLABORATOR"]
multiplier: 1
rewards:
- regex:
- "\\b\\w+\\b": 0.1
- - role: [ISSUE_CONTRIBUTOR]
+ html:
+ br: { score: 0, countWords: true }
+ code: { score: 5, countWords: false }
+ p: { score: 0, countWords: true }
+ em: { score: 0, countWords: true }
+ img: { score: 5, countWords: true }
+ strong: { score: 0, countWords: false }
+ blockquote: { score: 0, countWords: false }
+ h1: { score: 1, countWords: true }
+ h2: { score: 1, countWords: true }
+ h3: { score: 1, countWords: true }
+ h4: { score: 1, countWords: true }
+ h5: { score: 1, countWords: true }
+ h6: { score: 1, countWords: true }
+ a: { score: 5, countWords: true }
+ li: { score: 0.5, countWords: true }
+ ul: { score: 1, countWords: true }
+ td: { score: 0, countWords: true }
+ hr: { score: 0, countWords: true }
+ pre: { score: 0, countWords: false }
+ ol: { score: 1, countWords: true }
+ wordValue: 0.1
+ - role: ["ISSUE_CONTRIBUTOR"]
multiplier: 0.25
rewards:
- regex:
- "\\b\\w+\\b": 0.1
- - role: [PULL_SPECIFICATION]
+ html:
+ br: { score: 0, countWords: true }
+ code: { score: 5, countWords: false }
+ p: { score: 0, countWords: true }
+ em: { score: 0, countWords: true }
+ img: { score: 5, countWords: true }
+ strong: { score: 0, countWords: false }
+ blockquote: { score: 0, countWords: false }
+ h1: { score: 1, countWords: true }
+ h2: { score: 1, countWords: true }
+ h3: { score: 1, countWords: true }
+ h4: { score: 1, countWords: true }
+ h5: { score: 1, countWords: true }
+ h6: { score: 1, countWords: true }
+ a: { score: 5, countWords: true }
+ li: { score: 0.5, countWords: true }
+ ul: { score: 1, countWords: true }
+ td: { score: 0, countWords: true }
+ hr: { score: 0, countWords: true }
+ pre: { score: 0, countWords: false }
+ ol: { score: 1, countWords: true }
+ wordValue: 0.1
+ - role: ["PULL_SPECIFICATION"]
multiplier: 0
rewards:
- regex:
- "\\b\\w+\\b": 0
- - role: [PULL_AUTHOR]
+ html:
+ br: { score: 0, countWords: true }
+ code: { score: 5, countWords: false }
+ p: { score: 0, countWords: true }
+ em: { score: 0, countWords: true }
+ img: { score: 5, countWords: true }
+ strong: { score: 0, countWords: false }
+ blockquote: { score: 0, countWords: false }
+ h1: { score: 1, countWords: true }
+ h2: { score: 1, countWords: true }
+ h3: { score: 1, countWords: true }
+ h4: { score: 1, countWords: true }
+ h5: { score: 1, countWords: true }
+ h6: { score: 1, countWords: true }
+ a: { score: 5, countWords: true }
+ li: { score: 0.5, countWords: true }
+ ul: { score: 1, countWords: true }
+ td: { score: 0, countWords: true }
+ hr: { score: 0, countWords: true }
+ pre: { score: 0, countWords: false }
+ ol: { score: 1, countWords: true }
+ wordValue: 0
+ - role: ["PULL_AUTHOR"]
multiplier: 2
rewards:
- regex:
- "\\b\\w+\\b": 0.2
- - role: [PULL_ASSIGNEE]
+ html:
+ br: { score: 0, countWords: true }
+ code: { score: 5, countWords: false }
+ p: { score: 0, countWords: true }
+ em: { score: 0, countWords: true }
+ img: { score: 5, countWords: true }
+ strong: { score: 0, countWords: false }
+ blockquote: { score: 0, countWords: false }
+ h1: { score: 1, countWords: true }
+ h2: { score: 1, countWords: true }
+ h3: { score: 1, countWords: true }
+ h4: { score: 1, countWords: true }
+ h5: { score: 1, countWords: true }
+ h6: { score: 1, countWords: true }
+ a: { score: 5, countWords: true }
+ li: { score: 0.5, countWords: true }
+ ul: { score: 1, countWords: true }
+ td: { score: 0, countWords: true }
+ hr: { score: 0, countWords: true }
+ pre: { score: 0, countWords: false }
+ ol: { score: 1, countWords: true }
+ wordValue: 0.2
+ - role: ["PULL_ASSIGNEE"]
multiplier: 1
rewards:
- regex:
- "\\b\\w+\\b": 0.1
- - role: [PULL_COLLABORATOR]
+ html:
+ br: { score: 0, countWords: true }
+ code: { score: 5, countWords: false }
+ p: { score: 0, countWords: true }
+ em: { score: 0, countWords: true }
+ img: { score: 5, countWords: true }
+ strong: { score: 0, countWords: false }
+ blockquote: { score: 0, countWords: false }
+ h1: { score: 1, countWords: true }
+ h2: { score: 1, countWords: true }
+ h3: { score: 1, countWords: true }
+ h4: { score: 1, countWords: true }
+ h5: { score: 1, countWords: true }
+ h6: { score: 1, countWords: true }
+ a: { score: 5, countWords: true }
+ li: { score: 0.5, countWords: true }
+ ul: { score: 1, countWords: true }
+ td: { score: 0, countWords: true }
+ hr: { score: 0, countWords: true }
+ pre: { score: 0, countWords: false }
+ ol: { score: 1, countWords: true }
+ wordValue: 0.1
+ - role: ["PULL_COLLABORATOR"]
multiplier: 1
rewards:
- regex:
- "\\b\\w+\\b": 0.1
- - role: [PULL_CONTRIBUTOR]
+ html:
+ br: { score: 0, countWords: true }
+ code: { score: 5, countWords: false }
+ p: { score: 0, countWords: true }
+ em: { score: 0, countWords: true }
+ img: { score: 5, countWords: true }
+ strong: { score: 0, countWords: false }
+ blockquote: { score: 0, countWords: false }
+ h1: { score: 1, countWords: true }
+ h2: { score: 1, countWords: true }
+ h3: { score: 1, countWords: true }
+ h4: { score: 1, countWords: true }
+ h5: { score: 1, countWords: true }
+ h6: { score: 1, countWords: true }
+ a: { score: 5, countWords: true }
+ li: { score: 0.5, countWords: true }
+ ul: { score: 1, countWords: true }
+ td: { score: 0, countWords: true }
+ hr: { score: 0, countWords: true }
+ pre: { score: 0, countWords: false }
+ ol: { score: 1, countWords: true }
+ wordValue: 0.1
+ - role: ["PULL_CONTRIBUTOR"]
multiplier: 0.25
rewards:
- regex:
- "\\b\\w+\\b": 0.1
+ html:
+ br: { score: 0, countWords: true }
+ code: { score: 5, countWords: false }
+ p: { score: 0, countWords: true }
+ em: { score: 0, countWords: true }
+ img: { score: 5, countWords: true }
+ strong: { score: 0, countWords: false }
+ blockquote: { score: 0, countWords: false }
+ h1: { score: 1, countWords: true }
+ h2: { score: 1, countWords: true }
+ h3: { score: 1, countWords: true }
+ h4: { score: 1, countWords: true }
+ h5: { score: 1, countWords: true }
+ h6: { score: 1, countWords: true }
+ a: { score: 5, countWords: true }
+ li: { score: 0.5, countWords: true }
+ ul: { score: 1, countWords: true }
+ td: { score: 0, countWords: true }
+ hr: { score: 0, countWords: true }
+ pre: { score: 0, countWords: false }
+ ol: { score: 1, countWords: true }
+ wordValue: 0.1
permitGeneration: {}
githubComment:
post: true
diff --git a/dist/33.index.js b/dist/33.index.js
new file mode 100644
index 00000000..d915fdac
--- /dev/null
+++ b/dist/33.index.js
@@ -0,0 +1,150 @@
+exports.id = 33;
+exports.ids = [33];
+exports.modules = {
+
+/***/ 57666:
+/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
+
+/*! node-domexception. MIT License. Jimmy Wärting */
+
+if (!globalThis.DOMException) {
+ try {
+ const { MessageChannel } = __webpack_require__(28167),
+ port = new MessageChannel().port1,
+ ab = new ArrayBuffer()
+ port.postMessage(ab, [ab, ab])
+ } catch (err) {
+ err.constructor.name === 'DOMException' && (
+ globalThis.DOMException = err.constructor
+ )
+ }
+}
+
+module.exports = globalThis.DOMException
+
+
+/***/ }),
+
+/***/ 42033:
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+
+// EXPORTS
+__webpack_require__.d(__webpack_exports__, {
+ fileFromPath: () => (/* binding */ fileFromPath)
+});
+
+// UNUSED EXPORTS: fileFromPathSync, isFile
+
+// EXTERNAL MODULE: external "fs"
+var external_fs_ = __webpack_require__(79896);
+// EXTERNAL MODULE: external "path"
+var external_path_ = __webpack_require__(16928);
+// EXTERNAL MODULE: ./node_modules/node-domexception/index.js
+var node_domexception = __webpack_require__(57666);
+// EXTERNAL MODULE: ./node_modules/formdata-node/lib/esm/File.js
+var File = __webpack_require__(2928);
+;// CONCATENATED MODULE: ./node_modules/formdata-node/lib/esm/isPlainObject.js
+const getType = (value) => (Object.prototype.toString.call(value).slice(8, -1).toLowerCase());
+function isPlainObject(value) {
+ if (getType(value) !== "object") {
+ return false;
+ }
+ const pp = Object.getPrototypeOf(value);
+ if (pp === null || pp === undefined) {
+ return true;
+ }
+ const Ctor = pp.constructor && pp.constructor.toString();
+ return Ctor === Object.toString();
+}
+/* harmony default export */ const esm_isPlainObject = (isPlainObject);
+
+// EXTERNAL MODULE: ./node_modules/formdata-node/lib/esm/isFile.js
+var isFile = __webpack_require__(80928);
+;// CONCATENATED MODULE: ./node_modules/formdata-node/lib/esm/fileFromPath.js
+var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
+ if (kind === "m") throw new TypeError("Private method is not writable");
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
+};
+var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+};
+var _FileFromPath_path, _FileFromPath_start;
+
+
+
+
+
+
+const MESSAGE = "The requested file could not be read, "
+ + "typically due to permission problems that have occurred after a reference "
+ + "to a file was acquired.";
+class FileFromPath {
+ constructor(input) {
+ _FileFromPath_path.set(this, void 0);
+ _FileFromPath_start.set(this, void 0);
+ __classPrivateFieldSet(this, _FileFromPath_path, input.path, "f");
+ __classPrivateFieldSet(this, _FileFromPath_start, input.start || 0, "f");
+ this.name = (0,external_path_.basename)(__classPrivateFieldGet(this, _FileFromPath_path, "f"));
+ this.size = input.size;
+ this.lastModified = input.lastModified;
+ }
+ slice(start, end) {
+ return new FileFromPath({
+ path: __classPrivateFieldGet(this, _FileFromPath_path, "f"),
+ lastModified: this.lastModified,
+ size: end - start,
+ start
+ });
+ }
+ async *stream() {
+ const { mtimeMs } = await external_fs_.promises.stat(__classPrivateFieldGet(this, _FileFromPath_path, "f"));
+ if (mtimeMs > this.lastModified) {
+ throw new node_domexception(MESSAGE, "NotReadableError");
+ }
+ if (this.size) {
+ yield* (0,external_fs_.createReadStream)(__classPrivateFieldGet(this, _FileFromPath_path, "f"), {
+ start: __classPrivateFieldGet(this, _FileFromPath_start, "f"),
+ end: __classPrivateFieldGet(this, _FileFromPath_start, "f") + this.size - 1
+ });
+ }
+ }
+ get [(_FileFromPath_path = new WeakMap(), _FileFromPath_start = new WeakMap(), Symbol.toStringTag)]() {
+ return "File";
+ }
+}
+function createFileFromPath(path, { mtimeMs, size }, filenameOrOptions, options = {}) {
+ let filename;
+ if (esm_isPlainObject(filenameOrOptions)) {
+ [options, filename] = [filenameOrOptions, undefined];
+ }
+ else {
+ filename = filenameOrOptions;
+ }
+ const file = new FileFromPath({ path, size, lastModified: mtimeMs });
+ if (!filename) {
+ filename = file.name;
+ }
+ return new File/* File */.Z([file], filename, {
+ ...options, lastModified: file.lastModified
+ });
+}
+function fileFromPathSync(path, filenameOrOptions, options = {}) {
+ const stats = statSync(path);
+ return createFileFromPath(path, stats, filenameOrOptions, options);
+}
+async function fileFromPath(path, filenameOrOptions, options) {
+ const stats = await external_fs_.promises.stat(path);
+ return createFileFromPath(path, stats, filenameOrOptions, options);
+}
+
+
+/***/ })
+
+};
+;
\ No newline at end of file
diff --git a/dist/index.js b/dist/index.js
index de15a54e..25e85a01 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -1,4 +1,4 @@
-(()=>{var __webpack_modules__={44914:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__setModuleDefault||(Object.create?function(st,Wt){Object.defineProperty(st,"default",{enumerable:true,value:Wt})}:function(st,Wt){st["default"]=Wt});var nn=this&&this.__importStar||function(st){if(st&&st.__esModule)return st;var Wt={};if(st!=null)for(var Ot in st)if(Ot!=="default"&&Object.prototype.hasOwnProperty.call(st,Ot))en(Wt,st,Ot);tn(Wt,st);return Wt};Object.defineProperty(Wt,"__esModule",{value:true});Wt.issue=Wt.issueCommand=void 0;const an=nn(Ot(70857));const In=Ot(30302);function issueCommand(st,Wt,Ot){const en=new Command(st,Wt,Ot);process.stdout.write(en.toString()+an.EOL)}Wt.issueCommand=issueCommand;function issue(st,Wt=""){issueCommand(st,{},Wt)}Wt.issue=issue;const rn="::";class Command{constructor(st,Wt,Ot){if(!st){st="missing.command"}this.command=st;this.properties=Wt;this.message=Ot}toString(){let st=rn+this.command;if(this.properties&&Object.keys(this.properties).length>0){st+=" ";let Wt=true;for(const Ot in this.properties){if(this.properties.hasOwnProperty(Ot)){const en=this.properties[Ot];if(en){if(Wt){Wt=false}else{st+=","}st+=`${Ot}=${escapeProperty(en)}`}}}}st+=`${rn}${escapeData(this.message)}`;return st}}function escapeData(st){return(0,In.toCommandValue)(st).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(st){return(0,In.toCommandValue)(st).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},37484:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__setModuleDefault||(Object.create?function(st,Wt){Object.defineProperty(st,"default",{enumerable:true,value:Wt})}:function(st,Wt){st["default"]=Wt});var nn=this&&this.__importStar||function(st){if(st&&st.__esModule)return st;var Wt={};if(st!=null)for(var Ot in st)if(Ot!=="default"&&Object.prototype.hasOwnProperty.call(st,Ot))en(Wt,st,Ot);tn(Wt,st);return Wt};var an=this&&this.__awaiter||function(st,Wt,Ot,en){function adopt(st){return st instanceof Ot?st:new Ot((function(Wt){Wt(st)}))}return new(Ot||(Ot=Promise))((function(Ot,tn){function fulfilled(st){try{step(en.next(st))}catch(st){tn(st)}}function rejected(st){try{step(en["throw"](st))}catch(st){tn(st)}}function step(st){st.done?Ot(st.value):adopt(st.value).then(fulfilled,rejected)}step((en=en.apply(st,Wt||[])).next())}))};Object.defineProperty(Wt,"__esModule",{value:true});Wt.platform=Wt.toPlatformPath=Wt.toWin32Path=Wt.toPosixPath=Wt.markdownSummary=Wt.summary=Wt.getIDToken=Wt.getState=Wt.saveState=Wt.group=Wt.endGroup=Wt.startGroup=Wt.info=Wt.notice=Wt.warning=Wt.error=Wt.debug=Wt.isDebug=Wt.setFailed=Wt.setCommandEcho=Wt.setOutput=Wt.getBooleanInput=Wt.getMultilineInput=Wt.getInput=Wt.addPath=Wt.setSecret=Wt.exportVariable=Wt.ExitCode=void 0;const In=Ot(44914);const rn=Ot(24753);const cn=Ot(30302);const on=nn(Ot(70857));const sn=nn(Ot(16928));const dn=Ot(35306);var un;(function(st){st[st["Success"]=0]="Success";st[st["Failure"]=1]="Failure"})(un||(Wt.ExitCode=un={}));function exportVariable(st,Wt){const Ot=(0,cn.toCommandValue)(Wt);process.env[st]=Ot;const en=process.env["GITHUB_ENV"]||"";if(en){return(0,rn.issueFileCommand)("ENV",(0,rn.prepareKeyValueMessage)(st,Wt))}(0,In.issueCommand)("set-env",{name:st},Ot)}Wt.exportVariable=exportVariable;function setSecret(st){(0,In.issueCommand)("add-mask",{},st)}Wt.setSecret=setSecret;function addPath(st){const Wt=process.env["GITHUB_PATH"]||"";if(Wt){(0,rn.issueFileCommand)("PATH",st)}else{(0,In.issueCommand)("add-path",{},st)}process.env["PATH"]=`${st}${sn.delimiter}${process.env["PATH"]}`}Wt.addPath=addPath;function getInput(st,Wt){const Ot=process.env[`INPUT_${st.replace(/ /g,"_").toUpperCase()}`]||"";if(Wt&&Wt.required&&!Ot){throw new Error(`Input required and not supplied: ${st}`)}if(Wt&&Wt.trimWhitespace===false){return Ot}return Ot.trim()}Wt.getInput=getInput;function getMultilineInput(st,Wt){const Ot=getInput(st,Wt).split("\n").filter((st=>st!==""));if(Wt&&Wt.trimWhitespace===false){return Ot}return Ot.map((st=>st.trim()))}Wt.getMultilineInput=getMultilineInput;function getBooleanInput(st,Wt){const Ot=["true","True","TRUE"];const en=["false","False","FALSE"];const tn=getInput(st,Wt);if(Ot.includes(tn))return true;if(en.includes(tn))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${st}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}Wt.getBooleanInput=getBooleanInput;function setOutput(st,Wt){const Ot=process.env["GITHUB_OUTPUT"]||"";if(Ot){return(0,rn.issueFileCommand)("OUTPUT",(0,rn.prepareKeyValueMessage)(st,Wt))}process.stdout.write(on.EOL);(0,In.issueCommand)("set-output",{name:st},(0,cn.toCommandValue)(Wt))}Wt.setOutput=setOutput;function setCommandEcho(st){(0,In.issue)("echo",st?"on":"off")}Wt.setCommandEcho=setCommandEcho;function setFailed(st){process.exitCode=un.Failure;error(st)}Wt.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}Wt.isDebug=isDebug;function debug(st){(0,In.issueCommand)("debug",{},st)}Wt.debug=debug;function error(st,Wt={}){(0,In.issueCommand)("error",(0,cn.toCommandProperties)(Wt),st instanceof Error?st.toString():st)}Wt.error=error;function warning(st,Wt={}){(0,In.issueCommand)("warning",(0,cn.toCommandProperties)(Wt),st instanceof Error?st.toString():st)}Wt.warning=warning;function notice(st,Wt={}){(0,In.issueCommand)("notice",(0,cn.toCommandProperties)(Wt),st instanceof Error?st.toString():st)}Wt.notice=notice;function info(st){process.stdout.write(st+on.EOL)}Wt.info=info;function startGroup(st){(0,In.issue)("group",st)}Wt.startGroup=startGroup;function endGroup(){(0,In.issue)("endgroup")}Wt.endGroup=endGroup;function group(st,Wt){return an(this,void 0,void 0,(function*(){startGroup(st);let Ot;try{Ot=yield Wt()}finally{endGroup()}return Ot}))}Wt.group=group;function saveState(st,Wt){const Ot=process.env["GITHUB_STATE"]||"";if(Ot){return(0,rn.issueFileCommand)("STATE",(0,rn.prepareKeyValueMessage)(st,Wt))}(0,In.issueCommand)("save-state",{name:st},(0,cn.toCommandValue)(Wt))}Wt.saveState=saveState;function getState(st){return process.env[`STATE_${st}`]||""}Wt.getState=getState;function getIDToken(st){return an(this,void 0,void 0,(function*(){return yield dn.OidcClient.getIDToken(st)}))}Wt.getIDToken=getIDToken;var pn=Ot(71847);Object.defineProperty(Wt,"summary",{enumerable:true,get:function(){return pn.summary}});var bn=Ot(71847);Object.defineProperty(Wt,"markdownSummary",{enumerable:true,get:function(){return bn.markdownSummary}});var mn=Ot(31976);Object.defineProperty(Wt,"toPosixPath",{enumerable:true,get:function(){return mn.toPosixPath}});Object.defineProperty(Wt,"toWin32Path",{enumerable:true,get:function(){return mn.toWin32Path}});Object.defineProperty(Wt,"toPlatformPath",{enumerable:true,get:function(){return mn.toPlatformPath}});Wt.platform=nn(Ot(18968))},24753:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__setModuleDefault||(Object.create?function(st,Wt){Object.defineProperty(st,"default",{enumerable:true,value:Wt})}:function(st,Wt){st["default"]=Wt});var nn=this&&this.__importStar||function(st){if(st&&st.__esModule)return st;var Wt={};if(st!=null)for(var Ot in st)if(Ot!=="default"&&Object.prototype.hasOwnProperty.call(st,Ot))en(Wt,st,Ot);tn(Wt,st);return Wt};Object.defineProperty(Wt,"__esModule",{value:true});Wt.prepareKeyValueMessage=Wt.issueFileCommand=void 0;const an=nn(Ot(76982));const In=nn(Ot(79896));const rn=nn(Ot(70857));const cn=Ot(30302);function issueFileCommand(st,Wt){const Ot=process.env[`GITHUB_${st}`];if(!Ot){throw new Error(`Unable to find environment variable for file command ${st}`)}if(!In.existsSync(Ot)){throw new Error(`Missing file at path: ${Ot}`)}In.appendFileSync(Ot,`${(0,cn.toCommandValue)(Wt)}${rn.EOL}`,{encoding:"utf8"})}Wt.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(st,Wt){const Ot=`ghadelimiter_${an.randomUUID()}`;const en=(0,cn.toCommandValue)(Wt);if(st.includes(Ot)){throw new Error(`Unexpected input: name should not contain the delimiter "${Ot}"`)}if(en.includes(Ot)){throw new Error(`Unexpected input: value should not contain the delimiter "${Ot}"`)}return`${st}<<${Ot}${rn.EOL}${en}${rn.EOL}${Ot}`}Wt.prepareKeyValueMessage=prepareKeyValueMessage},35306:function(st,Wt,Ot){"use strict";var en=this&&this.__awaiter||function(st,Wt,Ot,en){function adopt(st){return st instanceof Ot?st:new Ot((function(Wt){Wt(st)}))}return new(Ot||(Ot=Promise))((function(Ot,tn){function fulfilled(st){try{step(en.next(st))}catch(st){tn(st)}}function rejected(st){try{step(en["throw"](st))}catch(st){tn(st)}}function step(st){st.done?Ot(st.value):adopt(st.value).then(fulfilled,rejected)}step((en=en.apply(st,Wt||[])).next())}))};Object.defineProperty(Wt,"__esModule",{value:true});Wt.OidcClient=void 0;const tn=Ot(54844);const nn=Ot(44552);const an=Ot(37484);class OidcClient{static createHttpClient(st=true,Wt=10){const Ot={allowRetries:st,maxRetries:Wt};return new tn.HttpClient("actions/oidc-client",[new nn.BearerCredentialHandler(OidcClient.getRequestToken())],Ot)}static getRequestToken(){const st=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!st){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return st}static getIDTokenUrl(){const st=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!st){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return st}static getCall(st){var Wt;return en(this,void 0,void 0,(function*(){const Ot=OidcClient.createHttpClient();const en=yield Ot.getJson(st).catch((st=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${st.statusCode}\n \n Error Message: ${st.message}`)}));const tn=(Wt=en.result)===null||Wt===void 0?void 0:Wt.value;if(!tn){throw new Error("Response json body do not have ID Token field")}return tn}))}static getIDToken(st){return en(this,void 0,void 0,(function*(){try{let Wt=OidcClient.getIDTokenUrl();if(st){const Ot=encodeURIComponent(st);Wt=`${Wt}&audience=${Ot}`}(0,an.debug)(`ID token url is ${Wt}`);const Ot=yield OidcClient.getCall(Wt);(0,an.setSecret)(Ot);return Ot}catch(st){throw new Error(`Error message: ${st.message}`)}}))}}Wt.OidcClient=OidcClient},31976:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__setModuleDefault||(Object.create?function(st,Wt){Object.defineProperty(st,"default",{enumerable:true,value:Wt})}:function(st,Wt){st["default"]=Wt});var nn=this&&this.__importStar||function(st){if(st&&st.__esModule)return st;var Wt={};if(st!=null)for(var Ot in st)if(Ot!=="default"&&Object.prototype.hasOwnProperty.call(st,Ot))en(Wt,st,Ot);tn(Wt,st);return Wt};Object.defineProperty(Wt,"__esModule",{value:true});Wt.toPlatformPath=Wt.toWin32Path=Wt.toPosixPath=void 0;const an=nn(Ot(16928));function toPosixPath(st){return st.replace(/[\\]/g,"/")}Wt.toPosixPath=toPosixPath;function toWin32Path(st){return st.replace(/[/]/g,"\\")}Wt.toWin32Path=toWin32Path;function toPlatformPath(st){return st.replace(/[/\\]/g,an.sep)}Wt.toPlatformPath=toPlatformPath},18968:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__setModuleDefault||(Object.create?function(st,Wt){Object.defineProperty(st,"default",{enumerable:true,value:Wt})}:function(st,Wt){st["default"]=Wt});var nn=this&&this.__importStar||function(st){if(st&&st.__esModule)return st;var Wt={};if(st!=null)for(var Ot in st)if(Ot!=="default"&&Object.prototype.hasOwnProperty.call(st,Ot))en(Wt,st,Ot);tn(Wt,st);return Wt};var an=this&&this.__awaiter||function(st,Wt,Ot,en){function adopt(st){return st instanceof Ot?st:new Ot((function(Wt){Wt(st)}))}return new(Ot||(Ot=Promise))((function(Ot,tn){function fulfilled(st){try{step(en.next(st))}catch(st){tn(st)}}function rejected(st){try{step(en["throw"](st))}catch(st){tn(st)}}function step(st){st.done?Ot(st.value):adopt(st.value).then(fulfilled,rejected)}step((en=en.apply(st,Wt||[])).next())}))};var In=this&&this.__importDefault||function(st){return st&&st.__esModule?st:{default:st}};Object.defineProperty(Wt,"__esModule",{value:true});Wt.getDetails=Wt.isLinux=Wt.isMacOS=Wt.isWindows=Wt.arch=Wt.platform=void 0;const rn=In(Ot(70857));const cn=nn(Ot(95236));const getWindowsInfo=()=>an(void 0,void 0,void 0,(function*(){const{stdout:st}=yield cn.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"',undefined,{silent:true});const{stdout:Wt}=yield cn.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"',undefined,{silent:true});return{name:Wt.trim(),version:st.trim()}}));const getMacOsInfo=()=>an(void 0,void 0,void 0,(function*(){var st,Wt,Ot,en;const{stdout:tn}=yield cn.getExecOutput("sw_vers",undefined,{silent:true});const nn=(Wt=(st=tn.match(/ProductVersion:\s*(.+)/))===null||st===void 0?void 0:st[1])!==null&&Wt!==void 0?Wt:"";const an=(en=(Ot=tn.match(/ProductName:\s*(.+)/))===null||Ot===void 0?void 0:Ot[1])!==null&&en!==void 0?en:"";return{name:an,version:nn}}));const getLinuxInfo=()=>an(void 0,void 0,void 0,(function*(){const{stdout:st}=yield cn.getExecOutput("lsb_release",["-i","-r","-s"],{silent:true});const[Wt,Ot]=st.trim().split("\n");return{name:Wt,version:Ot}}));Wt.platform=rn.default.platform();Wt.arch=rn.default.arch();Wt.isWindows=Wt.platform==="win32";Wt.isMacOS=Wt.platform==="darwin";Wt.isLinux=Wt.platform==="linux";function getDetails(){return an(this,void 0,void 0,(function*(){return Object.assign(Object.assign({},yield Wt.isWindows?getWindowsInfo():Wt.isMacOS?getMacOsInfo():getLinuxInfo()),{platform:Wt.platform,arch:Wt.arch,isWindows:Wt.isWindows,isMacOS:Wt.isMacOS,isLinux:Wt.isLinux})}))}Wt.getDetails=getDetails},71847:function(st,Wt,Ot){"use strict";var en=this&&this.__awaiter||function(st,Wt,Ot,en){function adopt(st){return st instanceof Ot?st:new Ot((function(Wt){Wt(st)}))}return new(Ot||(Ot=Promise))((function(Ot,tn){function fulfilled(st){try{step(en.next(st))}catch(st){tn(st)}}function rejected(st){try{step(en["throw"](st))}catch(st){tn(st)}}function step(st){st.done?Ot(st.value):adopt(st.value).then(fulfilled,rejected)}step((en=en.apply(st,Wt||[])).next())}))};Object.defineProperty(Wt,"__esModule",{value:true});Wt.summary=Wt.markdownSummary=Wt.SUMMARY_DOCS_URL=Wt.SUMMARY_ENV_VAR=void 0;const tn=Ot(70857);const nn=Ot(79896);const{access:an,appendFile:In,writeFile:rn}=nn.promises;Wt.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";Wt.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return en(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const st=process.env[Wt.SUMMARY_ENV_VAR];if(!st){throw new Error(`Unable to find environment variable for $${Wt.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield an(st,nn.constants.R_OK|nn.constants.W_OK)}catch(Wt){throw new Error(`Unable to access summary file: '${st}'. Check if the file has correct read/write permissions.`)}this._filePath=st;return this._filePath}))}wrap(st,Wt,Ot={}){const en=Object.entries(Ot).map((([st,Wt])=>` ${st}="${Wt}"`)).join("");if(!Wt){return`<${st}${en}>`}return`<${st}${en}>${Wt}${st}>`}write(st){return en(this,void 0,void 0,(function*(){const Wt=!!(st===null||st===void 0?void 0:st.overwrite);const Ot=yield this.filePath();const en=Wt?rn:In;yield en(Ot,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return en(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(st,Wt=false){this._buffer+=st;return Wt?this.addEOL():this}addEOL(){return this.addRaw(tn.EOL)}addCodeBlock(st,Wt){const Ot=Object.assign({},Wt&&{lang:Wt});const en=this.wrap("pre",this.wrap("code",st),Ot);return this.addRaw(en).addEOL()}addList(st,Wt=false){const Ot=Wt?"ol":"ul";const en=st.map((st=>this.wrap("li",st))).join("");const tn=this.wrap(Ot,en);return this.addRaw(tn).addEOL()}addTable(st){const Wt=st.map((st=>{const Wt=st.map((st=>{if(typeof st==="string"){return this.wrap("td",st)}const{header:Wt,data:Ot,colspan:en,rowspan:tn}=st;const nn=Wt?"th":"td";const an=Object.assign(Object.assign({},en&&{colspan:en}),tn&&{rowspan:tn});return this.wrap(nn,Ot,an)})).join("");return this.wrap("tr",Wt)})).join("");const Ot=this.wrap("table",Wt);return this.addRaw(Ot).addEOL()}addDetails(st,Wt){const Ot=this.wrap("details",this.wrap("summary",st)+Wt);return this.addRaw(Ot).addEOL()}addImage(st,Wt,Ot){const{width:en,height:tn}=Ot||{};const nn=Object.assign(Object.assign({},en&&{width:en}),tn&&{height:tn});const an=this.wrap("img",null,Object.assign({src:st,alt:Wt},nn));return this.addRaw(an).addEOL()}addHeading(st,Wt){const Ot=`h${Wt}`;const en=["h1","h2","h3","h4","h5","h6"].includes(Ot)?Ot:"h1";const tn=this.wrap(en,st);return this.addRaw(tn).addEOL()}addSeparator(){const st=this.wrap("hr",null);return this.addRaw(st).addEOL()}addBreak(){const st=this.wrap("br",null);return this.addRaw(st).addEOL()}addQuote(st,Wt){const Ot=Object.assign({},Wt&&{cite:Wt});const en=this.wrap("blockquote",st,Ot);return this.addRaw(en).addEOL()}addLink(st,Wt){const Ot=this.wrap("a",st,{href:Wt});return this.addRaw(Ot).addEOL()}}const cn=new Summary;Wt.markdownSummary=cn;Wt.summary=cn},30302:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.toCommandProperties=Wt.toCommandValue=void 0;function toCommandValue(st){if(st===null||st===undefined){return""}else if(typeof st==="string"||st instanceof String){return st}return JSON.stringify(st)}Wt.toCommandValue=toCommandValue;function toCommandProperties(st){if(!Object.keys(st).length){return{}}return{title:st.title,file:st.file,line:st.startLine,endLine:st.endLine,col:st.startColumn,endColumn:st.endColumn}}Wt.toCommandProperties=toCommandProperties},95236:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;Object.defineProperty(st,en,{enumerable:true,get:function(){return Wt[Ot]}})}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__setModuleDefault||(Object.create?function(st,Wt){Object.defineProperty(st,"default",{enumerable:true,value:Wt})}:function(st,Wt){st["default"]=Wt});var nn=this&&this.__importStar||function(st){if(st&&st.__esModule)return st;var Wt={};if(st!=null)for(var Ot in st)if(Ot!=="default"&&Object.hasOwnProperty.call(st,Ot))en(Wt,st,Ot);tn(Wt,st);return Wt};var an=this&&this.__awaiter||function(st,Wt,Ot,en){function adopt(st){return st instanceof Ot?st:new Ot((function(Wt){Wt(st)}))}return new(Ot||(Ot=Promise))((function(Ot,tn){function fulfilled(st){try{step(en.next(st))}catch(st){tn(st)}}function rejected(st){try{step(en["throw"](st))}catch(st){tn(st)}}function step(st){st.done?Ot(st.value):adopt(st.value).then(fulfilled,rejected)}step((en=en.apply(st,Wt||[])).next())}))};Object.defineProperty(Wt,"__esModule",{value:true});Wt.getExecOutput=Wt.exec=void 0;const In=Ot(13193);const rn=nn(Ot(6665));function exec(st,Wt,Ot){return an(this,void 0,void 0,(function*(){const en=rn.argStringToArray(st);if(en.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const tn=en[0];Wt=en.slice(1).concat(Wt||[]);const nn=new rn.ToolRunner(tn,Wt,Ot);return nn.exec()}))}Wt.exec=exec;function getExecOutput(st,Wt,Ot){var en,tn;return an(this,void 0,void 0,(function*(){let nn="";let an="";const rn=new In.StringDecoder("utf8");const cn=new In.StringDecoder("utf8");const on=(en=Ot===null||Ot===void 0?void 0:Ot.listeners)===null||en===void 0?void 0:en.stdout;const sn=(tn=Ot===null||Ot===void 0?void 0:Ot.listeners)===null||tn===void 0?void 0:tn.stderr;const stdErrListener=st=>{an+=cn.write(st);if(sn){sn(st)}};const stdOutListener=st=>{nn+=rn.write(st);if(on){on(st)}};const dn=Object.assign(Object.assign({},Ot===null||Ot===void 0?void 0:Ot.listeners),{stdout:stdOutListener,stderr:stdErrListener});const un=yield exec(st,Wt,Object.assign(Object.assign({},Ot),{listeners:dn}));nn+=rn.end();an+=cn.end();return{exitCode:un,stdout:nn,stderr:an}}))}Wt.getExecOutput=getExecOutput},6665:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;Object.defineProperty(st,en,{enumerable:true,get:function(){return Wt[Ot]}})}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__setModuleDefault||(Object.create?function(st,Wt){Object.defineProperty(st,"default",{enumerable:true,value:Wt})}:function(st,Wt){st["default"]=Wt});var nn=this&&this.__importStar||function(st){if(st&&st.__esModule)return st;var Wt={};if(st!=null)for(var Ot in st)if(Ot!=="default"&&Object.hasOwnProperty.call(st,Ot))en(Wt,st,Ot);tn(Wt,st);return Wt};var an=this&&this.__awaiter||function(st,Wt,Ot,en){function adopt(st){return st instanceof Ot?st:new Ot((function(Wt){Wt(st)}))}return new(Ot||(Ot=Promise))((function(Ot,tn){function fulfilled(st){try{step(en.next(st))}catch(st){tn(st)}}function rejected(st){try{step(en["throw"](st))}catch(st){tn(st)}}function step(st){st.done?Ot(st.value):adopt(st.value).then(fulfilled,rejected)}step((en=en.apply(st,Wt||[])).next())}))};Object.defineProperty(Wt,"__esModule",{value:true});Wt.argStringToArray=Wt.ToolRunner=void 0;const In=nn(Ot(70857));const rn=nn(Ot(24434));const cn=nn(Ot(35317));const on=nn(Ot(16928));const sn=nn(Ot(94994));const dn=nn(Ot(75207));const un=Ot(53557);const pn=process.platform==="win32";class ToolRunner extends rn.EventEmitter{constructor(st,Wt,Ot){super();if(!st){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=st;this.args=Wt||[];this.options=Ot||{}}_debug(st){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(st)}}_getCommandString(st,Wt){const Ot=this._getSpawnFileName();const en=this._getSpawnArgs(st);let tn=Wt?"":"[command]";if(pn){if(this._isCmdFile()){tn+=Ot;for(const st of en){tn+=` ${st}`}}else if(st.windowsVerbatimArguments){tn+=`"${Ot}"`;for(const st of en){tn+=` ${st}`}}else{tn+=this._windowsQuoteCmdArg(Ot);for(const st of en){tn+=` ${this._windowsQuoteCmdArg(st)}`}}}else{tn+=Ot;for(const st of en){tn+=` ${st}`}}return tn}_processLineBuffer(st,Wt,Ot){try{let en=Wt+st.toString();let tn=en.indexOf(In.EOL);while(tn>-1){const st=en.substring(0,tn);Ot(st);en=en.substring(tn+In.EOL.length);tn=en.indexOf(In.EOL)}return en}catch(st){this._debug(`error processing line. Failed with error ${st}`);return""}}_getSpawnFileName(){if(pn){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(st){if(pn){if(this._isCmdFile()){let Wt=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const Ot of this.args){Wt+=" ";Wt+=st.windowsVerbatimArguments?Ot:this._windowsQuoteCmdArg(Ot)}Wt+='"';return[Wt]}}return this.args}_endsWith(st,Wt){return st.endsWith(Wt)}_isCmdFile(){const st=this.toolPath.toUpperCase();return this._endsWith(st,".CMD")||this._endsWith(st,".BAT")}_windowsQuoteCmdArg(st){if(!this._isCmdFile()){return this._uvQuoteCmdArg(st)}if(!st){return'""'}const Wt=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let Ot=false;for(const en of st){if(Wt.some((st=>st===en))){Ot=true;break}}if(!Ot){return st}let en='"';let tn=true;for(let Wt=st.length;Wt>0;Wt--){en+=st[Wt-1];if(tn&&st[Wt-1]==="\\"){en+="\\"}else if(st[Wt-1]==='"'){tn=true;en+='"'}else{tn=false}}en+='"';return en.split("").reverse().join("")}_uvQuoteCmdArg(st){if(!st){return'""'}if(!st.includes(" ")&&!st.includes("\t")&&!st.includes('"')){return st}if(!st.includes('"')&&!st.includes("\\")){return`"${st}"`}let Wt='"';let Ot=true;for(let en=st.length;en>0;en--){Wt+=st[en-1];if(Ot&&st[en-1]==="\\"){Wt+="\\"}else if(st[en-1]==='"'){Ot=true;Wt+="\\"}else{Ot=false}}Wt+='"';return Wt.split("").reverse().join("")}_cloneExecOptions(st){st=st||{};const Wt={cwd:st.cwd||process.cwd(),env:st.env||process.env,silent:st.silent||false,windowsVerbatimArguments:st.windowsVerbatimArguments||false,failOnStdErr:st.failOnStdErr||false,ignoreReturnCode:st.ignoreReturnCode||false,delay:st.delay||1e4};Wt.outStream=st.outStream||process.stdout;Wt.errStream=st.errStream||process.stderr;return Wt}_getSpawnOptions(st,Wt){st=st||{};const Ot={};Ot.cwd=st.cwd;Ot.env=st.env;Ot["windowsVerbatimArguments"]=st.windowsVerbatimArguments||this._isCmdFile();if(st.windowsVerbatimArguments){Ot.argv0=`"${Wt}"`}return Ot}exec(){return an(this,void 0,void 0,(function*(){if(!dn.isRooted(this.toolPath)&&(this.toolPath.includes("/")||pn&&this.toolPath.includes("\\"))){this.toolPath=on.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield sn.which(this.toolPath,true);return new Promise(((st,Wt)=>an(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const st of this.args){this._debug(` ${st}`)}const Ot=this._cloneExecOptions(this.options);if(!Ot.silent&&Ot.outStream){Ot.outStream.write(this._getCommandString(Ot)+In.EOL)}const en=new ExecState(Ot,this.toolPath);en.on("debug",(st=>{this._debug(st)}));if(this.options.cwd&&!(yield dn.exists(this.options.cwd))){return Wt(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const tn=this._getSpawnFileName();const nn=cn.spawn(tn,this._getSpawnArgs(Ot),this._getSpawnOptions(this.options,tn));let an="";if(nn.stdout){nn.stdout.on("data",(st=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(st)}if(!Ot.silent&&Ot.outStream){Ot.outStream.write(st)}an=this._processLineBuffer(st,an,(st=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(st)}}))}))}let rn="";if(nn.stderr){nn.stderr.on("data",(st=>{en.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(st)}if(!Ot.silent&&Ot.errStream&&Ot.outStream){const Wt=Ot.failOnStdErr?Ot.errStream:Ot.outStream;Wt.write(st)}rn=this._processLineBuffer(st,rn,(st=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(st)}}))}))}nn.on("error",(st=>{en.processError=st.message;en.processExited=true;en.processClosed=true;en.CheckComplete()}));nn.on("exit",(st=>{en.processExitCode=st;en.processExited=true;this._debug(`Exit code ${st} received from tool '${this.toolPath}'`);en.CheckComplete()}));nn.on("close",(st=>{en.processExitCode=st;en.processExited=true;en.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);en.CheckComplete()}));en.on("done",((Ot,en)=>{if(an.length>0){this.emit("stdline",an)}if(rn.length>0){this.emit("errline",rn)}nn.removeAllListeners();if(Ot){Wt(Ot)}else{st(en)}}));if(this.options.input){if(!nn.stdin){throw new Error("child process missing stdin")}nn.stdin.end(this.options.input)}}))))}))}}Wt.ToolRunner=ToolRunner;function argStringToArray(st){const Wt=[];let Ot=false;let en=false;let tn="";function append(st){if(en&&st!=='"'){tn+="\\"}tn+=st;en=false}for(let nn=0;nn0){Wt.push(tn);tn=""}continue}append(an)}if(tn.length>0){Wt.push(tn.trim())}return Wt}Wt.argStringToArray=argStringToArray;class ExecState extends rn.EventEmitter{constructor(st,Wt){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!Wt){throw new Error("toolPath must not be empty")}this.options=st;this.toolPath=Wt;if(st.delay){this.delay=st.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=un.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(st){this.emit("debug",st)}_setResult(){let st;if(this.processExited){if(this.processError){st=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){st=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){st=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",st,this.processExitCode)}static HandleTimeout(st){if(st.done){return}if(!st.processClosed&&st.processExited){const Wt=`The STDIO streams did not close within ${st.delay/1e3} seconds of the exit event from process '${st.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;st._debug(Wt)}st._setResult()}}},51648:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Context=void 0;const en=Ot(79896);const tn=Ot(70857);class Context{constructor(){var st,Wt,Ot;this.payload={};if(process.env.GITHUB_EVENT_PATH){if((0,en.existsSync)(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse((0,en.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{const st=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${st} does not exist${tn.EOL}`)}}this.eventName=process.env.GITHUB_EVENT_NAME;this.sha=process.env.GITHUB_SHA;this.ref=process.env.GITHUB_REF;this.workflow=process.env.GITHUB_WORKFLOW;this.action=process.env.GITHUB_ACTION;this.actor=process.env.GITHUB_ACTOR;this.job=process.env.GITHUB_JOB;this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10);this.runId=parseInt(process.env.GITHUB_RUN_ID,10);this.apiUrl=(st=process.env.GITHUB_API_URL)!==null&&st!==void 0?st:`https://api.github.com`;this.serverUrl=(Wt=process.env.GITHUB_SERVER_URL)!==null&&Wt!==void 0?Wt:`https://github.com`;this.graphqlUrl=(Ot=process.env.GITHUB_GRAPHQL_URL)!==null&&Ot!==void 0?Ot:`https://api.github.com/graphql`}get issue(){const st=this.payload;return Object.assign(Object.assign({},this.repo),{number:(st.issue||st.pull_request||st).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[st,Wt]=process.env.GITHUB_REPOSITORY.split("/");return{owner:st,repo:Wt}}if(this.payload.repository){return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name}}throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}Wt.Context=Context},93228:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__setModuleDefault||(Object.create?function(st,Wt){Object.defineProperty(st,"default",{enumerable:true,value:Wt})}:function(st,Wt){st["default"]=Wt});var nn=this&&this.__importStar||function(st){if(st&&st.__esModule)return st;var Wt={};if(st!=null)for(var Ot in st)if(Ot!=="default"&&Object.prototype.hasOwnProperty.call(st,Ot))en(Wt,st,Ot);tn(Wt,st);return Wt};Object.defineProperty(Wt,"__esModule",{value:true});Wt.getOctokit=Wt.context=void 0;const an=nn(Ot(51648));const In=Ot(38006);Wt.context=new an.Context;function getOctokit(st,Wt,...Ot){const en=In.GitHub.plugin(...Ot);return new en((0,In.getOctokitOptions)(st,Wt))}Wt.getOctokit=getOctokit},65156:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__setModuleDefault||(Object.create?function(st,Wt){Object.defineProperty(st,"default",{enumerable:true,value:Wt})}:function(st,Wt){st["default"]=Wt});var nn=this&&this.__importStar||function(st){if(st&&st.__esModule)return st;var Wt={};if(st!=null)for(var Ot in st)if(Ot!=="default"&&Object.prototype.hasOwnProperty.call(st,Ot))en(Wt,st,Ot);tn(Wt,st);return Wt};var an=this&&this.__awaiter||function(st,Wt,Ot,en){function adopt(st){return st instanceof Ot?st:new Ot((function(Wt){Wt(st)}))}return new(Ot||(Ot=Promise))((function(Ot,tn){function fulfilled(st){try{step(en.next(st))}catch(st){tn(st)}}function rejected(st){try{step(en["throw"](st))}catch(st){tn(st)}}function step(st){st.done?Ot(st.value):adopt(st.value).then(fulfilled,rejected)}step((en=en.apply(st,Wt||[])).next())}))};Object.defineProperty(Wt,"__esModule",{value:true});Wt.getApiBaseUrl=Wt.getProxyFetch=Wt.getProxyAgentDispatcher=Wt.getProxyAgent=Wt.getAuthString=void 0;const In=nn(Ot(54844));const rn=Ot(46752);function getAuthString(st,Wt){if(!st&&!Wt.auth){throw new Error("Parameter token or opts.auth is required")}else if(st&&Wt.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof Wt.auth==="string"?Wt.auth:`token ${st}`}Wt.getAuthString=getAuthString;function getProxyAgent(st){const Wt=new In.HttpClient;return Wt.getAgent(st)}Wt.getProxyAgent=getProxyAgent;function getProxyAgentDispatcher(st){const Wt=new In.HttpClient;return Wt.getAgentDispatcher(st)}Wt.getProxyAgentDispatcher=getProxyAgentDispatcher;function getProxyFetch(st){const Wt=getProxyAgentDispatcher(st);const proxyFetch=(st,Ot)=>an(this,void 0,void 0,(function*(){return(0,rn.fetch)(st,Object.assign(Object.assign({},Ot),{dispatcher:Wt}))}));return proxyFetch}Wt.getProxyFetch=getProxyFetch;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}Wt.getApiBaseUrl=getApiBaseUrl},38006:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__setModuleDefault||(Object.create?function(st,Wt){Object.defineProperty(st,"default",{enumerable:true,value:Wt})}:function(st,Wt){st["default"]=Wt});var nn=this&&this.__importStar||function(st){if(st&&st.__esModule)return st;var Wt={};if(st!=null)for(var Ot in st)if(Ot!=="default"&&Object.prototype.hasOwnProperty.call(st,Ot))en(Wt,st,Ot);tn(Wt,st);return Wt};Object.defineProperty(Wt,"__esModule",{value:true});Wt.getOctokitOptions=Wt.GitHub=Wt.defaults=Wt.context=void 0;const an=nn(Ot(51648));const In=nn(Ot(65156));const rn=Ot(61897);const cn=Ot(75726);const on=Ot(37731);Wt.context=new an.Context;const sn=In.getApiBaseUrl();Wt.defaults={baseUrl:sn,request:{agent:In.getProxyAgent(sn),fetch:In.getProxyFetch(sn)}};Wt.GitHub=rn.Octokit.plugin(cn.restEndpointMethods,on.paginateRest).defaults(Wt.defaults);function getOctokitOptions(st,Wt){const Ot=Object.assign({},Wt||{});const en=In.getAuthString(st,Ot);if(en){Ot.auth=en}return Ot}Wt.getOctokitOptions=getOctokitOptions},37731:st=>{"use strict";var Wt=Object.defineProperty;var Ot=Object.getOwnPropertyDescriptor;var en=Object.getOwnPropertyNames;var tn=Object.prototype.hasOwnProperty;var __export=(st,Ot)=>{for(var en in Ot)Wt(st,en,{get:Ot[en],enumerable:true})};var __copyProps=(st,nn,an,In)=>{if(nn&&typeof nn==="object"||typeof nn==="function"){for(let rn of en(nn))if(!tn.call(st,rn)&&rn!==an)Wt(st,rn,{get:()=>nn[rn],enumerable:!(In=Ot(nn,rn))||In.enumerable})}return st};var __toCommonJS=st=>__copyProps(Wt({},"__esModule",{value:true}),st);var nn={};__export(nn,{composePaginateRest:()=>In,isPaginatingEndpoint:()=>isPaginatingEndpoint,paginateRest:()=>paginateRest,paginatingEndpoints:()=>rn});st.exports=__toCommonJS(nn);var an="9.2.1";function normalizePaginatedListResponse(st){if(!st.data){return{...st,data:[]}}const Wt="total_count"in st.data&&!("url"in st.data);if(!Wt)return st;const Ot=st.data.incomplete_results;const en=st.data.repository_selection;const tn=st.data.total_count;delete st.data.incomplete_results;delete st.data.repository_selection;delete st.data.total_count;const nn=Object.keys(st.data)[0];const an=st.data[nn];st.data=an;if(typeof Ot!=="undefined"){st.data.incomplete_results=Ot}if(typeof en!=="undefined"){st.data.repository_selection=en}st.data.total_count=tn;return st}function iterator(st,Wt,Ot){const en=typeof Wt==="function"?Wt.endpoint(Ot):st.request.endpoint(Wt,Ot);const tn=typeof Wt==="function"?Wt:st.request;const nn=en.method;const an=en.headers;let In=en.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!In)return{done:true};try{const st=await tn({method:nn,url:In,headers:an});const Wt=normalizePaginatedListResponse(st);In=((Wt.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:Wt}}catch(st){if(st.status!==409)throw st;In="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(st,Wt,Ot,en){if(typeof Ot==="function"){en=Ot;Ot=void 0}return gather(st,[],iterator(st,Wt,Ot)[Symbol.asyncIterator](),en)}function gather(st,Wt,Ot,en){return Ot.next().then((tn=>{if(tn.done){return Wt}let nn=false;function done(){nn=true}Wt=Wt.concat(en?en(tn.value,done):tn.value.data);if(nn){return Wt}return gather(st,Wt,Ot,en)}))}var In=Object.assign(paginate,{iterator:iterator});var rn=["GET /advisories","GET /app/hook/deliveries","GET /app/installation-requests","GET /app/installations","GET /assignments/{assignment_id}/accepted_assignments","GET /classrooms","GET /classrooms/{classroom_id}/assignments","GET /enterprises/{enterprise}/dependabot/alerts","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/actions/variables","GET /orgs/{org}/actions/variables/{name}/repositories","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/codespaces/secrets","GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories","GET /orgs/{org}/copilot/billing/seats","GET /orgs/{org}/dependabot/alerts","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/members/{username}/codespaces","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/organization-roles/{role_id}/teams","GET /orgs/{org}/organization-roles/{role_id}/users","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/personal-access-token-requests","GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories","GET /orgs/{org}/personal-access-tokens","GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories","GET /orgs/{org}/projects","GET /orgs/{org}/properties/values","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/rulesets","GET /orgs/{org}/rulesets/rule-suites","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/security-advisories","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/organization-secrets","GET /repos/{owner}/{repo}/actions/organization-variables","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/variables","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/activity","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/alerts","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/rules/branches/{branch}","GET /repos/{owner}/{repo}/rulesets","GET /repos/{owner}/{repo}/rulesets/rule-suites","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/security-advisories","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /repositories/{repository_id}/environments/{environment_name}/secrets","GET /repositories/{repository_id}/environments/{environment_name}/variables","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/social_accounts","GET /user/ssh_signing_keys","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/social_accounts","GET /users/{username}/ssh_signing_keys","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(st){if(typeof st==="string"){return rn.includes(st)}else{return false}}function paginateRest(st){return{paginate:Object.assign(paginate.bind(null,st),{iterator:iterator.bind(null,st)})}}paginateRest.VERSION=an;0&&0},75726:st=>{"use strict";var Wt=Object.defineProperty;var Ot=Object.getOwnPropertyDescriptor;var en=Object.getOwnPropertyNames;var tn=Object.prototype.hasOwnProperty;var __export=(st,Ot)=>{for(var en in Ot)Wt(st,en,{get:Ot[en],enumerable:true})};var __copyProps=(st,nn,an,In)=>{if(nn&&typeof nn==="object"||typeof nn==="function"){for(let rn of en(nn))if(!tn.call(st,rn)&&rn!==an)Wt(st,rn,{get:()=>nn[rn],enumerable:!(In=Ot(nn,rn))||In.enumerable})}return st};var __toCommonJS=st=>__copyProps(Wt({},"__esModule",{value:true}),st);var nn={};__export(nn,{legacyRestEndpointMethods:()=>legacyRestEndpointMethods,restEndpointMethods:()=>restEndpointMethods});st.exports=__toCommonJS(nn);var an="10.4.1";var In={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repositories/{repository_id}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repositories/{repository_id}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repositories/{repository_id}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{cancelImport:["DELETE /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.cancelImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#cancel-an-import"}],deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getCommitAuthors:["GET /repos/{owner}/{repo}/import/authors",{},{deprecated:"octokit.rest.migrations.getCommitAuthors() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-commit-authors"}],getImportStatus:["GET /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.getImportStatus() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-an-import-status"}],getLargeFiles:["GET /repos/{owner}/{repo}/import/large_files",{},{deprecated:"octokit.rest.migrations.getLargeFiles() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-large-files"}],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],mapCommitAuthor:["PATCH /repos/{owner}/{repo}/import/authors/{author_id}",{},{deprecated:"octokit.rest.migrations.mapCommitAuthor() is deprecated, see https://docs.github.com/rest/migrations/source-imports#map-a-commit-author"}],setLfsPreference:["PATCH /repos/{owner}/{repo}/import/lfs",{},{deprecated:"octokit.rest.migrations.setLfsPreference() is deprecated, see https://docs.github.com/rest/migrations/source-imports#update-git-lfs-preference"}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],startImport:["PUT /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.startImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#start-an-import"}],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"],updateImport:["PATCH /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.updateImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#update-an-import"}]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createCustomOrganizationRole:["POST /orgs/{org}/organization-roles"],createInvitation:["POST /orgs/{org}/invitations"],createOrUpdateCustomProperties:["PATCH /orgs/{org}/properties/schema"],createOrUpdateCustomPropertiesValuesForRepos:["PATCH /orgs/{org}/properties/values"],createOrUpdateCustomProperty:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteCustomOrganizationRole:["DELETE /orgs/{org}/organization-roles/{role_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],get:["GET /orgs/{org}"],getAllCustomProperties:["GET /orgs/{org}/properties/schema"],getCustomProperty:["GET /orgs/{org}/properties/schema/{custom_property_name}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomPropertiesValuesForRepos:["GET /orgs/{org}/properties/values"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],patchCustomOrganizationRole:["PATCH /orgs/{org}/organization-roles/{role_id}"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeCustomProperty:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateCustomPropertiesValues:["PATCH /repos/{owner}/{repo}/properties/values"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getCustomPropertiesValues:["GET /repos/{owner}/{repo}/properties/values"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};var rn=In;var cn=new Map;for(const[st,Wt]of Object.entries(rn)){for(const[Ot,en]of Object.entries(Wt)){const[Wt,tn,nn]=en;const[an,In]=Wt.split(/ /);const rn=Object.assign({method:an,url:In},tn);if(!cn.has(st)){cn.set(st,new Map)}cn.get(st).set(Ot,{scope:st,methodName:Ot,endpointDefaults:rn,decorations:nn})}}var on={has({scope:st},Wt){return cn.get(st).has(Wt)},getOwnPropertyDescriptor(st,Wt){return{value:this.get(st,Wt),configurable:true,writable:true,enumerable:true}},defineProperty(st,Wt,Ot){Object.defineProperty(st.cache,Wt,Ot);return true},deleteProperty(st,Wt){delete st.cache[Wt];return true},ownKeys({scope:st}){return[...cn.get(st).keys()]},set(st,Wt,Ot){return st.cache[Wt]=Ot},get({octokit:st,scope:Wt,cache:Ot},en){if(Ot[en]){return Ot[en]}const tn=cn.get(Wt).get(en);if(!tn){return void 0}const{endpointDefaults:nn,decorations:an}=tn;if(an){Ot[en]=decorate(st,Wt,en,nn,an)}else{Ot[en]=st.request.defaults(nn)}return Ot[en]}};function endpointsToMethods(st){const Wt={};for(const Ot of cn.keys()){Wt[Ot]=new Proxy({octokit:st,scope:Ot,cache:{}},on)}return Wt}function decorate(st,Wt,Ot,en,tn){const nn=st.request.defaults(en);function withDecorations(...en){let an=nn.endpoint.merge(...en);if(tn.mapToData){an=Object.assign({},an,{data:an[tn.mapToData],[tn.mapToData]:void 0});return nn(an)}if(tn.renamed){const[en,nn]=tn.renamed;st.log.warn(`octokit.${Wt}.${Ot}() has been renamed to octokit.${en}.${nn}()`)}if(tn.deprecated){st.log.warn(tn.deprecated)}if(tn.renamedParameters){const an=nn.endpoint.merge(...en);for(const[en,nn]of Object.entries(tn.renamedParameters)){if(en in an){st.log.warn(`"${en}" parameter is deprecated for "octokit.${Wt}.${Ot}()". Use "${nn}" instead`);if(!(nn in an)){an[nn]=an[en]}delete an[en]}}return nn(an)}return nn(...en)}return Object.assign(withDecorations,nn)}function restEndpointMethods(st){const Wt=endpointsToMethods(st);return{rest:Wt}}restEndpointMethods.VERSION=an;function legacyRestEndpointMethods(st){const Wt=endpointsToMethods(st);return{...Wt,rest:Wt}}legacyRestEndpointMethods.VERSION=an;0&&0},44552:function(st,Wt){"use strict";var Ot=this&&this.__awaiter||function(st,Wt,Ot,en){function adopt(st){return st instanceof Ot?st:new Ot((function(Wt){Wt(st)}))}return new(Ot||(Ot=Promise))((function(Ot,tn){function fulfilled(st){try{step(en.next(st))}catch(st){tn(st)}}function rejected(st){try{step(en["throw"](st))}catch(st){tn(st)}}function step(st){st.done?Ot(st.value):adopt(st.value).then(fulfilled,rejected)}step((en=en.apply(st,Wt||[])).next())}))};Object.defineProperty(Wt,"__esModule",{value:true});Wt.PersonalAccessTokenCredentialHandler=Wt.BearerCredentialHandler=Wt.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(st,Wt){this.username=st;this.password=Wt}prepareRequest(st){if(!st.headers){throw Error("The request has no headers")}st.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return Ot(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}Wt.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(st){this.token=st}prepareRequest(st){if(!st.headers){throw Error("The request has no headers")}st.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return Ot(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}Wt.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(st){this.token=st}prepareRequest(st){if(!st.headers){throw Error("The request has no headers")}st.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return Ot(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}Wt.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},54844:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__setModuleDefault||(Object.create?function(st,Wt){Object.defineProperty(st,"default",{enumerable:true,value:Wt})}:function(st,Wt){st["default"]=Wt});var nn=this&&this.__importStar||function(st){if(st&&st.__esModule)return st;var Wt={};if(st!=null)for(var Ot in st)if(Ot!=="default"&&Object.prototype.hasOwnProperty.call(st,Ot))en(Wt,st,Ot);tn(Wt,st);return Wt};var an=this&&this.__awaiter||function(st,Wt,Ot,en){function adopt(st){return st instanceof Ot?st:new Ot((function(Wt){Wt(st)}))}return new(Ot||(Ot=Promise))((function(Ot,tn){function fulfilled(st){try{step(en.next(st))}catch(st){tn(st)}}function rejected(st){try{step(en["throw"](st))}catch(st){tn(st)}}function step(st){st.done?Ot(st.value):adopt(st.value).then(fulfilled,rejected)}step((en=en.apply(st,Wt||[])).next())}))};Object.defineProperty(Wt,"__esModule",{value:true});Wt.HttpClient=Wt.isHttps=Wt.HttpClientResponse=Wt.HttpClientError=Wt.getProxyUrl=Wt.MediaTypes=Wt.Headers=Wt.HttpCodes=void 0;const In=nn(Ot(58611));const rn=nn(Ot(65692));const cn=nn(Ot(54988));const on=nn(Ot(20770));const sn=Ot(46752);var dn;(function(st){st[st["OK"]=200]="OK";st[st["MultipleChoices"]=300]="MultipleChoices";st[st["MovedPermanently"]=301]="MovedPermanently";st[st["ResourceMoved"]=302]="ResourceMoved";st[st["SeeOther"]=303]="SeeOther";st[st["NotModified"]=304]="NotModified";st[st["UseProxy"]=305]="UseProxy";st[st["SwitchProxy"]=306]="SwitchProxy";st[st["TemporaryRedirect"]=307]="TemporaryRedirect";st[st["PermanentRedirect"]=308]="PermanentRedirect";st[st["BadRequest"]=400]="BadRequest";st[st["Unauthorized"]=401]="Unauthorized";st[st["PaymentRequired"]=402]="PaymentRequired";st[st["Forbidden"]=403]="Forbidden";st[st["NotFound"]=404]="NotFound";st[st["MethodNotAllowed"]=405]="MethodNotAllowed";st[st["NotAcceptable"]=406]="NotAcceptable";st[st["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";st[st["RequestTimeout"]=408]="RequestTimeout";st[st["Conflict"]=409]="Conflict";st[st["Gone"]=410]="Gone";st[st["TooManyRequests"]=429]="TooManyRequests";st[st["InternalServerError"]=500]="InternalServerError";st[st["NotImplemented"]=501]="NotImplemented";st[st["BadGateway"]=502]="BadGateway";st[st["ServiceUnavailable"]=503]="ServiceUnavailable";st[st["GatewayTimeout"]=504]="GatewayTimeout"})(dn||(Wt.HttpCodes=dn={}));var un;(function(st){st["Accept"]="accept";st["ContentType"]="content-type"})(un||(Wt.Headers=un={}));var pn;(function(st){st["ApplicationJson"]="application/json"})(pn||(Wt.MediaTypes=pn={}));function getProxyUrl(st){const Wt=cn.getProxyUrl(new URL(st));return Wt?Wt.href:""}Wt.getProxyUrl=getProxyUrl;const bn=[dn.MovedPermanently,dn.ResourceMoved,dn.SeeOther,dn.TemporaryRedirect,dn.PermanentRedirect];const mn=[dn.BadGateway,dn.ServiceUnavailable,dn.GatewayTimeout];const Gn=["OPTIONS","GET","DELETE","HEAD"];const hn=10;const Zn=5;class HttpClientError extends Error{constructor(st,Wt){super(st);this.name="HttpClientError";this.statusCode=Wt;Object.setPrototypeOf(this,HttpClientError.prototype)}}Wt.HttpClientError=HttpClientError;class HttpClientResponse{constructor(st){this.message=st}readBody(){return an(this,void 0,void 0,(function*(){return new Promise((st=>an(this,void 0,void 0,(function*(){let Wt=Buffer.alloc(0);this.message.on("data",(st=>{Wt=Buffer.concat([Wt,st])}));this.message.on("end",(()=>{st(Wt.toString())}))}))))}))}readBodyBuffer(){return an(this,void 0,void 0,(function*(){return new Promise((st=>an(this,void 0,void 0,(function*(){const Wt=[];this.message.on("data",(st=>{Wt.push(st)}));this.message.on("end",(()=>{st(Buffer.concat(Wt))}))}))))}))}}Wt.HttpClientResponse=HttpClientResponse;function isHttps(st){const Wt=new URL(st);return Wt.protocol==="https:"}Wt.isHttps=isHttps;class HttpClient{constructor(st,Wt,Ot){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=st;this.handlers=Wt||[];this.requestOptions=Ot;if(Ot){if(Ot.ignoreSslError!=null){this._ignoreSslError=Ot.ignoreSslError}this._socketTimeout=Ot.socketTimeout;if(Ot.allowRedirects!=null){this._allowRedirects=Ot.allowRedirects}if(Ot.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=Ot.allowRedirectDowngrade}if(Ot.maxRedirects!=null){this._maxRedirects=Math.max(Ot.maxRedirects,0)}if(Ot.keepAlive!=null){this._keepAlive=Ot.keepAlive}if(Ot.allowRetries!=null){this._allowRetries=Ot.allowRetries}if(Ot.maxRetries!=null){this._maxRetries=Ot.maxRetries}}}options(st,Wt){return an(this,void 0,void 0,(function*(){return this.request("OPTIONS",st,null,Wt||{})}))}get(st,Wt){return an(this,void 0,void 0,(function*(){return this.request("GET",st,null,Wt||{})}))}del(st,Wt){return an(this,void 0,void 0,(function*(){return this.request("DELETE",st,null,Wt||{})}))}post(st,Wt,Ot){return an(this,void 0,void 0,(function*(){return this.request("POST",st,Wt,Ot||{})}))}patch(st,Wt,Ot){return an(this,void 0,void 0,(function*(){return this.request("PATCH",st,Wt,Ot||{})}))}put(st,Wt,Ot){return an(this,void 0,void 0,(function*(){return this.request("PUT",st,Wt,Ot||{})}))}head(st,Wt){return an(this,void 0,void 0,(function*(){return this.request("HEAD",st,null,Wt||{})}))}sendStream(st,Wt,Ot,en){return an(this,void 0,void 0,(function*(){return this.request(st,Wt,Ot,en)}))}getJson(st,Wt={}){return an(this,void 0,void 0,(function*(){Wt[un.Accept]=this._getExistingOrDefaultHeader(Wt,un.Accept,pn.ApplicationJson);const Ot=yield this.get(st,Wt);return this._processResponse(Ot,this.requestOptions)}))}postJson(st,Wt,Ot={}){return an(this,void 0,void 0,(function*(){const en=JSON.stringify(Wt,null,2);Ot[un.Accept]=this._getExistingOrDefaultHeader(Ot,un.Accept,pn.ApplicationJson);Ot[un.ContentType]=this._getExistingOrDefaultHeader(Ot,un.ContentType,pn.ApplicationJson);const tn=yield this.post(st,en,Ot);return this._processResponse(tn,this.requestOptions)}))}putJson(st,Wt,Ot={}){return an(this,void 0,void 0,(function*(){const en=JSON.stringify(Wt,null,2);Ot[un.Accept]=this._getExistingOrDefaultHeader(Ot,un.Accept,pn.ApplicationJson);Ot[un.ContentType]=this._getExistingOrDefaultHeader(Ot,un.ContentType,pn.ApplicationJson);const tn=yield this.put(st,en,Ot);return this._processResponse(tn,this.requestOptions)}))}patchJson(st,Wt,Ot={}){return an(this,void 0,void 0,(function*(){const en=JSON.stringify(Wt,null,2);Ot[un.Accept]=this._getExistingOrDefaultHeader(Ot,un.Accept,pn.ApplicationJson);Ot[un.ContentType]=this._getExistingOrDefaultHeader(Ot,un.ContentType,pn.ApplicationJson);const tn=yield this.patch(st,en,Ot);return this._processResponse(tn,this.requestOptions)}))}request(st,Wt,Ot,en){return an(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const tn=new URL(Wt);let nn=this._prepareRequest(st,tn,en);const an=this._allowRetries&&Gn.includes(st)?this._maxRetries+1:1;let In=0;let rn;do{rn=yield this.requestRaw(nn,Ot);if(rn&&rn.message&&rn.message.statusCode===dn.Unauthorized){let st;for(const Wt of this.handlers){if(Wt.canHandleAuthentication(rn)){st=Wt;break}}if(st){return st.handleAuthentication(this,nn,Ot)}else{return rn}}let Wt=this._maxRedirects;while(rn.message.statusCode&&bn.includes(rn.message.statusCode)&&this._allowRedirects&&Wt>0){const an=rn.message.headers["location"];if(!an){break}const In=new URL(an);if(tn.protocol==="https:"&&tn.protocol!==In.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield rn.readBody();if(In.hostname!==tn.hostname){for(const st in en){if(st.toLowerCase()==="authorization"){delete en[st]}}}nn=this._prepareRequest(st,In,en);rn=yield this.requestRaw(nn,Ot);Wt--}if(!rn.message.statusCode||!mn.includes(rn.message.statusCode)){return rn}In+=1;if(In{function callbackForResult(st,Wt){if(st){en(st)}else if(!Wt){en(new Error("Unknown error"))}else{Ot(Wt)}}this.requestRawWithCallback(st,Wt,callbackForResult)}))}))}requestRawWithCallback(st,Wt,Ot){if(typeof Wt==="string"){if(!st.options.headers){st.options.headers={}}st.options.headers["Content-Length"]=Buffer.byteLength(Wt,"utf8")}let en=false;function handleResult(st,Wt){if(!en){en=true;Ot(st,Wt)}}const tn=st.httpModule.request(st.options,(st=>{const Wt=new HttpClientResponse(st);handleResult(undefined,Wt)}));let nn;tn.on("socket",(st=>{nn=st}));tn.setTimeout(this._socketTimeout||3*6e4,(()=>{if(nn){nn.end()}handleResult(new Error(`Request timeout: ${st.options.path}`))}));tn.on("error",(function(st){handleResult(st)}));if(Wt&&typeof Wt==="string"){tn.write(Wt,"utf8")}if(Wt&&typeof Wt!=="string"){Wt.on("close",(function(){tn.end()}));Wt.pipe(tn)}else{tn.end()}}getAgent(st){const Wt=new URL(st);return this._getAgent(Wt)}getAgentDispatcher(st){const Wt=new URL(st);const Ot=cn.getProxyUrl(Wt);const en=Ot&&Ot.hostname;if(!en){return}return this._getProxyAgentDispatcher(Wt,Ot)}_prepareRequest(st,Wt,Ot){const en={};en.parsedUrl=Wt;const tn=en.parsedUrl.protocol==="https:";en.httpModule=tn?rn:In;const nn=tn?443:80;en.options={};en.options.host=en.parsedUrl.hostname;en.options.port=en.parsedUrl.port?parseInt(en.parsedUrl.port):nn;en.options.path=(en.parsedUrl.pathname||"")+(en.parsedUrl.search||"");en.options.method=st;en.options.headers=this._mergeHeaders(Ot);if(this.userAgent!=null){en.options.headers["user-agent"]=this.userAgent}en.options.agent=this._getAgent(en.parsedUrl);if(this.handlers){for(const st of this.handlers){st.prepareRequest(en.options)}}return en}_mergeHeaders(st){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(st||{}))}return lowercaseKeys(st||{})}_getExistingOrDefaultHeader(st,Wt,Ot){let en;if(this.requestOptions&&this.requestOptions.headers){en=lowercaseKeys(this.requestOptions.headers)[Wt]}return st[Wt]||en||Ot}_getAgent(st){let Wt;const Ot=cn.getProxyUrl(st);const en=Ot&&Ot.hostname;if(this._keepAlive&&en){Wt=this._proxyAgent}if(!en){Wt=this._agent}if(Wt){return Wt}const tn=st.protocol==="https:";let nn=100;if(this.requestOptions){nn=this.requestOptions.maxSockets||In.globalAgent.maxSockets}if(Ot&&Ot.hostname){const st={maxSockets:nn,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(Ot.username||Ot.password)&&{proxyAuth:`${Ot.username}:${Ot.password}`}),{host:Ot.hostname,port:Ot.port})};let en;const an=Ot.protocol==="https:";if(tn){en=an?on.httpsOverHttps:on.httpsOverHttp}else{en=an?on.httpOverHttps:on.httpOverHttp}Wt=en(st);this._proxyAgent=Wt}if(!Wt){const st={keepAlive:this._keepAlive,maxSockets:nn};Wt=tn?new rn.Agent(st):new In.Agent(st);this._agent=Wt}if(tn&&this._ignoreSslError){Wt.options=Object.assign(Wt.options||{},{rejectUnauthorized:false})}return Wt}_getProxyAgentDispatcher(st,Wt){let Ot;if(this._keepAlive){Ot=this._proxyAgentDispatcher}if(Ot){return Ot}const en=st.protocol==="https:";Ot=new sn.ProxyAgent(Object.assign({uri:Wt.href,pipelining:!this._keepAlive?0:1},(Wt.username||Wt.password)&&{token:`Basic ${Buffer.from(`${Wt.username}:${Wt.password}`).toString("base64")}`}));this._proxyAgentDispatcher=Ot;if(en&&this._ignoreSslError){Ot.options=Object.assign(Ot.options.requestTls||{},{rejectUnauthorized:false})}return Ot}_performExponentialBackoff(st){return an(this,void 0,void 0,(function*(){st=Math.min(hn,st);const Wt=Zn*Math.pow(2,st);return new Promise((st=>setTimeout((()=>st()),Wt)))}))}_processResponse(st,Wt){return an(this,void 0,void 0,(function*(){return new Promise(((Ot,en)=>an(this,void 0,void 0,(function*(){const tn=st.message.statusCode||0;const nn={statusCode:tn,result:null,headers:{}};if(tn===dn.NotFound){Ot(nn)}function dateTimeDeserializer(st,Wt){if(typeof Wt==="string"){const st=new Date(Wt);if(!isNaN(st.valueOf())){return st}}return Wt}let an;let In;try{In=yield st.readBody();if(In&&In.length>0){if(Wt&&Wt.deserializeDates){an=JSON.parse(In,dateTimeDeserializer)}else{an=JSON.parse(In)}nn.result=an}nn.headers=st.message.headers}catch(st){}if(tn>299){let st;if(an&&an.message){st=an.message}else if(In&&In.length>0){st=In}else{st=`Failed request: (${tn})`}const Wt=new HttpClientError(st,tn);Wt.result=nn.result;en(Wt)}else{Ot(nn)}}))))}))}}Wt.HttpClient=HttpClient;const lowercaseKeys=st=>Object.keys(st).reduce(((Wt,Ot)=>(Wt[Ot.toLowerCase()]=st[Ot],Wt)),{})},54988:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.checkBypass=Wt.getProxyUrl=void 0;function getProxyUrl(st){const Wt=st.protocol==="https:";if(checkBypass(st)){return undefined}const Ot=(()=>{if(Wt){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(Ot){try{return new DecodedURL(Ot)}catch(st){if(!Ot.startsWith("http://")&&!Ot.startsWith("https://"))return new DecodedURL(`http://${Ot}`)}}else{return undefined}}Wt.getProxyUrl=getProxyUrl;function checkBypass(st){if(!st.hostname){return false}const Wt=st.hostname;if(isLoopbackAddress(Wt)){return true}const Ot=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!Ot){return false}let en;if(st.port){en=Number(st.port)}else if(st.protocol==="http:"){en=80}else if(st.protocol==="https:"){en=443}const tn=[st.hostname.toUpperCase()];if(typeof en==="number"){tn.push(`${tn[0]}:${en}`)}for(const st of Ot.split(",").map((st=>st.trim().toUpperCase())).filter((st=>st))){if(st==="*"||tn.some((Wt=>Wt===st||Wt.endsWith(`.${st}`)||st.startsWith(".")&&Wt.endsWith(`${st}`)))){return true}}return false}Wt.checkBypass=checkBypass;function isLoopbackAddress(st){const Wt=st.toLowerCase();return Wt==="localhost"||Wt.startsWith("127.")||Wt.startsWith("[::1]")||Wt.startsWith("[0:0:0:0:0:0:0:1]")}class DecodedURL extends URL{constructor(st,Wt){super(st,Wt);this._decodedUsername=decodeURIComponent(super.username);this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}},75207:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;Object.defineProperty(st,en,{enumerable:true,get:function(){return Wt[Ot]}})}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__setModuleDefault||(Object.create?function(st,Wt){Object.defineProperty(st,"default",{enumerable:true,value:Wt})}:function(st,Wt){st["default"]=Wt});var nn=this&&this.__importStar||function(st){if(st&&st.__esModule)return st;var Wt={};if(st!=null)for(var Ot in st)if(Ot!=="default"&&Object.hasOwnProperty.call(st,Ot))en(Wt,st,Ot);tn(Wt,st);return Wt};var an=this&&this.__awaiter||function(st,Wt,Ot,en){function adopt(st){return st instanceof Ot?st:new Ot((function(Wt){Wt(st)}))}return new(Ot||(Ot=Promise))((function(Ot,tn){function fulfilled(st){try{step(en.next(st))}catch(st){tn(st)}}function rejected(st){try{step(en["throw"](st))}catch(st){tn(st)}}function step(st){st.done?Ot(st.value):adopt(st.value).then(fulfilled,rejected)}step((en=en.apply(st,Wt||[])).next())}))};var In;Object.defineProperty(Wt,"__esModule",{value:true});Wt.getCmdPath=Wt.tryGetExecutablePath=Wt.isRooted=Wt.isDirectory=Wt.exists=Wt.READONLY=Wt.UV_FS_O_EXLOCK=Wt.IS_WINDOWS=Wt.unlink=Wt.symlink=Wt.stat=Wt.rmdir=Wt.rm=Wt.rename=Wt.readlink=Wt.readdir=Wt.open=Wt.mkdir=Wt.lstat=Wt.copyFile=Wt.chmod=void 0;const rn=nn(Ot(79896));const cn=nn(Ot(16928));In=rn.promises,Wt.chmod=In.chmod,Wt.copyFile=In.copyFile,Wt.lstat=In.lstat,Wt.mkdir=In.mkdir,Wt.open=In.open,Wt.readdir=In.readdir,Wt.readlink=In.readlink,Wt.rename=In.rename,Wt.rm=In.rm,Wt.rmdir=In.rmdir,Wt.stat=In.stat,Wt.symlink=In.symlink,Wt.unlink=In.unlink;Wt.IS_WINDOWS=process.platform==="win32";Wt.UV_FS_O_EXLOCK=268435456;Wt.READONLY=rn.constants.O_RDONLY;function exists(st){return an(this,void 0,void 0,(function*(){try{yield Wt.stat(st)}catch(st){if(st.code==="ENOENT"){return false}throw st}return true}))}Wt.exists=exists;function isDirectory(st,Ot=false){return an(this,void 0,void 0,(function*(){const en=Ot?yield Wt.stat(st):yield Wt.lstat(st);return en.isDirectory()}))}Wt.isDirectory=isDirectory;function isRooted(st){st=normalizeSeparators(st);if(!st){throw new Error('isRooted() parameter "p" cannot be empty')}if(Wt.IS_WINDOWS){return st.startsWith("\\")||/^[A-Z]:/i.test(st)}return st.startsWith("/")}Wt.isRooted=isRooted;function tryGetExecutablePath(st,Ot){return an(this,void 0,void 0,(function*(){let en=undefined;try{en=yield Wt.stat(st)}catch(Wt){if(Wt.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${st}': ${Wt}`)}}if(en&&en.isFile()){if(Wt.IS_WINDOWS){const Wt=cn.extname(st).toUpperCase();if(Ot.some((st=>st.toUpperCase()===Wt))){return st}}else{if(isUnixExecutable(en)){return st}}}const tn=st;for(const nn of Ot){st=tn+nn;en=undefined;try{en=yield Wt.stat(st)}catch(Wt){if(Wt.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${st}': ${Wt}`)}}if(en&&en.isFile()){if(Wt.IS_WINDOWS){try{const Ot=cn.dirname(st);const en=cn.basename(st).toUpperCase();for(const tn of yield Wt.readdir(Ot)){if(en===tn.toUpperCase()){st=cn.join(Ot,tn);break}}}catch(Wt){console.log(`Unexpected error attempting to determine the actual case of the file '${st}': ${Wt}`)}return st}else{if(isUnixExecutable(en)){return st}}}}return""}))}Wt.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(st){st=st||"";if(Wt.IS_WINDOWS){st=st.replace(/\//g,"\\");return st.replace(/\\\\+/g,"\\")}return st.replace(/\/\/+/g,"/")}function isUnixExecutable(st){return(st.mode&1)>0||(st.mode&8)>0&&st.gid===process.getgid()||(st.mode&64)>0&&st.uid===process.getuid()}function getCmdPath(){var st;return(st=process.env["COMSPEC"])!==null&&st!==void 0?st:`cmd.exe`}Wt.getCmdPath=getCmdPath},94994:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;Object.defineProperty(st,en,{enumerable:true,get:function(){return Wt[Ot]}})}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__setModuleDefault||(Object.create?function(st,Wt){Object.defineProperty(st,"default",{enumerable:true,value:Wt})}:function(st,Wt){st["default"]=Wt});var nn=this&&this.__importStar||function(st){if(st&&st.__esModule)return st;var Wt={};if(st!=null)for(var Ot in st)if(Ot!=="default"&&Object.hasOwnProperty.call(st,Ot))en(Wt,st,Ot);tn(Wt,st);return Wt};var an=this&&this.__awaiter||function(st,Wt,Ot,en){function adopt(st){return st instanceof Ot?st:new Ot((function(Wt){Wt(st)}))}return new(Ot||(Ot=Promise))((function(Ot,tn){function fulfilled(st){try{step(en.next(st))}catch(st){tn(st)}}function rejected(st){try{step(en["throw"](st))}catch(st){tn(st)}}function step(st){st.done?Ot(st.value):adopt(st.value).then(fulfilled,rejected)}step((en=en.apply(st,Wt||[])).next())}))};Object.defineProperty(Wt,"__esModule",{value:true});Wt.findInPath=Wt.which=Wt.mkdirP=Wt.rmRF=Wt.mv=Wt.cp=void 0;const In=Ot(42613);const rn=nn(Ot(16928));const cn=nn(Ot(75207));function cp(st,Wt,Ot={}){return an(this,void 0,void 0,(function*(){const{force:en,recursive:tn,copySourceDirectory:nn}=readCopyOptions(Ot);const an=(yield cn.exists(Wt))?yield cn.stat(Wt):null;if(an&&an.isFile()&&!en){return}const In=an&&an.isDirectory()&&nn?rn.join(Wt,rn.basename(st)):Wt;if(!(yield cn.exists(st))){throw new Error(`no such file or directory: ${st}`)}const on=yield cn.stat(st);if(on.isDirectory()){if(!tn){throw new Error(`Failed to copy. ${st} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(st,In,0,en)}}else{if(rn.relative(st,In)===""){throw new Error(`'${In}' and '${st}' are the same file`)}yield copyFile(st,In,en)}}))}Wt.cp=cp;function mv(st,Wt,Ot={}){return an(this,void 0,void 0,(function*(){if(yield cn.exists(Wt)){let en=true;if(yield cn.isDirectory(Wt)){Wt=rn.join(Wt,rn.basename(st));en=yield cn.exists(Wt)}if(en){if(Ot.force==null||Ot.force){yield rmRF(Wt)}else{throw new Error("Destination already exists")}}}yield mkdirP(rn.dirname(Wt));yield cn.rename(st,Wt)}))}Wt.mv=mv;function rmRF(st){return an(this,void 0,void 0,(function*(){if(cn.IS_WINDOWS){if(/[*"<>|]/.test(st)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}}try{yield cn.rm(st,{force:true,maxRetries:3,recursive:true,retryDelay:300})}catch(st){throw new Error(`File was unable to be removed ${st}`)}}))}Wt.rmRF=rmRF;function mkdirP(st){return an(this,void 0,void 0,(function*(){In.ok(st,"a path argument must be provided");yield cn.mkdir(st,{recursive:true})}))}Wt.mkdirP=mkdirP;function which(st,Wt){return an(this,void 0,void 0,(function*(){if(!st){throw new Error("parameter 'tool' is required")}if(Wt){const Wt=yield which(st,false);if(!Wt){if(cn.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${st}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${st}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return Wt}const Ot=yield findInPath(st);if(Ot&&Ot.length>0){return Ot[0]}return""}))}Wt.which=which;function findInPath(st){return an(this,void 0,void 0,(function*(){if(!st){throw new Error("parameter 'tool' is required")}const Wt=[];if(cn.IS_WINDOWS&&process.env["PATHEXT"]){for(const st of process.env["PATHEXT"].split(rn.delimiter)){if(st){Wt.push(st)}}}if(cn.isRooted(st)){const Ot=yield cn.tryGetExecutablePath(st,Wt);if(Ot){return[Ot]}return[]}if(st.includes(rn.sep)){return[]}const Ot=[];if(process.env.PATH){for(const st of process.env.PATH.split(rn.delimiter)){if(st){Ot.push(st)}}}const en=[];for(const tn of Ot){const Ot=yield cn.tryGetExecutablePath(rn.join(tn,st),Wt);if(Ot){en.push(Ot)}}return en}))}Wt.findInPath=findInPath;function readCopyOptions(st){const Wt=st.force==null?true:st.force;const Ot=Boolean(st.recursive);const en=st.copySourceDirectory==null?true:Boolean(st.copySourceDirectory);return{force:Wt,recursive:Ot,copySourceDirectory:en}}function cpDirRecursive(st,Wt,Ot,en){return an(this,void 0,void 0,(function*(){if(Ot>=255)return;Ot++;yield mkdirP(Wt);const tn=yield cn.readdir(st);for(const nn of tn){const tn=`${st}/${nn}`;const an=`${Wt}/${nn}`;const In=yield cn.lstat(tn);if(In.isDirectory()){yield cpDirRecursive(tn,an,Ot,en)}else{yield copyFile(tn,an,en)}}yield cn.chmod(Wt,(yield cn.stat(st)).mode)}))}function copyFile(st,Wt,Ot){return an(this,void 0,void 0,(function*(){if((yield cn.lstat(st)).isSymbolicLink()){try{yield cn.lstat(Wt);yield cn.unlink(Wt)}catch(st){if(st.code==="EPERM"){yield cn.chmod(Wt,"0666");yield cn.unlink(Wt)}}const Ot=yield cn.readlink(st);yield cn.symlink(Ot,Wt,cn.IS_WINDOWS?"junction":null)}else if(!(yield cn.exists(Wt))||Ot){yield cn.copyFile(st,Wt)}}))}},90108:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.version=void 0;Wt.version="abi/5.7.0"},30097:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.defaultAbiCoder=Wt.AbiCoder=void 0;var en=Ot(42006);var tn=Ot(61338);var nn=Ot(76127);var an=Ot(90108);var In=new nn.Logger(an.version);var rn=Ot(41430);var cn=Ot(84825);var on=Ot(79811);var sn=Ot(85238);var dn=Ot(95837);var un=Ot(45994);var pn=Ot(95005);var bn=Ot(98849);var mn=Ot(99117);var Gn=Ot(78068);var hn=Ot(65186);var Zn=new RegExp(/^bytes([0-9]*)$/);var An=new RegExp(/^(u?int)([0-9]*)$/);var Wn=function(){function AbiCoder(st){(0,tn.defineReadOnly)(this,"coerceFunc",st||null)}AbiCoder.prototype._getCoder=function(st){var Wt=this;switch(st.baseType){case"address":return new cn.AddressCoder(st.name);case"bool":return new sn.BooleanCoder(st.name);case"string":return new mn.StringCoder(st.name);case"bytes":return new dn.BytesCoder(st.name);case"array":return new on.ArrayCoder(this._getCoder(st.arrayChildren),st.arrayLength,st.name);case"tuple":return new Gn.TupleCoder((st.components||[]).map((function(st){return Wt._getCoder(st)})),st.name);case"":return new pn.NullCoder(st.name)}var Ot=st.type.match(An);if(Ot){var en=parseInt(Ot[2]||"256");if(en===0||en>256||en%8!==0){In.throwArgumentError("invalid "+Ot[1]+" bit length","param",st)}return new bn.NumberCoder(en/8,Ot[1]==="int",st.name)}Ot=st.type.match(Zn);if(Ot){var en=parseInt(Ot[1]);if(en===0||en>32){In.throwArgumentError("invalid bytes length","param",st)}return new un.FixedBytesCoder(en,st.name)}return In.throwArgumentError("invalid type","type",st.type)};AbiCoder.prototype._getWordSize=function(){return 32};AbiCoder.prototype._getReader=function(st,Wt){return new rn.Reader(st,this._getWordSize(),this.coerceFunc,Wt)};AbiCoder.prototype._getWriter=function(){return new rn.Writer(this._getWordSize())};AbiCoder.prototype.getDefaultValue=function(st){var Wt=this;var Ot=st.map((function(st){return Wt._getCoder(hn.ParamType.from(st))}));var en=new Gn.TupleCoder(Ot,"_");return en.defaultValue()};AbiCoder.prototype.encode=function(st,Wt){var Ot=this;if(st.length!==Wt.length){In.throwError("types/values length mismatch",nn.Logger.errors.INVALID_ARGUMENT,{count:{types:st.length,values:Wt.length},value:{types:st,values:Wt}})}var en=st.map((function(st){return Ot._getCoder(hn.ParamType.from(st))}));var tn=new Gn.TupleCoder(en,"_");var an=this._getWriter();tn.encode(an,Wt);return an.data};AbiCoder.prototype.decode=function(st,Wt,Ot){var tn=this;var nn=st.map((function(st){return tn._getCoder(hn.ParamType.from(st))}));var an=new Gn.TupleCoder(nn,"_");return an.decode(this._getReader((0,en.arrayify)(Wt),Ot))};return AbiCoder}();Wt.AbiCoder=Wn;Wt.defaultAbiCoder=new Wn},41430:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Reader=Wt.Writer=Wt.Coder=Wt.checkResultErrors=void 0;var en=Ot(42006);var tn=Ot(18202);var nn=Ot(61338);var an=Ot(76127);var In=Ot(90108);var rn=new an.Logger(In.version);function checkResultErrors(st){var Wt=[];var checkErrors=function(st,Ot){if(!Array.isArray(Ot)){return}for(var en in Ot){var tn=st.slice();tn.push(en);try{checkErrors(tn,Ot[en])}catch(st){Wt.push({path:tn,error:st})}}};checkErrors([],st);return Wt}Wt.checkResultErrors=checkResultErrors;var cn=function(){function Coder(st,Wt,Ot,en){this.name=st;this.type=Wt;this.localName=Ot;this.dynamic=en}Coder.prototype._throwError=function(st,Wt){rn.throwArgumentError(st,this.localName,Wt)};return Coder}();Wt.Coder=cn;var on=function(){function Writer(st){(0,nn.defineReadOnly)(this,"wordSize",st||32);this._data=[];this._dataLength=0;this._padding=new Uint8Array(st)}Object.defineProperty(Writer.prototype,"data",{get:function(){return(0,en.hexConcat)(this._data)},enumerable:false,configurable:true});Object.defineProperty(Writer.prototype,"length",{get:function(){return this._dataLength},enumerable:false,configurable:true});Writer.prototype._writeData=function(st){this._data.push(st);this._dataLength+=st.length;return st.length};Writer.prototype.appendWriter=function(st){return this._writeData((0,en.concat)(st._data))};Writer.prototype.writeBytes=function(st){var Wt=(0,en.arrayify)(st);var Ot=Wt.length%this.wordSize;if(Ot){Wt=(0,en.concat)([Wt,this._padding.slice(Ot)])}return this._writeData(Wt)};Writer.prototype._getValue=function(st){var Wt=(0,en.arrayify)(tn.BigNumber.from(st));if(Wt.length>this.wordSize){rn.throwError("value out-of-bounds",an.Logger.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:Wt.length})}if(Wt.length%this.wordSize){Wt=(0,en.concat)([this._padding.slice(Wt.length%this.wordSize),Wt])}return Wt};Writer.prototype.writeValue=function(st){return this._writeData(this._getValue(st))};Writer.prototype.writeUpdatableValue=function(){var st=this;var Wt=this._data.length;this._data.push(this._padding);this._dataLength+=this.wordSize;return function(Ot){st._data[Wt]=st._getValue(Ot)}};return Writer}();Wt.Writer=on;var sn=function(){function Reader(st,Wt,Ot,tn){(0,nn.defineReadOnly)(this,"_data",(0,en.arrayify)(st));(0,nn.defineReadOnly)(this,"wordSize",Wt||32);(0,nn.defineReadOnly)(this,"_coerceFunc",Ot);(0,nn.defineReadOnly)(this,"allowLoose",tn);this._offset=0}Object.defineProperty(Reader.prototype,"data",{get:function(){return(0,en.hexlify)(this._data)},enumerable:false,configurable:true});Object.defineProperty(Reader.prototype,"consumed",{get:function(){return this._offset},enumerable:false,configurable:true});Reader.coerce=function(st,Wt){var Ot=st.match("^u?int([0-9]+)$");if(Ot&&parseInt(Ot[1])<=48){Wt=Wt.toNumber()}return Wt};Reader.prototype.coerce=function(st,Wt){if(this._coerceFunc){return this._coerceFunc(st,Wt)}return Reader.coerce(st,Wt)};Reader.prototype._peekBytes=function(st,Wt,Ot){var en=Math.ceil(Wt/this.wordSize)*this.wordSize;if(this._offset+en>this._data.length){if(this.allowLoose&&Ot&&this._offset+Wt<=this._data.length){en=Wt}else{rn.throwError("data out-of-bounds",an.Logger.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+en})}}return this._data.slice(this._offset,this._offset+en)};Reader.prototype.subReader=function(st){return new Reader(this._data.slice(this._offset+st),this.wordSize,this._coerceFunc,this.allowLoose)};Reader.prototype.readBytes=function(st,Wt){var Ot=this._peekBytes(0,st,!!Wt);this._offset+=Ot.length;return Ot.slice(0,st)};Reader.prototype.readValue=function(){return tn.BigNumber.from(this.readBytes(this.wordSize))};return Reader}();Wt.Reader=sn},84825:function(st,Wt,Ot){"use strict";var en=this&&this.__extends||function(){var extendStatics=function(st,Wt){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(st,Wt){st.__proto__=Wt}||function(st,Wt){for(var Ot in Wt)if(Object.prototype.hasOwnProperty.call(Wt,Ot))st[Ot]=Wt[Ot]};return extendStatics(st,Wt)};return function(st,Wt){if(typeof Wt!=="function"&&Wt!==null)throw new TypeError("Class extends value "+String(Wt)+" is not a constructor or null");extendStatics(st,Wt);function __(){this.constructor=st}st.prototype=Wt===null?Object.create(Wt):(__.prototype=Wt.prototype,new __)}}();Object.defineProperty(Wt,"__esModule",{value:true});Wt.AddressCoder=void 0;var tn=Ot(75745);var nn=Ot(42006);var an=Ot(41430);var In=function(st){en(AddressCoder,st);function AddressCoder(Wt){return st.call(this,"address","address",Wt,false)||this}AddressCoder.prototype.defaultValue=function(){return"0x0000000000000000000000000000000000000000"};AddressCoder.prototype.encode=function(st,Wt){try{Wt=(0,tn.getAddress)(Wt)}catch(st){this._throwError(st.message,Wt)}return st.writeValue(Wt)};AddressCoder.prototype.decode=function(st){return(0,tn.getAddress)((0,nn.hexZeroPad)(st.readValue().toHexString(),20))};return AddressCoder}(an.Coder);Wt.AddressCoder=In},48775:function(st,Wt,Ot){"use strict";var en=this&&this.__extends||function(){var extendStatics=function(st,Wt){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(st,Wt){st.__proto__=Wt}||function(st,Wt){for(var Ot in Wt)if(Object.prototype.hasOwnProperty.call(Wt,Ot))st[Ot]=Wt[Ot]};return extendStatics(st,Wt)};return function(st,Wt){if(typeof Wt!=="function"&&Wt!==null)throw new TypeError("Class extends value "+String(Wt)+" is not a constructor or null");extendStatics(st,Wt);function __(){this.constructor=st}st.prototype=Wt===null?Object.create(Wt):(__.prototype=Wt.prototype,new __)}}();Object.defineProperty(Wt,"__esModule",{value:true});Wt.AnonymousCoder=void 0;var tn=Ot(41430);var nn=function(st){en(AnonymousCoder,st);function AnonymousCoder(Wt){var Ot=st.call(this,Wt.name,Wt.type,undefined,Wt.dynamic)||this;Ot.coder=Wt;return Ot}AnonymousCoder.prototype.defaultValue=function(){return this.coder.defaultValue()};AnonymousCoder.prototype.encode=function(st,Wt){return this.coder.encode(st,Wt)};AnonymousCoder.prototype.decode=function(st){return this.coder.decode(st)};return AnonymousCoder}(tn.Coder);Wt.AnonymousCoder=nn},79811:function(st,Wt,Ot){"use strict";var en=this&&this.__extends||function(){var extendStatics=function(st,Wt){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(st,Wt){st.__proto__=Wt}||function(st,Wt){for(var Ot in Wt)if(Object.prototype.hasOwnProperty.call(Wt,Ot))st[Ot]=Wt[Ot]};return extendStatics(st,Wt)};return function(st,Wt){if(typeof Wt!=="function"&&Wt!==null)throw new TypeError("Class extends value "+String(Wt)+" is not a constructor or null");extendStatics(st,Wt);function __(){this.constructor=st}st.prototype=Wt===null?Object.create(Wt):(__.prototype=Wt.prototype,new __)}}();Object.defineProperty(Wt,"__esModule",{value:true});Wt.ArrayCoder=Wt.unpack=Wt.pack=void 0;var tn=Ot(76127);var nn=Ot(90108);var an=new tn.Logger(nn.version);var In=Ot(41430);var rn=Ot(48775);function pack(st,Wt,Ot){var en=null;if(Array.isArray(Ot)){en=Ot}else if(Ot&&typeof Ot==="object"){var nn={};en=Wt.map((function(st){var Wt=st.localName;if(!Wt){an.throwError("cannot encode object for signature with missing names",tn.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:st,value:Ot})}if(nn[Wt]){an.throwError("cannot encode object for signature with duplicate names",tn.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:st,value:Ot})}nn[Wt]=true;return Ot[Wt]}))}else{an.throwArgumentError("invalid tuple value","tuple",Ot)}if(Wt.length!==en.length){an.throwArgumentError("types/value length mismatch","tuple",Ot)}var rn=new In.Writer(st.wordSize);var cn=new In.Writer(st.wordSize);var on=[];Wt.forEach((function(st,Wt){var Ot=en[Wt];if(st.dynamic){var tn=cn.length;st.encode(cn,Ot);var nn=rn.writeUpdatableValue();on.push((function(st){nn(st+tn)}))}else{st.encode(rn,Ot)}}));on.forEach((function(st){st(rn.length)}));var sn=st.appendWriter(rn);sn+=st.appendWriter(cn);return sn}Wt.pack=pack;function unpack(st,Wt){var Ot=[];var en=st.subReader(0);Wt.forEach((function(Wt){var nn=null;if(Wt.dynamic){var an=st.readValue();var In=en.subReader(an.toNumber());try{nn=Wt.decode(In)}catch(st){if(st.code===tn.Logger.errors.BUFFER_OVERRUN){throw st}nn=st;nn.baseType=Wt.name;nn.name=Wt.localName;nn.type=Wt.type}}else{try{nn=Wt.decode(st)}catch(st){if(st.code===tn.Logger.errors.BUFFER_OVERRUN){throw st}nn=st;nn.baseType=Wt.name;nn.name=Wt.localName;nn.type=Wt.type}}if(nn!=undefined){Ot.push(nn)}}));var nn=Wt.reduce((function(st,Wt){var Ot=Wt.localName;if(Ot){if(!st[Ot]){st[Ot]=0}st[Ot]++}return st}),{});Wt.forEach((function(st,Wt){var en=st.localName;if(!en||nn[en]!==1){return}if(en==="length"){en="_length"}if(Ot[en]!=null){return}var tn=Ot[Wt];if(tn instanceof Error){Object.defineProperty(Ot,en,{enumerable:true,get:function(){throw tn}})}else{Ot[en]=tn}}));var _loop_1=function(st){var Wt=Ot[st];if(Wt instanceof Error){Object.defineProperty(Ot,st,{enumerable:true,get:function(){throw Wt}})}};for(var an=0;an=0?Ot:"")+"]";var an=Ot===-1||Wt.dynamic;tn=st.call(this,"array",nn,en,an)||this;tn.coder=Wt;tn.length=Ot;return tn}ArrayCoder.prototype.defaultValue=function(){var st=this.coder.defaultValue();var Wt=[];for(var Ot=0;Otst._data.length){an.throwError("insufficient data length",tn.Logger.errors.BUFFER_OVERRUN,{length:st._data.length,count:Wt})}}var Ot=[];for(var en=0;en=0||st==="tuple"){if(sn[Wt]){return true}}if(on[Wt]||Wt==="payable"){rn.throwArgumentError("invalid modifier","name",Wt)}return false}function parseParamType(st,Wt){var Ot=st;function throwError(Wt){rn.throwArgumentError("unexpected character at position "+Wt,"param",st)}st=st.replace(/\s/g," ");function newNode(st){var Ot={type:"",name:"",parent:st,state:{allowType:true}};if(Wt){Ot.indexed=false}return Ot}var en={type:"",name:"",state:{allowType:true}};var tn=en;for(var nn=0;nn2){rn.throwArgumentError("invalid human-readable ABI signature","value",st)}if(!Ot[1].match(/^[0-9]+$/)){rn.throwArgumentError("invalid human-readable ABI signature gas","value",st)}Wt.gas=tn.BigNumber.from(Ot[1]);return Ot[0]}return st}function parseModifiers(st,Wt){Wt.constant=false;Wt.payable=false;Wt.stateMutability="nonpayable";st.split(" ").forEach((function(st){switch(st.trim()){case"constant":Wt.constant=true;break;case"payable":Wt.payable=true;Wt.stateMutability="payable";break;case"nonpayable":Wt.payable=false;Wt.stateMutability="nonpayable";break;case"pure":Wt.constant=true;Wt.stateMutability="pure";break;case"view":Wt.constant=true;Wt.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+st)}}))}function verifyState(st){var Wt={constant:false,payable:true,stateMutability:"payable"};if(st.stateMutability!=null){Wt.stateMutability=st.stateMutability;Wt.constant=Wt.stateMutability==="view"||Wt.stateMutability==="pure";if(st.constant!=null){if(!!st.constant!==Wt.constant){rn.throwArgumentError("cannot have constant function with mutability "+Wt.stateMutability,"value",st)}}Wt.payable=Wt.stateMutability==="payable";if(st.payable!=null){if(!!st.payable!==Wt.payable){rn.throwArgumentError("cannot have payable function with mutability "+Wt.stateMutability,"value",st)}}}else if(st.payable!=null){Wt.payable=!!st.payable;if(st.constant==null&&!Wt.payable&&st.type!=="constructor"){rn.throwArgumentError("unable to determine stateMutability","value",st)}Wt.constant=!!st.constant;if(Wt.constant){Wt.stateMutability="view"}else{Wt.stateMutability=Wt.payable?"payable":"nonpayable"}if(Wt.payable&&Wt.constant){rn.throwArgumentError("cannot have constant payable function","value",st)}}else if(st.constant!=null){Wt.constant=!!st.constant;Wt.payable=!Wt.constant;Wt.stateMutability=Wt.constant?"view":"payable"}else if(st.type!=="constructor"){rn.throwArgumentError("unable to determine stateMutability","value",st)}return Wt}var mn=function(st){en(ConstructorFragment,st);function ConstructorFragment(){return st!==null&&st.apply(this,arguments)||this}ConstructorFragment.prototype.format=function(st){if(!st){st=Wt.FormatTypes.sighash}if(!Wt.FormatTypes[st]){rn.throwArgumentError("invalid format type","format",st)}if(st===Wt.FormatTypes.json){return JSON.stringify({type:"constructor",stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:undefined,payable:this.payable,gas:this.gas?this.gas.toNumber():undefined,inputs:this.inputs.map((function(Wt){return JSON.parse(Wt.format(st))}))})}if(st===Wt.FormatTypes.sighash){rn.throwError("cannot format a constructor for sighash",an.Logger.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"})}var Ot="constructor("+this.inputs.map((function(Wt){return Wt.format(st)})).join(st===Wt.FormatTypes.full?", ":",")+") ";if(this.stateMutability&&this.stateMutability!=="nonpayable"){Ot+=this.stateMutability+" "}return Ot.trim()};ConstructorFragment.from=function(st){if(typeof st==="string"){return ConstructorFragment.fromString(st)}return ConstructorFragment.fromObject(st)};ConstructorFragment.fromObject=function(st){if(ConstructorFragment.isConstructorFragment(st)){return st}if(st.type!=="constructor"){rn.throwArgumentError("invalid constructor object","value",st)}var Wt=verifyState(st);if(Wt.constant){rn.throwArgumentError("constructor cannot be constant","value",st)}var Ot={name:null,type:st.type,inputs:st.inputs?st.inputs.map(un.fromObject):[],payable:Wt.payable,stateMutability:Wt.stateMutability,gas:st.gas?tn.BigNumber.from(st.gas):null};return new ConstructorFragment(cn,Ot)};ConstructorFragment.fromString=function(st){var Wt={type:"constructor"};st=parseGas(st,Wt);var Ot=st.match(An);if(!Ot||Ot[1].trim()!=="constructor"){rn.throwArgumentError("invalid constructor string","value",st)}Wt.inputs=parseParams(Ot[2].trim(),false);parseModifiers(Ot[3].trim(),Wt);return ConstructorFragment.fromObject(Wt)};ConstructorFragment.isConstructorFragment=function(st){return st&&st._isFragment&&st.type==="constructor"};return ConstructorFragment}(pn);Wt.ConstructorFragment=mn;var Gn=function(st){en(FunctionFragment,st);function FunctionFragment(){return st!==null&&st.apply(this,arguments)||this}FunctionFragment.prototype.format=function(st){if(!st){st=Wt.FormatTypes.sighash}if(!Wt.FormatTypes[st]){rn.throwArgumentError("invalid format type","format",st)}if(st===Wt.FormatTypes.json){return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:undefined,payable:this.payable,gas:this.gas?this.gas.toNumber():undefined,inputs:this.inputs.map((function(Wt){return JSON.parse(Wt.format(st))})),outputs:this.outputs.map((function(Wt){return JSON.parse(Wt.format(st))}))})}var Ot="";if(st!==Wt.FormatTypes.sighash){Ot+="function "}Ot+=this.name+"("+this.inputs.map((function(Wt){return Wt.format(st)})).join(st===Wt.FormatTypes.full?", ":",")+") ";if(st!==Wt.FormatTypes.sighash){if(this.stateMutability){if(this.stateMutability!=="nonpayable"){Ot+=this.stateMutability+" "}}else if(this.constant){Ot+="view "}if(this.outputs&&this.outputs.length){Ot+="returns ("+this.outputs.map((function(Wt){return Wt.format(st)})).join(", ")+") "}if(this.gas!=null){Ot+="@"+this.gas.toString()+" "}}return Ot.trim()};FunctionFragment.from=function(st){if(typeof st==="string"){return FunctionFragment.fromString(st)}return FunctionFragment.fromObject(st)};FunctionFragment.fromObject=function(st){if(FunctionFragment.isFunctionFragment(st)){return st}if(st.type!=="function"){rn.throwArgumentError("invalid function object","value",st)}var Wt=verifyState(st);var Ot={type:st.type,name:verifyIdentifier(st.name),constant:Wt.constant,inputs:st.inputs?st.inputs.map(un.fromObject):[],outputs:st.outputs?st.outputs.map(un.fromObject):[],payable:Wt.payable,stateMutability:Wt.stateMutability,gas:st.gas?tn.BigNumber.from(st.gas):null};return new FunctionFragment(cn,Ot)};FunctionFragment.fromString=function(st){var Wt={type:"function"};st=parseGas(st,Wt);var Ot=st.split(" returns ");if(Ot.length>2){rn.throwArgumentError("invalid function string","value",st)}var en=Ot[0].match(An);if(!en){rn.throwArgumentError("invalid function signature","value",st)}Wt.name=en[1].trim();if(Wt.name){verifyIdentifier(Wt.name)}Wt.inputs=parseParams(en[2],false);parseModifiers(en[3].trim(),Wt);if(Ot.length>1){var tn=Ot[1].match(An);if(tn[1].trim()!=""||tn[3].trim()!=""){rn.throwArgumentError("unexpected tokens","value",st)}Wt.outputs=parseParams(tn[2],false)}else{Wt.outputs=[]}return FunctionFragment.fromObject(Wt)};FunctionFragment.isFunctionFragment=function(st){return st&&st._isFragment&&st.type==="function"};return FunctionFragment}(mn);Wt.FunctionFragment=Gn;function checkForbidden(st){var Wt=st.format();if(Wt==="Error(string)"||Wt==="Panic(uint256)"){rn.throwArgumentError("cannot specify user defined "+Wt+" error","fragment",st)}return st}var hn=function(st){en(ErrorFragment,st);function ErrorFragment(){return st!==null&&st.apply(this,arguments)||this}ErrorFragment.prototype.format=function(st){if(!st){st=Wt.FormatTypes.sighash}if(!Wt.FormatTypes[st]){rn.throwArgumentError("invalid format type","format",st)}if(st===Wt.FormatTypes.json){return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map((function(Wt){return JSON.parse(Wt.format(st))}))})}var Ot="";if(st!==Wt.FormatTypes.sighash){Ot+="error "}Ot+=this.name+"("+this.inputs.map((function(Wt){return Wt.format(st)})).join(st===Wt.FormatTypes.full?", ":",")+") ";return Ot.trim()};ErrorFragment.from=function(st){if(typeof st==="string"){return ErrorFragment.fromString(st)}return ErrorFragment.fromObject(st)};ErrorFragment.fromObject=function(st){if(ErrorFragment.isErrorFragment(st)){return st}if(st.type!=="error"){rn.throwArgumentError("invalid error object","value",st)}var Wt={type:st.type,name:verifyIdentifier(st.name),inputs:st.inputs?st.inputs.map(un.fromObject):[]};return checkForbidden(new ErrorFragment(cn,Wt))};ErrorFragment.fromString=function(st){var Wt={type:"error"};var Ot=st.match(An);if(!Ot){rn.throwArgumentError("invalid error signature","value",st)}Wt.name=Ot[1].trim();if(Wt.name){verifyIdentifier(Wt.name)}Wt.inputs=parseParams(Ot[2],false);return checkForbidden(ErrorFragment.fromObject(Wt))};ErrorFragment.isErrorFragment=function(st){return st&&st._isFragment&&st.type==="error"};return ErrorFragment}(pn);Wt.ErrorFragment=hn;function verifyType(st){if(st.match(/^uint($|[^1-9])/)){st="uint256"+st.substring(4)}else if(st.match(/^int($|[^1-9])/)){st="int256"+st.substring(3)}return st}var Zn=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function verifyIdentifier(st){if(!st||!st.match(Zn)){rn.throwArgumentError('invalid identifier "'+st+'"',"value",st)}return st}var An=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");function splitNesting(st){st=st.trim();var Wt=[];var Ot="";var en=0;for(var tn=0;tn{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.TransactionDescription=Wt.LogDescription=Wt.checkResultErrors=Wt.Indexed=Wt.Interface=Wt.defaultAbiCoder=Wt.AbiCoder=Wt.FormatTypes=Wt.ParamType=Wt.FunctionFragment=Wt.Fragment=Wt.EventFragment=Wt.ErrorFragment=Wt.ConstructorFragment=void 0;var en=Ot(65186);Object.defineProperty(Wt,"ConstructorFragment",{enumerable:true,get:function(){return en.ConstructorFragment}});Object.defineProperty(Wt,"ErrorFragment",{enumerable:true,get:function(){return en.ErrorFragment}});Object.defineProperty(Wt,"EventFragment",{enumerable:true,get:function(){return en.EventFragment}});Object.defineProperty(Wt,"FormatTypes",{enumerable:true,get:function(){return en.FormatTypes}});Object.defineProperty(Wt,"Fragment",{enumerable:true,get:function(){return en.Fragment}});Object.defineProperty(Wt,"FunctionFragment",{enumerable:true,get:function(){return en.FunctionFragment}});Object.defineProperty(Wt,"ParamType",{enumerable:true,get:function(){return en.ParamType}});var tn=Ot(30097);Object.defineProperty(Wt,"AbiCoder",{enumerable:true,get:function(){return tn.AbiCoder}});Object.defineProperty(Wt,"defaultAbiCoder",{enumerable:true,get:function(){return tn.defaultAbiCoder}});var nn=Ot(39472);Object.defineProperty(Wt,"checkResultErrors",{enumerable:true,get:function(){return nn.checkResultErrors}});Object.defineProperty(Wt,"Indexed",{enumerable:true,get:function(){return nn.Indexed}});Object.defineProperty(Wt,"Interface",{enumerable:true,get:function(){return nn.Interface}});Object.defineProperty(Wt,"LogDescription",{enumerable:true,get:function(){return nn.LogDescription}});Object.defineProperty(Wt,"TransactionDescription",{enumerable:true,get:function(){return nn.TransactionDescription}})},39472:function(st,Wt,Ot){"use strict";var en=this&&this.__extends||function(){var extendStatics=function(st,Wt){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(st,Wt){st.__proto__=Wt}||function(st,Wt){for(var Ot in Wt)if(Object.prototype.hasOwnProperty.call(Wt,Ot))st[Ot]=Wt[Ot]};return extendStatics(st,Wt)};return function(st,Wt){if(typeof Wt!=="function"&&Wt!==null)throw new TypeError("Class extends value "+String(Wt)+" is not a constructor or null");extendStatics(st,Wt);function __(){this.constructor=st}st.prototype=Wt===null?Object.create(Wt):(__.prototype=Wt.prototype,new __)}}();Object.defineProperty(Wt,"__esModule",{value:true});Wt.Interface=Wt.Indexed=Wt.ErrorDescription=Wt.TransactionDescription=Wt.LogDescription=Wt.checkResultErrors=void 0;var tn=Ot(75745);var nn=Ot(18202);var an=Ot(42006);var In=Ot(91839);var rn=Ot(56938);var cn=Ot(61338);var on=Ot(30097);var sn=Ot(41430);Object.defineProperty(Wt,"checkResultErrors",{enumerable:true,get:function(){return sn.checkResultErrors}});var dn=Ot(65186);var un=Ot(76127);var pn=Ot(90108);var bn=new un.Logger(pn.version);var mn=function(st){en(LogDescription,st);function LogDescription(){return st!==null&&st.apply(this,arguments)||this}return LogDescription}(cn.Description);Wt.LogDescription=mn;var Gn=function(st){en(TransactionDescription,st);function TransactionDescription(){return st!==null&&st.apply(this,arguments)||this}return TransactionDescription}(cn.Description);Wt.TransactionDescription=Gn;var hn=function(st){en(ErrorDescription,st);function ErrorDescription(){return st!==null&&st.apply(this,arguments)||this}return ErrorDescription}(cn.Description);Wt.ErrorDescription=hn;var Zn=function(st){en(Indexed,st);function Indexed(){return st!==null&&st.apply(this,arguments)||this}Indexed.isIndexed=function(st){return!!(st&&st._isIndexed)};return Indexed}(cn.Description);Wt.Indexed=Zn;var An={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:true},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function wrapAccessError(st,Wt){var Ot=new Error("deferred error during ABI decoding triggered accessing "+st);Ot.error=Wt;return Ot}var Wn=function(){function Interface(st){var Wt=this.constructor;var Ot=this;var en=[];if(typeof st==="string"){en=JSON.parse(st)}else{en=st}(0,cn.defineReadOnly)(this,"fragments",en.map((function(st){return dn.Fragment.from(st)})).filter((function(st){return st!=null})));(0,cn.defineReadOnly)(this,"_abiCoder",(0,cn.getStatic)(Wt,"getAbiCoder")());(0,cn.defineReadOnly)(this,"functions",{});(0,cn.defineReadOnly)(this,"errors",{});(0,cn.defineReadOnly)(this,"events",{});(0,cn.defineReadOnly)(this,"structs",{});this.fragments.forEach((function(st){var Wt=null;switch(st.type){case"constructor":if(Ot.deploy){bn.warn("duplicate definition - constructor");return}(0,cn.defineReadOnly)(Ot,"deploy",st);return;case"function":Wt=Ot.functions;break;case"event":Wt=Ot.events;break;case"error":Wt=Ot.errors;break;default:return}var en=st.format();if(Wt[en]){bn.warn("duplicate definition - "+en);return}Wt[en]=st}));if(!this.deploy){(0,cn.defineReadOnly)(this,"deploy",dn.ConstructorFragment.from({payable:false,type:"constructor"}))}(0,cn.defineReadOnly)(this,"_isInterface",true)}Interface.prototype.format=function(st){if(!st){st=dn.FormatTypes.full}if(st===dn.FormatTypes.sighash){bn.throwArgumentError("interface does not support formatting sighash","format",st)}var Wt=this.fragments.map((function(Wt){return Wt.format(st)}));if(st===dn.FormatTypes.json){return JSON.stringify(Wt.map((function(st){return JSON.parse(st)})))}return Wt};Interface.getAbiCoder=function(){return on.defaultAbiCoder};Interface.getAddress=function(st){return(0,tn.getAddress)(st)};Interface.getSighash=function(st){return(0,an.hexDataSlice)((0,In.id)(st.format()),0,4)};Interface.getEventTopic=function(st){return(0,In.id)(st.format())};Interface.prototype.getFunction=function(st){if((0,an.isHexString)(st)){for(var Wt in this.functions){if(st===this.getSighash(Wt)){return this.functions[Wt]}}bn.throwArgumentError("no matching function","sighash",st)}if(st.indexOf("(")===-1){var Ot=st.trim();var en=Object.keys(this.functions).filter((function(st){return st.split("(")[0]===Ot}));if(en.length===0){bn.throwArgumentError("no matching function","name",Ot)}else if(en.length>1){bn.throwArgumentError("multiple matching functions","name",Ot)}return this.functions[en[0]]}var tn=this.functions[dn.FunctionFragment.fromString(st).format()];if(!tn){bn.throwArgumentError("no matching function","signature",st)}return tn};Interface.prototype.getEvent=function(st){if((0,an.isHexString)(st)){var Wt=st.toLowerCase();for(var Ot in this.events){if(Wt===this.getEventTopic(Ot)){return this.events[Ot]}}bn.throwArgumentError("no matching event","topichash",Wt)}if(st.indexOf("(")===-1){var en=st.trim();var tn=Object.keys(this.events).filter((function(st){return st.split("(")[0]===en}));if(tn.length===0){bn.throwArgumentError("no matching event","name",en)}else if(tn.length>1){bn.throwArgumentError("multiple matching events","name",en)}return this.events[tn[0]]}var nn=this.events[dn.EventFragment.fromString(st).format()];if(!nn){bn.throwArgumentError("no matching event","signature",st)}return nn};Interface.prototype.getError=function(st){if((0,an.isHexString)(st)){var Wt=(0,cn.getStatic)(this.constructor,"getSighash");for(var Ot in this.errors){var en=this.errors[Ot];if(st===Wt(en)){return this.errors[Ot]}}bn.throwArgumentError("no matching error","sighash",st)}if(st.indexOf("(")===-1){var tn=st.trim();var nn=Object.keys(this.errors).filter((function(st){return st.split("(")[0]===tn}));if(nn.length===0){bn.throwArgumentError("no matching error","name",tn)}else if(nn.length>1){bn.throwArgumentError("multiple matching errors","name",tn)}return this.errors[nn[0]]}var In=this.errors[dn.FunctionFragment.fromString(st).format()];if(!In){bn.throwArgumentError("no matching error","signature",st)}return In};Interface.prototype.getSighash=function(st){if(typeof st==="string"){try{st=this.getFunction(st)}catch(Wt){try{st=this.getError(st)}catch(st){throw Wt}}}return(0,cn.getStatic)(this.constructor,"getSighash")(st)};Interface.prototype.getEventTopic=function(st){if(typeof st==="string"){st=this.getEvent(st)}return(0,cn.getStatic)(this.constructor,"getEventTopic")(st)};Interface.prototype._decodeParams=function(st,Wt){return this._abiCoder.decode(st,Wt)};Interface.prototype._encodeParams=function(st,Wt){return this._abiCoder.encode(st,Wt)};Interface.prototype.encodeDeploy=function(st){return this._encodeParams(this.deploy.inputs,st||[])};Interface.prototype.decodeErrorResult=function(st,Wt){if(typeof st==="string"){st=this.getError(st)}var Ot=(0,an.arrayify)(Wt);if((0,an.hexlify)(Ot.slice(0,4))!==this.getSighash(st)){bn.throwArgumentError("data signature does not match error "+st.name+".","data",(0,an.hexlify)(Ot))}return this._decodeParams(st.inputs,Ot.slice(4))};Interface.prototype.encodeErrorResult=function(st,Wt){if(typeof st==="string"){st=this.getError(st)}return(0,an.hexlify)((0,an.concat)([this.getSighash(st),this._encodeParams(st.inputs,Wt||[])]))};Interface.prototype.decodeFunctionData=function(st,Wt){if(typeof st==="string"){st=this.getFunction(st)}var Ot=(0,an.arrayify)(Wt);if((0,an.hexlify)(Ot.slice(0,4))!==this.getSighash(st)){bn.throwArgumentError("data signature does not match function "+st.name+".","data",(0,an.hexlify)(Ot))}return this._decodeParams(st.inputs,Ot.slice(4))};Interface.prototype.encodeFunctionData=function(st,Wt){if(typeof st==="string"){st=this.getFunction(st)}return(0,an.hexlify)((0,an.concat)([this.getSighash(st),this._encodeParams(st.inputs,Wt||[])]))};Interface.prototype.decodeFunctionResult=function(st,Wt){if(typeof st==="string"){st=this.getFunction(st)}var Ot=(0,an.arrayify)(Wt);var en=null;var tn="";var nn=null;var In=null;var rn=null;switch(Ot.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(st.outputs,Ot)}catch(sn){}break;case 4:{var cn=(0,an.hexlify)(Ot.slice(0,4));var on=An[cn];if(on){nn=this._abiCoder.decode(on.inputs,Ot.slice(4));In=on.name;rn=on.signature;if(on.reason){en=nn[0]}if(In==="Error"){tn="; VM Exception while processing transaction: reverted with reason string "+JSON.stringify(nn[0])}else if(In==="Panic"){tn="; VM Exception while processing transaction: reverted with panic code "+nn[0]}}else{try{var sn=this.getError(cn);nn=this._abiCoder.decode(sn.inputs,Ot.slice(4));In=sn.name;rn=sn.format()}catch(sn){}}break}}return bn.throwError("call revert exception"+tn,un.Logger.errors.CALL_EXCEPTION,{method:st.format(),data:(0,an.hexlify)(Wt),errorArgs:nn,errorName:In,errorSignature:rn,reason:en})};Interface.prototype.encodeFunctionResult=function(st,Wt){if(typeof st==="string"){st=this.getFunction(st)}return(0,an.hexlify)(this._abiCoder.encode(st.outputs,Wt||[]))};Interface.prototype.encodeFilterTopics=function(st,Wt){var Ot=this;if(typeof st==="string"){st=this.getEvent(st)}if(Wt.length>st.inputs.length){bn.throwError("too many arguments for "+st.format(),un.Logger.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:Wt})}var en=[];if(!st.anonymous){en.push(this.getEventTopic(st))}var encodeTopic=function(st,Wt){if(st.type==="string"){return(0,In.id)(Wt)}else if(st.type==="bytes"){return(0,rn.keccak256)((0,an.hexlify)(Wt))}if(st.type==="bool"&&typeof Wt==="boolean"){Wt=Wt?"0x01":"0x00"}if(st.type.match(/^u?int/)){Wt=nn.BigNumber.from(Wt).toHexString()}if(st.type==="address"){Ot._abiCoder.encode(["address"],[Wt])}return(0,an.hexZeroPad)((0,an.hexlify)(Wt),32)};Wt.forEach((function(Wt,Ot){var tn=st.inputs[Ot];if(!tn.indexed){if(Wt!=null){bn.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+tn.name,Wt)}return}if(Wt==null){en.push(null)}else if(tn.baseType==="array"||tn.baseType==="tuple"){bn.throwArgumentError("filtering with tuples or arrays not supported","contract."+tn.name,Wt)}else if(Array.isArray(Wt)){en.push(Wt.map((function(st){return encodeTopic(tn,st)})))}else{en.push(encodeTopic(tn,Wt))}}));while(en.length&&en[en.length-1]===null){en.pop()}return en};Interface.prototype.encodeEventLog=function(st,Wt){var Ot=this;if(typeof st==="string"){st=this.getEvent(st)}var en=[];var tn=[];var nn=[];if(!st.anonymous){en.push(this.getEventTopic(st))}if(Wt.length!==st.inputs.length){bn.throwArgumentError("event arguments/values mismatch","values",Wt)}st.inputs.forEach((function(st,an){var cn=Wt[an];if(st.indexed){if(st.type==="string"){en.push((0,In.id)(cn))}else if(st.type==="bytes"){en.push((0,rn.keccak256)(cn))}else if(st.baseType==="tuple"||st.baseType==="array"){throw new Error("not implemented")}else{en.push(Ot._abiCoder.encode([st.type],[cn]))}}else{tn.push(st);nn.push(cn)}}));return{data:this._abiCoder.encode(tn,nn),topics:en}};Interface.prototype.decodeEventLog=function(st,Wt,Ot){if(typeof st==="string"){st=this.getEvent(st)}if(Ot!=null&&!st.anonymous){var en=this.getEventTopic(st);if(!(0,an.isHexString)(Ot[0],32)||Ot[0].toLowerCase()!==en){bn.throwError("fragment/topic mismatch",un.Logger.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:en,value:Ot[0]})}Ot=Ot.slice(1)}var tn=[];var nn=[];var In=[];st.inputs.forEach((function(st,Wt){if(st.indexed){if(st.type==="string"||st.type==="bytes"||st.baseType==="tuple"||st.baseType==="array"){tn.push(dn.ParamType.fromObject({type:"bytes32",name:st.name}));In.push(true)}else{tn.push(st);In.push(false)}}else{nn.push(st);In.push(false)}}));var rn=Ot!=null?this._abiCoder.decode(tn,(0,an.concat)(Ot)):null;var cn=this._abiCoder.decode(nn,Wt,true);var on=[];var sn=0,pn=0;st.inputs.forEach((function(st,Wt){if(st.indexed){if(rn==null){on[Wt]=new Zn({_isIndexed:true,hash:null})}else if(In[Wt]){on[Wt]=new Zn({_isIndexed:true,hash:rn[pn++]})}else{try{on[Wt]=rn[pn++]}catch(st){on[Wt]=st}}}else{try{on[Wt]=cn[sn++]}catch(st){on[Wt]=st}}if(st.name&&on[st.name]==null){var Ot=on[Wt];if(Ot instanceof Error){Object.defineProperty(on,st.name,{enumerable:true,get:function(){throw wrapAccessError("property "+JSON.stringify(st.name),Ot)}})}else{on[st.name]=Ot}}}));var _loop_1=function(st){var Wt=on[st];if(Wt instanceof Error){Object.defineProperty(on,st,{enumerable:true,get:function(){throw wrapAccessError("index "+st,Wt)}})}};for(var mn=0;mn{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.version=void 0;Wt.version="abstract-provider/5.7.0"},12825:function(st,Wt,Ot){"use strict";var en=this&&this.__extends||function(){var extendStatics=function(st,Wt){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(st,Wt){st.__proto__=Wt}||function(st,Wt){for(var Ot in Wt)if(Object.prototype.hasOwnProperty.call(Wt,Ot))st[Ot]=Wt[Ot]};return extendStatics(st,Wt)};return function(st,Wt){if(typeof Wt!=="function"&&Wt!==null)throw new TypeError("Class extends value "+String(Wt)+" is not a constructor or null");extendStatics(st,Wt);function __(){this.constructor=st}st.prototype=Wt===null?Object.create(Wt):(__.prototype=Wt.prototype,new __)}}();var tn=this&&this.__awaiter||function(st,Wt,Ot,en){function adopt(st){return st instanceof Ot?st:new Ot((function(Wt){Wt(st)}))}return new(Ot||(Ot=Promise))((function(Ot,tn){function fulfilled(st){try{step(en.next(st))}catch(st){tn(st)}}function rejected(st){try{step(en["throw"](st))}catch(st){tn(st)}}function step(st){st.done?Ot(st.value):adopt(st.value).then(fulfilled,rejected)}step((en=en.apply(st,Wt||[])).next())}))};var nn=this&&this.__generator||function(st,Wt){var Ot={label:0,sent:function(){if(nn[0]&1)throw nn[1];return nn[1]},trys:[],ops:[]},en,tn,nn,an;return an={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(an[Symbol.iterator]=function(){return this}),an;function verb(st){return function(Wt){return step([st,Wt])}}function step(an){if(en)throw new TypeError("Generator is already executing.");while(Ot)try{if(en=1,tn&&(nn=an[0]&2?tn["return"]:an[0]?tn["throw"]||((nn=tn["return"])&&nn.call(tn),0):tn.next)&&!(nn=nn.call(tn,an[1])).done)return nn;if(tn=0,nn)an=[an[0]&2,nn.value];switch(an[0]){case 0:case 1:nn=an;break;case 4:Ot.label++;return{value:an[1],done:false};case 5:Ot.label++;tn=an[1];an=[0];continue;case 7:an=Ot.ops.pop();Ot.trys.pop();continue;default:if(!(nn=Ot.trys,nn=nn.length>0&&nn[nn.length-1])&&(an[0]===6||an[0]===2)){Ot=0;continue}if(an[0]===3&&(!nn||an[1]>nn[0]&&an[1]{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.version=void 0;Wt.version="abstract-signer/5.7.0"},53870:function(st,Wt,Ot){"use strict";var en=this&&this.__extends||function(){var extendStatics=function(st,Wt){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(st,Wt){st.__proto__=Wt}||function(st,Wt){for(var Ot in Wt)if(Object.prototype.hasOwnProperty.call(Wt,Ot))st[Ot]=Wt[Ot]};return extendStatics(st,Wt)};return function(st,Wt){if(typeof Wt!=="function"&&Wt!==null)throw new TypeError("Class extends value "+String(Wt)+" is not a constructor or null");extendStatics(st,Wt);function __(){this.constructor=st}st.prototype=Wt===null?Object.create(Wt):(__.prototype=Wt.prototype,new __)}}();var tn=this&&this.__awaiter||function(st,Wt,Ot,en){function adopt(st){return st instanceof Ot?st:new Ot((function(Wt){Wt(st)}))}return new(Ot||(Ot=Promise))((function(Ot,tn){function fulfilled(st){try{step(en.next(st))}catch(st){tn(st)}}function rejected(st){try{step(en["throw"](st))}catch(st){tn(st)}}function step(st){st.done?Ot(st.value):adopt(st.value).then(fulfilled,rejected)}step((en=en.apply(st,Wt||[])).next())}))};var nn=this&&this.__generator||function(st,Wt){var Ot={label:0,sent:function(){if(nn[0]&1)throw nn[1];return nn[1]},trys:[],ops:[]},en,tn,nn,an;return an={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(an[Symbol.iterator]=function(){return this}),an;function verb(st){return function(Wt){return step([st,Wt])}}function step(an){if(en)throw new TypeError("Generator is already executing.");while(Ot)try{if(en=1,tn&&(nn=an[0]&2?tn["return"]:an[0]?tn["throw"]||((nn=tn["return"])&&nn.call(tn),0):tn.next)&&!(nn=nn.call(tn,an[1])).done)return nn;if(tn=0,nn)an=[an[0]&2,nn.value];switch(an[0]){case 0:case 1:nn=an;break;case 4:Ot.label++;return{value:an[1],done:false};case 5:Ot.label++;tn=an[1];an=[0];continue;case 7:an=Ot.ops.pop();Ot.trys.pop();continue;default:if(!(nn=Ot.trys,nn=nn.length>0&&nn[nn.length-1])&&(an[0]===6||an[0]===2)){Ot=0;continue}if(an[0]===3&&(!nn||an[1]>nn[0]&&an[1]=0){throw st}return cn.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",In.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:st,tx:Wt})}))}if(Wt.chainId==null){Wt.chainId=this.getChainId()}else{Wt.chainId=Promise.all([Promise.resolve(Wt.chainId),this.getChainId()]).then((function(Wt){if(Wt[1]!==0&&Wt[0]!==Wt[1]){cn.throwArgumentError("chainId address mismatch","transaction",st)}return Wt[0]}))}return[4,(0,an.resolveProperties)(Wt)];case 6:return[2,dn.sent()]}}))}))};Signer.prototype._checkProvider=function(st){if(!this.provider){cn.throwError("missing provider",In.Logger.errors.UNSUPPORTED_OPERATION,{operation:st||"_checkProvider"})}};Signer.isSigner=function(st){return!!(st&&st._isSigner)};return Signer}();Wt.Signer=dn;var un=function(st){en(VoidSigner,st);function VoidSigner(Wt,Ot){var en=st.call(this)||this;(0,an.defineReadOnly)(en,"address",Wt);(0,an.defineReadOnly)(en,"provider",Ot||null);return en}VoidSigner.prototype.getAddress=function(){return Promise.resolve(this.address)};VoidSigner.prototype._fail=function(st,Wt){return Promise.resolve().then((function(){cn.throwError(st,In.Logger.errors.UNSUPPORTED_OPERATION,{operation:Wt})}))};VoidSigner.prototype.signMessage=function(st){return this._fail("VoidSigner cannot sign messages","signMessage")};VoidSigner.prototype.signTransaction=function(st){return this._fail("VoidSigner cannot sign transactions","signTransaction")};VoidSigner.prototype._signTypedData=function(st,Wt,Ot){return this._fail("VoidSigner cannot sign typed data","signTypedData")};VoidSigner.prototype.connect=function(st){return new VoidSigner(this.address,st)};return VoidSigner}(dn);Wt.VoidSigner=un},80810:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.version=void 0;Wt.version="address/5.7.0"},75745:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.getCreate2Address=Wt.getContractAddress=Wt.getIcapAddress=Wt.isAddress=Wt.getAddress=void 0;var en=Ot(42006);var tn=Ot(18202);var nn=Ot(56938);var an=Ot(37659);var In=Ot(76127);var rn=Ot(80810);var cn=new In.Logger(rn.version);function getChecksumAddress(st){if(!(0,en.isHexString)(st,20)){cn.throwArgumentError("invalid address","address",st)}st=st.toLowerCase();var Wt=st.substring(2).split("");var Ot=new Uint8Array(40);for(var tn=0;tn<40;tn++){Ot[tn]=Wt[tn].charCodeAt(0)}var an=(0,en.arrayify)((0,nn.keccak256)(Ot));for(var tn=0;tn<40;tn+=2){if(an[tn>>1]>>4>=8){Wt[tn]=Wt[tn].toUpperCase()}if((an[tn>>1]&15)>=8){Wt[tn+1]=Wt[tn+1].toUpperCase()}}return"0x"+Wt.join("")}var on=9007199254740991;function log10(st){if(Math.log10){return Math.log10(st)}return Math.log(st)/Math.LN10}var sn={};for(var dn=0;dn<10;dn++){sn[String(dn)]=String(dn)}for(var dn=0;dn<26;dn++){sn[String.fromCharCode(65+dn)]=String(10+dn)}var un=Math.floor(log10(on));function ibanChecksum(st){st=st.toUpperCase();st=st.substring(4)+st.substring(0,2)+"00";var Wt=st.split("").map((function(st){return sn[st]})).join("");while(Wt.length>=un){var Ot=Wt.substring(0,un);Wt=parseInt(Ot,10)%97+Wt.substring(Ot.length)}var en=String(98-parseInt(Wt,10)%97);while(en.length<2){en="0"+en}return en}function getAddress(st){var Wt=null;if(typeof st!=="string"){cn.throwArgumentError("invalid address","address",st)}if(st.match(/^(0x)?[0-9a-fA-F]{40}$/)){if(st.substring(0,2)!=="0x"){st="0x"+st}Wt=getChecksumAddress(st);if(st.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&Wt!==st){cn.throwArgumentError("bad address checksum","address",st)}}else if(st.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){if(st.substring(2,4)!==ibanChecksum(st)){cn.throwArgumentError("bad icap checksum","address",st)}Wt=(0,tn._base36To16)(st.substring(4));while(Wt.length<40){Wt="0"+Wt}Wt=getChecksumAddress("0x"+Wt)}else{cn.throwArgumentError("invalid address","address",st)}return Wt}Wt.getAddress=getAddress;function isAddress(st){try{getAddress(st);return true}catch(st){}return false}Wt.isAddress=isAddress;function getIcapAddress(st){var Wt=(0,tn._base16To36)(getAddress(st).substring(2)).toUpperCase();while(Wt.length<30){Wt="0"+Wt}return"XE"+ibanChecksum("XE00"+Wt)+Wt}Wt.getIcapAddress=getIcapAddress;function getContractAddress(st){var Wt=null;try{Wt=getAddress(st.from)}catch(Wt){cn.throwArgumentError("missing from address","transaction",st)}var Ot=(0,en.stripZeros)((0,en.arrayify)(tn.BigNumber.from(st.nonce).toHexString()));return getAddress((0,en.hexDataSlice)((0,nn.keccak256)((0,an.encode)([Wt,Ot])),12))}Wt.getContractAddress=getContractAddress;function getCreate2Address(st,Wt,Ot){if((0,en.hexDataLength)(Wt)!==32){cn.throwArgumentError("salt must be 32 bytes","salt",Wt)}if((0,en.hexDataLength)(Ot)!==32){cn.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",Ot)}return getAddress((0,en.hexDataSlice)((0,nn.keccak256)((0,en.concat)(["0xff",getAddress(st),Wt,Ot])),12))}Wt.getCreate2Address=getCreate2Address},76957:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.encode=Wt.decode=void 0;var en=Ot(42006);function decode(st){return(0,en.arrayify)(new Uint8Array(Buffer.from(st,"base64")))}Wt.decode=decode;function encode(st){return Buffer.from((0,en.arrayify)(st)).toString("base64")}Wt.encode=encode},99032:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.encode=Wt.decode=void 0;var en=Ot(76957);Object.defineProperty(Wt,"decode",{enumerable:true,get:function(){return en.decode}});Object.defineProperty(Wt,"encode",{enumerable:true,get:function(){return en.encode}})},31426:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Base58=Wt.Base32=Wt.BaseX=void 0;var en=Ot(42006);var tn=Ot(61338);var nn=function(){function BaseX(st){(0,tn.defineReadOnly)(this,"alphabet",st);(0,tn.defineReadOnly)(this,"base",st.length);(0,tn.defineReadOnly)(this,"_alphabetMap",{});(0,tn.defineReadOnly)(this,"_leader",st.charAt(0));for(var Wt=0;Wt0){Ot.push(nn%this.base);nn=nn/this.base|0}}var In="";for(var rn=0;Wt[rn]===0&&rn=0;--cn){In+=this.alphabet[Ot[cn]]}return In};BaseX.prototype.decode=function(st){if(typeof st!=="string"){throw new TypeError("Expected String")}var Wt=[];if(st.length===0){return new Uint8Array(Wt)}Wt.push(0);for(var Ot=0;Ot>=8}while(nn>0){Wt.push(nn&255);nn>>=8}}for(var In=0;st[In]===this._leader&&In{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.version=void 0;Wt.version="bignumber/5.7.0"},11157:function(st,Wt,Ot){"use strict";var en=this&&this.__importDefault||function(st){return st&&st.__esModule?st:{default:st}};Object.defineProperty(Wt,"__esModule",{value:true});Wt._base16To36=Wt._base36To16=Wt.BigNumber=Wt.isBigNumberish=void 0;var tn=en(Ot(10633));var nn=tn.default.BN;var an=Ot(42006);var In=Ot(76127);var rn=Ot(6151);var cn=new In.Logger(rn.version);var on={};var sn=9007199254740991;function isBigNumberish(st){return st!=null&&(un.isBigNumber(st)||typeof st==="number"&&st%1===0||typeof st==="string"&&!!st.match(/^-?[0-9]+$/)||(0,an.isHexString)(st)||typeof st==="bigint"||(0,an.isBytes)(st))}Wt.isBigNumberish=isBigNumberish;var dn=false;var un=function(){function BigNumber(st,Wt){if(st!==on){cn.throwError("cannot call constructor directly; use BigNumber.from",In.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"})}this._hex=Wt;this._isBigNumber=true;Object.freeze(this)}BigNumber.prototype.fromTwos=function(st){return toBigNumber(toBN(this).fromTwos(st))};BigNumber.prototype.toTwos=function(st){return toBigNumber(toBN(this).toTwos(st))};BigNumber.prototype.abs=function(){if(this._hex[0]==="-"){return BigNumber.from(this._hex.substring(1))}return this};BigNumber.prototype.add=function(st){return toBigNumber(toBN(this).add(toBN(st)))};BigNumber.prototype.sub=function(st){return toBigNumber(toBN(this).sub(toBN(st)))};BigNumber.prototype.div=function(st){var Wt=BigNumber.from(st);if(Wt.isZero()){throwFault("division-by-zero","div")}return toBigNumber(toBN(this).div(toBN(st)))};BigNumber.prototype.mul=function(st){return toBigNumber(toBN(this).mul(toBN(st)))};BigNumber.prototype.mod=function(st){var Wt=toBN(st);if(Wt.isNeg()){throwFault("division-by-zero","mod")}return toBigNumber(toBN(this).umod(Wt))};BigNumber.prototype.pow=function(st){var Wt=toBN(st);if(Wt.isNeg()){throwFault("negative-power","pow")}return toBigNumber(toBN(this).pow(Wt))};BigNumber.prototype.and=function(st){var Wt=toBN(st);if(this.isNegative()||Wt.isNeg()){throwFault("unbound-bitwise-result","and")}return toBigNumber(toBN(this).and(Wt))};BigNumber.prototype.or=function(st){var Wt=toBN(st);if(this.isNegative()||Wt.isNeg()){throwFault("unbound-bitwise-result","or")}return toBigNumber(toBN(this).or(Wt))};BigNumber.prototype.xor=function(st){var Wt=toBN(st);if(this.isNegative()||Wt.isNeg()){throwFault("unbound-bitwise-result","xor")}return toBigNumber(toBN(this).xor(Wt))};BigNumber.prototype.mask=function(st){if(this.isNegative()||st<0){throwFault("negative-width","mask")}return toBigNumber(toBN(this).maskn(st))};BigNumber.prototype.shl=function(st){if(this.isNegative()||st<0){throwFault("negative-width","shl")}return toBigNumber(toBN(this).shln(st))};BigNumber.prototype.shr=function(st){if(this.isNegative()||st<0){throwFault("negative-width","shr")}return toBigNumber(toBN(this).shrn(st))};BigNumber.prototype.eq=function(st){return toBN(this).eq(toBN(st))};BigNumber.prototype.lt=function(st){return toBN(this).lt(toBN(st))};BigNumber.prototype.lte=function(st){return toBN(this).lte(toBN(st))};BigNumber.prototype.gt=function(st){return toBN(this).gt(toBN(st))};BigNumber.prototype.gte=function(st){return toBN(this).gte(toBN(st))};BigNumber.prototype.isNegative=function(){return this._hex[0]==="-"};BigNumber.prototype.isZero=function(){return toBN(this).isZero()};BigNumber.prototype.toNumber=function(){try{return toBN(this).toNumber()}catch(st){throwFault("overflow","toNumber",this.toString())}return null};BigNumber.prototype.toBigInt=function(){try{return BigInt(this.toString())}catch(st){}return cn.throwError("this platform does not support BigInt",In.Logger.errors.UNSUPPORTED_OPERATION,{value:this.toString()})};BigNumber.prototype.toString=function(){if(arguments.length>0){if(arguments[0]===10){if(!dn){dn=true;cn.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")}}else if(arguments[0]===16){cn.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",In.Logger.errors.UNEXPECTED_ARGUMENT,{})}else{cn.throwError("BigNumber.toString does not accept parameters",In.Logger.errors.UNEXPECTED_ARGUMENT,{})}}return toBN(this).toString(10)};BigNumber.prototype.toHexString=function(){return this._hex};BigNumber.prototype.toJSON=function(st){return{type:"BigNumber",hex:this.toHexString()}};BigNumber.from=function(st){if(st instanceof BigNumber){return st}if(typeof st==="string"){if(st.match(/^-?0x[0-9a-f]+$/i)){return new BigNumber(on,toHex(st))}if(st.match(/^-?[0-9]+$/)){return new BigNumber(on,toHex(new nn(st)))}return cn.throwArgumentError("invalid BigNumber string","value",st)}if(typeof st==="number"){if(st%1){throwFault("underflow","BigNumber.from",st)}if(st>=sn||st<=-sn){throwFault("overflow","BigNumber.from",st)}return BigNumber.from(String(st))}var Wt=st;if(typeof Wt==="bigint"){return BigNumber.from(Wt.toString())}if((0,an.isBytes)(Wt)){return BigNumber.from((0,an.hexlify)(Wt))}if(Wt){if(Wt.toHexString){var Ot=Wt.toHexString();if(typeof Ot==="string"){return BigNumber.from(Ot)}}else{var Ot=Wt._hex;if(Ot==null&&Wt.type==="BigNumber"){Ot=Wt.hex}if(typeof Ot==="string"){if((0,an.isHexString)(Ot)||Ot[0]==="-"&&(0,an.isHexString)(Ot.substring(1))){return BigNumber.from(Ot)}}}}return cn.throwArgumentError("invalid BigNumber value","value",st)};BigNumber.isBigNumber=function(st){return!!(st&&st._isBigNumber)};return BigNumber}();Wt.BigNumber=un;function toHex(st){if(typeof st!=="string"){return toHex(st.toString(16))}if(st[0]==="-"){st=st.substring(1);if(st[0]==="-"){cn.throwArgumentError("invalid hex","value",st)}st=toHex(st);if(st==="0x00"){return st}return"-"+st}if(st.substring(0,2)!=="0x"){st="0x"+st}if(st==="0x"){return"0x00"}if(st.length%2){st="0x0"+st.substring(2)}while(st.length>4&&st.substring(0,4)==="0x00"){st="0x"+st.substring(4)}return st}function toBigNumber(st){return un.from(toHex(st))}function toBN(st){var Wt=un.from(st).toHexString();if(Wt[0]==="-"){return new nn("-"+Wt.substring(3),16)}return new nn(Wt.substring(2),16)}function throwFault(st,Wt,Ot){var en={fault:st,operation:Wt};if(Ot!=null){en.value=Ot}return cn.throwError(st,In.Logger.errors.NUMERIC_FAULT,en)}function _base36To16(st){return new nn(st,36).toString(16)}Wt._base36To16=_base36To16;function _base16To36(st){return new nn(st,16).toString(36)}Wt._base16To36=_base16To36},91297:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.FixedNumber=Wt.FixedFormat=Wt.parseFixed=Wt.formatFixed=void 0;var en=Ot(42006);var tn=Ot(76127);var nn=Ot(6151);var an=new tn.Logger(nn.version);var In=Ot(11157);var rn={};var cn=In.BigNumber.from(0);var on=In.BigNumber.from(-1);function throwFault(st,Wt,Ot,en){var nn={fault:Wt,operation:Ot};if(en!==undefined){nn.value=en}return an.throwError(st,tn.Logger.errors.NUMERIC_FAULT,nn)}var sn="0";while(sn.length<256){sn+=sn}function getMultiplier(st){if(typeof st!=="number"){try{st=In.BigNumber.from(st).toNumber()}catch(st){}}if(typeof st==="number"&&st>=0&&st<=256&&!(st%1)){return"1"+sn.substring(0,st)}return an.throwArgumentError("invalid decimal size","decimals",st)}function formatFixed(st,Wt){if(Wt==null){Wt=0}var Ot=getMultiplier(Wt);st=In.BigNumber.from(st);var en=st.lt(cn);if(en){st=st.mul(on)}var tn=st.mod(Ot).toString();while(tn.length2){an.throwArgumentError("too many decimal points","value",st)}var nn=tn[0],rn=tn[1];if(!nn){nn="0"}if(!rn){rn="0"}while(rn[rn.length-1]==="0"){rn=rn.substring(0,rn.length-1)}if(rn.length>Ot.length-1){throwFault("fractional component exceeds decimals","underflow","parseFixed")}if(rn===""){rn="0"}while(rn.length80){an.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",en)}return new FixedFormat(rn,Wt,Ot,en)};return FixedFormat}();Wt.FixedFormat=dn;var un=function(){function FixedNumber(st,Wt,Ot,en){if(st!==rn){an.throwError("cannot use FixedNumber constructor; use FixedNumber.from",tn.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"})}this.format=en;this._hex=Wt;this._value=Ot;this._isFixedNumber=true;Object.freeze(this)}FixedNumber.prototype._checkFormat=function(st){if(this.format.name!==st.format.name){an.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",st)}};FixedNumber.prototype.addUnsafe=function(st){this._checkFormat(st);var Wt=parseFixed(this._value,this.format.decimals);var Ot=parseFixed(st._value,st.format.decimals);return FixedNumber.fromValue(Wt.add(Ot),this.format.decimals,this.format)};FixedNumber.prototype.subUnsafe=function(st){this._checkFormat(st);var Wt=parseFixed(this._value,this.format.decimals);var Ot=parseFixed(st._value,st.format.decimals);return FixedNumber.fromValue(Wt.sub(Ot),this.format.decimals,this.format)};FixedNumber.prototype.mulUnsafe=function(st){this._checkFormat(st);var Wt=parseFixed(this._value,this.format.decimals);var Ot=parseFixed(st._value,st.format.decimals);return FixedNumber.fromValue(Wt.mul(Ot).div(this.format._multiplier),this.format.decimals,this.format)};FixedNumber.prototype.divUnsafe=function(st){this._checkFormat(st);var Wt=parseFixed(this._value,this.format.decimals);var Ot=parseFixed(st._value,st.format.decimals);return FixedNumber.fromValue(Wt.mul(this.format._multiplier).div(Ot),this.format.decimals,this.format)};FixedNumber.prototype.floor=function(){var st=this.toString().split(".");if(st.length===1){st.push("0")}var Wt=FixedNumber.from(st[0],this.format);var Ot=!st[1].match(/^(0*)$/);if(this.isNegative()&&Ot){Wt=Wt.subUnsafe(pn.toFormat(Wt.format))}return Wt};FixedNumber.prototype.ceiling=function(){var st=this.toString().split(".");if(st.length===1){st.push("0")}var Wt=FixedNumber.from(st[0],this.format);var Ot=!st[1].match(/^(0*)$/);if(!this.isNegative()&&Ot){Wt=Wt.addUnsafe(pn.toFormat(Wt.format))}return Wt};FixedNumber.prototype.round=function(st){if(st==null){st=0}var Wt=this.toString().split(".");if(Wt.length===1){Wt.push("0")}if(st<0||st>80||st%1){an.throwArgumentError("invalid decimal count","decimals",st)}if(Wt[1].length<=st){return this}var Ot=FixedNumber.from("1"+sn.substring(0,st),this.format);var en=bn.toFormat(this.format);return this.mulUnsafe(Ot).addUnsafe(en).floor().divUnsafe(Ot)};FixedNumber.prototype.isZero=function(){return this._value==="0.0"||this._value==="0"};FixedNumber.prototype.isNegative=function(){return this._value[0]==="-"};FixedNumber.prototype.toString=function(){return this._value};FixedNumber.prototype.toHexString=function(st){if(st==null){return this._hex}if(st%8){an.throwArgumentError("invalid byte width","width",st)}var Wt=In.BigNumber.from(this._hex).fromTwos(this.format.width).toTwos(st).toHexString();return(0,en.hexZeroPad)(Wt,st/8)};FixedNumber.prototype.toUnsafeFloat=function(){return parseFloat(this.toString())};FixedNumber.prototype.toFormat=function(st){return FixedNumber.fromString(this._value,st)};FixedNumber.fromValue=function(st,Wt,Ot){if(Ot==null&&Wt!=null&&!(0,In.isBigNumberish)(Wt)){Ot=Wt;Wt=null}if(Wt==null){Wt=0}if(Ot==null){Ot="fixed"}return FixedNumber.fromString(formatFixed(st,Wt),dn.from(Ot))};FixedNumber.fromString=function(st,Wt){if(Wt==null){Wt="fixed"}var Ot=dn.from(Wt);var tn=parseFixed(st,Ot.decimals);if(!Ot.signed&&tn.lt(cn)){throwFault("unsigned value cannot be negative","overflow","value",st)}var nn=null;if(Ot.signed){nn=tn.toTwos(Ot.width).toHexString()}else{nn=tn.toHexString();nn=(0,en.hexZeroPad)(nn,Ot.width/8)}var an=formatFixed(tn,Ot.decimals);return new FixedNumber(rn,nn,an,Ot)};FixedNumber.fromBytes=function(st,Wt){if(Wt==null){Wt="fixed"}var Ot=dn.from(Wt);if((0,en.arrayify)(st).length>Ot.width/8){throw new Error("overflow")}var tn=In.BigNumber.from(st);if(Ot.signed){tn=tn.fromTwos(Ot.width)}var nn=tn.toTwos((Ot.signed?0:1)+Ot.width).toHexString();var an=formatFixed(tn,Ot.decimals);return new FixedNumber(rn,nn,an,Ot)};FixedNumber.from=function(st,Wt){if(typeof st==="string"){return FixedNumber.fromString(st,Wt)}if((0,en.isBytes)(st)){return FixedNumber.fromBytes(st,Wt)}try{return FixedNumber.fromValue(st,0,Wt)}catch(st){if(st.code!==tn.Logger.errors.INVALID_ARGUMENT){throw st}}return an.throwArgumentError("invalid FixedNumber value","value",st)};FixedNumber.isFixedNumber=function(st){return!!(st&&st._isFixedNumber)};return FixedNumber}();Wt.FixedNumber=un;var pn=un.from(1);var bn=un.from("0.5")},18202:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt._base36To16=Wt._base16To36=Wt.parseFixed=Wt.FixedNumber=Wt.FixedFormat=Wt.formatFixed=Wt.BigNumber=void 0;var en=Ot(11157);Object.defineProperty(Wt,"BigNumber",{enumerable:true,get:function(){return en.BigNumber}});var tn=Ot(91297);Object.defineProperty(Wt,"formatFixed",{enumerable:true,get:function(){return tn.formatFixed}});Object.defineProperty(Wt,"FixedFormat",{enumerable:true,get:function(){return tn.FixedFormat}});Object.defineProperty(Wt,"FixedNumber",{enumerable:true,get:function(){return tn.FixedNumber}});Object.defineProperty(Wt,"parseFixed",{enumerable:true,get:function(){return tn.parseFixed}});var nn=Ot(11157);Object.defineProperty(Wt,"_base16To36",{enumerable:true,get:function(){return nn._base16To36}});Object.defineProperty(Wt,"_base36To16",{enumerable:true,get:function(){return nn._base36To16}})},28539:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.version=void 0;Wt.version="bytes/5.7.0"},42006:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.joinSignature=Wt.splitSignature=Wt.hexZeroPad=Wt.hexStripZeros=Wt.hexValue=Wt.hexConcat=Wt.hexDataSlice=Wt.hexDataLength=Wt.hexlify=Wt.isHexString=Wt.zeroPad=Wt.stripZeros=Wt.concat=Wt.arrayify=Wt.isBytes=Wt.isBytesLike=void 0;var en=Ot(76127);var tn=Ot(28539);var nn=new en.Logger(tn.version);function isHexable(st){return!!st.toHexString}function addSlice(st){if(st.slice){return st}st.slice=function(){var Wt=Array.prototype.slice.call(arguments);return addSlice(new Uint8Array(Array.prototype.slice.apply(st,Wt)))};return st}function isBytesLike(st){return isHexString(st)&&!(st.length%2)||isBytes(st)}Wt.isBytesLike=isBytesLike;function isInteger(st){return typeof st==="number"&&st==st&&st%1===0}function isBytes(st){if(st==null){return false}if(st.constructor===Uint8Array){return true}if(typeof st==="string"){return false}if(!isInteger(st.length)||st.length<0){return false}for(var Wt=0;Wt=256){return false}}return true}Wt.isBytes=isBytes;function arrayify(st,Wt){if(!Wt){Wt={}}if(typeof st==="number"){nn.checkSafeUint53(st,"invalid arrayify value");var Ot=[];while(st){Ot.unshift(st&255);st=parseInt(String(st/256))}if(Ot.length===0){Ot.push(0)}return addSlice(new Uint8Array(Ot))}if(Wt.allowMissingPrefix&&typeof st==="string"&&st.substring(0,2)!=="0x"){st="0x"+st}if(isHexable(st)){st=st.toHexString()}if(isHexString(st)){var en=st.substring(2);if(en.length%2){if(Wt.hexPad==="left"){en="0"+en}else if(Wt.hexPad==="right"){en+="0"}else{nn.throwArgumentError("hex data is odd-length","value",st)}}var Ot=[];for(var tn=0;tnWt){nn.throwArgumentError("value out of range","value",arguments[0])}var Ot=new Uint8Array(Wt);Ot.set(st,Wt-st.length);return addSlice(Ot)}Wt.zeroPad=zeroPad;function isHexString(st,Wt){if(typeof st!=="string"||!st.match(/^0x[0-9A-Fa-f]*$/)){return false}if(Wt&&st.length!==2+2*Wt){return false}return true}Wt.isHexString=isHexString;var an="0123456789abcdef";function hexlify(st,Wt){if(!Wt){Wt={}}if(typeof st==="number"){nn.checkSafeUint53(st,"invalid hexlify value");var Ot="";while(st){Ot=an[st&15]+Ot;st=Math.floor(st/16)}if(Ot.length){if(Ot.length%2){Ot="0"+Ot}return"0x"+Ot}return"0x00"}if(typeof st==="bigint"){st=st.toString(16);if(st.length%2){return"0x0"+st}return"0x"+st}if(Wt.allowMissingPrefix&&typeof st==="string"&&st.substring(0,2)!=="0x"){st="0x"+st}if(isHexable(st)){return st.toHexString()}if(isHexString(st)){if(st.length%2){if(Wt.hexPad==="left"){st="0x0"+st.substring(2)}else if(Wt.hexPad==="right"){st+="0"}else{nn.throwArgumentError("hex data is odd-length","value",st)}}return st.toLowerCase()}if(isBytes(st)){var en="0x";for(var tn=0;tn>4]+an[In&15]}return en}return nn.throwArgumentError("invalid hexlify value","value",st)}Wt.hexlify=hexlify;function hexDataLength(st){if(typeof st!=="string"){st=hexlify(st)}else if(!isHexString(st)||st.length%2){return null}return(st.length-2)/2}Wt.hexDataLength=hexDataLength;function hexDataSlice(st,Wt,Ot){if(typeof st!=="string"){st=hexlify(st)}else if(!isHexString(st)||st.length%2){nn.throwArgumentError("invalid hexData","value",st)}Wt=2+2*Wt;if(Ot!=null){return"0x"+st.substring(Wt,2+2*Ot)}return"0x"+st.substring(Wt)}Wt.hexDataSlice=hexDataSlice;function hexConcat(st){var Wt="0x";st.forEach((function(st){Wt+=hexlify(st).substring(2)}));return Wt}Wt.hexConcat=hexConcat;function hexValue(st){var Wt=hexStripZeros(hexlify(st,{hexPad:"left"}));if(Wt==="0x"){return"0x0"}return Wt}Wt.hexValue=hexValue;function hexStripZeros(st){if(typeof st!=="string"){st=hexlify(st)}if(!isHexString(st)){nn.throwArgumentError("invalid hex string","value",st)}st=st.substring(2);var Wt=0;while(Wt2*Wt+2){nn.throwArgumentError("value out of range","value",arguments[1])}while(st.length<2*Wt+2){st="0x0"+st.substring(2)}return st}Wt.hexZeroPad=hexZeroPad;function splitSignature(st){var Wt={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(isBytesLike(st)){var Ot=arrayify(st);if(Ot.length===64){Wt.v=27+(Ot[32]>>7);Ot[32]&=127;Wt.r=hexlify(Ot.slice(0,32));Wt.s=hexlify(Ot.slice(32,64))}else if(Ot.length===65){Wt.r=hexlify(Ot.slice(0,32));Wt.s=hexlify(Ot.slice(32,64));Wt.v=Ot[64]}else{nn.throwArgumentError("invalid signature string","signature",st)}if(Wt.v<27){if(Wt.v===0||Wt.v===1){Wt.v+=27}else{nn.throwArgumentError("signature invalid v byte","signature",st)}}Wt.recoveryParam=1-Wt.v%2;if(Wt.recoveryParam){Ot[32]|=128}Wt._vs=hexlify(Ot.slice(32,64))}else{Wt.r=st.r;Wt.s=st.s;Wt.v=st.v;Wt.recoveryParam=st.recoveryParam;Wt._vs=st._vs;if(Wt._vs!=null){var en=zeroPad(arrayify(Wt._vs),32);Wt._vs=hexlify(en);var tn=en[0]>=128?1:0;if(Wt.recoveryParam==null){Wt.recoveryParam=tn}else if(Wt.recoveryParam!==tn){nn.throwArgumentError("signature recoveryParam mismatch _vs","signature",st)}en[0]&=127;var an=hexlify(en);if(Wt.s==null){Wt.s=an}else if(Wt.s!==an){nn.throwArgumentError("signature v mismatch _vs","signature",st)}}if(Wt.recoveryParam==null){if(Wt.v==null){nn.throwArgumentError("signature missing v and recoveryParam","signature",st)}else if(Wt.v===0||Wt.v===1){Wt.recoveryParam=Wt.v}else{Wt.recoveryParam=1-Wt.v%2}}else{if(Wt.v==null){Wt.v=27+Wt.recoveryParam}else{var In=Wt.v===0||Wt.v===1?Wt.v:1-Wt.v%2;if(Wt.recoveryParam!==In){nn.throwArgumentError("signature recoveryParam mismatch v","signature",st)}}}if(Wt.r==null||!isHexString(Wt.r)){nn.throwArgumentError("signature missing or invalid r","signature",st)}else{Wt.r=hexZeroPad(Wt.r,32)}if(Wt.s==null||!isHexString(Wt.s)){nn.throwArgumentError("signature missing or invalid s","signature",st)}else{Wt.s=hexZeroPad(Wt.s,32)}var rn=arrayify(Wt.s);if(rn[0]>=128){nn.throwArgumentError("signature s out of range","signature",st)}if(Wt.recoveryParam){rn[0]|=128}var cn=hexlify(rn);if(Wt._vs){if(!isHexString(Wt._vs)){nn.throwArgumentError("signature invalid _vs","signature",st)}Wt._vs=hexZeroPad(Wt._vs,32)}if(Wt._vs==null){Wt._vs=cn}else if(Wt._vs!==cn){nn.throwArgumentError("signature _vs mismatch v and s","signature",st)}}Wt.yParityAndS=Wt._vs;Wt.compact=Wt.r+Wt.yParityAndS.substring(2);return Wt}Wt.splitSignature=splitSignature;function joinSignature(st){st=splitSignature(st);return hexlify(concat([st.r,st.s,st.recoveryParam?"0x1c":"0x1b"]))}Wt.joinSignature=joinSignature},89224:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.AddressZero=void 0;Wt.AddressZero="0x0000000000000000000000000000000000000000"},40662:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.MaxInt256=Wt.MinInt256=Wt.MaxUint256=Wt.WeiPerEther=Wt.Two=Wt.One=Wt.Zero=Wt.NegativeOne=void 0;var en=Ot(18202);var tn=en.BigNumber.from(-1);Wt.NegativeOne=tn;var nn=en.BigNumber.from(0);Wt.Zero=nn;var an=en.BigNumber.from(1);Wt.One=an;var In=en.BigNumber.from(2);Wt.Two=In;var rn=en.BigNumber.from("1000000000000000000");Wt.WeiPerEther=rn;var cn=en.BigNumber.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");Wt.MaxUint256=cn;var on=en.BigNumber.from("-0x8000000000000000000000000000000000000000000000000000000000000000");Wt.MinInt256=on;var sn=en.BigNumber.from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");Wt.MaxInt256=sn},35550:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.HashZero=void 0;Wt.HashZero="0x0000000000000000000000000000000000000000000000000000000000000000"},99848:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.EtherSymbol=Wt.HashZero=Wt.MaxInt256=Wt.MinInt256=Wt.MaxUint256=Wt.WeiPerEther=Wt.Two=Wt.One=Wt.Zero=Wt.NegativeOne=Wt.AddressZero=void 0;var en=Ot(89224);Object.defineProperty(Wt,"AddressZero",{enumerable:true,get:function(){return en.AddressZero}});var tn=Ot(40662);Object.defineProperty(Wt,"NegativeOne",{enumerable:true,get:function(){return tn.NegativeOne}});Object.defineProperty(Wt,"Zero",{enumerable:true,get:function(){return tn.Zero}});Object.defineProperty(Wt,"One",{enumerable:true,get:function(){return tn.One}});Object.defineProperty(Wt,"Two",{enumerable:true,get:function(){return tn.Two}});Object.defineProperty(Wt,"WeiPerEther",{enumerable:true,get:function(){return tn.WeiPerEther}});Object.defineProperty(Wt,"MaxUint256",{enumerable:true,get:function(){return tn.MaxUint256}});Object.defineProperty(Wt,"MinInt256",{enumerable:true,get:function(){return tn.MinInt256}});Object.defineProperty(Wt,"MaxInt256",{enumerable:true,get:function(){return tn.MaxInt256}});var nn=Ot(35550);Object.defineProperty(Wt,"HashZero",{enumerable:true,get:function(){return nn.HashZero}});var an=Ot(18178);Object.defineProperty(Wt,"EtherSymbol",{enumerable:true,get:function(){return an.EtherSymbol}})},18178:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.EtherSymbol=void 0;Wt.EtherSymbol="Ξ"},96511:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.version=void 0;Wt.version="contracts/5.7.0"},98322:function(st,Wt,Ot){"use strict";var en=this&&this.__extends||function(){var extendStatics=function(st,Wt){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(st,Wt){st.__proto__=Wt}||function(st,Wt){for(var Ot in Wt)if(Object.prototype.hasOwnProperty.call(Wt,Ot))st[Ot]=Wt[Ot]};return extendStatics(st,Wt)};return function(st,Wt){if(typeof Wt!=="function"&&Wt!==null)throw new TypeError("Class extends value "+String(Wt)+" is not a constructor or null");extendStatics(st,Wt);function __(){this.constructor=st}st.prototype=Wt===null?Object.create(Wt):(__.prototype=Wt.prototype,new __)}}();var tn=this&&this.__awaiter||function(st,Wt,Ot,en){function adopt(st){return st instanceof Ot?st:new Ot((function(Wt){Wt(st)}))}return new(Ot||(Ot=Promise))((function(Ot,tn){function fulfilled(st){try{step(en.next(st))}catch(st){tn(st)}}function rejected(st){try{step(en["throw"](st))}catch(st){tn(st)}}function step(st){st.done?Ot(st.value):adopt(st.value).then(fulfilled,rejected)}step((en=en.apply(st,Wt||[])).next())}))};var nn=this&&this.__generator||function(st,Wt){var Ot={label:0,sent:function(){if(nn[0]&1)throw nn[1];return nn[1]},trys:[],ops:[]},en,tn,nn,an;return an={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(an[Symbol.iterator]=function(){return this}),an;function verb(st){return function(Wt){return step([st,Wt])}}function step(an){if(en)throw new TypeError("Generator is already executing.");while(Ot)try{if(en=1,tn&&(nn=an[0]&2?tn["return"]:an[0]?tn["throw"]||((nn=tn["return"])&&nn.call(tn),0):tn.next)&&!(nn=nn.call(tn,an[1])).done)return nn;if(tn=0,nn)an=[an[0]&2,nn.value];switch(an[0]){case 0:case 1:nn=an;break;case 4:Ot.label++;return{value:an[1],done:false};case 5:Ot.label++;tn=an[1];an=[0];continue;case 7:an=Ot.ops.pop();Ot.trys.pop();continue;default:if(!(nn=Ot.trys,nn=nn.length>0&&nn[nn.length-1])&&(an[0]===6||an[0]===2)){Ot=0;continue}if(an[0]===3&&(!nn||an[1]>nn[0]&&an[1]1){return}st=st.substring(1);var Ot=Wt[0];try{if(tn[st]==null){(0,un.defineReadOnly)(tn,st,tn[Ot])}}catch(st){}if(tn.functions[st]==null){(0,un.defineReadOnly)(tn.functions,st,tn.functions[Ot])}if(tn.callStatic[st]==null){(0,un.defineReadOnly)(tn.callStatic,st,tn.callStatic[Ot])}if(tn.populateTransaction[st]==null){(0,un.defineReadOnly)(tn.populateTransaction,st,tn.populateTransaction[Ot])}if(tn.estimateGas[st]==null){(0,un.defineReadOnly)(tn.estimateGas,st,tn.estimateGas[Ot])}}))}BaseContract.getContractAddress=function(st){return(0,on.getContractAddress)(st)};BaseContract.getInterface=function(st){if(In.Interface.isInterface(st)){return st}return new In.Interface(st)};BaseContract.prototype.deployed=function(){return this._deployed()};BaseContract.prototype._deployed=function(st){var Wt=this;if(!this._deployedPromise){if(this.deployTransaction){this._deployedPromise=this.deployTransaction.wait().then((function(){return Wt}))}else{this._deployedPromise=this.provider.getCode(this.address,st).then((function(st){if(st==="0x"){Gn.throwError("contract not deployed",bn.Logger.errors.UNSUPPORTED_OPERATION,{contractAddress:Wt.address,operation:"getDeployed"})}return Wt}))}}return this._deployedPromise};BaseContract.prototype.fallback=function(st){var Wt=this;if(!this.signer){Gn.throwError("sending a transactions require a signer",bn.Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"})}var Ot=(0,un.shallowCopy)(st||{});["from","to"].forEach((function(st){if(Ot[st]==null){return}Gn.throwError("cannot override "+st,bn.Logger.errors.UNSUPPORTED_OPERATION,{operation:st})}));Ot.to=this.resolvedAddress;return this.deployed().then((function(){return Wt.signer.sendTransaction(Ot)}))};BaseContract.prototype.connect=function(st){if(typeof st==="string"){st=new cn.VoidSigner(st,this.provider)}var Wt=new this.constructor(this.address,this.interface,st);if(this.deployTransaction){(0,un.defineReadOnly)(Wt,"deployTransaction",this.deployTransaction)}return Wt};BaseContract.prototype.attach=function(st){return new this.constructor(st,this.interface,this.signer||this.provider)};BaseContract.isIndexed=function(st){return In.Indexed.isIndexed(st)};BaseContract.prototype._normalizeRunningEvent=function(st){if(this._runningEvents[st.tag]){return this._runningEvents[st.tag]}return st};BaseContract.prototype._getRunningEvent=function(st){if(typeof st==="string"){if(st==="error"){return this._normalizeRunningEvent(new An)}if(st==="event"){return this._normalizeRunningEvent(new Zn("event",null))}if(st==="*"){return this._normalizeRunningEvent(new Nn(this.address,this.interface))}var Wt=this.interface.getEvent(st);return this._normalizeRunningEvent(new Wn(this.address,this.interface,Wt))}if(st.topics&&st.topics.length>0){try{var Ot=st.topics[0];if(typeof Ot!=="string"){throw new Error("invalid topic")}var Wt=this.interface.getEvent(Ot);return this._normalizeRunningEvent(new Wn(this.address,this.interface,Wt,st.topics))}catch(st){}var en={address:this.address,topics:st.topics};return this._normalizeRunningEvent(new Zn(getEventTag(en),en))}return this._normalizeRunningEvent(new Nn(this.address,this.interface))};BaseContract.prototype._checkRunningEvents=function(st){if(st.listenerCount()===0){delete this._runningEvents[st.tag];var Wt=this._wrappedEmits[st.tag];if(Wt&&st.filter){this.provider.off(st.filter,Wt);delete this._wrappedEmits[st.tag]}}};BaseContract.prototype._wrapEvent=function(st,Wt,Ot){var en=this;var tn=(0,un.deepCopy)(Wt);tn.removeListener=function(){if(!Ot){return}st.removeListener(Ot);en._checkRunningEvents(st)};tn.getBlock=function(){return en.provider.getBlock(Wt.blockHash)};tn.getTransaction=function(){return en.provider.getTransaction(Wt.transactionHash)};tn.getTransactionReceipt=function(){return en.provider.getTransactionReceipt(Wt.transactionHash)};st.prepareEvent(tn);return tn};BaseContract.prototype._addEventListener=function(st,Wt,Ot){var en=this;if(!this.provider){Gn.throwError("events require a provider or a signer with a provider",bn.Logger.errors.UNSUPPORTED_OPERATION,{operation:"once"})}st.addListener(Wt,Ot);this._runningEvents[st.tag]=st;if(!this._wrappedEmits[st.tag]){var wrappedEmit=function(Ot){var tn=en._wrapEvent(st,Ot,Wt);if(tn.decodeError==null){try{var nn=st.getEmit(tn);en.emit.apply(en,an([st.filter],nn,false))}catch(st){tn.decodeError=st.error}}if(st.filter!=null){en.emit("event",tn)}if(tn.decodeError!=null){en.emit("error",tn.decodeError,tn)}};this._wrappedEmits[st.tag]=wrappedEmit;if(st.filter!=null){this.provider.on(st.filter,wrappedEmit)}}};BaseContract.prototype.queryFilter=function(st,Wt,Ot){var en=this;var tn=this._getRunningEvent(st);var nn=(0,un.shallowCopy)(tn.filter);if(typeof Wt==="string"&&(0,dn.isHexString)(Wt,32)){if(Ot!=null){Gn.throwArgumentError("cannot specify toBlock with blockhash","toBlock",Ot)}nn.blockHash=Wt}else{nn.fromBlock=Wt!=null?Wt:0;nn.toBlock=Ot!=null?Ot:"latest"}return this.provider.getLogs(nn).then((function(st){return st.map((function(st){return en._wrapEvent(tn,st,null)}))}))};BaseContract.prototype.on=function(st,Wt){this._addEventListener(this._getRunningEvent(st),Wt,false);return this};BaseContract.prototype.once=function(st,Wt){this._addEventListener(this._getRunningEvent(st),Wt,true);return this};BaseContract.prototype.emit=function(st){var Wt=[];for(var Ot=1;Ot0;this._checkRunningEvents(en);return tn};BaseContract.prototype.listenerCount=function(st){var Wt=this;if(!this.provider){return 0}if(st==null){return Object.keys(this._runningEvents).reduce((function(st,Ot){return st+Wt._runningEvents[Ot].listenerCount()}),0)}return this._getRunningEvent(st).listenerCount()};BaseContract.prototype.listeners=function(st){if(!this.provider){return[]}if(st==null){var Wt=[];for(var Ot in this._runningEvents){this._runningEvents[Ot].listeners().forEach((function(st){Wt.push(st)}))}return Wt}return this._getRunningEvent(st).listeners()};BaseContract.prototype.removeAllListeners=function(st){if(!this.provider){return this}if(st==null){for(var Wt in this._runningEvents){var Ot=this._runningEvents[Wt];Ot.removeAllListeners();this._checkRunningEvents(Ot)}return this}var en=this._getRunningEvent(st);en.removeAllListeners();this._checkRunningEvents(en);return this};BaseContract.prototype.off=function(st,Wt){if(!this.provider){return this}var Ot=this._getRunningEvent(st);Ot.removeListener(Wt);this._checkRunningEvents(Ot);return this};BaseContract.prototype.removeListener=function(st,Wt){return this.off(st,Wt)};return BaseContract}();Wt.BaseContract=gn;var yn=function(st){en(Contract,st);function Contract(){return st!==null&&st.apply(this,arguments)||this}return Contract}(gn);Wt.Contract=yn;var vn=function(){function ContractFactory(st,Wt,Ot){var en=this.constructor;var tn=null;if(typeof Wt==="string"){tn=Wt}else if((0,dn.isBytes)(Wt)){tn=(0,dn.hexlify)(Wt)}else if(Wt&&typeof Wt.object==="string"){tn=Wt.object}else{tn="!"}if(tn.substring(0,2)!=="0x"){tn="0x"+tn}if(!(0,dn.isHexString)(tn)||tn.length%2){Gn.throwArgumentError("invalid bytecode","bytecode",Wt)}if(Ot&&!cn.Signer.isSigner(Ot)){Gn.throwArgumentError("invalid signer","signer",Ot)}(0,un.defineReadOnly)(this,"bytecode",tn);(0,un.defineReadOnly)(this,"interface",(0,un.getStatic)(en,"getInterface")(st));(0,un.defineReadOnly)(this,"signer",Ot||null)}ContractFactory.prototype.getDeployTransaction=function(){var st=[];for(var Wt=0;Wt{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.version=void 0;Wt.version="hash/5.7.0"},92302:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.read_emoji_trie=Wt.read_zero_terminated_array=Wt.read_mapped_map=Wt.read_member_array=Wt.signed=Wt.read_compressed_payload=Wt.read_payload=Wt.decode_arithmetic=void 0;function flat(st,Wt){if(Wt==null){Wt=1}var Ot=[];var en=Ot.forEach;var flatDeep=function(st,Wt){en.call(st,(function(st){if(Wt>0&&Array.isArray(st)){flatDeep(st,Wt-1)}else{Ot.push(st)}}))};flatDeep(st,Wt);return Ot}function fromEntries(st){var Wt={};for(var Ot=0;Ot>--rn&1}var on=31;var sn=Math.pow(2,on);var dn=sn>>>1;var un=dn>>1;var pn=sn-1;var bn=0;for(var nn=0;nn1){var Nn=An+Wn>>>1;if(Zn>>1|read_bit();gn=gn<<1^dn;yn=(yn^dn)<<1|dn|1}Gn=gn;hn=1+yn-gn}var vn=Ot-4;return mn.map((function(Wt){switch(Wt-vn){case 3:return vn+65792+(st[In++]<<16|st[In++]<<8|st[In++]);case 2:return vn+256+(st[In++]<<8|st[In++]);case 1:return vn+st[In++];default:return Wt-1}}))}Wt.decode_arithmetic=decode_arithmetic;function read_payload(st){var Wt=0;return function(){return st[Wt++]}}Wt.read_payload=read_payload;function read_compressed_payload(st){return read_payload(decode_arithmetic(st))}Wt.read_compressed_payload=read_compressed_payload;function signed(st){return st&1?~st>>1:st>>1}Wt.signed=signed;function read_counts(st,Wt){var Ot=Array(st);for(var en=0;en>=1;var In=tn==1;var rn=tn==2;return{branches:Ot,valid:nn,fe0f:an,save:In,check:rn}}}Wt.read_emoji_trie=read_emoji_trie},97666:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.getData=void 0;var en=Ot(99032);var tn=Ot(92302);function getData(){return(0,tn.read_compressed_payload)((0,en.decode)("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA=="))}Wt.getData=getData},89365:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.ens_normalize=Wt.ens_normalize_post_check=void 0;var en=Ot(13859);var tn=Ot(97666);var nn=(0,tn.getData)();var an=Ot(92302);var In=new Set((0,an.read_member_array)(nn));var rn=new Set((0,an.read_member_array)(nn));var cn=(0,an.read_mapped_map)(nn);var on=(0,an.read_emoji_trie)(nn);var sn=45;var dn=95;function explode_cp(st){return(0,en.toUtf8CodePoints)(st)}function filter_fe0f(st){return st.filter((function(st){return st!=65039}))}function ens_normalize_post_check(st){for(var Wt=0,Ot=st.split(".");Wt=0;nn--){if(tn[nn]!==dn){throw new Error("underscore only allowed at start")}}if(tn.length>=4&&tn.every((function(st){return st<128}))&&tn[2]===sn&&tn[3]===sn){throw new Error("invalid label extension")}}catch(st){throw new Error('Invalid label "'+en+'": '+st.message)}}return st}Wt.ens_normalize_post_check=ens_normalize_post_check;function ens_normalize(st){return ens_normalize_post_check(normalize(st,filter_fe0f))}Wt.ens_normalize=ens_normalize;function normalize(st,Wt){var Ot=explode_cp(st).reverse();var en=[];while(Ot.length){var tn=consume_emoji_reversed(Ot);if(tn){en.push.apply(en,Wt(tn));continue}var nn=Ot.pop();if(In.has(nn)){en.push(nn);continue}if(rn.has(nn)){continue}var an=cn[nn];if(an){en.push.apply(en,an);continue}throw new Error("Disallowed codepoint: 0x"+nn.toString(16).toUpperCase())}return ens_normalize_post_check(nfc(String.fromCodePoint.apply(String,en)))}function nfc(st){return st.normalize("NFC")}function consume_emoji_reversed(st,Wt){var Ot;var en=on;var tn;var nn;var an=[];var In=st.length;if(Wt)Wt.length=0;var _loop_1=function(){var rn=st[--In];en=(Ot=en.branches.find((function(st){return st.set.has(rn)})))===null||Ot===void 0?void 0:Ot.node;if(!en)return"break";if(en.save){nn=rn}else if(en.check){if(rn===nn)return"break"}an.push(rn);if(en.fe0f){an.push(65039);if(In>0&&st[In-1]==65039)In--}if(en.valid){tn=an.slice();if(en.valid==2)tn.splice(1,1);if(Wt)Wt.push.apply(Wt,st.slice(In).reverse());st.length=In}};while(In){var rn=_loop_1();if(rn==="break")break}return tn}},93562:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.id=void 0;var en=Ot(56938);var tn=Ot(13859);function id(st){return(0,en.keccak256)((0,tn.toUtf8Bytes)(st))}Wt.id=id},91839:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt._TypedDataEncoder=Wt.hashMessage=Wt.messagePrefix=Wt.ensNormalize=Wt.isValidName=Wt.namehash=Wt.dnsEncode=Wt.id=void 0;var en=Ot(93562);Object.defineProperty(Wt,"id",{enumerable:true,get:function(){return en.id}});var tn=Ot(62292);Object.defineProperty(Wt,"dnsEncode",{enumerable:true,get:function(){return tn.dnsEncode}});Object.defineProperty(Wt,"isValidName",{enumerable:true,get:function(){return tn.isValidName}});Object.defineProperty(Wt,"namehash",{enumerable:true,get:function(){return tn.namehash}});var nn=Ot(52976);Object.defineProperty(Wt,"hashMessage",{enumerable:true,get:function(){return nn.hashMessage}});Object.defineProperty(Wt,"messagePrefix",{enumerable:true,get:function(){return nn.messagePrefix}});var an=Ot(62292);Object.defineProperty(Wt,"ensNormalize",{enumerable:true,get:function(){return an.ensNormalize}});var In=Ot(64516);Object.defineProperty(Wt,"_TypedDataEncoder",{enumerable:true,get:function(){return In.TypedDataEncoder}})},52976:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.hashMessage=Wt.messagePrefix=void 0;var en=Ot(42006);var tn=Ot(56938);var nn=Ot(13859);Wt.messagePrefix="Ethereum Signed Message:\n";function hashMessage(st){if(typeof st==="string"){st=(0,nn.toUtf8Bytes)(st)}return(0,tn.keccak256)((0,en.concat)([(0,nn.toUtf8Bytes)(Wt.messagePrefix),(0,nn.toUtf8Bytes)(String(st.length)),st]))}Wt.hashMessage=hashMessage},62292:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.dnsEncode=Wt.namehash=Wt.isValidName=Wt.ensNormalize=void 0;var en=Ot(42006);var tn=Ot(13859);var nn=Ot(56938);var an=Ot(76127);var In=Ot(14891);var rn=new an.Logger(In.version);var cn=Ot(89365);var on=new Uint8Array(32);on.fill(0);function checkComponent(st){if(st.length===0){throw new Error("invalid ENS name; empty component")}return st}function ensNameSplit(st){var Wt=(0,tn.toUtf8Bytes)((0,cn.ens_normalize)(st));var Ot=[];if(st.length===0){return Ot}var en=0;for(var nn=0;nn=Wt.length){throw new Error("invalid ENS name; empty component")}Ot.push(checkComponent(Wt.slice(en)));return Ot}function ensNormalize(st){return ensNameSplit(st).map((function(st){return(0,tn.toUtf8String)(st)})).join(".")}Wt.ensNormalize=ensNormalize;function isValidName(st){try{return ensNameSplit(st).length!==0}catch(st){}return false}Wt.isValidName=isValidName;function namehash(st){if(typeof st!=="string"){rn.throwArgumentError("invalid ENS name; not a string","name",st)}var Wt=on;var Ot=ensNameSplit(st);while(Ot.length){Wt=(0,nn.keccak256)((0,en.concat)([Wt,(0,nn.keccak256)(Ot.pop())]))}return(0,en.hexlify)(Wt)}Wt.namehash=namehash;function dnsEncode(st){return(0,en.hexlify)((0,en.concat)(ensNameSplit(st).map((function(st){if(st.length>63){throw new Error("invalid DNS encoded entry; length exceeds 63 bytes")}var Wt=new Uint8Array(st.length+1);Wt.set(st,1);Wt[0]=Wt.length-1;return Wt}))))+"00"}Wt.dnsEncode=dnsEncode},64516:function(st,Wt,Ot){"use strict";var en=this&&this.__awaiter||function(st,Wt,Ot,en){function adopt(st){return st instanceof Ot?st:new Ot((function(Wt){Wt(st)}))}return new(Ot||(Ot=Promise))((function(Ot,tn){function fulfilled(st){try{step(en.next(st))}catch(st){tn(st)}}function rejected(st){try{step(en["throw"](st))}catch(st){tn(st)}}function step(st){st.done?Ot(st.value):adopt(st.value).then(fulfilled,rejected)}step((en=en.apply(st,Wt||[])).next())}))};var tn=this&&this.__generator||function(st,Wt){var Ot={label:0,sent:function(){if(nn[0]&1)throw nn[1];return nn[1]},trys:[],ops:[]},en,tn,nn,an;return an={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(an[Symbol.iterator]=function(){return this}),an;function verb(st){return function(Wt){return step([st,Wt])}}function step(an){if(en)throw new TypeError("Generator is already executing.");while(Ot)try{if(en=1,tn&&(nn=an[0]&2?tn["return"]:an[0]?tn["throw"]||((nn=tn["return"])&&nn.call(tn),0):tn.next)&&!(nn=nn.call(tn,an[1])).done)return nn;if(tn=0,nn)an=[an[0]&2,nn.value];switch(an[0]){case 0:case 1:nn=an;break;case 4:Ot.label++;return{value:an[1],done:false};case 5:Ot.label++;tn=an[1];an=[0];continue;case 7:an=Ot.ops.pop();Ot.trys.pop();continue;default:if(!(nn=Ot.trys,nn=nn.length>0&&nn[nn.length-1])&&(an[0]===6||an[0]===2)){Ot=0;continue}if(an[0]===3&&(!nn||an[1]>nn[0]&&an[1]256||Wt[2]&&Wt[2]!==String(en)){dn.throwArgumentError("invalid numeric width","type",st)}var tn=hn.mask(Ot?en-1:en);var cn=Ot?tn.add(Gn).mul(bn):mn;return function(Wt){var Ot=an.BigNumber.from(Wt);if(Ot.lt(cn)||Ot.gt(tn)){dn.throwArgumentError("value out-of-bounds for "+st,"value",Wt)}return(0,In.hexZeroPad)(Ot.toTwos(256).toHexString(),32)}}}{var Wt=st.match(/^bytes(\d+)$/);if(Wt){var on=parseInt(Wt[1]);if(on===0||on>32||Wt[1]!==String(on)){dn.throwArgumentError("invalid bytes width","type",st)}return function(Wt){var Ot=(0,In.arrayify)(Wt);if(Ot.length!==on){dn.throwArgumentError("invalid length for "+st,"value",Wt)}return hexPadRight(Wt)}}}switch(st){case"address":return function(st){return(0,In.hexZeroPad)((0,nn.getAddress)(st),32)};case"bool":return function(st){return!st?An:Zn};case"bytes":return function(st){return(0,rn.keccak256)(st)};case"string":return function(st){return(0,un.id)(st)}}return null}function encodeType(st,Wt){return st+"("+Wt.map((function(st){var Wt=st.name,Ot=st.type;return Ot+" "+Wt})).join(",")+")"}var yn=function(){function TypedDataEncoder(st){(0,cn.defineReadOnly)(this,"types",Object.freeze((0,cn.deepCopy)(st)));(0,cn.defineReadOnly)(this,"_encoderCache",{});(0,cn.defineReadOnly)(this,"_types",{});var Wt={};var Ot={};var en={};Object.keys(st).forEach((function(st){Wt[st]={};Ot[st]=[];en[st]={}}));var _loop_1=function(en){var tn={};st[en].forEach((function(nn){if(tn[nn.name]){dn.throwArgumentError("duplicate variable name "+JSON.stringify(nn.name)+" in "+JSON.stringify(en),"types",st)}tn[nn.name]=true;var an=nn.type.match(/^([^\x5b]*)(\x5b|$)/)[1];if(an===en){dn.throwArgumentError("circular type reference to "+JSON.stringify(an),"types",st)}var In=getBaseEncoder(an);if(In){return}if(!Ot[an]){dn.throwArgumentError("unknown type "+JSON.stringify(an),"types",st)}Ot[an].push(en);Wt[en][an]=true}))};for(var tn in st){_loop_1(tn)}var nn=Object.keys(Ot).filter((function(st){return Ot[st].length===0}));if(nn.length===0){dn.throwArgumentError("missing primary type","types",st)}else if(nn.length>1){dn.throwArgumentError("ambiguous primary types or unused types: "+nn.map((function(st){return JSON.stringify(st)})).join(", "),"types",st)}(0,cn.defineReadOnly)(this,"primaryType",nn[0]);function checkCircular(tn,nn){if(nn[tn]){dn.throwArgumentError("circular type reference to "+JSON.stringify(tn),"types",st)}nn[tn]=true;Object.keys(Wt[tn]).forEach((function(st){if(!Ot[st]){return}checkCircular(st,nn);Object.keys(nn).forEach((function(Wt){en[Wt][st]=true}))}));delete nn[tn]}checkCircular(this.primaryType,{});for(var an in en){var In=Object.keys(en[an]);In.sort();this._types[an]=encodeType(an,st[an])+In.map((function(Wt){return encodeType(Wt,st[Wt])})).join("")}}TypedDataEncoder.prototype.getEncoder=function(st){var Wt=this._encoderCache[st];if(!Wt){Wt=this._encoderCache[st]=this._getEncoder(st)}return Wt};TypedDataEncoder.prototype._getEncoder=function(st){var Wt=this;{var Ot=getBaseEncoder(st);if(Ot){return Ot}}var en=st.match(/^(.*)(\x5b(\d*)\x5d)$/);if(en){var tn=en[1];var nn=this.getEncoder(tn);var an=parseInt(en[3]);return function(st){if(an>=0&&st.length!==an){dn.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",st)}var Ot=st.map(nn);if(Wt._types[tn]){Ot=Ot.map(rn.keccak256)}return(0,rn.keccak256)((0,In.hexConcat)(Ot))}}var cn=this.types[st];if(cn){var on=(0,un.id)(this._types[st]);return function(st){var Ot=cn.map((function(Ot){var en=Ot.name,tn=Ot.type;var nn=Wt.getEncoder(tn)(st[en]);if(Wt._types[tn]){return(0,rn.keccak256)(nn)}return nn}));Ot.unshift(on);return(0,In.hexConcat)(Ot)}}return dn.throwArgumentError("unknown type: "+st,"type",st)};TypedDataEncoder.prototype.encodeType=function(st){var Wt=this._types[st];if(!Wt){dn.throwArgumentError("unknown type: "+JSON.stringify(st),"name",st)}return Wt};TypedDataEncoder.prototype.encodeData=function(st,Wt){return this.getEncoder(st)(Wt)};TypedDataEncoder.prototype.hashStruct=function(st,Wt){return(0,rn.keccak256)(this.encodeData(st,Wt))};TypedDataEncoder.prototype.encode=function(st){return this.encodeData(this.primaryType,st)};TypedDataEncoder.prototype.hash=function(st){return this.hashStruct(this.primaryType,st)};TypedDataEncoder.prototype._visit=function(st,Wt,Ot){var en=this;{var tn=getBaseEncoder(st);if(tn){return Ot(st,Wt)}}var nn=st.match(/^(.*)(\x5b(\d*)\x5d)$/);if(nn){var an=nn[1];var In=parseInt(nn[3]);if(In>=0&&Wt.length!==In){dn.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",Wt)}return Wt.map((function(st){return en._visit(an,st,Ot)}))}var rn=this.types[st];if(rn){return rn.reduce((function(st,tn){var nn=tn.name,an=tn.type;st[nn]=en._visit(an,Wt[nn],Ot);return st}),{})}return dn.throwArgumentError("unknown type: "+st,"type",st)};TypedDataEncoder.prototype.visit=function(st,Wt){return this._visit(this.primaryType,st,Wt)};TypedDataEncoder.from=function(st){return new TypedDataEncoder(st)};TypedDataEncoder.getPrimaryType=function(st){return TypedDataEncoder.from(st).primaryType};TypedDataEncoder.hashStruct=function(st,Wt,Ot){return TypedDataEncoder.from(Wt).hashStruct(st,Ot)};TypedDataEncoder.hashDomain=function(st){var Wt=[];for(var Ot in st){var en=Wn[Ot];if(!en){dn.throwArgumentError("invalid typed-data domain key: "+JSON.stringify(Ot),"domain",st)}Wt.push({name:Ot,type:en})}Wt.sort((function(st,Wt){return Nn.indexOf(st.name)-Nn.indexOf(Wt.name)}));return TypedDataEncoder.hashStruct("EIP712Domain",{EIP712Domain:Wt},st)};TypedDataEncoder.encode=function(st,Wt,Ot){return(0,In.hexConcat)(["0x1901",TypedDataEncoder.hashDomain(st),TypedDataEncoder.from(Wt).hash(Ot)])};TypedDataEncoder.hash=function(st,Wt,Ot){return(0,rn.keccak256)(TypedDataEncoder.encode(st,Wt,Ot))};TypedDataEncoder.resolveNames=function(st,Wt,Ot,nn){return en(this,void 0,void 0,(function(){var en,an,rn,on,sn,dn,un,pn;return tn(this,(function(tn){switch(tn.label){case 0:st=(0,cn.shallowCopy)(st);en={};if(st.verifyingContract&&!(0,In.isHexString)(st.verifyingContract,20)){en[st.verifyingContract]="0x"}an=TypedDataEncoder.from(Wt);an.visit(Ot,(function(st,Wt){if(st==="address"&&!(0,In.isHexString)(Wt,20)){en[Wt]="0x"}return Wt}));rn=[];for(on in en)rn.push(on);sn=0;tn.label=1;case 1:if(!(sn{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.version=void 0;Wt.version="hdnode/5.7.0"},13067:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.getAccountPath=Wt.isValidMnemonic=Wt.entropyToMnemonic=Wt.mnemonicToEntropy=Wt.mnemonicToSeed=Wt.HDNode=Wt.defaultPath=void 0;var en=Ot(31426);var tn=Ot(42006);var nn=Ot(18202);var an=Ot(13859);var In=Ot(15686);var rn=Ot(61338);var cn=Ot(63928);var on=Ot(66935);var sn=Ot(62394);var dn=Ot(78168);var un=Ot(76127);var pn=Ot(94620);var bn=new un.Logger(pn.version);var mn=nn.BigNumber.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141");var Gn=(0,an.toUtf8Bytes)("Bitcoin seed");var hn=2147483648;function getUpperMask(st){return(1<=256){throw new Error("Depth too large!")}return base58check((0,tn.concat)([this.privateKey!=null?"0x0488ADE4":"0x0488B21E",(0,tn.hexlify)(this.depth),this.parentFingerprint,(0,tn.hexZeroPad)((0,tn.hexlify)(this.index),4),this.chainCode,this.privateKey!=null?(0,tn.concat)(["0x00",this.privateKey]):this.publicKey]))},enumerable:false,configurable:true});HDNode.prototype.neuter=function(){return new HDNode(Zn,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)};HDNode.prototype._derive=function(st){if(st>4294967295){throw new Error("invalid index - "+String(st))}var Wt=this.path;if(Wt){Wt+="/"+(st&~hn)}var Ot=new Uint8Array(37);if(st&hn){if(!this.privateKey){throw new Error("cannot derive child of neutered node")}Ot.set((0,tn.arrayify)(this.privateKey),1);if(Wt){Wt+="'"}}else{Ot.set((0,tn.arrayify)(this.publicKey))}for(var en=24;en>=0;en-=8){Ot[33+(en>>3)]=st>>24-en&255}var an=(0,tn.arrayify)((0,on.computeHmac)(on.SupportedAlgorithm.sha512,this.chainCode,Ot));var In=an.slice(0,32);var rn=an.slice(32);var sn=null;var dn=null;if(this.privateKey){sn=bytes32(nn.BigNumber.from(In).add(this.privateKey).mod(mn))}else{var un=new cn.SigningKey((0,tn.hexlify)(In));dn=un._addPoint(this.publicKey)}var pn=Wt;var bn=this.mnemonic;if(bn){pn=Object.freeze({phrase:bn.phrase,path:Wt,locale:bn.locale||"en"})}return new HDNode(Zn,sn,dn,this.fingerprint,bytes32(rn),st,this.depth+1,pn)};HDNode.prototype.derivePath=function(st){var Wt=st.split("/");if(Wt.length===0||Wt[0]==="m"&&this.depth!==0){throw new Error("invalid path - "+st)}if(Wt[0]==="m"){Wt.shift()}var Ot=this;for(var en=0;en=hn){throw new Error("invalid path index - "+tn)}Ot=Ot._derive(hn+nn)}else if(tn.match(/^[0-9]+$/)){var nn=parseInt(tn);if(nn>=hn){throw new Error("invalid path index - "+tn)}Ot=Ot._derive(nn)}else{throw new Error("invalid path component - "+tn)}}return Ot};HDNode._fromSeed=function(st,Wt){var Ot=(0,tn.arrayify)(st);if(Ot.length<16||Ot.length>64){throw new Error("invalid seed")}var en=(0,tn.arrayify)((0,on.computeHmac)(on.SupportedAlgorithm.sha512,Gn,Ot));return new HDNode(Zn,bytes32(en.slice(0,32)),null,"0x00000000",bytes32(en.slice(32)),0,0,Wt)};HDNode.fromMnemonic=function(st,Wt,Ot){Ot=getWordlist(Ot);st=entropyToMnemonic(mnemonicToEntropy(st,Ot),Ot);return HDNode._fromSeed(mnemonicToSeed(st,Wt),{phrase:st,path:"m",locale:Ot.locale})};HDNode.fromSeed=function(st){return HDNode._fromSeed(st,null)};HDNode.fromExtendedKey=function(st){var Wt=en.Base58.decode(st);if(Wt.length!==82||base58check(Wt.slice(0,78))!==st){bn.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}var Ot=Wt[4];var nn=(0,tn.hexlify)(Wt.slice(5,9));var an=parseInt((0,tn.hexlify)(Wt.slice(9,13)).substring(2),16);var In=(0,tn.hexlify)(Wt.slice(13,45));var rn=Wt.slice(45,78);switch((0,tn.hexlify)(Wt.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new HDNode(Zn,null,(0,tn.hexlify)(rn),nn,In,an,Ot,null);case"0x0488ade4":case"0x04358394 ":if(rn[0]!==0){break}return new HDNode(Zn,(0,tn.hexlify)(rn.slice(1)),null,nn,In,an,Ot,null)}return bn.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")};return HDNode}();Wt.HDNode=An;function mnemonicToSeed(st,Wt){if(!Wt){Wt=""}var Ot=(0,an.toUtf8Bytes)("mnemonic"+Wt,an.UnicodeNormalizationForm.NFKD);return(0,In.pbkdf2)((0,an.toUtf8Bytes)(st,an.UnicodeNormalizationForm.NFKD),Ot,2048,64,"sha512")}Wt.mnemonicToSeed=mnemonicToSeed;function mnemonicToEntropy(st,Wt){Wt=getWordlist(Wt);bn.checkNormalize();var Ot=Wt.split(st);if(Ot.length%3!==0){throw new Error("invalid mnemonic")}var en=(0,tn.arrayify)(new Uint8Array(Math.ceil(11*Ot.length/8)));var nn=0;for(var an=0;an>3]|=1<<7-nn%8}nn++}}var cn=32*Ot.length/3;var sn=Ot.length/3;var dn=getUpperMask(sn);var un=(0,tn.arrayify)((0,on.sha256)(en.slice(0,cn/8)))[0]&dn;if(un!==(en[en.length-1]&dn)){throw new Error("invalid checksum")}return(0,tn.hexlify)(en.slice(0,cn/8))}Wt.mnemonicToEntropy=mnemonicToEntropy;function entropyToMnemonic(st,Wt){Wt=getWordlist(Wt);st=(0,tn.arrayify)(st);if(st.length%4!==0||st.length<16||st.length>32){throw new Error("invalid entropy")}var Ot=[0];var en=11;for(var nn=0;nn8){Ot[Ot.length-1]<<=8;Ot[Ot.length-1]|=st[nn];en-=8}else{Ot[Ot.length-1]<<=en;Ot[Ot.length-1]|=st[nn]>>8-en;Ot.push(st[nn]&getLowerMask(8-en));en+=3}}var an=st.length/4;var In=(0,tn.arrayify)((0,on.sha256)(st))[0]&getUpperMask(an);Ot[Ot.length-1]<<=an;Ot[Ot.length-1]|=In>>8-an;return Wt.join(Ot.map((function(st){return Wt.getWord(st)})))}Wt.entropyToMnemonic=entropyToMnemonic;function isValidMnemonic(st,Wt){try{mnemonicToEntropy(st,Wt);return true}catch(st){}return false}Wt.isValidMnemonic=isValidMnemonic;function getAccountPath(st){if(typeof st!=="number"||st<0||st>=hn||st%1){bn.throwArgumentError("invalid account index","index",st)}return"m/44'/60'/"+st+"'/0/0"}Wt.getAccountPath=getAccountPath},20771:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.version=void 0;Wt.version="json-wallets/5.7.0"},41340:function(st,Wt,Ot){"use strict";var en=this&&this.__extends||function(){var extendStatics=function(st,Wt){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(st,Wt){st.__proto__=Wt}||function(st,Wt){for(var Ot in Wt)if(Object.prototype.hasOwnProperty.call(Wt,Ot))st[Ot]=Wt[Ot]};return extendStatics(st,Wt)};return function(st,Wt){if(typeof Wt!=="function"&&Wt!==null)throw new TypeError("Class extends value "+String(Wt)+" is not a constructor or null");extendStatics(st,Wt);function __(){this.constructor=st}st.prototype=Wt===null?Object.create(Wt):(__.prototype=Wt.prototype,new __)}}();var tn=this&&this.__importDefault||function(st){return st&&st.__esModule?st:{default:st}};Object.defineProperty(Wt,"__esModule",{value:true});Wt.decrypt=Wt.CrowdsaleAccount=void 0;var nn=tn(Ot(31965));var an=Ot(75745);var In=Ot(42006);var rn=Ot(56938);var cn=Ot(15686);var on=Ot(13859);var sn=Ot(61338);var dn=Ot(76127);var un=Ot(20771);var pn=new dn.Logger(un.version);var bn=Ot(63503);var mn=function(st){en(CrowdsaleAccount,st);function CrowdsaleAccount(){return st!==null&&st.apply(this,arguments)||this}CrowdsaleAccount.prototype.isCrowdsaleAccount=function(st){return!!(st&&st._isCrowdsaleAccount)};return CrowdsaleAccount}(sn.Description);Wt.CrowdsaleAccount=mn;function decrypt(st,Wt){var Ot=JSON.parse(st);Wt=(0,bn.getPassword)(Wt);var en=(0,an.getAddress)((0,bn.searchPath)(Ot,"ethaddr"));var tn=(0,bn.looseArrayify)((0,bn.searchPath)(Ot,"encseed"));if(!tn||tn.length%16!==0){pn.throwArgumentError("invalid encseed","json",st)}var sn=(0,In.arrayify)((0,cn.pbkdf2)(Wt,Wt,2e3,32,"sha256")).slice(0,16);var dn=tn.slice(0,16);var un=tn.slice(16);var Gn=new nn.default.ModeOfOperation.cbc(sn,dn);var hn=nn.default.padding.pkcs7.strip((0,In.arrayify)(Gn.decrypt(un)));var Zn="";for(var An=0;An{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.decryptJsonWalletSync=Wt.decryptJsonWallet=Wt.getJsonWalletAddress=Wt.isKeystoreWallet=Wt.isCrowdsaleWallet=Wt.encryptKeystore=Wt.decryptKeystoreSync=Wt.decryptKeystore=Wt.decryptCrowdsale=void 0;var en=Ot(41340);Object.defineProperty(Wt,"decryptCrowdsale",{enumerable:true,get:function(){return en.decrypt}});var tn=Ot(27610);Object.defineProperty(Wt,"getJsonWalletAddress",{enumerable:true,get:function(){return tn.getJsonWalletAddress}});Object.defineProperty(Wt,"isCrowdsaleWallet",{enumerable:true,get:function(){return tn.isCrowdsaleWallet}});Object.defineProperty(Wt,"isKeystoreWallet",{enumerable:true,get:function(){return tn.isKeystoreWallet}});var nn=Ot(1692);Object.defineProperty(Wt,"decryptKeystore",{enumerable:true,get:function(){return nn.decrypt}});Object.defineProperty(Wt,"decryptKeystoreSync",{enumerable:true,get:function(){return nn.decryptSync}});Object.defineProperty(Wt,"encryptKeystore",{enumerable:true,get:function(){return nn.encrypt}});function decryptJsonWallet(st,Wt,Ot){if((0,tn.isCrowdsaleWallet)(st)){if(Ot){Ot(0)}var an=(0,en.decrypt)(st,Wt);if(Ot){Ot(1)}return Promise.resolve(an)}if((0,tn.isKeystoreWallet)(st)){return(0,nn.decrypt)(st,Wt,Ot)}return Promise.reject(new Error("invalid JSON wallet"))}Wt.decryptJsonWallet=decryptJsonWallet;function decryptJsonWalletSync(st,Wt){if((0,tn.isCrowdsaleWallet)(st)){return(0,en.decrypt)(st,Wt)}if((0,tn.isKeystoreWallet)(st)){return(0,nn.decryptSync)(st,Wt)}throw new Error("invalid JSON wallet")}Wt.decryptJsonWalletSync=decryptJsonWalletSync},27610:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.getJsonWalletAddress=Wt.isKeystoreWallet=Wt.isCrowdsaleWallet=void 0;var en=Ot(75745);function isCrowdsaleWallet(st){var Wt=null;try{Wt=JSON.parse(st)}catch(st){return false}return Wt.encseed&&Wt.ethaddr}Wt.isCrowdsaleWallet=isCrowdsaleWallet;function isKeystoreWallet(st){var Wt=null;try{Wt=JSON.parse(st)}catch(st){return false}if(!Wt.version||parseInt(Wt.version)!==Wt.version||parseInt(Wt.version)!==3){return false}return true}Wt.isKeystoreWallet=isKeystoreWallet;function getJsonWalletAddress(st){if(isCrowdsaleWallet(st)){try{return(0,en.getAddress)(JSON.parse(st).ethaddr)}catch(st){return null}}if(isKeystoreWallet(st)){try{return(0,en.getAddress)(JSON.parse(st).address)}catch(st){return null}}return null}Wt.getJsonWalletAddress=getJsonWalletAddress},1692:function(st,Wt,Ot){"use strict";var en=this&&this.__extends||function(){var extendStatics=function(st,Wt){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(st,Wt){st.__proto__=Wt}||function(st,Wt){for(var Ot in Wt)if(Object.prototype.hasOwnProperty.call(Wt,Ot))st[Ot]=Wt[Ot]};return extendStatics(st,Wt)};return function(st,Wt){if(typeof Wt!=="function"&&Wt!==null)throw new TypeError("Class extends value "+String(Wt)+" is not a constructor or null");extendStatics(st,Wt);function __(){this.constructor=st}st.prototype=Wt===null?Object.create(Wt):(__.prototype=Wt.prototype,new __)}}();var tn=this&&this.__awaiter||function(st,Wt,Ot,en){function adopt(st){return st instanceof Ot?st:new Ot((function(Wt){Wt(st)}))}return new(Ot||(Ot=Promise))((function(Ot,tn){function fulfilled(st){try{step(en.next(st))}catch(st){tn(st)}}function rejected(st){try{step(en["throw"](st))}catch(st){tn(st)}}function step(st){st.done?Ot(st.value):adopt(st.value).then(fulfilled,rejected)}step((en=en.apply(st,Wt||[])).next())}))};var nn=this&&this.__generator||function(st,Wt){var Ot={label:0,sent:function(){if(nn[0]&1)throw nn[1];return nn[1]},trys:[],ops:[]},en,tn,nn,an;return an={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(an[Symbol.iterator]=function(){return this}),an;function verb(st){return function(Wt){return step([st,Wt])}}function step(an){if(en)throw new TypeError("Generator is already executing.");while(Ot)try{if(en=1,tn&&(nn=an[0]&2?tn["return"]:an[0]?tn["throw"]||((nn=tn["return"])&&nn.call(tn),0):tn.next)&&!(nn=nn.call(tn,an[1])).done)return nn;if(tn=0,nn)an=[an[0]&2,nn.value];switch(an[0]){case 0:case 1:nn=an;break;case 4:Ot.label++;return{value:an[1],done:false};case 5:Ot.label++;tn=an[1];an=[0];continue;case 7:an=Ot.ops.pop();Ot.trys.pop();continue;default:if(!(nn=Ot.trys,nn=nn.length>0&&nn[nn.length-1])&&(an[0]===6||an[0]===2)){Ot=0;continue}if(an[0]===3&&(!nn||an[1]>nn[0]&&an[1]{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.uuidV4=Wt.searchPath=Wt.getPassword=Wt.zpad=Wt.looseArrayify=void 0;var en=Ot(42006);var tn=Ot(13859);function looseArrayify(st){if(typeof st==="string"&&st.substring(0,2)!=="0x"){st="0x"+st}return(0,en.arrayify)(st)}Wt.looseArrayify=looseArrayify;function zpad(st,Wt){st=String(st);while(st.length{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.version=void 0;Wt.version="logger/5.7.0"},76127:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Logger=Wt.ErrorCode=Wt.LogLevel=void 0;var en=false;var tn=false;var nn={debug:1,default:2,info:2,warning:3,error:4,off:5};var an=nn["default"];var In=Ot(97688);var rn=null;function _checkNormalize(){try{var st=[];["NFD","NFC","NFKD","NFKC"].forEach((function(Wt){try{if("test".normalize(Wt)!=="test"){throw new Error("bad normalize")}}catch(Ot){st.push(Wt)}}));if(st.length){throw new Error("missing "+st.join(", "))}if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769)){throw new Error("broken implementation")}}catch(st){return st.message}return null}var cn=_checkNormalize();var on;(function(st){st["DEBUG"]="DEBUG";st["INFO"]="INFO";st["WARNING"]="WARNING";st["ERROR"]="ERROR";st["OFF"]="OFF"})(on=Wt.LogLevel||(Wt.LogLevel={}));var sn;(function(st){st["UNKNOWN_ERROR"]="UNKNOWN_ERROR";st["NOT_IMPLEMENTED"]="NOT_IMPLEMENTED";st["UNSUPPORTED_OPERATION"]="UNSUPPORTED_OPERATION";st["NETWORK_ERROR"]="NETWORK_ERROR";st["SERVER_ERROR"]="SERVER_ERROR";st["TIMEOUT"]="TIMEOUT";st["BUFFER_OVERRUN"]="BUFFER_OVERRUN";st["NUMERIC_FAULT"]="NUMERIC_FAULT";st["MISSING_NEW"]="MISSING_NEW";st["INVALID_ARGUMENT"]="INVALID_ARGUMENT";st["MISSING_ARGUMENT"]="MISSING_ARGUMENT";st["UNEXPECTED_ARGUMENT"]="UNEXPECTED_ARGUMENT";st["CALL_EXCEPTION"]="CALL_EXCEPTION";st["INSUFFICIENT_FUNDS"]="INSUFFICIENT_FUNDS";st["NONCE_EXPIRED"]="NONCE_EXPIRED";st["REPLACEMENT_UNDERPRICED"]="REPLACEMENT_UNDERPRICED";st["UNPREDICTABLE_GAS_LIMIT"]="UNPREDICTABLE_GAS_LIMIT";st["TRANSACTION_REPLACED"]="TRANSACTION_REPLACED";st["ACTION_REJECTED"]="ACTION_REJECTED"})(sn=Wt.ErrorCode||(Wt.ErrorCode={}));var dn="0123456789abcdef";var un=function(){function Logger(st){Object.defineProperty(this,"version",{enumerable:true,value:st,writable:false})}Logger.prototype._log=function(st,Wt){var Ot=st.toLowerCase();if(nn[Ot]==null){this.throwArgumentError("invalid log level name","logLevel",st)}if(an>nn[Ot]){return}console.log.apply(console,Wt)};Logger.prototype.debug=function(){var st=[];for(var Wt=0;Wt>4];tn+=dn[Wt[nn]&15]}en.push(st+"=Uint8Array(0x"+tn+")")}else{en.push(st+"="+JSON.stringify(Wt))}}catch(Wt){en.push(st+"="+JSON.stringify(Ot[st].toString()))}}));en.push("code="+Wt);en.push("version="+this.version);var nn=st;var an="";switch(Wt){case sn.NUMERIC_FAULT:{an="NUMERIC_FAULT";var In=st;switch(In){case"overflow":case"underflow":case"division-by-zero":an+="-"+In;break;case"negative-power":case"negative-width":an+="-unsupported";break;case"unbound-bitwise-result":an+="-unbound-result";break}break}case sn.CALL_EXCEPTION:case sn.INSUFFICIENT_FUNDS:case sn.MISSING_NEW:case sn.NONCE_EXPIRED:case sn.REPLACEMENT_UNDERPRICED:case sn.TRANSACTION_REPLACED:case sn.UNPREDICTABLE_GAS_LIMIT:an=Wt;break}if(an){st+=" [ See: https://links.ethers.org/v5-errors-"+an+" ]"}if(en.length){st+=" ("+en.join(", ")+")"}var rn=new Error(st);rn.reason=nn;rn.code=Wt;Object.keys(Ot).forEach((function(st){rn[st]=Ot[st]}));return rn};Logger.prototype.throwError=function(st,Wt,Ot){throw this.makeError(st,Wt,Ot)};Logger.prototype.throwArgumentError=function(st,Wt,Ot){return this.throwError(st,Logger.errors.INVALID_ARGUMENT,{argument:Wt,value:Ot})};Logger.prototype.assert=function(st,Wt,Ot,en){if(!!st){return}this.throwError(Wt,Ot,en)};Logger.prototype.assertArgument=function(st,Wt,Ot,en){if(!!st){return}this.throwArgumentError(Wt,Ot,en)};Logger.prototype.checkNormalize=function(st){if(st==null){st="platform missing String.prototype.normalize"}if(cn){this.throwError("platform missing String.prototype.normalize",Logger.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:cn})}};Logger.prototype.checkSafeUint53=function(st,Wt){if(typeof st!=="number"){return}if(Wt==null){Wt="value not safe"}if(st<0||st>=9007199254740991){this.throwError(Wt,Logger.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:st})}if(st%1){this.throwError(Wt,Logger.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:st})}};Logger.prototype.checkArgumentCount=function(st,Wt,Ot){if(Ot){Ot=": "+Ot}else{Ot=""}if(stWt){this.throwError("too many arguments"+Ot,Logger.errors.UNEXPECTED_ARGUMENT,{count:st,expectedCount:Wt})}};Logger.prototype.checkNew=function(st,Wt){if(st===Object||st==null){this.throwError("missing new",Logger.errors.MISSING_NEW,{name:Wt.name})}};Logger.prototype.checkAbstract=function(st,Wt){if(st===Wt){this.throwError("cannot instantiate abstract class "+JSON.stringify(Wt.name)+" directly; use a sub-class",Logger.errors.UNSUPPORTED_OPERATION,{name:st.name,operation:"new"})}else if(st===Object||st==null){this.throwError("missing new",Logger.errors.MISSING_NEW,{name:Wt.name})}};Logger.globalLogger=function(){if(!rn){rn=new Logger(In.version)}return rn};Logger.setCensorship=function(st,Wt){if(!st&&Wt){this.globalLogger().throwError("cannot permanently disable censorship",Logger.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}if(en){if(!st){return}this.globalLogger().throwError("error censorship permanent",Logger.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}tn=!!st;en=!!Wt};Logger.setLogLevel=function(st){var Wt=nn[st.toLowerCase()];if(Wt==null){Logger.globalLogger().warn("invalid log level - "+st);return}an=Wt};Logger.from=function(st){return new Logger(st)};Logger.errors=sn;Logger.levels=on;return Logger}();Wt.Logger=un},66809:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.version=void 0;Wt.version="networks/5.7.1"},23044:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.getNetwork=void 0;var en=Ot(76127);var tn=Ot(66809);var nn=new en.Logger(tn.version);function isRenetworkable(st){return st&&typeof st.renetwork==="function"}function ethDefaultProvider(st){var func=function(Wt,Ot){if(Ot==null){Ot={}}var en=[];if(Wt.InfuraProvider&&Ot.infura!=="-"){try{en.push(new Wt.InfuraProvider(st,Ot.infura))}catch(st){}}if(Wt.EtherscanProvider&&Ot.etherscan!=="-"){try{en.push(new Wt.EtherscanProvider(st,Ot.etherscan))}catch(st){}}if(Wt.AlchemyProvider&&Ot.alchemy!=="-"){try{en.push(new Wt.AlchemyProvider(st,Ot.alchemy))}catch(st){}}if(Wt.PocketProvider&&Ot.pocket!=="-"){var tn=["goerli","ropsten","rinkeby","sepolia"];try{var nn=new Wt.PocketProvider(st,Ot.pocket);if(nn.network&&tn.indexOf(nn.network.name)===-1){en.push(nn)}}catch(st){}}if(Wt.CloudflareProvider&&Ot.cloudflare!=="-"){try{en.push(new Wt.CloudflareProvider(st))}catch(st){}}if(Wt.AnkrProvider&&Ot.ankr!=="-"){try{var tn=["ropsten"];var nn=new Wt.AnkrProvider(st,Ot.ankr);if(nn.network&&tn.indexOf(nn.network.name)===-1){en.push(nn)}}catch(st){}}if(en.length===0){return null}if(Wt.FallbackProvider){var an=1;if(Ot.quorum!=null){an=Ot.quorum}else if(st==="homestead"){an=2}return new Wt.FallbackProvider(en,an)}return en[0]};func.renetwork=function(st){return ethDefaultProvider(st)};return func}function etcDefaultProvider(st,Wt){var func=function(Ot,en){if(Ot.JsonRpcProvider){return new Ot.JsonRpcProvider(st,Wt)}return null};func.renetwork=function(Wt){return etcDefaultProvider(st,Wt)};return func}var an={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:ethDefaultProvider("homestead")};var In={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:ethDefaultProvider("ropsten")};var rn={chainId:63,name:"classicMordor",_defaultProvider:etcDefaultProvider("https://www.ethercluster.com/mordor","classicMordor")};var cn={unspecified:{chainId:0,name:"unspecified"},homestead:an,mainnet:an,morden:{chainId:2,name:"morden"},ropsten:In,testnet:In,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:ethDefaultProvider("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:ethDefaultProvider("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:ethDefaultProvider("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:ethDefaultProvider("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:etcDefaultProvider("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:rn,classicTestnet:rn,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:etcDefaultProvider("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:ethDefaultProvider("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:ethDefaultProvider("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function getNetwork(st){if(st==null){return null}if(typeof st==="number"){for(var Wt in cn){var Ot=cn[Wt];if(Ot.chainId===st){return{name:Ot.name,chainId:Ot.chainId,ensAddress:Ot.ensAddress||null,_defaultProvider:Ot._defaultProvider||null}}}return{chainId:st,name:"unknown"}}if(typeof st==="string"){var en=cn[st];if(en==null){return null}return{name:en.name,chainId:en.chainId,ensAddress:en.ensAddress,_defaultProvider:en._defaultProvider||null}}var tn=cn[st.name];if(!tn){if(typeof st.chainId!=="number"){nn.throwArgumentError("invalid network chainId","network",st)}return st}if(st.chainId!==0&&st.chainId!==tn.chainId){nn.throwArgumentError("network chainId mismatch","network",st)}var an=st._defaultProvider||null;if(an==null&&tn._defaultProvider){if(isRenetworkable(tn._defaultProvider)){an=tn._defaultProvider.renetwork(st)}else{an=tn._defaultProvider}}return{name:st.name,chainId:tn.chainId,ensAddress:st.ensAddress||tn.ensAddress||null,_defaultProvider:an}}Wt.getNetwork=getNetwork},15686:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.pbkdf2=void 0;var en=Ot(5565);Object.defineProperty(Wt,"pbkdf2",{enumerable:true,get:function(){return en.pbkdf2}})},5565:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.pbkdf2=void 0;var en=Ot(76982);var tn=Ot(42006);function bufferify(st){return Buffer.from((0,tn.arrayify)(st))}function pbkdf2(st,Wt,Ot,nn,an){return(0,tn.hexlify)((0,en.pbkdf2Sync)(bufferify(st),bufferify(Wt),Ot,nn,an))}Wt.pbkdf2=pbkdf2},5511:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.version=void 0;Wt.version="properties/5.7.0"},61338:function(st,Wt,Ot){"use strict";var en=this&&this.__awaiter||function(st,Wt,Ot,en){function adopt(st){return st instanceof Ot?st:new Ot((function(Wt){Wt(st)}))}return new(Ot||(Ot=Promise))((function(Ot,tn){function fulfilled(st){try{step(en.next(st))}catch(st){tn(st)}}function rejected(st){try{step(en["throw"](st))}catch(st){tn(st)}}function step(st){st.done?Ot(st.value):adopt(st.value).then(fulfilled,rejected)}step((en=en.apply(st,Wt||[])).next())}))};var tn=this&&this.__generator||function(st,Wt){var Ot={label:0,sent:function(){if(nn[0]&1)throw nn[1];return nn[1]},trys:[],ops:[]},en,tn,nn,an;return an={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(an[Symbol.iterator]=function(){return this}),an;function verb(st){return function(Wt){return step([st,Wt])}}function step(an){if(en)throw new TypeError("Generator is already executing.");while(Ot)try{if(en=1,tn&&(nn=an[0]&2?tn["return"]:an[0]?tn["throw"]||((nn=tn["return"])&&nn.call(tn),0):tn.next)&&!(nn=nn.call(tn,an[1])).done)return nn;if(tn=0,nn)an=[an[0]&2,nn.value];switch(an[0]){case 0:case 1:nn=an;break;case 4:Ot.label++;return{value:an[1],done:false};case 5:Ot.label++;tn=an[1];an=[0];continue;case 7:an=Ot.ops.pop();Ot.trys.pop();continue;default:if(!(nn=Ot.trys,nn=nn.length>0&&nn[nn.length-1])&&(an[0]===6||an[0]===2)){Ot=0;continue}if(an[0]===3&&(!nn||an[1]>nn[0]&&an[1]{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.version=void 0;Wt.version="providers/5.7.2"},45372:function(st,Wt,Ot){"use strict";var en=this&&this.__extends||function(){var extendStatics=function(st,Wt){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(st,Wt){st.__proto__=Wt}||function(st,Wt){for(var Ot in Wt)if(Object.prototype.hasOwnProperty.call(Wt,Ot))st[Ot]=Wt[Ot]};return extendStatics(st,Wt)};return function(st,Wt){if(typeof Wt!=="function"&&Wt!==null)throw new TypeError("Class extends value "+String(Wt)+" is not a constructor or null");extendStatics(st,Wt);function __(){this.constructor=st}st.prototype=Wt===null?Object.create(Wt):(__.prototype=Wt.prototype,new __)}}();Object.defineProperty(Wt,"__esModule",{value:true});Wt.AlchemyProvider=Wt.AlchemyWebSocketProvider=void 0;var tn=Ot(61338);var nn=Ot(24293);var an=Ot(35988);var In=Ot(76127);var rn=Ot(25408);var cn=new In.Logger(rn.version);var on=Ot(56717);var sn="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";var dn=function(st){en(AlchemyWebSocketProvider,st);function AlchemyWebSocketProvider(Wt,Ot){var en=this;var nn=new un(Wt,Ot);var an=nn.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi.");en=st.call(this,an,nn.network)||this;(0,tn.defineReadOnly)(en,"apiKey",nn.apiKey);return en}AlchemyWebSocketProvider.prototype.isCommunityResource=function(){return this.apiKey===sn};return AlchemyWebSocketProvider}(an.WebSocketProvider);Wt.AlchemyWebSocketProvider=dn;var un=function(st){en(AlchemyProvider,st);function AlchemyProvider(){return st!==null&&st.apply(this,arguments)||this}AlchemyProvider.getWebSocketProvider=function(st,Wt){return new dn(st,Wt)};AlchemyProvider.getApiKey=function(st){if(st==null){return sn}if(st&&typeof st!=="string"){cn.throwArgumentError("invalid apiKey","apiKey",st)}return st};AlchemyProvider.getUrl=function(st,Wt){var Ot=null;switch(st.name){case"homestead":Ot="eth-mainnet.alchemyapi.io/v2/";break;case"goerli":Ot="eth-goerli.g.alchemy.com/v2/";break;case"matic":Ot="polygon-mainnet.g.alchemy.com/v2/";break;case"maticmum":Ot="polygon-mumbai.g.alchemy.com/v2/";break;case"arbitrum":Ot="arb-mainnet.g.alchemy.com/v2/";break;case"arbitrum-goerli":Ot="arb-goerli.g.alchemy.com/v2/";break;case"optimism":Ot="opt-mainnet.g.alchemy.com/v2/";break;case"optimism-goerli":Ot="opt-goerli.g.alchemy.com/v2/";break;default:cn.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:true,url:"https:/"+"/"+Ot+Wt,throttleCallback:function(st,Ot){if(Wt===sn){(0,nn.showThrottleMessage)()}return Promise.resolve(true)}}};AlchemyProvider.prototype.isCommunityResource=function(){return this.apiKey===sn};return AlchemyProvider}(on.UrlJsonRpcProvider);Wt.AlchemyProvider=un},32319:function(st,Wt,Ot){"use strict";var en=this&&this.__extends||function(){var extendStatics=function(st,Wt){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(st,Wt){st.__proto__=Wt}||function(st,Wt){for(var Ot in Wt)if(Object.prototype.hasOwnProperty.call(Wt,Ot))st[Ot]=Wt[Ot]};return extendStatics(st,Wt)};return function(st,Wt){if(typeof Wt!=="function"&&Wt!==null)throw new TypeError("Class extends value "+String(Wt)+" is not a constructor or null");extendStatics(st,Wt);function __(){this.constructor=st}st.prototype=Wt===null?Object.create(Wt):(__.prototype=Wt.prototype,new __)}}();Object.defineProperty(Wt,"__esModule",{value:true});Wt.AnkrProvider=void 0;var tn=Ot(24293);var nn=Ot(56717);var an=Ot(76127);var In=Ot(25408);var rn=new an.Logger(In.version);var cn="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";function getHost(st){switch(st){case"homestead":return"rpc.ankr.com/eth/";case"ropsten":return"rpc.ankr.com/eth_ropsten/";case"rinkeby":return"rpc.ankr.com/eth_rinkeby/";case"goerli":return"rpc.ankr.com/eth_goerli/";case"matic":return"rpc.ankr.com/polygon/";case"arbitrum":return"rpc.ankr.com/arbitrum/"}return rn.throwArgumentError("unsupported network","name",st)}var on=function(st){en(AnkrProvider,st);function AnkrProvider(){return st!==null&&st.apply(this,arguments)||this}AnkrProvider.prototype.isCommunityResource=function(){return this.apiKey===cn};AnkrProvider.getApiKey=function(st){if(st==null){return cn}return st};AnkrProvider.getUrl=function(st,Wt){if(Wt==null){Wt=cn}var Ot={allowGzip:true,url:"https://"+getHost(st.name)+Wt,throttleCallback:function(st,Ot){if(Wt.apiKey===cn){(0,tn.showThrottleMessage)()}return Promise.resolve(true)}};if(Wt.projectSecret!=null){Ot.user="";Ot.password=Wt.projectSecret}return Ot};return AnkrProvider}(nn.UrlJsonRpcProvider);Wt.AnkrProvider=on},8090:function(st,Wt,Ot){"use strict";var en=this&&this.__extends||function(){var extendStatics=function(st,Wt){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(st,Wt){st.__proto__=Wt}||function(st,Wt){for(var Ot in Wt)if(Object.prototype.hasOwnProperty.call(Wt,Ot))st[Ot]=Wt[Ot]};return extendStatics(st,Wt)};return function(st,Wt){if(typeof Wt!=="function"&&Wt!==null)throw new TypeError("Class extends value "+String(Wt)+" is not a constructor or null");extendStatics(st,Wt);function __(){this.constructor=st}st.prototype=Wt===null?Object.create(Wt):(__.prototype=Wt.prototype,new __)}}();var tn=this&&this.__awaiter||function(st,Wt,Ot,en){function adopt(st){return st instanceof Ot?st:new Ot((function(Wt){Wt(st)}))}return new(Ot||(Ot=Promise))((function(Ot,tn){function fulfilled(st){try{step(en.next(st))}catch(st){tn(st)}}function rejected(st){try{step(en["throw"](st))}catch(st){tn(st)}}function step(st){st.done?Ot(st.value):adopt(st.value).then(fulfilled,rejected)}step((en=en.apply(st,Wt||[])).next())}))};var nn=this&&this.__generator||function(st,Wt){var Ot={label:0,sent:function(){if(nn[0]&1)throw nn[1];return nn[1]},trys:[],ops:[]},en,tn,nn,an;return an={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(an[Symbol.iterator]=function(){return this}),an;function verb(st){return function(Wt){return step([st,Wt])}}function step(an){if(en)throw new TypeError("Generator is already executing.");while(Ot)try{if(en=1,tn&&(nn=an[0]&2?tn["return"]:an[0]?tn["throw"]||((nn=tn["return"])&&nn.call(tn),0):tn.next)&&!(nn=nn.call(tn,an[1])).done)return nn;if(tn=0,nn)an=[an[0]&2,nn.value];switch(an[0]){case 0:case 1:nn=an;break;case 4:Ot.label++;return{value:an[1],done:false};case 5:Ot.label++;tn=an[1];an=[0];continue;case 7:an=Ot.ops.pop();Ot.trys.pop();continue;default:if(!(nn=Ot.trys,nn=nn.length>0&&nn[nn.length-1])&&(an[0]===6||an[0]===2)){Ot=0;continue}if(an[0]===3&&(!nn||an[1]>nn[0]&&an[1]0&&st[st.length-1]==null){st.pop()}return st.map((function(st){if(Array.isArray(st)){var Wt={};st.forEach((function(st){Wt[checkTopic(st)]=true}));var Ot=Object.keys(Wt);Ot.sort();return Ot.join("|")}else{return checkTopic(st)}})).join("&")}function deserializeTopics(st){if(st===""){return[]}return st.split(/&/g).map((function(st){if(st===""){return[]}var Wt=st.split("|").map((function(st){return st==="null"?null:st}));return Wt.length===1?Wt[0]:Wt}))}function getEventTag(st){if(typeof st==="string"){st=st.toLowerCase();if((0,sn.hexDataLength)(st)===32){return"tx:"+st}if(st.indexOf(":")===-1){return st}}else if(Array.isArray(st)){return"filter:*:"+serializeTopics(st)}else if(In.ForkEvent.isForkEvent(st)){Nn.warn("not implemented");throw new Error("not implemented")}else if(st&&typeof st==="object"){return"filter:"+(st.address||"*")+":"+serializeTopics(st.topics||[])}throw new Error("invalid event - "+st)}function getTime(){return(new Date).getTime()}function stall(st){return new Promise((function(Wt){setTimeout(Wt,st)}))}var vn=["block","network","pending","poll"];var Yn=function(){function Event(st,Wt,Ot){(0,bn.defineReadOnly)(this,"tag",st);(0,bn.defineReadOnly)(this,"listener",Wt);(0,bn.defineReadOnly)(this,"once",Ot);this._lastBlockNumber=-2;this._inflight=false}Object.defineProperty(Event.prototype,"event",{get:function(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag},enumerable:false,configurable:true});Object.defineProperty(Event.prototype,"type",{get:function(){return this.tag.split(":")[0]},enumerable:false,configurable:true});Object.defineProperty(Event.prototype,"hash",{get:function(){var st=this.tag.split(":");if(st[0]!=="tx"){return null}return st[1]},enumerable:false,configurable:true});Object.defineProperty(Event.prototype,"filter",{get:function(){var st=this.tag.split(":");if(st[0]!=="filter"){return null}var Wt=st[1];var Ot=deserializeTopics(st[2]);var en={};if(Ot.length>0){en.topics=Ot}if(Wt&&Wt!=="*"){en.address=Wt}return en},enumerable:false,configurable:true});Event.prototype.pollable=function(){return this.tag.indexOf(":")>=0||vn.indexOf(this.tag)>=0};return Event}();Wt.Event=Yn;var En={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function bytes32ify(st){return(0,sn.hexZeroPad)(on.BigNumber.from(st).toHexString(),32)}function base58Encode(st){return cn.Base58.encode((0,sn.concat)([st,(0,sn.hexDataSlice)((0,mn.sha256)((0,mn.sha256)(st)),0,4)]))}var Vn=new RegExp("^(ipfs)://(.*)$","i");var Rn=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),Vn,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function _parseString(st,Wt){try{return(0,Gn.toUtf8String)(_parseBytes(st,Wt))}catch(st){}return null}function _parseBytes(st,Wt){if(st==="0x"){return null}var Ot=on.BigNumber.from((0,sn.hexDataSlice)(st,Wt,Wt+32)).toNumber();var en=on.BigNumber.from((0,sn.hexDataSlice)(st,Ot,Ot+32)).toNumber();return(0,sn.hexDataSlice)(st,Ot+32,Ot+32+en)}function getIpfsLink(st){if(st.match(/^ipfs:\/\/ipfs\//i)){st=st.substring(12)}else if(st.match(/^ipfs:\/\//i)){st=st.substring(7)}else{Nn.throwArgumentError("unsupported IPFS format","link",st)}return"https://gateway.ipfs.io/ipfs/"+st}function numPad(st){var Wt=(0,sn.arrayify)(st);if(Wt.length>32){throw new Error("internal; should not happen")}var Ot=new Uint8Array(32);Ot.set(Wt,32-Wt.length);return Ot}function bytesPad(st){if(st.length%32===0){return st}var Wt=new Uint8Array(Math.ceil(st.length/32)*32);Wt.set(st);return Wt}function encodeBytes(st){var Wt=[];var Ot=0;for(var en=0;en=1&&nn<=75){return base58Encode((0,sn.concat)([[Ot.p2pkh],"0x"+tn[2]]))}}}if(Ot.p2sh!=null){var an=Wt.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(an){var In=parseInt(an[1],16);if(an[2].length===In*2&&In>=1&&In<=75){return base58Encode((0,sn.concat)([[Ot.p2sh],"0x"+an[2]]))}}}if(Ot.prefix!=null){var rn=en[1];var cn=en[0];if(cn===0){if(rn!==20&&rn!==32){cn=-1}}else{cn=-1}if(cn>=0&&en.length===2+rn&&rn>=1&&rn<=75){var on=Zn.default.toWords(en.slice(2));on.unshift(cn);return Zn.default.encode(Ot.prefix,on)}}return null};Resolver.prototype.getAddress=function(st){return tn(this,void 0,void 0,(function(){var Wt,Ot,en,tn;return nn(this,(function(nn){switch(nn.label){case 0:if(st==null){st=60}if(!(st===60))return[3,4];nn.label=1;case 1:nn.trys.push([1,3,,4]);return[4,this._fetch("0x3b3b57de")];case 2:Wt=nn.sent();if(Wt==="0x"||Wt===dn.HashZero){return[2,null]}return[2,this.provider.formatter.callAddress(Wt)];case 3:Ot=nn.sent();if(Ot.code===An.Logger.errors.CALL_EXCEPTION){return[2,null]}throw Ot;case 4:return[4,this._fetchBytes("0xf1cb7e06",bytes32ify(st))];case 5:en=nn.sent();if(en==null||en==="0x"){return[2,null]}tn=this._getAddress(st,en);if(tn==null){Nn.throwError("invalid or unsupported coin data",An.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress("+st+")",coinType:st,data:en})}return[2,tn]}}))}))};Resolver.prototype.getAvatar=function(){return tn(this,void 0,void 0,(function(){var st,Wt,Ot,en,tn,an,In,rn,cn,dn,un,pn,bn,mn,Gn,Zn,An,Wn,Nn,gn,yn,vn,Yn,En,wn;return nn(this,(function(nn){switch(nn.label){case 0:st=[{type:"name",content:this.name}];nn.label=1;case 1:nn.trys.push([1,19,,20]);return[4,this.getText("avatar")];case 2:Wt=nn.sent();if(Wt==null){return[2,null]}Ot=0;nn.label=3;case 3:if(!(Ot=0?null:JSON.stringify({data:tn,sender:en});return[4,(0,hn.fetchJson)({url:cn,errorPassThrough:true},on,(function(st,Wt){st.status=Wt.statusCode;return st}))];case 2:sn=nn.sent();if(sn.data){return[2,sn.data]}dn=sn.message||"unknown error";if(sn.status>=400&&sn.status<500){return[2,Nn.throwError("response not found during CCIP fetch: "+dn,An.Logger.errors.SERVER_ERROR,{url:rn,errorMessage:dn})]}an.push(dn);nn.label=3;case 3:In++;return[3,1];case 4:return[2,Nn.throwError("error encountered during CCIP fetch: "+an.map((function(st){return JSON.stringify(st)})).join(", "),An.Logger.errors.SERVER_ERROR,{urls:Ot,errorMessages:an})]}}))}))};BaseProvider.prototype._getInternalBlockNumber=function(st){return tn(this,void 0,void 0,(function(){var Wt,Ot,en,tn,an;var In=this;return nn(this,(function(nn){switch(nn.label){case 0:return[4,this._ready()];case 1:nn.sent();if(!(st>0))return[3,7];nn.label=2;case 2:if(!this._internalBlockNumber)return[3,7];Wt=this._internalBlockNumber;nn.label=3;case 3:nn.trys.push([3,5,,6]);return[4,Wt];case 4:Ot=nn.sent();if(getTime()-Ot.respTime<=st){return[2,Ot.blockNumber]}return[3,7];case 5:en=nn.sent();if(this._internalBlockNumber===Wt){return[3,7]}return[3,6];case 6:return[3,2];case 7:tn=getTime();an=(0,bn.resolveProperties)({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then((function(st){return null}),(function(st){return st}))}).then((function(st){var Wt=st.blockNumber,Ot=st.networkError;if(Ot){if(In._internalBlockNumber===an){In._internalBlockNumber=null}throw Ot}var en=getTime();Wt=on.BigNumber.from(Wt).toNumber();if(Wt1e3){Nn.warn("network block skew detected; skipping block events (emitted="+this._emitted.block+" blockNumber"+Ot+")");this.emit("error",Nn.makeError("network block skew detected",An.Logger.errors.NETWORK_ERROR,{blockNumber:Ot,event:"blockSkew",previousBlockNumber:this._emitted.block}));this.emit("block",Ot)}else{for(tn=this._emitted.block+1;tn<=Ot;tn++){this.emit("block",tn)}}if(this._emitted.block!==Ot){this._emitted.block=Ot;Object.keys(this._emitted).forEach((function(st){if(st==="block"){return}var Wt=an._emitted[st];if(Wt==="pending"){return}if(Ot-Wt>12){delete an._emitted[st]}}))}if(this._lastBlockNumber===-2){this._lastBlockNumber=Ot-1}this._events.forEach((function(st){switch(st.type){case"tx":{var en=st.hash;var tn=an.getTransactionReceipt(en).then((function(st){if(!st||st.blockNumber==null){return null}an._emitted["t:"+en]=st.blockNumber;an.emit(en,st);return null})).catch((function(st){an.emit("error",st)}));Wt.push(tn);break}case"filter":{if(!st._inflight){st._inflight=true;if(st._lastBlockNumber===-2){st._lastBlockNumber=Ot-1}var nn=st.filter;nn.fromBlock=st._lastBlockNumber+1;nn.toBlock=Ot;var In=nn.toBlock-an._maxFilterBlockRange;if(In>nn.fromBlock){nn.fromBlock=In}if(nn.fromBlock<0){nn.fromBlock=0}var tn=an.getLogs(nn).then((function(Wt){st._inflight=false;if(Wt.length===0){return}Wt.forEach((function(Wt){if(Wt.blockNumber>st._lastBlockNumber){st._lastBlockNumber=Wt.blockNumber}an._emitted["b:"+Wt.blockHash]=Wt.blockNumber;an._emitted["t:"+Wt.transactionHash]=Wt.blockNumber;an.emit(nn,Wt)}))})).catch((function(Wt){an.emit("error",Wt);st._inflight=false}));Wt.push(tn)}break}}}));this._lastBlockNumber=Ot;Promise.all(Wt).then((function(){an.emit("didPoll",st)})).catch((function(st){an.emit("error",st)}));return[2]}}))}))};BaseProvider.prototype.resetEventsBlock=function(st){this._lastBlockNumber=st-1;if(this.polling){this.poll()}};Object.defineProperty(BaseProvider.prototype,"network",{get:function(){return this._network},enumerable:false,configurable:true});BaseProvider.prototype.detectNetwork=function(){return tn(this,void 0,void 0,(function(){return nn(this,(function(st){return[2,Nn.throwError("provider does not support network detection",An.Logger.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})]}))}))};BaseProvider.prototype.getNetwork=function(){return tn(this,void 0,void 0,(function(){var st,Wt,Ot;return nn(this,(function(en){switch(en.label){case 0:return[4,this._ready()];case 1:st=en.sent();return[4,this.detectNetwork()];case 2:Wt=en.sent();if(!(st.chainId!==Wt.chainId))return[3,5];if(!this.anyNetwork)return[3,4];this._network=Wt;this._lastBlockNumber=-2;this._fastBlockNumber=null;this._fastBlockNumberPromise=null;this._fastQueryDate=0;this._emitted.block=-2;this._maxInternalBlockNumber=-1024;this._internalBlockNumber=null;this.emit("network",Wt,st);return[4,stall(0)];case 3:en.sent();return[2,this._network];case 4:Ot=Nn.makeError("underlying network changed",An.Logger.errors.NETWORK_ERROR,{event:"changed",network:st,detectedNetwork:Wt});this.emit("error",Ot);throw Ot;case 5:return[2,st]}}))}))};Object.defineProperty(BaseProvider.prototype,"blockNumber",{get:function(){var st=this;this._getInternalBlockNumber(100+this.pollingInterval/2).then((function(Wt){st._setFastBlockNumber(Wt)}),(function(st){}));return this._fastBlockNumber!=null?this._fastBlockNumber:-1},enumerable:false,configurable:true});Object.defineProperty(BaseProvider.prototype,"polling",{get:function(){return this._poller!=null},set:function(st){var Wt=this;if(st&&!this._poller){this._poller=setInterval((function(){Wt.poll()}),this.pollingInterval);if(!this._bootstrapPoll){this._bootstrapPoll=setTimeout((function(){Wt.poll();Wt._bootstrapPoll=setTimeout((function(){if(!Wt._poller){Wt.poll()}Wt._bootstrapPoll=null}),Wt.pollingInterval)}),0)}}else if(!st&&this._poller){clearInterval(this._poller);this._poller=null}},enumerable:false,configurable:true});Object.defineProperty(BaseProvider.prototype,"pollingInterval",{get:function(){return this._pollingInterval},set:function(st){var Wt=this;if(typeof st!=="number"||st<=0||parseInt(String(st))!=st){throw new Error("invalid polling interval")}this._pollingInterval=st;if(this._poller){clearInterval(this._poller);this._poller=setInterval((function(){Wt.poll()}),this._pollingInterval)}},enumerable:false,configurable:true});BaseProvider.prototype._getFastBlockNumber=function(){var st=this;var Wt=getTime();if(Wt-this._fastQueryDate>2*this._pollingInterval){this._fastQueryDate=Wt;this._fastBlockNumberPromise=this.getBlockNumber().then((function(Wt){if(st._fastBlockNumber==null||Wt>st._fastBlockNumber){st._fastBlockNumber=Wt}return st._fastBlockNumber}))}return this._fastBlockNumberPromise};BaseProvider.prototype._setFastBlockNumber=function(st){if(this._fastBlockNumber!=null&&stthis._fastBlockNumber){this._fastBlockNumber=st;this._fastBlockNumberPromise=Promise.resolve(st)}};BaseProvider.prototype.waitForTransaction=function(st,Wt,Ot){return tn(this,void 0,void 0,(function(){return nn(this,(function(en){return[2,this._waitForTransaction(st,Wt==null?1:Wt,Ot||0,null)]}))}))};BaseProvider.prototype._waitForTransaction=function(st,Wt,Ot,en){return tn(this,void 0,void 0,(function(){var an;var In=this;return nn(this,(function(rn){switch(rn.label){case 0:return[4,this.getTransactionReceipt(st)];case 1:an=rn.sent();if((an?an.confirmations:0)>=Wt){return[2,an]}return[2,new Promise((function(an,rn){var cn=[];var on=false;var alreadyDone=function(){if(on){return true}on=true;cn.forEach((function(st){st()}));return false};var minedHandler=function(st){if(st.confirmations0){var un=setTimeout((function(){if(alreadyDone()){return}rn(Nn.makeError("timeout exceeded",An.Logger.errors.TIMEOUT,{timeout:Ot}))}),Ot);if(un.unref){un.unref()}cn.push((function(){clearTimeout(un)}))}}))]}}))}))};BaseProvider.prototype.getBlockNumber=function(){return tn(this,void 0,void 0,(function(){return nn(this,(function(st){return[2,this._getInternalBlockNumber(0)]}))}))};BaseProvider.prototype.getGasPrice=function(){return tn(this,void 0,void 0,(function(){var st;return nn(this,(function(Wt){switch(Wt.label){case 0:return[4,this.getNetwork()];case 1:Wt.sent();return[4,this.perform("getGasPrice",{})];case 2:st=Wt.sent();try{return[2,on.BigNumber.from(st)]}catch(Wt){return[2,Nn.throwError("bad result from backend",An.Logger.errors.SERVER_ERROR,{method:"getGasPrice",result:st,error:Wt})]}return[2]}}))}))};BaseProvider.prototype.getBalance=function(st,Wt){return tn(this,void 0,void 0,(function(){var Ot,en;return nn(this,(function(tn){switch(tn.label){case 0:return[4,this.getNetwork()];case 1:tn.sent();return[4,(0,bn.resolveProperties)({address:this._getAddress(st),blockTag:this._getBlockTag(Wt)})];case 2:Ot=tn.sent();return[4,this.perform("getBalance",Ot)];case 3:en=tn.sent();try{return[2,on.BigNumber.from(en)]}catch(st){return[2,Nn.throwError("bad result from backend",An.Logger.errors.SERVER_ERROR,{method:"getBalance",params:Ot,result:en,error:st})]}return[2]}}))}))};BaseProvider.prototype.getTransactionCount=function(st,Wt){return tn(this,void 0,void 0,(function(){var Ot,en;return nn(this,(function(tn){switch(tn.label){case 0:return[4,this.getNetwork()];case 1:tn.sent();return[4,(0,bn.resolveProperties)({address:this._getAddress(st),blockTag:this._getBlockTag(Wt)})];case 2:Ot=tn.sent();return[4,this.perform("getTransactionCount",Ot)];case 3:en=tn.sent();try{return[2,on.BigNumber.from(en).toNumber()]}catch(st){return[2,Nn.throwError("bad result from backend",An.Logger.errors.SERVER_ERROR,{method:"getTransactionCount",params:Ot,result:en,error:st})]}return[2]}}))}))};BaseProvider.prototype.getCode=function(st,Wt){return tn(this,void 0,void 0,(function(){var Ot,en;return nn(this,(function(tn){switch(tn.label){case 0:return[4,this.getNetwork()];case 1:tn.sent();return[4,(0,bn.resolveProperties)({address:this._getAddress(st),blockTag:this._getBlockTag(Wt)})];case 2:Ot=tn.sent();return[4,this.perform("getCode",Ot)];case 3:en=tn.sent();try{return[2,(0,sn.hexlify)(en)]}catch(st){return[2,Nn.throwError("bad result from backend",An.Logger.errors.SERVER_ERROR,{method:"getCode",params:Ot,result:en,error:st})]}return[2]}}))}))};BaseProvider.prototype.getStorageAt=function(st,Wt,Ot){return tn(this,void 0,void 0,(function(){var en,tn;return nn(this,(function(nn){switch(nn.label){case 0:return[4,this.getNetwork()];case 1:nn.sent();return[4,(0,bn.resolveProperties)({address:this._getAddress(st),blockTag:this._getBlockTag(Ot),position:Promise.resolve(Wt).then((function(st){return(0,sn.hexValue)(st)}))})];case 2:en=nn.sent();return[4,this.perform("getStorageAt",en)];case 3:tn=nn.sent();try{return[2,(0,sn.hexlify)(tn)]}catch(st){return[2,Nn.throwError("bad result from backend",An.Logger.errors.SERVER_ERROR,{method:"getStorageAt",params:en,result:tn,error:st})]}return[2]}}))}))};BaseProvider.prototype._wrapTransaction=function(st,Wt,Ot){var en=this;if(Wt!=null&&(0,sn.hexDataLength)(Wt)!==32){throw new Error("invalid response - sendTransaction")}var an=st;if(Wt!=null&&st.hash!==Wt){Nn.throwError("Transaction hash mismatch from Provider.sendTransaction.",An.Logger.errors.UNKNOWN_ERROR,{expectedHash:st.hash,returnedHash:Wt})}an.wait=function(Wt,an){return tn(en,void 0,void 0,(function(){var en,tn;return nn(this,(function(nn){switch(nn.label){case 0:if(Wt==null){Wt=1}if(an==null){an=0}en=undefined;if(Wt!==0&&Ot!=null){en={data:st.data,from:st.from,nonce:st.nonce,to:st.to,value:st.value,startBlock:Ot}}return[4,this._waitForTransaction(st.hash,Wt,an,en)];case 1:tn=nn.sent();if(tn==null&&Wt===0){return[2,null]}this._emitted["t:"+st.hash]=tn.blockNumber;if(tn.status===0){Nn.throwError("transaction failed",An.Logger.errors.CALL_EXCEPTION,{transactionHash:st.hash,transaction:st,receipt:tn})}return[2,tn]}}))}))};return an};BaseProvider.prototype.sendTransaction=function(st){return tn(this,void 0,void 0,(function(){var Wt,Ot,en,tn,an;return nn(this,(function(nn){switch(nn.label){case 0:return[4,this.getNetwork()];case 1:nn.sent();return[4,Promise.resolve(st).then((function(st){return(0,sn.hexlify)(st)}))];case 2:Wt=nn.sent();Ot=this.formatter.transaction(st);if(Ot.confirmations==null){Ot.confirmations=0}return[4,this._getInternalBlockNumber(100+2*this.pollingInterval)];case 3:en=nn.sent();nn.label=4;case 4:nn.trys.push([4,6,,7]);return[4,this.perform("sendTransaction",{signedTransaction:Wt})];case 5:tn=nn.sent();return[2,this._wrapTransaction(Ot,tn,en)];case 6:an=nn.sent();an.transaction=Ot;an.transactionHash=Ot.hash;throw an;case 7:return[2]}}))}))};BaseProvider.prototype._getTransactionRequest=function(st){return tn(this,void 0,void 0,(function(){var Wt,Ot,en,tn;var an=this;return nn(this,(function(nn){switch(nn.label){case 0:return[4,st];case 1:Wt=nn.sent();Ot={};["from","to"].forEach((function(st){if(Wt[st]==null){return}Ot[st]=Promise.resolve(Wt[st]).then((function(st){return st?an._getAddress(st):null}))}));["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach((function(st){if(Wt[st]==null){return}Ot[st]=Promise.resolve(Wt[st]).then((function(st){return st?on.BigNumber.from(st):null}))}));["type"].forEach((function(st){if(Wt[st]==null){return}Ot[st]=Promise.resolve(Wt[st]).then((function(st){return st!=null?st:null}))}));if(Wt.accessList){Ot.accessList=this.formatter.accessList(Wt.accessList)}["data"].forEach((function(st){if(Wt[st]==null){return}Ot[st]=Promise.resolve(Wt[st]).then((function(st){return st?(0,sn.hexlify)(st):null}))}));tn=(en=this.formatter).transactionRequest;return[4,(0,bn.resolveProperties)(Ot)];case 2:return[2,tn.apply(en,[nn.sent()])]}}))}))};BaseProvider.prototype._getFilter=function(st){return tn(this,void 0,void 0,(function(){var Wt,Ot,en;var tn=this;return nn(this,(function(nn){switch(nn.label){case 0:return[4,st];case 1:st=nn.sent();Wt={};if(st.address!=null){Wt.address=this._getAddress(st.address)}["blockHash","topics"].forEach((function(Ot){if(st[Ot]==null){return}Wt[Ot]=st[Ot]}));["fromBlock","toBlock"].forEach((function(Ot){if(st[Ot]==null){return}Wt[Ot]=tn._getBlockTag(st[Ot])}));en=(Ot=this.formatter).filter;return[4,(0,bn.resolveProperties)(Wt)];case 2:return[2,en.apply(Ot,[nn.sent()])]}}))}))};BaseProvider.prototype._call=function(st,Wt,Ot){return tn(this,void 0,void 0,(function(){var en,tn,an,In,rn,cn,dn,un,pn,bn,mn,Gn,hn,Zn,Wn,gn;return nn(this,(function(nn){switch(nn.label){case 0:if(Ot>=yn){Nn.throwError("CCIP read exceeded maximum redirections",An.Logger.errors.SERVER_ERROR,{redirects:Ot,transaction:st})}en=st.to;return[4,this.perform("call",{transaction:st,blockTag:Wt})];case 1:tn=nn.sent();if(!(Ot>=0&&Wt==="latest"&&en!=null&&tn.substring(0,10)==="0x556f1830"&&(0,sn.hexDataLength)(tn)%32===4))return[3,5];nn.label=2;case 2:nn.trys.push([2,4,,5]);an=(0,sn.hexDataSlice)(tn,4);In=(0,sn.hexDataSlice)(an,0,32);if(!on.BigNumber.from(In).eq(en)){Nn.throwError("CCIP Read sender did not match",An.Logger.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:st,data:tn})}rn=[];cn=on.BigNumber.from((0,sn.hexDataSlice)(an,32,64)).toNumber();dn=on.BigNumber.from((0,sn.hexDataSlice)(an,cn,cn+32)).toNumber();un=(0,sn.hexDataSlice)(an,cn+32);for(pn=0;pnthis._emitted.block){return[2,null]}}return[2,undefined]}if(!Wt)return[3,8];tn=null;an=0;nn.label=2;case 2:if(!(an0};BaseProvider.prototype._stopEvent=function(st){this.polling=this._events.filter((function(st){return st.pollable()})).length>0};BaseProvider.prototype._addEventListener=function(st,Wt,Ot){var en=new Yn(getEventTag(st),Wt,Ot);this._events.push(en);this._startEvent(en);return this};BaseProvider.prototype.on=function(st,Wt){return this._addEventListener(st,Wt,false)};BaseProvider.prototype.once=function(st,Wt){return this._addEventListener(st,Wt,true)};BaseProvider.prototype.emit=function(st){var Wt=this;var Ot=[];for(var en=1;en0&&nn[nn.length-1])&&(an[0]===6||an[0]===2)){Ot=0;continue}if(an[0]===3&&(!nn||an[1]>nn[0]&&an[1]0&&nn[nn.length-1])&&(an[0]===6||an[0]===2)){Ot=0;continue}if(an[0]===3&&(!nn||an[1]>nn[0]&&an[1]=0){Wt.throttleRetry=true}throw Wt}return st.result}function getJsonResult(st){if(st&&st.status==0&&st.message=="NOTOK"&&(st.result||"").toLowerCase().indexOf("rate limit")>=0){var Wt=new Error("throttled response");Wt.result=JSON.stringify(st);Wt.throttleRetry=true;throw Wt}if(st.jsonrpc!="2.0"){var Wt=new Error("invalid response");Wt.result=JSON.stringify(st);throw Wt}if(st.error){var Wt=new Error(st.error.message||"unknown error");if(st.error.code){Wt.code=st.error.code}if(st.error.data){Wt.data=st.error.data}throw Wt}return st.result}function checkLogTag(st){if(st==="pending"){throw new Error("pending not supported")}if(st==="latest"){return st}return parseInt(st.substring(2),16)}function checkError(st,Wt,Ot){if(st==="call"&&Wt.code===sn.Logger.errors.SERVER_ERROR){var en=Wt.error;if(en&&(en.message.match(/reverted/i)||en.message.match(/VM execution error/i))){var tn=en.data;if(tn){tn="0x"+tn.replace(/^.*0x/i,"")}if((0,an.isHexString)(tn)){return tn}un.throwError("missing revert data in call exception",sn.Logger.errors.CALL_EXCEPTION,{error:Wt,data:"0x"})}}var nn=Wt.message;if(Wt.code===sn.Logger.errors.SERVER_ERROR){if(Wt.error&&typeof Wt.error.message==="string"){nn=Wt.error.message}else if(typeof Wt.body==="string"){nn=Wt.body}else if(typeof Wt.responseText==="string"){nn=Wt.responseText}}nn=(nn||"").toLowerCase();if(nn.match(/insufficient funds/)){un.throwError("insufficient funds for intrinsic transaction cost",sn.Logger.errors.INSUFFICIENT_FUNDS,{error:Wt,method:st,transaction:Ot})}if(nn.match(/same hash was already imported|transaction nonce is too low|nonce too low/)){un.throwError("nonce has already been used",sn.Logger.errors.NONCE_EXPIRED,{error:Wt,method:st,transaction:Ot})}if(nn.match(/another transaction with same nonce/)){un.throwError("replacement fee too low",sn.Logger.errors.REPLACEMENT_UNDERPRICED,{error:Wt,method:st,transaction:Ot})}if(nn.match(/execution failed due to an exception|execution reverted/)){un.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",sn.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:Wt,method:st,transaction:Ot})}throw Wt}var bn=function(st){en(EtherscanProvider,st);function EtherscanProvider(Wt,Ot){var en=st.call(this,Wt)||this;(0,In.defineReadOnly)(en,"baseUrl",en.getBaseUrl());(0,In.defineReadOnly)(en,"apiKey",Ot||null);return en}EtherscanProvider.prototype.getBaseUrl=function(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"matic":return"https://api.polygonscan.com";case"maticmum":return"https://api-testnet.polygonscan.com";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io";default:}return un.throwArgumentError("unsupported network","network",this.network.name)};EtherscanProvider.prototype.getUrl=function(st,Wt){var Ot=Object.keys(Wt).reduce((function(st,Ot){var en=Wt[Ot];if(en!=null){st+="&"+Ot+"="+en}return st}),"");var en=this.apiKey?"&apikey="+this.apiKey:"";return this.baseUrl+"/api?module="+st+Ot+en};EtherscanProvider.prototype.getPostUrl=function(){return this.baseUrl+"/api"};EtherscanProvider.prototype.getPostData=function(st,Wt){Wt.module=st;Wt.apikey=this.apiKey;return Wt};EtherscanProvider.prototype.fetch=function(st,Wt,Ot){return tn(this,void 0,void 0,(function(){var en,tn,an,rn,sn,dn;var un=this;return nn(this,(function(nn){switch(nn.label){case 0:en=Ot?this.getPostUrl():this.getUrl(st,Wt);tn=Ot?this.getPostData(st,Wt):null;an=st==="proxy"?getJsonResult:getResult;this.emit("debug",{action:"request",request:en,provider:this});rn={url:en,throttleSlotInterval:1e3,throttleCallback:function(st,Wt){if(un.isCommunityResource()){(0,on.showThrottleMessage)()}return Promise.resolve(true)}};sn=null;if(tn){rn.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"};sn=Object.keys(tn).map((function(st){return st+"="+tn[st]})).join("&")}return[4,(0,cn.fetchJson)(rn,sn,an||getJsonResult)];case 1:dn=nn.sent();this.emit("debug",{action:"response",request:en,response:(0,In.deepCopy)(dn),provider:this});return[2,dn]}}))}))};EtherscanProvider.prototype.detectNetwork=function(){return tn(this,void 0,void 0,(function(){return nn(this,(function(st){return[2,this.network]}))}))};EtherscanProvider.prototype.perform=function(Wt,Ot){return tn(this,void 0,void 0,(function(){var en,tn,an,tn,In,rn,cn,on,dn,pn,bn,mn,Gn;return nn(this,(function(nn){switch(nn.label){case 0:en=Wt;switch(en){case"getBlockNumber":return[3,1];case"getGasPrice":return[3,2];case"getBalance":return[3,3];case"getTransactionCount":return[3,4];case"getCode":return[3,5];case"getStorageAt":return[3,6];case"sendTransaction":return[3,7];case"getBlock":return[3,8];case"getTransaction":return[3,9];case"getTransactionReceipt":return[3,10];case"call":return[3,11];case"estimateGas":return[3,15];case"getLogs":return[3,19];case"getEtherPrice":return[3,26]}return[3,28];case 1:return[2,this.fetch("proxy",{action:"eth_blockNumber"})];case 2:return[2,this.fetch("proxy",{action:"eth_gasPrice"})];case 3:return[2,this.fetch("account",{action:"balance",address:Ot.address,tag:Ot.blockTag})];case 4:return[2,this.fetch("proxy",{action:"eth_getTransactionCount",address:Ot.address,tag:Ot.blockTag})];case 5:return[2,this.fetch("proxy",{action:"eth_getCode",address:Ot.address,tag:Ot.blockTag})];case 6:return[2,this.fetch("proxy",{action:"eth_getStorageAt",address:Ot.address,position:Ot.position,tag:Ot.blockTag})];case 7:return[2,this.fetch("proxy",{action:"eth_sendRawTransaction",hex:Ot.signedTransaction},true).catch((function(st){return checkError("sendTransaction",st,Ot.signedTransaction)}))];case 8:if(Ot.blockTag){return[2,this.fetch("proxy",{action:"eth_getBlockByNumber",tag:Ot.blockTag,boolean:Ot.includeTransactions?"true":"false"})]}throw new Error("getBlock by blockHash not implemented");case 9:return[2,this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:Ot.transactionHash})];case 10:return[2,this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:Ot.transactionHash})];case 11:if(Ot.blockTag!=="latest"){throw new Error("EtherscanProvider does not support blockTag for call")}tn=getTransactionPostData(Ot.transaction);tn.module="proxy";tn.action="eth_call";nn.label=12;case 12:nn.trys.push([12,14,,15]);return[4,this.fetch("proxy",tn,true)];case 13:return[2,nn.sent()];case 14:an=nn.sent();return[2,checkError("call",an,Ot.transaction)];case 15:tn=getTransactionPostData(Ot.transaction);tn.module="proxy";tn.action="eth_estimateGas";nn.label=16;case 16:nn.trys.push([16,18,,19]);return[4,this.fetch("proxy",tn,true)];case 17:return[2,nn.sent()];case 18:In=nn.sent();return[2,checkError("estimateGas",In,Ot.transaction)];case 19:rn={action:"getLogs"};if(Ot.filter.fromBlock){rn.fromBlock=checkLogTag(Ot.filter.fromBlock)}if(Ot.filter.toBlock){rn.toBlock=checkLogTag(Ot.filter.toBlock)}if(Ot.filter.address){rn.address=Ot.filter.address}if(Ot.filter.topics&&Ot.filter.topics.length>0){if(Ot.filter.topics.length>1){un.throwError("unsupported topic count",sn.Logger.errors.UNSUPPORTED_OPERATION,{topics:Ot.filter.topics})}if(Ot.filter.topics.length===1){cn=Ot.filter.topics[0];if(typeof cn!=="string"||cn.length!==66){un.throwError("unsupported topic format",sn.Logger.errors.UNSUPPORTED_OPERATION,{topic0:cn})}rn.topic0=cn}}return[4,this.fetch("logs",rn)];case 20:on=nn.sent();dn={};pn=0;nn.label=21;case 21:if(!(pn0&&nn[nn.length-1])&&(an[0]===6||an[0]===2)){Ot=0;continue}if(an[0]===3&&(!nn||an[1]>nn[0]&&an[1]Wt){return null}return(en+tn)/2}function serialize(st){if(st===null){return"null"}else if(typeof st==="number"||typeof st==="boolean"){return JSON.stringify(st)}else if(typeof st==="string"){return st}else if(In.BigNumber.isBigNumber(st)){return st.toString()}else if(Array.isArray(st)){return JSON.stringify(st.map((function(st){return serialize(st)})))}else if(typeof st==="object"){var Wt=Object.keys(st);Wt.sort();return"{"+Wt.map((function(Wt){var Ot=st[Wt];if(typeof Ot==="function"){Ot="[function]"}else{Ot=serialize(Ot)}return JSON.stringify(Wt)+":"+Ot})).join(",")+"}"}throw new Error("unknown value type: "+typeof st)}var Gn=1;function stall(st){var Wt=null;var Ot=null;var en=new Promise((function(en){Wt=function(){if(Ot){clearTimeout(Ot);Ot=null}en()};Ot=setTimeout(Wt,st)}));var wait=function(st){en=en.then(st);return en};function getPromise(){return en}return{cancel:Wt,getPromise:getPromise,wait:wait}}var hn=[pn.Logger.errors.CALL_EXCEPTION,pn.Logger.errors.INSUFFICIENT_FUNDS,pn.Logger.errors.NONCE_EXPIRED,pn.Logger.errors.REPLACEMENT_UNDERPRICED,pn.Logger.errors.UNPREDICTABLE_GAS_LIMIT];var Zn=["address","args","errorArgs","errorSignature","method","transaction"];function exposeDebugConfig(st,Wt){var Ot={weight:st.weight};Object.defineProperty(Ot,"provider",{get:function(){return st.provider}});if(st.start){Ot.start=st.start}if(Wt){Ot.duration=Wt-st.start}if(st.done){if(st.error){Ot.error=st.error}else{Ot.result=st.result||null}}return Ot}function normalizedTally(st,Wt){return function(Ot){var en={};Ot.forEach((function(Wt){var Ot=st(Wt.result);if(!en[Ot]){en[Ot]={count:0,result:Wt.result}}en[Ot].count++}));var tn=Object.keys(en);for(var nn=0;nn=Wt){return an.result}}return undefined}}function getProcessFunc(st,Wt,Ot){var en=serialize;switch(Wt){case"getBlockNumber":return function(Wt){var Ot=Wt.map((function(st){return st.result}));var en=median(Wt.map((function(st){return st.result})),2);if(en==null){return undefined}en=Math.ceil(en);if(Ot.indexOf(en+1)>=0){en++}if(en>=st._highestBlockNumber){st._highestBlockNumber=en}return st._highestBlockNumber};case"getGasPrice":return function(st){var Wt=st.map((function(st){return st.result}));Wt.sort();return Wt[Math.floor(Wt.length/2)]};case"getEtherPrice":return function(st){return median(st.map((function(st){return st.result})))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":en=function(st){if(st==null){return null}st=(0,cn.shallowCopy)(st);st.confirmations=-1;return serialize(st)};break;case"getBlock":if(Ot.includeTransactions){en=function(st){if(st==null){return null}st=(0,cn.shallowCopy)(st);st.transactions=st.transactions.map((function(st){st=(0,cn.shallowCopy)(st);st.confirmations=-1;return st}));return serialize(st)}}else{en=function(st){if(st==null){return null}return serialize(st)}}break;default:throw new Error("unknown method: "+Wt)}return normalizedTally(en,st.quorum)}function waitForSync(st,Wt){return tn(this,void 0,void 0,(function(){var Ot;return nn(this,(function(en){Ot=st.provider;if(Ot.blockNumber!=null&&Ot.blockNumber>=Wt||Wt===-1){return[2,Ot]}return[2,(0,sn.poll)((function(){return new Promise((function(en,tn){setTimeout((function(){if(Ot.blockNumber>=Wt){return en(Ot)}if(st.cancelled){return en(null)}return en(undefined)}),0)}))}),{oncePoll:Ot})]}))}))}function getRunner(st,Wt,Ot,en){return tn(this,void 0,void 0,(function(){var tn,an,In;return nn(this,(function(nn){switch(nn.label){case 0:tn=st.provider;an=Ot;switch(an){case"getBlockNumber":return[3,1];case"getGasPrice":return[3,1];case"getEtherPrice":return[3,2];case"getBalance":return[3,3];case"getTransactionCount":return[3,3];case"getCode":return[3,3];case"getStorageAt":return[3,6];case"getBlock":return[3,9];case"call":return[3,12];case"estimateGas":return[3,12];case"getTransaction":return[3,15];case"getTransactionReceipt":return[3,15];case"getLogs":return[3,16]}return[3,19];case 1:return[2,tn[Ot]()];case 2:if(tn.getEtherPrice){return[2,tn.getEtherPrice()]}return[3,19];case 3:if(!(en.blockTag&&(0,rn.isHexString)(en.blockTag)))return[3,5];return[4,waitForSync(st,Wt)];case 4:tn=nn.sent();nn.label=5;case 5:return[2,tn[Ot](en.address,en.blockTag||"latest")];case 6:if(!(en.blockTag&&(0,rn.isHexString)(en.blockTag)))return[3,8];return[4,waitForSync(st,Wt)];case 7:tn=nn.sent();nn.label=8;case 8:return[2,tn.getStorageAt(en.address,en.position,en.blockTag||"latest")];case 9:if(!(en.blockTag&&(0,rn.isHexString)(en.blockTag)))return[3,11];return[4,waitForSync(st,Wt)];case 10:tn=nn.sent();nn.label=11;case 11:return[2,tn[en.includeTransactions?"getBlockWithTransactions":"getBlock"](en.blockTag||en.blockHash)];case 12:if(!(en.blockTag&&(0,rn.isHexString)(en.blockTag)))return[3,14];return[4,waitForSync(st,Wt)];case 13:tn=nn.sent();nn.label=14;case 14:if(Ot==="call"&&en.blockTag){return[2,tn[Ot](en.transaction,en.blockTag)]}return[2,tn[Ot](en.transaction)];case 15:return[2,tn[Ot](en.transactionHash)];case 16:In=en.filter;if(!(In.fromBlock&&(0,rn.isHexString)(In.fromBlock)||In.toBlock&&(0,rn.isHexString)(In.toBlock)))return[3,18];return[4,waitForSync(st,Wt)];case 17:tn=nn.sent();nn.label=18;case 18:return[2,tn.getLogs(In)];case 19:return[2,mn.throwError("unknown method error",pn.Logger.errors.UNKNOWN_ERROR,{method:Ot,params:en})]}}))}))}var An=function(st){en(FallbackProvider,st);function FallbackProvider(Wt,Ot){var en=this;if(Wt.length===0){mn.throwArgumentError("missing providers","providers",Wt)}var tn=Wt.map((function(st,Wt){if(an.Provider.isProvider(st)){var Ot=(0,un.isCommunityResource)(st)?2e3:750;var en=1;return Object.freeze({provider:st,weight:1,stallTimeout:Ot,priority:en})}var tn=(0,cn.shallowCopy)(st);if(tn.priority==null){tn.priority=1}if(tn.stallTimeout==null){tn.stallTimeout=(0,un.isCommunityResource)(st)?2e3:750}if(tn.weight==null){tn.weight=1}var nn=tn.weight;if(nn%1||nn>512||nn<1){mn.throwArgumentError("invalid weight; must be integer in [1, 512]","providers["+Wt+"].weight",nn)}return Object.freeze(tn)}));var nn=tn.reduce((function(st,Wt){return st+Wt.weight}),0);if(Ot==null){Ot=nn/2}else if(Ot>nn){mn.throwArgumentError("quorum will always fail; larger than total weight","quorum",Ot)}var In=checkNetworks(tn.map((function(st){return st.provider.network})));if(In==null){In=new Promise((function(st,Wt){setTimeout((function(){en.detectNetwork().then(st,Wt)}),0)}))}en=st.call(this,In)||this;(0,cn.defineReadOnly)(en,"providerConfigs",Object.freeze(tn));(0,cn.defineReadOnly)(en,"quorum",Ot);en._highestBlockNumber=-1;return en}FallbackProvider.prototype.detectNetwork=function(){return tn(this,void 0,void 0,(function(){var st;return nn(this,(function(Wt){switch(Wt.label){case 0:return[4,Promise.all(this.providerConfigs.map((function(st){return st.provider.getNetwork()})))];case 1:st=Wt.sent();return[2,checkNetworks(st)]}}))}))};FallbackProvider.prototype.perform=function(st,Wt){return tn(this,void 0,void 0,(function(){var Ot,en,tn,an,In,rn,sn,dn,un,bn,An;var Wn=this;return nn(this,(function(Nn){switch(Nn.label){case 0:if(!(st==="sendTransaction"))return[3,2];return[4,Promise.all(this.providerConfigs.map((function(st){return st.provider.sendTransaction(Wt.signedTransaction).then((function(st){return st.hash}),(function(st){return st}))})))];case 1:Ot=Nn.sent();for(en=0;en=bn.quorum))return[3,5];pn=an(un);if(pn!==undefined){In.forEach((function(st){if(st.staller){st.staller.cancel()}st.cancelled=true}));return[2,{value:pn}]}if(!!dn)return[3,4];return[4,stall(100).getPromise()];case 3:nn.sent();nn.label=4;case 4:dn=false;nn.label=5;case 5:An=In.reduce((function(st,Wt){if(!Wt.done||Wt.error==null){return st}var Ot=Wt.error.code;if(hn.indexOf(Ot)>=0){if(!st[Ot]){st[Ot]={error:Wt.error,weight:0}}st[Ot].weight+=Wt.weight}return st}),{});Object.keys(An).forEach((function(st){var Wt=An[st];if(Wt.weight{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.showThrottleMessage=Wt.isCommunityResource=Wt.isCommunityResourcable=Wt.Formatter=void 0;var en=Ot(75745);var tn=Ot(18202);var nn=Ot(42006);var an=Ot(99848);var In=Ot(61338);var rn=Ot(62394);var cn=Ot(76127);var on=Ot(25408);var sn=new cn.Logger(on.version);var dn=function(){function Formatter(){this.formats=this.getDefaultFormats()}Formatter.prototype.getDefaultFormats=function(){var st=this;var Wt={};var Ot=this.address.bind(this);var en=this.bigNumber.bind(this);var tn=this.blockTag.bind(this);var nn=this.data.bind(this);var an=this.hash.bind(this);var rn=this.hex.bind(this);var cn=this.number.bind(this);var on=this.type.bind(this);var strictData=function(Wt){return st.data(Wt,true)};Wt.transaction={hash:an,type:on,accessList:Formatter.allowNull(this.accessList.bind(this),null),blockHash:Formatter.allowNull(an,null),blockNumber:Formatter.allowNull(cn,null),transactionIndex:Formatter.allowNull(cn,null),confirmations:Formatter.allowNull(cn,null),from:Ot,gasPrice:Formatter.allowNull(en),maxPriorityFeePerGas:Formatter.allowNull(en),maxFeePerGas:Formatter.allowNull(en),gasLimit:en,to:Formatter.allowNull(Ot,null),value:en,nonce:cn,data:nn,r:Formatter.allowNull(this.uint256),s:Formatter.allowNull(this.uint256),v:Formatter.allowNull(cn),creates:Formatter.allowNull(Ot,null),raw:Formatter.allowNull(nn)};Wt.transactionRequest={from:Formatter.allowNull(Ot),nonce:Formatter.allowNull(cn),gasLimit:Formatter.allowNull(en),gasPrice:Formatter.allowNull(en),maxPriorityFeePerGas:Formatter.allowNull(en),maxFeePerGas:Formatter.allowNull(en),to:Formatter.allowNull(Ot),value:Formatter.allowNull(en),data:Formatter.allowNull(strictData),type:Formatter.allowNull(cn),accessList:Formatter.allowNull(this.accessList.bind(this),null)};Wt.receiptLog={transactionIndex:cn,blockNumber:cn,transactionHash:an,address:Ot,topics:Formatter.arrayOf(an),data:nn,logIndex:cn,blockHash:an};Wt.receipt={to:Formatter.allowNull(this.address,null),from:Formatter.allowNull(this.address,null),contractAddress:Formatter.allowNull(Ot,null),transactionIndex:cn,root:Formatter.allowNull(rn),gasUsed:en,logsBloom:Formatter.allowNull(nn),blockHash:an,transactionHash:an,logs:Formatter.arrayOf(this.receiptLog.bind(this)),blockNumber:cn,confirmations:Formatter.allowNull(cn,null),cumulativeGasUsed:en,effectiveGasPrice:Formatter.allowNull(en),status:Formatter.allowNull(cn),type:on};Wt.block={hash:Formatter.allowNull(an),parentHash:an,number:cn,timestamp:cn,nonce:Formatter.allowNull(rn),difficulty:this.difficulty.bind(this),gasLimit:en,gasUsed:en,miner:Formatter.allowNull(Ot),extraData:nn,transactions:Formatter.allowNull(Formatter.arrayOf(an)),baseFeePerGas:Formatter.allowNull(en)};Wt.blockWithTransactions=(0,In.shallowCopy)(Wt.block);Wt.blockWithTransactions.transactions=Formatter.allowNull(Formatter.arrayOf(this.transactionResponse.bind(this)));Wt.filter={fromBlock:Formatter.allowNull(tn,undefined),toBlock:Formatter.allowNull(tn,undefined),blockHash:Formatter.allowNull(an,undefined),address:Formatter.allowNull(Ot,undefined),topics:Formatter.allowNull(this.topics.bind(this),undefined)};Wt.filterLog={blockNumber:Formatter.allowNull(cn),blockHash:Formatter.allowNull(an),transactionIndex:cn,removed:Formatter.allowNull(this.boolean.bind(this)),address:Ot,data:Formatter.allowFalsish(nn,"0x"),topics:Formatter.arrayOf(an),transactionHash:an,logIndex:cn};return Wt};Formatter.prototype.accessList=function(st){return(0,rn.accessListify)(st||[])};Formatter.prototype.number=function(st){if(st==="0x"){return 0}return tn.BigNumber.from(st).toNumber()};Formatter.prototype.type=function(st){if(st==="0x"||st==null){return 0}return tn.BigNumber.from(st).toNumber()};Formatter.prototype.bigNumber=function(st){return tn.BigNumber.from(st)};Formatter.prototype.boolean=function(st){if(typeof st==="boolean"){return st}if(typeof st==="string"){st=st.toLowerCase();if(st==="true"){return true}if(st==="false"){return false}}throw new Error("invalid boolean - "+st)};Formatter.prototype.hex=function(st,Wt){if(typeof st==="string"){if(!Wt&&st.substring(0,2)!=="0x"){st="0x"+st}if((0,nn.isHexString)(st)){return st.toLowerCase()}}return sn.throwArgumentError("invalid hash","value",st)};Formatter.prototype.data=function(st,Wt){var Ot=this.hex(st,Wt);if(Ot.length%2!==0){throw new Error("invalid data; odd-length - "+st)}return Ot};Formatter.prototype.address=function(st){return(0,en.getAddress)(st)};Formatter.prototype.callAddress=function(st){if(!(0,nn.isHexString)(st,32)){return null}var Wt=(0,en.getAddress)((0,nn.hexDataSlice)(st,12));return Wt===an.AddressZero?null:Wt};Formatter.prototype.contractAddress=function(st){return(0,en.getContractAddress)(st)};Formatter.prototype.blockTag=function(st){if(st==null){return"latest"}if(st==="earliest"){return"0x0"}switch(st){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return st}if(typeof st==="number"||(0,nn.isHexString)(st)){return(0,nn.hexValue)(st)}throw new Error("invalid blockTag")};Formatter.prototype.hash=function(st,Wt){var Ot=this.hex(st,Wt);if((0,nn.hexDataLength)(Ot)!==32){return sn.throwArgumentError("invalid hash","value",st)}return Ot};Formatter.prototype.difficulty=function(st){if(st==null){return null}var Wt=tn.BigNumber.from(st);try{return Wt.toNumber()}catch(st){}return null};Formatter.prototype.uint256=function(st){if(!(0,nn.isHexString)(st)){throw new Error("invalid uint256")}return(0,nn.hexZeroPad)(st,32)};Formatter.prototype._block=function(st,Wt){if(st.author!=null&&st.miner==null){st.miner=st.author}var Ot=st._difficulty!=null?st._difficulty:st.difficulty;var en=Formatter.check(Wt,st);en._difficulty=Ot==null?null:tn.BigNumber.from(Ot);return en};Formatter.prototype.block=function(st){return this._block(st,this.formats.block)};Formatter.prototype.blockWithTransactions=function(st){return this._block(st,this.formats.blockWithTransactions)};Formatter.prototype.transactionRequest=function(st){return Formatter.check(this.formats.transactionRequest,st)};Formatter.prototype.transactionResponse=function(st){if(st.gas!=null&&st.gasLimit==null){st.gasLimit=st.gas}if(st.to&&tn.BigNumber.from(st.to).isZero()){st.to="0x0000000000000000000000000000000000000000"}if(st.input!=null&&st.data==null){st.data=st.input}if(st.to==null&&st.creates==null){st.creates=this.contractAddress(st)}if((st.type===1||st.type===2)&&st.accessList==null){st.accessList=[]}var Wt=Formatter.check(this.formats.transaction,st);if(st.chainId!=null){var Ot=st.chainId;if((0,nn.isHexString)(Ot)){Ot=tn.BigNumber.from(Ot).toNumber()}Wt.chainId=Ot}else{var Ot=st.networkId;if(Ot==null&&Wt.v==null){Ot=st.chainId}if((0,nn.isHexString)(Ot)){Ot=tn.BigNumber.from(Ot).toNumber()}if(typeof Ot!=="number"&&Wt.v!=null){Ot=(Wt.v-35)/2;if(Ot<0){Ot=0}Ot=parseInt(Ot)}if(typeof Ot!=="number"){Ot=0}Wt.chainId=Ot}if(Wt.blockHash&&Wt.blockHash.replace(/0/g,"")==="x"){Wt.blockHash=null}return Wt};Formatter.prototype.transaction=function(st){return(0,rn.parse)(st)};Formatter.prototype.receiptLog=function(st){return Formatter.check(this.formats.receiptLog,st)};Formatter.prototype.receipt=function(st){var Wt=Formatter.check(this.formats.receipt,st);if(Wt.root!=null){if(Wt.root.length<=4){var Ot=tn.BigNumber.from(Wt.root).toNumber();if(Ot===0||Ot===1){if(Wt.status!=null&&Wt.status!==Ot){sn.throwArgumentError("alt-root-status/status mismatch","value",{root:Wt.root,status:Wt.status})}Wt.status=Ot;delete Wt.root}else{sn.throwArgumentError("invalid alt-root-status","value.root",Wt.root)}}else if(Wt.root.length!==66){sn.throwArgumentError("invalid root hash","value.root",Wt.root)}}if(Wt.status!=null){Wt.byzantium=true}return Wt};Formatter.prototype.topics=function(st){var Wt=this;if(Array.isArray(st)){return st.map((function(st){return Wt.topics(st)}))}else if(st!=null){return this.hash(st,true)}return null};Formatter.prototype.filter=function(st){return Formatter.check(this.formats.filter,st)};Formatter.prototype.filterLog=function(st){return Formatter.check(this.formats.filterLog,st)};Formatter.check=function(st,Wt){var Ot={};for(var en in st){try{var tn=st[en](Wt[en]);if(tn!==undefined){Ot[en]=tn}}catch(st){st.checkKey=en;st.checkValue=Wt[en];throw st}}return Ot};Formatter.allowNull=function(st,Wt){return function(Ot){if(Ot==null){return Wt}return st(Ot)}};Formatter.allowFalsish=function(st,Wt){return function(Ot){if(!Ot){return Wt}return st(Ot)}};Formatter.arrayOf=function(st){return function(Wt){if(!Array.isArray(Wt)){throw new Error("not an array")}var Ot=[];Wt.forEach((function(Wt){Ot.push(st(Wt))}));return Ot}};return Formatter}();Wt.Formatter=dn;function isCommunityResourcable(st){return st&&typeof st.isCommunityResource==="function"}Wt.isCommunityResourcable=isCommunityResourcable;function isCommunityResource(st){return isCommunityResourcable(st)&&st.isCommunityResource()}Wt.isCommunityResource=isCommunityResource;var un=false;function showThrottleMessage(){if(un){return}un=true;console.log("========= NOTICE =========");console.log("Request-Rate Exceeded (this message will not be repeated)");console.log("");console.log("The default API keys for each service are provided as a highly-throttled,");console.log("community resource for low-traffic projects and early prototyping.");console.log("");console.log("While your application will continue to function, we highly recommended");console.log("signing up for your own API keys to improve performance, increase your");console.log("request rate/limit and enable other perks, such as metrics and advanced APIs.");console.log("");console.log("For more details: https://docs.ethers.io/api-keys/");console.log("==========================")}Wt.showThrottleMessage=showThrottleMessage},74983:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Formatter=Wt.showThrottleMessage=Wt.isCommunityResourcable=Wt.isCommunityResource=Wt.getNetwork=Wt.getDefaultProvider=Wt.JsonRpcSigner=Wt.IpcProvider=Wt.WebSocketProvider=Wt.Web3Provider=Wt.StaticJsonRpcProvider=Wt.PocketProvider=Wt.NodesmithProvider=Wt.JsonRpcBatchProvider=Wt.JsonRpcProvider=Wt.InfuraWebSocketProvider=Wt.InfuraProvider=Wt.EtherscanProvider=Wt.CloudflareProvider=Wt.AnkrProvider=Wt.AlchemyWebSocketProvider=Wt.AlchemyProvider=Wt.FallbackProvider=Wt.UrlJsonRpcProvider=Wt.Resolver=Wt.BaseProvider=Wt.Provider=void 0;var en=Ot(12825);Object.defineProperty(Wt,"Provider",{enumerable:true,get:function(){return en.Provider}});var tn=Ot(23044);Object.defineProperty(Wt,"getNetwork",{enumerable:true,get:function(){return tn.getNetwork}});var nn=Ot(8090);Object.defineProperty(Wt,"BaseProvider",{enumerable:true,get:function(){return nn.BaseProvider}});Object.defineProperty(Wt,"Resolver",{enumerable:true,get:function(){return nn.Resolver}});var an=Ot(45372);Object.defineProperty(Wt,"AlchemyProvider",{enumerable:true,get:function(){return an.AlchemyProvider}});Object.defineProperty(Wt,"AlchemyWebSocketProvider",{enumerable:true,get:function(){return an.AlchemyWebSocketProvider}});var In=Ot(32319);Object.defineProperty(Wt,"AnkrProvider",{enumerable:true,get:function(){return In.AnkrProvider}});var rn=Ot(83832);Object.defineProperty(Wt,"CloudflareProvider",{enumerable:true,get:function(){return rn.CloudflareProvider}});var cn=Ot(54814);Object.defineProperty(Wt,"EtherscanProvider",{enumerable:true,get:function(){return cn.EtherscanProvider}});var on=Ot(46459);Object.defineProperty(Wt,"FallbackProvider",{enumerable:true,get:function(){return on.FallbackProvider}});var sn=Ot(54443);Object.defineProperty(Wt,"IpcProvider",{enumerable:true,get:function(){return sn.IpcProvider}});var dn=Ot(65936);Object.defineProperty(Wt,"InfuraProvider",{enumerable:true,get:function(){return dn.InfuraProvider}});Object.defineProperty(Wt,"InfuraWebSocketProvider",{enumerable:true,get:function(){return dn.InfuraWebSocketProvider}});var un=Ot(30697);Object.defineProperty(Wt,"JsonRpcProvider",{enumerable:true,get:function(){return un.JsonRpcProvider}});Object.defineProperty(Wt,"JsonRpcSigner",{enumerable:true,get:function(){return un.JsonRpcSigner}});var pn=Ot(15802);Object.defineProperty(Wt,"JsonRpcBatchProvider",{enumerable:true,get:function(){return pn.JsonRpcBatchProvider}});var bn=Ot(62572);Object.defineProperty(Wt,"NodesmithProvider",{enumerable:true,get:function(){return bn.NodesmithProvider}});var mn=Ot(29663);Object.defineProperty(Wt,"PocketProvider",{enumerable:true,get:function(){return mn.PocketProvider}});var Gn=Ot(56717);Object.defineProperty(Wt,"StaticJsonRpcProvider",{enumerable:true,get:function(){return Gn.StaticJsonRpcProvider}});Object.defineProperty(Wt,"UrlJsonRpcProvider",{enumerable:true,get:function(){return Gn.UrlJsonRpcProvider}});var hn=Ot(9676);Object.defineProperty(Wt,"Web3Provider",{enumerable:true,get:function(){return hn.Web3Provider}});var Zn=Ot(35988);Object.defineProperty(Wt,"WebSocketProvider",{enumerable:true,get:function(){return Zn.WebSocketProvider}});var An=Ot(24293);Object.defineProperty(Wt,"Formatter",{enumerable:true,get:function(){return An.Formatter}});Object.defineProperty(Wt,"isCommunityResourcable",{enumerable:true,get:function(){return An.isCommunityResourcable}});Object.defineProperty(Wt,"isCommunityResource",{enumerable:true,get:function(){return An.isCommunityResource}});Object.defineProperty(Wt,"showThrottleMessage",{enumerable:true,get:function(){return An.showThrottleMessage}});var Wn=Ot(76127);var Nn=Ot(25408);var gn=new Wn.Logger(Nn.version);function getDefaultProvider(st,Wt){if(st==null){st="homestead"}if(typeof st==="string"){var Ot=st.match(/^(ws|http)s?:/i);if(Ot){switch(Ot[1].toLowerCase()){case"http":case"https":return new un.JsonRpcProvider(st);case"ws":case"wss":return new Zn.WebSocketProvider(st);default:gn.throwArgumentError("unsupported URL scheme","network",st)}}}var en=(0,tn.getNetwork)(st);if(!en||!en._defaultProvider){gn.throwError("unsupported getDefaultProvider network",Wn.Logger.errors.NETWORK_ERROR,{operation:"getDefaultProvider",network:st})}return en._defaultProvider({FallbackProvider:on.FallbackProvider,AlchemyProvider:an.AlchemyProvider,AnkrProvider:In.AnkrProvider,CloudflareProvider:rn.CloudflareProvider,EtherscanProvider:cn.EtherscanProvider,InfuraProvider:dn.InfuraProvider,JsonRpcProvider:un.JsonRpcProvider,NodesmithProvider:bn.NodesmithProvider,PocketProvider:mn.PocketProvider,Web3Provider:hn.Web3Provider,IpcProvider:sn.IpcProvider},Wt)}Wt.getDefaultProvider=getDefaultProvider},65936:function(st,Wt,Ot){"use strict";var en=this&&this.__extends||function(){var extendStatics=function(st,Wt){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(st,Wt){st.__proto__=Wt}||function(st,Wt){for(var Ot in Wt)if(Object.prototype.hasOwnProperty.call(Wt,Ot))st[Ot]=Wt[Ot]};return extendStatics(st,Wt)};return function(st,Wt){if(typeof Wt!=="function"&&Wt!==null)throw new TypeError("Class extends value "+String(Wt)+" is not a constructor or null");extendStatics(st,Wt);function __(){this.constructor=st}st.prototype=Wt===null?Object.create(Wt):(__.prototype=Wt.prototype,new __)}}();Object.defineProperty(Wt,"__esModule",{value:true});Wt.InfuraProvider=Wt.InfuraWebSocketProvider=void 0;var tn=Ot(61338);var nn=Ot(35988);var an=Ot(24293);var In=Ot(76127);var rn=Ot(25408);var cn=new In.Logger(rn.version);var on=Ot(56717);var sn="84842078b09946638c03157f83405213";var dn=function(st){en(InfuraWebSocketProvider,st);function InfuraWebSocketProvider(Wt,Ot){var en=this;var nn=new un(Wt,Ot);var an=nn.connection;if(an.password){cn.throwError("INFURA WebSocket project secrets unsupported",In.Logger.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"})}var rn=an.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/");en=st.call(this,rn,Wt)||this;(0,tn.defineReadOnly)(en,"apiKey",nn.projectId);(0,tn.defineReadOnly)(en,"projectId",nn.projectId);(0,tn.defineReadOnly)(en,"projectSecret",nn.projectSecret);return en}InfuraWebSocketProvider.prototype.isCommunityResource=function(){return this.projectId===sn};return InfuraWebSocketProvider}(nn.WebSocketProvider);Wt.InfuraWebSocketProvider=dn;var un=function(st){en(InfuraProvider,st);function InfuraProvider(){return st!==null&&st.apply(this,arguments)||this}InfuraProvider.getWebSocketProvider=function(st,Wt){return new dn(st,Wt)};InfuraProvider.getApiKey=function(st){var Wt={apiKey:sn,projectId:sn,projectSecret:null};if(st==null){return Wt}if(typeof st==="string"){Wt.projectId=st}else if(st.projectSecret!=null){cn.assertArgument(typeof st.projectId==="string","projectSecret requires a projectId","projectId",st.projectId);cn.assertArgument(typeof st.projectSecret==="string","invalid projectSecret","projectSecret","[REDACTED]");Wt.projectId=st.projectId;Wt.projectSecret=st.projectSecret}else if(st.projectId){Wt.projectId=st.projectId}Wt.apiKey=Wt.projectId;return Wt};InfuraProvider.getUrl=function(st,Wt){var Ot=null;switch(st?st.name:"unknown"){case"homestead":Ot="mainnet.infura.io";break;case"goerli":Ot="goerli.infura.io";break;case"sepolia":Ot="sepolia.infura.io";break;case"matic":Ot="polygon-mainnet.infura.io";break;case"maticmum":Ot="polygon-mumbai.infura.io";break;case"optimism":Ot="optimism-mainnet.infura.io";break;case"optimism-goerli":Ot="optimism-goerli.infura.io";break;case"arbitrum":Ot="arbitrum-mainnet.infura.io";break;case"arbitrum-goerli":Ot="arbitrum-goerli.infura.io";break;default:cn.throwError("unsupported network",In.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:st})}var en={allowGzip:true,url:"https:/"+"/"+Ot+"/v3/"+Wt.projectId,throttleCallback:function(st,Ot){if(Wt.projectId===sn){(0,an.showThrottleMessage)()}return Promise.resolve(true)}};if(Wt.projectSecret!=null){en.user="";en.password=Wt.projectSecret}return en};InfuraProvider.prototype.isCommunityResource=function(){return this.projectId===sn};return InfuraProvider}(on.UrlJsonRpcProvider);Wt.InfuraProvider=un},54443:function(st,Wt,Ot){"use strict";var en=this&&this.__extends||function(){var extendStatics=function(st,Wt){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(st,Wt){st.__proto__=Wt}||function(st,Wt){for(var Ot in Wt)if(Object.prototype.hasOwnProperty.call(Wt,Ot))st[Ot]=Wt[Ot]};return extendStatics(st,Wt)};return function(st,Wt){if(typeof Wt!=="function"&&Wt!==null)throw new TypeError("Class extends value "+String(Wt)+" is not a constructor or null");extendStatics(st,Wt);function __(){this.constructor=st}st.prototype=Wt===null?Object.create(Wt):(__.prototype=Wt.prototype,new __)}}();Object.defineProperty(Wt,"__esModule",{value:true});Wt.IpcProvider=void 0;var tn=Ot(69278);var nn=Ot(61338);var an=Ot(76127);var In=Ot(25408);var rn=new an.Logger(In.version);var cn=Ot(30697);var on=function(st){en(IpcProvider,st);function IpcProvider(Wt,Ot){var en=this;if(Wt==null){rn.throwError("missing path",an.Logger.errors.MISSING_ARGUMENT,{arg:"path"})}en=st.call(this,"ipc://"+Wt,Ot)||this;(0,nn.defineReadOnly)(en,"path",Wt);return en}IpcProvider.prototype.send=function(st,Wt){var Ot=this;var en=JSON.stringify({method:st,params:Wt,id:42,jsonrpc:"2.0"});return new Promise((function(st,Wt){var nn=Buffer.alloc(0);var an=(0,tn.connect)(Ot.path);an.on("data",(function(st){nn=Buffer.concat([nn,st])}));an.on("end",(function(){try{st(JSON.parse(nn.toString()).result);an.destroy()}catch(st){Wt(st);an.destroy()}}));an.on("error",(function(st){Wt(st);an.destroy()}));an.write(en);an.end()}))};return IpcProvider}(cn.JsonRpcProvider);Wt.IpcProvider=on},15802:function(st,Wt,Ot){"use strict";var en=this&&this.__extends||function(){var extendStatics=function(st,Wt){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(st,Wt){st.__proto__=Wt}||function(st,Wt){for(var Ot in Wt)if(Object.prototype.hasOwnProperty.call(Wt,Ot))st[Ot]=Wt[Ot]};return extendStatics(st,Wt)};return function(st,Wt){if(typeof Wt!=="function"&&Wt!==null)throw new TypeError("Class extends value "+String(Wt)+" is not a constructor or null");extendStatics(st,Wt);function __(){this.constructor=st}st.prototype=Wt===null?Object.create(Wt):(__.prototype=Wt.prototype,new __)}}();Object.defineProperty(Wt,"__esModule",{value:true});Wt.JsonRpcBatchProvider=void 0;var tn=Ot(61338);var nn=Ot(72239);var an=Ot(30697);var In=function(st){en(JsonRpcBatchProvider,st);function JsonRpcBatchProvider(){return st!==null&&st.apply(this,arguments)||this}JsonRpcBatchProvider.prototype.send=function(st,Wt){var Ot=this;var en={method:st,params:Wt,id:this._nextId++,jsonrpc:"2.0"};if(this._pendingBatch==null){this._pendingBatch=[]}var an={request:en,resolve:null,reject:null};var In=new Promise((function(st,Wt){an.resolve=st;an.reject=Wt}));this._pendingBatch.push(an);if(!this._pendingBatchAggregator){this._pendingBatchAggregator=setTimeout((function(){var st=Ot._pendingBatch;Ot._pendingBatch=null;Ot._pendingBatchAggregator=null;var Wt=st.map((function(st){return st.request}));Ot.emit("debug",{action:"requestBatch",request:(0,tn.deepCopy)(Wt),provider:Ot});return(0,nn.fetchJson)(Ot.connection,JSON.stringify(Wt)).then((function(en){Ot.emit("debug",{action:"response",request:Wt,response:en,provider:Ot});st.forEach((function(st,Wt){var Ot=en[Wt];if(Ot.error){var tn=new Error(Ot.error.message);tn.code=Ot.error.code;tn.data=Ot.error.data;st.reject(tn)}else{st.resolve(Ot.result)}}))}),(function(en){Ot.emit("debug",{action:"response",error:en,request:Wt,provider:Ot});st.forEach((function(st){st.reject(en)}))}))}),10)}return In};return JsonRpcBatchProvider}(an.JsonRpcProvider);Wt.JsonRpcBatchProvider=In},30697:function(st,Wt,Ot){"use strict";var en=this&&this.__extends||function(){var extendStatics=function(st,Wt){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(st,Wt){st.__proto__=Wt}||function(st,Wt){for(var Ot in Wt)if(Object.prototype.hasOwnProperty.call(Wt,Ot))st[Ot]=Wt[Ot]};return extendStatics(st,Wt)};return function(st,Wt){if(typeof Wt!=="function"&&Wt!==null)throw new TypeError("Class extends value "+String(Wt)+" is not a constructor or null");extendStatics(st,Wt);function __(){this.constructor=st}st.prototype=Wt===null?Object.create(Wt):(__.prototype=Wt.prototype,new __)}}();var tn=this&&this.__awaiter||function(st,Wt,Ot,en){function adopt(st){return st instanceof Ot?st:new Ot((function(Wt){Wt(st)}))}return new(Ot||(Ot=Promise))((function(Ot,tn){function fulfilled(st){try{step(en.next(st))}catch(st){tn(st)}}function rejected(st){try{step(en["throw"](st))}catch(st){tn(st)}}function step(st){st.done?Ot(st.value):adopt(st.value).then(fulfilled,rejected)}step((en=en.apply(st,Wt||[])).next())}))};var nn=this&&this.__generator||function(st,Wt){var Ot={label:0,sent:function(){if(nn[0]&1)throw nn[1];return nn[1]},trys:[],ops:[]},en,tn,nn,an;return an={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(an[Symbol.iterator]=function(){return this}),an;function verb(st){return function(Wt){return step([st,Wt])}}function step(an){if(en)throw new TypeError("Generator is already executing.");while(Ot)try{if(en=1,tn&&(nn=an[0]&2?tn["return"]:an[0]?tn["throw"]||((nn=tn["return"])&&nn.call(tn),0):tn.next)&&!(nn=nn.call(tn,an[1])).done)return nn;if(tn=0,nn)an=[an[0]&2,nn.value];switch(an[0]){case 0:case 1:nn=an;break;case 4:Ot.label++;return{value:an[1],done:false};case 5:Ot.label++;tn=an[1];an=[0];continue;case 7:an=Ot.ops.pop();Ot.trys.pop();continue;default:if(!(nn=Ot.trys,nn=nn.length>0&&nn[nn.length-1])&&(an[0]===6||an[0]===2)){Ot=0;continue}if(an[0]===3&&(!nn||an[1]>nn[0]&&an[1]=0&&nn.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)){mn.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",pn.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:Wt,method:st,transaction:en})}throw Wt}function timer(st){return new Promise((function(Wt){setTimeout(Wt,st)}))}function getResult(st){if(st.error){var Wt=new Error(st.error.message);Wt.code=st.error.code;Wt.data=st.error.data;throw Wt}return st.result}function getLowerCase(st){if(st){return st.toLowerCase()}return st}var Zn={};var An=function(st){en(JsonRpcSigner,st);function JsonRpcSigner(Wt,Ot,en){var tn=st.call(this)||this;if(Wt!==Zn){throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner")}(0,on.defineReadOnly)(tn,"provider",Ot);if(en==null){en=0}if(typeof en==="string"){(0,on.defineReadOnly)(tn,"_address",tn.provider.formatter.address(en));(0,on.defineReadOnly)(tn,"_index",null)}else if(typeof en==="number"){(0,on.defineReadOnly)(tn,"_index",en);(0,on.defineReadOnly)(tn,"_address",null)}else{mn.throwArgumentError("invalid address or index","addressOrIndex",en)}return tn}JsonRpcSigner.prototype.connect=function(st){return mn.throwError("cannot alter JSON-RPC Signer connection",pn.Logger.errors.UNSUPPORTED_OPERATION,{operation:"connect"})};JsonRpcSigner.prototype.connectUnchecked=function(){return new Wn(Zn,this.provider,this._address||this._index)};JsonRpcSigner.prototype.getAddress=function(){var st=this;if(this._address){return Promise.resolve(this._address)}return this.provider.send("eth_accounts",[]).then((function(Wt){if(Wt.length<=st._index){mn.throwError("unknown account #"+st._index,pn.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"})}return st.provider.formatter.address(Wt[st._index])}))};JsonRpcSigner.prototype.sendUncheckedTransaction=function(st){var Wt=this;st=(0,on.shallowCopy)(st);var Ot=this.getAddress().then((function(st){if(st){st=st.toLowerCase()}return st}));if(st.gasLimit==null){var en=(0,on.shallowCopy)(st);en.from=Ot;st.gasLimit=this.provider.estimateGas(en)}if(st.to!=null){st.to=Promise.resolve(st.to).then((function(st){return tn(Wt,void 0,void 0,(function(){var Wt;return nn(this,(function(Ot){switch(Ot.label){case 0:if(st==null){return[2,null]}return[4,this.provider.resolveName(st)];case 1:Wt=Ot.sent();if(Wt==null){mn.throwArgumentError("provided ENS name resolves to null","tx.to",st)}return[2,Wt]}}))}))}))}return(0,on.resolveProperties)({tx:(0,on.resolveProperties)(st),sender:Ot}).then((function(Ot){var en=Ot.tx,tn=Ot.sender;if(en.from!=null){if(en.from.toLowerCase()!==tn){mn.throwArgumentError("from address mismatch","transaction",st)}}else{en.from=tn}var nn=Wt.provider.constructor.hexlifyTransaction(en,{from:true});return Wt.provider.send("eth_sendTransaction",[nn]).then((function(st){return st}),(function(st){if(typeof st.message==="string"&&st.message.match(/user denied/i)){mn.throwError("user rejected transaction",pn.Logger.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:en})}return checkError("sendTransaction",st,nn)}))}))};JsonRpcSigner.prototype.signTransaction=function(st){return mn.throwError("signing transactions is unsupported",pn.Logger.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})};JsonRpcSigner.prototype.sendTransaction=function(st){return tn(this,void 0,void 0,(function(){var Wt,Ot,en;var an=this;return nn(this,(function(In){switch(In.label){case 0:return[4,this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval)];case 1:Wt=In.sent();return[4,this.sendUncheckedTransaction(st)];case 2:Ot=In.sent();In.label=3;case 3:In.trys.push([3,5,,6]);return[4,(0,un.poll)((function(){return tn(an,void 0,void 0,(function(){var st;return nn(this,(function(en){switch(en.label){case 0:return[4,this.provider.getTransaction(Ot)];case 1:st=en.sent();if(st===null){return[2,undefined]}return[2,this.provider._wrapTransaction(st,Ot,Wt)]}}))}))}),{oncePoll:this.provider})];case 4:return[2,In.sent()];case 5:en=In.sent();en.transactionHash=Ot;throw en;case 6:return[2]}}))}))};JsonRpcSigner.prototype.signMessage=function(st){return tn(this,void 0,void 0,(function(){var Wt,Ot,en;return nn(this,(function(tn){switch(tn.label){case 0:Wt=typeof st==="string"?(0,sn.toUtf8Bytes)(st):st;return[4,this.getAddress()];case 1:Ot=tn.sent();tn.label=2;case 2:tn.trys.push([2,4,,5]);return[4,this.provider.send("personal_sign",[(0,rn.hexlify)(Wt),Ot.toLowerCase()])];case 3:return[2,tn.sent()];case 4:en=tn.sent();if(typeof en.message==="string"&&en.message.match(/user denied/i)){mn.throwError("user rejected signing",pn.Logger.errors.ACTION_REJECTED,{action:"signMessage",from:Ot,messageData:st})}throw en;case 5:return[2]}}))}))};JsonRpcSigner.prototype._legacySignMessage=function(st){return tn(this,void 0,void 0,(function(){var Wt,Ot,en;return nn(this,(function(tn){switch(tn.label){case 0:Wt=typeof st==="string"?(0,sn.toUtf8Bytes)(st):st;return[4,this.getAddress()];case 1:Ot=tn.sent();tn.label=2;case 2:tn.trys.push([2,4,,5]);return[4,this.provider.send("eth_sign",[Ot.toLowerCase(),(0,rn.hexlify)(Wt)])];case 3:return[2,tn.sent()];case 4:en=tn.sent();if(typeof en.message==="string"&&en.message.match(/user denied/i)){mn.throwError("user rejected signing",pn.Logger.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:Ot,messageData:st})}throw en;case 5:return[2]}}))}))};JsonRpcSigner.prototype._signTypedData=function(st,Wt,Ot){return tn(this,void 0,void 0,(function(){var en,tn,an;var In=this;return nn(this,(function(nn){switch(nn.label){case 0:return[4,cn._TypedDataEncoder.resolveNames(st,Wt,Ot,(function(st){return In.provider.resolveName(st)}))];case 1:en=nn.sent();return[4,this.getAddress()];case 2:tn=nn.sent();nn.label=3;case 3:nn.trys.push([3,5,,6]);return[4,this.provider.send("eth_signTypedData_v4",[tn.toLowerCase(),JSON.stringify(cn._TypedDataEncoder.getPayload(en.domain,Wt,en.value))])];case 4:return[2,nn.sent()];case 5:an=nn.sent();if(typeof an.message==="string"&&an.message.match(/user denied/i)){mn.throwError("user rejected signing",pn.Logger.errors.ACTION_REJECTED,{action:"_signTypedData",from:tn,messageData:{domain:en.domain,types:Wt,value:en.value}})}throw an;case 6:return[2]}}))}))};JsonRpcSigner.prototype.unlock=function(st){return tn(this,void 0,void 0,(function(){var Wt,Ot;return nn(this,(function(en){switch(en.label){case 0:Wt=this.provider;return[4,this.getAddress()];case 1:Ot=en.sent();return[2,Wt.send("personal_unlockAccount",[Ot.toLowerCase(),st,null])]}}))}))};return JsonRpcSigner}(an.Signer);Wt.JsonRpcSigner=An;var Wn=function(st){en(UncheckedJsonRpcSigner,st);function UncheckedJsonRpcSigner(){return st!==null&&st.apply(this,arguments)||this}UncheckedJsonRpcSigner.prototype.sendTransaction=function(st){var Wt=this;return this.sendUncheckedTransaction(st).then((function(st){return{hash:st,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:function(Ot){return Wt.provider.waitForTransaction(st,Ot)}}}))};return UncheckedJsonRpcSigner}(An);var Nn={chainId:true,data:true,gasLimit:true,gasPrice:true,nonce:true,to:true,value:true,type:true,accessList:true,maxFeePerGas:true,maxPriorityFeePerGas:true};var gn=function(st){en(JsonRpcProvider,st);function JsonRpcProvider(Wt,Ot){var en=this;var tn=Ot;if(tn==null){tn=new Promise((function(st,Wt){setTimeout((function(){en.detectNetwork().then((function(Wt){st(Wt)}),(function(st){Wt(st)}))}),0)}))}en=st.call(this,tn)||this;if(!Wt){Wt=(0,on.getStatic)(en.constructor,"defaultUrl")()}if(typeof Wt==="string"){(0,on.defineReadOnly)(en,"connection",Object.freeze({url:Wt}))}else{(0,on.defineReadOnly)(en,"connection",Object.freeze((0,on.shallowCopy)(Wt)))}en._nextId=42;return en}Object.defineProperty(JsonRpcProvider.prototype,"_cache",{get:function(){if(this._eventLoopCache==null){this._eventLoopCache={}}return this._eventLoopCache},enumerable:false,configurable:true});JsonRpcProvider.defaultUrl=function(){return"http://localhost:8545"};JsonRpcProvider.prototype.detectNetwork=function(){var st=this;if(!this._cache["detectNetwork"]){this._cache["detectNetwork"]=this._uncachedDetectNetwork();setTimeout((function(){st._cache["detectNetwork"]=null}),0)}return this._cache["detectNetwork"]};JsonRpcProvider.prototype._uncachedDetectNetwork=function(){return tn(this,void 0,void 0,(function(){var st,Wt,Ot,en;return nn(this,(function(tn){switch(tn.label){case 0:return[4,timer(0)];case 1:tn.sent();st=null;tn.label=2;case 2:tn.trys.push([2,4,,9]);return[4,this.send("eth_chainId",[])];case 3:st=tn.sent();return[3,9];case 4:Wt=tn.sent();tn.label=5;case 5:tn.trys.push([5,7,,8]);return[4,this.send("net_version",[])];case 6:st=tn.sent();return[3,8];case 7:Ot=tn.sent();return[3,8];case 8:return[3,9];case 9:if(st!=null){en=(0,on.getStatic)(this.constructor,"getNetwork");try{return[2,en(In.BigNumber.from(st).toNumber())]}catch(Wt){return[2,mn.throwError("could not detect network",pn.Logger.errors.NETWORK_ERROR,{chainId:st,event:"invalidNetwork",serverError:Wt})]}}return[2,mn.throwError("could not detect network",pn.Logger.errors.NETWORK_ERROR,{event:"noNetwork"})]}}))}))};JsonRpcProvider.prototype.getSigner=function(st){return new An(Zn,this,st)};JsonRpcProvider.prototype.getUncheckedSigner=function(st){return this.getSigner(st).connectUnchecked()};JsonRpcProvider.prototype.listAccounts=function(){var st=this;return this.send("eth_accounts",[]).then((function(Wt){return Wt.map((function(Wt){return st.formatter.address(Wt)}))}))};JsonRpcProvider.prototype.send=function(st,Wt){var Ot=this;var en={method:st,params:Wt,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:(0,on.deepCopy)(en),provider:this});var tn=["eth_chainId","eth_blockNumber"].indexOf(st)>=0;if(tn&&this._cache[st]){return this._cache[st]}var nn=(0,un.fetchJson)(this.connection,JSON.stringify(en),getResult).then((function(st){Ot.emit("debug",{action:"response",request:en,response:st,provider:Ot});return st}),(function(st){Ot.emit("debug",{action:"response",error:st,request:en,provider:Ot});throw st}));if(tn){this._cache[st]=nn;setTimeout((function(){Ot._cache[st]=null}),0)}return nn};JsonRpcProvider.prototype.prepareRequest=function(st,Wt){switch(st){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[getLowerCase(Wt.address),Wt.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[getLowerCase(Wt.address),Wt.blockTag]];case"getCode":return["eth_getCode",[getLowerCase(Wt.address),Wt.blockTag]];case"getStorageAt":return["eth_getStorageAt",[getLowerCase(Wt.address),(0,rn.hexZeroPad)(Wt.position,32),Wt.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[Wt.signedTransaction]];case"getBlock":if(Wt.blockTag){return["eth_getBlockByNumber",[Wt.blockTag,!!Wt.includeTransactions]]}else if(Wt.blockHash){return["eth_getBlockByHash",[Wt.blockHash,!!Wt.includeTransactions]]}return null;case"getTransaction":return["eth_getTransactionByHash",[Wt.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[Wt.transactionHash]];case"call":{var Ot=(0,on.getStatic)(this.constructor,"hexlifyTransaction");return["eth_call",[Ot(Wt.transaction,{from:true}),Wt.blockTag]]}case"estimateGas":{var Ot=(0,on.getStatic)(this.constructor,"hexlifyTransaction");return["eth_estimateGas",[Ot(Wt.transaction,{from:true})]]}case"getLogs":if(Wt.filter&&Wt.filter.address!=null){Wt.filter.address=getLowerCase(Wt.filter.address)}return["eth_getLogs",[Wt.filter]];default:break}return null};JsonRpcProvider.prototype.perform=function(st,Wt){return tn(this,void 0,void 0,(function(){var Ot,en,tn,an;return nn(this,(function(nn){switch(nn.label){case 0:if(!(st==="call"||st==="estimateGas"))return[3,2];Ot=Wt.transaction;if(!(Ot&&Ot.type!=null&&In.BigNumber.from(Ot.type).isZero()))return[3,2];if(!(Ot.maxFeePerGas==null&&Ot.maxPriorityFeePerGas==null))return[3,2];return[4,this.getFeeData()];case 1:en=nn.sent();if(en.maxFeePerGas==null&&en.maxPriorityFeePerGas==null){Wt=(0,on.shallowCopy)(Wt);Wt.transaction=(0,on.shallowCopy)(Ot);delete Wt.transaction.type}nn.label=2;case 2:tn=this.prepareRequest(st,Wt);if(tn==null){mn.throwError(st+" not implemented",pn.Logger.errors.NOT_IMPLEMENTED,{operation:st})}nn.label=3;case 3:nn.trys.push([3,5,,6]);return[4,this.send(tn[0],tn[1])];case 4:return[2,nn.sent()];case 5:an=nn.sent();return[2,checkError(st,an,Wt)];case 6:return[2]}}))}))};JsonRpcProvider.prototype._startEvent=function(Wt){if(Wt.tag==="pending"){this._startPending()}st.prototype._startEvent.call(this,Wt)};JsonRpcProvider.prototype._startPending=function(){if(this._pendingFilter!=null){return}var st=this;var Wt=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=Wt;Wt.then((function(Ot){function poll(){st.send("eth_getFilterChanges",[Ot]).then((function(Ot){if(st._pendingFilter!=Wt){return null}var en=Promise.resolve();Ot.forEach((function(Wt){st._emitted["t:"+Wt.toLowerCase()]="pending";en=en.then((function(){return st.getTransaction(Wt).then((function(Wt){st.emit("pending",Wt);return null}))}))}));return en.then((function(){return timer(1e3)}))})).then((function(){if(st._pendingFilter!=Wt){st.send("eth_uninstallFilter",[Ot]);return}setTimeout((function(){poll()}),0);return null})).catch((function(st){}))}poll();return Ot})).catch((function(st){}))};JsonRpcProvider.prototype._stopEvent=function(Wt){if(Wt.tag==="pending"&&this.listenerCount("pending")===0){this._pendingFilter=null}st.prototype._stopEvent.call(this,Wt)};JsonRpcProvider.hexlifyTransaction=function(st,Wt){var Ot=(0,on.shallowCopy)(Nn);if(Wt){for(var en in Wt){if(Wt[en]){Ot[en]=true}}}(0,on.checkProperties)(st,Ot);var tn={};["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach((function(Wt){if(st[Wt]==null){return}var Ot=(0,rn.hexValue)(In.BigNumber.from(st[Wt]));if(Wt==="gasLimit"){Wt="gas"}tn[Wt]=Ot}));["from","to","data"].forEach((function(Wt){if(st[Wt]==null){return}tn[Wt]=(0,rn.hexlify)(st[Wt])}));if(st.accessList){tn["accessList"]=(0,dn.accessListify)(st.accessList)}return tn};return JsonRpcProvider}(Gn.BaseProvider);Wt.JsonRpcProvider=gn},62572:function(st,Wt,Ot){"use strict";var en=this&&this.__extends||function(){var extendStatics=function(st,Wt){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(st,Wt){st.__proto__=Wt}||function(st,Wt){for(var Ot in Wt)if(Object.prototype.hasOwnProperty.call(Wt,Ot))st[Ot]=Wt[Ot]};return extendStatics(st,Wt)};return function(st,Wt){if(typeof Wt!=="function"&&Wt!==null)throw new TypeError("Class extends value "+String(Wt)+" is not a constructor or null");extendStatics(st,Wt);function __(){this.constructor=st}st.prototype=Wt===null?Object.create(Wt):(__.prototype=Wt.prototype,new __)}}();Object.defineProperty(Wt,"__esModule",{value:true});Wt.NodesmithProvider=void 0;var tn=Ot(56717);var nn=Ot(76127);var an=Ot(25408);var In=new nn.Logger(an.version);var rn="ETHERS_JS_SHARED";var cn=function(st){en(NodesmithProvider,st);function NodesmithProvider(){return st!==null&&st.apply(this,arguments)||this}NodesmithProvider.getApiKey=function(st){if(st&&typeof st!=="string"){In.throwArgumentError("invalid apiKey","apiKey",st)}return st||rn};NodesmithProvider.getUrl=function(st,Wt){In.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");var Ot=null;switch(st.name){case"homestead":Ot="https://ethereum.api.nodesmith.io/v1/mainnet/jsonrpc";break;case"ropsten":Ot="https://ethereum.api.nodesmith.io/v1/ropsten/jsonrpc";break;case"rinkeby":Ot="https://ethereum.api.nodesmith.io/v1/rinkeby/jsonrpc";break;case"goerli":Ot="https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc";break;case"kovan":Ot="https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";break;default:In.throwArgumentError("unsupported network","network",arguments[0])}return Ot+"?apiKey="+Wt};return NodesmithProvider}(tn.UrlJsonRpcProvider);Wt.NodesmithProvider=cn},29663:function(st,Wt,Ot){"use strict";var en=this&&this.__extends||function(){var extendStatics=function(st,Wt){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(st,Wt){st.__proto__=Wt}||function(st,Wt){for(var Ot in Wt)if(Object.prototype.hasOwnProperty.call(Wt,Ot))st[Ot]=Wt[Ot]};return extendStatics(st,Wt)};return function(st,Wt){if(typeof Wt!=="function"&&Wt!==null)throw new TypeError("Class extends value "+String(Wt)+" is not a constructor or null");extendStatics(st,Wt);function __(){this.constructor=st}st.prototype=Wt===null?Object.create(Wt):(__.prototype=Wt.prototype,new __)}}();Object.defineProperty(Wt,"__esModule",{value:true});Wt.PocketProvider=void 0;var tn=Ot(76127);var nn=Ot(25408);var an=new tn.Logger(nn.version);var In=Ot(56717);var rn="62e1ad51b37b8e00394bda3b";var cn=function(st){en(PocketProvider,st);function PocketProvider(){return st!==null&&st.apply(this,arguments)||this}PocketProvider.getApiKey=function(st){var Wt={applicationId:null,loadBalancer:true,applicationSecretKey:null};if(st==null){Wt.applicationId=rn}else if(typeof st==="string"){Wt.applicationId=st}else if(st.applicationSecretKey!=null){Wt.applicationId=st.applicationId;Wt.applicationSecretKey=st.applicationSecretKey}else if(st.applicationId){Wt.applicationId=st.applicationId}else{an.throwArgumentError("unsupported PocketProvider apiKey","apiKey",st)}return Wt};PocketProvider.getUrl=function(st,Wt){var Ot=null;switch(st?st.name:"unknown"){case"goerli":Ot="eth-goerli.gateway.pokt.network";break;case"homestead":Ot="eth-mainnet.gateway.pokt.network";break;case"kovan":Ot="poa-kovan.gateway.pokt.network";break;case"matic":Ot="poly-mainnet.gateway.pokt.network";break;case"maticmum":Ot="polygon-mumbai-rpc.gateway.pokt.network";break;case"rinkeby":Ot="eth-rinkeby.gateway.pokt.network";break;case"ropsten":Ot="eth-ropsten.gateway.pokt.network";break;default:an.throwError("unsupported network",tn.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:st})}var en="https://"+Ot+"/v1/lb/"+Wt.applicationId;var nn={headers:{},url:en};if(Wt.applicationSecretKey!=null){nn.user="";nn.password=Wt.applicationSecretKey}return nn};PocketProvider.prototype.isCommunityResource=function(){return this.applicationId===rn};return PocketProvider}(In.UrlJsonRpcProvider);Wt.PocketProvider=cn},56717:function(st,Wt,Ot){"use strict";var en=this&&this.__extends||function(){var extendStatics=function(st,Wt){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(st,Wt){st.__proto__=Wt}||function(st,Wt){for(var Ot in Wt)if(Object.prototype.hasOwnProperty.call(Wt,Ot))st[Ot]=Wt[Ot]};return extendStatics(st,Wt)};return function(st,Wt){if(typeof Wt!=="function"&&Wt!==null)throw new TypeError("Class extends value "+String(Wt)+" is not a constructor or null");extendStatics(st,Wt);function __(){this.constructor=st}st.prototype=Wt===null?Object.create(Wt):(__.prototype=Wt.prototype,new __)}}();var tn=this&&this.__awaiter||function(st,Wt,Ot,en){function adopt(st){return st instanceof Ot?st:new Ot((function(Wt){Wt(st)}))}return new(Ot||(Ot=Promise))((function(Ot,tn){function fulfilled(st){try{step(en.next(st))}catch(st){tn(st)}}function rejected(st){try{step(en["throw"](st))}catch(st){tn(st)}}function step(st){st.done?Ot(st.value):adopt(st.value).then(fulfilled,rejected)}step((en=en.apply(st,Wt||[])).next())}))};var nn=this&&this.__generator||function(st,Wt){var Ot={label:0,sent:function(){if(nn[0]&1)throw nn[1];return nn[1]},trys:[],ops:[]},en,tn,nn,an;return an={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(an[Symbol.iterator]=function(){return this}),an;function verb(st){return function(Wt){return step([st,Wt])}}function step(an){if(en)throw new TypeError("Generator is already executing.");while(Ot)try{if(en=1,tn&&(nn=an[0]&2?tn["return"]:an[0]?tn["throw"]||((nn=tn["return"])&&nn.call(tn),0):tn.next)&&!(nn=nn.call(tn,an[1])).done)return nn;if(tn=0,nn)an=[an[0]&2,nn.value];switch(an[0]){case 0:case 1:nn=an;break;case 4:Ot.label++;return{value:an[1],done:false};case 5:Ot.label++;tn=an[1];an=[0];continue;case 7:an=Ot.ops.pop();Ot.trys.pop();continue;default:if(!(nn=Ot.trys,nn=nn.length>0&&nn[nn.length-1])&&(an[0]===6||an[0]===2)){Ot=0;continue}if(an[0]===3&&(!nn||an[1]>nn[0]&&an[1]0&&nn[nn.length-1])&&(an[0]===6||an[0]===2)){Ot=0;continue}if(an[0]===3&&(!nn||an[1]>nn[0]&&an[1]{"use strict";const en=Ot(9462);en.createWebSocketStream=Ot(62117);en.Server=Ot(72672);en.Receiver=Ot(18508);en.Sender=Ot(31780);st.exports=en},17932:(st,Wt,Ot)=>{"use strict";const{EMPTY_BUFFER:en}=Ot(83400);function concat(st,Wt){if(st.length===0)return en;if(st.length===1)return st[0];const Ot=Buffer.allocUnsafe(Wt);let tn=0;for(let Wt=0;Wt{"use strict";st.exports={BINARY_TYPES:["nodebuffer","arraybuffer","fragments"],GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),EMPTY_BUFFER:Buffer.alloc(0),NOOP:()=>{}}},92755:st=>{"use strict";class Event{constructor(st,Wt){this.target=Wt;this.type=st}}class MessageEvent extends Event{constructor(st,Wt){super("message",Wt);this.data=st}}class CloseEvent extends Event{constructor(st,Wt,Ot){super("close",Ot);this.wasClean=Ot._closeFrameReceived&&Ot._closeFrameSent;this.reason=Wt;this.code=st}}class OpenEvent extends Event{constructor(st){super("open",st)}}class ErrorEvent extends Event{constructor(st,Wt){super("error",Wt);this.message=st.message;this.error=st}}const Wt={addEventListener(st,Wt,Ot){if(typeof Wt!=="function")return;function onMessage(st){Wt.call(this,new MessageEvent(st,this))}function onClose(st,Ot){Wt.call(this,new CloseEvent(st,Ot,this))}function onError(st){Wt.call(this,new ErrorEvent(st,this))}function onOpen(){Wt.call(this,new OpenEvent(this))}const en=Ot&&Ot.once?"once":"on";if(st==="message"){onMessage._listener=Wt;this[en](st,onMessage)}else if(st==="close"){onClose._listener=Wt;this[en](st,onClose)}else if(st==="error"){onError._listener=Wt;this[en](st,onError)}else if(st==="open"){onOpen._listener=Wt;this[en](st,onOpen)}else{this[en](st,Wt)}},removeEventListener(st,Wt){const Ot=this.listeners(st);for(let en=0;en{"use strict";const Wt=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function push(st,Wt,Ot){if(st[Wt]===undefined)st[Wt]=[Ot];else st[Wt].push(Ot)}function parse(st){const Ot=Object.create(null);if(st===undefined||st==="")return Ot;let en=Object.create(null);let tn=false;let nn=false;let an=false;let In;let rn;let cn=-1;let on=-1;let sn=0;for(;sn{let Ot=st[Wt];if(!Array.isArray(Ot))Ot=[Ot];return Ot.map((st=>[Wt].concat(Object.keys(st).map((Wt=>{let Ot=st[Wt];if(!Array.isArray(Ot))Ot=[Ot];return Ot.map((st=>st===true?Wt:`${Wt}=${st}`)).join("; ")}))).join("; "))).join(", ")})).join(", ")}st.exports={format:format,parse:parse}},97733:st=>{"use strict";const Wt=Symbol("kDone");const Ot=Symbol("kRun");class Limiter{constructor(st){this[Wt]=()=>{this.pending--;this[Ot]()};this.concurrency=st||Infinity;this.jobs=[];this.pending=0}add(st){this.jobs.push(st);this[Ot]()}[Ot](){if(this.pending===this.concurrency)return;if(this.jobs.length){const st=this.jobs.shift();this.pending++;st(this[Wt])}}}st.exports=Limiter},88389:(st,Wt,Ot)=>{"use strict";const en=Ot(43106);const tn=Ot(17932);const nn=Ot(97733);const{kStatusCode:an,NOOP:In}=Ot(83400);const rn=Buffer.from([0,0,255,255]);const cn=Symbol("permessage-deflate");const on=Symbol("total-length");const sn=Symbol("callback");const dn=Symbol("buffers");const un=Symbol("error");let pn;class PerMessageDeflate{constructor(st,Wt,Ot){this._maxPayload=Ot|0;this._options=st||{};this._threshold=this._options.threshold!==undefined?this._options.threshold:1024;this._isServer=!!Wt;this._deflate=null;this._inflate=null;this.params=null;if(!pn){const st=this._options.concurrencyLimit!==undefined?this._options.concurrencyLimit:10;pn=new nn(st)}}static get extensionName(){return"permessage-deflate"}offer(){const st={};if(this._options.serverNoContextTakeover){st.server_no_context_takeover=true}if(this._options.clientNoContextTakeover){st.client_no_context_takeover=true}if(this._options.serverMaxWindowBits){st.server_max_window_bits=this._options.serverMaxWindowBits}if(this._options.clientMaxWindowBits){st.client_max_window_bits=this._options.clientMaxWindowBits}else if(this._options.clientMaxWindowBits==null){st.client_max_window_bits=true}return st}accept(st){st=this.normalizeParams(st);this.params=this._isServer?this.acceptAsServer(st):this.acceptAsClient(st);return this.params}cleanup(){if(this._inflate){this._inflate.close();this._inflate=null}if(this._deflate){const st=this._deflate[sn];this._deflate.close();this._deflate=null;if(st){st(new Error("The deflate stream was closed while data was being processed"))}}}acceptAsServer(st){const Wt=this._options;const Ot=st.find((st=>{if(Wt.serverNoContextTakeover===false&&st.server_no_context_takeover||st.server_max_window_bits&&(Wt.serverMaxWindowBits===false||typeof Wt.serverMaxWindowBits==="number"&&Wt.serverMaxWindowBits>st.server_max_window_bits)||typeof Wt.clientMaxWindowBits==="number"&&!st.client_max_window_bits){return false}return true}));if(!Ot){throw new Error("None of the extension offers can be accepted")}if(Wt.serverNoContextTakeover){Ot.server_no_context_takeover=true}if(Wt.clientNoContextTakeover){Ot.client_no_context_takeover=true}if(typeof Wt.serverMaxWindowBits==="number"){Ot.server_max_window_bits=Wt.serverMaxWindowBits}if(typeof Wt.clientMaxWindowBits==="number"){Ot.client_max_window_bits=Wt.clientMaxWindowBits}else if(Ot.client_max_window_bits===true||Wt.clientMaxWindowBits===false){delete Ot.client_max_window_bits}return Ot}acceptAsClient(st){const Wt=st[0];if(this._options.clientNoContextTakeover===false&&Wt.client_no_context_takeover){throw new Error('Unexpected parameter "client_no_context_takeover"')}if(!Wt.client_max_window_bits){if(typeof this._options.clientMaxWindowBits==="number"){Wt.client_max_window_bits=this._options.clientMaxWindowBits}}else if(this._options.clientMaxWindowBits===false||typeof this._options.clientMaxWindowBits==="number"&&Wt.client_max_window_bits>this._options.clientMaxWindowBits){throw new Error('Unexpected or invalid parameter "client_max_window_bits"')}return Wt}normalizeParams(st){st.forEach((st=>{Object.keys(st).forEach((Wt=>{let Ot=st[Wt];if(Ot.length>1){throw new Error(`Parameter "${Wt}" must have only a single value`)}Ot=Ot[0];if(Wt==="client_max_window_bits"){if(Ot!==true){const st=+Ot;if(!Number.isInteger(st)||st<8||st>15){throw new TypeError(`Invalid value for parameter "${Wt}": ${Ot}`)}Ot=st}else if(!this._isServer){throw new TypeError(`Invalid value for parameter "${Wt}": ${Ot}`)}}else if(Wt==="server_max_window_bits"){const st=+Ot;if(!Number.isInteger(st)||st<8||st>15){throw new TypeError(`Invalid value for parameter "${Wt}": ${Ot}`)}Ot=st}else if(Wt==="client_no_context_takeover"||Wt==="server_no_context_takeover"){if(Ot!==true){throw new TypeError(`Invalid value for parameter "${Wt}": ${Ot}`)}}else{throw new Error(`Unknown parameter "${Wt}"`)}st[Wt]=Ot}))}));return st}decompress(st,Wt,Ot){pn.add((en=>{this._decompress(st,Wt,((st,Wt)=>{en();Ot(st,Wt)}))}))}compress(st,Wt,Ot){pn.add((en=>{this._compress(st,Wt,((st,Wt)=>{en();Ot(st,Wt)}))}))}_decompress(st,Wt,Ot){const nn=this._isServer?"client":"server";if(!this._inflate){const st=`${nn}_max_window_bits`;const Wt=typeof this.params[st]!=="number"?en.Z_DEFAULT_WINDOWBITS:this.params[st];this._inflate=en.createInflateRaw({...this._options.zlibInflateOptions,windowBits:Wt});this._inflate[cn]=this;this._inflate[on]=0;this._inflate[dn]=[];this._inflate.on("error",inflateOnError);this._inflate.on("data",inflateOnData)}this._inflate[sn]=Ot;this._inflate.write(st);if(Wt)this._inflate.write(rn);this._inflate.flush((()=>{const st=this._inflate[un];if(st){this._inflate.close();this._inflate=null;Ot(st);return}const en=tn.concat(this._inflate[dn],this._inflate[on]);if(this._inflate._readableState.endEmitted){this._inflate.close();this._inflate=null}else{this._inflate[on]=0;this._inflate[dn]=[];if(Wt&&this.params[`${nn}_no_context_takeover`]){this._inflate.reset()}}Ot(null,en)}))}_compress(st,Wt,Ot){const nn=this._isServer?"server":"client";if(!this._deflate){const st=`${nn}_max_window_bits`;const Wt=typeof this.params[st]!=="number"?en.Z_DEFAULT_WINDOWBITS:this.params[st];this._deflate=en.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:Wt});this._deflate[on]=0;this._deflate[dn]=[];this._deflate.on("error",In);this._deflate.on("data",deflateOnData)}this._deflate[sn]=Ot;this._deflate.write(st);this._deflate.flush(en.Z_SYNC_FLUSH,(()=>{if(!this._deflate){return}let st=tn.concat(this._deflate[dn],this._deflate[on]);if(Wt)st=st.slice(0,st.length-4);this._deflate[sn]=null;this._deflate[on]=0;this._deflate[dn]=[];if(Wt&&this.params[`${nn}_no_context_takeover`]){this._deflate.reset()}Ot(null,st)}))}}st.exports=PerMessageDeflate;function deflateOnData(st){this[dn].push(st);this[on]+=st.length}function inflateOnData(st){this[on]+=st.length;if(this[cn]._maxPayload<1||this[on]<=this[cn]._maxPayload){this[dn].push(st);return}this[un]=new RangeError("Max payload size exceeded");this[un][an]=1009;this.removeListener("data",inflateOnData);this.reset()}function inflateOnError(st){this[cn]._inflate=null;st[an]=1007;this[sn](st)}},18508:(st,Wt,Ot)=>{"use strict";const{Writable:en}=Ot(2203);const tn=Ot(88389);const{BINARY_TYPES:nn,EMPTY_BUFFER:an,kStatusCode:In,kWebSocket:rn}=Ot(83400);const{concat:cn,toArrayBuffer:on,unmask:sn}=Ot(17932);const{isValidStatusCode:dn,isValidUTF8:un}=Ot(91802);const pn=0;const bn=1;const mn=2;const Gn=3;const hn=4;const Zn=5;class Receiver extends en{constructor(st,Wt,Ot,en){super();this._binaryType=st||nn[0];this[rn]=undefined;this._extensions=Wt||{};this._isServer=!!Ot;this._maxPayload=en|0;this._bufferedBytes=0;this._buffers=[];this._compressed=false;this._payloadLength=0;this._mask=undefined;this._fragmented=0;this._masked=false;this._fin=false;this._opcode=0;this._totalPayloadLength=0;this._messageLength=0;this._fragments=[];this._state=pn;this._loop=false}_write(st,Wt,Ot){if(this._opcode===8&&this._state==pn)return Ot();this._bufferedBytes+=st.length;this._buffers.push(st);this.startLoop(Ot)}consume(st){this._bufferedBytes-=st;if(st===this._buffers[0].length)return this._buffers.shift();if(st=Ot.length){Wt.set(this._buffers.shift(),en)}else{Wt.set(new Uint8Array(Ot.buffer,Ot.byteOffset,st),en);this._buffers[0]=Ot.slice(st)}st-=Ot.length}while(st>0);return Wt}startLoop(st){let Wt;this._loop=true;do{switch(this._state){case pn:Wt=this.getInfo();break;case bn:Wt=this.getPayloadLength16();break;case mn:Wt=this.getPayloadLength64();break;case Gn:this.getMask();break;case hn:Wt=this.getData(st);break;default:this._loop=false;return}}while(this._loop);st(Wt)}getInfo(){if(this._bufferedBytes<2){this._loop=false;return}const st=this.consume(2);if((st[0]&48)!==0){this._loop=false;return error(RangeError,"RSV2 and RSV3 must be clear",true,1002)}const Wt=(st[0]&64)===64;if(Wt&&!this._extensions[tn.extensionName]){this._loop=false;return error(RangeError,"RSV1 must be clear",true,1002)}this._fin=(st[0]&128)===128;this._opcode=st[0]&15;this._payloadLength=st[1]&127;if(this._opcode===0){if(Wt){this._loop=false;return error(RangeError,"RSV1 must be clear",true,1002)}if(!this._fragmented){this._loop=false;return error(RangeError,"invalid opcode 0",true,1002)}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){this._loop=false;return error(RangeError,`invalid opcode ${this._opcode}`,true,1002)}this._compressed=Wt}else if(this._opcode>7&&this._opcode<11){if(!this._fin){this._loop=false;return error(RangeError,"FIN must be set",true,1002)}if(Wt){this._loop=false;return error(RangeError,"RSV1 must be clear",true,1002)}if(this._payloadLength>125){this._loop=false;return error(RangeError,`invalid payload length ${this._payloadLength}`,true,1002)}}else{this._loop=false;return error(RangeError,`invalid opcode ${this._opcode}`,true,1002)}if(!this._fin&&!this._fragmented)this._fragmented=this._opcode;this._masked=(st[1]&128)===128;if(this._isServer){if(!this._masked){this._loop=false;return error(RangeError,"MASK must be set",true,1002)}}else if(this._masked){this._loop=false;return error(RangeError,"MASK must be clear",true,1002)}if(this._payloadLength===126)this._state=bn;else if(this._payloadLength===127)this._state=mn;else return this.haveLength()}getPayloadLength16(){if(this._bufferedBytes<2){this._loop=false;return}this._payloadLength=this.consume(2).readUInt16BE(0);return this.haveLength()}getPayloadLength64(){if(this._bufferedBytes<8){this._loop=false;return}const st=this.consume(8);const Wt=st.readUInt32BE(0);if(Wt>Math.pow(2,53-32)-1){this._loop=false;return error(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",false,1009)}this._payloadLength=Wt*Math.pow(2,32)+st.readUInt32BE(4);return this.haveLength()}haveLength(){if(this._payloadLength&&this._opcode<8){this._totalPayloadLength+=this._payloadLength;if(this._totalPayloadLength>this._maxPayload&&this._maxPayload>0){this._loop=false;return error(RangeError,"Max payload size exceeded",false,1009)}}if(this._masked)this._state=Gn;else this._state=hn}getMask(){if(this._bufferedBytes<4){this._loop=false;return}this._mask=this.consume(4);this._state=hn}getData(st){let Wt=an;if(this._payloadLength){if(this._bufferedBytes7)return this.controlMessage(Wt);if(this._compressed){this._state=Zn;this.decompress(Wt,st);return}if(Wt.length){this._messageLength=this._totalPayloadLength;this._fragments.push(Wt)}return this.dataMessage()}decompress(st,Wt){const Ot=this._extensions[tn.extensionName];Ot.decompress(st,this._fin,((st,Ot)=>{if(st)return Wt(st);if(Ot.length){this._messageLength+=Ot.length;if(this._messageLength>this._maxPayload&&this._maxPayload>0){return Wt(error(RangeError,"Max payload size exceeded",false,1009))}this._fragments.push(Ot)}const en=this.dataMessage();if(en)return Wt(en);this.startLoop(Wt)}))}dataMessage(){if(this._fin){const st=this._messageLength;const Wt=this._fragments;this._totalPayloadLength=0;this._messageLength=0;this._fragmented=0;this._fragments=[];if(this._opcode===2){let Ot;if(this._binaryType==="nodebuffer"){Ot=cn(Wt,st)}else if(this._binaryType==="arraybuffer"){Ot=on(cn(Wt,st))}else{Ot=Wt}this.emit("message",Ot)}else{const Ot=cn(Wt,st);if(!un(Ot)){this._loop=false;return error(Error,"invalid UTF-8 sequence",true,1007)}this.emit("message",Ot.toString())}}this._state=pn}controlMessage(st){if(this._opcode===8){this._loop=false;if(st.length===0){this.emit("conclude",1005,"");this.end()}else if(st.length===1){return error(RangeError,"invalid payload length 1",true,1002)}else{const Wt=st.readUInt16BE(0);if(!dn(Wt)){return error(RangeError,`invalid status code ${Wt}`,true,1002)}const Ot=st.slice(2);if(!un(Ot)){return error(Error,"invalid UTF-8 sequence",true,1007)}this.emit("conclude",Wt,Ot.toString());this.end()}}else if(this._opcode===9){this.emit("ping",st)}else{this.emit("pong",st)}this._state=pn}}st.exports=Receiver;function error(st,Wt,Ot,en){const tn=new st(Ot?`Invalid WebSocket frame: ${Wt}`:Wt);Error.captureStackTrace(tn,error);tn[In]=en;return tn}},31780:(st,Wt,Ot)=>{"use strict";const{randomFillSync:en}=Ot(76982);const tn=Ot(88389);const{EMPTY_BUFFER:nn}=Ot(83400);const{isValidStatusCode:an}=Ot(91802);const{mask:In,toBuffer:rn}=Ot(17932);const cn=Buffer.alloc(4);class Sender{constructor(st,Wt){this._extensions=Wt||{};this._socket=st;this._firstFragment=true;this._compress=false;this._bufferedBytes=0;this._deflating=false;this._queue=[]}static frame(st,Wt){const Ot=Wt.mask&&Wt.readOnly;let tn=Wt.mask?6:2;let nn=st.length;if(st.length>=65536){tn+=8;nn=127}else if(st.length>125){tn+=2;nn=126}const an=Buffer.allocUnsafe(Ot?st.length+tn:tn);an[0]=Wt.fin?Wt.opcode|128:Wt.opcode;if(Wt.rsv1)an[0]|=64;an[1]=nn;if(nn===126){an.writeUInt16BE(st.length,2)}else if(nn===127){an.writeUInt32BE(0,2);an.writeUInt32BE(st.length,6)}if(!Wt.mask)return[an,st];en(cn,0,4);an[1]|=128;an[tn-4]=cn[0];an[tn-3]=cn[1];an[tn-2]=cn[2];an[tn-1]=cn[3];if(Ot){In(st,cn,an,tn,st.length);return[an]}In(st,cn,st,0,st.length);return[an,st]}close(st,Wt,Ot,en){let tn;if(st===undefined){tn=nn}else if(typeof st!=="number"||!an(st)){throw new TypeError("First argument must be a valid error code number")}else if(Wt===undefined||Wt===""){tn=Buffer.allocUnsafe(2);tn.writeUInt16BE(st,0)}else{const Ot=Buffer.byteLength(Wt);if(Ot>123){throw new RangeError("The message must not be greater than 123 bytes")}tn=Buffer.allocUnsafe(2+Ot);tn.writeUInt16BE(st,0);tn.write(Wt,2)}if(this._deflating){this.enqueue([this.doClose,tn,Ot,en])}else{this.doClose(tn,Ot,en)}}doClose(st,Wt,Ot){this.sendFrame(Sender.frame(st,{fin:true,rsv1:false,opcode:8,mask:Wt,readOnly:false}),Ot)}ping(st,Wt,Ot){const en=rn(st);if(en.length>125){throw new RangeError("The data size must not be greater than 125 bytes")}if(this._deflating){this.enqueue([this.doPing,en,Wt,rn.readOnly,Ot])}else{this.doPing(en,Wt,rn.readOnly,Ot)}}doPing(st,Wt,Ot,en){this.sendFrame(Sender.frame(st,{fin:true,rsv1:false,opcode:9,mask:Wt,readOnly:Ot}),en)}pong(st,Wt,Ot){const en=rn(st);if(en.length>125){throw new RangeError("The data size must not be greater than 125 bytes")}if(this._deflating){this.enqueue([this.doPong,en,Wt,rn.readOnly,Ot])}else{this.doPong(en,Wt,rn.readOnly,Ot)}}doPong(st,Wt,Ot,en){this.sendFrame(Sender.frame(st,{fin:true,rsv1:false,opcode:10,mask:Wt,readOnly:Ot}),en)}send(st,Wt,Ot){const en=rn(st);const nn=this._extensions[tn.extensionName];let an=Wt.binary?2:1;let In=Wt.compress;if(this._firstFragment){this._firstFragment=false;if(In&&nn){In=en.length>=nn._threshold}this._compress=In}else{In=false;an=0}if(Wt.fin)this._firstFragment=true;if(nn){const st={fin:Wt.fin,rsv1:In,opcode:an,mask:Wt.mask,readOnly:rn.readOnly};if(this._deflating){this.enqueue([this.dispatch,en,this._compress,st,Ot])}else{this.dispatch(en,this._compress,st,Ot)}}else{this.sendFrame(Sender.frame(en,{fin:Wt.fin,rsv1:false,opcode:an,mask:Wt.mask,readOnly:rn.readOnly}),Ot)}}dispatch(st,Wt,Ot,en){if(!Wt){this.sendFrame(Sender.frame(st,Ot),en);return}const nn=this._extensions[tn.extensionName];this._bufferedBytes+=st.length;this._deflating=true;nn.compress(st,Ot.fin,((Wt,tn)=>{if(this._socket.destroyed){const st=new Error("The socket was closed while data was being compressed");if(typeof en==="function")en(st);for(let Wt=0;Wt{"use strict";const{Duplex:en}=Ot(2203);function emitClose(st){st.emit("close")}function duplexOnEnd(){if(!this.destroyed&&this._writableState.finished){this.destroy()}}function duplexOnError(st){this.removeListener("error",duplexOnError);this.destroy();if(this.listenerCount("error")===0){this.emit("error",st)}}function createWebSocketStream(st,Wt){let Ot=true;function receiverOnDrain(){if(Ot)st._socket.resume()}if(st.readyState===st.CONNECTING){st.once("open",(function open(){st._receiver.removeAllListeners("drain");st._receiver.on("drain",receiverOnDrain)}))}else{st._receiver.removeAllListeners("drain");st._receiver.on("drain",receiverOnDrain)}const tn=new en({...Wt,autoDestroy:false,emitClose:false,objectMode:false,writableObjectMode:false});st.on("message",(function message(Wt){if(!tn.push(Wt)){Ot=false;st._socket.pause()}}));st.once("error",(function error(st){if(tn.destroyed)return;tn.destroy(st)}));st.once("close",(function close(){if(tn.destroyed)return;tn.push(null)}));tn._destroy=function(Wt,Ot){if(st.readyState===st.CLOSED){Ot(Wt);process.nextTick(emitClose,tn);return}let en=false;st.once("error",(function error(st){en=true;Ot(st)}));st.once("close",(function close(){if(!en)Ot(Wt);process.nextTick(emitClose,tn)}));st.terminate()};tn._final=function(Wt){if(st.readyState===st.CONNECTING){st.once("open",(function open(){tn._final(Wt)}));return}if(st._socket===null)return;if(st._socket._writableState.finished){Wt();if(tn._readableState.endEmitted)tn.destroy()}else{st._socket.once("finish",(function finish(){Wt()}));st.close()}};tn._read=function(){if(st.readyState===st.OPEN&&!Ot){Ot=true;if(!st._receiver._writableState.needDrain)st._socket.resume()}};tn._write=function(Wt,Ot,en){if(st.readyState===st.CONNECTING){st.once("open",(function open(){tn._write(Wt,Ot,en)}));return}st.send(Wt,en)};tn.on("end",duplexOnEnd);tn.on("error",duplexOnError);return tn}st.exports=createWebSocketStream},91802:(st,Wt,Ot)=>{"use strict";function isValidStatusCode(st){return st>=1e3&&st<=1014&&st!==1004&&st!==1005&&st!==1006||st>=3e3&&st<=4999}function _isValidUTF8(st){const Wt=st.length;let Ot=0;while(Ot=Wt||(st[Ot+1]&192)!==128||(st[Ot+2]&192)!==128||st[Ot]===224&&(st[Ot+1]&224)===128||st[Ot]===237&&(st[Ot+1]&224)===160){return false}Ot+=3}else if((st[Ot]&248)===240){if(Ot+3>=Wt||(st[Ot+1]&192)!==128||(st[Ot+2]&192)!==128||(st[Ot+3]&192)!==128||st[Ot]===240&&(st[Ot+1]&240)===128||st[Ot]===244&&st[Ot+1]>143||st[Ot]>244){return false}Ot+=4}else{return false}}return true}try{let Wt=Ot(62414);if(typeof Wt==="object"){Wt=Wt.Validation.isValidUTF8}st.exports={isValidStatusCode:isValidStatusCode,isValidUTF8(st){return st.length<150?_isValidUTF8(st):Wt(st)}}}catch(Wt){st.exports={isValidStatusCode:isValidStatusCode,isValidUTF8:_isValidUTF8}}},72672:(st,Wt,Ot)=>{"use strict";const en=Ot(24434);const{createHash:tn}=Ot(76982);const{createServer:nn,STATUS_CODES:an}=Ot(58611);const In=Ot(88389);const rn=Ot(9462);const{format:cn,parse:on}=Ot(34752);const{GUID:sn,kWebSocket:dn}=Ot(83400);const un=/^[+/0-9A-Za-z]{22}==$/;class WebSocketServer extends en{constructor(st,Wt){super();st={maxPayload:100*1024*1024,perMessageDeflate:false,handleProtocols:null,clientTracking:true,verifyClient:null,noServer:false,backlog:null,server:null,host:null,path:null,port:null,...st};if(st.port==null&&!st.server&&!st.noServer){throw new TypeError('One of the "port", "server", or "noServer" options must be specified')}if(st.port!=null){this._server=nn(((st,Wt)=>{const Ot=an[426];Wt.writeHead(426,{"Content-Length":Ot.length,"Content-Type":"text/plain"});Wt.end(Ot)}));this._server.listen(st.port,st.host,st.backlog,Wt)}else if(st.server){this._server=st.server}if(this._server){const st=this.emit.bind(this,"connection");this._removeListeners=addListeners(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(Wt,Ot,en)=>{this.handleUpgrade(Wt,Ot,en,st)}})}if(st.perMessageDeflate===true)st.perMessageDeflate={};if(st.clientTracking)this.clients=new Set;this.options=st}address(){if(this.options.noServer){throw new Error('The server is operating in "noServer" mode')}if(!this._server)return null;return this._server.address()}close(st){if(st)this.once("close",st);if(this.clients){for(const st of this.clients)st.terminate()}const Wt=this._server;if(Wt){this._removeListeners();this._removeListeners=this._server=null;if(this.options.port!=null){Wt.close((()=>this.emit("close")));return}}process.nextTick(emitClose,this)}shouldHandle(st){if(this.options.path){const Wt=st.url.indexOf("?");const Ot=Wt!==-1?st.url.slice(0,Wt):st.url;if(Ot!==this.options.path)return false}return true}handleUpgrade(st,Wt,Ot,en){Wt.on("error",socketOnError);const tn=st.headers["sec-websocket-key"]!==undefined?st.headers["sec-websocket-key"].trim():false;const nn=+st.headers["sec-websocket-version"];const an={};if(st.method!=="GET"||st.headers.upgrade.toLowerCase()!=="websocket"||!tn||!un.test(tn)||nn!==8&&nn!==13||!this.shouldHandle(st)){return abortHandshake(Wt,400)}if(this.options.perMessageDeflate){const Ot=new In(this.options.perMessageDeflate,true,this.options.maxPayload);try{const Wt=on(st.headers["sec-websocket-extensions"]);if(Wt[In.extensionName]){Ot.accept(Wt[In.extensionName]);an[In.extensionName]=Ot}}catch(st){return abortHandshake(Wt,400)}}if(this.options.verifyClient){const In={origin:st.headers[`${nn===8?"sec-websocket-origin":"origin"}`],secure:!!(st.socket.authorized||st.socket.encrypted),req:st};if(this.options.verifyClient.length===2){this.options.verifyClient(In,((nn,In,rn,cn)=>{if(!nn){return abortHandshake(Wt,In||401,rn,cn)}this.completeUpgrade(tn,an,st,Wt,Ot,en)}));return}if(!this.options.verifyClient(In))return abortHandshake(Wt,401)}this.completeUpgrade(tn,an,st,Wt,Ot,en)}completeUpgrade(st,Wt,Ot,en,nn,an){if(!en.readable||!en.writable)return en.destroy();if(en[dn]){throw new Error("server.handleUpgrade() was called more than once with the same "+"socket, possibly due to a misconfiguration")}const on=tn("sha1").update(st+sn).digest("base64");const un=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${on}`];const pn=new rn(null);let bn=Ot.headers["sec-websocket-protocol"];if(bn){bn=bn.split(",").map(trim);if(this.options.handleProtocols){bn=this.options.handleProtocols(bn,Ot)}else{bn=bn[0]}if(bn){un.push(`Sec-WebSocket-Protocol: ${bn}`);pn._protocol=bn}}if(Wt[In.extensionName]){const st=Wt[In.extensionName].params;const Ot=cn({[In.extensionName]:[st]});un.push(`Sec-WebSocket-Extensions: ${Ot}`);pn._extensions=Wt}this.emit("headers",un,Ot);en.write(un.concat("\r\n").join("\r\n"));en.removeListener("error",socketOnError);pn.setSocket(en,nn,this.options.maxPayload);if(this.clients){this.clients.add(pn);pn.on("close",(()=>this.clients.delete(pn)))}an(pn,Ot)}}st.exports=WebSocketServer;function addListeners(st,Wt){for(const Ot of Object.keys(Wt))st.on(Ot,Wt[Ot]);return function removeListeners(){for(const Ot of Object.keys(Wt)){st.removeListener(Ot,Wt[Ot])}}}function emitClose(st){st.emit("close")}function socketOnError(){this.destroy()}function abortHandshake(st,Wt,Ot,en){if(st.writable){Ot=Ot||an[Wt];en={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(Ot),...en};st.write(`HTTP/1.1 ${Wt} ${an[Wt]}\r\n`+Object.keys(en).map((st=>`${st}: ${en[st]}`)).join("\r\n")+"\r\n\r\n"+Ot)}st.removeListener("error",socketOnError);st.destroy()}function trim(st){return st.trim()}},9462:(st,Wt,Ot)=>{"use strict";const en=Ot(24434);const tn=Ot(65692);const nn=Ot(58611);const an=Ot(69278);const In=Ot(64756);const{randomBytes:rn,createHash:cn}=Ot(76982);const{URL:on}=Ot(87016);const sn=Ot(88389);const dn=Ot(18508);const un=Ot(31780);const{BINARY_TYPES:pn,EMPTY_BUFFER:bn,GUID:mn,kStatusCode:Gn,kWebSocket:hn,NOOP:Zn}=Ot(83400);const{addEventListener:An,removeEventListener:Wn}=Ot(92755);const{format:Nn,parse:gn}=Ot(34752);const{toBuffer:yn}=Ot(17932);const vn=["CONNECTING","OPEN","CLOSING","CLOSED"];const Yn=[8,13];const En=30*1e3;class WebSocket extends en{constructor(st,Wt,Ot){super();this._binaryType=pn[0];this._closeCode=1006;this._closeFrameReceived=false;this._closeFrameSent=false;this._closeMessage="";this._closeTimer=null;this._extensions={};this._protocol="";this._readyState=WebSocket.CONNECTING;this._receiver=null;this._sender=null;this._socket=null;if(st!==null){this._bufferedAmount=0;this._isServer=false;this._redirects=0;if(Array.isArray(Wt)){Wt=Wt.join(", ")}else if(typeof Wt==="object"&&Wt!==null){Ot=Wt;Wt=undefined}initAsClient(this,st,Wt,Ot)}else{this._isServer=true}}get binaryType(){return this._binaryType}set binaryType(st){if(!pn.includes(st))return;this._binaryType=st;if(this._receiver)this._receiver._binaryType=st}get bufferedAmount(){if(!this._socket)return this._bufferedAmount;return this._socket._writableState.length+this._sender._bufferedBytes}get extensions(){return Object.keys(this._extensions).join()}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(st,Wt,Ot){const en=new dn(this.binaryType,this._extensions,this._isServer,Ot);this._sender=new un(st,this._extensions);this._receiver=en;this._socket=st;en[hn]=this;st[hn]=this;en.on("conclude",receiverOnConclude);en.on("drain",receiverOnDrain);en.on("error",receiverOnError);en.on("message",receiverOnMessage);en.on("ping",receiverOnPing);en.on("pong",receiverOnPong);st.setTimeout(0);st.setNoDelay();if(Wt.length>0)st.unshift(Wt);st.on("close",socketOnClose);st.on("data",socketOnData);st.on("end",socketOnEnd);st.on("error",socketOnError);this._readyState=WebSocket.OPEN;this.emit("open")}emitClose(){if(!this._socket){this._readyState=WebSocket.CLOSED;this.emit("close",this._closeCode,this._closeMessage);return}if(this._extensions[sn.extensionName]){this._extensions[sn.extensionName].cleanup()}this._receiver.removeAllListeners();this._readyState=WebSocket.CLOSED;this.emit("close",this._closeCode,this._closeMessage)}close(st,Wt){if(this.readyState===WebSocket.CLOSED)return;if(this.readyState===WebSocket.CONNECTING){const st="WebSocket was closed before the connection was established";return abortHandshake(this,this._req,st)}if(this.readyState===WebSocket.CLOSING){if(this._closeFrameSent&&this._closeFrameReceived)this._socket.end();return}this._readyState=WebSocket.CLOSING;this._sender.close(st,Wt,!this._isServer,(st=>{if(st)return;this._closeFrameSent=true;if(this._closeFrameReceived)this._socket.end()}));this._closeTimer=setTimeout(this._socket.destroy.bind(this._socket),En)}ping(st,Wt,Ot){if(this.readyState===WebSocket.CONNECTING){throw new Error("WebSocket is not open: readyState 0 (CONNECTING)")}if(typeof st==="function"){Ot=st;st=Wt=undefined}else if(typeof Wt==="function"){Ot=Wt;Wt=undefined}if(typeof st==="number")st=st.toString();if(this.readyState!==WebSocket.OPEN){sendAfterClose(this,st,Ot);return}if(Wt===undefined)Wt=!this._isServer;this._sender.ping(st||bn,Wt,Ot)}pong(st,Wt,Ot){if(this.readyState===WebSocket.CONNECTING){throw new Error("WebSocket is not open: readyState 0 (CONNECTING)")}if(typeof st==="function"){Ot=st;st=Wt=undefined}else if(typeof Wt==="function"){Ot=Wt;Wt=undefined}if(typeof st==="number")st=st.toString();if(this.readyState!==WebSocket.OPEN){sendAfterClose(this,st,Ot);return}if(Wt===undefined)Wt=!this._isServer;this._sender.pong(st||bn,Wt,Ot)}send(st,Wt,Ot){if(this.readyState===WebSocket.CONNECTING){throw new Error("WebSocket is not open: readyState 0 (CONNECTING)")}if(typeof Wt==="function"){Ot=Wt;Wt={}}if(typeof st==="number")st=st.toString();if(this.readyState!==WebSocket.OPEN){sendAfterClose(this,st,Ot);return}const en={binary:typeof st!=="string",mask:!this._isServer,compress:true,fin:true,...Wt};if(!this._extensions[sn.extensionName]){en.compress=false}this._sender.send(st||bn,en,Ot)}terminate(){if(this.readyState===WebSocket.CLOSED)return;if(this.readyState===WebSocket.CONNECTING){const st="WebSocket was closed before the connection was established";return abortHandshake(this,this._req,st)}if(this._socket){this._readyState=WebSocket.CLOSING;this._socket.destroy()}}}vn.forEach(((st,Wt)=>{const Ot={enumerable:true,value:Wt};Object.defineProperty(WebSocket.prototype,st,Ot);Object.defineProperty(WebSocket,st,Ot)}));["binaryType","bufferedAmount","extensions","protocol","readyState","url"].forEach((st=>{Object.defineProperty(WebSocket.prototype,st,{enumerable:true})}));["open","error","close","message"].forEach((st=>{Object.defineProperty(WebSocket.prototype,`on${st}`,{configurable:true,enumerable:true,get(){const Wt=this.listeners(st);for(let st=0;st{abortHandshake(st,Zn,"Opening handshake has timed out")}))}Zn.on("error",(Wt=>{if(Zn===null||Zn.aborted)return;Zn=st._req=null;st._readyState=WebSocket.CLOSING;st.emit("error",Wt);st.emitClose()}));Zn.on("response",(tn=>{const nn=tn.headers.location;const In=tn.statusCode;if(nn&&an.followRedirects&&In>=300&&In<400){if(++st._redirects>an.maxRedirects){abortHandshake(st,Zn,"Maximum redirects exceeded");return}Zn.abort();const tn=new on(nn,Wt);initAsClient(st,tn,Ot,en)}else if(!st.emit("unexpected-response",Zn,tn)){abortHandshake(st,Zn,`Unexpected server response: ${tn.statusCode}`)}}));Zn.on("upgrade",((Wt,en,tn)=>{st.emit("upgrade",Wt);if(st.readyState!==WebSocket.CONNECTING)return;Zn=st._req=null;const nn=cn("sha1").update(bn+mn).digest("base64");if(Wt.headers["sec-websocket-accept"]!==nn){abortHandshake(st,en,"Invalid Sec-WebSocket-Accept header");return}const In=Wt.headers["sec-websocket-protocol"];const rn=(Ot||"").split(/, */);let on;if(!Ot&&In){on="Server sent a subprotocol but none was requested"}else if(Ot&&!In){on="Server sent no subprotocol"}else if(In&&!rn.includes(In)){on="Server sent an invalid subprotocol"}if(on){abortHandshake(st,en,on);return}if(In)st._protocol=In;if(hn){try{const Ot=gn(Wt.headers["sec-websocket-extensions"]);if(Ot[sn.extensionName]){hn.accept(Ot[sn.extensionName]);st._extensions[sn.extensionName]=hn}}catch(Wt){abortHandshake(st,en,"Invalid Sec-WebSocket-Extensions header");return}}st.setSocket(en,tn,an.maxPayload)}))}function netConnect(st){st.path=st.socketPath;return an.connect(st)}function tlsConnect(st){st.path=undefined;if(!st.servername&&st.servername!==""){st.servername=an.isIP(st.host)?"":st.host}return In.connect(st)}function abortHandshake(st,Wt,Ot){st._readyState=WebSocket.CLOSING;const en=new Error(Ot);Error.captureStackTrace(en,abortHandshake);if(Wt.setHeader){Wt.abort();if(Wt.socket&&!Wt.socket.destroyed){Wt.socket.destroy()}Wt.once("abort",st.emitClose.bind(st));st.emit("error",en)}else{Wt.destroy(en);Wt.once("error",st.emit.bind(st,"error"));Wt.once("close",st.emitClose.bind(st))}}function sendAfterClose(st,Wt,Ot){if(Wt){const Ot=yn(Wt).length;if(st._socket)st._sender._bufferedBytes+=Ot;else st._bufferedAmount+=Ot}if(Ot){const Wt=new Error(`WebSocket is not open: readyState ${st.readyState} `+`(${vn[st.readyState]})`);Ot(Wt)}}function receiverOnConclude(st,Wt){const Ot=this[hn];Ot._socket.removeListener("data",socketOnData);Ot._socket.resume();Ot._closeFrameReceived=true;Ot._closeMessage=Wt;Ot._closeCode=st;if(st===1005)Ot.close();else Ot.close(st,Wt)}function receiverOnDrain(){this[hn]._socket.resume()}function receiverOnError(st){const Wt=this[hn];Wt._socket.removeListener("data",socketOnData);Wt._readyState=WebSocket.CLOSING;Wt._closeCode=st[Gn];Wt.emit("error",st);Wt._socket.destroy()}function receiverOnFinish(){this[hn].emitClose()}function receiverOnMessage(st){this[hn].emit("message",st)}function receiverOnPing(st){const Wt=this[hn];Wt.pong(st,!Wt._isServer,Zn);Wt.emit("ping",st)}function receiverOnPong(st){this[hn].emit("pong",st)}function socketOnClose(){const st=this[hn];this.removeListener("close",socketOnClose);this.removeListener("end",socketOnEnd);st._readyState=WebSocket.CLOSING;st._socket.read();st._receiver.end();this.removeListener("data",socketOnData);this[hn]=undefined;clearTimeout(st._closeTimer);if(st._receiver._writableState.finished||st._receiver._writableState.errorEmitted){st.emitClose()}else{st._receiver.on("error",receiverOnFinish);st._receiver.on("finish",receiverOnFinish)}}function socketOnData(st){if(!this[hn]._receiver.write(st)){this.pause()}}function socketOnEnd(){const st=this[hn];st._readyState=WebSocket.CLOSING;st._receiver.end();this.end()}function socketOnError(){const st=this[hn];this.removeListener("error",socketOnError);this.on("error",Zn);if(st){st._readyState=WebSocket.CLOSING;this.destroy()}}},53728:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.shuffled=Wt.randomBytes=void 0;var en=Ot(90005);Object.defineProperty(Wt,"randomBytes",{enumerable:true,get:function(){return en.randomBytes}});var tn=Ot(61081);Object.defineProperty(Wt,"shuffled",{enumerable:true,get:function(){return tn.shuffled}})},90005:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.randomBytes=void 0;var en=Ot(76982);var tn=Ot(42006);function randomBytes(st){return(0,tn.arrayify)((0,en.randomBytes)(st))}Wt.randomBytes=randomBytes},61081:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.shuffled=void 0;function shuffled(st){st=st.slice();for(var Wt=st.length-1;Wt>0;Wt--){var Ot=Math.floor(Math.random()*(Wt+1));var en=st[Wt];st[Wt]=st[Ot];st[Ot]=en}return st}Wt.shuffled=shuffled},23852:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.version=void 0;Wt.version="rlp/5.7.0"},37659:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.decode=Wt.encode=void 0;var en=Ot(42006);var tn=Ot(76127);var nn=Ot(23852);var an=new tn.Logger(nn.version);function arrayifyInteger(st){var Wt=[];while(st){Wt.unshift(st&255);st>>=8}return Wt}function unarrayifyInteger(st,Wt,Ot){var en=0;for(var tn=0;tnWt+1+en){an.throwError("child data too short",tn.Logger.errors.BUFFER_OVERRUN,{})}}return{consumed:1+en,result:nn}}function _decode(st,Wt){if(st.length===0){an.throwError("data too short",tn.Logger.errors.BUFFER_OVERRUN,{})}if(st[Wt]>=248){var Ot=st[Wt]-247;if(Wt+1+Ot>st.length){an.throwError("data short segment too short",tn.Logger.errors.BUFFER_OVERRUN,{})}var nn=unarrayifyInteger(st,Wt+1,Ot);if(Wt+1+Ot+nn>st.length){an.throwError("data long segment too short",tn.Logger.errors.BUFFER_OVERRUN,{})}return _decodeChildren(st,Wt,Wt+1+Ot,Ot+nn)}else if(st[Wt]>=192){var In=st[Wt]-192;if(Wt+1+In>st.length){an.throwError("data array too short",tn.Logger.errors.BUFFER_OVERRUN,{})}return _decodeChildren(st,Wt,Wt+1,In)}else if(st[Wt]>=184){var Ot=st[Wt]-183;if(Wt+1+Ot>st.length){an.throwError("data array too short",tn.Logger.errors.BUFFER_OVERRUN,{})}var rn=unarrayifyInteger(st,Wt+1,Ot);if(Wt+1+Ot+rn>st.length){an.throwError("data array too short",tn.Logger.errors.BUFFER_OVERRUN,{})}var cn=(0,en.hexlify)(st.slice(Wt+1+Ot,Wt+1+Ot+rn));return{consumed:1+Ot+rn,result:cn}}else if(st[Wt]>=128){var on=st[Wt]-128;if(Wt+1+on>st.length){an.throwError("data too short",tn.Logger.errors.BUFFER_OVERRUN,{})}var cn=(0,en.hexlify)(st.slice(Wt+1,Wt+1+on));return{consumed:1+on,result:cn}}return{consumed:1,result:(0,en.hexlify)(st[Wt])}}function decode(st){var Wt=(0,en.arrayify)(st);var Ot=_decode(Wt,0);if(Ot.consumed!==Wt.length){an.throwArgumentError("invalid rlp data","data",st)}return Ot.result}Wt.decode=decode},91888:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.version=void 0;Wt.version="sha2/5.7.0"},66935:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.SupportedAlgorithm=Wt.sha512=Wt.sha256=Wt.ripemd160=Wt.computeHmac=void 0;var en=Ot(77943);Object.defineProperty(Wt,"computeHmac",{enumerable:true,get:function(){return en.computeHmac}});Object.defineProperty(Wt,"ripemd160",{enumerable:true,get:function(){return en.ripemd160}});Object.defineProperty(Wt,"sha256",{enumerable:true,get:function(){return en.sha256}});Object.defineProperty(Wt,"sha512",{enumerable:true,get:function(){return en.sha512}});var tn=Ot(27310);Object.defineProperty(Wt,"SupportedAlgorithm",{enumerable:true,get:function(){return tn.SupportedAlgorithm}})},77943:function(st,Wt,Ot){"use strict";var en=this&&this.__importDefault||function(st){return st&&st.__esModule?st:{default:st}};Object.defineProperty(Wt,"__esModule",{value:true});Wt.computeHmac=Wt.sha512=Wt.sha256=Wt.ripemd160=void 0;var tn=Ot(76982);var nn=en(Ot(27477));var an=Ot(42006);var In=Ot(27310);var rn=Ot(76127);var cn=Ot(91888);var on=new rn.Logger(cn.version);function ripemd160(st){return"0x"+nn.default.ripemd160().update((0,an.arrayify)(st)).digest("hex")}Wt.ripemd160=ripemd160;function sha256(st){return"0x"+(0,tn.createHash)("sha256").update(Buffer.from((0,an.arrayify)(st))).digest("hex")}Wt.sha256=sha256;function sha512(st){return"0x"+(0,tn.createHash)("sha512").update(Buffer.from((0,an.arrayify)(st))).digest("hex")}Wt.sha512=sha512;function computeHmac(st,Wt,Ot){if(!In.SupportedAlgorithm[st]){on.throwError("unsupported algorithm - "+st,rn.Logger.errors.UNSUPPORTED_OPERATION,{operation:"computeHmac",algorithm:st})}return"0x"+(0,tn.createHmac)(st,Buffer.from((0,an.arrayify)(Wt))).update(Buffer.from((0,an.arrayify)(Ot))).digest("hex")}Wt.computeHmac=computeHmac},27310:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.SupportedAlgorithm=void 0;var Ot;(function(st){st["sha256"]="sha256";st["sha512"]="sha512"})(Ot=Wt.SupportedAlgorithm||(Wt.SupportedAlgorithm={}))},53045:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.version=void 0;Wt.version="signing-key/5.7.0"},71848:function(st,Wt,Ot){"use strict";var en=this&&this.__importDefault||function(st){return st&&st.__esModule?st:{default:st}};Object.defineProperty(Wt,"__esModule",{value:true});Wt.EC=void 0;var tn=en(Ot(57034));var nn=tn.default.ec;Wt.EC=nn},63928:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.computePublicKey=Wt.recoverPublicKey=Wt.SigningKey=void 0;var en=Ot(71848);var tn=Ot(42006);var nn=Ot(61338);var an=Ot(76127);var In=Ot(53045);var rn=new an.Logger(In.version);var cn=null;function getCurve(){if(!cn){cn=new en.EC("secp256k1")}return cn}var on=function(){function SigningKey(st){(0,nn.defineReadOnly)(this,"curve","secp256k1");(0,nn.defineReadOnly)(this,"privateKey",(0,tn.hexlify)(st));if((0,tn.hexDataLength)(this.privateKey)!==32){rn.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]")}var Wt=getCurve().keyFromPrivate((0,tn.arrayify)(this.privateKey));(0,nn.defineReadOnly)(this,"publicKey","0x"+Wt.getPublic(false,"hex"));(0,nn.defineReadOnly)(this,"compressedPublicKey","0x"+Wt.getPublic(true,"hex"));(0,nn.defineReadOnly)(this,"_isSigningKey",true)}SigningKey.prototype._addPoint=function(st){var Wt=getCurve().keyFromPublic((0,tn.arrayify)(this.publicKey));var Ot=getCurve().keyFromPublic((0,tn.arrayify)(st));return"0x"+Wt.pub.add(Ot.pub).encodeCompressed("hex")};SigningKey.prototype.signDigest=function(st){var Wt=getCurve().keyFromPrivate((0,tn.arrayify)(this.privateKey));var Ot=(0,tn.arrayify)(st);if(Ot.length!==32){rn.throwArgumentError("bad digest length","digest",st)}var en=Wt.sign(Ot,{canonical:true});return(0,tn.splitSignature)({recoveryParam:en.recoveryParam,r:(0,tn.hexZeroPad)("0x"+en.r.toString(16),32),s:(0,tn.hexZeroPad)("0x"+en.s.toString(16),32)})};SigningKey.prototype.computeSharedSecret=function(st){var Wt=getCurve().keyFromPrivate((0,tn.arrayify)(this.privateKey));var Ot=getCurve().keyFromPublic((0,tn.arrayify)(computePublicKey(st)));return(0,tn.hexZeroPad)("0x"+Wt.derive(Ot.getPublic()).toString(16),32)};SigningKey.isSigningKey=function(st){return!!(st&&st._isSigningKey)};return SigningKey}();Wt.SigningKey=on;function recoverPublicKey(st,Wt){var Ot=(0,tn.splitSignature)(Wt);var en={r:(0,tn.arrayify)(Ot.r),s:(0,tn.arrayify)(Ot.s)};return"0x"+getCurve().recoverPubKey((0,tn.arrayify)(st),en,Ot.recoveryParam).encode("hex",false)}Wt.recoverPublicKey=recoverPublicKey;function computePublicKey(st,Wt){var Ot=(0,tn.arrayify)(st);if(Ot.length===32){var en=new on(Ot);if(Wt){return"0x"+getCurve().keyFromPrivate(Ot).getPublic(true,"hex")}return en.publicKey}else if(Ot.length===33){if(Wt){return(0,tn.hexlify)(Ot)}return"0x"+getCurve().keyFromPublic(Ot).getPublic(false,"hex")}else if(Ot.length===65){if(!Wt){return(0,tn.hexlify)(Ot)}return"0x"+getCurve().keyFromPublic(Ot).getPublic(true,"hex")}return rn.throwArgumentError("invalid public or private key","key","[REDACTED]")}Wt.computePublicKey=computePublicKey},31515:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.version=void 0;Wt.version="solidity/5.7.0"},18550:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.sha256=Wt.keccak256=Wt.pack=void 0;var en=Ot(18202);var tn=Ot(42006);var nn=Ot(56938);var an=Ot(66935);var In=Ot(13859);var rn=new RegExp("^bytes([0-9]+)$");var cn=new RegExp("^(u?int)([0-9]*)$");var on=new RegExp("^(.*)\\[([0-9]*)\\]$");var sn="0000000000000000000000000000000000000000000000000000000000000000";var dn=Ot(76127);var un=Ot(31515);var pn=new dn.Logger(un.version);function _pack(st,Wt,Ot){switch(st){case"address":if(Ot){return(0,tn.zeroPad)(Wt,32)}return(0,tn.arrayify)(Wt);case"string":return(0,In.toUtf8Bytes)(Wt);case"bytes":return(0,tn.arrayify)(Wt);case"bool":Wt=Wt?"0x01":"0x00";if(Ot){return(0,tn.zeroPad)(Wt,32)}return(0,tn.arrayify)(Wt)}var nn=st.match(cn);if(nn){var an=parseInt(nn[2]||"256");if(nn[2]&&String(an)!==nn[2]||an%8!==0||an===0||an>256){pn.throwArgumentError("invalid number type","type",st)}if(Ot){an=256}Wt=en.BigNumber.from(Wt).toTwos(an);return(0,tn.zeroPad)(Wt,an/8)}nn=st.match(rn);if(nn){var an=parseInt(nn[1]);if(String(an)!==nn[1]||an===0||an>32){pn.throwArgumentError("invalid bytes type","type",st)}if((0,tn.arrayify)(Wt).byteLength!==an){pn.throwArgumentError("invalid value for "+st,"value",Wt)}if(Ot){return(0,tn.arrayify)((Wt+sn).substring(0,66))}return Wt}nn=st.match(on);if(nn&&Array.isArray(Wt)){var dn=nn[1];var un=parseInt(nn[2]||String(Wt.length));if(un!=Wt.length){pn.throwArgumentError("invalid array length for "+st,"value",Wt)}var bn=[];Wt.forEach((function(st){bn.push(_pack(dn,st,true))}));return(0,tn.concat)(bn)}return pn.throwArgumentError("invalid type","type",st)}function pack(st,Wt){if(st.length!=Wt.length){pn.throwArgumentError("wrong number of values; expected ${ types.length }","values",Wt)}var Ot=[];st.forEach((function(st,en){Ot.push(_pack(st,Wt[en]))}));return(0,tn.hexlify)((0,tn.concat)(Ot))}Wt.pack=pack;function keccak256(st,Wt){return(0,nn.keccak256)(pack(st,Wt))}Wt.keccak256=keccak256;function sha256(st,Wt){return(0,an.sha256)(pack(st,Wt))}Wt.sha256=sha256},75988:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.version=void 0;Wt.version="strings/5.7.0"},94145:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.parseBytes32String=Wt.formatBytes32String=void 0;var en=Ot(99848);var tn=Ot(42006);var nn=Ot(91996);function formatBytes32String(st){var Wt=(0,nn.toUtf8Bytes)(st);if(Wt.length>31){throw new Error("bytes32 string must be less than 32 bytes")}return(0,tn.hexlify)((0,tn.concat)([Wt,en.HashZero]).slice(0,32))}Wt.formatBytes32String=formatBytes32String;function parseBytes32String(st){var Wt=(0,tn.arrayify)(st);if(Wt.length!==32){throw new Error("invalid bytes32 - not 32 bytes long")}if(Wt[31]!==0){throw new Error("invalid bytes32 string - no null terminator")}var Ot=31;while(Wt[Ot-1]===0){Ot--}return(0,nn.toUtf8String)(Wt.slice(0,Ot))}Wt.parseBytes32String=parseBytes32String},1063:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.nameprep=Wt._nameprepTableC=Wt._nameprepTableB2=Wt._nameprepTableA1=void 0;var en=Ot(91996);function bytes2(st){if(st.length%4!==0){throw new Error("bad data")}var Wt=[];for(var Ot=0;Ot=Ot&&st<=Ot+tn.h&&(st-Ot)%(tn.d||1)===0){if(tn.e&&tn.e.indexOf(st-Ot)!==-1){continue}return tn}}return null}var tn=createRangeTable("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d");var nn="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map((function(st){return parseInt(st,16)}));var an=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}];var In=createTable("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3");var rn=createTable("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7");var cn=createTable("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",bytes2);var on=createRangeTable("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function flatten(st){return st.reduce((function(st,Wt){Wt.forEach((function(Wt){st.push(Wt)}));return st}),[])}function _nameprepTableA1(st){return!!matchMap(st,tn)}Wt._nameprepTableA1=_nameprepTableA1;function _nameprepTableB2(st){var Wt=matchMap(st,an);if(Wt){return[st+Wt.s]}var Ot=In[st];if(Ot){return Ot}var en=rn[st];if(en){return[st+en[0]]}var tn=cn[st];if(tn){return tn}return null}Wt._nameprepTableB2=_nameprepTableB2;function _nameprepTableC(st){return!!matchMap(st,on)}Wt._nameprepTableC=_nameprepTableC;function nameprep(st){if(st.match(/^[a-z0-9-]*$/i)&&st.length<=59){return st.toLowerCase()}var Wt=(0,en.toUtf8CodePoints)(st);Wt=flatten(Wt.map((function(st){if(nn.indexOf(st)>=0){return[]}if(st>=65024&&st<=65039){return[]}var Wt=_nameprepTableB2(st);if(Wt){return Wt}return[st]})));Wt=(0,en.toUtf8CodePoints)((0,en._toUtf8String)(Wt),en.UnicodeNormalizationForm.NFKC);Wt.forEach((function(st){if(_nameprepTableC(st)){throw new Error("STRINGPREP_CONTAINS_PROHIBITED")}}));Wt.forEach((function(st){if(_nameprepTableA1(st)){throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")}}));var Ot=(0,en._toUtf8String)(Wt);if(Ot.substring(0,1)==="-"||Ot.substring(2,4)==="--"||Ot.substring(Ot.length-1)==="-"){throw new Error("invalid hyphen")}return Ot}Wt.nameprep=nameprep},13859:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.nameprep=Wt.parseBytes32String=Wt.formatBytes32String=Wt.UnicodeNormalizationForm=Wt.Utf8ErrorReason=Wt.Utf8ErrorFuncs=Wt.toUtf8String=Wt.toUtf8CodePoints=Wt.toUtf8Bytes=Wt._toEscapedUtf8String=void 0;var en=Ot(94145);Object.defineProperty(Wt,"formatBytes32String",{enumerable:true,get:function(){return en.formatBytes32String}});Object.defineProperty(Wt,"parseBytes32String",{enumerable:true,get:function(){return en.parseBytes32String}});var tn=Ot(1063);Object.defineProperty(Wt,"nameprep",{enumerable:true,get:function(){return tn.nameprep}});var nn=Ot(91996);Object.defineProperty(Wt,"_toEscapedUtf8String",{enumerable:true,get:function(){return nn._toEscapedUtf8String}});Object.defineProperty(Wt,"toUtf8Bytes",{enumerable:true,get:function(){return nn.toUtf8Bytes}});Object.defineProperty(Wt,"toUtf8CodePoints",{enumerable:true,get:function(){return nn.toUtf8CodePoints}});Object.defineProperty(Wt,"toUtf8String",{enumerable:true,get:function(){return nn.toUtf8String}});Object.defineProperty(Wt,"UnicodeNormalizationForm",{enumerable:true,get:function(){return nn.UnicodeNormalizationForm}});Object.defineProperty(Wt,"Utf8ErrorFuncs",{enumerable:true,get:function(){return nn.Utf8ErrorFuncs}});Object.defineProperty(Wt,"Utf8ErrorReason",{enumerable:true,get:function(){return nn.Utf8ErrorReason}})},91996:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.toUtf8CodePoints=Wt.toUtf8String=Wt._toUtf8String=Wt._toEscapedUtf8String=Wt.toUtf8Bytes=Wt.Utf8ErrorFuncs=Wt.Utf8ErrorReason=Wt.UnicodeNormalizationForm=void 0;var en=Ot(42006);var tn=Ot(76127);var nn=Ot(75988);var an=new tn.Logger(nn.version);var In;(function(st){st["current"]="";st["NFC"]="NFC";st["NFD"]="NFD";st["NFKC"]="NFKC";st["NFKD"]="NFKD"})(In=Wt.UnicodeNormalizationForm||(Wt.UnicodeNormalizationForm={}));var rn;(function(st){st["UNEXPECTED_CONTINUE"]="unexpected continuation byte";st["BAD_PREFIX"]="bad codepoint prefix";st["OVERRUN"]="string overrun";st["MISSING_CONTINUE"]="missing continuation byte";st["OUT_OF_RANGE"]="out of UTF-8 range";st["UTF16_SURROGATE"]="UTF-16 surrogate";st["OVERLONG"]="overlong representation"})(rn=Wt.Utf8ErrorReason||(Wt.Utf8ErrorReason={}));function errorFunc(st,Wt,Ot,en,tn){return an.throwArgumentError("invalid codepoint at offset "+Wt+"; "+st,"bytes",Ot)}function ignoreFunc(st,Wt,Ot,en,tn){if(st===rn.BAD_PREFIX||st===rn.UNEXPECTED_CONTINUE){var nn=0;for(var an=Wt+1;an>6!==2){break}nn++}return nn}if(st===rn.OVERRUN){return Ot.length-Wt-1}return 0}function replaceFunc(st,Wt,Ot,en,tn){if(st===rn.OVERLONG){en.push(tn);return 0}en.push(65533);return ignoreFunc(st,Wt,Ot,en,tn)}Wt.Utf8ErrorFuncs=Object.freeze({error:errorFunc,ignore:ignoreFunc,replace:replaceFunc});function getUtf8CodePoints(st,Ot){if(Ot==null){Ot=Wt.Utf8ErrorFuncs.error}st=(0,en.arrayify)(st);var tn=[];var nn=0;while(nn>7===0){tn.push(an);continue}var In=null;var cn=null;if((an&224)===192){In=1;cn=127}else if((an&240)===224){In=2;cn=2047}else if((an&248)===240){In=3;cn=65535}else{if((an&192)===128){nn+=Ot(rn.UNEXPECTED_CONTINUE,nn-1,st,tn)}else{nn+=Ot(rn.BAD_PREFIX,nn-1,st,tn)}continue}if(nn-1+In>=st.length){nn+=Ot(rn.OVERRUN,nn-1,st,tn);continue}var on=an&(1<<8-In-1)-1;for(var sn=0;sn1114111){nn+=Ot(rn.OUT_OF_RANGE,nn-1-In,st,tn,on);continue}if(on>=55296&&on<=57343){nn+=Ot(rn.UTF16_SURROGATE,nn-1-In,st,tn,on);continue}if(on<=cn){nn+=Ot(rn.OVERLONG,nn-1-In,st,tn,on);continue}tn.push(on)}return tn}function toUtf8Bytes(st,Wt){if(Wt===void 0){Wt=In.current}if(Wt!=In.current){an.checkNormalize();st=st.normalize(Wt)}var Ot=[];for(var tn=0;tn>6|192);Ot.push(nn&63|128)}else if((nn&64512)==55296){tn++;var rn=st.charCodeAt(tn);if(tn>=st.length||(rn&64512)!==56320){throw new Error("invalid utf-8 string")}var cn=65536+((nn&1023)<<10)+(rn&1023);Ot.push(cn>>18|240);Ot.push(cn>>12&63|128);Ot.push(cn>>6&63|128);Ot.push(cn&63|128)}else{Ot.push(nn>>12|224);Ot.push(nn>>6&63|128);Ot.push(nn&63|128)}}return(0,en.arrayify)(Ot)}Wt.toUtf8Bytes=toUtf8Bytes;function escapeChar(st){var Wt="0000"+st.toString(16);return"\\u"+Wt.substring(Wt.length-4)}function _toEscapedUtf8String(st,Wt){return'"'+getUtf8CodePoints(st,Wt).map((function(st){if(st<256){switch(st){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(st>=32&&st<127){return String.fromCharCode(st)}}if(st<=65535){return escapeChar(st)}st-=65536;return escapeChar((st>>10&1023)+55296)+escapeChar((st&1023)+56320)})).join("")+'"'}Wt._toEscapedUtf8String=_toEscapedUtf8String;function _toUtf8String(st){return st.map((function(st){if(st<=65535){return String.fromCharCode(st)}st-=65536;return String.fromCharCode((st>>10&1023)+55296,(st&1023)+56320)})).join("")}Wt._toUtf8String=_toUtf8String;function toUtf8String(st,Wt){return _toUtf8String(getUtf8CodePoints(st,Wt))}Wt.toUtf8String=toUtf8String;function toUtf8CodePoints(st,Wt){if(Wt===void 0){Wt=In.current}return getUtf8CodePoints(toUtf8Bytes(st,Wt))}Wt.toUtf8CodePoints=toUtf8CodePoints},63303:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.version=void 0;Wt.version="transactions/5.7.0"},62394:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;Object.defineProperty(st,en,{enumerable:true,get:function(){return Wt[Ot]}})}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__setModuleDefault||(Object.create?function(st,Wt){Object.defineProperty(st,"default",{enumerable:true,value:Wt})}:function(st,Wt){st["default"]=Wt});var nn=this&&this.__importStar||function(st){if(st&&st.__esModule)return st;var Wt={};if(st!=null)for(var Ot in st)if(Ot!=="default"&&Object.prototype.hasOwnProperty.call(st,Ot))en(Wt,st,Ot);tn(Wt,st);return Wt};Object.defineProperty(Wt,"__esModule",{value:true});Wt.parse=Wt.serialize=Wt.accessListify=Wt.recoverAddress=Wt.computeAddress=Wt.TransactionTypes=void 0;var an=Ot(75745);var In=Ot(18202);var rn=Ot(42006);var cn=Ot(99848);var on=Ot(56938);var sn=Ot(61338);var dn=nn(Ot(37659));var un=Ot(63928);var pn=Ot(76127);var bn=Ot(63303);var mn=new pn.Logger(bn.version);var Gn;(function(st){st[st["legacy"]=0]="legacy";st[st["eip2930"]=1]="eip2930";st[st["eip1559"]=2]="eip1559"})(Gn=Wt.TransactionTypes||(Wt.TransactionTypes={}));function handleAddress(st){if(st==="0x"){return null}return(0,an.getAddress)(st)}function handleNumber(st){if(st==="0x"){return cn.Zero}return In.BigNumber.from(st)}var hn=[{name:"nonce",maxLength:32,numeric:true},{name:"gasPrice",maxLength:32,numeric:true},{name:"gasLimit",maxLength:32,numeric:true},{name:"to",length:20},{name:"value",maxLength:32,numeric:true},{name:"data"}];var Zn={chainId:true,data:true,gasLimit:true,gasPrice:true,nonce:true,to:true,type:true,value:true};function computeAddress(st){var Wt=(0,un.computePublicKey)(st);return(0,an.getAddress)((0,rn.hexDataSlice)((0,on.keccak256)((0,rn.hexDataSlice)(Wt,1)),12))}Wt.computeAddress=computeAddress;function recoverAddress(st,Wt){return computeAddress((0,un.recoverPublicKey)((0,rn.arrayify)(st),Wt))}Wt.recoverAddress=recoverAddress;function formatNumber(st,Wt){var Ot=(0,rn.stripZeros)(In.BigNumber.from(st).toHexString());if(Ot.length>32){mn.throwArgumentError("invalid length for "+Wt,"transaction:"+Wt,st)}return Ot}function accessSetify(st,Wt){return{address:(0,an.getAddress)(st),storageKeys:(Wt||[]).map((function(Wt,Ot){if((0,rn.hexDataLength)(Wt)!==32){mn.throwArgumentError("invalid access list storageKey","accessList["+st+":"+Ot+"]",Wt)}return Wt.toLowerCase()}))}}function accessListify(st){if(Array.isArray(st)){return st.map((function(st,Wt){if(Array.isArray(st)){if(st.length>2){mn.throwArgumentError("access list expected to be [ address, storageKeys[] ]","value["+Wt+"]",st)}return accessSetify(st[0],st[1])}return accessSetify(st.address,st.storageKeys)}))}var Wt=Object.keys(st).map((function(Wt){var Ot=st[Wt].reduce((function(st,Wt){st[Wt]=true;return st}),{});return accessSetify(Wt,Object.keys(Ot).sort())}));Wt.sort((function(st,Wt){return st.address.localeCompare(Wt.address)}));return Wt}Wt.accessListify=accessListify;function formatAccessList(st){return accessListify(st).map((function(st){return[st.address,st.storageKeys]}))}function _serializeEip1559(st,Wt){if(st.gasPrice!=null){var Ot=In.BigNumber.from(st.gasPrice);var en=In.BigNumber.from(st.maxFeePerGas||0);if(!Ot.eq(en)){mn.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:Ot,maxFeePerGas:en})}}var tn=[formatNumber(st.chainId||0,"chainId"),formatNumber(st.nonce||0,"nonce"),formatNumber(st.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),formatNumber(st.maxFeePerGas||0,"maxFeePerGas"),formatNumber(st.gasLimit||0,"gasLimit"),st.to!=null?(0,an.getAddress)(st.to):"0x",formatNumber(st.value||0,"value"),st.data||"0x",formatAccessList(st.accessList||[])];if(Wt){var nn=(0,rn.splitSignature)(Wt);tn.push(formatNumber(nn.recoveryParam,"recoveryParam"));tn.push((0,rn.stripZeros)(nn.r));tn.push((0,rn.stripZeros)(nn.s))}return(0,rn.hexConcat)(["0x02",dn.encode(tn)])}function _serializeEip2930(st,Wt){var Ot=[formatNumber(st.chainId||0,"chainId"),formatNumber(st.nonce||0,"nonce"),formatNumber(st.gasPrice||0,"gasPrice"),formatNumber(st.gasLimit||0,"gasLimit"),st.to!=null?(0,an.getAddress)(st.to):"0x",formatNumber(st.value||0,"value"),st.data||"0x",formatAccessList(st.accessList||[])];if(Wt){var en=(0,rn.splitSignature)(Wt);Ot.push(formatNumber(en.recoveryParam,"recoveryParam"));Ot.push((0,rn.stripZeros)(en.r));Ot.push((0,rn.stripZeros)(en.s))}return(0,rn.hexConcat)(["0x01",dn.encode(Ot)])}function _serialize(st,Wt){(0,sn.checkProperties)(st,Zn);var Ot=[];hn.forEach((function(Wt){var en=st[Wt.name]||[];var tn={};if(Wt.numeric){tn.hexPad="left"}en=(0,rn.arrayify)((0,rn.hexlify)(en,tn));if(Wt.length&&en.length!==Wt.length&&en.length>0){mn.throwArgumentError("invalid length for "+Wt.name,"transaction:"+Wt.name,en)}if(Wt.maxLength){en=(0,rn.stripZeros)(en);if(en.length>Wt.maxLength){mn.throwArgumentError("invalid length for "+Wt.name,"transaction:"+Wt.name,en)}}Ot.push((0,rn.hexlify)(en))}));var en=0;if(st.chainId!=null){en=st.chainId;if(typeof en!=="number"){mn.throwArgumentError("invalid transaction.chainId","transaction",st)}}else if(Wt&&!(0,rn.isBytesLike)(Wt)&&Wt.v>28){en=Math.floor((Wt.v-35)/2)}if(en!==0){Ot.push((0,rn.hexlify)(en));Ot.push("0x");Ot.push("0x")}if(!Wt){return dn.encode(Ot)}var tn=(0,rn.splitSignature)(Wt);var nn=27+tn.recoveryParam;if(en!==0){Ot.pop();Ot.pop();Ot.pop();nn+=en*2+8;if(tn.v>28&&tn.v!==nn){mn.throwArgumentError("transaction.chainId/signature.v mismatch","signature",Wt)}}else if(tn.v!==nn){mn.throwArgumentError("transaction.chainId/signature.v mismatch","signature",Wt)}Ot.push((0,rn.hexlify)(nn));Ot.push((0,rn.stripZeros)((0,rn.arrayify)(tn.r)));Ot.push((0,rn.stripZeros)((0,rn.arrayify)(tn.s)));return dn.encode(Ot)}function serialize(st,Wt){if(st.type==null||st.type===0){if(st.accessList!=null){mn.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",st)}return _serialize(st,Wt)}switch(st.type){case 1:return _serializeEip2930(st,Wt);case 2:return _serializeEip1559(st,Wt);default:break}return mn.throwError("unsupported transaction type: "+st.type,pn.Logger.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:st.type})}Wt.serialize=serialize;function _parseEipSignature(st,Wt,Ot){try{var en=handleNumber(Wt[0]).toNumber();if(en!==0&&en!==1){throw new Error("bad recid")}st.v=en}catch(st){mn.throwArgumentError("invalid v for transaction type: 1","v",Wt[0])}st.r=(0,rn.hexZeroPad)(Wt[1],32);st.s=(0,rn.hexZeroPad)(Wt[2],32);try{var tn=(0,on.keccak256)(Ot(st));st.from=recoverAddress(tn,{r:st.r,s:st.s,recoveryParam:st.v})}catch(st){}}function _parseEip1559(st){var Wt=dn.decode(st.slice(1));if(Wt.length!==9&&Wt.length!==12){mn.throwArgumentError("invalid component count for transaction type: 2","payload",(0,rn.hexlify)(st))}var Ot=handleNumber(Wt[2]);var en=handleNumber(Wt[3]);var tn={type:2,chainId:handleNumber(Wt[0]).toNumber(),nonce:handleNumber(Wt[1]).toNumber(),maxPriorityFeePerGas:Ot,maxFeePerGas:en,gasPrice:null,gasLimit:handleNumber(Wt[4]),to:handleAddress(Wt[5]),value:handleNumber(Wt[6]),data:Wt[7],accessList:accessListify(Wt[8])};if(Wt.length===9){return tn}tn.hash=(0,on.keccak256)(st);_parseEipSignature(tn,Wt.slice(9),_serializeEip1559);return tn}function _parseEip2930(st){var Wt=dn.decode(st.slice(1));if(Wt.length!==8&&Wt.length!==11){mn.throwArgumentError("invalid component count for transaction type: 1","payload",(0,rn.hexlify)(st))}var Ot={type:1,chainId:handleNumber(Wt[0]).toNumber(),nonce:handleNumber(Wt[1]).toNumber(),gasPrice:handleNumber(Wt[2]),gasLimit:handleNumber(Wt[3]),to:handleAddress(Wt[4]),value:handleNumber(Wt[5]),data:Wt[6],accessList:accessListify(Wt[7])};if(Wt.length===8){return Ot}Ot.hash=(0,on.keccak256)(st);_parseEipSignature(Ot,Wt.slice(8),_serializeEip2930);return Ot}function _parse(st){var Wt=dn.decode(st);if(Wt.length!==9&&Wt.length!==6){mn.throwArgumentError("invalid raw transaction","rawTransaction",st)}var Ot={nonce:handleNumber(Wt[0]).toNumber(),gasPrice:handleNumber(Wt[1]),gasLimit:handleNumber(Wt[2]),to:handleAddress(Wt[3]),value:handleNumber(Wt[4]),data:Wt[5],chainId:0};if(Wt.length===6){return Ot}try{Ot.v=In.BigNumber.from(Wt[6]).toNumber()}catch(st){return Ot}Ot.r=(0,rn.hexZeroPad)(Wt[7],32);Ot.s=(0,rn.hexZeroPad)(Wt[8],32);if(In.BigNumber.from(Ot.r).isZero()&&In.BigNumber.from(Ot.s).isZero()){Ot.chainId=Ot.v;Ot.v=0}else{Ot.chainId=Math.floor((Ot.v-35)/2);if(Ot.chainId<0){Ot.chainId=0}var en=Ot.v-27;var tn=Wt.slice(0,6);if(Ot.chainId!==0){tn.push((0,rn.hexlify)(Ot.chainId));tn.push("0x");tn.push("0x");en-=Ot.chainId*2+8}var nn=(0,on.keccak256)(dn.encode(tn));try{Ot.from=recoverAddress(nn,{r:(0,rn.hexlify)(Ot.r),s:(0,rn.hexlify)(Ot.s),recoveryParam:en})}catch(st){}Ot.hash=(0,on.keccak256)(st)}Ot.type=null;return Ot}function parse(st){var Wt=(0,rn.arrayify)(st);if(Wt[0]>127){return _parse(Wt)}switch(Wt[0]){case 1:return _parseEip2930(Wt);case 2:return _parseEip1559(Wt);default:break}return mn.throwError("unsupported transaction type: "+Wt[0],pn.Logger.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:Wt[0]})}Wt.parse=parse},33755:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.version=void 0;Wt.version="units/5.7.0"},32534:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.parseEther=Wt.formatEther=Wt.parseUnits=Wt.formatUnits=Wt.commify=void 0;var en=Ot(18202);var tn=Ot(76127);var nn=Ot(33755);var an=new tn.Logger(nn.version);var In=["wei","kwei","mwei","gwei","szabo","finney","ether"];function commify(st){var Wt=String(st).split(".");if(Wt.length>2||!Wt[0].match(/^-?[0-9]*$/)||Wt[1]&&!Wt[1].match(/^[0-9]*$/)||st==="."||st==="-."){an.throwArgumentError("invalid value","value",st)}var Ot=Wt[0];var en="";if(Ot.substring(0,1)==="-"){en="-";Ot=Ot.substring(1)}while(Ot.substring(0,1)==="0"){Ot=Ot.substring(1)}if(Ot===""){Ot="0"}var tn="";if(Wt.length===2){tn="."+(Wt[1]||"0")}while(tn.length>2&&tn[tn.length-1]==="0"){tn=tn.substring(0,tn.length-1)}var nn=[];while(Ot.length){if(Ot.length<=3){nn.unshift(Ot);break}else{var In=Ot.length-3;nn.unshift(Ot.substring(In));Ot=Ot.substring(0,In)}}return en+nn.join(",")+tn}Wt.commify=commify;function formatUnits(st,Wt){if(typeof Wt==="string"){var Ot=In.indexOf(Wt);if(Ot!==-1){Wt=3*Ot}}return(0,en.formatFixed)(st,Wt!=null?Wt:18)}Wt.formatUnits=formatUnits;function parseUnits(st,Wt){if(typeof st!=="string"){an.throwArgumentError("value must be a string","value",st)}if(typeof Wt==="string"){var Ot=In.indexOf(Wt);if(Ot!==-1){Wt=3*Ot}}return(0,en.parseFixed)(st,Wt!=null?Wt:18)}Wt.parseUnits=parseUnits;function formatEther(st){return formatUnits(st,18)}Wt.formatEther=formatEther;function parseEther(st){return parseUnits(st,18)}Wt.parseEther=parseEther},23867:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.version=void 0;Wt.version="wallet/5.7.0"},30806:function(st,Wt,Ot){"use strict";var en=this&&this.__extends||function(){var extendStatics=function(st,Wt){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(st,Wt){st.__proto__=Wt}||function(st,Wt){for(var Ot in Wt)if(Object.prototype.hasOwnProperty.call(Wt,Ot))st[Ot]=Wt[Ot]};return extendStatics(st,Wt)};return function(st,Wt){if(typeof Wt!=="function"&&Wt!==null)throw new TypeError("Class extends value "+String(Wt)+" is not a constructor or null");extendStatics(st,Wt);function __(){this.constructor=st}st.prototype=Wt===null?Object.create(Wt):(__.prototype=Wt.prototype,new __)}}();var tn=this&&this.__awaiter||function(st,Wt,Ot,en){function adopt(st){return st instanceof Ot?st:new Ot((function(Wt){Wt(st)}))}return new(Ot||(Ot=Promise))((function(Ot,tn){function fulfilled(st){try{step(en.next(st))}catch(st){tn(st)}}function rejected(st){try{step(en["throw"](st))}catch(st){tn(st)}}function step(st){st.done?Ot(st.value):adopt(st.value).then(fulfilled,rejected)}step((en=en.apply(st,Wt||[])).next())}))};var nn=this&&this.__generator||function(st,Wt){var Ot={label:0,sent:function(){if(nn[0]&1)throw nn[1];return nn[1]},trys:[],ops:[]},en,tn,nn,an;return an={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(an[Symbol.iterator]=function(){return this}),an;function verb(st){return function(Wt){return step([st,Wt])}}function step(an){if(en)throw new TypeError("Generator is already executing.");while(Ot)try{if(en=1,tn&&(nn=an[0]&2?tn["return"]:an[0]?tn["throw"]||((nn=tn["return"])&&nn.call(tn),0):tn.next)&&!(nn=nn.call(tn,an[1])).done)return nn;if(tn=0,nn)an=[an[0]&2,nn.value];switch(an[0]){case 0:case 1:nn=an;break;case 4:Ot.label++;return{value:an[1],done:false};case 5:Ot.label++;tn=an[1];an=[0];continue;case 7:an=Ot.ops.pop();Ot.trys.pop();continue;default:if(!(nn=Ot.trys,nn=nn.length>0&&nn[nn.length-1])&&(an[0]===6||an[0]===2)){Ot=0;continue}if(an[0]===3&&(!nn||an[1]>nn[0]&&an[1]{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.version=void 0;Wt.version="web/5.7.1"},77730:function(st,Wt,Ot){"use strict";var en=this&&this.__awaiter||function(st,Wt,Ot,en){function adopt(st){return st instanceof Ot?st:new Ot((function(Wt){Wt(st)}))}return new(Ot||(Ot=Promise))((function(Ot,tn){function fulfilled(st){try{step(en.next(st))}catch(st){tn(st)}}function rejected(st){try{step(en["throw"](st))}catch(st){tn(st)}}function step(st){st.done?Ot(st.value):adopt(st.value).then(fulfilled,rejected)}step((en=en.apply(st,Wt||[])).next())}))};var tn=this&&this.__generator||function(st,Wt){var Ot={label:0,sent:function(){if(nn[0]&1)throw nn[1];return nn[1]},trys:[],ops:[]},en,tn,nn,an;return an={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(an[Symbol.iterator]=function(){return this}),an;function verb(st){return function(Wt){return step([st,Wt])}}function step(an){if(en)throw new TypeError("Generator is already executing.");while(Ot)try{if(en=1,tn&&(nn=an[0]&2?tn["return"]:an[0]?tn["throw"]||((nn=tn["return"])&&nn.call(tn),0):tn.next)&&!(nn=nn.call(tn,an[1])).done)return nn;if(tn=0,nn)an=[an[0]&2,nn.value];switch(an[0]){case 0:case 1:nn=an;break;case 4:Ot.label++;return{value:an[1],done:false};case 5:Ot.label++;tn=an[1];an=[0];continue;case 7:an=Ot.ops.pop();Ot.trys.pop();continue;default:if(!(nn=Ot.trys,nn=nn.length>0&&nn[nn.length-1])&&(an[0]===6||an[0]===2)){Ot=0;continue}if(an[0]===3&&(!nn||an[1]>nn[0]&&an[1]0&&nn[nn.length-1])&&(an[0]===6||an[0]===2)){Ot=0;continue}if(an[0]===3&&(!nn||an[1]>nn[0]&&an[1]0&&an%1===0,"invalid connection throttle limit","connection.throttleLimit",an);var on=typeof st==="object"?st.throttleCallback:null;var un=typeof st==="object"&&typeof st.throttleSlotInterval==="number"?st.throttleSlotInterval:100;sn.assertArgument(un>0&&un%1===0,"invalid connection throttle slot interval","connection.throttleSlotInterval",un);var pn=typeof st==="object"?!!st.errorPassThrough:false;var bn={};var mn=null;var Gn={method:"GET"};var hn=false;var Zn=2*60*1e3;if(typeof st==="string"){mn=st}else if(typeof st==="object"){if(st==null||st.url==null){sn.throwArgumentError("missing URL","connection.url",st)}mn=st.url;if(typeof st.timeout==="number"&&st.timeout>0){Zn=st.timeout}if(st.headers){for(var An in st.headers){bn[An.toLowerCase()]={key:An,value:String(st.headers[An])};if(["if-none-match","if-modified-since"].indexOf(An.toLowerCase())>=0){hn=true}}}Gn.allowGzip=!!st.allowGzip;if(st.user!=null&&st.password!=null){if(mn.substring(0,6)!=="https:"&&st.allowInsecureAuthentication!==true){sn.throwError("basic authentication requires a secure https url",cn.Logger.errors.INVALID_ARGUMENT,{argument:"url",url:mn,user:st.user,password:"[REDACTED]"})}var Wn=st.user+":"+st.password;bn["authorization"]={key:"Authorization",value:"Basic "+(0,nn.encode)((0,rn.toUtf8Bytes)(Wn))}}if(st.skipFetchSetup!=null){Gn.skipFetchSetup=!!st.skipFetchSetup}if(st.fetchOptions!=null){Gn.fetchOptions=(0,In.shallowCopy)(st.fetchOptions)}}var Nn=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i");var gn=mn?mn.match(Nn):null;if(gn){try{var yn={statusCode:200,statusMessage:"OK",headers:{"content-type":gn[1]||"text/plain"},body:gn[2]?(0,nn.decode)(gn[3]):unpercent(gn[3])};var vn=yn.body;if(Ot){vn=Ot(yn.body,yn)}return Promise.resolve(vn)}catch(st){sn.throwError("processing response error",cn.Logger.errors.SERVER_ERROR,{body:bodyify(gn[1],gn[2]),error:st,requestBody:null,requestMethod:"GET",url:mn})}}if(Wt){Gn.method="POST";Gn.body=Wt;if(bn["content-type"]==null){bn["content-type"]={key:"Content-Type",value:"application/octet-stream"}}if(bn["content-length"]==null){bn["content-length"]={key:"Content-Length",value:String(Wt.length)}}}var Yn={};Object.keys(bn).forEach((function(st){var Wt=bn[st];Yn[Wt.key]=Wt.value}));Gn.headers=Yn;var En=function(){var st=null;var Wt=new Promise((function(Wt,Ot){if(Zn){st=setTimeout((function(){if(st==null){return}st=null;Ot(sn.makeError("timeout",cn.Logger.errors.TIMEOUT,{requestBody:bodyify(Gn.body,Yn["content-type"]),requestMethod:Gn.method,timeout:Zn,url:mn}))}),Zn)}}));var cancel=function(){if(st==null){return}clearTimeout(st);st=null};return{promise:Wt,cancel:cancel}}();var Vn=function(){return en(this,void 0,void 0,(function(){var st,Wt,en,nn,In,rn,bn,Zn,An,Wn,nn,Nn;return tn(this,(function(tn){switch(tn.label){case 0:st=0;tn.label=1;case 1:if(!(st=300)){En.cancel();sn.throwError("bad response",cn.Logger.errors.SERVER_ERROR,{status:Wt.statusCode,headers:Wt.headers,body:bodyify(Zn,Wt.headers?Wt.headers["content-type"]:null),requestBody:bodyify(Gn.body,Yn["content-type"]),requestMethod:Gn.method,url:mn})}if(!Ot)return[3,18];tn.label=11;case 11:tn.trys.push([11,13,,18]);return[4,Ot(Zn,Wt)];case 12:An=tn.sent();En.cancel();return[2,An];case 13:Wn=tn.sent();if(!(Wn.throttleRetry&&stan){if(cancel()){en(new Error("retry limit reached"))}return}var tn=Wt.interval*parseInt(String(Math.random()*Math.pow(2,In)));if(tnWt.ceiling){tn=Wt.ceiling}setTimeout(check,tn)}return null}),(function(st){if(cancel()){en(st)}}))}check()}))}Wt.poll=poll},17141:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.version=void 0;Wt.version="wordlists/5.7.0"},78168:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.wordlists=Wt.Wordlist=Wt.logger=void 0;var en=Ot(18210);Object.defineProperty(Wt,"logger",{enumerable:true,get:function(){return en.logger}});Object.defineProperty(Wt,"Wordlist",{enumerable:true,get:function(){return en.Wordlist}});var tn=Ot(1057);Object.defineProperty(Wt,"wordlists",{enumerable:true,get:function(){return tn.wordlists}})},53994:function(st,Wt,Ot){"use strict";var en=this&&this.__extends||function(){var extendStatics=function(st,Wt){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(st,Wt){st.__proto__=Wt}||function(st,Wt){for(var Ot in Wt)if(Object.prototype.hasOwnProperty.call(Wt,Ot))st[Ot]=Wt[Ot]};return extendStatics(st,Wt)};return function(st,Wt){if(typeof Wt!=="function"&&Wt!==null)throw new TypeError("Class extends value "+String(Wt)+" is not a constructor or null");extendStatics(st,Wt);function __(){this.constructor=st}st.prototype=Wt===null?Object.create(Wt):(__.prototype=Wt.prototype,new __)}}();Object.defineProperty(Wt,"__esModule",{value:true});Wt.langCz=void 0;var tn=Ot(18210);var nn="AbdikaceAbecedaAdresaAgreseAkceAktovkaAlejAlkoholAmputaceAnanasAndulkaAnekdotaAnketaAntikaAnulovatArchaAroganceAsfaltAsistentAspiraceAstmaAstronomAtlasAtletikaAtolAutobusAzylBabkaBachorBacilBaculkaBadatelBagetaBagrBahnoBakterieBaladaBaletkaBalkonBalonekBalvanBalzaBambusBankomatBarbarBaretBarmanBarokoBarvaBaterkaBatohBavlnaBazalkaBazilikaBazukaBednaBeranBesedaBestieBetonBezinkaBezmocBeztakBicyklBidloBiftekBikinyBilanceBiografBiologBitvaBizonBlahobytBlatouchBlechaBleduleBleskBlikatBliznaBlokovatBlouditBludBobekBobrBodlinaBodnoutBohatostBojkotBojovatBokorysBolestBorecBoroviceBotaBoubelBouchatBoudaBouleBouratBoxerBradavkaBramboraBrankaBratrBreptaBriketaBrkoBrlohBronzBroskevBrunetkaBrusinkaBrzdaBrzyBublinaBubnovatBuchtaBuditelBudkaBudovaBufetBujarostBukviceBuldokBulvaBundaBunkrBurzaButikBuvolBuzolaBydletBylinaBytovkaBzukotCapartCarevnaCedrCeduleCejchCejnCelaCelerCelkemCelniceCeninaCennostCenovkaCentrumCenzorCestopisCetkaChalupaChapadloCharitaChataChechtatChemieChichotChirurgChladChlebaChlubitChmelChmuraChobotChocholChodbaCholeraChomoutChopitChorobaChovChrapotChrlitChrtChrupChtivostChudinaChutnatChvatChvilkaChvostChybaChystatChytitCibuleCigaretaCihelnaCihlaCinkotCirkusCisternaCitaceCitrusCizinecCizostClonaCokolivCouvatCtitelCtnostCudnostCuketaCukrCupotCvaknoutCvalCvikCvrkotCyklistaDalekoDarebaDatelDatumDceraDebataDechovkaDecibelDeficitDeflaceDeklDekretDemokratDepreseDerbyDeskaDetektivDikobrazDiktovatDiodaDiplomDiskDisplejDivadloDivochDlahaDlouhoDluhopisDnesDobroDobytekDocentDochutitDodnesDohledDohodaDohraDojemDojniceDokladDokolaDoktorDokumentDolarDolevaDolinaDomaDominantDomluvitDomovDonutitDopadDopisDoplnitDoposudDoprovodDopustitDorazitDorostDortDosahDoslovDostatekDosudDosytaDotazDotekDotknoutDoufatDoutnatDovozceDozaduDoznatDozorceDrahotaDrakDramatikDravecDrazeDrdolDrobnostDrogerieDrozdDrsnostDrtitDrzostDubenDuchovnoDudekDuhaDuhovkaDusitDusnoDutostDvojiceDvorecDynamitEkologEkonomieElektronElipsaEmailEmiseEmoceEmpatieEpizodaEpochaEpopejEposEsejEsenceEskortaEskymoEtiketaEuforieEvoluceExekuceExkurzeExpediceExplozeExportExtraktFackaFajfkaFakultaFanatikFantazieFarmacieFavoritFazoleFederaceFejetonFenkaFialkaFigurantFilozofFiltrFinanceFintaFixaceFjordFlanelFlirtFlotilaFondFosforFotbalFotkaFotonFrakceFreskaFrontaFukarFunkceFyzikaGalejeGarantGenetikaGeologGilotinaGlazuraGlejtGolemGolfistaGotikaGrafGramofonGranuleGrepGrilGrogGroteskaGumaHadiceHadrHalaHalenkaHanbaHanopisHarfaHarpunaHavranHebkostHejkalHejnoHejtmanHektarHelmaHematomHerecHernaHesloHezkyHistorikHladovkaHlasivkyHlavaHledatHlenHlodavecHlohHloupostHltatHlubinaHluchotaHmatHmotaHmyzHnisHnojivoHnoutHoblinaHobojHochHodinyHodlatHodnotaHodovatHojnostHokejHolinkaHolkaHolubHomoleHonitbaHonoraceHoralHordaHorizontHorkoHorlivecHormonHorninaHoroskopHorstvoHospodaHostinaHotovostHoubaHoufHoupatHouskaHovorHradbaHraniceHravostHrazdaHrbolekHrdinaHrdloHrdostHrnekHrobkaHromadaHrotHroudaHrozenHrstkaHrubostHryzatHubenostHubnoutHudbaHukotHumrHusitaHustotaHvozdHybnostHydrantHygienaHymnaHysterikIdylkaIhnedIkonaIluzeImunitaInfekceInflaceInkasoInovaceInspekceInternetInvalidaInvestorInzerceIronieJablkoJachtaJahodaJakmileJakostJalovecJantarJarmarkJaroJasanJasnoJatkaJavorJazykJedinecJedleJednatelJehlanJekotJelenJelitoJemnostJenomJepiceJeseterJevitJezdecJezeroJinakJindyJinochJiskraJistotaJitrniceJizvaJmenovatJogurtJurtaKabaretKabelKabinetKachnaKadetKadidloKahanKajakKajutaKakaoKaktusKalamitaKalhotyKalibrKalnostKameraKamkolivKamnaKanibalKanoeKantorKapalinaKapelaKapitolaKapkaKapleKapotaKaprKapustaKapybaraKaramelKarotkaKartonKasaKatalogKatedraKauceKauzaKavalecKazajkaKazetaKazivostKdekolivKdesiKedlubenKempKeramikaKinoKlacekKladivoKlamKlapotKlasikaKlaunKlecKlenbaKlepatKlesnoutKlidKlimaKlisnaKloboukKlokanKlopaKloubKlubovnaKlusatKluzkostKmenKmitatKmotrKnihaKnotKoaliceKoberecKobkaKoblihaKobylaKocourKohoutKojenecKokosKoktejlKolapsKoledaKolizeKoloKomandoKometaKomikKomnataKomoraKompasKomunitaKonatKonceptKondiceKonecKonfeseKongresKoninaKonkursKontaktKonzervaKopanecKopieKopnoutKoprovkaKorbelKorektorKormidloKoroptevKorpusKorunaKorytoKorzetKosatecKostkaKotelKotletaKotoulKoukatKoupelnaKousekKouzloKovbojKozaKozorohKrabiceKrachKrajinaKralovatKrasopisKravataKreditKrejcarKresbaKrevetaKriketKritikKrizeKrkavecKrmelecKrmivoKrocanKrokKronikaKropitKroupaKrovkaKrtekKruhadloKrupiceKrutostKrvinkaKrychleKryptaKrystalKrytKudlankaKufrKujnostKuklaKulajdaKulichKulkaKulometKulturaKunaKupodivuKurtKurzorKutilKvalitaKvasinkaKvestorKynologKyselinaKytaraKyticeKytkaKytovecKyvadloLabradorLachtanLadnostLaikLakomecLamelaLampaLanovkaLasiceLasoLasturaLatinkaLavinaLebkaLeckdyLedenLedniceLedovkaLedvinaLegendaLegieLegraceLehceLehkostLehnoutLektvarLenochodLentilkaLepenkaLepidloLetadloLetecLetmoLetokruhLevhartLevitaceLevobokLibraLichotkaLidojedLidskostLihovinaLijavecLilekLimetkaLinieLinkaLinoleumListopadLitinaLitovatLobistaLodivodLogikaLogopedLokalitaLoketLomcovatLopataLopuchLordLososLotrLoudalLouhLoukaLouskatLovecLstivostLucernaLuciferLumpLuskLustraceLviceLyraLyrikaLysinaMadamMadloMagistrMahagonMajetekMajitelMajoritaMakakMakoviceMakrelaMalbaMalinaMalovatMalviceMaminkaMandleMankoMarnostMasakrMaskotMasopustMaticeMatrikaMaturitaMazanecMazivoMazlitMazurkaMdlobaMechanikMeditaceMedovinaMelasaMelounMentolkaMetlaMetodaMetrMezeraMigraceMihnoutMihuleMikinaMikrofonMilenecMilimetrMilostMimikaMincovnaMinibarMinometMinulostMiskaMistrMixovatMladostMlhaMlhovinaMlokMlsatMluvitMnichMnohemMobilMocnostModelkaModlitbaMohylaMokroMolekulaMomentkaMonarchaMonoklMonstrumMontovatMonzunMosazMoskytMostMotivaceMotorkaMotykaMouchaMoudrostMozaikaMozekMozolMramorMravenecMrkevMrtvolaMrzetMrzutostMstitelMudrcMuflonMulatMumieMuniceMusetMutaceMuzeumMuzikantMyslivecMzdaNabouratNachytatNadaceNadbytekNadhozNadobroNadpisNahlasNahnatNahodileNahraditNaivitaNajednouNajistoNajmoutNaklonitNakonecNakrmitNalevoNamazatNamluvitNanometrNaokoNaopakNaostroNapadatNapevnoNaplnitNapnoutNaposledNaprostoNaroditNarubyNarychloNasaditNasekatNaslepoNastatNatolikNavenekNavrchNavzdoryNazvatNebeNechatNeckyNedalekoNedbatNeduhNegaceNehetNehodaNejenNejprveNeklidNelibostNemilostNemocNeochotaNeonkaNepokojNerostNervNesmyslNesouladNetvorNeuronNevinaNezvykleNicotaNijakNikamNikdyNiklNikterakNitroNoclehNohaviceNominaceNoraNorekNositelNosnostNouzeNovinyNovotaNozdraNudaNudleNugetNutitNutnostNutrieNymfaObalObarvitObavaObdivObecObehnatObejmoutObezitaObhajobaObilniceObjasnitObjektObklopitOblastOblekOblibaOblohaObludaObnosObohatitObojekOboutObrazecObrnaObrubaObrysObsahObsluhaObstaratObuvObvazObvinitObvodObvykleObyvatelObzorOcasOcelOcenitOchladitOchotaOchranaOcitnoutOdbojOdbytOdchodOdcizitOdebratOdeslatOdevzdatOdezvaOdhadceOdhoditOdjetOdjinudOdkazOdkoupitOdlivOdlukaOdmlkaOdolnostOdpadOdpisOdploutOdporOdpustitOdpykatOdrazkaOdsouditOdstupOdsunOdtokOdtudOdvahaOdvetaOdvolatOdvracetOdznakOfinaOfsajdOhlasOhniskoOhradaOhrozitOhryzekOkapOkeniceOklikaOknoOkouzlitOkovyOkrasaOkresOkrsekOkruhOkupantOkurkaOkusitOlejninaOlizovatOmakOmeletaOmezitOmladinaOmlouvatOmluvaOmylOnehdyOpakovatOpasekOperaceOpiceOpilostOpisovatOporaOpoziceOpravduOprotiOrbitalOrchestrOrgieOrliceOrlojOrtelOsadaOschnoutOsikaOsivoOslavaOslepitOslnitOslovitOsnovaOsobaOsolitOspalecOstenOstrahaOstudaOstychOsvojitOteplitOtiskOtopOtrhatOtrlostOtrokOtrubyOtvorOvanoutOvarOvesOvlivnitOvoceOxidOzdobaPachatelPacientPadouchPahorekPaktPalandaPalecPalivoPalubaPamfletPamlsekPanenkaPanikaPannaPanovatPanstvoPantoflePaprikaParketaParodiePartaParukaParybaPasekaPasivitaPastelkaPatentPatronaPavoukPaznehtPazourekPeckaPedagogPejsekPekloPelotonPenaltaPendrekPenzePeriskopPeroPestrostPetardaPeticePetrolejPevninaPexesoPianistaPihaPijavicePiklePiknikPilinaPilnostPilulkaPinzetaPipetaPisatelPistolePitevnaPivnicePivovarPlacentaPlakatPlamenPlanetaPlastikaPlatitPlavidloPlazPlechPlemenoPlentaPlesPletivoPlevelPlivatPlnitPlnoPlochaPlodinaPlombaPloutPlukPlynPobavitPobytPochodPocitPoctivecPodatPodcenitPodepsatPodhledPodivitPodkladPodmanitPodnikPodobaPodporaPodrazPodstataPodvodPodzimPoeziePohankaPohnutkaPohovorPohromaPohybPointaPojistkaPojmoutPokazitPoklesPokojPokrokPokutaPokynPolednePolibekPolknoutPolohaPolynomPomaluPominoutPomlkaPomocPomstaPomysletPonechatPonorkaPonurostPopadatPopelPopisekPoplachPoprositPopsatPopudPoradcePorcePorodPoruchaPoryvPosaditPosedPosilaPoskokPoslanecPosouditPospoluPostavaPosudekPosypPotahPotkanPotleskPotomekPotravaPotupaPotvoraPoukazPoutoPouzdroPovahaPovidlaPovlakPovozPovrchPovstatPovykPovzdechPozdravPozemekPoznatekPozorPozvatPracovatPrahoryPraktikaPralesPraotecPraporekPrasePravdaPrincipPrknoProbuditProcentoProdejProfeseProhraProjektProlomitPromilePronikatPropadProrokProsbaProtonProutekProvazPrskavkaPrstenPrudkostPrutPrvekPrvohoryPsanecPsovodPstruhPtactvoPubertaPuchPudlPukavecPuklinaPukrlePultPumpaPuncPupenPusaPusinkaPustinaPutovatPutykaPyramidaPyskPytelRacekRachotRadiaceRadniceRadonRaftRagbyRaketaRakovinaRamenoRampouchRandeRarachRaritaRasovnaRastrRatolestRazanceRazidloReagovatReakceReceptRedaktorReferentReflexRejnokReklamaRekordRekrutRektorReputaceRevizeRevmaRevolverRezervaRiskovatRizikoRobotikaRodokmenRohovkaRokleRokokoRomanetoRopovodRopuchaRorejsRosolRostlinaRotmistrRotopedRotundaRoubenkaRouchoRoupRouraRovinaRovniceRozborRozchodRozdatRozeznatRozhodceRozinkaRozjezdRozkazRozlohaRozmarRozpadRozruchRozsahRoztokRozumRozvodRubrikaRuchadloRukaviceRukopisRybaRybolovRychlostRydloRypadloRytinaRyzostSadistaSahatSakoSamecSamizdatSamotaSanitkaSardinkaSasankaSatelitSazbaSazeniceSborSchovatSebrankaSeceseSedadloSedimentSedloSehnatSejmoutSekeraSektaSekundaSekvojeSemenoSenoServisSesaditSeshoraSeskokSeslatSestraSesuvSesypatSetbaSetinaSetkatSetnoutSetrvatSeverSeznamShodaShrnoutSifonSilniceSirkaSirotekSirupSituaceSkafandrSkaliskoSkanzenSkautSkeptikSkicaSkladbaSkleniceSkloSkluzSkobaSkokanSkoroSkriptaSkrzSkupinaSkvostSkvrnaSlabikaSladidloSlaninaSlastSlavnostSledovatSlepecSlevaSlezinaSlibSlinaSlizniceSlonSloupekSlovoSluchSluhaSlunceSlupkaSlzaSmaragdSmetanaSmilstvoSmlouvaSmogSmradSmrkSmrtkaSmutekSmyslSnadSnahaSnobSobotaSochaSodovkaSokolSopkaSotvaSoubojSoucitSoudceSouhlasSouladSoumrakSoupravaSousedSoutokSouvisetSpalovnaSpasitelSpisSplavSpodekSpojenecSpoluSponzorSpornostSpoustaSprchaSpustitSrandaSrazSrdceSrnaSrnecSrovnatSrpenSrstSrubStaniceStarostaStatikaStavbaStehnoStezkaStodolaStolekStopaStornoStoupatStrachStresStrhnoutStromStrunaStudnaStupniceStvolStykSubjektSubtropySucharSudostSuknoSundatSunoutSurikataSurovinaSvahSvalstvoSvetrSvatbaSvazekSvisleSvitekSvobodaSvodidloSvorkaSvrabSykavkaSykotSynekSynovecSypatSypkostSyrovostSyselSytostTabletkaTabuleTahounTajemnoTajfunTajgaTajitTajnostTaktikaTamhleTamponTancovatTanecTankerTapetaTaveninaTazatelTechnikaTehdyTekutinaTelefonTemnotaTendenceTenistaTenorTeplotaTepnaTeprveTerapieTermoskaTextilTichoTiskopisTitulekTkadlecTkaninaTlapkaTleskatTlukotTlupaTmelToaletaTopinkaTopolTorzoTouhaToulecTradiceTraktorTrampTrasaTraverzaTrefitTrestTrezorTrhavinaTrhlinaTrochuTrojiceTroskaTroubaTrpceTrpitelTrpkostTrubecTruchlitTruhliceTrusTrvatTudyTuhnoutTuhostTundraTuristaTurnajTuzemskoTvarohTvorbaTvrdostTvrzTygrTykevUbohostUbozeUbratUbrousekUbrusUbytovnaUchoUctivostUdivitUhraditUjednatUjistitUjmoutUkazatelUklidnitUklonitUkotvitUkrojitUliceUlitaUlovitUmyvadloUnavitUniformaUniknoutUpadnoutUplatnitUplynoutUpoutatUpravitUranUrazitUsednoutUsilovatUsmrtitUsnadnitUsnoutUsouditUstlatUstrnoutUtahovatUtkatUtlumitUtonoutUtopenecUtrousitUvalitUvolnitUvozovkaUzdravitUzelUzeninaUzlinaUznatVagonValchaValounVanaVandalVanilkaVaranVarhanyVarovatVcelkuVchodVdovaVedroVegetaceVejceVelbloudVeletrhVelitelVelmocVelrybaVenkovVerandaVerzeVeselkaVeskrzeVesniceVespoduVestaVeterinaVeverkaVibraceVichrVideohraVidinaVidleVilaViniceVisetVitalitaVizeVizitkaVjezdVkladVkusVlajkaVlakVlasecVlevoVlhkostVlivVlnovkaVloupatVnucovatVnukVodaVodivostVodoznakVodstvoVojenskyVojnaVojskoVolantVolbaVolitVolnoVoskovkaVozidloVozovnaVpravoVrabecVracetVrahVrataVrbaVrcholekVrhatVrstvaVrtuleVsaditVstoupitVstupVtipVybavitVybratVychovatVydatVydraVyfotitVyhledatVyhnoutVyhoditVyhraditVyhubitVyjasnitVyjetVyjmoutVyklopitVykonatVylekatVymazatVymezitVymizetVymysletVynechatVynikatVynutitVypadatVyplatitVypravitVypustitVyrazitVyrovnatVyrvatVyslovitVysokoVystavitVysunoutVysypatVytasitVytesatVytratitVyvinoutVyvolatVyvrhelVyzdobitVyznatVzaduVzbuditVzchopitVzdorVzduchVzdychatVzestupVzhledemVzkazVzlykatVznikVzorekVzpouraVztahVztekXylofonZabratZabydletZachovatZadarmoZadusitZafoukatZahltitZahoditZahradaZahynoutZajatecZajetZajistitZaklepatZakoupitZalepitZamezitZamotatZamysletZanechatZanikatZaplatitZapojitZapsatZarazitZastavitZasunoutZatajitZatemnitZatknoutZaujmoutZavalitZaveletZavinitZavolatZavrtatZazvonitZbavitZbrusuZbudovatZbytekZdalekaZdarmaZdatnostZdivoZdobitZdrojZdvihZdymadloZeleninaZemanZeminaZeptatZezaduZezdolaZhatitZhltnoutZhlubokaZhotovitZhrubaZimaZimniceZjemnitZklamatZkoumatZkratkaZkumavkaZlatoZlehkaZlobaZlomZlostZlozvykZmapovatZmarZmatekZmijeZmizetZmocnitZmodratZmrzlinaZmutovatZnakZnalostZnamenatZnovuZobrazitZotavitZoubekZoufaleZploditZpomalitZpravaZprostitZprudkaZprvuZradaZranitZrcadloZrnitostZrnoZrovnaZrychlitZrzavostZtichaZtratitZubovinaZubrZvednoutZvenkuZveselaZvonZvratZvukovodZvyk";var an=null;function loadWords(st){if(an!=null){return}an=nn.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" ");if(tn.Wordlist.check(st)!=="0x25f44555f4af25b51a711136e1c7d6e50ce9f8917d39d6b1f076b2bb4d2fac1a"){an=null;throw new Error("BIP39 Wordlist for en (English) FAILED")}}var In=function(st){en(LangCz,st);function LangCz(){return st.call(this,"cz")||this}LangCz.prototype.getWord=function(st){loadWords(this);return an[st]};LangCz.prototype.getWordIndex=function(st){loadWords(this);return an.indexOf(st)};return LangCz}(tn.Wordlist);var rn=new In;Wt.langCz=rn;tn.Wordlist.register(rn)},73120:function(st,Wt,Ot){"use strict";var en=this&&this.__extends||function(){var extendStatics=function(st,Wt){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(st,Wt){st.__proto__=Wt}||function(st,Wt){for(var Ot in Wt)if(Object.prototype.hasOwnProperty.call(Wt,Ot))st[Ot]=Wt[Ot]};return extendStatics(st,Wt)};return function(st,Wt){if(typeof Wt!=="function"&&Wt!==null)throw new TypeError("Class extends value "+String(Wt)+" is not a constructor or null");extendStatics(st,Wt);function __(){this.constructor=st}st.prototype=Wt===null?Object.create(Wt):(__.prototype=Wt.prototype,new __)}}();Object.defineProperty(Wt,"__esModule",{value:true});Wt.langEn=void 0;var tn=Ot(18210);var nn="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo";var an=null;function loadWords(st){if(an!=null){return}an=nn.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" ");if(tn.Wordlist.check(st)!=="0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"){an=null;throw new Error("BIP39 Wordlist for en (English) FAILED")}}var In=function(st){en(LangEn,st);function LangEn(){return st.call(this,"en")||this}LangEn.prototype.getWord=function(st){loadWords(this);return an[st]};LangEn.prototype.getWordIndex=function(st){loadWords(this);return an.indexOf(st)};return LangEn}(tn.Wordlist);var rn=new In;Wt.langEn=rn;tn.Wordlist.register(rn)},78091:function(st,Wt,Ot){"use strict";var en=this&&this.__extends||function(){var extendStatics=function(st,Wt){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(st,Wt){st.__proto__=Wt}||function(st,Wt){for(var Ot in Wt)if(Object.prototype.hasOwnProperty.call(Wt,Ot))st[Ot]=Wt[Ot]};return extendStatics(st,Wt)};return function(st,Wt){if(typeof Wt!=="function"&&Wt!==null)throw new TypeError("Class extends value "+String(Wt)+" is not a constructor or null");extendStatics(st,Wt);function __(){this.constructor=st}st.prototype=Wt===null?Object.create(Wt):(__.prototype=Wt.prototype,new __)}}();Object.defineProperty(Wt,"__esModule",{value:true});Wt.langEs=void 0;var tn=Ot(13859);var nn=Ot(18210);var an="A/bacoAbdomenAbejaAbiertoAbogadoAbonoAbortoAbrazoAbrirAbueloAbusoAcabarAcademiaAccesoAccio/nAceiteAcelgaAcentoAceptarA/cidoAclararAcne/AcogerAcosoActivoActoActrizActuarAcudirAcuerdoAcusarAdictoAdmitirAdoptarAdornoAduanaAdultoAe/reoAfectarAficio/nAfinarAfirmarA/gilAgitarAgoni/aAgostoAgotarAgregarAgrioAguaAgudoA/guilaAgujaAhogoAhorroAireAislarAjedrezAjenoAjusteAlacra/nAlambreAlarmaAlbaA/lbumAlcaldeAldeaAlegreAlejarAlertaAletaAlfilerAlgaAlgodo/nAliadoAlientoAlivioAlmaAlmejaAlmi/barAltarAltezaAltivoAltoAlturaAlumnoAlzarAmableAmanteAmapolaAmargoAmasarA/mbarA/mbitoAmenoAmigoAmistadAmorAmparoAmplioAnchoAncianoAnclaAndarAnde/nAnemiaA/nguloAnilloA/nimoAni/sAnotarAntenaAntiguoAntojoAnualAnularAnuncioA~adirA~ejoA~oApagarAparatoApetitoApioAplicarApodoAporteApoyoAprenderAprobarApuestaApuroAradoAra~aArarA/rbitroA/rbolArbustoArchivoArcoArderArdillaArduoA/reaA/ridoAriesArmoni/aArne/sAromaArpaArpo/nArregloArrozArrugaArteArtistaAsaAsadoAsaltoAscensoAsegurarAseoAsesorAsientoAsiloAsistirAsnoAsombroA/speroAstillaAstroAstutoAsumirAsuntoAtajoAtaqueAtarAtentoAteoA/ticoAtletaA/tomoAtraerAtrozAtu/nAudazAudioAugeAulaAumentoAusenteAutorAvalAvanceAvaroAveAvellanaAvenaAvestruzAvio/nAvisoAyerAyudaAyunoAzafra/nAzarAzoteAzu/carAzufreAzulBabaBaborBacheBahi/aBaileBajarBalanzaBalco/nBaldeBambu/BancoBandaBa~oBarbaBarcoBarnizBarroBa/sculaBasto/nBasuraBatallaBateri/aBatirBatutaBau/lBazarBebe/BebidaBelloBesarBesoBestiaBichoBienBingoBlancoBloqueBlusaBoaBobinaBoboBocaBocinaBodaBodegaBoinaBolaBoleroBolsaBombaBondadBonitoBonoBonsa/iBordeBorrarBosqueBoteBoti/nBo/vedaBozalBravoBrazoBrechaBreveBrilloBrincoBrisaBrocaBromaBronceBroteBrujaBruscoBrutoBuceoBucleBuenoBueyBufandaBufo/nBu/hoBuitreBultoBurbujaBurlaBurroBuscarButacaBuzo/nCaballoCabezaCabinaCabraCacaoCada/verCadenaCaerCafe/Cai/daCaima/nCajaCajo/nCalCalamarCalcioCaldoCalidadCalleCalmaCalorCalvoCamaCambioCamelloCaminoCampoCa/ncerCandilCanelaCanguroCanicaCantoCa~aCa~o/nCaobaCaosCapazCapita/nCapoteCaptarCapuchaCaraCarbo/nCa/rcelCaretaCargaCari~oCarneCarpetaCarroCartaCasaCascoCaseroCaspaCastorCatorceCatreCaudalCausaCazoCebollaCederCedroCeldaCe/lebreCelosoCe/lulaCementoCenizaCentroCercaCerdoCerezaCeroCerrarCertezaCe/spedCetroChacalChalecoChampu/ChanclaChapaCharlaChicoChisteChivoChoqueChozaChuletaChuparCiclo/nCiegoCieloCienCiertoCifraCigarroCimaCincoCineCintaCipre/sCircoCiruelaCisneCitaCiudadClamorClanClaroClaseClaveClienteClimaCli/nicaCobreCoccio/nCochinoCocinaCocoCo/digoCodoCofreCogerCoheteCoji/nCojoColaColchaColegioColgarColinaCollarColmoColumnaCombateComerComidaCo/modoCompraCondeConejoCongaConocerConsejoContarCopaCopiaCorazo/nCorbataCorchoCordo/nCoronaCorrerCoserCosmosCostaCra/neoCra/terCrearCrecerCrei/doCremaCri/aCrimenCriptaCrisisCromoCro/nicaCroquetaCrudoCruzCuadroCuartoCuatroCuboCubrirCucharaCuelloCuentoCuerdaCuestaCuevaCuidarCulebraCulpaCultoCumbreCumplirCunaCunetaCuotaCupo/nCu/pulaCurarCuriosoCursoCurvaCutisDamaDanzaDarDardoDa/tilDeberDe/bilDe/cadaDecirDedoDefensaDefinirDejarDelfi/nDelgadoDelitoDemoraDensoDentalDeporteDerechoDerrotaDesayunoDeseoDesfileDesnudoDestinoDesvi/oDetalleDetenerDeudaDi/aDiabloDiademaDiamanteDianaDiarioDibujoDictarDienteDietaDiezDifi/cilDignoDilemaDiluirDineroDirectoDirigirDiscoDise~oDisfrazDivaDivinoDobleDoceDolorDomingoDonDonarDoradoDormirDorsoDosDosisDrago/nDrogaDuchaDudaDueloDue~oDulceDu/oDuqueDurarDurezaDuroE/banoEbrioEcharEcoEcuadorEdadEdicio/nEdificioEditorEducarEfectoEficazEjeEjemploElefanteElegirElementoElevarElipseE/liteElixirElogioEludirEmbudoEmitirEmocio/nEmpateEmpe~oEmpleoEmpresaEnanoEncargoEnchufeEnci/aEnemigoEneroEnfadoEnfermoEnga~oEnigmaEnlaceEnormeEnredoEnsayoEnse~arEnteroEntrarEnvaseEnvi/oE/pocaEquipoErizoEscalaEscenaEscolarEscribirEscudoEsenciaEsferaEsfuerzoEspadaEspejoEspi/aEsposaEspumaEsqui/EstarEsteEstiloEstufaEtapaEternoE/ticaEtniaEvadirEvaluarEventoEvitarExactoExamenExcesoExcusaExentoExigirExilioExistirE/xitoExpertoExplicarExponerExtremoFa/bricaFa/bulaFachadaFa/cilFactorFaenaFajaFaldaFalloFalsoFaltarFamaFamiliaFamosoFarao/nFarmaciaFarolFarsaFaseFatigaFaunaFavorFaxFebreroFechaFelizFeoFeriaFerozFe/rtilFervorFesti/nFiableFianzaFiarFibraFiccio/nFichaFideoFiebreFielFieraFiestaFiguraFijarFijoFilaFileteFilialFiltroFinFincaFingirFinitoFirmaFlacoFlautaFlechaFlorFlotaFluirFlujoFlu/orFobiaFocaFogataFogo/nFolioFolletoFondoFormaForroFortunaForzarFosaFotoFracasoFra/gilFranjaFraseFraudeFrei/rFrenoFresaFri/oFritoFrutaFuegoFuenteFuerzaFugaFumarFuncio/nFundaFurgo/nFuriaFusilFu/tbolFuturoGacelaGafasGaitaGajoGalaGaleri/aGalloGambaGanarGanchoGangaGansoGarajeGarzaGasolinaGastarGatoGavila/nGemeloGemirGenGe/neroGenioGenteGeranioGerenteGermenGestoGiganteGimnasioGirarGiroGlaciarGloboGloriaGolGolfoGolosoGolpeGomaGordoGorilaGorraGotaGoteoGozarGradaGra/ficoGranoGrasaGratisGraveGrietaGrilloGripeGrisGritoGrosorGru/aGruesoGrumoGrupoGuanteGuapoGuardiaGuerraGui/aGui~oGuionGuisoGuitarraGusanoGustarHaberHa/bilHablarHacerHachaHadaHallarHamacaHarinaHazHaza~aHebillaHebraHechoHeladoHelioHembraHerirHermanoHe/roeHervirHieloHierroHi/gadoHigieneHijoHimnoHistoriaHocicoHogarHogueraHojaHombreHongoHonorHonraHoraHormigaHornoHostilHoyoHuecoHuelgaHuertaHuesoHuevoHuidaHuirHumanoHu/medoHumildeHumoHundirHuraca/nHurtoIconoIdealIdiomaI/doloIglesiaIglu/IgualIlegalIlusio/nImagenIma/nImitarImparImperioImponerImpulsoIncapazI/ndiceInerteInfielInformeIngenioInicioInmensoInmuneInnatoInsectoInstanteIntere/sI/ntimoIntuirInu/tilInviernoIraIrisIroni/aIslaIsloteJabali/Jabo/nJamo/nJarabeJardi/nJarraJaulaJazmi/nJefeJeringaJineteJornadaJorobaJovenJoyaJuergaJuevesJuezJugadorJugoJugueteJuicioJuncoJunglaJunioJuntarJu/piterJurarJustoJuvenilJuzgarKiloKoalaLabioLacioLacraLadoLadro/nLagartoLa/grimaLagunaLaicoLamerLa/minaLa/mparaLanaLanchaLangostaLanzaLa/pizLargoLarvaLa/stimaLataLa/texLatirLaurelLavarLazoLealLeccio/nLecheLectorLeerLegio/nLegumbreLejanoLenguaLentoLe~aLeo/nLeopardoLesio/nLetalLetraLeveLeyendaLibertadLibroLicorLi/derLidiarLienzoLigaLigeroLimaLi/miteLimo/nLimpioLinceLindoLi/neaLingoteLinoLinternaLi/quidoLisoListaLiteraLitioLitroLlagaLlamaLlantoLlaveLlegarLlenarLlevarLlorarLloverLluviaLoboLocio/nLocoLocuraLo/gicaLogroLombrizLomoLonjaLoteLuchaLucirLugarLujoLunaLunesLupaLustroLutoLuzMacetaMachoMaderaMadreMaduroMaestroMafiaMagiaMagoMai/zMaldadMaletaMallaMaloMama/MamboMamutMancoMandoManejarMangaManiqui/ManjarManoMansoMantaMa~anaMapaMa/quinaMarMarcoMareaMarfilMargenMaridoMa/rmolMarro/nMartesMarzoMasaMa/scaraMasivoMatarMateriaMatizMatrizMa/ximoMayorMazorcaMechaMedallaMedioMe/dulaMejillaMejorMelenaMelo/nMemoriaMenorMensajeMenteMenu/MercadoMerengueMe/ritoMesMeso/nMetaMeterMe/todoMetroMezclaMiedoMielMiembroMigaMilMilagroMilitarMillo/nMimoMinaMineroMi/nimoMinutoMiopeMirarMisaMiseriaMisilMismoMitadMitoMochilaMocio/nModaModeloMohoMojarMoldeMolerMolinoMomentoMomiaMonarcaMonedaMonjaMontoMo~oMoradaMorderMorenoMorirMorroMorsaMortalMoscaMostrarMotivoMoverMo/vilMozoMuchoMudarMuebleMuelaMuerteMuestraMugreMujerMulaMuletaMultaMundoMu~ecaMuralMuroMu/sculoMuseoMusgoMu/sicaMusloNa/carNacio/nNadarNaipeNaranjaNarizNarrarNasalNatalNativoNaturalNa/useaNavalNaveNavidadNecioNe/ctarNegarNegocioNegroNeo/nNervioNetoNeutroNevarNeveraNichoNidoNieblaNietoNi~ezNi~oNi/tidoNivelNoblezaNocheNo/minaNoriaNormaNorteNotaNoticiaNovatoNovelaNovioNubeNucaNu/cleoNudilloNudoNueraNueveNuezNuloNu/meroNutriaOasisObesoObispoObjetoObraObreroObservarObtenerObvioOcaOcasoOce/anoOchentaOchoOcioOcreOctavoOctubreOcultoOcuparOcurrirOdiarOdioOdiseaOesteOfensaOfertaOficioOfrecerOgroOi/doOi/rOjoOlaOleadaOlfatoOlivoOllaOlmoOlorOlvidoOmbligoOndaOnzaOpacoOpcio/nO/peraOpinarOponerOptarO/pticaOpuestoOracio/nOradorOralO/rbitaOrcaOrdenOrejaO/rganoOrgi/aOrgulloOrienteOrigenOrillaOroOrquestaOrugaOsadi/aOscuroOseznoOsoOstraOto~oOtroOvejaO/vuloO/xidoOxi/genoOyenteOzonoPactoPadrePaellaPa/ginaPagoPai/sPa/jaroPalabraPalcoPaletaPa/lidoPalmaPalomaPalparPanPanalPa/nicoPanteraPa~ueloPapa/PapelPapillaPaquetePararParcelaParedParirParoPa/rpadoParquePa/rrafoPartePasarPaseoPasio/nPasoPastaPataPatioPatriaPausaPautaPavoPayasoPeato/nPecadoPeceraPechoPedalPedirPegarPeinePelarPelda~oPeleaPeligroPellejoPeloPelucaPenaPensarPe~o/nPeo/nPeorPepinoPeque~oPeraPerchaPerderPerezaPerfilPericoPerlaPermisoPerroPersonaPesaPescaPe/simoPesta~aPe/taloPetro/leoPezPezu~aPicarPicho/nPiePiedraPiernaPiezaPijamaPilarPilotoPimientaPinoPintorPinzaPi~aPiojoPipaPirataPisarPiscinaPisoPistaPito/nPizcaPlacaPlanPlataPlayaPlazaPleitoPlenoPlomoPlumaPluralPobrePocoPoderPodioPoemaPoesi/aPoetaPolenPolici/aPolloPolvoPomadaPomeloPomoPompaPonerPorcio/nPortalPosadaPoseerPosiblePostePotenciaPotroPozoPradoPrecozPreguntaPremioPrensaPresoPrevioPrimoPri/ncipePrisio/nPrivarProaProbarProcesoProductoProezaProfesorProgramaProlePromesaProntoPropioPro/ximoPruebaPu/blicoPucheroPudorPuebloPuertaPuestoPulgaPulirPulmo/nPulpoPulsoPumaPuntoPu~alPu~oPupaPupilaPure/QuedarQuejaQuemarQuererQuesoQuietoQui/micaQuinceQuitarRa/banoRabiaRaboRacio/nRadicalRai/zRamaRampaRanchoRangoRapazRa/pidoRaptoRasgoRaspaRatoRayoRazaRazo/nReaccio/nRealidadReba~oReboteRecaerRecetaRechazoRecogerRecreoRectoRecursoRedRedondoReducirReflejoReformaRefra/nRefugioRegaloRegirReglaRegresoRehe/nReinoRei/rRejaRelatoRelevoRelieveRellenoRelojRemarRemedioRemoRencorRendirRentaRepartoRepetirReposoReptilResRescateResinaRespetoRestoResumenRetiroRetornoRetratoReunirReve/sRevistaReyRezarRicoRiegoRiendaRiesgoRifaRi/gidoRigorRinco/nRi~o/nRi/oRiquezaRisaRitmoRitoRizoRobleRoceRociarRodarRodeoRodillaRoerRojizoRojoRomeroRomperRonRoncoRondaRopaRoperoRosaRoscaRostroRotarRubi/RuborRudoRuedaRugirRuidoRuinaRuletaRuloRumboRumorRupturaRutaRutinaSa/badoSaberSabioSableSacarSagazSagradoSalaSaldoSaleroSalirSalmo/nSalo/nSalsaSaltoSaludSalvarSambaSancio/nSandi/aSanearSangreSanidadSanoSantoSapoSaqueSardinaSarte/nSastreSata/nSaunaSaxofo/nSeccio/nSecoSecretoSectaSedSeguirSeisSelloSelvaSemanaSemillaSendaSensorSe~alSe~orSepararSepiaSequi/aSerSerieSermo/nServirSesentaSesio/nSetaSetentaSeveroSexoSextoSidraSiestaSieteSigloSignoSi/labaSilbarSilencioSillaSi/mboloSimioSirenaSistemaSitioSituarSobreSocioSodioSolSolapaSoldadoSoledadSo/lidoSoltarSolucio/nSombraSondeoSonidoSonoroSonrisaSopaSoplarSoporteSordoSorpresaSorteoSoste/nSo/tanoSuaveSubirSucesoSudorSuegraSueloSue~oSuerteSufrirSujetoSulta/nSumarSuperarSuplirSuponerSupremoSurSurcoSure~oSurgirSustoSutilTabacoTabiqueTablaTabu/TacoTactoTajoTalarTalcoTalentoTallaTalo/nTama~oTamborTangoTanqueTapaTapeteTapiaTapo/nTaquillaTardeTareaTarifaTarjetaTarotTarroTartaTatuajeTauroTazaTazo/nTeatroTechoTeclaTe/cnicaTejadoTejerTejidoTelaTele/fonoTemaTemorTemploTenazTenderTenerTenisTensoTeori/aTerapiaTercoTe/rminoTernuraTerrorTesisTesoroTestigoTeteraTextoTezTibioTiburo/nTiempoTiendaTierraTiesoTigreTijeraTildeTimbreTi/midoTimoTintaTi/oTi/picoTipoTiraTiro/nTita/nTi/tereTi/tuloTizaToallaTobilloTocarTocinoTodoTogaToldoTomarTonoTontoToparTopeToqueTo/raxToreroTormentaTorneoToroTorpedoTorreTorsoTortugaTosToscoToserTo/xicoTrabajoTractorTraerTra/ficoTragoTrajeTramoTranceTratoTraumaTrazarTre/bolTreguaTreintaTrenTreparTresTribuTrigoTripaTristeTriunfoTrofeoTrompaTroncoTropaTroteTrozoTrucoTruenoTrufaTuberi/aTuboTuertoTumbaTumorTu/nelTu/nicaTurbinaTurismoTurnoTutorUbicarU/lceraUmbralUnidadUnirUniversoUnoUntarU~aUrbanoUrbeUrgenteUrnaUsarUsuarioU/tilUtopi/aUvaVacaVaci/oVacunaVagarVagoVainaVajillaValeVa/lidoValleValorVa/lvulaVampiroVaraVariarVaro/nVasoVecinoVectorVehi/culoVeinteVejezVelaVeleroVelozVenaVencerVendaVenenoVengarVenirVentaVenusVerVeranoVerboVerdeVeredaVerjaVersoVerterVi/aViajeVibrarVicioVi/ctimaVidaVi/deoVidrioViejoViernesVigorVilVillaVinagreVinoVi~edoVioli/nViralVirgoVirtudVisorVi/speraVistaVitaminaViudoVivazViveroVivirVivoVolca/nVolumenVolverVorazVotarVotoVozVueloVulgarYacerYateYeguaYemaYernoYesoYodoYogaYogurZafiroZanjaZapatoZarzaZonaZorroZumoZurdo";var In={};var rn=null;function dropDiacritic(st){nn.logger.checkNormalize();return(0,tn.toUtf8String)(Array.prototype.filter.call((0,tn.toUtf8Bytes)(st.normalize("NFD").toLowerCase()),(function(st){return st>=65&&st<=90||st>=97&&st<=123})))}function expand(st){var Wt=[];Array.prototype.forEach.call((0,tn.toUtf8Bytes)(st),(function(st){if(st===47){Wt.push(204);Wt.push(129)}else if(st===126){Wt.push(110);Wt.push(204);Wt.push(131)}else{Wt.push(st)}}));return(0,tn.toUtf8String)(Wt)}function loadWords(st){if(rn!=null){return}rn=an.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" ").map((function(st){return expand(st)}));rn.forEach((function(st,Wt){In[dropDiacritic(st)]=Wt}));if(nn.Wordlist.check(st)!=="0xf74fb7092aeacdfbf8959557de22098da512207fb9f109cb526994938cf40300"){rn=null;throw new Error("BIP39 Wordlist for es (Spanish) FAILED")}}var cn=function(st){en(LangEs,st);function LangEs(){return st.call(this,"es")||this}LangEs.prototype.getWord=function(st){loadWords(this);return rn[st]};LangEs.prototype.getWordIndex=function(st){loadWords(this);return In[dropDiacritic(st)]};return LangEs}(nn.Wordlist);var on=new cn;Wt.langEs=on;nn.Wordlist.register(on)},58079:function(st,Wt,Ot){"use strict";var en=this&&this.__extends||function(){var extendStatics=function(st,Wt){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(st,Wt){st.__proto__=Wt}||function(st,Wt){for(var Ot in Wt)if(Object.prototype.hasOwnProperty.call(Wt,Ot))st[Ot]=Wt[Ot]};return extendStatics(st,Wt)};return function(st,Wt){if(typeof Wt!=="function"&&Wt!==null)throw new TypeError("Class extends value "+String(Wt)+" is not a constructor or null");extendStatics(st,Wt);function __(){this.constructor=st}st.prototype=Wt===null?Object.create(Wt):(__.prototype=Wt.prototype,new __)}}();Object.defineProperty(Wt,"__esModule",{value:true});Wt.langFr=void 0;var tn=Ot(13859);var nn=Ot(18210);var an="AbaisserAbandonAbdiquerAbeilleAbolirAborderAboutirAboyerAbrasifAbreuverAbriterAbrogerAbruptAbsenceAbsoluAbsurdeAbusifAbyssalAcade/mieAcajouAcarienAccablerAccepterAcclamerAccoladeAccrocheAccuserAcerbeAchatAcheterAcidulerAcierAcompteAcque/rirAcronymeActeurActifActuelAdepteAde/quatAdhe/sifAdjectifAdjugerAdmettreAdmirerAdopterAdorerAdoucirAdresseAdroitAdulteAdverbeAe/rerAe/ronefAffaireAffecterAfficheAffreuxAffublerAgacerAgencerAgileAgiterAgraferAgre/ableAgrumeAiderAiguilleAilierAimableAisanceAjouterAjusterAlarmerAlchimieAlerteAlge-breAlgueAlie/nerAlimentAlle/gerAlliageAllouerAllumerAlourdirAlpagaAltesseAlve/oleAmateurAmbiguAmbreAme/nagerAmertumeAmidonAmiralAmorcerAmourAmovibleAmphibieAmpleurAmusantAnalyseAnaphoreAnarchieAnatomieAncienAne/antirAngleAngoisseAnguleuxAnimalAnnexerAnnonceAnnuelAnodinAnomalieAnonymeAnormalAntenneAntidoteAnxieuxApaiserApe/ritifAplanirApologieAppareilAppelerApporterAppuyerAquariumAqueducArbitreArbusteArdeurArdoiseArgentArlequinArmatureArmementArmoireArmureArpenterArracherArriverArroserArsenicArte/rielArticleAspectAsphalteAspirerAssautAsservirAssietteAssocierAssurerAsticotAstreAstuceAtelierAtomeAtriumAtroceAttaqueAttentifAttirerAttraperAubaineAubergeAudaceAudibleAugurerAuroreAutomneAutrucheAvalerAvancerAvariceAvenirAverseAveugleAviateurAvideAvionAviserAvoineAvouerAvrilAxialAxiomeBadgeBafouerBagageBaguetteBaignadeBalancerBalconBaleineBalisageBambinBancaireBandageBanlieueBannie-reBanquierBarbierBarilBaronBarqueBarrageBassinBastionBatailleBateauBatterieBaudrierBavarderBeletteBe/lierBeloteBe/ne/ficeBerceauBergerBerlineBermudaBesaceBesogneBe/tailBeurreBiberonBicycleBiduleBijouBilanBilingueBillardBinaireBiologieBiopsieBiotypeBiscuitBisonBistouriBitumeBizarreBlafardBlagueBlanchirBlessantBlinderBlondBloquerBlousonBobardBobineBoireBoiserBolideBonbonBondirBonheurBonifierBonusBordureBorneBotteBoucleBoueuxBougieBoulonBouquinBourseBoussoleBoutiqueBoxeurBrancheBrasierBraveBrebisBre-cheBreuvageBricolerBrigadeBrillantBriocheBriqueBrochureBroderBronzerBrousseBroyeurBrumeBrusqueBrutalBruyantBuffleBuissonBulletinBureauBurinBustierButinerButoirBuvableBuvetteCabanonCabineCachetteCadeauCadreCafe/ineCaillouCaissonCalculerCalepinCalibreCalmerCalomnieCalvaireCamaradeCame/raCamionCampagneCanalCanetonCanonCantineCanularCapableCaporalCapriceCapsuleCapterCapucheCarabineCarboneCaresserCaribouCarnageCarotteCarreauCartonCascadeCasierCasqueCassureCauserCautionCavalierCaverneCaviarCe/dilleCeintureCe/lesteCelluleCendrierCensurerCentralCercleCe/re/bralCeriseCernerCerveauCesserChagrinChaiseChaleurChambreChanceChapitreCharbonChasseurChatonChaussonChavirerChemiseChenilleChe/quierChercherChevalChienChiffreChignonChime-reChiotChlorureChocolatChoisirChoseChouetteChromeChuteCigareCigogneCimenterCine/maCintrerCirculerCirerCirqueCiterneCitoyenCitronCivilClaironClameurClaquerClasseClavierClientClignerClimatClivageClocheClonageCloporteCobaltCobraCocasseCocotierCoderCodifierCoffreCognerCohe/sionCoifferCoincerCole-reColibriCollineColmaterColonelCombatCome/dieCommandeCompactConcertConduireConfierCongelerConnoterConsonneContactConvexeCopainCopieCorailCorbeauCordageCornicheCorpusCorrectCorte-geCosmiqueCostumeCotonCoudeCoupureCourageCouteauCouvrirCoyoteCrabeCrainteCravateCrayonCre/atureCre/diterCre/meuxCreuserCrevetteCriblerCrierCristalCrite-reCroireCroquerCrotaleCrucialCruelCrypterCubiqueCueillirCuille-reCuisineCuivreCulminerCultiverCumulerCupideCuratifCurseurCyanureCycleCylindreCyniqueDaignerDamierDangerDanseurDauphinDe/battreDe/biterDe/borderDe/briderDe/butantDe/calerDe/cembreDe/chirerDe/ciderDe/clarerDe/corerDe/crireDe/cuplerDe/daleDe/ductifDe/esseDe/fensifDe/filerDe/frayerDe/gagerDe/givrerDe/glutirDe/graferDe/jeunerDe/liceDe/logerDemanderDemeurerDe/molirDe/nicherDe/nouerDentelleDe/nuderDe/partDe/penserDe/phaserDe/placerDe/poserDe/rangerDe/roberDe/sastreDescenteDe/sertDe/signerDe/sobe/irDessinerDestrierDe/tacherDe/testerDe/tourerDe/tresseDevancerDevenirDevinerDevoirDiableDialogueDiamantDicterDiffe/rerDige/rerDigitalDigneDiluerDimancheDiminuerDioxydeDirectifDirigerDiscuterDisposerDissiperDistanceDivertirDiviserDocileDocteurDogmeDoigtDomaineDomicileDompterDonateurDonjonDonnerDopamineDortoirDorureDosageDoseurDossierDotationDouanierDoubleDouceurDouterDoyenDragonDraperDresserDribblerDroitureDuperieDuplexeDurableDurcirDynastieE/blouirE/carterE/charpeE/chelleE/clairerE/clipseE/cloreE/cluseE/coleE/conomieE/corceE/couterE/craserE/cre/merE/crivainE/crouE/cumeE/cureuilE/difierE/duquerEffacerEffectifEffigieEffortEffrayerEffusionE/galiserE/garerE/jecterE/laborerE/largirE/lectronE/le/gantE/le/phantE/le-veE/ligibleE/litismeE/logeE/luciderE/luderEmballerEmbellirEmbryonE/meraudeE/missionEmmenerE/motionE/mouvoirEmpereurEmployerEmporterEmpriseE/mulsionEncadrerEnche-reEnclaveEncocheEndiguerEndosserEndroitEnduireE/nergieEnfanceEnfermerEnfouirEngagerEnginEngloberE/nigmeEnjamberEnjeuEnleverEnnemiEnnuyeuxEnrichirEnrobageEnseigneEntasserEntendreEntierEntourerEntraverE/nume/rerEnvahirEnviableEnvoyerEnzymeE/olienE/paissirE/pargneE/patantE/pauleE/picerieE/pide/mieE/pierE/pilogueE/pineE/pisodeE/pitapheE/poqueE/preuveE/prouverE/puisantE/querreE/quipeE/rigerE/rosionErreurE/ruptionEscalierEspadonEspe-ceEspie-gleEspoirEspritEsquiverEssayerEssenceEssieuEssorerEstimeEstomacEstradeE/tage-reE/talerE/tancheE/tatiqueE/teindreE/tendoirE/ternelE/thanolE/thiqueEthnieE/tirerE/tofferE/toileE/tonnantE/tourdirE/trangeE/troitE/tudeEuphorieE/valuerE/vasionE/ventailE/videnceE/viterE/volutifE/voquerExactExage/rerExaucerExcellerExcitantExclusifExcuseExe/cuterExempleExercerExhalerExhorterExigenceExilerExisterExotiqueExpe/dierExplorerExposerExprimerExquisExtensifExtraireExulterFableFabuleuxFacetteFacileFactureFaiblirFalaiseFameuxFamilleFarceurFarfeluFarineFaroucheFascinerFatalFatigueFauconFautifFaveurFavoriFe/brileFe/conderFe/de/rerFe/linFemmeFe/murFendoirFe/odalFermerFe/roceFerveurFestivalFeuilleFeutreFe/vrierFiascoFicelerFictifFide-leFigureFilatureFiletageFilie-reFilleulFilmerFilouFiltrerFinancerFinirFioleFirmeFissureFixerFlairerFlammeFlasqueFlatteurFle/auFle-cheFleurFlexionFloconFloreFluctuerFluideFluvialFolieFonderieFongibleFontaineForcerForgeronFormulerFortuneFossileFoudreFouge-reFouillerFoulureFourmiFragileFraiseFranchirFrapperFrayeurFre/gateFreinerFrelonFre/mirFre/ne/sieFre-reFriableFrictionFrissonFrivoleFroidFromageFrontalFrotterFruitFugitifFuiteFureurFurieuxFurtifFusionFuturGagnerGalaxieGalerieGambaderGarantirGardienGarnirGarrigueGazelleGazonGe/antGe/latineGe/luleGendarmeGe/ne/ralGe/nieGenouGentilGe/ologieGe/ome-treGe/raniumGermeGestuelGeyserGibierGiclerGirafeGivreGlaceGlaiveGlisserGlobeGloireGlorieuxGolfeurGommeGonflerGorgeGorilleGoudronGouffreGoulotGoupilleGourmandGoutteGraduelGraffitiGraineGrandGrappinGratuitGravirGrenatGriffureGrillerGrimperGrognerGronderGrotteGroupeGrugerGrutierGruye-reGue/pardGuerrierGuideGuimauveGuitareGustatifGymnasteGyrostatHabitudeHachoirHalteHameauHangarHannetonHaricotHarmonieHarponHasardHe/liumHe/matomeHerbeHe/rissonHermineHe/ronHe/siterHeureuxHibernerHibouHilarantHistoireHiverHomardHommageHomoge-neHonneurHonorerHonteuxHordeHorizonHorlogeHormoneHorribleHouleuxHousseHublotHuileuxHumainHumbleHumideHumourHurlerHydromelHygie-neHymneHypnoseIdylleIgnorerIguaneIlliciteIllusionImageImbiberImiterImmenseImmobileImmuableImpactImpe/rialImplorerImposerImprimerImputerIncarnerIncendieIncidentInclinerIncoloreIndexerIndiceInductifIne/ditIneptieInexactInfiniInfligerInformerInfusionInge/rerInhalerInhiberInjecterInjureInnocentInoculerInonderInscrireInsecteInsigneInsoliteInspirerInstinctInsulterIntactIntenseIntimeIntrigueIntuitifInutileInvasionInventerInviterInvoquerIroniqueIrradierIrre/elIrriterIsolerIvoireIvresseJaguarJaillirJambeJanvierJardinJaugerJauneJavelotJetableJetonJeudiJeunesseJoindreJoncherJonglerJoueurJouissifJournalJovialJoyauJoyeuxJubilerJugementJuniorJuponJuristeJusticeJuteuxJuve/nileKayakKimonoKiosqueLabelLabialLabourerLace/rerLactoseLaguneLaineLaisserLaitierLambeauLamelleLampeLanceurLangageLanterneLapinLargeurLarmeLaurierLavaboLavoirLectureLe/galLe/gerLe/gumeLessiveLettreLevierLexiqueLe/zardLiasseLibe/rerLibreLicenceLicorneLie-geLie-vreLigatureLigoterLigueLimerLimiteLimonadeLimpideLine/aireLingotLionceauLiquideLisie-reListerLithiumLitigeLittoralLivreurLogiqueLointainLoisirLombricLoterieLouerLourdLoutreLouveLoyalLubieLucideLucratifLueurLugubreLuisantLumie-reLunaireLundiLuronLutterLuxueuxMachineMagasinMagentaMagiqueMaigreMaillonMaintienMairieMaisonMajorerMalaxerMale/ficeMalheurMaliceMalletteMammouthMandaterManiableManquantManteauManuelMarathonMarbreMarchandMardiMaritimeMarqueurMarronMartelerMascotteMassifMate/rielMatie-reMatraqueMaudireMaussadeMauveMaximalMe/chantMe/connuMe/dailleMe/decinMe/diterMe/duseMeilleurMe/langeMe/lodieMembreMe/moireMenacerMenerMenhirMensongeMentorMercrediMe/riteMerleMessagerMesureMe/talMe/te/oreMe/thodeMe/tierMeubleMiaulerMicrobeMietteMignonMigrerMilieuMillionMimiqueMinceMine/ralMinimalMinorerMinuteMiracleMiroiterMissileMixteMobileModerneMoelleuxMondialMoniteurMonnaieMonotoneMonstreMontagneMonumentMoqueurMorceauMorsureMortierMoteurMotifMoucheMoufleMoulinMoussonMoutonMouvantMultipleMunitionMurailleMure-neMurmureMuscleMuse/umMusicienMutationMuterMutuelMyriadeMyrtilleMyste-reMythiqueNageurNappeNarquoisNarrerNatationNationNatureNaufrageNautiqueNavireNe/buleuxNectarNe/fasteNe/gationNe/gligerNe/gocierNeigeNerveuxNettoyerNeuroneNeutronNeveuNicheNickelNitrateNiveauNobleNocifNocturneNoirceurNoisetteNomadeNombreuxNommerNormatifNotableNotifierNotoireNourrirNouveauNovateurNovembreNoviceNuageNuancerNuireNuisibleNume/roNuptialNuqueNutritifObe/irObjectifObligerObscurObserverObstacleObtenirObturerOccasionOccuperOce/anOctobreOctroyerOctuplerOculaireOdeurOdorantOffenserOfficierOffrirOgiveOiseauOisillonOlfactifOlivierOmbrageOmettreOnctueuxOndulerOne/reuxOniriqueOpaleOpaqueOpe/rerOpinionOpportunOpprimerOpterOptiqueOrageuxOrangeOrbiteOrdonnerOreilleOrganeOrgueilOrificeOrnementOrqueOrtieOscillerOsmoseOssatureOtarieOuraganOursonOutilOutragerOuvrageOvationOxydeOxyge-neOzonePaisiblePalacePalmare-sPalourdePalperPanachePandaPangolinPaniquerPanneauPanoramaPantalonPapayePapierPapoterPapyrusParadoxeParcelleParesseParfumerParlerParoleParrainParsemerPartagerParureParvenirPassionPaste-quePaternelPatiencePatronPavillonPavoiserPayerPaysagePeignePeintrePelagePe/licanPellePelousePeluchePendulePe/ne/trerPe/niblePensifPe/nuriePe/pitePe/plumPerdrixPerforerPe/riodePermuterPerplexePersilPertePeserPe/talePetitPe/trirPeuplePharaonPhobiePhoquePhotonPhrasePhysiquePianoPicturalPie-cePierrePieuvrePilotePinceauPipettePiquerPiroguePiscinePistonPivoterPixelPizzaPlacardPlafondPlaisirPlanerPlaquePlastronPlateauPleurerPlexusPliagePlombPlongerPluiePlumagePochettePoe/siePoe-tePointePoirierPoissonPoivrePolairePolicierPollenPolygonePommadePompierPonctuelPonde/rerPoneyPortiquePositionPosse/derPosturePotagerPoteauPotionPoucePoulainPoumonPourprePoussinPouvoirPrairiePratiquePre/cieuxPre/direPre/fixePre/ludePre/nomPre/sencePre/textePre/voirPrimitifPrincePrisonPriverProble-meProce/derProdigeProfondProgre-sProieProjeterProloguePromenerPropreProspe-reProte/gerProuesseProverbePrudencePruneauPsychosePublicPuceronPuiserPulpePulsarPunaisePunitifPupitrePurifierPuzzlePyramideQuasarQuerelleQuestionQuie/tudeQuitterQuotientRacineRaconterRadieuxRagondinRaideurRaisinRalentirRallongeRamasserRapideRasageRatisserRavagerRavinRayonnerRe/actifRe/agirRe/aliserRe/animerRecevoirRe/citerRe/clamerRe/colterRecruterReculerRecyclerRe/digerRedouterRefaireRe/flexeRe/formerRefrainRefugeRe/galienRe/gionRe/glageRe/gulierRe/ite/rerRejeterRejouerRelatifReleverReliefRemarqueReme-deRemiseRemonterRemplirRemuerRenardRenfortReniflerRenoncerRentrerRenvoiReplierReporterRepriseReptileRequinRe/serveRe/sineuxRe/soudreRespectResterRe/sultatRe/tablirRetenirRe/ticuleRetomberRetracerRe/unionRe/ussirRevancheRevivreRe/volteRe/vulsifRichesseRideauRieurRigideRigolerRincerRiposterRisibleRisqueRituelRivalRivie-reRocheuxRomanceRompreRonceRondinRoseauRosierRotatifRotorRotuleRougeRouilleRouleauRoutineRoyaumeRubanRubisRucheRuelleRugueuxRuinerRuisseauRuserRustiqueRythmeSablerSaboterSabreSacocheSafariSagesseSaisirSaladeSaliveSalonSaluerSamediSanctionSanglierSarcasmeSardineSaturerSaugrenuSaumonSauterSauvageSavantSavonnerScalpelScandaleSce/le/ratSce/narioSceptreSche/maScienceScinderScoreScrutinSculpterSe/anceSe/cableSe/cherSecouerSe/cre/terSe/datifSe/duireSeigneurSe/jourSe/lectifSemaineSemblerSemenceSe/minalSe/nateurSensibleSentenceSe/parerSe/quenceSereinSergentSe/rieuxSerrureSe/rumServiceSe/sameSe/virSevrageSextupleSide/ralSie-cleSie/gerSifflerSigleSignalSilenceSiliciumSimpleSince-reSinistreSiphonSiropSismiqueSituerSkierSocialSocleSodiumSoigneuxSoldatSoleilSolitudeSolubleSombreSommeilSomnolerSondeSongeurSonnetteSonoreSorcierSortirSosieSottiseSoucieuxSoudureSouffleSouleverSoupapeSourceSoutirerSouvenirSpacieuxSpatialSpe/cialSphe-reSpiralStableStationSternumStimulusStipulerStrictStudieuxStupeurStylisteSublimeSubstratSubtilSubvenirSucce-sSucreSuffixeSugge/rerSuiveurSulfateSuperbeSupplierSurfaceSuricateSurmenerSurpriseSursautSurvieSuspectSyllabeSymboleSyme/trieSynapseSyntaxeSyste-meTabacTablierTactileTaillerTalentTalismanTalonnerTambourTamiserTangibleTapisTaquinerTarderTarifTartineTasseTatamiTatouageTaupeTaureauTaxerTe/moinTemporelTenailleTendreTeneurTenirTensionTerminerTerneTerribleTe/tineTexteThe-meThe/orieThe/rapieThoraxTibiaTie-deTimideTirelireTiroirTissuTitaneTitreTituberTobogganTole/rantTomateToniqueTonneauToponymeTorcheTordreTornadeTorpilleTorrentTorseTortueTotemToucherTournageTousserToxineTractionTraficTragiqueTrahirTrainTrancherTravailTre-fleTremperTre/sorTreuilTriageTribunalTricoterTrilogieTriompheTriplerTriturerTrivialTromboneTroncTropicalTroupeauTuileTulipeTumulteTunnelTurbineTuteurTutoyerTuyauTympanTyphonTypiqueTyranUbuesqueUltimeUltrasonUnanimeUnifierUnionUniqueUnitaireUniversUraniumUrbainUrticantUsageUsineUsuelUsureUtileUtopieVacarmeVaccinVagabondVagueVaillantVaincreVaisseauValableValiseVallonValveVampireVanilleVapeurVarierVaseuxVassalVasteVecteurVedetteVe/ge/talVe/hiculeVeinardVe/loceVendrediVe/ne/rerVengerVenimeuxVentouseVerdureVe/rinVernirVerrouVerserVertuVestonVe/te/ranVe/tusteVexantVexerViaducViandeVictoireVidangeVide/oVignetteVigueurVilainVillageVinaigreViolonVipe-reVirementVirtuoseVirusVisageViseurVisionVisqueuxVisuelVitalVitesseViticoleVitrineVivaceVivipareVocationVoguerVoileVoisinVoitureVolailleVolcanVoltigerVolumeVoraceVortexVoterVouloirVoyageVoyelleWagonXe/nonYachtZe-breZe/nithZesteZoologie";var In=null;var rn={};function dropDiacritic(st){nn.logger.checkNormalize();return(0,tn.toUtf8String)(Array.prototype.filter.call((0,tn.toUtf8Bytes)(st.normalize("NFD").toLowerCase()),(function(st){return st>=65&&st<=90||st>=97&&st<=123})))}function expand(st){var Wt=[];Array.prototype.forEach.call((0,tn.toUtf8Bytes)(st),(function(st){if(st===47){Wt.push(204);Wt.push(129)}else if(st===45){Wt.push(204);Wt.push(128)}else{Wt.push(st)}}));return(0,tn.toUtf8String)(Wt)}function loadWords(st){if(In!=null){return}In=an.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" ").map((function(st){return expand(st)}));In.forEach((function(st,Wt){rn[dropDiacritic(st)]=Wt}));if(nn.Wordlist.check(st)!=="0x51deb7ae009149dc61a6bd18a918eb7ac78d2775726c68e598b92d002519b045"){In=null;throw new Error("BIP39 Wordlist for fr (French) FAILED")}}var cn=function(st){en(LangFr,st);function LangFr(){return st.call(this,"fr")||this}LangFr.prototype.getWord=function(st){loadWords(this);return In[st]};LangFr.prototype.getWordIndex=function(st){loadWords(this);return rn[dropDiacritic(st)]};return LangFr}(nn.Wordlist);var on=new cn;Wt.langFr=on;nn.Wordlist.register(on)},87054:function(st,Wt,Ot){"use strict";var en=this&&this.__extends||function(){var extendStatics=function(st,Wt){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(st,Wt){st.__proto__=Wt}||function(st,Wt){for(var Ot in Wt)if(Object.prototype.hasOwnProperty.call(Wt,Ot))st[Ot]=Wt[Ot]};return extendStatics(st,Wt)};return function(st,Wt){if(typeof Wt!=="function"&&Wt!==null)throw new TypeError("Class extends value "+String(Wt)+" is not a constructor or null");extendStatics(st,Wt);function __(){this.constructor=st}st.prototype=Wt===null?Object.create(Wt):(__.prototype=Wt.prototype,new __)}}();Object.defineProperty(Wt,"__esModule",{value:true});Wt.langIt=void 0;var tn=Ot(18210);var nn="AbacoAbbaglioAbbinatoAbeteAbissoAbolireAbrasivoAbrogatoAccadereAccennoAccusatoAcetoneAchilleAcidoAcquaAcreAcrilicoAcrobataAcutoAdagioAddebitoAddomeAdeguatoAderireAdipeAdottareAdulareAffabileAffettoAffissoAffrantoAforismaAfosoAfricanoAgaveAgenteAgevoleAggancioAgireAgitareAgonismoAgricoloAgrumetoAguzzoAlabardaAlatoAlbatroAlberatoAlboAlbumeAlceAlcolicoAlettoneAlfaAlgebraAlianteAlibiAlimentoAllagatoAllegroAllievoAllodolaAllusivoAlmenoAlogenoAlpacaAlpestreAltalenaAlternoAlticcioAltroveAlunnoAlveoloAlzareAmalgamaAmanitaAmarenaAmbitoAmbratoAmebaAmericaAmetistaAmicoAmmassoAmmendaAmmirareAmmonitoAmoreAmpioAmpliareAmuletoAnacardoAnagrafeAnalistaAnarchiaAnatraAncaAncellaAncoraAndareAndreaAnelloAngeloAngolareAngustoAnimaAnnegareAnnidatoAnnoAnnuncioAnonimoAnticipoAnziApaticoAperturaApodeApparireAppetitoAppoggioApprodoAppuntoAprileArabicaArachideAragostaAraldicaArancioAraturaArazzoArbitroArchivioArditoArenileArgentoArgineArgutoAriaArmoniaArneseArredatoArringaArrostoArsenicoArsoArteficeArzilloAsciuttoAscoltoAsepsiAsetticoAsfaltoAsinoAsolaAspiratoAsproAssaggioAsseAssolutoAssurdoAstaAstenutoAsticeAstrattoAtavicoAteismoAtomicoAtonoAttesaAttivareAttornoAttritoAttualeAusilioAustriaAutistaAutonomoAutunnoAvanzatoAvereAvvenireAvvisoAvvolgereAzioneAzotoAzzimoAzzurroBabeleBaccanoBacinoBacoBadessaBadilataBagnatoBaitaBalconeBaldoBalenaBallataBalzanoBambinoBandireBaraondaBarbaroBarcaBaritonoBarlumeBaroccoBasilicoBassoBatostaBattutoBauleBavaBavosaBeccoBeffaBelgioBelvaBendaBenevoleBenignoBenzinaBereBerlinaBetaBibitaBiciBidoneBifidoBigaBilanciaBimboBinocoloBiologoBipedeBipolareBirbanteBirraBiscottoBisestoBisnonnoBisonteBisturiBizzarroBlandoBlattaBollitoBonificoBordoBoscoBotanicoBottinoBozzoloBraccioBradipoBramaBrancaBravuraBretellaBrevettoBrezzaBrigliaBrillanteBrindareBroccoloBrodoBronzinaBrulloBrunoBubboneBucaBudinoBuffoneBuioBulboBuonoBurloneBurrascaBussolaBustaCadettoCaducoCalamaroCalcoloCalesseCalibroCalmoCaloriaCambusaCamerataCamiciaCamminoCamolaCampaleCanapaCandelaCaneCaninoCanottoCantinaCapaceCapelloCapitoloCapogiroCapperoCapraCapsulaCarapaceCarcassaCardoCarismaCarovanaCarrettoCartolinaCasaccioCascataCasermaCasoCassoneCastelloCasualeCatastaCatenaCatrameCautoCavilloCedibileCedrataCefaloCelebreCellulareCenaCenoneCentesimoCeramicaCercareCertoCerumeCervelloCesoiaCespoCetoChelaChiaroChiccaChiedereChimeraChinaChirurgoChitarraCiaoCiclismoCifrareCignoCilindroCiottoloCircaCirrosiCitricoCittadinoCiuffoCivettaCivileClassicoClinicaCloroCoccoCodardoCodiceCoerenteCognomeCollareColmatoColoreColposoColtivatoColzaComaCometaCommandoComodoComputerComuneConcisoCondurreConfermaCongelareConiugeConnessoConoscereConsumoContinuoConvegnoCopertoCopioneCoppiaCopricapoCorazzaCordataCoricatoCorniceCorollaCorpoCorredoCorsiaCorteseCosmicoCostanteCotturaCovatoCratereCravattaCreatoCredereCremosoCrescitaCretaCricetoCrinaleCrisiCriticoCroceCronacaCrostataCrucialeCruscaCucireCuculoCuginoCullatoCupolaCuratoreCursoreCurvoCuscinoCustodeDadoDainoDalmataDamerinoDanielaDannosoDanzareDatatoDavantiDavveroDebuttoDecennioDecisoDeclinoDecolloDecretoDedicatoDefinitoDeformeDegnoDelegareDelfinoDelirioDeltaDemenzaDenotatoDentroDepositoDerapataDerivareDerogaDescrittoDesertoDesiderioDesumereDetersivoDevotoDiametroDicembreDiedroDifesoDiffusoDigerireDigitaleDiluvioDinamicoDinnanziDipintoDiplomaDipoloDiradareDireDirottoDirupoDisagioDiscretoDisfareDisgeloDispostoDistanzaDisumanoDitoDivanoDiveltoDividereDivoratoDobloneDocenteDoganaleDogmaDolceDomatoDomenicaDominareDondoloDonoDormireDoteDottoreDovutoDozzinaDragoDruidoDubbioDubitareDucaleDunaDuomoDupliceDuraturoEbanoEccessoEccoEclissiEconomiaEderaEdicolaEdileEditoriaEducareEgemoniaEgliEgoismoEgregioElaboratoElargireEleganteElencatoElettoElevareElficoElicaElmoElsaElusoEmanatoEmblemaEmessoEmiroEmotivoEmozioneEmpiricoEmuloEndemicoEnduroEnergiaEnfasiEnotecaEntrareEnzimaEpatiteEpilogoEpisodioEpocaleEppureEquatoreErarioErbaErbosoEredeEremitaErigereErmeticoEroeErosivoErranteEsagonoEsameEsanimeEsaudireEscaEsempioEsercitoEsibitoEsigenteEsistereEsitoEsofagoEsortatoEsosoEspansoEspressoEssenzaEssoEstesoEstimareEstoniaEstrosoEsultareEtilicoEtnicoEtruscoEttoEuclideoEuropaEvasoEvidenzaEvitatoEvolutoEvvivaFabbricaFaccendaFachiroFalcoFamigliaFanaleFanfaraFangoFantasmaFareFarfallaFarinosoFarmacoFasciaFastosoFasulloFaticareFatoFavolosoFebbreFecolaFedeFegatoFelpaFeltroFemminaFendereFenomenoFermentoFerroFertileFessuraFestivoFettaFeudoFiabaFiduciaFifaFiguratoFiloFinanzaFinestraFinireFioreFiscaleFisicoFiumeFlaconeFlamencoFleboFlemmaFloridoFluenteFluoroFobicoFocacciaFocosoFoderatoFoglioFolataFolcloreFolgoreFondenteFoneticoFoniaFontanaForbitoForchettaForestaFormicaFornaioForoFortezzaForzareFosfatoFossoFracassoFranaFrassinoFratelloFreccettaFrenataFrescoFrigoFrollinoFrondeFrugaleFruttaFucilataFucsiaFuggenteFulmineFulvoFumanteFumettoFumosoFuneFunzioneFuocoFurboFurgoneFuroreFusoFutileGabbianoGaffeGalateoGallinaGaloppoGamberoGammaGaranziaGarboGarofanoGarzoneGasdottoGasolioGastricoGattoGaudioGazeboGazzellaGecoGelatinaGelsoGemelloGemmatoGeneGenitoreGennaioGenotipoGergoGhepardoGhiaccioGhisaGialloGildaGineproGiocareGioielloGiornoGioveGiratoGironeGittataGiudizioGiuratoGiustoGlobuloGlutineGnomoGobbaGolfGomitoGommoneGonfioGonnaGovernoGracileGradoGraficoGrammoGrandeGrattareGravosoGraziaGrecaGreggeGrifoneGrigioGrinzaGrottaGruppoGuadagnoGuaioGuantoGuardareGufoGuidareIbernatoIconaIdenticoIdillioIdoloIdraIdricoIdrogenoIgieneIgnaroIgnoratoIlareIllesoIllogicoIlludereImballoImbevutoImboccoImbutoImmaneImmersoImmolatoImpaccoImpetoImpiegoImportoImprontaInalareInarcareInattivoIncantoIncendioInchinoIncisivoInclusoIncontroIncrocioIncuboIndagineIndiaIndoleIneditoInfattiInfilareInflittoIngaggioIngegnoIngleseIngordoIngrossoInnescoInodoreInoltrareInondatoInsanoInsettoInsiemeInsonniaInsulinaIntasatoInteroIntonacoIntuitoInumidireInvalidoInveceInvitoIperboleIpnoticoIpotesiIppicaIrideIrlandaIronicoIrrigatoIrrorareIsolatoIsotopoIstericoIstitutoIstriceItaliaIterareLabbroLabirintoLaccaLaceratoLacrimaLacunaLaddoveLagoLampoLancettaLanternaLardosoLargaLaringeLastraLatenzaLatinoLattugaLavagnaLavoroLegaleLeggeroLemboLentezzaLenzaLeoneLepreLesivoLessatoLestoLetteraleLevaLevigatoLiberoLidoLievitoLillaLimaturaLimitareLimpidoLineareLinguaLiquidoLiraLiricaLiscaLiteLitigioLivreaLocandaLodeLogicaLombareLondraLongevoLoquaceLorenzoLotoLotteriaLuceLucidatoLumacaLuminosoLungoLupoLuppoloLusingaLussoLuttoMacabroMacchinaMaceroMacinatoMadamaMagicoMagliaMagneteMagroMaiolicaMalafedeMalgradoMalintesoMalsanoMaltoMalumoreManaManciaMandorlaMangiareManifestoMannaroManovraMansardaMantideManubrioMappaMaratonaMarcireMarettaMarmoMarsupioMascheraMassaiaMastinoMaterassoMatricolaMattoneMaturoMazurcaMeandroMeccanicoMecenateMedesimoMeditareMegaMelassaMelisMelodiaMeningeMenoMensolaMercurioMerendaMerloMeschinoMeseMessereMestoloMetalloMetodoMettereMiagolareMicaMicelioMicheleMicroboMidolloMieleMiglioreMilanoMiliteMimosaMineraleMiniMinoreMirinoMirtilloMiscelaMissivaMistoMisurareMitezzaMitigareMitraMittenteMnemonicoModelloModificaModuloMoganoMogioMoleMolossoMonasteroMoncoMondinaMonetarioMonileMonotonoMonsoneMontatoMonvisoMoraMordereMorsicatoMostroMotivatoMotosegaMottoMovenzaMovimentoMozzoMuccaMucosaMuffaMughettoMugnaioMulattoMulinelloMultiploMummiaMuntoMuovereMuraleMusaMuscoloMusicaMutevoleMutoNababboNaftaNanometroNarcisoNariceNarratoNascereNastrareNaturaleNauticaNaviglioNebulosaNecrosiNegativoNegozioNemmenoNeofitaNerettoNervoNessunoNettunoNeutraleNeveNevroticoNicchiaNinfaNitidoNobileNocivoNodoNomeNominaNordicoNormaleNorvegeseNostranoNotareNotiziaNotturnoNovellaNucleoNullaNumeroNuovoNutrireNuvolaNuzialeOasiObbedireObbligoObeliscoOblioOboloObsoletoOccasioneOcchioOccidenteOccorrereOccultareOcraOculatoOdiernoOdorareOffertaOffrireOffuscatoOggettoOggiOgnunoOlandeseOlfattoOliatoOlivaOlogrammaOltreOmaggioOmbelicoOmbraOmegaOmissioneOndosoOnereOniceOnnivoroOnorevoleOntaOperatoOpinioneOppostoOracoloOrafoOrdineOrecchinoOreficeOrfanoOrganicoOrigineOrizzonteOrmaOrmeggioOrnativoOrologioOrrendoOrribileOrtensiaOrticaOrzataOrzoOsareOscurareOsmosiOspedaleOspiteOssaOssidareOstacoloOsteOtiteOtreOttagonoOttimoOttobreOvaleOvestOvinoOviparoOvocitoOvunqueOvviareOzioPacchettoPacePacificoPadellaPadronePaesePagaPaginaPalazzinaPalesarePallidoPaloPaludePandoroPannelloPaoloPaonazzoPapricaParabolaParcellaParerePargoloPariParlatoParolaPartireParvenzaParzialePassivoPasticcaPataccaPatologiaPattumePavonePeccatoPedalarePedonalePeggioPelosoPenarePendicePenisolaPennutoPenombraPensarePentolaPepePepitaPerbenePercorsoPerdonatoPerforarePergamenaPeriodoPermessoPernoPerplessoPersuasoPertugioPervasoPesatorePesistaPesoPestiferoPetaloPettinePetulantePezzoPiacerePiantaPiattinoPiccinoPicozzaPiegaPietraPifferoPigiamaPigolioPigroPilaPiliferoPillolaPilotaPimpantePinetaPinnaPinoloPioggiaPiomboPiramidePireticoPiritePirolisiPitonePizzicoPlaceboPlanarePlasmaPlatanoPlenarioPochezzaPoderosoPodismoPoesiaPoggiarePolentaPoligonoPollicePolmonitePolpettaPolsoPoltronaPolverePomicePomodoroPontePopolosoPorfidoPorosoPorporaPorrePortataPosaPositivoPossessoPostulatoPotassioPoterePranzoPrassiPraticaPreclusoPredicaPrefissoPregiatoPrelievoPremerePrenotarePreparatoPresenzaPretestoPrevalsoPrimaPrincipePrivatoProblemaProcuraProdurreProfumoProgettoProlungaPromessaPronomePropostaProrogaProtesoProvaPrudentePrugnaPruritoPsichePubblicoPudicaPugilatoPugnoPulcePulitoPulsantePuntarePupazzoPupillaPuroQuadroQualcosaQuasiQuerelaQuotaRaccoltoRaddoppioRadicaleRadunatoRafficaRagazzoRagioneRagnoRamarroRamingoRamoRandagioRantolareRapatoRapinaRappresoRasaturaRaschiatoRasenteRassegnaRastrelloRataRavvedutoRealeRecepireRecintoReclutaReconditoRecuperoRedditoRedimereRegalatoRegistroRegolaRegressoRelazioneRemareRemotoRennaReplicaReprimereReputareResaResidenteResponsoRestauroReteRetinaRetoricaRettificaRevocatoRiassuntoRibadireRibelleRibrezzoRicaricaRiccoRicevereRiciclatoRicordoRicredutoRidicoloRidurreRifasareRiflessoRiformaRifugioRigareRigettatoRighelloRilassatoRilevatoRimanereRimbalzoRimedioRimorchioRinascitaRincaroRinforzoRinnovoRinomatoRinsavitoRintoccoRinunciaRinvenireRiparatoRipetutoRipienoRiportareRipresaRipulireRisataRischioRiservaRisibileRisoRispettoRistoroRisultatoRisvoltoRitardoRitegnoRitmicoRitrovoRiunioneRivaRiversoRivincitaRivoltoRizomaRobaRoboticoRobustoRocciaRocoRodaggioRodereRoditoreRogitoRollioRomanticoRompereRonzioRosolareRospoRotanteRotondoRotulaRovescioRubizzoRubricaRugaRullinoRumineRumorosoRuoloRupeRussareRusticoSabatoSabbiareSabotatoSagomaSalassoSaldaturaSalgemmaSalivareSalmoneSaloneSaltareSalutoSalvoSapereSapidoSaporitoSaracenoSarcasmoSartoSassosoSatelliteSatiraSatolloSaturnoSavanaSavioSaziatoSbadiglioSbalzoSbancatoSbarraSbattereSbavareSbendareSbirciareSbloccatoSbocciatoSbrinareSbruffoneSbuffareScabrosoScadenzaScalaScambiareScandaloScapolaScarsoScatenareScavatoSceltoScenicoScettroSchedaSchienaSciarpaScienzaScindereScippoSciroppoScivoloSclerareScodellaScolpitoScompartoSconfortoScoprireScortaScossoneScozzeseScribaScrollareScrutinioScuderiaScultoreScuolaScuroScusareSdebitareSdoganareSeccaturaSecondoSedanoSeggiolaSegnalatoSegregatoSeguitoSelciatoSelettivoSellaSelvaggioSemaforoSembrareSemeSeminatoSempreSensoSentireSepoltoSequenzaSerataSerbatoSerenoSerioSerpenteSerraglioServireSestinaSetolaSettimanaSfaceloSfaldareSfamatoSfarzosoSfaticatoSferaSfidaSfilatoSfingeSfocatoSfoderareSfogoSfoltireSforzatoSfrattoSfruttatoSfuggitoSfumareSfusoSgabelloSgarbatoSgonfiareSgorbioSgrassatoSguardoSibiloSiccomeSierraSiglaSignoreSilenzioSillabaSimboloSimpaticoSimulatoSinfoniaSingoloSinistroSinoSintesiSinusoideSiparioSismaSistoleSituatoSlittaSlogaturaSlovenoSmarritoSmemoratoSmentitoSmeraldoSmilzoSmontareSmottatoSmussatoSnellireSnervatoSnodoSobbalzoSobrioSoccorsoSocialeSodaleSoffittoSognoSoldatoSolenneSolidoSollazzoSoloSolubileSolventeSomaticoSommaSondaSonettoSonniferoSopireSoppesoSopraSorgereSorpassoSorrisoSorsoSorteggioSorvolatoSospiroSostaSottileSpadaSpallaSpargereSpatolaSpaventoSpazzolaSpecieSpedireSpegnereSpelaturaSperanzaSpessoreSpettraleSpezzatoSpiaSpigolosoSpillatoSpinosoSpiraleSplendidoSportivoSposoSprangaSprecareSpronatoSpruzzoSpuntinoSquilloSradicareSrotolatoStabileStaccoStaffaStagnareStampatoStantioStarnutoStaseraStatutoSteloSteppaSterzoStilettoStimaStirpeStivaleStizzosoStonatoStoricoStrappoStregatoStriduloStrozzareStruttoStuccareStufoStupendoSubentroSuccosoSudoreSuggeritoSugoSultanoSuonareSuperboSupportoSurgelatoSurrogatoSussurroSuturaSvagareSvedeseSveglioSvelareSvenutoSveziaSviluppoSvistaSvizzeraSvoltaSvuotareTabaccoTabulatoTacciareTaciturnoTaleTalismanoTamponeTanninoTaraTardivoTargatoTariffaTarpareTartarugaTastoTatticoTavernaTavolataTazzaTecaTecnicoTelefonoTemerarioTempoTemutoTendoneTeneroTensioneTentacoloTeoremaTermeTerrazzoTerzettoTesiTesseratoTestatoTetroTettoiaTifareTigellaTimbroTintoTipicoTipografoTiraggioTiroTitanioTitoloTitubanteTizioTizzoneToccareTollerareToltoTombolaTomoTonfoTonsillaTopazioTopologiaToppaTorbaTornareTorroneTortoraToscanoTossireTostaturaTotanoTraboccoTracheaTrafilaTragediaTralcioTramontoTransitoTrapanoTrarreTraslocoTrattatoTraveTrecciaTremolioTrespoloTributoTrichecoTrifoglioTrilloTrinceaTrioTristezzaTrituratoTrivellaTrombaTronoTroppoTrottolaTrovareTruccatoTubaturaTuffatoTulipanoTumultoTunisiaTurbareTurchinoTutaTutelaUbicatoUccelloUccisoreUdireUditivoUffaUfficioUgualeUlisseUltimatoUmanoUmileUmorismoUncinettoUngereUnghereseUnicornoUnificatoUnisonoUnitarioUnteUovoUpupaUraganoUrgenzaUrloUsanzaUsatoUscitoUsignoloUsuraioUtensileUtilizzoUtopiaVacanteVaccinatoVagabondoVagliatoValangaValgoValicoVallettaValorosoValutareValvolaVampataVangareVanitosoVanoVantaggioVanveraVaporeVaranoVarcatoVarianteVascaVedettaVedovaVedutoVegetaleVeicoloVelcroVelinaVellutoVeloceVenatoVendemmiaVentoVeraceVerbaleVergognaVerificaVeroVerrucaVerticaleVescicaVessilloVestaleVeteranoVetrinaVetustoViandanteVibranteVicendaVichingoVicinanzaVidimareVigiliaVignetoVigoreVileVillanoViminiVincitoreViolaViperaVirgolaVirologoVirulentoViscosoVisioneVispoVissutoVisuraVitaVitelloVittimaVivandaVividoViziareVoceVogaVolatileVolereVolpeVoragineVulcanoZampognaZannaZappatoZatteraZavorraZefiroZelanteZeloZenzeroZerbinoZibettoZincoZirconeZittoZollaZoticoZuccheroZufoloZuluZuppa";var an=null;function loadWords(st){if(an!=null){return}an=nn.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" ");if(tn.Wordlist.check(st)!=="0x5c1362d88fd4cf614a96f3234941d29f7d37c08c5292fde03bf62c2db6ff7620"){an=null;throw new Error("BIP39 Wordlist for it (Italian) FAILED")}}var In=function(st){en(LangIt,st);function LangIt(){return st.call(this,"it")||this}LangIt.prototype.getWord=function(st){loadWords(this);return an[st]};LangIt.prototype.getWordIndex=function(st){loadWords(this);return an.indexOf(st)};return LangIt}(tn.Wordlist);var rn=new In;Wt.langIt=rn;tn.Wordlist.register(rn)},53670:function(st,Wt,Ot){"use strict";var en=this&&this.__extends||function(){var extendStatics=function(st,Wt){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(st,Wt){st.__proto__=Wt}||function(st,Wt){for(var Ot in Wt)if(Object.prototype.hasOwnProperty.call(Wt,Ot))st[Ot]=Wt[Ot]};return extendStatics(st,Wt)};return function(st,Wt){if(typeof Wt!=="function"&&Wt!==null)throw new TypeError("Class extends value "+String(Wt)+" is not a constructor or null");extendStatics(st,Wt);function __(){this.constructor=st}st.prototype=Wt===null?Object.create(Wt):(__.prototype=Wt.prototype,new __)}}();Object.defineProperty(Wt,"__esModule",{value:true});Wt.langJa=void 0;var tn=Ot(42006);var nn=Ot(13859);var an=Ot(18210);var In=["AQRASRAGBAGUAIRAHBAghAURAdBAdcAnoAMEAFBAFCBKFBQRBSFBCXBCDBCHBGFBEQBpBBpQBIkBHNBeOBgFBVCBhBBhNBmOBmRBiHBiFBUFBZDBvFBsXBkFBlcBjYBwDBMBBTBBTRBWBBWXXaQXaRXQWXSRXCFXYBXpHXOQXHRXhRXuRXmXXbRXlXXwDXTRXrCXWQXWGaBWaKcaYgasFadQalmaMBacAKaRKKBKKXKKjKQRKDRKCYKCRKIDKeVKHcKlXKjHKrYNAHNBWNaRNKcNIBNIONmXNsXNdXNnBNMBNRBNrXNWDNWMNFOQABQAHQBrQXBQXFQaRQKXQKDQKOQKFQNBQNDQQgQCXQCDQGBQGDQGdQYXQpBQpQQpHQLXQHuQgBQhBQhCQuFQmXQiDQUFQZDQsFQdRQkHQbRQlOQlmQPDQjDQwXQMBQMDQcFQTBQTHQrDDXQDNFDGBDGQDGRDpFDhFDmXDZXDbRDMYDRdDTRDrXSAhSBCSBrSGQSEQSHBSVRShYShkSyQSuFSiBSdcSoESocSlmSMBSFBSFKSFNSFdSFcCByCaRCKcCSBCSRCCrCGbCEHCYXCpBCpQCIBCIHCeNCgBCgFCVECVcCmkCmwCZXCZFCdRClOClmClFCjDCjdCnXCwBCwXCcRCFQCFjGXhGNhGDEGDMGCDGCHGIFGgBGVXGVEGVRGmXGsXGdYGoSGbRGnXGwXGwDGWRGFNGFLGFOGFdGFkEABEBDEBFEXOEaBEKSENBENDEYXEIgEIkEgBEgQEgHEhFEudEuFEiBEiHEiFEZDEvBEsXEsFEdXEdREkFEbBEbRElFEPCEfkEFNYAEYAhYBNYQdYDXYSRYCEYYoYgQYgRYuRYmCYZTYdBYbEYlXYjQYRbYWRpKXpQopQnpSFpCXpIBpISphNpdBpdRpbRpcZpFBpFNpFDpFopFrLADLBuLXQLXcLaFLCXLEhLpBLpFLHXLeVLhILdHLdRLoDLbRLrXIABIBQIBCIBsIBoIBMIBRIXaIaRIKYIKRINBINuICDIGBIIDIIkIgRIxFIyQIiHIdRIbYIbRIlHIwRIMYIcRIRVITRIFBIFNIFQOABOAFOBQOaFONBONMOQFOSFOCDOGBOEQOpBOLXOIBOIFOgQOgFOyQOycOmXOsXOdIOkHOMEOMkOWWHBNHXNHXWHNXHDuHDRHSuHSRHHoHhkHmRHdRHkQHlcHlRHwBHWcgAEgAggAkgBNgBQgBEgXOgYcgLXgHjgyQgiBgsFgdagMYgWSgFQgFEVBTVXEVKBVKNVKDVKYVKRVNBVNYVDBVDxVSBVSRVCjVGNVLXVIFVhBVhcVsXVdRVbRVlRhBYhKYhDYhGShxWhmNhdahdkhbRhjohMXhTRxAXxXSxKBxNBxEQxeNxeQxhXxsFxdbxlHxjcxFBxFNxFQxFOxFoyNYyYoybcyMYuBQuBRuBruDMuCouHBudQukkuoBulVuMXuFEmCYmCRmpRmeDmiMmjdmTFmFQiADiBOiaRiKRiNBiNRiSFiGkiGFiERipRiLFiIFihYibHijBijEiMXiWBiFBiFCUBQUXFUaRUNDUNcUNRUNFUDBUSHUCDUGBUGFUEqULNULoUIRUeEUeYUgBUhFUuRUiFUsXUdFUkHUbBUjSUjYUwXUMDUcHURdUTBUrBUrXUrQZAFZXZZaRZKFZNBZQFZCXZGBZYdZpBZLDZIFZHXZHNZeQZVRZVFZmXZiBZvFZdFZkFZbHZbFZwXZcCZcRZRBvBQvBGvBLvBWvCovMYsAFsBDsaRsKFsNFsDrsSHsSFsCXsCRsEBsEHsEfspBsLBsLDsIgsIRseGsbRsFBsFQsFSdNBdSRdCVdGHdYDdHcdVbdySduDdsXdlRdwXdWYdWcdWRkBMkXOkaRkNIkNFkSFkCFkYBkpRkeNkgBkhVkmXksFklVkMBkWDkFNoBNoaQoaFoNBoNXoNaoNEoSRoEroYXoYCoYbopRopFomXojkowXorFbBEbEIbdBbjYlaRlDElMXlFDjKjjSRjGBjYBjYkjpRjLXjIBjOFjeVjbRjwBnXQnSHnpFnLXnINnMBnTRwXBwXNwXYwNFwQFwSBwGFwLXwLDweNwgBwuHwjDwnXMBXMpFMIBMeNMTHcaQcNBcDHcSFcCXcpBcLXcLDcgFcuFcnXcwXccDcTQcrFTQErXNrCHrpFrgFrbFrTHrFcWNYWNbWEHWMXWTR","ABGHABIJAEAVAYJQALZJAIaRAHNXAHdcAHbRAZJMAZJRAZTRAdVJAklmAbcNAjdRAMnRAMWYAWpRAWgRAFgBAFhBAFdcBNJBBNJDBQKBBQhcBQlmBDEJBYJkBYJTBpNBBpJFBIJBBIJDBIcABOKXBOEJBOVJBOiJBOZJBepBBeLXBeIFBegBBgGJBVJXBuocBiJRBUJQBlXVBlITBwNFBMYVBcqXBTlmBWNFBWiJBWnRBFGHBFwXXKGJXNJBXNZJXDTTXSHSXSVRXSlHXCJDXGQJXEhXXYQJXYbRXOfXXeNcXVJFXhQJXhEJXdTRXjdXXMhBXcQTXRGBXTEBXTnQXFCXXFOFXFgFaBaFaBNJaBCJaBpBaBwXaNJKaNJDaQIBaDpRaEPDaHMFamDJalEJaMZJaFaFaFNBaFQJaFLDaFVHKBCYKBEBKBHDKXaFKXGdKXEJKXpHKXIBKXZDKXwXKKwLKNacKNYJKNJoKNWcKDGdKDTRKChXKGaRKGhBKGbRKEBTKEaRKEPTKLMDKLWRKOHDKVJcKdBcKlIBKlOPKFSBKFEPKFpFNBNJNJBQNBGHNBEPNBHXNBgFNBVXNBZDNBsXNBwXNNaRNNJDNNJENNJkNDCJNDVDNGJRNJiDNZJNNsCJNJFNNFSBNFCXNFEPNFLXNFIFQJBFQCaRQJEQQLJDQLJFQIaRQOqXQHaFQHHQQVJXQVJDQhNJQmEIQZJFQsJXQJrFQWbRDJABDBYJDXNFDXCXDXLXDXZDDXsJDQqXDSJFDJCXDEPkDEqXDYmQDpSJDOCkDOGQDHEIDVJDDuDuDWEBDJFgSBNDSBSFSBGHSBIBSBTQSKVYSJQNSJQiSJCXSEqXSJYVSIiJSOMYSHAHSHaQSeCFSepQSegBSHdHSHrFShSJSJuHSJUFSkNRSrSrSWEBSFaHSJFQSFCXSFGDSFYXSFODSFgBSFVXSFhBSFxFSFkFSFbBSFMFCADdCJXBCXaFCXKFCXNFCXCXCXGBCXEJCXYBCXLDCXIBCXOPCXHXCXgBCXhBCXiBCXlDCXcHCJNBCJNFCDCJCDGBCDVXCDhBCDiDCDJdCCmNCpJFCIaRCOqXCHCHCHZJCViJCuCuCmddCJiFCdNBCdHhClEJCnUJCreSCWlgCWTRCFBFCFNBCFYBCFVFCFhFCFdSCFTBCFWDGBNBGBQFGJBCGBEqGBpBGBgQGNBEGNJYGNkOGNJRGDUFGJpQGHaBGJeNGJeEGVBlGVKjGiJDGvJHGsVJGkEBGMIJGWjNGFBFGFCXGFGBGFYXGFpBGFMFEASJEAWpEJNFECJVEIXSEIQJEOqXEOcFEeNcEHEJEHlFEJgFEhlmEmDJEmZJEiMBEUqXEoSREPBFEPXFEPKFEPSFEPEFEPpFEPLXEPIBEJPdEPcFEPTBEJnXEqlHEMpREFCXEFODEFcFYASJYJAFYBaBYBVXYXpFYDhBYCJBYJGFYYbRYeNcYJeVYiIJYZJcYvJgYvJRYJsXYsJFYMYMYreVpBNHpBEJpBwXpQxFpYEJpeNDpJeDpeSFpeCHpHUJpHbBpHcHpmUJpiiJpUJrpsJuplITpFaBpFQqpFGBpFEfpFYBpFpBpFLJpFIDpFgBpFVXpFyQpFuFpFlFpFjDpFnXpFwXpJFMpFTBLXCJLXEFLXhFLXUJLXbFLalmLNJBLSJQLCLCLGJBLLDJLHaFLeNFLeSHLeCXLepFLhaRLZsJLsJDLsJrLocaLlLlLMdbLFNBLFSBLFEHLFkFIBBFIBXFIBaQIBKXIBSFIBpHIBLXIBgBIBhBIBuHIBmXIBiFIBZXIBvFIBbFIBjQIBwXIBWFIKTRIQUJIDGFICjQIYSRIINXIJeCIVaRImEkIZJFIvJRIsJXIdCJIJoRIbBQIjYBIcqXITFVIreVIFKFIFSFIFCJIFGFIFLDIFIBIJFOIFgBIFVXIJFhIFxFIFmXIFdHIFbBIJFrIJFWOBGBOQfXOOKjOUqXOfXBOqXEOcqXORVJOFIBOFlDHBIOHXiFHNTRHCJXHIaRHHJDHHEJHVbRHZJYHbIBHRsJHRkDHWlmgBKFgBSBgBCDgBGHgBpBgBIBgBVJgBuBgBvFgKDTgQVXgDUJgGSJgOqXgmUMgZIJgTUJgWIEgFBFgFNBgFDJgFSFgFGBgFYXgJFOgFgQgFVXgFhBgFbHgJFWVJABVQKcVDgFVOfXVeDFVhaRVmGdViJYVMaRVFNHhBNDhBCXhBEqhBpFhBLXhNJBhSJRheVXhhKEhxlmhZIJhdBQhkIJhbMNhMUJhMZJxNJgxQUJxDEkxDdFxSJRxplmxeSBxeCXxeGFxeYXxepQxegBxWVcxFEQxFLXxFIBxFgBxFxDxFZtxFdcxFbBxFwXyDJXyDlcuASJuDJpuDIBuCpJuGSJuIJFueEFuZIJusJXudWEuoIBuWGJuFBcuFKEuFNFuFQFuFDJuFGJuFVJuFUtuFdHuFTBmBYJmNJYmQhkmLJDmLJomIdXmiJYmvJRmsJRmklmmMBymMuCmclmmcnQiJABiJBNiJBDiBSFiBCJiBEFiBYBiBpFiBLXiBTHiJNciDEfiCZJiECJiJEqiOkHiHKFieNDiHJQieQcieDHieSFieCXieGFieEFieIHiegFihUJixNoioNXiFaBiFKFiFNDiFEPiFYXitFOitFHiFgBiFVEiFmXiFitiFbBiFMFiFrFUCXQUIoQUIJcUHQJUeCEUHwXUUJDUUqXUdWcUcqXUrnQUFNDUFSHUFCFUFEfUFLXUtFOZBXOZXSBZXpFZXVXZEQJZEJkZpDJZOqXZeNHZeCDZUqXZFBQZFEHZFLXvBAFvBKFvBCXvBEPvBpHvBIDvBgFvBuHvQNJvFNFvFGBvFIBvJFcsXCDsXLXsXsXsXlFsXcHsQqXsJQFsEqXseIFsFEHsFjDdBxOdNpRdNJRdEJbdpJRdhZJdnSJdrjNdFNJdFQHdFhNkNJDkYaRkHNRkHSRkVbRkuMRkjSJkcqDoSJFoEiJoYZJoOfXohEBoMGQocqXbBAFbBXFbBaFbBNDbBGBbBLXbBTBbBWDbGJYbIJHbFQqbFpQlDgQlOrFlVJRjGEBjZJRnXvJnXbBnEfHnOPDngJRnxfXnUJWwXEJwNpJwDpBwEfXwrEBMDCJMDGHMDIJMLJDcQGDcQpHcqXccqNFcqCXcFCJRBSBRBGBRBEJRBpQTBNFTBQJTBpBTBVXTFABTFSBTFCFTFGBTFMDrXCJrXLDrDNJrEfHrFQJrFitWNjdWNTR","AKLJMANOPFASNJIAEJWXAYJNRAIIbRAIcdaAeEfDAgidRAdjNYAMYEJAMIbRAFNJBAFpJFBBIJYBDZJFBSiJhBGdEBBEJfXBEJqXBEJWRBpaUJBLXrXBIYJMBOcfXBeEfFBestXBjNJRBcDJOBFEqXXNvJRXDMBhXCJNYXOAWpXONJWXHDEBXeIaRXhYJDXZJSJXMDJOXcASJXFVJXaBQqXaBZJFasXdQaFSJQaFEfXaFpJHaFOqXKBNSRKXvJBKQJhXKEJQJKEJGFKINJBKIJjNKgJNSKVElmKVhEBKiJGFKlBgJKjnUJKwsJYKMFIJKFNJDKFIJFKFOfXNJBSFNJBCXNBpJFNJBvQNJBMBNJLJXNJOqXNJeCXNJeGFNdsJCNbTKFNwXUJQNFEPQDiJcQDMSJQSFpBQGMQJQJeOcQyCJEQUJEBQJFBrQFEJqDXDJFDJXpBDJXIMDGiJhDIJGRDJeYcDHrDJDVXgFDkAWpDkIgRDjDEqDMvJRDJFNFDJFIBSKclmSJQOFSJQVHSJQjDSJGJBSJGJFSECJoSHEJqSJHTBSJVJDSViJYSZJNBSJsJDSFSJFSFEfXSJFLXCBUJVCJXSBCJXpBCXVJXCJXsXCJXdFCJNJHCLIJgCHiJFCVNJMChCJhCUHEJCsJTRCJdYcCoQJCCFEfXCFIJgCFUJxCFstFGJBaQGJBIDGQJqXGYJNRGJHKFGeQqDGHEJFGJeLXGHIiJGHdBlGUJEBGkIJTGFQPDGJFEqEAGegEJIJBEJVJXEhQJTEiJNcEJZJFEJoEqEjDEqEPDsXEPGJBEPOqXEPeQFEfDiDEJfEFEfepQEfMiJEqXNBEqDIDEqeSFEqVJXEMvJRYXNJDYXEJHYKVJcYYJEBYJeEcYJUqXYFpJFYFstXpAZJMpBSJFpNBNFpeQPDpHLJDpHIJFpHgJFpeitFpHZJFpJFADpFSJFpJFCJpFOqXpFitBpJFZJLXIJFLIJgRLVNJWLVHJMLwNpJLFGJBLFLJDLFOqXLJFUJIBDJXIBGJBIJBYQIJBIBIBOqXIBcqDIEGJFILNJTIIJEBIOiJhIJeNBIJeIBIhiJIIWoTRIJFAHIJFpBIJFuHIFUtFIJFTHOSBYJOEcqXOHEJqOvBpFOkVJrObBVJOncqDOcNJkHhNJRHuHJuHdMhBgBUqXgBsJXgONJBgHNJDgHHJQgJeitgHsJXgJyNagyDJBgZJDrgsVJQgkEJNgkjSJgJFAHgFCJDgFZtMVJXNFVXQfXVJXDJVXoQJVQVJQVDEfXVDvJHVEqNFVeQfXVHpJFVHxfXVVJSRVVmaRVlIJOhCXVJhHjYkhxCJVhWVUJhWiJcxBNJIxeEqDxfXBFxcFEPxFSJFxFYJXyBDQJydaUJyFOPDuYCJYuLvJRuHLJXuZJLDuFOPDuFZJHuFcqXmKHJdmCQJcmOsVJiJAGFitLCFieOfXiestXiZJMEikNJQirXzFiFQqXiFIJFiFZJFiFvtFUHpJFUteIcUteOcUVCJkUhdHcUbEJEUJqXQUMNJhURjYkUFitFZDGJHZJIxDZJVJXZJFDJZJFpQvBNJBvBSJFvJxBrseQqDsVFVJdFLJDkEJNBkmNJYkFLJDoQJOPoGsJRoEAHBoEJfFbBQqDbBZJHbFVJXlFIJBjYIrXjeitcjjCEBjWMNBwXQfXwXOaFwDsJXwCJTRwrCZJMDNJQcDDJFcqDOPRYiJFTBsJXTQIJBTFEfXTFLJDrXEJFrEJXMrFZJFWEJdEWYTlm","ABCDEFACNJTRAMBDJdAcNJVXBLNJEBXSIdWRXErNJkXYDJMBXZJCJaXMNJaYKKVJKcKDEJqXKDcNJhKVJrNYKbgJVXKFVJSBNBYBwDNJeQfXNJeEqXNhGJWENJFiJRQlIJbEQJfXxDQqXcfXQFNDEJQFwXUJDYcnUJDJIBgQDIUJTRDJFEqDSJQSJFSJQIJFSOPeZtSJFZJHCJXQfXCTDEqFGJBSJFGJBOfXGJBcqXGJHNJDGJRLiJEJfXEqEJFEJPEFpBEJYJBZJFYBwXUJYiJMEBYJZJyTYTONJXpQMFXFpeGIDdpJFstXpJFcPDLBVSJRLHQJqXLJFZJFIJBNJDIJBUqXIBkFDJIJEJPTIYJGWRIJeQPDIJeEfHIJFsJXOqGDSFHXEJqXgJCsJCgGQJqXgdQYJEgFMFNBgJFcqDVJwXUJVJFZJchIgJCCxOEJqXxOwXUJyDJBVRuscisciJBiJBieUtqXiJFDJkiFsJXQUGEZJcUJFsJXZtXIrXZDZJDrZJFNJDZJFstXvJFQqXvJFCJEsJXQJqkhkNGBbDJdTRbYJMEBlDwXUJMEFiJFcfXNJDRcNJWMTBLJXC","BraFUtHBFSJFdbNBLJXVJQoYJNEBSJBEJfHSJHwXUJCJdAZJMGjaFVJXEJPNJBlEJfFiJFpFbFEJqIJBVJCrIBdHiJhOPFChvJVJZJNJWxGFNIFLueIBQJqUHEJfUFstOZJDrlXEASJRlXVJXSFwVJNJWD","QJEJNNJDQJEJIBSFQJEJxegBQJEJfHEPSJBmXEJFSJCDEJqXLXNJFQqXIcQsFNJFIFEJqXUJgFsJXIJBUJEJfHNFvJxEqXNJnXUJFQqD","IJBEJqXZJ"];var rn="~~AzB~X~a~KN~Q~D~S~C~G~E~Y~p~L~I~O~eH~g~V~hxyumi~~U~~Z~~v~~s~~dkoblPjfnqwMcRTr~W~~~F~~~~~Jt";var cn=null;function hex(st){return(0,tn.hexlify)((0,nn.toUtf8Bytes)(st))}var on="0xe3818de38284e3818f";var sn="0xe3818de38283e3818f";function loadWords(st){if(cn!==null){return}cn=[];var Wt={};Wt[(0,nn.toUtf8String)([227,130,154])]=false;Wt[(0,nn.toUtf8String)([227,130,153])]=false;Wt[(0,nn.toUtf8String)([227,130,133])]=(0,nn.toUtf8String)([227,130,134]);Wt[(0,nn.toUtf8String)([227,129,163])]=(0,nn.toUtf8String)([227,129,164]);Wt[(0,nn.toUtf8String)([227,130,131])]=(0,nn.toUtf8String)([227,130,132]);Wt[(0,nn.toUtf8String)([227,130,135])]=(0,nn.toUtf8String)([227,130,136]);function normalize(st){var Ot="";for(var en=0;enWt){return 1}return 0}for(var Ot=3;Ot<=9;Ot++){var en=In[Ot-3];for(var tn=0;tn=40){st=st+168-40}else if(st>=19){st=st+97-19}return(0,tn.toUtf8String)([225,(st>>6)+132,(st&63)+128])}var rn=null;function loadWords(st){if(rn!=null){return}rn=[];an.forEach((function(st,Wt){Wt+=4;for(var Ot=0;Ot>2),128+on.indexOf(an[Ot*3+1]),128+on.indexOf(an[Ot*3+2])];if(st.locale==="zh_tw"){var un=en%4;for(var pn=un;pn<3;pn++){dn[pn]=on.indexOf(In[Wt++])+(pn==0?228:128)}}rn[st.locale].push((0,tn.toUtf8String)(dn))}if(nn.Wordlist.check(st)!==cn[st.locale]){rn[st.locale]=null;throw new Error("BIP39 Wordlist for "+st.locale+" (Chinese) FAILED")}}var dn=function(st){en(LangZh,st);function LangZh(Wt){return st.call(this,"zh_"+Wt)||this}LangZh.prototype.getWord=function(st){loadWords(this);return rn[this.locale][st]};LangZh.prototype.getWordIndex=function(st){loadWords(this);return rn[this.locale].indexOf(st)};LangZh.prototype.split=function(st){st=st.replace(/(?:\u3000| )+/g,"");return st.split("")};return LangZh}(nn.Wordlist);var un=new dn("cn");Wt.langZhCn=un;nn.Wordlist.register(un);nn.Wordlist.register(un,"zh");var pn=new dn("tw");Wt.langZhTw=pn;nn.Wordlist.register(pn)},18210:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Wordlist=Wt.logger=void 0;var en=false;var tn=Ot(91839);var nn=Ot(61338);var an=Ot(76127);var In=Ot(17141);Wt.logger=new an.Logger(In.version);var rn=function(){function Wordlist(st){var Ot=this.constructor;Wt.logger.checkAbstract(Ot,Wordlist);(0,nn.defineReadOnly)(this,"locale",st)}Wordlist.prototype.split=function(st){return st.toLowerCase().split(/ +/g)};Wordlist.prototype.join=function(st){return st.join(" ")};Wordlist.check=function(st){var Wt=[];for(var Ot=0;Ot<2048;Ot++){var en=st.getWord(Ot);if(Ot!==st.getWordIndex(en)){return"0x"}Wt.push(en)}return(0,tn.id)(Wt.join("\n")+"\n")};Wordlist.register=function(st,Wt){if(!Wt){Wt=st.locale}if(en){try{var Ot=window;if(Ot._ethers&&Ot._ethers.wordlists){if(!Ot._ethers.wordlists[Wt]){(0,nn.defineReadOnly)(Ot._ethers.wordlists,Wt,st)}}}catch(st){}}};return Wordlist}();Wt.Wordlist=rn},1057:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.wordlists=void 0;var en=Ot(53994);var tn=Ot(73120);var nn=Ot(78091);var an=Ot(58079);var In=Ot(53670);var rn=Ot(98589);var cn=Ot(87054);var on=Ot(24829);Wt.wordlists={cz:en.langCz,en:tn.langEn,es:nn.langEs,fr:an.langFr,it:cn.langIt,ja:In.langJa,ko:rn.langKo,zh:on.langZhCn,zh_cn:on.langZhCn,zh_tw:on.langZhTw}},77864:st=>{"use strict";var Wt=Object.defineProperty;var Ot=Object.getOwnPropertyDescriptor;var en=Object.getOwnPropertyNames;var tn=Object.prototype.hasOwnProperty;var __export=(st,Ot)=>{for(var en in Ot)Wt(st,en,{get:Ot[en],enumerable:true})};var __copyProps=(st,nn,an,In)=>{if(nn&&typeof nn==="object"||typeof nn==="function"){for(let rn of en(nn))if(!tn.call(st,rn)&&rn!==an)Wt(st,rn,{get:()=>nn[rn],enumerable:!(In=Ot(nn,rn))||In.enumerable})}return st};var __toCommonJS=st=>__copyProps(Wt({},"__esModule",{value:true}),st);var nn={};__export(nn,{createTokenAuth:()=>cn});st.exports=__toCommonJS(nn);var an=/^v1\./;var In=/^ghs_/;var rn=/^ghu_/;async function auth(st){const Wt=st.split(/\./).length===3;const Ot=an.test(st)||In.test(st);const en=rn.test(st);const tn=Wt?"app":Ot?"installation":en?"user-to-server":"oauth";return{type:"token",token:st,tokenType:tn}}function withAuthorizationPrefix(st){if(st.split(/\./).length===3){return`bearer ${st}`}return`token ${st}`}async function hook(st,Wt,Ot,en){const tn=Wt.endpoint.merge(Ot,en);tn.headers.authorization=withAuthorizationPrefix(st);return Wt(tn)}var cn=function createTokenAuth2(st){if(!st){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof st!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}st=st.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,st),{hook:hook.bind(null,st)})};0&&0},61897:(st,Wt,Ot)=>{"use strict";var en=Object.defineProperty;var tn=Object.getOwnPropertyDescriptor;var nn=Object.getOwnPropertyNames;var an=Object.prototype.hasOwnProperty;var __export=(st,Wt)=>{for(var Ot in Wt)en(st,Ot,{get:Wt[Ot],enumerable:true})};var __copyProps=(st,Wt,Ot,In)=>{if(Wt&&typeof Wt==="object"||typeof Wt==="function"){for(let rn of nn(Wt))if(!an.call(st,rn)&&rn!==Ot)en(st,rn,{get:()=>Wt[rn],enumerable:!(In=tn(Wt,rn))||In.enumerable})}return st};var __toCommonJS=st=>__copyProps(en({},"__esModule",{value:true}),st);var In={};__export(In,{Octokit:()=>Gn});st.exports=__toCommonJS(In);var rn=Ot(33843);var cn=Ot(52732);var on=Ot(66255);var sn=Ot(70007);var dn=Ot(77864);var un="5.2.0";var noop=()=>{};var pn=console.warn.bind(console);var bn=console.error.bind(console);var mn=`octokit-core.js/${un} ${(0,rn.getUserAgent)()}`;var Gn=class{static{this.VERSION=un}static defaults(st){const Wt=class extends(this){constructor(...Wt){const Ot=Wt[0]||{};if(typeof st==="function"){super(st(Ot));return}super(Object.assign({},st,Ot,Ot.userAgent&&st.userAgent?{userAgent:`${Ot.userAgent} ${st.userAgent}`}:null))}};return Wt}static{this.plugins=[]}static plugin(...st){const Wt=this.plugins;const Ot=class extends(this){static{this.plugins=Wt.concat(st.filter((st=>!Wt.includes(st))))}};return Ot}constructor(st={}){const Wt=new cn.Collection;const Ot={baseUrl:on.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},st.request,{hook:Wt.bind(null,"request")}),mediaType:{previews:[],format:""}};Ot.headers["user-agent"]=st.userAgent?`${st.userAgent} ${mn}`:mn;if(st.baseUrl){Ot.baseUrl=st.baseUrl}if(st.previews){Ot.mediaType.previews=st.previews}if(st.timeZone){Ot.headers["time-zone"]=st.timeZone}this.request=on.request.defaults(Ot);this.graphql=(0,sn.withCustomRequest)(this.request).defaults(Ot);this.log=Object.assign({debug:noop,info:noop,warn:pn,error:bn},st.log);this.hook=Wt;if(!st.authStrategy){if(!st.auth){this.auth=async()=>({type:"unauthenticated"})}else{const Ot=(0,dn.createTokenAuth)(st.auth);Wt.wrap("request",Ot.hook);this.auth=Ot}}else{const{authStrategy:Ot,...en}=st;const tn=Ot(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:en},st.auth));Wt.wrap("request",tn.hook);this.auth=tn}const en=this.constructor;for(let Wt=0;Wt{"use strict";var en=Object.defineProperty;var tn=Object.getOwnPropertyDescriptor;var nn=Object.getOwnPropertyNames;var an=Object.prototype.hasOwnProperty;var __export=(st,Wt)=>{for(var Ot in Wt)en(st,Ot,{get:Wt[Ot],enumerable:true})};var __copyProps=(st,Wt,Ot,In)=>{if(Wt&&typeof Wt==="object"||typeof Wt==="function"){for(let rn of nn(Wt))if(!an.call(st,rn)&&rn!==Ot)en(st,rn,{get:()=>Wt[rn],enumerable:!(In=tn(Wt,rn))||In.enumerable})}return st};var __toCommonJS=st=>__copyProps(en({},"__esModule",{value:true}),st);var In={};__export(In,{endpoint:()=>un});st.exports=__toCommonJS(In);var rn=Ot(33843);var cn="9.0.5";var on=`octokit-endpoint.js/${cn} ${(0,rn.getUserAgent)()}`;var sn={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":on},mediaType:{format:""}};function lowercaseKeys(st){if(!st){return{}}return Object.keys(st).reduce(((Wt,Ot)=>{Wt[Ot.toLowerCase()]=st[Ot];return Wt}),{})}function isPlainObject(st){if(typeof st!=="object"||st===null)return false;if(Object.prototype.toString.call(st)!=="[object Object]")return false;const Wt=Object.getPrototypeOf(st);if(Wt===null)return true;const Ot=Object.prototype.hasOwnProperty.call(Wt,"constructor")&&Wt.constructor;return typeof Ot==="function"&&Ot instanceof Ot&&Function.prototype.call(Ot)===Function.prototype.call(st)}function mergeDeep(st,Wt){const Ot=Object.assign({},st);Object.keys(Wt).forEach((en=>{if(isPlainObject(Wt[en])){if(!(en in st))Object.assign(Ot,{[en]:Wt[en]});else Ot[en]=mergeDeep(st[en],Wt[en])}else{Object.assign(Ot,{[en]:Wt[en]})}}));return Ot}function removeUndefinedProperties(st){for(const Wt in st){if(st[Wt]===void 0){delete st[Wt]}}return st}function merge(st,Wt,Ot){if(typeof Wt==="string"){let[st,en]=Wt.split(" ");Ot=Object.assign(en?{method:st,url:en}:{url:st},Ot)}else{Ot=Object.assign({},Wt)}Ot.headers=lowercaseKeys(Ot.headers);removeUndefinedProperties(Ot);removeUndefinedProperties(Ot.headers);const en=mergeDeep(st||{},Ot);if(Ot.url==="/graphql"){if(st&&st.mediaType.previews?.length){en.mediaType.previews=st.mediaType.previews.filter((st=>!en.mediaType.previews.includes(st))).concat(en.mediaType.previews)}en.mediaType.previews=(en.mediaType.previews||[]).map((st=>st.replace(/-preview/,"")))}return en}function addQueryParameters(st,Wt){const Ot=/\?/.test(st)?"&":"?";const en=Object.keys(Wt);if(en.length===0){return st}return st+Ot+en.map((st=>{if(st==="q"){return"q="+Wt.q.split("+").map(encodeURIComponent).join("+")}return`${st}=${encodeURIComponent(Wt[st])}`})).join("&")}var dn=/\{[^}]+\}/g;function removeNonChars(st){return st.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(st){const Wt=st.match(dn);if(!Wt){return[]}return Wt.map(removeNonChars).reduce(((st,Wt)=>st.concat(Wt)),[])}function omit(st,Wt){const Ot={__proto__:null};for(const en of Object.keys(st)){if(Wt.indexOf(en)===-1){Ot[en]=st[en]}}return Ot}function encodeReserved(st){return st.split(/(%[0-9A-Fa-f]{2})/g).map((function(st){if(!/%[0-9A-Fa-f]/.test(st)){st=encodeURI(st).replace(/%5B/g,"[").replace(/%5D/g,"]")}return st})).join("")}function encodeUnreserved(st){return encodeURIComponent(st).replace(/[!'()*]/g,(function(st){return"%"+st.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(st,Wt,Ot){Wt=st==="+"||st==="#"?encodeReserved(Wt):encodeUnreserved(Wt);if(Ot){return encodeUnreserved(Ot)+"="+Wt}else{return Wt}}function isDefined(st){return st!==void 0&&st!==null}function isKeyOperator(st){return st===";"||st==="&"||st==="?"}function getValues(st,Wt,Ot,en){var tn=st[Ot],nn=[];if(isDefined(tn)&&tn!==""){if(typeof tn==="string"||typeof tn==="number"||typeof tn==="boolean"){tn=tn.toString();if(en&&en!=="*"){tn=tn.substring(0,parseInt(en,10))}nn.push(encodeValue(Wt,tn,isKeyOperator(Wt)?Ot:""))}else{if(en==="*"){if(Array.isArray(tn)){tn.filter(isDefined).forEach((function(st){nn.push(encodeValue(Wt,st,isKeyOperator(Wt)?Ot:""))}))}else{Object.keys(tn).forEach((function(st){if(isDefined(tn[st])){nn.push(encodeValue(Wt,tn[st],st))}}))}}else{const st=[];if(Array.isArray(tn)){tn.filter(isDefined).forEach((function(Ot){st.push(encodeValue(Wt,Ot))}))}else{Object.keys(tn).forEach((function(Ot){if(isDefined(tn[Ot])){st.push(encodeUnreserved(Ot));st.push(encodeValue(Wt,tn[Ot].toString()))}}))}if(isKeyOperator(Wt)){nn.push(encodeUnreserved(Ot)+"="+st.join(","))}else if(st.length!==0){nn.push(st.join(","))}}}}else{if(Wt===";"){if(isDefined(tn)){nn.push(encodeUnreserved(Ot))}}else if(tn===""&&(Wt==="&"||Wt==="?")){nn.push(encodeUnreserved(Ot)+"=")}else if(tn===""){nn.push("")}}return nn}function parseUrl(st){return{expand:expand.bind(null,st)}}function expand(st,Wt){var Ot=["+","#",".","/",";","?","&"];st=st.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(st,en,tn){if(en){let st="";const tn=[];if(Ot.indexOf(en.charAt(0))!==-1){st=en.charAt(0);en=en.substr(1)}en.split(/,/g).forEach((function(Ot){var en=/([^:\*]*)(?::(\d+)|(\*))?/.exec(Ot);tn.push(getValues(Wt,st,en[1],en[2]||en[3]))}));if(st&&st!=="+"){var nn=",";if(st==="?"){nn="&"}else if(st!=="#"){nn=st}return(tn.length!==0?st:"")+tn.join(nn)}else{return tn.join(",")}}else{return encodeReserved(tn)}}));if(st==="/"){return st}else{return st.replace(/\/$/,"")}}function parse(st){let Wt=st.method.toUpperCase();let Ot=(st.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let en=Object.assign({},st.headers);let tn;let nn=omit(st,["method","baseUrl","url","headers","request","mediaType"]);const an=extractUrlVariableNames(Ot);Ot=parseUrl(Ot).expand(nn);if(!/^http/.test(Ot)){Ot=st.baseUrl+Ot}const In=Object.keys(st).filter((st=>an.includes(st))).concat("baseUrl");const rn=omit(nn,In);const cn=/application\/octet-stream/i.test(en.accept);if(!cn){if(st.mediaType.format){en.accept=en.accept.split(/,/).map((Wt=>Wt.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${st.mediaType.format}`))).join(",")}if(Ot.endsWith("/graphql")){if(st.mediaType.previews?.length){const Wt=en.accept.match(/[\w-]+(?=-preview)/g)||[];en.accept=Wt.concat(st.mediaType.previews).map((Wt=>{const Ot=st.mediaType.format?`.${st.mediaType.format}`:"+json";return`application/vnd.github.${Wt}-preview${Ot}`})).join(",")}}}if(["GET","HEAD"].includes(Wt)){Ot=addQueryParameters(Ot,rn)}else{if("data"in rn){tn=rn.data}else{if(Object.keys(rn).length){tn=rn}}}if(!en["content-type"]&&typeof tn!=="undefined"){en["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(Wt)&&typeof tn==="undefined"){tn=""}return Object.assign({method:Wt,url:Ot,headers:en},typeof tn!=="undefined"?{body:tn}:null,st.request?{request:st.request}:null)}function endpointWithDefaults(st,Wt,Ot){return parse(merge(st,Wt,Ot))}function withDefaults(st,Wt){const Ot=merge(st,Wt);const en=endpointWithDefaults.bind(null,Ot);return Object.assign(en,{DEFAULTS:Ot,defaults:withDefaults.bind(null,Ot),merge:merge.bind(null,Ot),parse:parse})}var un=withDefaults(null,sn);0&&0},70007:(st,Wt,Ot)=>{"use strict";var en=Object.defineProperty;var tn=Object.getOwnPropertyDescriptor;var nn=Object.getOwnPropertyNames;var an=Object.prototype.hasOwnProperty;var __export=(st,Wt)=>{for(var Ot in Wt)en(st,Ot,{get:Wt[Ot],enumerable:true})};var __copyProps=(st,Wt,Ot,In)=>{if(Wt&&typeof Wt==="object"||typeof Wt==="function"){for(let rn of nn(Wt))if(!an.call(st,rn)&&rn!==Ot)en(st,rn,{get:()=>Wt[rn],enumerable:!(In=tn(Wt,rn))||In.enumerable})}return st};var __toCommonJS=st=>__copyProps(en({},"__esModule",{value:true}),st);var In={};__export(In,{GraphqlResponseError:()=>un,graphql:()=>Gn,withCustomRequest:()=>withCustomRequest});st.exports=__toCommonJS(In);var rn=Ot(66255);var cn=Ot(33843);var on="7.1.0";var sn=Ot(66255);var dn=Ot(66255);function _buildMessageForResponseErrors(st){return`Request failed due to following response errors:\n`+st.errors.map((st=>` - ${st.message}`)).join("\n")}var un=class extends Error{constructor(st,Wt,Ot){super(_buildMessageForResponseErrors(Ot));this.request=st;this.headers=Wt;this.response=Ot;this.name="GraphqlResponseError";this.errors=Ot.errors;this.data=Ot.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}};var pn=["method","baseUrl","url","headers","request","query","mediaType"];var bn=["query","method","url"];var mn=/\/api\/v3\/?$/;function graphql(st,Wt,Ot){if(Ot){if(typeof Wt==="string"&&"query"in Ot){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const st in Ot){if(!bn.includes(st))continue;return Promise.reject(new Error(`[@octokit/graphql] "${st}" cannot be used as variable name`))}}const en=typeof Wt==="string"?Object.assign({query:Wt},Ot):Wt;const tn=Object.keys(en).reduce(((st,Wt)=>{if(pn.includes(Wt)){st[Wt]=en[Wt];return st}if(!st.variables){st.variables={}}st.variables[Wt]=en[Wt];return st}),{});const nn=en.baseUrl||st.endpoint.DEFAULTS.baseUrl;if(mn.test(nn)){tn.url=nn.replace(mn,"/api/graphql")}return st(tn).then((st=>{if(st.data.errors){const Wt={};for(const Ot of Object.keys(st.headers)){Wt[Ot]=st.headers[Ot]}throw new un(tn,Wt,st.data)}return st.data.data}))}function withDefaults(st,Wt){const Ot=st.defaults(Wt);const newApi=(st,Wt)=>graphql(Ot,st,Wt);return Object.assign(newApi,{defaults:withDefaults.bind(null,Ot),endpoint:Ot.endpoint})}var Gn=withDefaults(rn.request,{headers:{"user-agent":`octokit-graphql.js/${on} ${(0,cn.getUserAgent)()}`},method:"POST",url:"/graphql"});function withCustomRequest(st){return withDefaults(st,{method:"POST",url:"/graphql"})}0&&0},38082:st=>{"use strict";var Wt=Object.defineProperty;var Ot=Object.getOwnPropertyDescriptor;var en=Object.getOwnPropertyNames;var tn=Object.prototype.hasOwnProperty;var __export=(st,Ot)=>{for(var en in Ot)Wt(st,en,{get:Ot[en],enumerable:true})};var __copyProps=(st,nn,an,In)=>{if(nn&&typeof nn==="object"||typeof nn==="function"){for(let rn of en(nn))if(!tn.call(st,rn)&&rn!==an)Wt(st,rn,{get:()=>nn[rn],enumerable:!(In=Ot(nn,rn))||In.enumerable})}return st};var __toCommonJS=st=>__copyProps(Wt({},"__esModule",{value:true}),st);var nn={};__export(nn,{composePaginateRest:()=>In,isPaginatingEndpoint:()=>isPaginatingEndpoint,paginateRest:()=>paginateRest,paginatingEndpoints:()=>rn});st.exports=__toCommonJS(nn);var an="11.3.1";function normalizePaginatedListResponse(st){if(!st.data){return{...st,data:[]}}const Wt="total_count"in st.data&&!("url"in st.data);if(!Wt)return st;const Ot=st.data.incomplete_results;const en=st.data.repository_selection;const tn=st.data.total_count;delete st.data.incomplete_results;delete st.data.repository_selection;delete st.data.total_count;const nn=Object.keys(st.data)[0];const an=st.data[nn];st.data=an;if(typeof Ot!=="undefined"){st.data.incomplete_results=Ot}if(typeof en!=="undefined"){st.data.repository_selection=en}st.data.total_count=tn;return st}function iterator(st,Wt,Ot){const en=typeof Wt==="function"?Wt.endpoint(Ot):st.request.endpoint(Wt,Ot);const tn=typeof Wt==="function"?Wt:st.request;const nn=en.method;const an=en.headers;let In=en.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!In)return{done:true};try{const st=await tn({method:nn,url:In,headers:an});const Wt=normalizePaginatedListResponse(st);In=((Wt.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:Wt}}catch(st){if(st.status!==409)throw st;In="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(st,Wt,Ot,en){if(typeof Ot==="function"){en=Ot;Ot=void 0}return gather(st,[],iterator(st,Wt,Ot)[Symbol.asyncIterator](),en)}function gather(st,Wt,Ot,en){return Ot.next().then((tn=>{if(tn.done){return Wt}let nn=false;function done(){nn=true}Wt=Wt.concat(en?en(tn.value,done):tn.value.data);if(nn){return Wt}return gather(st,Wt,Ot,en)}))}var In=Object.assign(paginate,{iterator:iterator});var rn=["GET /advisories","GET /app/hook/deliveries","GET /app/installation-requests","GET /app/installations","GET /assignments/{assignment_id}/accepted_assignments","GET /classrooms","GET /classrooms/{classroom_id}/assignments","GET /enterprises/{enterprise}/copilot/usage","GET /enterprises/{enterprise}/dependabot/alerts","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/actions/variables","GET /orgs/{org}/actions/variables/{name}/repositories","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/codespaces/secrets","GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories","GET /orgs/{org}/copilot/billing/seats","GET /orgs/{org}/copilot/usage","GET /orgs/{org}/dependabot/alerts","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/members/{username}/codespaces","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/organization-roles/{role_id}/teams","GET /orgs/{org}/organization-roles/{role_id}/users","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/personal-access-token-requests","GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories","GET /orgs/{org}/personal-access-tokens","GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories","GET /orgs/{org}/projects","GET /orgs/{org}/properties/values","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/rulesets","GET /orgs/{org}/rulesets/rule-suites","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/security-advisories","GET /orgs/{org}/team/{team_slug}/copilot/usage","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/organization-secrets","GET /repos/{owner}/{repo}/actions/organization-variables","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/variables","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/activity","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/alerts","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps","GET /repos/{owner}/{repo}/environments/{environment_name}/secrets","GET /repos/{owner}/{repo}/environments/{environment_name}/variables","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/rules/branches/{branch}","GET /repos/{owner}/{repo}/rulesets","GET /repos/{owner}/{repo}/rulesets/rule-suites","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/security-advisories","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/social_accounts","GET /user/ssh_signing_keys","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/social_accounts","GET /users/{username}/ssh_signing_keys","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(st){if(typeof st==="string"){return rn.includes(st)}else{return false}}function paginateRest(st){return{paginate:Object.assign(paginate.bind(null,st),{iterator:iterator.bind(null,st)})}}paginateRest.VERSION=an;0&&0},6966:st=>{"use strict";var Wt=Object.defineProperty;var Ot=Object.getOwnPropertyDescriptor;var en=Object.getOwnPropertyNames;var tn=Object.prototype.hasOwnProperty;var __export=(st,Ot)=>{for(var en in Ot)Wt(st,en,{get:Ot[en],enumerable:true})};var __copyProps=(st,nn,an,In)=>{if(nn&&typeof nn==="object"||typeof nn==="function"){for(let rn of en(nn))if(!tn.call(st,rn)&&rn!==an)Wt(st,rn,{get:()=>nn[rn],enumerable:!(In=Ot(nn,rn))||In.enumerable})}return st};var __toCommonJS=st=>__copyProps(Wt({},"__esModule",{value:true}),st);var nn={};__export(nn,{requestLog:()=>requestLog});st.exports=__toCommonJS(nn);var an="4.0.1";function requestLog(st){st.hook.wrap("request",((Wt,Ot)=>{st.log.debug("request",Ot);const en=Date.now();const tn=st.request.endpoint.parse(Ot);const nn=tn.url.replace(Ot.baseUrl,"");return Wt(Ot).then((Wt=>{st.log.info(`${tn.method} ${nn} - ${Wt.status} in ${Date.now()-en}ms`);return Wt})).catch((Wt=>{st.log.info(`${tn.method} ${nn} - ${Wt.status} in ${Date.now()-en}ms`);throw Wt}))}))}requestLog.VERSION=an;0&&0},84935:st=>{"use strict";var Wt=Object.defineProperty;var Ot=Object.getOwnPropertyDescriptor;var en=Object.getOwnPropertyNames;var tn=Object.prototype.hasOwnProperty;var __export=(st,Ot)=>{for(var en in Ot)Wt(st,en,{get:Ot[en],enumerable:true})};var __copyProps=(st,nn,an,In)=>{if(nn&&typeof nn==="object"||typeof nn==="function"){for(let rn of en(nn))if(!tn.call(st,rn)&&rn!==an)Wt(st,rn,{get:()=>nn[rn],enumerable:!(In=Ot(nn,rn))||In.enumerable})}return st};var __toCommonJS=st=>__copyProps(Wt({},"__esModule",{value:true}),st);var nn={};__export(nn,{legacyRestEndpointMethods:()=>legacyRestEndpointMethods,restEndpointMethods:()=>restEndpointMethods});st.exports=__toCommonJS(nn);var an="13.2.2";var In={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"],usageMetricsForEnterprise:["GET /enterprises/{enterprise}/copilot/usage"],usageMetricsForOrg:["GET /orgs/{org}/copilot/usage"],usageMetricsForTeam:["GET /orgs/{org}/team/{team_slug}/copilot/usage"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createCustomOrganizationRole:["POST /orgs/{org}/organization-roles"],createInvitation:["POST /orgs/{org}/invitations"],createOrUpdateCustomProperties:["PATCH /orgs/{org}/properties/schema"],createOrUpdateCustomPropertiesValuesForRepos:["PATCH /orgs/{org}/properties/values"],createOrUpdateCustomProperty:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteCustomOrganizationRole:["DELETE /orgs/{org}/organization-roles/{role_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],get:["GET /orgs/{org}"],getAllCustomProperties:["GET /orgs/{org}/properties/schema"],getCustomProperty:["GET /orgs/{org}/properties/schema/{custom_property_name}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomPropertiesValuesForRepos:["GET /orgs/{org}/properties/values"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],patchCustomOrganizationRole:["PATCH /orgs/{org}/organization-roles/{role_id}"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeCustomProperty:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkPrivateVulnerabilityReporting:["GET /repos/{owner}/{repo}/private-vulnerability-reporting"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateCustomPropertiesValues:["PATCH /repos/{owner}/{repo}/properties/values"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getCustomPropertiesValues:["GET /repos/{owner}/{repo}/properties/values"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};var rn=In;var cn=new Map;for(const[st,Wt]of Object.entries(rn)){for(const[Ot,en]of Object.entries(Wt)){const[Wt,tn,nn]=en;const[an,In]=Wt.split(/ /);const rn=Object.assign({method:an,url:In},tn);if(!cn.has(st)){cn.set(st,new Map)}cn.get(st).set(Ot,{scope:st,methodName:Ot,endpointDefaults:rn,decorations:nn})}}var on={has({scope:st},Wt){return cn.get(st).has(Wt)},getOwnPropertyDescriptor(st,Wt){return{value:this.get(st,Wt),configurable:true,writable:true,enumerable:true}},defineProperty(st,Wt,Ot){Object.defineProperty(st.cache,Wt,Ot);return true},deleteProperty(st,Wt){delete st.cache[Wt];return true},ownKeys({scope:st}){return[...cn.get(st).keys()]},set(st,Wt,Ot){return st.cache[Wt]=Ot},get({octokit:st,scope:Wt,cache:Ot},en){if(Ot[en]){return Ot[en]}const tn=cn.get(Wt).get(en);if(!tn){return void 0}const{endpointDefaults:nn,decorations:an}=tn;if(an){Ot[en]=decorate(st,Wt,en,nn,an)}else{Ot[en]=st.request.defaults(nn)}return Ot[en]}};function endpointsToMethods(st){const Wt={};for(const Ot of cn.keys()){Wt[Ot]=new Proxy({octokit:st,scope:Ot,cache:{}},on)}return Wt}function decorate(st,Wt,Ot,en,tn){const nn=st.request.defaults(en);function withDecorations(...en){let an=nn.endpoint.merge(...en);if(tn.mapToData){an=Object.assign({},an,{data:an[tn.mapToData],[tn.mapToData]:void 0});return nn(an)}if(tn.renamed){const[en,nn]=tn.renamed;st.log.warn(`octokit.${Wt}.${Ot}() has been renamed to octokit.${en}.${nn}()`)}if(tn.deprecated){st.log.warn(tn.deprecated)}if(tn.renamedParameters){const an=nn.endpoint.merge(...en);for(const[en,nn]of Object.entries(tn.renamedParameters)){if(en in an){st.log.warn(`"${en}" parameter is deprecated for "octokit.${Wt}.${Ot}()". Use "${nn}" instead`);if(!(nn in an)){an[nn]=an[en]}delete an[en]}}return nn(an)}return nn(...en)}return Object.assign(withDecorations,nn)}function restEndpointMethods(st){const Wt=endpointsToMethods(st);return{rest:Wt}}restEndpointMethods.VERSION=an;function legacyRestEndpointMethods(st){const Wt=endpointsToMethods(st);return{...Wt,rest:Wt}}legacyRestEndpointMethods.VERSION=an;0&&0},33450:(st,Wt,Ot)=>{"use strict";var en=Object.create;var tn=Object.defineProperty;var nn=Object.getOwnPropertyDescriptor;var an=Object.getOwnPropertyNames;var In=Object.getPrototypeOf;var rn=Object.prototype.hasOwnProperty;var __export=(st,Wt)=>{for(var Ot in Wt)tn(st,Ot,{get:Wt[Ot],enumerable:true})};var __copyProps=(st,Wt,Ot,en)=>{if(Wt&&typeof Wt==="object"||typeof Wt==="function"){for(let In of an(Wt))if(!rn.call(st,In)&&In!==Ot)tn(st,In,{get:()=>Wt[In],enumerable:!(en=nn(Wt,In))||en.enumerable})}return st};var __toESM=(st,Wt,Ot)=>(Ot=st!=null?en(In(st)):{},__copyProps(Wt||!st||!st.__esModule?tn(Ot,"default",{value:st,enumerable:true}):Ot,st));var __toCommonJS=st=>__copyProps(tn({},"__esModule",{value:true}),st);var cn={};__export(cn,{VERSION:()=>un,retry:()=>retry});st.exports=__toCommonJS(cn);var on=Ot(61897);async function errorRequest(st,Wt,Ot,en){if(!Ot.request||!Ot.request.request){throw Ot}if(Ot.status>=400&&!st.doNotRetry.includes(Ot.status)){const tn=en.request.retries!=null?en.request.retries:st.retries;const nn=Math.pow((en.request.retryCount||0)+1,2);throw Wt.retry.retryRequest(Ot,tn,nn)}throw Ot}var sn=__toESM(Ot(63251));var dn=Ot(93708);async function wrapRequest(st,Wt,Ot,en){const tn=new sn.default;tn.on("failed",(function(Wt,Ot){const tn=~~Wt.request.request.retries;const nn=~~Wt.request.request.retryAfter;en.request.retryCount=Ot.retryCount+1;if(tn>Ot.retryCount){return nn*st.retryAfterBaseValue}}));return tn.schedule(requestWithGraphqlErrorHandling.bind(null,st,Wt,Ot),en)}async function requestWithGraphqlErrorHandling(st,Wt,Ot,en){const tn=await Ot(Ot,en);if(tn.data&&tn.data.errors&&/Something went wrong while executing your query/.test(tn.data.errors[0].message)){const Ot=new dn.RequestError(tn.data.errors[0].message,500,{request:en,response:tn});return errorRequest(st,Wt,Ot,en)}return tn}var un="6.0.1";function retry(st,Wt){const Ot=Object.assign({enabled:true,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,422,451],retries:3},Wt.retry);if(Ot.enabled){st.hook.error("request",errorRequest.bind(null,Ot,st));st.hook.wrap("request",wrapRequest.bind(null,Ot,st))}return{retry:{retryRequest:(st,Wt,Ot)=>{st.request.request=Object.assign({},st.request.request,{retries:Wt,retryAfter:Ot});return st}}}}retry.VERSION=un;0&&0},93708:(st,Wt,Ot)=>{"use strict";var en=Object.create;var tn=Object.defineProperty;var nn=Object.getOwnPropertyDescriptor;var an=Object.getOwnPropertyNames;var In=Object.getPrototypeOf;var rn=Object.prototype.hasOwnProperty;var __export=(st,Wt)=>{for(var Ot in Wt)tn(st,Ot,{get:Wt[Ot],enumerable:true})};var __copyProps=(st,Wt,Ot,en)=>{if(Wt&&typeof Wt==="object"||typeof Wt==="function"){for(let In of an(Wt))if(!rn.call(st,In)&&In!==Ot)tn(st,In,{get:()=>Wt[In],enumerable:!(en=nn(Wt,In))||en.enumerable})}return st};var __toESM=(st,Wt,Ot)=>(Ot=st!=null?en(In(st)):{},__copyProps(Wt||!st||!st.__esModule?tn(Ot,"default",{value:st,enumerable:true}):Ot,st));var __toCommonJS=st=>__copyProps(tn({},"__esModule",{value:true}),st);var cn={};__export(cn,{RequestError:()=>pn});st.exports=__toCommonJS(cn);var on=Ot(14150);var sn=__toESM(Ot(55560));var dn=(0,sn.default)((st=>console.warn(st)));var un=(0,sn.default)((st=>console.warn(st)));var pn=class extends Error{constructor(st,Wt,Ot){super(st);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=Wt;let en;if("headers"in Ot&&typeof Ot.headers!=="undefined"){en=Ot.headers}if("response"in Ot){this.response=Ot.response;en=Ot.response.headers}const tn=Object.assign({},Ot.request);if(Ot.request.headers.authorization){tn.headers=Object.assign({},Ot.request.headers,{authorization:Ot.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}tn.url=tn.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=tn;Object.defineProperty(this,"code",{get(){dn(new on.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return Wt}});Object.defineProperty(this,"headers",{get(){un(new on.Deprecation("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."));return en||{}}})}};0&&0},66255:(st,Wt,Ot)=>{"use strict";var en=Object.defineProperty;var tn=Object.getOwnPropertyDescriptor;var nn=Object.getOwnPropertyNames;var an=Object.prototype.hasOwnProperty;var __export=(st,Wt)=>{for(var Ot in Wt)en(st,Ot,{get:Wt[Ot],enumerable:true})};var __copyProps=(st,Wt,Ot,In)=>{if(Wt&&typeof Wt==="object"||typeof Wt==="function"){for(let rn of nn(Wt))if(!an.call(st,rn)&&rn!==Ot)en(st,rn,{get:()=>Wt[rn],enumerable:!(In=tn(Wt,rn))||In.enumerable})}return st};var __toCommonJS=st=>__copyProps(en({},"__esModule",{value:true}),st);var In={};__export(In,{request:()=>dn});st.exports=__toCommonJS(In);var rn=Ot(54471);var cn=Ot(33843);var on="8.4.0";function isPlainObject(st){if(typeof st!=="object"||st===null)return false;if(Object.prototype.toString.call(st)!=="[object Object]")return false;const Wt=Object.getPrototypeOf(st);if(Wt===null)return true;const Ot=Object.prototype.hasOwnProperty.call(Wt,"constructor")&&Wt.constructor;return typeof Ot==="function"&&Ot instanceof Ot&&Function.prototype.call(Ot)===Function.prototype.call(st)}var sn=Ot(93708);function getBufferResponse(st){return st.arrayBuffer()}function fetchWrapper(st){var Wt,Ot,en,tn;const nn=st.request&&st.request.log?st.request.log:console;const an=((Wt=st.request)==null?void 0:Wt.parseSuccessResponseBody)!==false;if(isPlainObject(st.body)||Array.isArray(st.body)){st.body=JSON.stringify(st.body)}let In={};let rn;let cn;let{fetch:on}=globalThis;if((Ot=st.request)==null?void 0:Ot.fetch){on=st.request.fetch}if(!on){throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing")}return on(st.url,{method:st.method,body:st.body,redirect:(en=st.request)==null?void 0:en.redirect,headers:st.headers,signal:(tn=st.request)==null?void 0:tn.signal,...st.body&&{duplex:"half"}}).then((async Wt=>{cn=Wt.url;rn=Wt.status;for(const st of Wt.headers){In[st[0]]=st[1]}if("deprecation"in In){const Wt=In.link&&In.link.match(/<([^>]+)>; rel="deprecation"/);const Ot=Wt&&Wt.pop();nn.warn(`[@octokit/request] "${st.method} ${st.url}" is deprecated. It is scheduled to be removed on ${In.sunset}${Ot?`. See ${Ot}`:""}`)}if(rn===204||rn===205){return}if(st.method==="HEAD"){if(rn<400){return}throw new sn.RequestError(Wt.statusText,rn,{response:{url:cn,status:rn,headers:In,data:void 0},request:st})}if(rn===304){throw new sn.RequestError("Not modified",rn,{response:{url:cn,status:rn,headers:In,data:await getResponseData(Wt)},request:st})}if(rn>=400){const Ot=await getResponseData(Wt);const en=new sn.RequestError(toErrorMessage(Ot),rn,{response:{url:cn,status:rn,headers:In,data:Ot},request:st});throw en}return an?await getResponseData(Wt):Wt.body})).then((st=>({status:rn,url:cn,headers:In,data:st}))).catch((Wt=>{if(Wt instanceof sn.RequestError)throw Wt;else if(Wt.name==="AbortError")throw Wt;let Ot=Wt.message;if(Wt.name==="TypeError"&&"cause"in Wt){if(Wt.cause instanceof Error){Ot=Wt.cause.message}else if(typeof Wt.cause==="string"){Ot=Wt.cause}}throw new sn.RequestError(Ot,500,{request:st})}))}async function getResponseData(st){const Wt=st.headers.get("content-type");if(/application\/json/.test(Wt)){return st.json().catch((()=>st.text())).catch((()=>""))}if(!Wt||/^text\/|charset=utf-8$/.test(Wt)){return st.text()}return getBufferResponse(st)}function toErrorMessage(st){if(typeof st==="string")return st;let Wt;if("documentation_url"in st){Wt=` - ${st.documentation_url}`}else{Wt=""}if("message"in st){if(Array.isArray(st.errors)){return`${st.message}: ${st.errors.map(JSON.stringify).join(", ")}${Wt}`}return`${st.message}${Wt}`}return`Unknown error: ${JSON.stringify(st)}`}function withDefaults(st,Wt){const Ot=st.defaults(Wt);const newApi=function(st,Wt){const en=Ot.merge(st,Wt);if(!en.request||!en.request.hook){return fetchWrapper(Ot.parse(en))}const request2=(st,Wt)=>fetchWrapper(Ot.parse(Ot.merge(st,Wt)));Object.assign(request2,{endpoint:Ot,defaults:withDefaults.bind(null,Ot)});return en.request.hook(request2,en)};return Object.assign(newApi,{endpoint:Ot,defaults:withDefaults.bind(null,Ot)})}var dn=withDefaults(rn.endpoint,{headers:{"user-agent":`octokit-request.js/${on} ${(0,cn.getUserAgent)()}`}});0&&0},65772:(st,Wt,Ot)=>{"use strict";var en=Object.defineProperty;var tn=Object.getOwnPropertyDescriptor;var nn=Object.getOwnPropertyNames;var an=Object.prototype.hasOwnProperty;var __export=(st,Wt)=>{for(var Ot in Wt)en(st,Ot,{get:Wt[Ot],enumerable:true})};var __copyProps=(st,Wt,Ot,In)=>{if(Wt&&typeof Wt==="object"||typeof Wt==="function"){for(let rn of nn(Wt))if(!an.call(st,rn)&&rn!==Ot)en(st,rn,{get:()=>Wt[rn],enumerable:!(In=tn(Wt,rn))||In.enumerable})}return st};var __toCommonJS=st=>__copyProps(en({},"__esModule",{value:true}),st);var In={};__export(In,{Octokit:()=>un});st.exports=__toCommonJS(In);var rn=Ot(61897);var cn=Ot(6966);var on=Ot(38082);var sn=Ot(84935);var dn="20.1.1";var un=rn.Octokit.plugin(cn.requestLog,sn.legacyRestEndpointMethods,on.paginateRest).defaults({userAgent:`octokit-rest.js/${dn}`});0&&0},45225:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.TypeCompiler=Wt.Policy=Wt.TypeCompilerTypeGuardError=Wt.TypeCompilerUnknownTypeError=Wt.TypeCheck=void 0;const en=Ot(90023);const tn=Ot(4672);const nn=Ot(45918);const an=Ot(94526);const In=Ot(75743);const rn=Ot(73849);const cn=Ot(48121);const on=Ot(97759);const sn=Ot(30658);const dn=Ot(1409);const un=Ot(22346);const pn=Ot(19522);const bn=Ot(20109);class TypeCheck{constructor(st,Wt,Ot,tn){this.schema=st;this.references=Wt;this.checkFunc=Ot;this.code=tn;this.hasTransform=(0,en.HasTransform)(st,Wt)}Code(){return this.code}Errors(st){return(0,tn.Errors)(this.schema,this.references,st)}Check(st){return this.checkFunc(st)}Decode(st){if(!this.checkFunc(st))throw new en.TransformDecodeCheckError(this.schema,st,this.Errors(st).First());return this.hasTransform?(0,en.TransformDecode)(this.schema,this.references,st):st}Encode(st){const Wt=this.hasTransform?(0,en.TransformEncode)(this.schema,this.references,st):st;if(!this.checkFunc(Wt))throw new en.TransformEncodeCheckError(this.schema,st,this.Errors(st).First());return Wt}}Wt.TypeCheck=TypeCheck;var mn;(function(st){function DollarSign(st){return st===36}st.DollarSign=DollarSign;function IsUnderscore(st){return st===95}st.IsUnderscore=IsUnderscore;function IsAlpha(st){return st>=65&&st<=90||st>=97&&st<=122}st.IsAlpha=IsAlpha;function IsNumeric(st){return st>=48&&st<=57}st.IsNumeric=IsNumeric})(mn||(mn={}));var Gn;(function(st){function IsFirstCharacterNumeric(st){if(st.length===0)return false;return mn.IsNumeric(st.charCodeAt(0))}function IsAccessor(st){if(IsFirstCharacterNumeric(st))return false;for(let Wt=0;Wt= ${st.minItems}`;const nn=CreateExpression(st.items,Wt,"value");yield`${Ot}.every((${en}) => ${nn})`;if((0,bn.IsSchema)(st.contains)||(0,pn.IsNumber)(st.minContains)||(0,pn.IsNumber)(st.maxContains)){const nn=(0,bn.IsSchema)(st.contains)?st.contains:(0,un.Never)();const an=CreateExpression(nn,Wt,"value");const In=(0,pn.IsNumber)(st.minContains)?[`(count >= ${st.minContains})`]:[];const rn=(0,pn.IsNumber)(st.maxContains)?[`(count <= ${st.maxContains})`]:[];const cn=`const count = value.reduce((${tn}, ${en}) => ${an} ? acc + 1 : acc, 0)`;const on=[`(count > 0)`,...In,...rn].join(" && ");yield`((${en}) => { ${cn}; return ${on}})(${Ot})`}if(st.uniqueItems===true){const st=`const hashed = hash(element); if(set.has(hashed)) { return false } else { set.add(hashed) } } return true`;const Wt=`const set = new Set(); for(const element of value) { ${st} }`;yield`((${en}) => { ${Wt} )(${Ot})`}}function*FromAsyncIterator(st,Wt,Ot){yield`(typeof value === 'object' && Symbol.asyncIterator in ${Ot})`}function*FromBigInt(st,Wt,Ot){yield`(typeof ${Ot} === 'bigint')`;if((0,pn.IsBigInt)(st.exclusiveMaximum))yield`${Ot} < BigInt(${st.exclusiveMaximum})`;if((0,pn.IsBigInt)(st.exclusiveMinimum))yield`${Ot} > BigInt(${st.exclusiveMinimum})`;if((0,pn.IsBigInt)(st.maximum))yield`${Ot} <= BigInt(${st.maximum})`;if((0,pn.IsBigInt)(st.minimum))yield`${Ot} >= BigInt(${st.minimum})`;if((0,pn.IsBigInt)(st.multipleOf))yield`(${Ot} % BigInt(${st.multipleOf})) === 0`}function*FromBoolean(st,Wt,Ot){yield`(typeof ${Ot} === 'boolean')`}function*FromConstructor(st,Wt,Ot){yield*Visit(st.returns,Wt,`${Ot}.prototype`)}function*FromDate(st,Wt,Ot){yield`(${Ot} instanceof Date) && Number.isFinite(${Ot}.getTime())`;if((0,pn.IsNumber)(st.exclusiveMaximumTimestamp))yield`${Ot}.getTime() < ${st.exclusiveMaximumTimestamp}`;if((0,pn.IsNumber)(st.exclusiveMinimumTimestamp))yield`${Ot}.getTime() > ${st.exclusiveMinimumTimestamp}`;if((0,pn.IsNumber)(st.maximumTimestamp))yield`${Ot}.getTime() <= ${st.maximumTimestamp}`;if((0,pn.IsNumber)(st.minimumTimestamp))yield`${Ot}.getTime() >= ${st.minimumTimestamp}`;if((0,pn.IsNumber)(st.multipleOfTimestamp))yield`(${Ot}.getTime() % ${st.multipleOfTimestamp}) === 0`}function*FromFunction(st,Wt,Ot){yield`(typeof ${Ot} === 'function')`}function*FromInteger(st,Wt,Ot){yield`(typeof ${Ot} === 'number' && Number.isInteger(${Ot}))`;if((0,pn.IsNumber)(st.exclusiveMaximum))yield`${Ot} < ${st.exclusiveMaximum}`;if((0,pn.IsNumber)(st.exclusiveMinimum))yield`${Ot} > ${st.exclusiveMinimum}`;if((0,pn.IsNumber)(st.maximum))yield`${Ot} <= ${st.maximum}`;if((0,pn.IsNumber)(st.minimum))yield`${Ot} >= ${st.minimum}`;if((0,pn.IsNumber)(st.multipleOf))yield`(${Ot} % ${st.multipleOf}) === 0`}function*FromIntersect(st,Wt,Ot){const en=st.allOf.map((st=>CreateExpression(st,Wt,Ot))).join(" && ");if(st.unevaluatedProperties===false){const Wt=CreateVariable(`${new RegExp((0,sn.KeyOfPattern)(st))};`);const tn=`Object.getOwnPropertyNames(${Ot}).every(key => ${Wt}.test(key))`;yield`(${en} && ${tn})`}else if((0,bn.IsSchema)(st.unevaluatedProperties)){const tn=CreateVariable(`${new RegExp((0,sn.KeyOfPattern)(st))};`);const nn=`Object.getOwnPropertyNames(${Ot}).every(key => ${tn}.test(key) || ${CreateExpression(st.unevaluatedProperties,Wt,`${Ot}[key]`)})`;yield`(${en} && ${nn})`}else{yield`(${en})`}}function*FromIterator(st,Wt,Ot){yield`(typeof value === 'object' && Symbol.iterator in ${Ot})`}function*FromLiteral(st,Wt,Ot){if(typeof st.const==="number"||typeof st.const==="boolean"){yield`(${Ot} === ${st.const})`}else{yield`(${Ot} === '${Zn.Escape(st.const)}')`}}function*FromNever(st,Wt,Ot){yield`false`}function*FromNot(st,Wt,Ot){const en=CreateExpression(st.not,Wt,Ot);yield`(!${en})`}function*FromNull(st,Wt,Ot){yield`(${Ot} === null)`}function*FromNumber(st,Wt,Ot){yield An.IsNumberLike(Ot);if((0,pn.IsNumber)(st.exclusiveMaximum))yield`${Ot} < ${st.exclusiveMaximum}`;if((0,pn.IsNumber)(st.exclusiveMinimum))yield`${Ot} > ${st.exclusiveMinimum}`;if((0,pn.IsNumber)(st.maximum))yield`${Ot} <= ${st.maximum}`;if((0,pn.IsNumber)(st.minimum))yield`${Ot} >= ${st.minimum}`;if((0,pn.IsNumber)(st.multipleOf))yield`(${Ot} % ${st.multipleOf}) === 0`}function*FromObject(st,Wt,Ot){yield An.IsObjectLike(Ot);if((0,pn.IsNumber)(st.minProperties))yield`Object.getOwnPropertyNames(${Ot}).length >= ${st.minProperties}`;if((0,pn.IsNumber)(st.maxProperties))yield`Object.getOwnPropertyNames(${Ot}).length <= ${st.maxProperties}`;const en=Object.getOwnPropertyNames(st.properties);for(const tn of en){const en=Gn.Encode(Ot,tn);const nn=st.properties[tn];if(st.required&&st.required.includes(tn)){yield*Visit(nn,Wt,en);if((0,dn.ExtendsUndefinedCheck)(nn)||IsAnyOrUnknown(nn))yield`('${tn}' in ${Ot})`}else{const st=CreateExpression(nn,Wt,en);yield An.IsExactOptionalProperty(Ot,tn,st)}}if(st.additionalProperties===false){if(st.required&&st.required.length===en.length){yield`Object.getOwnPropertyNames(${Ot}).length === ${en.length}`}else{const st=`[${en.map((st=>`'${st}'`)).join(", ")}]`;yield`Object.getOwnPropertyNames(${Ot}).every(key => ${st}.includes(key))`}}if(typeof st.additionalProperties==="object"){const tn=CreateExpression(st.additionalProperties,Wt,`${Ot}[key]`);const nn=`[${en.map((st=>`'${st}'`)).join(", ")}]`;yield`(Object.getOwnPropertyNames(${Ot}).every(key => ${nn}.includes(key) || ${tn}))`}}function*FromPromise(st,Wt,Ot){yield`(typeof value === 'object' && typeof ${Ot}.then === 'function')`}function*FromRecord(st,Wt,Ot){yield An.IsRecordLike(Ot);if((0,pn.IsNumber)(st.minProperties))yield`Object.getOwnPropertyNames(${Ot}).length >= ${st.minProperties}`;if((0,pn.IsNumber)(st.maxProperties))yield`Object.getOwnPropertyNames(${Ot}).length <= ${st.maxProperties}`;const[en,tn]=Object.entries(st.patternProperties)[0];const nn=CreateVariable(`${new RegExp(en)}`);const an=CreateExpression(tn,Wt,"value");const In=(0,bn.IsSchema)(st.additionalProperties)?CreateExpression(st.additionalProperties,Wt,Ot):st.additionalProperties===false?"false":"true";const rn=`(${nn}.test(key) ? ${an} : ${In})`;yield`(Object.entries(${Ot}).every(([key, value]) => ${rn}))`}function*FromRef(st,Ot,en){const tn=(0,In.Deref)(st,Ot);if(Wt.functions.has(st.$ref))return yield`${CreateFunctionName(st.$ref)}(${en})`;yield*Visit(tn,Ot,en)}function*FromRegExp(st,Wt,Ot){const en=CreateVariable(`${new RegExp(st.source,st.flags)};`);yield`(typeof ${Ot} === 'string')`;if((0,pn.IsNumber)(st.maxLength))yield`${Ot}.length <= ${st.maxLength}`;if((0,pn.IsNumber)(st.minLength))yield`${Ot}.length >= ${st.minLength}`;yield`${en}.test(${Ot})`}function*FromString(st,Wt,Ot){yield`(typeof ${Ot} === 'string')`;if((0,pn.IsNumber)(st.maxLength))yield`${Ot}.length <= ${st.maxLength}`;if((0,pn.IsNumber)(st.minLength))yield`${Ot}.length >= ${st.minLength}`;if(st.pattern!==undefined){const Wt=CreateVariable(`${new RegExp(st.pattern)};`);yield`${Wt}.test(${Ot})`}if(st.format!==undefined){yield`format('${st.format}', ${Ot})`}}function*FromSymbol(st,Wt,Ot){yield`(typeof ${Ot} === 'symbol')`}function*FromTemplateLiteral(st,Wt,Ot){yield`(typeof ${Ot} === 'string')`;const en=CreateVariable(`${new RegExp(st.pattern)};`);yield`${en}.test(${Ot})`}function*FromThis(st,Wt,Ot){yield`${CreateFunctionName(st.$ref)}(${Ot})`}function*FromTuple(st,Wt,Ot){yield`Array.isArray(${Ot})`;if(st.items===undefined)return yield`${Ot}.length === 0`;yield`(${Ot}.length === ${st.maxItems})`;for(let en=0;enCreateExpression(st,Wt,Ot)));yield`(${en.join(" || ")})`}function*FromUint8Array(st,Wt,Ot){yield`${Ot} instanceof Uint8Array`;if((0,pn.IsNumber)(st.maxByteLength))yield`(${Ot}.length <= ${st.maxByteLength})`;if((0,pn.IsNumber)(st.minByteLength))yield`(${Ot}.length >= ${st.minByteLength})`}function*FromUnknown(st,Wt,Ot){yield"true"}function*FromVoid(st,Wt,Ot){yield An.IsVoidLike(Ot)}function*FromKind(st,Ot,en){const tn=Wt.instances.size;Wt.instances.set(tn,st);yield`kind('${st[cn.Kind]}', ${tn}, ${en})`}function*Visit(st,Ot,en,tn=true){const nn=(0,pn.IsString)(st.$id)?[...Ot,st]:Ot;const an=st;if(tn&&(0,pn.IsString)(st.$id)){const tn=CreateFunctionName(st.$id);if(Wt.functions.has(tn)){return yield`${tn}(${en})`}else{const nn=CreateFunction(tn,st,Ot,"value",false);Wt.functions.set(tn,nn);return yield`${tn}(${en})`}}switch(an[cn.Kind]){case"Any":return yield*FromAny(an,nn,en);case"Array":return yield*FromArray(an,nn,en);case"AsyncIterator":return yield*FromAsyncIterator(an,nn,en);case"BigInt":return yield*FromBigInt(an,nn,en);case"Boolean":return yield*FromBoolean(an,nn,en);case"Constructor":return yield*FromConstructor(an,nn,en);case"Date":return yield*FromDate(an,nn,en);case"Function":return yield*FromFunction(an,nn,en);case"Integer":return yield*FromInteger(an,nn,en);case"Intersect":return yield*FromIntersect(an,nn,en);case"Iterator":return yield*FromIterator(an,nn,en);case"Literal":return yield*FromLiteral(an,nn,en);case"Never":return yield*FromNever(an,nn,en);case"Not":return yield*FromNot(an,nn,en);case"Null":return yield*FromNull(an,nn,en);case"Number":return yield*FromNumber(an,nn,en);case"Object":return yield*FromObject(an,nn,en);case"Promise":return yield*FromPromise(an,nn,en);case"Record":return yield*FromRecord(an,nn,en);case"Ref":return yield*FromRef(an,nn,en);case"RegExp":return yield*FromRegExp(an,nn,en);case"String":return yield*FromString(an,nn,en);case"Symbol":return yield*FromSymbol(an,nn,en);case"TemplateLiteral":return yield*FromTemplateLiteral(an,nn,en);case"This":return yield*FromThis(an,nn,en);case"Tuple":return yield*FromTuple(an,nn,en);case"Undefined":return yield*FromUndefined(an,nn,en);case"Union":return yield*FromUnion(an,nn,en);case"Uint8Array":return yield*FromUint8Array(an,nn,en);case"Unknown":return yield*FromUnknown(an,nn,en);case"Void":return yield*FromVoid(an,nn,en);default:if(!on.TypeRegistry.Has(an[cn.Kind]))throw new TypeCompilerUnknownTypeError(st);return yield*FromKind(an,nn,en)}}const Wt={language:"javascript",functions:new Map,variables:new Map,instances:new Map};function CreateExpression(st,Wt,Ot,en=true){return`(${[...Visit(st,Wt,Ot,en)].join(" && ")})`}function CreateFunctionName(st){return`check_${hn.Encode(st)}`}function CreateVariable(st){const Ot=`local_${Wt.variables.size}`;Wt.variables.set(Ot,`const ${Ot} = ${st}`);return Ot}function CreateFunction(st,Wt,Ot,en,tn=true){const[nn,an]=["\n",st=>"".padStart(st," ")];const In=CreateParameter("value","any");const rn=CreateReturns("boolean");const cn=[...Visit(Wt,Ot,en,tn)].map((st=>`${an(4)}${st}`)).join(` &&${nn}`);return`function ${st}(${In})${rn} {${nn}${an(2)}return (${nn}${cn}${nn}${an(2)})\n}`}function CreateParameter(st,Ot){const en=Wt.language==="typescript"?`: ${Ot}`:"";return`${st}${en}`}function CreateReturns(st){return Wt.language==="typescript"?`: ${st}`:""}function Build(st,Ot,en){const tn=CreateFunction("check",st,Ot,"value");const nn=CreateParameter("value","any");const an=CreateReturns("boolean");const In=[...Wt.functions.values()];const rn=[...Wt.variables.values()];const cn=(0,pn.IsString)(st.$id)?`return function check(${nn})${an} {\n return ${CreateFunctionName(st.$id)}(value)\n}`:`return ${tn}`;return[...rn,...In,cn].join("\n")}function Code(...st){const Ot={language:"javascript"};const[en,tn,nn]=st.length===2&&(0,pn.IsArray)(st[1])?[st[0],st[1],Ot]:st.length===2&&!(0,pn.IsArray)(st[1])?[st[0],[],st[1]]:st.length===3?[st[0],st[1],st[2]]:st.length===1?[st[0],[],Ot]:[null,[],Ot];Wt.language=nn.language;Wt.variables.clear();Wt.functions.clear();Wt.instances.clear();if(!(0,bn.IsSchema)(en))throw new TypeCompilerTypeGuardError(en);for(const st of tn)if(!(0,bn.IsSchema)(st))throw new TypeCompilerTypeGuardError(st);return Build(en,tn,nn)}st.Code=Code;function Compile(st,Ot=[]){const en=Code(st,Ot,{language:"javascript"});const tn=globalThis.Function("kind","format","hash",en);const nn=new Map(Wt.instances);function typeRegistryFunction(st,Wt,Ot){if(!on.TypeRegistry.Has(st)||!nn.has(Wt))return false;const en=on.TypeRegistry.Get(st);const tn=nn.get(Wt);return en(tn,Ot)}function formatRegistryFunction(st,Wt){if(!on.FormatRegistry.Has(st))return false;const Ot=on.FormatRegistry.Get(st);return Ot(Wt)}function hashFunction(st){return(0,rn.Hash)(st)}const an=tn(typeRegistryFunction,formatRegistryFunction,hashFunction);return new TypeCheck(st,Ot,an,en)}st.Compile=Compile})(Wn||(Wt.TypeCompiler=Wn={}))},63706:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});Wt.ValueErrorIterator=Wt.ValueErrorType=void 0;var nn=Ot(4672);Object.defineProperty(Wt,"ValueErrorType",{enumerable:true,get:function(){return nn.ValueErrorType}});Object.defineProperty(Wt,"ValueErrorIterator",{enumerable:true,get:function(){return nn.ValueErrorIterator}});tn(Ot(45225),Wt)},19537:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Errors=Wt.ValueErrorIterator=Wt.ValueErrorsUnknownTypeError=Wt.ValueErrorType=void 0;const en=Ot(45918);const tn=Ot(30658);const nn=Ot(97759);const an=Ot(1409);const In=Ot(37746);const rn=Ot(94526);const cn=Ot(75743);const on=Ot(73849);const sn=Ot(48121);const dn=Ot(22346);const un=Ot(19522);var pn;(function(st){st[st["ArrayContains"]=0]="ArrayContains";st[st["ArrayMaxContains"]=1]="ArrayMaxContains";st[st["ArrayMaxItems"]=2]="ArrayMaxItems";st[st["ArrayMinContains"]=3]="ArrayMinContains";st[st["ArrayMinItems"]=4]="ArrayMinItems";st[st["ArrayUniqueItems"]=5]="ArrayUniqueItems";st[st["Array"]=6]="Array";st[st["AsyncIterator"]=7]="AsyncIterator";st[st["BigIntExclusiveMaximum"]=8]="BigIntExclusiveMaximum";st[st["BigIntExclusiveMinimum"]=9]="BigIntExclusiveMinimum";st[st["BigIntMaximum"]=10]="BigIntMaximum";st[st["BigIntMinimum"]=11]="BigIntMinimum";st[st["BigIntMultipleOf"]=12]="BigIntMultipleOf";st[st["BigInt"]=13]="BigInt";st[st["Boolean"]=14]="Boolean";st[st["DateExclusiveMaximumTimestamp"]=15]="DateExclusiveMaximumTimestamp";st[st["DateExclusiveMinimumTimestamp"]=16]="DateExclusiveMinimumTimestamp";st[st["DateMaximumTimestamp"]=17]="DateMaximumTimestamp";st[st["DateMinimumTimestamp"]=18]="DateMinimumTimestamp";st[st["DateMultipleOfTimestamp"]=19]="DateMultipleOfTimestamp";st[st["Date"]=20]="Date";st[st["Function"]=21]="Function";st[st["IntegerExclusiveMaximum"]=22]="IntegerExclusiveMaximum";st[st["IntegerExclusiveMinimum"]=23]="IntegerExclusiveMinimum";st[st["IntegerMaximum"]=24]="IntegerMaximum";st[st["IntegerMinimum"]=25]="IntegerMinimum";st[st["IntegerMultipleOf"]=26]="IntegerMultipleOf";st[st["Integer"]=27]="Integer";st[st["IntersectUnevaluatedProperties"]=28]="IntersectUnevaluatedProperties";st[st["Intersect"]=29]="Intersect";st[st["Iterator"]=30]="Iterator";st[st["Kind"]=31]="Kind";st[st["Literal"]=32]="Literal";st[st["Never"]=33]="Never";st[st["Not"]=34]="Not";st[st["Null"]=35]="Null";st[st["NumberExclusiveMaximum"]=36]="NumberExclusiveMaximum";st[st["NumberExclusiveMinimum"]=37]="NumberExclusiveMinimum";st[st["NumberMaximum"]=38]="NumberMaximum";st[st["NumberMinimum"]=39]="NumberMinimum";st[st["NumberMultipleOf"]=40]="NumberMultipleOf";st[st["Number"]=41]="Number";st[st["ObjectAdditionalProperties"]=42]="ObjectAdditionalProperties";st[st["ObjectMaxProperties"]=43]="ObjectMaxProperties";st[st["ObjectMinProperties"]=44]="ObjectMinProperties";st[st["ObjectRequiredProperty"]=45]="ObjectRequiredProperty";st[st["Object"]=46]="Object";st[st["Promise"]=47]="Promise";st[st["RegExp"]=48]="RegExp";st[st["StringFormatUnknown"]=49]="StringFormatUnknown";st[st["StringFormat"]=50]="StringFormat";st[st["StringMaxLength"]=51]="StringMaxLength";st[st["StringMinLength"]=52]="StringMinLength";st[st["StringPattern"]=53]="StringPattern";st[st["String"]=54]="String";st[st["Symbol"]=55]="Symbol";st[st["TupleLength"]=56]="TupleLength";st[st["Tuple"]=57]="Tuple";st[st["Uint8ArrayMaxByteLength"]=58]="Uint8ArrayMaxByteLength";st[st["Uint8ArrayMinByteLength"]=59]="Uint8ArrayMinByteLength";st[st["Uint8Array"]=60]="Uint8Array";st[st["Undefined"]=61]="Undefined";st[st["Union"]=62]="Union";st[st["Void"]=63]="Void"})(pn||(Wt.ValueErrorType=pn={}));class ValueErrorsUnknownTypeError extends rn.TypeBoxError{constructor(st){super("Unknown type");this.schema=st}}Wt.ValueErrorsUnknownTypeError=ValueErrorsUnknownTypeError;function EscapeKey(st){return st.replace(/~/g,"~0").replace(/\//g,"~1")}function IsDefined(st){return st!==undefined}class ValueErrorIterator{constructor(st){this.iterator=st}[Symbol.iterator](){return this.iterator}First(){const st=this.iterator.next();return st.done?undefined:st.value}}Wt.ValueErrorIterator=ValueErrorIterator;function Create(st,Wt,Ot,en){return{type:st,schema:Wt,path:Ot,value:en,message:(0,In.GetErrorFunction)()({errorType:st,path:Ot,schema:Wt,value:en})}}function*FromAny(st,Wt,Ot,en){}function*FromArray(st,Wt,Ot,en){if(!(0,un.IsArray)(en)){return yield Create(pn.Array,st,Ot,en)}if(IsDefined(st.minItems)&&!(en.length>=st.minItems)){yield Create(pn.ArrayMinItems,st,Ot,en)}if(IsDefined(st.maxItems)&&!(en.length<=st.maxItems)){yield Create(pn.ArrayMaxItems,st,Ot,en)}for(let tn=0;tnVisit(tn,Wt,`${Ot}${nn}`,en).next().done===true?st+1:st),0);if(nn===0){yield Create(pn.ArrayContains,st,Ot,en)}if((0,un.IsNumber)(st.minContains)&&nnst.maxContains){yield Create(pn.ArrayMaxContains,st,Ot,en)}}function*FromAsyncIterator(st,Wt,Ot,en){if(!(0,un.IsAsyncIterator)(en))yield Create(pn.AsyncIterator,st,Ot,en)}function*FromBigInt(st,Wt,Ot,en){if(!(0,un.IsBigInt)(en))return yield Create(pn.BigInt,st,Ot,en);if(IsDefined(st.exclusiveMaximum)&&!(enst.exclusiveMinimum)){yield Create(pn.BigIntExclusiveMinimum,st,Ot,en)}if(IsDefined(st.maximum)&&!(en<=st.maximum)){yield Create(pn.BigIntMaximum,st,Ot,en)}if(IsDefined(st.minimum)&&!(en>=st.minimum)){yield Create(pn.BigIntMinimum,st,Ot,en)}if(IsDefined(st.multipleOf)&&!(en%st.multipleOf===BigInt(0))){yield Create(pn.BigIntMultipleOf,st,Ot,en)}}function*FromBoolean(st,Wt,Ot,en){if(!(0,un.IsBoolean)(en))yield Create(pn.Boolean,st,Ot,en)}function*FromConstructor(st,Wt,Ot,en){yield*Visit(st.returns,Wt,Ot,en.prototype)}function*FromDate(st,Wt,Ot,en){if(!(0,un.IsDate)(en))return yield Create(pn.Date,st,Ot,en);if(IsDefined(st.exclusiveMaximumTimestamp)&&!(en.getTime()st.exclusiveMinimumTimestamp)){yield Create(pn.DateExclusiveMinimumTimestamp,st,Ot,en)}if(IsDefined(st.maximumTimestamp)&&!(en.getTime()<=st.maximumTimestamp)){yield Create(pn.DateMaximumTimestamp,st,Ot,en)}if(IsDefined(st.minimumTimestamp)&&!(en.getTime()>=st.minimumTimestamp)){yield Create(pn.DateMinimumTimestamp,st,Ot,en)}if(IsDefined(st.multipleOfTimestamp)&&!(en.getTime()%st.multipleOfTimestamp===0)){yield Create(pn.DateMultipleOfTimestamp,st,Ot,en)}}function*FromFunction(st,Wt,Ot,en){if(!(0,un.IsFunction)(en))yield Create(pn.Function,st,Ot,en)}function*FromInteger(st,Wt,Ot,en){if(!(0,un.IsInteger)(en))return yield Create(pn.Integer,st,Ot,en);if(IsDefined(st.exclusiveMaximum)&&!(enst.exclusiveMinimum)){yield Create(pn.IntegerExclusiveMinimum,st,Ot,en)}if(IsDefined(st.maximum)&&!(en<=st.maximum)){yield Create(pn.IntegerMaximum,st,Ot,en)}if(IsDefined(st.minimum)&&!(en>=st.minimum)){yield Create(pn.IntegerMinimum,st,Ot,en)}if(IsDefined(st.multipleOf)&&!(en%st.multipleOf===0)){yield Create(pn.IntegerMultipleOf,st,Ot,en)}}function*FromIntersect(st,Wt,Ot,en){for(const tn of st.allOf){const nn=Visit(tn,Wt,Ot,en).next();if(!nn.done){yield Create(pn.Intersect,st,Ot,en);yield nn.value}}if(st.unevaluatedProperties===false){const Wt=new RegExp((0,tn.KeyOfPattern)(st));for(const tn of Object.getOwnPropertyNames(en)){if(!Wt.test(tn)){yield Create(pn.IntersectUnevaluatedProperties,st,`${Ot}/${tn}`,en)}}}if(typeof st.unevaluatedProperties==="object"){const nn=new RegExp((0,tn.KeyOfPattern)(st));for(const tn of Object.getOwnPropertyNames(en)){if(!nn.test(tn)){const nn=Visit(st.unevaluatedProperties,Wt,`${Ot}/${tn}`,en[tn]).next();if(!nn.done)yield nn.value}}}}function*FromIterator(st,Wt,Ot,en){if(!(0,un.IsIterator)(en))yield Create(pn.Iterator,st,Ot,en)}function*FromLiteral(st,Wt,Ot,en){if(!(en===st.const))yield Create(pn.Literal,st,Ot,en)}function*FromNever(st,Wt,Ot,en){yield Create(pn.Never,st,Ot,en)}function*FromNot(st,Wt,Ot,en){if(Visit(st.not,Wt,Ot,en).next().done===true)yield Create(pn.Not,st,Ot,en)}function*FromNull(st,Wt,Ot,en){if(!(0,un.IsNull)(en))yield Create(pn.Null,st,Ot,en)}function*FromNumber(st,Wt,Ot,tn){if(!en.TypeSystemPolicy.IsNumberLike(tn))return yield Create(pn.Number,st,Ot,tn);if(IsDefined(st.exclusiveMaximum)&&!(tnst.exclusiveMinimum)){yield Create(pn.NumberExclusiveMinimum,st,Ot,tn)}if(IsDefined(st.maximum)&&!(tn<=st.maximum)){yield Create(pn.NumberMaximum,st,Ot,tn)}if(IsDefined(st.minimum)&&!(tn>=st.minimum)){yield Create(pn.NumberMinimum,st,Ot,tn)}if(IsDefined(st.multipleOf)&&!(tn%st.multipleOf===0)){yield Create(pn.NumberMultipleOf,st,Ot,tn)}}function*FromObject(st,Wt,Ot,tn){if(!en.TypeSystemPolicy.IsObjectLike(tn))return yield Create(pn.Object,st,Ot,tn);if(IsDefined(st.minProperties)&&!(Object.getOwnPropertyNames(tn).length>=st.minProperties)){yield Create(pn.ObjectMinProperties,st,Ot,tn)}if(IsDefined(st.maxProperties)&&!(Object.getOwnPropertyNames(tn).length<=st.maxProperties)){yield Create(pn.ObjectMaxProperties,st,Ot,tn)}const nn=Array.isArray(st.required)?st.required:[];const In=Object.getOwnPropertyNames(st.properties);const rn=Object.getOwnPropertyNames(tn);for(const Wt of nn){if(rn.includes(Wt))continue;yield Create(pn.ObjectRequiredProperty,st.properties[Wt],`${Ot}/${EscapeKey(Wt)}`,undefined)}if(st.additionalProperties===false){for(const Wt of rn){if(!In.includes(Wt)){yield Create(pn.ObjectAdditionalProperties,st,`${Ot}/${EscapeKey(Wt)}`,tn[Wt])}}}if(typeof st.additionalProperties==="object"){for(const en of rn){if(In.includes(en))continue;yield*Visit(st.additionalProperties,Wt,`${Ot}/${EscapeKey(en)}`,tn[en])}}for(const nn of In){const In=st.properties[nn];if(st.required&&st.required.includes(nn)){yield*Visit(In,Wt,`${Ot}/${EscapeKey(nn)}`,tn[nn]);if((0,an.ExtendsUndefinedCheck)(st)&&!(nn in tn)){yield Create(pn.ObjectRequiredProperty,In,`${Ot}/${EscapeKey(nn)}`,undefined)}}else{if(en.TypeSystemPolicy.IsExactOptionalProperty(tn,nn)){yield*Visit(In,Wt,`${Ot}/${EscapeKey(nn)}`,tn[nn])}}}}function*FromPromise(st,Wt,Ot,en){if(!(0,un.IsPromise)(en))yield Create(pn.Promise,st,Ot,en)}function*FromRecord(st,Wt,Ot,tn){if(!en.TypeSystemPolicy.IsRecordLike(tn))return yield Create(pn.Object,st,Ot,tn);if(IsDefined(st.minProperties)&&!(Object.getOwnPropertyNames(tn).length>=st.minProperties)){yield Create(pn.ObjectMinProperties,st,Ot,tn)}if(IsDefined(st.maxProperties)&&!(Object.getOwnPropertyNames(tn).length<=st.maxProperties)){yield Create(pn.ObjectMaxProperties,st,Ot,tn)}const[nn,an]=Object.entries(st.patternProperties)[0];const In=new RegExp(nn);for(const[st,en]of Object.entries(tn)){if(In.test(st))yield*Visit(an,Wt,`${Ot}/${EscapeKey(st)}`,en)}if(typeof st.additionalProperties==="object"){for(const[en,nn]of Object.entries(tn)){if(!In.test(en))yield*Visit(st.additionalProperties,Wt,`${Ot}/${EscapeKey(en)}`,nn)}}if(st.additionalProperties===false){for(const[Wt,en]of Object.entries(tn)){if(In.test(Wt))continue;return yield Create(pn.ObjectAdditionalProperties,st,`${Ot}/${EscapeKey(Wt)}`,en)}}}function*FromRef(st,Wt,Ot,en){yield*Visit((0,cn.Deref)(st,Wt),Wt,Ot,en)}function*FromRegExp(st,Wt,Ot,en){if(!(0,un.IsString)(en))return yield Create(pn.String,st,Ot,en);if(IsDefined(st.minLength)&&!(en.length>=st.minLength)){yield Create(pn.StringMinLength,st,Ot,en)}if(IsDefined(st.maxLength)&&!(en.length<=st.maxLength)){yield Create(pn.StringMaxLength,st,Ot,en)}const tn=new RegExp(st.source,st.flags);if(!tn.test(en)){return yield Create(pn.RegExp,st,Ot,en)}}function*FromString(st,Wt,Ot,en){if(!(0,un.IsString)(en))return yield Create(pn.String,st,Ot,en);if(IsDefined(st.minLength)&&!(en.length>=st.minLength)){yield Create(pn.StringMinLength,st,Ot,en)}if(IsDefined(st.maxLength)&&!(en.length<=st.maxLength)){yield Create(pn.StringMaxLength,st,Ot,en)}if((0,un.IsString)(st.pattern)){const Wt=new RegExp(st.pattern);if(!Wt.test(en)){yield Create(pn.StringPattern,st,Ot,en)}}if((0,un.IsString)(st.format)){if(!nn.FormatRegistry.Has(st.format)){yield Create(pn.StringFormatUnknown,st,Ot,en)}else{const Wt=nn.FormatRegistry.Get(st.format);if(!Wt(en)){yield Create(pn.StringFormat,st,Ot,en)}}}}function*FromSymbol(st,Wt,Ot,en){if(!(0,un.IsSymbol)(en))yield Create(pn.Symbol,st,Ot,en)}function*FromTemplateLiteral(st,Wt,Ot,en){if(!(0,un.IsString)(en))return yield Create(pn.String,st,Ot,en);const tn=new RegExp(st.pattern);if(!tn.test(en)){yield Create(pn.StringPattern,st,Ot,en)}}function*FromThis(st,Wt,Ot,en){yield*Visit((0,cn.Deref)(st,Wt),Wt,Ot,en)}function*FromTuple(st,Wt,Ot,en){if(!(0,un.IsArray)(en))return yield Create(pn.Tuple,st,Ot,en);if(st.items===undefined&&!(en.length===0)){return yield Create(pn.TupleLength,st,Ot,en)}if(!(en.length===st.maxItems)){return yield Create(pn.TupleLength,st,Ot,en)}if(!st.items){return}for(let tn=0;tn0){yield Create(pn.Union,st,Ot,en)}}function*FromUint8Array(st,Wt,Ot,en){if(!(0,un.IsUint8Array)(en))return yield Create(pn.Uint8Array,st,Ot,en);if(IsDefined(st.maxByteLength)&&!(en.length<=st.maxByteLength)){yield Create(pn.Uint8ArrayMaxByteLength,st,Ot,en)}if(IsDefined(st.minByteLength)&&!(en.length>=st.minByteLength)){yield Create(pn.Uint8ArrayMinByteLength,st,Ot,en)}}function*FromUnknown(st,Wt,Ot,en){}function*FromVoid(st,Wt,Ot,tn){if(!en.TypeSystemPolicy.IsVoidLike(tn))yield Create(pn.Void,st,Ot,tn)}function*FromKind(st,Wt,Ot,en){const tn=nn.TypeRegistry.Get(st[sn.Kind]);if(!tn(st,en))yield Create(pn.Kind,st,Ot,en)}function*Visit(st,Wt,Ot,en){const tn=IsDefined(st.$id)?[...Wt,st]:Wt;const an=st;switch(an[sn.Kind]){case"Any":return yield*FromAny(an,tn,Ot,en);case"Array":return yield*FromArray(an,tn,Ot,en);case"AsyncIterator":return yield*FromAsyncIterator(an,tn,Ot,en);case"BigInt":return yield*FromBigInt(an,tn,Ot,en);case"Boolean":return yield*FromBoolean(an,tn,Ot,en);case"Constructor":return yield*FromConstructor(an,tn,Ot,en);case"Date":return yield*FromDate(an,tn,Ot,en);case"Function":return yield*FromFunction(an,tn,Ot,en);case"Integer":return yield*FromInteger(an,tn,Ot,en);case"Intersect":return yield*FromIntersect(an,tn,Ot,en);case"Iterator":return yield*FromIterator(an,tn,Ot,en);case"Literal":return yield*FromLiteral(an,tn,Ot,en);case"Never":return yield*FromNever(an,tn,Ot,en);case"Not":return yield*FromNot(an,tn,Ot,en);case"Null":return yield*FromNull(an,tn,Ot,en);case"Number":return yield*FromNumber(an,tn,Ot,en);case"Object":return yield*FromObject(an,tn,Ot,en);case"Promise":return yield*FromPromise(an,tn,Ot,en);case"Record":return yield*FromRecord(an,tn,Ot,en);case"Ref":return yield*FromRef(an,tn,Ot,en);case"RegExp":return yield*FromRegExp(an,tn,Ot,en);case"String":return yield*FromString(an,tn,Ot,en);case"Symbol":return yield*FromSymbol(an,tn,Ot,en);case"TemplateLiteral":return yield*FromTemplateLiteral(an,tn,Ot,en);case"This":return yield*FromThis(an,tn,Ot,en);case"Tuple":return yield*FromTuple(an,tn,Ot,en);case"Undefined":return yield*FromUndefined(an,tn,Ot,en);case"Union":return yield*FromUnion(an,tn,Ot,en);case"Uint8Array":return yield*FromUint8Array(an,tn,Ot,en);case"Unknown":return yield*FromUnknown(an,tn,Ot,en);case"Void":return yield*FromVoid(an,tn,Ot,en);default:if(!nn.TypeRegistry.Has(an[sn.Kind]))throw new ValueErrorsUnknownTypeError(st);return yield*FromKind(an,tn,Ot,en)}}function Errors(...st){const Wt=st.length===3?Visit(st[0],st[1],"",st[2]):Visit(st[0],[],"",st[1]);return new ValueErrorIterator(Wt)}Wt.Errors=Errors},37746:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.GetErrorFunction=Wt.SetErrorFunction=Wt.DefaultErrorFunction=void 0;const en=Ot(48121);const tn=Ot(19537);function DefaultErrorFunction(st){switch(st.errorType){case tn.ValueErrorType.ArrayContains:return"Expected array to contain at least one matching value";case tn.ValueErrorType.ArrayMaxContains:return`Expected array to contain no more than ${st.schema.maxContains} matching values`;case tn.ValueErrorType.ArrayMinContains:return`Expected array to contain at least ${st.schema.minContains} matching values`;case tn.ValueErrorType.ArrayMaxItems:return`Expected array length to be less or equal to ${st.schema.maxItems}`;case tn.ValueErrorType.ArrayMinItems:return`Expected array length to be greater or equal to ${st.schema.minItems}`;case tn.ValueErrorType.ArrayUniqueItems:return"Expected array elements to be unique";case tn.ValueErrorType.Array:return"Expected array";case tn.ValueErrorType.AsyncIterator:return"Expected AsyncIterator";case tn.ValueErrorType.BigIntExclusiveMaximum:return`Expected bigint to be less than ${st.schema.exclusiveMaximum}`;case tn.ValueErrorType.BigIntExclusiveMinimum:return`Expected bigint to be greater than ${st.schema.exclusiveMinimum}`;case tn.ValueErrorType.BigIntMaximum:return`Expected bigint to be less or equal to ${st.schema.maximum}`;case tn.ValueErrorType.BigIntMinimum:return`Expected bigint to be greater or equal to ${st.schema.minimum}`;case tn.ValueErrorType.BigIntMultipleOf:return`Expected bigint to be a multiple of ${st.schema.multipleOf}`;case tn.ValueErrorType.BigInt:return"Expected bigint";case tn.ValueErrorType.Boolean:return"Expected boolean";case tn.ValueErrorType.DateExclusiveMinimumTimestamp:return`Expected Date timestamp to be greater than ${st.schema.exclusiveMinimumTimestamp}`;case tn.ValueErrorType.DateExclusiveMaximumTimestamp:return`Expected Date timestamp to be less than ${st.schema.exclusiveMaximumTimestamp}`;case tn.ValueErrorType.DateMinimumTimestamp:return`Expected Date timestamp to be greater or equal to ${st.schema.minimumTimestamp}`;case tn.ValueErrorType.DateMaximumTimestamp:return`Expected Date timestamp to be less or equal to ${st.schema.maximumTimestamp}`;case tn.ValueErrorType.DateMultipleOfTimestamp:return`Expected Date timestamp to be a multiple of ${st.schema.multipleOfTimestamp}`;case tn.ValueErrorType.Date:return"Expected Date";case tn.ValueErrorType.Function:return"Expected function";case tn.ValueErrorType.IntegerExclusiveMaximum:return`Expected integer to be less than ${st.schema.exclusiveMaximum}`;case tn.ValueErrorType.IntegerExclusiveMinimum:return`Expected integer to be greater than ${st.schema.exclusiveMinimum}`;case tn.ValueErrorType.IntegerMaximum:return`Expected integer to be less or equal to ${st.schema.maximum}`;case tn.ValueErrorType.IntegerMinimum:return`Expected integer to be greater or equal to ${st.schema.minimum}`;case tn.ValueErrorType.IntegerMultipleOf:return`Expected integer to be a multiple of ${st.schema.multipleOf}`;case tn.ValueErrorType.Integer:return"Expected integer";case tn.ValueErrorType.IntersectUnevaluatedProperties:return"Unexpected property";case tn.ValueErrorType.Intersect:return"Expected all values to match";case tn.ValueErrorType.Iterator:return"Expected Iterator";case tn.ValueErrorType.Literal:return`Expected ${typeof st.schema.const==="string"?`'${st.schema.const}'`:st.schema.const}`;case tn.ValueErrorType.Never:return"Never";case tn.ValueErrorType.Not:return"Value should not match";case tn.ValueErrorType.Null:return"Expected null";case tn.ValueErrorType.NumberExclusiveMaximum:return`Expected number to be less than ${st.schema.exclusiveMaximum}`;case tn.ValueErrorType.NumberExclusiveMinimum:return`Expected number to be greater than ${st.schema.exclusiveMinimum}`;case tn.ValueErrorType.NumberMaximum:return`Expected number to be less or equal to ${st.schema.maximum}`;case tn.ValueErrorType.NumberMinimum:return`Expected number to be greater or equal to ${st.schema.minimum}`;case tn.ValueErrorType.NumberMultipleOf:return`Expected number to be a multiple of ${st.schema.multipleOf}`;case tn.ValueErrorType.Number:return"Expected number";case tn.ValueErrorType.Object:return"Expected object";case tn.ValueErrorType.ObjectAdditionalProperties:return"Unexpected property";case tn.ValueErrorType.ObjectMaxProperties:return`Expected object to have no more than ${st.schema.maxProperties} properties`;case tn.ValueErrorType.ObjectMinProperties:return`Expected object to have at least ${st.schema.minProperties} properties`;case tn.ValueErrorType.ObjectRequiredProperty:return"Required property";case tn.ValueErrorType.Promise:return"Expected Promise";case tn.ValueErrorType.RegExp:return"Expected string to match regular expression";case tn.ValueErrorType.StringFormatUnknown:return`Unknown format '${st.schema.format}'`;case tn.ValueErrorType.StringFormat:return`Expected string to match '${st.schema.format}' format`;case tn.ValueErrorType.StringMaxLength:return`Expected string length less or equal to ${st.schema.maxLength}`;case tn.ValueErrorType.StringMinLength:return`Expected string length greater or equal to ${st.schema.minLength}`;case tn.ValueErrorType.StringPattern:return`Expected string to match '${st.schema.pattern}'`;case tn.ValueErrorType.String:return"Expected string";case tn.ValueErrorType.Symbol:return"Expected symbol";case tn.ValueErrorType.TupleLength:return`Expected tuple to have ${st.schema.maxItems||0} elements`;case tn.ValueErrorType.Tuple:return"Expected tuple";case tn.ValueErrorType.Uint8ArrayMaxByteLength:return`Expected byte length less or equal to ${st.schema.maxByteLength}`;case tn.ValueErrorType.Uint8ArrayMinByteLength:return`Expected byte length greater or equal to ${st.schema.minByteLength}`;case tn.ValueErrorType.Uint8Array:return"Expected Uint8Array";case tn.ValueErrorType.Undefined:return"Expected undefined";case tn.ValueErrorType.Union:return"Expected union value";case tn.ValueErrorType.Void:return"Expected void";case tn.ValueErrorType.Kind:return`Expected kind '${st.schema[en.Kind]}'`;default:return"Unknown error type"}}Wt.DefaultErrorFunction=DefaultErrorFunction;let nn=DefaultErrorFunction;function SetErrorFunction(st){nn=st}Wt.SetErrorFunction=SetErrorFunction;function GetErrorFunction(){return nn}Wt.GetErrorFunction=GetErrorFunction},4672:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(19537),Wt);tn(Ot(37746),Wt)},92018:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(57985),Wt);tn(Ot(94526),Wt);tn(Ot(75289),Wt);tn(Ot(51861),Wt);tn(Ot(50059),Wt);tn(Ot(97759),Wt);tn(Ot(89925),Wt);tn(Ot(48121),Wt);tn(Ot(56234),Wt);tn(Ot(59809),Wt);tn(Ot(32733),Wt);tn(Ot(52779),Wt);tn(Ot(37383),Wt);tn(Ot(89168),Wt);tn(Ot(87731),Wt);tn(Ot(29075),Wt);tn(Ot(86232),Wt);tn(Ot(76835),Wt);tn(Ot(89816),Wt);tn(Ot(3592),Wt);tn(Ot(63617),Wt);tn(Ot(10698),Wt);tn(Ot(40629),Wt);tn(Ot(14301),Wt);tn(Ot(72996),Wt);tn(Ot(89777),Wt);tn(Ot(33458),Wt);tn(Ot(5578),Wt);tn(Ot(32945),Wt);tn(Ot(30666),Wt);tn(Ot(71095),Wt);tn(Ot(30658),Wt);tn(Ot(24727),Wt);tn(Ot(76675),Wt);tn(Ot(22346),Wt);tn(Ot(9741),Wt);tn(Ot(4513),Wt);tn(Ot(46621),Wt);tn(Ot(13871),Wt);tn(Ot(56497),Wt);tn(Ot(31392),Wt);tn(Ot(80264),Wt);tn(Ot(96405),Wt);tn(Ot(53861),Wt);tn(Ot(59573),Wt);tn(Ot(4102),Wt);tn(Ot(51257),Wt);tn(Ot(59961),Wt);tn(Ot(81816),Wt);tn(Ot(29105),Wt);tn(Ot(34865),Wt);tn(Ot(83397),Wt);tn(Ot(47686),Wt);tn(Ot(89861),Wt);tn(Ot(94987),Wt);tn(Ot(2222),Wt);tn(Ot(94313),Wt);tn(Ot(69429),Wt);tn(Ot(69656),Wt);tn(Ot(90984),Wt);tn(Ot(60304),Wt);tn(Ot(82894),Wt);tn(Ot(91305),Wt);tn(Ot(37272),Wt);tn(Ot(41743),Wt);tn(Ot(41178),Wt);tn(Ot(79750),Wt);tn(Ot(20602),Wt);tn(Ot(55764),Wt)},45918:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(6226),Wt);tn(Ot(60313),Wt)},6226:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.TypeSystemPolicy=void 0;const en=Ot(19522);var tn;(function(st){st.ExactOptionalPropertyTypes=false;st.AllowArrayObject=false;st.AllowNaN=false;st.AllowNullVoid=false;function IsExactOptionalProperty(Wt,Ot){return st.ExactOptionalPropertyTypes?Ot in Wt:Wt[Ot]!==undefined}st.IsExactOptionalProperty=IsExactOptionalProperty;function IsObjectLike(Wt){const Ot=(0,en.IsObject)(Wt);return st.AllowArrayObject?Ot:Ot&&!(0,en.IsArray)(Wt)}st.IsObjectLike=IsObjectLike;function IsRecordLike(st){return IsObjectLike(st)&&!(st instanceof Date)&&!(st instanceof Uint8Array)}st.IsRecordLike=IsRecordLike;function IsNumberLike(Wt){const Ot=(0,en.IsNumber)(Wt);return st.AllowNaN?Ot:Ot&&Number.isFinite(Wt)}st.IsNumberLike=IsNumberLike;function IsVoidLike(Wt){const Ot=(0,en.IsUndefined)(Wt);return st.AllowNullVoid?Ot||Wt===null:Ot}st.IsVoidLike=IsVoidLike})(tn||(Wt.TypeSystemPolicy=tn={}))},60313:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.TypeSystem=Wt.TypeSystemDuplicateFormat=Wt.TypeSystemDuplicateTypeKind=void 0;const en=Ot(97759);const tn=Ot(79750);const nn=Ot(48121);const an=Ot(94526);class TypeSystemDuplicateTypeKind extends an.TypeBoxError{constructor(st){super(`Duplicate type kind '${st}' detected`)}}Wt.TypeSystemDuplicateTypeKind=TypeSystemDuplicateTypeKind;class TypeSystemDuplicateFormat extends an.TypeBoxError{constructor(st){super(`Duplicate string format '${st}' detected`)}}Wt.TypeSystemDuplicateFormat=TypeSystemDuplicateFormat;var In;(function(st){function Type(st,Wt){if(en.TypeRegistry.Has(st))throw new TypeSystemDuplicateTypeKind(st);en.TypeRegistry.Set(st,Wt);return(Wt={})=>(0,tn.Unsafe)({...Wt,[nn.Kind]:st})}st.Type=Type;function Format(st,Wt){if(en.FormatRegistry.Has(st))throw new TypeSystemDuplicateFormat(st);en.FormatRegistry.Set(st,Wt);return st}st.Format=Format})(In||(Wt.TypeSystem=In={}))},71664:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Any=void 0;const en=Ot(48121);function Any(st={}){return{...st,[en.Kind]:"Any"}}Wt.Any=Any},56234:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(71664),Wt)},8480:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Array=void 0;const en=Ot(45157);const tn=Ot(48121);function Array(st,Wt={}){return{...Wt,[tn.Kind]:"Array",type:"array",items:(0,en.CloneType)(st)}}Wt.Array=Array},59809:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(8480),Wt)},6028:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.AsyncIterator=void 0;const en=Ot(48121);const tn=Ot(45157);function AsyncIterator(st,Wt={}){return{...Wt,[en.Kind]:"AsyncIterator",type:"AsyncIterator",items:(0,tn.CloneType)(st)}}Wt.AsyncIterator=AsyncIterator},32733:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(6028),Wt)},95040:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Awaited=void 0;const en=Ot(32945);const tn=Ot(41743);const nn=Ot(45157);const an=Ot(20109);function FromRest(st){return st.map((st=>AwaitedResolve(st)))}function FromIntersect(st){return(0,en.Intersect)(FromRest(st))}function FromUnion(st){return(0,tn.Union)(FromRest(st))}function FromPromise(st){return AwaitedResolve(st)}function AwaitedResolve(st){return(0,an.IsIntersect)(st)?FromIntersect(st.allOf):(0,an.IsUnion)(st)?FromUnion(st.anyOf):(0,an.IsPromise)(st)?FromPromise(st.item):st}function Awaited(st,Wt={}){return(0,nn.CloneType)(AwaitedResolve(st),Wt)}Wt.Awaited=Awaited},52779:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(95040),Wt)},81776:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.BigInt=void 0;const en=Ot(48121);function BigInt(st={}){return{...st,[en.Kind]:"BigInt",type:"bigint"}}Wt.BigInt=BigInt},37383:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(81776),Wt)},58604:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Boolean=void 0;const en=Ot(48121);function Boolean(st={}){return{...st,[en.Kind]:"Boolean",type:"boolean"}}Wt.Boolean=Boolean},89168:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(58604),Wt)},57985:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(45157),Wt);tn(Ot(8184),Wt)},45157:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.CloneType=Wt.CloneRest=void 0;const en=Ot(8184);function CloneRest(st){return st.map((st=>CloneType(st)))}Wt.CloneRest=CloneRest;function CloneType(st,Wt={}){return{...(0,en.Clone)(st),...Wt}}Wt.CloneType=CloneType},8184:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Clone=void 0;const en=Ot(87280);function ArrayType(st){return st.map((st=>Visit(st)))}function DateType(st){return new Date(st.getTime())}function Uint8ArrayType(st){return new Uint8Array(st)}function RegExpType(st){return new RegExp(st.source,st.flags)}function ObjectType(st){const Wt=Object.getOwnPropertyNames(st).reduce(((Wt,Ot)=>({...Wt,[Ot]:Visit(st[Ot])})),{});const Ot=Object.getOwnPropertySymbols(st).reduce(((Wt,Ot)=>({...Wt,[Ot]:Visit(st[Ot])})),{});return{...Wt,...Ot}}function Visit(st){return en.IsArray(st)?ArrayType(st):en.IsDate(st)?DateType(st):en.IsUint8Array(st)?Uint8ArrayType(st):en.IsRegExp(st)?RegExpType(st):en.IsObject(st)?ObjectType(st):st}function Clone(st){return Visit(st)}Wt.Clone=Clone},94040:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Composite=void 0;const en=Ot(32945);const tn=Ot(89777);const nn=Ot(30658);const an=Ot(13871);const In=Ot(89925);const rn=Ot(20109);function CompositeKeys(st){return(0,In.SetDistinct)(st.reduce(((st,Wt)=>[...st,...(0,nn.KeyOfPropertyKeys)(Wt)]),[]))}function FilterNever(st){return st.filter((st=>!(0,rn.IsNever)(st)))}function CompositeProperty(st,Wt){return FilterNever(st.reduce(((st,Ot)=>[...st,...(0,tn.IndexFromPropertyKeys)(Ot,[Wt])]),[]))}function CompositeProperties(st,Wt){return Wt.reduce(((Wt,Ot)=>({...Wt,[Ot]:(0,en.IntersectEvaluated)(CompositeProperty(st,Ot))})),{})}function Composite(st,Wt={}){const Ot=CompositeKeys(st);const en=CompositeProperties(st,Ot);const tn=(0,an.Object)(en,Wt);return tn}Wt.Composite=Composite},87731:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(94040),Wt)},13352:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Const=void 0;const en=Ot(56234);const tn=Ot(37383);const nn=Ot(89816);const an=Ot(72996);const In=Ot(24727);const rn=Ot(4513);const cn=Ot(13871);const on=Ot(69656);const sn=Ot(82894);const dn=Ot(4102);const un=Ot(37272);const pn=Ot(91305);const bn=Ot(41178);const mn=Ot(57985);const Gn=Ot(87280);function FromArray(st){return st.map((st=>FromValue(st,false)))}function FromProperties(st){return globalThis.Object.getOwnPropertyNames(st).reduce(((Wt,Ot)=>({...Wt,[Ot]:(0,dn.Readonly)(FromValue(st[Ot],false))})),{})}function ConditionalReadonly(st,Wt){return Wt===true?st:(0,dn.Readonly)(st)}function FromValue(st,Wt){return(0,Gn.IsAsyncIterator)(st)?ConditionalReadonly((0,en.Any)(),Wt):(0,Gn.IsIterator)(st)?ConditionalReadonly((0,en.Any)(),Wt):(0,Gn.IsArray)(st)?(0,dn.Readonly)((0,sn.Tuple)(FromArray(st))):(0,Gn.IsUint8Array)(st)?(0,pn.Uint8Array)():(0,Gn.IsDate)(st)?(0,nn.Date)():(0,Gn.IsObject)(st)?ConditionalReadonly((0,cn.Object)(FromProperties(st)),Wt):(0,Gn.IsFunction)(st)?ConditionalReadonly((0,an.Function)([],(0,bn.Unknown)()),Wt):(0,Gn.IsUndefined)(st)?(0,un.Undefined)():(0,Gn.IsNull)(st)?(0,rn.Null)():(0,Gn.IsSymbol)(st)?(0,on.Symbol)():(0,Gn.IsBigInt)(st)?(0,tn.BigInt)():(0,Gn.IsNumber)(st)?(0,In.Literal)(st):(0,Gn.IsBoolean)(st)?(0,In.Literal)(st):(0,Gn.IsString)(st)?(0,In.Literal)(st):(0,cn.Object)({})}function Const(st,Wt={}){return(0,mn.CloneType)(FromValue(st,true),Wt)}Wt.Const=Const},29075:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(13352),Wt)},24096:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.ConstructorParameters=void 0;const en=Ot(82894);const tn=Ot(45157);function ConstructorParameters(st,Wt={}){return(0,en.Tuple)((0,tn.CloneRest)(st.parameters),{...Wt})}Wt.ConstructorParameters=ConstructorParameters},76835:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(24096),Wt)},7868:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Constructor=void 0;const en=Ot(45157);const tn=Ot(48121);function Constructor(st,Wt,Ot){return{...Ot,[tn.Kind]:"Constructor",type:"Constructor",parameters:(0,en.CloneRest)(st),returns:(0,en.CloneType)(Wt)}}Wt.Constructor=Constructor},86232:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(7868),Wt)},49698:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Date=void 0;const en=Ot(48121);function Date(st={}){return{...st,[en.Kind]:"Date",type:"Date"}}Wt.Date=Date},89816:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(49698),Wt)},99648:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Deref=void 0;const en=Ot(45157);const tn=Ot(62202);const nn=Ot(87280);const an=Ot(20109);function FromRest(st,Wt){return st.map((st=>Deref(st,Wt)))}function FromProperties(st,Wt){return globalThis.Object.getOwnPropertyNames(st).reduce(((Ot,en)=>({...Ot,[en]:Deref(st[en],Wt)})),{})}function FromConstructor(st,Wt){st.parameters=FromRest(st.parameters,Wt);st.returns=Deref(st.returns,Wt);return st}function FromFunction(st,Wt){st.parameters=FromRest(st.parameters,Wt);st.returns=Deref(st.returns,Wt);return st}function FromIntersect(st,Wt){st.allOf=FromRest(st.allOf,Wt);return st}function FromUnion(st,Wt){st.anyOf=FromRest(st.anyOf,Wt);return st}function FromTuple(st,Wt){if((0,nn.IsUndefined)(st.items))return st;st.items=FromRest(st.items,Wt);return st}function FromArray(st,Wt){st.items=Deref(st.items,Wt);return st}function FromObject(st,Wt){st.properties=FromProperties(st.properties,Wt);return st}function FromPromise(st,Wt){st.item=Deref(st.item,Wt);return st}function FromAsyncIterator(st,Wt){st.items=Deref(st.items,Wt);return st}function FromIterator(st,Wt){st.items=Deref(st.items,Wt);return st}function FromRef(st,Wt){const Ot=Wt.find((Wt=>Wt.$id===st.$ref));if(Ot===undefined)throw Error(`Unable to dereference schema with $id ${st.$ref}`);const en=(0,tn.Discard)(Ot,["$id"]);return Deref(en,Wt)}function DerefResolve(st,Wt){return(0,an.IsConstructor)(st)?FromConstructor(st,Wt):(0,an.IsFunction)(st)?FromFunction(st,Wt):(0,an.IsIntersect)(st)?FromIntersect(st,Wt):(0,an.IsUnion)(st)?FromUnion(st,Wt):(0,an.IsTuple)(st)?FromTuple(st,Wt):(0,an.IsArray)(st)?FromArray(st,Wt):(0,an.IsObject)(st)?FromObject(st,Wt):(0,an.IsPromise)(st)?FromPromise(st,Wt):(0,an.IsAsyncIterator)(st)?FromAsyncIterator(st,Wt):(0,an.IsIterator)(st)?FromIterator(st,Wt):(0,an.IsRef)(st)?FromRef(st,Wt):st}function Deref(st,Wt){return DerefResolve((0,en.CloneType)(st),(0,en.CloneRest)(Wt))}Wt.Deref=Deref},3592:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(99648),Wt)},43548:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Discard=void 0;function DiscardKey(st,Wt){const{[Wt]:Ot,...en}=st;return en}function Discard(st,Wt){return Wt.reduce(((st,Wt)=>DiscardKey(st,Wt)),st)}Wt.Discard=Discard},62202:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(43548),Wt)},41384:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Enum=void 0;const en=Ot(24727);const tn=Ot(48121);const nn=Ot(41743);const an=Ot(87280);function Enum(st,Wt={}){if((0,an.IsUndefined)(st))throw new Error("Enum undefined or empty");const Ot=globalThis.Object.getOwnPropertyNames(st).filter((st=>isNaN(st))).map((Wt=>st[Wt]));const In=[...new Set(Ot)];const rn=In.map((st=>(0,en.Literal)(st)));return(0,nn.Union)(rn,{...Wt,[tn.Hint]:"Enum"})}Wt.Enum=Enum},63617:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(41384),Wt)},72908:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.TypeBoxError=void 0;class TypeBoxError extends Error{constructor(st){super(st)}}Wt.TypeBoxError=TypeBoxError},94526:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(72908),Wt)},87931:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.ExcludeFromMappedResult=void 0;const en=Ot(76675);const tn=Ot(43356);function FromProperties(st,Wt){return globalThis.Object.getOwnPropertyNames(st).reduce(((Ot,en)=>({...Ot,[en]:(0,tn.Exclude)(st[en],Wt)})),{})}function FromMappedResult(st,Wt){return FromProperties(st.properties,Wt)}function ExcludeFromMappedResult(st,Wt){const Ot=FromMappedResult(st,Wt);return(0,en.MappedResult)(Ot)}Wt.ExcludeFromMappedResult=ExcludeFromMappedResult},5586:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.ExcludeFromTemplateLiteral=void 0;const en=Ot(43356);const tn=Ot(90984);function ExcludeFromTemplateLiteral(st,Wt){return(0,en.Exclude)((0,tn.TemplateLiteralToUnion)(st),Wt)}Wt.ExcludeFromTemplateLiteral=ExcludeFromTemplateLiteral},43356:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Exclude=void 0;const en=Ot(41743);const tn=Ot(22346);const nn=Ot(40629);const an=Ot(45157);const In=Ot(87931);const rn=Ot(5586);const cn=Ot(20109);function ExcludeRest(st,Wt){const Ot=st.filter((st=>(0,nn.ExtendsCheck)(st,Wt)===nn.ExtendsResult.False));return Ot.length===1?Ot[0]:(0,en.Union)(Ot)}function Exclude(st,Wt,Ot={}){if((0,cn.IsTemplateLiteral)(st))return(0,an.CloneType)((0,rn.ExcludeFromTemplateLiteral)(st,Wt),Ot);if((0,cn.IsMappedResult)(st))return(0,an.CloneType)((0,In.ExcludeFromMappedResult)(st,Wt),Ot);return(0,an.CloneType)((0,cn.IsUnion)(st)?ExcludeRest(st.anyOf,Wt):(0,nn.ExtendsCheck)(st,Wt)!==nn.ExtendsResult.False?(0,tn.Never)():st,Ot)}Wt.Exclude=Exclude},10698:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(87931),Wt);tn(Ot(5586),Wt);tn(Ot(43356),Wt)},59405:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.ExtendsCheck=Wt.ExtendsResult=Wt.ExtendsResolverError=void 0;const en=Ot(56234);const tn=Ot(72996);const nn=Ot(46621);const an=Ot(69429);const In=Ot(41178);const rn=Ot(90984);const cn=Ot(50059);const on=Ot(48121);const sn=Ot(94526);const dn=Ot(75289);class ExtendsResolverError extends sn.TypeBoxError{}Wt.ExtendsResolverError=ExtendsResolverError;var un;(function(st){st[st["Union"]=0]="Union";st[st["True"]=1]="True";st[st["False"]=2]="False"})(un||(Wt.ExtendsResult=un={}));function IntoBooleanResult(st){return st===un.False?st:un.True}function Throw(st){throw new ExtendsResolverError(st)}function IsStructuralRight(st){return dn.TypeGuard.IsNever(st)||dn.TypeGuard.IsIntersect(st)||dn.TypeGuard.IsUnion(st)||dn.TypeGuard.IsUnknown(st)||dn.TypeGuard.IsAny(st)}function StructuralRight(st,Wt){return dn.TypeGuard.IsNever(Wt)?FromNeverRight(st,Wt):dn.TypeGuard.IsIntersect(Wt)?FromIntersectRight(st,Wt):dn.TypeGuard.IsUnion(Wt)?FromUnionRight(st,Wt):dn.TypeGuard.IsUnknown(Wt)?FromUnknownRight(st,Wt):dn.TypeGuard.IsAny(Wt)?FromAnyRight(st,Wt):Throw("StructuralRight")}function FromAnyRight(st,Wt){return un.True}function FromAny(st,Wt){return dn.TypeGuard.IsIntersect(Wt)?FromIntersectRight(st,Wt):dn.TypeGuard.IsUnion(Wt)&&Wt.anyOf.some((st=>dn.TypeGuard.IsAny(st)||dn.TypeGuard.IsUnknown(st)))?un.True:dn.TypeGuard.IsUnion(Wt)?un.Union:dn.TypeGuard.IsUnknown(Wt)?un.True:dn.TypeGuard.IsAny(Wt)?un.True:un.Union}function FromArrayRight(st,Wt){return dn.TypeGuard.IsUnknown(st)?un.False:dn.TypeGuard.IsAny(st)?un.Union:dn.TypeGuard.IsNever(st)?un.True:un.False}function FromArray(st,Wt){return dn.TypeGuard.IsObject(Wt)&&IsObjectArrayLike(Wt)?un.True:IsStructuralRight(Wt)?StructuralRight(st,Wt):!dn.TypeGuard.IsArray(Wt)?un.False:IntoBooleanResult(Visit(st.items,Wt.items))}function FromAsyncIterator(st,Wt){return IsStructuralRight(Wt)?StructuralRight(st,Wt):!dn.TypeGuard.IsAsyncIterator(Wt)?un.False:IntoBooleanResult(Visit(st.items,Wt.items))}function FromBigInt(st,Wt){return IsStructuralRight(Wt)?StructuralRight(st,Wt):dn.TypeGuard.IsObject(Wt)?FromObjectRight(st,Wt):dn.TypeGuard.IsRecord(Wt)?FromRecordRight(st,Wt):dn.TypeGuard.IsBigInt(Wt)?un.True:un.False}function FromBooleanRight(st,Wt){return dn.TypeGuard.IsLiteralBoolean(st)?un.True:dn.TypeGuard.IsBoolean(st)?un.True:un.False}function FromBoolean(st,Wt){return IsStructuralRight(Wt)?StructuralRight(st,Wt):dn.TypeGuard.IsObject(Wt)?FromObjectRight(st,Wt):dn.TypeGuard.IsRecord(Wt)?FromRecordRight(st,Wt):dn.TypeGuard.IsBoolean(Wt)?un.True:un.False}function FromConstructor(st,Wt){return IsStructuralRight(Wt)?StructuralRight(st,Wt):dn.TypeGuard.IsObject(Wt)?FromObjectRight(st,Wt):!dn.TypeGuard.IsConstructor(Wt)?un.False:st.parameters.length>Wt.parameters.length?un.False:!st.parameters.every(((st,Ot)=>IntoBooleanResult(Visit(Wt.parameters[Ot],st))===un.True))?un.False:IntoBooleanResult(Visit(st.returns,Wt.returns))}function FromDate(st,Wt){return IsStructuralRight(Wt)?StructuralRight(st,Wt):dn.TypeGuard.IsObject(Wt)?FromObjectRight(st,Wt):dn.TypeGuard.IsRecord(Wt)?FromRecordRight(st,Wt):dn.TypeGuard.IsDate(Wt)?un.True:un.False}function FromFunction(st,Wt){return IsStructuralRight(Wt)?StructuralRight(st,Wt):dn.TypeGuard.IsObject(Wt)?FromObjectRight(st,Wt):!dn.TypeGuard.IsFunction(Wt)?un.False:st.parameters.length>Wt.parameters.length?un.False:!st.parameters.every(((st,Ot)=>IntoBooleanResult(Visit(Wt.parameters[Ot],st))===un.True))?un.False:IntoBooleanResult(Visit(st.returns,Wt.returns))}function FromIntegerRight(st,Wt){return dn.TypeGuard.IsLiteral(st)&&dn.ValueGuard.IsNumber(st.const)?un.True:dn.TypeGuard.IsNumber(st)||dn.TypeGuard.IsInteger(st)?un.True:un.False}function FromInteger(st,Wt){return dn.TypeGuard.IsInteger(Wt)||dn.TypeGuard.IsNumber(Wt)?un.True:IsStructuralRight(Wt)?StructuralRight(st,Wt):dn.TypeGuard.IsObject(Wt)?FromObjectRight(st,Wt):dn.TypeGuard.IsRecord(Wt)?FromRecordRight(st,Wt):un.False}function FromIntersectRight(st,Wt){return Wt.allOf.every((Wt=>Visit(st,Wt)===un.True))?un.True:un.False}function FromIntersect(st,Wt){return st.allOf.some((st=>Visit(st,Wt)===un.True))?un.True:un.False}function FromIterator(st,Wt){return IsStructuralRight(Wt)?StructuralRight(st,Wt):!dn.TypeGuard.IsIterator(Wt)?un.False:IntoBooleanResult(Visit(st.items,Wt.items))}function FromLiteral(st,Wt){return dn.TypeGuard.IsLiteral(Wt)&&Wt.const===st.const?un.True:IsStructuralRight(Wt)?StructuralRight(st,Wt):dn.TypeGuard.IsObject(Wt)?FromObjectRight(st,Wt):dn.TypeGuard.IsRecord(Wt)?FromRecordRight(st,Wt):dn.TypeGuard.IsString(Wt)?FromStringRight(st,Wt):dn.TypeGuard.IsNumber(Wt)?FromNumberRight(st,Wt):dn.TypeGuard.IsInteger(Wt)?FromIntegerRight(st,Wt):dn.TypeGuard.IsBoolean(Wt)?FromBooleanRight(st,Wt):un.False}function FromNeverRight(st,Wt){return un.False}function FromNever(st,Wt){return un.True}function UnwrapTNot(st){let[Wt,Ot]=[st,0];while(true){if(!dn.TypeGuard.IsNot(Wt))break;Wt=Wt.not;Ot+=1}return Ot%2===0?Wt:(0,In.Unknown)()}function FromNot(st,Wt){return dn.TypeGuard.IsNot(st)?Visit(UnwrapTNot(st),Wt):dn.TypeGuard.IsNot(Wt)?Visit(st,UnwrapTNot(Wt)):Throw("Invalid fallthrough for Not")}function FromNull(st,Wt){return IsStructuralRight(Wt)?StructuralRight(st,Wt):dn.TypeGuard.IsObject(Wt)?FromObjectRight(st,Wt):dn.TypeGuard.IsRecord(Wt)?FromRecordRight(st,Wt):dn.TypeGuard.IsNull(Wt)?un.True:un.False}function FromNumberRight(st,Wt){return dn.TypeGuard.IsLiteralNumber(st)?un.True:dn.TypeGuard.IsNumber(st)||dn.TypeGuard.IsInteger(st)?un.True:un.False}function FromNumber(st,Wt){return IsStructuralRight(Wt)?StructuralRight(st,Wt):dn.TypeGuard.IsObject(Wt)?FromObjectRight(st,Wt):dn.TypeGuard.IsRecord(Wt)?FromRecordRight(st,Wt):dn.TypeGuard.IsInteger(Wt)||dn.TypeGuard.IsNumber(Wt)?un.True:un.False}function IsObjectPropertyCount(st,Wt){return Object.getOwnPropertyNames(st.properties).length===Wt}function IsObjectStringLike(st){return IsObjectArrayLike(st)}function IsObjectSymbolLike(st){return IsObjectPropertyCount(st,0)||IsObjectPropertyCount(st,1)&&"description"in st.properties&&dn.TypeGuard.IsUnion(st.properties.description)&&st.properties.description.anyOf.length===2&&(dn.TypeGuard.IsString(st.properties.description.anyOf[0])&&dn.TypeGuard.IsUndefined(st.properties.description.anyOf[1])||dn.TypeGuard.IsString(st.properties.description.anyOf[1])&&dn.TypeGuard.IsUndefined(st.properties.description.anyOf[0]))}function IsObjectNumberLike(st){return IsObjectPropertyCount(st,0)}function IsObjectBooleanLike(st){return IsObjectPropertyCount(st,0)}function IsObjectBigIntLike(st){return IsObjectPropertyCount(st,0)}function IsObjectDateLike(st){return IsObjectPropertyCount(st,0)}function IsObjectUint8ArrayLike(st){return IsObjectArrayLike(st)}function IsObjectFunctionLike(st){const Wt=(0,nn.Number)();return IsObjectPropertyCount(st,0)||IsObjectPropertyCount(st,1)&&"length"in st.properties&&IntoBooleanResult(Visit(st.properties["length"],Wt))===un.True}function IsObjectConstructorLike(st){return IsObjectPropertyCount(st,0)}function IsObjectArrayLike(st){const Wt=(0,nn.Number)();return IsObjectPropertyCount(st,0)||IsObjectPropertyCount(st,1)&&"length"in st.properties&&IntoBooleanResult(Visit(st.properties["length"],Wt))===un.True}function IsObjectPromiseLike(st){const Wt=(0,tn.Function)([(0,en.Any)()],(0,en.Any)());return IsObjectPropertyCount(st,0)||IsObjectPropertyCount(st,1)&&"then"in st.properties&&IntoBooleanResult(Visit(st.properties["then"],Wt))===un.True}function Property(st,Wt){return Visit(st,Wt)===un.False?un.False:dn.TypeGuard.IsOptional(st)&&!dn.TypeGuard.IsOptional(Wt)?un.False:un.True}function FromObjectRight(st,Wt){return dn.TypeGuard.IsUnknown(st)?un.False:dn.TypeGuard.IsAny(st)?un.Union:dn.TypeGuard.IsNever(st)||dn.TypeGuard.IsLiteralString(st)&&IsObjectStringLike(Wt)||dn.TypeGuard.IsLiteralNumber(st)&&IsObjectNumberLike(Wt)||dn.TypeGuard.IsLiteralBoolean(st)&&IsObjectBooleanLike(Wt)||dn.TypeGuard.IsSymbol(st)&&IsObjectSymbolLike(Wt)||dn.TypeGuard.IsBigInt(st)&&IsObjectBigIntLike(Wt)||dn.TypeGuard.IsString(st)&&IsObjectStringLike(Wt)||dn.TypeGuard.IsSymbol(st)&&IsObjectSymbolLike(Wt)||dn.TypeGuard.IsNumber(st)&&IsObjectNumberLike(Wt)||dn.TypeGuard.IsInteger(st)&&IsObjectNumberLike(Wt)||dn.TypeGuard.IsBoolean(st)&&IsObjectBooleanLike(Wt)||dn.TypeGuard.IsUint8Array(st)&&IsObjectUint8ArrayLike(Wt)||dn.TypeGuard.IsDate(st)&&IsObjectDateLike(Wt)||dn.TypeGuard.IsConstructor(st)&&IsObjectConstructorLike(Wt)||dn.TypeGuard.IsFunction(st)&&IsObjectFunctionLike(Wt)?un.True:dn.TypeGuard.IsRecord(st)&&dn.TypeGuard.IsString(RecordKey(st))?(()=>Wt[on.Hint]==="Record"?un.True:un.False)():dn.TypeGuard.IsRecord(st)&&dn.TypeGuard.IsNumber(RecordKey(st))?(()=>IsObjectPropertyCount(Wt,0)?un.True:un.False)():un.False}function FromObject(st,Wt){return IsStructuralRight(Wt)?StructuralRight(st,Wt):dn.TypeGuard.IsRecord(Wt)?FromRecordRight(st,Wt):!dn.TypeGuard.IsObject(Wt)?un.False:(()=>{for(const Ot of Object.getOwnPropertyNames(Wt.properties)){if(!(Ot in st.properties)&&!dn.TypeGuard.IsOptional(Wt.properties[Ot])){return un.False}if(dn.TypeGuard.IsOptional(Wt.properties[Ot])){return un.True}if(Property(st.properties[Ot],Wt.properties[Ot])===un.False){return un.False}}return un.True})()}function FromPromise(st,Wt){return IsStructuralRight(Wt)?StructuralRight(st,Wt):dn.TypeGuard.IsObject(Wt)&&IsObjectPromiseLike(Wt)?un.True:!dn.TypeGuard.IsPromise(Wt)?un.False:IntoBooleanResult(Visit(st.item,Wt.item))}function RecordKey(st){return cn.PatternNumberExact in st.patternProperties?(0,nn.Number)():cn.PatternStringExact in st.patternProperties?(0,an.String)():Throw("Unknown record key pattern")}function RecordValue(st){return cn.PatternNumberExact in st.patternProperties?st.patternProperties[cn.PatternNumberExact]:cn.PatternStringExact in st.patternProperties?st.patternProperties[cn.PatternStringExact]:Throw("Unable to get record value schema")}function FromRecordRight(st,Wt){const[Ot,en]=[RecordKey(Wt),RecordValue(Wt)];return dn.TypeGuard.IsLiteralString(st)&&dn.TypeGuard.IsNumber(Ot)&&IntoBooleanResult(Visit(st,en))===un.True?un.True:dn.TypeGuard.IsUint8Array(st)&&dn.TypeGuard.IsNumber(Ot)?Visit(st,en):dn.TypeGuard.IsString(st)&&dn.TypeGuard.IsNumber(Ot)?Visit(st,en):dn.TypeGuard.IsArray(st)&&dn.TypeGuard.IsNumber(Ot)?Visit(st,en):dn.TypeGuard.IsObject(st)?(()=>{for(const Wt of Object.getOwnPropertyNames(st.properties)){if(Property(en,st.properties[Wt])===un.False){return un.False}}return un.True})():un.False}function FromRecord(st,Wt){return IsStructuralRight(Wt)?StructuralRight(st,Wt):dn.TypeGuard.IsObject(Wt)?FromObjectRight(st,Wt):!dn.TypeGuard.IsRecord(Wt)?un.False:Visit(RecordValue(st),RecordValue(Wt))}function FromRegExp(st,Wt){const Ot=dn.TypeGuard.IsRegExp(st)?(0,an.String)():st;const en=dn.TypeGuard.IsRegExp(Wt)?(0,an.String)():Wt;return Visit(Ot,en)}function FromStringRight(st,Wt){return dn.TypeGuard.IsLiteral(st)&&dn.ValueGuard.IsString(st.const)?un.True:dn.TypeGuard.IsString(st)?un.True:un.False}function FromString(st,Wt){return IsStructuralRight(Wt)?StructuralRight(st,Wt):dn.TypeGuard.IsObject(Wt)?FromObjectRight(st,Wt):dn.TypeGuard.IsRecord(Wt)?FromRecordRight(st,Wt):dn.TypeGuard.IsString(Wt)?un.True:un.False}function FromSymbol(st,Wt){return IsStructuralRight(Wt)?StructuralRight(st,Wt):dn.TypeGuard.IsObject(Wt)?FromObjectRight(st,Wt):dn.TypeGuard.IsRecord(Wt)?FromRecordRight(st,Wt):dn.TypeGuard.IsSymbol(Wt)?un.True:un.False}function FromTemplateLiteral(st,Wt){return dn.TypeGuard.IsTemplateLiteral(st)?Visit((0,rn.TemplateLiteralToUnion)(st),Wt):dn.TypeGuard.IsTemplateLiteral(Wt)?Visit(st,(0,rn.TemplateLiteralToUnion)(Wt)):Throw("Invalid fallthrough for TemplateLiteral")}function IsArrayOfTuple(st,Wt){return dn.TypeGuard.IsArray(Wt)&&st.items!==undefined&&st.items.every((st=>Visit(st,Wt.items)===un.True))}function FromTupleRight(st,Wt){return dn.TypeGuard.IsNever(st)?un.True:dn.TypeGuard.IsUnknown(st)?un.False:dn.TypeGuard.IsAny(st)?un.Union:un.False}function FromTuple(st,Wt){return IsStructuralRight(Wt)?StructuralRight(st,Wt):dn.TypeGuard.IsObject(Wt)&&IsObjectArrayLike(Wt)?un.True:dn.TypeGuard.IsArray(Wt)&&IsArrayOfTuple(st,Wt)?un.True:!dn.TypeGuard.IsTuple(Wt)?un.False:dn.ValueGuard.IsUndefined(st.items)&&!dn.ValueGuard.IsUndefined(Wt.items)||!dn.ValueGuard.IsUndefined(st.items)&&dn.ValueGuard.IsUndefined(Wt.items)?un.False:dn.ValueGuard.IsUndefined(st.items)&&!dn.ValueGuard.IsUndefined(Wt.items)?un.True:st.items.every(((st,Ot)=>Visit(st,Wt.items[Ot])===un.True))?un.True:un.False}function FromUint8Array(st,Wt){return IsStructuralRight(Wt)?StructuralRight(st,Wt):dn.TypeGuard.IsObject(Wt)?FromObjectRight(st,Wt):dn.TypeGuard.IsRecord(Wt)?FromRecordRight(st,Wt):dn.TypeGuard.IsUint8Array(Wt)?un.True:un.False}function FromUndefined(st,Wt){return IsStructuralRight(Wt)?StructuralRight(st,Wt):dn.TypeGuard.IsObject(Wt)?FromObjectRight(st,Wt):dn.TypeGuard.IsRecord(Wt)?FromRecordRight(st,Wt):dn.TypeGuard.IsVoid(Wt)?FromVoidRight(st,Wt):dn.TypeGuard.IsUndefined(Wt)?un.True:un.False}function FromUnionRight(st,Wt){return Wt.anyOf.some((Wt=>Visit(st,Wt)===un.True))?un.True:un.False}function FromUnion(st,Wt){return st.anyOf.every((st=>Visit(st,Wt)===un.True))?un.True:un.False}function FromUnknownRight(st,Wt){return un.True}function FromUnknown(st,Wt){return dn.TypeGuard.IsNever(Wt)?FromNeverRight(st,Wt):dn.TypeGuard.IsIntersect(Wt)?FromIntersectRight(st,Wt):dn.TypeGuard.IsUnion(Wt)?FromUnionRight(st,Wt):dn.TypeGuard.IsAny(Wt)?FromAnyRight(st,Wt):dn.TypeGuard.IsString(Wt)?FromStringRight(st,Wt):dn.TypeGuard.IsNumber(Wt)?FromNumberRight(st,Wt):dn.TypeGuard.IsInteger(Wt)?FromIntegerRight(st,Wt):dn.TypeGuard.IsBoolean(Wt)?FromBooleanRight(st,Wt):dn.TypeGuard.IsArray(Wt)?FromArrayRight(st,Wt):dn.TypeGuard.IsTuple(Wt)?FromTupleRight(st,Wt):dn.TypeGuard.IsObject(Wt)?FromObjectRight(st,Wt):dn.TypeGuard.IsUnknown(Wt)?un.True:un.False}function FromVoidRight(st,Wt){return dn.TypeGuard.IsUndefined(st)?un.True:dn.TypeGuard.IsUndefined(st)?un.True:un.False}function FromVoid(st,Wt){return dn.TypeGuard.IsIntersect(Wt)?FromIntersectRight(st,Wt):dn.TypeGuard.IsUnion(Wt)?FromUnionRight(st,Wt):dn.TypeGuard.IsUnknown(Wt)?FromUnknownRight(st,Wt):dn.TypeGuard.IsAny(Wt)?FromAnyRight(st,Wt):dn.TypeGuard.IsObject(Wt)?FromObjectRight(st,Wt):dn.TypeGuard.IsVoid(Wt)?un.True:un.False}function Visit(st,Wt){return dn.TypeGuard.IsTemplateLiteral(st)||dn.TypeGuard.IsTemplateLiteral(Wt)?FromTemplateLiteral(st,Wt):dn.TypeGuard.IsRegExp(st)||dn.TypeGuard.IsRegExp(Wt)?FromRegExp(st,Wt):dn.TypeGuard.IsNot(st)||dn.TypeGuard.IsNot(Wt)?FromNot(st,Wt):dn.TypeGuard.IsAny(st)?FromAny(st,Wt):dn.TypeGuard.IsArray(st)?FromArray(st,Wt):dn.TypeGuard.IsBigInt(st)?FromBigInt(st,Wt):dn.TypeGuard.IsBoolean(st)?FromBoolean(st,Wt):dn.TypeGuard.IsAsyncIterator(st)?FromAsyncIterator(st,Wt):dn.TypeGuard.IsConstructor(st)?FromConstructor(st,Wt):dn.TypeGuard.IsDate(st)?FromDate(st,Wt):dn.TypeGuard.IsFunction(st)?FromFunction(st,Wt):dn.TypeGuard.IsInteger(st)?FromInteger(st,Wt):dn.TypeGuard.IsIntersect(st)?FromIntersect(st,Wt):dn.TypeGuard.IsIterator(st)?FromIterator(st,Wt):dn.TypeGuard.IsLiteral(st)?FromLiteral(st,Wt):dn.TypeGuard.IsNever(st)?FromNever(st,Wt):dn.TypeGuard.IsNull(st)?FromNull(st,Wt):dn.TypeGuard.IsNumber(st)?FromNumber(st,Wt):dn.TypeGuard.IsObject(st)?FromObject(st,Wt):dn.TypeGuard.IsRecord(st)?FromRecord(st,Wt):dn.TypeGuard.IsString(st)?FromString(st,Wt):dn.TypeGuard.IsSymbol(st)?FromSymbol(st,Wt):dn.TypeGuard.IsTuple(st)?FromTuple(st,Wt):dn.TypeGuard.IsPromise(st)?FromPromise(st,Wt):dn.TypeGuard.IsUint8Array(st)?FromUint8Array(st,Wt):dn.TypeGuard.IsUndefined(st)?FromUndefined(st,Wt):dn.TypeGuard.IsUnion(st)?FromUnion(st,Wt):dn.TypeGuard.IsUnknown(st)?FromUnknown(st,Wt):dn.TypeGuard.IsVoid(st)?FromVoid(st,Wt):Throw(`Unknown left type operand '${st[on.Kind]}'`)}function ExtendsCheck(st,Wt){return Visit(st,Wt)}Wt.ExtendsCheck=ExtendsCheck},16223:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.ExtendsFromMappedKey=void 0;const en=Ot(76675);const tn=Ot(24727);const nn=Ot(68936);function FromPropertyKey(st,Wt,Ot,en,an){return{[st]:(0,nn.Extends)((0,tn.Literal)(st),Wt,Ot,en,an)}}function FromPropertyKeys(st,Wt,Ot,en,tn){return st.reduce(((st,nn)=>({...st,...FromPropertyKey(nn,Wt,Ot,en,tn)})),{})}function FromMappedKey(st,Wt,Ot,en,tn){return FromPropertyKeys(st.keys,Wt,Ot,en,tn)}function ExtendsFromMappedKey(st,Wt,Ot,tn,nn){const an=FromMappedKey(st,Wt,Ot,tn,nn);return(0,en.MappedResult)(an)}Wt.ExtendsFromMappedKey=ExtendsFromMappedKey},64311:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.ExtendsFromMappedResult=void 0;const en=Ot(76675);const tn=Ot(68936);function FromProperties(st,Wt,Ot,en,nn){return globalThis.Object.getOwnPropertyNames(st).reduce(((an,In)=>({...an,[In]:(0,tn.Extends)(st[In],Wt,Ot,en,nn)})),{})}function FromMappedResult(st,Wt,Ot,en,tn){return FromProperties(st.properties,Wt,Ot,en,tn)}function ExtendsFromMappedResult(st,Wt,Ot,tn,nn){const an=FromMappedResult(st,Wt,Ot,tn,nn);return(0,en.MappedResult)(an)}Wt.ExtendsFromMappedResult=ExtendsFromMappedResult},1409:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.ExtendsUndefinedCheck=void 0;const en=Ot(48121);function Intersect(st){return st.allOf.every((st=>ExtendsUndefinedCheck(st)))}function Union(st){return st.anyOf.some((st=>ExtendsUndefinedCheck(st)))}function Not(st){return!ExtendsUndefinedCheck(st.not)}function ExtendsUndefinedCheck(st){return st[en.Kind]==="Intersect"?Intersect(st):st[en.Kind]==="Union"?Union(st):st[en.Kind]==="Not"?Not(st):st[en.Kind]==="Undefined"?true:false}Wt.ExtendsUndefinedCheck=ExtendsUndefinedCheck},68936:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Extends=void 0;const en=Ot(41743);const tn=Ot(59405);const nn=Ot(45157);const an=Ot(16223);const In=Ot(64311);const rn=Ot(20109);function ExtendsResolve(st,Wt,Ot,nn){const an=(0,tn.ExtendsCheck)(st,Wt);return an===tn.ExtendsResult.Union?(0,en.Union)([Ot,nn]):an===tn.ExtendsResult.True?Ot:nn}function Extends(st,Wt,Ot,en,tn={}){return(0,rn.IsMappedResult)(st)?(0,In.ExtendsFromMappedResult)(st,Wt,Ot,en,tn):(0,rn.IsMappedKey)(st)?(0,nn.CloneType)((0,an.ExtendsFromMappedKey)(st,Wt,Ot,en,tn)):(0,nn.CloneType)(ExtendsResolve(st,Wt,Ot,en),tn)}Wt.Extends=Extends},40629:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(59405),Wt);tn(Ot(16223),Wt);tn(Ot(64311),Wt);tn(Ot(1409),Wt);tn(Ot(68936),Wt)},25023:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.ExtractFromMappedResult=void 0;const en=Ot(76675);const tn=Ot(58480);function FromProperties(st,Wt){return globalThis.Object.getOwnPropertyNames(st).reduce(((Ot,en)=>({...Ot,[en]:(0,tn.Extract)(st[en],Wt)})),{})}function FromMappedResult(st,Wt){return FromProperties(st.properties,Wt)}function ExtractFromMappedResult(st,Wt){const Ot=FromMappedResult(st,Wt);return(0,en.MappedResult)(Ot)}Wt.ExtractFromMappedResult=ExtractFromMappedResult},65638:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.ExtractFromTemplateLiteral=void 0;const en=Ot(58480);const tn=Ot(90984);function ExtractFromTemplateLiteral(st,Wt){return(0,en.Extract)((0,tn.TemplateLiteralToUnion)(st),Wt)}Wt.ExtractFromTemplateLiteral=ExtractFromTemplateLiteral},58480:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Extract=void 0;const en=Ot(41743);const tn=Ot(22346);const nn=Ot(40629);const an=Ot(45157);const In=Ot(25023);const rn=Ot(65638);const cn=Ot(20109);function ExtractRest(st,Wt){const Ot=st.filter((st=>(0,nn.ExtendsCheck)(st,Wt)!==nn.ExtendsResult.False));return Ot.length===1?Ot[0]:(0,en.Union)(Ot)}function Extract(st,Wt,Ot={}){if((0,cn.IsTemplateLiteral)(st))return(0,an.CloneType)((0,rn.ExtractFromTemplateLiteral)(st,Wt),Ot);if((0,cn.IsMappedResult)(st))return(0,an.CloneType)((0,In.ExtractFromMappedResult)(st,Wt),Ot);return(0,an.CloneType)((0,cn.IsUnion)(st)?ExtractRest(st.anyOf,Wt):(0,nn.ExtendsCheck)(st,Wt)!==nn.ExtendsResult.False?st:(0,tn.Never)(),Ot)}Wt.Extract=Extract},14301:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(25023),Wt);tn(Ot(65638),Wt);tn(Ot(58480),Wt)},3494:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Function=void 0;const en=Ot(45157);const tn=Ot(48121);function Function(st,Wt,Ot){return{...Ot,[tn.Kind]:"Function",type:"Function",parameters:(0,en.CloneRest)(st),returns:(0,en.CloneType)(Wt)}}Wt.Function=Function},72996:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(3494),Wt)},75289:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.ValueGuard=Wt.TypeGuard=void 0;Wt.TypeGuard=Ot(20109);Wt.ValueGuard=Ot(87280)},20109:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.IsSchema=Wt.IsKind=Wt.IsVoid=Wt.IsUnsafe=Wt.IsUnknown=Wt.IsUint8Array=Wt.IsUnion=Wt.IsUnionLiteral=Wt.IsUndefined=Wt.IsTuple=Wt.IsTransform=Wt.IsThis=Wt.IsTemplateLiteral=Wt.IsSymbol=Wt.IsString=Wt.IsRegExp=Wt.IsRef=Wt.IsRecursive=Wt.IsRecord=Wt.IsPromise=Wt.IsObject=Wt.IsNumber=Wt.IsNull=Wt.IsNot=Wt.IsNever=Wt.IsMappedResult=Wt.IsMappedKey=Wt.IsLiteralValue=Wt.IsLiteral=Wt.IsLiteralBoolean=Wt.IsLiteralNumber=Wt.IsLiteralString=Wt.IsKindOf=Wt.IsIterator=Wt.IsIntersect=Wt.IsProperties=Wt.IsInteger=Wt.IsFunction=Wt.IsDate=Wt.IsConstructor=Wt.IsBoolean=Wt.IsBigInt=Wt.IsAsyncIterator=Wt.IsArray=Wt.IsAny=Wt.IsOptional=Wt.IsReadonly=Wt.TypeGuardUnknownTypeError=void 0;const en=Ot(87280);const tn=Ot(48121);const nn=Ot(94526);class TypeGuardUnknownTypeError extends nn.TypeBoxError{}Wt.TypeGuardUnknownTypeError=TypeGuardUnknownTypeError;const an=["Any","Array","AsyncIterator","BigInt","Boolean","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function IsPattern(st){try{new RegExp(st);return true}catch{return false}}function IsControlCharacterFree(st){if(!en.IsString(st))return false;for(let Wt=0;Wt=7&&Ot<=13||Ot===27||Ot===127){return false}}return true}function IsAdditionalProperties(st){return IsOptionalBoolean(st)||IsSchema(st)}function IsOptionalBigInt(st){return en.IsUndefined(st)||en.IsBigInt(st)}function IsOptionalNumber(st){return en.IsUndefined(st)||en.IsNumber(st)}function IsOptionalBoolean(st){return en.IsUndefined(st)||en.IsBoolean(st)}function IsOptionalString(st){return en.IsUndefined(st)||en.IsString(st)}function IsOptionalPattern(st){return en.IsUndefined(st)||en.IsString(st)&&IsControlCharacterFree(st)&&IsPattern(st)}function IsOptionalFormat(st){return en.IsUndefined(st)||en.IsString(st)&&IsControlCharacterFree(st)}function IsOptionalSchema(st){return en.IsUndefined(st)||IsSchema(st)}function IsReadonly(st){return en.IsObject(st)&&st[tn.ReadonlyKind]==="Readonly"}Wt.IsReadonly=IsReadonly;function IsOptional(st){return en.IsObject(st)&&st[tn.OptionalKind]==="Optional"}Wt.IsOptional=IsOptional;function IsAny(st){return IsKindOf(st,"Any")&&IsOptionalString(st.$id)}Wt.IsAny=IsAny;function IsArray(st){return IsKindOf(st,"Array")&&st.type==="array"&&IsOptionalString(st.$id)&&IsSchema(st.items)&&IsOptionalNumber(st.minItems)&&IsOptionalNumber(st.maxItems)&&IsOptionalBoolean(st.uniqueItems)&&IsOptionalSchema(st.contains)&&IsOptionalNumber(st.minContains)&&IsOptionalNumber(st.maxContains)}Wt.IsArray=IsArray;function IsAsyncIterator(st){return IsKindOf(st,"AsyncIterator")&&st.type==="AsyncIterator"&&IsOptionalString(st.$id)&&IsSchema(st.items)}Wt.IsAsyncIterator=IsAsyncIterator;function IsBigInt(st){return IsKindOf(st,"BigInt")&&st.type==="bigint"&&IsOptionalString(st.$id)&&IsOptionalBigInt(st.exclusiveMaximum)&&IsOptionalBigInt(st.exclusiveMinimum)&&IsOptionalBigInt(st.maximum)&&IsOptionalBigInt(st.minimum)&&IsOptionalBigInt(st.multipleOf)}Wt.IsBigInt=IsBigInt;function IsBoolean(st){return IsKindOf(st,"Boolean")&&st.type==="boolean"&&IsOptionalString(st.$id)}Wt.IsBoolean=IsBoolean;function IsConstructor(st){return IsKindOf(st,"Constructor")&&st.type==="Constructor"&&IsOptionalString(st.$id)&&en.IsArray(st.parameters)&&st.parameters.every((st=>IsSchema(st)))&&IsSchema(st.returns)}Wt.IsConstructor=IsConstructor;function IsDate(st){return IsKindOf(st,"Date")&&st.type==="Date"&&IsOptionalString(st.$id)&&IsOptionalNumber(st.exclusiveMaximumTimestamp)&&IsOptionalNumber(st.exclusiveMinimumTimestamp)&&IsOptionalNumber(st.maximumTimestamp)&&IsOptionalNumber(st.minimumTimestamp)&&IsOptionalNumber(st.multipleOfTimestamp)}Wt.IsDate=IsDate;function IsFunction(st){return IsKindOf(st,"Function")&&st.type==="Function"&&IsOptionalString(st.$id)&&en.IsArray(st.parameters)&&st.parameters.every((st=>IsSchema(st)))&&IsSchema(st.returns)}Wt.IsFunction=IsFunction;function IsInteger(st){return IsKindOf(st,"Integer")&&st.type==="integer"&&IsOptionalString(st.$id)&&IsOptionalNumber(st.exclusiveMaximum)&&IsOptionalNumber(st.exclusiveMinimum)&&IsOptionalNumber(st.maximum)&&IsOptionalNumber(st.minimum)&&IsOptionalNumber(st.multipleOf)}Wt.IsInteger=IsInteger;function IsProperties(st){return en.IsObject(st)&&Object.entries(st).every((([st,Wt])=>IsControlCharacterFree(st)&&IsSchema(Wt)))}Wt.IsProperties=IsProperties;function IsIntersect(st){return IsKindOf(st,"Intersect")&&(en.IsString(st.type)&&st.type!=="object"?false:true)&&en.IsArray(st.allOf)&&st.allOf.every((st=>IsSchema(st)&&!IsTransform(st)))&&IsOptionalString(st.type)&&(IsOptionalBoolean(st.unevaluatedProperties)||IsOptionalSchema(st.unevaluatedProperties))&&IsOptionalString(st.$id)}Wt.IsIntersect=IsIntersect;function IsIterator(st){return IsKindOf(st,"Iterator")&&st.type==="Iterator"&&IsOptionalString(st.$id)&&IsSchema(st.items)}Wt.IsIterator=IsIterator;function IsKindOf(st,Wt){return en.IsObject(st)&&tn.Kind in st&&st[tn.Kind]===Wt}Wt.IsKindOf=IsKindOf;function IsLiteralString(st){return IsLiteral(st)&&en.IsString(st.const)}Wt.IsLiteralString=IsLiteralString;function IsLiteralNumber(st){return IsLiteral(st)&&en.IsNumber(st.const)}Wt.IsLiteralNumber=IsLiteralNumber;function IsLiteralBoolean(st){return IsLiteral(st)&&en.IsBoolean(st.const)}Wt.IsLiteralBoolean=IsLiteralBoolean;function IsLiteral(st){return IsKindOf(st,"Literal")&&IsOptionalString(st.$id)&&IsLiteralValue(st.const)}Wt.IsLiteral=IsLiteral;function IsLiteralValue(st){return en.IsBoolean(st)||en.IsNumber(st)||en.IsString(st)}Wt.IsLiteralValue=IsLiteralValue;function IsMappedKey(st){return IsKindOf(st,"MappedKey")&&en.IsArray(st.keys)&&st.keys.every((st=>en.IsNumber(st)||en.IsString(st)))}Wt.IsMappedKey=IsMappedKey;function IsMappedResult(st){return IsKindOf(st,"MappedResult")&&IsProperties(st.properties)}Wt.IsMappedResult=IsMappedResult;function IsNever(st){return IsKindOf(st,"Never")&&en.IsObject(st.not)&&Object.getOwnPropertyNames(st.not).length===0}Wt.IsNever=IsNever;function IsNot(st){return IsKindOf(st,"Not")&&IsSchema(st.not)}Wt.IsNot=IsNot;function IsNull(st){return IsKindOf(st,"Null")&&st.type==="null"&&IsOptionalString(st.$id)}Wt.IsNull=IsNull;function IsNumber(st){return IsKindOf(st,"Number")&&st.type==="number"&&IsOptionalString(st.$id)&&IsOptionalNumber(st.exclusiveMaximum)&&IsOptionalNumber(st.exclusiveMinimum)&&IsOptionalNumber(st.maximum)&&IsOptionalNumber(st.minimum)&&IsOptionalNumber(st.multipleOf)}Wt.IsNumber=IsNumber;function IsObject(st){return IsKindOf(st,"Object")&&st.type==="object"&&IsOptionalString(st.$id)&&IsProperties(st.properties)&&IsAdditionalProperties(st.additionalProperties)&&IsOptionalNumber(st.minProperties)&&IsOptionalNumber(st.maxProperties)}Wt.IsObject=IsObject;function IsPromise(st){return IsKindOf(st,"Promise")&&st.type==="Promise"&&IsOptionalString(st.$id)&&IsSchema(st.item)}Wt.IsPromise=IsPromise;function IsRecord(st){return IsKindOf(st,"Record")&&st.type==="object"&&IsOptionalString(st.$id)&&IsAdditionalProperties(st.additionalProperties)&&en.IsObject(st.patternProperties)&&(st=>{const Wt=Object.getOwnPropertyNames(st.patternProperties);return Wt.length===1&&IsPattern(Wt[0])&&en.IsObject(st.patternProperties)&&IsSchema(st.patternProperties[Wt[0]])})(st)}Wt.IsRecord=IsRecord;function IsRecursive(st){return en.IsObject(st)&&tn.Hint in st&&st[tn.Hint]==="Recursive"}Wt.IsRecursive=IsRecursive;function IsRef(st){return IsKindOf(st,"Ref")&&IsOptionalString(st.$id)&&en.IsString(st.$ref)}Wt.IsRef=IsRef;function IsRegExp(st){return IsKindOf(st,"RegExp")&&IsOptionalString(st.$id)&&en.IsString(st.source)&&en.IsString(st.flags)&&IsOptionalNumber(st.maxLength)&&IsOptionalNumber(st.minLength)}Wt.IsRegExp=IsRegExp;function IsString(st){return IsKindOf(st,"String")&&st.type==="string"&&IsOptionalString(st.$id)&&IsOptionalNumber(st.minLength)&&IsOptionalNumber(st.maxLength)&&IsOptionalPattern(st.pattern)&&IsOptionalFormat(st.format)}Wt.IsString=IsString;function IsSymbol(st){return IsKindOf(st,"Symbol")&&st.type==="symbol"&&IsOptionalString(st.$id)}Wt.IsSymbol=IsSymbol;function IsTemplateLiteral(st){return IsKindOf(st,"TemplateLiteral")&&st.type==="string"&&en.IsString(st.pattern)&&st.pattern[0]==="^"&&st.pattern[st.pattern.length-1]==="$"}Wt.IsTemplateLiteral=IsTemplateLiteral;function IsThis(st){return IsKindOf(st,"This")&&IsOptionalString(st.$id)&&en.IsString(st.$ref)}Wt.IsThis=IsThis;function IsTransform(st){return en.IsObject(st)&&tn.TransformKind in st}Wt.IsTransform=IsTransform;function IsTuple(st){return IsKindOf(st,"Tuple")&&st.type==="array"&&IsOptionalString(st.$id)&&en.IsNumber(st.minItems)&&en.IsNumber(st.maxItems)&&st.minItems===st.maxItems&&(en.IsUndefined(st.items)&&en.IsUndefined(st.additionalItems)&&st.minItems===0||en.IsArray(st.items)&&st.items.every((st=>IsSchema(st))))}Wt.IsTuple=IsTuple;function IsUndefined(st){return IsKindOf(st,"Undefined")&&st.type==="undefined"&&IsOptionalString(st.$id)}Wt.IsUndefined=IsUndefined;function IsUnionLiteral(st){return IsUnion(st)&&st.anyOf.every((st=>IsLiteralString(st)||IsLiteralNumber(st)))}Wt.IsUnionLiteral=IsUnionLiteral;function IsUnion(st){return IsKindOf(st,"Union")&&IsOptionalString(st.$id)&&en.IsObject(st)&&en.IsArray(st.anyOf)&&st.anyOf.every((st=>IsSchema(st)))}Wt.IsUnion=IsUnion;function IsUint8Array(st){return IsKindOf(st,"Uint8Array")&&st.type==="Uint8Array"&&IsOptionalString(st.$id)&&IsOptionalNumber(st.minByteLength)&&IsOptionalNumber(st.maxByteLength)}Wt.IsUint8Array=IsUint8Array;function IsUnknown(st){return IsKindOf(st,"Unknown")&&IsOptionalString(st.$id)}Wt.IsUnknown=IsUnknown;function IsUnsafe(st){return IsKindOf(st,"Unsafe")}Wt.IsUnsafe=IsUnsafe;function IsVoid(st){return IsKindOf(st,"Void")&&st.type==="void"&&IsOptionalString(st.$id)}Wt.IsVoid=IsVoid;function IsKind(st){return en.IsObject(st)&&tn.Kind in st&&en.IsString(st[tn.Kind])&&!an.includes(st[tn.Kind])}Wt.IsKind=IsKind;function IsSchema(st){return en.IsObject(st)&&(IsAny(st)||IsArray(st)||IsBoolean(st)||IsBigInt(st)||IsAsyncIterator(st)||IsConstructor(st)||IsDate(st)||IsFunction(st)||IsInteger(st)||IsIntersect(st)||IsIterator(st)||IsLiteral(st)||IsMappedKey(st)||IsMappedResult(st)||IsNever(st)||IsNot(st)||IsNull(st)||IsNumber(st)||IsObject(st)||IsPromise(st)||IsRecord(st)||IsRef(st)||IsRegExp(st)||IsString(st)||IsSymbol(st)||IsTemplateLiteral(st)||IsThis(st)||IsTuple(st)||IsUndefined(st)||IsUnion(st)||IsUint8Array(st)||IsUnknown(st)||IsUnsafe(st)||IsVoid(st)||IsKind(st))}Wt.IsSchema=IsSchema},87280:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.IsUndefined=Wt.IsUint8Array=Wt.IsSymbol=Wt.IsString=Wt.IsRegExp=Wt.IsObject=Wt.IsNumber=Wt.IsNull=Wt.IsIterator=Wt.IsFunction=Wt.IsDate=Wt.IsBoolean=Wt.IsBigInt=Wt.IsArray=Wt.IsAsyncIterator=void 0;function IsAsyncIterator(st){return IsObject(st)&&!IsArray(st)&&!IsUint8Array(st)&&Symbol.asyncIterator in st}Wt.IsAsyncIterator=IsAsyncIterator;function IsArray(st){return Array.isArray(st)}Wt.IsArray=IsArray;function IsBigInt(st){return typeof st==="bigint"}Wt.IsBigInt=IsBigInt;function IsBoolean(st){return typeof st==="boolean"}Wt.IsBoolean=IsBoolean;function IsDate(st){return st instanceof globalThis.Date}Wt.IsDate=IsDate;function IsFunction(st){return typeof st==="function"}Wt.IsFunction=IsFunction;function IsIterator(st){return IsObject(st)&&!IsArray(st)&&!IsUint8Array(st)&&Symbol.iterator in st}Wt.IsIterator=IsIterator;function IsNull(st){return st===null}Wt.IsNull=IsNull;function IsNumber(st){return typeof st==="number"}Wt.IsNumber=IsNumber;function IsObject(st){return typeof st==="object"&&st!==null}Wt.IsObject=IsObject;function IsRegExp(st){return st instanceof globalThis.RegExp}Wt.IsRegExp=IsRegExp;function IsString(st){return typeof st==="string"}Wt.IsString=IsString;function IsSymbol(st){return typeof st==="symbol"}Wt.IsSymbol=IsSymbol;function IsUint8Array(st){return st instanceof globalThis.Uint8Array}Wt.IsUint8Array=IsUint8Array;function IsUndefined(st){return st===undefined}Wt.IsUndefined=IsUndefined},74048:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Increment=void 0;function Increment(st){return(parseInt(st)+1).toString()}Wt.Increment=Increment},51861:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(74048),Wt)},89777:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(33931),Wt);tn(Ot(58355),Wt);tn(Ot(33465),Wt);tn(Ot(30100),Wt)},33931:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.IndexFromMappedKey=void 0;const en=Ot(30100);const tn=Ot(76675);function MappedIndexPropertyKey(st,Wt,Ot){return{[Wt]:(0,en.Index)(st,[Wt],Ot)}}function MappedIndexPropertyKeys(st,Wt,Ot){return Wt.reduce(((Wt,en)=>({...Wt,...MappedIndexPropertyKey(st,en,Ot)})),{})}function MappedIndexProperties(st,Wt,Ot){return MappedIndexPropertyKeys(st,Wt.keys,Ot)}function IndexFromMappedKey(st,Wt,Ot){const en=MappedIndexProperties(st,Wt,Ot);return(0,tn.MappedResult)(en)}Wt.IndexFromMappedKey=IndexFromMappedKey},58355:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.IndexFromMappedResult=void 0;const en=Ot(76675);const tn=Ot(33465);const nn=Ot(89777);function FromProperties(st,Wt,Ot){return globalThis.Object.getOwnPropertyNames(Wt).reduce(((en,an)=>({...en,[an]:(0,nn.Index)(st,(0,tn.IndexPropertyKeys)(Wt[an]),Ot)})),{})}function FromMappedResult(st,Wt,Ot){return FromProperties(st,Wt.properties,Ot)}function IndexFromMappedResult(st,Wt,Ot){const tn=FromMappedResult(st,Wt,Ot);return(0,en.MappedResult)(tn)}Wt.IndexFromMappedResult=IndexFromMappedResult},33465:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.IndexPropertyKeys=void 0;const en=Ot(90984);const tn=Ot(20109);function FromTemplateLiteral(st){const Wt=(0,en.TemplateLiteralGenerate)(st);return Wt.map((st=>st.toString()))}function FromUnion(st){return st.reduce(((st,Wt)=>[...st,...IndexPropertyKeys(Wt)]),[])}function FromLiteral(st){return[st.toString()]}function IndexPropertyKeys(st){return[...new Set((0,tn.IsTemplateLiteral)(st)?FromTemplateLiteral(st):(0,tn.IsUnion)(st)?FromUnion(st.anyOf):(0,tn.IsLiteral)(st)?FromLiteral(st.const):(0,tn.IsNumber)(st)?["[number]"]:(0,tn.IsInteger)(st)?["[number]"]:[])]}Wt.IndexPropertyKeys=IndexPropertyKeys},30100:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Index=Wt.IndexFromPropertyKeys=Wt.IndexFromPropertyKey=void 0;const en=Ot(22346);const tn=Ot(32945);const nn=Ot(41743);const an=Ot(45157);const In=Ot(33465);const rn=Ot(33931);const cn=Ot(58355);const on=Ot(20109);function FromRest(st,Wt){return st.map((st=>IndexFromPropertyKey(st,Wt)))}function FromIntersectRest(st){return st.filter((st=>!(0,on.IsNever)(st)))}function FromIntersect(st,Wt){return(0,tn.IntersectEvaluated)(FromIntersectRest(FromRest(st,Wt)))}function FromUnionRest(st){return st.some((st=>(0,on.IsNever)(st)))?[]:st}function FromUnion(st,Wt){return(0,nn.UnionEvaluated)(FromUnionRest(FromRest(st,Wt)))}function FromTuple(st,Wt){return Wt in st?st[Wt]:Wt==="[number]"?(0,nn.UnionEvaluated)(st):(0,en.Never)()}function FromArray(st,Wt){return Wt==="[number]"?st:(0,en.Never)()}function FromProperty(st,Wt){return Wt in st?st[Wt]:(0,en.Never)()}function IndexFromPropertyKey(st,Wt){return(0,on.IsIntersect)(st)?FromIntersect(st.allOf,Wt):(0,on.IsUnion)(st)?FromUnion(st.anyOf,Wt):(0,on.IsTuple)(st)?FromTuple(st.items??[],Wt):(0,on.IsArray)(st)?FromArray(st.items,Wt):(0,on.IsObject)(st)?FromProperty(st.properties,Wt):(0,en.Never)()}Wt.IndexFromPropertyKey=IndexFromPropertyKey;function IndexFromPropertyKeys(st,Wt){return Wt.map((Wt=>IndexFromPropertyKey(st,Wt)))}Wt.IndexFromPropertyKeys=IndexFromPropertyKeys;function FromSchema(st,Wt){return(0,nn.UnionEvaluated)(IndexFromPropertyKeys(st,Wt))}function Index(st,Wt,Ot={}){return(0,on.IsMappedResult)(Wt)?(0,an.CloneType)((0,cn.IndexFromMappedResult)(st,Wt,Ot)):(0,on.IsMappedKey)(Wt)?(0,an.CloneType)((0,rn.IndexFromMappedKey)(st,Wt,Ot)):(0,on.IsSchema)(Wt)?(0,an.CloneType)(FromSchema(st,(0,In.IndexPropertyKeys)(Wt)),Ot):(0,an.CloneType)(FromSchema(st,Wt),Ot)}Wt.Index=Index},33458:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(66396),Wt)},66396:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.InstanceType=void 0;const en=Ot(45157);function InstanceType(st,Wt={}){return(0,en.CloneType)(st.returns,Wt)}Wt.InstanceType=InstanceType},5578:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(27200),Wt)},27200:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Integer=void 0;const en=Ot(48121);function Integer(st={}){return{...st,[en.Kind]:"Integer",type:"integer"}}Wt.Integer=Integer},32945:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(29404),Wt);tn(Ot(42165),Wt);tn(Ot(55536),Wt)},68937:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.IntersectCreate=void 0;const en=Ot(48121);const tn=Ot(45157);const nn=Ot(20109);function IntersectCreate(st,Wt){const Ot=st.every((st=>(0,nn.IsObject)(st)));const an=(0,nn.IsSchema)(Wt.unevaluatedProperties)?{unevaluatedProperties:(0,tn.CloneType)(Wt.unevaluatedProperties)}:{};return Wt.unevaluatedProperties===false||(0,nn.IsSchema)(Wt.unevaluatedProperties)||Ot?{...Wt,...an,[en.Kind]:"Intersect",type:"object",allOf:(0,tn.CloneRest)(st)}:{...Wt,...an,[en.Kind]:"Intersect",allOf:(0,tn.CloneRest)(st)}}Wt.IntersectCreate=IntersectCreate},29404:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.IntersectEvaluated=void 0;const en=Ot(48121);const tn=Ot(45157);const nn=Ot(62202);const an=Ot(22346);const In=Ot(31392);const rn=Ot(68937);const cn=Ot(20109);function IsIntersectOptional(st){return st.every((st=>(0,cn.IsOptional)(st)))}function RemoveOptionalFromType(st){return(0,nn.Discard)(st,[en.OptionalKind])}function RemoveOptionalFromRest(st){return st.map((st=>(0,cn.IsOptional)(st)?RemoveOptionalFromType(st):st))}function ResolveIntersect(st,Wt){return IsIntersectOptional(st)?(0,In.Optional)((0,rn.IntersectCreate)(RemoveOptionalFromRest(st),Wt)):(0,rn.IntersectCreate)(RemoveOptionalFromRest(st),Wt)}function IntersectEvaluated(st,Wt={}){if(st.length===0)return(0,an.Never)(Wt);if(st.length===1)return(0,tn.CloneType)(st[0],Wt);if(st.some((st=>(0,cn.IsTransform)(st))))throw new Error("Cannot intersect transform types");return ResolveIntersect(st,Wt)}Wt.IntersectEvaluated=IntersectEvaluated},42165:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});const en=Ot(48121)},55536:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Intersect=void 0;const en=Ot(45157);const tn=Ot(22346);const nn=Ot(68937);const an=Ot(20109);function Intersect(st,Wt={}){if(st.length===0)return(0,tn.Never)(Wt);if(st.length===1)return(0,en.CloneType)(st[0],Wt);if(st.some((st=>(0,an.IsTransform)(st))))throw new Error("Cannot intersect transform types");return(0,nn.IntersectCreate)(st,Wt)}Wt.Intersect=Intersect},87241:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Capitalize=void 0;const en=Ot(25328);function Capitalize(st,Wt={}){return(0,en.Intrinsic)(st,"Capitalize",Wt)}Wt.Capitalize=Capitalize},71095:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(87241),Wt);tn(Ot(98823),Wt);tn(Ot(25328),Wt);tn(Ot(51022),Wt);tn(Ot(54406),Wt);tn(Ot(24867),Wt)},98823:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.IntrinsicFromMappedKey=void 0;const en=Ot(76675);const tn=Ot(25328);const nn=Ot(24727);function MappedIntrinsicPropertyKey(st,Wt,Ot){return{[st]:(0,tn.Intrinsic)((0,nn.Literal)(st),Wt,Ot)}}function MappedIntrinsicPropertyKeys(st,Wt,Ot){return st.reduce(((st,en)=>({...st,...MappedIntrinsicPropertyKey(en,Wt,Ot)})),{})}function MappedIntrinsicProperties(st,Wt,Ot){return MappedIntrinsicPropertyKeys(st["keys"],Wt,Ot)}function IntrinsicFromMappedKey(st,Wt,Ot){const tn=MappedIntrinsicProperties(st,Wt,Ot);return(0,en.MappedResult)(tn)}Wt.IntrinsicFromMappedKey=IntrinsicFromMappedKey},25328:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Intrinsic=void 0;const en=Ot(90984);const tn=Ot(98823);const nn=Ot(24727);const an=Ot(41743);const In=Ot(20109);function ApplyUncapitalize(st){const[Wt,Ot]=[st.slice(0,1),st.slice(1)];return[Wt.toLowerCase(),Ot].join("")}function ApplyCapitalize(st){const[Wt,Ot]=[st.slice(0,1),st.slice(1)];return[Wt.toUpperCase(),Ot].join("")}function ApplyUppercase(st){return st.toUpperCase()}function ApplyLowercase(st){return st.toLowerCase()}function FromTemplateLiteral(st,Wt,Ot){const tn=(0,en.TemplateLiteralParseExact)(st.pattern);const In=(0,en.IsTemplateLiteralExpressionFinite)(tn);if(!In)return{...st,pattern:FromLiteralValue(st.pattern,Wt)};const rn=[...(0,en.TemplateLiteralExpressionGenerate)(tn)];const cn=rn.map((st=>(0,nn.Literal)(st)));const on=FromRest(cn,Wt);const sn=(0,an.Union)(on);return(0,en.TemplateLiteral)([sn],Ot)}function FromLiteralValue(st,Wt){return typeof st==="string"?Wt==="Uncapitalize"?ApplyUncapitalize(st):Wt==="Capitalize"?ApplyCapitalize(st):Wt==="Uppercase"?ApplyUppercase(st):Wt==="Lowercase"?ApplyLowercase(st):st:st.toString()}function FromRest(st,Wt){return st.map((st=>Intrinsic(st,Wt)))}function Intrinsic(st,Wt,Ot={}){return(0,In.IsMappedKey)(st)?(0,tn.IntrinsicFromMappedKey)(st,Wt,Ot):(0,In.IsTemplateLiteral)(st)?FromTemplateLiteral(st,Wt,st):(0,In.IsUnion)(st)?(0,an.Union)(FromRest(st.anyOf,Wt),Ot):(0,In.IsLiteral)(st)?(0,nn.Literal)(FromLiteralValue(st.const,Wt),Ot):st}Wt.Intrinsic=Intrinsic},51022:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Lowercase=void 0;const en=Ot(25328);function Lowercase(st,Wt={}){return(0,en.Intrinsic)(st,"Lowercase",Wt)}Wt.Lowercase=Lowercase},54406:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Uncapitalize=void 0;const en=Ot(25328);function Uncapitalize(st,Wt={}){return(0,en.Intrinsic)(st,"Uncapitalize",Wt)}Wt.Uncapitalize=Uncapitalize},24867:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Uppercase=void 0;const en=Ot(25328);function Uppercase(st,Wt={}){return(0,en.Intrinsic)(st,"Uppercase",Wt)}Wt.Uppercase=Uppercase},30666:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(58698),Wt)},58698:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Iterator=void 0;const en=Ot(45157);const tn=Ot(48121);function Iterator(st,Wt={}){return{...Wt,[tn.Kind]:"Iterator",type:"Iterator",items:(0,en.CloneType)(st)}}Wt.Iterator=Iterator},30658:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(10079),Wt);tn(Ot(41461),Wt);tn(Ot(80176),Wt)},10079:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.KeyOfFromMappedResult=void 0;const en=Ot(76675);const tn=Ot(80176);function FromProperties(st,Wt){return globalThis.Object.getOwnPropertyNames(st).reduce(((Ot,en)=>({...Ot,[en]:(0,tn.KeyOf)(st[en],Wt)})),{})}function FromMappedResult(st,Wt){return FromProperties(st.properties,Wt)}function KeyOfFromMappedResult(st,Wt){const Ot=FromMappedResult(st,Wt);return(0,en.MappedResult)(Ot)}Wt.KeyOfFromMappedResult=KeyOfFromMappedResult},41461:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.KeyOfPattern=Wt.KeyOfPropertyKeys=void 0;const en=Ot(89925);const tn=Ot(20109);function FromRest(st){return st.reduce(((st,Wt)=>[...st,KeyOfPropertyKeys(Wt)]),[])}function FromIntersect(st){const Wt=FromRest(st);const Ot=(0,en.SetUnionMany)(Wt);return Ot}function FromUnion(st){const Wt=FromRest(st);const Ot=(0,en.SetIntersectMany)(Wt);return Ot}function FromTuple(st){return st.map(((st,Wt)=>Wt.toString()))}function FromArray(st){return["[number]"]}function FromProperties(st){return globalThis.Object.getOwnPropertyNames(st)}function FromPatternProperties(st){if(!nn)return[];const Wt=globalThis.Object.getOwnPropertyNames(st);return Wt.map((st=>st[0]==="^"&&st[st.length-1]==="$"?st.slice(1,st.length-1):st))}function KeyOfPropertyKeys(st){return(0,tn.IsIntersect)(st)?FromIntersect(st.allOf):(0,tn.IsUnion)(st)?FromUnion(st.anyOf):(0,tn.IsTuple)(st)?FromTuple(st.items??[]):(0,tn.IsArray)(st)?FromArray(st.items):(0,tn.IsObject)(st)?FromProperties(st.properties):(0,tn.IsRecord)(st)?FromPatternProperties(st.patternProperties):[]}Wt.KeyOfPropertyKeys=KeyOfPropertyKeys;let nn=false;function KeyOfPattern(st){nn=true;const Wt=KeyOfPropertyKeys(st);nn=false;const Ot=Wt.map((st=>`(${st})`));return`^(${Ot.join("|")})$`}Wt.KeyOfPattern=KeyOfPattern},80176:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.KeyOf=Wt.KeyOfPropertyKeysToRest=void 0;const en=Ot(24727);const tn=Ot(46621);const nn=Ot(41461);const an=Ot(41743);const In=Ot(45157);const rn=Ot(10079);const cn=Ot(20109);function KeyOfPropertyKeysToRest(st){return st.map((st=>st==="[number]"?(0,tn.Number)():(0,en.Literal)(st)))}Wt.KeyOfPropertyKeysToRest=KeyOfPropertyKeysToRest;function KeyOf(st,Wt={}){if((0,cn.IsMappedResult)(st)){return(0,rn.KeyOfFromMappedResult)(st,Wt)}else{const Ot=(0,nn.KeyOfPropertyKeys)(st);const en=KeyOfPropertyKeysToRest(Ot);const tn=(0,an.UnionEvaluated)(en);return(0,In.CloneType)(tn,Wt)}}Wt.KeyOf=KeyOf},24727:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(79152),Wt)},79152:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Literal=void 0;const en=Ot(48121);function Literal(st,Wt={}){return{...Wt,[en.Kind]:"Literal",const:st,type:typeof st}}Wt.Literal=Literal},76675:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(55346),Wt);tn(Ot(19328),Wt);tn(Ot(12176),Wt)},55346:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.MappedKey=void 0;const en=Ot(48121);function MappedKey(st){return{[en.Kind]:"MappedKey",keys:st}}Wt.MappedKey=MappedKey},19328:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.MappedResult=void 0;const en=Ot(48121);function MappedResult(st){return{[en.Kind]:"MappedResult",properties:st}}Wt.MappedResult=MappedResult},12176:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Mapped=Wt.MappedFunctionReturnType=void 0;const en=Ot(48121);const tn=Ot(45157);const nn=Ot(62202);const an=Ot(59809);const In=Ot(32733);const rn=Ot(86232);const cn=Ot(72996);const on=Ot(89777);const sn=Ot(32945);const dn=Ot(30666);const un=Ot(24727);const pn=Ot(13871);const bn=Ot(31392);const mn=Ot(59573);const Gn=Ot(4102);const hn=Ot(82894);const Zn=Ot(41743);const An=Ot(89925);const Wn=Ot(19328);const Nn=Ot(20109);function FromMappedResult(st,Wt){return st in Wt?FromSchemaType(st,Wt[st]):(0,Wn.MappedResult)(Wt)}function MappedKeyToKnownMappedResultProperties(st){return{[st]:(0,un.Literal)(st)}}function MappedKeyToUnknownMappedResultProperties(st){return st.reduce(((st,Wt)=>({...st,[Wt]:(0,un.Literal)(Wt)})),{})}function MappedKeyToMappedResultProperties(st,Wt){return(0,An.SetIncludes)(Wt,st)?MappedKeyToKnownMappedResultProperties(st):MappedKeyToUnknownMappedResultProperties(Wt)}function FromMappedKey(st,Wt){const Ot=MappedKeyToMappedResultProperties(st,Wt);return FromMappedResult(st,Ot)}function FromRest(st,Wt){return Wt.map((Wt=>FromSchemaType(st,Wt)))}function FromProperties(st,Wt){return globalThis.Object.getOwnPropertyNames(Wt).reduce(((Ot,en)=>({...Ot,[en]:FromSchemaType(st,Wt[en])})),{})}function FromSchemaType(st,Wt){return(0,Nn.IsOptional)(Wt)?(0,bn.Optional)(FromSchemaType(st,(0,nn.Discard)(Wt,[en.OptionalKind]))):(0,Nn.IsReadonly)(Wt)?(0,Gn.Readonly)(FromSchemaType(st,(0,nn.Discard)(Wt,[en.ReadonlyKind]))):(0,Nn.IsMappedResult)(Wt)?FromMappedResult(st,Wt.properties):(0,Nn.IsMappedKey)(Wt)?FromMappedKey(st,Wt.keys):(0,Nn.IsConstructor)(Wt)?(0,rn.Constructor)(FromRest(st,Wt.parameters),FromSchemaType(st,Wt.returns)):(0,Nn.IsFunction)(Wt)?(0,cn.Function)(FromRest(st,Wt.parameters),FromSchemaType(st,Wt.returns)):(0,Nn.IsAsyncIterator)(Wt)?(0,In.AsyncIterator)(FromSchemaType(st,Wt.items)):(0,Nn.IsIterator)(Wt)?(0,dn.Iterator)(FromSchemaType(st,Wt.items)):(0,Nn.IsIntersect)(Wt)?(0,sn.Intersect)(FromRest(st,Wt.allOf)):(0,Nn.IsUnion)(Wt)?(0,Zn.Union)(FromRest(st,Wt.anyOf)):(0,Nn.IsTuple)(Wt)?(0,hn.Tuple)(FromRest(st,Wt.items??[])):(0,Nn.IsObject)(Wt)?(0,pn.Object)(FromProperties(st,Wt.properties)):(0,Nn.IsArray)(Wt)?(0,an.Array)(FromSchemaType(st,Wt.items)):(0,Nn.IsPromise)(Wt)?(0,mn.Promise)(FromSchemaType(st,Wt.item)):Wt}function MappedFunctionReturnType(st,Wt,Ot={}){return st.reduce(((st,Ot)=>({...st,[Ot]:FromSchemaType(Ot,Wt)})),{})}Wt.MappedFunctionReturnType=MappedFunctionReturnType;function Mapped(st,Wt,Ot={}){const nn=(0,Nn.IsSchema)(st)?(0,on.IndexPropertyKeys)(st):st;const an=Wt({[en.Kind]:"MappedKey",keys:nn});const In=MappedFunctionReturnType(nn,an);return(0,tn.CloneType)((0,pn.Object)(In),Ot)}Wt.Mapped=Mapped},22346:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(55348),Wt)},55348:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Never=void 0;const en=Ot(48121);function Never(st={}){return{...st,[en.Kind]:"Never",not:{}}}Wt.Never=Never},9741:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(13064),Wt)},13064:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Not=void 0;const en=Ot(45157);const tn=Ot(48121);function Not(st,Wt){return{...Wt,[tn.Kind]:"Not",not:(0,en.CloneType)(st)}}Wt.Not=Not},4513:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(35608),Wt)},35608:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Null=void 0;const en=Ot(48121);function Null(st={}){return{...st,[en.Kind]:"Null",type:"null"}}Wt.Null=Null},46621:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(61864),Wt)},61864:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Number=void 0;const en=Ot(48121);function Number(st={}){return{...st,[en.Kind]:"Number",type:"number"}}Wt.Number=Number},13871:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(49312),Wt)},49312:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Object=void 0;const en=Ot(45157);const tn=Ot(48121);const nn=Ot(20109);function _Object(st,Wt={}){const Ot=globalThis.Object.getOwnPropertyNames(st);const an=Ot.filter((Wt=>(0,nn.IsOptional)(st[Wt])));const In=Ot.filter((st=>!an.includes(st)));const rn=(0,nn.IsSchema)(Wt.additionalProperties)?{additionalProperties:(0,en.CloneType)(Wt.additionalProperties)}:{};const cn=Ot.reduce(((Wt,Ot)=>({...Wt,[Ot]:(0,en.CloneType)(st[Ot])})),{});return In.length>0?{...Wt,...rn,[tn.Kind]:"Object",type:"object",properties:cn,required:In}:{...Wt,...rn,[tn.Kind]:"Object",type:"object",properties:cn}}Wt.Object=_Object},56497:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(52580),Wt);tn(Ot(60175),Wt);tn(Ot(49728),Wt)},52580:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.OmitFromMappedKey=void 0;const en=Ot(76675);const tn=Ot(49728);function FromPropertyKey(st,Wt,Ot){return{[Wt]:(0,tn.Omit)(st,[Wt],Ot)}}function FromPropertyKeys(st,Wt,Ot){return Wt.reduce(((Wt,en)=>({...Wt,...FromPropertyKey(st,en,Ot)})),{})}function FromMappedKey(st,Wt,Ot){return FromPropertyKeys(st,Wt.keys,Ot)}function OmitFromMappedKey(st,Wt,Ot){const tn=FromMappedKey(st,Wt,Ot);return(0,en.MappedResult)(tn)}Wt.OmitFromMappedKey=OmitFromMappedKey},60175:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.OmitFromMappedResult=void 0;const en=Ot(76675);const tn=Ot(49728);function FromProperties(st,Wt,Ot){return globalThis.Object.getOwnPropertyNames(st).reduce(((en,nn)=>({...en,[nn]:(0,tn.Omit)(st[nn],Wt,Ot)})),{})}function FromMappedResult(st,Wt,Ot){return FromProperties(st.properties,Wt,Ot)}function OmitFromMappedResult(st,Wt,Ot){const tn=FromMappedResult(st,Wt,Ot);return(0,en.MappedResult)(tn)}Wt.OmitFromMappedResult=OmitFromMappedResult},49728:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Omit=void 0;const en=Ot(32945);const tn=Ot(41743);const nn=Ot(13871);const an=Ot(89777);const In=Ot(62202);const rn=Ot(48121);const cn=Ot(45157);const on=Ot(52580);const sn=Ot(60175);const dn=Ot(20109);function FromIntersect(st,Wt){return st.map((st=>OmitResolve(st,Wt)))}function FromUnion(st,Wt){return st.map((st=>OmitResolve(st,Wt)))}function FromProperty(st,Wt){const{[Wt]:Ot,...en}=st;return en}function FromProperties(st,Wt){return Wt.reduce(((st,Wt)=>FromProperty(st,Wt)),st)}function OmitResolve(st,Wt){return(0,dn.IsIntersect)(st)?(0,en.Intersect)(FromIntersect(st.allOf,Wt)):(0,dn.IsUnion)(st)?(0,tn.Union)(FromUnion(st.anyOf,Wt)):(0,dn.IsObject)(st)?(0,nn.Object)(FromProperties(st.properties,Wt)):(0,nn.Object)({})}function Omit(st,Wt,Ot={}){if((0,dn.IsMappedKey)(Wt))return(0,on.OmitFromMappedKey)(st,Wt,Ot);if((0,dn.IsMappedResult)(st))return(0,sn.OmitFromMappedResult)(st,Wt,Ot);const en=(0,dn.IsSchema)(Wt)?(0,an.IndexPropertyKeys)(Wt):Wt;const tn=(0,In.Discard)(st,[rn.TransformKind,"$id","required"]);const nn=(0,cn.CloneType)(OmitResolve(st,en),Ot);return{...tn,...nn}}Wt.Omit=Omit},31392:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(90313),Wt);tn(Ot(28266),Wt)},90313:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.OptionalFromMappedResult=void 0;const en=Ot(76675);const tn=Ot(28266);function FromProperties(st,Wt){return globalThis.Object.getOwnPropertyNames(st).reduce(((Ot,en)=>({...Ot,[en]:(0,tn.Optional)(st[en],Wt)})),{})}function FromMappedResult(st,Wt){return FromProperties(st.properties,Wt)}function OptionalFromMappedResult(st,Wt){const Ot=FromMappedResult(st,Wt);return(0,en.MappedResult)(Ot)}Wt.OptionalFromMappedResult=OptionalFromMappedResult},28266:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Optional=void 0;const en=Ot(48121);const tn=Ot(45157);const nn=Ot(62202);const an=Ot(90313);const In=Ot(20109);function RemoveOptional(st){return(0,nn.Discard)((0,tn.CloneType)(st),[en.OptionalKind])}function AddOptional(st){return{...(0,tn.CloneType)(st),[en.OptionalKind]:"Optional"}}function OptionalWithFlag(st,Wt){return Wt===false?RemoveOptional(st):AddOptional(st)}function Optional(st,Wt){const Ot=Wt??true;return(0,In.IsMappedResult)(st)?(0,an.OptionalFromMappedResult)(st,Ot):OptionalWithFlag(st,Ot)}Wt.Optional=Optional},80264:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(27405),Wt)},27405:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Parameters=void 0;const en=Ot(82894);const tn=Ot(45157);function Parameters(st,Wt={}){return(0,en.Tuple)((0,tn.CloneRest)(st.parameters),{...Wt})}Wt.Parameters=Parameters},96405:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(25995),Wt);tn(Ot(84204),Wt)},25995:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.PartialFromMappedResult=void 0;const en=Ot(76675);const tn=Ot(84204);function FromProperties(st,Wt){return globalThis.Object.getOwnPropertyNames(st).reduce(((Ot,en)=>({...Ot,[en]:(0,tn.Partial)(st[en],Wt)})),{})}function FromMappedResult(st,Wt){return FromProperties(st.properties,Wt)}function PartialFromMappedResult(st,Wt){const Ot=FromMappedResult(st,Wt);return(0,en.MappedResult)(Ot)}Wt.PartialFromMappedResult=PartialFromMappedResult},84204:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Partial=void 0;const en=Ot(31392);const tn=Ot(13871);const nn=Ot(32945);const an=Ot(41743);const In=Ot(62202);const rn=Ot(48121);const cn=Ot(45157);const on=Ot(25995);const sn=Ot(20109);function FromRest(st){return st.map((st=>PartialResolve(st)))}function FromProperties(st){return globalThis.Object.getOwnPropertyNames(st).reduce(((Wt,Ot)=>({...Wt,[Ot]:(0,en.Optional)(st[Ot])})),{})}function PartialResolve(st){return(0,sn.IsIntersect)(st)?(0,nn.Intersect)(FromRest(st.allOf)):(0,sn.IsUnion)(st)?(0,an.Union)(FromRest(st.anyOf)):(0,sn.IsObject)(st)?(0,tn.Object)(FromProperties(st.properties)):(0,tn.Object)({})}function Partial(st,Wt={}){if((0,sn.IsMappedResult)(st))return(0,on.PartialFromMappedResult)(st,Wt);const Ot=(0,In.Discard)(st,[rn.TransformKind,"$id","required"]);const en=(0,cn.CloneType)(PartialResolve(st),Wt);return{...Ot,...en}}Wt.Partial=Partial},50059:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(7992),Wt)},7992:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.PatternStringExact=Wt.PatternNumberExact=Wt.PatternBooleanExact=Wt.PatternString=Wt.PatternNumber=Wt.PatternBoolean=void 0;Wt.PatternBoolean="(true|false)";Wt.PatternNumber="(0|[1-9][0-9]*)";Wt.PatternString="(.*)";Wt.PatternBooleanExact=`^${Wt.PatternBoolean}$`;Wt.PatternNumberExact=`^${Wt.PatternNumber}$`;Wt.PatternStringExact=`^${Wt.PatternString}$`},53861:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(85827),Wt);tn(Ot(40011),Wt);tn(Ot(60940),Wt)},85827:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.PickFromMappedKey=void 0;const en=Ot(76675);const tn=Ot(60940);function FromPropertyKey(st,Wt,Ot){return{[Wt]:(0,tn.Pick)(st,[Wt],Ot)}}function FromPropertyKeys(st,Wt,Ot){return Wt.reduce(((Wt,en)=>({...Wt,...FromPropertyKey(st,en,Ot)})),{})}function FromMappedKey(st,Wt,Ot){return FromPropertyKeys(st,Wt.keys,Ot)}function PickFromMappedKey(st,Wt,Ot){const tn=FromMappedKey(st,Wt,Ot);return(0,en.MappedResult)(tn)}Wt.PickFromMappedKey=PickFromMappedKey},40011:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.PickFromMappedResult=void 0;const en=Ot(76675);const tn=Ot(60940);function FromProperties(st,Wt,Ot){return globalThis.Object.getOwnPropertyNames(st).reduce(((en,nn)=>({...en,[nn]:(0,tn.Pick)(st[nn],Wt,Ot)})),{})}function FromMappedResult(st,Wt,Ot){return FromProperties(st.properties,Wt,Ot)}function PickFromMappedResult(st,Wt,Ot){const tn=FromMappedResult(st,Wt,Ot);return(0,en.MappedResult)(tn)}Wt.PickFromMappedResult=PickFromMappedResult},60940:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Pick=void 0;const en=Ot(32945);const tn=Ot(41743);const nn=Ot(13871);const an=Ot(89777);const In=Ot(62202);const rn=Ot(48121);const cn=Ot(45157);const on=Ot(85827);const sn=Ot(40011);const dn=Ot(20109);function FromIntersect(st,Wt){return st.map((st=>PickResolve(st,Wt)))}function FromUnion(st,Wt){return st.map((st=>PickResolve(st,Wt)))}function FromProperties(st,Wt){return Wt.reduce(((Wt,Ot)=>Ot in st?{...Wt,[Ot]:st[Ot]}:Wt),{})}function PickResolve(st,Wt){return(0,dn.IsIntersect)(st)?(0,en.Intersect)(FromIntersect(st.allOf,Wt)):(0,dn.IsUnion)(st)?(0,tn.Union)(FromUnion(st.anyOf,Wt)):(0,dn.IsObject)(st)?(0,nn.Object)(FromProperties(st.properties,Wt)):(0,nn.Object)({})}function Pick(st,Wt,Ot={}){if((0,dn.IsMappedKey)(Wt))return(0,on.PickFromMappedKey)(st,Wt,Ot);if((0,dn.IsMappedResult)(st))return(0,sn.PickFromMappedResult)(st,Wt,Ot);const en=(0,dn.IsSchema)(Wt)?(0,an.IndexPropertyKeys)(Wt):Wt;const tn=(0,In.Discard)(st,[rn.TransformKind,"$id","required"]);const nn=(0,cn.CloneType)(PickResolve(st,en),Ot);return{...tn,...nn}}Wt.Pick=Pick},59573:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(85932),Wt)},85932:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Promise=void 0;const en=Ot(45157);const tn=Ot(48121);function Promise(st,Wt={}){return{...Wt,[tn.Kind]:"Promise",type:"Promise",item:(0,en.CloneType)(st)}}Wt.Promise=Promise},51257:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(15600),Wt)},15600:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.ReadonlyOptional=void 0;const en=Ot(4102);const tn=Ot(31392);function ReadonlyOptional(st){return(0,en.Readonly)((0,tn.Optional)(st))}Wt.ReadonlyOptional=ReadonlyOptional},4102:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(10725),Wt);tn(Ot(52902),Wt)},10725:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.ReadonlyFromMappedResult=void 0;const en=Ot(76675);const tn=Ot(52902);function FromProperties(st,Wt){return globalThis.Object.getOwnPropertyNames(st).reduce(((Ot,en)=>({...Ot,[en]:(0,tn.Readonly)(st[en],Wt)})),{})}function FromMappedResult(st,Wt){return FromProperties(st.properties,Wt)}function ReadonlyFromMappedResult(st,Wt){const Ot=FromMappedResult(st,Wt);return(0,en.MappedResult)(Ot)}Wt.ReadonlyFromMappedResult=ReadonlyFromMappedResult},52902:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Readonly=void 0;const en=Ot(48121);const tn=Ot(45157);const nn=Ot(62202);const an=Ot(10725);const In=Ot(20109);function RemoveReadonly(st){return(0,nn.Discard)((0,tn.CloneType)(st),[en.ReadonlyKind])}function AddReadonly(st){return{...(0,tn.CloneType)(st),[en.ReadonlyKind]:"Readonly"}}function ReadonlyWithFlag(st,Wt){return Wt===false?RemoveReadonly(st):AddReadonly(st)}function Readonly(st,Wt){const Ot=Wt??true;return(0,In.IsMappedResult)(st)?(0,an.ReadonlyFromMappedResult)(st,Ot):ReadonlyWithFlag(st,Ot)}Wt.Readonly=Readonly},59961:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(40580),Wt)},40580:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Record=void 0;const en=Ot(13871);const tn=Ot(22346);const nn=Ot(41743);const an=Ot(90984);const In=Ot(50059);const rn=Ot(89777);const cn=Ot(48121);const on=Ot(45157);const sn=Ot(87280);const dn=Ot(20109);function RecordCreateFromPattern(st,Wt,Ot){return{...Ot,[cn.Kind]:"Record",type:"object",patternProperties:{[st]:(0,on.CloneType)(Wt)}}}function RecordCreateFromKeys(st,Wt,Ot){const tn=st.reduce(((st,Ot)=>({...st,[Ot]:(0,on.CloneType)(Wt)})),{});return(0,en.Object)(tn,{...Ot,[cn.Hint]:"Record"})}function FromTemplateLiteralKey(st,Wt,Ot){return(0,an.IsTemplateLiteralFinite)(st)?RecordCreateFromKeys((0,rn.IndexPropertyKeys)(st),Wt,Ot):RecordCreateFromPattern(st.pattern,Wt,Ot)}function FromUnionKey(st,Wt,Ot){return RecordCreateFromKeys((0,rn.IndexPropertyKeys)((0,nn.Union)(st)),Wt,Ot)}function FromLiteralKey(st,Wt,Ot){return RecordCreateFromKeys([st.toString()],Wt,Ot)}function FromRegExpKey(st,Wt,Ot){return RecordCreateFromPattern(st.source,Wt,Ot)}function FromStringKey(st,Wt,Ot){const en=(0,sn.IsUndefined)(st.pattern)?In.PatternStringExact:st.pattern;return RecordCreateFromPattern(en,Wt,Ot)}function FromIntegerKey(st,Wt,Ot){return RecordCreateFromPattern(In.PatternNumberExact,Wt,Ot)}function FromNumberKey(st,Wt,Ot){return RecordCreateFromPattern(In.PatternNumberExact,Wt,Ot)}function Record(st,Wt,Ot={}){return(0,dn.IsUnion)(st)?FromUnionKey(st.anyOf,Wt,Ot):(0,dn.IsTemplateLiteral)(st)?FromTemplateLiteralKey(st,Wt,Ot):(0,dn.IsLiteral)(st)?FromLiteralKey(st.const,Wt,Ot):(0,dn.IsInteger)(st)?FromIntegerKey(st,Wt,Ot):(0,dn.IsNumber)(st)?FromNumberKey(st,Wt,Ot):(0,dn.IsRegExp)(st)?FromRegExpKey(st,Wt,Ot):(0,dn.IsString)(st)?FromStringKey(st,Wt,Ot):(0,tn.Never)(Ot)}Wt.Record=Record},81816:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(81636),Wt)},81636:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Recursive=void 0;const en=Ot(45157);const tn=Ot(87280);const nn=Ot(48121);let an=0;function Recursive(st,Wt={}){if((0,tn.IsUndefined)(Wt.$id))Wt.$id=`T${an++}`;const Ot=st({[nn.Kind]:"This",$ref:`${Wt.$id}`});Ot.$id=Wt.$id;return(0,en.CloneType)({...Wt,[nn.Hint]:"Recursive",...Ot})}Wt.Recursive=Recursive},29105:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(98264),Wt)},98264:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Ref=void 0;const en=Ot(48121);const tn=Ot(87280);function Ref(st,Wt={}){if((0,tn.IsString)(st))return{...Wt,[en.Kind]:"Ref",$ref:st};if((0,tn.IsUndefined)(st.$id))throw new Error("Reference target type must specify an $id");return{...Wt,[en.Kind]:"Ref",$ref:st.$id}}Wt.Ref=Ref},34865:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(21260),Wt)},21260:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.RegExp=void 0;const en=Ot(87280);const tn=Ot(48121);function RegExp(st,Wt={}){const Ot=(0,en.IsString)(st)?new globalThis.RegExp(st):st;return{...Wt,[tn.Kind]:"RegExp",type:"RegExp",source:Ot.source,flags:Ot.flags}}Wt.RegExp=RegExp},34964:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Get=Wt.Set=Wt.Has=Wt.Delete=Wt.Clear=Wt.Entries=void 0;const Ot=new Map;function Entries(){return new Map(Ot)}Wt.Entries=Entries;function Clear(){return Ot.clear()}Wt.Clear=Clear;function Delete(st){return Ot.delete(st)}Wt.Delete=Delete;function Has(st){return Ot.has(st)}Wt.Has=Has;function Set(st,Wt){Ot.set(st,Wt)}Wt.Set=Set;function Get(st){return Ot.get(st)}Wt.Get=Get},97759:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.TypeRegistry=Wt.FormatRegistry=void 0;Wt.FormatRegistry=Ot(34964);Wt.TypeRegistry=Ot(80019)},80019:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Get=Wt.Set=Wt.Has=Wt.Delete=Wt.Clear=Wt.Entries=void 0;const Ot=new Map;function Entries(){return new Map(Ot)}Wt.Entries=Entries;function Clear(){return Ot.clear()}Wt.Clear=Clear;function Delete(st){return Ot.delete(st)}Wt.Delete=Delete;function Has(st){return Ot.has(st)}Wt.Has=Has;function Set(st,Wt){Ot.set(st,Wt)}Wt.Set=Set;function Get(st){return Ot.get(st)}Wt.Get=Get},83397:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(82211),Wt);tn(Ot(72964),Wt)},82211:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.RequiredFromMappedResult=void 0;const en=Ot(76675);const tn=Ot(72964);function FromProperties(st,Wt){return globalThis.Object.getOwnPropertyNames(st).reduce(((Ot,en)=>({...Ot,[en]:(0,tn.Required)(st[en],Wt)})),{})}function FromMappedResult(st,Wt){return FromProperties(st.properties,Wt)}function RequiredFromMappedResult(st,Wt){const Ot=FromMappedResult(st,Wt);return(0,en.MappedResult)(Ot)}Wt.RequiredFromMappedResult=RequiredFromMappedResult},72964:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Required=void 0;const en=Ot(32945);const tn=Ot(41743);const nn=Ot(13871);const an=Ot(48121);const In=Ot(45157);const rn=Ot(62202);const cn=Ot(82211);const on=Ot(20109);function FromRest(st){return st.map((st=>RequiredResolve(st)))}function FromProperties(st){return globalThis.Object.getOwnPropertyNames(st).reduce(((Wt,Ot)=>({...Wt,[Ot]:(0,rn.Discard)(st[Ot],[an.OptionalKind])})),{})}function RequiredResolve(st){return(0,on.IsIntersect)(st)?(0,en.Intersect)(FromRest(st.allOf)):(0,on.IsUnion)(st)?(0,tn.Union)(FromRest(st.anyOf)):(0,on.IsObject)(st)?(0,nn.Object)(FromProperties(st.properties)):(0,nn.Object)({})}function Required(st,Wt={}){if((0,on.IsMappedResult)(st)){return(0,cn.RequiredFromMappedResult)(st,Wt)}else{const Ot=(0,rn.Discard)(st,[an.TransformKind,"$id","required"]);const en=(0,In.CloneType)(RequiredResolve(st),Wt);return{...Ot,...en}}}Wt.Required=Required},47686:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(96538),Wt)},96538:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Rest=void 0;const en=Ot(45157);const tn=Ot(20109);function RestResolve(st){return(0,tn.IsIntersect)(st)?[...st.allOf]:(0,tn.IsUnion)(st)?[...st.anyOf]:(0,tn.IsTuple)(st)?[...st.items??[]]:[]}function Rest(st){return(0,en.CloneRest)(RestResolve(st))}Wt.Rest=Rest},89861:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(45316),Wt)},45316:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.ReturnType=void 0;const en=Ot(45157);function ReturnType(st,Wt={}){return(0,en.CloneType)(st.returns,Wt)}Wt.ReturnType=ReturnType},85566:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true})},94987:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(85566),Wt);tn(Ot(49016),Wt)},49016:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});const en=Ot(48121)},89925:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(36393),Wt)},36393:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.SetUnionMany=Wt.SetIntersectMany=Wt.SetComplement=Wt.SetUnion=Wt.SetIntersect=Wt.SetDistinct=Wt.SetIsSubset=Wt.SetIncludes=void 0;function SetIncludes(st,Wt){return st.includes(Wt)}Wt.SetIncludes=SetIncludes;function SetIsSubset(st,Wt){return st.every((st=>SetIncludes(Wt,st)))}Wt.SetIsSubset=SetIsSubset;function SetDistinct(st){return[...new Set(st)]}Wt.SetDistinct=SetDistinct;function SetIntersect(st,Wt){return st.filter((st=>Wt.includes(st)))}Wt.SetIntersect=SetIntersect;function SetUnion(st,Wt){return[...st,...Wt]}Wt.SetUnion=SetUnion;function SetComplement(st,Wt){return st.filter((st=>!Wt.includes(st)))}Wt.SetComplement=SetComplement;function SetIntersectManyResolve(st,Wt){return st.reduce(((st,Wt)=>SetIntersect(st,Wt)),Wt)}function SetIntersectMany(st){return st.length===1?st[0]:st.length>1?SetIntersectManyResolve(st.slice(1),st[0]):[]}Wt.SetIntersectMany=SetIntersectMany;function SetUnionMany(st){return st.reduce(((st,Wt)=>[...st,...Wt]),[])}Wt.SetUnionMany=SetUnionMany},2222:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(23230),Wt)},23230:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true})},94313:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(82416),Wt)},82416:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Strict=void 0;function Strict(st){return JSON.parse(JSON.stringify(st))}Wt.Strict=Strict},69429:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(95588),Wt)},95588:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.String=void 0;const en=Ot(48121);function String(st={}){return{...st,[en.Kind]:"String",type:"string"}}Wt.String=String},69656:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(27194),Wt)},27194:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Symbol=void 0;const en=Ot(48121);function Symbol(st){return{...st,[en.Kind]:"Symbol",type:"symbol"}}Wt.Symbol=Symbol},48121:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(51616),Wt)},51616:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Kind=Wt.Hint=Wt.OptionalKind=Wt.ReadonlyKind=Wt.TransformKind=void 0;Wt.TransformKind=Symbol.for("TypeBox.Transform");Wt.ReadonlyKind=Symbol.for("TypeBox.Readonly");Wt.OptionalKind=Symbol.for("TypeBox.Optional");Wt.Hint=Symbol.for("TypeBox.Hint");Wt.Kind=Symbol.for("TypeBox.Kind")},6313:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.IsTemplateLiteralFinite=Wt.IsTemplateLiteralExpressionFinite=Wt.TemplateLiteralFiniteError=void 0;const en=Ot(31739);const tn=Ot(94526);class TemplateLiteralFiniteError extends tn.TypeBoxError{}Wt.TemplateLiteralFiniteError=TemplateLiteralFiniteError;function IsNumberExpression(st){return st.type==="or"&&st.expr.length===2&&st.expr[0].type==="const"&&st.expr[0].const==="0"&&st.expr[1].type==="const"&&st.expr[1].const==="[1-9][0-9]*"}function IsBooleanExpression(st){return st.type==="or"&&st.expr.length===2&&st.expr[0].type==="const"&&st.expr[0].const==="true"&&st.expr[1].type==="const"&&st.expr[1].const==="false"}function IsStringExpression(st){return st.type==="const"&&st.const===".*"}function IsTemplateLiteralExpressionFinite(st){return IsNumberExpression(st)||IsStringExpression(st)?false:IsBooleanExpression(st)?true:st.type==="and"?st.expr.every((st=>IsTemplateLiteralExpressionFinite(st))):st.type==="or"?st.expr.every((st=>IsTemplateLiteralExpressionFinite(st))):st.type==="const"?true:(()=>{throw new TemplateLiteralFiniteError(`Unknown expression type`)})()}Wt.IsTemplateLiteralExpressionFinite=IsTemplateLiteralExpressionFinite;function IsTemplateLiteralFinite(st){const Wt=(0,en.TemplateLiteralParseExact)(st.pattern);return IsTemplateLiteralExpressionFinite(Wt)}Wt.IsTemplateLiteralFinite=IsTemplateLiteralFinite},41517:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.TemplateLiteralGenerate=Wt.TemplateLiteralExpressionGenerate=Wt.TemplateLiteralGenerateError=void 0;const en=Ot(6313);const tn=Ot(31739);const nn=Ot(94526);class TemplateLiteralGenerateError extends nn.TypeBoxError{}Wt.TemplateLiteralGenerateError=TemplateLiteralGenerateError;function*GenerateReduce(st){if(st.length===1)return yield*st[0];for(const Wt of st[0]){for(const Ot of GenerateReduce(st.slice(1))){yield`${Wt}${Ot}`}}}function*GenerateAnd(st){return yield*GenerateReduce(st.expr.map((st=>[...TemplateLiteralExpressionGenerate(st)])))}function*GenerateOr(st){for(const Wt of st.expr)yield*TemplateLiteralExpressionGenerate(Wt)}function*GenerateConst(st){return yield st.const}function*TemplateLiteralExpressionGenerate(st){return st.type==="and"?yield*GenerateAnd(st):st.type==="or"?yield*GenerateOr(st):st.type==="const"?yield*GenerateConst(st):(()=>{throw new TemplateLiteralGenerateError("Unknown expression")})()}Wt.TemplateLiteralExpressionGenerate=TemplateLiteralExpressionGenerate;function TemplateLiteralGenerate(st){const Wt=(0,tn.TemplateLiteralParseExact)(st.pattern);return(0,en.IsTemplateLiteralExpressionFinite)(Wt)?[...TemplateLiteralExpressionGenerate(Wt)]:[]}Wt.TemplateLiteralGenerate=TemplateLiteralGenerate},90984:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(6313),Wt);tn(Ot(41517),Wt);tn(Ot(21485),Wt);tn(Ot(31739),Wt);tn(Ot(35042),Wt);tn(Ot(91723),Wt);tn(Ot(77706),Wt)},31739:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.TemplateLiteralParseExact=Wt.TemplateLiteralParse=Wt.TemplateLiteralParserError=void 0;const en=Ot(94526);class TemplateLiteralParserError extends en.TypeBoxError{}Wt.TemplateLiteralParserError=TemplateLiteralParserError;function Unescape(st){return st.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function IsNonEscaped(st,Wt,Ot){return st[Wt]===Ot&&st.charCodeAt(Wt-1)!==92}function IsOpenParen(st,Wt){return IsNonEscaped(st,Wt,"(")}function IsCloseParen(st,Wt){return IsNonEscaped(st,Wt,")")}function IsSeparator(st,Wt){return IsNonEscaped(st,Wt,"|")}function IsGroup(st){if(!(IsOpenParen(st,0)&&IsCloseParen(st,st.length-1)))return false;let Wt=0;for(let Ot=0;Ot0)en.push(TemplateLiteralParse(Wt));Ot=tn+1}}const tn=st.slice(Ot);if(tn.length>0)en.push(TemplateLiteralParse(tn));if(en.length===0)return{type:"const",const:""};if(en.length===1)return en[0];return{type:"or",expr:en}}function And(st){function Group(st,Wt){if(!IsOpenParen(st,Wt))throw new TemplateLiteralParserError(`TemplateLiteralParser: Index must point to open parens`);let Ot=0;for(let en=Wt;en0)Wt.push(TemplateLiteralParse(nn));Ot=tn-1}}return Wt.length===0?{type:"const",const:""}:Wt.length===1?Wt[0]:{type:"and",expr:Wt}}function TemplateLiteralParse(st){return IsGroup(st)?TemplateLiteralParse(InGroup(st)):IsPrecedenceOr(st)?Or(st):IsPrecedenceAnd(st)?And(st):{type:"const",const:Unescape(st)}}Wt.TemplateLiteralParse=TemplateLiteralParse;function TemplateLiteralParseExact(st){return TemplateLiteralParse(st.slice(1,st.length-1))}Wt.TemplateLiteralParseExact=TemplateLiteralParseExact},35042:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.TemplateLiteralPattern=Wt.TemplateLiteralPatternError=void 0;const en=Ot(50059);const tn=Ot(48121);const nn=Ot(94526);const an=Ot(20109);class TemplateLiteralPatternError extends nn.TypeBoxError{}Wt.TemplateLiteralPatternError=TemplateLiteralPatternError;function Escape(st){return st.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Visit(st,Wt){return(0,an.IsTemplateLiteral)(st)?st.pattern.slice(1,st.pattern.length-1):(0,an.IsUnion)(st)?`(${st.anyOf.map((st=>Visit(st,Wt))).join("|")})`:(0,an.IsNumber)(st)?`${Wt}${en.PatternNumber}`:(0,an.IsInteger)(st)?`${Wt}${en.PatternNumber}`:(0,an.IsBigInt)(st)?`${Wt}${en.PatternNumber}`:(0,an.IsString)(st)?`${Wt}${en.PatternString}`:(0,an.IsLiteral)(st)?`${Wt}${Escape(st.const.toString())}`:(0,an.IsBoolean)(st)?`${Wt}${en.PatternBoolean}`:(()=>{throw new TemplateLiteralPatternError(`Unexpected Kind '${st[tn.Kind]}'`)})()}function TemplateLiteralPattern(st){return`^${st.map((st=>Visit(st,""))).join("")}$`}Wt.TemplateLiteralPattern=TemplateLiteralPattern},21485:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.TemplateLiteralSyntax=void 0;const en=Ot(24727);const tn=Ot(89168);const nn=Ot(37383);const an=Ot(46621);const In=Ot(69429);const rn=Ot(41743);const cn=Ot(22346);function*FromUnion(st){const Wt=st.trim().replace(/"|'/g,"");return Wt==="boolean"?yield(0,tn.Boolean)():Wt==="number"?yield(0,an.Number)():Wt==="bigint"?yield(0,nn.BigInt)():Wt==="string"?yield(0,In.String)():yield(()=>{const st=Wt.split("|").map((st=>(0,en.Literal)(st.trim())));return st.length===0?(0,cn.Never)():st.length===1?st[0]:(0,rn.UnionEvaluated)(st)})()}function*FromTerminal(st){if(st[1]!=="{"){const Wt=(0,en.Literal)("$");const Ot=FromSyntax(st.slice(1));return yield*[Wt,...Ot]}for(let Wt=2;Wt{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.TemplateLiteral=void 0;const en=Ot(21485);const tn=Ot(35042);const nn=Ot(87280);const an=Ot(48121);function TemplateLiteral(st,Wt={}){const Ot=(0,nn.IsString)(st)?(0,tn.TemplateLiteralPattern)((0,en.TemplateLiteralSyntax)(st)):(0,tn.TemplateLiteralPattern)(st);return{...Wt,[an.Kind]:"TemplateLiteral",type:"string",pattern:Ot}}Wt.TemplateLiteral=TemplateLiteral},91723:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.TemplateLiteralToUnion=void 0;const en=Ot(41743);const tn=Ot(24727);const nn=Ot(41517);function TemplateLiteralToUnion(st){const Wt=(0,nn.TemplateLiteralGenerate)(st);const Ot=Wt.map((st=>(0,tn.Literal)(st)));return(0,en.UnionEvaluated)(Ot)}Wt.TemplateLiteralToUnion=TemplateLiteralToUnion},60304:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(24256),Wt)},24256:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Transform=Wt.TransformEncodeBuilder=Wt.TransformDecodeBuilder=void 0;const en=Ot(48121);const tn=Ot(45157);const nn=Ot(20109);class TransformDecodeBuilder{constructor(st){this.schema=st}Decode(st){return new TransformEncodeBuilder(this.schema,st)}}Wt.TransformDecodeBuilder=TransformDecodeBuilder;class TransformEncodeBuilder{constructor(st,Wt){this.schema=st;this.decode=Wt}EncodeTransform(st,Wt){const Encode=Ot=>Wt[en.TransformKind].Encode(st(Ot));const Decode=st=>this.decode(Wt[en.TransformKind].Decode(st));const Ot={Encode:Encode,Decode:Decode};return{...Wt,[en.TransformKind]:Ot}}EncodeSchema(st,Wt){const Ot={Decode:this.decode,Encode:st};return{...Wt,[en.TransformKind]:Ot}}Encode(st){const Wt=(0,tn.CloneType)(this.schema);return(0,nn.IsTransform)(Wt)?this.EncodeTransform(st,Wt):this.EncodeSchema(st,Wt)}}Wt.TransformEncodeBuilder=TransformEncodeBuilder;function Transform(st){return new TransformDecodeBuilder(st)}Wt.Transform=Transform},82894:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(77460),Wt)},77460:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Tuple=void 0;const en=Ot(45157);const tn=Ot(48121);function Tuple(st,Wt={}){const[Ot,nn,an]=[false,st.length,st.length];return st.length>0?{...Wt,[tn.Kind]:"Tuple",type:"array",items:(0,en.CloneRest)(st),additionalItems:Ot,minItems:nn,maxItems:an}:{...Wt,[tn.Kind]:"Tuple",type:"array",minItems:nn,maxItems:an}}Wt.Tuple=Tuple},55764:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Type=Wt.JavaScriptTypeBuilder=Wt.JsonTypeBuilder=void 0;var en=Ot(62012);Object.defineProperty(Wt,"JsonTypeBuilder",{enumerable:true,get:function(){return en.JsonTypeBuilder}});const tn=Ot(88274);const nn=Ot(30977);Object.defineProperty(Wt,"JavaScriptTypeBuilder",{enumerable:true,get:function(){return nn.JavaScriptTypeBuilder}});const an=tn;Wt.Type=an},30977:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.JavaScriptTypeBuilder=void 0;const en=Ot(62012);const tn=Ot(32733);const nn=Ot(52779);const an=Ot(37383);const In=Ot(86232);const rn=Ot(76835);const cn=Ot(89816);const on=Ot(72996);const sn=Ot(33458);const dn=Ot(30666);const un=Ot(80264);const pn=Ot(59573);const bn=Ot(34865);const mn=Ot(89861);const Gn=Ot(69656);const hn=Ot(91305);const Zn=Ot(37272);const An=Ot(20602);class JavaScriptTypeBuilder extends en.JsonTypeBuilder{AsyncIterator(st,Wt={}){return(0,tn.AsyncIterator)(st,Wt)}Awaited(st,Wt={}){return(0,nn.Awaited)(st,Wt)}BigInt(st={}){return(0,an.BigInt)(st)}ConstructorParameters(st,Wt={}){return(0,rn.ConstructorParameters)(st,Wt)}Constructor(st,Wt,Ot){return(0,In.Constructor)(st,Wt,Ot)}Date(st={}){return(0,cn.Date)(st)}Function(st,Wt,Ot){return(0,on.Function)(st,Wt,Ot)}InstanceType(st,Wt={}){return(0,sn.InstanceType)(st,Wt)}Iterator(st,Wt={}){return(0,dn.Iterator)(st,Wt)}Parameters(st,Wt={}){return(0,un.Parameters)(st,Wt)}Promise(st,Wt={}){return(0,pn.Promise)(st,Wt)}RegExp(st,Wt={}){return(0,bn.RegExp)(st,Wt)}ReturnType(st,Wt={}){return(0,mn.ReturnType)(st,Wt)}Symbol(st){return(0,Gn.Symbol)(st)}Undefined(st={}){return(0,Zn.Undefined)(st)}Uint8Array(st={}){return(0,hn.Uint8Array)(st)}Void(st={}){return(0,An.Void)(st)}}Wt.JavaScriptTypeBuilder=JavaScriptTypeBuilder},62012:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.JsonTypeBuilder=void 0;const en=Ot(56234);const tn=Ot(59809);const nn=Ot(89168);const an=Ot(87731);const In=Ot(29075);const rn=Ot(3592);const cn=Ot(63617);const on=Ot(10698);const sn=Ot(40629);const dn=Ot(14301);const un=Ot(89777);const pn=Ot(5578);const bn=Ot(32945);const mn=Ot(71095);const Gn=Ot(30658);const hn=Ot(24727);const Zn=Ot(76675);const An=Ot(22346);const Wn=Ot(9741);const Nn=Ot(4513);const gn=Ot(46621);const yn=Ot(13871);const vn=Ot(56497);const Yn=Ot(31392);const En=Ot(96405);const Vn=Ot(53861);const Rn=Ot(4102);const wn=Ot(51257);const Fn=Ot(59961);const Qn=Ot(81816);const fn=Ot(29105);const Hn=Ot(83397);const Cn=Ot(47686);const Xn=Ot(94313);const kn=Ot(69429);const Jn=Ot(90984);const Ln=Ot(60304);const Bn=Ot(82894);const xn=Ot(41743);const On=Ot(41178);const Tn=Ot(79750);class JsonTypeBuilder{Strict(st){return(0,Xn.Strict)(st)}ReadonlyOptional(st){return(0,wn.ReadonlyOptional)(st)}Readonly(st,Wt){return(0,Rn.Readonly)(st,Wt??true)}Optional(st,Wt){return(0,Yn.Optional)(st,Wt??true)}Any(st={}){return(0,en.Any)(st)}Array(st,Wt={}){return(0,tn.Array)(st,Wt)}Boolean(st={}){return(0,nn.Boolean)(st)}Capitalize(st,Wt={}){return(0,mn.Capitalize)(st,Wt)}Composite(st,Wt){return(0,an.Composite)(st,Wt)}Const(st,Wt={}){return(0,In.Const)(st,Wt)}Deref(st,Wt){return(0,rn.Deref)(st,Wt)}Enum(st,Wt={}){return(0,cn.Enum)(st,Wt)}Exclude(st,Wt,Ot={}){return(0,on.Exclude)(st,Wt,Ot)}Extends(st,Wt,Ot,en,tn={}){return(0,sn.Extends)(st,Wt,Ot,en,tn)}Extract(st,Wt,Ot={}){return(0,dn.Extract)(st,Wt,Ot)}Index(st,Wt,Ot={}){return(0,un.Index)(st,Wt,Ot)}Integer(st={}){return(0,pn.Integer)(st)}Intersect(st,Wt={}){return(0,bn.Intersect)(st,Wt)}KeyOf(st,Wt={}){return(0,Gn.KeyOf)(st,Wt)}Literal(st,Wt={}){return(0,hn.Literal)(st,Wt)}Lowercase(st,Wt={}){return(0,mn.Lowercase)(st,Wt)}Mapped(st,Wt,Ot={}){return(0,Zn.Mapped)(st,Wt,Ot)}Never(st={}){return(0,An.Never)(st)}Not(st,Wt){return(0,Wn.Not)(st,Wt)}Null(st={}){return(0,Nn.Null)(st)}Number(st={}){return(0,gn.Number)(st)}Object(st,Wt={}){return(0,yn.Object)(st,Wt)}Omit(st,Wt,Ot={}){return(0,vn.Omit)(st,Wt,Ot)}Partial(st,Wt={}){return(0,En.Partial)(st,Wt)}Pick(st,Wt,Ot={}){return(0,Vn.Pick)(st,Wt,Ot)}Record(st,Wt,Ot={}){return(0,Fn.Record)(st,Wt,Ot)}Recursive(st,Wt={}){return(0,Qn.Recursive)(st,Wt)}Ref(st,Wt={}){return(0,fn.Ref)(st,Wt)}Required(st,Wt={}){return(0,Hn.Required)(st,Wt)}Rest(st){return(0,Cn.Rest)(st)}String(st={}){return(0,kn.String)(st)}TemplateLiteral(st,Wt={}){return(0,Jn.TemplateLiteral)(st,Wt)}Transform(st){return(0,Ln.Transform)(st)}Tuple(st,Wt={}){return(0,Bn.Tuple)(st,Wt)}Uncapitalize(st,Wt={}){return(0,mn.Uncapitalize)(st,Wt)}Union(st,Wt={}){return(0,xn.Union)(st,Wt)}Unknown(st={}){return(0,On.Unknown)(st)}Unsafe(st={}){return(0,Tn.Unsafe)(st)}Uppercase(st,Wt={}){return(0,mn.Uppercase)(st,Wt)}}Wt.JsonTypeBuilder=JsonTypeBuilder},88274:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Strict=Wt.ReturnType=Wt.Rest=Wt.Required=Wt.RegExp=Wt.Ref=Wt.Recursive=Wt.Record=Wt.ReadonlyOptional=Wt.Readonly=Wt.Promise=Wt.Pick=Wt.Partial=Wt.Parameters=Wt.Optional=Wt.Omit=Wt.Object=Wt.Number=Wt.Null=Wt.Not=Wt.Never=Wt.Mapped=Wt.Literal=Wt.KeyOf=Wt.Iterator=Wt.Uppercase=Wt.Lowercase=Wt.Uncapitalize=Wt.Capitalize=Wt.Intersect=Wt.Integer=Wt.InstanceType=Wt.Index=Wt.Function=Wt.Extract=Wt.Extends=Wt.Exclude=Wt.Enum=Wt.Deref=Wt.Date=Wt.ConstructorParameters=Wt.Constructor=Wt.Const=Wt.Composite=Wt.Boolean=Wt.BigInt=Wt.Awaited=Wt.AsyncIterator=Wt.Array=Wt.Any=void 0;Wt.Void=Wt.Unsafe=Wt.Unknown=Wt.Union=Wt.Undefined=Wt.Uint8Array=Wt.Tuple=Wt.Transform=Wt.TemplateLiteral=Wt.Symbol=Wt.String=void 0;var en=Ot(56234);Object.defineProperty(Wt,"Any",{enumerable:true,get:function(){return en.Any}});var tn=Ot(59809);Object.defineProperty(Wt,"Array",{enumerable:true,get:function(){return tn.Array}});var nn=Ot(32733);Object.defineProperty(Wt,"AsyncIterator",{enumerable:true,get:function(){return nn.AsyncIterator}});var an=Ot(52779);Object.defineProperty(Wt,"Awaited",{enumerable:true,get:function(){return an.Awaited}});var In=Ot(37383);Object.defineProperty(Wt,"BigInt",{enumerable:true,get:function(){return In.BigInt}});var rn=Ot(89168);Object.defineProperty(Wt,"Boolean",{enumerable:true,get:function(){return rn.Boolean}});var cn=Ot(87731);Object.defineProperty(Wt,"Composite",{enumerable:true,get:function(){return cn.Composite}});var on=Ot(29075);Object.defineProperty(Wt,"Const",{enumerable:true,get:function(){return on.Const}});var sn=Ot(86232);Object.defineProperty(Wt,"Constructor",{enumerable:true,get:function(){return sn.Constructor}});var dn=Ot(76835);Object.defineProperty(Wt,"ConstructorParameters",{enumerable:true,get:function(){return dn.ConstructorParameters}});var un=Ot(89816);Object.defineProperty(Wt,"Date",{enumerable:true,get:function(){return un.Date}});var pn=Ot(3592);Object.defineProperty(Wt,"Deref",{enumerable:true,get:function(){return pn.Deref}});var bn=Ot(63617);Object.defineProperty(Wt,"Enum",{enumerable:true,get:function(){return bn.Enum}});var mn=Ot(10698);Object.defineProperty(Wt,"Exclude",{enumerable:true,get:function(){return mn.Exclude}});var Gn=Ot(40629);Object.defineProperty(Wt,"Extends",{enumerable:true,get:function(){return Gn.Extends}});var hn=Ot(14301);Object.defineProperty(Wt,"Extract",{enumerable:true,get:function(){return hn.Extract}});var Zn=Ot(72996);Object.defineProperty(Wt,"Function",{enumerable:true,get:function(){return Zn.Function}});var An=Ot(89777);Object.defineProperty(Wt,"Index",{enumerable:true,get:function(){return An.Index}});var Wn=Ot(33458);Object.defineProperty(Wt,"InstanceType",{enumerable:true,get:function(){return Wn.InstanceType}});var Nn=Ot(5578);Object.defineProperty(Wt,"Integer",{enumerable:true,get:function(){return Nn.Integer}});var gn=Ot(32945);Object.defineProperty(Wt,"Intersect",{enumerable:true,get:function(){return gn.Intersect}});var yn=Ot(71095);Object.defineProperty(Wt,"Capitalize",{enumerable:true,get:function(){return yn.Capitalize}});Object.defineProperty(Wt,"Uncapitalize",{enumerable:true,get:function(){return yn.Uncapitalize}});Object.defineProperty(Wt,"Lowercase",{enumerable:true,get:function(){return yn.Lowercase}});Object.defineProperty(Wt,"Uppercase",{enumerable:true,get:function(){return yn.Uppercase}});var vn=Ot(30666);Object.defineProperty(Wt,"Iterator",{enumerable:true,get:function(){return vn.Iterator}});var Yn=Ot(30658);Object.defineProperty(Wt,"KeyOf",{enumerable:true,get:function(){return Yn.KeyOf}});var En=Ot(24727);Object.defineProperty(Wt,"Literal",{enumerable:true,get:function(){return En.Literal}});var Vn=Ot(76675);Object.defineProperty(Wt,"Mapped",{enumerable:true,get:function(){return Vn.Mapped}});var Rn=Ot(22346);Object.defineProperty(Wt,"Never",{enumerable:true,get:function(){return Rn.Never}});var wn=Ot(9741);Object.defineProperty(Wt,"Not",{enumerable:true,get:function(){return wn.Not}});var Fn=Ot(4513);Object.defineProperty(Wt,"Null",{enumerable:true,get:function(){return Fn.Null}});var Qn=Ot(46621);Object.defineProperty(Wt,"Number",{enumerable:true,get:function(){return Qn.Number}});var fn=Ot(13871);Object.defineProperty(Wt,"Object",{enumerable:true,get:function(){return fn.Object}});var Hn=Ot(56497);Object.defineProperty(Wt,"Omit",{enumerable:true,get:function(){return Hn.Omit}});var Cn=Ot(31392);Object.defineProperty(Wt,"Optional",{enumerable:true,get:function(){return Cn.Optional}});var Xn=Ot(80264);Object.defineProperty(Wt,"Parameters",{enumerable:true,get:function(){return Xn.Parameters}});var kn=Ot(96405);Object.defineProperty(Wt,"Partial",{enumerable:true,get:function(){return kn.Partial}});var Jn=Ot(53861);Object.defineProperty(Wt,"Pick",{enumerable:true,get:function(){return Jn.Pick}});var Ln=Ot(59573);Object.defineProperty(Wt,"Promise",{enumerable:true,get:function(){return Ln.Promise}});var Bn=Ot(4102);Object.defineProperty(Wt,"Readonly",{enumerable:true,get:function(){return Bn.Readonly}});var xn=Ot(51257);Object.defineProperty(Wt,"ReadonlyOptional",{enumerable:true,get:function(){return xn.ReadonlyOptional}});var On=Ot(59961);Object.defineProperty(Wt,"Record",{enumerable:true,get:function(){return On.Record}});var Tn=Ot(81816);Object.defineProperty(Wt,"Recursive",{enumerable:true,get:function(){return Tn.Recursive}});var Mn=Ot(29105);Object.defineProperty(Wt,"Ref",{enumerable:true,get:function(){return Mn.Ref}});var Un=Ot(34865);Object.defineProperty(Wt,"RegExp",{enumerable:true,get:function(){return Un.RegExp}});var zn=Ot(83397);Object.defineProperty(Wt,"Required",{enumerable:true,get:function(){return zn.Required}});var Sn=Ot(47686);Object.defineProperty(Wt,"Rest",{enumerable:true,get:function(){return Sn.Rest}});var jn=Ot(89861);Object.defineProperty(Wt,"ReturnType",{enumerable:true,get:function(){return jn.ReturnType}});var Dn=Ot(94313);Object.defineProperty(Wt,"Strict",{enumerable:true,get:function(){return Dn.Strict}});var Kn=Ot(69429);Object.defineProperty(Wt,"String",{enumerable:true,get:function(){return Kn.String}});var _n=Ot(69656);Object.defineProperty(Wt,"Symbol",{enumerable:true,get:function(){return _n.Symbol}});var Pn=Ot(90984);Object.defineProperty(Wt,"TemplateLiteral",{enumerable:true,get:function(){return Pn.TemplateLiteral}});var qn=Ot(60304);Object.defineProperty(Wt,"Transform",{enumerable:true,get:function(){return qn.Transform}});var $n=Ot(82894);Object.defineProperty(Wt,"Tuple",{enumerable:true,get:function(){return $n.Tuple}});var el=Ot(91305);Object.defineProperty(Wt,"Uint8Array",{enumerable:true,get:function(){return el.Uint8Array}});var tl=Ot(37272);Object.defineProperty(Wt,"Undefined",{enumerable:true,get:function(){return tl.Undefined}});var nl=Ot(41743);Object.defineProperty(Wt,"Union",{enumerable:true,get:function(){return nl.Union}});var ll=Ot(41178);Object.defineProperty(Wt,"Unknown",{enumerable:true,get:function(){return ll.Unknown}});var al=Ot(79750);Object.defineProperty(Wt,"Unsafe",{enumerable:true,get:function(){return al.Unsafe}});var Il=Ot(20602);Object.defineProperty(Wt,"Void",{enumerable:true,get:function(){return Il.Void}})},91305:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(57480),Wt)},57480:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Uint8Array=void 0;const en=Ot(48121);function Uint8Array(st={}){return{...st,[en.Kind]:"Uint8Array",type:"Uint8Array"}}Wt.Uint8Array=Uint8Array},37272:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(17112),Wt)},17112:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Undefined=void 0;const en=Ot(48121);function Undefined(st={}){return{...st,[en.Kind]:"Undefined",type:"undefined"}}Wt.Undefined=Undefined},41743:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(54204),Wt);tn(Ot(45269),Wt);tn(Ot(95248),Wt)},45481:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.UnionCreate=void 0;const en=Ot(45157);const tn=Ot(48121);function UnionCreate(st,Wt){return{...Wt,[tn.Kind]:"Union",anyOf:(0,en.CloneRest)(st)}}Wt.UnionCreate=UnionCreate},54204:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.UnionEvaluated=void 0;const en=Ot(48121);const tn=Ot(45157);const nn=Ot(62202);const an=Ot(22346);const In=Ot(31392);const rn=Ot(45481);const cn=Ot(20109);function IsUnionOptional(st){return st.some((st=>(0,cn.IsOptional)(st)))}function RemoveOptionalFromRest(st){return st.map((st=>(0,cn.IsOptional)(st)?RemoveOptionalFromType(st):st))}function RemoveOptionalFromType(st){return(0,nn.Discard)(st,[en.OptionalKind])}function ResolveUnion(st,Wt){return IsUnionOptional(st)?(0,In.Optional)((0,rn.UnionCreate)(RemoveOptionalFromRest(st),Wt)):(0,rn.UnionCreate)(RemoveOptionalFromRest(st),Wt)}function UnionEvaluated(st,Wt={}){return st.length===0?(0,an.Never)(Wt):st.length===1?(0,tn.CloneType)(st[0],Wt):ResolveUnion(st,Wt)}Wt.UnionEvaluated=UnionEvaluated},45269:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});const en=Ot(48121)},95248:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Union=void 0;const en=Ot(22346);const tn=Ot(45157);const nn=Ot(45481);function Union(st,Wt={}){return st.length===0?(0,en.Never)(Wt):st.length===1?(0,tn.CloneType)(st[0],Wt):(0,nn.UnionCreate)(st,Wt)}Wt.Union=Union},41178:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(71800),Wt)},71800:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Unknown=void 0;const en=Ot(48121);function Unknown(st={}){return{...st,[en.Kind]:"Unknown"}}Wt.Unknown=Unknown},79750:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(33134),Wt)},33134:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Unsafe=void 0;const en=Ot(48121);function Unsafe(st={}){return{...st,[en.Kind]:st[en.Kind]??"Unsafe"}}Wt.Unsafe=Unsafe},20602:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(42606),Wt)},42606:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Void=void 0;const en=Ot(48121);function Void(st={}){return{...st,[en.Kind]:"Void",type:"void"}}Wt.Void=Void},70099:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Cast=Wt.ValueCastError=void 0;const en=Ot(19522);const tn=Ot(94526);const nn=Ot(48121);const an=Ot(37029);const In=Ot(35323);const rn=Ot(66614);const cn=Ot(75743);class ValueCastError extends tn.TypeBoxError{constructor(st,Wt){super(Wt);this.schema=st}}Wt.ValueCastError=ValueCastError;function ScoreUnion(st,Wt,Ot){if(st[nn.Kind]==="Object"&&typeof Ot==="object"&&!(0,en.IsNull)(Ot)){const en=st;const tn=Object.getOwnPropertyNames(Ot);const an=Object.entries(en.properties);const[rn,cn]=[1/an.length,an.length];return an.reduce(((st,[en,an])=>{const on=an[nn.Kind]==="Literal"&&an.const===Ot[en]?cn:0;const sn=(0,In.Check)(an,Wt,Ot[en])?rn:0;const dn=tn.includes(en)?rn:0;return st+(on+sn+dn)}),0)}else{return(0,In.Check)(st,Wt,Ot)?1:0}}function SelectUnion(st,Wt,Ot){let[en,tn]=[st.anyOf[0],0];for(const nn of st.anyOf){const st=ScoreUnion(nn,Wt,Ot);if(st>tn){en=nn;tn=st}}return en}function CastUnion(st,Wt,Ot){if("default"in st){return typeof Ot==="function"?st.default:(0,rn.Clone)(st.default)}else{const en=SelectUnion(st,Wt,Ot);return Cast(en,Wt,Ot)}}function DefaultClone(st,Wt,Ot){return(0,In.Check)(st,Wt,Ot)?(0,rn.Clone)(Ot):(0,an.Create)(st,Wt)}function Default(st,Wt,Ot){return(0,In.Check)(st,Wt,Ot)?Ot:(0,an.Create)(st,Wt)}function FromArray(st,Wt,Ot){if((0,In.Check)(st,Wt,Ot))return(0,rn.Clone)(Ot);const tn=(0,en.IsArray)(Ot)?(0,rn.Clone)(Ot):(0,an.Create)(st,Wt);const nn=(0,en.IsNumber)(st.minItems)&&tn.lengthnull))]:tn;const cn=(0,en.IsNumber)(st.maxItems)&&nn.length>st.maxItems?nn.slice(0,st.maxItems):nn;const on=cn.map((Ot=>Visit(st.items,Wt,Ot)));if(st.uniqueItems!==true)return on;const sn=[...new Set(on)];if(!(0,In.Check)(st,Wt,sn))throw new ValueCastError(st,"Array cast produced invalid data due to uniqueItems constraint");return sn}function FromConstructor(st,Wt,Ot){if((0,In.Check)(st,Wt,Ot))return(0,an.Create)(st,Wt);const en=new Set(st.returns.required||[]);const result=function(){};for(const[tn,nn]of Object.entries(st.returns.properties)){if(!en.has(tn)&&Ot.prototype[tn]===undefined)continue;result.prototype[tn]=Visit(nn,Wt,Ot.prototype[tn])}return result}function FromIntersect(st,Wt,Ot){const tn=(0,an.Create)(st,Wt);const nn=(0,en.IsStandardObject)(tn)&&(0,en.IsStandardObject)(Ot)?{...tn,...Ot}:Ot;return(0,In.Check)(st,Wt,nn)?nn:(0,an.Create)(st,Wt)}function FromNever(st,Wt,Ot){throw new ValueCastError(st,"Never types cannot be cast")}function FromObject(st,Wt,Ot){if((0,In.Check)(st,Wt,Ot))return Ot;if(Ot===null||typeof Ot!=="object")return(0,an.Create)(st,Wt);const en=new Set(st.required||[]);const tn={};for(const[nn,an]of Object.entries(st.properties)){if(!en.has(nn)&&Ot[nn]===undefined)continue;tn[nn]=Visit(an,Wt,Ot[nn])}if(typeof st.additionalProperties==="object"){const en=Object.getOwnPropertyNames(st.properties);for(const nn of Object.getOwnPropertyNames(Ot)){if(en.includes(nn))continue;tn[nn]=Visit(st.additionalProperties,Wt,Ot[nn])}}return tn}function FromRecord(st,Wt,Ot){if((0,In.Check)(st,Wt,Ot))return(0,rn.Clone)(Ot);if(Ot===null||typeof Ot!=="object"||Array.isArray(Ot)||Ot instanceof Date)return(0,an.Create)(st,Wt);const en=Object.getOwnPropertyNames(st.patternProperties)[0];const tn=st.patternProperties[en];const nn={};for(const[st,en]of Object.entries(Ot)){nn[st]=Visit(tn,Wt,en)}return nn}function FromRef(st,Wt,Ot){return Visit((0,cn.Deref)(st,Wt),Wt,Ot)}function FromThis(st,Wt,Ot){return Visit((0,cn.Deref)(st,Wt),Wt,Ot)}function FromTuple(st,Wt,Ot){if((0,In.Check)(st,Wt,Ot))return(0,rn.Clone)(Ot);if(!(0,en.IsArray)(Ot))return(0,an.Create)(st,Wt);if(st.items===undefined)return[];return st.items.map(((st,en)=>Visit(st,Wt,Ot[en])))}function FromUnion(st,Wt,Ot){return(0,In.Check)(st,Wt,Ot)?(0,rn.Clone)(Ot):CastUnion(st,Wt,Ot)}function Visit(st,Wt,Ot){const tn=(0,en.IsString)(st.$id)?[...Wt,st]:Wt;const an=st;switch(st[nn.Kind]){case"Array":return FromArray(an,tn,Ot);case"Constructor":return FromConstructor(an,tn,Ot);case"Intersect":return FromIntersect(an,tn,Ot);case"Never":return FromNever(an,tn,Ot);case"Object":return FromObject(an,tn,Ot);case"Record":return FromRecord(an,tn,Ot);case"Ref":return FromRef(an,tn,Ot);case"This":return FromThis(an,tn,Ot);case"Tuple":return FromTuple(an,tn,Ot);case"Union":return FromUnion(an,tn,Ot);case"Date":case"Symbol":case"Uint8Array":return DefaultClone(st,Wt,Ot);default:return Default(an,tn,Ot)}}function Cast(...st){return st.length===3?Visit(st[0],st[1],st[2]):Visit(st[0],[],st[1])}Wt.Cast=Cast},49098:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(70099),Wt)},3935:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Check=Wt.ValueCheckUnknownTypeError=void 0;const en=Ot(45918);const tn=Ot(75743);const nn=Ot(73849);const an=Ot(48121);const In=Ot(30658);const rn=Ot(40629);const cn=Ot(97759);const on=Ot(94526);const sn=Ot(22346);const dn=Ot(19522);const un=Ot(20109);class ValueCheckUnknownTypeError extends on.TypeBoxError{constructor(st){super(`Unknown type`);this.schema=st}}Wt.ValueCheckUnknownTypeError=ValueCheckUnknownTypeError;function IsAnyOrUnknown(st){return st[an.Kind]==="Any"||st[an.Kind]==="Unknown"}function IsDefined(st){return st!==undefined}function FromAny(st,Wt,Ot){return true}function FromArray(st,Wt,Ot){if(!(0,dn.IsArray)(Ot))return false;if(IsDefined(st.minItems)&&!(Ot.length>=st.minItems)){return false}if(IsDefined(st.maxItems)&&!(Ot.length<=st.maxItems)){return false}if(!Ot.every((Ot=>Visit(st.items,Wt,Ot)))){return false}if(st.uniqueItems===true&&!function(){const st=new Set;for(const Wt of Ot){const Ot=(0,nn.Hash)(Wt);if(st.has(Ot)){return false}else{st.add(Ot)}}return true}()){return false}if(!(IsDefined(st.contains)||(0,dn.IsNumber)(st.minContains)||(0,dn.IsNumber)(st.maxContains))){return true}const en=IsDefined(st.contains)?st.contains:(0,sn.Never)();const tn=Ot.reduce(((st,Ot)=>Visit(en,Wt,Ot)?st+1:st),0);if(tn===0){return false}if((0,dn.IsNumber)(st.minContains)&&tnst.maxContains){return false}return true}function FromAsyncIterator(st,Wt,Ot){return(0,dn.IsAsyncIterator)(Ot)}function FromBigInt(st,Wt,Ot){if(!(0,dn.IsBigInt)(Ot))return false;if(IsDefined(st.exclusiveMaximum)&&!(Otst.exclusiveMinimum)){return false}if(IsDefined(st.maximum)&&!(Ot<=st.maximum)){return false}if(IsDefined(st.minimum)&&!(Ot>=st.minimum)){return false}if(IsDefined(st.multipleOf)&&!(Ot%st.multipleOf===BigInt(0))){return false}return true}function FromBoolean(st,Wt,Ot){return(0,dn.IsBoolean)(Ot)}function FromConstructor(st,Wt,Ot){return Visit(st.returns,Wt,Ot.prototype)}function FromDate(st,Wt,Ot){if(!(0,dn.IsDate)(Ot))return false;if(IsDefined(st.exclusiveMaximumTimestamp)&&!(Ot.getTime()st.exclusiveMinimumTimestamp)){return false}if(IsDefined(st.maximumTimestamp)&&!(Ot.getTime()<=st.maximumTimestamp)){return false}if(IsDefined(st.minimumTimestamp)&&!(Ot.getTime()>=st.minimumTimestamp)){return false}if(IsDefined(st.multipleOfTimestamp)&&!(Ot.getTime()%st.multipleOfTimestamp===0)){return false}return true}function FromFunction(st,Wt,Ot){return(0,dn.IsFunction)(Ot)}function FromInteger(st,Wt,Ot){if(!(0,dn.IsInteger)(Ot)){return false}if(IsDefined(st.exclusiveMaximum)&&!(Otst.exclusiveMinimum)){return false}if(IsDefined(st.maximum)&&!(Ot<=st.maximum)){return false}if(IsDefined(st.minimum)&&!(Ot>=st.minimum)){return false}if(IsDefined(st.multipleOf)&&!(Ot%st.multipleOf===0)){return false}return true}function FromIntersect(st,Wt,Ot){const en=st.allOf.every((st=>Visit(st,Wt,Ot)));if(st.unevaluatedProperties===false){const Wt=new RegExp((0,In.KeyOfPattern)(st));const tn=Object.getOwnPropertyNames(Ot).every((st=>Wt.test(st)));return en&&tn}else if((0,un.IsSchema)(st.unevaluatedProperties)){const tn=new RegExp((0,In.KeyOfPattern)(st));const nn=Object.getOwnPropertyNames(Ot).every((en=>tn.test(en)||Visit(st.unevaluatedProperties,Wt,Ot[en])));return en&&nn}else{return en}}function FromIterator(st,Wt,Ot){return(0,dn.IsIterator)(Ot)}function FromLiteral(st,Wt,Ot){return Ot===st.const}function FromNever(st,Wt,Ot){return false}function FromNot(st,Wt,Ot){return!Visit(st.not,Wt,Ot)}function FromNull(st,Wt,Ot){return(0,dn.IsNull)(Ot)}function FromNumber(st,Wt,Ot){if(!en.TypeSystemPolicy.IsNumberLike(Ot))return false;if(IsDefined(st.exclusiveMaximum)&&!(Otst.exclusiveMinimum)){return false}if(IsDefined(st.minimum)&&!(Ot>=st.minimum)){return false}if(IsDefined(st.maximum)&&!(Ot<=st.maximum)){return false}if(IsDefined(st.multipleOf)&&!(Ot%st.multipleOf===0)){return false}return true}function FromObject(st,Wt,Ot){if(!en.TypeSystemPolicy.IsObjectLike(Ot))return false;if(IsDefined(st.minProperties)&&!(Object.getOwnPropertyNames(Ot).length>=st.minProperties)){return false}if(IsDefined(st.maxProperties)&&!(Object.getOwnPropertyNames(Ot).length<=st.maxProperties)){return false}const tn=Object.getOwnPropertyNames(st.properties);for(const nn of tn){const tn=st.properties[nn];if(st.required&&st.required.includes(nn)){if(!Visit(tn,Wt,Ot[nn])){return false}if(((0,rn.ExtendsUndefinedCheck)(tn)||IsAnyOrUnknown(tn))&&!(nn in Ot)){return false}}else{if(en.TypeSystemPolicy.IsExactOptionalProperty(Ot,nn)&&!Visit(tn,Wt,Ot[nn])){return false}}}if(st.additionalProperties===false){const Wt=Object.getOwnPropertyNames(Ot);if(st.required&&st.required.length===tn.length&&Wt.length===tn.length){return true}else{return Wt.every((st=>tn.includes(st)))}}else if(typeof st.additionalProperties==="object"){const en=Object.getOwnPropertyNames(Ot);return en.every((en=>tn.includes(en)||Visit(st.additionalProperties,Wt,Ot[en])))}else{return true}}function FromPromise(st,Wt,Ot){return(0,dn.IsPromise)(Ot)}function FromRecord(st,Wt,Ot){if(!en.TypeSystemPolicy.IsRecordLike(Ot)){return false}if(IsDefined(st.minProperties)&&!(Object.getOwnPropertyNames(Ot).length>=st.minProperties)){return false}if(IsDefined(st.maxProperties)&&!(Object.getOwnPropertyNames(Ot).length<=st.maxProperties)){return false}const[tn,nn]=Object.entries(st.patternProperties)[0];const an=new RegExp(tn);const In=Object.entries(Ot).every((([st,Ot])=>an.test(st)?Visit(nn,Wt,Ot):true));const rn=typeof st.additionalProperties==="object"?Object.entries(Ot).every((([Ot,en])=>!an.test(Ot)?Visit(st.additionalProperties,Wt,en):true)):true;const cn=st.additionalProperties===false?Object.getOwnPropertyNames(Ot).every((st=>an.test(st))):true;return In&&rn&&cn}function FromRef(st,Wt,Ot){return Visit((0,tn.Deref)(st,Wt),Wt,Ot)}function FromRegExp(st,Wt,Ot){const en=new RegExp(st.source,st.flags);if(IsDefined(st.minLength)){if(!(Ot.length>=st.minLength))return false}if(IsDefined(st.maxLength)){if(!(Ot.length<=st.maxLength))return false}return en.test(Ot)}function FromString(st,Wt,Ot){if(!(0,dn.IsString)(Ot)){return false}if(IsDefined(st.minLength)){if(!(Ot.length>=st.minLength))return false}if(IsDefined(st.maxLength)){if(!(Ot.length<=st.maxLength))return false}if(IsDefined(st.pattern)){const Wt=new RegExp(st.pattern);if(!Wt.test(Ot))return false}if(IsDefined(st.format)){if(!cn.FormatRegistry.Has(st.format))return false;const Wt=cn.FormatRegistry.Get(st.format);return Wt(Ot)}return true}function FromSymbol(st,Wt,Ot){return(0,dn.IsSymbol)(Ot)}function FromTemplateLiteral(st,Wt,Ot){return(0,dn.IsString)(Ot)&&new RegExp(st.pattern).test(Ot)}function FromThis(st,Wt,Ot){return Visit((0,tn.Deref)(st,Wt),Wt,Ot)}function FromTuple(st,Wt,Ot){if(!(0,dn.IsArray)(Ot)){return false}if(st.items===undefined&&!(Ot.length===0)){return false}if(!(Ot.length===st.maxItems)){return false}if(!st.items){return true}for(let en=0;enVisit(st,Wt,Ot)))}function FromUint8Array(st,Wt,Ot){if(!(0,dn.IsUint8Array)(Ot)){return false}if(IsDefined(st.maxByteLength)&&!(Ot.length<=st.maxByteLength)){return false}if(IsDefined(st.minByteLength)&&!(Ot.length>=st.minByteLength)){return false}return true}function FromUnknown(st,Wt,Ot){return true}function FromVoid(st,Wt,Ot){return en.TypeSystemPolicy.IsVoidLike(Ot)}function FromKind(st,Wt,Ot){if(!cn.TypeRegistry.Has(st[an.Kind]))return false;const en=cn.TypeRegistry.Get(st[an.Kind]);return en(st,Ot)}function Visit(st,Wt,Ot){const en=IsDefined(st.$id)?[...Wt,st]:Wt;const tn=st;switch(tn[an.Kind]){case"Any":return FromAny(tn,en,Ot);case"Array":return FromArray(tn,en,Ot);case"AsyncIterator":return FromAsyncIterator(tn,en,Ot);case"BigInt":return FromBigInt(tn,en,Ot);case"Boolean":return FromBoolean(tn,en,Ot);case"Constructor":return FromConstructor(tn,en,Ot);case"Date":return FromDate(tn,en,Ot);case"Function":return FromFunction(tn,en,Ot);case"Integer":return FromInteger(tn,en,Ot);case"Intersect":return FromIntersect(tn,en,Ot);case"Iterator":return FromIterator(tn,en,Ot);case"Literal":return FromLiteral(tn,en,Ot);case"Never":return FromNever(tn,en,Ot);case"Not":return FromNot(tn,en,Ot);case"Null":return FromNull(tn,en,Ot);case"Number":return FromNumber(tn,en,Ot);case"Object":return FromObject(tn,en,Ot);case"Promise":return FromPromise(tn,en,Ot);case"Record":return FromRecord(tn,en,Ot);case"Ref":return FromRef(tn,en,Ot);case"RegExp":return FromRegExp(tn,en,Ot);case"String":return FromString(tn,en,Ot);case"Symbol":return FromSymbol(tn,en,Ot);case"TemplateLiteral":return FromTemplateLiteral(tn,en,Ot);case"This":return FromThis(tn,en,Ot);case"Tuple":return FromTuple(tn,en,Ot);case"Undefined":return FromUndefined(tn,en,Ot);case"Union":return FromUnion(tn,en,Ot);case"Uint8Array":return FromUint8Array(tn,en,Ot);case"Unknown":return FromUnknown(tn,en,Ot);case"Void":return FromVoid(tn,en,Ot);default:if(!cn.TypeRegistry.Has(tn[an.Kind]))throw new ValueCheckUnknownTypeError(tn);return FromKind(tn,en,Ot)}}function Check(...st){return st.length===3?Visit(st[0],st[1],st[2]):Visit(st[0],[],st[1])}Wt.Check=Check},35323:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(3935),Wt)},86519:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Clean=void 0;const en=Ot(30658);const tn=Ot(35323);const nn=Ot(66614);const an=Ot(75743);const In=Ot(48121);const rn=Ot(19522);const cn=Ot(20109);function IsCheckable(st){return(0,cn.IsSchema)(st)&&st[In.Kind]!=="Unsafe"}function FromArray(st,Wt,Ot){if(!(0,rn.IsArray)(Ot))return Ot;return Ot.map((Ot=>Visit(st.items,Wt,Ot)))}function FromIntersect(st,Wt,Ot){const an=st.unevaluatedProperties;const In=st.allOf.map((st=>Visit(st,Wt,(0,nn.Clone)(Ot))));const on=In.reduce(((st,Wt)=>(0,rn.IsObject)(Wt)?{...st,...Wt}:Wt),{});if(!(0,rn.IsObject)(Ot)||!(0,rn.IsObject)(on)||!(0,cn.IsSchema)(an))return on;const sn=(0,en.KeyOfPropertyKeys)(st);for(const st of Object.getOwnPropertyNames(Ot)){if(sn.includes(st))continue;if((0,tn.Check)(an,Wt,Ot[st])){on[st]=Visit(an,Wt,Ot[st])}}return on}function FromObject(st,Wt,Ot){if(!(0,rn.IsObject)(Ot)||(0,rn.IsArray)(Ot))return Ot;const en=st.additionalProperties;for(const nn of Object.getOwnPropertyNames(Ot)){if(nn in st.properties){Ot[nn]=Visit(st.properties[nn],Wt,Ot[nn]);continue}if((0,cn.IsSchema)(en)&&(0,tn.Check)(en,Wt,Ot[nn])){Ot[nn]=Visit(en,Wt,Ot[nn]);continue}delete Ot[nn]}return Ot}function FromRecord(st,Wt,Ot){if(!(0,rn.IsObject)(Ot))return Ot;const en=st.additionalProperties;const nn=Object.keys(Ot);const[an,In]=Object.entries(st.patternProperties)[0];const on=new RegExp(an);for(const st of nn){if(on.test(st)){Ot[st]=Visit(In,Wt,Ot[st]);continue}if((0,cn.IsSchema)(en)&&(0,tn.Check)(en,Wt,Ot[st])){Ot[st]=Visit(en,Wt,Ot[st]);continue}delete Ot[st]}return Ot}function FromRef(st,Wt,Ot){return Visit((0,an.Deref)(st,Wt),Wt,Ot)}function FromThis(st,Wt,Ot){return Visit((0,an.Deref)(st,Wt),Wt,Ot)}function FromTuple(st,Wt,Ot){if(!(0,rn.IsArray)(Ot))return Ot;if((0,rn.IsUndefined)(st.items))return[];const en=Math.min(Ot.length,st.items.length);for(let tn=0;tnen?Ot.slice(0,en):Ot}function FromUnion(st,Wt,Ot){for(const en of st.anyOf){if(IsCheckable(en)&&(0,tn.Check)(en,Wt,Ot)){return Visit(en,Wt,Ot)}}return Ot}function Visit(st,Wt,Ot){const en=(0,rn.IsString)(st.$id)?[...Wt,st]:Wt;const tn=st;switch(tn[In.Kind]){case"Array":return FromArray(tn,en,Ot);case"Intersect":return FromIntersect(tn,en,Ot);case"Object":return FromObject(tn,en,Ot);case"Record":return FromRecord(tn,en,Ot);case"Ref":return FromRef(tn,en,Ot);case"This":return FromThis(tn,en,Ot);case"Tuple":return FromTuple(tn,en,Ot);case"Union":return FromUnion(tn,en,Ot);default:return Ot}}function Clean(...st){return st.length===3?Visit(st[0],st[1],st[2]):Visit(st[0],[],st[1])}Wt.Clean=Clean},30642:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(86519),Wt)},98699:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Clone=void 0;const en=Ot(19522);function ObjectType(st){const Wt=[...Object.getOwnPropertyNames(st),...Object.getOwnPropertySymbols(st)];return Wt.reduce(((Wt,Ot)=>({...Wt,[Ot]:Clone(st[Ot])})),{})}function ArrayType(st){return st.map((st=>Clone(st)))}function TypedArrayType(st){return st.slice()}function DateType(st){return new Date(st.toISOString())}function ValueType(st){return st}function Clone(st){if((0,en.IsArray)(st))return ArrayType(st);if((0,en.IsDate)(st))return DateType(st);if((0,en.IsStandardObject)(st))return ObjectType(st);if((0,en.IsTypedArray)(st))return TypedArrayType(st);if((0,en.IsValueType)(st))return ValueType(st);throw new Error("ValueClone: Unable to clone value")}Wt.Clone=Clone},66614:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(98699),Wt)},8903:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Convert=void 0;const en=Ot(66614);const tn=Ot(35323);const nn=Ot(75743);const an=Ot(48121);const In=Ot(19522);function IsStringNumeric(st){return(0,In.IsString)(st)&&!isNaN(st)&&!isNaN(parseFloat(st))}function IsValueToString(st){return(0,In.IsBigInt)(st)||(0,In.IsBoolean)(st)||(0,In.IsNumber)(st)}function IsValueTrue(st){return st===true||(0,In.IsNumber)(st)&&st===1||(0,In.IsBigInt)(st)&&st===BigInt("1")||(0,In.IsString)(st)&&(st.toLowerCase()==="true"||st==="1")}function IsValueFalse(st){return st===false||(0,In.IsNumber)(st)&&(st===0||Object.is(st,-0))||(0,In.IsBigInt)(st)&&st===BigInt("0")||(0,In.IsString)(st)&&(st.toLowerCase()==="false"||st==="0"||st==="-0")}function IsTimeStringWithTimeZone(st){return(0,In.IsString)(st)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(st)}function IsTimeStringWithoutTimeZone(st){return(0,In.IsString)(st)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(st)}function IsDateTimeStringWithTimeZone(st){return(0,In.IsString)(st)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(st)}function IsDateTimeStringWithoutTimeZone(st){return(0,In.IsString)(st)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(st)}function IsDateString(st){return(0,In.IsString)(st)&&/^\d\d\d\d-[0-1]\d-[0-3]\d$/i.test(st)}function TryConvertLiteralString(st,Wt){const Ot=TryConvertString(st);return Ot===Wt?Ot:st}function TryConvertLiteralNumber(st,Wt){const Ot=TryConvertNumber(st);return Ot===Wt?Ot:st}function TryConvertLiteralBoolean(st,Wt){const Ot=TryConvertBoolean(st);return Ot===Wt?Ot:st}function TryConvertLiteral(st,Wt){return(0,In.IsString)(st.const)?TryConvertLiteralString(Wt,st.const):(0,In.IsNumber)(st.const)?TryConvertLiteralNumber(Wt,st.const):(0,In.IsBoolean)(st.const)?TryConvertLiteralBoolean(Wt,st.const):(0,en.Clone)(Wt)}function TryConvertBoolean(st){return IsValueTrue(st)?true:IsValueFalse(st)?false:st}function TryConvertBigInt(st){return IsStringNumeric(st)?BigInt(parseInt(st)):(0,In.IsNumber)(st)?BigInt(st|0):IsValueFalse(st)?BigInt(0):IsValueTrue(st)?BigInt(1):st}function TryConvertString(st){return IsValueToString(st)?st.toString():(0,In.IsSymbol)(st)&&st.description!==undefined?st.description.toString():st}function TryConvertNumber(st){return IsStringNumeric(st)?parseFloat(st):IsValueTrue(st)?1:IsValueFalse(st)?0:st}function TryConvertInteger(st){return IsStringNumeric(st)?parseInt(st):(0,In.IsNumber)(st)?st|0:IsValueTrue(st)?1:IsValueFalse(st)?0:st}function TryConvertNull(st){return(0,In.IsString)(st)&&st.toLowerCase()==="null"?null:st}function TryConvertUndefined(st){return(0,In.IsString)(st)&&st==="undefined"?undefined:st}function TryConvertDate(st){return(0,In.IsDate)(st)?st:(0,In.IsNumber)(st)?new Date(st):IsValueTrue(st)?new Date(1):IsValueFalse(st)?new Date(0):IsStringNumeric(st)?new Date(parseInt(st)):IsTimeStringWithoutTimeZone(st)?new Date(`1970-01-01T${st}.000Z`):IsTimeStringWithTimeZone(st)?new Date(`1970-01-01T${st}`):IsDateTimeStringWithoutTimeZone(st)?new Date(`${st}.000Z`):IsDateTimeStringWithTimeZone(st)?new Date(st):IsDateString(st)?new Date(`${st}T00:00:00.000Z`):st}function Default(st){return st}function FromArray(st,Wt,Ot){const en=(0,In.IsArray)(Ot)?Ot:[Ot];return en.map((Ot=>Visit(st.items,Wt,Ot)))}function FromBigInt(st,Wt,Ot){return TryConvertBigInt(Ot)}function FromBoolean(st,Wt,Ot){return TryConvertBoolean(Ot)}function FromDate(st,Wt,Ot){return TryConvertDate(Ot)}function FromInteger(st,Wt,Ot){return TryConvertInteger(Ot)}function FromIntersect(st,Wt,Ot){return st.allOf.reduce(((st,Ot)=>Visit(Ot,Wt,st)),Ot)}function FromLiteral(st,Wt,Ot){return TryConvertLiteral(st,Ot)}function FromNull(st,Wt,Ot){return TryConvertNull(Ot)}function FromNumber(st,Wt,Ot){return TryConvertNumber(Ot)}function FromObject(st,Wt,Ot){const en=(0,In.IsObject)(Ot);if(!en)return Ot;return Object.getOwnPropertyNames(st.properties).reduce(((Ot,en)=>!(0,In.IsUndefined)(Ot[en])?{...Ot,[en]:Visit(st.properties[en],Wt,Ot[en])}:{...Ot}),Ot)}function FromRecord(st,Wt,Ot){const en=Object.getOwnPropertyNames(st.patternProperties)[0];const tn=st.patternProperties[en];const nn={};for(const[st,en]of Object.entries(Ot)){nn[st]=Visit(tn,Wt,en)}return nn}function FromRef(st,Wt,Ot){return Visit((0,nn.Deref)(st,Wt),Wt,Ot)}function FromString(st,Wt,Ot){return TryConvertString(Ot)}function FromSymbol(st,Wt,Ot){return(0,In.IsString)(Ot)||(0,In.IsNumber)(Ot)?Symbol(Ot):Ot}function FromThis(st,Wt,Ot){return Visit((0,nn.Deref)(st,Wt),Wt,Ot)}function FromTuple(st,Wt,Ot){const en=(0,In.IsArray)(Ot)&&!(0,In.IsUndefined)(st.items);if(!en)return Ot;return Ot.map(((Ot,en)=>en{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Create=Wt.ValueCreateError=void 0;const en=Ot(19522);const tn=Ot(35323);const nn=Ot(66614);const an=Ot(75743);const In=Ot(90984);const rn=Ot(50059);const cn=Ot(97759);const on=Ot(48121);const sn=Ot(94526);class ValueCreateError extends sn.TypeBoxError{constructor(st,Wt){super(Wt);this.schema=st}}Wt.ValueCreateError=ValueCreateError;function FromDefault(st){return typeof st==="function"?st:(0,nn.Clone)(st)}function FromAny(st,Wt){if((0,en.HasPropertyKey)(st,"default")){return FromDefault(st.default)}else{return{}}}function FromArray(st,Wt){if(st.uniqueItems===true&&!(0,en.HasPropertyKey)(st,"default")){throw new ValueCreateError(st,"Array with the uniqueItems constraint requires a default value")}else if("contains"in st&&!(0,en.HasPropertyKey)(st,"default")){throw new ValueCreateError(st,"Array with the contains constraint requires a default value")}else if("default"in st){return FromDefault(st.default)}else if(st.minItems!==undefined){return Array.from({length:st.minItems}).map((Ot=>Visit(st.items,Wt)))}else{return[]}}function FromAsyncIterator(st,Wt){if((0,en.HasPropertyKey)(st,"default")){return FromDefault(st.default)}else{return async function*(){}()}}function FromBigInt(st,Wt){if((0,en.HasPropertyKey)(st,"default")){return FromDefault(st.default)}else{return BigInt(0)}}function FromBoolean(st,Wt){if((0,en.HasPropertyKey)(st,"default")){return FromDefault(st.default)}else{return false}}function FromConstructor(st,Wt){if((0,en.HasPropertyKey)(st,"default")){return FromDefault(st.default)}else{const Ot=Visit(st.returns,Wt);if(typeof Ot==="object"&&!Array.isArray(Ot)){return class{constructor(){for(const[st,Wt]of Object.entries(Ot)){const Ot=this;Ot[st]=Wt}}}}else{return class{}}}}function FromDate(st,Wt){if((0,en.HasPropertyKey)(st,"default")){return FromDefault(st.default)}else if(st.minimumTimestamp!==undefined){return new Date(st.minimumTimestamp)}else{return new Date}}function FromFunction(st,Wt){if((0,en.HasPropertyKey)(st,"default")){return FromDefault(st.default)}else{return()=>Visit(st.returns,Wt)}}function FromInteger(st,Wt){if((0,en.HasPropertyKey)(st,"default")){return FromDefault(st.default)}else if(st.minimum!==undefined){return st.minimum}else{return 0}}function FromIntersect(st,Wt){if((0,en.HasPropertyKey)(st,"default")){return FromDefault(st.default)}else{const Ot=st.allOf.reduce(((st,Ot)=>{const en=Visit(Ot,Wt);return typeof en==="object"?{...st,...en}:en}),{});if(!(0,tn.Check)(st,Wt,Ot))throw new ValueCreateError(st,"Intersect produced invalid value. Consider using a default value.");return Ot}}function FromIterator(st,Wt){if((0,en.HasPropertyKey)(st,"default")){return FromDefault(st.default)}else{return function*(){}()}}function FromLiteral(st,Wt){if((0,en.HasPropertyKey)(st,"default")){return FromDefault(st.default)}else{return st.const}}function FromNever(st,Wt){if((0,en.HasPropertyKey)(st,"default")){return FromDefault(st.default)}else{throw new ValueCreateError(st,"Never types cannot be created. Consider using a default value.")}}function FromNot(st,Wt){if((0,en.HasPropertyKey)(st,"default")){return FromDefault(st.default)}else{throw new ValueCreateError(st,"Not types must have a default value")}}function FromNull(st,Wt){if((0,en.HasPropertyKey)(st,"default")){return FromDefault(st.default)}else{return null}}function FromNumber(st,Wt){if((0,en.HasPropertyKey)(st,"default")){return FromDefault(st.default)}else if(st.minimum!==undefined){return st.minimum}else{return 0}}function FromObject(st,Wt){if((0,en.HasPropertyKey)(st,"default")){return FromDefault(st.default)}else{const Ot=new Set(st.required);return FromDefault(st.default)||Object.entries(st.properties).reduce(((st,[en,tn])=>Ot.has(en)?{...st,[en]:Visit(tn,Wt)}:{...st}),{})}}function FromPromise(st,Wt){if((0,en.HasPropertyKey)(st,"default")){return FromDefault(st.default)}else{return Promise.resolve(Visit(st.item,Wt))}}function FromRecord(st,Wt){const[Ot,tn]=Object.entries(st.patternProperties)[0];if((0,en.HasPropertyKey)(st,"default")){return FromDefault(st.default)}else if(!(Ot===rn.PatternStringExact||Ot===rn.PatternNumberExact)){const st=Ot.slice(1,Ot.length-1).split("|");return st.reduce(((st,Ot)=>({...st,[Ot]:Visit(tn,Wt)})),{})}else{return{}}}function FromRef(st,Wt){if((0,en.HasPropertyKey)(st,"default")){return FromDefault(st.default)}else{return Visit((0,an.Deref)(st,Wt),Wt)}}function FromRegExp(st,Wt){if((0,en.HasPropertyKey)(st,"default")){return FromDefault(st.default)}else{throw new ValueCreateError(st,"RegExp types cannot be created. Consider using a default value.")}}function FromString(st,Wt){if(st.pattern!==undefined){if(!(0,en.HasPropertyKey)(st,"default")){throw new ValueCreateError(st,"String types with patterns must specify a default value")}else{return FromDefault(st.default)}}else if(st.format!==undefined){if(!(0,en.HasPropertyKey)(st,"default")){throw new ValueCreateError(st,"String types with formats must specify a default value")}else{return FromDefault(st.default)}}else{if((0,en.HasPropertyKey)(st,"default")){return FromDefault(st.default)}else if(st.minLength!==undefined){return Array.from({length:st.minLength}).map((()=>" ")).join("")}else{return""}}}function FromSymbol(st,Wt){if((0,en.HasPropertyKey)(st,"default")){return FromDefault(st.default)}else if("value"in st){return Symbol.for(st.value)}else{return Symbol()}}function FromTemplateLiteral(st,Wt){if((0,en.HasPropertyKey)(st,"default")){return FromDefault(st.default)}if(!(0,In.IsTemplateLiteralFinite)(st))throw new ValueCreateError(st,"Can only create template literals that produce a finite variants. Consider using a default value.");const Ot=(0,In.TemplateLiteralGenerate)(st);return Ot[0]}function FromThis(st,Wt){if(un++>dn)throw new ValueCreateError(st,"Cannot create recursive type as it appears possibly infinite. Consider using a default.");if((0,en.HasPropertyKey)(st,"default")){return FromDefault(st.default)}else{return Visit((0,an.Deref)(st,Wt),Wt)}}function FromTuple(st,Wt){if((0,en.HasPropertyKey)(st,"default")){return FromDefault(st.default)}if(st.items===undefined){return[]}else{return Array.from({length:st.minItems}).map(((Ot,en)=>Visit(st.items[en],Wt)))}}function FromUndefined(st,Wt){if((0,en.HasPropertyKey)(st,"default")){return FromDefault(st.default)}else{return undefined}}function FromUnion(st,Wt){if((0,en.HasPropertyKey)(st,"default")){return FromDefault(st.default)}else if(st.anyOf.length===0){throw new Error("ValueCreate.Union: Cannot create Union with zero variants")}else{return Visit(st.anyOf[0],Wt)}}function FromUint8Array(st,Wt){if((0,en.HasPropertyKey)(st,"default")){return FromDefault(st.default)}else if(st.minByteLength!==undefined){return new Uint8Array(st.minByteLength)}else{return new Uint8Array(0)}}function FromUnknown(st,Wt){if((0,en.HasPropertyKey)(st,"default")){return FromDefault(st.default)}else{return{}}}function FromVoid(st,Wt){if((0,en.HasPropertyKey)(st,"default")){return FromDefault(st.default)}else{return void 0}}function FromKind(st,Wt){if((0,en.HasPropertyKey)(st,"default")){return FromDefault(st.default)}else{throw new Error("User defined types must specify a default value")}}function Visit(st,Wt){const Ot=(0,en.IsString)(st.$id)?[...Wt,st]:Wt;const tn=st;switch(tn[on.Kind]){case"Any":return FromAny(tn,Ot);case"Array":return FromArray(tn,Ot);case"AsyncIterator":return FromAsyncIterator(tn,Ot);case"BigInt":return FromBigInt(tn,Ot);case"Boolean":return FromBoolean(tn,Ot);case"Constructor":return FromConstructor(tn,Ot);case"Date":return FromDate(tn,Ot);case"Function":return FromFunction(tn,Ot);case"Integer":return FromInteger(tn,Ot);case"Intersect":return FromIntersect(tn,Ot);case"Iterator":return FromIterator(tn,Ot);case"Literal":return FromLiteral(tn,Ot);case"Never":return FromNever(tn,Ot);case"Not":return FromNot(tn,Ot);case"Null":return FromNull(tn,Ot);case"Number":return FromNumber(tn,Ot);case"Object":return FromObject(tn,Ot);case"Promise":return FromPromise(tn,Ot);case"Record":return FromRecord(tn,Ot);case"Ref":return FromRef(tn,Ot);case"RegExp":return FromRegExp(tn,Ot);case"String":return FromString(tn,Ot);case"Symbol":return FromSymbol(tn,Ot);case"TemplateLiteral":return FromTemplateLiteral(tn,Ot);case"This":return FromThis(tn,Ot);case"Tuple":return FromTuple(tn,Ot);case"Undefined":return FromUndefined(tn,Ot);case"Union":return FromUnion(tn,Ot);case"Uint8Array":return FromUint8Array(tn,Ot);case"Unknown":return FromUnknown(tn,Ot);case"Void":return FromVoid(tn,Ot);default:if(!cn.TypeRegistry.Has(tn[on.Kind]))throw new ValueCreateError(tn,"Unknown type");return FromKind(tn,Ot)}}const dn=512;let un=0;function Create(...st){un=0;return st.length===2?Visit(st[0],st[1]):Visit(st[0],[])}Wt.Create=Create},37029:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(78981),Wt)},74475:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Default=void 0;const en=Ot(35323);const tn=Ot(66614);const nn=Ot(75743);const an=Ot(48121);const In=Ot(19522);const rn=Ot(20109);function ValueOrDefault(st,Wt){return Wt===undefined&&"default"in st?(0,tn.Clone)(st.default):Wt}function IsCheckable(st){return(0,rn.IsSchema)(st)&&st[an.Kind]!=="Unsafe"}function IsDefaultSchema(st){return(0,rn.IsSchema)(st)&&"default"in st}function FromArray(st,Wt,Ot){const en=ValueOrDefault(st,Ot);if(!(0,In.IsArray)(en))return en;for(let Ot=0;Ot{const tn=Visit(Ot,Wt,en);return(0,In.IsObject)(tn)?{...st,...tn}:tn}),{})}function FromObject(st,Wt,Ot){const en=ValueOrDefault(st,Ot);if(!(0,In.IsObject)(en))return en;const tn=st.additionalProperties;const nn=Object.getOwnPropertyNames(st.properties);for(const Ot of nn){if(!IsDefaultSchema(st.properties[Ot]))continue;en[Ot]=Visit(st.properties[Ot],Wt,en[Ot])}if(!IsDefaultSchema(tn))return en;for(const st of Object.getOwnPropertyNames(en)){if(nn.includes(st))continue;en[st]=Visit(tn,Wt,en[st])}return en}function FromRecord(st,Wt,Ot){const en=ValueOrDefault(st,Ot);if(!(0,In.IsObject)(en))return en;const tn=st.additionalProperties;const[nn,an]=Object.entries(st.patternProperties)[0];const rn=new RegExp(nn);for(const st of Object.getOwnPropertyNames(en)){if(!(rn.test(st)&&IsDefaultSchema(an)))continue;en[st]=Visit(an,Wt,en[st])}if(!IsDefaultSchema(tn))return en;for(const st of Object.getOwnPropertyNames(en)){if(rn.test(st))continue;en[st]=Visit(tn,Wt,en[st])}return en}function FromRef(st,Wt,Ot){return Visit((0,nn.Deref)(st,Wt),Wt,ValueOrDefault(st,Ot))}function FromThis(st,Wt,Ot){return Visit((0,nn.Deref)(st,Wt),Wt,Ot)}function FromTuple(st,Wt,Ot){const en=ValueOrDefault(st,Ot);if(!(0,In.IsArray)(en)||(0,In.IsUndefined)(st.items))return en;const[tn,nn]=[st.items,Math.max(st.items.length,en.length)];for(let st=0;st{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Patch=Wt.Diff=Wt.ValueDeltaSymbolError=Wt.ValueDeltaError=Wt.Edit=Wt.Delete=Wt.Update=Wt.Insert=void 0;const en=Ot(19522);const tn=Ot(71054);const nn=Ot(66614);const an=Ot(94526);const In=Ot(24727);const rn=Ot(13871);const cn=Ot(69429);const on=Ot(41178);const sn=Ot(41743);Wt.Insert=(0,rn.Object)({type:(0,In.Literal)("insert"),path:(0,cn.String)(),value:(0,on.Unknown)()});Wt.Update=(0,rn.Object)({type:(0,In.Literal)("update"),path:(0,cn.String)(),value:(0,on.Unknown)()});Wt.Delete=(0,rn.Object)({type:(0,In.Literal)("delete"),path:(0,cn.String)()});Wt.Edit=(0,sn.Union)([Wt.Insert,Wt.Update,Wt.Delete]);class ValueDeltaError extends an.TypeBoxError{constructor(st,Wt){super(Wt);this.value=st}}Wt.ValueDeltaError=ValueDeltaError;class ValueDeltaSymbolError extends ValueDeltaError{constructor(st){super(st,"Cannot diff objects with symbol keys");this.value=st}}Wt.ValueDeltaSymbolError=ValueDeltaSymbolError;function CreateUpdate(st,Wt){return{type:"update",path:st,value:Wt}}function CreateInsert(st,Wt){return{type:"insert",path:st,value:Wt}}function CreateDelete(st){return{type:"delete",path:st}}function*ObjectType(st,Wt,Ot){if(!(0,en.IsStandardObject)(Ot))return yield CreateUpdate(st,Ot);const tn=[...globalThis.Object.keys(Wt),...globalThis.Object.getOwnPropertySymbols(Wt)];const nn=[...globalThis.Object.keys(Ot),...globalThis.Object.getOwnPropertySymbols(Ot)];for(const Wt of tn){if((0,en.IsSymbol)(Wt))throw new ValueDeltaSymbolError(Wt);if((0,en.IsUndefined)(Ot[Wt])&&nn.includes(Wt))yield CreateUpdate(`${st}/${globalThis.String(Wt)}`,undefined)}for(const tn of nn){if((0,en.IsUndefined)(Wt[tn])||(0,en.IsUndefined)(Ot[tn]))continue;if((0,en.IsSymbol)(tn))throw new ValueDeltaSymbolError(tn);yield*Visit(`${st}/${globalThis.String(tn)}`,Wt[tn],Ot[tn])}for(const tn of nn){if((0,en.IsSymbol)(tn))throw new ValueDeltaSymbolError(tn);if((0,en.IsUndefined)(Wt[tn]))yield CreateInsert(`${st}/${globalThis.String(tn)}`,Ot[tn])}for(const Wt of tn.reverse()){if((0,en.IsSymbol)(Wt))throw new ValueDeltaSymbolError(Wt);if((0,en.IsUndefined)(Ot[Wt])&&!nn.includes(Wt))yield CreateDelete(`${st}/${globalThis.String(Wt)}`)}}function*ArrayType(st,Wt,Ot){if(!(0,en.IsArray)(Ot))return yield CreateUpdate(st,Ot);for(let en=0;en=0;en--){if(en0&&st[0].path===""&&st[0].type==="update"}function IsIdentity(st){return st.length===0}function Patch(st,Wt){if(IsRootUpdate(Wt)){return(0,nn.Clone)(Wt[0].value)}if(IsIdentity(Wt)){return(0,nn.Clone)(st)}const Ot=(0,nn.Clone)(st);for(const st of Wt){switch(st.type){case"insert":{tn.ValuePointer.Set(Ot,st.path,st.value);break}case"update":{tn.ValuePointer.Set(Ot,st.path,st.value);break}case"delete":{tn.ValuePointer.Delete(Ot,st.path);break}}}return Ot}Wt.Patch=Patch},6145:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(86179),Wt)},41239:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Deref=Wt.TypeDereferenceError=void 0;const en=Ot(94526);class TypeDereferenceError extends en.TypeBoxError{constructor(st){super(`Unable to dereference schema with $id '${st.$id}'`);this.schema=st}}Wt.TypeDereferenceError=TypeDereferenceError;function Deref(st,Wt){const Ot=Wt.findIndex((Wt=>Wt.$id===st.$ref));if(Ot===-1)throw new TypeDereferenceError(st);return Wt[Ot]}Wt.Deref=Deref},75743:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(41239),Wt)},24487:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Equal=void 0;const en=Ot(19522);function ObjectType(st,Wt){if(!(0,en.IsStandardObject)(Wt))return false;const Ot=[...Object.keys(st),...Object.getOwnPropertySymbols(st)];const tn=[...Object.keys(Wt),...Object.getOwnPropertySymbols(Wt)];if(Ot.length!==tn.length)return false;return Ot.every((Ot=>Equal(st[Ot],Wt[Ot])))}function DateType(st,Wt){return(0,en.IsDate)(Wt)&&st.getTime()===Wt.getTime()}function ArrayType(st,Wt){if(!(0,en.IsArray)(Wt)||st.length!==Wt.length)return false;return st.every(((st,Ot)=>Equal(st,Wt[Ot])))}function TypedArrayType(st,Wt){if(!(0,en.IsTypedArray)(Wt)||st.length!==Wt.length||Object.getPrototypeOf(st).constructor.name!==Object.getPrototypeOf(Wt).constructor.name)return false;return st.every(((st,Ot)=>Equal(st,Wt[Ot])))}function ValueType(st,Wt){return st===Wt}function Equal(st,Wt){if((0,en.IsStandardObject)(st))return ObjectType(st,Wt);if((0,en.IsDate)(st))return DateType(st,Wt);if((0,en.IsTypedArray)(st))return TypedArrayType(st,Wt);if((0,en.IsArray)(st))return ArrayType(st,Wt);if((0,en.IsValueType)(st))return ValueType(st,Wt);throw new Error("ValueEquals: Unable to compare value")}Wt.Equal=Equal},7955:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(24487),Wt)},19567:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.IsValueType=Wt.IsSymbol=Wt.IsFunction=Wt.IsString=Wt.IsBigInt=Wt.IsInteger=Wt.IsNumber=Wt.IsBoolean=Wt.IsNull=Wt.IsUndefined=Wt.IsArray=Wt.IsObject=Wt.HasPropertyKey=Wt.IsBigUint64Array=Wt.IsBigInt64Array=Wt.IsFloat64Array=Wt.IsFloat32Array=Wt.IsUint32Array=Wt.IsInt32Array=Wt.IsUint16Array=Wt.IsInt16Array=Wt.IsUint8ClampedArray=Wt.IsUint8Array=Wt.IsInt8Array=Wt.IsTypedArray=Wt.IsRegExp=Wt.IsSet=Wt.IsMap=Wt.IsDate=Wt.IsPromise=Wt.IsInstanceObject=Wt.IsStandardObject=Wt.IsIterator=Wt.IsAsyncIterator=void 0;function IsAsyncIterator(st){return IsObject(st)&&Symbol.asyncIterator in st}Wt.IsAsyncIterator=IsAsyncIterator;function IsIterator(st){return IsObject(st)&&Symbol.iterator in st}Wt.IsIterator=IsIterator;function IsStandardObject(st){return IsObject(st)&&!IsArray(st)&&IsFunction(st.constructor)&&st.constructor.name==="Object"}Wt.IsStandardObject=IsStandardObject;function IsInstanceObject(st){return IsObject(st)&&!IsArray(st)&&IsFunction(st.constructor)&&st.constructor.name!=="Object"}Wt.IsInstanceObject=IsInstanceObject;function IsPromise(st){return st instanceof Promise}Wt.IsPromise=IsPromise;function IsDate(st){return st instanceof Date&&Number.isFinite(st.getTime())}Wt.IsDate=IsDate;function IsMap(st){return st instanceof globalThis.Map}Wt.IsMap=IsMap;function IsSet(st){return st instanceof globalThis.Set}Wt.IsSet=IsSet;function IsRegExp(st){return st instanceof globalThis.RegExp}Wt.IsRegExp=IsRegExp;function IsTypedArray(st){return ArrayBuffer.isView(st)}Wt.IsTypedArray=IsTypedArray;function IsInt8Array(st){return st instanceof globalThis.Int8Array}Wt.IsInt8Array=IsInt8Array;function IsUint8Array(st){return st instanceof globalThis.Uint8Array}Wt.IsUint8Array=IsUint8Array;function IsUint8ClampedArray(st){return st instanceof globalThis.Uint8ClampedArray}Wt.IsUint8ClampedArray=IsUint8ClampedArray;function IsInt16Array(st){return st instanceof globalThis.Int16Array}Wt.IsInt16Array=IsInt16Array;function IsUint16Array(st){return st instanceof globalThis.Uint16Array}Wt.IsUint16Array=IsUint16Array;function IsInt32Array(st){return st instanceof globalThis.Int32Array}Wt.IsInt32Array=IsInt32Array;function IsUint32Array(st){return st instanceof globalThis.Uint32Array}Wt.IsUint32Array=IsUint32Array;function IsFloat32Array(st){return st instanceof globalThis.Float32Array}Wt.IsFloat32Array=IsFloat32Array;function IsFloat64Array(st){return st instanceof globalThis.Float64Array}Wt.IsFloat64Array=IsFloat64Array;function IsBigInt64Array(st){return st instanceof globalThis.BigInt64Array}Wt.IsBigInt64Array=IsBigInt64Array;function IsBigUint64Array(st){return st instanceof globalThis.BigUint64Array}Wt.IsBigUint64Array=IsBigUint64Array;function HasPropertyKey(st,Wt){return Wt in st}Wt.HasPropertyKey=HasPropertyKey;function IsObject(st){return st!==null&&typeof st==="object"}Wt.IsObject=IsObject;function IsArray(st){return Array.isArray(st)&&!ArrayBuffer.isView(st)}Wt.IsArray=IsArray;function IsUndefined(st){return st===undefined}Wt.IsUndefined=IsUndefined;function IsNull(st){return st===null}Wt.IsNull=IsNull;function IsBoolean(st){return typeof st==="boolean"}Wt.IsBoolean=IsBoolean;function IsNumber(st){return typeof st==="number"}Wt.IsNumber=IsNumber;function IsInteger(st){return IsNumber(st)&&Number.isInteger(st)}Wt.IsInteger=IsInteger;function IsBigInt(st){return typeof st==="bigint"}Wt.IsBigInt=IsBigInt;function IsString(st){return typeof st==="string"}Wt.IsString=IsString;function IsFunction(st){return typeof st==="function"}Wt.IsFunction=IsFunction;function IsSymbol(st){return typeof st==="symbol"}Wt.IsSymbol=IsSymbol;function IsValueType(st){return IsBigInt(st)||IsBoolean(st)||IsNull(st)||IsNumber(st)||IsString(st)||IsSymbol(st)||IsUndefined(st)}Wt.IsValueType=IsValueType},19522:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(19567),Wt)},59289:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Hash=Wt.ValueHashError=void 0;const en=Ot(19522);const tn=Ot(94526);class ValueHashError extends tn.TypeBoxError{constructor(st){super(`Unable to hash value`);this.value=st}}Wt.ValueHashError=ValueHashError;var nn;(function(st){st[st["Undefined"]=0]="Undefined";st[st["Null"]=1]="Null";st[st["Boolean"]=2]="Boolean";st[st["Number"]=3]="Number";st[st["String"]=4]="String";st[st["Object"]=5]="Object";st[st["Array"]=6]="Array";st[st["Date"]=7]="Date";st[st["Uint8Array"]=8]="Uint8Array";st[st["Symbol"]=9]="Symbol";st[st["BigInt"]=10]="BigInt"})(nn||(nn={}));let an=BigInt("14695981039346656037");const[In,rn]=[BigInt("1099511628211"),BigInt("2")**BigInt("64")];const cn=Array.from({length:256}).map(((st,Wt)=>BigInt(Wt)));const on=new Float64Array(1);const sn=new DataView(on.buffer);const dn=new Uint8Array(on.buffer);function*NumberToBytes(st){const Wt=st===0?1:Math.ceil(Math.floor(Math.log2(st)+1)/8);for(let Ot=0;Ot>8*(Wt-1-Ot)&255}}function ArrayType(st){FNV1A64(nn.Array);for(const Wt of st){Visit(Wt)}}function BooleanType(st){FNV1A64(nn.Boolean);FNV1A64(st?1:0)}function BigIntType(st){FNV1A64(nn.BigInt);sn.setBigInt64(0,st);for(const st of dn){FNV1A64(st)}}function DateType(st){FNV1A64(nn.Date);Visit(st.getTime())}function NullType(st){FNV1A64(nn.Null)}function NumberType(st){FNV1A64(nn.Number);sn.setFloat64(0,st);for(const st of dn){FNV1A64(st)}}function ObjectType(st){FNV1A64(nn.Object);for(const Wt of globalThis.Object.keys(st).sort()){Visit(Wt);Visit(st[Wt])}}function StringType(st){FNV1A64(nn.String);for(let Wt=0;Wt{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Mutate=Wt.ValueMutateError=void 0;const en=Ot(19522);const tn=Ot(71054);const nn=Ot(66614);const an=Ot(94526);class ValueMutateError extends an.TypeBoxError{constructor(st){super(st)}}Wt.ValueMutateError=ValueMutateError;function ObjectType(st,Wt,Ot,an){if(!(0,en.IsStandardObject)(Ot)){tn.ValuePointer.Set(st,Wt,(0,nn.Clone)(an))}else{const en=Object.keys(Ot);const tn=Object.keys(an);for(const st of en){if(!tn.includes(st)){delete Ot[st]}}for(const st of tn){if(!en.includes(st)){Ot[st]=null}}for(const en of tn){Visit(st,`${Wt}/${en}`,Ot[en],an[en])}}}function ArrayType(st,Wt,Ot,an){if(!(0,en.IsArray)(Ot)){tn.ValuePointer.Set(st,Wt,(0,nn.Clone)(an))}else{for(let en=0;en{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.ValuePointer=void 0;Wt.ValuePointer=Ot(79456)},79456:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Get=Wt.Has=Wt.Delete=Wt.Set=Wt.Format=Wt.ValuePointerRootDeleteError=Wt.ValuePointerRootSetError=void 0;const en=Ot(94526);class ValuePointerRootSetError extends en.TypeBoxError{constructor(st,Wt,Ot){super("Cannot set root value");this.value=st;this.path=Wt;this.update=Ot}}Wt.ValuePointerRootSetError=ValuePointerRootSetError;class ValuePointerRootDeleteError extends en.TypeBoxError{constructor(st,Wt){super("Cannot delete root value");this.value=st;this.path=Wt}}Wt.ValuePointerRootDeleteError=ValuePointerRootDeleteError;function Escape(st){return st.indexOf("~")===-1?st:st.replace(/~1/g,"/").replace(/~0/g,"~")}function*Format(st){if(st==="")return;let[Wt,Ot]=[0,0];for(let en=0;en{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.TransformDecode=Wt.TransformDecodeError=Wt.TransformDecodeCheckError=void 0;const en=Ot(48121);const tn=Ot(94526);const nn=Ot(30658);const an=Ot(89777);const In=Ot(75743);const rn=Ot(35323);const cn=Ot(19522);const on=Ot(20109);class TransformDecodeCheckError extends tn.TypeBoxError{constructor(st,Wt,Ot){super(`Unable to decode value as it does not match the expected schema`);this.schema=st;this.value=Wt;this.error=Ot}}Wt.TransformDecodeCheckError=TransformDecodeCheckError;class TransformDecodeError extends tn.TypeBoxError{constructor(st,Wt,Ot,en){super(en instanceof Error?en.message:"Unknown error");this.schema=st;this.path=Wt;this.value=Ot;this.error=en}}Wt.TransformDecodeError=TransformDecodeError;function Default(st,Wt,Ot){try{return(0,on.IsTransform)(st)?st[en.TransformKind].Decode(Ot):Ot}catch(en){throw new TransformDecodeError(st,Wt,Ot,en)}}function FromArray(st,Wt,Ot,en){return(0,cn.IsArray)(en)?Default(st,Ot,en.map(((en,tn)=>Visit(st.items,Wt,`${Ot}/${tn}`,en)))):Default(st,Ot,en)}function FromIntersect(st,Wt,Ot,en){if(!(0,cn.IsStandardObject)(en)||(0,cn.IsValueType)(en))return Default(st,Ot,en);const tn=(0,nn.KeyOfPropertyKeys)(st);const In=tn.reduce(((en,tn)=>tn in en?{...en,[tn]:Visit((0,an.Index)(st,[tn]),Wt,`${Ot}/${tn}`,en[tn])}:en),en);if(!(0,on.IsTransform)(st.unevaluatedProperties)){return Default(st,Ot,In)}const rn=Object.getOwnPropertyNames(In);const sn=st.unevaluatedProperties;const dn=rn.reduce(((st,Wt)=>!tn.includes(Wt)?{...st,[Wt]:Default(sn,`${Ot}/${Wt}`,st[Wt])}:st),In);return Default(st,Ot,dn)}function FromNot(st,Wt,Ot,en){return Default(st,Ot,Visit(st.not,Wt,Ot,en))}function FromObject(st,Wt,Ot,en){if(!(0,cn.IsStandardObject)(en))return Default(st,Ot,en);const tn=(0,nn.KeyOfPropertyKeys)(st);const an=tn.reduce(((en,tn)=>tn in en?{...en,[tn]:Visit(st.properties[tn],Wt,`${Ot}/${tn}`,en[tn])}:en),en);if(!(0,on.IsSchema)(st.additionalProperties)){return Default(st,Ot,an)}const In=Object.getOwnPropertyNames(an);const rn=st.additionalProperties;const sn=In.reduce(((st,Wt)=>!tn.includes(Wt)?{...st,[Wt]:Default(rn,`${Ot}/${Wt}`,st[Wt])}:st),an);return Default(st,Ot,sn)}function FromRecord(st,Wt,Ot,en){if(!(0,cn.IsStandardObject)(en))return Default(st,Ot,en);const tn=Object.getOwnPropertyNames(st.patternProperties)[0];const nn=new RegExp(tn);const an=Object.getOwnPropertyNames(en).reduce(((en,an)=>nn.test(an)?{...en,[an]:Visit(st.patternProperties[tn],Wt,`${Ot}/${an}`,en[an])}:en),en);if(!(0,on.IsSchema)(st.additionalProperties)){return Default(st,Ot,an)}const In=Object.getOwnPropertyNames(an);const rn=st.additionalProperties;const sn=In.reduce(((st,Wt)=>!nn.test(Wt)?{...st,[Wt]:Default(rn,`${Ot}/${Wt}`,st[Wt])}:st),an);return Default(st,Ot,sn)}function FromRef(st,Wt,Ot,en){const tn=(0,In.Deref)(st,Wt);return Default(st,Ot,Visit(tn,Wt,Ot,en))}function FromThis(st,Wt,Ot,en){const tn=(0,In.Deref)(st,Wt);return Default(st,Ot,Visit(tn,Wt,Ot,en))}function FromTuple(st,Wt,Ot,en){return(0,cn.IsArray)(en)&&(0,cn.IsArray)(st.items)?Default(st,Ot,st.items.map(((st,tn)=>Visit(st,Wt,`${Ot}/${tn}`,en[tn])))):Default(st,Ot,en)}function FromUnion(st,Wt,Ot,en){for(const tn of st.anyOf){if(!(0,rn.Check)(tn,Wt,en))continue;const nn=Visit(tn,Wt,Ot,en);return Default(st,Ot,nn)}return Default(st,Ot,en)}function Visit(st,Wt,Ot,tn){const nn=typeof st.$id==="string"?[...Wt,st]:Wt;const an=st;switch(st[en.Kind]){case"Array":return FromArray(an,nn,Ot,tn);case"Intersect":return FromIntersect(an,nn,Ot,tn);case"Not":return FromNot(an,nn,Ot,tn);case"Object":return FromObject(an,nn,Ot,tn);case"Record":return FromRecord(an,nn,Ot,tn);case"Ref":return FromRef(an,nn,Ot,tn);case"Symbol":return Default(an,Ot,tn);case"This":return FromThis(an,nn,Ot,tn);case"Tuple":return FromTuple(an,nn,Ot,tn);case"Union":return FromUnion(an,nn,Ot,tn);default:return Default(an,Ot,tn)}}function TransformDecode(st,Wt,Ot){return Visit(st,Wt,"",Ot)}Wt.TransformDecode=TransformDecode},67873:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.TransformEncode=Wt.TransformEncodeError=Wt.TransformEncodeCheckError=void 0;const en=Ot(48121);const tn=Ot(94526);const nn=Ot(30658);const an=Ot(89777);const In=Ot(75743);const rn=Ot(35323);const cn=Ot(19522);const on=Ot(20109);class TransformEncodeCheckError extends tn.TypeBoxError{constructor(st,Wt,Ot){super(`The encoded value does not match the expected schema`);this.schema=st;this.value=Wt;this.error=Ot}}Wt.TransformEncodeCheckError=TransformEncodeCheckError;class TransformEncodeError extends tn.TypeBoxError{constructor(st,Wt,Ot,en){super(`${en instanceof Error?en.message:"Unknown error"}`);this.schema=st;this.path=Wt;this.value=Ot;this.error=en}}Wt.TransformEncodeError=TransformEncodeError;function Default(st,Wt,Ot){try{return(0,on.IsTransform)(st)?st[en.TransformKind].Encode(Ot):Ot}catch(en){throw new TransformEncodeError(st,Wt,Ot,en)}}function FromArray(st,Wt,Ot,en){const tn=Default(st,Ot,en);return(0,cn.IsArray)(tn)?tn.map(((en,tn)=>Visit(st.items,Wt,`${Ot}/${tn}`,en))):tn}function FromIntersect(st,Wt,Ot,en){const tn=Default(st,Ot,en);if(!(0,cn.IsStandardObject)(en)||(0,cn.IsValueType)(en))return tn;const In=(0,nn.KeyOfPropertyKeys)(st);const rn=In.reduce(((en,nn)=>nn in tn?{...en,[nn]:Visit((0,an.Index)(st,[nn]),Wt,`${Ot}/${nn}`,en[nn])}:en),tn);if(!(0,on.IsTransform)(st.unevaluatedProperties)){return Default(st,Ot,rn)}const sn=Object.getOwnPropertyNames(rn);const dn=st.unevaluatedProperties;return sn.reduce(((st,Wt)=>!In.includes(Wt)?{...st,[Wt]:Default(dn,`${Ot}/${Wt}`,st[Wt])}:st),rn)}function FromNot(st,Wt,Ot,en){return Default(st.not,Ot,Default(st,Ot,en))}function FromObject(st,Wt,Ot,en){const tn=Default(st,Ot,en);if(!(0,cn.IsStandardObject)(en))return tn;const an=(0,nn.KeyOfPropertyKeys)(st);const In=an.reduce(((en,tn)=>tn in en?{...en,[tn]:Visit(st.properties[tn],Wt,`${Ot}/${tn}`,en[tn])}:en),tn);if(!(0,on.IsSchema)(st.additionalProperties)){return In}const rn=Object.getOwnPropertyNames(In);const sn=st.additionalProperties;return rn.reduce(((st,Wt)=>!an.includes(Wt)?{...st,[Wt]:Default(sn,`${Ot}/${Wt}`,st[Wt])}:st),In)}function FromRecord(st,Wt,Ot,en){const tn=Default(st,Ot,en);if(!(0,cn.IsStandardObject)(en))return tn;const nn=Object.getOwnPropertyNames(st.patternProperties)[0];const an=new RegExp(nn);const In=Object.getOwnPropertyNames(en).reduce(((en,tn)=>an.test(tn)?{...en,[tn]:Visit(st.patternProperties[nn],Wt,`${Ot}/${tn}`,en[tn])}:en),tn);if(!(0,on.IsSchema)(st.additionalProperties)){return Default(st,Ot,In)}const rn=Object.getOwnPropertyNames(In);const sn=st.additionalProperties;return rn.reduce(((st,Wt)=>!an.test(Wt)?{...st,[Wt]:Default(sn,`${Ot}/${Wt}`,st[Wt])}:st),In)}function FromRef(st,Wt,Ot,en){const tn=(0,In.Deref)(st,Wt);const nn=Visit(tn,Wt,Ot,en);return Default(st,Ot,nn)}function FromThis(st,Wt,Ot,en){const tn=(0,In.Deref)(st,Wt);const nn=Visit(tn,Wt,Ot,en);return Default(st,Ot,nn)}function FromTuple(st,Wt,Ot,en){const tn=Default(st,Ot,en);return(0,cn.IsArray)(st.items)?st.items.map(((st,en)=>Visit(st,Wt,`${Ot}/${en}`,tn[en]))):[]}function FromUnion(st,Wt,Ot,en){for(const tn of st.anyOf){if(!(0,rn.Check)(tn,Wt,en))continue;const nn=Visit(tn,Wt,Ot,en);return Default(st,Ot,nn)}for(const tn of st.anyOf){const nn=Visit(tn,Wt,Ot,en);if(!(0,rn.Check)(st,Wt,nn))continue;return Default(st,Ot,nn)}return Default(st,Ot,en)}function Visit(st,Wt,Ot,tn){const nn=typeof st.$id==="string"?[...Wt,st]:Wt;const an=st;switch(st[en.Kind]){case"Array":return FromArray(an,nn,Ot,tn);case"Intersect":return FromIntersect(an,nn,Ot,tn);case"Not":return FromNot(an,nn,Ot,tn);case"Object":return FromObject(an,nn,Ot,tn);case"Record":return FromRecord(an,nn,Ot,tn);case"Ref":return FromRef(an,nn,Ot,tn);case"This":return FromThis(an,nn,Ot,tn);case"Tuple":return FromTuple(an,nn,Ot,tn);case"Union":return FromUnion(an,nn,Ot,tn);default:return Default(an,Ot,tn)}}function TransformEncode(st,Wt,Ot){return Visit(st,Wt,"",Ot)}Wt.TransformEncode=TransformEncode},83371:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.HasTransform=void 0;const en=Ot(75743);const tn=Ot(48121);const nn=Ot(20109);const an=Ot(19522);function FromArray(st,Wt){return(0,nn.IsTransform)(st)||Visit(st.items,Wt)}function FromAsyncIterator(st,Wt){return(0,nn.IsTransform)(st)||Visit(st.items,Wt)}function FromConstructor(st,Wt){return(0,nn.IsTransform)(st)||Visit(st.returns,Wt)||st.parameters.some((st=>Visit(st,Wt)))}function FromFunction(st,Wt){return(0,nn.IsTransform)(st)||Visit(st.returns,Wt)||st.parameters.some((st=>Visit(st,Wt)))}function FromIntersect(st,Wt){return(0,nn.IsTransform)(st)||(0,nn.IsTransform)(st.unevaluatedProperties)||st.allOf.some((st=>Visit(st,Wt)))}function FromIterator(st,Wt){return(0,nn.IsTransform)(st)||Visit(st.items,Wt)}function FromNot(st,Wt){return(0,nn.IsTransform)(st)||Visit(st.not,Wt)}function FromObject(st,Wt){return(0,nn.IsTransform)(st)||Object.values(st.properties).some((st=>Visit(st,Wt)))||(0,nn.IsSchema)(st.additionalProperties)&&Visit(st.additionalProperties,Wt)}function FromPromise(st,Wt){return(0,nn.IsTransform)(st)||Visit(st.item,Wt)}function FromRecord(st,Wt){const Ot=Object.getOwnPropertyNames(st.patternProperties)[0];const en=st.patternProperties[Ot];return(0,nn.IsTransform)(st)||Visit(en,Wt)||(0,nn.IsSchema)(st.additionalProperties)&&(0,nn.IsTransform)(st.additionalProperties)}function FromRef(st,Wt){if((0,nn.IsTransform)(st))return true;return Visit((0,en.Deref)(st,Wt),Wt)}function FromThis(st,Wt){if((0,nn.IsTransform)(st))return true;return Visit((0,en.Deref)(st,Wt),Wt)}function FromTuple(st,Wt){return(0,nn.IsTransform)(st)||!(0,an.IsUndefined)(st.items)&&st.items.some((st=>Visit(st,Wt)))}function FromUnion(st,Wt){return(0,nn.IsTransform)(st)||st.anyOf.some((st=>Visit(st,Wt)))}function Visit(st,Wt){const Ot=(0,an.IsString)(st.$id)?[...Wt,st]:Wt;const en=st;if(st.$id&&In.has(st.$id))return false;if(st.$id)In.add(st.$id);switch(st[tn.Kind]){case"Array":return FromArray(en,Ot);case"AsyncIterator":return FromAsyncIterator(en,Ot);case"Constructor":return FromConstructor(en,Ot);case"Function":return FromFunction(en,Ot);case"Intersect":return FromIntersect(en,Ot);case"Iterator":return FromIterator(en,Ot);case"Not":return FromNot(en,Ot);case"Object":return FromObject(en,Ot);case"Promise":return FromPromise(en,Ot);case"Record":return FromRecord(en,Ot);case"Ref":return FromRef(en,Ot);case"This":return FromThis(en,Ot);case"Tuple":return FromTuple(en,Ot);case"Union":return FromUnion(en,Ot);default:return(0,nn.IsTransform)(st)}}const In=new Set;function HasTransform(st,Wt){In.clear();return Visit(st,Wt)}Wt.HasTransform=HasTransform},90023:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});tn(Ot(35401),Wt);tn(Ot(67873),Wt);tn(Ot(83371),Wt)},8430:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Value=void 0;Wt.Value=Ot(10091)},10091:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.Mutate=Wt.Patch=Wt.Hash=Wt.Diff=Wt.Equal=Wt.Errors=Wt.Encode=Wt.Default=Wt.Decode=Wt.Clone=Wt.Convert=Wt.Clean=Wt.Check=Wt.Create=Wt.Cast=void 0;const en=Ot(90023);const tn=Ot(18567);const nn=Ot(73849);const an=Ot(7955);const In=Ot(49098);const rn=Ot(66614);const cn=Ot(23584);const on=Ot(37029);const sn=Ot(30642);const dn=Ot(35323);const un=Ot(5850);const pn=Ot(6145);const bn=Ot(4672);function Cast(...st){return In.Cast.apply(In.Cast,st)}Wt.Cast=Cast;function Create(...st){return on.Create.apply(on.Create,st)}Wt.Create=Create;function Check(...st){return dn.Check.apply(dn.Check,st)}Wt.Check=Check;function Clean(...st){return sn.Clean.apply(sn.Clean,st)}Wt.Clean=Clean;function Convert(...st){return cn.Convert.apply(cn.Convert,st)}Wt.Convert=Convert;function Clone(st){return(0,rn.Clone)(st)}Wt.Clone=Clone;function Decode(...st){const[Wt,Ot,tn]=st.length===3?[st[0],st[1],st[2]]:[st[0],[],st[1]];if(!Check(Wt,Ot,tn))throw new en.TransformDecodeCheckError(Wt,tn,Errors(Wt,Ot,tn).First());return(0,en.TransformDecode)(Wt,Ot,tn)}Wt.Decode=Decode;function Default(...st){return un.Default.apply(un.Default,st)}Wt.Default=Default;function Encode(...st){const[Wt,Ot,tn]=st.length===3?[st[0],st[1],st[2]]:[st[0],[],st[1]];const nn=(0,en.TransformEncode)(Wt,Ot,tn);if(!Check(Wt,Ot,nn))throw new en.TransformEncodeCheckError(Wt,nn,Errors(Wt,Ot,nn).First());return nn}Wt.Encode=Encode;function Errors(...st){return bn.Errors.apply(bn.Errors,st)}Wt.Errors=Errors;function Equal(st,Wt){return(0,an.Equal)(st,Wt)}Wt.Equal=Equal;function Diff(st,Wt){return(0,pn.Diff)(st,Wt)}Wt.Diff=Diff;function Hash(st){return(0,nn.Hash)(st)}Wt.Hash=Hash;function Patch(st,Wt){return(0,pn.Patch)(st,Wt)}Wt.Patch=Patch;function Mutate(st,Wt){(0,tn.Mutate)(st,Wt)}Wt.Mutate=Mutate},68789:function(st,Wt,Ot){"use strict";var en=this&&this.__importDefault||function(st){return st&&st.__esModule?st:{default:st}};Object.defineProperty(Wt,"__esModule",{value:true});const tn=en(Ot(52165));const nn=tn.default;Wt["default"]=nn},62495:function(st,Wt,Ot){"use strict";var en=this&&this.__importDefault||function(st){return st&&st.__esModule?st:{default:st}};Object.defineProperty(Wt,"__esModule",{value:true});const tn=en(Ot(16623));const nn=tn.default;Wt["default"]=nn},52165:function(st,Wt,Ot){"use strict";var en=this&&this.__rest||function(st,Wt){var Ot={};for(var en in st)if(Object.prototype.hasOwnProperty.call(st,en)&&Wt.indexOf(en)<0)Ot[en]=st[en];if(st!=null&&typeof Object.getOwnPropertySymbols==="function")for(var tn=0,en=Object.getOwnPropertySymbols(st);tn0){un.forEach((st=>{const Wt=parseInt(st.split(";")[0].split("=")[1].substring(0,1));const Ot=JSON.parse(st.split(";")[1].split("=")[1]);an[`${Ot}Page`]=Wt}));an.total=parseInt(dn)}return{data:Object.assign(Object.assign({},sn),an),error:null}}catch(st){if((0,an.isAuthError)(st)){return{data:{users:[]},error:st}}throw st}}async getUserById(st){try{return await(0,tn._request)(this.fetch,"GET",`${this.url}/admin/users/${st}`,{headers:this.headers,xform:tn._userResponse})}catch(st){if((0,an.isAuthError)(st)){return{data:{user:null},error:st}}throw st}}async updateUserById(st,Wt){try{return await(0,tn._request)(this.fetch,"PUT",`${this.url}/admin/users/${st}`,{body:Wt,headers:this.headers,xform:tn._userResponse})}catch(st){if((0,an.isAuthError)(st)){return{data:{user:null},error:st}}throw st}}async deleteUser(st,Wt=false){try{return await(0,tn._request)(this.fetch,"DELETE",`${this.url}/admin/users/${st}`,{headers:this.headers,body:{should_soft_delete:Wt},xform:tn._userResponse})}catch(st){if((0,an.isAuthError)(st)){return{data:{user:null},error:st}}throw st}}async _listFactors(st){try{const{data:Wt,error:Ot}=await(0,tn._request)(this.fetch,"GET",`${this.url}/admin/users/${st.userId}/factors`,{headers:this.headers,xform:st=>({data:{factors:st},error:null})});return{data:Wt,error:Ot}}catch(st){if((0,an.isAuthError)(st)){return{data:null,error:st}}throw st}}async _deleteFactor(st){try{const Wt=await(0,tn._request)(this.fetch,"DELETE",`${this.url}/admin/users/${st.userId}/factors/${st.id}`,{headers:this.headers});return{data:Wt,error:null}}catch(st){if((0,an.isAuthError)(st)){return{data:null,error:st}}throw st}}}Wt["default"]=GoTrueAdminApi},16623:function(st,Wt,Ot){"use strict";var en=this&&this.__importDefault||function(st){return st&&st.__esModule?st:{default:st}};Object.defineProperty(Wt,"__esModule",{value:true});const tn=en(Ot(52165));const nn=Ot(26705);const an=Ot(73981);const In=Ot(92356);const rn=Ot(30601);const cn=Ot(21735);const on=Ot(80512);const sn=Ot(41920);const dn=Ot(28932);(0,on.polyfillGlobalThis)();const un={url:nn.GOTRUE_URL,storageKey:nn.STORAGE_KEY,autoRefreshToken:true,persistSession:true,detectSessionInUrl:true,headers:nn.DEFAULT_HEADERS,flowType:"implicit",debug:false};const pn=30*1e3;const bn=3;async function lockNoOp(st,Wt,Ot){return await Ot()}class GoTrueClient{constructor(st){var Wt,Ot;this.memoryStorage=null;this.stateChangeEmitters=new Map;this.autoRefreshTicker=null;this.visibilityChangedCallback=null;this.refreshingDeferred=null;this.initializePromise=null;this.detectSessionInUrl=true;this.lockAcquired=false;this.pendingInLock=[];this.broadcastChannel=null;this.logger=console.log;this.insecureGetSessionWarningShown=false;this.instanceID=GoTrueClient.nextInstanceID;GoTrueClient.nextInstanceID+=1;if(this.instanceID>0&&(0,rn.isBrowser)()){console.warn("Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.")}const en=Object.assign(Object.assign({},un),st);this.logDebugMessages=!!en.debug;if(typeof en.debug==="function"){this.logger=en.debug}this.persistSession=en.persistSession;this.storageKey=en.storageKey;this.autoRefreshToken=en.autoRefreshToken;this.admin=new tn.default({url:en.url,headers:en.headers,fetch:en.fetch});this.url=en.url;this.headers=en.headers;this.fetch=(0,rn.resolveFetch)(en.fetch);this.lock=en.lock||lockNoOp;this.detectSessionInUrl=en.detectSessionInUrl;this.flowType=en.flowType;if(en.lock){this.lock=en.lock}else if((0,rn.isBrowser)()&&((Wt=globalThis===null||globalThis===void 0?void 0:globalThis.navigator)===null||Wt===void 0?void 0:Wt.locks)){this.lock=dn.navigatorLock}else{this.lock=lockNoOp}this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this)};if(this.persistSession){if(en.storage){this.storage=en.storage}else{if((0,rn.supportsLocalStorage)()){this.storage=cn.localStorageAdapter}else{this.memoryStorage={};this.storage=(0,cn.memoryLocalStorageAdapter)(this.memoryStorage)}}}else{this.memoryStorage={};this.storage=(0,cn.memoryLocalStorageAdapter)(this.memoryStorage)}if((0,rn.isBrowser)()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(st){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",st)}(Ot=this.broadcastChannel)===null||Ot===void 0?void 0:Ot.addEventListener("message",(async st=>{this._debug("received broadcast notification from other tab or client",st);await this._notifyAllSubscribers(st.data.event,st.data.session,false)}))}this.initialize()}_debug(...st){if(this.logDebugMessages){this.logger(`GoTrueClient@${this.instanceID} (${sn.version}) ${(new Date).toISOString()}`,...st)}return this}async initialize(){if(this.initializePromise){return await this.initializePromise}this.initializePromise=(async()=>await this._acquireLock(-1,(async()=>await this._initialize())))();return await this.initializePromise}async _initialize(){try{const st=(0,rn.isBrowser)()?await this._isPKCEFlow():false;this._debug("#_initialize()","begin","is PKCE flow",st);if(st||this.detectSessionInUrl&&this._isImplicitGrantFlow()){const{data:Wt,error:Ot}=await this._getSessionFromURL(st);if(Ot){this._debug("#_initialize()","error detecting session from URL",Ot);if((Ot===null||Ot===void 0?void 0:Ot.message)==="Identity is already linked"||(Ot===null||Ot===void 0?void 0:Ot.message)==="Identity is already linked to another user"){return{error:Ot}}await this._removeSession();return{error:Ot}}const{session:en,redirectType:tn}=Wt;this._debug("#_initialize()","detected session in URL",en,"redirect type",tn);await this._saveSession(en);setTimeout((async()=>{if(tn==="recovery"){await this._notifyAllSubscribers("PASSWORD_RECOVERY",en)}else{await this._notifyAllSubscribers("SIGNED_IN",en)}}),0);return{error:null}}await this._recoverAndRefresh();return{error:null}}catch(st){if((0,an.isAuthError)(st)){return{error:st}}return{error:new an.AuthUnknownError("Unexpected error during initialization",st)}}finally{await this._handleVisibilityChange();this._debug("#_initialize()","end")}}async signInAnonymously(st){var Wt,Ot,en;try{await this._removeSession();const tn=await(0,In._request)(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(Ot=(Wt=st===null||st===void 0?void 0:st.options)===null||Wt===void 0?void 0:Wt.data)!==null&&Ot!==void 0?Ot:{},gotrue_meta_security:{captcha_token:(en=st===null||st===void 0?void 0:st.options)===null||en===void 0?void 0:en.captchaToken}},xform:In._sessionResponse});const{data:nn,error:an}=tn;if(an||!nn){return{data:{user:null,session:null},error:an}}const rn=nn.session;const cn=nn.user;if(nn.session){await this._saveSession(nn.session);await this._notifyAllSubscribers("SIGNED_IN",rn)}return{data:{user:cn,session:rn},error:null}}catch(st){if((0,an.isAuthError)(st)){return{data:{user:null,session:null},error:st}}throw st}}async signUp(st){var Wt,Ot,en;try{await this._removeSession();let tn;if("email"in st){const{email:Ot,password:en,options:nn}=st;let an=null;let cn=null;if(this.flowType==="pkce"){[an,cn]=await(0,rn.getCodeChallengeAndMethod)(this.storage,this.storageKey)}tn=await(0,In._request)(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:nn===null||nn===void 0?void 0:nn.emailRedirectTo,body:{email:Ot,password:en,data:(Wt=nn===null||nn===void 0?void 0:nn.data)!==null&&Wt!==void 0?Wt:{},gotrue_meta_security:{captcha_token:nn===null||nn===void 0?void 0:nn.captchaToken},code_challenge:an,code_challenge_method:cn},xform:In._sessionResponse})}else if("phone"in st){const{phone:Wt,password:nn,options:an}=st;tn=await(0,In._request)(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:Wt,password:nn,data:(Ot=an===null||an===void 0?void 0:an.data)!==null&&Ot!==void 0?Ot:{},channel:(en=an===null||an===void 0?void 0:an.channel)!==null&&en!==void 0?en:"sms",gotrue_meta_security:{captcha_token:an===null||an===void 0?void 0:an.captchaToken}},xform:In._sessionResponse})}else{throw new an.AuthInvalidCredentialsError("You must provide either an email or phone number and a password")}const{data:nn,error:cn}=tn;if(cn||!nn){return{data:{user:null,session:null},error:cn}}const on=nn.session;const sn=nn.user;if(nn.session){await this._saveSession(nn.session);await this._notifyAllSubscribers("SIGNED_IN",on)}return{data:{user:sn,session:on},error:null}}catch(st){if((0,an.isAuthError)(st)){return{data:{user:null,session:null},error:st}}throw st}}async signInWithPassword(st){try{await this._removeSession();let Wt;if("email"in st){const{email:Ot,password:en,options:tn}=st;Wt=await(0,In._request)(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:Ot,password:en,gotrue_meta_security:{captcha_token:tn===null||tn===void 0?void 0:tn.captchaToken}},xform:In._sessionResponsePassword})}else if("phone"in st){const{phone:Ot,password:en,options:tn}=st;Wt=await(0,In._request)(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:Ot,password:en,gotrue_meta_security:{captcha_token:tn===null||tn===void 0?void 0:tn.captchaToken}},xform:In._sessionResponsePassword})}else{throw new an.AuthInvalidCredentialsError("You must provide either an email or phone number and a password")}const{data:Ot,error:en}=Wt;if(en){return{data:{user:null,session:null},error:en}}else if(!Ot||!Ot.session||!Ot.user){return{data:{user:null,session:null},error:new an.AuthInvalidTokenResponseError}}if(Ot.session){await this._saveSession(Ot.session);await this._notifyAllSubscribers("SIGNED_IN",Ot.session)}return{data:Object.assign({user:Ot.user,session:Ot.session},Ot.weak_password?{weakPassword:Ot.weak_password}:null),error:en}}catch(st){if((0,an.isAuthError)(st)){return{data:{user:null,session:null},error:st}}throw st}}async signInWithOAuth(st){var Wt,Ot,en,tn;await this._removeSession();return await this._handleProviderSignIn(st.provider,{redirectTo:(Wt=st.options)===null||Wt===void 0?void 0:Wt.redirectTo,scopes:(Ot=st.options)===null||Ot===void 0?void 0:Ot.scopes,queryParams:(en=st.options)===null||en===void 0?void 0:en.queryParams,skipBrowserRedirect:(tn=st.options)===null||tn===void 0?void 0:tn.skipBrowserRedirect})}async exchangeCodeForSession(st){await this.initializePromise;return this._acquireLock(-1,(async()=>this._exchangeCodeForSession(st)))}async _exchangeCodeForSession(st){const Wt=await(0,rn.getItemAsync)(this.storage,`${this.storageKey}-code-verifier`);const[Ot,en]=(Wt!==null&&Wt!==void 0?Wt:"").split("/");const{data:tn,error:nn}=await(0,In._request)(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:st,code_verifier:Ot},xform:In._sessionResponse});await(0,rn.removeItemAsync)(this.storage,`${this.storageKey}-code-verifier`);if(nn){return{data:{user:null,session:null,redirectType:null},error:nn}}else if(!tn||!tn.session||!tn.user){return{data:{user:null,session:null,redirectType:null},error:new an.AuthInvalidTokenResponseError}}if(tn.session){await this._saveSession(tn.session);await this._notifyAllSubscribers("SIGNED_IN",tn.session)}return{data:Object.assign(Object.assign({},tn),{redirectType:en!==null&&en!==void 0?en:null}),error:nn}}async signInWithIdToken(st){await this._removeSession();try{const{options:Wt,provider:Ot,token:en,access_token:tn,nonce:nn}=st;const rn=await(0,In._request)(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:Ot,id_token:en,access_token:tn,nonce:nn,gotrue_meta_security:{captcha_token:Wt===null||Wt===void 0?void 0:Wt.captchaToken}},xform:In._sessionResponse});const{data:cn,error:on}=rn;if(on){return{data:{user:null,session:null},error:on}}else if(!cn||!cn.session||!cn.user){return{data:{user:null,session:null},error:new an.AuthInvalidTokenResponseError}}if(cn.session){await this._saveSession(cn.session);await this._notifyAllSubscribers("SIGNED_IN",cn.session)}return{data:cn,error:on}}catch(st){if((0,an.isAuthError)(st)){return{data:{user:null,session:null},error:st}}throw st}}async signInWithOtp(st){var Wt,Ot,en,tn,nn;try{await this._removeSession();if("email"in st){const{email:en,options:tn}=st;let nn=null;let an=null;if(this.flowType==="pkce"){[nn,an]=await(0,rn.getCodeChallengeAndMethod)(this.storage,this.storageKey)}const{error:cn}=await(0,In._request)(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:en,data:(Wt=tn===null||tn===void 0?void 0:tn.data)!==null&&Wt!==void 0?Wt:{},create_user:(Ot=tn===null||tn===void 0?void 0:tn.shouldCreateUser)!==null&&Ot!==void 0?Ot:true,gotrue_meta_security:{captcha_token:tn===null||tn===void 0?void 0:tn.captchaToken},code_challenge:nn,code_challenge_method:an},redirectTo:tn===null||tn===void 0?void 0:tn.emailRedirectTo});return{data:{user:null,session:null},error:cn}}if("phone"in st){const{phone:Wt,options:Ot}=st;const{data:an,error:rn}=await(0,In._request)(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:Wt,data:(en=Ot===null||Ot===void 0?void 0:Ot.data)!==null&&en!==void 0?en:{},create_user:(tn=Ot===null||Ot===void 0?void 0:Ot.shouldCreateUser)!==null&&tn!==void 0?tn:true,gotrue_meta_security:{captcha_token:Ot===null||Ot===void 0?void 0:Ot.captchaToken},channel:(nn=Ot===null||Ot===void 0?void 0:Ot.channel)!==null&&nn!==void 0?nn:"sms"}});return{data:{user:null,session:null,messageId:an===null||an===void 0?void 0:an.message_id},error:rn}}throw new an.AuthInvalidCredentialsError("You must provide either an email or phone number.")}catch(st){if((0,an.isAuthError)(st)){return{data:{user:null,session:null},error:st}}throw st}}async verifyOtp(st){var Wt,Ot;try{if(st.type!=="email_change"&&st.type!=="phone_change"){await this._removeSession()}let en=undefined;let tn=undefined;if("options"in st){en=(Wt=st.options)===null||Wt===void 0?void 0:Wt.redirectTo;tn=(Ot=st.options)===null||Ot===void 0?void 0:Ot.captchaToken}const{data:nn,error:an}=await(0,In._request)(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},st),{gotrue_meta_security:{captcha_token:tn}}),redirectTo:en,xform:In._sessionResponse});if(an){throw an}if(!nn){throw new Error("An error occurred on token verification.")}const rn=nn.session;const cn=nn.user;if(rn===null||rn===void 0?void 0:rn.access_token){await this._saveSession(rn);await this._notifyAllSubscribers(st.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",rn)}return{data:{user:cn,session:rn},error:null}}catch(st){if((0,an.isAuthError)(st)){return{data:{user:null,session:null},error:st}}throw st}}async signInWithSSO(st){var Wt,Ot,en;try{await this._removeSession();let tn=null;let nn=null;if(this.flowType==="pkce"){[tn,nn]=await(0,rn.getCodeChallengeAndMethod)(this.storage,this.storageKey)}return await(0,In._request)(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in st?{provider_id:st.providerId}:null),"domain"in st?{domain:st.domain}:null),{redirect_to:(Ot=(Wt=st.options)===null||Wt===void 0?void 0:Wt.redirectTo)!==null&&Ot!==void 0?Ot:undefined}),((en=st===null||st===void 0?void 0:st.options)===null||en===void 0?void 0:en.captchaToken)?{gotrue_meta_security:{captcha_token:st.options.captchaToken}}:null),{skip_http_redirect:true,code_challenge:tn,code_challenge_method:nn}),headers:this.headers,xform:In._ssoResponse})}catch(st){if((0,an.isAuthError)(st)){return{data:null,error:st}}throw st}}async reauthenticate(){await this.initializePromise;return await this._acquireLock(-1,(async()=>await this._reauthenticate()))}async _reauthenticate(){try{return await this._useSession((async st=>{const{data:{session:Wt},error:Ot}=st;if(Ot)throw Ot;if(!Wt)throw new an.AuthSessionMissingError;const{error:en}=await(0,In._request)(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:Wt.access_token});return{data:{user:null,session:null},error:en}}))}catch(st){if((0,an.isAuthError)(st)){return{data:{user:null,session:null},error:st}}throw st}}async resend(st){try{if(st.type!="email_change"&&st.type!="phone_change"){await this._removeSession()}const Wt=`${this.url}/resend`;if("email"in st){const{email:Ot,type:en,options:tn}=st;const{error:nn}=await(0,In._request)(this.fetch,"POST",Wt,{headers:this.headers,body:{email:Ot,type:en,gotrue_meta_security:{captcha_token:tn===null||tn===void 0?void 0:tn.captchaToken}},redirectTo:tn===null||tn===void 0?void 0:tn.emailRedirectTo});return{data:{user:null,session:null},error:nn}}else if("phone"in st){const{phone:Ot,type:en,options:tn}=st;const{data:nn,error:an}=await(0,In._request)(this.fetch,"POST",Wt,{headers:this.headers,body:{phone:Ot,type:en,gotrue_meta_security:{captcha_token:tn===null||tn===void 0?void 0:tn.captchaToken}}});return{data:{user:null,session:null,messageId:nn===null||nn===void 0?void 0:nn.message_id},error:an}}throw new an.AuthInvalidCredentialsError("You must provide either an email or phone number and a type")}catch(st){if((0,an.isAuthError)(st)){return{data:{user:null,session:null},error:st}}throw st}}async getSession(){await this.initializePromise;const st=await this._acquireLock(-1,(async()=>this._useSession((async st=>st))));if(st.data&&this.storage.isServer){if(!this.insecureGetSessionWarningShown){console.warn("Using supabase.auth.getSession() is potentially insecure as it loads data directly from the storage medium (typically cookies) which may not be authentic. Prefer using supabase.auth.getUser() instead. To suppress this warning call supabase.auth.getUser() before you call supabase.auth.getSession().");this.insecureGetSessionWarningShown=true}}return st}async _acquireLock(st,Wt){this._debug("#_acquireLock","begin",st);try{if(this.lockAcquired){const st=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve();const Ot=(async()=>{await st;return await Wt()})();this.pendingInLock.push((async()=>{try{await Ot}catch(st){}})());return Ot}return await this.lock(`lock:${this.storageKey}`,st,(async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=true;const st=Wt();this.pendingInLock.push((async()=>{try{await st}catch(st){}})());await st;while(this.pendingInLock.length){const st=[...this.pendingInLock];await Promise.all(st);this.pendingInLock.splice(0,st.length)}return await st}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey);this.lockAcquired=false}}))}finally{this._debug("#_acquireLock","end")}}async _useSession(st){this._debug("#_useSession","begin");try{const Wt=await this.__loadSession();return await st(Wt)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin");if(!this.lockAcquired){this._debug("#__loadSession()","used outside of an acquired lock!",(new Error).stack)}try{let st=null;const Wt=await(0,rn.getItemAsync)(this.storage,this.storageKey);this._debug("#getSession()","session from storage",Wt);if(Wt!==null){if(this._isValidSession(Wt)){st=Wt}else{this._debug("#getSession()","session from storage is not valid");await this._removeSession()}}if(!st){return{data:{session:null},error:null}}const Ot=st.expires_at?st.expires_at<=Date.now()/1e3:false;this._debug("#__loadSession()",`session has${Ot?"":" not"} expired`,"expires_at",st.expires_at);if(!Ot){if(this.storage.isServer){let Wt=st.user;delete st.user;Object.defineProperty(st,"user",{enumerable:true,get:()=>{if(!st.__suppressUserWarning){console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and many not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server.")}return Wt},set:st=>{Wt=st}})}return{data:{session:st},error:null}}const{session:en,error:tn}=await this._callRefreshToken(st.refresh_token);if(tn){return{data:{session:null},error:tn}}return{data:{session:en},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(st){if(st){return await this._getUser(st)}await this.initializePromise;const Wt=await this._acquireLock(-1,(async()=>await this._getUser()));if(Wt.data&&this.storage.isServer){this.insecureGetSessionWarningShown=true}return Wt}async _getUser(st){try{if(st){return await(0,In._request)(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:st,xform:In._userResponse})}return await this._useSession((async st=>{var Wt,Ot;const{data:en,error:tn}=st;if(tn){throw tn}return await(0,In._request)(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(Ot=(Wt=en.session)===null||Wt===void 0?void 0:Wt.access_token)!==null&&Ot!==void 0?Ot:undefined,xform:In._userResponse})}))}catch(st){if((0,an.isAuthError)(st)){return{data:{user:null},error:st}}throw st}}async updateUser(st,Wt={}){await this.initializePromise;return await this._acquireLock(-1,(async()=>await this._updateUser(st,Wt)))}async _updateUser(st,Wt={}){try{return await this._useSession((async Ot=>{const{data:en,error:tn}=Ot;if(tn){throw tn}if(!en.session){throw new an.AuthSessionMissingError}const nn=en.session;let cn=null;let on=null;if(this.flowType==="pkce"&&st.email!=null){[cn,on]=await(0,rn.getCodeChallengeAndMethod)(this.storage,this.storageKey)}const{data:sn,error:dn}=await(0,In._request)(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:Wt===null||Wt===void 0?void 0:Wt.emailRedirectTo,body:Object.assign(Object.assign({},st),{code_challenge:cn,code_challenge_method:on}),jwt:nn.access_token,xform:In._userResponse});if(dn)throw dn;nn.user=sn.user;await this._saveSession(nn);await this._notifyAllSubscribers("USER_UPDATED",nn);return{data:{user:nn.user},error:null}}))}catch(st){if((0,an.isAuthError)(st)){return{data:{user:null},error:st}}throw st}}_decodeJWT(st){return(0,rn.decodeJWTPayload)(st)}async setSession(st){await this.initializePromise;return await this._acquireLock(-1,(async()=>await this._setSession(st)))}async _setSession(st){try{if(!st.access_token||!st.refresh_token){throw new an.AuthSessionMissingError}const Wt=Date.now()/1e3;let Ot=Wt;let en=true;let tn=null;const nn=(0,rn.decodeJWTPayload)(st.access_token);if(nn.exp){Ot=nn.exp;en=Ot<=Wt}if(en){const{session:Wt,error:Ot}=await this._callRefreshToken(st.refresh_token);if(Ot){return{data:{user:null,session:null},error:Ot}}if(!Wt){return{data:{user:null,session:null},error:null}}tn=Wt}else{const{data:en,error:nn}=await this._getUser(st.access_token);if(nn){throw nn}tn={access_token:st.access_token,refresh_token:st.refresh_token,user:en.user,token_type:"bearer",expires_in:Ot-Wt,expires_at:Ot};await this._saveSession(tn);await this._notifyAllSubscribers("SIGNED_IN",tn)}return{data:{user:tn.user,session:tn},error:null}}catch(st){if((0,an.isAuthError)(st)){return{data:{session:null,user:null},error:st}}throw st}}async refreshSession(st){await this.initializePromise;return await this._acquireLock(-1,(async()=>await this._refreshSession(st)))}async _refreshSession(st){try{return await this._useSession((async Wt=>{var Ot;if(!st){const{data:en,error:tn}=Wt;if(tn){throw tn}st=(Ot=en.session)!==null&&Ot!==void 0?Ot:undefined}if(!(st===null||st===void 0?void 0:st.refresh_token)){throw new an.AuthSessionMissingError}const{session:en,error:tn}=await this._callRefreshToken(st.refresh_token);if(tn){return{data:{user:null,session:null},error:tn}}if(!en){return{data:{user:null,session:null},error:null}}return{data:{user:en.user,session:en},error:null}}))}catch(st){if((0,an.isAuthError)(st)){return{data:{user:null,session:null},error:st}}throw st}}async _getSessionFromURL(st){try{if(!(0,rn.isBrowser)())throw new an.AuthImplicitGrantRedirectError("No browser detected.");if(this.flowType==="implicit"&&!this._isImplicitGrantFlow()){throw new an.AuthImplicitGrantRedirectError("Not a valid implicit grant flow url.")}else if(this.flowType=="pkce"&&!st){throw new an.AuthPKCEGrantCodeExchangeError("Not a valid PKCE flow url.")}const Wt=(0,rn.parseParametersFromURL)(window.location.href);if(st){if(!Wt.code)throw new an.AuthPKCEGrantCodeExchangeError("No code detected.");const{data:st,error:Ot}=await this._exchangeCodeForSession(Wt.code);if(Ot)throw Ot;const en=new URL(window.location.href);en.searchParams.delete("code");window.history.replaceState(window.history.state,"",en.toString());return{data:{session:st.session,redirectType:null},error:null}}if(Wt.error||Wt.error_description||Wt.error_code){throw new an.AuthImplicitGrantRedirectError(Wt.error_description||"Error in URL with unspecified error_description",{error:Wt.error||"unspecified_error",code:Wt.error_code||"unspecified_code"})}const{provider_token:Ot,provider_refresh_token:en,access_token:tn,refresh_token:nn,expires_in:In,expires_at:cn,token_type:on}=Wt;if(!tn||!In||!nn||!on){throw new an.AuthImplicitGrantRedirectError("No session defined in URL")}const sn=Math.round(Date.now()/1e3);const dn=parseInt(In);let un=sn+dn;if(cn){un=parseInt(cn)}const bn=un-sn;if(bn*1e3<=pn){console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${bn}s, should have been closer to ${dn}s`)}const mn=un-dn;if(sn-mn>=120){console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",mn,un,sn)}else if(sn-mn<0){console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clok for skew",mn,un,sn)}const{data:Gn,error:hn}=await this._getUser(tn);if(hn)throw hn;const Zn={provider_token:Ot,provider_refresh_token:en,access_token:tn,expires_in:dn,expires_at:un,refresh_token:nn,token_type:on,user:Gn.user};window.location.hash="";this._debug("#_getSessionFromURL()","clearing window.location.hash");return{data:{session:Zn,redirectType:Wt.type},error:null}}catch(st){if((0,an.isAuthError)(st)){return{data:{session:null,redirectType:null},error:st}}throw st}}_isImplicitGrantFlow(){const st=(0,rn.parseParametersFromURL)(window.location.href);return!!((0,rn.isBrowser)()&&(st.access_token||st.error_description))}async _isPKCEFlow(){const st=(0,rn.parseParametersFromURL)(window.location.href);const Wt=await(0,rn.getItemAsync)(this.storage,`${this.storageKey}-code-verifier`);return!!(st.code&&Wt)}async signOut(st={scope:"global"}){await this.initializePromise;return await this._acquireLock(-1,(async()=>await this._signOut(st)))}async _signOut({scope:st}={scope:"global"}){return await this._useSession((async Wt=>{var Ot;const{data:en,error:tn}=Wt;if(tn){return{error:tn}}const nn=(Ot=en.session)===null||Ot===void 0?void 0:Ot.access_token;if(nn){const{error:Wt}=await this.admin.signOut(nn,st);if(Wt){if(!((0,an.isAuthApiError)(Wt)&&(Wt.status===404||Wt.status===401))){return{error:Wt}}}}if(st!=="others"){await this._removeSession();await(0,rn.removeItemAsync)(this.storage,`${this.storageKey}-code-verifier`);await this._notifyAllSubscribers("SIGNED_OUT",null)}return{error:null}}))}onAuthStateChange(st){const Wt=(0,rn.uuid)();const Ot={id:Wt,callback:st,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",Wt);this.stateChangeEmitters.delete(Wt)}};this._debug("#onAuthStateChange()","registered callback with id",Wt);this.stateChangeEmitters.set(Wt,Ot);(async()=>{await this.initializePromise;await this._acquireLock(-1,(async()=>{this._emitInitialSession(Wt)}))})();return{data:{subscription:Ot}}}async _emitInitialSession(st){return await this._useSession((async Wt=>{var Ot,en;try{const{data:{session:en},error:tn}=Wt;if(tn)throw tn;await((Ot=this.stateChangeEmitters.get(st))===null||Ot===void 0?void 0:Ot.callback("INITIAL_SESSION",en));this._debug("INITIAL_SESSION","callback id",st,"session",en)}catch(Wt){await((en=this.stateChangeEmitters.get(st))===null||en===void 0?void 0:en.callback("INITIAL_SESSION",null));this._debug("INITIAL_SESSION","callback id",st,"error",Wt);console.error(Wt)}}))}async resetPasswordForEmail(st,Wt={}){let Ot=null;let en=null;if(this.flowType==="pkce"){[Ot,en]=await(0,rn.getCodeChallengeAndMethod)(this.storage,this.storageKey,true)}try{return await(0,In._request)(this.fetch,"POST",`${this.url}/recover`,{body:{email:st,code_challenge:Ot,code_challenge_method:en,gotrue_meta_security:{captcha_token:Wt.captchaToken}},headers:this.headers,redirectTo:Wt.redirectTo})}catch(st){if((0,an.isAuthError)(st)){return{data:null,error:st}}throw st}}async getUserIdentities(){var st;try{const{data:Wt,error:Ot}=await this.getUser();if(Ot)throw Ot;return{data:{identities:(st=Wt.user.identities)!==null&&st!==void 0?st:[]},error:null}}catch(st){if((0,an.isAuthError)(st)){return{data:null,error:st}}throw st}}async linkIdentity(st){var Wt;try{const{data:Ot,error:en}=await this._useSession((async Wt=>{var Ot,en,tn,nn,an;const{data:rn,error:cn}=Wt;if(cn)throw cn;const on=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,st.provider,{redirectTo:(Ot=st.options)===null||Ot===void 0?void 0:Ot.redirectTo,scopes:(en=st.options)===null||en===void 0?void 0:en.scopes,queryParams:(tn=st.options)===null||tn===void 0?void 0:tn.queryParams,skipBrowserRedirect:true});return await(0,In._request)(this.fetch,"GET",on,{headers:this.headers,jwt:(an=(nn=rn.session)===null||nn===void 0?void 0:nn.access_token)!==null&&an!==void 0?an:undefined})}));if(en)throw en;if((0,rn.isBrowser)()&&!((Wt=st.options)===null||Wt===void 0?void 0:Wt.skipBrowserRedirect)){window.location.assign(Ot===null||Ot===void 0?void 0:Ot.url)}return{data:{provider:st.provider,url:Ot===null||Ot===void 0?void 0:Ot.url},error:null}}catch(Wt){if((0,an.isAuthError)(Wt)){return{data:{provider:st.provider,url:null},error:Wt}}throw Wt}}async unlinkIdentity(st){try{return await this._useSession((async Wt=>{var Ot,en;const{data:tn,error:nn}=Wt;if(nn){throw nn}return await(0,In._request)(this.fetch,"DELETE",`${this.url}/user/identities/${st.identity_id}`,{headers:this.headers,jwt:(en=(Ot=tn.session)===null||Ot===void 0?void 0:Ot.access_token)!==null&&en!==void 0?en:undefined})}))}catch(st){if((0,an.isAuthError)(st)){return{data:null,error:st}}throw st}}async _refreshAccessToken(st){const Wt=`#_refreshAccessToken(${st.substring(0,5)}...)`;this._debug(Wt,"begin");try{const Ot=Date.now();return await(0,rn.retryable)((async Ot=>{await(0,rn.sleep)(Ot*200);this._debug(Wt,"refreshing attempt",Ot);return await(0,In._request)(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:st},headers:this.headers,xform:In._sessionResponse})}),((st,Wt,en)=>en&&en.error&&(0,an.isAuthRetryableFetchError)(en.error)&&Date.now()+(st+1)*200-Ot{try{await Ot.callback(st,Wt)}catch(st){en.push(st)}}));await Promise.all(tn);if(en.length>0){for(let st=0;stthis._autoRefreshTokenTick()),pn);this.autoRefreshTicker=st;if(st&&typeof st==="object"&&typeof st.unref==="function"){st.unref()}else if(typeof Deno!=="undefined"&&typeof Deno.unrefTimer==="function"){Deno.unrefTimer(st)}setTimeout((async()=>{await this.initializePromise;await this._autoRefreshTokenTick()}),0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const st=this.autoRefreshTicker;this.autoRefreshTicker=null;if(st){clearInterval(st)}}async startAutoRefresh(){this._removeVisibilityChangedCallback();await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback();await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,(async()=>{try{const st=Date.now();try{return await this._useSession((async Wt=>{const{data:{session:Ot}}=Wt;if(!Ot||!Ot.refresh_token||!Ot.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const en=Math.floor((Ot.expires_at*1e3-st)/pn);this._debug("#_autoRefreshTokenTick()",`access token expires in ${en} ticks, a tick lasts ${pn}ms, refresh threshold is ${bn} ticks`);if(en<=bn){await this._callRefreshToken(Ot.refresh_token)}}))}catch(st){console.error("Auto refresh tick failed with error. This is likely a transient error.",st)}}finally{this._debug("#_autoRefreshTokenTick()","end")}}))}catch(st){if(st.isAcquireTimeout||st instanceof dn.LockAcquireTimeoutError){this._debug("auto refresh token tick lock not available")}else{throw st}}}async _handleVisibilityChange(){this._debug("#_handleVisibilityChange()");if(!(0,rn.isBrowser)()||!(window===null||window===void 0?void 0:window.addEventListener)){if(this.autoRefreshToken){this.startAutoRefresh()}return false}try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(false);window===null||window===void 0?void 0:window.addEventListener("visibilitychange",this.visibilityChangedCallback);await this._onVisibilityChanged(true)}catch(st){console.error("_handleVisibilityChange",st)}}async _onVisibilityChanged(st){const Wt=`#_onVisibilityChanged(${st})`;this._debug(Wt,"visibilityState",document.visibilityState);if(document.visibilityState==="visible"){if(this.autoRefreshToken){this._startAutoRefresh()}if(!st){await this.initializePromise;await this._acquireLock(-1,(async()=>{if(document.visibilityState!=="visible"){this._debug(Wt,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))}}else if(document.visibilityState==="hidden"){if(this.autoRefreshToken){this._stopAutoRefresh()}}}async _getUrlForProvider(st,Wt,Ot){const en=[`provider=${encodeURIComponent(Wt)}`];if(Ot===null||Ot===void 0?void 0:Ot.redirectTo){en.push(`redirect_to=${encodeURIComponent(Ot.redirectTo)}`)}if(Ot===null||Ot===void 0?void 0:Ot.scopes){en.push(`scopes=${encodeURIComponent(Ot.scopes)}`)}if(this.flowType==="pkce"){const[st,Wt]=await(0,rn.getCodeChallengeAndMethod)(this.storage,this.storageKey);const Ot=new URLSearchParams({code_challenge:`${encodeURIComponent(st)}`,code_challenge_method:`${encodeURIComponent(Wt)}`});en.push(Ot.toString())}if(Ot===null||Ot===void 0?void 0:Ot.queryParams){const st=new URLSearchParams(Ot.queryParams);en.push(st.toString())}if(Ot===null||Ot===void 0?void 0:Ot.skipBrowserRedirect){en.push(`skip_http_redirect=${Ot.skipBrowserRedirect}`)}return`${st}?${en.join("&")}`}async _unenroll(st){try{return await this._useSession((async Wt=>{var Ot;const{data:en,error:tn}=Wt;if(tn){return{data:null,error:tn}}return await(0,In._request)(this.fetch,"DELETE",`${this.url}/factors/${st.factorId}`,{headers:this.headers,jwt:(Ot=en===null||en===void 0?void 0:en.session)===null||Ot===void 0?void 0:Ot.access_token})}))}catch(st){if((0,an.isAuthError)(st)){return{data:null,error:st}}throw st}}async _enroll(st){try{return await this._useSession((async Wt=>{var Ot,en;const{data:tn,error:nn}=Wt;if(nn){return{data:null,error:nn}}const{data:an,error:rn}=await(0,In._request)(this.fetch,"POST",`${this.url}/factors`,{body:{friendly_name:st.friendlyName,factor_type:st.factorType,issuer:st.issuer},headers:this.headers,jwt:(Ot=tn===null||tn===void 0?void 0:tn.session)===null||Ot===void 0?void 0:Ot.access_token});if(rn){return{data:null,error:rn}}if((en=an===null||an===void 0?void 0:an.totp)===null||en===void 0?void 0:en.qr_code){an.totp.qr_code=`data:image/svg+xml;utf-8,${an.totp.qr_code}`}return{data:an,error:null}}))}catch(st){if((0,an.isAuthError)(st)){return{data:null,error:st}}throw st}}async _verify(st){return this._acquireLock(-1,(async()=>{try{return await this._useSession((async Wt=>{var Ot;const{data:en,error:tn}=Wt;if(tn){return{data:null,error:tn}}const{data:nn,error:an}=await(0,In._request)(this.fetch,"POST",`${this.url}/factors/${st.factorId}/verify`,{body:{code:st.code,challenge_id:st.challengeId},headers:this.headers,jwt:(Ot=en===null||en===void 0?void 0:en.session)===null||Ot===void 0?void 0:Ot.access_token});if(an){return{data:null,error:an}}await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+nn.expires_in},nn));await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",nn);return{data:nn,error:an}}))}catch(st){if((0,an.isAuthError)(st)){return{data:null,error:st}}throw st}}))}async _challenge(st){return this._acquireLock(-1,(async()=>{try{return await this._useSession((async Wt=>{var Ot;const{data:en,error:tn}=Wt;if(tn){return{data:null,error:tn}}return await(0,In._request)(this.fetch,"POST",`${this.url}/factors/${st.factorId}/challenge`,{headers:this.headers,jwt:(Ot=en===null||en===void 0?void 0:en.session)===null||Ot===void 0?void 0:Ot.access_token})}))}catch(st){if((0,an.isAuthError)(st)){return{data:null,error:st}}throw st}}))}async _challengeAndVerify(st){const{data:Wt,error:Ot}=await this._challenge({factorId:st.factorId});if(Ot){return{data:null,error:Ot}}return await this._verify({factorId:st.factorId,challengeId:Wt.id,code:st.code})}async _listFactors(){const{data:{user:st},error:Wt}=await this.getUser();if(Wt){return{data:null,error:Wt}}const Ot=(st===null||st===void 0?void 0:st.factors)||[];const en=Ot.filter((st=>st.factor_type==="totp"&&st.status==="verified"));return{data:{all:Ot,totp:en},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,(async()=>await this._useSession((async st=>{var Wt,Ot;const{data:{session:en},error:tn}=st;if(tn){return{data:null,error:tn}}if(!en){return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null}}const nn=this._decodeJWT(en.access_token);let an=null;if(nn.aal){an=nn.aal}let In=an;const rn=(Ot=(Wt=en.user.factors)===null||Wt===void 0?void 0:Wt.filter((st=>st.status==="verified")))!==null&&Ot!==void 0?Ot:[];if(rn.length>0){In="aal2"}const cn=nn.amr||[];return{data:{currentLevel:an,nextLevel:In,currentAuthenticationMethods:cn},error:null}}))))}}Wt["default"]=GoTrueClient;GoTrueClient.nextInstanceID=0},31904:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};var nn=this&&this.__importDefault||function(st){return st&&st.__esModule?st:{default:st}};Object.defineProperty(Wt,"__esModule",{value:true});Wt.lockInternals=Wt.NavigatorLockAcquireTimeoutError=Wt.navigatorLock=Wt.AuthClient=Wt.AuthAdminApi=Wt.GoTrueClient=Wt.GoTrueAdminApi=void 0;const an=nn(Ot(52165));Wt.GoTrueAdminApi=an.default;const In=nn(Ot(16623));Wt.GoTrueClient=In.default;const rn=nn(Ot(68789));Wt.AuthAdminApi=rn.default;const cn=nn(Ot(62495));Wt.AuthClient=cn.default;tn(Ot(53737),Wt);tn(Ot(73981),Wt);var on=Ot(28932);Object.defineProperty(Wt,"navigatorLock",{enumerable:true,get:function(){return on.navigatorLock}});Object.defineProperty(Wt,"NavigatorLockAcquireTimeoutError",{enumerable:true,get:function(){return on.NavigatorLockAcquireTimeoutError}});Object.defineProperty(Wt,"lockInternals",{enumerable:true,get:function(){return on.internals}})},26705:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.API_VERSIONS=Wt.API_VERSION_HEADER_NAME=Wt.NETWORK_FAILURE=Wt.EXPIRY_MARGIN=Wt.DEFAULT_HEADERS=Wt.AUDIENCE=Wt.STORAGE_KEY=Wt.GOTRUE_URL=void 0;const en=Ot(41920);Wt.GOTRUE_URL="http://localhost:9999";Wt.STORAGE_KEY="supabase.auth.token";Wt.AUDIENCE="";Wt.DEFAULT_HEADERS={"X-Client-Info":`gotrue-js/${en.version}`};Wt.EXPIRY_MARGIN=10;Wt.NETWORK_FAILURE={MAX_RETRIES:10,RETRY_INTERVAL:2};Wt.API_VERSION_HEADER_NAME="X-Supabase-Api-Version";Wt.API_VERSIONS={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}}},73981:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.isAuthWeakPasswordError=Wt.AuthWeakPasswordError=Wt.isAuthRetryableFetchError=Wt.AuthRetryableFetchError=Wt.AuthPKCEGrantCodeExchangeError=Wt.AuthImplicitGrantRedirectError=Wt.AuthInvalidCredentialsError=Wt.AuthInvalidTokenResponseError=Wt.AuthSessionMissingError=Wt.CustomAuthError=Wt.AuthUnknownError=Wt.isAuthApiError=Wt.AuthApiError=Wt.isAuthError=Wt.AuthError=void 0;class AuthError extends Error{constructor(st,Wt,Ot){super(st);this.__isAuthError=true;this.name="AuthError";this.status=Wt;this.code=Ot}}Wt.AuthError=AuthError;function isAuthError(st){return typeof st==="object"&&st!==null&&"__isAuthError"in st}Wt.isAuthError=isAuthError;class AuthApiError extends AuthError{constructor(st,Wt,Ot){super(st,Wt,Ot);this.name="AuthApiError";this.status=Wt;this.code=Ot}}Wt.AuthApiError=AuthApiError;function isAuthApiError(st){return isAuthError(st)&&st.name==="AuthApiError"}Wt.isAuthApiError=isAuthApiError;class AuthUnknownError extends AuthError{constructor(st,Wt){super(st);this.name="AuthUnknownError";this.originalError=Wt}}Wt.AuthUnknownError=AuthUnknownError;class CustomAuthError extends AuthError{constructor(st,Wt,Ot,en){super(st,Ot,en);this.name=Wt;this.status=Ot}}Wt.CustomAuthError=CustomAuthError;class AuthSessionMissingError extends CustomAuthError{constructor(){super("Auth session missing!","AuthSessionMissingError",400,undefined)}}Wt.AuthSessionMissingError=AuthSessionMissingError;class AuthInvalidTokenResponseError extends CustomAuthError{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,undefined)}}Wt.AuthInvalidTokenResponseError=AuthInvalidTokenResponseError;class AuthInvalidCredentialsError extends CustomAuthError{constructor(st){super(st,"AuthInvalidCredentialsError",400,undefined)}}Wt.AuthInvalidCredentialsError=AuthInvalidCredentialsError;class AuthImplicitGrantRedirectError extends CustomAuthError{constructor(st,Wt=null){super(st,"AuthImplicitGrantRedirectError",500,undefined);this.details=null;this.details=Wt}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}Wt.AuthImplicitGrantRedirectError=AuthImplicitGrantRedirectError;class AuthPKCEGrantCodeExchangeError extends CustomAuthError{constructor(st,Wt=null){super(st,"AuthPKCEGrantCodeExchangeError",500,undefined);this.details=null;this.details=Wt}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}Wt.AuthPKCEGrantCodeExchangeError=AuthPKCEGrantCodeExchangeError;class AuthRetryableFetchError extends CustomAuthError{constructor(st,Wt){super(st,"AuthRetryableFetchError",Wt,undefined)}}Wt.AuthRetryableFetchError=AuthRetryableFetchError;function isAuthRetryableFetchError(st){return isAuthError(st)&&st.name==="AuthRetryableFetchError"}Wt.isAuthRetryableFetchError=isAuthRetryableFetchError;class AuthWeakPasswordError extends CustomAuthError{constructor(st,Wt,Ot){super(st,"AuthWeakPasswordError",Wt,"weak_password");this.reasons=Ot}}Wt.AuthWeakPasswordError=AuthWeakPasswordError;function isAuthWeakPasswordError(st){return isAuthError(st)&&st.name==="AuthWeakPasswordError"}Wt.isAuthWeakPasswordError=isAuthWeakPasswordError},92356:function(st,Wt,Ot){"use strict";var en=this&&this.__rest||function(st,Wt){var Ot={};for(var en in st)if(Object.prototype.hasOwnProperty.call(st,en)&&Wt.indexOf(en)<0)Ot[en]=st[en];if(st!=null&&typeof Object.getOwnPropertySymbols==="function")for(var tn=0,en=Object.getOwnPropertySymbols(st);tnst.msg||st.message||st.error_description||st.error||JSON.stringify(st);const In=[502,503,504];async function handleError(st){var Wt;if(!(0,nn.looksLikeFetchResponse)(st)){throw new an.AuthRetryableFetchError(_getErrorMessage(st),0)}if(In.includes(st.status)){throw new an.AuthRetryableFetchError(_getErrorMessage(st),st.status)}let Ot;try{Ot=await st.json()}catch(st){throw new an.AuthUnknownError(_getErrorMessage(st),st)}let en=undefined;const rn=(0,nn.parseResponseAPIVersion)(st);if(rn&&rn.getTime()>=tn.API_VERSIONS["2024-01-01"].timestamp&&typeof Ot==="object"&&Ot&&typeof Ot.code==="string"){en=Ot.code}else if(typeof Ot==="object"&&Ot&&typeof Ot.error_code==="string"){en=Ot.error_code}if(!en){if(typeof Ot==="object"&&Ot&&typeof Ot.weak_password==="object"&&Ot.weak_password&&Array.isArray(Ot.weak_password.reasons)&&Ot.weak_password.reasons.length&&Ot.weak_password.reasons.reduce(((st,Wt)=>st&&typeof Wt==="string"),true)){throw new an.AuthWeakPasswordError(_getErrorMessage(Ot),st.status,Ot.weak_password.reasons)}}else if(en==="weak_password"){throw new an.AuthWeakPasswordError(_getErrorMessage(Ot),st.status,((Wt=Ot.weak_password)===null||Wt===void 0?void 0:Wt.reasons)||[])}throw new an.AuthApiError(_getErrorMessage(Ot),st.status||500,en)}Wt.handleError=handleError;const _getRequestParams=(st,Wt,Ot,en)=>{const tn={method:st,headers:(Wt===null||Wt===void 0?void 0:Wt.headers)||{}};if(st==="GET"){return tn}tn.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},Wt===null||Wt===void 0?void 0:Wt.headers);tn.body=JSON.stringify(en);return Object.assign(Object.assign({},tn),Ot)};async function _request(st,Wt,Ot,en){var nn;const an=Object.assign({},en===null||en===void 0?void 0:en.headers);if(!an[tn.API_VERSION_HEADER_NAME]){an[tn.API_VERSION_HEADER_NAME]=tn.API_VERSIONS["2024-01-01"].name}if(en===null||en===void 0?void 0:en.jwt){an["Authorization"]=`Bearer ${en.jwt}`}const In=(nn=en===null||en===void 0?void 0:en.query)!==null&&nn!==void 0?nn:{};if(en===null||en===void 0?void 0:en.redirectTo){In["redirect_to"]=en.redirectTo}const rn=Object.keys(In).length?"?"+new URLSearchParams(In).toString():"";const cn=await _handleRequest(st,Wt,Ot+rn,{headers:an,noResolveJson:en===null||en===void 0?void 0:en.noResolveJson},{},en===null||en===void 0?void 0:en.body);return(en===null||en===void 0?void 0:en.xform)?en===null||en===void 0?void 0:en.xform(cn):{data:Object.assign({},cn),error:null}}Wt._request=_request;async function _handleRequest(st,Wt,Ot,en,tn,nn){const In=_getRequestParams(Wt,en,tn,nn);let rn;try{rn=await st(Ot,Object.assign(Object.assign({},In),{cache:"no-store"}))}catch(st){console.error(st);throw new an.AuthRetryableFetchError(_getErrorMessage(st),0)}if(!rn.ok){await handleError(rn)}if(en===null||en===void 0?void 0:en.noResolveJson){return rn}try{return await rn.json()}catch(st){await handleError(st)}}function _sessionResponse(st){var Wt;let Ot=null;if(hasSession(st)){Ot=Object.assign({},st);if(!st.expires_at){Ot.expires_at=(0,nn.expiresAt)(st.expires_in)}}const en=(Wt=st.user)!==null&&Wt!==void 0?Wt:st;return{data:{session:Ot,user:en},error:null}}Wt._sessionResponse=_sessionResponse;function _sessionResponsePassword(st){const Wt=_sessionResponse(st);if(!Wt.error&&st.weak_password&&typeof st.weak_password==="object"&&Array.isArray(st.weak_password.reasons)&&st.weak_password.reasons.length&&st.weak_password.message&&typeof st.weak_password.message==="string"&&st.weak_password.reasons.reduce(((st,Wt)=>st&&typeof Wt==="string"),true)){Wt.data.weak_password=st.weak_password}return Wt}Wt._sessionResponsePassword=_sessionResponsePassword;function _userResponse(st){var Wt;const Ot=(Wt=st.user)!==null&&Wt!==void 0?Wt:st;return{data:{user:Ot},error:null}}Wt._userResponse=_userResponse;function _ssoResponse(st){return{data:st,error:null}}Wt._ssoResponse=_ssoResponse;function _generateLinkResponse(st){const{action_link:Wt,email_otp:Ot,hashed_token:tn,redirect_to:nn,verification_type:an}=st,In=en(st,["action_link","email_otp","hashed_token","redirect_to","verification_type"]);const rn={action_link:Wt,email_otp:Ot,hashed_token:tn,redirect_to:nn,verification_type:an};const cn=Object.assign({},In);return{data:{properties:rn,user:cn},error:null}}Wt._generateLinkResponse=_generateLinkResponse;function _noResolveJsonResponse(st){return st}Wt._noResolveJsonResponse=_noResolveJsonResponse;function hasSession(st){return st.access_token&&st.refresh_token&&st.expires_in}},30601:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__setModuleDefault||(Object.create?function(st,Wt){Object.defineProperty(st,"default",{enumerable:true,value:Wt})}:function(st,Wt){st["default"]=Wt});var nn=this&&this.__importStar||function(st){if(st&&st.__esModule)return st;var Wt={};if(st!=null)for(var Ot in st)if(Ot!=="default"&&Object.prototype.hasOwnProperty.call(st,Ot))en(Wt,st,Ot);tn(Wt,st);return Wt};Object.defineProperty(Wt,"__esModule",{value:true});Wt.parseResponseAPIVersion=Wt.getCodeChallengeAndMethod=Wt.generatePKCEChallenge=Wt.generatePKCEVerifier=Wt.retryable=Wt.sleep=Wt.decodeJWTPayload=Wt.Deferred=Wt.decodeBase64URL=Wt.removeItemAsync=Wt.getItemAsync=Wt.setItemAsync=Wt.looksLikeFetchResponse=Wt.resolveFetch=Wt.parseParametersFromURL=Wt.supportsLocalStorage=Wt.isBrowser=Wt.uuid=Wt.expiresAt=void 0;const an=Ot(26705);function expiresAt(st){const Wt=Math.round(Date.now()/1e3);return Wt+st}Wt.expiresAt=expiresAt;function uuid(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(st){const Wt=Math.random()*16|0,Ot=st=="x"?Wt:Wt&3|8;return Ot.toString(16)}))}Wt.uuid=uuid;const isBrowser=()=>typeof document!=="undefined";Wt.isBrowser=isBrowser;const In={tested:false,writable:false};const supportsLocalStorage=()=>{if(!(0,Wt.isBrowser)()){return false}try{if(typeof globalThis.localStorage!=="object"){return false}}catch(st){return false}if(In.tested){return In.writable}const st=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(st,st);globalThis.localStorage.removeItem(st);In.tested=true;In.writable=true}catch(st){In.tested=true;In.writable=false}return In.writable};Wt.supportsLocalStorage=supportsLocalStorage;function parseParametersFromURL(st){const Wt={};const Ot=new URL(st);if(Ot.hash&&Ot.hash[0]==="#"){try{const st=new URLSearchParams(Ot.hash.substring(1));st.forEach(((st,Ot)=>{Wt[Ot]=st}))}catch(st){}}Ot.searchParams.forEach(((st,Ot)=>{Wt[Ot]=st}));return Wt}Wt.parseParametersFromURL=parseParametersFromURL;const resolveFetch=st=>{let Wt;if(st){Wt=st}else if(typeof fetch==="undefined"){Wt=(...st)=>Promise.resolve().then((()=>nn(Ot(83318)))).then((({default:Wt})=>Wt(...st)))}else{Wt=fetch}return(...st)=>Wt(...st)};Wt.resolveFetch=resolveFetch;const looksLikeFetchResponse=st=>typeof st==="object"&&st!==null&&"status"in st&&"ok"in st&&"json"in st&&typeof st.json==="function";Wt.looksLikeFetchResponse=looksLikeFetchResponse;const setItemAsync=async(st,Wt,Ot)=>{await st.setItem(Wt,JSON.stringify(Ot))};Wt.setItemAsync=setItemAsync;const getItemAsync=async(st,Wt)=>{const Ot=await st.getItem(Wt);if(!Ot){return null}try{return JSON.parse(Ot)}catch(st){return Ot}};Wt.getItemAsync=getItemAsync;const removeItemAsync=async(st,Wt)=>{await st.removeItem(Wt)};Wt.removeItemAsync=removeItemAsync;function decodeBase64URL(st){const Wt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let Ot="";let en,tn,nn;let an,In,rn,cn;let on=0;st=st.replace("-","+").replace("_","/");while(on>4;tn=(In&15)<<4|rn>>2;nn=(rn&3)<<6|cn;Ot=Ot+String.fromCharCode(en);if(rn!=64&&tn!=0){Ot=Ot+String.fromCharCode(tn)}if(cn!=64&&nn!=0){Ot=Ot+String.fromCharCode(nn)}}return Ot}Wt.decodeBase64URL=decodeBase64URL;class Deferred{constructor(){this.promise=new Deferred.promiseConstructor(((st,Wt)=>{this.resolve=st;this.reject=Wt}))}}Wt.Deferred=Deferred;Deferred.promiseConstructor=Promise;function decodeJWTPayload(st){const Wt=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}=?$|[a-z0-9_-]{2}(==)?$)$/i;const Ot=st.split(".");if(Ot.length!==3){throw new Error("JWT is not valid: not a JWT structure")}if(!Wt.test(Ot[1])){throw new Error("JWT is not valid: payload is not in base64url format")}const en=Ot[1];return JSON.parse(decodeBase64URL(en))}Wt.decodeJWTPayload=decodeJWTPayload;async function sleep(st){return await new Promise((Wt=>{setTimeout((()=>Wt(null)),st)}))}Wt.sleep=sleep;function retryable(st,Wt){const Ot=new Promise(((Ot,en)=>{(async()=>{for(let tn=0;tnString.fromCharCode(st))).join("")}function base64urlencode(st){return btoa(st).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function generatePKCEChallenge(st){const Wt=typeof crypto!=="undefined"&&typeof crypto.subtle!=="undefined"&&typeof TextEncoder!=="undefined";if(!Wt){console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256.");return st}const Ot=await sha256(st);return base64urlencode(Ot)}Wt.generatePKCEChallenge=generatePKCEChallenge;async function getCodeChallengeAndMethod(st,Ot,en=false){const tn=generatePKCEVerifier();let nn=tn;if(en){nn+="/PASSWORD_RECOVERY"}await(0,Wt.setItemAsync)(st,`${Ot}-code-verifier`,nn);const an=await generatePKCEChallenge(tn);const In=tn===an?"plain":"s256";return[an,In]}Wt.getCodeChallengeAndMethod=getCodeChallengeAndMethod;const rn=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function parseResponseAPIVersion(st){const Wt=st.headers.get(an.API_VERSION_HEADER_NAME);if(!Wt){return null}if(!Wt.match(rn)){return null}try{const st=new Date(`${Wt}T00:00:00.0Z`);return st}catch(st){return null}}Wt.parseResponseAPIVersion=parseResponseAPIVersion},21735:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.memoryLocalStorageAdapter=Wt.localStorageAdapter=void 0;const en=Ot(30601);Wt.localStorageAdapter={getItem:st=>{if(!(0,en.supportsLocalStorage)()){return null}return globalThis.localStorage.getItem(st)},setItem:(st,Wt)=>{if(!(0,en.supportsLocalStorage)()){return}globalThis.localStorage.setItem(st,Wt)},removeItem:st=>{if(!(0,en.supportsLocalStorage)()){return}globalThis.localStorage.removeItem(st)}};function memoryLocalStorageAdapter(st={}){return{getItem:Wt=>st[Wt]||null,setItem:(Wt,Ot)=>{st[Wt]=Ot},removeItem:Wt=>{delete st[Wt]}}}Wt.memoryLocalStorageAdapter=memoryLocalStorageAdapter},28932:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.navigatorLock=Wt.NavigatorLockAcquireTimeoutError=Wt.LockAcquireTimeoutError=Wt.internals=void 0;const en=Ot(30601);Wt.internals={debug:!!(globalThis&&(0,en.supportsLocalStorage)()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class LockAcquireTimeoutError extends Error{constructor(st){super(st);this.isAcquireTimeout=true}}Wt.LockAcquireTimeoutError=LockAcquireTimeoutError;class NavigatorLockAcquireTimeoutError extends LockAcquireTimeoutError{}Wt.NavigatorLockAcquireTimeoutError=NavigatorLockAcquireTimeoutError;async function navigatorLock(st,Ot,en){if(Wt.internals.debug){console.log("@supabase/gotrue-js: navigatorLock: acquire lock",st,Ot)}const tn=new globalThis.AbortController;if(Ot>0){setTimeout((()=>{tn.abort();if(Wt.internals.debug){console.log("@supabase/gotrue-js: navigatorLock acquire timed out",st)}}),Ot)}return await globalThis.navigator.locks.request(st,Ot===0?{mode:"exclusive",ifAvailable:true}:{mode:"exclusive",signal:tn.signal},(async tn=>{if(tn){if(Wt.internals.debug){console.log("@supabase/gotrue-js: navigatorLock: acquired",st,tn.name)}try{return await en()}finally{if(Wt.internals.debug){console.log("@supabase/gotrue-js: navigatorLock: released",st,tn.name)}}}else{if(Ot===0){if(Wt.internals.debug){console.log("@supabase/gotrue-js: navigatorLock: not immediately available",st)}throw new NavigatorLockAcquireTimeoutError(`Acquiring an exclusive Navigator LockManager lock "${st}" immediately failed`)}else{if(Wt.internals.debug){try{const st=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(st,null," "))}catch(st){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",st)}}console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request");return await en()}}}))}Wt.navigatorLock=navigatorLock},80512:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.polyfillGlobalThis=void 0;function polyfillGlobalThis(){if(typeof globalThis==="object")return;try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:true});__magic__.globalThis=__magic__;delete Object.prototype.__magic__}catch(st){if(typeof self!=="undefined"){self.globalThis=self}}}Wt.polyfillGlobalThis=polyfillGlobalThis},53737:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true})},41920:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.version=void 0;Wt.version="2.63.0"},39149:function(st,Wt,Ot){"use strict";var en=this&&this.__awaiter||function(st,Wt,Ot,en){function adopt(st){return st instanceof Ot?st:new Ot((function(Wt){Wt(st)}))}return new(Ot||(Ot=Promise))((function(Ot,tn){function fulfilled(st){try{step(en.next(st))}catch(st){tn(st)}}function rejected(st){try{step(en["throw"](st))}catch(st){tn(st)}}function step(st){st.done?Ot(st.value):adopt(st.value).then(fulfilled,rejected)}step((en=en.apply(st,Wt||[])).next())}))};Object.defineProperty(Wt,"__esModule",{value:true});Wt.FunctionsClient=void 0;const tn=Ot(44495);const nn=Ot(70842);class FunctionsClient{constructor(st,{headers:Wt={},customFetch:Ot,region:en=nn.FunctionRegion.Any}={}){this.url=st;this.headers=Wt;this.region=en;this.fetch=(0,tn.resolveFetch)(Ot)}setAuth(st){this.headers.Authorization=`Bearer ${st}`}invoke(st,Wt={}){var Ot;return en(this,void 0,void 0,(function*(){try{const{headers:en,method:tn,body:an}=Wt;let In={};let{region:rn}=Wt;if(!rn){rn=this.region}if(rn&&rn!=="any"){In["x-region"]=rn}let cn;if(an&&(en&&!Object.prototype.hasOwnProperty.call(en,"Content-Type")||!en)){if(typeof Blob!=="undefined"&&an instanceof Blob||an instanceof ArrayBuffer){In["Content-Type"]="application/octet-stream";cn=an}else if(typeof an==="string"){In["Content-Type"]="text/plain";cn=an}else if(typeof FormData!=="undefined"&&an instanceof FormData){cn=an}else{In["Content-Type"]="application/json";cn=JSON.stringify(an)}}const on=yield this.fetch(`${this.url}/${st}`,{method:tn||"POST",headers:Object.assign(Object.assign(Object.assign({},In),this.headers),en),body:cn}).catch((st=>{throw new nn.FunctionsFetchError(st)}));const sn=on.headers.get("x-relay-error");if(sn&&sn==="true"){throw new nn.FunctionsRelayError(on)}if(!on.ok){throw new nn.FunctionsHttpError(on)}let dn=((Ot=on.headers.get("Content-Type"))!==null&&Ot!==void 0?Ot:"text/plain").split(";")[0].trim();let un;if(dn==="application/json"){un=yield on.json()}else if(dn==="application/octet-stream"){un=yield on.blob()}else if(dn==="multipart/form-data"){un=yield on.formData()}else{un=yield on.text()}return{data:un,error:null}}catch(st){return{data:null,error:st}}}))}}Wt.FunctionsClient=FunctionsClient},44495:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__setModuleDefault||(Object.create?function(st,Wt){Object.defineProperty(st,"default",{enumerable:true,value:Wt})}:function(st,Wt){st["default"]=Wt});var nn=this&&this.__importStar||function(st){if(st&&st.__esModule)return st;var Wt={};if(st!=null)for(var Ot in st)if(Ot!=="default"&&Object.prototype.hasOwnProperty.call(st,Ot))en(Wt,st,Ot);tn(Wt,st);return Wt};Object.defineProperty(Wt,"__esModule",{value:true});Wt.resolveFetch=void 0;const resolveFetch=st=>{let Wt;if(st){Wt=st}else if(typeof fetch==="undefined"){Wt=(...st)=>Promise.resolve().then((()=>nn(Ot(83318)))).then((({default:Wt})=>Wt(...st)))}else{Wt=fetch}return(...st)=>Wt(...st)};Wt.resolveFetch=resolveFetch},70459:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.FunctionRegion=Wt.FunctionsRelayError=Wt.FunctionsHttpError=Wt.FunctionsFetchError=Wt.FunctionsError=Wt.FunctionsClient=void 0;var en=Ot(39149);Object.defineProperty(Wt,"FunctionsClient",{enumerable:true,get:function(){return en.FunctionsClient}});var tn=Ot(70842);Object.defineProperty(Wt,"FunctionsError",{enumerable:true,get:function(){return tn.FunctionsError}});Object.defineProperty(Wt,"FunctionsFetchError",{enumerable:true,get:function(){return tn.FunctionsFetchError}});Object.defineProperty(Wt,"FunctionsHttpError",{enumerable:true,get:function(){return tn.FunctionsHttpError}});Object.defineProperty(Wt,"FunctionsRelayError",{enumerable:true,get:function(){return tn.FunctionsRelayError}});Object.defineProperty(Wt,"FunctionRegion",{enumerable:true,get:function(){return tn.FunctionRegion}})},70842:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.FunctionRegion=Wt.FunctionsHttpError=Wt.FunctionsRelayError=Wt.FunctionsFetchError=Wt.FunctionsError=void 0;class FunctionsError extends Error{constructor(st,Wt="FunctionsError",Ot){super(st);this.name=Wt;this.context=Ot}}Wt.FunctionsError=FunctionsError;class FunctionsFetchError extends FunctionsError{constructor(st){super("Failed to send a request to the Edge Function","FunctionsFetchError",st)}}Wt.FunctionsFetchError=FunctionsFetchError;class FunctionsRelayError extends FunctionsError{constructor(st){super("Relay Error invoking the Edge Function","FunctionsRelayError",st)}}Wt.FunctionsRelayError=FunctionsRelayError;class FunctionsHttpError extends FunctionsError{constructor(st){super("Edge Function returned a non-2xx status code","FunctionsHttpError",st)}}Wt.FunctionsHttpError=FunctionsHttpError;var Ot;(function(st){st["Any"]="any";st["ApNortheast1"]="ap-northeast-1";st["ApNortheast2"]="ap-northeast-2";st["ApSouth1"]="ap-south-1";st["ApSoutheast1"]="ap-southeast-1";st["ApSoutheast2"]="ap-southeast-2";st["CaCentral1"]="ca-central-1";st["EuCentral1"]="eu-central-1";st["EuWest1"]="eu-west-1";st["EuWest2"]="eu-west-2";st["EuWest3"]="eu-west-3";st["SaEast1"]="sa-east-1";st["UsEast1"]="us-east-1";st["UsWest1"]="us-west-1";st["UsWest2"]="us-west-2"})(Ot=Wt.FunctionRegion||(Wt.FunctionRegion={}))},83318:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});function _interopDefault(st){return st&&typeof st==="object"&&"default"in st?st["default"]:st}var en=_interopDefault(Ot(2203));var tn=_interopDefault(Ot(58611));var nn=_interopDefault(Ot(87016));var an=_interopDefault(Ot(46308));var In=_interopDefault(Ot(65692));var rn=_interopDefault(Ot(43106));const cn=en.Readable;const on=Symbol("buffer");const sn=Symbol("type");class Blob{constructor(){this[sn]="";const st=arguments[0];const Wt=arguments[1];const Ot=[];let en=0;if(st){const Wt=st;const tn=Number(Wt.length);for(let st=0;st1&&arguments[1]!==undefined?arguments[1]:{},tn=Ot.size;let nn=tn===undefined?0:tn;var an=Ot.timeout;let In=an===undefined?0:an;if(st==null){st=null}else if(isURLSearchParams(st)){st=Buffer.from(st.toString())}else if(isBlob(st));else if(Buffer.isBuffer(st));else if(Object.prototype.toString.call(st)==="[object ArrayBuffer]"){st=Buffer.from(st)}else if(ArrayBuffer.isView(st)){st=Buffer.from(st.buffer,st.byteOffset,st.byteLength)}else if(st instanceof en);else{st=Buffer.from(String(st))}this[un]={body:st,disturbed:false,error:null};this.size=nn;this.timeout=In;if(st instanceof en){st.on("error",(function(st){const Ot=st.name==="AbortError"?st:new FetchError(`Invalid response body while trying to fetch ${Wt.url}: ${st.message}`,"system",st);Wt[un].error=Ot}))}}Body.prototype={get body(){return this[un].body},get bodyUsed(){return this[un].disturbed},arrayBuffer(){return consumeBody.call(this).then((function(st){return st.buffer.slice(st.byteOffset,st.byteOffset+st.byteLength)}))},blob(){let st=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then((function(Wt){return Object.assign(new Blob([],{type:st.toLowerCase()}),{[on]:Wt})}))},json(){var st=this;return consumeBody.call(this).then((function(Wt){try{return JSON.parse(Wt.toString())}catch(Wt){return Body.Promise.reject(new FetchError(`invalid json response body at ${st.url} reason: ${Wt.message}`,"invalid-json"))}}))},text(){return consumeBody.call(this).then((function(st){return st.toString()}))},buffer(){return consumeBody.call(this)},textConverted(){var st=this;return consumeBody.call(this).then((function(Wt){return convertBody(Wt,st.headers)}))}};Object.defineProperties(Body.prototype,{body:{enumerable:true},bodyUsed:{enumerable:true},arrayBuffer:{enumerable:true},blob:{enumerable:true},json:{enumerable:true},text:{enumerable:true}});Body.mixIn=function(st){for(const Wt of Object.getOwnPropertyNames(Body.prototype)){if(!(Wt in st)){const Ot=Object.getOwnPropertyDescriptor(Body.prototype,Wt);Object.defineProperty(st,Wt,Ot)}}};function consumeBody(){var st=this;if(this[un].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[un].disturbed=true;if(this[un].error){return Body.Promise.reject(this[un].error)}let Wt=this.body;if(Wt===null){return Body.Promise.resolve(Buffer.alloc(0))}if(isBlob(Wt)){Wt=Wt.stream()}if(Buffer.isBuffer(Wt)){return Body.Promise.resolve(Wt)}if(!(Wt instanceof en)){return Body.Promise.resolve(Buffer.alloc(0))}let Ot=[];let tn=0;let nn=false;return new Body.Promise((function(en,an){let In;if(st.timeout){In=setTimeout((function(){nn=true;an(new FetchError(`Response timeout while trying to fetch ${st.url} (over ${st.timeout}ms)`,"body-timeout"))}),st.timeout)}Wt.on("error",(function(Wt){if(Wt.name==="AbortError"){nn=true;an(Wt)}else{an(new FetchError(`Invalid response body while trying to fetch ${st.url}: ${Wt.message}`,"system",Wt))}}));Wt.on("data",(function(Wt){if(nn||Wt===null){return}if(st.size&&tn+Wt.length>st.size){nn=true;an(new FetchError(`content size at ${st.url} over limit: ${st.size}`,"max-size"));return}tn+=Wt.length;Ot.push(Wt)}));Wt.on("end",(function(){if(nn){return}clearTimeout(In);try{en(Buffer.concat(Ot,tn))}catch(Wt){an(new FetchError(`Could not create Buffer from response body for ${st.url}: ${Wt.message}`,"system",Wt))}}))}))}function convertBody(st,Wt){{throw new Error("The package `encoding` must be installed to use the textConverted() function")}const Ot=Wt.get("content-type");let en="utf-8";let tn,nn;if(Ot){tn=/charset=([^;]*)/i.exec(Ot)}nn=st.slice(0,1024).toString();if(!tn&&nn){tn=/0&&arguments[0]!==undefined?arguments[0]:undefined;this[Gn]=Object.create(null);if(st instanceof Headers){const Wt=st.raw();const Ot=Object.keys(Wt);for(const st of Ot){for(const Ot of Wt[st]){this.append(st,Ot)}}return}if(st==null);else if(typeof st==="object"){const Wt=st[Symbol.iterator];if(Wt!=null){if(typeof Wt!=="function"){throw new TypeError("Header pairs must be iterable")}const Ot=[];for(const Wt of st){if(typeof Wt!=="object"||typeof Wt[Symbol.iterator]!=="function"){throw new TypeError("Each header pair must be iterable")}Ot.push(Array.from(Wt))}for(const st of Ot){if(st.length!==2){throw new TypeError("Each header pair must be a name/value tuple")}this.append(st[0],st[1])}}else{for(const Wt of Object.keys(st)){const Ot=st[Wt];this.append(Wt,Ot)}}}else{throw new TypeError("Provided initializer must be an object")}}get(st){st=`${st}`;validateName(st);const Wt=find(this[Gn],st);if(Wt===undefined){return null}return this[Gn][Wt].join(", ")}forEach(st){let Wt=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;let Ot=getHeaders(this);let en=0;while(en1&&arguments[1]!==undefined?arguments[1]:"key+value";const Ot=Object.keys(st[Gn]).sort();return Ot.map(Wt==="key"?function(st){return st.toLowerCase()}:Wt==="value"?function(Wt){return st[Gn][Wt].join(", ")}:function(Wt){return[Wt.toLowerCase(),st[Gn][Wt].join(", ")]})}const hn=Symbol("internal");function createHeadersIterator(st,Wt){const Ot=Object.create(Zn);Ot[hn]={target:st,kind:Wt,index:0};return Ot}const Zn=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==Zn){throw new TypeError("Value of `this` is not a HeadersIterator")}var st=this[hn];const Wt=st.target,Ot=st.kind,en=st.index;const tn=getHeaders(Wt,Ot);const nn=tn.length;if(en>=nn){return{value:undefined,done:true}}this[hn].index=en+1;return{value:tn[en],done:false}}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(Zn,Symbol.toStringTag,{value:"HeadersIterator",writable:false,enumerable:false,configurable:true});function exportNodeCompatibleHeaders(st){const Wt=Object.assign({__proto__:null},st[Gn]);const Ot=find(st[Gn],"Host");if(Ot!==undefined){Wt[Ot]=Wt[Ot][0]}return Wt}function createHeadersLenient(st){const Wt=new Headers;for(const Ot of Object.keys(st)){if(bn.test(Ot)){continue}if(Array.isArray(st[Ot])){for(const en of st[Ot]){if(mn.test(en)){continue}if(Wt[Gn][Ot]===undefined){Wt[Gn][Ot]=[en]}else{Wt[Gn][Ot].push(en)}}}else if(!mn.test(st[Ot])){Wt[Gn][Ot]=[st[Ot]]}}return Wt}const An=Symbol("Response internals");const Wn=tn.STATUS_CODES;class Response{constructor(){let st=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;let Wt=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};Body.call(this,st,Wt);const Ot=Wt.status||200;const en=new Headers(Wt.headers);if(st!=null&&!en.has("Content-Type")){const Wt=extractContentType(st);if(Wt){en.append("Content-Type",Wt)}}this[An]={url:Wt.url,status:Ot,statusText:Wt.statusText||Wn[Ot],headers:en,counter:Wt.counter}}get url(){return this[An].url||""}get status(){return this[An].status}get ok(){return this[An].status>=200&&this[An].status<300}get redirected(){return this[An].counter>0}get statusText(){return this[An].statusText}get headers(){return this[An].headers}clone(){return new Response(clone(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Body.mixIn(Response.prototype);Object.defineProperties(Response.prototype,{url:{enumerable:true},status:{enumerable:true},ok:{enumerable:true},redirected:{enumerable:true},statusText:{enumerable:true},headers:{enumerable:true},clone:{enumerable:true}});Object.defineProperty(Response.prototype,Symbol.toStringTag,{value:"Response",writable:false,enumerable:false,configurable:true});const Nn=Symbol("Request internals");const gn=nn.URL||an.URL;const yn=nn.parse;const vn=nn.format;function parseURL(st){if(/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(st)){st=new gn(st).toString()}return yn(st)}const Yn="destroy"in en.Readable.prototype;function isRequest(st){return typeof st==="object"&&typeof st[Nn]==="object"}function isAbortSignal(st){const Wt=st&&typeof st==="object"&&Object.getPrototypeOf(st);return!!(Wt&&Wt.constructor.name==="AbortSignal")}class Request{constructor(st){let Wt=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let Ot;if(!isRequest(st)){if(st&&st.href){Ot=parseURL(st.href)}else{Ot=parseURL(`${st}`)}st={}}else{Ot=parseURL(st.url)}let en=Wt.method||st.method||"GET";en=en.toUpperCase();if((Wt.body!=null||isRequest(st)&&st.body!==null)&&(en==="GET"||en==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body")}let tn=Wt.body!=null?Wt.body:isRequest(st)&&st.body!==null?clone(st):null;Body.call(this,tn,{timeout:Wt.timeout||st.timeout||0,size:Wt.size||st.size||0});const nn=new Headers(Wt.headers||st.headers||{});if(tn!=null&&!nn.has("Content-Type")){const st=extractContentType(tn);if(st){nn.append("Content-Type",st)}}let an=isRequest(st)?st.signal:null;if("signal"in Wt)an=Wt.signal;if(an!=null&&!isAbortSignal(an)){throw new TypeError("Expected signal to be an instanceof AbortSignal")}this[Nn]={method:en,redirect:Wt.redirect||st.redirect||"follow",headers:nn,parsedURL:Ot,signal:an};this.follow=Wt.follow!==undefined?Wt.follow:st.follow!==undefined?st.follow:20;this.compress=Wt.compress!==undefined?Wt.compress:st.compress!==undefined?st.compress:true;this.counter=Wt.counter||st.counter||0;this.agent=Wt.agent||st.agent}get method(){return this[Nn].method}get url(){return vn(this[Nn].parsedURL)}get headers(){return this[Nn].headers}get redirect(){return this[Nn].redirect}get signal(){return this[Nn].signal}clone(){return new Request(this)}}Body.mixIn(Request.prototype);Object.defineProperty(Request.prototype,Symbol.toStringTag,{value:"Request",writable:false,enumerable:false,configurable:true});Object.defineProperties(Request.prototype,{method:{enumerable:true},url:{enumerable:true},headers:{enumerable:true},redirect:{enumerable:true},clone:{enumerable:true},signal:{enumerable:true}});function getNodeRequestOptions(st){const Wt=st[Nn].parsedURL;const Ot=new Headers(st[Nn].headers);if(!Ot.has("Accept")){Ot.set("Accept","*/*")}if(!Wt.protocol||!Wt.hostname){throw new TypeError("Only absolute URLs are supported")}if(!/^https?:$/.test(Wt.protocol)){throw new TypeError("Only HTTP(S) protocols are supported")}if(st.signal&&st.body instanceof en.Readable&&!Yn){throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8")}let tn=null;if(st.body==null&&/^(POST|PUT)$/i.test(st.method)){tn="0"}if(st.body!=null){const Wt=getTotalBytes(st);if(typeof Wt==="number"){tn=String(Wt)}}if(tn){Ot.set("Content-Length",tn)}if(!Ot.has("User-Agent")){Ot.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)")}if(st.compress&&!Ot.has("Accept-Encoding")){Ot.set("Accept-Encoding","gzip,deflate")}let nn=st.agent;if(typeof nn==="function"){nn=nn(Wt)}if(!Ot.has("Connection")&&!nn){Ot.set("Connection","close")}return Object.assign({},Wt,{method:st.method,headers:exportNodeCompatibleHeaders(Ot),agent:nn})}function AbortError(st){Error.call(this,st);this.type="aborted";this.message=st;Error.captureStackTrace(this,this.constructor)}AbortError.prototype=Object.create(Error.prototype);AbortError.prototype.constructor=AbortError;AbortError.prototype.name="AbortError";const En=nn.URL||an.URL;const Vn=en.PassThrough;const Rn=function isDomainOrSubdomain(st,Wt){const Ot=new En(Wt).hostname;const en=new En(st).hostname;return Ot===en||Ot[Ot.length-en.length-1]==="."&&Ot.endsWith(en)};const wn=function isSameProtocol(st,Wt){const Ot=new En(Wt).protocol;const en=new En(st).protocol;return Ot===en};function fetch(st,Wt){if(!fetch.Promise){throw new Error("native promise missing, set fetch.Promise to your favorite alternative")}Body.Promise=fetch.Promise;return new fetch.Promise((function(Ot,nn){const an=new Request(st,Wt);const cn=getNodeRequestOptions(an);const on=(cn.protocol==="https:"?In:tn).request;const sn=an.signal;let dn=null;const un=function abort(){let st=new AbortError("The user aborted a request.");nn(st);if(an.body&&an.body instanceof en.Readable){destroyStream(an.body,st)}if(!dn||!dn.body)return;dn.body.emit("error",st)};if(sn&&sn.aborted){un();return}const pn=function abortAndFinalize(){un();finalize()};const bn=on(cn);let mn;if(sn){sn.addEventListener("abort",pn)}function finalize(){bn.abort();if(sn)sn.removeEventListener("abort",pn);clearTimeout(mn)}if(an.timeout){bn.once("socket",(function(st){mn=setTimeout((function(){nn(new FetchError(`network timeout at: ${an.url}`,"request-timeout"));finalize()}),an.timeout)}))}bn.on("error",(function(st){nn(new FetchError(`request to ${an.url} failed, reason: ${st.message}`,"system",st));if(dn&&dn.body){destroyStream(dn.body,st)}finalize()}));fixResponseChunkedTransferBadEnding(bn,(function(st){if(sn&&sn.aborted){return}if(dn&&dn.body){destroyStream(dn.body,st)}}));if(parseInt(process.version.substring(1))<14){bn.on("socket",(function(st){st.addListener("close",(function(Wt){const Ot=st.listenerCount("data")>0;if(dn&&Ot&&!Wt&&!(sn&&sn.aborted)){const st=new Error("Premature close");st.code="ERR_STREAM_PREMATURE_CLOSE";dn.body.emit("error",st)}}))}))}bn.on("response",(function(st){clearTimeout(mn);const Wt=createHeadersLenient(st.headers);if(fetch.isRedirect(st.statusCode)){const en=Wt.get("Location");let tn=null;try{tn=en===null?null:new En(en,an.url).toString()}catch(st){if(an.redirect!=="manual"){nn(new FetchError(`uri requested responds with an invalid redirect URL: ${en}`,"invalid-redirect"));finalize();return}}switch(an.redirect){case"error":nn(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${an.url}`,"no-redirect"));finalize();return;case"manual":if(tn!==null){try{Wt.set("Location",tn)}catch(st){nn(st)}}break;case"follow":if(tn===null){break}if(an.counter>=an.follow){nn(new FetchError(`maximum redirect reached at: ${an.url}`,"max-redirect"));finalize();return}const en={headers:new Headers(an.headers),follow:an.follow,counter:an.counter+1,agent:an.agent,compress:an.compress,method:an.method,body:an.body,signal:an.signal,timeout:an.timeout,size:an.size};if(!Rn(an.url,tn)||!wn(an.url,tn)){for(const st of["authorization","www-authenticate","cookie","cookie2"]){en.headers.delete(st)}}if(st.statusCode!==303&&an.body&&getTotalBytes(an)===null){nn(new FetchError("Cannot follow redirect with body being a readable stream","unsupported-redirect"));finalize();return}if(st.statusCode===303||(st.statusCode===301||st.statusCode===302)&&an.method==="POST"){en.method="GET";en.body=undefined;en.headers.delete("content-length")}Ot(fetch(new Request(tn,en)));finalize();return}}st.once("end",(function(){if(sn)sn.removeEventListener("abort",pn)}));let en=st.pipe(new Vn);const tn={url:an.url,status:st.statusCode,statusText:st.statusMessage,headers:Wt,size:an.size,timeout:an.timeout,counter:an.counter};const In=Wt.get("Content-Encoding");if(!an.compress||an.method==="HEAD"||In===null||st.statusCode===204||st.statusCode===304){dn=new Response(en,tn);Ot(dn);return}const cn={flush:rn.Z_SYNC_FLUSH,finishFlush:rn.Z_SYNC_FLUSH};if(In=="gzip"||In=="x-gzip"){en=en.pipe(rn.createGunzip(cn));dn=new Response(en,tn);Ot(dn);return}if(In=="deflate"||In=="x-deflate"){const Wt=st.pipe(new Vn);Wt.once("data",(function(st){if((st[0]&15)===8){en=en.pipe(rn.createInflate())}else{en=en.pipe(rn.createInflateRaw())}dn=new Response(en,tn);Ot(dn)}));Wt.on("end",(function(){if(!dn){dn=new Response(en,tn);Ot(dn)}}));return}if(In=="br"&&typeof rn.createBrotliDecompress==="function"){en=en.pipe(rn.createBrotliDecompress());dn=new Response(en,tn);Ot(dn);return}dn=new Response(en,tn);Ot(dn)}));writeToStream(bn,an)}))}function fixResponseChunkedTransferBadEnding(st,Wt){let Ot;st.on("socket",(function(st){Ot=st}));st.on("response",(function(st){const en=st.headers;if(en["transfer-encoding"]==="chunked"&&!en["content-length"]){st.once("close",(function(st){const en=Ot&&Ot.listenerCount("data")>0;if(en&&!st){const st=new Error("Premature close");st.code="ERR_STREAM_PREMATURE_CLOSE";Wt(st)}}))}}))}function destroyStream(st,Wt){if(st.destroy){st.destroy(Wt)}else{st.emit("error",Wt);st.end()}}fetch.isRedirect=function(st){return st===301||st===302||st===303||st===307||st===308};fetch.Promise=global.Promise;st.exports=Wt=fetch;Object.defineProperty(Wt,"__esModule",{value:true});Wt["default"]=Wt;Wt.Headers=Headers;Wt.Request=Request;Wt.Response=Response;Wt.FetchError=FetchError},32198:(st,Wt,Ot)=>{"use strict";var en=Ot(24876);var tn=Ot(63370);var nn={TRANSITIONAL:0,NONTRANSITIONAL:1};function normalize(st){return st.split("\0").map((function(st){return st.normalize("NFC")})).join("\0")}function findStatus(st){var Wt=0;var Ot=tn.length-1;while(Wt<=Ot){var en=Math.floor((Wt+Ot)/2);var nn=tn[en];if(nn[0][0]<=st&&nn[0][1]>=st){return nn}else if(nn[0][0]>st){Ot=en-1}else{Wt=en+1}}return null}var an=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function countSymbols(st){return st.replace(an,"_").length}function mapChars(st,Wt,Ot){var en=false;var tn="";var an=countSymbols(st);for(var In=0;In253||In.length===0){nn.error=true}for(var rn=0;rn63||an.length===0){nn.error=true;break}}}if(nn.error)return null;return an.join(".")};st.exports.toUnicode=function(st,Wt){var Ot=processing(st,Wt,nn.NONTRANSITIONAL);return{domain:Ot.string,error:Ot.error}};st.exports.PROCESSING_OPTIONS=nn},48279:st=>{"use strict";var Wt={};st.exports=Wt;function sign(st){return st<0?-1:1}function evenRound(st){if(st%1===.5&&(st&1)===0){return Math.floor(st)}else{return Math.round(st)}}function createNumberConversion(st,Wt){if(!Wt.unsigned){--st}const Ot=Wt.unsigned?0:-Math.pow(2,st);const en=Math.pow(2,st)-1;const tn=Wt.moduloBitLength?Math.pow(2,Wt.moduloBitLength):Math.pow(2,st);const nn=Wt.moduloBitLength?Math.pow(2,Wt.moduloBitLength-1):Math.pow(2,st-1);return function(st,an){if(!an)an={};let In=+st;if(an.enforceRange){if(!Number.isFinite(In)){throw new TypeError("Argument is not a finite number")}In=sign(In)*Math.floor(Math.abs(In));if(Inen){throw new TypeError("Argument is not in byte range")}return In}if(!isNaN(In)&&an.clamp){In=evenRound(In);if(Inen)In=en;return In}if(!Number.isFinite(In)||In===0){return 0}In=sign(In)*Math.floor(Math.abs(In));In=In%tn;if(!Wt.unsigned&&In>=nn){return In-tn}else if(Wt.unsigned){if(In<0){In+=tn}else if(In===-0){return 0}}return In}}Wt["void"]=function(){return undefined};Wt["boolean"]=function(st){return!!st};Wt["byte"]=createNumberConversion(8,{unsigned:false});Wt["octet"]=createNumberConversion(8,{unsigned:true});Wt["short"]=createNumberConversion(16,{unsigned:false});Wt["unsigned short"]=createNumberConversion(16,{unsigned:true});Wt["long"]=createNumberConversion(32,{unsigned:false});Wt["unsigned long"]=createNumberConversion(32,{unsigned:true});Wt["long long"]=createNumberConversion(32,{unsigned:false,moduloBitLength:64});Wt["unsigned long long"]=createNumberConversion(32,{unsigned:true,moduloBitLength:64});Wt["double"]=function(st){const Wt=+st;if(!Number.isFinite(Wt)){throw new TypeError("Argument is not a finite floating-point value")}return Wt};Wt["unrestricted double"]=function(st){const Wt=+st;if(isNaN(Wt)){throw new TypeError("Argument is NaN")}return Wt};Wt["float"]=Wt["double"];Wt["unrestricted float"]=Wt["unrestricted double"];Wt["DOMString"]=function(st,Wt){if(!Wt)Wt={};if(Wt.treatNullAsEmptyString&&st===null){return""}return String(st)};Wt["ByteString"]=function(st,Wt){const Ot=String(st);let en=undefined;for(let st=0;(en=Ot.codePointAt(st))!==undefined;++st){if(en>255){throw new TypeError("Argument is not a valid bytestring")}}return Ot};Wt["USVString"]=function(st){const Wt=String(st);const Ot=Wt.length;const en=[];for(let st=0;st57343){en.push(String.fromCodePoint(tn))}else if(56320<=tn&&tn<=57343){en.push(String.fromCodePoint(65533))}else{if(st===Ot-1){en.push(String.fromCodePoint(65533))}else{const Ot=Wt.charCodeAt(st+1);if(56320<=Ot&&Ot<=57343){const Wt=tn&1023;const nn=Ot&1023;en.push(String.fromCodePoint((2<<15)+(2<<9)*Wt+nn));++st}else{en.push(String.fromCodePoint(65533))}}}}return en.join("")};Wt["Date"]=function(st,Wt){if(!(st instanceof Date)){throw new TypeError("Argument is not a Date object")}if(isNaN(st)){return undefined}return st};Wt["RegExp"]=function(st,Wt){if(!(st instanceof RegExp)){st=new RegExp(st)}return st}},94778:(st,Wt,Ot)=>{"use strict";const en=Ot(71787);Wt.implementation=class URLImpl{constructor(st){const Wt=st[0];const Ot=st[1];let tn=null;if(Ot!==undefined){tn=en.basicURLParse(Ot);if(tn==="failure"){throw new TypeError("Invalid base URL")}}const nn=en.basicURLParse(Wt,{baseURL:tn});if(nn==="failure"){throw new TypeError("Invalid URL")}this._url=nn}get href(){return en.serializeURL(this._url)}set href(st){const Wt=en.basicURLParse(st);if(Wt==="failure"){throw new TypeError("Invalid URL")}this._url=Wt}get origin(){return en.serializeURLOrigin(this._url)}get protocol(){return this._url.scheme+":"}set protocol(st){en.basicURLParse(st+":",{url:this._url,stateOverride:"scheme start"})}get username(){return this._url.username}set username(st){if(en.cannotHaveAUsernamePasswordPort(this._url)){return}en.setTheUsername(this._url,st)}get password(){return this._url.password}set password(st){if(en.cannotHaveAUsernamePasswordPort(this._url)){return}en.setThePassword(this._url,st)}get host(){const st=this._url;if(st.host===null){return""}if(st.port===null){return en.serializeHost(st.host)}return en.serializeHost(st.host)+":"+en.serializeInteger(st.port)}set host(st){if(this._url.cannotBeABaseURL){return}en.basicURLParse(st,{url:this._url,stateOverride:"host"})}get hostname(){if(this._url.host===null){return""}return en.serializeHost(this._url.host)}set hostname(st){if(this._url.cannotBeABaseURL){return}en.basicURLParse(st,{url:this._url,stateOverride:"hostname"})}get port(){if(this._url.port===null){return""}return en.serializeInteger(this._url.port)}set port(st){if(en.cannotHaveAUsernamePasswordPort(this._url)){return}if(st===""){this._url.port=null}else{en.basicURLParse(st,{url:this._url,stateOverride:"port"})}}get pathname(){if(this._url.cannotBeABaseURL){return this._url.path[0]}if(this._url.path.length===0){return""}return"/"+this._url.path.join("/")}set pathname(st){if(this._url.cannotBeABaseURL){return}this._url.path=[];en.basicURLParse(st,{url:this._url,stateOverride:"path start"})}get search(){if(this._url.query===null||this._url.query===""){return""}return"?"+this._url.query}set search(st){const Wt=this._url;if(st===""){Wt.query=null;return}const Ot=st[0]==="?"?st.substring(1):st;Wt.query="";en.basicURLParse(Ot,{url:Wt,stateOverride:"query"})}get hash(){if(this._url.fragment===null||this._url.fragment===""){return""}return"#"+this._url.fragment}set hash(st){if(st===""){this._url.fragment=null;return}const Wt=st[0]==="#"?st.substring(1):st;this._url.fragment="";en.basicURLParse(Wt,{url:this._url,stateOverride:"fragment"})}toJSON(){return this.href}}},64375:(st,Wt,Ot)=>{"use strict";const en=Ot(48279);const tn=Ot(75199);const nn=Ot(94778);const an=tn.implSymbol;function URL(Wt){if(!this||this[an]||!(this instanceof URL)){throw new TypeError("Failed to construct 'URL': Please use the 'new' operator, this DOM object constructor cannot be called as a function.")}if(arguments.length<1){throw new TypeError("Failed to construct 'URL': 1 argument required, but only "+arguments.length+" present.")}const Ot=[];for(let st=0;st{"use strict";Wt.URL=Ot(64375)["interface"];Wt.serializeURL=Ot(71787).serializeURL;Wt.serializeURLOrigin=Ot(71787).serializeURLOrigin;Wt.basicURLParse=Ot(71787).basicURLParse;Wt.setTheUsername=Ot(71787).setTheUsername;Wt.setThePassword=Ot(71787).setThePassword;Wt.serializeHost=Ot(71787).serializeHost;Wt.serializeInteger=Ot(71787).serializeInteger;Wt.parseURL=Ot(71787).parseURL},71787:(st,Wt,Ot)=>{"use strict";const en=Ot(24876);const tn=Ot(32198);const nn={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443};const an=Symbol("failure");function countSymbols(st){return en.ucs2.decode(st).length}function at(st,Wt){const Ot=st[Wt];return isNaN(Ot)?undefined:String.fromCodePoint(Ot)}function isASCIIDigit(st){return st>=48&&st<=57}function isASCIIAlpha(st){return st>=65&&st<=90||st>=97&&st<=122}function isASCIIAlphanumeric(st){return isASCIIAlpha(st)||isASCIIDigit(st)}function isASCIIHex(st){return isASCIIDigit(st)||st>=65&&st<=70||st>=97&&st<=102}function isSingleDot(st){return st==="."||st.toLowerCase()==="%2e"}function isDoubleDot(st){st=st.toLowerCase();return st===".."||st==="%2e."||st===".%2e"||st==="%2e%2e"}function isWindowsDriveLetterCodePoints(st,Wt){return isASCIIAlpha(st)&&(Wt===58||Wt===124)}function isWindowsDriveLetterString(st){return st.length===2&&isASCIIAlpha(st.codePointAt(0))&&(st[1]===":"||st[1]==="|")}function isNormalizedWindowsDriveLetterString(st){return st.length===2&&isASCIIAlpha(st.codePointAt(0))&&st[1]===":"}function containsForbiddenHostCodePoint(st){return st.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/)!==-1}function containsForbiddenHostCodePointExcludingPercent(st){return st.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/)!==-1}function isSpecialScheme(st){return nn[st]!==undefined}function isSpecial(st){return isSpecialScheme(st.scheme)}function defaultPort(st){return nn[st]}function percentEncode(st){let Wt=st.toString(16).toUpperCase();if(Wt.length===1){Wt="0"+Wt}return"%"+Wt}function utf8PercentEncode(st){const Wt=new Buffer(st);let Ot="";for(let st=0;st126}const In=new Set([32,34,35,60,62,63,96,123,125]);function isPathPercentEncode(st){return isC0ControlPercentEncode(st)||In.has(st)}const rn=new Set([47,58,59,61,64,91,92,93,94,124]);function isUserinfoPercentEncode(st){return isPathPercentEncode(st)||rn.has(st)}function percentEncodeChar(st,Wt){const Ot=String.fromCodePoint(st);if(Wt(st)){return utf8PercentEncode(Ot)}return Ot}function parseIPv4Number(st){let Wt=10;if(st.length>=2&&st.charAt(0)==="0"&&st.charAt(1).toLowerCase()==="x"){st=st.substring(2);Wt=16}else if(st.length>=2&&st.charAt(0)==="0"){st=st.substring(1);Wt=8}if(st===""){return 0}const Ot=Wt===10?/[^0-9]/:Wt===16?/[^0-9A-Fa-f]/:/[^0-7]/;if(Ot.test(st)){return an}return parseInt(st,Wt)}function parseIPv4(st){const Wt=st.split(".");if(Wt[Wt.length-1]===""){if(Wt.length>1){Wt.pop()}}if(Wt.length>4){return st}const Ot=[];for(const en of Wt){if(en===""){return st}const Wt=parseIPv4Number(en);if(Wt===an){return st}Ot.push(Wt)}for(let st=0;st255){return an}}if(Ot[Ot.length-1]>=Math.pow(256,5-Ot.length)){return an}let en=Ot.pop();let tn=0;for(const st of Ot){en+=st*Math.pow(256,3-tn);++tn}return en}function serializeIPv4(st){let Wt="";let Ot=st;for(let st=1;st<=4;++st){Wt=String(Ot%256)+Wt;if(st!==4){Wt="."+Wt}Ot=Math.floor(Ot/256)}return Wt}function parseIPv6(st){const Wt=[0,0,0,0,0,0,0,0];let Ot=0;let tn=null;let nn=0;st=en.ucs2.decode(st);if(st[nn]===58){if(st[nn+1]!==58){return an}nn+=2;++Ot;tn=Ot}while(nn6){return an}let en=0;while(st[nn]!==undefined){let tn=null;if(en>0){if(st[nn]===46&&en<4){++nn}else{return an}}if(!isASCIIDigit(st[nn])){return an}while(isASCIIDigit(st[nn])){const Wt=parseInt(at(st,nn));if(tn===null){tn=Wt}else if(tn===0){return an}else{tn=tn*10+Wt}if(tn>255){return an}++nn}Wt[Ot]=Wt[Ot]*256+tn;++en;if(en===2||en===4){++Ot}}if(en!==4){return an}break}else if(st[nn]===58){++nn;if(st[nn]===undefined){return an}}else if(st[nn]!==undefined){return an}Wt[Ot]=en;++Ot}if(tn!==null){let st=Ot-tn;Ot=7;while(Ot!==0&&st>0){const en=Wt[tn+st-1];Wt[tn+st-1]=Wt[Ot];Wt[Ot]=en;--Ot;--st}}else if(tn===null&&Ot!==8){return an}return Wt}function serializeIPv6(st){let Wt="";const Ot=findLongestZeroSequence(st);const en=Ot.idx;let tn=false;for(let Ot=0;Ot<=7;++Ot){if(tn&&st[Ot]===0){continue}else if(tn){tn=false}if(en===Ot){const st=Ot===0?"::":":";Wt+=st;tn=true;continue}Wt+=st[Ot].toString(16);if(Ot!==7){Wt+=":"}}return Wt}function parseHost(st,Wt){if(st[0]==="["){if(st[st.length-1]!=="]"){return an}return parseIPv6(st.substring(1,st.length-1))}if(!Wt){return parseOpaqueHost(st)}const Ot=utf8PercentDecode(st);const en=tn.toASCII(Ot,false,tn.PROCESSING_OPTIONS.NONTRANSITIONAL,false);if(en===null){return an}if(containsForbiddenHostCodePoint(en)){return an}const nn=parseIPv4(en);if(typeof nn==="number"||nn===an){return nn}return en}function parseOpaqueHost(st){if(containsForbiddenHostCodePointExcludingPercent(st)){return an}let Wt="";const Ot=en.ucs2.decode(st);for(let st=0;stOt){Wt=en;Ot=tn}en=null;tn=0}else{if(en===null){en=nn}++tn}}if(tn>Ot){Wt=en;Ot=tn}return{idx:Wt,len:Ot}}function serializeHost(st){if(typeof st==="number"){return serializeIPv4(st)}if(st instanceof Array){return"["+serializeIPv6(st)+"]"}return st}function trimControlChars(st){return st.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g,"")}function trimTabAndNewline(st){return st.replace(/\u0009|\u000A|\u000D/g,"")}function shortenPath(st){const Wt=st.path;if(Wt.length===0){return}if(st.scheme==="file"&&Wt.length===1&&isNormalizedWindowsDriveLetter(Wt[0])){return}Wt.pop()}function includesCredentials(st){return st.username!==""||st.password!==""}function cannotHaveAUsernamePasswordPort(st){return st.host===null||st.host===""||st.cannotBeABaseURL||st.scheme==="file"}function isNormalizedWindowsDriveLetter(st){return/^[A-Za-z]:$/.test(st)}function URLStateMachine(st,Wt,Ot,tn,nn){this.pointer=0;this.input=st;this.base=Wt||null;this.encodingOverride=Ot||"utf-8";this.stateOverride=nn;this.url=tn;this.failure=false;this.parseError=false;if(!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null,cannotBeABaseURL:false};const st=trimControlChars(this.input);if(st!==this.input){this.parseError=true}this.input=st}const In=trimTabAndNewline(this.input);if(In!==this.input){this.parseError=true}this.input=In;this.state=nn||"scheme start";this.buffer="";this.atFlag=false;this.arrFlag=false;this.passwordTokenSeenFlag=false;this.input=en.ucs2.decode(this.input);for(;this.pointer<=this.input.length;++this.pointer){const st=this.input[this.pointer];const Wt=isNaN(st)?undefined:String.fromCodePoint(st);const Ot=this["parse "+this.state](st,Wt);if(!Ot){break}else if(Ot===an){this.failure=true;break}}}URLStateMachine.prototype["parse scheme start"]=function parseSchemeStart(st,Wt){if(isASCIIAlpha(st)){this.buffer+=Wt.toLowerCase();this.state="scheme"}else if(!this.stateOverride){this.state="no scheme";--this.pointer}else{this.parseError=true;return an}return true};URLStateMachine.prototype["parse scheme"]=function parseScheme(st,Wt){if(isASCIIAlphanumeric(st)||st===43||st===45||st===46){this.buffer+=Wt.toLowerCase()}else if(st===58){if(this.stateOverride){if(isSpecial(this.url)&&!isSpecialScheme(this.buffer)){return false}if(!isSpecial(this.url)&&isSpecialScheme(this.buffer)){return false}if((includesCredentials(this.url)||this.url.port!==null)&&this.buffer==="file"){return false}if(this.url.scheme==="file"&&(this.url.host===""||this.url.host===null)){return false}}this.url.scheme=this.buffer;this.buffer="";if(this.stateOverride){return false}if(this.url.scheme==="file"){if(this.input[this.pointer+1]!==47||this.input[this.pointer+2]!==47){this.parseError=true}this.state="file"}else if(isSpecial(this.url)&&this.base!==null&&this.base.scheme===this.url.scheme){this.state="special relative or authority"}else if(isSpecial(this.url)){this.state="special authority slashes"}else if(this.input[this.pointer+1]===47){this.state="path or authority";++this.pointer}else{this.url.cannotBeABaseURL=true;this.url.path.push("");this.state="cannot-be-a-base-URL path"}}else if(!this.stateOverride){this.buffer="";this.state="no scheme";this.pointer=-1}else{this.parseError=true;return an}return true};URLStateMachine.prototype["parse no scheme"]=function parseNoScheme(st){if(this.base===null||this.base.cannotBeABaseURL&&st!==35){return an}else if(this.base.cannotBeABaseURL&&st===35){this.url.scheme=this.base.scheme;this.url.path=this.base.path.slice();this.url.query=this.base.query;this.url.fragment="";this.url.cannotBeABaseURL=true;this.state="fragment"}else if(this.base.scheme==="file"){this.state="file";--this.pointer}else{this.state="relative";--this.pointer}return true};URLStateMachine.prototype["parse special relative or authority"]=function parseSpecialRelativeOrAuthority(st){if(st===47&&this.input[this.pointer+1]===47){this.state="special authority ignore slashes";++this.pointer}else{this.parseError=true;this.state="relative";--this.pointer}return true};URLStateMachine.prototype["parse path or authority"]=function parsePathOrAuthority(st){if(st===47){this.state="authority"}else{this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse relative"]=function parseRelative(st){this.url.scheme=this.base.scheme;if(isNaN(st)){this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice();this.url.query=this.base.query}else if(st===47){this.state="relative slash"}else if(st===63){this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice();this.url.query="";this.state="query"}else if(st===35){this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice();this.url.query=this.base.query;this.url.fragment="";this.state="fragment"}else if(isSpecial(this.url)&&st===92){this.parseError=true;this.state="relative slash"}else{this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice(0,this.base.path.length-1);this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse relative slash"]=function parseRelativeSlash(st){if(isSpecial(this.url)&&(st===47||st===92)){if(st===92){this.parseError=true}this.state="special authority ignore slashes"}else if(st===47){this.state="authority"}else{this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse special authority slashes"]=function parseSpecialAuthoritySlashes(st){if(st===47&&this.input[this.pointer+1]===47){this.state="special authority ignore slashes";++this.pointer}else{this.parseError=true;this.state="special authority ignore slashes";--this.pointer}return true};URLStateMachine.prototype["parse special authority ignore slashes"]=function parseSpecialAuthorityIgnoreSlashes(st){if(st!==47&&st!==92){this.state="authority";--this.pointer}else{this.parseError=true}return true};URLStateMachine.prototype["parse authority"]=function parseAuthority(st,Wt){if(st===64){this.parseError=true;if(this.atFlag){this.buffer="%40"+this.buffer}this.atFlag=true;const st=countSymbols(this.buffer);for(let Wt=0;WtMath.pow(2,16)-1){this.parseError=true;return an}this.url.port=st===defaultPort(this.url.scheme)?null:st;this.buffer=""}if(this.stateOverride){return false}this.state="path start";--this.pointer}else{this.parseError=true;return an}return true};const cn=new Set([47,92,63,35]);URLStateMachine.prototype["parse file"]=function parseFile(st){this.url.scheme="file";if(st===47||st===92){if(st===92){this.parseError=true}this.state="file slash"}else if(this.base!==null&&this.base.scheme==="file"){if(isNaN(st)){this.url.host=this.base.host;this.url.path=this.base.path.slice();this.url.query=this.base.query}else if(st===63){this.url.host=this.base.host;this.url.path=this.base.path.slice();this.url.query="";this.state="query"}else if(st===35){this.url.host=this.base.host;this.url.path=this.base.path.slice();this.url.query=this.base.query;this.url.fragment="";this.state="fragment"}else{if(this.input.length-this.pointer-1===0||!isWindowsDriveLetterCodePoints(st,this.input[this.pointer+1])||this.input.length-this.pointer-1>=2&&!cn.has(this.input[this.pointer+2])){this.url.host=this.base.host;this.url.path=this.base.path.slice();shortenPath(this.url)}else{this.parseError=true}this.state="path";--this.pointer}}else{this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse file slash"]=function parseFileSlash(st){if(st===47||st===92){if(st===92){this.parseError=true}this.state="file host"}else{if(this.base!==null&&this.base.scheme==="file"){if(isNormalizedWindowsDriveLetterString(this.base.path[0])){this.url.path.push(this.base.path[0])}else{this.url.host=this.base.host}}this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse file host"]=function parseFileHost(st,Wt){if(isNaN(st)||st===47||st===92||st===63||st===35){--this.pointer;if(!this.stateOverride&&isWindowsDriveLetterString(this.buffer)){this.parseError=true;this.state="path"}else if(this.buffer===""){this.url.host="";if(this.stateOverride){return false}this.state="path start"}else{let st=parseHost(this.buffer,isSpecial(this.url));if(st===an){return an}if(st==="localhost"){st=""}this.url.host=st;if(this.stateOverride){return false}this.buffer="";this.state="path start"}}else{this.buffer+=Wt}return true};URLStateMachine.prototype["parse path start"]=function parsePathStart(st){if(isSpecial(this.url)){if(st===92){this.parseError=true}this.state="path";if(st!==47&&st!==92){--this.pointer}}else if(!this.stateOverride&&st===63){this.url.query="";this.state="query"}else if(!this.stateOverride&&st===35){this.url.fragment="";this.state="fragment"}else if(st!==undefined){this.state="path";if(st!==47){--this.pointer}}return true};URLStateMachine.prototype["parse path"]=function parsePath(st){if(isNaN(st)||st===47||isSpecial(this.url)&&st===92||!this.stateOverride&&(st===63||st===35)){if(isSpecial(this.url)&&st===92){this.parseError=true}if(isDoubleDot(this.buffer)){shortenPath(this.url);if(st!==47&&!(isSpecial(this.url)&&st===92)){this.url.path.push("")}}else if(isSingleDot(this.buffer)&&st!==47&&!(isSpecial(this.url)&&st===92)){this.url.path.push("")}else if(!isSingleDot(this.buffer)){if(this.url.scheme==="file"&&this.url.path.length===0&&isWindowsDriveLetterString(this.buffer)){if(this.url.host!==""&&this.url.host!==null){this.parseError=true;this.url.host=""}this.buffer=this.buffer[0]+":"}this.url.path.push(this.buffer)}this.buffer="";if(this.url.scheme==="file"&&(st===undefined||st===63||st===35)){while(this.url.path.length>1&&this.url.path[0]===""){this.parseError=true;this.url.path.shift()}}if(st===63){this.url.query="";this.state="query"}if(st===35){this.url.fragment="";this.state="fragment"}}else{if(st===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}this.buffer+=percentEncodeChar(st,isPathPercentEncode)}return true};URLStateMachine.prototype["parse cannot-be-a-base-URL path"]=function parseCannotBeABaseURLPath(st){if(st===63){this.url.query="";this.state="query"}else if(st===35){this.url.fragment="";this.state="fragment"}else{if(!isNaN(st)&&st!==37){this.parseError=true}if(st===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}if(!isNaN(st)){this.url.path[0]=this.url.path[0]+percentEncodeChar(st,isC0ControlPercentEncode)}}return true};URLStateMachine.prototype["parse query"]=function parseQuery(st,Wt){if(isNaN(st)||!this.stateOverride&&st===35){if(!isSpecial(this.url)||this.url.scheme==="ws"||this.url.scheme==="wss"){this.encodingOverride="utf-8"}const Wt=new Buffer(this.buffer);for(let st=0;st126||Wt[st]===34||Wt[st]===35||Wt[st]===60||Wt[st]===62){this.url.query+=percentEncode(Wt[st])}else{this.url.query+=String.fromCodePoint(Wt[st])}}this.buffer="";if(st===35){this.url.fragment="";this.state="fragment"}}else{if(st===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}this.buffer+=Wt}return true};URLStateMachine.prototype["parse fragment"]=function parseFragment(st){if(isNaN(st)){}else if(st===0){this.parseError=true}else{if(st===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}this.url.fragment+=percentEncodeChar(st,isC0ControlPercentEncode)}return true};function serializeURL(st,Wt){let Ot=st.scheme+":";if(st.host!==null){Ot+="//";if(st.username!==""||st.password!==""){Ot+=st.username;if(st.password!==""){Ot+=":"+st.password}Ot+="@"}Ot+=serializeHost(st.host);if(st.port!==null){Ot+=":"+st.port}}else if(st.host===null&&st.scheme==="file"){Ot+="//"}if(st.cannotBeABaseURL){Ot+=st.path[0]}else{for(const Wt of st.path){Ot+="/"+Wt}}if(st.query!==null){Ot+="?"+st.query}if(!Wt&&st.fragment!==null){Ot+="#"+st.fragment}return Ot}function serializeOrigin(st){let Wt=st.scheme+"://";Wt+=serializeHost(st.host);if(st.port!==null){Wt+=":"+st.port}return Wt}st.exports.serializeURL=serializeURL;st.exports.serializeURLOrigin=function(Wt){switch(Wt.scheme){case"blob":try{return st.exports.serializeURLOrigin(st.exports.parseURL(Wt.path[0]))}catch(st){return"null"}case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return serializeOrigin({scheme:Wt.scheme,host:Wt.host,port:Wt.port});case"file":return"file://";default:return"null"}};st.exports.basicURLParse=function(st,Wt){if(Wt===undefined){Wt={}}const Ot=new URLStateMachine(st,Wt.baseURL,Wt.encodingOverride,Wt.url,Wt.stateOverride);if(Ot.failure){return"failure"}return Ot.url};st.exports.setTheUsername=function(st,Wt){st.username="";const Ot=en.ucs2.decode(Wt);for(let Wt=0;Wt{"use strict";st.exports.mixin=function mixin(st,Wt){const Ot=Object.getOwnPropertyNames(Wt);for(let en=0;en{var Wt,Ot,en;let tn=null;let an=null;let In=null;let rn=st.status;let cn=st.statusText;if(st.ok){if(this.method!=="HEAD"){const Wt=await st.text();if(Wt===""){}else if(this.headers["Accept"]==="text/csv"){an=Wt}else if(this.headers["Accept"]&&this.headers["Accept"].includes("application/vnd.pgrst.plan+text")){an=Wt}else{an=JSON.parse(Wt)}}const en=(Wt=this.headers["Prefer"])===null||Wt===void 0?void 0:Wt.match(/count=(exact|planned|estimated)/);const nn=(Ot=st.headers.get("content-range"))===null||Ot===void 0?void 0:Ot.split("/");if(en&&nn&&nn.length>1){In=parseInt(nn[1])}if(this.isMaybeSingle&&this.method==="GET"&&Array.isArray(an)){if(an.length>1){tn={code:"PGRST116",details:`Results contain ${an.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"};an=null;In=null;rn=406;cn="Not Acceptable"}else if(an.length===1){an=an[0]}else{an=null}}}else{const Wt=await st.text();try{tn=JSON.parse(Wt);if(Array.isArray(tn)&&st.status===404){an=[];tn=null;rn=200;cn="OK"}}catch(Ot){if(st.status===404&&Wt===""){rn=204;cn="No Content"}else{tn={message:Wt}}}if(tn&&this.isMaybeSingle&&((en=tn===null||tn===void 0?void 0:tn.details)===null||en===void 0?void 0:en.includes("0 rows"))){tn=null;rn=200;cn="OK"}if(tn&&this.shouldThrowOnError){throw new nn.default(tn)}}const on={error:tn,data:an,count:In,status:rn,statusText:cn};return on}));if(!this.shouldThrowOnError){en=en.catch((st=>{var Wt,Ot,en;return{error:{message:`${(Wt=st===null||st===void 0?void 0:st.name)!==null&&Wt!==void 0?Wt:"FetchError"}: ${st===null||st===void 0?void 0:st.message}`,details:`${(Ot=st===null||st===void 0?void 0:st.stack)!==null&&Ot!==void 0?Ot:""}`,hint:"",code:`${(en=st===null||st===void 0?void 0:st.code)!==null&&en!==void 0?en:""}`},data:null,count:null,status:0,statusText:""}}))}return en.then(st,Wt)}}Wt["default"]=PostgrestBuilder},16193:function(st,Wt,Ot){"use strict";var en=this&&this.__importDefault||function(st){return st&&st.__esModule?st:{default:st}};Object.defineProperty(Wt,"__esModule",{value:true});const tn=en(Ot(14253));const nn=en(Ot(6377));const an=Ot(88258);class PostgrestClient{constructor(st,{headers:Wt={},schema:Ot,fetch:en}={}){this.url=st;this.headers=Object.assign(Object.assign({},an.DEFAULT_HEADERS),Wt);this.schemaName=Ot;this.fetch=en}from(st){const Wt=new URL(`${this.url}/${st}`);return new tn.default(Wt,{headers:Object.assign({},this.headers),schema:this.schemaName,fetch:this.fetch})}schema(st){return new PostgrestClient(this.url,{headers:this.headers,schema:st,fetch:this.fetch})}rpc(st,Wt={},{head:Ot=false,get:en=false,count:tn}={}){let an;const In=new URL(`${this.url}/rpc/${st}`);let rn;if(Ot){an="HEAD";Object.entries(Wt).forEach((([st,Wt])=>{In.searchParams.append(st,`${Wt}`)}))}else if(en){an="GET";Object.entries(Wt).forEach((([st,Wt])=>{In.searchParams.append(st,`${Wt}`)}))}else{an="POST";rn=Wt}const cn=Object.assign({},this.headers);if(tn){cn["Prefer"]=`count=${tn}`}return new nn.default({method:an,url:In,headers:cn,schema:this.schemaName,body:rn,fetch:this.fetch,allowEmpty:false})}}Wt["default"]=PostgrestClient},58154:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});class PostgrestError extends Error{constructor(st){super(st.message);this.name="PostgrestError";this.details=st.details;this.hint=st.hint;this.code=st.code}}Wt["default"]=PostgrestError},6377:function(st,Wt,Ot){"use strict";var en=this&&this.__importDefault||function(st){return st&&st.__esModule?st:{default:st}};Object.defineProperty(Wt,"__esModule",{value:true});const tn=en(Ot(77725));class PostgrestFilterBuilder extends tn.default{eq(st,Wt){this.url.searchParams.append(st,`eq.${Wt}`);return this}neq(st,Wt){this.url.searchParams.append(st,`neq.${Wt}`);return this}gt(st,Wt){this.url.searchParams.append(st,`gt.${Wt}`);return this}gte(st,Wt){this.url.searchParams.append(st,`gte.${Wt}`);return this}lt(st,Wt){this.url.searchParams.append(st,`lt.${Wt}`);return this}lte(st,Wt){this.url.searchParams.append(st,`lte.${Wt}`);return this}like(st,Wt){this.url.searchParams.append(st,`like.${Wt}`);return this}likeAllOf(st,Wt){this.url.searchParams.append(st,`like(all).{${Wt.join(",")}}`);return this}likeAnyOf(st,Wt){this.url.searchParams.append(st,`like(any).{${Wt.join(",")}}`);return this}ilike(st,Wt){this.url.searchParams.append(st,`ilike.${Wt}`);return this}ilikeAllOf(st,Wt){this.url.searchParams.append(st,`ilike(all).{${Wt.join(",")}}`);return this}ilikeAnyOf(st,Wt){this.url.searchParams.append(st,`ilike(any).{${Wt.join(",")}}`);return this}is(st,Wt){this.url.searchParams.append(st,`is.${Wt}`);return this}in(st,Wt){const Ot=Array.from(new Set(Wt)).map((st=>{if(typeof st==="string"&&new RegExp("[,()]").test(st))return`"${st}"`;else return`${st}`})).join(",");this.url.searchParams.append(st,`in.(${Ot})`);return this}contains(st,Wt){if(typeof Wt==="string"){this.url.searchParams.append(st,`cs.${Wt}`)}else if(Array.isArray(Wt)){this.url.searchParams.append(st,`cs.{${Wt.join(",")}}`)}else{this.url.searchParams.append(st,`cs.${JSON.stringify(Wt)}`)}return this}containedBy(st,Wt){if(typeof Wt==="string"){this.url.searchParams.append(st,`cd.${Wt}`)}else if(Array.isArray(Wt)){this.url.searchParams.append(st,`cd.{${Wt.join(",")}}`)}else{this.url.searchParams.append(st,`cd.${JSON.stringify(Wt)}`)}return this}rangeGt(st,Wt){this.url.searchParams.append(st,`sr.${Wt}`);return this}rangeGte(st,Wt){this.url.searchParams.append(st,`nxl.${Wt}`);return this}rangeLt(st,Wt){this.url.searchParams.append(st,`sl.${Wt}`);return this}rangeLte(st,Wt){this.url.searchParams.append(st,`nxr.${Wt}`);return this}rangeAdjacent(st,Wt){this.url.searchParams.append(st,`adj.${Wt}`);return this}overlaps(st,Wt){if(typeof Wt==="string"){this.url.searchParams.append(st,`ov.${Wt}`)}else{this.url.searchParams.append(st,`ov.{${Wt.join(",")}}`)}return this}textSearch(st,Wt,{config:Ot,type:en}={}){let tn="";if(en==="plain"){tn="pl"}else if(en==="phrase"){tn="ph"}else if(en==="websearch"){tn="w"}const nn=Ot===undefined?"":`(${Ot})`;this.url.searchParams.append(st,`${tn}fts${nn}.${Wt}`);return this}match(st){Object.entries(st).forEach((([st,Wt])=>{this.url.searchParams.append(st,`eq.${Wt}`)}));return this}not(st,Wt,Ot){this.url.searchParams.append(st,`not.${Wt}.${Ot}`);return this}or(st,{foreignTable:Wt,referencedTable:Ot=Wt}={}){const en=Ot?`${Ot}.or`:"or";this.url.searchParams.append(en,`(${st})`);return this}filter(st,Wt,Ot){this.url.searchParams.append(st,`${Wt}.${Ot}`);return this}}Wt["default"]=PostgrestFilterBuilder},14253:function(st,Wt,Ot){"use strict";var en=this&&this.__importDefault||function(st){return st&&st.__esModule?st:{default:st}};Object.defineProperty(Wt,"__esModule",{value:true});const tn=en(Ot(6377));class PostgrestQueryBuilder{constructor(st,{headers:Wt={},schema:Ot,fetch:en}){this.url=st;this.headers=Wt;this.schema=Ot;this.fetch=en}select(st,{head:Wt=false,count:Ot}={}){const en=Wt?"HEAD":"GET";let nn=false;const an=(st!==null&&st!==void 0?st:"*").split("").map((st=>{if(/\s/.test(st)&&!nn){return""}if(st==='"'){nn=!nn}return st})).join("");this.url.searchParams.set("select",an);if(Ot){this.headers["Prefer"]=`count=${Ot}`}return new tn.default({method:en,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:false})}insert(st,{count:Wt,defaultToNull:Ot=true}={}){const en="POST";const nn=[];if(this.headers["Prefer"]){nn.push(this.headers["Prefer"])}if(Wt){nn.push(`count=${Wt}`)}if(!Ot){nn.push("missing=default")}this.headers["Prefer"]=nn.join(",");if(Array.isArray(st)){const Wt=st.reduce(((st,Wt)=>st.concat(Object.keys(Wt))),[]);if(Wt.length>0){const st=[...new Set(Wt)].map((st=>`"${st}"`));this.url.searchParams.set("columns",st.join(","))}}return new tn.default({method:en,url:this.url,headers:this.headers,schema:this.schema,body:st,fetch:this.fetch,allowEmpty:false})}upsert(st,{onConflict:Wt,ignoreDuplicates:Ot=false,count:en,defaultToNull:nn=true}={}){const an="POST";const In=[`resolution=${Ot?"ignore":"merge"}-duplicates`];if(Wt!==undefined)this.url.searchParams.set("on_conflict",Wt);if(this.headers["Prefer"]){In.push(this.headers["Prefer"])}if(en){In.push(`count=${en}`)}if(!nn){In.push("missing=default")}this.headers["Prefer"]=In.join(",");if(Array.isArray(st)){const Wt=st.reduce(((st,Wt)=>st.concat(Object.keys(Wt))),[]);if(Wt.length>0){const st=[...new Set(Wt)].map((st=>`"${st}"`));this.url.searchParams.set("columns",st.join(","))}}return new tn.default({method:an,url:this.url,headers:this.headers,schema:this.schema,body:st,fetch:this.fetch,allowEmpty:false})}update(st,{count:Wt}={}){const Ot="PATCH";const en=[];if(this.headers["Prefer"]){en.push(this.headers["Prefer"])}if(Wt){en.push(`count=${Wt}`)}this.headers["Prefer"]=en.join(",");return new tn.default({method:Ot,url:this.url,headers:this.headers,schema:this.schema,body:st,fetch:this.fetch,allowEmpty:false})}delete({count:st}={}){const Wt="DELETE";const Ot=[];if(st){Ot.push(`count=${st}`)}if(this.headers["Prefer"]){Ot.unshift(this.headers["Prefer"])}this.headers["Prefer"]=Ot.join(",");return new tn.default({method:Wt,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:false})}}Wt["default"]=PostgrestQueryBuilder},77725:function(st,Wt,Ot){"use strict";var en=this&&this.__importDefault||function(st){return st&&st.__esModule?st:{default:st}};Object.defineProperty(Wt,"__esModule",{value:true});const tn=en(Ot(41455));class PostgrestTransformBuilder extends tn.default{select(st){let Wt=false;const Ot=(st!==null&&st!==void 0?st:"*").split("").map((st=>{if(/\s/.test(st)&&!Wt){return""}if(st==='"'){Wt=!Wt}return st})).join("");this.url.searchParams.set("select",Ot);if(this.headers["Prefer"]){this.headers["Prefer"]+=","}this.headers["Prefer"]+="return=representation";return this}order(st,{ascending:Wt=true,nullsFirst:Ot,foreignTable:en,referencedTable:tn=en}={}){const nn=tn?`${tn}.order`:"order";const an=this.url.searchParams.get(nn);this.url.searchParams.set(nn,`${an?`${an},`:""}${st}.${Wt?"asc":"desc"}${Ot===undefined?"":Ot?".nullsfirst":".nullslast"}`);return this}limit(st,{foreignTable:Wt,referencedTable:Ot=Wt}={}){const en=typeof Ot==="undefined"?"limit":`${Ot}.limit`;this.url.searchParams.set(en,`${st}`);return this}range(st,Wt,{foreignTable:Ot,referencedTable:en=Ot}={}){const tn=typeof en==="undefined"?"offset":`${en}.offset`;const nn=typeof en==="undefined"?"limit":`${en}.limit`;this.url.searchParams.set(tn,`${st}`);this.url.searchParams.set(nn,`${Wt-st+1}`);return this}abortSignal(st){this.signal=st;return this}single(){this.headers["Accept"]="application/vnd.pgrst.object+json";return this}maybeSingle(){if(this.method==="GET"){this.headers["Accept"]="application/json"}else{this.headers["Accept"]="application/vnd.pgrst.object+json"}this.isMaybeSingle=true;return this}csv(){this.headers["Accept"]="text/csv";return this}geojson(){this.headers["Accept"]="application/geo+json";return this}explain({analyze:st=false,verbose:Wt=false,settings:Ot=false,buffers:en=false,wal:tn=false,format:nn="text"}={}){var an;const In=[st?"analyze":null,Wt?"verbose":null,Ot?"settings":null,en?"buffers":null,tn?"wal":null].filter(Boolean).join("|");const rn=(an=this.headers["Accept"])!==null&&an!==void 0?an:"application/json";this.headers["Accept"]=`application/vnd.pgrst.plan+${nn}; for="${rn}"; options=${In};`;if(nn==="json")return this;else return this}rollback(){var st;if(((st=this.headers["Prefer"])!==null&&st!==void 0?st:"").trim().length>0){this.headers["Prefer"]+=",tx=rollback"}else{this.headers["Prefer"]="tx=rollback"}return this}returns(){return this}}Wt["default"]=PostgrestTransformBuilder},88258:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.DEFAULT_HEADERS=void 0;const en=Ot(42799);Wt.DEFAULT_HEADERS={"X-Client-Info":`postgrest-js/${en.version}`}},60927:function(st,Wt,Ot){"use strict";var en=this&&this.__importDefault||function(st){return st&&st.__esModule?st:{default:st}};Object.defineProperty(Wt,"__esModule",{value:true});Wt.PostgrestBuilder=Wt.PostgrestTransformBuilder=Wt.PostgrestFilterBuilder=Wt.PostgrestQueryBuilder=Wt.PostgrestClient=void 0;var tn=Ot(16193);Object.defineProperty(Wt,"PostgrestClient",{enumerable:true,get:function(){return en(tn).default}});var nn=Ot(14253);Object.defineProperty(Wt,"PostgrestQueryBuilder",{enumerable:true,get:function(){return en(nn).default}});var an=Ot(6377);Object.defineProperty(Wt,"PostgrestFilterBuilder",{enumerable:true,get:function(){return en(an).default}});var In=Ot(77725);Object.defineProperty(Wt,"PostgrestTransformBuilder",{enumerable:true,get:function(){return en(In).default}});var rn=Ot(41455);Object.defineProperty(Wt,"PostgrestBuilder",{enumerable:true,get:function(){return en(rn).default}})},42799:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.version=void 0;Wt.version="1.15.0"},38093:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__setModuleDefault||(Object.create?function(st,Wt){Object.defineProperty(st,"default",{enumerable:true,value:Wt})}:function(st,Wt){st["default"]=Wt});var nn=this&&this.__importStar||function(st){if(st&&st.__esModule)return st;var Wt={};if(st!=null)for(var Ot in st)if(Ot!=="default"&&Object.prototype.hasOwnProperty.call(st,Ot))en(Wt,st,Ot);tn(Wt,st);return Wt};var an=this&&this.__importDefault||function(st){return st&&st.__esModule?st:{default:st}};Object.defineProperty(Wt,"__esModule",{value:true});Wt.REALTIME_CHANNEL_STATES=Wt.REALTIME_SUBSCRIBE_STATES=Wt.REALTIME_LISTEN_TYPES=Wt.REALTIME_POSTGRES_CHANGES_LISTEN_EVENT=void 0;const In=Ot(29680);const rn=an(Ot(49333));const cn=an(Ot(99920));const on=an(Ot(98493));const sn=nn(Ot(93429));var dn;(function(st){st["ALL"]="*";st["INSERT"]="INSERT";st["UPDATE"]="UPDATE";st["DELETE"]="DELETE"})(dn=Wt.REALTIME_POSTGRES_CHANGES_LISTEN_EVENT||(Wt.REALTIME_POSTGRES_CHANGES_LISTEN_EVENT={}));var un;(function(st){st["BROADCAST"]="broadcast";st["PRESENCE"]="presence";st["POSTGRES_CHANGES"]="postgres_changes"})(un=Wt.REALTIME_LISTEN_TYPES||(Wt.REALTIME_LISTEN_TYPES={}));var pn;(function(st){st["SUBSCRIBED"]="SUBSCRIBED";st["TIMED_OUT"]="TIMED_OUT";st["CLOSED"]="CLOSED";st["CHANNEL_ERROR"]="CHANNEL_ERROR"})(pn=Wt.REALTIME_SUBSCRIBE_STATES||(Wt.REALTIME_SUBSCRIBE_STATES={}));Wt.REALTIME_CHANNEL_STATES=In.CHANNEL_STATES;class RealtimeChannel{constructor(st,Wt={config:{}},Ot){this.topic=st;this.params=Wt;this.socket=Ot;this.bindings={};this.state=In.CHANNEL_STATES.closed;this.joinedOnce=false;this.pushBuffer=[];this.subTopic=st.replace(/^realtime:/i,"");this.params.config=Object.assign({broadcast:{ack:false,self:false},presence:{key:""}},Wt.config);this.timeout=this.socket.timeout;this.joinPush=new rn.default(this,In.CHANNEL_EVENTS.join,this.params,this.timeout);this.rejoinTimer=new cn.default((()=>this._rejoinUntilConnected()),this.socket.reconnectAfterMs);this.joinPush.receive("ok",(()=>{this.state=In.CHANNEL_STATES.joined;this.rejoinTimer.reset();this.pushBuffer.forEach((st=>st.send()));this.pushBuffer=[]}));this._onClose((()=>{this.rejoinTimer.reset();this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`);this.state=In.CHANNEL_STATES.closed;this.socket._remove(this)}));this._onError((st=>{if(this._isLeaving()||this._isClosed()){return}this.socket.log("channel",`error ${this.topic}`,st);this.state=In.CHANNEL_STATES.errored;this.rejoinTimer.scheduleTimeout()}));this.joinPush.receive("timeout",(()=>{if(!this._isJoining()){return}this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout);this.state=In.CHANNEL_STATES.errored;this.rejoinTimer.scheduleTimeout()}));this._on(In.CHANNEL_EVENTS.reply,{},((st,Wt)=>{this._trigger(this._replyEventName(Wt),st)}));this.presence=new on.default(this);this.broadcastEndpointURL=this._broadcastEndpointURL()}subscribe(st,Wt=this.timeout){var Ot,en;if(!this.socket.isConnected()){this.socket.connect()}if(this.joinedOnce){throw`tried to subscribe multiple times. 'subscribe' can only be called a single time per channel instance`}else{const{config:{broadcast:tn,presence:nn}}=this.params;this._onError((Wt=>st&&st("CHANNEL_ERROR",Wt)));this._onClose((()=>st&&st("CLOSED")));const an={};const In={broadcast:tn,presence:nn,postgres_changes:(en=(Ot=this.bindings.postgres_changes)===null||Ot===void 0?void 0:Ot.map((st=>st.filter)))!==null&&en!==void 0?en:[]};if(this.socket.accessToken){an.access_token=this.socket.accessToken}this.updateJoinPayload(Object.assign({config:In},an));this.joinedOnce=true;this._rejoin(Wt);this.joinPush.receive("ok",(({postgres_changes:Wt})=>{var Ot;this.socket.accessToken&&this.socket.setAuth(this.socket.accessToken);if(Wt===undefined){st&&st("SUBSCRIBED");return}else{const en=this.bindings.postgres_changes;const tn=(Ot=en===null||en===void 0?void 0:en.length)!==null&&Ot!==void 0?Ot:0;const nn=[];for(let Ot=0;Ot{st&&st("CHANNEL_ERROR",new Error(JSON.stringify(Object.values(Wt).join(", ")||"error")));return})).receive("timeout",(()=>{st&&st("TIMED_OUT");return}))}return this}presenceState(){return this.presence.state}async track(st,Wt={}){return await this.send({type:"presence",event:"track",payload:st},Wt.timeout||this.timeout)}async untrack(st={}){return await this.send({type:"presence",event:"untrack"},st)}on(st,Wt,Ot){return this._on(st,Wt,Ot)}async send(st,Wt={}){var Ot,en;if(!this._canPush()&&st.type==="broadcast"){const{event:tn,payload:nn}=st;const an={method:"POST",headers:{apikey:(Ot=this.socket.apiKey)!==null&&Ot!==void 0?Ot:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:tn,payload:nn}]})};try{const st=await this._fetchWithTimeout(this.broadcastEndpointURL,an,(en=Wt.timeout)!==null&&en!==void 0?en:this.timeout);if(st.ok){return"ok"}else{return"error"}}catch(st){if(st.name==="AbortError"){return"timed out"}else{return"error"}}}else{return new Promise((Ot=>{var en,tn,nn;const an=this._push(st.type,st,Wt.timeout||this.timeout);if(st.type==="broadcast"&&!((nn=(tn=(en=this.params)===null||en===void 0?void 0:en.config)===null||tn===void 0?void 0:tn.broadcast)===null||nn===void 0?void 0:nn.ack)){Ot("ok")}an.receive("ok",(()=>Ot("ok")));an.receive("timeout",(()=>Ot("timed out")))}))}}updateJoinPayload(st){this.joinPush.updatePayload(st)}unsubscribe(st=this.timeout){this.state=In.CHANNEL_STATES.leaving;const onClose=()=>{this.socket.log("channel",`leave ${this.topic}`);this._trigger(In.CHANNEL_EVENTS.close,"leave",this._joinRef())};this.rejoinTimer.reset();this.joinPush.destroy();return new Promise((Wt=>{const Ot=new rn.default(this,In.CHANNEL_EVENTS.leave,{},st);Ot.receive("ok",(()=>{onClose();Wt("ok")})).receive("timeout",(()=>{onClose();Wt("timed out")})).receive("error",(()=>{Wt("error")}));Ot.send();if(!this._canPush()){Ot.trigger("ok",{})}}))}_broadcastEndpointURL(){let st=this.socket.endPoint;st=st.replace(/^ws/i,"http");st=st.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,"");return st.replace(/\/+$/,"")+"/api/broadcast"}async _fetchWithTimeout(st,Wt,Ot){const en=new AbortController;const tn=setTimeout((()=>en.abort()),Ot);const nn=await this.socket.fetch(st,Object.assign(Object.assign({},Wt),{signal:en.signal}));clearTimeout(tn);return nn}_push(st,Wt,Ot=this.timeout){if(!this.joinedOnce){throw`tried to push '${st}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`}let en=new rn.default(this,st,Wt,Ot);if(this._canPush()){en.send()}else{en.startTimeout();this.pushBuffer.push(en)}return en}_onMessage(st,Wt,Ot){return Wt}_isMember(st){return this.topic===st}_joinRef(){return this.joinPush.ref}_trigger(st,Wt,Ot){var en,tn;const nn=st.toLocaleLowerCase();const{close:an,error:rn,leave:cn,join:on}=In.CHANNEL_EVENTS;const sn=[an,rn,cn,on];if(Ot&&sn.indexOf(nn)>=0&&Ot!==this._joinRef()){return}let dn=this._onMessage(nn,Wt,Ot);if(Wt&&!dn){throw"channel onMessage callbacks must return the payload, modified or unmodified"}if(["insert","update","delete"].includes(nn)){(en=this.bindings.postgres_changes)===null||en===void 0?void 0:en.filter((st=>{var Wt,Ot,en;return((Wt=st.filter)===null||Wt===void 0?void 0:Wt.event)==="*"||((en=(Ot=st.filter)===null||Ot===void 0?void 0:Ot.event)===null||en===void 0?void 0:en.toLocaleLowerCase())===nn})).map((st=>st.callback(dn,Ot)))}else{(tn=this.bindings[nn])===null||tn===void 0?void 0:tn.filter((st=>{var Ot,en,tn,an,In,rn;if(["broadcast","presence","postgres_changes"].includes(nn)){if("id"in st){const nn=st.id;const an=(Ot=st.filter)===null||Ot===void 0?void 0:Ot.event;return nn&&((en=Wt.ids)===null||en===void 0?void 0:en.includes(nn))&&(an==="*"||(an===null||an===void 0?void 0:an.toLocaleLowerCase())===((tn=Wt.data)===null||tn===void 0?void 0:tn.type.toLocaleLowerCase()))}else{const Ot=(In=(an=st===null||st===void 0?void 0:st.filter)===null||an===void 0?void 0:an.event)===null||In===void 0?void 0:In.toLocaleLowerCase();return Ot==="*"||Ot===((rn=Wt===null||Wt===void 0?void 0:Wt.event)===null||rn===void 0?void 0:rn.toLocaleLowerCase())}}else{return st.type.toLocaleLowerCase()===nn}})).map((st=>{if(typeof dn==="object"&&"ids"in dn){const st=dn.data;const{schema:Wt,table:Ot,commit_timestamp:en,type:tn,errors:nn}=st;const an={schema:Wt,table:Ot,commit_timestamp:en,eventType:tn,new:{},old:{},errors:nn};dn=Object.assign(Object.assign({},an),this._getPayloadRecords(st))}st.callback(dn,Ot)}))}}_isClosed(){return this.state===In.CHANNEL_STATES.closed}_isJoined(){return this.state===In.CHANNEL_STATES.joined}_isJoining(){return this.state===In.CHANNEL_STATES.joining}_isLeaving(){return this.state===In.CHANNEL_STATES.leaving}_replyEventName(st){return`chan_reply_${st}`}_on(st,Wt,Ot){const en=st.toLocaleLowerCase();const tn={type:en,filter:Wt,callback:Ot};if(this.bindings[en]){this.bindings[en].push(tn)}else{this.bindings[en]=[tn]}return this}_off(st,Wt){const Ot=st.toLocaleLowerCase();this.bindings[Ot]=this.bindings[Ot].filter((st=>{var en;return!(((en=st.type)===null||en===void 0?void 0:en.toLocaleLowerCase())===Ot&&RealtimeChannel.isEqual(st.filter,Wt))}));return this}static isEqual(st,Wt){if(Object.keys(st).length!==Object.keys(Wt).length){return false}for(const Ot in st){if(st[Ot]!==Wt[Ot]){return false}}return true}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout();if(this.socket.isConnected()){this._rejoin()}}_onClose(st){this._on(In.CHANNEL_EVENTS.close,{},st)}_onError(st){this._on(In.CHANNEL_EVENTS.error,{},(Wt=>st(Wt)))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(st=this.timeout){if(this._isLeaving()){return}this.socket._leaveOpenTopic(this.topic);this.state=In.CHANNEL_STATES.joining;this.joinPush.resend(st)}_getPayloadRecords(st){const Wt={new:{},old:{}};if(st.type==="INSERT"||st.type==="UPDATE"){Wt.new=sn.convertChangeData(st.columns,st.record)}if(st.type==="UPDATE"||st.type==="DELETE"){Wt.old=sn.convertChangeData(st.columns,st.old_record)}return Wt}}Wt["default"]=RealtimeChannel},73955:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__setModuleDefault||(Object.create?function(st,Wt){Object.defineProperty(st,"default",{enumerable:true,value:Wt})}:function(st,Wt){st["default"]=Wt});var nn=this&&this.__importStar||function(st){if(st&&st.__esModule)return st;var Wt={};if(st!=null)for(var Ot in st)if(Ot!=="default"&&Object.prototype.hasOwnProperty.call(st,Ot))en(Wt,st,Ot);tn(Wt,st);return Wt};var an=this&&this.__importDefault||function(st){return st&&st.__esModule?st:{default:st}};Object.defineProperty(Wt,"__esModule",{value:true});const In=Ot(29680);const rn=an(Ot(99920));const cn=an(Ot(72049));const on=an(Ot(38093));const noop=()=>{};const sn=typeof WebSocket!=="undefined";class RealtimeClient{constructor(st,Wt){var en;this.accessToken=null;this.apiKey=null;this.channels=[];this.endPoint="";this.headers=In.DEFAULT_HEADERS;this.params={};this.timeout=In.DEFAULT_TIMEOUT;this.heartbeatIntervalMs=3e4;this.heartbeatTimer=undefined;this.pendingHeartbeatRef=null;this.ref=0;this.logger=noop;this.conn=null;this.sendBuffer=[];this.serializer=new cn.default;this.stateChangeCallbacks={open:[],close:[],error:[],message:[]};this._resolveFetch=st=>{let Wt;if(st){Wt=st}else if(typeof fetch==="undefined"){Wt=(...st)=>Promise.resolve().then((()=>nn(Ot(83318)))).then((({default:Wt})=>Wt(...st)))}else{Wt=fetch}return(...st)=>Wt(...st)};this.endPoint=`${st}/${In.TRANSPORTS.websocket}`;if(Wt===null||Wt===void 0?void 0:Wt.transport){this.transport=Wt.transport}else{this.transport=null}if(Wt===null||Wt===void 0?void 0:Wt.params)this.params=Wt.params;if(Wt===null||Wt===void 0?void 0:Wt.headers)this.headers=Object.assign(Object.assign({},this.headers),Wt.headers);if(Wt===null||Wt===void 0?void 0:Wt.timeout)this.timeout=Wt.timeout;if(Wt===null||Wt===void 0?void 0:Wt.logger)this.logger=Wt.logger;if(Wt===null||Wt===void 0?void 0:Wt.heartbeatIntervalMs)this.heartbeatIntervalMs=Wt.heartbeatIntervalMs;const tn=(en=Wt===null||Wt===void 0?void 0:Wt.params)===null||en===void 0?void 0:en.apikey;if(tn){this.accessToken=tn;this.apiKey=tn}this.reconnectAfterMs=(Wt===null||Wt===void 0?void 0:Wt.reconnectAfterMs)?Wt.reconnectAfterMs:st=>[1e3,2e3,5e3,1e4][st-1]||1e4;this.encode=(Wt===null||Wt===void 0?void 0:Wt.encode)?Wt.encode:(st,Wt)=>Wt(JSON.stringify(st));this.decode=(Wt===null||Wt===void 0?void 0:Wt.decode)?Wt.decode:this.serializer.decode.bind(this.serializer);this.reconnectTimer=new rn.default((async()=>{this.disconnect();this.connect()}),this.reconnectAfterMs);this.fetch=this._resolveFetch(Wt===null||Wt===void 0?void 0:Wt.fetch)}connect(){if(this.conn){return}if(this.transport){this.conn=new this.transport(this._endPointURL(),undefined,{headers:this.headers});return}if(sn){this.conn=new WebSocket(this._endPointURL());this.setupConnection();return}this.conn=new WSWebSocketDummy(this._endPointURL(),undefined,{close:()=>{this.conn=null}});Promise.resolve().then((()=>nn(Ot(11354)))).then((({default:st})=>{this.conn=new st(this._endPointURL(),undefined,{headers:this.headers});this.setupConnection()}))}disconnect(st,Wt){if(this.conn){this.conn.onclose=function(){};if(st){this.conn.close(st,Wt!==null&&Wt!==void 0?Wt:"")}else{this.conn.close()}this.conn=null;this.heartbeatTimer&&clearInterval(this.heartbeatTimer);this.reconnectTimer.reset()}}getChannels(){return this.channels}async removeChannel(st){const Wt=await st.unsubscribe();if(this.channels.length===0){this.disconnect()}return Wt}async removeAllChannels(){const st=await Promise.all(this.channels.map((st=>st.unsubscribe())));this.disconnect();return st}log(st,Wt,Ot){this.logger(st,Wt,Ot)}connectionState(){switch(this.conn&&this.conn.readyState){case In.SOCKET_STATES.connecting:return In.CONNECTION_STATE.Connecting;case In.SOCKET_STATES.open:return In.CONNECTION_STATE.Open;case In.SOCKET_STATES.closing:return In.CONNECTION_STATE.Closing;default:return In.CONNECTION_STATE.Closed}}isConnected(){return this.connectionState()===In.CONNECTION_STATE.Open}channel(st,Wt={config:{}}){const Ot=new on.default(`realtime:${st}`,Wt,this);this.channels.push(Ot);return Ot}push(st){const{topic:Wt,event:Ot,payload:en,ref:tn}=st;const callback=()=>{this.encode(st,(st=>{var Wt;(Wt=this.conn)===null||Wt===void 0?void 0:Wt.send(st)}))};this.log("push",`${Wt} ${Ot} (${tn})`,en);if(this.isConnected()){callback()}else{this.sendBuffer.push(callback)}}setAuth(st){this.accessToken=st;this.channels.forEach((Wt=>{st&&Wt.updateJoinPayload({access_token:st});if(Wt.joinedOnce&&Wt._isJoined()){Wt._push(In.CHANNEL_EVENTS.access_token,{access_token:st})}}))}_makeRef(){let st=this.ref+1;if(st===this.ref){this.ref=0}else{this.ref=st}return this.ref.toString()}_leaveOpenTopic(st){let Wt=this.channels.find((Wt=>Wt.topic===st&&(Wt._isJoined()||Wt._isJoining())));if(Wt){this.log("transport",`leaving duplicate topic "${st}"`);Wt.unsubscribe()}}_remove(st){this.channels=this.channels.filter((Wt=>Wt._joinRef()!==st._joinRef()))}setupConnection(){if(this.conn){this.conn.binaryType="arraybuffer";this.conn.onopen=()=>this._onConnOpen();this.conn.onerror=st=>this._onConnError(st);this.conn.onmessage=st=>this._onConnMessage(st);this.conn.onclose=st=>this._onConnClose(st)}}_endPointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:In.VSN}))}_onConnMessage(st){this.decode(st.data,(st=>{let{topic:Wt,event:Ot,payload:en,ref:tn}=st;if(tn&&tn===this.pendingHeartbeatRef||Ot===(en===null||en===void 0?void 0:en.type)){this.pendingHeartbeatRef=null}this.log("receive",`${en.status||""} ${Wt} ${Ot} ${tn&&"("+tn+")"||""}`,en);this.channels.filter((st=>st._isMember(Wt))).forEach((st=>st._trigger(Ot,en,tn)));this.stateChangeCallbacks.message.forEach((Wt=>Wt(st)))}))}_onConnOpen(){this.log("transport",`connected to ${this._endPointURL()}`);this._flushSendBuffer();this.reconnectTimer.reset();this.heartbeatTimer&&clearInterval(this.heartbeatTimer);this.heartbeatTimer=setInterval((()=>this._sendHeartbeat()),this.heartbeatIntervalMs);this.stateChangeCallbacks.open.forEach((st=>st()))}_onConnClose(st){this.log("transport","close",st);this._triggerChanError();this.heartbeatTimer&&clearInterval(this.heartbeatTimer);this.reconnectTimer.scheduleTimeout();this.stateChangeCallbacks.close.forEach((Wt=>Wt(st)))}_onConnError(st){this.log("transport",st.message);this._triggerChanError();this.stateChangeCallbacks.error.forEach((Wt=>Wt(st)))}_triggerChanError(){this.channels.forEach((st=>st._trigger(In.CHANNEL_EVENTS.error)))}_appendParams(st,Wt){if(Object.keys(Wt).length===0){return st}const Ot=st.match(/\?/)?"&":"?";const en=new URLSearchParams(Wt);return`${st}${Ot}${en}`}_flushSendBuffer(){if(this.isConnected()&&this.sendBuffer.length>0){this.sendBuffer.forEach((st=>st()));this.sendBuffer=[]}}_sendHeartbeat(){var st;if(!this.isConnected()){return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null;this.log("transport","heartbeat timeout. Attempting to re-establish connection");(st=this.conn)===null||st===void 0?void 0:st.close(In.WS_CLOSE_NORMAL,"hearbeat timeout");return}this.pendingHeartbeatRef=this._makeRef();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});this.setAuth(this.accessToken)}}Wt["default"]=RealtimeClient;class WSWebSocketDummy{constructor(st,Wt,Ot){this.binaryType="arraybuffer";this.onclose=()=>{};this.onerror=()=>{};this.onmessage=()=>{};this.onopen=()=>{};this.readyState=In.SOCKET_STATES.connecting;this.send=()=>{};this.url=null;this.url=st;this.close=Ot.close}}},98493:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.REALTIME_PRESENCE_LISTEN_EVENTS=void 0;var Ot;(function(st){st["SYNC"]="sync";st["JOIN"]="join";st["LEAVE"]="leave"})(Ot=Wt.REALTIME_PRESENCE_LISTEN_EVENTS||(Wt.REALTIME_PRESENCE_LISTEN_EVENTS={}));class RealtimePresence{constructor(st,Wt){this.channel=st;this.state={};this.pendingDiffs=[];this.joinRef=null;this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const Ot=(Wt===null||Wt===void 0?void 0:Wt.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(Ot.state,{},(st=>{const{onJoin:Wt,onLeave:Ot,onSync:en}=this.caller;this.joinRef=this.channel._joinRef();this.state=RealtimePresence.syncState(this.state,st,Wt,Ot);this.pendingDiffs.forEach((st=>{this.state=RealtimePresence.syncDiff(this.state,st,Wt,Ot)}));this.pendingDiffs=[];en()}));this.channel._on(Ot.diff,{},(st=>{const{onJoin:Wt,onLeave:Ot,onSync:en}=this.caller;if(this.inPendingSyncState()){this.pendingDiffs.push(st)}else{this.state=RealtimePresence.syncDiff(this.state,st,Wt,Ot);en()}}));this.onJoin(((st,Wt,Ot)=>{this.channel._trigger("presence",{event:"join",key:st,currentPresences:Wt,newPresences:Ot})}));this.onLeave(((st,Wt,Ot)=>{this.channel._trigger("presence",{event:"leave",key:st,currentPresences:Wt,leftPresences:Ot})}));this.onSync((()=>{this.channel._trigger("presence",{event:"sync"})}))}static syncState(st,Wt,Ot,en){const tn=this.cloneDeep(st);const nn=this.transformState(Wt);const an={};const In={};this.map(tn,((st,Wt)=>{if(!nn[st]){In[st]=Wt}}));this.map(nn,((st,Wt)=>{const Ot=tn[st];if(Ot){const en=Wt.map((st=>st.presence_ref));const tn=Ot.map((st=>st.presence_ref));const nn=Wt.filter((st=>tn.indexOf(st.presence_ref)<0));const rn=Ot.filter((st=>en.indexOf(st.presence_ref)<0));if(nn.length>0){an[st]=nn}if(rn.length>0){In[st]=rn}}else{an[st]=Wt}}));return this.syncDiff(tn,{joins:an,leaves:In},Ot,en)}static syncDiff(st,Wt,Ot,en){const{joins:tn,leaves:nn}={joins:this.transformState(Wt.joins),leaves:this.transformState(Wt.leaves)};if(!Ot){Ot=()=>{}}if(!en){en=()=>{}}this.map(tn,((Wt,en)=>{var tn;const nn=(tn=st[Wt])!==null&&tn!==void 0?tn:[];st[Wt]=this.cloneDeep(en);if(nn.length>0){const Ot=st[Wt].map((st=>st.presence_ref));const en=nn.filter((st=>Ot.indexOf(st.presence_ref)<0));st[Wt].unshift(...en)}Ot(Wt,nn,en)}));this.map(nn,((Wt,Ot)=>{let tn=st[Wt];if(!tn)return;const nn=Ot.map((st=>st.presence_ref));tn=tn.filter((st=>nn.indexOf(st.presence_ref)<0));st[Wt]=tn;en(Wt,tn,Ot);if(tn.length===0)delete st[Wt]}));return st}static map(st,Wt){return Object.getOwnPropertyNames(st).map((Ot=>Wt(Ot,st[Ot])))}static transformState(st){st=this.cloneDeep(st);return Object.getOwnPropertyNames(st).reduce(((Wt,Ot)=>{const en=st[Ot];if("metas"in en){Wt[Ot]=en.metas.map((st=>{st["presence_ref"]=st["phx_ref"];delete st["phx_ref"];delete st["phx_ref_prev"];return st}))}else{Wt[Ot]=en}return Wt}),{})}static cloneDeep(st){return JSON.parse(JSON.stringify(st))}onJoin(st){this.caller.onJoin=st}onLeave(st){this.caller.onLeave=st}onSync(st){this.caller.onSync=st}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}Wt["default"]=RealtimePresence},36209:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__setModuleDefault||(Object.create?function(st,Wt){Object.defineProperty(st,"default",{enumerable:true,value:Wt})}:function(st,Wt){st["default"]=Wt});var nn=this&&this.__importStar||function(st){if(st&&st.__esModule)return st;var Wt={};if(st!=null)for(var Ot in st)if(Ot!=="default"&&Object.prototype.hasOwnProperty.call(st,Ot))en(Wt,st,Ot);tn(Wt,st);return Wt};var an=this&&this.__importDefault||function(st){return st&&st.__esModule?st:{default:st}};Object.defineProperty(Wt,"__esModule",{value:true});Wt.REALTIME_CHANNEL_STATES=Wt.REALTIME_SUBSCRIBE_STATES=Wt.REALTIME_PRESENCE_LISTEN_EVENTS=Wt.REALTIME_POSTGRES_CHANGES_LISTEN_EVENT=Wt.REALTIME_LISTEN_TYPES=Wt.RealtimeClient=Wt.RealtimeChannel=Wt.RealtimePresence=void 0;const In=an(Ot(73955));Wt.RealtimeClient=In.default;const rn=nn(Ot(38093));Wt.RealtimeChannel=rn.default;Object.defineProperty(Wt,"REALTIME_LISTEN_TYPES",{enumerable:true,get:function(){return rn.REALTIME_LISTEN_TYPES}});Object.defineProperty(Wt,"REALTIME_POSTGRES_CHANGES_LISTEN_EVENT",{enumerable:true,get:function(){return rn.REALTIME_POSTGRES_CHANGES_LISTEN_EVENT}});Object.defineProperty(Wt,"REALTIME_SUBSCRIBE_STATES",{enumerable:true,get:function(){return rn.REALTIME_SUBSCRIBE_STATES}});Object.defineProperty(Wt,"REALTIME_CHANNEL_STATES",{enumerable:true,get:function(){return rn.REALTIME_CHANNEL_STATES}});const cn=nn(Ot(98493));Wt.RealtimePresence=cn.default;Object.defineProperty(Wt,"REALTIME_PRESENCE_LISTEN_EVENTS",{enumerable:true,get:function(){return cn.REALTIME_PRESENCE_LISTEN_EVENTS}})},29680:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.CONNECTION_STATE=Wt.TRANSPORTS=Wt.CHANNEL_EVENTS=Wt.CHANNEL_STATES=Wt.SOCKET_STATES=Wt.WS_CLOSE_NORMAL=Wt.DEFAULT_TIMEOUT=Wt.VSN=Wt.DEFAULT_HEADERS=void 0;const en=Ot(38889);Wt.DEFAULT_HEADERS={"X-Client-Info":`realtime-js/${en.version}`};Wt.VSN="1.0.0";Wt.DEFAULT_TIMEOUT=1e4;Wt.WS_CLOSE_NORMAL=1e3;var tn;(function(st){st[st["connecting"]=0]="connecting";st[st["open"]=1]="open";st[st["closing"]=2]="closing";st[st["closed"]=3]="closed"})(tn=Wt.SOCKET_STATES||(Wt.SOCKET_STATES={}));var nn;(function(st){st["closed"]="closed";st["errored"]="errored";st["joined"]="joined";st["joining"]="joining";st["leaving"]="leaving"})(nn=Wt.CHANNEL_STATES||(Wt.CHANNEL_STATES={}));var an;(function(st){st["close"]="phx_close";st["error"]="phx_error";st["join"]="phx_join";st["reply"]="phx_reply";st["leave"]="phx_leave";st["access_token"]="access_token"})(an=Wt.CHANNEL_EVENTS||(Wt.CHANNEL_EVENTS={}));var In;(function(st){st["websocket"]="websocket"})(In=Wt.TRANSPORTS||(Wt.TRANSPORTS={}));var rn;(function(st){st["Connecting"]="connecting";st["Open"]="open";st["Closing"]="closing";st["Closed"]="closed"})(rn=Wt.CONNECTION_STATE||(Wt.CONNECTION_STATE={}))},49333:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});const en=Ot(29680);class Push{constructor(st,Wt,Ot={},tn=en.DEFAULT_TIMEOUT){this.channel=st;this.event=Wt;this.payload=Ot;this.timeout=tn;this.sent=false;this.timeoutTimer=undefined;this.ref="";this.receivedResp=null;this.recHooks=[];this.refEvent=null}resend(st){this.timeout=st;this._cancelRefEvent();this.ref="";this.refEvent=null;this.receivedResp=null;this.sent=false;this.send()}send(){if(this._hasReceived("timeout")){return}this.startTimeout();this.sent=true;this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()})}updatePayload(st){this.payload=Object.assign(Object.assign({},this.payload),st)}receive(st,Wt){var Ot;if(this._hasReceived(st)){Wt((Ot=this.receivedResp)===null||Ot===void 0?void 0:Ot.response)}this.recHooks.push({status:st,callback:Wt});return this}startTimeout(){if(this.timeoutTimer){return}this.ref=this.channel.socket._makeRef();this.refEvent=this.channel._replyEventName(this.ref);const callback=st=>{this._cancelRefEvent();this._cancelTimeout();this.receivedResp=st;this._matchReceive(st)};this.channel._on(this.refEvent,{},callback);this.timeoutTimer=setTimeout((()=>{this.trigger("timeout",{})}),this.timeout)}trigger(st,Wt){if(this.refEvent)this.channel._trigger(this.refEvent,{status:st,response:Wt})}destroy(){this._cancelRefEvent();this._cancelTimeout()}_cancelRefEvent(){if(!this.refEvent){return}this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer);this.timeoutTimer=undefined}_matchReceive({status:st,response:Wt}){this.recHooks.filter((Wt=>Wt.status===st)).forEach((st=>st.callback(Wt)))}_hasReceived(st){return this.receivedResp&&this.receivedResp.status===st}}Wt["default"]=Push},72049:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});class Serializer{constructor(){this.HEADER_LENGTH=1}decode(st,Wt){if(st.constructor===ArrayBuffer){return Wt(this._binaryDecode(st))}if(typeof st==="string"){return Wt(JSON.parse(st))}return Wt({})}_binaryDecode(st){const Wt=new DataView(st);const Ot=new TextDecoder;return this._decodeBroadcast(st,Wt,Ot)}_decodeBroadcast(st,Wt,Ot){const en=Wt.getUint8(1);const tn=Wt.getUint8(2);let nn=this.HEADER_LENGTH+2;const an=Ot.decode(st.slice(nn,nn+en));nn=nn+en;const In=Ot.decode(st.slice(nn,nn+tn));nn=nn+tn;const rn=JSON.parse(Ot.decode(st.slice(nn,st.byteLength)));return{ref:null,topic:an,event:In,payload:rn}}}Wt["default"]=Serializer},99920:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});class Timer{constructor(st,Wt){this.callback=st;this.timerCalc=Wt;this.timer=undefined;this.tries=0;this.callback=st;this.timerCalc=Wt}reset(){this.tries=0;clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer);this.timer=setTimeout((()=>{this.tries=this.tries+1;this.callback()}),this.timerCalc(this.tries+1))}}Wt["default"]=Timer},93429:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.toTimestampString=Wt.toArray=Wt.toJson=Wt.toNumber=Wt.toBoolean=Wt.convertCell=Wt.convertColumn=Wt.convertChangeData=Wt.PostgresTypes=void 0;var Ot;(function(st){st["abstime"]="abstime";st["bool"]="bool";st["date"]="date";st["daterange"]="daterange";st["float4"]="float4";st["float8"]="float8";st["int2"]="int2";st["int4"]="int4";st["int4range"]="int4range";st["int8"]="int8";st["int8range"]="int8range";st["json"]="json";st["jsonb"]="jsonb";st["money"]="money";st["numeric"]="numeric";st["oid"]="oid";st["reltime"]="reltime";st["text"]="text";st["time"]="time";st["timestamp"]="timestamp";st["timestamptz"]="timestamptz";st["timetz"]="timetz";st["tsrange"]="tsrange";st["tstzrange"]="tstzrange"})(Ot=Wt.PostgresTypes||(Wt.PostgresTypes={}));const convertChangeData=(st,Ot,en={})=>{var tn;const nn=(tn=en.skipTypes)!==null&&tn!==void 0?tn:[];return Object.keys(Ot).reduce(((en,tn)=>{en[tn]=(0,Wt.convertColumn)(tn,st,Ot,nn);return en}),{})};Wt.convertChangeData=convertChangeData;const convertColumn=(st,Ot,en,tn)=>{const nn=Ot.find((Wt=>Wt.name===st));const an=nn===null||nn===void 0?void 0:nn.type;const In=en[st];if(an&&!tn.includes(an)){return(0,Wt.convertCell)(an,In)}return noop(In)};Wt.convertColumn=convertColumn;const convertCell=(st,en)=>{if(st.charAt(0)==="_"){const Ot=st.slice(1,st.length);return(0,Wt.toArray)(en,Ot)}switch(st){case Ot.bool:return(0,Wt.toBoolean)(en);case Ot.float4:case Ot.float8:case Ot.int2:case Ot.int4:case Ot.int8:case Ot.numeric:case Ot.oid:return(0,Wt.toNumber)(en);case Ot.json:case Ot.jsonb:return(0,Wt.toJson)(en);case Ot.timestamp:return(0,Wt.toTimestampString)(en);case Ot.abstime:case Ot.date:case Ot.daterange:case Ot.int4range:case Ot.int8range:case Ot.money:case Ot.reltime:case Ot.text:case Ot.time:case Ot.timestamptz:case Ot.timetz:case Ot.tsrange:case Ot.tstzrange:return noop(en);default:return noop(en)}};Wt.convertCell=convertCell;const noop=st=>st;const toBoolean=st=>{switch(st){case"t":return true;case"f":return false;default:return st}};Wt.toBoolean=toBoolean;const toNumber=st=>{if(typeof st==="string"){const Wt=parseFloat(st);if(!Number.isNaN(Wt)){return Wt}}return st};Wt.toNumber=toNumber;const toJson=st=>{if(typeof st==="string"){try{return JSON.parse(st)}catch(Wt){console.log(`JSON parse error: ${Wt}`);return st}}return st};Wt.toJson=toJson;const toArray=(st,Ot)=>{if(typeof st!=="string"){return st}const en=st.length-1;const tn=st[en];const nn=st[0];if(nn==="{"&&tn==="}"){let tn;const nn=st.slice(1,en);try{tn=JSON.parse("["+nn+"]")}catch(st){tn=nn?nn.split(","):[]}return tn.map((st=>(0,Wt.convertCell)(Ot,st)))}return st};Wt.toArray=toArray;const toTimestampString=st=>{if(typeof st==="string"){return st.replace(" ","T")}return st};Wt.toTimestampString=toTimestampString},38889:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.version=void 0;Wt.version="2.9.3"},31373:function(st,Wt,Ot){"use strict";var en=this&&this.__importDefault||function(st){return st&&st.__esModule?st:{default:st}};Object.defineProperty(Wt,"__esModule",{value:true});Wt.StorageClient=void 0;const tn=en(Ot(15384));const nn=en(Ot(64788));class StorageClient extends nn.default{constructor(st,Wt={},Ot){super(st,Wt,Ot)}from(st){return new tn.default(this.url,this.headers,st,this.fetch)}}Wt.StorageClient=StorageClient},71595:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};Object.defineProperty(Wt,"__esModule",{value:true});Wt.StorageClient=void 0;var nn=Ot(31373);Object.defineProperty(Wt,"StorageClient",{enumerable:true,get:function(){return nn.StorageClient}});tn(Ot(58362),Wt);tn(Ot(9012),Wt)},28990:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.DEFAULT_HEADERS=void 0;const en=Ot(7827);Wt.DEFAULT_HEADERS={"X-Client-Info":`storage-js/${en.version}`}},9012:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.StorageUnknownError=Wt.StorageApiError=Wt.isStorageError=Wt.StorageError=void 0;class StorageError extends Error{constructor(st){super(st);this.__isStorageError=true;this.name="StorageError"}}Wt.StorageError=StorageError;function isStorageError(st){return typeof st==="object"&&st!==null&&"__isStorageError"in st}Wt.isStorageError=isStorageError;class StorageApiError extends StorageError{constructor(st,Wt){super(st);this.name="StorageApiError";this.status=Wt}toJSON(){return{name:this.name,message:this.message,status:this.status}}}Wt.StorageApiError=StorageApiError;class StorageUnknownError extends StorageError{constructor(st,Wt){super(st);this.name="StorageUnknownError";this.originalError=Wt}}Wt.StorageUnknownError=StorageUnknownError},43183:function(st,Wt,Ot){"use strict";var en=this&&this.__awaiter||function(st,Wt,Ot,en){function adopt(st){return st instanceof Ot?st:new Ot((function(Wt){Wt(st)}))}return new(Ot||(Ot=Promise))((function(Ot,tn){function fulfilled(st){try{step(en.next(st))}catch(st){tn(st)}}function rejected(st){try{step(en["throw"](st))}catch(st){tn(st)}}function step(st){st.done?Ot(st.value):adopt(st.value).then(fulfilled,rejected)}step((en=en.apply(st,Wt||[])).next())}))};Object.defineProperty(Wt,"__esModule",{value:true});Wt.remove=Wt.put=Wt.post=Wt.get=void 0;const tn=Ot(9012);const nn=Ot(58954);const _getErrorMessage=st=>st.msg||st.message||st.error_description||st.error||JSON.stringify(st);const handleError=(st,Wt)=>en(void 0,void 0,void 0,(function*(){const Ot=yield(0,nn.resolveResponse)();if(st instanceof Ot){st.json().then((Ot=>{Wt(new tn.StorageApiError(_getErrorMessage(Ot),st.status||500))})).catch((st=>{Wt(new tn.StorageUnknownError(_getErrorMessage(st),st))}))}else{Wt(new tn.StorageUnknownError(_getErrorMessage(st),st))}}));const _getRequestParams=(st,Wt,Ot,en)=>{const tn={method:st,headers:(Wt===null||Wt===void 0?void 0:Wt.headers)||{}};if(st==="GET"){return tn}tn.headers=Object.assign({"Content-Type":"application/json"},Wt===null||Wt===void 0?void 0:Wt.headers);tn.body=JSON.stringify(en);return Object.assign(Object.assign({},tn),Ot)};function _handleRequest(st,Wt,Ot,tn,nn,an){return en(this,void 0,void 0,(function*(){return new Promise(((en,In)=>{st(Ot,_getRequestParams(Wt,tn,nn,an)).then((st=>{if(!st.ok)throw st;if(tn===null||tn===void 0?void 0:tn.noResolveJson)return st;return st.json()})).then((st=>en(st))).catch((st=>handleError(st,In)))}))}))}function get(st,Wt,Ot,tn){return en(this,void 0,void 0,(function*(){return _handleRequest(st,"GET",Wt,Ot,tn)}))}Wt.get=get;function post(st,Wt,Ot,tn,nn){return en(this,void 0,void 0,(function*(){return _handleRequest(st,"POST",Wt,tn,nn,Ot)}))}Wt.post=post;function put(st,Wt,Ot,tn,nn){return en(this,void 0,void 0,(function*(){return _handleRequest(st,"PUT",Wt,tn,nn,Ot)}))}Wt.put=put;function remove(st,Wt,Ot,tn,nn){return en(this,void 0,void 0,(function*(){return _handleRequest(st,"DELETE",Wt,tn,nn,Ot)}))}Wt.remove=remove},58954:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__setModuleDefault||(Object.create?function(st,Wt){Object.defineProperty(st,"default",{enumerable:true,value:Wt})}:function(st,Wt){st["default"]=Wt});var nn=this&&this.__importStar||function(st){if(st&&st.__esModule)return st;var Wt={};if(st!=null)for(var Ot in st)if(Ot!=="default"&&Object.prototype.hasOwnProperty.call(st,Ot))en(Wt,st,Ot);tn(Wt,st);return Wt};var an=this&&this.__awaiter||function(st,Wt,Ot,en){function adopt(st){return st instanceof Ot?st:new Ot((function(Wt){Wt(st)}))}return new(Ot||(Ot=Promise))((function(Ot,tn){function fulfilled(st){try{step(en.next(st))}catch(st){tn(st)}}function rejected(st){try{step(en["throw"](st))}catch(st){tn(st)}}function step(st){st.done?Ot(st.value):adopt(st.value).then(fulfilled,rejected)}step((en=en.apply(st,Wt||[])).next())}))};Object.defineProperty(Wt,"__esModule",{value:true});Wt.resolveResponse=Wt.resolveFetch=void 0;const resolveFetch=st=>{let Wt;if(st){Wt=st}else if(typeof fetch==="undefined"){Wt=(...st)=>Promise.resolve().then((()=>nn(Ot(83318)))).then((({default:Wt})=>Wt(...st)))}else{Wt=fetch}return(...st)=>Wt(...st)};Wt.resolveFetch=resolveFetch;const resolveResponse=()=>an(void 0,void 0,void 0,(function*(){if(typeof Response==="undefined"){return(yield Promise.resolve().then((()=>nn(Ot(83318))))).Response}return Response}));Wt.resolveResponse=resolveResponse},58362:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true})},7827:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.version=void 0;Wt.version="2.5.5"},64788:function(st,Wt,Ot){"use strict";var en=this&&this.__awaiter||function(st,Wt,Ot,en){function adopt(st){return st instanceof Ot?st:new Ot((function(Wt){Wt(st)}))}return new(Ot||(Ot=Promise))((function(Ot,tn){function fulfilled(st){try{step(en.next(st))}catch(st){tn(st)}}function rejected(st){try{step(en["throw"](st))}catch(st){tn(st)}}function step(st){st.done?Ot(st.value):adopt(st.value).then(fulfilled,rejected)}step((en=en.apply(st,Wt||[])).next())}))};Object.defineProperty(Wt,"__esModule",{value:true});const tn=Ot(28990);const nn=Ot(9012);const an=Ot(43183);const In=Ot(58954);class StorageBucketApi{constructor(st,Wt={},Ot){this.url=st;this.headers=Object.assign(Object.assign({},tn.DEFAULT_HEADERS),Wt);this.fetch=(0,In.resolveFetch)(Ot)}listBuckets(){return en(this,void 0,void 0,(function*(){try{const st=yield(0,an.get)(this.fetch,`${this.url}/bucket`,{headers:this.headers});return{data:st,error:null}}catch(st){if((0,nn.isStorageError)(st)){return{data:null,error:st}}throw st}}))}getBucket(st){return en(this,void 0,void 0,(function*(){try{const Wt=yield(0,an.get)(this.fetch,`${this.url}/bucket/${st}`,{headers:this.headers});return{data:Wt,error:null}}catch(st){if((0,nn.isStorageError)(st)){return{data:null,error:st}}throw st}}))}createBucket(st,Wt={public:false}){return en(this,void 0,void 0,(function*(){try{const Ot=yield(0,an.post)(this.fetch,`${this.url}/bucket`,{id:st,name:st,public:Wt.public,file_size_limit:Wt.fileSizeLimit,allowed_mime_types:Wt.allowedMimeTypes},{headers:this.headers});return{data:Ot,error:null}}catch(st){if((0,nn.isStorageError)(st)){return{data:null,error:st}}throw st}}))}updateBucket(st,Wt){return en(this,void 0,void 0,(function*(){try{const Ot=yield(0,an.put)(this.fetch,`${this.url}/bucket/${st}`,{id:st,name:st,public:Wt.public,file_size_limit:Wt.fileSizeLimit,allowed_mime_types:Wt.allowedMimeTypes},{headers:this.headers});return{data:Ot,error:null}}catch(st){if((0,nn.isStorageError)(st)){return{data:null,error:st}}throw st}}))}emptyBucket(st){return en(this,void 0,void 0,(function*(){try{const Wt=yield(0,an.post)(this.fetch,`${this.url}/bucket/${st}/empty`,{},{headers:this.headers});return{data:Wt,error:null}}catch(st){if((0,nn.isStorageError)(st)){return{data:null,error:st}}throw st}}))}deleteBucket(st){return en(this,void 0,void 0,(function*(){try{const Wt=yield(0,an.remove)(this.fetch,`${this.url}/bucket/${st}`,{},{headers:this.headers});return{data:Wt,error:null}}catch(st){if((0,nn.isStorageError)(st)){return{data:null,error:st}}throw st}}))}}Wt["default"]=StorageBucketApi},15384:function(st,Wt,Ot){"use strict";var en=this&&this.__awaiter||function(st,Wt,Ot,en){function adopt(st){return st instanceof Ot?st:new Ot((function(Wt){Wt(st)}))}return new(Ot||(Ot=Promise))((function(Ot,tn){function fulfilled(st){try{step(en.next(st))}catch(st){tn(st)}}function rejected(st){try{step(en["throw"](st))}catch(st){tn(st)}}function step(st){st.done?Ot(st.value):adopt(st.value).then(fulfilled,rejected)}step((en=en.apply(st,Wt||[])).next())}))};Object.defineProperty(Wt,"__esModule",{value:true});const tn=Ot(9012);const nn=Ot(43183);const an=Ot(58954);const In={limit:100,offset:0,sortBy:{column:"name",order:"asc"}};const rn={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:false};class StorageFileApi{constructor(st,Wt={},Ot,en){this.url=st;this.headers=Wt;this.bucketId=Ot;this.fetch=(0,an.resolveFetch)(en)}uploadOrUpdate(st,Wt,Ot,nn){return en(this,void 0,void 0,(function*(){try{let en;const tn=Object.assign(Object.assign({},rn),nn);const an=Object.assign(Object.assign({},this.headers),st==="POST"&&{"x-upsert":String(tn.upsert)});if(typeof Blob!=="undefined"&&Ot instanceof Blob){en=new FormData;en.append("cacheControl",tn.cacheControl);en.append("",Ot)}else if(typeof FormData!=="undefined"&&Ot instanceof FormData){en=Ot;en.append("cacheControl",tn.cacheControl)}else{en=Ot;an["cache-control"]=`max-age=${tn.cacheControl}`;an["content-type"]=tn.contentType}const In=this._removeEmptyFolders(Wt);const cn=this._getFinalPath(In);const on=yield this.fetch(`${this.url}/object/${cn}`,Object.assign({method:st,body:en,headers:an},(tn===null||tn===void 0?void 0:tn.duplex)?{duplex:tn.duplex}:{}));const sn=yield on.json();if(on.ok){return{data:{path:In,id:sn.Id,fullPath:sn.Key},error:null}}else{const st=sn;return{data:null,error:st}}}catch(st){if((0,tn.isStorageError)(st)){return{data:null,error:st}}throw st}}))}upload(st,Wt,Ot){return en(this,void 0,void 0,(function*(){return this.uploadOrUpdate("POST",st,Wt,Ot)}))}uploadToSignedUrl(st,Wt,Ot,nn){return en(this,void 0,void 0,(function*(){const en=this._removeEmptyFolders(st);const an=this._getFinalPath(en);const In=new URL(this.url+`/object/upload/sign/${an}`);In.searchParams.set("token",Wt);try{let st;const Wt=Object.assign({upsert:rn.upsert},nn);const tn=Object.assign(Object.assign({},this.headers),{"x-upsert":String(Wt.upsert)});if(typeof Blob!=="undefined"&&Ot instanceof Blob){st=new FormData;st.append("cacheControl",Wt.cacheControl);st.append("",Ot)}else if(typeof FormData!=="undefined"&&Ot instanceof FormData){st=Ot;st.append("cacheControl",Wt.cacheControl)}else{st=Ot;tn["cache-control"]=`max-age=${Wt.cacheControl}`;tn["content-type"]=Wt.contentType}const an=yield this.fetch(In.toString(),{method:"PUT",body:st,headers:tn});const cn=yield an.json();if(an.ok){return{data:{path:en,fullPath:cn.Key},error:null}}else{const st=cn;return{data:null,error:st}}}catch(st){if((0,tn.isStorageError)(st)){return{data:null,error:st}}throw st}}))}createSignedUploadUrl(st){return en(this,void 0,void 0,(function*(){try{let Wt=this._getFinalPath(st);const Ot=yield(0,nn.post)(this.fetch,`${this.url}/object/upload/sign/${Wt}`,{},{headers:this.headers});const en=new URL(this.url+Ot.url);const an=en.searchParams.get("token");if(!an){throw new tn.StorageError("No token returned by API")}return{data:{signedUrl:en.toString(),path:st,token:an},error:null}}catch(st){if((0,tn.isStorageError)(st)){return{data:null,error:st}}throw st}}))}update(st,Wt,Ot){return en(this,void 0,void 0,(function*(){return this.uploadOrUpdate("PUT",st,Wt,Ot)}))}move(st,Wt){return en(this,void 0,void 0,(function*(){try{const Ot=yield(0,nn.post)(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:st,destinationKey:Wt},{headers:this.headers});return{data:Ot,error:null}}catch(st){if((0,tn.isStorageError)(st)){return{data:null,error:st}}throw st}}))}copy(st,Wt){return en(this,void 0,void 0,(function*(){try{const Ot=yield(0,nn.post)(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:st,destinationKey:Wt},{headers:this.headers});return{data:{path:Ot.Key},error:null}}catch(st){if((0,tn.isStorageError)(st)){return{data:null,error:st}}throw st}}))}createSignedUrl(st,Wt,Ot){return en(this,void 0,void 0,(function*(){try{let en=this._getFinalPath(st);let tn=yield(0,nn.post)(this.fetch,`${this.url}/object/sign/${en}`,Object.assign({expiresIn:Wt},(Ot===null||Ot===void 0?void 0:Ot.transform)?{transform:Ot.transform}:{}),{headers:this.headers});const an=(Ot===null||Ot===void 0?void 0:Ot.download)?`&download=${Ot.download===true?"":Ot.download}`:"";const In=encodeURI(`${this.url}${tn.signedURL}${an}`);tn={signedUrl:In};return{data:tn,error:null}}catch(st){if((0,tn.isStorageError)(st)){return{data:null,error:st}}throw st}}))}createSignedUrls(st,Wt,Ot){return en(this,void 0,void 0,(function*(){try{const en=yield(0,nn.post)(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:Wt,paths:st},{headers:this.headers});const tn=(Ot===null||Ot===void 0?void 0:Ot.download)?`&download=${Ot.download===true?"":Ot.download}`:"";return{data:en.map((st=>Object.assign(Object.assign({},st),{signedUrl:st.signedURL?encodeURI(`${this.url}${st.signedURL}${tn}`):null}))),error:null}}catch(st){if((0,tn.isStorageError)(st)){return{data:null,error:st}}throw st}}))}download(st,Wt){return en(this,void 0,void 0,(function*(){const Ot=typeof(Wt===null||Wt===void 0?void 0:Wt.transform)!=="undefined";const en=Ot?"render/image/authenticated":"object";const an=this.transformOptsToQueryString((Wt===null||Wt===void 0?void 0:Wt.transform)||{});const In=an?`?${an}`:"";try{const Wt=this._getFinalPath(st);const Ot=yield(0,nn.get)(this.fetch,`${this.url}/${en}/${Wt}${In}`,{headers:this.headers,noResolveJson:true});const tn=yield Ot.blob();return{data:tn,error:null}}catch(st){if((0,tn.isStorageError)(st)){return{data:null,error:st}}throw st}}))}getPublicUrl(st,Wt){const Ot=this._getFinalPath(st);const en=[];const tn=(Wt===null||Wt===void 0?void 0:Wt.download)?`download=${Wt.download===true?"":Wt.download}`:"";if(tn!==""){en.push(tn)}const nn=typeof(Wt===null||Wt===void 0?void 0:Wt.transform)!=="undefined";const an=nn?"render/image":"object";const In=this.transformOptsToQueryString((Wt===null||Wt===void 0?void 0:Wt.transform)||{});if(In!==""){en.push(In)}let rn=en.join("&");if(rn!==""){rn=`?${rn}`}return{data:{publicUrl:encodeURI(`${this.url}/${an}/public/${Ot}${rn}`)}}}remove(st){return en(this,void 0,void 0,(function*(){try{const Wt=yield(0,nn.remove)(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:st},{headers:this.headers});return{data:Wt,error:null}}catch(st){if((0,tn.isStorageError)(st)){return{data:null,error:st}}throw st}}))}list(st,Wt,Ot){return en(this,void 0,void 0,(function*(){try{const en=Object.assign(Object.assign(Object.assign({},In),Wt),{prefix:st||""});const tn=yield(0,nn.post)(this.fetch,`${this.url}/object/list/${this.bucketId}`,en,{headers:this.headers},Ot);return{data:tn,error:null}}catch(st){if((0,tn.isStorageError)(st)){return{data:null,error:st}}throw st}}))}_getFinalPath(st){return`${this.bucketId}/${st}`}_removeEmptyFolders(st){return st.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(st){const Wt=[];if(st.width){Wt.push(`width=${st.width}`)}if(st.height){Wt.push(`height=${st.height}`)}if(st.resize){Wt.push(`resize=${st.resize}`)}if(st.format){Wt.push(`format=${st.format}`)}if(st.quality){Wt.push(`quality=${st.quality}`)}return Wt.join("&")}}Wt["default"]=StorageFileApi},61619:function(st,Wt,Ot){"use strict";var en=this&&this.__awaiter||function(st,Wt,Ot,en){function adopt(st){return st instanceof Ot?st:new Ot((function(Wt){Wt(st)}))}return new(Ot||(Ot=Promise))((function(Ot,tn){function fulfilled(st){try{step(en.next(st))}catch(st){tn(st)}}function rejected(st){try{step(en["throw"](st))}catch(st){tn(st)}}function step(st){st.done?Ot(st.value):adopt(st.value).then(fulfilled,rejected)}step((en=en.apply(st,Wt||[])).next())}))};Object.defineProperty(Wt,"__esModule",{value:true});const tn=Ot(70459);const nn=Ot(60927);const an=Ot(36209);const In=Ot(71595);const rn=Ot(23597);const cn=Ot(73248);const on=Ot(87301);const sn=Ot(15253);class SupabaseClient{constructor(st,Wt,Ot){var en,tn,an,In,sn,dn,un,pn;this.supabaseUrl=st;this.supabaseKey=Wt;if(!st)throw new Error("supabaseUrl is required.");if(!Wt)throw new Error("supabaseKey is required.");const bn=(0,on.stripTrailingSlash)(st);this.realtimeUrl=`${bn}/realtime/v1`.replace(/^http/i,"ws");this.authUrl=`${bn}/auth/v1`;this.storageUrl=`${bn}/storage/v1`;this.functionsUrl=`${bn}/functions/v1`;const mn=`sb-${new URL(this.authUrl).hostname.split(".")[0]}-auth-token`;const Gn={db:rn.DEFAULT_DB_OPTIONS,realtime:rn.DEFAULT_REALTIME_OPTIONS,auth:Object.assign(Object.assign({},rn.DEFAULT_AUTH_OPTIONS),{storageKey:mn}),global:rn.DEFAULT_GLOBAL_OPTIONS};const hn=(0,on.applySettingDefaults)(Ot!==null&&Ot!==void 0?Ot:{},Gn);this.storageKey=(tn=(en=hn.auth)===null||en===void 0?void 0:en.storageKey)!==null&&tn!==void 0?tn:"";this.headers=(In=(an=hn.global)===null||an===void 0?void 0:an.headers)!==null&&In!==void 0?In:{};this.auth=this._initSupabaseAuthClient((sn=hn.auth)!==null&&sn!==void 0?sn:{},this.headers,(dn=hn.global)===null||dn===void 0?void 0:dn.fetch);this.fetch=(0,cn.fetchWithAuth)(Wt,this._getAccessToken.bind(this),(un=hn.global)===null||un===void 0?void 0:un.fetch);this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers},hn.realtime));this.rest=new nn.PostgrestClient(`${bn}/rest/v1`,{headers:this.headers,schema:(pn=hn.db)===null||pn===void 0?void 0:pn.schema,fetch:this.fetch});this._listenForAuthEvents()}get functions(){return new tn.FunctionsClient(this.functionsUrl,{headers:this.headers,customFetch:this.fetch})}get storage(){return new In.StorageClient(this.storageUrl,this.headers,this.fetch)}from(st){return this.rest.from(st)}schema(st){return this.rest.schema(st)}rpc(st,Wt={},Ot={}){return this.rest.rpc(st,Wt,Ot)}channel(st,Wt={config:{}}){return this.realtime.channel(st,Wt)}getChannels(){return this.realtime.getChannels()}removeChannel(st){return this.realtime.removeChannel(st)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var st,Wt;return en(this,void 0,void 0,(function*(){const{data:Ot}=yield this.auth.getSession();return(Wt=(st=Ot.session)===null||st===void 0?void 0:st.access_token)!==null&&Wt!==void 0?Wt:null}))}_initSupabaseAuthClient({autoRefreshToken:st,persistSession:Wt,detectSessionInUrl:Ot,storage:en,storageKey:tn,flowType:nn,debug:an},In,rn){const cn={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new sn.SupabaseAuthClient({url:this.authUrl,headers:Object.assign(Object.assign({},cn),In),storageKey:tn,autoRefreshToken:st,persistSession:Wt,detectSessionInUrl:Ot,storage:en,flowType:nn,debug:an,fetch:rn})}_initRealtimeClient(st){return new an.RealtimeClient(this.realtimeUrl,Object.assign(Object.assign({},st),{params:Object.assign({apikey:this.supabaseKey},st===null||st===void 0?void 0:st.params)}))}_listenForAuthEvents(){let st=this.auth.onAuthStateChange(((st,Wt)=>{this._handleTokenChanged(st,"CLIENT",Wt===null||Wt===void 0?void 0:Wt.access_token)}));return st}_handleTokenChanged(st,Wt,Ot){if((st==="TOKEN_REFRESHED"||st==="SIGNED_IN")&&this.changedAccessToken!==Ot){this.realtime.setAuth(Ot!==null&&Ot!==void 0?Ot:null);this.changedAccessToken=Ot}else if(st==="SIGNED_OUT"){this.realtime.setAuth(this.supabaseKey);if(Wt=="STORAGE")this.auth.signOut();this.changedAccessToken=undefined}}}Wt["default"]=SupabaseClient},85036:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__exportStar||function(st,Wt){for(var Ot in st)if(Ot!=="default"&&!Object.prototype.hasOwnProperty.call(Wt,Ot))en(Wt,st,Ot)};var nn=this&&this.__importDefault||function(st){return st&&st.__esModule?st:{default:st}};Object.defineProperty(Wt,"__esModule",{value:true});Wt.createClient=Wt.SupabaseClient=Wt.FunctionRegion=Wt.FunctionsError=Wt.FunctionsRelayError=Wt.FunctionsFetchError=Wt.FunctionsHttpError=void 0;const an=nn(Ot(61619));tn(Ot(31904),Wt);var In=Ot(70459);Object.defineProperty(Wt,"FunctionsHttpError",{enumerable:true,get:function(){return In.FunctionsHttpError}});Object.defineProperty(Wt,"FunctionsFetchError",{enumerable:true,get:function(){return In.FunctionsFetchError}});Object.defineProperty(Wt,"FunctionsRelayError",{enumerable:true,get:function(){return In.FunctionsRelayError}});Object.defineProperty(Wt,"FunctionsError",{enumerable:true,get:function(){return In.FunctionsError}});Object.defineProperty(Wt,"FunctionRegion",{enumerable:true,get:function(){return In.FunctionRegion}});tn(Ot(36209),Wt);var rn=Ot(61619);Object.defineProperty(Wt,"SupabaseClient",{enumerable:true,get:function(){return nn(rn).default}});const createClient=(st,Wt,Ot)=>new an.default(st,Wt,Ot);Wt.createClient=createClient},15253:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.SupabaseAuthClient=void 0;const en=Ot(31904);class SupabaseAuthClient extends en.AuthClient{constructor(st){super(st)}}Wt.SupabaseAuthClient=SupabaseAuthClient},23597:(st,Wt,Ot)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.DEFAULT_REALTIME_OPTIONS=Wt.DEFAULT_AUTH_OPTIONS=Wt.DEFAULT_DB_OPTIONS=Wt.DEFAULT_GLOBAL_OPTIONS=Wt.DEFAULT_HEADERS=void 0;const en=Ot(50116);let tn="";if(typeof Deno!=="undefined"){tn="deno"}else if(typeof document!=="undefined"){tn="web"}else if(typeof navigator!=="undefined"&&navigator.product==="ReactNative"){tn="react-native"}else{tn="node"}Wt.DEFAULT_HEADERS={"X-Client-Info":`supabase-js-${tn}/${en.version}`};Wt.DEFAULT_GLOBAL_OPTIONS={headers:Wt.DEFAULT_HEADERS};Wt.DEFAULT_DB_OPTIONS={schema:"public"};Wt.DEFAULT_AUTH_OPTIONS={autoRefreshToken:true,persistSession:true,detectSessionInUrl:true,flowType:"implicit"};Wt.DEFAULT_REALTIME_OPTIONS={}},73248:function(st,Wt,Ot){"use strict";var en=this&&this.__createBinding||(Object.create?function(st,Wt,Ot,en){if(en===undefined)en=Ot;var tn=Object.getOwnPropertyDescriptor(Wt,Ot);if(!tn||("get"in tn?!Wt.__esModule:tn.writable||tn.configurable)){tn={enumerable:true,get:function(){return Wt[Ot]}}}Object.defineProperty(st,en,tn)}:function(st,Wt,Ot,en){if(en===undefined)en=Ot;st[en]=Wt[Ot]});var tn=this&&this.__setModuleDefault||(Object.create?function(st,Wt){Object.defineProperty(st,"default",{enumerable:true,value:Wt})}:function(st,Wt){st["default"]=Wt});var nn=this&&this.__importStar||function(st){if(st&&st.__esModule)return st;var Wt={};if(st!=null)for(var Ot in st)if(Ot!=="default"&&Object.prototype.hasOwnProperty.call(st,Ot))en(Wt,st,Ot);tn(Wt,st);return Wt};var an=this&&this.__awaiter||function(st,Wt,Ot,en){function adopt(st){return st instanceof Ot?st:new Ot((function(Wt){Wt(st)}))}return new(Ot||(Ot=Promise))((function(Ot,tn){function fulfilled(st){try{step(en.next(st))}catch(st){tn(st)}}function rejected(st){try{step(en["throw"](st))}catch(st){tn(st)}}function step(st){st.done?Ot(st.value):adopt(st.value).then(fulfilled,rejected)}step((en=en.apply(st,Wt||[])).next())}))};Object.defineProperty(Wt,"__esModule",{value:true});Wt.fetchWithAuth=Wt.resolveHeadersConstructor=Wt.resolveFetch=void 0;const In=nn(Ot(83318));const resolveFetch=st=>{let Wt;if(st){Wt=st}else if(typeof fetch==="undefined"){Wt=In.default}else{Wt=fetch}return(...st)=>Wt(...st)};Wt.resolveFetch=resolveFetch;const resolveHeadersConstructor=()=>{if(typeof Headers==="undefined"){return In.Headers}return Headers};Wt.resolveHeadersConstructor=resolveHeadersConstructor;const fetchWithAuth=(st,Ot,en)=>{const tn=(0,Wt.resolveFetch)(en);const nn=(0,Wt.resolveHeadersConstructor)();return(Wt,en)=>an(void 0,void 0,void 0,(function*(){var an;const In=(an=yield Ot())!==null&&an!==void 0?an:st;let rn=new nn(en===null||en===void 0?void 0:en.headers);if(!rn.has("apikey")){rn.set("apikey",st)}if(!rn.has("Authorization")){rn.set("Authorization",`Bearer ${In}`)}return tn(Wt,Object.assign(Object.assign({},en),{headers:rn}))}))};Wt.fetchWithAuth=fetchWithAuth},87301:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.applySettingDefaults=Wt.isBrowser=Wt.stripTrailingSlash=Wt.uuid=void 0;function uuid(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(st){var Wt=Math.random()*16|0,Ot=st=="x"?Wt:Wt&3|8;return Ot.toString(16)}))}Wt.uuid=uuid;function stripTrailingSlash(st){return st.replace(/\/$/,"")}Wt.stripTrailingSlash=stripTrailingSlash;const isBrowser=()=>typeof window!=="undefined";Wt.isBrowser=isBrowser;function applySettingDefaults(st,Wt){const{db:Ot,auth:en,realtime:tn,global:nn}=st;const{db:an,auth:In,realtime:rn,global:cn}=Wt;return{db:Object.assign(Object.assign({},an),Ot),auth:Object.assign(Object.assign({},In),en),realtime:Object.assign(Object.assign({},rn),tn),global:Object.assign(Object.assign({},cn),nn)}}Wt.applySettingDefaults=applySettingDefaults},50116:(st,Wt)=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.version=void 0;Wt.version="2.42.0"},64360:(st,Wt,Ot)=>{"use strict";var en=Object.create;var tn=Object.defineProperty;var nn=Object.getOwnPropertyDescriptor;var an=Object.getOwnPropertyNames;var In=Object.getPrototypeOf;var rn=Object.prototype.hasOwnProperty;var __commonJS=(st,Wt)=>function __require(){return Wt||(0,st[an(st)[0]])((Wt={exports:{}}).exports,Wt),Wt.exports};var __export=(st,Wt)=>{for(var Ot in Wt)tn(st,Ot,{get:Wt[Ot],enumerable:true})};var __copyProps=(st,Wt,Ot,en)=>{if(Wt&&typeof Wt==="object"||typeof Wt==="function"){for(let In of an(Wt))if(!rn.call(st,In)&&In!==Ot)tn(st,In,{get:()=>Wt[In],enumerable:!(en=nn(Wt,In))||en.enumerable})}return st};var __toESM=(st,Wt,Ot)=>(Ot=st!=null?en(In(st)):{},__copyProps(Wt||!st||!st.__esModule?tn(Ot,"default",{value:st,enumerable:true}):Ot,st));var __toCommonJS=st=>__copyProps(tn({},"__esModule",{value:true}),st);var cn=__commonJS({"node_modules/bn.js/lib/bn.js"(st,Wt){"use strict";(function(st,Wt){"use strict";function assert(st,Wt){if(!st)throw new Error(Wt||"Assertion failed")}function inherits2(st,Wt){st.super_=Wt;var TempCtor=function(){};TempCtor.prototype=Wt.prototype;st.prototype=new TempCtor;st.prototype.constructor=st}function BN(st,Wt,Ot){if(BN.isBN(st)){return st}this.negative=0;this.words=null;this.length=0;this.red=null;if(st!==null){if(Wt==="le"||Wt==="be"){Ot=Wt;Wt=10}this._init(st||0,Wt||10,Ot||"be")}}if(typeof st==="object"){st.exports=BN}else{Wt.BN=BN}BN.BN=BN;BN.wordSize=26;var en;try{if(typeof window!=="undefined"&&typeof window.Buffer!=="undefined"){en=window.Buffer}else{en=Ot(20181).Buffer}}catch(st){}BN.isBN=function isBN(st){if(st instanceof BN){return true}return st!==null&&typeof st==="object"&&st.constructor.wordSize===BN.wordSize&&Array.isArray(st.words)};BN.max=function max(st,Wt){if(st.cmp(Wt)>0)return st;return Wt};BN.min=function min(st,Wt){if(st.cmp(Wt)<0)return st;return Wt};BN.prototype._init=function init(st,Wt,Ot){if(typeof st==="number"){return this._initNumber(st,Wt,Ot)}if(typeof st==="object"){return this._initArray(st,Wt,Ot)}if(Wt==="hex"){Wt=16}assert(Wt===(Wt|0)&&Wt>=2&&Wt<=36);st=st.toString().replace(/\s+/g,"");var en=0;if(st[0]==="-"){en++;this.negative=1}if(en=0;en-=3){nn=st[en]|st[en-1]<<8|st[en-2]<<16;this.words[tn]|=nn<>>26-an&67108863;an+=24;if(an>=26){an-=26;tn++}}}else if(Ot==="le"){for(en=0,tn=0;en>>26-an&67108863;an+=24;if(an>=26){an-=26;tn++}}}return this._strip()};function parseHex4Bits(st,Wt){var Ot=st.charCodeAt(Wt);if(Ot>=48&&Ot<=57){return Ot-48}else if(Ot>=65&&Ot<=70){return Ot-55}else if(Ot>=97&&Ot<=102){return Ot-87}else{assert(false,"Invalid character in "+st)}}function parseHexByte(st,Wt,Ot){var en=parseHex4Bits(st,Ot);if(Ot-1>=Wt){en|=parseHex4Bits(st,Ot-1)<<4}return en}BN.prototype._parseHex=function _parseHex(st,Wt,Ot){this.length=Math.ceil((st.length-Wt)/6);this.words=new Array(this.length);for(var en=0;en=Wt;en-=2){an=parseHexByte(st,Wt,en)<=18){tn-=18;nn+=1;this.words[nn]|=an>>>26}else{tn+=8}}}else{var In=st.length-Wt;for(en=In%2===0?Wt+1:Wt;en=18){tn-=18;nn+=1;this.words[nn]|=an>>>26}else{tn+=8}}}this._strip()};function parseBase(st,Wt,Ot,en){var tn=0;var nn=0;var an=Math.min(st.length,Ot);for(var In=Wt;In=49){nn=rn-49+10}else if(rn>=17){nn=rn-17+10}else{nn=rn}assert(rn>=0&&nn1&&this.words[this.length-1]===0){this.length--}return this._normSign()};BN.prototype._normSign=function _normSign(){if(this.length===1&&this.words[0]===0){this.negative=0}return this};if(typeof Symbol!=="undefined"&&typeof Symbol.for==="function"){try{BN.prototype[Symbol.for("nodejs.util.inspect.custom")]=inspect}catch(st){BN.prototype.inspect=inspect}}else{BN.prototype.inspect=inspect}function inspect(){return(this.red?""}var tn=["","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"];var nn=[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];var an=[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];BN.prototype.toString=function toString3(st,Wt){st=st||10;Wt=Wt|0||1;var Ot;if(st===16||st==="hex"){Ot="";var en=0;var In=0;for(var rn=0;rn>>24-en&16777215;en+=2;if(en>=26){en-=26;rn--}if(In!==0||rn!==this.length-1){Ot=tn[6-on.length]+on+Ot}else{Ot=on+Ot}}if(In!==0){Ot=In.toString(16)+Ot}while(Ot.length%Wt!==0){Ot="0"+Ot}if(this.negative!==0){Ot="-"+Ot}return Ot}if(st===(st|0)&&st>=2&&st<=36){var sn=nn[st];var dn=an[st];Ot="";var un=this.clone();un.negative=0;while(!un.isZero()){var pn=un.modrn(dn).toString(st);un=un.idivn(dn);if(!un.isZero()){Ot=tn[sn-pn.length]+pn+Ot}else{Ot=pn+Ot}}if(this.isZero()){Ot="0"+Ot}while(Ot.length%Wt!==0){Ot="0"+Ot}if(this.negative!==0){Ot="-"+Ot}return Ot}assert(false,"Base should be between 2 and 36")};BN.prototype.toNumber=function toNumber(){var st=this.words[0];if(this.length===2){st+=this.words[1]*67108864}else if(this.length===3&&this.words[2]===1){st+=4503599627370496+this.words[1]*67108864}else if(this.length>2){assert(false,"Number can only safely store up to 53 bits")}return this.negative!==0?-st:st};BN.prototype.toJSON=function toJSON2(){return this.toString(16,2)};if(en){BN.prototype.toBuffer=function toBuffer(st,Wt){return this.toArrayLike(en,st,Wt)}}BN.prototype.toArray=function toArray2(st,Wt){return this.toArrayLike(Array,st,Wt)};var In=function allocate2(st,Wt){if(st.allocUnsafe){return st.allocUnsafe(Wt)}return new st(Wt)};BN.prototype.toArrayLike=function toArrayLike(st,Wt,Ot){this._strip();var en=this.byteLength();var tn=Ot||Math.max(1,en);assert(en<=tn,"byte array longer than desired length");assert(tn>0,"Requested array length <= 0");var nn=In(st,tn);var an=Wt==="le"?"LE":"BE";this["_toArrayLike"+an](nn,en);return nn};BN.prototype._toArrayLikeLE=function _toArrayLikeLE(st,Wt){var Ot=0;var en=0;for(var tn=0,nn=0;tn>8&255}if(Ot>16&255}if(nn===6){if(Ot>24&255}en=0;nn=0}else{en=an>>>24;nn+=2}}if(Ot=0){st[Ot--]=an>>8&255}if(Ot>=0){st[Ot--]=an>>16&255}if(nn===6){if(Ot>=0){st[Ot--]=an>>24&255}en=0;nn=0}else{en=an>>>24;nn+=2}}if(Ot>=0){st[Ot--]=en;while(Ot>=0){st[Ot--]=0}}};if(Math.clz32){BN.prototype._countBits=function _countBits(st){return 32-Math.clz32(st)}}else{BN.prototype._countBits=function _countBits(st){var Wt=st;var Ot=0;if(Wt>=4096){Ot+=13;Wt>>>=13}if(Wt>=64){Ot+=7;Wt>>>=7}if(Wt>=8){Ot+=4;Wt>>>=4}if(Wt>=2){Ot+=2;Wt>>>=2}return Ot+Wt}}BN.prototype._zeroBits=function _zeroBits(st){if(st===0)return 26;var Wt=st;var Ot=0;if((Wt&8191)===0){Ot+=13;Wt>>>=13}if((Wt&127)===0){Ot+=7;Wt>>>=7}if((Wt&15)===0){Ot+=4;Wt>>>=4}if((Wt&3)===0){Ot+=2;Wt>>>=2}if((Wt&1)===0){Ot++}return Ot};BN.prototype.bitLength=function bitLength(){var st=this.words[this.length-1];var Wt=this._countBits(st);return(this.length-1)*26+Wt};function toBitArray(st){var Wt=new Array(st.bitLength());for(var Ot=0;Ot>>tn&1}return Wt}BN.prototype.zeroBits=function zeroBits(){if(this.isZero())return 0;var st=0;for(var Wt=0;Wtst.length)return this.clone().ior(st);return st.clone().ior(this)};BN.prototype.uor=function uor(st){if(this.length>st.length)return this.clone().iuor(st);return st.clone().iuor(this)};BN.prototype.iuand=function iuand(st){var Wt;if(this.length>st.length){Wt=st}else{Wt=this}for(var Ot=0;Otst.length)return this.clone().iand(st);return st.clone().iand(this)};BN.prototype.uand=function uand(st){if(this.length>st.length)return this.clone().iuand(st);return st.clone().iuand(this)};BN.prototype.iuxor=function iuxor(st){var Wt;var Ot;if(this.length>st.length){Wt=this;Ot=st}else{Wt=st;Ot=this}for(var en=0;enst.length)return this.clone().ixor(st);return st.clone().ixor(this)};BN.prototype.uxor=function uxor(st){if(this.length>st.length)return this.clone().iuxor(st);return st.clone().iuxor(this)};BN.prototype.inotn=function inotn(st){assert(typeof st==="number"&&st>=0);var Wt=Math.ceil(st/26)|0;var Ot=st%26;this._expand(Wt);if(Ot>0){Wt--}for(var en=0;en0){this.words[en]=~this.words[en]&67108863>>26-Ot}return this._strip()};BN.prototype.notn=function notn(st){return this.clone().inotn(st)};BN.prototype.setn=function setn(st,Wt){assert(typeof st==="number"&&st>=0);var Ot=st/26|0;var en=st%26;this._expand(Ot+1);if(Wt){this.words[Ot]=this.words[Ot]|1<st.length){Ot=this;en=st}else{Ot=st;en=this}var tn=0;for(var nn=0;nn>>26}for(;tn!==0&&nn>>26}this.length=Ot.length;if(tn!==0){this.words[this.length]=tn;this.length++}else if(Ot!==this){for(;nnst.length)return this.clone().iadd(st);return st.clone().iadd(this)};BN.prototype.isub=function isub(st){if(st.negative!==0){st.negative=0;var Wt=this.iadd(st);st.negative=1;return Wt._normSign()}else if(this.negative!==0){this.negative=0;this.iadd(st);this.negative=1;return this._normSign()}var Ot=this.cmp(st);if(Ot===0){this.negative=0;this.length=1;this.words[0]=0;return this}var en,tn;if(Ot>0){en=this;tn=st}else{en=st;tn=this}var nn=0;for(var an=0;an>26;this.words[an]=Wt&67108863}for(;nn!==0&&an>26;this.words[an]=Wt&67108863}if(nn===0&&an>>26;var sn=rn&67108863;var dn=Math.min(cn,Wt.length-1);for(var un=Math.max(0,cn-st.length+1);un<=dn;un++){var pn=cn-un|0;tn=st.words[pn]|0;nn=Wt.words[un]|0;an=tn*nn+sn;on+=an/67108864|0;sn=an&67108863}Ot.words[cn]=sn|0;rn=on|0}if(rn!==0){Ot.words[cn]=rn|0}else{Ot.length--}return Ot._strip()}var rn=function comb10MulTo2(st,Wt,Ot){var en=st.words;var tn=Wt.words;var nn=Ot.words;var an=0;var In;var rn;var cn;var on=en[0]|0;var sn=on&8191;var dn=on>>>13;var un=en[1]|0;var pn=un&8191;var bn=un>>>13;var mn=en[2]|0;var Gn=mn&8191;var hn=mn>>>13;var Zn=en[3]|0;var An=Zn&8191;var Wn=Zn>>>13;var Nn=en[4]|0;var gn=Nn&8191;var yn=Nn>>>13;var vn=en[5]|0;var Yn=vn&8191;var En=vn>>>13;var Vn=en[6]|0;var Rn=Vn&8191;var wn=Vn>>>13;var Fn=en[7]|0;var Qn=Fn&8191;var fn=Fn>>>13;var Hn=en[8]|0;var Cn=Hn&8191;var Xn=Hn>>>13;var kn=en[9]|0;var Jn=kn&8191;var Ln=kn>>>13;var Bn=tn[0]|0;var xn=Bn&8191;var On=Bn>>>13;var Tn=tn[1]|0;var Mn=Tn&8191;var Un=Tn>>>13;var zn=tn[2]|0;var Sn=zn&8191;var jn=zn>>>13;var Dn=tn[3]|0;var Kn=Dn&8191;var _n=Dn>>>13;var Pn=tn[4]|0;var qn=Pn&8191;var $n=Pn>>>13;var el=tn[5]|0;var tl=el&8191;var nl=el>>>13;var ll=tn[6]|0;var al=ll&8191;var Il=ll>>>13;var rl=tn[7]|0;var cl=rl&8191;var ol=rl>>>13;var sl=tn[8]|0;var il=sl&8191;var dl=sl>>>13;var ul=tn[9]|0;var pl=ul&8191;var bl=ul>>>13;Ot.negative=st.negative^Wt.negative;Ot.length=19;In=Math.imul(sn,xn);rn=Math.imul(sn,On);rn=rn+Math.imul(dn,xn)|0;cn=Math.imul(dn,On);var ml=(an+In|0)+((rn&8191)<<13)|0;an=(cn+(rn>>>13)|0)+(ml>>>26)|0;ml&=67108863;In=Math.imul(pn,xn);rn=Math.imul(pn,On);rn=rn+Math.imul(bn,xn)|0;cn=Math.imul(bn,On);In=In+Math.imul(sn,Mn)|0;rn=rn+Math.imul(sn,Un)|0;rn=rn+Math.imul(dn,Mn)|0;cn=cn+Math.imul(dn,Un)|0;var Gl=(an+In|0)+((rn&8191)<<13)|0;an=(cn+(rn>>>13)|0)+(Gl>>>26)|0;Gl&=67108863;In=Math.imul(Gn,xn);rn=Math.imul(Gn,On);rn=rn+Math.imul(hn,xn)|0;cn=Math.imul(hn,On);In=In+Math.imul(pn,Mn)|0;rn=rn+Math.imul(pn,Un)|0;rn=rn+Math.imul(bn,Mn)|0;cn=cn+Math.imul(bn,Un)|0;In=In+Math.imul(sn,Sn)|0;rn=rn+Math.imul(sn,jn)|0;rn=rn+Math.imul(dn,Sn)|0;cn=cn+Math.imul(dn,jn)|0;var hl=(an+In|0)+((rn&8191)<<13)|0;an=(cn+(rn>>>13)|0)+(hl>>>26)|0;hl&=67108863;In=Math.imul(An,xn);rn=Math.imul(An,On);rn=rn+Math.imul(Wn,xn)|0;cn=Math.imul(Wn,On);In=In+Math.imul(Gn,Mn)|0;rn=rn+Math.imul(Gn,Un)|0;rn=rn+Math.imul(hn,Mn)|0;cn=cn+Math.imul(hn,Un)|0;In=In+Math.imul(pn,Sn)|0;rn=rn+Math.imul(pn,jn)|0;rn=rn+Math.imul(bn,Sn)|0;cn=cn+Math.imul(bn,jn)|0;In=In+Math.imul(sn,Kn)|0;rn=rn+Math.imul(sn,_n)|0;rn=rn+Math.imul(dn,Kn)|0;cn=cn+Math.imul(dn,_n)|0;var Zl=(an+In|0)+((rn&8191)<<13)|0;an=(cn+(rn>>>13)|0)+(Zl>>>26)|0;Zl&=67108863;In=Math.imul(gn,xn);rn=Math.imul(gn,On);rn=rn+Math.imul(yn,xn)|0;cn=Math.imul(yn,On);In=In+Math.imul(An,Mn)|0;rn=rn+Math.imul(An,Un)|0;rn=rn+Math.imul(Wn,Mn)|0;cn=cn+Math.imul(Wn,Un)|0;In=In+Math.imul(Gn,Sn)|0;rn=rn+Math.imul(Gn,jn)|0;rn=rn+Math.imul(hn,Sn)|0;cn=cn+Math.imul(hn,jn)|0;In=In+Math.imul(pn,Kn)|0;rn=rn+Math.imul(pn,_n)|0;rn=rn+Math.imul(bn,Kn)|0;cn=cn+Math.imul(bn,_n)|0;In=In+Math.imul(sn,qn)|0;rn=rn+Math.imul(sn,$n)|0;rn=rn+Math.imul(dn,qn)|0;cn=cn+Math.imul(dn,$n)|0;var Al=(an+In|0)+((rn&8191)<<13)|0;an=(cn+(rn>>>13)|0)+(Al>>>26)|0;Al&=67108863;In=Math.imul(Yn,xn);rn=Math.imul(Yn,On);rn=rn+Math.imul(En,xn)|0;cn=Math.imul(En,On);In=In+Math.imul(gn,Mn)|0;rn=rn+Math.imul(gn,Un)|0;rn=rn+Math.imul(yn,Mn)|0;cn=cn+Math.imul(yn,Un)|0;In=In+Math.imul(An,Sn)|0;rn=rn+Math.imul(An,jn)|0;rn=rn+Math.imul(Wn,Sn)|0;cn=cn+Math.imul(Wn,jn)|0;In=In+Math.imul(Gn,Kn)|0;rn=rn+Math.imul(Gn,_n)|0;rn=rn+Math.imul(hn,Kn)|0;cn=cn+Math.imul(hn,_n)|0;In=In+Math.imul(pn,qn)|0;rn=rn+Math.imul(pn,$n)|0;rn=rn+Math.imul(bn,qn)|0;cn=cn+Math.imul(bn,$n)|0;In=In+Math.imul(sn,tl)|0;rn=rn+Math.imul(sn,nl)|0;rn=rn+Math.imul(dn,tl)|0;cn=cn+Math.imul(dn,nl)|0;var Wl=(an+In|0)+((rn&8191)<<13)|0;an=(cn+(rn>>>13)|0)+(Wl>>>26)|0;Wl&=67108863;In=Math.imul(Rn,xn);rn=Math.imul(Rn,On);rn=rn+Math.imul(wn,xn)|0;cn=Math.imul(wn,On);In=In+Math.imul(Yn,Mn)|0;rn=rn+Math.imul(Yn,Un)|0;rn=rn+Math.imul(En,Mn)|0;cn=cn+Math.imul(En,Un)|0;In=In+Math.imul(gn,Sn)|0;rn=rn+Math.imul(gn,jn)|0;rn=rn+Math.imul(yn,Sn)|0;cn=cn+Math.imul(yn,jn)|0;In=In+Math.imul(An,Kn)|0;rn=rn+Math.imul(An,_n)|0;rn=rn+Math.imul(Wn,Kn)|0;cn=cn+Math.imul(Wn,_n)|0;In=In+Math.imul(Gn,qn)|0;rn=rn+Math.imul(Gn,$n)|0;rn=rn+Math.imul(hn,qn)|0;cn=cn+Math.imul(hn,$n)|0;In=In+Math.imul(pn,tl)|0;rn=rn+Math.imul(pn,nl)|0;rn=rn+Math.imul(bn,tl)|0;cn=cn+Math.imul(bn,nl)|0;In=In+Math.imul(sn,al)|0;rn=rn+Math.imul(sn,Il)|0;rn=rn+Math.imul(dn,al)|0;cn=cn+Math.imul(dn,Il)|0;var Nl=(an+In|0)+((rn&8191)<<13)|0;an=(cn+(rn>>>13)|0)+(Nl>>>26)|0;Nl&=67108863;In=Math.imul(Qn,xn);rn=Math.imul(Qn,On);rn=rn+Math.imul(fn,xn)|0;cn=Math.imul(fn,On);In=In+Math.imul(Rn,Mn)|0;rn=rn+Math.imul(Rn,Un)|0;rn=rn+Math.imul(wn,Mn)|0;cn=cn+Math.imul(wn,Un)|0;In=In+Math.imul(Yn,Sn)|0;rn=rn+Math.imul(Yn,jn)|0;rn=rn+Math.imul(En,Sn)|0;cn=cn+Math.imul(En,jn)|0;In=In+Math.imul(gn,Kn)|0;rn=rn+Math.imul(gn,_n)|0;rn=rn+Math.imul(yn,Kn)|0;cn=cn+Math.imul(yn,_n)|0;In=In+Math.imul(An,qn)|0;rn=rn+Math.imul(An,$n)|0;rn=rn+Math.imul(Wn,qn)|0;cn=cn+Math.imul(Wn,$n)|0;In=In+Math.imul(Gn,tl)|0;rn=rn+Math.imul(Gn,nl)|0;rn=rn+Math.imul(hn,tl)|0;cn=cn+Math.imul(hn,nl)|0;In=In+Math.imul(pn,al)|0;rn=rn+Math.imul(pn,Il)|0;rn=rn+Math.imul(bn,al)|0;cn=cn+Math.imul(bn,Il)|0;In=In+Math.imul(sn,cl)|0;rn=rn+Math.imul(sn,ol)|0;rn=rn+Math.imul(dn,cl)|0;cn=cn+Math.imul(dn,ol)|0;var gl=(an+In|0)+((rn&8191)<<13)|0;an=(cn+(rn>>>13)|0)+(gl>>>26)|0;gl&=67108863;In=Math.imul(Cn,xn);rn=Math.imul(Cn,On);rn=rn+Math.imul(Xn,xn)|0;cn=Math.imul(Xn,On);In=In+Math.imul(Qn,Mn)|0;rn=rn+Math.imul(Qn,Un)|0;rn=rn+Math.imul(fn,Mn)|0;cn=cn+Math.imul(fn,Un)|0;In=In+Math.imul(Rn,Sn)|0;rn=rn+Math.imul(Rn,jn)|0;rn=rn+Math.imul(wn,Sn)|0;cn=cn+Math.imul(wn,jn)|0;In=In+Math.imul(Yn,Kn)|0;rn=rn+Math.imul(Yn,_n)|0;rn=rn+Math.imul(En,Kn)|0;cn=cn+Math.imul(En,_n)|0;In=In+Math.imul(gn,qn)|0;rn=rn+Math.imul(gn,$n)|0;rn=rn+Math.imul(yn,qn)|0;cn=cn+Math.imul(yn,$n)|0;In=In+Math.imul(An,tl)|0;rn=rn+Math.imul(An,nl)|0;rn=rn+Math.imul(Wn,tl)|0;cn=cn+Math.imul(Wn,nl)|0;In=In+Math.imul(Gn,al)|0;rn=rn+Math.imul(Gn,Il)|0;rn=rn+Math.imul(hn,al)|0;cn=cn+Math.imul(hn,Il)|0;In=In+Math.imul(pn,cl)|0;rn=rn+Math.imul(pn,ol)|0;rn=rn+Math.imul(bn,cl)|0;cn=cn+Math.imul(bn,ol)|0;In=In+Math.imul(sn,il)|0;rn=rn+Math.imul(sn,dl)|0;rn=rn+Math.imul(dn,il)|0;cn=cn+Math.imul(dn,dl)|0;var yl=(an+In|0)+((rn&8191)<<13)|0;an=(cn+(rn>>>13)|0)+(yl>>>26)|0;yl&=67108863;In=Math.imul(Jn,xn);rn=Math.imul(Jn,On);rn=rn+Math.imul(Ln,xn)|0;cn=Math.imul(Ln,On);In=In+Math.imul(Cn,Mn)|0;rn=rn+Math.imul(Cn,Un)|0;rn=rn+Math.imul(Xn,Mn)|0;cn=cn+Math.imul(Xn,Un)|0;In=In+Math.imul(Qn,Sn)|0;rn=rn+Math.imul(Qn,jn)|0;rn=rn+Math.imul(fn,Sn)|0;cn=cn+Math.imul(fn,jn)|0;In=In+Math.imul(Rn,Kn)|0;rn=rn+Math.imul(Rn,_n)|0;rn=rn+Math.imul(wn,Kn)|0;cn=cn+Math.imul(wn,_n)|0;In=In+Math.imul(Yn,qn)|0;rn=rn+Math.imul(Yn,$n)|0;rn=rn+Math.imul(En,qn)|0;cn=cn+Math.imul(En,$n)|0;In=In+Math.imul(gn,tl)|0;rn=rn+Math.imul(gn,nl)|0;rn=rn+Math.imul(yn,tl)|0;cn=cn+Math.imul(yn,nl)|0;In=In+Math.imul(An,al)|0;rn=rn+Math.imul(An,Il)|0;rn=rn+Math.imul(Wn,al)|0;cn=cn+Math.imul(Wn,Il)|0;In=In+Math.imul(Gn,cl)|0;rn=rn+Math.imul(Gn,ol)|0;rn=rn+Math.imul(hn,cl)|0;cn=cn+Math.imul(hn,ol)|0;In=In+Math.imul(pn,il)|0;rn=rn+Math.imul(pn,dl)|0;rn=rn+Math.imul(bn,il)|0;cn=cn+Math.imul(bn,dl)|0;In=In+Math.imul(sn,pl)|0;rn=rn+Math.imul(sn,bl)|0;rn=rn+Math.imul(dn,pl)|0;cn=cn+Math.imul(dn,bl)|0;var vl=(an+In|0)+((rn&8191)<<13)|0;an=(cn+(rn>>>13)|0)+(vl>>>26)|0;vl&=67108863;In=Math.imul(Jn,Mn);rn=Math.imul(Jn,Un);rn=rn+Math.imul(Ln,Mn)|0;cn=Math.imul(Ln,Un);In=In+Math.imul(Cn,Sn)|0;rn=rn+Math.imul(Cn,jn)|0;rn=rn+Math.imul(Xn,Sn)|0;cn=cn+Math.imul(Xn,jn)|0;In=In+Math.imul(Qn,Kn)|0;rn=rn+Math.imul(Qn,_n)|0;rn=rn+Math.imul(fn,Kn)|0;cn=cn+Math.imul(fn,_n)|0;In=In+Math.imul(Rn,qn)|0;rn=rn+Math.imul(Rn,$n)|0;rn=rn+Math.imul(wn,qn)|0;cn=cn+Math.imul(wn,$n)|0;In=In+Math.imul(Yn,tl)|0;rn=rn+Math.imul(Yn,nl)|0;rn=rn+Math.imul(En,tl)|0;cn=cn+Math.imul(En,nl)|0;In=In+Math.imul(gn,al)|0;rn=rn+Math.imul(gn,Il)|0;rn=rn+Math.imul(yn,al)|0;cn=cn+Math.imul(yn,Il)|0;In=In+Math.imul(An,cl)|0;rn=rn+Math.imul(An,ol)|0;rn=rn+Math.imul(Wn,cl)|0;cn=cn+Math.imul(Wn,ol)|0;In=In+Math.imul(Gn,il)|0;rn=rn+Math.imul(Gn,dl)|0;rn=rn+Math.imul(hn,il)|0;cn=cn+Math.imul(hn,dl)|0;In=In+Math.imul(pn,pl)|0;rn=rn+Math.imul(pn,bl)|0;rn=rn+Math.imul(bn,pl)|0;cn=cn+Math.imul(bn,bl)|0;var Yl=(an+In|0)+((rn&8191)<<13)|0;an=(cn+(rn>>>13)|0)+(Yl>>>26)|0;Yl&=67108863;In=Math.imul(Jn,Sn);rn=Math.imul(Jn,jn);rn=rn+Math.imul(Ln,Sn)|0;cn=Math.imul(Ln,jn);In=In+Math.imul(Cn,Kn)|0;rn=rn+Math.imul(Cn,_n)|0;rn=rn+Math.imul(Xn,Kn)|0;cn=cn+Math.imul(Xn,_n)|0;In=In+Math.imul(Qn,qn)|0;rn=rn+Math.imul(Qn,$n)|0;rn=rn+Math.imul(fn,qn)|0;cn=cn+Math.imul(fn,$n)|0;In=In+Math.imul(Rn,tl)|0;rn=rn+Math.imul(Rn,nl)|0;rn=rn+Math.imul(wn,tl)|0;cn=cn+Math.imul(wn,nl)|0;In=In+Math.imul(Yn,al)|0;rn=rn+Math.imul(Yn,Il)|0;rn=rn+Math.imul(En,al)|0;cn=cn+Math.imul(En,Il)|0;In=In+Math.imul(gn,cl)|0;rn=rn+Math.imul(gn,ol)|0;rn=rn+Math.imul(yn,cl)|0;cn=cn+Math.imul(yn,ol)|0;In=In+Math.imul(An,il)|0;rn=rn+Math.imul(An,dl)|0;rn=rn+Math.imul(Wn,il)|0;cn=cn+Math.imul(Wn,dl)|0;In=In+Math.imul(Gn,pl)|0;rn=rn+Math.imul(Gn,bl)|0;rn=rn+Math.imul(hn,pl)|0;cn=cn+Math.imul(hn,bl)|0;var El=(an+In|0)+((rn&8191)<<13)|0;an=(cn+(rn>>>13)|0)+(El>>>26)|0;El&=67108863;In=Math.imul(Jn,Kn);rn=Math.imul(Jn,_n);rn=rn+Math.imul(Ln,Kn)|0;cn=Math.imul(Ln,_n);In=In+Math.imul(Cn,qn)|0;rn=rn+Math.imul(Cn,$n)|0;rn=rn+Math.imul(Xn,qn)|0;cn=cn+Math.imul(Xn,$n)|0;In=In+Math.imul(Qn,tl)|0;rn=rn+Math.imul(Qn,nl)|0;rn=rn+Math.imul(fn,tl)|0;cn=cn+Math.imul(fn,nl)|0;In=In+Math.imul(Rn,al)|0;rn=rn+Math.imul(Rn,Il)|0;rn=rn+Math.imul(wn,al)|0;cn=cn+Math.imul(wn,Il)|0;In=In+Math.imul(Yn,cl)|0;rn=rn+Math.imul(Yn,ol)|0;rn=rn+Math.imul(En,cl)|0;cn=cn+Math.imul(En,ol)|0;In=In+Math.imul(gn,il)|0;rn=rn+Math.imul(gn,dl)|0;rn=rn+Math.imul(yn,il)|0;cn=cn+Math.imul(yn,dl)|0;In=In+Math.imul(An,pl)|0;rn=rn+Math.imul(An,bl)|0;rn=rn+Math.imul(Wn,pl)|0;cn=cn+Math.imul(Wn,bl)|0;var Vl=(an+In|0)+((rn&8191)<<13)|0;an=(cn+(rn>>>13)|0)+(Vl>>>26)|0;Vl&=67108863;In=Math.imul(Jn,qn);rn=Math.imul(Jn,$n);rn=rn+Math.imul(Ln,qn)|0;cn=Math.imul(Ln,$n);In=In+Math.imul(Cn,tl)|0;rn=rn+Math.imul(Cn,nl)|0;rn=rn+Math.imul(Xn,tl)|0;cn=cn+Math.imul(Xn,nl)|0;In=In+Math.imul(Qn,al)|0;rn=rn+Math.imul(Qn,Il)|0;rn=rn+Math.imul(fn,al)|0;cn=cn+Math.imul(fn,Il)|0;In=In+Math.imul(Rn,cl)|0;rn=rn+Math.imul(Rn,ol)|0;rn=rn+Math.imul(wn,cl)|0;cn=cn+Math.imul(wn,ol)|0;In=In+Math.imul(Yn,il)|0;rn=rn+Math.imul(Yn,dl)|0;rn=rn+Math.imul(En,il)|0;cn=cn+Math.imul(En,dl)|0;In=In+Math.imul(gn,pl)|0;rn=rn+Math.imul(gn,bl)|0;rn=rn+Math.imul(yn,pl)|0;cn=cn+Math.imul(yn,bl)|0;var Rl=(an+In|0)+((rn&8191)<<13)|0;an=(cn+(rn>>>13)|0)+(Rl>>>26)|0;Rl&=67108863;In=Math.imul(Jn,tl);rn=Math.imul(Jn,nl);rn=rn+Math.imul(Ln,tl)|0;cn=Math.imul(Ln,nl);In=In+Math.imul(Cn,al)|0;rn=rn+Math.imul(Cn,Il)|0;rn=rn+Math.imul(Xn,al)|0;cn=cn+Math.imul(Xn,Il)|0;In=In+Math.imul(Qn,cl)|0;rn=rn+Math.imul(Qn,ol)|0;rn=rn+Math.imul(fn,cl)|0;cn=cn+Math.imul(fn,ol)|0;In=In+Math.imul(Rn,il)|0;rn=rn+Math.imul(Rn,dl)|0;rn=rn+Math.imul(wn,il)|0;cn=cn+Math.imul(wn,dl)|0;In=In+Math.imul(Yn,pl)|0;rn=rn+Math.imul(Yn,bl)|0;rn=rn+Math.imul(En,pl)|0;cn=cn+Math.imul(En,bl)|0;var wl=(an+In|0)+((rn&8191)<<13)|0;an=(cn+(rn>>>13)|0)+(wl>>>26)|0;wl&=67108863;In=Math.imul(Jn,al);rn=Math.imul(Jn,Il);rn=rn+Math.imul(Ln,al)|0;cn=Math.imul(Ln,Il);In=In+Math.imul(Cn,cl)|0;rn=rn+Math.imul(Cn,ol)|0;rn=rn+Math.imul(Xn,cl)|0;cn=cn+Math.imul(Xn,ol)|0;In=In+Math.imul(Qn,il)|0;rn=rn+Math.imul(Qn,dl)|0;rn=rn+Math.imul(fn,il)|0;cn=cn+Math.imul(fn,dl)|0;In=In+Math.imul(Rn,pl)|0;rn=rn+Math.imul(Rn,bl)|0;rn=rn+Math.imul(wn,pl)|0;cn=cn+Math.imul(wn,bl)|0;var Fl=(an+In|0)+((rn&8191)<<13)|0;an=(cn+(rn>>>13)|0)+(Fl>>>26)|0;Fl&=67108863;In=Math.imul(Jn,cl);rn=Math.imul(Jn,ol);rn=rn+Math.imul(Ln,cl)|0;cn=Math.imul(Ln,ol);In=In+Math.imul(Cn,il)|0;rn=rn+Math.imul(Cn,dl)|0;rn=rn+Math.imul(Xn,il)|0;cn=cn+Math.imul(Xn,dl)|0;In=In+Math.imul(Qn,pl)|0;rn=rn+Math.imul(Qn,bl)|0;rn=rn+Math.imul(fn,pl)|0;cn=cn+Math.imul(fn,bl)|0;var Ql=(an+In|0)+((rn&8191)<<13)|0;an=(cn+(rn>>>13)|0)+(Ql>>>26)|0;Ql&=67108863;In=Math.imul(Jn,il);rn=Math.imul(Jn,dl);rn=rn+Math.imul(Ln,il)|0;cn=Math.imul(Ln,dl);In=In+Math.imul(Cn,pl)|0;rn=rn+Math.imul(Cn,bl)|0;rn=rn+Math.imul(Xn,pl)|0;cn=cn+Math.imul(Xn,bl)|0;var fl=(an+In|0)+((rn&8191)<<13)|0;an=(cn+(rn>>>13)|0)+(fl>>>26)|0;fl&=67108863;In=Math.imul(Jn,pl);rn=Math.imul(Jn,bl);rn=rn+Math.imul(Ln,pl)|0;cn=Math.imul(Ln,bl);var Hl=(an+In|0)+((rn&8191)<<13)|0;an=(cn+(rn>>>13)|0)+(Hl>>>26)|0;Hl&=67108863;nn[0]=ml;nn[1]=Gl;nn[2]=hl;nn[3]=Zl;nn[4]=Al;nn[5]=Wl;nn[6]=Nl;nn[7]=gl;nn[8]=yl;nn[9]=vl;nn[10]=Yl;nn[11]=El;nn[12]=Vl;nn[13]=Rl;nn[14]=wl;nn[15]=Fl;nn[16]=Ql;nn[17]=fl;nn[18]=Hl;if(an!==0){nn[19]=an;Ot.length++}return Ot};if(!Math.imul){rn=smallMulTo}function bigMulTo(st,Wt,Ot){Ot.negative=Wt.negative^st.negative;Ot.length=st.length+Wt.length;var en=0;var tn=0;for(var nn=0;nn>>26)|0;tn+=an>>>26;an&=67108863}Ot.words[nn]=In;en=an;an=tn}if(en!==0){Ot.words[nn]=en}else{Ot.length--}return Ot._strip()}function jumboMulTo(st,Wt,Ot){return bigMulTo(st,Wt,Ot)}BN.prototype.mulTo=function mulTo(st,Wt){var Ot;var en=this.length+st.length;if(this.length===10&&st.length===10){Ot=rn(this,st,Wt)}else if(en<63){Ot=smallMulTo(this,st,Wt)}else if(en<1024){Ot=bigMulTo(this,st,Wt)}else{Ot=jumboMulTo(this,st,Wt)}return Ot};function FFTM(st,Wt){this.x=st;this.y=Wt}FFTM.prototype.makeRBT=function makeRBT(st){var Wt=new Array(st);var Ot=BN.prototype._countBits(st)-1;for(var en=0;en>=1}return en};FFTM.prototype.permute=function permute(st,Wt,Ot,en,tn,nn){for(var an=0;an>>1){tn++}return 1<>>13;Ot[2*nn+1]=tn&8191;tn=tn>>>13}for(nn=2*Wt;nn>=26;Ot+=tn/67108864|0;Ot+=nn>>>26;this.words[en]=nn&67108863}if(Ot!==0){this.words[en]=Ot;this.length++}return Wt?this.ineg():this};BN.prototype.muln=function muln(st){return this.clone().imuln(st)};BN.prototype.sqr=function sqr(){return this.mul(this)};BN.prototype.isqr=function isqr(){return this.imul(this.clone())};BN.prototype.pow=function pow(st){var Wt=toBitArray(st);if(Wt.length===0)return new BN(1);var Ot=this;for(var en=0;en=0);var Wt=st%26;var Ot=(st-Wt)/26;var en=67108863>>>26-Wt<<26-Wt;var tn;if(Wt!==0){var nn=0;for(tn=0;tn>>26-Wt}if(nn){this.words[tn]=nn;this.length++}}if(Ot!==0){for(tn=this.length-1;tn>=0;tn--){this.words[tn+Ot]=this.words[tn]}for(tn=0;tn=0);var en;if(Wt){en=(Wt-Wt%26)/26}else{en=0}var tn=st%26;var nn=Math.min((st-tn)/26,this.length);var an=67108863^67108863>>>tn<nn){this.length-=nn;for(rn=0;rn=0&&(cn!==0||rn>=en);rn--){var on=this.words[rn]|0;this.words[rn]=cn<<26-tn|on>>>tn;cn=on&an}if(In&&cn!==0){In.words[In.length++]=cn}if(this.length===0){this.words[0]=0;this.length=1}return this._strip()};BN.prototype.ishrn=function ishrn(st,Wt,Ot){assert(this.negative===0);return this.iushrn(st,Wt,Ot)};BN.prototype.shln=function shln(st){return this.clone().ishln(st)};BN.prototype.ushln=function ushln(st){return this.clone().iushln(st)};BN.prototype.shrn=function shrn(st){return this.clone().ishrn(st)};BN.prototype.ushrn=function ushrn(st){return this.clone().iushrn(st)};BN.prototype.testn=function testn(st){assert(typeof st==="number"&&st>=0);var Wt=st%26;var Ot=(st-Wt)/26;var en=1<=0);var Wt=st%26;var Ot=(st-Wt)/26;assert(this.negative===0,"imaskn works only with positive numbers");if(this.length<=Ot){return this}if(Wt!==0){Ot++}this.length=Math.min(Ot,this.length);if(Wt!==0){var en=67108863^67108863>>>Wt<=67108864;Wt++){this.words[Wt]-=67108864;if(Wt===this.length-1){this.words[Wt+1]=1}else{this.words[Wt+1]++}}this.length=Math.max(this.length,Wt+1);return this};BN.prototype.isubn=function isubn(st){assert(typeof st==="number");assert(st<67108864);if(st<0)return this.iaddn(-st);if(this.negative!==0){this.negative=0;this.iaddn(st);this.negative=1;return this}this.words[0]-=st;if(this.length===1&&this.words[0]<0){this.words[0]=-this.words[0];this.negative=1}else{for(var Wt=0;Wt>26)-(In/67108864|0);this.words[tn+Ot]=nn&67108863}for(;tn>26;this.words[tn+Ot]=nn&67108863}if(an===0)return this._strip();assert(an===-1);an=0;for(tn=0;tn>26;this.words[tn]=nn&67108863}this.negative=1;return this._strip()};BN.prototype._wordDiv=function _wordDiv(st,Wt){var Ot=this.length-st.length;var en=this.clone();var tn=st;var nn=tn.words[tn.length-1]|0;var an=this._countBits(nn);Ot=26-an;if(Ot!==0){tn=tn.ushln(Ot);en.iushln(Ot);nn=tn.words[tn.length-1]|0}var In=en.length-tn.length;var rn;if(Wt!=="mod"){rn=new BN(null);rn.length=In+1;rn.words=new Array(rn.length);for(var cn=0;cn=0;sn--){var dn=(en.words[tn.length+sn]|0)*67108864+(en.words[tn.length+sn-1]|0);dn=Math.min(dn/nn|0,67108863);en._ishlnsubmul(tn,dn,sn);while(en.negative!==0){dn--;en.negative=0;en._ishlnsubmul(tn,1,sn);if(!en.isZero()){en.negative^=1}}if(rn){rn.words[sn]=dn}}if(rn){rn._strip()}en._strip();if(Wt!=="div"&&Ot!==0){en.iushrn(Ot)}return{div:rn||null,mod:en}};BN.prototype.divmod=function divmod(st,Wt,Ot){assert(!st.isZero());if(this.isZero()){return{div:new BN(0),mod:new BN(0)}}var en,tn,nn;if(this.negative!==0&&st.negative===0){nn=this.neg().divmod(st,Wt);if(Wt!=="mod"){en=nn.div.neg()}if(Wt!=="div"){tn=nn.mod.neg();if(Ot&&tn.negative!==0){tn.iadd(st)}}return{div:en,mod:tn}}if(this.negative===0&&st.negative!==0){nn=this.divmod(st.neg(),Wt);if(Wt!=="mod"){en=nn.div.neg()}return{div:en,mod:nn.mod}}if((this.negative&st.negative)!==0){nn=this.neg().divmod(st.neg(),Wt);if(Wt!=="div"){tn=nn.mod.neg();if(Ot&&tn.negative!==0){tn.isub(st)}}return{div:nn.div,mod:tn}}if(st.length>this.length||this.cmp(st)<0){return{div:new BN(0),mod:this}}if(st.length===1){if(Wt==="div"){return{div:this.divn(st.words[0]),mod:null}}if(Wt==="mod"){return{div:null,mod:new BN(this.modrn(st.words[0]))}}return{div:this.divn(st.words[0]),mod:new BN(this.modrn(st.words[0]))}}return this._wordDiv(st,Wt)};BN.prototype.div=function div(st){return this.divmod(st,"div",false).div};BN.prototype.mod=function mod(st){return this.divmod(st,"mod",false).mod};BN.prototype.umod=function umod(st){return this.divmod(st,"mod",true).mod};BN.prototype.divRound=function divRound(st){var Wt=this.divmod(st);if(Wt.mod.isZero())return Wt.div;var Ot=Wt.div.negative!==0?Wt.mod.isub(st):Wt.mod;var en=st.ushrn(1);var tn=st.andln(1);var nn=Ot.cmp(en);if(nn<0||tn===1&&nn===0)return Wt.div;return Wt.div.negative!==0?Wt.div.isubn(1):Wt.div.iaddn(1)};BN.prototype.modrn=function modrn(st){var Wt=st<0;if(Wt)st=-st;assert(st<=67108863);var Ot=(1<<26)%st;var en=0;for(var tn=this.length-1;tn>=0;tn--){en=(Ot*en+(this.words[tn]|0))%st}return Wt?-en:en};BN.prototype.modn=function modn(st){return this.modrn(st)};BN.prototype.idivn=function idivn(st){var Wt=st<0;if(Wt)st=-st;assert(st<=67108863);var Ot=0;for(var en=this.length-1;en>=0;en--){var tn=(this.words[en]|0)+Ot*67108864;this.words[en]=tn/st|0;Ot=tn%st}this._strip();return Wt?this.ineg():this};BN.prototype.divn=function divn(st){return this.clone().idivn(st)};BN.prototype.egcd=function egcd(st){assert(st.negative===0);assert(!st.isZero());var Wt=this;var Ot=st.clone();if(Wt.negative!==0){Wt=Wt.umod(st)}else{Wt=Wt.clone()}var en=new BN(1);var tn=new BN(0);var nn=new BN(0);var an=new BN(1);var In=0;while(Wt.isEven()&&Ot.isEven()){Wt.iushrn(1);Ot.iushrn(1);++In}var rn=Ot.clone();var cn=Wt.clone();while(!Wt.isZero()){for(var on=0,sn=1;(Wt.words[0]&sn)===0&&on<26;++on,sn<<=1);if(on>0){Wt.iushrn(on);while(on-- >0){if(en.isOdd()||tn.isOdd()){en.iadd(rn);tn.isub(cn)}en.iushrn(1);tn.iushrn(1)}}for(var dn=0,un=1;(Ot.words[0]&un)===0&&dn<26;++dn,un<<=1);if(dn>0){Ot.iushrn(dn);while(dn-- >0){if(nn.isOdd()||an.isOdd()){nn.iadd(rn);an.isub(cn)}nn.iushrn(1);an.iushrn(1)}}if(Wt.cmp(Ot)>=0){Wt.isub(Ot);en.isub(nn);tn.isub(an)}else{Ot.isub(Wt);nn.isub(en);an.isub(tn)}}return{a:nn,b:an,gcd:Ot.iushln(In)}};BN.prototype._invmp=function _invmp(st){assert(st.negative===0);assert(!st.isZero());var Wt=this;var Ot=st.clone();if(Wt.negative!==0){Wt=Wt.umod(st)}else{Wt=Wt.clone()}var en=new BN(1);var tn=new BN(0);var nn=Ot.clone();while(Wt.cmpn(1)>0&&Ot.cmpn(1)>0){for(var an=0,In=1;(Wt.words[0]&In)===0&&an<26;++an,In<<=1);if(an>0){Wt.iushrn(an);while(an-- >0){if(en.isOdd()){en.iadd(nn)}en.iushrn(1)}}for(var rn=0,cn=1;(Ot.words[0]&cn)===0&&rn<26;++rn,cn<<=1);if(rn>0){Ot.iushrn(rn);while(rn-- >0){if(tn.isOdd()){tn.iadd(nn)}tn.iushrn(1)}}if(Wt.cmp(Ot)>=0){Wt.isub(Ot);en.isub(tn)}else{Ot.isub(Wt);tn.isub(en)}}var on;if(Wt.cmpn(1)===0){on=en}else{on=tn}if(on.cmpn(0)<0){on.iadd(st)}return on};BN.prototype.gcd=function gcd(st){if(this.isZero())return st.abs();if(st.isZero())return this.abs();var Wt=this.clone();var Ot=st.clone();Wt.negative=0;Ot.negative=0;for(var en=0;Wt.isEven()&&Ot.isEven();en++){Wt.iushrn(1);Ot.iushrn(1)}do{while(Wt.isEven()){Wt.iushrn(1)}while(Ot.isEven()){Ot.iushrn(1)}var tn=Wt.cmp(Ot);if(tn<0){var nn=Wt;Wt=Ot;Ot=nn}else if(tn===0||Ot.cmpn(1)===0){break}Wt.isub(Ot)}while(true);return Ot.iushln(en)};BN.prototype.invm=function invm(st){return this.egcd(st).a.umod(st)};BN.prototype.isEven=function isEven(){return(this.words[0]&1)===0};BN.prototype.isOdd=function isOdd(){return(this.words[0]&1)===1};BN.prototype.andln=function andln(st){return this.words[0]&st};BN.prototype.bincn=function bincn(st){assert(typeof st==="number");var Wt=st%26;var Ot=(st-Wt)/26;var en=1<>>26;an&=67108863;this.words[nn]=an}if(tn!==0){this.words[nn]=tn;this.length++}return this};BN.prototype.isZero=function isZero(){return this.length===1&&this.words[0]===0};BN.prototype.cmpn=function cmpn(st){var Wt=st<0;if(this.negative!==0&&!Wt)return-1;if(this.negative===0&&Wt)return 1;this._strip();var Ot;if(this.length>1){Ot=1}else{if(Wt){st=-st}assert(st<=67108863,"Number is too big");var en=this.words[0]|0;Ot=en===st?0:enst.length)return 1;if(this.length=0;Ot--){var en=this.words[Ot]|0;var tn=st.words[Ot]|0;if(en===tn)continue;if(entn){Wt=1}break}return Wt};BN.prototype.gtn=function gtn(st){return this.cmpn(st)===1};BN.prototype.gt=function gt(st){return this.cmp(st)===1};BN.prototype.gten=function gten(st){return this.cmpn(st)>=0};BN.prototype.gte=function gte(st){return this.cmp(st)>=0};BN.prototype.ltn=function ltn(st){return this.cmpn(st)===-1};BN.prototype.lt=function lt(st){return this.cmp(st)===-1};BN.prototype.lten=function lten(st){return this.cmpn(st)<=0};BN.prototype.lte=function lte(st){return this.cmp(st)<=0};BN.prototype.eqn=function eqn(st){return this.cmpn(st)===0};BN.prototype.eq=function eq(st){return this.cmp(st)===0};BN.red=function red(st){return new Red(st)};BN.prototype.toRed=function toRed(st){assert(!this.red,"Already a number in reduction context");assert(this.negative===0,"red works only with positives");return st.convertTo(this)._forceRed(st)};BN.prototype.fromRed=function fromRed(){assert(this.red,"fromRed works only with numbers in reduction context");return this.red.convertFrom(this)};BN.prototype._forceRed=function _forceRed(st){this.red=st;return this};BN.prototype.forceRed=function forceRed(st){assert(!this.red,"Already a number in reduction context");return this._forceRed(st)};BN.prototype.redAdd=function redAdd(st){assert(this.red,"redAdd works only with red numbers");return this.red.add(this,st)};BN.prototype.redIAdd=function redIAdd(st){assert(this.red,"redIAdd works only with red numbers");return this.red.iadd(this,st)};BN.prototype.redSub=function redSub(st){assert(this.red,"redSub works only with red numbers");return this.red.sub(this,st)};BN.prototype.redISub=function redISub(st){assert(this.red,"redISub works only with red numbers");return this.red.isub(this,st)};BN.prototype.redShl=function redShl(st){assert(this.red,"redShl works only with red numbers");return this.red.shl(this,st)};BN.prototype.redMul=function redMul(st){assert(this.red,"redMul works only with red numbers");this.red._verify2(this,st);return this.red.mul(this,st)};BN.prototype.redIMul=function redIMul(st){assert(this.red,"redMul works only with red numbers");this.red._verify2(this,st);return this.red.imul(this,st)};BN.prototype.redSqr=function redSqr(){assert(this.red,"redSqr works only with red numbers");this.red._verify1(this);return this.red.sqr(this)};BN.prototype.redISqr=function redISqr(){assert(this.red,"redISqr works only with red numbers");this.red._verify1(this);return this.red.isqr(this)};BN.prototype.redSqrt=function redSqrt(){assert(this.red,"redSqrt works only with red numbers");this.red._verify1(this);return this.red.sqrt(this)};BN.prototype.redInvm=function redInvm(){assert(this.red,"redInvm works only with red numbers");this.red._verify1(this);return this.red.invm(this)};BN.prototype.redNeg=function redNeg(){assert(this.red,"redNeg works only with red numbers");this.red._verify1(this);return this.red.neg(this)};BN.prototype.redPow=function redPow(st){assert(this.red&&!st.red,"redPow(normalNum)");this.red._verify1(this);return this.red.pow(this,st)};var cn={k256:null,p224:null,p192:null,p25519:null};function MPrime(st,Wt){this.name=st;this.p=new BN(Wt,16);this.n=this.p.bitLength();this.k=new BN(1).iushln(this.n).isub(this.p);this.tmp=this._tmp()}MPrime.prototype._tmp=function _tmp(){var st=new BN(null);st.words=new Array(Math.ceil(this.n/13));return st};MPrime.prototype.ireduce=function ireduce(st){var Wt=st;var Ot;do{this.split(Wt,this.tmp);Wt=this.imulK(Wt);Wt=Wt.iadd(this.tmp);Ot=Wt.bitLength()}while(Ot>this.n);var en=Ot0){Wt.isub(this.p)}else{if(Wt.strip!==void 0){Wt.strip()}else{Wt._strip()}}return Wt};MPrime.prototype.split=function split(st,Wt){st.iushrn(this.n,0,Wt)};MPrime.prototype.imulK=function imulK(st){return st.imul(this.k)};function K256(){MPrime.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}inherits2(K256,MPrime);K256.prototype.split=function split(st,Wt){var Ot=4194303;var en=Math.min(st.length,9);for(var tn=0;tn>>22;nn=an}nn>>>=22;st.words[tn-10]=nn;if(nn===0&&st.length>10){st.length-=10}else{st.length-=9}};K256.prototype.imulK=function imulK(st){st.words[st.length]=0;st.words[st.length+1]=0;st.length+=2;var Wt=0;for(var Ot=0;Ot>>=26;st.words[Ot]=tn;Wt=en}if(Wt!==0){st.words[st.length++]=Wt}return st};BN._prime=function prime(st){if(cn[st])return cn[st];var Wt;if(st==="k256"){Wt=new K256}else if(st==="p224"){Wt=new P224}else if(st==="p192"){Wt=new P192}else if(st==="p25519"){Wt=new P25519}else{throw new Error("Unknown prime "+st)}cn[st]=Wt;return Wt};function Red(st){if(typeof st==="string"){var Wt=BN._prime(st);this.m=Wt.p;this.prime=Wt}else{assert(st.gtn(1),"modulus must be greater than 1");this.m=st;this.prime=null}}Red.prototype._verify1=function _verify1(st){assert(st.negative===0,"red works only with positives");assert(st.red,"red works only with red numbers")};Red.prototype._verify2=function _verify2(st,Wt){assert((st.negative|Wt.negative)===0,"red works only with positives");assert(st.red&&st.red===Wt.red,"red works only with red numbers")};Red.prototype.imod=function imod(st){if(this.prime)return this.prime.ireduce(st)._forceRed(this);move(st,st.umod(this.m)._forceRed(this));return st};Red.prototype.neg=function neg(st){if(st.isZero()){return st.clone()}return this.m.sub(st)._forceRed(this)};Red.prototype.add=function add(st,Wt){this._verify2(st,Wt);var Ot=st.add(Wt);if(Ot.cmp(this.m)>=0){Ot.isub(this.m)}return Ot._forceRed(this)};Red.prototype.iadd=function iadd(st,Wt){this._verify2(st,Wt);var Ot=st.iadd(Wt);if(Ot.cmp(this.m)>=0){Ot.isub(this.m)}return Ot};Red.prototype.sub=function sub(st,Wt){this._verify2(st,Wt);var Ot=st.sub(Wt);if(Ot.cmpn(0)<0){Ot.iadd(this.m)}return Ot._forceRed(this)};Red.prototype.isub=function isub(st,Wt){this._verify2(st,Wt);var Ot=st.isub(Wt);if(Ot.cmpn(0)<0){Ot.iadd(this.m)}return Ot};Red.prototype.shl=function shl(st,Wt){this._verify1(st);return this.imod(st.ushln(Wt))};Red.prototype.imul=function imul(st,Wt){this._verify2(st,Wt);return this.imod(st.imul(Wt))};Red.prototype.mul=function mul(st,Wt){this._verify2(st,Wt);return this.imod(st.mul(Wt))};Red.prototype.isqr=function isqr(st){return this.imul(st,st.clone())};Red.prototype.sqr=function sqr(st){return this.mul(st,st)};Red.prototype.sqrt=function sqrt(st){if(st.isZero())return st.clone();var Wt=this.m.andln(3);assert(Wt%2===1);if(Wt===3){var Ot=this.m.add(new BN(1)).iushrn(2);return this.pow(st,Ot)}var en=this.m.subn(1);var tn=0;while(!en.isZero()&&en.andln(1)===0){tn++;en.iushrn(1)}assert(!en.isZero());var nn=new BN(1).toRed(this);var an=nn.redNeg();var In=this.m.subn(1).iushrn(1);var rn=this.m.bitLength();rn=new BN(2*rn*rn).toRed(this);while(this.pow(rn,In).cmp(an)!==0){rn.redIAdd(an)}var cn=this.pow(rn,en);var on=this.pow(st,en.addn(1).iushrn(1));var sn=this.pow(st,en);var dn=tn;while(sn.cmp(nn)!==0){var un=sn;for(var pn=0;un.cmp(nn)!==0;pn++){un=un.redSqr()}assert(pn=0;tn--){var cn=Wt.words[tn];for(var on=rn-1;on>=0;on--){var sn=cn>>on&1;if(nn!==en[0]){nn=this.sqr(nn)}if(sn===0&&an===0){In=0;continue}an<<=1;an|=sn;In++;if(In!==Ot&&(tn!==0||on!==0))continue;nn=this.mul(nn,en[an]);In=0;an=0}rn=26}return nn};Red.prototype.convertTo=function convertTo(st){var Wt=st.umod(this.m);return Wt===st?Wt.clone():Wt};Red.prototype.convertFrom=function convertFrom(st){var Wt=st.clone();Wt.red=null;return Wt};BN.mont=function mont(st){return new Mont(st)};function Mont(st){Red.call(this,st);this.shift=this.m.bitLength();if(this.shift%26!==0){this.shift+=26-this.shift%26}this.r=new BN(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)}inherits2(Mont,Red);Mont.prototype.convertTo=function convertTo(st){return this.imod(st.ushln(this.shift))};Mont.prototype.convertFrom=function convertFrom(st){var Wt=this.imod(st.mul(this.rinv));Wt.red=null;return Wt};Mont.prototype.imul=function imul(st,Wt){if(st.isZero()||Wt.isZero()){st.words[0]=0;st.length=1;return st}var Ot=st.imul(Wt);var en=Ot.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);var tn=Ot.isub(en).iushrn(this.shift);var nn=tn;if(tn.cmp(this.m)>=0){nn=tn.isub(this.m)}else if(tn.cmpn(0)<0){nn=tn.iadd(this.m)}return nn._forceRed(this)};Mont.prototype.mul=function mul(st,Wt){if(st.isZero()||Wt.isZero())return new BN(0)._forceRed(this);var Ot=st.mul(Wt);var en=Ot.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);var tn=Ot.isub(en).iushrn(this.shift);var nn=tn;if(tn.cmp(this.m)>=0){nn=tn.isub(this.m)}else if(tn.cmpn(0)<0){nn=tn.iadd(this.m)}return nn._forceRed(this)};Mont.prototype.invm=function invm(st){var Wt=this.imod(st._invmp(this.m).mul(this.r2));return Wt._forceRed(this)}})(typeof Wt==="undefined"||Wt,st)}});var on=__commonJS({"node_modules/@ethersproject/logger/lib/_version.js"(st){"use strict";Object.defineProperty(st,"__esModule",{value:true});st.version=void 0;st.version="logger/5.7.0"}});var sn=__commonJS({"node_modules/@ethersproject/logger/lib/index.js"(st){"use strict";Object.defineProperty(st,"__esModule",{value:true});st.Logger=st.ErrorCode=st.LogLevel=void 0;var Wt=false;var Ot=false;var en={debug:1,default:2,info:2,warning:3,error:4,off:5};var tn=en["default"];var nn=on();var an=null;function _checkNormalize(){try{var st=[];["NFD","NFC","NFKD","NFKC"].forEach((function(Wt){try{if("test".normalize(Wt)!=="test"){throw new Error("bad normalize")}}catch(Ot){st.push(Wt)}}));if(st.length){throw new Error("missing "+st.join(", "))}if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769)){throw new Error("broken implementation")}}catch(st){return st.message}return null}var In=_checkNormalize();var rn;(function(st){st["DEBUG"]="DEBUG";st["INFO"]="INFO";st["WARNING"]="WARNING";st["ERROR"]="ERROR";st["OFF"]="OFF"})(rn=st.LogLevel||(st.LogLevel={}));var cn;(function(st){st["UNKNOWN_ERROR"]="UNKNOWN_ERROR";st["NOT_IMPLEMENTED"]="NOT_IMPLEMENTED";st["UNSUPPORTED_OPERATION"]="UNSUPPORTED_OPERATION";st["NETWORK_ERROR"]="NETWORK_ERROR";st["SERVER_ERROR"]="SERVER_ERROR";st["TIMEOUT"]="TIMEOUT";st["BUFFER_OVERRUN"]="BUFFER_OVERRUN";st["NUMERIC_FAULT"]="NUMERIC_FAULT";st["MISSING_NEW"]="MISSING_NEW";st["INVALID_ARGUMENT"]="INVALID_ARGUMENT";st["MISSING_ARGUMENT"]="MISSING_ARGUMENT";st["UNEXPECTED_ARGUMENT"]="UNEXPECTED_ARGUMENT";st["CALL_EXCEPTION"]="CALL_EXCEPTION";st["INSUFFICIENT_FUNDS"]="INSUFFICIENT_FUNDS";st["NONCE_EXPIRED"]="NONCE_EXPIRED";st["REPLACEMENT_UNDERPRICED"]="REPLACEMENT_UNDERPRICED";st["UNPREDICTABLE_GAS_LIMIT"]="UNPREDICTABLE_GAS_LIMIT";st["TRANSACTION_REPLACED"]="TRANSACTION_REPLACED";st["ACTION_REJECTED"]="ACTION_REJECTED"})(cn=st.ErrorCode||(st.ErrorCode={}));var sn="0123456789abcdef";var dn=function(){function Logger2(st){Object.defineProperty(this,"version",{enumerable:true,value:st,writable:false})}Logger2.prototype._log=function(st,Wt){var Ot=st.toLowerCase();if(en[Ot]==null){this.throwArgumentError("invalid log level name","logLevel",st)}if(tn>en[Ot]){return}console.log.apply(console,Wt)};Logger2.prototype.debug=function(){var st=[];for(var Wt=0;Wt>4];Ot+=sn[Wt[nn]&15]}tn.push(st+"=Uint8Array(0x"+Ot+")")}else{tn.push(st+"="+JSON.stringify(Wt))}}catch(Wt){tn.push(st+"="+JSON.stringify(en[st].toString()))}}));tn.push("code="+Wt);tn.push("version="+this.version);var nn=st;var an="";switch(Wt){case cn.NUMERIC_FAULT:{an="NUMERIC_FAULT";var In=st;switch(In){case"overflow":case"underflow":case"division-by-zero":an+="-"+In;break;case"negative-power":case"negative-width":an+="-unsupported";break;case"unbound-bitwise-result":an+="-unbound-result";break}break}case cn.CALL_EXCEPTION:case cn.INSUFFICIENT_FUNDS:case cn.MISSING_NEW:case cn.NONCE_EXPIRED:case cn.REPLACEMENT_UNDERPRICED:case cn.TRANSACTION_REPLACED:case cn.UNPREDICTABLE_GAS_LIMIT:an=Wt;break}if(an){st+=" [ See: https://links.ethers.org/v5-errors-"+an+" ]"}if(tn.length){st+=" ("+tn.join(", ")+")"}var rn=new Error(st);rn.reason=nn;rn.code=Wt;Object.keys(en).forEach((function(st){rn[st]=en[st]}));return rn};Logger2.prototype.throwError=function(st,Wt,Ot){throw this.makeError(st,Wt,Ot)};Logger2.prototype.throwArgumentError=function(st,Wt,Ot){return this.throwError(st,Logger2.errors.INVALID_ARGUMENT,{argument:Wt,value:Ot})};Logger2.prototype.assert=function(st,Wt,Ot,en){if(!!st){return}this.throwError(Wt,Ot,en)};Logger2.prototype.assertArgument=function(st,Wt,Ot,en){if(!!st){return}this.throwArgumentError(Wt,Ot,en)};Logger2.prototype.checkNormalize=function(st){if(st==null){st="platform missing String.prototype.normalize"}if(In){this.throwError("platform missing String.prototype.normalize",Logger2.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:In})}};Logger2.prototype.checkSafeUint53=function(st,Wt){if(typeof st!=="number"){return}if(Wt==null){Wt="value not safe"}if(st<0||st>=9007199254740991){this.throwError(Wt,Logger2.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:st})}if(st%1){this.throwError(Wt,Logger2.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:st})}};Logger2.prototype.checkArgumentCount=function(st,Wt,Ot){if(Ot){Ot=": "+Ot}else{Ot=""}if(stWt){this.throwError("too many arguments"+Ot,Logger2.errors.UNEXPECTED_ARGUMENT,{count:st,expectedCount:Wt})}};Logger2.prototype.checkNew=function(st,Wt){if(st===Object||st==null){this.throwError("missing new",Logger2.errors.MISSING_NEW,{name:Wt.name})}};Logger2.prototype.checkAbstract=function(st,Wt){if(st===Wt){this.throwError("cannot instantiate abstract class "+JSON.stringify(Wt.name)+" directly; use a sub-class",Logger2.errors.UNSUPPORTED_OPERATION,{name:st.name,operation:"new"})}else if(st===Object||st==null){this.throwError("missing new",Logger2.errors.MISSING_NEW,{name:Wt.name})}};Logger2.globalLogger=function(){if(!an){an=new Logger2(nn.version)}return an};Logger2.setCensorship=function(st,en){if(!st&&en){this.globalLogger().throwError("cannot permanently disable censorship",Logger2.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}if(Wt){if(!st){return}this.globalLogger().throwError("error censorship permanent",Logger2.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}Ot=!!st;Wt=!!en};Logger2.setLogLevel=function(st){var Wt=en[st.toLowerCase()];if(Wt==null){Logger2.globalLogger().warn("invalid log level - "+st);return}tn=Wt};Logger2.from=function(st){return new Logger2(st)};Logger2.errors=cn;Logger2.levels=rn;return Logger2}();st.Logger=dn}});var dn=__commonJS({"node_modules/@ethersproject/bytes/lib/_version.js"(st){"use strict";Object.defineProperty(st,"__esModule",{value:true});st.version=void 0;st.version="bytes/5.7.0"}});var un=__commonJS({"node_modules/@ethersproject/bytes/lib/index.js"(st){"use strict";Object.defineProperty(st,"__esModule",{value:true});st.joinSignature=st.splitSignature=st.hexZeroPad=st.hexStripZeros=st.hexValue=st.hexConcat=st.hexDataSlice=st.hexDataLength=st.hexlify=st.isHexString=st.zeroPad=st.stripZeros=st.concat=st.arrayify=st.isBytes=st.isBytesLike=void 0;var Wt=sn();var Ot=dn();var en=new Wt.Logger(Ot.version);function isHexable(st){return!!st.toHexString}function addSlice(st){if(st.slice){return st}st.slice=function(){var Wt=Array.prototype.slice.call(arguments);return addSlice(new Uint8Array(Array.prototype.slice.apply(st,Wt)))};return st}function isBytesLike(st){return isHexString(st)&&!(st.length%2)||isBytes(st)}st.isBytesLike=isBytesLike;function isInteger(st){return typeof st==="number"&&st==st&&st%1===0}function isBytes(st){if(st==null){return false}if(st.constructor===Uint8Array){return true}if(typeof st==="string"){return false}if(!isInteger(st.length)||st.length<0){return false}for(var Wt=0;Wt=256){return false}}return true}st.isBytes=isBytes;function arrayify(st,Wt){if(!Wt){Wt={}}if(typeof st==="number"){en.checkSafeUint53(st,"invalid arrayify value");var Ot=[];while(st){Ot.unshift(st&255);st=parseInt(String(st/256))}if(Ot.length===0){Ot.push(0)}return addSlice(new Uint8Array(Ot))}if(Wt.allowMissingPrefix&&typeof st==="string"&&st.substring(0,2)!=="0x"){st="0x"+st}if(isHexable(st)){st=st.toHexString()}if(isHexString(st)){var tn=st.substring(2);if(tn.length%2){if(Wt.hexPad==="left"){tn="0"+tn}else if(Wt.hexPad==="right"){tn+="0"}else{en.throwArgumentError("hex data is odd-length","value",st)}}var Ot=[];for(var nn=0;nnWt){en.throwArgumentError("value out of range","value",arguments[0])}var Ot=new Uint8Array(Wt);Ot.set(st,Wt-st.length);return addSlice(Ot)}st.zeroPad=zeroPad;function isHexString(st,Wt){if(typeof st!=="string"||!st.match(/^0x[0-9A-Fa-f]*$/)){return false}if(Wt&&st.length!==2+2*Wt){return false}return true}st.isHexString=isHexString;var tn="0123456789abcdef";function hexlify(st,Wt){if(!Wt){Wt={}}if(typeof st==="number"){en.checkSafeUint53(st,"invalid hexlify value");var Ot="";while(st){Ot=tn[st&15]+Ot;st=Math.floor(st/16)}if(Ot.length){if(Ot.length%2){Ot="0"+Ot}return"0x"+Ot}return"0x00"}if(typeof st==="bigint"){st=st.toString(16);if(st.length%2){return"0x0"+st}return"0x"+st}if(Wt.allowMissingPrefix&&typeof st==="string"&&st.substring(0,2)!=="0x"){st="0x"+st}if(isHexable(st)){return st.toHexString()}if(isHexString(st)){if(st.length%2){if(Wt.hexPad==="left"){st="0x0"+st.substring(2)}else if(Wt.hexPad==="right"){st+="0"}else{en.throwArgumentError("hex data is odd-length","value",st)}}return st.toLowerCase()}if(isBytes(st)){var nn="0x";for(var an=0;an>4]+tn[In&15]}return nn}return en.throwArgumentError("invalid hexlify value","value",st)}st.hexlify=hexlify;function hexDataLength(st){if(typeof st!=="string"){st=hexlify(st)}else if(!isHexString(st)||st.length%2){return null}return(st.length-2)/2}st.hexDataLength=hexDataLength;function hexDataSlice(st,Wt,Ot){if(typeof st!=="string"){st=hexlify(st)}else if(!isHexString(st)||st.length%2){en.throwArgumentError("invalid hexData","value",st)}Wt=2+2*Wt;if(Ot!=null){return"0x"+st.substring(Wt,2+2*Ot)}return"0x"+st.substring(Wt)}st.hexDataSlice=hexDataSlice;function hexConcat(st){var Wt="0x";st.forEach((function(st){Wt+=hexlify(st).substring(2)}));return Wt}st.hexConcat=hexConcat;function hexValue(st){var Wt=hexStripZeros(hexlify(st,{hexPad:"left"}));if(Wt==="0x"){return"0x0"}return Wt}st.hexValue=hexValue;function hexStripZeros(st){if(typeof st!=="string"){st=hexlify(st)}if(!isHexString(st)){en.throwArgumentError("invalid hex string","value",st)}st=st.substring(2);var Wt=0;while(Wt2*Wt+2){en.throwArgumentError("value out of range","value",arguments[1])}while(st.length<2*Wt+2){st="0x0"+st.substring(2)}return st}st.hexZeroPad=hexZeroPad;function splitSignature(st){var Wt={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(isBytesLike(st)){var Ot=arrayify(st);if(Ot.length===64){Wt.v=27+(Ot[32]>>7);Ot[32]&=127;Wt.r=hexlify(Ot.slice(0,32));Wt.s=hexlify(Ot.slice(32,64))}else if(Ot.length===65){Wt.r=hexlify(Ot.slice(0,32));Wt.s=hexlify(Ot.slice(32,64));Wt.v=Ot[64]}else{en.throwArgumentError("invalid signature string","signature",st)}if(Wt.v<27){if(Wt.v===0||Wt.v===1){Wt.v+=27}else{en.throwArgumentError("signature invalid v byte","signature",st)}}Wt.recoveryParam=1-Wt.v%2;if(Wt.recoveryParam){Ot[32]|=128}Wt._vs=hexlify(Ot.slice(32,64))}else{Wt.r=st.r;Wt.s=st.s;Wt.v=st.v;Wt.recoveryParam=st.recoveryParam;Wt._vs=st._vs;if(Wt._vs!=null){var tn=zeroPad(arrayify(Wt._vs),32);Wt._vs=hexlify(tn);var nn=tn[0]>=128?1:0;if(Wt.recoveryParam==null){Wt.recoveryParam=nn}else if(Wt.recoveryParam!==nn){en.throwArgumentError("signature recoveryParam mismatch _vs","signature",st)}tn[0]&=127;var an=hexlify(tn);if(Wt.s==null){Wt.s=an}else if(Wt.s!==an){en.throwArgumentError("signature v mismatch _vs","signature",st)}}if(Wt.recoveryParam==null){if(Wt.v==null){en.throwArgumentError("signature missing v and recoveryParam","signature",st)}else if(Wt.v===0||Wt.v===1){Wt.recoveryParam=Wt.v}else{Wt.recoveryParam=1-Wt.v%2}}else{if(Wt.v==null){Wt.v=27+Wt.recoveryParam}else{var In=Wt.v===0||Wt.v===1?Wt.v:1-Wt.v%2;if(Wt.recoveryParam!==In){en.throwArgumentError("signature recoveryParam mismatch v","signature",st)}}}if(Wt.r==null||!isHexString(Wt.r)){en.throwArgumentError("signature missing or invalid r","signature",st)}else{Wt.r=hexZeroPad(Wt.r,32)}if(Wt.s==null||!isHexString(Wt.s)){en.throwArgumentError("signature missing or invalid s","signature",st)}else{Wt.s=hexZeroPad(Wt.s,32)}var rn=arrayify(Wt.s);if(rn[0]>=128){en.throwArgumentError("signature s out of range","signature",st)}if(Wt.recoveryParam){rn[0]|=128}var cn=hexlify(rn);if(Wt._vs){if(!isHexString(Wt._vs)){en.throwArgumentError("signature invalid _vs","signature",st)}Wt._vs=hexZeroPad(Wt._vs,32)}if(Wt._vs==null){Wt._vs=cn}else if(Wt._vs!==cn){en.throwArgumentError("signature _vs mismatch v and s","signature",st)}}Wt.yParityAndS=Wt._vs;Wt.compact=Wt.r+Wt.yParityAndS.substring(2);return Wt}st.splitSignature=splitSignature;function joinSignature(st){st=splitSignature(st);return hexlify(concat([st.r,st.s,st.recoveryParam?"0x1c":"0x1b"]))}st.joinSignature=joinSignature}});var pn=__commonJS({"node_modules/@ethersproject/bignumber/lib/_version.js"(st){"use strict";Object.defineProperty(st,"__esModule",{value:true});st.version=void 0;st.version="bignumber/5.7.0"}});var bn=__commonJS({"node_modules/@ethersproject/bignumber/lib/bignumber.js"(st){"use strict";var Wt=st&&st.__importDefault||function(st){return st&&st.__esModule?st:{default:st}};Object.defineProperty(st,"__esModule",{value:true});st._base16To36=st._base36To16=st.BigNumber=st.isBigNumberish=void 0;var Ot=Wt(cn());var en=Ot.default.BN;var tn=un();var nn=sn();var an=pn();var In=new nn.Logger(an.version);var rn={};var on=9007199254740991;function isBigNumberish(st){return st!=null&&(bn.isBigNumber(st)||typeof st==="number"&&st%1===0||typeof st==="string"&&!!st.match(/^-?[0-9]+$/)||(0,tn.isHexString)(st)||typeof st==="bigint"||(0,tn.isBytes)(st))}st.isBigNumberish=isBigNumberish;var dn=false;var bn=function(){function BigNumber2(st,Wt){if(st!==rn){In.throwError("cannot call constructor directly; use BigNumber.from",nn.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"})}this._hex=Wt;this._isBigNumber=true;Object.freeze(this)}BigNumber2.prototype.fromTwos=function(st){return toBigNumber(toBN(this).fromTwos(st))};BigNumber2.prototype.toTwos=function(st){return toBigNumber(toBN(this).toTwos(st))};BigNumber2.prototype.abs=function(){if(this._hex[0]==="-"){return BigNumber2.from(this._hex.substring(1))}return this};BigNumber2.prototype.add=function(st){return toBigNumber(toBN(this).add(toBN(st)))};BigNumber2.prototype.sub=function(st){return toBigNumber(toBN(this).sub(toBN(st)))};BigNumber2.prototype.div=function(st){var Wt=BigNumber2.from(st);if(Wt.isZero()){throwFault("division-by-zero","div")}return toBigNumber(toBN(this).div(toBN(st)))};BigNumber2.prototype.mul=function(st){return toBigNumber(toBN(this).mul(toBN(st)))};BigNumber2.prototype.mod=function(st){var Wt=toBN(st);if(Wt.isNeg()){throwFault("division-by-zero","mod")}return toBigNumber(toBN(this).umod(Wt))};BigNumber2.prototype.pow=function(st){var Wt=toBN(st);if(Wt.isNeg()){throwFault("negative-power","pow")}return toBigNumber(toBN(this).pow(Wt))};BigNumber2.prototype.and=function(st){var Wt=toBN(st);if(this.isNegative()||Wt.isNeg()){throwFault("unbound-bitwise-result","and")}return toBigNumber(toBN(this).and(Wt))};BigNumber2.prototype.or=function(st){var Wt=toBN(st);if(this.isNegative()||Wt.isNeg()){throwFault("unbound-bitwise-result","or")}return toBigNumber(toBN(this).or(Wt))};BigNumber2.prototype.xor=function(st){var Wt=toBN(st);if(this.isNegative()||Wt.isNeg()){throwFault("unbound-bitwise-result","xor")}return toBigNumber(toBN(this).xor(Wt))};BigNumber2.prototype.mask=function(st){if(this.isNegative()||st<0){throwFault("negative-width","mask")}return toBigNumber(toBN(this).maskn(st))};BigNumber2.prototype.shl=function(st){if(this.isNegative()||st<0){throwFault("negative-width","shl")}return toBigNumber(toBN(this).shln(st))};BigNumber2.prototype.shr=function(st){if(this.isNegative()||st<0){throwFault("negative-width","shr")}return toBigNumber(toBN(this).shrn(st))};BigNumber2.prototype.eq=function(st){return toBN(this).eq(toBN(st))};BigNumber2.prototype.lt=function(st){return toBN(this).lt(toBN(st))};BigNumber2.prototype.lte=function(st){return toBN(this).lte(toBN(st))};BigNumber2.prototype.gt=function(st){return toBN(this).gt(toBN(st))};BigNumber2.prototype.gte=function(st){return toBN(this).gte(toBN(st))};BigNumber2.prototype.isNegative=function(){return this._hex[0]==="-"};BigNumber2.prototype.isZero=function(){return toBN(this).isZero()};BigNumber2.prototype.toNumber=function(){try{return toBN(this).toNumber()}catch(st){throwFault("overflow","toNumber",this.toString())}return null};BigNumber2.prototype.toBigInt=function(){try{return BigInt(this.toString())}catch(st){}return In.throwError("this platform does not support BigInt",nn.Logger.errors.UNSUPPORTED_OPERATION,{value:this.toString()})};BigNumber2.prototype.toString=function(){if(arguments.length>0){if(arguments[0]===10){if(!dn){dn=true;In.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")}}else if(arguments[0]===16){In.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",nn.Logger.errors.UNEXPECTED_ARGUMENT,{})}else{In.throwError("BigNumber.toString does not accept parameters",nn.Logger.errors.UNEXPECTED_ARGUMENT,{})}}return toBN(this).toString(10)};BigNumber2.prototype.toHexString=function(){return this._hex};BigNumber2.prototype.toJSON=function(st){return{type:"BigNumber",hex:this.toHexString()}};BigNumber2.from=function(st){if(st instanceof BigNumber2){return st}if(typeof st==="string"){if(st.match(/^-?0x[0-9a-f]+$/i)){return new BigNumber2(rn,toHex(st))}if(st.match(/^-?[0-9]+$/)){return new BigNumber2(rn,toHex(new en(st)))}return In.throwArgumentError("invalid BigNumber string","value",st)}if(typeof st==="number"){if(st%1){throwFault("underflow","BigNumber.from",st)}if(st>=on||st<=-on){throwFault("overflow","BigNumber.from",st)}return BigNumber2.from(String(st))}var Wt=st;if(typeof Wt==="bigint"){return BigNumber2.from(Wt.toString())}if((0,tn.isBytes)(Wt)){return BigNumber2.from((0,tn.hexlify)(Wt))}if(Wt){if(Wt.toHexString){var Ot=Wt.toHexString();if(typeof Ot==="string"){return BigNumber2.from(Ot)}}else{var Ot=Wt._hex;if(Ot==null&&Wt.type==="BigNumber"){Ot=Wt.hex}if(typeof Ot==="string"){if((0,tn.isHexString)(Ot)||Ot[0]==="-"&&(0,tn.isHexString)(Ot.substring(1))){return BigNumber2.from(Ot)}}}}return In.throwArgumentError("invalid BigNumber value","value",st)};BigNumber2.isBigNumber=function(st){return!!(st&&st._isBigNumber)};return BigNumber2}();st.BigNumber=bn;function toHex(st){if(typeof st!=="string"){return toHex(st.toString(16))}if(st[0]==="-"){st=st.substring(1);if(st[0]==="-"){In.throwArgumentError("invalid hex","value",st)}st=toHex(st);if(st==="0x00"){return st}return"-"+st}if(st.substring(0,2)!=="0x"){st="0x"+st}if(st==="0x"){return"0x00"}if(st.length%2){st="0x0"+st.substring(2)}while(st.length>4&&st.substring(0,4)==="0x00"){st="0x"+st.substring(4)}return st}function toBigNumber(st){return bn.from(toHex(st))}function toBN(st){var Wt=bn.from(st).toHexString();if(Wt[0]==="-"){return new en("-"+Wt.substring(3),16)}return new en(Wt.substring(2),16)}function throwFault(st,Wt,Ot){var en={fault:st,operation:Wt};if(Ot!=null){en.value=Ot}return In.throwError(st,nn.Logger.errors.NUMERIC_FAULT,en)}function _base36To16(st){return new en(st,36).toString(16)}st._base36To16=_base36To16;function _base16To36(st){return new en(st,16).toString(36)}st._base16To36=_base16To36}});var mn=__commonJS({"node_modules/@ethersproject/bignumber/lib/fixednumber.js"(st){"use strict";Object.defineProperty(st,"__esModule",{value:true});st.FixedNumber=st.FixedFormat=st.parseFixed=st.formatFixed=void 0;var Wt=un();var Ot=sn();var en=pn();var tn=new Ot.Logger(en.version);var nn=bn();var an={};var In=nn.BigNumber.from(0);var rn=nn.BigNumber.from(-1);function throwFault(st,Wt,en,nn){var an={fault:Wt,operation:en};if(nn!==void 0){an.value=nn}return tn.throwError(st,Ot.Logger.errors.NUMERIC_FAULT,an)}var cn="0";while(cn.length<256){cn+=cn}function getMultiplier(st){if(typeof st!=="number"){try{st=nn.BigNumber.from(st).toNumber()}catch(st){}}if(typeof st==="number"&&st>=0&&st<=256&&!(st%1)){return"1"+cn.substring(0,st)}return tn.throwArgumentError("invalid decimal size","decimals",st)}function formatFixed(st,Wt){if(Wt==null){Wt=0}var Ot=getMultiplier(Wt);st=nn.BigNumber.from(st);var en=st.lt(In);if(en){st=st.mul(rn)}var tn=st.mod(Ot).toString();while(tn.length2){tn.throwArgumentError("too many decimal points","value",st)}var In=an[0],cn=an[1];if(!In){In="0"}if(!cn){cn="0"}while(cn[cn.length-1]==="0"){cn=cn.substring(0,cn.length-1)}if(cn.length>Ot.length-1){throwFault("fractional component exceeds decimals","underflow","parseFixed")}if(cn===""){cn="0"}while(cn.length80){tn.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",en)}return new FixedFormat2(an,Wt,Ot,en)};return FixedFormat2}();st.FixedFormat=on;var dn=function(){function FixedNumber2(st,Wt,en,nn){if(st!==an){tn.throwError("cannot use FixedNumber constructor; use FixedNumber.from",Ot.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"})}this.format=nn;this._hex=Wt;this._value=en;this._isFixedNumber=true;Object.freeze(this)}FixedNumber2.prototype._checkFormat=function(st){if(this.format.name!==st.format.name){tn.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",st)}};FixedNumber2.prototype.addUnsafe=function(st){this._checkFormat(st);var Wt=parseFixed(this._value,this.format.decimals);var Ot=parseFixed(st._value,st.format.decimals);return FixedNumber2.fromValue(Wt.add(Ot),this.format.decimals,this.format)};FixedNumber2.prototype.subUnsafe=function(st){this._checkFormat(st);var Wt=parseFixed(this._value,this.format.decimals);var Ot=parseFixed(st._value,st.format.decimals);return FixedNumber2.fromValue(Wt.sub(Ot),this.format.decimals,this.format)};FixedNumber2.prototype.mulUnsafe=function(st){this._checkFormat(st);var Wt=parseFixed(this._value,this.format.decimals);var Ot=parseFixed(st._value,st.format.decimals);return FixedNumber2.fromValue(Wt.mul(Ot).div(this.format._multiplier),this.format.decimals,this.format)};FixedNumber2.prototype.divUnsafe=function(st){this._checkFormat(st);var Wt=parseFixed(this._value,this.format.decimals);var Ot=parseFixed(st._value,st.format.decimals);return FixedNumber2.fromValue(Wt.mul(this.format._multiplier).div(Ot),this.format.decimals,this.format)};FixedNumber2.prototype.floor=function(){var st=this.toString().split(".");if(st.length===1){st.push("0")}var Wt=FixedNumber2.from(st[0],this.format);var Ot=!st[1].match(/^(0*)$/);if(this.isNegative()&&Ot){Wt=Wt.subUnsafe(mn.toFormat(Wt.format))}return Wt};FixedNumber2.prototype.ceiling=function(){var st=this.toString().split(".");if(st.length===1){st.push("0")}var Wt=FixedNumber2.from(st[0],this.format);var Ot=!st[1].match(/^(0*)$/);if(!this.isNegative()&&Ot){Wt=Wt.addUnsafe(mn.toFormat(Wt.format))}return Wt};FixedNumber2.prototype.round=function(st){if(st==null){st=0}var Wt=this.toString().split(".");if(Wt.length===1){Wt.push("0")}if(st<0||st>80||st%1){tn.throwArgumentError("invalid decimal count","decimals",st)}if(Wt[1].length<=st){return this}var Ot=FixedNumber2.from("1"+cn.substring(0,st),this.format);var en=Gn.toFormat(this.format);return this.mulUnsafe(Ot).addUnsafe(en).floor().divUnsafe(Ot)};FixedNumber2.prototype.isZero=function(){return this._value==="0.0"||this._value==="0"};FixedNumber2.prototype.isNegative=function(){return this._value[0]==="-"};FixedNumber2.prototype.toString=function(){return this._value};FixedNumber2.prototype.toHexString=function(st){if(st==null){return this._hex}if(st%8){tn.throwArgumentError("invalid byte width","width",st)}var Ot=nn.BigNumber.from(this._hex).fromTwos(this.format.width).toTwos(st).toHexString();return(0,Wt.hexZeroPad)(Ot,st/8)};FixedNumber2.prototype.toUnsafeFloat=function(){return parseFloat(this.toString())};FixedNumber2.prototype.toFormat=function(st){return FixedNumber2.fromString(this._value,st)};FixedNumber2.fromValue=function(st,Wt,Ot){if(Ot==null&&Wt!=null&&!(0,nn.isBigNumberish)(Wt)){Ot=Wt;Wt=null}if(Wt==null){Wt=0}if(Ot==null){Ot="fixed"}return FixedNumber2.fromString(formatFixed(st,Wt),on.from(Ot))};FixedNumber2.fromString=function(st,Ot){if(Ot==null){Ot="fixed"}var en=on.from(Ot);var tn=parseFixed(st,en.decimals);if(!en.signed&&tn.lt(In)){throwFault("unsigned value cannot be negative","overflow","value",st)}var nn=null;if(en.signed){nn=tn.toTwos(en.width).toHexString()}else{nn=tn.toHexString();nn=(0,Wt.hexZeroPad)(nn,en.width/8)}var rn=formatFixed(tn,en.decimals);return new FixedNumber2(an,nn,rn,en)};FixedNumber2.fromBytes=function(st,Ot){if(Ot==null){Ot="fixed"}var en=on.from(Ot);if((0,Wt.arrayify)(st).length>en.width/8){throw new Error("overflow")}var tn=nn.BigNumber.from(st);if(en.signed){tn=tn.fromTwos(en.width)}var In=tn.toTwos((en.signed?0:1)+en.width).toHexString();var rn=formatFixed(tn,en.decimals);return new FixedNumber2(an,In,rn,en)};FixedNumber2.from=function(st,en){if(typeof st==="string"){return FixedNumber2.fromString(st,en)}if((0,Wt.isBytes)(st)){return FixedNumber2.fromBytes(st,en)}try{return FixedNumber2.fromValue(st,0,en)}catch(st){if(st.code!==Ot.Logger.errors.INVALID_ARGUMENT){throw st}}return tn.throwArgumentError("invalid FixedNumber value","value",st)};FixedNumber2.isFixedNumber=function(st){return!!(st&&st._isFixedNumber)};return FixedNumber2}();st.FixedNumber=dn;var mn=dn.from(1);var Gn=dn.from("0.5")}});var Gn=__commonJS({"node_modules/@ethersproject/bignumber/lib/index.js"(st){"use strict";Object.defineProperty(st,"__esModule",{value:true});st._base36To16=st._base16To36=st.parseFixed=st.FixedNumber=st.FixedFormat=st.formatFixed=st.BigNumber=void 0;var Wt=bn();Object.defineProperty(st,"BigNumber",{enumerable:true,get:function(){return Wt.BigNumber}});var Ot=mn();Object.defineProperty(st,"formatFixed",{enumerable:true,get:function(){return Ot.formatFixed}});Object.defineProperty(st,"FixedFormat",{enumerable:true,get:function(){return Ot.FixedFormat}});Object.defineProperty(st,"FixedNumber",{enumerable:true,get:function(){return Ot.FixedNumber}});Object.defineProperty(st,"parseFixed",{enumerable:true,get:function(){return Ot.parseFixed}});var en=bn();Object.defineProperty(st,"_base16To36",{enumerable:true,get:function(){return en._base16To36}});Object.defineProperty(st,"_base36To16",{enumerable:true,get:function(){return en._base36To16}})}});var hn=__commonJS({"node_modules/@ethersproject/properties/lib/_version.js"(st){"use strict";Object.defineProperty(st,"__esModule",{value:true});st.version=void 0;st.version="properties/5.7.0"}});var Zn=__commonJS({"node_modules/@ethersproject/properties/lib/index.js"(st){"use strict";var Wt=st&&st.__awaiter||function(st,Wt,Ot,en){function adopt(st){return st instanceof Ot?st:new Ot((function(Wt){Wt(st)}))}return new(Ot||(Ot=Promise))((function(Ot,tn){function fulfilled(st){try{step(en.next(st))}catch(st){tn(st)}}function rejected(st){try{step(en["throw"](st))}catch(st){tn(st)}}function step(st){st.done?Ot(st.value):adopt(st.value).then(fulfilled,rejected)}step((en=en.apply(st,Wt||[])).next())}))};var Ot=st&&st.__generator||function(st,Wt){var Ot={label:0,sent:function(){if(nn[0]&1)throw nn[1];return nn[1]},trys:[],ops:[]},en,tn,nn,an;return an={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(an[Symbol.iterator]=function(){return this}),an;function verb(st){return function(Wt){return step([st,Wt])}}function step(an){if(en)throw new TypeError("Generator is already executing.");while(Ot)try{if(en=1,tn&&(nn=an[0]&2?tn["return"]:an[0]?tn["throw"]||((nn=tn["return"])&&nn.call(tn),0):tn.next)&&!(nn=nn.call(tn,an[1])).done)return nn;if(tn=0,nn)an=[an[0]&2,nn.value];switch(an[0]){case 0:case 1:nn=an;break;case 4:Ot.label++;return{value:an[1],done:false};case 5:Ot.label++;tn=an[1];an=[0];continue;case 7:an=Ot.ops.pop();Ot.trys.pop();continue;default:if(!(nn=Ot.trys,nn=nn.length>0&&nn[nn.length-1])&&(an[0]===6||an[0]===2)){Ot=0;continue}if(an[0]===3&&(!nn||an[1]>nn[0]&&an[1]0&&nn[nn.length-1])&&(an[0]===6||an[0]===2)){Ot=0;continue}if(an[0]===3&&(!nn||an[1]>nn[0]&&an[1]0){en.push(nn%this.base);nn=nn/this.base|0}}var In="";for(var rn=0;Ot[rn]===0&&rn=0;--cn){In+=this.alphabet[en[cn]]}return In};BaseX2.prototype.decode=function(st){if(typeof st!=="string"){throw new TypeError("Expected String")}var Ot=[];if(st.length===0){return new Uint8Array(Ot)}Ot.push(0);for(var en=0;en>=8}while(nn>0){Ot.push(nn&255);nn>>=8}}for(var In=0;st[In]===this._leader&&In>5;this.byteCount=this.blockCount<<2;this.outputBlocks=Ot>>5;this.extraBytes=(Ot&31)>>3;for(var en=0;en<50;++en){this.s[en]=0}}Keccak.prototype.update=function(Wt){if(this.finalized){throw new Error(Ot)}var en,tn=typeof Wt;if(tn!=="string"){if(tn==="object"){if(Wt===null){throw new Error(st)}else if(cn&&Wt.constructor===ArrayBuffer){Wt=new Uint8Array(Wt)}else if(!Array.isArray(Wt)){if(!cn||!ArrayBuffer.isView(Wt)){throw new Error(st)}}}else{throw new Error(st)}en=true}var nn=this.blocks,an=this.byteCount,In=Wt.length,rn=this.blockCount,on=0,sn=this.s,dn,un;while(on>2]|=Wt[on]<>2]|=un<>2]|=(192|un>>6)<>2]|=(128|un&63)<=57344){nn[dn>>2]|=(224|un>>12)<>2]|=(128|un>>6&63)<>2]|=(128|un&63)<>2]|=(240|un>>18)<>2]|=(128|un>>12&63)<>2]|=(128|un>>6&63)<>2]|=(128|un&63)<=an){this.start=dn-an;this.block=nn[rn];for(dn=0;dn>8;Ot=st&255;while(Ot>0){tn.unshift(Ot);st=st>>8;Ot=st&255;++en}if(Wt){tn.push(en)}else{tn.unshift(en)}this.update(tn);return tn.length};Keccak.prototype.encodeString=function(Wt){var Ot,en=typeof Wt;if(en!=="string"){if(en==="object"){if(Wt===null){throw new Error(st)}else if(cn&&Wt.constructor===ArrayBuffer){Wt=new Uint8Array(Wt)}else if(!Array.isArray(Wt)){if(!cn||!ArrayBuffer.isView(Wt)){throw new Error(st)}}}else{throw new Error(st)}Ot=true}var tn=0,nn=Wt.length;if(Ot){tn=nn}else{for(var an=0;an=57344){tn+=3}else{In=65536+((In&1023)<<10|Wt.charCodeAt(++an)&1023);tn+=4}}}tn+=this.encode(tn*8);this.update(Wt);return tn};Keccak.prototype.bytepad=function(st,Wt){var Ot=this.encode(Wt);for(var en=0;en>2]|=this.padding[Wt&3];if(this.lastByteIndex===this.byteCount){st[0]=st[Ot];for(Wt=1;Wt>4&15]+on[In&15]+on[In>>12&15]+on[In>>8&15]+on[In>>20&15]+on[In>>16&15]+on[In>>28&15]+on[In>>24&15]}if(nn%st===0){f(Wt);tn=0}}if(en){In=Wt[tn];an+=on[In>>4&15]+on[In&15];if(en>1){an+=on[In>>12&15]+on[In>>8&15]}if(en>2){an+=on[In>>20&15]+on[In>>16&15]}}return an};Keccak.prototype.arrayBuffer=function(){this.finalize();var st=this.blockCount,Wt=this.s,Ot=this.outputBlocks,en=this.extraBytes,tn=0,nn=0;var an=this.outputBits>>3;var In;if(en){In=new ArrayBuffer(Ot+1<<2)}else{In=new ArrayBuffer(an)}var rn=new Uint32Array(In);while(nn>8&255;an[In+2]=rn>>16&255;an[In+3]=rn>>24&255}if(nn%st===0){f(Wt)}}if(en){In=nn<<2;rn=Wt[tn];an[In]=rn&255;if(en>1){an[In+1]=rn>>8&255}if(en>2){an[In+2]=rn>>16&255}}return an};function Kmac(st,Wt,Ot){Keccak.call(this,st,Wt,Ot)}Kmac.prototype=new Keccak;Kmac.prototype.finalize=function(){this.encode(this.outputBits,true);return Keccak.prototype.finalize.call(this)};var f=function(st){var Wt,Ot,en,tn,nn,an,In,rn,cn,on,sn,dn,un,pn,bn,Gn,hn,Zn,An,Wn,Nn,gn,yn,vn,Yn,En,Vn,Rn,wn,Fn,Qn,fn,Hn,Cn,Xn,kn,Jn,Ln,Bn,xn,On,Tn,Mn,Un,zn,Sn,jn,Dn,Kn,_n,Pn,qn,$n,el,tl,nl,ll,al,Il,rl,cl,ol,sl;for(en=0;en<48;en+=2){tn=st[0]^st[10]^st[20]^st[30]^st[40];nn=st[1]^st[11]^st[21]^st[31]^st[41];an=st[2]^st[12]^st[22]^st[32]^st[42];In=st[3]^st[13]^st[23]^st[33]^st[43];rn=st[4]^st[14]^st[24]^st[34]^st[44];cn=st[5]^st[15]^st[25]^st[35]^st[45];on=st[6]^st[16]^st[26]^st[36]^st[46];sn=st[7]^st[17]^st[27]^st[37]^st[47];dn=st[8]^st[18]^st[28]^st[38]^st[48];un=st[9]^st[19]^st[29]^st[39]^st[49];Wt=dn^(an<<1|In>>>31);Ot=un^(In<<1|an>>>31);st[0]^=Wt;st[1]^=Ot;st[10]^=Wt;st[11]^=Ot;st[20]^=Wt;st[21]^=Ot;st[30]^=Wt;st[31]^=Ot;st[40]^=Wt;st[41]^=Ot;Wt=tn^(rn<<1|cn>>>31);Ot=nn^(cn<<1|rn>>>31);st[2]^=Wt;st[3]^=Ot;st[12]^=Wt;st[13]^=Ot;st[22]^=Wt;st[23]^=Ot;st[32]^=Wt;st[33]^=Ot;st[42]^=Wt;st[43]^=Ot;Wt=an^(on<<1|sn>>>31);Ot=In^(sn<<1|on>>>31);st[4]^=Wt;st[5]^=Ot;st[14]^=Wt;st[15]^=Ot;st[24]^=Wt;st[25]^=Ot;st[34]^=Wt;st[35]^=Ot;st[44]^=Wt;st[45]^=Ot;Wt=rn^(dn<<1|un>>>31);Ot=cn^(un<<1|dn>>>31);st[6]^=Wt;st[7]^=Ot;st[16]^=Wt;st[17]^=Ot;st[26]^=Wt;st[27]^=Ot;st[36]^=Wt;st[37]^=Ot;st[46]^=Wt;st[47]^=Ot;Wt=on^(tn<<1|nn>>>31);Ot=sn^(nn<<1|tn>>>31);st[8]^=Wt;st[9]^=Ot;st[18]^=Wt;st[19]^=Ot;st[28]^=Wt;st[29]^=Ot;st[38]^=Wt;st[39]^=Ot;st[48]^=Wt;st[49]^=Ot;pn=st[0];bn=st[1];Sn=st[11]<<4|st[10]>>>28;jn=st[10]<<4|st[11]>>>28;Rn=st[20]<<3|st[21]>>>29;wn=st[21]<<3|st[20]>>>29;rl=st[31]<<9|st[30]>>>23;cl=st[30]<<9|st[31]>>>23;Tn=st[40]<<18|st[41]>>>14;Mn=st[41]<<18|st[40]>>>14;Cn=st[2]<<1|st[3]>>>31;Xn=st[3]<<1|st[2]>>>31;Gn=st[13]<<12|st[12]>>>20;hn=st[12]<<12|st[13]>>>20;Dn=st[22]<<10|st[23]>>>22;Kn=st[23]<<10|st[22]>>>22;Fn=st[33]<<13|st[32]>>>19;Qn=st[32]<<13|st[33]>>>19;ol=st[42]<<2|st[43]>>>30;sl=st[43]<<2|st[42]>>>30;el=st[5]<<30|st[4]>>>2;tl=st[4]<<30|st[5]>>>2;kn=st[14]<<6|st[15]>>>26;Jn=st[15]<<6|st[14]>>>26;Zn=st[25]<<11|st[24]>>>21;An=st[24]<<11|st[25]>>>21;_n=st[34]<<15|st[35]>>>17;Pn=st[35]<<15|st[34]>>>17;fn=st[45]<<29|st[44]>>>3;Hn=st[44]<<29|st[45]>>>3;vn=st[6]<<28|st[7]>>>4;Yn=st[7]<<28|st[6]>>>4;nl=st[17]<<23|st[16]>>>9;ll=st[16]<<23|st[17]>>>9;Ln=st[26]<<25|st[27]>>>7;Bn=st[27]<<25|st[26]>>>7;Wn=st[36]<<21|st[37]>>>11;Nn=st[37]<<21|st[36]>>>11;qn=st[47]<<24|st[46]>>>8;$n=st[46]<<24|st[47]>>>8;Un=st[8]<<27|st[9]>>>5;zn=st[9]<<27|st[8]>>>5;En=st[18]<<20|st[19]>>>12;Vn=st[19]<<20|st[18]>>>12;al=st[29]<<7|st[28]>>>25;Il=st[28]<<7|st[29]>>>25;xn=st[38]<<8|st[39]>>>24;On=st[39]<<8|st[38]>>>24;gn=st[48]<<14|st[49]>>>18;yn=st[49]<<14|st[48]>>>18;st[0]=pn^~Gn&Zn;st[1]=bn^~hn&An;st[10]=vn^~En&Rn;st[11]=Yn^~Vn&wn;st[20]=Cn^~kn&Ln;st[21]=Xn^~Jn&Bn;st[30]=Un^~Sn&Dn;st[31]=zn^~jn&Kn;st[40]=el^~nl&al;st[41]=tl^~ll&Il;st[2]=Gn^~Zn&Wn;st[3]=hn^~An&Nn;st[12]=En^~Rn&Fn;st[13]=Vn^~wn&Qn;st[22]=kn^~Ln&xn;st[23]=Jn^~Bn&On;st[32]=Sn^~Dn&_n;st[33]=jn^~Kn&Pn;st[42]=nl^~al&rl;st[43]=ll^~Il&cl;st[4]=Zn^~Wn&gn;st[5]=An^~Nn&yn;st[14]=Rn^~Fn&fn;st[15]=wn^~Qn&Hn;st[24]=Ln^~xn&Tn;st[25]=Bn^~On&Mn;st[34]=Dn^~_n&qn;st[35]=Kn^~Pn&$n;st[44]=al^~rl&ol;st[45]=Il^~cl&sl;st[6]=Wn^~gn&pn;st[7]=Nn^~yn&bn;st[16]=Fn^~fn&vn;st[17]=Qn^~Hn&Yn;st[26]=xn^~Tn&Cn;st[27]=On^~Mn&Xn;st[36]=_n^~qn&Un;st[37]=Pn^~$n&zn;st[46]=rl^~ol⪙st[47]=cl^~sl&tl;st[8]=gn^~pn&Gn;st[9]=yn^~bn&hn;st[18]=fn^~vn&En;st[19]=Hn^~Yn&Vn;st[28]=Tn^~Cn&kn;st[29]=Mn^~Xn&Jn;st[38]=qn^~Un&Sn;st[39]=$n^~zn&jn;st[48]=ol^~el&nl;st[49]=sl^~tl≪st[0]^=mn[en];st[1]^=mn[en+1]}};if(In){Wt.exports=Nn}else{for(yn=0;yn>6!==2){break}nn++}return nn}if(st===an.OVERRUN){return Ot.length-Wt-1}return 0}function replaceFunc(st,Wt,Ot,en,tn){if(st===an.OVERLONG){en.push(tn);return 0}en.push(65533);return ignoreFunc(st,Wt,Ot,en,tn)}st.Utf8ErrorFuncs=Object.freeze({error:errorFunc,ignore:ignoreFunc,replace:replaceFunc});function getUtf8CodePoints(Ot,en){if(en==null){en=st.Utf8ErrorFuncs.error}Ot=(0,Wt.arrayify)(Ot);var tn=[];var nn=0;while(nn>7===0){tn.push(In);continue}var rn=null;var cn=null;if((In&224)===192){rn=1;cn=127}else if((In&240)===224){rn=2;cn=2047}else if((In&248)===240){rn=3;cn=65535}else{if((In&192)===128){nn+=en(an.UNEXPECTED_CONTINUE,nn-1,Ot,tn)}else{nn+=en(an.BAD_PREFIX,nn-1,Ot,tn)}continue}if(nn-1+rn>=Ot.length){nn+=en(an.OVERRUN,nn-1,Ot,tn);continue}var on=In&(1<<8-rn-1)-1;for(var sn=0;sn1114111){nn+=en(an.OUT_OF_RANGE,nn-1-rn,Ot,tn,on);continue}if(on>=55296&&on<=57343){nn+=en(an.UTF16_SURROGATE,nn-1-rn,Ot,tn,on);continue}if(on<=cn){nn+=en(an.OVERLONG,nn-1-rn,Ot,tn,on);continue}tn.push(on)}return tn}function toUtf8Bytes(st,Ot){if(Ot===void 0){Ot=nn.current}if(Ot!=nn.current){tn.checkNormalize();st=st.normalize(Ot)}var en=[];for(var an=0;an>6|192);en.push(In&63|128)}else if((In&64512)==55296){an++;var rn=st.charCodeAt(an);if(an>=st.length||(rn&64512)!==56320){throw new Error("invalid utf-8 string")}var cn=65536+((In&1023)<<10)+(rn&1023);en.push(cn>>18|240);en.push(cn>>12&63|128);en.push(cn>>6&63|128);en.push(cn&63|128)}else{en.push(In>>12|224);en.push(In>>6&63|128);en.push(In&63|128)}}return(0,Wt.arrayify)(en)}st.toUtf8Bytes=toUtf8Bytes;function escapeChar(st){var Wt="0000"+st.toString(16);return"\\u"+Wt.substring(Wt.length-4)}function _toEscapedUtf8String(st,Wt){return'"'+getUtf8CodePoints(st,Wt).map((function(st){if(st<256){switch(st){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(st>=32&&st<127){return String.fromCharCode(st)}}if(st<=65535){return escapeChar(st)}st-=65536;return escapeChar((st>>10&1023)+55296)+escapeChar((st&1023)+56320)})).join("")+'"'}st._toEscapedUtf8String=_toEscapedUtf8String;function _toUtf8String(st){return st.map((function(st){if(st<=65535){return String.fromCharCode(st)}st-=65536;return String.fromCharCode((st>>10&1023)+55296,(st&1023)+56320)})).join("")}st._toUtf8String=_toUtf8String;function toUtf8String(st,Wt){return _toUtf8String(getUtf8CodePoints(st,Wt))}st.toUtf8String=toUtf8String;function toUtf8CodePoints(st,Wt){if(Wt===void 0){Wt=nn.current}return getUtf8CodePoints(toUtf8Bytes(st,Wt))}st.toUtf8CodePoints=toUtf8CodePoints}});var Xn=__commonJS({"node_modules/@ethersproject/strings/lib/bytes32.js"(st){"use strict";Object.defineProperty(st,"__esModule",{value:true});st.parseBytes32String=st.formatBytes32String=void 0;var Wt=Fn();var Ot=un();var en=Cn();function formatBytes32String(st){var tn=(0,en.toUtf8Bytes)(st);if(tn.length>31){throw new Error("bytes32 string must be less than 32 bytes")}return(0,Ot.hexlify)((0,Ot.concat)([tn,Wt.HashZero]).slice(0,32))}st.formatBytes32String=formatBytes32String;function parseBytes32String(st){var Wt=(0,Ot.arrayify)(st);if(Wt.length!==32){throw new Error("invalid bytes32 - not 32 bytes long")}if(Wt[31]!==0){throw new Error("invalid bytes32 string - no null terminator")}var tn=31;while(Wt[tn-1]===0){tn--}return(0,en.toUtf8String)(Wt.slice(0,tn))}st.parseBytes32String=parseBytes32String}});var kn=__commonJS({"node_modules/@ethersproject/strings/lib/idna.js"(st){"use strict";Object.defineProperty(st,"__esModule",{value:true});st.nameprep=st._nameprepTableC=st._nameprepTableB2=st._nameprepTableA1=void 0;var Wt=Cn();function bytes2(st){if(st.length%4!==0){throw new Error("bad data")}var Wt=[];for(var Ot=0;Ot=Ot&&st<=Ot+tn.h&&(st-Ot)%(tn.d||1)===0){if(tn.e&&tn.e.indexOf(st-Ot)!==-1){continue}return tn}}return null}var Ot=createRangeTable("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d");var en="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map((function(st){return parseInt(st,16)}));var tn=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}];var nn=createTable("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3");var an=createTable("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7");var In=createTable("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",bytes2);var rn=createRangeTable("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function flatten(st){return st.reduce((function(st,Wt){Wt.forEach((function(Wt){st.push(Wt)}));return st}),[])}function _nameprepTableA1(st){return!!matchMap(st,Ot)}st._nameprepTableA1=_nameprepTableA1;function _nameprepTableB2(st){var Wt=matchMap(st,tn);if(Wt){return[st+Wt.s]}var Ot=nn[st];if(Ot){return Ot}var en=an[st];if(en){return[st+en[0]]}var rn=In[st];if(rn){return rn}return null}st._nameprepTableB2=_nameprepTableB2;function _nameprepTableC(st){return!!matchMap(st,rn)}st._nameprepTableC=_nameprepTableC;function nameprep(st){if(st.match(/^[a-z0-9-]*$/i)&&st.length<=59){return st.toLowerCase()}var Ot=(0,Wt.toUtf8CodePoints)(st);Ot=flatten(Ot.map((function(st){if(en.indexOf(st)>=0){return[]}if(st>=65024&&st<=65039){return[]}var Wt=_nameprepTableB2(st);if(Wt){return Wt}return[st]})));Ot=(0,Wt.toUtf8CodePoints)((0,Wt._toUtf8String)(Ot),Wt.UnicodeNormalizationForm.NFKC);Ot.forEach((function(st){if(_nameprepTableC(st)){throw new Error("STRINGPREP_CONTAINS_PROHIBITED")}}));Ot.forEach((function(st){if(_nameprepTableA1(st)){throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")}}));var tn=(0,Wt._toUtf8String)(Ot);if(tn.substring(0,1)==="-"||tn.substring(2,4)==="--"||tn.substring(tn.length-1)==="-"){throw new Error("invalid hyphen")}return tn}st.nameprep=nameprep}});var Jn=__commonJS({"node_modules/@ethersproject/strings/lib/index.js"(st){"use strict";Object.defineProperty(st,"__esModule",{value:true});st.nameprep=st.parseBytes32String=st.formatBytes32String=st.UnicodeNormalizationForm=st.Utf8ErrorReason=st.Utf8ErrorFuncs=st.toUtf8String=st.toUtf8CodePoints=st.toUtf8Bytes=st._toEscapedUtf8String=void 0;var Wt=Xn();Object.defineProperty(st,"formatBytes32String",{enumerable:true,get:function(){return Wt.formatBytes32String}});Object.defineProperty(st,"parseBytes32String",{enumerable:true,get:function(){return Wt.parseBytes32String}});var Ot=kn();Object.defineProperty(st,"nameprep",{enumerable:true,get:function(){return Ot.nameprep}});var en=Cn();Object.defineProperty(st,"_toEscapedUtf8String",{enumerable:true,get:function(){return en._toEscapedUtf8String}});Object.defineProperty(st,"toUtf8Bytes",{enumerable:true,get:function(){return en.toUtf8Bytes}});Object.defineProperty(st,"toUtf8CodePoints",{enumerable:true,get:function(){return en.toUtf8CodePoints}});Object.defineProperty(st,"toUtf8String",{enumerable:true,get:function(){return en.toUtf8String}});Object.defineProperty(st,"UnicodeNormalizationForm",{enumerable:true,get:function(){return en.UnicodeNormalizationForm}});Object.defineProperty(st,"Utf8ErrorFuncs",{enumerable:true,get:function(){return en.Utf8ErrorFuncs}});Object.defineProperty(st,"Utf8ErrorReason",{enumerable:true,get:function(){return en.Utf8ErrorReason}})}});var Ln=__commonJS({"node_modules/@ethersproject/hash/lib/id.js"(st){"use strict";Object.defineProperty(st,"__esModule",{value:true});st.id=void 0;var Wt=fn();var Ot=Jn();function id(st){return(0,Wt.keccak256)((0,Ot.toUtf8Bytes)(st))}st.id=id}});var Bn=__commonJS({"node_modules/@ethersproject/hash/lib/_version.js"(st){"use strict";Object.defineProperty(st,"__esModule",{value:true});st.version=void 0;st.version="hash/5.7.0"}});var xn=__commonJS({"node_modules/@ethersproject/hash/lib/ens-normalize/decoder.js"(st){"use strict";Object.defineProperty(st,"__esModule",{value:true});st.read_emoji_trie=st.read_zero_terminated_array=st.read_mapped_map=st.read_member_array=st.signed=st.read_compressed_payload=st.read_payload=st.decode_arithmetic=void 0;function flat(st,Wt){if(Wt==null){Wt=1}var Ot=[];var en=Ot.forEach;var flatDeep=function(st,Wt){en.call(st,(function(st){if(Wt>0&&Array.isArray(st)){flatDeep(st,Wt-1)}else{Ot.push(st)}}))};flatDeep(st,Wt);return Ot}function fromEntries(st){var Wt={};for(var Ot=0;Ot>--rn&1}var on=31;var sn=Math.pow(2,on);var dn=sn>>>1;var un=dn>>1;var pn=sn-1;var bn=0;for(var nn=0;nn1){var Nn=An+Wn>>>1;if(Zn>>1|read_bit();gn=gn<<1^dn;yn=(yn^dn)<<1|dn|1}Gn=gn;hn=1+yn-gn}var vn=Ot-4;return mn.map((function(Wt){switch(Wt-vn){case 3:return vn+65792+(st[In++]<<16|st[In++]<<8|st[In++]);case 2:return vn+256+(st[In++]<<8|st[In++]);case 1:return vn+st[In++];default:return Wt-1}}))}st.decode_arithmetic=decode_arithmetic;function read_payload(st){var Wt=0;return function(){return st[Wt++]}}st.read_payload=read_payload;function read_compressed_payload(st){return read_payload(decode_arithmetic(st))}st.read_compressed_payload=read_compressed_payload;function signed(st){return st&1?~st>>1:st>>1}st.signed=signed;function read_counts(st,Wt){var Ot=Array(st);for(var en=0;en>=1;var In=tn==1;var rn=tn==2;return{branches:Ot,valid:nn,fe0f:an,save:In,check:rn}}}st.read_emoji_trie=read_emoji_trie}});var On=__commonJS({"node_modules/@ethersproject/hash/lib/ens-normalize/include.js"(st){"use strict";Object.defineProperty(st,"__esModule",{value:true});st.getData=void 0;var Wt=vn();var Ot=xn();function getData(){return(0,Ot.read_compressed_payload)((0,Wt.decode)("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA=="))}st.getData=getData}});var Tn=__commonJS({"node_modules/@ethersproject/hash/lib/ens-normalize/lib.js"(st){"use strict";Object.defineProperty(st,"__esModule",{value:true});st.ens_normalize=st.ens_normalize_post_check=void 0;var Wt=Jn();var Ot=On();var en=(0,Ot.getData)();var tn=xn();var nn=new Set((0,tn.read_member_array)(en));var an=new Set((0,tn.read_member_array)(en));var In=(0,tn.read_mapped_map)(en);var rn=(0,tn.read_emoji_trie)(en);var cn=45;var on=95;function explode_cp(st){return(0,Wt.toUtf8CodePoints)(st)}function filter_fe0f(st){return st.filter((function(st){return st!=65039}))}function ens_normalize_post_check(st){for(var Wt=0,Ot=st.split(".");Wt=0;nn--){if(tn[nn]!==on){throw new Error("underscore only allowed at start")}}if(tn.length>=4&&tn.every((function(st){return st<128}))&&tn[2]===cn&&tn[3]===cn){throw new Error("invalid label extension")}}catch(st){throw new Error('Invalid label "'+en+'": '+st.message)}}return st}st.ens_normalize_post_check=ens_normalize_post_check;function ens_normalize(st){return ens_normalize_post_check(normalize(st,filter_fe0f))}st.ens_normalize=ens_normalize;function normalize(st,Wt){var Ot=explode_cp(st).reverse();var en=[];while(Ot.length){var tn=consume_emoji_reversed(Ot);if(tn){en.push.apply(en,Wt(tn));continue}var rn=Ot.pop();if(nn.has(rn)){en.push(rn);continue}if(an.has(rn)){continue}var cn=In[rn];if(cn){en.push.apply(en,cn);continue}throw new Error("Disallowed codepoint: 0x"+rn.toString(16).toUpperCase())}return ens_normalize_post_check(nfc(String.fromCodePoint.apply(String,en)))}function nfc(st){return st.normalize("NFC")}function consume_emoji_reversed(st,Wt){var Ot;var en=rn;var tn;var nn;var an=[];var In=st.length;if(Wt)Wt.length=0;var _loop_1=function(){var rn=st[--In];en=(Ot=en.branches.find((function(st){return st.set.has(rn)})))===null||Ot===void 0?void 0:Ot.node;if(!en)return"break";if(en.save){nn=rn}else if(en.check){if(rn===nn)return"break"}an.push(rn);if(en.fe0f){an.push(65039);if(In>0&&st[In-1]==65039)In--}if(en.valid){tn=an.slice();if(en.valid==2)tn.splice(1,1);if(Wt)Wt.push.apply(Wt,st.slice(In).reverse());st.length=In}};while(In){var cn=_loop_1();if(cn==="break")break}return tn}}});var Mn=__commonJS({"node_modules/@ethersproject/hash/lib/namehash.js"(st){"use strict";Object.defineProperty(st,"__esModule",{value:true});st.dnsEncode=st.namehash=st.isValidName=st.ensNormalize=void 0;var Wt=un();var Ot=Jn();var en=fn();var tn=sn();var nn=Bn();var an=new tn.Logger(nn.version);var In=Tn();var rn=new Uint8Array(32);rn.fill(0);function checkComponent(st){if(st.length===0){throw new Error("invalid ENS name; empty component")}return st}function ensNameSplit(st){var Wt=(0,Ot.toUtf8Bytes)((0,In.ens_normalize)(st));var en=[];if(st.length===0){return en}var tn=0;for(var nn=0;nn=Wt.length){throw new Error("invalid ENS name; empty component")}en.push(checkComponent(Wt.slice(tn)));return en}function ensNormalize(st){return ensNameSplit(st).map((function(st){return(0,Ot.toUtf8String)(st)})).join(".")}st.ensNormalize=ensNormalize;function isValidName(st){try{return ensNameSplit(st).length!==0}catch(st){}return false}st.isValidName=isValidName;function namehash(st){if(typeof st!=="string"){an.throwArgumentError("invalid ENS name; not a string","name",st)}var Ot=rn;var tn=ensNameSplit(st);while(tn.length){Ot=(0,en.keccak256)((0,Wt.concat)([Ot,(0,en.keccak256)(tn.pop())]))}return(0,Wt.hexlify)(Ot)}st.namehash=namehash;function dnsEncode(st){return(0,Wt.hexlify)((0,Wt.concat)(ensNameSplit(st).map((function(st){if(st.length>63){throw new Error("invalid DNS encoded entry; length exceeds 63 bytes")}var Wt=new Uint8Array(st.length+1);Wt.set(st,1);Wt[0]=Wt.length-1;return Wt}))))+"00"}st.dnsEncode=dnsEncode}});var Un=__commonJS({"node_modules/@ethersproject/hash/lib/message.js"(st){"use strict";Object.defineProperty(st,"__esModule",{value:true});st.hashMessage=st.messagePrefix=void 0;var Wt=un();var Ot=fn();var en=Jn();st.messagePrefix="Ethereum Signed Message:\n";function hashMessage(tn){if(typeof tn==="string"){tn=(0,en.toUtf8Bytes)(tn)}return(0,Ot.keccak256)((0,Wt.concat)([(0,en.toUtf8Bytes)(st.messagePrefix),(0,en.toUtf8Bytes)(String(tn.length)),tn]))}st.hashMessage=hashMessage}});var zn=__commonJS({"node_modules/@ethersproject/rlp/lib/_version.js"(st){"use strict";Object.defineProperty(st,"__esModule",{value:true});st.version=void 0;st.version="rlp/5.7.0"}});var Sn=__commonJS({"node_modules/@ethersproject/rlp/lib/index.js"(st){"use strict";Object.defineProperty(st,"__esModule",{value:true});st.decode=st.encode=void 0;var Wt=un();var Ot=sn();var en=zn();var tn=new Ot.Logger(en.version);function arrayifyInteger(st){var Wt=[];while(st){Wt.unshift(st&255);st>>=8}return Wt}function unarrayifyInteger(st,Wt,Ot){var en=0;for(var tn=0;tnWt+1+nn){tn.throwError("child data too short",Ot.Logger.errors.BUFFER_OVERRUN,{})}}return{consumed:1+nn,result:an}}function _decode(st,en){if(st.length===0){tn.throwError("data too short",Ot.Logger.errors.BUFFER_OVERRUN,{})}if(st[en]>=248){var nn=st[en]-247;if(en+1+nn>st.length){tn.throwError("data short segment too short",Ot.Logger.errors.BUFFER_OVERRUN,{})}var an=unarrayifyInteger(st,en+1,nn);if(en+1+nn+an>st.length){tn.throwError("data long segment too short",Ot.Logger.errors.BUFFER_OVERRUN,{})}return _decodeChildren(st,en,en+1+nn,nn+an)}else if(st[en]>=192){var In=st[en]-192;if(en+1+In>st.length){tn.throwError("data array too short",Ot.Logger.errors.BUFFER_OVERRUN,{})}return _decodeChildren(st,en,en+1,In)}else if(st[en]>=184){var nn=st[en]-183;if(en+1+nn>st.length){tn.throwError("data array too short",Ot.Logger.errors.BUFFER_OVERRUN,{})}var rn=unarrayifyInteger(st,en+1,nn);if(en+1+nn+rn>st.length){tn.throwError("data array too short",Ot.Logger.errors.BUFFER_OVERRUN,{})}var cn=(0,Wt.hexlify)(st.slice(en+1+nn,en+1+nn+rn));return{consumed:1+nn+rn,result:cn}}else if(st[en]>=128){var on=st[en]-128;if(en+1+on>st.length){tn.throwError("data too short",Ot.Logger.errors.BUFFER_OVERRUN,{})}var cn=(0,Wt.hexlify)(st.slice(en+1,en+1+on));return{consumed:1+on,result:cn}}return{consumed:1,result:(0,Wt.hexlify)(st[en])}}function decode(st){var Ot=(0,Wt.arrayify)(st);var en=_decode(Ot,0);if(en.consumed!==Ot.length){tn.throwArgumentError("invalid rlp data","data",st)}return en.result}st.decode=decode}});var jn=__commonJS({"node_modules/@ethersproject/address/lib/_version.js"(st){"use strict";Object.defineProperty(st,"__esModule",{value:true});st.version=void 0;st.version="address/5.7.0"}});var Dn=__commonJS({"node_modules/@ethersproject/address/lib/index.js"(st){"use strict";Object.defineProperty(st,"__esModule",{value:true});st.getCreate2Address=st.getContractAddress=st.getIcapAddress=st.isAddress=st.getAddress=void 0;var Wt=un();var Ot=Gn();var en=fn();var tn=Sn();var nn=sn();var an=jn();var In=new nn.Logger(an.version);function getChecksumAddress(st){if(!(0,Wt.isHexString)(st,20)){In.throwArgumentError("invalid address","address",st)}st=st.toLowerCase();var Ot=st.substring(2).split("");var tn=new Uint8Array(40);for(var nn=0;nn<40;nn++){tn[nn]=Ot[nn].charCodeAt(0)}var an=(0,Wt.arrayify)((0,en.keccak256)(tn));for(var nn=0;nn<40;nn+=2){if(an[nn>>1]>>4>=8){Ot[nn]=Ot[nn].toUpperCase()}if((an[nn>>1]&15)>=8){Ot[nn+1]=Ot[nn+1].toUpperCase()}}return"0x"+Ot.join("")}var rn=9007199254740991;function log10(st){if(Math.log10){return Math.log10(st)}return Math.log(st)/Math.LN10}var cn={};for(on=0;on<10;on++){cn[String(on)]=String(on)}var on;for(on=0;on<26;on++){cn[String.fromCharCode(65+on)]=String(10+on)}var on;var dn=Math.floor(log10(rn));function ibanChecksum(st){st=st.toUpperCase();st=st.substring(4)+st.substring(0,2)+"00";var Wt=st.split("").map((function(st){return cn[st]})).join("");while(Wt.length>=dn){var Ot=Wt.substring(0,dn);Wt=parseInt(Ot,10)%97+Wt.substring(Ot.length)}var en=String(98-parseInt(Wt,10)%97);while(en.length<2){en="0"+en}return en}function getAddress(st){var Wt=null;if(typeof st!=="string"){In.throwArgumentError("invalid address","address",st)}if(st.match(/^(0x)?[0-9a-fA-F]{40}$/)){if(st.substring(0,2)!=="0x"){st="0x"+st}Wt=getChecksumAddress(st);if(st.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&Wt!==st){In.throwArgumentError("bad address checksum","address",st)}}else if(st.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){if(st.substring(2,4)!==ibanChecksum(st)){In.throwArgumentError("bad icap checksum","address",st)}Wt=(0,Ot._base36To16)(st.substring(4));while(Wt.length<40){Wt="0"+Wt}Wt=getChecksumAddress("0x"+Wt)}else{In.throwArgumentError("invalid address","address",st)}return Wt}st.getAddress=getAddress;function isAddress(st){try{getAddress(st);return true}catch(st){}return false}st.isAddress=isAddress;function getIcapAddress(st){var Wt=(0,Ot._base16To36)(getAddress(st).substring(2)).toUpperCase();while(Wt.length<30){Wt="0"+Wt}return"XE"+ibanChecksum("XE00"+Wt)+Wt}st.getIcapAddress=getIcapAddress;function getContractAddress(st){var nn=null;try{nn=getAddress(st.from)}catch(Wt){In.throwArgumentError("missing from address","transaction",st)}var an=(0,Wt.stripZeros)((0,Wt.arrayify)(Ot.BigNumber.from(st.nonce).toHexString()));return getAddress((0,Wt.hexDataSlice)((0,en.keccak256)((0,tn.encode)([nn,an])),12))}st.getContractAddress=getContractAddress;function getCreate2Address(st,Ot,tn){if((0,Wt.hexDataLength)(Ot)!==32){In.throwArgumentError("salt must be 32 bytes","salt",Ot)}if((0,Wt.hexDataLength)(tn)!==32){In.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",tn)}return getAddress((0,Wt.hexDataSlice)((0,en.keccak256)((0,Wt.concat)(["0xff",getAddress(st),Ot,tn])),12))}st.getCreate2Address=getCreate2Address}});var Kn=__commonJS({"node_modules/@ethersproject/hash/lib/typed-data.js"(st){"use strict";var Wt=st&&st.__awaiter||function(st,Wt,Ot,en){function adopt(st){return st instanceof Ot?st:new Ot((function(Wt){Wt(st)}))}return new(Ot||(Ot=Promise))((function(Ot,tn){function fulfilled(st){try{step(en.next(st))}catch(st){tn(st)}}function rejected(st){try{step(en["throw"](st))}catch(st){tn(st)}}function step(st){st.done?Ot(st.value):adopt(st.value).then(fulfilled,rejected)}step((en=en.apply(st,Wt||[])).next())}))};var Ot=st&&st.__generator||function(st,Wt){var Ot={label:0,sent:function(){if(nn[0]&1)throw nn[1];return nn[1]},trys:[],ops:[]},en,tn,nn,an;return an={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(an[Symbol.iterator]=function(){return this}),an;function verb(st){return function(Wt){return step([st,Wt])}}function step(an){if(en)throw new TypeError("Generator is already executing.");while(Ot)try{if(en=1,tn&&(nn=an[0]&2?tn["return"]:an[0]?tn["throw"]||((nn=tn["return"])&&nn.call(tn),0):tn.next)&&!(nn=nn.call(tn,an[1])).done)return nn;if(tn=0,nn)an=[an[0]&2,nn.value];switch(an[0]){case 0:case 1:nn=an;break;case 4:Ot.label++;return{value:an[1],done:false};case 5:Ot.label++;tn=an[1];an=[0];continue;case 7:an=Ot.ops.pop();Ot.trys.pop();continue;default:if(!(nn=Ot.trys,nn=nn.length>0&&nn[nn.length-1])&&(an[0]===6||an[0]===2)){Ot=0;continue}if(an[0]===3&&(!nn||an[1]>nn[0]&&an[1]256||Wt[2]&&Wt[2]!==String(In)){on.throwArgumentError("invalid numeric width","type",st)}var rn=An.mask(Ot?In-1:In);var cn=Ot?rn.add(hn).mul(bn):mn;return function(Wt){var Ot=tn.BigNumber.from(Wt);if(Ot.lt(cn)||Ot.gt(rn)){on.throwArgumentError("value out-of-bounds for "+st,"value",Wt)}return(0,nn.hexZeroPad)(Ot.toTwos(256).toHexString(),32)}}}{var Wt=st.match(/^bytes(\d+)$/);if(Wt){var sn=parseInt(Wt[1]);if(sn===0||sn>32||Wt[1]!==String(sn)){on.throwArgumentError("invalid bytes width","type",st)}return function(Wt){var Ot=(0,nn.arrayify)(Wt);if(Ot.length!==sn){on.throwArgumentError("invalid length for "+st,"value",Wt)}return hexPadRight(Wt)}}}switch(st){case"address":return function(st){return(0,nn.hexZeroPad)((0,en.getAddress)(st),32)};case"bool":return function(st){return!st?Nn:Wn};case"bytes":return function(st){return(0,an.keccak256)(st)};case"string":return function(st){return(0,dn.id)(st)}}return null}function encodeType(st,Wt){return st+"("+Wt.map((function(st){var Wt=st.name,Ot=st.type;return Ot+" "+Wt})).join(",")+")"}var Yn=function(){function TypedDataEncoder2(st){(0,In.defineReadOnly)(this,"types",Object.freeze((0,In.deepCopy)(st)));(0,In.defineReadOnly)(this,"_encoderCache",{});(0,In.defineReadOnly)(this,"_types",{});var Wt={};var Ot={};var en={};Object.keys(st).forEach((function(st){Wt[st]={};Ot[st]=[];en[st]={}}));var _loop_1=function(en){var tn={};st[en].forEach((function(nn){if(tn[nn.name]){on.throwArgumentError("duplicate variable name "+JSON.stringify(nn.name)+" in "+JSON.stringify(en),"types",st)}tn[nn.name]=true;var an=nn.type.match(/^([^\x5b]*)(\x5b|$)/)[1];if(an===en){on.throwArgumentError("circular type reference to "+JSON.stringify(an),"types",st)}var In=getBaseEncoder(an);if(In){return}if(!Ot[an]){on.throwArgumentError("unknown type "+JSON.stringify(an),"types",st)}Ot[an].push(en);Wt[en][an]=true}))};for(var tn in st){_loop_1(tn)}var nn=Object.keys(Ot).filter((function(st){return Ot[st].length===0}));if(nn.length===0){on.throwArgumentError("missing primary type","types",st)}else if(nn.length>1){on.throwArgumentError("ambiguous primary types or unused types: "+nn.map((function(st){return JSON.stringify(st)})).join(", "),"types",st)}(0,In.defineReadOnly)(this,"primaryType",nn[0]);function checkCircular(tn,nn){if(nn[tn]){on.throwArgumentError("circular type reference to "+JSON.stringify(tn),"types",st)}nn[tn]=true;Object.keys(Wt[tn]).forEach((function(st){if(!Ot[st]){return}checkCircular(st,nn);Object.keys(nn).forEach((function(Wt){en[Wt][st]=true}))}));delete nn[tn]}checkCircular(this.primaryType,{});for(var an in en){var rn=Object.keys(en[an]);rn.sort();this._types[an]=encodeType(an,st[an])+rn.map((function(Wt){return encodeType(Wt,st[Wt])})).join("")}}TypedDataEncoder2.prototype.getEncoder=function(st){var Wt=this._encoderCache[st];if(!Wt){Wt=this._encoderCache[st]=this._getEncoder(st)}return Wt};TypedDataEncoder2.prototype._getEncoder=function(st){var Wt=this;{var Ot=getBaseEncoder(st);if(Ot){return Ot}}var en=st.match(/^(.*)(\x5b(\d*)\x5d)$/);if(en){var tn=en[1];var In=this.getEncoder(tn);var rn=parseInt(en[3]);return function(st){if(rn>=0&&st.length!==rn){on.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",st)}var Ot=st.map(In);if(Wt._types[tn]){Ot=Ot.map(an.keccak256)}return(0,an.keccak256)((0,nn.hexConcat)(Ot))}}var cn=this.types[st];if(cn){var sn=(0,dn.id)(this._types[st]);return function(st){var Ot=cn.map((function(Ot){var en=Ot.name,tn=Ot.type;var nn=Wt.getEncoder(tn)(st[en]);if(Wt._types[tn]){return(0,an.keccak256)(nn)}return nn}));Ot.unshift(sn);return(0,nn.hexConcat)(Ot)}}return on.throwArgumentError("unknown type: "+st,"type",st)};TypedDataEncoder2.prototype.encodeType=function(st){var Wt=this._types[st];if(!Wt){on.throwArgumentError("unknown type: "+JSON.stringify(st),"name",st)}return Wt};TypedDataEncoder2.prototype.encodeData=function(st,Wt){return this.getEncoder(st)(Wt)};TypedDataEncoder2.prototype.hashStruct=function(st,Wt){return(0,an.keccak256)(this.encodeData(st,Wt))};TypedDataEncoder2.prototype.encode=function(st){return this.encodeData(this.primaryType,st)};TypedDataEncoder2.prototype.hash=function(st){return this.hashStruct(this.primaryType,st)};TypedDataEncoder2.prototype._visit=function(st,Wt,Ot){var en=this;{var tn=getBaseEncoder(st);if(tn){return Ot(st,Wt)}}var nn=st.match(/^(.*)(\x5b(\d*)\x5d)$/);if(nn){var an=nn[1];var In=parseInt(nn[3]);if(In>=0&&Wt.length!==In){on.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",Wt)}return Wt.map((function(st){return en._visit(an,st,Ot)}))}var rn=this.types[st];if(rn){return rn.reduce((function(st,tn){var nn=tn.name,an=tn.type;st[nn]=en._visit(an,Wt[nn],Ot);return st}),{})}return on.throwArgumentError("unknown type: "+st,"type",st)};TypedDataEncoder2.prototype.visit=function(st,Wt){return this._visit(this.primaryType,st,Wt)};TypedDataEncoder2.from=function(st){return new TypedDataEncoder2(st)};TypedDataEncoder2.getPrimaryType=function(st){return TypedDataEncoder2.from(st).primaryType};TypedDataEncoder2.hashStruct=function(st,Wt,Ot){return TypedDataEncoder2.from(Wt).hashStruct(st,Ot)};TypedDataEncoder2.hashDomain=function(st){var Wt=[];for(var Ot in st){var en=gn[Ot];if(!en){on.throwArgumentError("invalid typed-data domain key: "+JSON.stringify(Ot),"domain",st)}Wt.push({name:Ot,type:en})}Wt.sort((function(st,Wt){return yn.indexOf(st.name)-yn.indexOf(Wt.name)}));return TypedDataEncoder2.hashStruct("EIP712Domain",{EIP712Domain:Wt},st)};TypedDataEncoder2.encode=function(st,Wt,Ot){return(0,nn.hexConcat)(["0x1901",TypedDataEncoder2.hashDomain(st),TypedDataEncoder2.from(Wt).hash(Ot)])};TypedDataEncoder2.hash=function(st,Wt,Ot){return(0,an.keccak256)(TypedDataEncoder2.encode(st,Wt,Ot))};TypedDataEncoder2.resolveNames=function(st,en,tn,an){return Wt(this,void 0,void 0,(function(){var Wt,rn,cn,on,sn,dn,un,pn;return Ot(this,(function(Ot){switch(Ot.label){case 0:st=(0,In.shallowCopy)(st);Wt={};if(st.verifyingContract&&!(0,nn.isHexString)(st.verifyingContract,20)){Wt[st.verifyingContract]="0x"}rn=TypedDataEncoder2.from(en);rn.visit(tn,(function(st,Ot){if(st==="address"&&!(0,nn.isHexString)(Ot,20)){Wt[Ot]="0x"}return Ot}));cn=[];for(on in Wt)cn.push(on);sn=0;Ot.label=1;case 1:if(!(sn=st.length){return false}return(st.charCodeAt(Wt+1)&64512)===56320}function toArray2(st,Wt){if(Array.isArray(st))return st.slice();if(!st)return[];var Ot=[];if(typeof st==="string"){if(!Wt){var en=0;for(var tn=0;tn>6|192;Ot[en++]=nn&63|128}else if(isSurrogatePair(st,tn)){nn=65536+((nn&1023)<<10)+(st.charCodeAt(++tn)&1023);Ot[en++]=nn>>18|240;Ot[en++]=nn>>12&63|128;Ot[en++]=nn>>6&63|128;Ot[en++]=nn&63|128}else{Ot[en++]=nn>>12|224;Ot[en++]=nn>>6&63|128;Ot[en++]=nn&63|128}}}else if(Wt==="hex"){st=st.replace(/[^a-z0-9]+/gi,"");if(st.length%2!==0)st="0"+st;for(tn=0;tn>>24|st>>>8&65280|st<<8&16711680|(st&255)<<24;return Wt>>>0}st.htonl=htonl;function toHex32(st,Wt){var Ot="";for(var en=0;en>>0}return an}st.join32=join32;function split32(st,Wt){var Ot=new Array(st.length*4);for(var en=0,tn=0;en>>24;Ot[tn+1]=nn>>>16&255;Ot[tn+2]=nn>>>8&255;Ot[tn+3]=nn&255}else{Ot[tn+3]=nn>>>24;Ot[tn+2]=nn>>>16&255;Ot[tn+1]=nn>>>8&255;Ot[tn]=nn&255}}return Ot}st.split32=split32;function rotr32(st,Wt){return st>>>Wt|st<<32-Wt}st.rotr32=rotr32;function rotl32(st,Wt){return st<>>32-Wt}st.rotl32=rotl32;function sum32(st,Wt){return st+Wt>>>0}st.sum32=sum32;function sum32_3(st,Wt,Ot){return st+Wt+Ot>>>0}st.sum32_3=sum32_3;function sum32_4(st,Wt,Ot,en){return st+Wt+Ot+en>>>0}st.sum32_4=sum32_4;function sum32_5(st,Wt,Ot,en,tn){return st+Wt+Ot+en+tn>>>0}st.sum32_5=sum32_5;function sum64(st,Wt,Ot,en){var tn=st[Wt];var nn=st[Wt+1];var an=en+nn>>>0;var In=(an>>0;st[Wt+1]=an}st.sum64=sum64;function sum64_hi(st,Wt,Ot,en){var tn=Wt+en>>>0;var nn=(tn>>0}st.sum64_hi=sum64_hi;function sum64_lo(st,Wt,Ot,en){var tn=Wt+en;return tn>>>0}st.sum64_lo=sum64_lo;function sum64_4_hi(st,Wt,Ot,en,tn,nn,an,In){var rn=0;var cn=Wt;cn=cn+en>>>0;rn+=cn>>0;rn+=cn>>0;rn+=cn>>0}st.sum64_4_hi=sum64_4_hi;function sum64_4_lo(st,Wt,Ot,en,tn,nn,an,In){var rn=Wt+en+nn+In;return rn>>>0}st.sum64_4_lo=sum64_4_lo;function sum64_5_hi(st,Wt,Ot,en,tn,nn,an,In,rn,cn){var on=0;var sn=Wt;sn=sn+en>>>0;on+=sn>>0;on+=sn>>0;on+=sn>>0;on+=sn>>0}st.sum64_5_hi=sum64_5_hi;function sum64_5_lo(st,Wt,Ot,en,tn,nn,an,In,rn,cn){var on=Wt+en+nn+In+cn;return on>>>0}st.sum64_5_lo=sum64_5_lo;function rotr64_hi(st,Wt,Ot){var en=Wt<<32-Ot|st>>>Ot;return en>>>0}st.rotr64_hi=rotr64_hi;function rotr64_lo(st,Wt,Ot){var en=st<<32-Ot|Wt>>>Ot;return en>>>0}st.rotr64_lo=rotr64_lo;function shr64_hi(st,Wt,Ot){return st>>>Ot}st.shr64_hi=shr64_hi;function shr64_lo(st,Wt,Ot){var en=st<<32-Ot|Wt>>>Ot;return en>>>0}st.shr64_lo=shr64_lo}});var tl=__commonJS({"node_modules/hash.js/lib/hash/common.js"(st){"use strict";var Wt=el();var Ot=Pn();function BlockHash(){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}st.BlockHash=BlockHash;BlockHash.prototype.update=function update(st,Ot){st=Wt.toArray(st,Ot);if(!this.pending)this.pending=st;else this.pending=this.pending.concat(st);this.pendingTotal+=st.length;if(this.pending.length>=this._delta8){st=this.pending;var en=st.length%this._delta8;this.pending=st.slice(st.length-en,st.length);if(this.pending.length===0)this.pending=null;st=Wt.join32(st,0,st.length-en,this.endian);for(var tn=0;tn>>24&255;en[tn++]=st>>>16&255;en[tn++]=st>>>8&255;en[tn++]=st&255}else{en[tn++]=st&255;en[tn++]=st>>>8&255;en[tn++]=st>>>16&255;en[tn++]=st>>>24&255;en[tn++]=0;en[tn++]=0;en[tn++]=0;en[tn++]=0;for(nn=8;nn>>3}st.g0_256=g0_256;function g1_256(st){return Ot(st,17)^Ot(st,19)^st>>>10}st.g1_256=g1_256}});var ll=__commonJS({"node_modules/hash.js/lib/hash/sha/1.js"(st,Wt){"use strict";var Ot=el();var en=tl();var tn=nl();var nn=Ot.rotl32;var an=Ot.sum32;var In=Ot.sum32_5;var rn=tn.ft_1;var cn=en.BlockHash;var on=[1518500249,1859775393,2400959708,3395469782];function SHA1(){if(!(this instanceof SHA1))return new SHA1;cn.call(this);this.h=[1732584193,4023233417,2562383102,271733878,3285377520];this.W=new Array(80)}Ot.inherits(SHA1,cn);Wt.exports=SHA1;SHA1.blockSize=512;SHA1.outSize=160;SHA1.hmacStrength=80;SHA1.padLength=64;SHA1.prototype._update=function _update(st,Wt){var Ot=this.W;for(var en=0;en<16;en++)Ot[en]=st[Wt+en];for(;enthis.blockSize)st=(new this.Hash).update(st).digest();en(st.length<=this.blockSize);for(var Wt=st.length;Wt0&&nn[nn.length-1])&&(an[0]===6||an[0]===2)){Ot=0;continue}if(an[0]===3&&(!nn||an[1]>nn[0]&&an[1]0&&nn[nn.length-1])&&(an[0]===6||an[0]===2)){Ot=0;continue}if(an[0]===3&&(!nn||an[1]>nn[0]&&an[1]0&&sn%1===0,"invalid connection throttle limit","connection.throttleLimit",sn);var dn=typeof st==="object"?st.throttleCallback:null;var un=typeof st==="object"&&typeof st.throttleSlotInterval==="number"?st.throttleSlotInterval:100;cn.assertArgument(un>0&&un%1===0,"invalid connection throttle slot interval","connection.throttleSlotInterval",un);var pn=typeof st==="object"?!!st.errorPassThrough:false;var bn={};var mn=null;var Gn={method:"GET"};var hn=false;var Zn=2*60*1e3;if(typeof st==="string"){mn=st}else if(typeof st==="object"){if(st==null||st.url==null){cn.throwArgumentError("missing URL","connection.url",st)}mn=st.url;if(typeof st.timeout==="number"&&st.timeout>0){Zn=st.timeout}if(st.headers){for(var An in st.headers){bn[An.toLowerCase()]={key:An,value:String(st.headers[An])};if(["if-none-match","if-modified-since"].indexOf(An.toLowerCase())>=0){hn=true}}}Gn.allowGzip=!!st.allowGzip;if(st.user!=null&&st.password!=null){if(mn.substring(0,6)!=="https:"&&st.allowInsecureAuthentication!==true){cn.throwError("basic authentication requires a secure https url",In.Logger.errors.INVALID_ARGUMENT,{argument:"url",url:mn,user:st.user,password:"[REDACTED]"})}var Wn=st.user+":"+st.password;bn["authorization"]={key:"Authorization",value:"Basic "+(0,en.encode)((0,an.toUtf8Bytes)(Wn))}}if(st.skipFetchSetup!=null){Gn.skipFetchSetup=!!st.skipFetchSetup}if(st.fetchOptions!=null){Gn.fetchOptions=(0,nn.shallowCopy)(st.fetchOptions)}}var Nn=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i");var gn=mn?mn.match(Nn):null;if(gn){try{var yn={statusCode:200,statusMessage:"OK",headers:{"content-type":gn[1]||"text/plain"},body:gn[2]?(0,en.decode)(gn[3]):unpercent(gn[3])};var vn=yn.body;if(rn){vn=rn(yn.body,yn)}return Promise.resolve(vn)}catch(st){cn.throwError("processing response error",In.Logger.errors.SERVER_ERROR,{body:bodyify(gn[1],gn[2]),error:st,requestBody:null,requestMethod:"GET",url:mn})}}if(tn){Gn.method="POST";Gn.body=tn;if(bn["content-type"]==null){bn["content-type"]={key:"Content-Type",value:"application/octet-stream"}}if(bn["content-length"]==null){bn["content-length"]={key:"Content-Length",value:String(tn.length)}}}var Yn={};Object.keys(bn).forEach((function(st){var Wt=bn[st];Yn[Wt.key]=Wt.value}));Gn.headers=Yn;var En=function(){var st=null;var Wt=new Promise((function(Wt,Ot){if(Zn){st=setTimeout((function(){if(st==null){return}st=null;Ot(cn.makeError("timeout",In.Logger.errors.TIMEOUT,{requestBody:bodyify(Gn.body,Yn["content-type"]),requestMethod:Gn.method,timeout:Zn,url:mn}))}),Zn)}}));var cancel=function(){if(st==null){return}clearTimeout(st);st=null};return{promise:Wt,cancel:cancel}}();var Vn=function(){return Wt(this,void 0,void 0,(function(){var st,Wt,en,tn,nn,an,bn,Zn,An,Wn,tn,Nn;return Ot(this,(function(Ot){switch(Ot.label){case 0:st=0;Ot.label=1;case 1:if(!(st